@angular/material 20.0.0-next.1 → 20.0.0-next.3
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/autocomplete/_autocomplete-theme.scss +4 -4
- package/autocomplete/index.d.ts +9 -4
- package/badge/_badge-theme.scss +5 -5
- package/badge/index.d.ts +2 -2
- package/badge/testing/index.d.ts +1 -1
- package/{badge.d-49a8a74b.d.ts → badge.d-d42103d0.d.ts} +1 -1
- package/bottom-sheet/_bottom-sheet-theme.scss +3 -3
- package/bottom-sheet/index.d.ts +1 -0
- package/button/_button-theme.scss +84 -32
- package/button/_fab-theme.scss +13 -13
- package/button/_icon-button-theme.scss +5 -5
- package/button/index.d.ts +4 -4
- package/button/testing/index.d.ts +9 -2
- package/button-toggle/_button-toggle-theme.scss +8 -8
- package/button-toggle/index.d.ts +4 -4
- package/button-toggle/testing/index.d.ts +1 -1
- package/{button-toggle.d-edc8acff.d.ts → button-toggle.d-e3ddc80f.d.ts} +1 -1
- package/card/_card-theme.scss +12 -12
- package/checkbox/_checkbox-theme.scss +10 -10
- package/checkbox/index.d.ts +1 -1
- package/chips/_chips-theme.scss +14 -14
- package/chips/index.d.ts +13 -3
- package/core/_core-theme.scss +2 -2
- package/core/index.d.ts +11 -6
- package/core/option/_optgroup-theme.scss +2 -2
- package/core/option/_option-theme.scss +4 -4
- package/core/ripple/_ripple-theme.scss +3 -3
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +4 -4
- package/core/theming/_color-api-backwards-compatibility.scss +19 -8
- package/core/tokens/_density.scss +3 -0
- package/core/tokens/_token-definition.scss +1 -2
- package/core/tokens/_token-utils.scss +20 -5
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m2/mat/_tonal-button.scss +110 -0
- package/core/tokens/m3/_index.scss +2 -0
- package/core/tokens/m3/definitions/_index.scss +1 -1
- package/core/tokens/m3/definitions/_md-comp-elevated-card.scss +3 -1
- package/core/tokens/m3/definitions/_md-sys-color.scss +44 -2
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +20 -1
- package/core/tokens/m3/mat/_tonal-button.scss +101 -0
- package/datepicker/_datepicker-theme.scss +8 -7
- package/datepicker/index.d.ts +5 -4
- package/dialog/_dialog-theme.scss +6 -6
- package/dialog/index.d.ts +2 -2
- package/dialog/testing/index.d.ts +1 -1
- package/{dialog.d-57867441.d.ts → dialog.d-4ffbd89c.d.ts} +1 -1
- package/divider/_divider-theme.scss +2 -2
- package/expansion/_expansion-theme.scss +4 -4
- package/fesm2022/animation-5f89c9a6.mjs +33 -0
- package/fesm2022/animation-5f89c9a6.mjs.map +1 -0
- package/fesm2022/autocomplete/testing.mjs +2 -2
- package/fesm2022/autocomplete.mjs +16 -10
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +5 -4
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +5 -2
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +34 -15
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +7 -6
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +6 -5
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +7 -6
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs +7 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +32 -16
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core/testing.mjs +2 -2
- package/fesm2022/core.mjs +10 -31
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{date-range-input-harness-ee47cdb0.mjs → date-range-input-harness-3718a667.mjs} +2 -2
- package/fesm2022/date-range-input-harness-3718a667.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +3 -3
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +17 -14
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +2 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +2 -1
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +1 -1
- package/fesm2022/{divider-harness-3394f29a.mjs → divider-harness-8099453f.mjs} +1 -1
- package/fesm2022/divider-harness-8099453f.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +3 -2
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +1 -1
- package/fesm2022/form-field/testing.mjs +6 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/{form-field-6d755764.mjs → form-field-8a19bb72.mjs} +4 -4
- package/fesm2022/form-field-8a19bb72.mjs.map +1 -0
- package/fesm2022/{form-field-control-harness-af6fd278.mjs → form-field-control-harness-efefd4cf.mjs} +1 -1
- package/fesm2022/form-field-control-harness-efefd4cf.mjs.map +1 -0
- package/fesm2022/form-field.mjs +3 -2
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/icon-button-b4a4e8c0.mjs +212 -0
- package/fesm2022/icon-button-b4a4e8c0.mjs.map +1 -0
- package/fesm2022/{index-1763d3a6.mjs → index-26a22e6d.mjs} +4 -4
- package/fesm2022/{index-1763d3a6.mjs.map → index-26a22e6d.mjs.map} +1 -1
- package/fesm2022/{index-4bc1d6d3.mjs → index-8309af79.mjs} +2 -2
- package/fesm2022/{index-4bc1d6d3.mjs.map → index-8309af79.mjs.map} +1 -1
- package/fesm2022/input/testing.mjs +2 -2
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/{input-harness-ed59decc.mjs → input-harness-e68bb132.mjs} +2 -2
- package/fesm2022/input-harness-e68bb132.mjs.map +1 -0
- package/fesm2022/input.mjs +4 -3
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list/testing.mjs +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +7 -8
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +7 -5
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-d757bba0.mjs → module-47679371.mjs} +2 -2
- package/fesm2022/{module-d757bba0.mjs.map → module-47679371.mjs.map} +1 -1
- package/fesm2022/{module-47e3be58.mjs → module-4a8034fc.mjs} +7 -7
- package/fesm2022/module-4a8034fc.mjs.map +1 -0
- package/fesm2022/{module-3bf2775f.mjs → module-57e0986f.mjs} +10 -9
- package/fesm2022/module-57e0986f.mjs.map +1 -0
- package/fesm2022/module-5a2afb59.mjs +214 -0
- package/fesm2022/module-5a2afb59.mjs.map +1 -0
- package/fesm2022/{module-a5f9ab72.mjs → module-5f02bfe9.mjs} +10 -6
- package/fesm2022/module-5f02bfe9.mjs.map +1 -0
- package/fesm2022/{optgroup-harness-5e66b138.mjs → optgroup-harness-d5cf72ed.mjs} +2 -2
- package/fesm2022/optgroup-harness-d5cf72ed.mjs.map +1 -0
- package/fesm2022/{option-07c3c660.mjs → option-636f0562.mjs} +3 -3
- package/fesm2022/{option-07c3c660.mjs.map → option-636f0562.mjs.map} +1 -1
- package/fesm2022/{option-harness-3b7c1106.mjs → option-harness-b4971f41.mjs} +1 -1
- package/fesm2022/option-harness-b4971f41.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -4
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +16 -15
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +3 -4
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +3 -4
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/{pseudo-checkbox-af5a4ea4.mjs → pseudo-checkbox-0115d33e.mjs} +6 -5
- package/fesm2022/pseudo-checkbox-0115d33e.mjs.map +1 -0
- package/fesm2022/{pseudo-checkbox-module-216fae38.mjs → pseudo-checkbox-module-89d964bd.mjs} +2 -2
- package/fesm2022/{pseudo-checkbox-module-216fae38.mjs.map → pseudo-checkbox-module-89d964bd.mjs.map} +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +5 -6
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/{ripple-9939d1f5.mjs → ripple-c405b061.mjs} +5 -4
- package/fesm2022/{ripple-9939d1f5.mjs.map → ripple-c405b061.mjs.map} +1 -1
- package/fesm2022/{ripple-loader-f2078c66.mjs → ripple-loader-37620555.mjs} +10 -10
- package/fesm2022/ripple-loader-37620555.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +4 -4
- package/fesm2022/{select-harness-8c55824d.mjs → select-harness-30466074.mjs} +4 -4
- package/fesm2022/select-harness-30466074.mjs.map +1 -0
- package/fesm2022/select.mjs +10 -9
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +4 -3
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +4 -5
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +10 -8
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +12 -9
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +5 -4
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +7 -6
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +15 -22
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +20 -15
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +2 -1
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +16 -16
- package/grid-list/_grid-list-theme.scss +1 -1
- package/icon/_icon-theme.scss +2 -2
- package/{index.d-0536b706.d.ts → index.d-cc6e48d4.d.ts} +1 -1
- package/{index.d-37e31cd3.d.ts → index.d-d77f0821.d.ts} +2 -2
- package/list/_list-theme.scss +15 -15
- package/list/index.d.ts +3 -3
- package/menu/_menu-theme.scss +3 -3
- package/menu/index.d.ts +3 -2
- package/{module.d-74a721b9.d.ts → module.d-9a0cb968.d.ts} +1 -0
- package/{module.d-ba05faa6.d.ts → module.d-a23953f5.d.ts} +1 -1
- package/{module.d-18a67f56.d.ts → module.d-d86ca350.d.ts} +35 -28
- package/package.json +2 -2
- package/paginator/_paginator-theme.scss +3 -3
- package/paginator/index.d.ts +8 -8
- 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 +2 -2
- package/progress-bar/index.d.ts +0 -1
- package/progress-spinner/_progress-spinner-theme.scss +4 -4
- package/{pseudo-checkbox-module.d-3abc0461.d.ts → pseudo-checkbox-module.d-d21de92b.d.ts} +1 -1
- package/radio/_radio-theme.scss +12 -12
- package/radio/index.d.ts +2 -2
- package/{ripple-loader.d-8aac2988.d.ts → ripple-loader.d-e5ac6c14.d.ts} +1 -1
- package/{ripple.d-2fb57d04.d.ts → ripple.d-f2cd74cf.d.ts} +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/address-form/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/schematics/ng-generate/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/navigation/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
- package/schematics/ng-generate/tree/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +2 -2
- package/select/_select-theme.scss +6 -6
- package/select/index.d.ts +5 -5
- package/sidenav/_sidenav-theme.scss +2 -2
- package/sidenav/index.d.ts +1 -1
- package/slide-toggle/_slide-toggle-theme.scss +10 -10
- package/slider/_slider-theme.scss +10 -10
- package/slider/index.d.ts +2 -2
- package/snack-bar/_snack-bar-theme.scss +4 -4
- package/snack-bar/index.d.ts +5 -4
- package/sort/_sort-theme.scss +3 -3
- package/sort/index.d.ts +1 -1
- package/stepper/_stepper-theme.scss +5 -5
- package/stepper/index.d.ts +3 -3
- package/table/_table-theme.scss +4 -4
- package/tabs/_tabs-theme.scss +16 -16
- package/tabs/index.d.ts +4 -4
- package/timepicker/_timepicker-theme.scss +4 -4
- package/timepicker/index.d.ts +0 -1
- package/toolbar/_toolbar-theme.scss +4 -4
- package/tooltip/_tooltip-theme.scss +4 -4
- package/tooltip/index.d.ts +1 -1
- package/tree/_tree-theme.scss +3 -3
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs.map +0 -1
- package/fesm2022/divider-harness-3394f29a.mjs.map +0 -1
- package/fesm2022/form-field-6d755764.mjs.map +0 -1
- package/fesm2022/form-field-control-harness-af6fd278.mjs.map +0 -1
- package/fesm2022/icon-button-47f1b5d9.mjs +0 -248
- package/fesm2022/icon-button-47f1b5d9.mjs.map +0 -1
- package/fesm2022/input-harness-ed59decc.mjs.map +0 -1
- package/fesm2022/module-3bf2775f.mjs.map +0 -1
- package/fesm2022/module-47e3be58.mjs.map +0 -1
- package/fesm2022/module-a5f9ab72.mjs.map +0 -1
- package/fesm2022/module-df9f7af3.mjs +0 -152
- package/fesm2022/module-df9f7af3.mjs.map +0 -1
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +0 -1
- package/fesm2022/option-harness-3b7c1106.mjs.map +0 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +0 -1
- package/fesm2022/ripple-loader-f2078c66.mjs.map +0 -1
- package/fesm2022/select-harness-8c55824d.mjs.map +0 -1
- /package/core/tokens/m3/definitions/{unused/_md-comp-filled-tonal-button.scss → _md-comp-filled-tonal-button.scss} +0 -0
|
@@ -118,11 +118,26 @@ $_system-fallbacks: m3-system.create-system-fallbacks();
|
|
|
118
118
|
|
|
119
119
|
// Outputs a map of tokens under a specific prefix.
|
|
120
120
|
@mixin create-token-values($prefix, $tokens) {
|
|
121
|
-
@
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
@include _create-token-values-internal($prefix, $tokens, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Outputs a map of tokens under a specific prefix in scenarios where tokens may be mixed with
|
|
125
|
+
// other declarations (e.g. M2 themes). Used to avoid https://sass-lang.com/documentation/breaking-changes/mixed-decls/
|
|
126
|
+
@mixin create-token-values-mixed($prefix, $tokens) {
|
|
127
|
+
@include _create-token-values-internal($prefix, $tokens, true);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@mixin _create-token-values-internal($prefix, $tokens, $in-place) {
|
|
131
|
+
@if ($tokens != null) {
|
|
132
|
+
@if ($in-place) {
|
|
133
|
+
& {
|
|
134
|
+
@each $key, $value in $tokens {
|
|
135
|
+
@if $value != null {
|
|
136
|
+
#{_create-var-name($prefix, $key)}: #{$value};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
} @else {
|
|
126
141
|
@each $key, $value in $tokens {
|
|
127
142
|
@if $value != null {
|
|
128
143
|
#{_create-var-name($prefix, $key)}: #{$value};
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
@use './mat/toolbar' as tokens-mat-toolbar;
|
|
46
46
|
@use './mat/tree' as tokens-mat-tree;
|
|
47
47
|
@use './mat/timepicker' as tokens-mat-timepicker;
|
|
48
|
+
@use './mat/tonal-button' as tokens-mat-tonal-button;
|
|
48
49
|
@use './mdc/checkbox' as tokens-mdc-checkbox;
|
|
49
50
|
@use './mdc/text-button' as tokens-mdc-text-button;
|
|
50
51
|
@use './mdc/protected-button' as tokens-mdc-protected-button;
|
|
@@ -158,6 +159,7 @@
|
|
|
158
159
|
_get-tokens-for-module($theme, tokens-mat-toolbar),
|
|
159
160
|
_get-tokens-for-module($theme, tokens-mat-tree),
|
|
160
161
|
_get-tokens-for-module($theme, tokens-mat-timepicker),
|
|
162
|
+
_get-tokens-for-module($theme, tokens-mat-tonal-button),
|
|
161
163
|
_get-tokens-for-module($theme, tokens-mdc-checkbox),
|
|
162
164
|
_get-tokens-for-module($theme, tokens-mdc-chip),
|
|
163
165
|
_get-tokens-for-module($theme, tokens-mdc-circular-progress),
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../token-definition';
|
|
3
|
+
@use '../../../theming/theming';
|
|
4
|
+
@use '../../../theming/inspection';
|
|
5
|
+
@use '../../../style/sass-utils';
|
|
6
|
+
|
|
7
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
8
|
+
$prefix: (mat, tonal-button);
|
|
9
|
+
|
|
10
|
+
// Tokens that can't be configured through Angular Material's current theming API,
|
|
11
|
+
// but may be in a future version of the theming API.
|
|
12
|
+
@function get-unthemable-tokens() {
|
|
13
|
+
@return (
|
|
14
|
+
// Shape of the container element.
|
|
15
|
+
container-shape: 4px,
|
|
16
|
+
|
|
17
|
+
// Start/end padding of the button.
|
|
18
|
+
horizontal-padding: 16px,
|
|
19
|
+
|
|
20
|
+
// Space between the icon and the button's main content.
|
|
21
|
+
icon-spacing: 8px,
|
|
22
|
+
|
|
23
|
+
// Amount by which to offset the icon so that its presence
|
|
24
|
+
// doesn't increase throw off the horizontal padding.
|
|
25
|
+
icon-offset: -4px,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Tokens that can be configured through Angular Material's color theming API.
|
|
30
|
+
@function get-color-tokens($theme) {
|
|
31
|
+
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
32
|
+
|
|
33
|
+
@return (
|
|
34
|
+
container-color: inspection.get-theme-color($theme, background, card),
|
|
35
|
+
label-text-color: inspection.get-theme-color($theme, foreground, text, 1),
|
|
36
|
+
disabled-container-color: inspection.get-theme-color($theme, foreground, disabled-button,
|
|
37
|
+
0.12),
|
|
38
|
+
disabled-label-text-color: inspection.get-theme-color($theme, foreground, disabled-button,
|
|
39
|
+
if($is-dark, 0.5, 0.38)),
|
|
40
|
+
|
|
41
|
+
// Color of the element that shows the hover, focus and pressed states.
|
|
42
|
+
state-layer-color: inspection.get-theme-color($theme, foreground, base),
|
|
43
|
+
|
|
44
|
+
// Color of the element that shows the hover, focus and pressed states while disabled.
|
|
45
|
+
disabled-state-layer-color: inspection.get-theme-color($theme, foreground, base),
|
|
46
|
+
|
|
47
|
+
// Color of the ripple element.
|
|
48
|
+
ripple-color: inspection.get-theme-color($theme, foreground, base, 0.1),
|
|
49
|
+
|
|
50
|
+
// Opacity of the ripple when the button is hovered.
|
|
51
|
+
hover-state-layer-opacity: if($is-dark, 0.08, 0.04),
|
|
52
|
+
|
|
53
|
+
// Opacity of the ripple when the button is focused.
|
|
54
|
+
focus-state-layer-opacity: if($is-dark, 0.24, 0.12),
|
|
55
|
+
|
|
56
|
+
// Opacity of the ripple when the button is pressed.
|
|
57
|
+
pressed-state-layer-opacity: if($is-dark, 0.24, 0.12),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Generates the mapping for the properties that change based on the button palette color.
|
|
62
|
+
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
63
|
+
@return (
|
|
64
|
+
container-color: inspection.get-theme-color($theme, $palette-name, default),
|
|
65
|
+
label-text-color: inspection.get-theme-color($theme, $palette-name, default-contrast, 1),
|
|
66
|
+
state-layer-color: inspection.get-theme-color($theme, $palette-name, default-contrast, 1),
|
|
67
|
+
ripple-color: inspection.get-theme-color($theme, $palette-name, default-contrast, 0.1),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Tokens that can be configured through Angular Material's typography theming API.
|
|
72
|
+
@function get-typography-tokens($theme) {
|
|
73
|
+
@return (
|
|
74
|
+
label-text-font: inspection.get-theme-typography($theme, button, font-family),
|
|
75
|
+
label-text-size: inspection.get-theme-typography($theme, button, font-size),
|
|
76
|
+
label-text-tracking: inspection.get-theme-typography($theme, button, letter-spacing),
|
|
77
|
+
label-text-weight: inspection.get-theme-typography($theme, button, font-weight),
|
|
78
|
+
label-text-transform: none,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Tokens that can be configured through Angular Material's density theming API.
|
|
83
|
+
@function get-density-tokens($theme) {
|
|
84
|
+
$scale: theming.clamp-density(inspection.get-theme-density($theme), -3);
|
|
85
|
+
|
|
86
|
+
@return (
|
|
87
|
+
touch-target-display: if($scale < -1, none, block),
|
|
88
|
+
container-height:
|
|
89
|
+
map.get(
|
|
90
|
+
(
|
|
91
|
+
0: 36px,
|
|
92
|
+
-1: 32px,
|
|
93
|
+
-2: 28px,
|
|
94
|
+
-3: 24px,
|
|
95
|
+
),
|
|
96
|
+
$scale
|
|
97
|
+
)
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
102
|
+
// This is used to create token slots.
|
|
103
|
+
@function get-token-slots() {
|
|
104
|
+
@return sass-utils.deep-merge-all(
|
|
105
|
+
get-unthemable-tokens(),
|
|
106
|
+
get-color-tokens(token-definition.$placeholder-color-config),
|
|
107
|
+
get-typography-tokens(token-definition.$placeholder-typography-config),
|
|
108
|
+
get-density-tokens(token-definition.$placeholder-density-config)
|
|
109
|
+
);
|
|
110
|
+
}
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
@use './mat/toolbar' as tokens-mat-toolbar;
|
|
44
44
|
@use './mat/tree' as tokens-mat-tree;
|
|
45
45
|
@use './mat/timepicker' as tokens-mat-timepicker;
|
|
46
|
+
@use './mat/tonal-button' as tokens-mat-tonal-button;
|
|
46
47
|
@use './mdc/checkbox' as tokens-mdc-checkbox;
|
|
47
48
|
@use './mdc/text-button' as tokens-mdc-text-button;
|
|
48
49
|
@use './mdc/protected-button' as tokens-mdc-protected-button;
|
|
@@ -85,6 +86,7 @@ $_module-names: (
|
|
|
85
86
|
tokens-mat-fab,
|
|
86
87
|
tokens-mat-fab-small,
|
|
87
88
|
tokens-mat-filled-button,
|
|
89
|
+
tokens-mat-tonal-button,
|
|
88
90
|
tokens-mat-form-field,
|
|
89
91
|
tokens-mat-grid-list,
|
|
90
92
|
tokens-mat-icon-button,
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
@forward './md-comp-fab-tertiary-small' as md-comp-fab-tertiary-small-*;
|
|
15
15
|
@forward './md-comp-fab-tertiary' as md-comp-fab-tertiary-*;
|
|
16
16
|
@forward './md-comp-filled-button' as md-comp-filled-button-*;
|
|
17
|
+
@forward './md-comp-filled-tonal-button' as md-comp-filled-tonal-button-*;
|
|
17
18
|
@forward './md-comp-filled-card' as md-comp-filled-card-*;
|
|
18
19
|
@forward './md-comp-filled-icon-button' as md-comp-filled-icon-button-*;
|
|
19
20
|
@forward './md-comp-filled-text-field' as md-comp-filled-text-field-*;
|
|
@@ -63,7 +64,6 @@
|
|
|
63
64
|
// @forward './unused/md-comp-filled-autocomplete' as md-comp-filled-autocomplete-*;
|
|
64
65
|
// @forward './unused/md-comp-filled-menu-button' as md-comp-filled-menu-button-*;
|
|
65
66
|
// @forward './unused/md-comp-filled-select' as md-comp-filled-select-*;
|
|
66
|
-
// @forward './unused/md-comp-filled-tonal-button' as md-comp-filled-tonal-button-*;
|
|
67
67
|
// @forward './unused/md-comp-filled-tonal-icon-button' as md-comp-filled-tonal-icon-button-*;
|
|
68
68
|
// @forward './unused/md-comp-filter-chip' as md-comp-filter-chip-*;
|
|
69
69
|
// @forward './unused/md-comp-full-screen-dialog' as md-comp-full-screen-dialog-*;
|
|
@@ -21,7 +21,7 @@ $_default: (
|
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
24
|
-
|
|
24
|
+
$values: (
|
|
25
25
|
'container-color': map.get($deps, 'md-sys-color', 'surface-container-low'),
|
|
26
26
|
'container-elevation': map.get($deps, 'md-sys-elevation', 'level1'),
|
|
27
27
|
'container-shadow-color': map.get($deps, 'md-sys-color', 'shadow'),
|
|
@@ -50,4 +50,6 @@ $_default: (
|
|
|
50
50
|
'pressed-state-layer-opacity':
|
|
51
51
|
map.get($deps, 'md-sys-state', 'pressed-state-layer-opacity')
|
|
52
52
|
);
|
|
53
|
+
|
|
54
|
+
@return $values;
|
|
53
55
|
}
|
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
@use './md-ref-palette';
|
|
9
9
|
|
|
10
|
+
// Indicates whether alternative tokens should be used
|
|
11
|
+
$_alternate-tokens: false;
|
|
12
|
+
|
|
10
13
|
$_default-dark: (
|
|
11
14
|
'md-ref-palette': md-ref-palette.values(),
|
|
12
15
|
);
|
|
13
16
|
|
|
14
17
|
@function values-dark($deps: $_default-dark) {
|
|
15
|
-
|
|
18
|
+
$values: (
|
|
16
19
|
'background': map.get($deps, 'md-ref-palette', 'neutral6'),
|
|
17
20
|
'error': map.get($deps, 'md-ref-palette', 'error80'),
|
|
18
21
|
'error-container': map.get($deps, 'md-ref-palette', 'error30'),
|
|
@@ -64,6 +67,24 @@ $_default-dark: (
|
|
|
64
67
|
'tertiary-fixed': map.get($deps, 'md-ref-palette', 'tertiary90'),
|
|
65
68
|
'tertiary-fixed-dim': map.get($deps, 'md-ref-palette', 'tertiary80')
|
|
66
69
|
);
|
|
70
|
+
|
|
71
|
+
@if ($_alternate-tokens) {
|
|
72
|
+
$values: map.merge($values, (
|
|
73
|
+
'background': map.get($deps, 'md-ref-palette', 'neutral10'),
|
|
74
|
+
'on-surface-variant': map.get($deps, 'md-ref-palette', 'neutral-variant80'),
|
|
75
|
+
'surface': map.get($deps, 'md-ref-palette', 'neutral10'),
|
|
76
|
+
'surface-bright': #37393b,
|
|
77
|
+
'surface-container': #1e1f20,
|
|
78
|
+
'surface-container-high': #282a2c,
|
|
79
|
+
'surface-container-highest': #333537,
|
|
80
|
+
'surface-container-low': #1b1b1b,
|
|
81
|
+
'surface-container-lowest': #0e0e0e,
|
|
82
|
+
'surface-dim': #131313,
|
|
83
|
+
'surface-tint': #d1e1ff,
|
|
84
|
+
));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@return $values;
|
|
67
88
|
}
|
|
68
89
|
|
|
69
90
|
$_default-light: (
|
|
@@ -71,7 +92,7 @@ $_default-light: (
|
|
|
71
92
|
);
|
|
72
93
|
|
|
73
94
|
@function values-light($deps: $_default-light) {
|
|
74
|
-
|
|
95
|
+
$values: (
|
|
75
96
|
'background': map.get($deps, 'md-ref-palette', 'neutral98'),
|
|
76
97
|
'error': map.get($deps, 'md-ref-palette', 'error40'),
|
|
77
98
|
'error-container': map.get($deps, 'md-ref-palette', 'error90'),
|
|
@@ -123,4 +144,25 @@ $_default-light: (
|
|
|
123
144
|
'tertiary-fixed': map.get($deps, 'md-ref-palette', 'tertiary90'),
|
|
124
145
|
'tertiary-fixed-dim': map.get($deps, 'md-ref-palette', 'tertiary80')
|
|
125
146
|
);
|
|
147
|
+
|
|
148
|
+
@if ($_alternate-tokens) {
|
|
149
|
+
$values: map.merge($values, (
|
|
150
|
+
'background': map.get($deps, 'md-ref-palette', 'neutral100'),
|
|
151
|
+
'on-error-container': map.get($deps, 'md-ref-palette', 'error10'),
|
|
152
|
+
'on-primary-container': map.get($deps, 'md-ref-palette', 'primary10'),
|
|
153
|
+
'on-secondary-container': map.get($deps, 'md-ref-palette', 'secondary10'),
|
|
154
|
+
'on-tertiary-container': map.get($deps, 'md-ref-palette', 'tertiary10'),
|
|
155
|
+
'surface': map.get($deps, 'md-ref-palette', 'neutral100'),
|
|
156
|
+
'surface-bright': map.get($deps, 'md-ref-palette', 'neutral100'),
|
|
157
|
+
'surface-container': #f0f4f9,
|
|
158
|
+
'surface-container-high': #e9eef6,
|
|
159
|
+
'surface-container-highest': #dde3ea,
|
|
160
|
+
'surface-container-low': #f8fafd,
|
|
161
|
+
'surface-container-lowest': map.get($deps, 'md-ref-palette', 'primary100'),
|
|
162
|
+
'surface-dim': #d3dbe5,
|
|
163
|
+
'surface-tint': #6991d6,
|
|
164
|
+
));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@return $values;
|
|
126
168
|
}
|
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
@use './md-ref-typeface';
|
|
9
9
|
|
|
10
|
+
// Indicates whether alternative tokens should be used
|
|
11
|
+
$_alternate-tokens: false;
|
|
12
|
+
|
|
10
13
|
$_default: (
|
|
11
14
|
'md-ref-typeface': md-ref-typeface.values(),
|
|
12
15
|
);
|
|
13
16
|
|
|
14
17
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
15
|
-
|
|
18
|
+
$values: (
|
|
16
19
|
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
17
20
|
// Tokens md.sys.typescale.body-large.tracking cannot be represented in the "font"
|
|
18
21
|
// property shorthand. Consider using the discrete properties instead.
|
|
@@ -305,4 +308,20 @@ $_default: (
|
|
|
305
308
|
'title-small-tracking': if($exclude-hardcoded-values, null, 0.006rem),
|
|
306
309
|
'title-small-weight': map.get($deps, 'md-ref-typeface', 'weight-medium')
|
|
307
310
|
);
|
|
311
|
+
|
|
312
|
+
@if ($_alternate-tokens) {
|
|
313
|
+
$values: map.merge($values, (
|
|
314
|
+
'body-large-tracking': if($exclude-hardcoded-values, null, 0),
|
|
315
|
+
'body-medium-tracking': if($exclude-hardcoded-values, null, 0),
|
|
316
|
+
'body-small-tracking': if($exclude-hardcoded-values, null, 0.006rem),
|
|
317
|
+
'display-large-tracking': if($exclude-hardcoded-values, null, 0),
|
|
318
|
+
'label-large-tracking': if($exclude-hardcoded-values, null, 0),
|
|
319
|
+
'label-medium-tracking': if($exclude-hardcoded-values, null, 0.006rem),
|
|
320
|
+
'label-small-tracking': if($exclude-hardcoded-values, null, 0.006rem),
|
|
321
|
+
'title-medium-tracking': if($exclude-hardcoded-values, null, 0),
|
|
322
|
+
'title-small-tracking': if($exclude-hardcoded-values, null, 0),
|
|
323
|
+
));
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@return $values;
|
|
308
327
|
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use '../../../style/sass-utils';
|
|
4
|
+
@use '../../token-definition';
|
|
5
|
+
|
|
6
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
|
+
$prefix: (mat, tonal-button);
|
|
8
|
+
|
|
9
|
+
/// Generates custom tokens for the mat-flat-button.
|
|
10
|
+
/// @param {Map} $systems The MDC system tokens
|
|
11
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
12
|
+
/// @param {Map} $token-slots Possible token slots
|
|
13
|
+
/// @return {Map} A set of custom tokens for the mat-flat-button
|
|
14
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
15
|
+
$mdc-tokens: token-definition.get-mdc-tokens('filled-tonal-button', $systems, $exclude-hardcoded);
|
|
16
|
+
|
|
17
|
+
$tokens: map.merge($mdc-tokens, (
|
|
18
|
+
horizontal-padding: token-definition.hardcode(24px, $exclude-hardcoded),
|
|
19
|
+
icon-spacing: token-definition.hardcode(8px, $exclude-hardcoded),
|
|
20
|
+
icon-offset: token-definition.hardcode(-8px, $exclude-hardcoded),
|
|
21
|
+
state-layer-color: map.get($systems, md-sys-color, on-secondary-container),
|
|
22
|
+
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
23
|
+
ripple-color: sass-utils.safe-color-change(
|
|
24
|
+
map.get($systems, md-sys-color, on-secondary-container),
|
|
25
|
+
$alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
|
|
26
|
+
),
|
|
27
|
+
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
|
|
28
|
+
focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
|
|
29
|
+
pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
|
|
30
|
+
));
|
|
31
|
+
|
|
32
|
+
$variant-tokens: (
|
|
33
|
+
// Color variants:
|
|
34
|
+
primary: (),
|
|
35
|
+
secondary: (),
|
|
36
|
+
tertiary: (
|
|
37
|
+
container-color: map.get($systems, md-sys-color, tertiary-container),
|
|
38
|
+
focus-label-text-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
39
|
+
focus-state-layer-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
40
|
+
hover-label-text-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
41
|
+
hover-state-layer-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
42
|
+
label-text-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
43
|
+
pressed-label-text-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
44
|
+
pressed-state-layer-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
45
|
+
with-icon-focus-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
46
|
+
with-icon-hover-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
47
|
+
with-icon-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
48
|
+
with-icon-pressed-icon-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
49
|
+
state-layer-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
50
|
+
ripple-color: sass-utils.safe-color-change(
|
|
51
|
+
map.get($systems, md-sys-color, on-tertiary-container),
|
|
52
|
+
$alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
|
|
53
|
+
),
|
|
54
|
+
),
|
|
55
|
+
error: (
|
|
56
|
+
container-color: map.get($systems, md-sys-color, error-container),
|
|
57
|
+
focus-label-text-color: map.get($systems, md-sys-color, on-error-container),
|
|
58
|
+
focus-state-layer-color: map.get($systems, md-sys-color, on-error-container),
|
|
59
|
+
hover-label-text-color: map.get($systems, md-sys-color, on-error-container),
|
|
60
|
+
hover-state-layer-color: map.get($systems, md-sys-color, on-error-container),
|
|
61
|
+
label-text-color: map.get($systems, md-sys-color, on-error-container),
|
|
62
|
+
pressed-label-text-color: map.get($systems, md-sys-color, on-error-container),
|
|
63
|
+
pressed-state-layer-color: map.get($systems, md-sys-color, on-error-container),
|
|
64
|
+
with-icon-focus-icon-color: map.get($systems, md-sys-color, on-error-container),
|
|
65
|
+
with-icon-hover-icon-color: map.get($systems, md-sys-color, on-error-container),
|
|
66
|
+
with-icon-icon-color: map.get($systems, md-sys-color, on-error-container),
|
|
67
|
+
with-icon-pressed-icon-color: map.get($systems, md-sys-color, on-error-container),
|
|
68
|
+
state-layer-color: map.get($systems, md-sys-color, on-error-container),
|
|
69
|
+
ripple-color: sass-utils.safe-color-change(
|
|
70
|
+
map.get($systems, md-sys-color, on-error-container),
|
|
71
|
+
$alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
|
|
72
|
+
),
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
@return token-definition.namespace-tokens($prefix, (
|
|
77
|
+
_fix-tokens($tokens),
|
|
78
|
+
token-definition.map-values($variant-tokens, meta.get-function(_fix-tokens))
|
|
79
|
+
), $token-slots);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/// Fixes inconsistent values in the tonal button tokens so that they can produce valid styles.
|
|
84
|
+
/// @param {Map} $initial-tokens Map of tonal button tokens currently being generated.
|
|
85
|
+
/// @return {Map} The given tokens, with the invalid values replaced with valid ones.
|
|
86
|
+
@function _fix-tokens($initial-tokens) {
|
|
87
|
+
// Need to get the hardcoded values, because they include opacities that are used for the disabled
|
|
88
|
+
// state.
|
|
89
|
+
$hardcoded-tokens: token-definition.get-mdc-tokens('filled-tonal-button', (), false);
|
|
90
|
+
|
|
91
|
+
@return token-definition.combine-color-tokens($initial-tokens, $hardcoded-tokens, (
|
|
92
|
+
(
|
|
93
|
+
color: disabled-label-text-color,
|
|
94
|
+
opacity: disabled-label-text-opacity,
|
|
95
|
+
),
|
|
96
|
+
(
|
|
97
|
+
color: disabled-container-color,
|
|
98
|
+
opacity: disabled-container-opacity,
|
|
99
|
+
)
|
|
100
|
+
));
|
|
101
|
+
}
|
|
@@ -26,7 +26,7 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
26
26
|
$palette-name
|
|
27
27
|
);
|
|
28
28
|
|
|
29
|
-
@include token-utils.create-token-values(
|
|
29
|
+
@include token-utils.create-token-values-mixed(
|
|
30
30
|
tokens-mat-datepicker.$prefix,
|
|
31
31
|
map.merge($calendar-tokens, $range-tokens)
|
|
32
32
|
);
|
|
@@ -40,7 +40,7 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
40
40
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
41
41
|
} @else {
|
|
42
42
|
@include sass-utils.current-selector-or-root() {
|
|
43
|
-
@include token-utils.create-token-values(
|
|
43
|
+
@include token-utils.create-token-values-mixed(
|
|
44
44
|
tokens-mat-datepicker.$prefix,
|
|
45
45
|
tokens-mat-datepicker.get-unthemable-tokens()
|
|
46
46
|
);
|
|
@@ -58,7 +58,7 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
58
58
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
59
59
|
} @else {
|
|
60
60
|
@include sass-utils.current-selector-or-root() {
|
|
61
|
-
@include token-utils.create-token-values(
|
|
61
|
+
@include token-utils.create-token-values-mixed(
|
|
62
62
|
tokens-mat-datepicker.$prefix,
|
|
63
63
|
tokens-mat-datepicker.get-color-tokens($theme)
|
|
64
64
|
);
|
|
@@ -80,7 +80,8 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
80
80
|
$theme,
|
|
81
81
|
accent
|
|
82
82
|
);
|
|
83
|
-
@include token-utils.create-token-values(tokens-mat-datepicker.$prefix,
|
|
83
|
+
@include token-utils.create-token-values-mixed(tokens-mat-datepicker.$prefix,
|
|
84
|
+
$accent-tokens);
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
&.mat-warn {
|
|
@@ -88,7 +89,7 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
88
89
|
$theme,
|
|
89
90
|
warn
|
|
90
91
|
);
|
|
91
|
-
@include token-utils.create-token-values(tokens-mat-datepicker.$prefix, $warn-tokens);
|
|
92
|
+
@include token-utils.create-token-values-mixed(tokens-mat-datepicker.$prefix, $warn-tokens);
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -101,7 +102,7 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
101
102
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
102
103
|
} @else {
|
|
103
104
|
@include sass-utils.current-selector-or-root() {
|
|
104
|
-
@include token-utils.create-token-values(
|
|
105
|
+
@include token-utils.create-token-values-mixed(
|
|
105
106
|
tokens-mat-datepicker.$prefix,
|
|
106
107
|
tokens-mat-datepicker.get-typography-tokens($theme)
|
|
107
108
|
);
|
|
@@ -124,7 +125,7 @@ $calendar-weekday-table-font-size: 11px !default;
|
|
|
124
125
|
);
|
|
125
126
|
|
|
126
127
|
@include sass-utils.current-selector-or-root() {
|
|
127
|
-
@include token-utils.create-token-values(tokens-mat-datepicker.$prefix, $tokens);
|
|
128
|
+
@include token-utils.create-token-values-mixed(tokens-mat-datepicker.$prefix, $tokens);
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
|
package/datepicker/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnChanges, OnDestroy, AfterViewChecked, EventEmitter, SimpleChanges, FactoryProvider, AfterContentInit, ChangeDetectorRef, AfterViewInit, ElementRef, InjectionToken, OnInit, DoCheck, TemplateRef } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { c as MatButton, n as MatButtonModule } from '../module.d-d86ca350.js';
|
|
4
4
|
import * as i2 from '@angular/cdk/overlay';
|
|
5
5
|
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
6
6
|
import * as i1 from '@angular/cdk/a11y';
|
|
@@ -17,10 +17,10 @@ import { M as MatFormFieldControl } from '../form-field-control.d-eb86711c.js';
|
|
|
17
17
|
import { Directionality } from '@angular/cdk/bidi';
|
|
18
18
|
import { E as ErrorStateMatcher } from '../error-options.d-448d9046.js';
|
|
19
19
|
import * as i5 from '@angular/cdk/scrolling';
|
|
20
|
-
import '../index.d-
|
|
21
|
-
import '../ripple.d-
|
|
20
|
+
import '../index.d-cc6e48d4.js';
|
|
21
|
+
import '../ripple.d-f2cd74cf.js';
|
|
22
22
|
import '@angular/cdk/platform';
|
|
23
|
-
import '../ripple-loader.d-
|
|
23
|
+
import '../ripple-loader.d-e5ac6c14.js';
|
|
24
24
|
|
|
25
25
|
/** Extra CSS classes that can be associated with a calendar cell. */
|
|
26
26
|
type MatCalendarCellCssClasses = string | string[] | Set<string> | {
|
|
@@ -1156,6 +1156,7 @@ declare abstract class MatDatepickerBase<C extends MatDatepickerControl<D>, S, D
|
|
|
1156
1156
|
private _dateAdapter;
|
|
1157
1157
|
private _dir;
|
|
1158
1158
|
private _model;
|
|
1159
|
+
private _animationsDisabled;
|
|
1159
1160
|
private _scrollStrategy;
|
|
1160
1161
|
private _inputStateChanges;
|
|
1161
1162
|
private _document;
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
} @else {
|
|
15
15
|
// Add default values for tokens not related to color, typography, or density.
|
|
16
16
|
@include sass-utils.current-selector-or-root() {
|
|
17
|
-
@include token-utils.create-token-values(
|
|
17
|
+
@include token-utils.create-token-values-mixed(
|
|
18
18
|
tokens-mdc-dialog.$prefix,
|
|
19
19
|
tokens-mdc-dialog.get-unthemable-tokens()
|
|
20
20
|
);
|
|
21
|
-
@include token-utils.create-token-values(
|
|
21
|
+
@include token-utils.create-token-values-mixed(
|
|
22
22
|
tokens-mat-dialog.$prefix,
|
|
23
23
|
tokens-mat-dialog.get-unthemable-tokens()
|
|
24
24
|
);
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
32
32
|
} @else {
|
|
33
33
|
@include sass-utils.current-selector-or-root() {
|
|
34
|
-
@include token-utils.create-token-values(
|
|
34
|
+
@include token-utils.create-token-values-mixed(
|
|
35
35
|
tokens-mdc-dialog.$prefix,
|
|
36
36
|
tokens-mdc-dialog.get-color-tokens($theme)
|
|
37
37
|
);
|
|
38
|
-
@include token-utils.create-token-values(
|
|
38
|
+
@include token-utils.create-token-values-mixed(
|
|
39
39
|
tokens-mat-dialog.$prefix,
|
|
40
40
|
tokens-mat-dialog.get-color-tokens($theme)
|
|
41
41
|
);
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
49
49
|
} @else {
|
|
50
50
|
@include sass-utils.current-selector-or-root() {
|
|
51
|
-
@include token-utils.create-token-values(
|
|
51
|
+
@include token-utils.create-token-values-mixed(
|
|
52
52
|
tokens-mdc-dialog.$prefix,
|
|
53
53
|
tokens-mdc-dialog.get-typography-tokens($theme)
|
|
54
54
|
);
|
|
55
|
-
@include token-utils.create-token-values(
|
|
55
|
+
@include token-utils.create-token-values-mixed(
|
|
56
56
|
tokens-mat-dialog.$prefix,
|
|
57
57
|
tokens-mat-dialog.get-typography-tokens($theme)
|
|
58
58
|
);
|
package/dialog/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MatDialogRef, a as MatDialogContainer } from '../dialog.d-
|
|
2
|
-
export { A as AutoFocusTarget, f as DialogPosition, D as DialogRole, b as MAT_DIALOG_DATA, c as MAT_DIALOG_DEFAULT_OPTIONS, d as MAT_DIALOG_SCROLL_STRATEGY, e as MatDialog, g as MatDialogConfig, a as MatDialogContainer, M as MatDialogRef, h as MatDialogState, _ as _closeDialogVia } from '../dialog.d-
|
|
1
|
+
import { M as MatDialogRef, a as MatDialogContainer } from '../dialog.d-4ffbd89c.js';
|
|
2
|
+
export { A as AutoFocusTarget, f as DialogPosition, D as DialogRole, b as MAT_DIALOG_DATA, c as MAT_DIALOG_DEFAULT_OPTIONS, d as MAT_DIALOG_SCROLL_STRATEGY, e as MatDialog, g as MatDialogConfig, a as MatDialogContainer, M as MatDialogRef, h as MatDialogState, _ as _closeDialogVia } from '../dialog.d-4ffbd89c.js';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
5
5
|
import * as i5 from '@angular/cdk/scrolling';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
2
|
import { BaseHarnessFilters, ContentContainerComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
-
import { D as DialogRole, e as MatDialog, g as MatDialogConfig, M as MatDialogRef } from '../../dialog.d-
|
|
3
|
+
import { D as DialogRole, e as MatDialog, g as MatDialogConfig, M as MatDialogRef } from '../../dialog.d-4ffbd89c.js';
|
|
4
4
|
import { ComponentType } from '@angular/cdk/overlay';
|
|
5
5
|
import { OnDestroy } from '@angular/core';
|
|
6
6
|
import '@angular/cdk/bidi';
|
|
@@ -121,7 +121,6 @@ interface LegacyDialogAnimationEvent {
|
|
|
121
121
|
totalTime: number;
|
|
122
122
|
}
|
|
123
123
|
declare class MatDialogContainer extends CdkDialogContainer<MatDialogConfig> implements OnDestroy {
|
|
124
|
-
private _animationMode;
|
|
125
124
|
/** Emits when an animation state changes. */
|
|
126
125
|
_animationStateChanged: EventEmitter<LegacyDialogAnimationEvent>;
|
|
127
126
|
/** Whether animations are enabled. */
|
|
@@ -284,6 +283,7 @@ declare class MatDialog implements OnDestroy {
|
|
|
284
283
|
private _parentDialog;
|
|
285
284
|
private _idGenerator;
|
|
286
285
|
protected _dialog: Dialog;
|
|
286
|
+
private _animationsDisabled;
|
|
287
287
|
private readonly _openDialogsAtThisLevel;
|
|
288
288
|
private readonly _afterAllClosedAtThisLevel;
|
|
289
289
|
private readonly _afterOpenedAtThisLevel;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
12
12
|
} @else {
|
|
13
13
|
@include sass-utils.current-selector-or-root() {
|
|
14
|
-
@include token-utils.create-token-values(
|
|
14
|
+
@include token-utils.create-token-values-mixed(
|
|
15
15
|
tokens-mat-divider.$prefix,
|
|
16
16
|
tokens-mat-divider.get-unthemable-tokens()
|
|
17
17
|
);
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
25
25
|
} @else {
|
|
26
26
|
@include sass-utils.current-selector-or-root() {
|
|
27
|
-
@include token-utils.create-token-values(
|
|
27
|
+
@include token-utils.create-token-values-mixed(
|
|
28
28
|
tokens-mat-divider.$prefix,
|
|
29
29
|
tokens-mat-divider.get-color-tokens($theme)
|
|
30
30
|
);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
13
13
|
} @else {
|
|
14
14
|
@include sass-utils.current-selector-or-root() {
|
|
15
|
-
@include token-utils.create-token-values(
|
|
15
|
+
@include token-utils.create-token-values-mixed(
|
|
16
16
|
tokens-mat-expansion.$prefix,
|
|
17
17
|
tokens-mat-expansion.get-unthemable-tokens()
|
|
18
18
|
);
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
26
26
|
} @else {
|
|
27
27
|
@include sass-utils.current-selector-or-root() {
|
|
28
|
-
@include token-utils.create-token-values(
|
|
28
|
+
@include token-utils.create-token-values-mixed(
|
|
29
29
|
tokens-mat-expansion.$prefix,
|
|
30
30
|
tokens-mat-expansion.get-color-tokens($theme)
|
|
31
31
|
);
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
$theme: inspection.private-get-typography-back-compat-theme($theme);
|
|
42
42
|
|
|
43
43
|
@include sass-utils.current-selector-or-root() {
|
|
44
|
-
@include token-utils.create-token-values(
|
|
44
|
+
@include token-utils.create-token-values-mixed(
|
|
45
45
|
tokens-mat-expansion.$prefix,
|
|
46
46
|
tokens-mat-expansion.get-typography-tokens($theme)
|
|
47
47
|
);
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
55
55
|
} @else {
|
|
56
56
|
@include sass-utils.current-selector-or-root() {
|
|
57
|
-
@include token-utils.create-token-values(
|
|
57
|
+
@include token-utils.create-token-values-mixed(
|
|
58
58
|
tokens-mat-expansion.$prefix,
|
|
59
59
|
tokens-mat-expansion.get-density-tokens($theme)
|
|
60
60
|
);
|