@angular/material 18.0.0-rc.2 → 18.0.0-rc.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/checkbox/_checkbox-theme.scss +32 -29
- package/chips/index.d.ts +2 -9
- package/core/tokens/m2/_index.scss +75 -78
- package/core/tokens/m2/mat/_checkbox.scss +13 -8
- package/core/tokens/m2/mat/_dialog.scss +2 -0
- package/core/tokens/m2/mat/_radio.scss +13 -8
- package/core/tokens/m2/mat/_switch.scss +14 -9
- package/core/tokens/m2/mdc/_dialog.scss +2 -4
- package/core/tokens/m3/_index.scss +5 -5
- package/core/tokens/m3/mat/_checkbox.scss +8 -3
- package/core/tokens/m3/mat/_dialog.scss +1 -0
- package/core/tokens/m3/mat/_radio.scss +28 -17
- package/core/tokens/m3/mat/_switch.scss +7 -1
- package/core/tokens/m3/mdc/_dialog.scss +0 -16
- package/dialog/_dialog-theme.scss +8 -5
- package/esm2022/autocomplete/autocomplete-origin.mjs +3 -3
- package/esm2022/autocomplete/autocomplete-trigger.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.mjs +3 -3
- package/esm2022/autocomplete/module.mjs +4 -4
- package/esm2022/badge/badge-module.mjs +4 -4
- package/esm2022/badge/badge.mjs +6 -6
- package/esm2022/bottom-sheet/bottom-sheet-container.mjs +3 -3
- package/esm2022/bottom-sheet/bottom-sheet-module.mjs +4 -4
- package/esm2022/bottom-sheet/bottom-sheet.mjs +3 -3
- package/esm2022/button/button-base.mjs +6 -6
- package/esm2022/button/button.mjs +6 -6
- package/esm2022/button/fab.mjs +12 -12
- package/esm2022/button/icon-button.mjs +6 -6
- package/esm2022/button/module.mjs +4 -4
- package/esm2022/button-toggle/button-toggle-module.mjs +4 -4
- package/esm2022/button-toggle/button-toggle.mjs +6 -6
- package/esm2022/card/card.mjs +42 -42
- package/esm2022/card/module.mjs +4 -4
- package/esm2022/checkbox/checkbox-required-validator.mjs +3 -3
- package/esm2022/checkbox/checkbox.mjs +6 -6
- package/esm2022/checkbox/module.mjs +8 -8
- package/esm2022/chips/chip-action.mjs +3 -3
- package/esm2022/chips/chip-edit-input.mjs +3 -3
- package/esm2022/chips/chip-grid.mjs +3 -3
- package/esm2022/chips/chip-icons.mjs +9 -9
- package/esm2022/chips/chip-input.mjs +11 -30
- package/esm2022/chips/chip-listbox.mjs +3 -3
- package/esm2022/chips/chip-option.mjs +3 -3
- package/esm2022/chips/chip-row.mjs +3 -3
- package/esm2022/chips/chip-set.mjs +3 -3
- package/esm2022/chips/chip.mjs +7 -5
- package/esm2022/chips/module.mjs +4 -4
- package/esm2022/core/common-behaviors/common-module.mjs +4 -4
- package/esm2022/core/datetime/index.mjs +8 -8
- package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
- package/esm2022/core/error/error-options.mjs +6 -6
- package/esm2022/core/internal-form-field/internal-form-field.mjs +4 -4
- package/esm2022/core/line/line.mjs +7 -7
- package/esm2022/core/option/index.mjs +4 -4
- package/esm2022/core/option/optgroup.mjs +3 -3
- package/esm2022/core/option/option.mjs +3 -3
- package/esm2022/core/private/ripple-loader.mjs +3 -3
- package/esm2022/core/ripple/index.mjs +4 -4
- package/esm2022/core/ripple/ripple.mjs +3 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +4 -4
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/datepicker/calendar-body.mjs +3 -3
- package/esm2022/datepicker/calendar.mjs +6 -6
- package/esm2022/datepicker/date-range-input-parts.mjs +9 -9
- package/esm2022/datepicker/date-range-input.mjs +3 -3
- package/esm2022/datepicker/date-range-picker.mjs +3 -3
- package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
- package/esm2022/datepicker/date-selection-model.mjs +9 -9
- package/esm2022/datepicker/datepicker-actions.mjs +9 -9
- package/esm2022/datepicker/datepicker-base.mjs +6 -6
- package/esm2022/datepicker/datepicker-input-base.mjs +3 -3
- package/esm2022/datepicker/datepicker-input.mjs +3 -3
- package/esm2022/datepicker/datepicker-intl.mjs +3 -3
- package/esm2022/datepicker/datepicker-module.mjs +4 -4
- package/esm2022/datepicker/datepicker-toggle.mjs +6 -6
- package/esm2022/datepicker/datepicker.mjs +3 -3
- package/esm2022/datepicker/month-view.mjs +3 -3
- package/esm2022/datepicker/multi-year-view.mjs +3 -3
- package/esm2022/datepicker/year-view.mjs +3 -3
- package/esm2022/dialog/dialog-container.mjs +5 -5
- package/esm2022/dialog/dialog-content-directives.mjs +15 -15
- package/esm2022/dialog/dialog.mjs +3 -3
- package/esm2022/dialog/module.mjs +4 -4
- package/esm2022/divider/divider-module.mjs +4 -4
- package/esm2022/divider/divider.mjs +3 -3
- package/esm2022/expansion/accordion.mjs +3 -3
- package/esm2022/expansion/expansion-module.mjs +4 -4
- package/esm2022/expansion/expansion-panel-content.mjs +3 -3
- package/esm2022/expansion/expansion-panel-header.mjs +9 -9
- package/esm2022/expansion/expansion-panel.mjs +6 -6
- package/esm2022/form-field/directives/error.mjs +3 -3
- package/esm2022/form-field/directives/floating-label.mjs +3 -3
- package/esm2022/form-field/directives/hint.mjs +3 -3
- package/esm2022/form-field/directives/label.mjs +3 -3
- package/esm2022/form-field/directives/line-ripple.mjs +3 -3
- package/esm2022/form-field/directives/notched-outline.mjs +3 -3
- package/esm2022/form-field/directives/prefix.mjs +3 -3
- package/esm2022/form-field/directives/suffix.mjs +3 -3
- package/esm2022/form-field/form-field-control.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +3 -3
- package/esm2022/form-field/module.mjs +4 -4
- package/esm2022/grid-list/grid-list-module.mjs +4 -4
- package/esm2022/grid-list/grid-list.mjs +3 -3
- package/esm2022/grid-list/grid-tile.mjs +15 -15
- package/esm2022/icon/icon-module.mjs +4 -4
- package/esm2022/icon/icon-registry.mjs +3 -3
- package/esm2022/icon/icon.mjs +3 -3
- package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
- package/esm2022/input/input.mjs +3 -3
- package/esm2022/input/module.mjs +4 -4
- package/esm2022/list/action-list.mjs +3 -3
- package/esm2022/list/list-base.mjs +6 -6
- package/esm2022/list/list-item-sections.mjs +18 -18
- package/esm2022/list/list-module.mjs +4 -4
- package/esm2022/list/list-option.mjs +3 -3
- package/esm2022/list/list.mjs +6 -6
- package/esm2022/list/nav-list.mjs +3 -3
- package/esm2022/list/selection-list.mjs +3 -3
- package/esm2022/list/subheader.mjs +3 -3
- package/esm2022/menu/menu-content.mjs +3 -3
- package/esm2022/menu/menu-item.mjs +3 -3
- package/esm2022/menu/menu-trigger.mjs +3 -3
- package/esm2022/menu/menu.mjs +3 -3
- package/esm2022/menu/module.mjs +4 -4
- package/esm2022/paginator/module.mjs +4 -4
- package/esm2022/paginator/paginator-intl.mjs +3 -3
- package/esm2022/paginator/paginator.mjs +3 -3
- package/esm2022/progress-bar/module.mjs +4 -4
- package/esm2022/progress-bar/progress-bar.mjs +3 -3
- package/esm2022/progress-spinner/module.mjs +4 -4
- package/esm2022/progress-spinner/progress-spinner.mjs +3 -3
- package/esm2022/radio/module.mjs +4 -4
- package/esm2022/radio/radio.mjs +8 -8
- package/esm2022/select/module.mjs +4 -4
- package/esm2022/select/select.mjs +6 -6
- package/esm2022/sidenav/drawer.mjs +9 -9
- package/esm2022/sidenav/sidenav-module.mjs +4 -4
- package/esm2022/sidenav/sidenav.mjs +9 -9
- package/esm2022/slide-toggle/module.mjs +8 -8
- package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +3 -3
- package/esm2022/slide-toggle/slide-toggle.mjs +6 -6
- package/esm2022/slider/module.mjs +4 -4
- package/esm2022/slider/slider-input.mjs +11 -9
- package/esm2022/slider/slider-interface.mjs +1 -1
- package/esm2022/slider/slider-thumb.mjs +3 -3
- package/esm2022/slider/slider.mjs +6 -6
- package/esm2022/snack-bar/module.mjs +4 -4
- package/esm2022/snack-bar/simple-snack-bar.mjs +3 -3
- package/esm2022/snack-bar/snack-bar-container.mjs +3 -3
- package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
- package/esm2022/snack-bar/snack-bar.mjs +3 -3
- package/esm2022/sort/sort-header-intl.mjs +3 -3
- package/esm2022/sort/sort-header.mjs +3 -3
- package/esm2022/sort/sort-module.mjs +4 -4
- package/esm2022/sort/sort.mjs +3 -3
- package/esm2022/stepper/step-content.mjs +3 -3
- package/esm2022/stepper/step-header.mjs +3 -3
- package/esm2022/stepper/step-label.mjs +3 -3
- package/esm2022/stepper/stepper-button.mjs +6 -6
- package/esm2022/stepper/stepper-icon.mjs +3 -3
- package/esm2022/stepper/stepper-intl.mjs +3 -3
- package/esm2022/stepper/stepper-module.mjs +4 -4
- package/esm2022/stepper/stepper.mjs +6 -6
- package/esm2022/table/cell.mjs +21 -21
- package/esm2022/table/module.mjs +4 -4
- package/esm2022/table/row.mjs +21 -21
- package/esm2022/table/table.mjs +6 -6
- package/esm2022/table/text-column.mjs +3 -3
- package/esm2022/tabs/ink-bar.mjs +3 -3
- package/esm2022/tabs/module.mjs +4 -4
- package/esm2022/tabs/paginated-tab-header.mjs +3 -3
- package/esm2022/tabs/tab-body.mjs +6 -6
- package/esm2022/tabs/tab-content.mjs +3 -3
- package/esm2022/tabs/tab-group.mjs +3 -3
- package/esm2022/tabs/tab-header.mjs +3 -3
- package/esm2022/tabs/tab-label-wrapper.mjs +3 -3
- package/esm2022/tabs/tab-label.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +9 -9
- package/esm2022/tabs/tab.mjs +3 -3
- package/esm2022/toolbar/toolbar-module.mjs +4 -4
- package/esm2022/toolbar/toolbar.mjs +6 -6
- package/esm2022/tooltip/module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +6 -6
- package/esm2022/tree/node.mjs +9 -9
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.mjs +3 -3
- package/esm2022/tree/toggle.mjs +3 -3
- package/esm2022/tree/tree-module.mjs +4 -4
- package/esm2022/tree/tree.mjs +3 -3
- package/fesm2022/autocomplete.mjs +13 -13
- package/fesm2022/badge.mjs +10 -10
- package/fesm2022/bottom-sheet.mjs +10 -10
- package/fesm2022/button-toggle.mjs +10 -10
- package/fesm2022/button.mjs +34 -34
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/checkbox.mjs +16 -16
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips.mjs +50 -67
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +60 -60
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +82 -82
- package/fesm2022/dialog.mjs +26 -26
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/expansion.mjs +25 -25
- package/fesm2022/form-field.mjs +34 -34
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/icon/testing.mjs +7 -7
- package/fesm2022/icon.mjs +10 -10
- package/fesm2022/input.mjs +7 -7
- package/fesm2022/list.mjs +49 -49
- package/fesm2022/menu.mjs +16 -16
- package/fesm2022/paginator.mjs +10 -10
- package/fesm2022/progress-bar.mjs +7 -7
- package/fesm2022/progress-spinner.mjs +7 -7
- package/fesm2022/radio.mjs +11 -11
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select.mjs +10 -10
- package/fesm2022/sidenav.mjs +22 -22
- package/fesm2022/slide-toggle.mjs +16 -16
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +22 -20
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +22 -22
- package/fesm2022/sort.mjs +13 -13
- package/fesm2022/stepper.mjs +31 -31
- package/fesm2022/table.mjs +55 -55
- package/fesm2022/tabs.mjs +43 -43
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/tooltip.mjs +10 -10
- package/fesm2022/tree.mjs +25 -25
- package/package.json +2 -2
- 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/radio/_radio-theme.scss +36 -34
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/index_bundled.js +45 -0
- package/schematics/ng-update/index_bundled.js.map +3 -3
- package/slide-toggle/_slide-toggle-theme.scss +37 -33
- package/slider/index.d.ts +3 -2
- package/core/internal-form-field/_internal-form-field-theme.scss +0 -37
- package/core/tokens/m2/mdc/_form-field.scss +0 -46
- package/core/tokens/m3/mdc/_form-field.scss +0 -25
- package/dialog/_mdc-dialog-structure-overrides.scss +0 -58
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use '@material/checkbox/checkbox-theme' as mdc-checkbox-theme;
|
|
2
|
-
@use '@material/form-field/form-field-theme' as mdc-form-field-theme;
|
|
3
2
|
@use '../core/style/sass-utils';
|
|
4
3
|
@use '../core/theming/theming';
|
|
5
4
|
@use '../core/theming/inspection';
|
|
@@ -7,7 +6,6 @@
|
|
|
7
6
|
@use '../core/tokens/token-utils';
|
|
8
7
|
@use '../core/typography/typography';
|
|
9
8
|
@use '../core/tokens/m2/mdc/checkbox' as tokens-mdc-checkbox;
|
|
10
|
-
@use '../core/tokens/m2/mdc/form-field' as tokens-mdc-form-field;
|
|
11
9
|
@use '../core/tokens/m2/mat/checkbox' as tokens-mat-checkbox;
|
|
12
10
|
|
|
13
11
|
/// Outputs base theme styles (styles not dependent on the color, typography, or density settings)
|
|
@@ -16,12 +14,13 @@
|
|
|
16
14
|
@mixin base($theme) {
|
|
17
15
|
@if inspection.get-theme-version($theme) == 1 {
|
|
18
16
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
19
|
-
}
|
|
20
|
-
@else {
|
|
17
|
+
} @else {
|
|
21
18
|
@include sass-utils.current-selector-or-root() {
|
|
22
19
|
@include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-unthemable-tokens());
|
|
23
20
|
@include token-utils.create-token-values(
|
|
24
|
-
tokens-mat-checkbox.$prefix,
|
|
21
|
+
tokens-mat-checkbox.$prefix,
|
|
22
|
+
tokens-mat-checkbox.get-unthemable-tokens()
|
|
23
|
+
);
|
|
25
24
|
}
|
|
26
25
|
}
|
|
27
26
|
}
|
|
@@ -34,17 +33,16 @@
|
|
|
34
33
|
@mixin color($theme, $options...) {
|
|
35
34
|
@if inspection.get-theme-version($theme) == 1 {
|
|
36
35
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
37
|
-
}
|
|
38
|
-
@else {
|
|
36
|
+
} @else {
|
|
39
37
|
@include sass-utils.current-selector-or-root() {
|
|
40
38
|
@include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-color-tokens($theme));
|
|
41
39
|
@include token-utils.create-token-values(
|
|
42
|
-
tokens-mat-checkbox.$prefix,
|
|
40
|
+
tokens-mat-checkbox.$prefix,
|
|
41
|
+
tokens-mat-checkbox.get-color-tokens($theme)
|
|
42
|
+
);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.mat-mdc-checkbox {
|
|
46
|
-
@include mdc-form-field-theme.theme(tokens-mdc-form-field.get-color-tokens($theme));
|
|
47
|
-
|
|
48
46
|
&.mat-primary {
|
|
49
47
|
@include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-color-tokens($theme, primary));
|
|
50
48
|
}
|
|
@@ -61,16 +59,13 @@
|
|
|
61
59
|
@mixin typography($theme) {
|
|
62
60
|
@if inspection.get-theme-version($theme) == 1 {
|
|
63
61
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
64
|
-
}
|
|
65
|
-
@else {
|
|
62
|
+
} @else {
|
|
66
63
|
@include sass-utils.current-selector-or-root() {
|
|
67
64
|
@include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-typography-tokens($theme));
|
|
68
65
|
@include token-utils.create-token-values(
|
|
69
|
-
tokens-mat-checkbox.$prefix,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
.mat-mdc-checkbox {
|
|
73
|
-
@include mdc-form-field-theme.theme(tokens-mdc-form-field.get-typography-tokens($theme));
|
|
66
|
+
tokens-mat-checkbox.$prefix,
|
|
67
|
+
tokens-mat-checkbox.get-typography-tokens($theme)
|
|
68
|
+
);
|
|
74
69
|
}
|
|
75
70
|
}
|
|
76
71
|
}
|
|
@@ -82,12 +77,13 @@
|
|
|
82
77
|
|
|
83
78
|
@if inspection.get-theme-version($theme) == 1 {
|
|
84
79
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
85
|
-
}
|
|
86
|
-
@else {
|
|
80
|
+
} @else {
|
|
87
81
|
@include sass-utils.current-selector-or-root() {
|
|
88
82
|
@include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-density-tokens($theme));
|
|
89
83
|
@include token-utils.create-token-values(
|
|
90
|
-
tokens-mat-checkbox.$prefix,
|
|
84
|
+
tokens-mat-checkbox.$prefix,
|
|
85
|
+
tokens-mat-checkbox.get-density-tokens($theme)
|
|
86
|
+
);
|
|
91
87
|
}
|
|
92
88
|
}
|
|
93
89
|
}
|
|
@@ -97,8 +93,14 @@
|
|
|
97
93
|
@mixin overrides($tokens: ()) {
|
|
98
94
|
@include token-utils.batch-create-token-values(
|
|
99
95
|
$tokens,
|
|
100
|
-
(
|
|
101
|
-
|
|
96
|
+
(
|
|
97
|
+
prefix: tokens-mat-checkbox.$prefix,
|
|
98
|
+
tokens: tokens-mat-checkbox.get-token-slots(),
|
|
99
|
+
),
|
|
100
|
+
(
|
|
101
|
+
prefix: tokens-mdc-checkbox.$prefix,
|
|
102
|
+
tokens: tokens-mdc-checkbox.get-token-slots(),
|
|
103
|
+
)
|
|
102
104
|
);
|
|
103
105
|
}
|
|
104
106
|
|
|
@@ -111,8 +113,7 @@
|
|
|
111
113
|
@include theming.private-check-duplicate-theme-styles($theme, 'mat-checkbox') {
|
|
112
114
|
@if inspection.get-theme-version($theme) == 1 {
|
|
113
115
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
|
|
114
|
-
}
|
|
115
|
-
@else {
|
|
116
|
+
} @else {
|
|
116
117
|
@include base($theme);
|
|
117
118
|
@if inspection.theme-has($theme, color) {
|
|
118
119
|
@include color($theme);
|
|
@@ -129,14 +130,16 @@
|
|
|
129
130
|
|
|
130
131
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
131
132
|
@include validation.selector-defined(
|
|
132
|
-
|
|
133
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector'
|
|
134
|
+
);
|
|
133
135
|
$mdc-checkbox-tokens: token-utils.get-tokens-for(
|
|
134
|
-
|
|
135
|
-
|
|
136
|
+
$tokens,
|
|
137
|
+
tokens-mdc-checkbox.$prefix,
|
|
138
|
+
$options...
|
|
139
|
+
);
|
|
140
|
+
// Don't pass $options here, since the mdc-checkbox doesn't support color options,
|
|
136
141
|
// only the mdc-checkbox does.
|
|
137
|
-
$mdc-form-field-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-form-field.$prefix);
|
|
138
142
|
$mat-checkbox-tokens: token-utils.get-tokens-for($tokens, tokens-mat-checkbox.$prefix);
|
|
139
143
|
@include mdc-checkbox-theme.theme($mdc-checkbox-tokens);
|
|
140
|
-
@include mdc-form-field-theme.theme($mdc-form-field-tokens);
|
|
141
144
|
@include token-utils.create-token-values(tokens-mat-checkbox.$prefix, $mat-checkbox-tokens);
|
|
142
145
|
}
|
package/chips/index.d.ts
CHANGED
|
@@ -528,10 +528,8 @@ export declare class MatChipGridChange {
|
|
|
528
528
|
* Directive that adds chip-specific behaviors to an input element inside `<mat-form-field>`.
|
|
529
529
|
* May be placed inside or outside of a `<mat-chip-grid>`.
|
|
530
530
|
*/
|
|
531
|
-
export declare class MatChipInput implements MatChipTextControl,
|
|
531
|
+
export declare class MatChipInput implements MatChipTextControl, OnChanges, OnDestroy {
|
|
532
532
|
protected _elementRef: ElementRef<HTMLInputElement>;
|
|
533
|
-
/** Used to prevent focus moving to chips while user is holding backspace */
|
|
534
|
-
private _focusLastChipOnBackspace;
|
|
535
533
|
/** Whether the control is focused. */
|
|
536
534
|
focused: boolean;
|
|
537
535
|
/** Register input for chip list */
|
|
@@ -565,13 +563,8 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
565
563
|
constructor(_elementRef: ElementRef<HTMLInputElement>, defaultOptions: MatChipsDefaultOptions, formField?: MatFormField);
|
|
566
564
|
ngOnChanges(): void;
|
|
567
565
|
ngOnDestroy(): void;
|
|
568
|
-
ngAfterContentInit(): void;
|
|
569
566
|
/** Utility method to make host definition/tests more clear. */
|
|
570
|
-
_keydown(event
|
|
571
|
-
/**
|
|
572
|
-
* Pass events to the keyboard manager. Available here for tests.
|
|
573
|
-
*/
|
|
574
|
-
_keyup(event: KeyboardEvent): void;
|
|
567
|
+
_keydown(event: KeyboardEvent): void;
|
|
575
568
|
/** Checks to see if the blur should emit the (chipEnd) event. */
|
|
576
569
|
_blur(): void;
|
|
577
570
|
_focus(): void;
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
@use './mdc/extended-fab' as tokens-mdc-extended-fab;
|
|
57
57
|
@use './mdc/fab' as tokens-mdc-fab;
|
|
58
58
|
@use './mdc/fab-small' as tokens-mdc-fab-small;
|
|
59
|
-
@use './mdc/form-field' as tokens-mdc-form-field;
|
|
60
59
|
@use './mdc/filled-text-field' as tokens-mdc-filled-text-field;
|
|
61
60
|
@use './mdc/icon-button' as tokens-mdc-icon-button;
|
|
62
61
|
@use './mdc/linear-progress' as tokens-mdc-linear-progress;
|
|
@@ -81,14 +80,12 @@
|
|
|
81
80
|
/// with the given Angular Material theme. Token names are not fully-qualified.
|
|
82
81
|
@function _get-tokens-for-module-and-system($theme, $module, $system) {
|
|
83
82
|
@if $system == unthemable {
|
|
84
|
-
@return meta.call(
|
|
85
|
-
meta.get-function(get-#{$system}-tokens, $module: $module));
|
|
83
|
+
@return meta.call(meta.get-function(get-#{$system}-tokens, $module: $module));
|
|
86
84
|
}
|
|
87
85
|
@if not inspection.theme-has($theme, $system) {
|
|
88
86
|
@return ();
|
|
89
87
|
}
|
|
90
|
-
@return meta.call(
|
|
91
|
-
meta.get-function(get-#{$system}-tokens, $module: $module), $theme);
|
|
88
|
+
@return meta.call(meta.get-function(get-#{$system}-tokens, $module: $module), $theme);
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
/// Gets the fully qualified tokens map for the given theme and m2 tokens module.
|
|
@@ -98,10 +95,11 @@
|
|
|
98
95
|
/// Angular Material theme. Token names are fully-qualified.
|
|
99
96
|
@function _get-tokens-for-module($theme, $module) {
|
|
100
97
|
$tokens: sass-utils.deep-merge-all(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
_get-tokens-for-module-and-system($theme, $module, unthemable),
|
|
99
|
+
_get-tokens-for-module-and-system($theme, $module, color),
|
|
100
|
+
_get-tokens-for-module-and-system($theme, $module, typography),
|
|
101
|
+
_get-tokens-for-module-and-system($theme, $module, density)
|
|
102
|
+
);
|
|
105
103
|
@return map.set((), map.get(meta.module-variables($module), prefix), $tokens);
|
|
106
104
|
}
|
|
107
105
|
|
|
@@ -115,74 +113,73 @@
|
|
|
115
113
|
/// )
|
|
116
114
|
@function m2-tokens-from-theme($theme) {
|
|
117
115
|
@return sass-utils.deep-merge-all(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
_get-tokens-for-module($theme, tokens-mdc-text-button),
|
|
116
|
+
_get-tokens-for-module($theme, tokens-mat-app),
|
|
117
|
+
_get-tokens-for-module($theme, tokens-mat-autocomplete),
|
|
118
|
+
_get-tokens-for-module($theme, tokens-mat-badge),
|
|
119
|
+
_get-tokens-for-module($theme, tokens-mat-bottom-sheet),
|
|
120
|
+
_get-tokens-for-module($theme, tokens-mat-button-toggle),
|
|
121
|
+
_get-tokens-for-module($theme, tokens-mat-card),
|
|
122
|
+
_get-tokens-for-module($theme, tokens-mat-chip),
|
|
123
|
+
_get-tokens-for-module($theme, tokens-mat-datepicker),
|
|
124
|
+
_get-tokens-for-module($theme, tokens-mat-dialog),
|
|
125
|
+
_get-tokens-for-module($theme, tokens-mat-divider),
|
|
126
|
+
_get-tokens-for-module($theme, tokens-mat-expansion),
|
|
127
|
+
_get-tokens-for-module($theme, tokens-mat-fab),
|
|
128
|
+
_get-tokens-for-module($theme, tokens-mat-fab-small),
|
|
129
|
+
_get-tokens-for-module($theme, tokens-mat-filled-button),
|
|
130
|
+
_get-tokens-for-module($theme, tokens-mat-form-field),
|
|
131
|
+
_get-tokens-for-module($theme, tokens-mat-grid-list),
|
|
132
|
+
_get-tokens-for-module($theme, tokens-mat-icon-button),
|
|
133
|
+
_get-tokens-for-module($theme, tokens-mat-icon),
|
|
134
|
+
_get-tokens-for-module($theme, tokens-mat-menu),
|
|
135
|
+
_get-tokens-for-module($theme, tokens-mat-optgroup),
|
|
136
|
+
_get-tokens-for-module($theme, tokens-mat-option),
|
|
137
|
+
_get-tokens-for-module($theme, tokens-mat-outlined-button),
|
|
138
|
+
_get-tokens-for-module($theme, tokens-mat-paginator),
|
|
139
|
+
_get-tokens-for-module($theme, tokens-mat-checkbox),
|
|
140
|
+
_get-tokens-for-module($theme, tokens-mat-full-pseudo-checkbox),
|
|
141
|
+
_get-tokens-for-module($theme, tokens-mat-list),
|
|
142
|
+
_get-tokens-for-module($theme, tokens-mat-minimal-pseudo-checkbox),
|
|
143
|
+
_get-tokens-for-module($theme, tokens-mat-protected-button),
|
|
144
|
+
_get-tokens-for-module($theme, tokens-mat-radio),
|
|
145
|
+
_get-tokens-for-module($theme, tokens-mat-ripple),
|
|
146
|
+
_get-tokens-for-module($theme, tokens-mat-select),
|
|
147
|
+
_get-tokens-for-module($theme, tokens-mat-sidenav),
|
|
148
|
+
_get-tokens-for-module($theme, tokens-mat-slider),
|
|
149
|
+
_get-tokens-for-module($theme, tokens-mat-switch),
|
|
150
|
+
_get-tokens-for-module($theme, tokens-mat-snack-bar),
|
|
151
|
+
_get-tokens-for-module($theme, tokens-mat-sort),
|
|
152
|
+
_get-tokens-for-module($theme, tokens-mat-stepper),
|
|
153
|
+
_get-tokens-for-module($theme, tokens-mat-tab-header-with-background),
|
|
154
|
+
_get-tokens-for-module($theme, tokens-mat-tab-header),
|
|
155
|
+
_get-tokens-for-module($theme, tokens-mat-table),
|
|
156
|
+
_get-tokens-for-module($theme, tokens-mat-text-button),
|
|
157
|
+
_get-tokens-for-module($theme, tokens-mat-toolbar),
|
|
158
|
+
_get-tokens-for-module($theme, tokens-mat-tree),
|
|
159
|
+
_get-tokens-for-module($theme, tokens-mdc-checkbox),
|
|
160
|
+
_get-tokens-for-module($theme, tokens-mdc-chip),
|
|
161
|
+
_get-tokens-for-module($theme, tokens-mdc-circular-progress),
|
|
162
|
+
_get-tokens-for-module($theme, tokens-mdc-dialog),
|
|
163
|
+
_get-tokens-for-module($theme, tokens-mdc-elevated-card),
|
|
164
|
+
_get-tokens-for-module($theme, tokens-mdc-extended-fab),
|
|
165
|
+
_get-tokens-for-module($theme, tokens-mdc-fab),
|
|
166
|
+
_get-tokens-for-module($theme, tokens-mdc-fab-small),
|
|
167
|
+
_get-tokens-for-module($theme, tokens-mdc-filled-button),
|
|
168
|
+
_get-tokens-for-module($theme, tokens-mdc-filled-text-field),
|
|
169
|
+
_get-tokens-for-module($theme, tokens-mdc-icon-button),
|
|
170
|
+
_get-tokens-for-module($theme, tokens-mdc-linear-progress),
|
|
171
|
+
_get-tokens-for-module($theme, tokens-mdc-list),
|
|
172
|
+
_get-tokens-for-module($theme, tokens-mdc-outlined-button),
|
|
173
|
+
_get-tokens-for-module($theme, tokens-mdc-outlined-card),
|
|
174
|
+
_get-tokens-for-module($theme, tokens-mdc-outlined-text-field),
|
|
175
|
+
_get-tokens-for-module($theme, tokens-mdc-plain-tooltip),
|
|
176
|
+
_get-tokens-for-module($theme, tokens-mdc-protected-button),
|
|
177
|
+
_get-tokens-for-module($theme, tokens-mdc-radio),
|
|
178
|
+
_get-tokens-for-module($theme, tokens-mdc-slider),
|
|
179
|
+
_get-tokens-for-module($theme, tokens-mdc-snack-bar),
|
|
180
|
+
_get-tokens-for-module($theme, tokens-mdc-switch),
|
|
181
|
+
_get-tokens-for-module($theme, tokens-mdc-tab-indicator),
|
|
182
|
+
_get-tokens-for-module($theme, tokens-mdc-tab),
|
|
183
|
+
_get-tokens-for-module($theme, tokens-mdc-text-button)
|
|
187
184
|
);
|
|
188
185
|
}
|
|
@@ -16,30 +16,35 @@ $prefix: (mat, checkbox);
|
|
|
16
16
|
@function get-color-tokens($theme) {
|
|
17
17
|
@return (
|
|
18
18
|
disabled-label-color: inspection.get-theme-color($theme, foreground, disabled-text),
|
|
19
|
+
label-text-color: inspection.get-theme-color($theme, foreground, text)
|
|
19
20
|
);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
23
24
|
@function get-typography-tokens($theme) {
|
|
24
|
-
@return (
|
|
25
|
+
@return (
|
|
26
|
+
label-text-font: inspection.get-theme-typography($theme, body-2, font-family),
|
|
27
|
+
label-text-line-height: inspection.get-theme-typography($theme, body-2, line-height),
|
|
28
|
+
label-text-size: inspection.get-theme-typography($theme, body-2, font-size),
|
|
29
|
+
label-text-tracking: inspection.get-theme-typography($theme, body-2, letter-spacing),
|
|
30
|
+
label-text-weight: inspection.get-theme-typography($theme, body-2, font-weight)
|
|
31
|
+
);
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
28
35
|
@function get-density-tokens($theme) {
|
|
29
36
|
$density-scale: theming.clamp-density(inspection.get-theme-density($theme), -3);
|
|
30
37
|
|
|
31
|
-
@return (
|
|
32
|
-
touch-target-display: if($density-scale < -1, none, block),
|
|
33
|
-
);
|
|
38
|
+
@return (touch-target-display: if($density-scale < -1, none, block));
|
|
34
39
|
}
|
|
35
40
|
|
|
36
41
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
37
42
|
// This is used to create token slots.
|
|
38
43
|
@function get-token-slots() {
|
|
39
44
|
@return sass-utils.deep-merge-all(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
get-unthemable-tokens(),
|
|
46
|
+
get-color-tokens(token-utils.$placeholder-color-config),
|
|
47
|
+
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
48
|
+
get-density-tokens(token-utils.$placeholder-density-config)
|
|
44
49
|
);
|
|
45
50
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@material/elevation/elevation-theme' as mdc-elevation;
|
|
1
2
|
@use '../../token-utils';
|
|
2
3
|
@use '../../../style/sass-utils';
|
|
3
4
|
|
|
@@ -8,6 +9,7 @@ $prefix: (mat, dialog);
|
|
|
8
9
|
// but may be in a future version of the theming API.
|
|
9
10
|
@function get-unthemable-tokens() {
|
|
10
11
|
@return (
|
|
12
|
+
container-elevation-shadow: mdc-elevation.elevation-box-shadow(24),
|
|
11
13
|
container-max-width: 80vw,
|
|
12
14
|
container-small-max-width: 80vw,
|
|
13
15
|
container-min-width: 0,
|
|
@@ -18,30 +18,35 @@ $prefix: (mat, radio);
|
|
|
18
18
|
ripple-color: inspection.get-theme-color($theme, foreground, base),
|
|
19
19
|
checked-ripple-color: inspection.get-theme-color($theme, $palette-name, default),
|
|
20
20
|
disabled-label-color: inspection.get-theme-color($theme, foreground, disabled-text),
|
|
21
|
+
label-text-color: inspection.get-theme-color($theme, foreground, text)
|
|
21
22
|
);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
25
26
|
@function get-typography-tokens($theme) {
|
|
26
|
-
@return (
|
|
27
|
+
@return (
|
|
28
|
+
label-text-font: inspection.get-theme-typography($theme, body-2, font-family),
|
|
29
|
+
label-text-line-height: inspection.get-theme-typography($theme, body-2, line-height),
|
|
30
|
+
label-text-size: inspection.get-theme-typography($theme, body-2, font-size),
|
|
31
|
+
label-text-tracking: inspection.get-theme-typography($theme, body-2, letter-spacing),
|
|
32
|
+
label-text-weight: inspection.get-theme-typography($theme, body-2, font-weight)
|
|
33
|
+
);
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
30
37
|
@function get-density-tokens($theme) {
|
|
31
38
|
$density-scale: theming.clamp-density(inspection.get-theme-density($theme), -3);
|
|
32
39
|
|
|
33
|
-
@return (
|
|
34
|
-
touch-target-display: if($density-scale < -1, none, block),
|
|
35
|
-
);
|
|
40
|
+
@return (touch-target-display: if($density-scale < -1, none, block));
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
39
44
|
// This is used to create token slots.
|
|
40
45
|
@function get-token-slots() {
|
|
41
46
|
@return sass-utils.deep-merge-all(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
get-unthemable-tokens(),
|
|
48
|
+
get-color-tokens(token-utils.$placeholder-color-config),
|
|
49
|
+
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
50
|
+
get-density-tokens(token-utils.$placeholder-density-config)
|
|
46
51
|
);
|
|
47
52
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../../token-utils';
|
|
2
2
|
@use '../../../style/sass-utils';
|
|
3
|
+
@use '../../../theming/inspection';
|
|
3
4
|
|
|
4
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
6
|
$prefix: (mat, switch);
|
|
@@ -29,29 +30,33 @@ $prefix: (mat, switch);
|
|
|
29
30
|
//
|
|
30
31
|
// The m2 slide-toggle uses transforms to hide & show the tracks while
|
|
31
32
|
// the m3 slide-toggle uses opacity.
|
|
32
|
-
|
|
33
33
|
visible-track-opacity: 1,
|
|
34
34
|
hidden-track-opacity: 1,
|
|
35
35
|
visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1),
|
|
36
36
|
hidden-track-transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1),
|
|
37
|
-
|
|
38
37
|
track-outline-width: 1px,
|
|
39
38
|
track-outline-color: transparent,
|
|
40
39
|
selected-track-outline-width: 1px,
|
|
41
40
|
selected-track-outline-color: transparent,
|
|
42
41
|
disabled-unselected-track-outline-width: 1px,
|
|
43
|
-
disabled-unselected-track-outline-color: transparent
|
|
42
|
+
disabled-unselected-track-outline-color: transparent
|
|
44
43
|
);
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
48
47
|
@function get-color-tokens($theme) {
|
|
49
|
-
@return ();
|
|
48
|
+
@return (label-text-color: inspection.get-theme-color($theme, foreground, text));
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
53
52
|
@function get-typography-tokens($theme) {
|
|
54
|
-
@return (
|
|
53
|
+
@return (
|
|
54
|
+
label-text-font: inspection.get-theme-typography($theme, body-2, font-family),
|
|
55
|
+
label-text-line-height: inspection.get-theme-typography($theme, body-2, line-height),
|
|
56
|
+
label-text-size: inspection.get-theme-typography($theme, body-2, font-size),
|
|
57
|
+
label-text-tracking: inspection.get-theme-typography($theme, body-2, letter-spacing),
|
|
58
|
+
label-text-weight: inspection.get-theme-typography($theme, body-2, font-weight)
|
|
59
|
+
);
|
|
55
60
|
}
|
|
56
61
|
|
|
57
62
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
@@ -63,9 +68,9 @@ $prefix: (mat, switch);
|
|
|
63
68
|
// This is used to create token slots.
|
|
64
69
|
@function get-token-slots() {
|
|
65
70
|
@return sass-utils.deep-merge-all(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
71
|
+
get-unthemable-tokens(),
|
|
72
|
+
get-color-tokens(token-utils.$placeholder-color-config),
|
|
73
|
+
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
74
|
+
get-density-tokens(token-utils.$placeholder-density-config)
|
|
70
75
|
);
|
|
71
76
|
}
|
|
@@ -13,15 +13,13 @@ $prefix: (mdc, dialog);
|
|
|
13
13
|
// our CSS.
|
|
14
14
|
@function get-unthemable-tokens() {
|
|
15
15
|
@return (
|
|
16
|
-
// Height of the container's elevation.
|
|
17
|
-
container-elevation: 24,
|
|
18
|
-
// Color of the elevation shadow.
|
|
19
|
-
container-shadow-color: #000,
|
|
20
16
|
// Border radius of the container.
|
|
21
17
|
container-shape: 4px,
|
|
22
18
|
// =============================================================================================
|
|
23
19
|
// = TOKENS NOT USED IN ANGULAR MATERIAL =
|
|
24
20
|
// =============================================================================================
|
|
21
|
+
container-elevation: null,
|
|
22
|
+
container-shadow-color: null,
|
|
25
23
|
with-divider-divider-height: null,
|
|
26
24
|
with-divider-divider-color: null,
|
|
27
25
|
with-icon-icon-size: null,
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
@use './mdc/extended-fab' as tokens-mdc-extended-fab;
|
|
55
55
|
@use './mdc/fab' as tokens-mdc-fab;
|
|
56
56
|
@use './mdc/fab-small' as tokens-mdc-fab-small;
|
|
57
|
-
@use './mdc/form-field' as tokens-mdc-form-field;
|
|
58
57
|
@use './mdc/filled-text-field' as tokens-mdc-filled-text-field;
|
|
59
58
|
@use './mdc/icon-button' as tokens-mdc-icon-button;
|
|
60
59
|
@use './mdc/linear-progress' as tokens-mdc-linear-progress;
|
|
@@ -113,7 +112,6 @@ $_module-names: (
|
|
|
113
112
|
tokens-mat-text-button,
|
|
114
113
|
tokens-mat-toolbar,
|
|
115
114
|
tokens-mat-tree,
|
|
116
|
-
|
|
117
115
|
// MDC tokens
|
|
118
116
|
tokens-mdc-checkbox,
|
|
119
117
|
tokens-mdc-chip,
|
|
@@ -128,7 +126,6 @@ $_module-names: (
|
|
|
128
126
|
tokens-mdc-extended-fab,
|
|
129
127
|
tokens-mdc-fab,
|
|
130
128
|
tokens-mdc-fab-small,
|
|
131
|
-
tokens-mdc-form-field,
|
|
132
129
|
tokens-mdc-filled-text-field,
|
|
133
130
|
tokens-mdc-icon-button,
|
|
134
131
|
tokens-mdc-linear-progress,
|
|
@@ -141,7 +138,7 @@ $_module-names: (
|
|
|
141
138
|
tokens-mdc-snack-bar,
|
|
142
139
|
tokens-mdc-switch,
|
|
143
140
|
tokens-mdc-tab,
|
|
144
|
-
tokens-mdc-tab-indicator
|
|
141
|
+
tokens-mdc-tab-indicator
|
|
145
142
|
);
|
|
146
143
|
|
|
147
144
|
/// Gets the full set of M3 tokens for the given theme object.
|
|
@@ -153,7 +150,10 @@ $_module-names: (
|
|
|
153
150
|
$tokens: ();
|
|
154
151
|
|
|
155
152
|
@each $module-name in $_module-names {
|
|
156
|
-
$fn: meta.get-function(
|
|
153
|
+
$fn: meta.get-function(
|
|
154
|
+
$name: 'get-tokens',
|
|
155
|
+
$module: $module-name,
|
|
156
|
+
);
|
|
157
157
|
$tokens: map.merge($tokens, meta.call($fn, $systems, $exclude-hardcoded, $token-slots));
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -12,10 +12,15 @@ $prefix: (mat, checkbox);
|
|
|
12
12
|
/// @return {Map} A set of custom tokens for mat-checkbox
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: (
|
|
15
|
-
disabled-label-color:
|
|
16
|
-
map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
|
|
15
|
+
disabled-label-color:
|
|
16
|
+
sass-utils.safe-color-change(map.get($systems, md-sys-color, on-surface), $alpha: 0.38),
|
|
17
|
+
label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
18
|
+
label-text-font: map.get($systems, md-sys-typescale, body-medium-font),
|
|
19
|
+
label-text-line-height: map.get($systems, md-sys-typescale, body-medium-line-height),
|
|
20
|
+
label-text-size: map.get($systems, md-sys-typescale, body-medium-size),
|
|
21
|
+
label-text-tracking: map.get($systems, md-sys-typescale, body-medium-tracking),
|
|
22
|
+
label-text-weight: map.get($systems, md-sys-typescale, body-medium-weight),
|
|
17
23
|
);
|
|
18
24
|
|
|
19
25
|
@return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
|
|
20
26
|
}
|
|
21
|
-
|
|
@@ -10,6 +10,7 @@ $prefix: (mat, dialog);
|
|
|
10
10
|
/// @return {Map} A set of custom tokens for the dialog
|
|
11
11
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
12
12
|
$tokens: (
|
|
13
|
+
container-elevation-shadow: token-utils.hardcode(none, $exclude-hardcoded),
|
|
13
14
|
container-max-width: token-utils.hardcode(560px, $exclude-hardcoded),
|
|
14
15
|
container-small-max-width: token-utils.hardcode(calc(100vw - 32px), $exclude-hardcoded),
|
|
15
16
|
container-min-width: token-utils.hardcode(280px, $exclude-hardcoded),
|