@ng-matero/extensions 17.3.5 → 18.0.1
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/README.md +11 -0
- package/_index.scss +6 -0
- package/alert/_alert-theme.scss +2 -3
- package/colorpicker/_colorpicker-theme.scss +2 -3
- package/colorpicker/colorpicker.d.ts +4 -4
- package/{experimental/theming/_color-api-back-compat.scss → core/theming/_color-api-backwards-compatibility.scss} +1 -1
- package/{experimental → core}/theming/_config-validation.scss +11 -5
- package/{experimental → core}/theming/_definition.scss +4 -3
- package/core/theming/prebuilt/azure-blue.scss +26 -0
- package/core/theming/prebuilt/cyan-orange.scss +26 -0
- package/core/theming/prebuilt/deeppurple-amber.scss +4 -4
- package/core/theming/prebuilt/indigo-pink.scss +4 -4
- package/core/theming/prebuilt/magenta-violet.scss +26 -0
- package/core/theming/prebuilt/pink-bluegrey.scss +4 -4
- package/core/theming/prebuilt/purple-green.scss +4 -4
- package/core/theming/prebuilt/rose-red.scss +26 -0
- package/{experimental/theming/_m3-density.scss → core/tokens/_density.scss} +0 -1
- package/core/tokens/_m3-tokens.scss +350 -0
- package/core/tokens/_token-utils.scss +164 -40
- package/core/tokens/m2/_index.scss +2 -3
- package/core/tokens/m2/mdc/_plain-tooltip.scss +1 -2
- package/core/tokens/m2/mtx/_alert.scss +5 -6
- package/core/tokens/m2/mtx/_colorpicker.scss +2 -3
- package/core/tokens/m2/mtx/_datetimepicker.scss +7 -8
- package/core/tokens/m2/mtx/_drawer.scss +3 -2
- package/core/tokens/m2/mtx/_grid.scss +4 -3
- package/core/tokens/m2/mtx/_loader.scss +2 -3
- package/core/tokens/m2/mtx/_popover.scss +1 -2
- package/core/tokens/m2/mtx/_progress.scss +5 -6
- package/core/tokens/m2/mtx/_select.scss +3 -2
- package/core/tokens/m2/mtx/_split.scss +2 -3
- package/core/tokens/m3/index.scss +45 -0
- package/core/tokens/m3/mtx/_alert.scss +31 -0
- package/core/tokens/m3/mtx/_colorpicker.scss +19 -0
- package/{experimental/theming/_custom-tokens.scss → core/tokens/m3/mtx/_datetimepicker.scss} +15 -191
- package/core/tokens/m3/mtx/_drawer.scss +22 -0
- package/core/tokens/m3/mtx/_grid.scss +34 -0
- package/core/tokens/m3/mtx/_loader.scss +22 -0
- package/core/tokens/m3/mtx/_popover.scss +22 -0
- package/core/tokens/m3/mtx/_progress.scss +31 -0
- package/core/tokens/m3/mtx/_select.scss +72 -0
- package/core/tokens/m3/mtx/_split.scss +30 -0
- package/datetimepicker/_datetimepicker-theme.scss +3 -4
- package/datetimepicker/calendar-body.scss +2 -2
- package/datetimepicker/calendar.d.ts +1 -0
- package/datetimepicker/datetimepicker-content.scss +0 -2
- package/datetimepicker/datetimepicker.d.ts +4 -4
- package/drawer/_drawer-theme.scss +2 -3
- package/drawer/drawer-container.scss +1 -2
- package/esm2022/alert/alert-module.mjs +4 -4
- package/esm2022/alert/alert.mjs +3 -3
- package/esm2022/button/button-loading.mjs +3 -3
- package/esm2022/button/button-module.mjs +4 -4
- package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
- package/esm2022/checkbox-group/checkbox-group.mjs +3 -3
- package/esm2022/colorpicker/colorpicker-input.mjs +3 -3
- package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
- package/esm2022/colorpicker/colorpicker-toggle.mjs +6 -6
- package/esm2022/colorpicker/colorpicker.mjs +14 -12
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2022/column-resize/column-resize-module.mjs +4 -4
- package/esm2022/column-resize/column-resize-notifier.mjs +6 -6
- package/esm2022/column-resize/column-resize.mjs +3 -3
- package/esm2022/column-resize/column-size-store.mjs +3 -3
- package/esm2022/column-resize/event-dispatcher.mjs +3 -3
- package/esm2022/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/column-resize/resizable.mjs +3 -3
- package/esm2022/column-resize/resize-strategy.mjs +9 -9
- package/esm2022/core/datetime/datetime.module.mjs +8 -8
- package/esm2022/core/datetime/native-datetime-adapter.mjs +3 -3
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +3 -3
- package/esm2022/core/pipes/pipes.module.mjs +4 -4
- package/esm2022/core/pipes/to-observable.pipe.mjs +3 -3
- package/esm2022/datetimepicker/calendar-body.mjs +3 -3
- package/esm2022/datetimepicker/calendar.mjs +9 -14
- package/esm2022/datetimepicker/clock.mjs +5 -5
- package/esm2022/datetimepicker/datetimepicker-input.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +6 -6
- package/esm2022/datetimepicker/datetimepicker.mjs +15 -13
- package/esm2022/datetimepicker/month-view.mjs +3 -3
- package/esm2022/datetimepicker/multi-year-view.mjs +3 -3
- package/esm2022/datetimepicker/time.mjs +6 -6
- package/esm2022/datetimepicker/year-view.mjs +3 -3
- package/esm2022/dialog/dialog-container.mjs +3 -3
- package/esm2022/dialog/dialog-module.mjs +4 -4
- package/esm2022/dialog/dialog.mjs +3 -3
- package/esm2022/drawer/drawer-container.mjs +5 -5
- package/esm2022/drawer/drawer-module.mjs +4 -4
- package/esm2022/drawer/drawer.mjs +3 -3
- package/esm2022/grid/cell.mjs +3 -3
- package/esm2022/grid/column-menu.mjs +5 -5
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +3 -3
- package/esm2022/grid/column-resize/resize-strategy.mjs +3 -3
- package/esm2022/grid/expansion-toggle.mjs +3 -3
- package/esm2022/grid/grid-module.mjs +4 -4
- package/esm2022/grid/grid-pipes.mjs +21 -21
- package/esm2022/grid/grid-utils.mjs +3 -3
- package/esm2022/grid/grid.mjs +3 -3
- package/esm2022/grid/selectable-cell.mjs +3 -3
- package/esm2022/loader/loader-module.mjs +4 -4
- package/esm2022/loader/loader.mjs +3 -3
- package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
- package/esm2022/photoviewer/photoviewer.mjs +3 -3
- package/esm2022/popover/popover-content.mjs +6 -6
- package/esm2022/popover/popover-module.mjs +4 -4
- package/esm2022/popover/popover-target.mjs +3 -3
- package/esm2022/popover/popover-trigger.mjs +6 -8
- package/esm2022/popover/popover.mjs +6 -6
- package/esm2022/progress/progress-module.mjs +4 -4
- package/esm2022/progress/progress.mjs +3 -3
- package/esm2022/select/option.mjs +3 -3
- package/esm2022/select/select-module.mjs +4 -4
- package/esm2022/select/select.mjs +37 -23
- package/esm2022/select/templates.mjs +33 -33
- package/esm2022/split/split-module.mjs +4 -4
- package/esm2022/split/split-pane.mjs +37 -28
- package/esm2022/split/split.mjs +55 -49
- package/esm2022/split/utils.mjs +1 -4
- package/esm2022/tooltip/tooltip-module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +6 -6
- package/fesm2022/mtxAlert.mjs +7 -7
- package/fesm2022/mtxButton.mjs +7 -7
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxColorpicker.mjs +27 -25
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +40 -40
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxDatetimepicker.mjs +61 -63
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +10 -10
- package/fesm2022/mtxDrawer.mjs +13 -13
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +68 -68
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPopover.mjs +24 -26
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +7 -7
- package/fesm2022/mtxSelect.mjs +76 -62
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +92 -80
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +12 -12
- package/grid/_grid-theme.scss +3 -4
- package/grid/column-menu.scss +15 -9
- package/grid/grid.scss +2 -2
- package/loader/_loader-theme.scss +2 -3
- package/package.json +18 -18
- package/popover/_popover-theme.scss +2 -3
- package/popover/popover.d.ts +2 -2
- package/prebuilt-themes/azure-blue.css +1 -0
- package/prebuilt-themes/cyan-orange.css +1 -0
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -0
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -0
- package/progress/_progress-theme.scss +3 -4
- package/select/_select-theme.scss +3 -4
- package/select/select.d.ts +17 -2
- package/select/select.scss +2 -4
- package/split/_split-theme.scss +2 -3
- package/split/split-pane.d.ts +29 -13
- package/split/split.d.ts +44 -20
- package/split/utils.d.ts +0 -1
- package/tooltip/_tooltip-theme.scss +4 -5
- package/core/style/_sass-utils.scss +0 -80
- package/experimental/_index.scss +0 -5
- package/experimental/theming/_m3-tokens.scss +0 -308
- /package/{experimental/theming → core/tokens}/_format-tokens.scss +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
3
|
@use '../../token-utils';
|
|
4
|
-
@use '../../../style/sass-utils';
|
|
5
4
|
|
|
6
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
6
|
$prefix: (mtx, alert);
|
|
@@ -22,13 +21,13 @@ $prefix: (mtx, alert);
|
|
|
22
21
|
outline-color: transparent,
|
|
23
22
|
background-color: mat.get-theme-color($theme, background, dialog),
|
|
24
23
|
text-color: mat.get-theme-color($theme, foreground, text),
|
|
25
|
-
info-background-color: mat.get-color-from-palette(mat.$blue-palette, if($is-dark, 900, 500)),
|
|
24
|
+
info-background-color: mat.m2-get-color-from-palette(mat.$m2-blue-palette, if($is-dark, 900, 500)),
|
|
26
25
|
info-text-color: white,
|
|
27
|
-
success-background-color: mat.get-color-from-palette(mat.$green-palette, if($is-dark, 900, 500)),
|
|
26
|
+
success-background-color: mat.m2-get-color-from-palette(mat.$m2-green-palette, if($is-dark, 900, 500)),
|
|
28
27
|
success-text-color: white,
|
|
29
|
-
warning-background-color: mat.get-color-from-palette(mat.$orange-palette, if($is-dark, 900, 500)),
|
|
28
|
+
warning-background-color: mat.m2-get-color-from-palette(mat.$m2-orange-palette, if($is-dark, 900, 500)),
|
|
30
29
|
warning-text-color: white,
|
|
31
|
-
danger-background-color: mat.get-color-from-palette(mat.$red-palette, if($is-dark, 900, 500)),
|
|
30
|
+
danger-background-color: mat.m2-get-color-from-palette(mat.$m2-red-palette, if($is-dark, 900, 500)),
|
|
32
31
|
danger-text-color: white,
|
|
33
32
|
);
|
|
34
33
|
}
|
|
@@ -46,7 +45,7 @@ $prefix: (mtx, alert);
|
|
|
46
45
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
47
46
|
// This is used to create token slots.
|
|
48
47
|
@function get-token-slots() {
|
|
49
|
-
@return
|
|
48
|
+
@return mat.private-deep-merge-all(
|
|
50
49
|
get-unthemable-tokens(),
|
|
51
50
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
52
51
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
@use 'sass:meta';
|
|
4
4
|
@use '@angular/material' as mat;
|
|
5
5
|
@use '../../token-utils';
|
|
6
|
-
@use '../../../style/sass-utils';
|
|
7
6
|
|
|
8
7
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
9
8
|
$prefix: (mtx, colorpicker);
|
|
@@ -25,7 +24,7 @@ $prefix: (mtx, colorpicker);
|
|
|
25
24
|
$inactive-icon-color: mat.get-theme-color($theme, foreground, icon);
|
|
26
25
|
$toggle-tokens: private-get-toggle-color-palette-color-tokens($theme, primary);
|
|
27
26
|
|
|
28
|
-
@return
|
|
27
|
+
@return mat.private-merge-all($toggle-tokens, (
|
|
29
28
|
toggle-icon-color: $inactive-icon-color
|
|
30
29
|
));
|
|
31
30
|
}
|
|
@@ -43,7 +42,7 @@ $prefix: (mtx, colorpicker);
|
|
|
43
42
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
44
43
|
// This is used to create token slots.
|
|
45
44
|
@function get-token-slots() {
|
|
46
|
-
@return
|
|
45
|
+
@return mat.private-deep-merge-all(
|
|
47
46
|
get-unthemable-tokens(),
|
|
48
47
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
49
48
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
@use '@material/elevation/elevation-theme' as mdc-elevation;
|
|
5
5
|
@use '@angular/material' as mat;
|
|
6
6
|
@use '../../token-utils';
|
|
7
|
-
@use '../../../style/sass-utils';
|
|
8
7
|
|
|
9
8
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
10
9
|
$prefix: (mtx, datetimepicker);
|
|
@@ -15,7 +14,7 @@ $_today-fade-amount: .2;
|
|
|
15
14
|
@function private-get-calendar-color-palette-color-tokens($theme, $palette-name) {
|
|
16
15
|
$palette-color: mat.get-theme-color($theme, $palette-name);
|
|
17
16
|
$default-contrast: mat.get-theme-color($theme, $palette-name, default-contrast);
|
|
18
|
-
$active-background-color:
|
|
17
|
+
$active-background-color: mat.private-safe-color-change($palette-color, $alpha: .3);
|
|
19
18
|
$active-disabled-color: null;
|
|
20
19
|
|
|
21
20
|
@if (meta.type-of($palette-color) == color) {
|
|
@@ -39,11 +38,11 @@ $_today-fade-amount: .2;
|
|
|
39
38
|
clock-cell-selected-state-background-color: $palette-color,
|
|
40
39
|
|
|
41
40
|
time-input-active-state-text-color: $palette-color,
|
|
42
|
-
time-input-active-state-background-color:
|
|
41
|
+
time-input-active-state-background-color: mat.private-safe-color-change($palette-color, $alpha: .2),
|
|
43
42
|
time-input-focus-state-outline-color: $palette-color,
|
|
44
|
-
time-input-focus-state-placeholder-text-color:
|
|
43
|
+
time-input-focus-state-placeholder-text-color: mat.private-safe-color-change($palette-color, $alpha: .6),
|
|
45
44
|
|
|
46
|
-
time-ampm-selected-state-background-color:
|
|
45
|
+
time-ampm-selected-state-background-color: mat.private-safe-color-change($palette-color, $alpha: .2),
|
|
47
46
|
);
|
|
48
47
|
}
|
|
49
48
|
|
|
@@ -80,7 +79,7 @@ $_today-fade-amount: .2;
|
|
|
80
79
|
$calendar-tokens: private-get-calendar-color-palette-color-tokens($theme, primary);
|
|
81
80
|
$toggle-tokens: private-get-toggle-color-palette-color-tokens($theme, primary);
|
|
82
81
|
|
|
83
|
-
@return
|
|
82
|
+
@return mat.private-merge-all($calendar-tokens, $toggle-tokens, (
|
|
84
83
|
toggle-icon-color: $inactive-icon-color,
|
|
85
84
|
calendar-body-label-text-color: $secondary-text-color,
|
|
86
85
|
// calendar-period-button-icon-color: $inactive-icon-color,
|
|
@@ -110,7 +109,7 @@ $_today-fade-amount: .2;
|
|
|
110
109
|
time-input-background-color: $divider-color,
|
|
111
110
|
time-input-focus-state-background-color: mat.get-theme-color($theme, background, background),
|
|
112
111
|
time-input-warn-state-outline-color: mat.get-theme-color($theme, warn),
|
|
113
|
-
time-ampm-text-color:
|
|
112
|
+
time-ampm-text-color: mat.private-safe-color-change($text-color, $alpha: .75),
|
|
114
113
|
time-ampm-outline-color: $hint-text-color,
|
|
115
114
|
time-ampm-selected-state-text-color: $text-color,
|
|
116
115
|
));
|
|
@@ -143,7 +142,7 @@ $_today-fade-amount: .2;
|
|
|
143
142
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
144
143
|
// This is used to create token slots.
|
|
145
144
|
@function get-token-slots() {
|
|
146
|
-
@return
|
|
145
|
+
@return mat.private-deep-merge-all(
|
|
147
146
|
get-unthemable-tokens(),
|
|
148
147
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
149
148
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
+
@use '@material/elevation' as mdc-elevation;
|
|
3
4
|
@use '../../token-utils';
|
|
4
|
-
@use '../../../style/sass-utils';
|
|
5
5
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
7
|
$prefix: (mtx, drawer);
|
|
@@ -11,6 +11,7 @@ $prefix: (mtx, drawer);
|
|
|
11
11
|
@function get-unthemable-tokens() {
|
|
12
12
|
@return (
|
|
13
13
|
container-shape: 0,
|
|
14
|
+
container-elevation-shadow: mdc-elevation.elevation-box-shadow(16),
|
|
14
15
|
);
|
|
15
16
|
}
|
|
16
17
|
|
|
@@ -35,7 +36,7 @@ $prefix: (mtx, drawer);
|
|
|
35
36
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
36
37
|
// This is used to create token slots.
|
|
37
38
|
@function get-token-slots() {
|
|
38
|
-
@return
|
|
39
|
+
@return mat.private-deep-merge-all(
|
|
39
40
|
get-unthemable-tokens(),
|
|
40
41
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
41
42
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
+
@use '@material/elevation' as mdc-elevation;
|
|
3
4
|
@use '../../token-utils';
|
|
4
|
-
@use '../../../style/sass-utils';
|
|
5
5
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
7
|
$prefix: (mtx, grid);
|
|
@@ -12,6 +12,7 @@ $prefix: (mtx, grid);
|
|
|
12
12
|
@return (
|
|
13
13
|
container-shape: 0,
|
|
14
14
|
table-cell-min-width: 80px,
|
|
15
|
+
column-menu-elevation-shadow: mdc-elevation.elevation-box-shadow(8),
|
|
15
16
|
);
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -22,7 +23,7 @@ $prefix: (mtx, grid);
|
|
|
22
23
|
$divider-color: mat.get-theme-color($theme, foreground, divider);
|
|
23
24
|
|
|
24
25
|
@return (
|
|
25
|
-
outline-color:
|
|
26
|
+
outline-color: mat.private-safe-color-change($text-color, $alpha: .2),
|
|
26
27
|
column-menu-text-color: $text-color,
|
|
27
28
|
column-menu-divider-color: $divider-color,
|
|
28
29
|
table-footer-background-color: mat.get-theme-color($theme, background, app-bar),
|
|
@@ -61,7 +62,7 @@ $prefix: (mtx, grid);
|
|
|
61
62
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
62
63
|
// This is used to create token slots.
|
|
63
64
|
@function get-token-slots() {
|
|
64
|
-
@return
|
|
65
|
+
@return mat.private-deep-merge-all(
|
|
65
66
|
get-unthemable-tokens(),
|
|
66
67
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
67
68
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
@use 'sass:meta';
|
|
4
4
|
@use '@angular/material' as mat;
|
|
5
5
|
@use '../../token-utils';
|
|
6
|
-
@use '../../../style/sass-utils';
|
|
7
6
|
|
|
8
7
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
9
8
|
$prefix: (mtx, loader);
|
|
@@ -19,7 +18,7 @@ $prefix: (mtx, loader);
|
|
|
19
18
|
$background-color: mat.get-theme-color($theme, background, background);
|
|
20
19
|
|
|
21
20
|
@return (
|
|
22
|
-
backdrop-background-color:
|
|
21
|
+
backdrop-background-color: mat.private-safe-color-change($background-color, $alpha: .75),
|
|
23
22
|
);
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -36,7 +35,7 @@ $prefix: (mtx, loader);
|
|
|
36
35
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
37
36
|
// This is used to create token slots.
|
|
38
37
|
@function get-token-slots() {
|
|
39
|
-
@return
|
|
38
|
+
@return mat.private-deep-merge-all(
|
|
40
39
|
get-unthemable-tokens(),
|
|
41
40
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
42
41
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
3
|
@use '../../token-utils';
|
|
4
|
-
@use '../../../style/sass-utils';
|
|
5
4
|
|
|
6
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
6
|
$prefix: (mtx, popover);
|
|
@@ -36,7 +35,7 @@ $prefix: (mtx, popover);
|
|
|
36
35
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
37
36
|
// This is used to create token slots.
|
|
38
37
|
@function get-token-slots() {
|
|
39
|
-
@return
|
|
38
|
+
@return mat.private-deep-merge-all(
|
|
40
39
|
get-unthemable-tokens(),
|
|
41
40
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
42
41
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
3
|
@use '../../token-utils';
|
|
4
|
-
@use '../../../style/sass-utils';
|
|
5
4
|
|
|
6
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
6
|
$prefix: (mtx, progress);
|
|
@@ -22,13 +21,13 @@ $prefix: (mtx, progress);
|
|
|
22
21
|
track-color: mat.get-theme-color($theme, background, hover),
|
|
23
22
|
indicator-color: mat.get-theme-color($theme, foreground, divider),
|
|
24
23
|
text-color: mat.get-theme-color($theme, foreground, text),
|
|
25
|
-
info-indicator-color: mat.get-color-from-palette(mat.$blue-palette, if($is-dark, 900, 500)),
|
|
24
|
+
info-indicator-color: mat.m2-get-color-from-palette(mat.$m2-blue-palette, if($is-dark, 900, 500)),
|
|
26
25
|
info-text-color: white,
|
|
27
|
-
success-indicator-color: mat.get-color-from-palette(mat.$green-palette, if($is-dark, 900, 500)),
|
|
26
|
+
success-indicator-color: mat.m2-get-color-from-palette(mat.$m2-green-palette, if($is-dark, 900, 500)),
|
|
28
27
|
success-text-color: white,
|
|
29
|
-
warning-indicator-color: mat.get-color-from-palette(mat.$orange-palette, if($is-dark, 900, 500)),
|
|
28
|
+
warning-indicator-color: mat.m2-get-color-from-palette(mat.$m2-orange-palette, if($is-dark, 900, 500)),
|
|
30
29
|
warning-text-color: white,
|
|
31
|
-
danger-indicator-color: mat.get-color-from-palette(mat.$red-palette, if($is-dark, 900, 500)),
|
|
30
|
+
danger-indicator-color: mat.m2-get-color-from-palette(mat.$m2-red-palette, if($is-dark, 900, 500)),
|
|
32
31
|
danger-text-color: white,
|
|
33
32
|
);
|
|
34
33
|
}
|
|
@@ -48,7 +47,7 @@ $prefix: (mtx, progress);
|
|
|
48
47
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
49
48
|
// This is used to create token slots.
|
|
50
49
|
@function get-token-slots() {
|
|
51
|
-
@return
|
|
50
|
+
@return mat.private-deep-merge-all(
|
|
52
51
|
get-unthemable-tokens(),
|
|
53
52
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
54
53
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
@use 'sass:math';
|
|
3
3
|
@use '@material/textfield' as mdc-textfield;
|
|
4
4
|
@use '@material/density' as mdc-density;
|
|
5
|
+
@use '@material/elevation' as mdc-elevation;
|
|
5
6
|
@use '@angular/material' as mat;
|
|
6
7
|
@use '../../token-utils';
|
|
7
|
-
@use '../../../style/sass-utils';
|
|
8
8
|
|
|
9
9
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
10
10
|
$prefix: (mtx, select);
|
|
@@ -21,6 +21,7 @@ $prefix: (mtx, select);
|
|
|
21
21
|
@function get-unthemable-tokens() {
|
|
22
22
|
@return (
|
|
23
23
|
container-shape: 4px,
|
|
24
|
+
container-elevation-shadow: mdc-elevation.elevation-box-shadow(8),
|
|
24
25
|
);
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -73,7 +74,7 @@ $prefix: (mtx, select);
|
|
|
73
74
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
74
75
|
// This is used to create token slots.
|
|
75
76
|
@function get-token-slots() {
|
|
76
|
-
@return
|
|
77
|
+
@return mat.private-deep-merge-all(
|
|
77
78
|
get-unthemable-tokens(),
|
|
78
79
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
79
80
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
@use 'sass:meta';
|
|
4
4
|
@use '@angular/material' as mat;
|
|
5
5
|
@use '../../token-utils';
|
|
6
|
-
@use '../../../style/sass-utils';
|
|
7
6
|
|
|
8
7
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
9
8
|
$prefix: (mtx, split);
|
|
@@ -24,7 +23,7 @@ $prefix: (mtx, split);
|
|
|
24
23
|
@function get-color-tokens($theme) {
|
|
25
24
|
$gutter-tokens: private-get-color-palette-color-tokens($theme, primary);
|
|
26
25
|
|
|
27
|
-
@return
|
|
26
|
+
@return mat.private-merge-all($gutter-tokens, (
|
|
28
27
|
gutter-background-color: mat.get-theme-color($theme, foreground, divider),
|
|
29
28
|
));
|
|
30
29
|
}
|
|
@@ -42,7 +41,7 @@ $prefix: (mtx, split);
|
|
|
42
41
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
43
42
|
// This is used to create token slots.
|
|
44
43
|
@function get-token-slots() {
|
|
45
|
-
@return
|
|
44
|
+
@return mat.private-deep-merge-all(
|
|
46
45
|
get-unthemable-tokens(),
|
|
47
46
|
get-color-tokens(token-utils.$placeholder-color-config),
|
|
48
47
|
get-typography-tokens(token-utils.$placeholder-typography-config),
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use './mtx/alert' as tokens-mtx-alert;
|
|
4
|
+
@use './mtx/colorpicker' as tokens-mtx-colorpicker;
|
|
5
|
+
@use './mtx/datetimepicker' as tokens-mtx-datetimepicker;
|
|
6
|
+
@use './mtx/drawer' as tokens-mtx-drawer;
|
|
7
|
+
@use './mtx/grid' as tokens-mtx-grid;
|
|
8
|
+
@use './mtx/loader' as tokens-mtx-loader;
|
|
9
|
+
@use './mtx/popover' as tokens-mtx-popover;
|
|
10
|
+
@use './mtx/progress' as tokens-mtx-progress;
|
|
11
|
+
@use './mtx/select' as tokens-mtx-select;
|
|
12
|
+
@use './mtx/split' as tokens-mtx-split;
|
|
13
|
+
|
|
14
|
+
$_module-names: (
|
|
15
|
+
// Custom tokens
|
|
16
|
+
tokens-mtx-alert,
|
|
17
|
+
tokens-mtx-colorpicker,
|
|
18
|
+
tokens-mtx-datetimepicker,
|
|
19
|
+
tokens-mtx-drawer,
|
|
20
|
+
tokens-mtx-grid,
|
|
21
|
+
tokens-mtx-loader,
|
|
22
|
+
tokens-mtx-popover,
|
|
23
|
+
tokens-mtx-progress,
|
|
24
|
+
tokens-mtx-select,
|
|
25
|
+
tokens-mtx-split,
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
/// Gets the full set of M3 tokens for the given theme object.
|
|
29
|
+
/// @param {Map} $systems The MDC system tokens
|
|
30
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
31
|
+
/// @param {Map} $token-slots Possible token slots
|
|
32
|
+
/// @return {Map} Full set of M3 tokens
|
|
33
|
+
@function get-m3-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
34
|
+
$tokens: ();
|
|
35
|
+
|
|
36
|
+
@each $module-name in $_module-names {
|
|
37
|
+
$fn: meta.get-function(
|
|
38
|
+
$name: 'get-tokens',
|
|
39
|
+
$module: $module-name,
|
|
40
|
+
);
|
|
41
|
+
$tokens: map.merge($tokens, meta.call($fn, $systems, $exclude-hardcoded, $token-slots));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@return $tokens;
|
|
45
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
@use '../../token-utils';
|
|
4
|
+
|
|
5
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
6
|
+
$prefix: (mtx, alert);
|
|
7
|
+
|
|
8
|
+
/// Generates custom tokens for the mat-badge.
|
|
9
|
+
/// @param {Map} $systems The MDC system tokens
|
|
10
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
11
|
+
/// @param {Map} $token-slots Possible token slots
|
|
12
|
+
/// @return {Map} A set of custom tokens for the mat-badge
|
|
13
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
|
+
$tokens: (
|
|
15
|
+
container-shape: map.get($systems, md-sys-shape, corner-small),
|
|
16
|
+
|
|
17
|
+
outline-color: token-utils.hardcode(transparent, $exclude-hardcoded),
|
|
18
|
+
background-color: map.get($systems, md-sys-color, surface-container),
|
|
19
|
+
text-color: map.get($systems, md-sys-color, on-surface),
|
|
20
|
+
info-background-color: map.get(mat.$blue-palette, 50),
|
|
21
|
+
info-text-color: token-utils.hardcode(white, $exclude-hardcoded),
|
|
22
|
+
success-background-color: map.get(mat.$green-palette, 50),
|
|
23
|
+
success-text-color: token-utils.hardcode(white, $exclude-hardcoded),
|
|
24
|
+
warning-background-color: map.get(mat.$orange-palette, 50),
|
|
25
|
+
warning-text-color: token-utils.hardcode(white, $exclude-hardcoded),
|
|
26
|
+
danger-background-color: map.get(mat.$red-palette, 50),
|
|
27
|
+
danger-text-color: token-utils.hardcode(white, $exclude-hardcoded),
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
@return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../token-utils';
|
|
3
|
+
|
|
4
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
5
|
+
$prefix: (mtx, colorpicker);
|
|
6
|
+
|
|
7
|
+
/// Generates custom tokens for the mat-badge.
|
|
8
|
+
/// @param {Map} $systems The MDC system tokens
|
|
9
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
10
|
+
/// @param {Map} $token-slots Possible token slots
|
|
11
|
+
/// @return {Map} A set of custom tokens for the mat-badge
|
|
12
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
13
|
+
$tokens: (
|
|
14
|
+
toggle-active-state-icon-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
15
|
+
toggle-icon-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
@return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
|
|
19
|
+
}
|
package/{experimental/theming/_custom-tokens.scss → core/tokens/m3/mtx/_datetimepicker.scss}
RENAMED
|
@@ -1,56 +1,19 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '@
|
|
4
|
-
@use '
|
|
3
|
+
@use '@material/elevation' as mdc-elevation;
|
|
4
|
+
@use '../../token-utils';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@return if($exclude-hardcoded, null, $value);
|
|
9
|
-
}
|
|
6
|
+
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
|
+
$prefix: (mtx, datetimepicker);
|
|
10
8
|
|
|
11
|
-
///
|
|
12
|
-
/// level.
|
|
9
|
+
/// Generates custom tokens for the mat-badge.
|
|
13
10
|
/// @param {Map} $systems The MDC system tokens
|
|
14
|
-
/// @param {
|
|
15
|
-
/// @param {
|
|
16
|
-
/// @return {Map} A
|
|
17
|
-
@function
|
|
18
|
-
$
|
|
19
|
-
|
|
20
|
-
$result: map.set($result, #{$base-name}-#{$prop},
|
|
21
|
-
map.get($systems, md-sys-typescale, #{$typography-level}-#{$prop}));
|
|
22
|
-
}
|
|
23
|
-
@return $result;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@function alert($systems, $exclude-hardcoded) {
|
|
27
|
-
@return (
|
|
28
|
-
container-shape: map.get($systems, md-sys-shape, corner-small),
|
|
29
|
-
|
|
30
|
-
outline-color: _hardcode(transparent, $exclude-hardcoded),
|
|
31
|
-
background-color: map.get($systems, md-sys-color, surface-container),
|
|
32
|
-
text-color: map.get($systems, md-sys-color, on-surface),
|
|
33
|
-
info-background-color: map.get(matx.$m3-blue-palette, 50),
|
|
34
|
-
info-text-color: _hardcode(white, $exclude-hardcoded),
|
|
35
|
-
success-background-color: map.get(matx.$m3-green-palette, 50),
|
|
36
|
-
success-text-color: _hardcode(white, $exclude-hardcoded),
|
|
37
|
-
warning-background-color: map.get(matx.$m3-orange-palette, 50),
|
|
38
|
-
warning-text-color: _hardcode(white, $exclude-hardcoded),
|
|
39
|
-
danger-background-color: map.get(matx.$m3-red-palette, 50),
|
|
40
|
-
danger-text-color: _hardcode(white, $exclude-hardcoded),
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@function colorpicker($systems, $exclude-hardcoded) {
|
|
45
|
-
@return (
|
|
46
|
-
toggle-active-state-icon-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
47
|
-
toggle-icon-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@function datetimepicker($systems, $exclude-hardcoded) {
|
|
52
|
-
@return ((
|
|
53
|
-
calendar-header-background-color: _hardcode(transparent, $exclude-hardcoded),
|
|
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-badge
|
|
14
|
+
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
15
|
+
$tokens: ((
|
|
16
|
+
calendar-header-background-color: token-utils.hardcode(transparent, $exclude-hardcoded),
|
|
54
17
|
calendar-date-selected-state-text-color: map.get($systems, md-sys-color, on-primary),
|
|
55
18
|
calendar-date-selected-state-background-color: map.get($systems, md-sys-color, primary),
|
|
56
19
|
calendar-date-selected-disabled-state-background-color: mat.private-safe-color-change(
|
|
@@ -74,7 +37,7 @@
|
|
|
74
37
|
calendar-table-header-text-color: map.get($systems, md-sys-color, on-surface),
|
|
75
38
|
calendar-date-today-outline-color: map.get($systems, md-sys-color, primary),
|
|
76
39
|
calendar-date-text-color: map.get($systems, md-sys-color, on-surface),
|
|
77
|
-
calendar-date-outline-color:
|
|
40
|
+
calendar-date-outline-color: token-utils.hardcode(transparent, $exclude-hardcoded),
|
|
78
41
|
calendar-date-disabled-state-text-color: mat.private-safe-color-change(
|
|
79
42
|
map.get($systems, md-sys-color, on-surface),
|
|
80
43
|
$alpha: 0.38
|
|
@@ -107,8 +70,8 @@
|
|
|
107
70
|
time-ampm-selected-state-text-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
108
71
|
time-ampm-selected-state-background-color: map.get($systems, md-sys-color, tertiary-container),
|
|
109
72
|
|
|
110
|
-
container-elevation-shadow:
|
|
111
|
-
container-touch-elevation-shadow:
|
|
73
|
+
container-elevation-shadow: token-utils.hardcode(mdc-elevation.elevation-box-shadow(0), $exclude-hardcoded),
|
|
74
|
+
container-touch-elevation-shadow: token-utils.hardcode(mdc-elevation.elevation-box-shadow(0), $exclude-hardcoded),
|
|
112
75
|
container-shape: map.get($systems, md-sys-shape, corner-large),
|
|
113
76
|
container-touch-shape: map.get($systems, md-sys-shape, corner-extra-large),
|
|
114
77
|
selector-container-shape: map.get($systems, md-sys-shape, corner-small),
|
|
@@ -171,145 +134,6 @@
|
|
|
171
134
|
time-ampm-selected-state-background-color: map.get($systems, md-sys-color, primary-container),
|
|
172
135
|
)
|
|
173
136
|
));
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
@function drawer($systems, $exclude-hardcoded) {
|
|
177
|
-
@return (
|
|
178
|
-
container-shape: map.get($systems, md-sys-shape, corner-large),
|
|
179
|
-
|
|
180
|
-
container-background-color: map.get($systems, md-sys-color, surface),
|
|
181
|
-
container-text-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@function grid($systems, $exclude-hardcoded) {
|
|
186
|
-
@return (
|
|
187
|
-
container-shape: map.get($systems, md-sys-shape, corner-medium),
|
|
188
|
-
table-cell-min-width: _hardcode(80px, $exclude-hardcoded),
|
|
189
|
-
|
|
190
|
-
outline-color: map.get($systems, md-sys-color, outline-variant),
|
|
191
|
-
column-menu-text-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
192
|
-
column-menu-divider-color: map.get($systems, md-sys-color, outline-variant),
|
|
193
|
-
table-footer-background-color: map.get($systems, md-sys-color, surface-container),
|
|
194
|
-
table-row-striped-background-color: map.get($systems, md-sys-color, surface-container),
|
|
195
|
-
table-row-hover-background-color: map.get($systems, md-sys-color, secondary-container),
|
|
196
|
-
table-row-selected-background-color: map.get($systems, md-sys-color, secondary-container),
|
|
197
|
-
table-row-selected-hover-background-color: map.get($systems, md-sys-color, primary-container),
|
|
198
|
-
table-cell-selected-outline-color: map.get($systems, md-sys-color, primary),
|
|
199
|
-
resizable-handle-active-background-color: map.get($systems, md-sys-color, primary),
|
|
200
|
-
resizable-handle-hover-background-color: map.get($systems, md-sys-color, primary),
|
|
201
|
-
resizable-handle-disabled-background-color: map.get($systems, md-sys-color, outline-variant),
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
@function loader($systems, $exclude-hardcoded) {
|
|
206
|
-
@return (
|
|
207
|
-
backdrop-background-color: mat.private-safe-color-change(
|
|
208
|
-
map.get($systems, md-sys-color, surface),
|
|
209
|
-
$alpha: 0.75
|
|
210
|
-
),
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
@function popover($systems, $exclude-hardcoded) {
|
|
215
|
-
@return (
|
|
216
|
-
container-shape: map.get($systems, md-sys-shape, corner-extra-small),
|
|
217
|
-
|
|
218
|
-
outline-color: map.get($systems, md-sys-color, surface-container),
|
|
219
|
-
background-color: map.get($systems, md-sys-color, surface-container),
|
|
220
|
-
text-color: map.get($systems, md-sys-color, on-surface),
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
@function progress($systems, $exclude-hardcoded) {
|
|
225
|
-
@return (
|
|
226
|
-
container-shape: map.get($systems, md-sys-shape, corner-extra-small),
|
|
227
|
-
|
|
228
|
-
track-color: map.get($systems, md-sys-color, surface-container),
|
|
229
|
-
indicator-color: map.get($systems, md-sys-color, outline-variant),
|
|
230
|
-
text-color: map.get($systems, md-sys-color, on-surface),
|
|
231
|
-
info-indicator-color: map.get(matx.$m3-blue-palette, 50),
|
|
232
|
-
info-text-color:_hardcode(white, $exclude-hardcoded),
|
|
233
|
-
success-indicator-color: map.get(matx.$m3-green-palette, 50),
|
|
234
|
-
success-text-color:_hardcode(white, $exclude-hardcoded),
|
|
235
|
-
warning-indicator-color: map.get(matx.$m3-orange-palette, 50),
|
|
236
|
-
warning-text-color:_hardcode(white, $exclude-hardcoded),
|
|
237
|
-
danger-indicator-color: map.get(matx.$m3-red-palette, 50),
|
|
238
|
-
danger-text-color:_hardcode(white, $exclude-hardcoded),
|
|
239
|
-
);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
@function select($systems, $exclude-hardcoded) {
|
|
243
|
-
@return ((
|
|
244
|
-
container-shape: map.get($systems, md-sys-shape, corner-extra-small),
|
|
245
|
-
|
|
246
|
-
container-text-color: map.get($systems, md-sys-color, on-surface),
|
|
247
|
-
placeholder-text-color: mat.private-safe-color-change(
|
|
248
|
-
map.get($systems, md-sys-color, on-surface),
|
|
249
|
-
$alpha: 0.38
|
|
250
|
-
),
|
|
251
|
-
disabled-text-color: mat.private-safe-color-change(
|
|
252
|
-
map.get($systems, md-sys-color, on-surface),
|
|
253
|
-
$alpha: 0.38
|
|
254
|
-
),
|
|
255
|
-
|
|
256
|
-
multiple-value-background-color: _hardcode(transparent, $exclude-hardcoded),
|
|
257
|
-
multiple-value-outline-color: map.get($systems, md-sys-color, outline),
|
|
258
|
-
multiple-value-icon-hover-background-color: map.get($systems, md-sys-color, outline-variant),
|
|
259
|
-
|
|
260
|
-
clear-icon-color: map.get($systems, md-sys-color, on-surface),
|
|
261
|
-
clear-icon-hover-color: map.get($systems, md-sys-color, error),
|
|
262
|
-
|
|
263
|
-
enabled-arrow-color: map.get($systems, md-sys-color, on-surface),
|
|
264
|
-
disabled-arrow-color: mat.private-safe-color-change(
|
|
265
|
-
map.get($systems, md-sys-color, on-surface),
|
|
266
|
-
$alpha: 0.38
|
|
267
|
-
),
|
|
268
|
-
invalid-arrow-color: map.get($systems, md-sys-color, error),
|
|
269
|
-
|
|
270
|
-
panel-background-color: map.get($systems, md-sys-color, surface-container),
|
|
271
|
-
panel-divider-color: map.get($systems, md-sys-color, outline),
|
|
272
|
-
optgroup-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
273
|
-
option-label-text-color: map.get($systems, md-sys-color, on-surface),
|
|
274
|
-
option-selected-state-background-color: map.get($systems, md-sys-color, secondary-container),
|
|
275
|
-
option-selected-state-text-color: map.get($systems, md-sys-color, on-surface),
|
|
276
|
-
option-hover-state-background-color: mat.private-safe-color-change(
|
|
277
|
-
map.get($systems, md-sys-color, on-surface),
|
|
278
|
-
$alpha: map.get($systems, md-sys-state, hover-state-layer-opacity)
|
|
279
|
-
),
|
|
280
|
-
option-disabled-state-text-color: mat.private-safe-color-change(
|
|
281
|
-
map.get($systems, md-sys-color, on-surface),
|
|
282
|
-
$alpha: 0.38
|
|
283
|
-
),
|
|
284
|
-
), (
|
|
285
|
-
// Color variants:
|
|
286
|
-
primary: (
|
|
287
|
-
option-selected-state-background-color: map.get($systems, md-sys-color, primary-container),
|
|
288
|
-
),
|
|
289
|
-
secondary: (), // Default, no overrides needed.
|
|
290
|
-
tertiary: (
|
|
291
|
-
option-selected-state-background-color: map.get($systems, md-sys-color, tertiary-container),
|
|
292
|
-
),
|
|
293
|
-
error: (
|
|
294
|
-
option-selected-state-background-color: map.get($systems, md-sys-color, error-container),
|
|
295
|
-
)
|
|
296
|
-
));
|
|
297
|
-
}
|
|
298
137
|
|
|
299
|
-
@
|
|
300
|
-
@return ((
|
|
301
|
-
gutter-background-color: map.get($systems, md-sys-color, outline-variant),
|
|
302
|
-
gutter-hover-state-background-color: map.get($systems, md-sys-color, primary),
|
|
303
|
-
), (
|
|
304
|
-
primary: (),
|
|
305
|
-
secondary: (
|
|
306
|
-
gutter-hover-state-background-color: map.get($systems, md-sys-color, secondary),
|
|
307
|
-
),
|
|
308
|
-
tertiary: (
|
|
309
|
-
gutter-hover-state-background-color: map.get($systems, md-sys-color, tertiary),
|
|
310
|
-
),
|
|
311
|
-
error: (
|
|
312
|
-
gutter-hover-state-background-color: map.get($systems, md-sys-color, error),
|
|
313
|
-
)
|
|
314
|
-
));
|
|
138
|
+
@return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
|
|
315
139
|
}
|