@angular/material 20.1.0-next.1 → 20.1.0-next.2
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 +28 -37
- package/badge/_badge-theme.scss +35 -44
- package/badge/_m2-badge.scss +3 -2
- package/bottom-sheet/_bottom-sheet-theme.scss +28 -40
- package/bottom-sheet/_m2-bottom-sheet.scss +6 -9
- package/button/_button-theme.scss +37 -55
- package/button/_fab-theme.scss +42 -56
- package/button/_icon-button-theme.scss +30 -48
- package/button/_m2-button.scss +21 -25
- package/button/_m2-fab.scss +5 -5
- package/button/testing/index.d.ts +1 -0
- package/button-toggle/_button-toggle-theme.scss +29 -44
- package/button-toggle/_m2-button-toggle.scss +11 -17
- package/card/_card-theme.scss +28 -36
- package/card/_m2-card.scss +11 -13
- package/checkbox/_checkbox-theme.scss +35 -50
- package/checkbox/_m2-checkbox.scss +6 -5
- package/chips/_chips-theme.scss +24 -30
- package/chips/_m2-chip.scss +6 -5
- package/core/_core-theme.scss +48 -67
- package/core/focus-indicators/_private.scss +2 -5
- package/core/m2/_theming.scss +32 -41
- package/core/option/_m2-optgroup.scss +6 -6
- package/core/option/_m2-option.scss +6 -5
- package/core/option/_optgroup-theme.scss +28 -30
- package/core/option/_option-theme.scss +35 -34
- package/core/ripple/_ripple-theme.scss +28 -33
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +55 -45
- package/core/theming/_all-theme.scss +38 -42
- package/core/theming/_definition.scss +20 -13
- package/core/theming/_inspection.scss +0 -12
- package/core/theming/_m2-inspection.scss +0 -33
- package/core/theming/_theming.scss +4 -172
- package/core/tokens/_m2-utils.scss +5 -65
- package/core/tokens/_m3-utils.scss +2 -14
- package/core/tokens/_token-utils.scss +7 -27
- package/core/tokens/m2/_index.scss +6 -0
- package/core/tokens/m2/_md-sys-color.scss +123 -0
- package/core/tokens/m2/_md-sys-elevation.scss +16 -0
- package/core/tokens/m2/_md-sys-motion.scss +36 -0
- package/core/tokens/m2/_md-sys-shape.scss +22 -0
- package/core/tokens/m2/_md-sys-state.scss +15 -0
- package/core/tokens/m2/_md-sys-typescale.scss +68 -0
- package/core/tokens/m3/_md-sys-color.scss +2 -2
- package/core/tokens/m3/_md-sys-typescale.scss +1 -1
- package/core/tokens/m3/_theme.scss +14 -26
- package/datepicker/_datepicker-theme.scss +38 -40
- package/datepicker/_m2-datepicker.scss +7 -14
- package/dialog/_dialog-theme.scss +28 -34
- package/dialog/_m2-dialog.scss +11 -13
- package/divider/_divider-theme.scss +28 -30
- package/expansion/_expansion-theme.scss +28 -39
- package/expansion/_m2-expansion.scss +11 -10
- package/expansion/_m3-expansion.scss +2 -0
- package/fesm2022/animation-DfMFjxHu.mjs.map +1 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +1 -1
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +7 -4
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +1 -1
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-cKSwHniA.mjs.map +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-K6TQue-Y.mjs.map +1 -1
- package/fesm2022/date-range-input-harness-DEyfkeOs.mjs.map +1 -1
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +1 -1
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-DCNQlTOA.mjs.map +1 -1
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +2 -2
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/{form-field-C9DZXojn.mjs → form-field-CFbrnFED.mjs} +3 -3
- package/fesm2022/form-field-CFbrnFED.mjs.map +1 -0
- package/fesm2022/form-field.mjs +2 -2
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-DxiIc1ex.mjs.map +1 -1
- package/fesm2022/icon-registry-CwOTJ7YM.mjs.map +1 -1
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-BFRo2fUq.mjs.map +1 -1
- package/fesm2022/index-DwiL-HGk.mjs.map +1 -1
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-C5Msdc4-.mjs.map +1 -1
- package/fesm2022/input-value-accessor-D1GvPuqO.mjs.map +1 -1
- package/fesm2022/input.mjs +3 -27
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-D5iFxU6d.mjs.map +1 -1
- package/fesm2022/line-Bz5f9Cyx.mjs.map +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs +97 -13
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +343 -122
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-BDiw_nWS.mjs → module-B0CLRw5e.mjs} +3 -3
- package/fesm2022/module-B0CLRw5e.mjs.map +1 -0
- package/fesm2022/{module-DzZHEh7B.mjs → module-B62K-792.mjs} +2 -2
- package/fesm2022/module-B62K-792.mjs.map +1 -0
- package/fesm2022/module-CWxMD37a.mjs.map +1 -1
- package/fesm2022/module-Ce6F7TNm.mjs.map +1 -1
- package/fesm2022/option-BzhYL_xC.mjs.map +1 -1
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +3 -3
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-DDmgx3P4.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-module-4F8Up4PL.mjs.map +1 -1
- package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-BYgV4oZC.mjs.map +1 -1
- package/fesm2022/ripple-loader-BnMiRtmT.mjs.map +1 -1
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +3 -3
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +2 -2
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +2 -2
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-CObeNzjn.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1 -1
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +35 -51
- package/form-field/_m2-form-field.scss +21 -29
- package/grid-list/_grid-list-theme.scss +28 -28
- package/grid-list/_m2-grid-list.scss +7 -9
- package/icon/_icon-theme.scss +40 -41
- package/input/_input-theme.scss +1 -4
- package/input/index.d.ts +0 -11
- package/list/_list-theme.scss +55 -53
- package/list/_m2-list.scss +16 -26
- package/menu/_m2-menu.scss +6 -6
- package/menu/_menu-theme.scss +28 -33
- package/menu/index.d.ts +145 -61
- package/menu/testing/index.d.ts +50 -2
- package/package.json +2 -2
- package/paginator/_m2-paginator.scss +7 -8
- package/paginator/_paginator-theme.scss +28 -33
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +35 -43
- package/progress-spinner/_progress-spinner-theme.scss +42 -43
- package/radio/_m2-radio.scss +6 -5
- package/radio/_radio-theme.scss +33 -46
- package/schematics/ng-add/index.js +1 -1
- package/select/_m2-select.scss +6 -5
- package/select/_select-theme.scss +38 -51
- package/sidenav/_sidenav-theme.scss +28 -30
- package/slide-toggle/_m2-slide-toggle.scss +45 -58
- package/slide-toggle/_m3-slide-toggle.scss +1 -0
- package/slide-toggle/_slide-toggle-theme.scss +41 -79
- package/slider/_m2-slider.scss +6 -9
- package/slider/_slider-theme.scss +38 -45
- package/snack-bar/_m2-snack-bar.scss +5 -5
- package/snack-bar/_snack-bar-theme.scss +28 -31
- package/sort/_sort-theme.scss +28 -33
- package/stepper/_m2-stepper.scss +10 -13
- package/stepper/_stepper-theme.scss +41 -49
- package/table/_m2-table.scss +16 -23
- package/table/_table-theme.scss +28 -36
- package/tabs/_m2-tabs.scss +6 -5
- package/tabs/_tabs-theme.scss +35 -43
- package/timepicker/_timepicker-theme.scss +28 -46
- package/toolbar/_m2-toolbar.scss +6 -7
- package/toolbar/_toolbar-theme.scss +55 -46
- package/tooltip/_m2-tooltip.scss +5 -6
- package/tooltip/_tooltip-theme.scss +28 -37
- package/tree/_m2-tree.scss +4 -3
- package/tree/_tree-theme.scss +28 -38
- package/core/tokens/_format-tokens.scss +0 -5
- package/fesm2022/form-field-C9DZXojn.mjs.map +0 -1
- package/fesm2022/module-BDiw_nWS.mjs.map +0 -1
- package/fesm2022/module-DzZHEh7B.mjs.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@use '../../theming/palettes';
|
|
2
1
|
@use './md-sys-color';
|
|
3
2
|
@use './md-sys-elevation';
|
|
4
3
|
@use './md-sys-shape';
|
|
@@ -17,31 +16,20 @@
|
|
|
17
16
|
@return $new-map;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
brand: (Roboto),
|
|
30
|
-
plain: (Roboto),
|
|
31
|
-
bold: 700,
|
|
32
|
-
medium: 500,
|
|
33
|
-
regular: 400
|
|
34
|
-
))),
|
|
35
|
-
'md-sys-elevation': _create-system-app-vars-map(md-sys-elevation.md-sys-elevation-values()),
|
|
36
|
-
'md-sys-state': _create-system-app-vars-map(md-sys-state.md-sys-state-values()),
|
|
37
|
-
'md-sys-shape': _create-system-app-vars-map(md-sys-shape.md-sys-shape-values()),
|
|
38
|
-
// Add a subset of palette-specific colors used by components instead of system values
|
|
39
|
-
'md-ref-palette': _create-system-app-vars-map(
|
|
40
|
-
(
|
|
41
|
-
neutral10: '', // Form field native select option text color
|
|
42
|
-
neutral-variant20: '', // Sidenav scrim (container background shadow when opened),
|
|
43
|
-
)
|
|
19
|
+
$_sys-maps: (
|
|
20
|
+
md-sys-color.md-sys-color-values-light(),
|
|
21
|
+
md-sys-typescale.md-sys-typescale-values(),
|
|
22
|
+
md-sys-elevation.md-sys-elevation-values(),
|
|
23
|
+
md-sys-state.md-sys-state-values(),
|
|
24
|
+
md-sys-shape.md-sys-shape-values(),
|
|
25
|
+
(
|
|
26
|
+
neutral10: '', // Form field native select option text color
|
|
27
|
+
neutral-variant20: '', // Sidenav scrim (container background shadow when opened),
|
|
44
28
|
),
|
|
45
29
|
);
|
|
46
30
|
|
|
47
|
-
$
|
|
31
|
+
$_system: ();
|
|
32
|
+
@each $sys-map in $_sys-maps {
|
|
33
|
+
$_system: map.merge($_system, _create-system-app-vars-map($sys-map));
|
|
34
|
+
}
|
|
35
|
+
$sys-theme: (_mat-system: $_system);
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use './m2-datepicker';
|
|
4
4
|
@use './m3-datepicker';
|
|
5
|
-
@use '../core/theming/theming';
|
|
6
5
|
@use '../core/theming/inspection';
|
|
7
6
|
@use '../core/tokens/token-utils';
|
|
8
|
-
@use '../core/style/sass-utils';
|
|
9
7
|
@use '../core/typography/typography';
|
|
10
8
|
@use '../button/icon-button-theme';
|
|
11
9
|
|
|
@@ -13,37 +11,35 @@
|
|
|
13
11
|
/// for the mat-datepicker.
|
|
14
12
|
/// @param {Map} $theme The theme to generate base styles for.
|
|
15
13
|
@mixin base($theme) {
|
|
14
|
+
$tokens: m2-datepicker.get-unthemable-tokens();
|
|
16
15
|
@if inspection.get-theme-version($theme) == 1 {
|
|
17
|
-
|
|
18
|
-
} @else {
|
|
19
|
-
@include sass-utils.current-selector-or-root() {
|
|
20
|
-
@include token-utils.create-token-values-mixed(m2-datepicker.get-unthemable-tokens());
|
|
21
|
-
}
|
|
16
|
+
$tokens: map.get(m3-datepicker.get-tokens($theme), base);
|
|
22
17
|
}
|
|
18
|
+
|
|
19
|
+
@include token-utils.values($tokens);
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
/// Outputs color theme styles for the mat-datepicker.
|
|
26
23
|
/// @param {Map} $theme The theme to generate color styles for.
|
|
27
24
|
/// @param {String} $color-variant The color variant to use for the component (M3 only)
|
|
28
25
|
@mixin color($theme, $color-variant: null) {
|
|
26
|
+
$tokens: m2-datepicker.get-color-tokens($theme, primary);
|
|
29
27
|
@if inspection.get-theme-version($theme) == 1 {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} @else {
|
|
33
|
-
@include sass-utils.current-selector-or-root() {
|
|
34
|
-
@include token-utils.create-token-values-mixed(
|
|
35
|
-
m2-datepicker.get-color-tokens($theme, primary));
|
|
36
|
-
}
|
|
28
|
+
$tokens: map.get(m3-datepicker.get-tokens($theme, $color-variant), color);
|
|
29
|
+
}
|
|
37
30
|
|
|
31
|
+
@include token-utils.values($tokens);
|
|
32
|
+
|
|
33
|
+
@if inspection.get-theme-version($theme) != 1 {
|
|
38
34
|
.mat-datepicker-content, .mat-datepicker-toggle-active {
|
|
39
35
|
&.mat-accent {
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
$tokens: m2-datepicker.get-color-tokens($theme, secondary);
|
|
37
|
+
@include token-utils.values($tokens);
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
&.mat-warn {
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
$tokens: m2-datepicker.get-color-tokens($theme, error);
|
|
42
|
+
@include token-utils.values($tokens);
|
|
47
43
|
}
|
|
48
44
|
}
|
|
49
45
|
}
|
|
@@ -52,13 +48,12 @@
|
|
|
52
48
|
/// Outputs typography theme styles for the mat-datepicker.
|
|
53
49
|
/// @param {Map} $theme The theme to generate typography styles for.
|
|
54
50
|
@mixin typography($theme) {
|
|
51
|
+
$tokens: m2-datepicker.get-typography-tokens($theme);
|
|
55
52
|
@if inspection.get-theme-version($theme) == 1 {
|
|
56
|
-
|
|
57
|
-
} @else {
|
|
58
|
-
@include sass-utils.current-selector-or-root() {
|
|
59
|
-
@include token-utils.create-token-values-mixed(m2-datepicker.get-typography-tokens($theme));
|
|
60
|
-
}
|
|
53
|
+
$tokens: map.get(m3-datepicker.get-tokens($theme), typography);
|
|
61
54
|
}
|
|
55
|
+
|
|
56
|
+
@include token-utils.values($tokens);
|
|
62
57
|
}
|
|
63
58
|
|
|
64
59
|
@mixin date-range-colors(
|
|
@@ -78,9 +73,14 @@
|
|
|
78
73
|
/// Outputs density theme styles for the mat-datepicker.
|
|
79
74
|
/// @param {Map} $theme The theme to generate density styles for.
|
|
80
75
|
@mixin density($theme) {
|
|
76
|
+
$tokens: m2-datepicker.get-density-tokens($theme);
|
|
81
77
|
@if inspection.get-theme-version($theme) == 1 {
|
|
82
|
-
|
|
83
|
-
}
|
|
78
|
+
$tokens: map.get(m3-datepicker.get-tokens($theme), density);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include token-utils.values($tokens);
|
|
82
|
+
|
|
83
|
+
@if inspection.get-theme-version($theme) != 1 {
|
|
84
84
|
// TODO(crisbeto): move this into the structural styles
|
|
85
85
|
// once the icon button density is switched to tokens.
|
|
86
86
|
|
|
@@ -112,23 +112,21 @@
|
|
|
112
112
|
/// @param {Map} $theme The theme to generate styles for.
|
|
113
113
|
/// @param {String} $color-variant The color variant to use for the component (M3 only)
|
|
114
114
|
@mixin theme($theme, $color-variant: null) {
|
|
115
|
-
@
|
|
116
|
-
@
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
116
|
+
@include base($theme);
|
|
117
|
+
@include color($theme, $color-variant);
|
|
118
|
+
@include density($theme);
|
|
119
|
+
@include typography($theme);
|
|
120
|
+
} @else {
|
|
121
|
+
@include base($theme);
|
|
122
|
+
@if inspection.theme-has($theme, color) {
|
|
123
|
+
@include color($theme);
|
|
124
|
+
}
|
|
125
|
+
@if inspection.theme-has($theme, density) {
|
|
119
126
|
@include density($theme);
|
|
127
|
+
}
|
|
128
|
+
@if inspection.theme-has($theme, typography) {
|
|
120
129
|
@include typography($theme);
|
|
121
|
-
} @else {
|
|
122
|
-
@include base($theme);
|
|
123
|
-
@if inspection.theme-has($theme, color) {
|
|
124
|
-
@include color($theme);
|
|
125
|
-
}
|
|
126
|
-
@if inspection.theme-has($theme, density) {
|
|
127
|
-
@include density($theme);
|
|
128
|
-
}
|
|
129
|
-
@if inspection.theme-has($theme, typography) {
|
|
130
|
-
@include typography($theme);
|
|
131
|
-
}
|
|
132
130
|
}
|
|
133
131
|
}
|
|
134
132
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
|
-
@use '../core/theming/inspection';
|
|
3
2
|
@use '../core/style/elevation';
|
|
4
3
|
@use '../core/tokens/m3-utils';
|
|
5
4
|
@use '../core/tokens/m2-utils';
|
|
@@ -65,27 +64,21 @@
|
|
|
65
64
|
|
|
66
65
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
67
66
|
@function get-typography-tokens($theme) {
|
|
67
|
+
$system: m2-utils.get-system($theme);
|
|
68
68
|
@return (
|
|
69
69
|
// TODO(crisbeto): the typography tokens for other components set every typography dimension of
|
|
70
70
|
// an element (e.g. size, weight, line height, letter spacing). These tokens only set the values
|
|
71
71
|
// that were set in the previous theming API to reduce the amount of subtle screenshot
|
|
72
72
|
// differences. We should look into introducing the other tokens in a follow-up.
|
|
73
|
-
datepicker-calendar-text-font:
|
|
73
|
+
datepicker-calendar-text-font: map.get($system, body-large-font),
|
|
74
74
|
datepicker-calendar-text-size: 13px,
|
|
75
|
-
|
|
76
|
-
datepicker-calendar-body-label-text-
|
|
77
|
-
|
|
78
|
-
datepicker-calendar-
|
|
79
|
-
inspection.get-theme-typography($theme, button, font-weight),
|
|
80
|
-
|
|
81
|
-
datepicker-calendar-period-button-text-size:
|
|
82
|
-
inspection.get-theme-typography($theme, button, font-size),
|
|
83
|
-
datepicker-calendar-period-button-text-weight:
|
|
84
|
-
inspection.get-theme-typography($theme, button, font-weight),
|
|
85
|
-
|
|
75
|
+
datepicker-calendar-body-label-text-size: map.get($system, label-small-size),
|
|
76
|
+
datepicker-calendar-body-label-text-weight: map.get($system, label-small-weight),
|
|
77
|
+
datepicker-calendar-period-button-text-size: map.get($system, label-small-size),
|
|
78
|
+
datepicker-calendar-period-button-text-weight: map.get($system, label-small-weight),
|
|
86
79
|
datepicker-calendar-header-text-size: 11px,
|
|
87
80
|
datepicker-calendar-header-text-weight:
|
|
88
|
-
|
|
81
|
+
map.get($system, body-large-weight),
|
|
89
82
|
);
|
|
90
83
|
}
|
|
91
84
|
|
|
@@ -1,48 +1,44 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../core/style/sass-utils';
|
|
3
2
|
@use './m2-dialog';
|
|
4
3
|
@use './m3-dialog';
|
|
5
4
|
@use '../core/tokens/token-utils';
|
|
6
|
-
@use '../core/theming/theming';
|
|
7
5
|
@use '../core/theming/inspection';
|
|
8
6
|
@use '../core/typography/typography';
|
|
9
7
|
|
|
10
8
|
@mixin base($theme) {
|
|
9
|
+
$tokens: m2-dialog.get-unthemable-tokens();
|
|
11
10
|
@if inspection.get-theme-version($theme) == 1 {
|
|
12
|
-
|
|
13
|
-
} @else {
|
|
14
|
-
// Add default values for tokens not related to color, typography, or density.
|
|
15
|
-
@include sass-utils.current-selector-or-root() {
|
|
16
|
-
@include token-utils.create-token-values-mixed(m2-dialog.get-unthemable-tokens());
|
|
17
|
-
}
|
|
11
|
+
$tokens: map.get(m3-dialog.get-tokens($theme), base);
|
|
18
12
|
}
|
|
13
|
+
|
|
14
|
+
@include token-utils.values($tokens);
|
|
19
15
|
}
|
|
20
16
|
|
|
21
17
|
@mixin color($theme) {
|
|
18
|
+
$tokens: m2-dialog.get-color-tokens($theme);
|
|
22
19
|
@if inspection.get-theme-version($theme) == 1 {
|
|
23
|
-
|
|
24
|
-
} @else {
|
|
25
|
-
@include sass-utils.current-selector-or-root() {
|
|
26
|
-
@include token-utils.create-token-values-mixed(m2-dialog.get-color-tokens($theme));
|
|
27
|
-
}
|
|
20
|
+
$tokens: map.get(m3-dialog.get-tokens($theme), color);
|
|
28
21
|
}
|
|
22
|
+
|
|
23
|
+
@include token-utils.values($tokens);
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
@mixin typography($theme) {
|
|
27
|
+
$tokens: m2-dialog.get-typography-tokens($theme);
|
|
32
28
|
@if inspection.get-theme-version($theme) == 1 {
|
|
33
|
-
|
|
34
|
-
} @else {
|
|
35
|
-
@include sass-utils.current-selector-or-root() {
|
|
36
|
-
@include token-utils.create-token-values-mixed(m2-dialog.get-typography-tokens($theme));
|
|
37
|
-
}
|
|
29
|
+
$tokens: map.get(m3-dialog.get-tokens($theme), typography);
|
|
38
30
|
}
|
|
31
|
+
|
|
32
|
+
@include token-utils.values($tokens);
|
|
39
33
|
}
|
|
40
34
|
|
|
41
35
|
@mixin density($theme) {
|
|
36
|
+
$tokens: m2-dialog.get-density-tokens($theme);
|
|
42
37
|
@if inspection.get-theme-version($theme) == 1 {
|
|
43
|
-
|
|
44
|
-
} @else {
|
|
38
|
+
$tokens: map.get(m3-dialog.get-tokens($theme), density);
|
|
45
39
|
}
|
|
40
|
+
|
|
41
|
+
@include token-utils.values($tokens);
|
|
46
42
|
}
|
|
47
43
|
|
|
48
44
|
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
@@ -60,23 +56,21 @@
|
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
@mixin theme($theme) {
|
|
63
|
-
@
|
|
64
|
-
@
|
|
65
|
-
|
|
59
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
60
|
+
@include base($theme);
|
|
61
|
+
@include color($theme);
|
|
62
|
+
@include density($theme);
|
|
63
|
+
@include typography($theme);
|
|
64
|
+
} @else {
|
|
65
|
+
@include base($theme);
|
|
66
|
+
@if inspection.theme-has($theme, color) {
|
|
66
67
|
@include color($theme);
|
|
68
|
+
}
|
|
69
|
+
@if inspection.theme-has($theme, density) {
|
|
67
70
|
@include density($theme);
|
|
71
|
+
}
|
|
72
|
+
@if inspection.theme-has($theme, typography) {
|
|
68
73
|
@include typography($theme);
|
|
69
|
-
} @else {
|
|
70
|
-
@include base($theme);
|
|
71
|
-
@if inspection.theme-has($theme, color) {
|
|
72
|
-
@include color($theme);
|
|
73
|
-
}
|
|
74
|
-
@if inspection.theme-has($theme, density) {
|
|
75
|
-
@include density($theme);
|
|
76
|
-
}
|
|
77
|
-
@if inspection.theme-has($theme, typography) {
|
|
78
|
-
@include typography($theme);
|
|
79
|
-
}
|
|
80
74
|
}
|
|
81
75
|
}
|
|
82
76
|
}
|
package/dialog/_m2-dialog.scss
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use '../core/style/elevation';
|
|
2
|
-
@use '../core/theming/inspection';
|
|
3
2
|
@use '../core/tokens/m2-utils';
|
|
4
3
|
@use 'sass:map';
|
|
5
4
|
|
|
@@ -35,19 +34,18 @@
|
|
|
35
34
|
|
|
36
35
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
37
36
|
@function get-typography-tokens($theme) {
|
|
37
|
+
$system: m2-utils.get-system($theme);
|
|
38
38
|
@return (
|
|
39
|
-
dialog-subhead-font:
|
|
40
|
-
dialog-subhead-line-height:
|
|
41
|
-
dialog-subhead-size:
|
|
42
|
-
dialog-subhead-weight:
|
|
43
|
-
dialog-subhead-tracking:
|
|
44
|
-
dialog-supporting-text-font:
|
|
45
|
-
dialog-supporting-text-line-height:
|
|
46
|
-
|
|
47
|
-
dialog-supporting-text-
|
|
48
|
-
dialog-supporting-text-
|
|
49
|
-
dialog-supporting-text-tracking:
|
|
50
|
-
inspection.get-theme-typography($theme, body-1, letter-spacing),
|
|
39
|
+
dialog-subhead-font: map.get($system, title-small-font),
|
|
40
|
+
dialog-subhead-line-height: map.get($system, title-small-line-height),
|
|
41
|
+
dialog-subhead-size: map.get($system, title-small-size),
|
|
42
|
+
dialog-subhead-weight: map.get($system, title-small-weight),
|
|
43
|
+
dialog-subhead-tracking: map.get($system, title-small-tracking),
|
|
44
|
+
dialog-supporting-text-font: map.get($system, body-large-font),
|
|
45
|
+
dialog-supporting-text-line-height: map.get($system, body-large-line-height),
|
|
46
|
+
dialog-supporting-text-size: map.get($system, body-large-size),
|
|
47
|
+
dialog-supporting-text-weight: map.get($system, body-large-weight),
|
|
48
|
+
dialog-supporting-text-tracking: map.get($system, body-large-tracking),
|
|
51
49
|
);
|
|
52
50
|
}
|
|
53
51
|
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../core/style/sass-utils';
|
|
3
|
-
@use '../core/theming/theming';
|
|
4
2
|
@use '../core/theming/inspection';
|
|
5
3
|
@use '../core/tokens/token-utils';
|
|
6
4
|
@use './m2-divider';
|
|
7
5
|
@use './m3-divider';
|
|
8
6
|
|
|
9
7
|
@mixin base($theme) {
|
|
8
|
+
$tokens: m2-divider.get-unthemable-tokens();
|
|
10
9
|
@if inspection.get-theme-version($theme) == 1 {
|
|
11
|
-
|
|
12
|
-
} @else {
|
|
13
|
-
@include sass-utils.current-selector-or-root() {
|
|
14
|
-
@include token-utils.create-token-values-mixed(m2-divider.get-unthemable-tokens());
|
|
15
|
-
}
|
|
10
|
+
$tokens: map.get(m3-divider.get-tokens($theme), base);
|
|
16
11
|
}
|
|
12
|
+
|
|
13
|
+
@include token-utils.values($tokens);
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
@mixin color($theme) {
|
|
17
|
+
$tokens: m2-divider.get-color-tokens($theme);
|
|
20
18
|
@if inspection.get-theme-version($theme) == 1 {
|
|
21
|
-
|
|
22
|
-
} @else {
|
|
23
|
-
@include sass-utils.current-selector-or-root() {
|
|
24
|
-
@include token-utils.create-token-values-mixed(m2-divider.get-color-tokens($theme));
|
|
25
|
-
}
|
|
19
|
+
$tokens: map.get(m3-divider.get-tokens($theme), color);
|
|
26
20
|
}
|
|
21
|
+
|
|
22
|
+
@include token-utils.values($tokens);
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
@mixin typography($theme) {
|
|
26
|
+
$tokens: m2-divider.get-typography-tokens($theme);
|
|
30
27
|
@if inspection.get-theme-version($theme) == 1 {
|
|
31
|
-
|
|
32
|
-
} @else {
|
|
28
|
+
$tokens: map.get(m3-divider.get-tokens($theme), typography);
|
|
33
29
|
}
|
|
30
|
+
|
|
31
|
+
@include token-utils.values($tokens);
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
@mixin density($theme) {
|
|
35
|
+
$tokens: m2-divider.get-density-tokens($theme);
|
|
37
36
|
@if inspection.get-theme-version($theme) == 1 {
|
|
38
|
-
|
|
39
|
-
} @else {
|
|
37
|
+
$tokens: map.get(m3-divider.get-tokens($theme), density);
|
|
40
38
|
}
|
|
39
|
+
|
|
40
|
+
@include token-utils.values($tokens);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
@@ -55,23 +55,21 @@
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
@mixin theme($theme) {
|
|
58
|
-
@
|
|
59
|
-
@
|
|
60
|
-
|
|
58
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
59
|
+
@include base($theme);
|
|
60
|
+
@include color($theme);
|
|
61
|
+
@include density($theme);
|
|
62
|
+
@include typography($theme);
|
|
63
|
+
} @else {
|
|
64
|
+
@include base($theme);
|
|
65
|
+
@if inspection.theme-has($theme, color) {
|
|
61
66
|
@include color($theme);
|
|
67
|
+
}
|
|
68
|
+
@if inspection.theme-has($theme, density) {
|
|
62
69
|
@include density($theme);
|
|
70
|
+
}
|
|
71
|
+
@if inspection.theme-has($theme, typography) {
|
|
63
72
|
@include typography($theme);
|
|
64
|
-
} @else {
|
|
65
|
-
@include base($theme);
|
|
66
|
-
@if inspection.theme-has($theme, color) {
|
|
67
|
-
@include color($theme);
|
|
68
|
-
}
|
|
69
|
-
@if inspection.theme-has($theme, density) {
|
|
70
|
-
@include density($theme);
|
|
71
|
-
}
|
|
72
|
-
@if inspection.theme-has($theme, typography) {
|
|
73
|
-
@include typography($theme);
|
|
74
|
-
}
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
}
|
|
@@ -1,53 +1,44 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '../core/theming/theming';
|
|
3
2
|
@use '../core/theming/inspection';
|
|
4
3
|
@use '../core/typography/typography';
|
|
5
|
-
@use '../core/style/sass-utils';
|
|
6
4
|
@use '../core/tokens/token-utils';
|
|
7
5
|
@use './m2-expansion';
|
|
8
6
|
@use './m3-expansion';
|
|
9
7
|
|
|
10
8
|
@mixin base($theme) {
|
|
9
|
+
$tokens: m2-expansion.get-unthemable-tokens();
|
|
11
10
|
@if inspection.get-theme-version($theme) == 1 {
|
|
12
|
-
|
|
13
|
-
} @else {
|
|
14
|
-
@include sass-utils.current-selector-or-root() {
|
|
15
|
-
@include token-utils.create-token-values-mixed(m2-expansion.get-unthemable-tokens());
|
|
16
|
-
}
|
|
11
|
+
$tokens: map.get(m3-expansion.get-tokens($theme), base);
|
|
17
12
|
}
|
|
13
|
+
|
|
14
|
+
@include token-utils.values($tokens);
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
@mixin color($theme) {
|
|
18
|
+
$tokens: m2-expansion.get-color-tokens($theme);
|
|
21
19
|
@if inspection.get-theme-version($theme) == 1 {
|
|
22
|
-
|
|
23
|
-
} @else {
|
|
24
|
-
@include sass-utils.current-selector-or-root() {
|
|
25
|
-
@include token-utils.create-token-values-mixed(m2-expansion.get-color-tokens($theme));
|
|
26
|
-
}
|
|
20
|
+
$tokens: map.get(m3-expansion.get-tokens($theme), color);
|
|
27
21
|
}
|
|
22
|
+
|
|
23
|
+
@include token-utils.values($tokens);
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
@mixin typography($theme) {
|
|
27
|
+
$tokens: m2-expansion.get-typography-tokens($theme);
|
|
31
28
|
@if inspection.get-theme-version($theme) == 1 {
|
|
32
|
-
|
|
33
|
-
} @else {
|
|
34
|
-
// TODO(mmalerba): Stop calling this and resolve resulting screen diffs.
|
|
35
|
-
$theme: inspection.private-get-typography-back-compat-theme($theme);
|
|
36
|
-
|
|
37
|
-
@include sass-utils.current-selector-or-root() {
|
|
38
|
-
@include token-utils.create-token-values-mixed(m2-expansion.get-typography-tokens($theme));
|
|
39
|
-
}
|
|
29
|
+
$tokens: map.get(m3-expansion.get-tokens($theme), typography);
|
|
40
30
|
}
|
|
31
|
+
|
|
32
|
+
@include token-utils.values($tokens);
|
|
41
33
|
}
|
|
42
34
|
|
|
43
35
|
@mixin density($theme) {
|
|
36
|
+
$tokens: m2-expansion.get-density-tokens($theme);
|
|
44
37
|
@if inspection.get-theme-version($theme) == 1 {
|
|
45
|
-
|
|
46
|
-
} @else {
|
|
47
|
-
@include sass-utils.current-selector-or-root() {
|
|
48
|
-
@include token-utils.create-token-values-mixed(m2-expansion.get-density-tokens($theme));
|
|
49
|
-
}
|
|
38
|
+
$tokens: map.get(m3-expansion.get-tokens($theme), density);
|
|
50
39
|
}
|
|
40
|
+
|
|
41
|
+
@include token-utils.values($tokens);
|
|
51
42
|
}
|
|
52
43
|
|
|
53
44
|
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
@@ -65,23 +56,21 @@
|
|
|
65
56
|
}
|
|
66
57
|
|
|
67
58
|
@mixin theme($theme) {
|
|
68
|
-
@
|
|
69
|
-
@
|
|
70
|
-
|
|
59
|
+
@if inspection.get-theme-version($theme) == 1 {
|
|
60
|
+
@include base($theme);
|
|
61
|
+
@include color($theme);
|
|
62
|
+
@include density($theme);
|
|
63
|
+
@include typography($theme);
|
|
64
|
+
} @else {
|
|
65
|
+
@include base($theme);
|
|
66
|
+
@if inspection.theme-has($theme, color) {
|
|
71
67
|
@include color($theme);
|
|
68
|
+
}
|
|
69
|
+
@if inspection.theme-has($theme, density) {
|
|
72
70
|
@include density($theme);
|
|
71
|
+
}
|
|
72
|
+
@if inspection.theme-has($theme, typography) {
|
|
73
73
|
@include typography($theme);
|
|
74
|
-
} @else {
|
|
75
|
-
@include base($theme);
|
|
76
|
-
@if inspection.theme-has($theme, color) {
|
|
77
|
-
@include color($theme);
|
|
78
|
-
}
|
|
79
|
-
@if inspection.theme-has($theme, density) {
|
|
80
|
-
@include density($theme);
|
|
81
|
-
}
|
|
82
|
-
@if inspection.theme-has($theme, typography) {
|
|
83
|
-
@include typography($theme);
|
|
84
|
-
}
|
|
85
74
|
}
|
|
86
75
|
}
|
|
87
76
|
}
|
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
@use '../core/theming/inspection';
|
|
4
4
|
@use '../core/tokens/m2-utils';
|
|
5
5
|
@use '../core/tokens/m3-utils';
|
|
6
|
+
@use '../core/style/elevation';
|
|
6
7
|
|
|
7
8
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
8
9
|
// but may be in a future version of the theming API.
|
|
9
10
|
@function get-unthemable-tokens() {
|
|
10
11
|
@return (
|
|
11
12
|
expansion-container-shape: 4px,
|
|
13
|
+
expansion-container-elevation-shadow: elevation.get-box-shadow(2),
|
|
12
14
|
expansion-legacy-header-indicator-display: inline-block,
|
|
13
15
|
expansion-header-indicator-display: none,
|
|
14
16
|
);
|
|
@@ -35,10 +37,11 @@
|
|
|
35
37
|
|
|
36
38
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
37
39
|
@function get-typography-tokens($theme) {
|
|
40
|
+
$system: m2-utils.get-system($theme);
|
|
38
41
|
@return (
|
|
39
|
-
expansion-header-text-font:
|
|
40
|
-
expansion-header-text-size:
|
|
41
|
-
expansion-header-text-weight:
|
|
42
|
+
expansion-header-text-font: map.get($system, label-medium-font),
|
|
43
|
+
expansion-header-text-size: map.get($system, label-medium-size),
|
|
44
|
+
expansion-header-text-weight: map.get($system, label-medium-weight),
|
|
42
45
|
|
|
43
46
|
// TODO(crisbeto): these two properties weren't set at all before the introduction of tokens,
|
|
44
47
|
// but it's inconsistent not to provide them since the container sets all of them. Eventually
|
|
@@ -46,13 +49,11 @@
|
|
|
46
49
|
expansion-header-text-line-height: inherit,
|
|
47
50
|
expansion-header-text-tracking: inherit,
|
|
48
51
|
|
|
49
|
-
expansion-container-text-font:
|
|
50
|
-
expansion-container-text-line-height:
|
|
51
|
-
|
|
52
|
-
expansion-container-text-
|
|
53
|
-
expansion-container-text-
|
|
54
|
-
inspection.get-theme-typography($theme, body-2, letter-spacing),
|
|
55
|
-
expansion-container-text-weight: inspection.get-theme-typography($theme, body-2, font-weight),
|
|
52
|
+
expansion-container-text-font: map.get($system, body-medium-font),
|
|
53
|
+
expansion-container-text-line-height: map.get($system, body-medium-line-height),
|
|
54
|
+
expansion-container-text-size: map.get($system, body-medium-size),
|
|
55
|
+
expansion-container-text-tracking: map.get($system, body-medium-tracking),
|
|
56
|
+
expansion-container-text-weight: map.get($system, body-medium-weight),
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
59
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../core/theming/theming';
|
|
5
5
|
@use '../core/theming/inspection';
|
|
6
6
|
@use '../core/tokens/m3';
|
|
7
|
+
@use '../core/style/elevation';
|
|
7
8
|
|
|
8
9
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
9
10
|
$prefix: (mat, expansion);
|
|
@@ -17,6 +18,7 @@ $prefix: (mat, expansion);
|
|
|
17
18
|
expansion-container-shape: 12px,
|
|
18
19
|
expansion-header-indicator-display: inline-block,
|
|
19
20
|
expansion-legacy-header-indicator-display: none,
|
|
21
|
+
expansion-container-elevation-shadow: elevation.get-box-shadow(2),
|
|
20
22
|
),
|
|
21
23
|
color: (
|
|
22
24
|
expansion-actions-divider-color: map.get($system, outline),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animation-DfMFjxHu.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"animation-DfMFjxHu.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/src/material/core/animation/animation.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {MediaMatcher} from '@angular/cdk/layout';\nimport {ANIMATION_MODULE_TYPE, inject, InjectionToken} from '@angular/core';\n\n/** Object used to configure the animation in Angular Material. */\nexport interface AnimationsConfig {\n /** Whether all animations should be disabled. */\n animationsDisabled?: boolean;\n}\n\n/** Injection token used to configure the animations in Angular Material. */\nexport const MATERIAL_ANIMATIONS = new InjectionToken<AnimationsConfig>('MATERIAL_ANIMATIONS');\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationCurves {\n static STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';\n static DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';\n static ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';\n static SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';\n}\n\n/**\n * @deprecated No longer used, will be removed.\n * @breaking-change 21.0.0\n * @docs-private\n */\nexport class AnimationDurations {\n static COMPLEX = '375ms';\n static ENTERING = '225ms';\n static EXITING = '195ms';\n}\n\n/**\n * Returns whether animations have been disabled by DI. Must be called in a DI context.\n * @docs-private\n */\nexport function _animationsDisabled(): boolean {\n if (\n inject(MATERIAL_ANIMATIONS, {optional: true})?.animationsDisabled ||\n inject(ANIMATION_MODULE_TYPE, {optional: true}) === 'NoopAnimations'\n ) {\n return true;\n }\n\n const mediaMatcher = inject(MediaMatcher);\n return mediaMatcher.matchMedia('(prefers-reduced-motion)').matches;\n}\n"],"names":[],"mappings":";;;AAiBA;MACa,mBAAmB,GAAG,IAAI,cAAc,CAAmB,qBAAqB;AAE7F;;;;AAIG;MACU,eAAe,CAAA;AAC1B,IAAA,OAAO,cAAc,GAAG,6BAA6B;AACrD,IAAA,OAAO,kBAAkB,GAAG,6BAA6B;AACzD,IAAA,OAAO,kBAAkB,GAAG,2BAA2B;AACvD,IAAA,OAAO,WAAW,GAAG,6BAA6B;;AAGpD;;;;AAIG;MACU,kBAAkB,CAAA;AAC7B,IAAA,OAAO,OAAO,GAAG,OAAO;AACxB,IAAA,OAAO,QAAQ,GAAG,OAAO;AACzB,IAAA,OAAO,OAAO,GAAG,OAAO;;AAG1B;;;AAGG;SACa,mBAAmB,GAAA;IACjC,IACE,MAAM,CAAC,mBAAmB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,kBAAkB;AACjE,QAAA,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,KAAK,gBAAgB,EACpE;AACA,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IACzC,OAAO,YAAY,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,OAAO;AACpE;;;;"}
|