@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
|
@@ -21,11 +21,15 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
21
21
|
$palette-color: inspection.get-theme-color($theme, $palette-name);
|
|
22
22
|
$range-color: tokens-mat-datepicker.private-get-range-background-color($palette-color);
|
|
23
23
|
$range-tokens: tokens-mat-datepicker.get-range-color-tokens($range-color);
|
|
24
|
-
$calendar-tokens:
|
|
25
|
-
|
|
24
|
+
$calendar-tokens: tokens-mat-datepicker.private-get-calendar-color-palette-color-tokens(
|
|
25
|
+
$theme,
|
|
26
|
+
$palette-name
|
|
27
|
+
);
|
|
26
28
|
|
|
27
|
-
@include token-utils.create-token-values(
|
|
28
|
-
|
|
29
|
+
@include token-utils.create-token-values(
|
|
30
|
+
tokens-mat-datepicker.$prefix,
|
|
31
|
+
map.merge($calendar-tokens, $range-tokens)
|
|
32
|
+
);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
/// Outputs base theme styles (styles not dependent on the color, typography, or density settings)
|
|
@@ -34,11 +38,12 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
34
38
|
@mixin base($theme) {
|
|
35
39
|
@if inspection.get-theme-version($theme) == 1 {
|
|
36
40
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
37
|
-
}
|
|
38
|
-
@else {
|
|
41
|
+
} @else {
|
|
39
42
|
@include sass-utils.current-selector-or-root() {
|
|
40
|
-
@include token-utils.create-token-values(
|
|
41
|
-
tokens-mat-datepicker
|
|
43
|
+
@include token-utils.create-token-values(
|
|
44
|
+
tokens-mat-datepicker.$prefix,
|
|
45
|
+
tokens-mat-datepicker.get-unthemable-tokens()
|
|
46
|
+
);
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
49
|
}
|
|
@@ -51,11 +56,12 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
51
56
|
@mixin color($theme, $options...) {
|
|
52
57
|
@if inspection.get-theme-version($theme) == 1 {
|
|
53
58
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
54
|
-
}
|
|
55
|
-
@else {
|
|
59
|
+
} @else {
|
|
56
60
|
@include sass-utils.current-selector-or-root() {
|
|
57
|
-
@include token-utils.create-token-values(
|
|
58
|
-
tokens-mat-datepicker
|
|
61
|
+
@include token-utils.create-token-values(
|
|
62
|
+
tokens-mat-datepicker.$prefix,
|
|
63
|
+
tokens-mat-datepicker.get-color-tokens($theme)
|
|
64
|
+
);
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
.mat-datepicker-content {
|
|
@@ -70,14 +76,18 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
70
76
|
|
|
71
77
|
.mat-datepicker-toggle-active {
|
|
72
78
|
&.mat-accent {
|
|
73
|
-
$accent-tokens:
|
|
74
|
-
|
|
79
|
+
$accent-tokens: tokens-mat-datepicker.private-get-toggle-color-palette-color-tokens(
|
|
80
|
+
$theme,
|
|
81
|
+
accent
|
|
82
|
+
);
|
|
75
83
|
@include token-utils.create-token-values(tokens-mat-datepicker.$prefix, $accent-tokens);
|
|
76
84
|
}
|
|
77
85
|
|
|
78
86
|
&.mat-warn {
|
|
79
|
-
$warn-tokens:
|
|
80
|
-
|
|
87
|
+
$warn-tokens: tokens-mat-datepicker.private-get-toggle-color-palette-color-tokens(
|
|
88
|
+
$theme,
|
|
89
|
+
warn
|
|
90
|
+
);
|
|
81
91
|
@include token-utils.create-token-values(tokens-mat-datepicker.$prefix, $warn-tokens);
|
|
82
92
|
}
|
|
83
93
|
}
|
|
@@ -89,11 +99,12 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
89
99
|
@mixin typography($theme) {
|
|
90
100
|
@if inspection.get-theme-version($theme) == 1 {
|
|
91
101
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
92
|
-
}
|
|
93
|
-
@else {
|
|
102
|
+
} @else {
|
|
94
103
|
@include sass-utils.current-selector-or-root() {
|
|
95
|
-
@include token-utils.create-token-values(
|
|
96
|
-
tokens-mat-datepicker
|
|
104
|
+
@include token-utils.create-token-values(
|
|
105
|
+
tokens-mat-datepicker.$prefix,
|
|
106
|
+
tokens-mat-datepicker.get-typography-tokens($theme)
|
|
107
|
+
);
|
|
97
108
|
}
|
|
98
109
|
}
|
|
99
110
|
}
|
|
@@ -103,7 +114,8 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
103
114
|
$comparison-color: tokens-mat-datepicker.$private-default-comparison-color,
|
|
104
115
|
$overlap-color: tokens-mat-datepicker.$private-default-overlap-color,
|
|
105
116
|
$overlap-selected-color:
|
|
106
|
-
tokens-mat-datepicker.private-get-default-overlap-selected-color($overlap-color)
|
|
117
|
+
tokens-mat-datepicker.private-get-default-overlap-selected-color($overlap-color)
|
|
118
|
+
) {
|
|
107
119
|
$tokens: tokens-mat-datepicker.get-range-color-tokens(
|
|
108
120
|
$range-color: $range-color,
|
|
109
121
|
$comparison-color: $comparison-color,
|
|
@@ -121,8 +133,7 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
121
133
|
@mixin density($theme) {
|
|
122
134
|
@if inspection.get-theme-version($theme) == 1 {
|
|
123
135
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
124
|
-
}
|
|
125
|
-
@else {
|
|
136
|
+
} @else {
|
|
126
137
|
// TODO(crisbeto): move this into the structural styles
|
|
127
138
|
// once the icon button density is switched to tokens.
|
|
128
139
|
|
|
@@ -134,13 +145,20 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
134
145
|
}
|
|
135
146
|
}
|
|
136
147
|
|
|
148
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
149
|
+
@function _define-overrides() {
|
|
150
|
+
@return (
|
|
151
|
+
(
|
|
152
|
+
namespace: tokens-mat-datepicker.$prefix,
|
|
153
|
+
tokens: tokens-mat-datepicker.get-token-slots(),
|
|
154
|
+
),
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
137
158
|
/// Outputs the CSS variable values for the given tokens.
|
|
138
159
|
/// @param {Map} $tokens The token values to emit.
|
|
139
160
|
@mixin overrides($tokens: ()) {
|
|
140
|
-
@include token-utils.batch-create-token-values(
|
|
141
|
-
$tokens,
|
|
142
|
-
(prefix: tokens-mat-datepicker.$prefix, tokens: tokens-mat-datepicker.get-token-slots()),
|
|
143
|
-
);
|
|
161
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides()...);
|
|
144
162
|
}
|
|
145
163
|
|
|
146
164
|
/// Outputs all (base, color, typography, and density) theme styles for the mat-datepicker.
|
|
@@ -152,8 +170,7 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
152
170
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-datepicker') {
|
|
153
171
|
@if inspection.get-theme-version($theme) == 1 {
|
|
154
172
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
|
|
155
|
-
}
|
|
156
|
-
@else {
|
|
173
|
+
} @else {
|
|
157
174
|
@include base($theme);
|
|
158
175
|
@if inspection.theme-has($theme, color) {
|
|
159
176
|
@include color($theme);
|
|
@@ -170,8 +187,12 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
170
187
|
|
|
171
188
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
172
189
|
@include validation.selector-defined(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
190
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
191
|
+
);
|
|
192
|
+
$mat-datepicker-tokens: token-utils.get-tokens-for(
|
|
193
|
+
$tokens,
|
|
194
|
+
tokens-mat-datepicker.$prefix,
|
|
195
|
+
$options...
|
|
196
|
+
);
|
|
176
197
|
@include token-utils.create-token-values(tokens-mat-datepicker.$prefix, $mat-datepicker-tokens);
|
|
177
198
|
}
|
package/datepicker/index.d.ts
CHANGED
|
@@ -17,13 +17,12 @@ import { FactoryProvider } from '@angular/core';
|
|
|
17
17
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
18
18
|
import { FormGroupDirective } from '@angular/forms';
|
|
19
19
|
import * as i0 from '@angular/core';
|
|
20
|
-
import * as i1 from '@angular/
|
|
21
|
-
import * as
|
|
22
|
-
import * as
|
|
23
|
-
import * as i3 from '@angular/cdk/
|
|
24
|
-
import * as i4 from '@angular/cdk/
|
|
25
|
-
import * as i5 from '@angular/
|
|
26
|
-
import * as i6 from '@angular/material/core';
|
|
20
|
+
import * as i1 from '@angular/material/button';
|
|
21
|
+
import * as i19 from '@angular/cdk/scrolling';
|
|
22
|
+
import * as i2 from '@angular/cdk/overlay';
|
|
23
|
+
import * as i3 from '@angular/cdk/a11y';
|
|
24
|
+
import * as i4 from '@angular/cdk/portal';
|
|
25
|
+
import * as i5 from '@angular/material/core';
|
|
27
26
|
import { InjectionToken } from '@angular/core';
|
|
28
27
|
import { MatButton } from '@angular/material/button';
|
|
29
28
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
@@ -116,20 +115,6 @@ export declare type ExtractDateTypeFromSelection<T> = T extends DateRange<infer
|
|
|
116
115
|
declare function getActiveOffset<D>(dateAdapter: DateAdapter<D>, activeDate: D, minDate: D | null, maxDate: D | null): number;
|
|
117
116
|
|
|
118
117
|
declare namespace i10 {
|
|
119
|
-
export {
|
|
120
|
-
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
|
|
121
|
-
MAT_DATEPICKER_SCROLL_STRATEGY,
|
|
122
|
-
DatepickerDropdownPositionX,
|
|
123
|
-
DatepickerDropdownPositionY,
|
|
124
|
-
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
|
125
|
-
MatDatepickerContent,
|
|
126
|
-
MatDatepickerControl,
|
|
127
|
-
MatDatepickerPanel,
|
|
128
|
-
MatDatepickerBase
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
declare namespace i11 {
|
|
133
118
|
export {
|
|
134
119
|
MAT_DATEPICKER_VALUE_ACCESSOR,
|
|
135
120
|
MAT_DATEPICKER_VALIDATORS,
|
|
@@ -137,26 +122,26 @@ declare namespace i11 {
|
|
|
137
122
|
}
|
|
138
123
|
}
|
|
139
124
|
|
|
140
|
-
declare namespace
|
|
125
|
+
declare namespace i11 {
|
|
141
126
|
export {
|
|
142
127
|
MatDatepickerToggleIcon,
|
|
143
128
|
MatDatepickerToggle
|
|
144
129
|
}
|
|
145
130
|
}
|
|
146
131
|
|
|
147
|
-
declare namespace
|
|
132
|
+
declare namespace i12 {
|
|
148
133
|
export {
|
|
149
134
|
MatMonthView
|
|
150
135
|
}
|
|
151
136
|
}
|
|
152
137
|
|
|
153
|
-
declare namespace
|
|
138
|
+
declare namespace i13 {
|
|
154
139
|
export {
|
|
155
140
|
MatYearView
|
|
156
141
|
}
|
|
157
142
|
}
|
|
158
143
|
|
|
159
|
-
declare namespace
|
|
144
|
+
declare namespace i14 {
|
|
160
145
|
export {
|
|
161
146
|
isSameMultiYearView,
|
|
162
147
|
getActiveOffset,
|
|
@@ -166,13 +151,13 @@ declare namespace i15 {
|
|
|
166
151
|
}
|
|
167
152
|
}
|
|
168
153
|
|
|
169
|
-
declare namespace
|
|
154
|
+
declare namespace i15 {
|
|
170
155
|
export {
|
|
171
156
|
MatDateRangeInput
|
|
172
157
|
}
|
|
173
158
|
}
|
|
174
159
|
|
|
175
|
-
declare namespace
|
|
160
|
+
declare namespace i16 {
|
|
176
161
|
export {
|
|
177
162
|
MatDateRangeInputParent,
|
|
178
163
|
MAT_DATE_RANGE_INPUT_PARENT,
|
|
@@ -181,14 +166,14 @@ declare namespace i17 {
|
|
|
181
166
|
}
|
|
182
167
|
}
|
|
183
168
|
|
|
184
|
-
declare namespace
|
|
169
|
+
declare namespace i17 {
|
|
185
170
|
export {
|
|
186
171
|
MatDateRangePickerInput,
|
|
187
172
|
MatDateRangePicker
|
|
188
173
|
}
|
|
189
174
|
}
|
|
190
175
|
|
|
191
|
-
declare namespace
|
|
176
|
+
declare namespace i18 {
|
|
192
177
|
export {
|
|
193
178
|
MatDatepickerApply,
|
|
194
179
|
MatDatepickerCancel,
|
|
@@ -196,7 +181,7 @@ declare namespace i19 {
|
|
|
196
181
|
}
|
|
197
182
|
}
|
|
198
183
|
|
|
199
|
-
declare namespace
|
|
184
|
+
declare namespace i6 {
|
|
200
185
|
export {
|
|
201
186
|
MatCalendarView,
|
|
202
187
|
MatCalendarHeader,
|
|
@@ -204,7 +189,7 @@ declare namespace i7 {
|
|
|
204
189
|
}
|
|
205
190
|
}
|
|
206
191
|
|
|
207
|
-
declare namespace
|
|
192
|
+
declare namespace i7 {
|
|
208
193
|
export {
|
|
209
194
|
MatCalendarCellCssClasses,
|
|
210
195
|
MatCalendarCellClassFunction,
|
|
@@ -214,12 +199,26 @@ declare namespace i8 {
|
|
|
214
199
|
}
|
|
215
200
|
}
|
|
216
201
|
|
|
217
|
-
declare namespace
|
|
202
|
+
declare namespace i8 {
|
|
218
203
|
export {
|
|
219
204
|
MatDatepicker
|
|
220
205
|
}
|
|
221
206
|
}
|
|
222
207
|
|
|
208
|
+
declare namespace i9 {
|
|
209
|
+
export {
|
|
210
|
+
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY,
|
|
211
|
+
MAT_DATEPICKER_SCROLL_STRATEGY,
|
|
212
|
+
DatepickerDropdownPositionX,
|
|
213
|
+
DatepickerDropdownPositionY,
|
|
214
|
+
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
|
|
215
|
+
MatDatepickerContent,
|
|
216
|
+
MatDatepickerControl,
|
|
217
|
+
MatDatepickerPanel,
|
|
218
|
+
MatDatepickerBase
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
223
222
|
declare function isSameMultiYearView<D>(dateAdapter: DateAdapter<D>, date1: D, date2: D, minDate: D | null, maxDate: D | null): boolean;
|
|
224
223
|
|
|
225
224
|
/**
|
|
@@ -825,7 +824,7 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
|
|
|
825
824
|
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
826
825
|
private _getCloseStream;
|
|
827
826
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerBase<any, any, any>, never>;
|
|
828
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDatepickerBase<any, any, any>, never, never, { "calendarHeaderComponent": { "alias": "calendarHeaderComponent"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "color": { "alias": "color"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; "dateClass": { "alias": "dateClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "viewChanged": "viewChanged"; "openedStream": "opened"; "closedStream": "closed"; }, never, never,
|
|
827
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatDatepickerBase<any, any, any>, never, never, { "calendarHeaderComponent": { "alias": "calendarHeaderComponent"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "color": { "alias": "color"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; "dateClass": { "alias": "dateClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "viewChanged": "viewChanged"; "openedStream": "opened"; "closedStream": "closed"; }, never, never, true, never>;
|
|
829
828
|
static ngAcceptInputType_touchUi: unknown;
|
|
830
829
|
static ngAcceptInputType_disabled: unknown;
|
|
831
830
|
static ngAcceptInputType_restoreFocus: unknown;
|
|
@@ -1148,7 +1147,7 @@ export declare class MatDatepickerIntl {
|
|
|
1148
1147
|
|
|
1149
1148
|
export declare class MatDatepickerModule {
|
|
1150
1149
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDatepickerModule, never>;
|
|
1151
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDatepickerModule, never, [typeof i1.
|
|
1150
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatDatepickerModule, never, [typeof i1.MatButtonModule, typeof i2.OverlayModule, typeof i3.A11yModule, typeof i4.PortalModule, typeof i5.MatCommonModule, typeof i6.MatCalendar, typeof i7.MatCalendarBody, typeof i8.MatDatepicker, typeof i9.MatDatepickerContent, typeof i10.MatDatepickerInput, typeof i11.MatDatepickerToggle, typeof i11.MatDatepickerToggleIcon, typeof i12.MatMonthView, typeof i13.MatYearView, typeof i14.MatMultiYearView, typeof i6.MatCalendarHeader, typeof i15.MatDateRangeInput, typeof i16.MatStartDate, typeof i16.MatEndDate, typeof i17.MatDateRangePicker, typeof i18.MatDatepickerActions, typeof i18.MatDatepickerCancel, typeof i18.MatDatepickerApply], [typeof i19.CdkScrollableModule, typeof i6.MatCalendar, typeof i7.MatCalendarBody, typeof i8.MatDatepicker, typeof i9.MatDatepickerContent, typeof i10.MatDatepickerInput, typeof i11.MatDatepickerToggle, typeof i11.MatDatepickerToggleIcon, typeof i12.MatMonthView, typeof i13.MatYearView, typeof i14.MatMultiYearView, typeof i6.MatCalendarHeader, typeof i15.MatDateRangeInput, typeof i16.MatStartDate, typeof i16.MatEndDate, typeof i17.MatDateRangePicker, typeof i18.MatDatepickerActions, typeof i18.MatDatepickerCancel, typeof i18.MatDatepickerApply]>;
|
|
1152
1151
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatDatepickerModule>;
|
|
1153
1152
|
}
|
|
1154
1153
|
|
|
@@ -11,14 +11,17 @@
|
|
|
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
|
-
}
|
|
15
|
-
@else {
|
|
14
|
+
} @else {
|
|
16
15
|
// Add default values for tokens not related to color, typography, or density.
|
|
17
16
|
@include sass-utils.current-selector-or-root() {
|
|
18
17
|
@include token-utils.create-token-values(
|
|
19
|
-
tokens-mdc-dialog.$prefix,
|
|
18
|
+
tokens-mdc-dialog.$prefix,
|
|
19
|
+
tokens-mdc-dialog.get-unthemable-tokens()
|
|
20
|
+
);
|
|
20
21
|
@include token-utils.create-token-values(
|
|
21
|
-
tokens-mat-dialog.$prefix,
|
|
22
|
+
tokens-mat-dialog.$prefix,
|
|
23
|
+
tokens-mat-dialog.get-unthemable-tokens()
|
|
24
|
+
);
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
}
|
|
@@ -26,13 +29,16 @@
|
|
|
26
29
|
@mixin color($theme) {
|
|
27
30
|
@if inspection.get-theme-version($theme) == 1 {
|
|
28
31
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
29
|
-
}
|
|
30
|
-
@else {
|
|
32
|
+
} @else {
|
|
31
33
|
@include sass-utils.current-selector-or-root() {
|
|
32
34
|
@include token-utils.create-token-values(
|
|
33
|
-
tokens-mdc-dialog.$prefix,
|
|
35
|
+
tokens-mdc-dialog.$prefix,
|
|
36
|
+
tokens-mdc-dialog.get-color-tokens($theme)
|
|
37
|
+
);
|
|
34
38
|
@include token-utils.create-token-values(
|
|
35
|
-
tokens-mat-dialog.$prefix,
|
|
39
|
+
tokens-mat-dialog.$prefix,
|
|
40
|
+
tokens-mat-dialog.get-color-tokens($theme)
|
|
41
|
+
);
|
|
36
42
|
}
|
|
37
43
|
}
|
|
38
44
|
}
|
|
@@ -40,13 +46,16 @@
|
|
|
40
46
|
@mixin typography($theme) {
|
|
41
47
|
@if inspection.get-theme-version($theme) == 1 {
|
|
42
48
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
43
|
-
}
|
|
44
|
-
@else {
|
|
49
|
+
} @else {
|
|
45
50
|
@include sass-utils.current-selector-or-root() {
|
|
46
51
|
@include token-utils.create-token-values(
|
|
47
|
-
tokens-mdc-dialog.$prefix,
|
|
52
|
+
tokens-mdc-dialog.$prefix,
|
|
53
|
+
tokens-mdc-dialog.get-typography-tokens($theme)
|
|
54
|
+
);
|
|
48
55
|
@include token-utils.create-token-values(
|
|
49
|
-
tokens-mat-dialog.$prefix,
|
|
56
|
+
tokens-mat-dialog.$prefix,
|
|
57
|
+
tokens-mat-dialog.get-typography-tokens($theme)
|
|
58
|
+
);
|
|
50
59
|
}
|
|
51
60
|
}
|
|
52
61
|
}
|
|
@@ -54,24 +63,33 @@
|
|
|
54
63
|
@mixin density($theme) {
|
|
55
64
|
@if inspection.get-theme-version($theme) == 1 {
|
|
56
65
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
66
|
+
} @else {
|
|
57
67
|
}
|
|
58
|
-
@else {}
|
|
59
68
|
}
|
|
60
69
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
(
|
|
65
|
-
|
|
70
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
71
|
+
@function _define-overrides() {
|
|
72
|
+
@return (
|
|
73
|
+
(
|
|
74
|
+
namespace: tokens-mdc-dialog.$prefix,
|
|
75
|
+
tokens: tokens-mdc-dialog.get-token-slots(),
|
|
76
|
+
),
|
|
77
|
+
(
|
|
78
|
+
namespace: tokens-mat-dialog.$prefix,
|
|
79
|
+
tokens: tokens-mat-dialog.get-token-slots(),
|
|
80
|
+
),
|
|
66
81
|
);
|
|
67
82
|
}
|
|
68
83
|
|
|
84
|
+
@mixin overrides($tokens: ()) {
|
|
85
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides()...);
|
|
86
|
+
}
|
|
87
|
+
|
|
69
88
|
@mixin theme($theme) {
|
|
70
89
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-dialog') {
|
|
71
90
|
@if inspection.get-theme-version($theme) == 1 {
|
|
72
91
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
73
|
-
}
|
|
74
|
-
@else {
|
|
92
|
+
} @else {
|
|
75
93
|
@include base($theme);
|
|
76
94
|
@if inspection.theme-has($theme, color) {
|
|
77
95
|
@include color($theme);
|
|
@@ -88,11 +106,16 @@
|
|
|
88
106
|
|
|
89
107
|
@mixin _theme-from-tokens($tokens) {
|
|
90
108
|
@include validation.selector-defined(
|
|
91
|
-
|
|
109
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
110
|
+
);
|
|
92
111
|
@if ($tokens != ()) {
|
|
93
112
|
@include token-utils.create-token-values(
|
|
94
|
-
tokens-mdc-dialog.$prefix,
|
|
113
|
+
tokens-mdc-dialog.$prefix,
|
|
114
|
+
map.get($tokens, tokens-mdc-dialog.$prefix)
|
|
115
|
+
);
|
|
95
116
|
@include token-utils.create-token-values(
|
|
96
|
-
tokens-mat-dialog.$prefix,
|
|
117
|
+
tokens-mat-dialog.$prefix,
|
|
118
|
+
map.get($tokens, tokens-mat-dialog.$prefix)
|
|
119
|
+
);
|
|
97
120
|
}
|
|
98
121
|
}
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
@mixin base($theme) {
|
|
10
10
|
@if inspection.get-theme-version($theme) == 1 {
|
|
11
11
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
12
|
-
}
|
|
13
|
-
@else {
|
|
12
|
+
} @else {
|
|
14
13
|
@include sass-utils.current-selector-or-root() {
|
|
15
14
|
@include token-utils.create-token-values(
|
|
16
|
-
|
|
15
|
+
tokens-mat-divider.$prefix,
|
|
16
|
+
tokens-mat-divider.get-unthemable-tokens()
|
|
17
|
+
);
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -21,11 +22,12 @@
|
|
|
21
22
|
@mixin color($theme) {
|
|
22
23
|
@if inspection.get-theme-version($theme) == 1 {
|
|
23
24
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
24
|
-
}
|
|
25
|
-
@else {
|
|
25
|
+
} @else {
|
|
26
26
|
@include sass-utils.current-selector-or-root() {
|
|
27
|
-
@include token-utils.create-token-values(
|
|
28
|
-
tokens-mat-divider
|
|
27
|
+
@include token-utils.create-token-values(
|
|
28
|
+
tokens-mat-divider.$prefix,
|
|
29
|
+
tokens-mat-divider.get-color-tokens($theme)
|
|
30
|
+
);
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
}
|
|
@@ -33,30 +35,36 @@
|
|
|
33
35
|
@mixin typography($theme) {
|
|
34
36
|
@if inspection.get-theme-version($theme) == 1 {
|
|
35
37
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
38
|
+
} @else {
|
|
36
39
|
}
|
|
37
|
-
@else {}
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
@mixin density($theme) {
|
|
41
43
|
@if inspection.get-theme-version($theme) == 1 {
|
|
42
44
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
45
|
+
} @else {
|
|
43
46
|
}
|
|
44
|
-
@else {}
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
(
|
|
49
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
50
|
+
@function _define-overrides() {
|
|
51
|
+
@return (
|
|
52
|
+
(
|
|
53
|
+
namespace: tokens-mat-divider.$prefix,
|
|
54
|
+
tokens: tokens-mat-divider.get-token-slots(),
|
|
55
|
+
),
|
|
51
56
|
);
|
|
52
57
|
}
|
|
53
58
|
|
|
59
|
+
@mixin overrides($tokens: ()) {
|
|
60
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides()...);
|
|
61
|
+
}
|
|
62
|
+
|
|
54
63
|
@mixin theme($theme) {
|
|
55
64
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-divider') {
|
|
56
65
|
@if inspection.get-theme-version($theme) == 1 {
|
|
57
66
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
58
|
-
}
|
|
59
|
-
@else {
|
|
67
|
+
} @else {
|
|
60
68
|
@include base($theme);
|
|
61
69
|
@if inspection.theme-has($theme, color) {
|
|
62
70
|
@include color($theme);
|
|
@@ -73,9 +81,12 @@
|
|
|
73
81
|
|
|
74
82
|
@mixin _theme-from-tokens($tokens) {
|
|
75
83
|
@include validation.selector-defined(
|
|
76
|
-
|
|
84
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
85
|
+
);
|
|
77
86
|
@if ($tokens != ()) {
|
|
78
87
|
@include token-utils.create-token-values(
|
|
79
|
-
|
|
88
|
+
tokens-mat-divider.$prefix,
|
|
89
|
+
map.get($tokens, tokens-mat-divider.$prefix)
|
|
90
|
+
);
|
|
80
91
|
}
|
|
81
92
|
}
|
|
@@ -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-expansion.$prefix,
|
|
17
|
+
tokens-mat-expansion.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-expansion
|
|
28
|
+
@include token-utils.create-token-values(
|
|
29
|
+
tokens-mat-expansion.$prefix,
|
|
30
|
+
tokens-mat-expansion.get-color-tokens($theme)
|
|
31
|
+
);
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
}
|
|
@@ -34,14 +36,15 @@
|
|
|
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
|
// TODO(mmalerba): Stop calling this and resolve resulting screen diffs.
|
|
40
41
|
$theme: inspection.private-get-typography-back-compat-theme($theme);
|
|
41
42
|
|
|
42
43
|
@include sass-utils.current-selector-or-root() {
|
|
43
|
-
@include token-utils.create-token-values(
|
|
44
|
-
tokens-mat-expansion
|
|
44
|
+
@include token-utils.create-token-values(
|
|
45
|
+
tokens-mat-expansion.$prefix,
|
|
46
|
+
tokens-mat-expansion.get-typography-tokens($theme)
|
|
47
|
+
);
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
}
|
|
@@ -49,28 +52,35 @@
|
|
|
49
52
|
@mixin density($theme) {
|
|
50
53
|
@if inspection.get-theme-version($theme) == 1 {
|
|
51
54
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
52
|
-
}
|
|
53
|
-
@else {
|
|
55
|
+
} @else {
|
|
54
56
|
@include sass-utils.current-selector-or-root() {
|
|
55
|
-
@include token-utils.create-token-values(
|
|
56
|
-
tokens-mat-expansion
|
|
57
|
+
@include token-utils.create-token-values(
|
|
58
|
+
tokens-mat-expansion.$prefix,
|
|
59
|
+
tokens-mat-expansion.get-density-tokens($theme)
|
|
60
|
+
);
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
(
|
|
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-expansion.$prefix,
|
|
70
|
+
tokens: tokens-mat-expansion.get-token-slots(),
|
|
71
|
+
),
|
|
65
72
|
);
|
|
66
73
|
}
|
|
67
74
|
|
|
75
|
+
@mixin overrides($tokens: ()) {
|
|
76
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides()...);
|
|
77
|
+
}
|
|
78
|
+
|
|
68
79
|
@mixin theme($theme) {
|
|
69
80
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-expansion') {
|
|
70
81
|
@if inspection.get-theme-version($theme) == 1 {
|
|
71
82
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
72
|
-
}
|
|
73
|
-
@else {
|
|
83
|
+
} @else {
|
|
74
84
|
@include base($theme);
|
|
75
85
|
@if inspection.theme-has($theme, color) {
|
|
76
86
|
@include color($theme);
|
|
@@ -85,12 +95,14 @@
|
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
|
|
88
|
-
|
|
89
98
|
@mixin _theme-from-tokens($tokens) {
|
|
90
99
|
@include validation.selector-defined(
|
|
91
|
-
|
|
100
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
101
|
+
);
|
|
92
102
|
@if ($tokens != ()) {
|
|
93
103
|
@include token-utils.create-token-values(
|
|
94
|
-
|
|
104
|
+
tokens-mat-expansion.$prefix,
|
|
105
|
+
map.get($tokens, tokens-mat-expansion.$prefix)
|
|
106
|
+
);
|
|
95
107
|
}
|
|
96
108
|
}
|