@angular/material 17.2.0-next.1 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +3 -20
- package/autocomplete/_autocomplete-theme.scss +21 -3
- package/badge/_badge-theme.scss +3 -0
- package/bottom-sheet/_bottom-sheet-theme.scss +3 -0
- package/button/_button-theme.scss +4 -1
- package/button/_fab-theme.scss +3 -0
- package/button/_icon-button-theme.scss +3 -0
- package/button-toggle/_button-toggle-theme.scss +3 -0
- package/card/_card-theme.scss +3 -0
- package/checkbox/_checkbox-theme.scss +3 -0
- package/chips/_chips-theme.scss +10 -1
- package/core/_core-theme.scss +3 -0
- package/core/option/_optgroup-theme.scss +3 -0
- package/core/option/_option-theme.scss +3 -0
- package/core/ripple/_ripple-theme.scss +3 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +3 -0
- package/core/style/_menu-common.scss +5 -18
- package/core/theming/_inspection.scss +2 -1
- package/core/theming/_m2-inspection.scss +2 -1
- package/core/theming/_validation.scss +5 -0
- package/core/tokens/m2/_index.scss +9 -2
- package/core/tokens/m2/mat/_autocomplete.scss +5 -1
- package/core/tokens/m2/mat/_chip.scss +26 -2
- package/core/tokens/m2/mat/_datepicker.scss +10 -1
- package/core/tokens/m2/mat/_legacy-button-toggle.scss +5 -5
- package/core/tokens/m2/mat/_list.scss +44 -0
- package/core/tokens/m2/mat/_menu.scss +9 -0
- package/core/tokens/m2/mat/_paginator.scss +22 -2
- package/core/tokens/m2/mat/_select.scss +15 -2
- package/core/tokens/m2/mat/_sidenav.scss +3 -0
- package/core/tokens/m2/mat/_standard-button-toggle.scss +5 -5
- package/core/tokens/m2/mat/_switch.scss +69 -0
- package/core/tokens/m2/mdc/_chip.scss +26 -26
- package/core/tokens/m2/mdc/_switch.scss +1 -1
- package/core/typography/_all-typography.scss +6 -1
- package/core/typography/_typography.scss +126 -1
- package/datepicker/_datepicker-theme.scss +9 -1
- package/dialog/_dialog-theme.scss +3 -0
- package/divider/_divider-theme.scss +3 -0
- package/esm2022/autocomplete/autocomplete-origin.mjs +3 -3
- package/esm2022/autocomplete/autocomplete-trigger.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.mjs +5 -5
- 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 +8 -8
- 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 +3 -3
- 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 +3 -3
- package/esm2022/chips/chip-listbox.mjs +3 -3
- package/esm2022/chips/chip-option.mjs +6 -6
- package/esm2022/chips/chip-row.mjs +6 -6
- package/esm2022/chips/chip-set.mjs +3 -3
- package/esm2022/chips/chip.mjs +5 -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 +3 -3
- 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 +5 -5
- 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 +5 -5
- package/esm2022/datepicker/calendar.mjs +8 -8
- 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 +8 -8
- 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 +3 -3
- 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 +6 -6
- 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 +4 -4
- 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 +7 -7
- package/esm2022/list/nav-list.mjs +4 -4
- package/esm2022/list/selection-list.mjs +7 -7
- 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 +5 -5
- 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 +5 -5
- package/esm2022/progress-bar/module.mjs +4 -4
- package/esm2022/progress-bar/progress-bar.mjs +4 -4
- 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 +6 -6
- package/esm2022/select/module.mjs +4 -4
- package/esm2022/select/select.mjs +9 -9
- package/esm2022/sidenav/drawer.mjs +12 -12
- package/esm2022/sidenav/sidenav-module.mjs +4 -4
- package/esm2022/sidenav/sidenav.mjs +12 -12
- 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 +6 -6
- package/esm2022/slider/slider-thumb.mjs +3 -3
- package/esm2022/slider/slider.mjs +3 -3
- 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/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 +15 -10
- 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/expansion/_expansion-theme.scss +3 -0
- package/fesm2022/autocomplete.mjs +14 -14
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge.mjs +10 -10
- package/fesm2022/bottom-sheet.mjs +10 -10
- package/fesm2022/button-toggle.mjs +11 -11
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +34 -34
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/checkbox.mjs +14 -14
- package/fesm2022/chips.mjs +45 -45
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +60 -60
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +85 -85
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -25
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/expansion.mjs +25 -25
- package/fesm2022/form-field.mjs +36 -36
- package/fesm2022/form-field.mjs.map +1 -1
- 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 +55 -55
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu.mjs +17 -17
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator.mjs +11 -11
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +8 -8
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +7 -7
- package/fesm2022/radio.mjs +10 -10
- package/fesm2022/select.mjs +12 -12
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +26 -26
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +16 -16
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider.mjs +16 -16
- 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 +45 -40
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/tooltip.mjs +10 -10
- package/fesm2022/tree.mjs +25 -25
- package/form-field/_form-field-theme.scss +3 -0
- package/grid-list/_grid-list-theme.scss +3 -0
- package/icon/_icon-theme.scss +3 -0
- package/input/_input-theme.scss +5 -1
- package/list/_list-theme.scss +17 -3
- package/menu/_menu-theme.scss +3 -0
- package/package.json +7 -7
- package/paginator/_paginator-theme.scss +3 -7
- 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 +3 -0
- package/progress-spinner/_progress-spinner-theme.scss +3 -0
- package/radio/_radio-theme.scss +3 -0
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/mdc-migration/index_bundled.js +981 -568
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
- package/select/_select-theme.scss +9 -20
- package/sidenav/_sidenav-theme.scss +3 -0
- package/slide-toggle/_slide-toggle-theme.scss +23 -7
- package/slider/_slider-theme.scss +3 -0
- package/snack-bar/_snack-bar-theme.scss +3 -0
- package/sort/_sort-theme.scss +3 -0
- package/stepper/_stepper-theme.scss +3 -0
- package/table/_table-theme.scss +3 -0
- package/tabs/_tabs-theme.scss +3 -0
- package/toolbar/_toolbar-theme.scss +3 -0
- package/tooltip/_tooltip-theme.scss +3 -0
- package/tree/_tree-theme.scss +3 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
@use '@material/density' as mdc-density;
|
|
2
|
-
@use '@material/textfield' as mdc-textfield;
|
|
3
1
|
@use '../core/tokens/m2/mat/select' as tokens-mat-select;
|
|
4
2
|
@use '../core/tokens/token-utils';
|
|
5
3
|
@use '../core/style/sass-utils';
|
|
6
4
|
|
|
7
5
|
@use '../core/theming/theming';
|
|
8
6
|
@use '../core/theming/inspection';
|
|
7
|
+
@use '../core/theming/validation';
|
|
9
8
|
@use '../core/typography/typography';
|
|
10
9
|
|
|
11
10
|
/// Outputs base theme styles (styles not dependent on the color, typography, or density settings)
|
|
@@ -15,7 +14,12 @@
|
|
|
15
14
|
@if inspection.get-theme-version($theme) == 1 {
|
|
16
15
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
17
16
|
}
|
|
18
|
-
@else {
|
|
17
|
+
@else {
|
|
18
|
+
@include sass-utils.current-selector-or-root() {
|
|
19
|
+
$mat-tokens: tokens-mat-select.get-unthemable-tokens();
|
|
20
|
+
@include token-utils.create-token-values(tokens-mat-select.$prefix, $mat-tokens);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
/// Outputs color theme styles for the mat-select.
|
|
@@ -66,23 +70,6 @@
|
|
|
66
70
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
67
71
|
}
|
|
68
72
|
@else {
|
|
69
|
-
$density-scale: inspection.get-theme-density($theme);
|
|
70
|
-
|
|
71
|
-
// Density is clamped at -5 here, because MDC's form field throws an error for anything lower.
|
|
72
|
-
$form-field-height: mdc-density.prop-value(
|
|
73
|
-
$density-config: mdc-textfield.$density-config,
|
|
74
|
-
$density-scale: theming.clamp-density($density-scale, -5),
|
|
75
|
-
$property-name: height,
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
// On lower densities the filled form field hides its label which causes the label to
|
|
79
|
-
// be misaligned. Remove the additional offset that was added because of the label.
|
|
80
|
-
@if ($form-field-height < mdc-textfield.$minimum-height-for-filled-label) {
|
|
81
|
-
.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
|
|
82
|
-
transform: none;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
73
|
@include sass-utils.current-selector-or-root() {
|
|
87
74
|
@include token-utils.create-token-values(tokens-mat-select.$prefix,
|
|
88
75
|
tokens-mat-select.get-density-tokens($theme));
|
|
@@ -116,6 +103,8 @@
|
|
|
116
103
|
}
|
|
117
104
|
|
|
118
105
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
106
|
+
@include validation.selector-defined(
|
|
107
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
119
108
|
$mat-select-tokens: token-utils.get-tokens-for($tokens, tokens-mat-select.$prefix, $options...);
|
|
120
109
|
@include token-utils.create-token-values(tokens-mat-select.$prefix, $mat-select-tokens);
|
|
121
110
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../core/theming/theming';
|
|
3
3
|
@use '../core/theming/inspection';
|
|
4
|
+
@use '../core/theming/validation';
|
|
4
5
|
@use '../core/tokens/m2/mat/sidenav' as tokens-mat-sidenav;
|
|
5
6
|
@use '../core/tokens/token-utils';
|
|
6
7
|
@use '../core/style/sass-utils';
|
|
@@ -64,6 +65,8 @@
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
@mixin _theme-from-tokens($tokens) {
|
|
68
|
+
@include validation.selector-defined(
|
|
69
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
67
70
|
@if ($tokens != ()) {
|
|
68
71
|
@include token-utils.create-token-values(
|
|
69
72
|
tokens-mat-sidenav.$prefix, map.get($tokens, tokens-mat-sidenav.$prefix));
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
@use '../core/style/sass-utils';
|
|
4
4
|
@use '../core/theming/theming';
|
|
5
5
|
@use '../core/theming/inspection';
|
|
6
|
+
@use '../core/theming/validation';
|
|
6
7
|
@use '../core/tokens/token-utils';
|
|
7
8
|
@use '../core/typography/typography';
|
|
8
9
|
@use '../core/tokens/m2/mdc/form-field' as tokens-mdc-form-field;
|
|
10
|
+
@use '../core/tokens/m2/mat/switch' as tokens-mat-switch;
|
|
9
11
|
@use '../core/tokens/m2/mdc/switch' as tokens-mdc-switch;
|
|
10
12
|
|
|
11
13
|
/// Outputs base theme styles (styles not dependent on the color, typography, or density settings)
|
|
@@ -17,7 +19,10 @@
|
|
|
17
19
|
}
|
|
18
20
|
@else {
|
|
19
21
|
@include sass-utils.current-selector-or-root() {
|
|
20
|
-
|
|
22
|
+
$mat-tokens: tokens-mat-switch.get-unthemable-tokens();
|
|
23
|
+
$mdc-tokens: tokens-mdc-switch.get-unthemable-tokens();
|
|
24
|
+
@include mdc-switch-theme.theme($mdc-tokens);
|
|
25
|
+
@include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
|
|
21
26
|
}
|
|
22
27
|
}
|
|
23
28
|
}
|
|
@@ -33,11 +38,13 @@
|
|
|
33
38
|
}
|
|
34
39
|
@else {
|
|
35
40
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
36
|
-
$
|
|
41
|
+
$mat-tokens: tokens-mat-switch.get-color-tokens($theme);
|
|
42
|
+
$mdc-tokens: tokens-mdc-switch.get-color-tokens($theme);
|
|
37
43
|
|
|
38
44
|
// Add values for MDC slide toggles tokens
|
|
39
45
|
@include sass-utils.current-selector-or-root() {
|
|
40
|
-
@include mdc-switch-theme.theme($mdc-
|
|
46
|
+
@include mdc-switch-theme.theme($mdc-tokens);
|
|
47
|
+
@include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
|
|
41
48
|
|
|
42
49
|
// TODO(wagnermaciel): Use our token system to define this css variable.
|
|
43
50
|
--mdc-switch-disabled-label-text-color: #{inspection.get-theme-color(
|
|
@@ -71,11 +78,13 @@
|
|
|
71
78
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
72
79
|
}
|
|
73
80
|
@else {
|
|
74
|
-
$
|
|
81
|
+
$mat-tokens: tokens-mat-switch.get-typography-tokens($theme);
|
|
82
|
+
$mdc-tokens: tokens-mdc-switch.get-typography-tokens($theme);
|
|
75
83
|
|
|
76
84
|
// Add values for MDC slide toggle tokens
|
|
77
85
|
@include sass-utils.current-selector-or-root() {
|
|
78
|
-
@include mdc-switch-theme.theme($mdc-
|
|
86
|
+
@include mdc-switch-theme.theme($mdc-tokens);
|
|
87
|
+
@include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-tokens);
|
|
79
88
|
|
|
80
89
|
.mat-mdc-slide-toggle {
|
|
81
90
|
@include mdc-form-field-theme.theme(tokens-mdc-form-field.get-typography-tokens($theme));
|
|
@@ -92,6 +101,8 @@
|
|
|
92
101
|
}
|
|
93
102
|
@else {
|
|
94
103
|
@include sass-utils.current-selector-or-root() {
|
|
104
|
+
$mat-tokens: tokens-mat-switch.get-density-tokens($theme);
|
|
105
|
+
$mdc-tokens: tokens-mdc-switch.get-density-tokens($theme);
|
|
95
106
|
@include mdc-switch-theme.theme(tokens-mdc-switch.get-density-tokens($theme));
|
|
96
107
|
}
|
|
97
108
|
}
|
|
@@ -123,10 +134,15 @@
|
|
|
123
134
|
}
|
|
124
135
|
|
|
125
136
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
126
|
-
|
|
137
|
+
@include validation.selector-defined(
|
|
138
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
127
139
|
// Don't pass $options here, since the mdc-form-field doesn't support color options,
|
|
128
140
|
// only the mdc-switch does.
|
|
129
141
|
$mdc-form-field-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-form-field.$prefix);
|
|
130
|
-
|
|
142
|
+
$mat-switch-tokens: token-utils.get-tokens-for($tokens, tokens-mat-switch.$prefix);
|
|
143
|
+
$mdc-switch-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-switch.$prefix, $options...);
|
|
144
|
+
|
|
131
145
|
@include mdc-form-field-theme.theme($mdc-form-field-tokens);
|
|
146
|
+
@include mdc-switch-theme.theme($mdc-switch-tokens);
|
|
147
|
+
@include token-utils.create-token-values(tokens-mat-switch.$prefix, $mat-switch-tokens);
|
|
132
148
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '@material/slider/slider-theme' as mdc-slider-theme;
|
|
2
2
|
@use '../core/theming/theming';
|
|
3
3
|
@use '../core/theming/inspection';
|
|
4
|
+
@use '../core/theming/validation';
|
|
4
5
|
@use '../core/typography/typography';
|
|
5
6
|
@use '../core/style/sass-utils';
|
|
6
7
|
@use '../core/tokens/token-utils';
|
|
@@ -129,6 +130,8 @@
|
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
133
|
+
@include validation.selector-defined(
|
|
134
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
132
135
|
$mdc-slider-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-slider.$prefix, $options...);
|
|
133
136
|
$mat-slider-tokens: token-utils.get-tokens-for($tokens, tokens-mat-slider.$prefix, $options...);
|
|
134
137
|
@include mdc-slider-theme.theme($mdc-slider-tokens);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use '@material/snackbar/snackbar-theme' as mdc-snackbar-theme;
|
|
3
3
|
@use '../core/theming/theming';
|
|
4
4
|
@use '../core/theming/inspection';
|
|
5
|
+
@use '../core/theming/validation';
|
|
5
6
|
@use '../core/style/sass-utils';
|
|
6
7
|
@use '../core/typography/typography';
|
|
7
8
|
@use '../core/tokens/token-utils';
|
|
@@ -69,6 +70,8 @@
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
@mixin _theme-from-tokens($tokens) {
|
|
73
|
+
@include validation.selector-defined(
|
|
74
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
72
75
|
@if ($tokens != ()) {
|
|
73
76
|
@include mdc-snackbar-theme.theme(map.get($tokens, tokens-mdc-snack-bar.$prefix));
|
|
74
77
|
@include token-utils.create-token-values(
|
package/sort/_sort-theme.scss
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use '../core/typography/typography';
|
|
5
5
|
@use '../core/theming/theming';
|
|
6
6
|
@use '../core/theming/inspection';
|
|
7
|
+
@use '../core/theming/validation';
|
|
7
8
|
@use '../core/tokens/token-utils';
|
|
8
9
|
|
|
9
10
|
@mixin base($theme) {
|
|
@@ -70,6 +71,8 @@
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
@mixin _theme-from-tokens($tokens) {
|
|
74
|
+
@include validation.selector-defined(
|
|
75
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
73
76
|
@if ($tokens != ()) {
|
|
74
77
|
@include token-utils.create-token-values(
|
|
75
78
|
tokens-mat-sort.$prefix, map.get($tokens, tokens-mat-sort.$prefix));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../core/theming/theming';
|
|
2
2
|
@use '../core/theming/inspection';
|
|
3
|
+
@use '../core/theming/validation';
|
|
3
4
|
@use '../core/typography/typography';
|
|
4
5
|
@use '../core/style/sass-utils';
|
|
5
6
|
@use '../core/tokens/token-utils';
|
|
@@ -96,6 +97,8 @@
|
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
100
|
+
@include validation.selector-defined(
|
|
101
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
99
102
|
@if ($tokens != ()) {
|
|
100
103
|
$mat-stepper-tokens: token-utils.get-tokens-for(
|
|
101
104
|
$tokens,
|
package/table/_table-theme.scss
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@use '../core/tokens/m2/mat/table' as tokens-mat-table;
|
|
3
3
|
@use '../core/theming/theming';
|
|
4
4
|
@use '../core/theming/inspection';
|
|
5
|
+
@use '../core/theming/validation';
|
|
5
6
|
@use '../core/typography/typography';
|
|
6
7
|
@use '../core/tokens/token-utils';
|
|
7
8
|
@use '../core/style/sass-utils';
|
|
@@ -75,6 +76,8 @@
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
@mixin _theme-from-tokens($tokens) {
|
|
79
|
+
@include validation.selector-defined(
|
|
80
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
78
81
|
@if ($tokens != ()) {
|
|
79
82
|
@include token-utils.create-token-values(
|
|
80
83
|
tokens-mat-table.$prefix, map.get($tokens, tokens-mat-table.$prefix));
|
package/tabs/_tabs-theme.scss
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@use '../core/tokens/m2/mat/tab-header-with-background' as tokens-mat-tab-header-with-background;
|
|
8
8
|
@use '../core/theming/theming';
|
|
9
9
|
@use '../core/theming/inspection';
|
|
10
|
+
@use '../core/theming/validation';
|
|
10
11
|
@use '../core/typography/typography';
|
|
11
12
|
@use '../core/tokens/token-utils';
|
|
12
13
|
|
|
@@ -147,6 +148,8 @@
|
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
@mixin _theme-from-tokens($tokens, $options...) {
|
|
151
|
+
@include validation.selector-defined(
|
|
152
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
150
153
|
$mdc-tab-indicator-tokens: token-utils.get-tokens-for(
|
|
151
154
|
$tokens, tokens-mdc-tab-indicator.$prefix, $options...);
|
|
152
155
|
$mat-tab-header-tokens: token-utils.get-tokens-for(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../core/theming/theming';
|
|
3
3
|
@use '../core/theming/inspection';
|
|
4
|
+
@use '../core/theming/validation';
|
|
4
5
|
@use '../core/typography/typography';
|
|
5
6
|
@use '../core/tokens/m2/mat/toolbar' as tokens-mat-toolbar;
|
|
6
7
|
@use '../core/tokens/token-utils';
|
|
@@ -92,6 +93,8 @@
|
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
@mixin _theme-from-tokens($tokens) {
|
|
96
|
+
@include validation.selector-defined(
|
|
97
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
95
98
|
@if ($tokens != ()) {
|
|
96
99
|
@include token-utils.create-token-values(tokens-mat-toolbar.$prefix,
|
|
97
100
|
map.get($tokens, tokens-mat-toolbar.$prefix));
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use '../core/style/sass-utils';
|
|
4
4
|
@use '../core/theming/theming';
|
|
5
5
|
@use '../core/theming/inspection';
|
|
6
|
+
@use '../core/theming/validation';
|
|
6
7
|
@use '../core/typography/typography';
|
|
7
8
|
@use '../core/tokens/m2/mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
|
|
8
9
|
|
|
@@ -81,6 +82,8 @@
|
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
@mixin _theme-from-tokens($tokens) {
|
|
85
|
+
@include validation.selector-defined(
|
|
86
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
84
87
|
@if $tokens != () {
|
|
85
88
|
@include mdc-plain-tooltip-theme.theme(map.get($tokens, tokens-mdc-plain-tooltip.$prefix));
|
|
86
89
|
}
|
package/tree/_tree-theme.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../core/theming/theming';
|
|
3
3
|
@use '../core/theming/inspection';
|
|
4
|
+
@use '../core/theming/validation';
|
|
4
5
|
@use '../core/typography/typography';
|
|
5
6
|
@use '../core/style/sass-utils';
|
|
6
7
|
@use '../core/tokens/token-utils';
|
|
@@ -75,6 +76,8 @@
|
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
@mixin _theme-from-tokens($tokens) {
|
|
79
|
+
@include validation.selector-defined(
|
|
80
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
78
81
|
@if ($tokens != ()) {
|
|
79
82
|
@include token-utils.create-token-values(
|
|
80
83
|
tokens-mat-tree.$prefix, map.get($tokens, tokens-mat-tree.$prefix));
|