@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
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
@mixin base($theme) {
|
|
13
13
|
@if inspection.get-theme-version($theme) == 1 {
|
|
14
14
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
15
|
+
} @else {
|
|
15
16
|
}
|
|
16
|
-
@else {}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/// Outputs color theme styles for mat-stepper.
|
|
@@ -24,20 +24,25 @@
|
|
|
24
24
|
@mixin color($theme, $options...) {
|
|
25
25
|
@if inspection.get-theme-version($theme) == 1 {
|
|
26
26
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
27
|
-
}
|
|
28
|
-
@else {
|
|
27
|
+
} @else {
|
|
29
28
|
@include sass-utils.current-selector-or-root() {
|
|
30
|
-
@include token-utils.create-token-values(
|
|
31
|
-
tokens-mat-stepper
|
|
29
|
+
@include token-utils.create-token-values(
|
|
30
|
+
tokens-mat-stepper.$prefix,
|
|
31
|
+
tokens-mat-stepper.get-color-tokens($theme)
|
|
32
|
+
);
|
|
32
33
|
|
|
33
34
|
.mat-step-header.mat-accent {
|
|
34
|
-
@include token-utils.create-token-values(
|
|
35
|
-
tokens-mat-stepper
|
|
35
|
+
@include token-utils.create-token-values(
|
|
36
|
+
tokens-mat-stepper.$prefix,
|
|
37
|
+
tokens-mat-stepper.private-get-color-palette-color-tokens($theme, accent)
|
|
38
|
+
);
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
.mat-step-header.mat-warn {
|
|
39
|
-
@include token-utils.create-token-values(
|
|
40
|
-
tokens-mat-stepper
|
|
42
|
+
@include token-utils.create-token-values(
|
|
43
|
+
tokens-mat-stepper.$prefix,
|
|
44
|
+
tokens-mat-stepper.private-get-color-palette-color-tokens($theme, warn)
|
|
45
|
+
);
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
48
|
}
|
|
@@ -48,11 +53,12 @@
|
|
|
48
53
|
@mixin typography($theme) {
|
|
49
54
|
@if inspection.get-theme-version($theme) == 1 {
|
|
50
55
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
51
|
-
}
|
|
52
|
-
@else {
|
|
56
|
+
} @else {
|
|
53
57
|
@include sass-utils.current-selector-or-root() {
|
|
54
|
-
@include token-utils.create-token-values(
|
|
55
|
-
tokens-mat-stepper
|
|
58
|
+
@include token-utils.create-token-values(
|
|
59
|
+
tokens-mat-stepper.$prefix,
|
|
60
|
+
tokens-mat-stepper.get-typography-tokens($theme)
|
|
61
|
+
);
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
64
|
}
|
|
@@ -62,11 +68,12 @@
|
|
|
62
68
|
@mixin density($theme) {
|
|
63
69
|
@if inspection.get-theme-version($theme) == 1 {
|
|
64
70
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
65
|
-
}
|
|
66
|
-
@else {
|
|
71
|
+
} @else {
|
|
67
72
|
@include sass-utils.current-selector-or-root() {
|
|
68
|
-
@include token-utils.create-token-values(
|
|
69
|
-
tokens-mat-stepper
|
|
73
|
+
@include token-utils.create-token-values(
|
|
74
|
+
tokens-mat-stepper.$prefix,
|
|
75
|
+
tokens-mat-stepper.get-density-tokens($theme)
|
|
76
|
+
);
|
|
70
77
|
}
|
|
71
78
|
}
|
|
72
79
|
}
|
|
@@ -76,7 +83,10 @@
|
|
|
76
83
|
@mixin overrides($tokens: ()) {
|
|
77
84
|
@include token-utils.batch-create-token-values(
|
|
78
85
|
$tokens,
|
|
79
|
-
(
|
|
86
|
+
(
|
|
87
|
+
namespace: tokens-mat-stepper.$prefix,
|
|
88
|
+
tokens: tokens-mat-stepper.get-token-slots(),
|
|
89
|
+
)
|
|
80
90
|
);
|
|
81
91
|
}
|
|
82
92
|
|
|
@@ -85,12 +95,11 @@
|
|
|
85
95
|
/// @param {ArgList} Additional optional arguments (only supported for M3 themes):
|
|
86
96
|
/// $color-variant: The color variant to use for the stepper: primary, secondary,
|
|
87
97
|
/// tertiary, or error (If not specified, primary color values will be used).
|
|
88
|
-
@mixin theme($theme,
|
|
98
|
+
@mixin theme($theme, $options...) {
|
|
89
99
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-stepper') {
|
|
90
100
|
@if inspection.get-theme-version($theme) == 1 {
|
|
91
101
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
|
|
92
|
-
}
|
|
93
|
-
@else {
|
|
102
|
+
} @else {
|
|
94
103
|
@include base($theme);
|
|
95
104
|
@if inspection.theme-has($theme, color) {
|
|
96
105
|
@include color($theme);
|
|
@@ -107,14 +116,14 @@
|
|
|
107
116
|
|
|
108
117
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
109
118
|
@include validation.selector-defined(
|
|
110
|
-
|
|
119
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
120
|
+
);
|
|
111
121
|
@if ($tokens != ()) {
|
|
112
122
|
$mat-stepper-tokens: token-utils.get-tokens-for(
|
|
113
123
|
$tokens,
|
|
114
124
|
tokens-mat-stepper.$prefix,
|
|
115
125
|
$options...
|
|
116
126
|
);
|
|
117
|
-
@include token-utils.create-token-values(
|
|
118
|
-
tokens-mat-stepper.$prefix, $mat-stepper-tokens);
|
|
127
|
+
@include token-utils.create-token-values(tokens-mat-stepper.$prefix, $mat-stepper-tokens);
|
|
119
128
|
}
|
|
120
129
|
}
|
package/table/_table-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
15
|
@include token-utils.create-token-values(
|
|
17
|
-
|
|
16
|
+
tokens-mat-table.$prefix,
|
|
17
|
+
tokens-mat-table.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-table
|
|
28
|
+
@include token-utils.create-token-values(
|
|
29
|
+
tokens-mat-table.$prefix,
|
|
30
|
+
tokens-mat-table.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-table
|
|
41
|
+
@include token-utils.create-token-values(
|
|
42
|
+
tokens-mat-table.$prefix,
|
|
43
|
+
tokens-mat-table.get-typography-tokens($theme)
|
|
44
|
+
);
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
47
|
}
|
|
@@ -46,11 +49,12 @@
|
|
|
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));
|
|
49
|
-
}
|
|
50
|
-
@else {
|
|
52
|
+
} @else {
|
|
51
53
|
@include sass-utils.current-selector-or-root() {
|
|
52
|
-
@include token-utils.create-token-values(
|
|
53
|
-
tokens-mat-table
|
|
54
|
+
@include token-utils.create-token-values(
|
|
55
|
+
tokens-mat-table.$prefix,
|
|
56
|
+
tokens-mat-table.get-density-tokens($theme)
|
|
57
|
+
);
|
|
54
58
|
}
|
|
55
59
|
}
|
|
56
60
|
}
|
|
@@ -58,7 +62,10 @@
|
|
|
58
62
|
@mixin overrides($tokens: ()) {
|
|
59
63
|
@include token-utils.batch-create-token-values(
|
|
60
64
|
$tokens,
|
|
61
|
-
(
|
|
65
|
+
(
|
|
66
|
+
namespace: tokens-mat-table.$prefix,
|
|
67
|
+
tokens: tokens-mat-table.get-token-slots(),
|
|
68
|
+
)
|
|
62
69
|
);
|
|
63
70
|
}
|
|
64
71
|
|
|
@@ -66,8 +73,7 @@
|
|
|
66
73
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-table') {
|
|
67
74
|
@if inspection.get-theme-version($theme) == 1 {
|
|
68
75
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
69
|
-
}
|
|
70
|
-
@else {
|
|
76
|
+
} @else {
|
|
71
77
|
@include base($theme);
|
|
72
78
|
@if inspection.theme-has($theme, color) {
|
|
73
79
|
@include color($theme);
|
|
@@ -84,9 +90,12 @@
|
|
|
84
90
|
|
|
85
91
|
@mixin _theme-from-tokens($tokens) {
|
|
86
92
|
@include validation.selector-defined(
|
|
87
|
-
|
|
93
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
94
|
+
);
|
|
88
95
|
@if ($tokens != ()) {
|
|
89
96
|
@include token-utils.create-token-values(
|
|
90
|
-
|
|
97
|
+
tokens-mat-table.$prefix,
|
|
98
|
+
map.get($tokens, tokens-mat-table.$prefix)
|
|
99
|
+
);
|
|
91
100
|
}
|
|
92
101
|
}
|
package/tabs/_tabs-theme.scss
CHANGED
|
@@ -15,19 +15,24 @@
|
|
|
15
15
|
@mixin base($theme) {
|
|
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
21
|
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
23
|
-
tokens-mdc-secondary-navigation-tab.get-unthemable-tokens()
|
|
22
|
+
tokens-mdc-secondary-navigation-tab.get-unthemable-tokens()
|
|
23
|
+
);
|
|
24
24
|
@include token-utils.create-token-values(
|
|
25
|
-
tokens-mdc-tab-indicator.$prefix,
|
|
25
|
+
tokens-mdc-tab-indicator.$prefix,
|
|
26
|
+
tokens-mdc-tab-indicator.get-unthemable-tokens()
|
|
27
|
+
);
|
|
26
28
|
@include token-utils.create-token-values(
|
|
27
|
-
tokens-mat-tab-header.$prefix,
|
|
29
|
+
tokens-mat-tab-header.$prefix,
|
|
30
|
+
tokens-mat-tab-header.get-unthemable-tokens()
|
|
31
|
+
);
|
|
28
32
|
@include token-utils.create-token-values(
|
|
29
33
|
tokens-mat-tab-header-with-background.$prefix,
|
|
30
|
-
tokens-mat-tab-header-with-background.get-unthemable-tokens()
|
|
34
|
+
tokens-mat-tab-header-with-background.get-unthemable-tokens()
|
|
35
|
+
);
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
}
|
|
@@ -40,9 +45,9 @@
|
|
|
40
45
|
@mixin color($theme, $options...) {
|
|
41
46
|
@if inspection.get-theme-version($theme) == 1 {
|
|
42
47
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.mat-mdc-tab-
|
|
48
|
+
} @else {
|
|
49
|
+
.mat-mdc-tab-group,
|
|
50
|
+
.mat-mdc-tab-nav-bar {
|
|
46
51
|
@include _palette-styles($theme, primary);
|
|
47
52
|
|
|
48
53
|
&.mat-accent {
|
|
@@ -69,8 +74,10 @@
|
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
@mixin _background-styles($theme, $palette-name) {
|
|
72
|
-
@include token-utils.create-token-values(
|
|
73
|
-
tokens-mat-tab-header-with-background
|
|
77
|
+
@include token-utils.create-token-values(
|
|
78
|
+
tokens-mat-tab-header-with-background.$prefix,
|
|
79
|
+
tokens-mat-tab-header-with-background.get-color-tokens($theme, $palette-name)
|
|
80
|
+
);
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
@mixin _palette-styles($theme, $palette-name) {
|
|
@@ -80,9 +87,12 @@
|
|
|
80
87
|
);
|
|
81
88
|
@include token-utils.create-token-values(
|
|
82
89
|
tokens-mdc-tab-indicator.$prefix,
|
|
83
|
-
tokens-mdc-tab-indicator.get-color-tokens($theme, $palette-name)
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
tokens-mdc-tab-indicator.get-color-tokens($theme, $palette-name)
|
|
91
|
+
);
|
|
92
|
+
@include token-utils.create-token-values(
|
|
93
|
+
tokens-mat-tab-header.$prefix,
|
|
94
|
+
tokens-mat-tab-header.get-color-tokens($theme, $palette-name)
|
|
95
|
+
);
|
|
86
96
|
}
|
|
87
97
|
|
|
88
98
|
/// Outputs typography theme styles for the mat-tab.
|
|
@@ -90,18 +100,24 @@
|
|
|
90
100
|
@mixin typography($theme) {
|
|
91
101
|
@if inspection.get-theme-version($theme) == 1 {
|
|
92
102
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
93
|
-
}
|
|
94
|
-
@else {
|
|
103
|
+
} @else {
|
|
95
104
|
.mat-mdc-tab-header {
|
|
96
105
|
@include token-utils.create-token-values(
|
|
97
106
|
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
98
|
-
tokens-mdc-secondary-navigation-tab.get-typography-tokens($theme)
|
|
107
|
+
tokens-mdc-secondary-navigation-tab.get-typography-tokens($theme)
|
|
108
|
+
);
|
|
109
|
+
@include token-utils.create-token-values(
|
|
110
|
+
tokens-mdc-tab-indicator.$prefix,
|
|
111
|
+
tokens-mdc-tab-indicator.get-typography-tokens($theme)
|
|
112
|
+
);
|
|
113
|
+
@include token-utils.create-token-values(
|
|
114
|
+
tokens-mat-tab-header.$prefix,
|
|
115
|
+
tokens-mat-tab-header.get-typography-tokens($theme)
|
|
116
|
+
);
|
|
99
117
|
@include token-utils.create-token-values(
|
|
100
|
-
tokens-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
@include token-utils.create-token-values(tokens-mat-tab-header-with-background.$prefix,
|
|
104
|
-
tokens-mat-tab-header-with-background.get-typography-tokens($theme));
|
|
118
|
+
tokens-mat-tab-header-with-background.$prefix,
|
|
119
|
+
tokens-mat-tab-header-with-background.get-typography-tokens($theme)
|
|
120
|
+
);
|
|
105
121
|
}
|
|
106
122
|
}
|
|
107
123
|
}
|
|
@@ -111,18 +127,24 @@
|
|
|
111
127
|
@mixin density($theme) {
|
|
112
128
|
@if inspection.get-theme-version($theme) == 1 {
|
|
113
129
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
114
|
-
}
|
|
115
|
-
@else {
|
|
130
|
+
} @else {
|
|
116
131
|
.mat-mdc-tab-header {
|
|
117
132
|
@include token-utils.create-token-values(
|
|
118
133
|
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
119
|
-
tokens-mdc-secondary-navigation-tab.get-density-tokens($theme)
|
|
134
|
+
tokens-mdc-secondary-navigation-tab.get-density-tokens($theme)
|
|
135
|
+
);
|
|
136
|
+
@include token-utils.create-token-values(
|
|
137
|
+
tokens-mdc-tab-indicator.$prefix,
|
|
138
|
+
tokens-mdc-tab-indicator.get-density-tokens($theme)
|
|
139
|
+
);
|
|
120
140
|
@include token-utils.create-token-values(
|
|
121
|
-
tokens-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
@include token-utils.create-token-values(
|
|
125
|
-
tokens-mat-tab-header-with-background
|
|
141
|
+
tokens-mat-tab-header.$prefix,
|
|
142
|
+
tokens-mat-tab-header.get-density-tokens($theme)
|
|
143
|
+
);
|
|
144
|
+
@include token-utils.create-token-values(
|
|
145
|
+
tokens-mat-tab-header-with-background.$prefix,
|
|
146
|
+
tokens-mat-tab-header-with-background.get-density-tokens($theme)
|
|
147
|
+
);
|
|
126
148
|
}
|
|
127
149
|
}
|
|
128
150
|
}
|
|
@@ -137,13 +159,22 @@
|
|
|
137
159
|
|
|
138
160
|
@include token-utils.batch-create-token-values(
|
|
139
161
|
$tokens,
|
|
140
|
-
(prefix: tokens-mdc-secondary-navigation-tab.$prefix, tokens: $tab-tokens),
|
|
141
|
-
(prefix: tokens-mdc-tab-indicator.$prefix, tokens: $tab-indicator-tokens),
|
|
142
|
-
(prefix: tokens-mat-tab-header.$prefix, tokens: $tab-header-tokens),
|
|
143
162
|
(
|
|
144
|
-
|
|
145
|
-
tokens: $tab-
|
|
163
|
+
namespace: tokens-mdc-secondary-navigation-tab.$prefix,
|
|
164
|
+
tokens: $tab-tokens,
|
|
165
|
+
),
|
|
166
|
+
(
|
|
167
|
+
namespace: tokens-mdc-tab-indicator.$prefix,
|
|
168
|
+
tokens: $tab-indicator-tokens,
|
|
146
169
|
),
|
|
170
|
+
(
|
|
171
|
+
namespace: tokens-mat-tab-header.$prefix,
|
|
172
|
+
tokens: $tab-header-tokens,
|
|
173
|
+
),
|
|
174
|
+
(
|
|
175
|
+
namespace: tokens-mat-tab-header-with-background.$prefix,
|
|
176
|
+
tokens: $tab-header-with-background-tokens,
|
|
177
|
+
)
|
|
147
178
|
);
|
|
148
179
|
}
|
|
149
180
|
|
|
@@ -156,8 +187,7 @@
|
|
|
156
187
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-tabs') {
|
|
157
188
|
@if inspection.get-theme-version($theme) == 1 {
|
|
158
189
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
|
|
159
|
-
}
|
|
160
|
-
@else {
|
|
190
|
+
} @else {
|
|
161
191
|
@include base($theme);
|
|
162
192
|
@if inspection.theme-has($theme, color) {
|
|
163
193
|
@include color($theme);
|
|
@@ -174,18 +204,31 @@
|
|
|
174
204
|
|
|
175
205
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
176
206
|
@include validation.selector-defined(
|
|
177
|
-
|
|
207
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
208
|
+
);
|
|
178
209
|
$mdc-tab-indicator-tokens: token-utils.get-tokens-for(
|
|
179
|
-
|
|
210
|
+
$tokens,
|
|
211
|
+
tokens-mdc-tab-indicator.$prefix,
|
|
212
|
+
$options...
|
|
213
|
+
);
|
|
180
214
|
$mat-tab-header-tokens: token-utils.get-tokens-for(
|
|
181
|
-
|
|
215
|
+
$tokens,
|
|
216
|
+
tokens-mat-tab-header.$prefix,
|
|
217
|
+
$options...
|
|
218
|
+
);
|
|
182
219
|
// Don't pass $options here, because the mdc-tab doesn't have color variants,
|
|
183
220
|
// only the mdc-tab-indicator and mat-tab-header do.
|
|
184
|
-
$mdc-secondary-navigation-tab-tokens:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
@include token-utils.create-token-values(
|
|
189
|
-
|
|
221
|
+
$mdc-secondary-navigation-tab-tokens: token-utils.get-tokens-for(
|
|
222
|
+
$tokens,
|
|
223
|
+
tokens-mdc-secondary-navigation-tab.$prefix
|
|
224
|
+
);
|
|
225
|
+
@include token-utils.create-token-values(
|
|
226
|
+
tokens-mdc-secondary-navigation-tab.$prefix,
|
|
227
|
+
$mdc-secondary-navigation-tab-tokens
|
|
228
|
+
);
|
|
229
|
+
@include token-utils.create-token-values(
|
|
230
|
+
tokens-mdc-tab-indicator.$prefix,
|
|
231
|
+
$mdc-tab-indicator-tokens
|
|
232
|
+
);
|
|
190
233
|
@include token-utils.create-token-values(tokens-mat-tab-header.$prefix, $mat-tab-header-tokens);
|
|
191
234
|
}
|
package/tabs/index.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ declare abstract class InkBarItem implements OnInit, OnDestroy {
|
|
|
91
91
|
*/
|
|
92
92
|
private _appendInkBarElement;
|
|
93
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<InkBarItem, never>;
|
|
94
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InkBarItem, never, never, { "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; }, {}, never, never,
|
|
94
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InkBarItem, never, never, { "fitInkBarToContent": { "alias": "fitInkBarToContent"; "required": false; }; }, {}, never, never, true, never>;
|
|
95
95
|
static ngAcceptInputType_fitInkBarToContent: unknown;
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -341,7 +341,7 @@ export declare abstract class MatPaginatedTabHeader implements AfterContentCheck
|
|
|
341
341
|
*/
|
|
342
342
|
private _scrollTo;
|
|
343
343
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatPaginatedTabHeader, never>;
|
|
344
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPaginatedTabHeader, never, never, { "disablePagination": { "alias": "disablePagination"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, never, never,
|
|
344
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPaginatedTabHeader, never, never, { "disablePagination": { "alias": "disablePagination"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; }, { "selectFocusedIndex": "selectFocusedIndex"; "indexFocused": "indexFocused"; }, never, never, true, never>;
|
|
345
345
|
static ngAcceptInputType_disablePagination: unknown;
|
|
346
346
|
static ngAcceptInputType_selectedIndex: unknown;
|
|
347
347
|
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/theming/theming';
|
|
3
|
+
@use '../core/theming/inspection';
|
|
4
|
+
@use '../core/theming/validation';
|
|
5
|
+
@use '../core/typography/typography';
|
|
6
|
+
@use '../core/style/sass-utils';
|
|
7
|
+
@use '../core/tokens/m2/mat/timepicker' as tokens-mat-timepicker;
|
|
8
|
+
@use '../core/tokens/token-utils';
|
|
9
|
+
|
|
10
|
+
/// Outputs base theme styles (styles not dependent on the color, typography, or density settings)
|
|
11
|
+
/// for the mat-timepicker.
|
|
12
|
+
/// @param {Map} $theme The theme to generate base styles for.
|
|
13
|
+
@mixin base($theme) {
|
|
14
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
15
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
16
|
+
} @else {
|
|
17
|
+
@include sass-utils.current-selector-or-root() {
|
|
18
|
+
@include token-utils.create-token-values(
|
|
19
|
+
tokens-mat-timepicker.$prefix,
|
|
20
|
+
tokens-mat-timepicker.get-unthemable-tokens()
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/// Outputs color theme styles for the mat-timepicker.
|
|
27
|
+
/// @param {Map} $theme The theme to generate color styles for.
|
|
28
|
+
/// @param {ArgList} Additional optional arguments (only supported for M3 themes):
|
|
29
|
+
/// $color-variant: The color variant to use for the main selection: primary, secondary, tertiary,
|
|
30
|
+
/// or error (If not specified, default primary color will be used).
|
|
31
|
+
@mixin color($theme, $options...) {
|
|
32
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
33
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
34
|
+
} @else {
|
|
35
|
+
@include sass-utils.current-selector-or-root() {
|
|
36
|
+
@include token-utils.create-token-values(
|
|
37
|
+
tokens-mat-timepicker.$prefix,
|
|
38
|
+
tokens-mat-timepicker.get-color-tokens($theme)
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/// Outputs typography theme styles for the mat-timepicker.
|
|
45
|
+
/// @param {Map} $theme The theme to generate typography styles for.
|
|
46
|
+
@mixin typography($theme) {
|
|
47
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
48
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
49
|
+
} @else {
|
|
50
|
+
@include sass-utils.current-selector-or-root() {
|
|
51
|
+
@include token-utils.create-token-values(
|
|
52
|
+
tokens-mat-timepicker.$prefix,
|
|
53
|
+
tokens-mat-timepicker.get-typography-tokens($theme)
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/// Outputs density theme styles for the mat-timepicker.
|
|
60
|
+
/// @param {Map} $theme The theme to generate density styles for.
|
|
61
|
+
@mixin density($theme) {
|
|
62
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
63
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
64
|
+
} @else {
|
|
65
|
+
@include sass-utils.current-selector-or-root() {
|
|
66
|
+
@include token-utils.create-token-values(
|
|
67
|
+
tokens-mat-timepicker.$prefix,
|
|
68
|
+
tokens-mat-timepicker.get-density-tokens($theme)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/// Outputs the CSS variable values for the given tokens.
|
|
75
|
+
/// @param {Map} $tokens The token values to emit.
|
|
76
|
+
@mixin overrides($tokens: ()) {
|
|
77
|
+
@include token-utils.batch-create-token-values(
|
|
78
|
+
$tokens,
|
|
79
|
+
(
|
|
80
|
+
namespace: tokens-mat-timepicker.$prefix,
|
|
81
|
+
tokens: tokens-mat-timepicker.get-token-slots(),
|
|
82
|
+
)
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/// Outputs all (base, color, typography, and density) theme styles for the mat-timepicker.
|
|
87
|
+
/// @param {Map} $theme The theme to generate styles for.
|
|
88
|
+
/// @param {ArgList} Additional optional arguments (only supported for M3 themes):
|
|
89
|
+
/// $color-variant: The color variant to use for the main selection: primary, secondary, tertiary,
|
|
90
|
+
/// or error (If not specified, default primary color will be used).
|
|
91
|
+
@mixin theme($theme) {
|
|
92
|
+
@include theming.private-check-duplicate-theme-styles($theme, 'mat-timepicker') {
|
|
93
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
94
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
95
|
+
} @else {
|
|
96
|
+
@include base($theme);
|
|
97
|
+
@if inspection.theme-has($theme, color) {
|
|
98
|
+
@include color($theme);
|
|
99
|
+
}
|
|
100
|
+
@if inspection.theme-has($theme, density) {
|
|
101
|
+
@include density($theme);
|
|
102
|
+
}
|
|
103
|
+
@if inspection.theme-has($theme, typography) {
|
|
104
|
+
@include typography($theme);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@mixin _theme-from-tokens($tokens) {
|
|
111
|
+
@include validation.selector-defined(
|
|
112
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
113
|
+
);
|
|
114
|
+
@if ($tokens != ()) {
|
|
115
|
+
@include token-utils.create-token-values(
|
|
116
|
+
tokens-mat-timepicker.$prefix,
|
|
117
|
+
map.get($tokens, tokens-mat-timepicker.$prefix)
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
}
|