@ng-matero/extensions 16.3.1 → 17.0.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 +2 -1
- package/alert/_alert-theme.scss +54 -24
- package/alert/alert.d.ts +3 -6
- package/alert/alert.scss +3 -3
- package/button/_button-theme.scss +6 -4
- package/button/button-loading.d.ts +5 -10
- package/button/button-module.d.ts +5 -5
- package/checkbox-group/checkbox-group.d.ts +4 -9
- package/colorpicker/_colorpicker-theme.scss +62 -34
- package/colorpicker/colorpicker-input.d.ts +1 -3
- package/colorpicker/colorpicker-toggle.d.ts +2 -3
- package/colorpicker/colorpicker.d.ts +5 -6
- package/core/color/_all-color.scss +7 -18
- package/core/density/_all-density.scss +28 -14
- package/core/mdc-helpers/_mdc-helpers.scss +27 -238
- package/core/style/_sass-utils.scss +13 -1
- package/core/style/_validation.scss +43 -0
- package/core/theming/_all-theme.scss +32 -17
- package/core/theming/_inspection.scss +303 -0
- package/core/theming/_m2-inspection.scss +266 -0
- package/core/tokens/_token-utils.scss +4 -5
- package/core/tokens/m2/mdc/_plain-tooltip.scss +21 -29
- package/core/tokens/m2/mtx/_alert.scss +14 -15
- package/core/tokens/m2/mtx/_colorpicker.scss +8 -11
- package/core/tokens/m2/mtx/_datetimepicker.scss +38 -47
- package/core/tokens/m2/mtx/_drawer.scss +9 -10
- package/core/tokens/m2/mtx/_grid.scss +34 -22
- package/core/tokens/m2/mtx/_loader.scss +6 -6
- package/core/tokens/m2/mtx/_popover.scss +10 -11
- package/core/tokens/m2/mtx/_progress.scss +18 -17
- package/core/tokens/m2/mtx/_select.scss +65 -25
- package/core/tokens/m2/mtx/_split.scss +8 -11
- package/core/typography/_all-typography.scss +40 -0
- package/core/typography/_typography.scss +1 -579
- package/datetimepicker/_datetimepicker-theme.scss +75 -48
- package/datetimepicker/calendar.d.ts +7 -14
- package/datetimepicker/calendar.scss +16 -4
- package/datetimepicker/clock.d.ts +1 -2
- package/datetimepicker/datetimepicker-content.scss +3 -3
- package/datetimepicker/datetimepicker-input.d.ts +1 -2
- package/datetimepicker/datetimepicker-toggle.d.ts +2 -3
- package/datetimepicker/datetimepicker.d.ts +15 -26
- package/datetimepicker/month-view.d.ts +1 -1
- package/datetimepicker/multi-year-view.d.ts +1 -1
- package/datetimepicker/time.d.ts +3 -5
- package/datetimepicker/time.scss +2 -2
- package/datetimepicker/year-view.d.ts +1 -1
- package/drawer/_drawer-theme.scss +55 -22
- package/drawer/drawer-container.scss +25 -4
- package/esm2022/alert/alert-module.mjs +4 -4
- package/esm2022/alert/alert.mjs +11 -18
- package/esm2022/button/button-loading.mjs +13 -23
- package/esm2022/button/button-module.mjs +6 -7
- package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
- package/esm2022/checkbox-group/checkbox-group.mjs +18 -29
- package/esm2022/colorpicker/colorpicker-input.mjs +13 -14
- package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
- package/esm2022/colorpicker/colorpicker-toggle.mjs +18 -18
- package/esm2022/colorpicker/colorpicker.mjs +31 -36
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/column-resize/column-resize-module.mjs +4 -4
- package/esm2022/column-resize/column-resize-notifier.mjs +7 -7
- 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 +4 -4
- package/esm2022/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/column-resize/resizable.mjs +3 -3
- package/esm2022/column-resize/resize-strategy.mjs +13 -13
- package/esm2022/core/datetime/datetime.module.mjs +8 -8
- package/esm2022/core/datetime/native-datetime-adapter.mjs +5 -5
- 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 +5 -6
- package/esm2022/datetimepicker/calendar.mjs +30 -47
- package/esm2022/datetimepicker/clock.mjs +10 -9
- package/esm2022/datetimepicker/datetimepicker-input.mjs +14 -15
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +18 -18
- package/esm2022/datetimepicker/datetimepicker.mjs +57 -80
- package/esm2022/datetimepicker/month-view.mjs +8 -9
- package/esm2022/datetimepicker/multi-year-view.mjs +8 -8
- package/esm2022/datetimepicker/time.mjs +18 -24
- package/esm2022/datetimepicker/year-view.mjs +8 -8
- package/esm2022/dialog/dialog-container.mjs +7 -7
- package/esm2022/dialog/dialog-module.mjs +4 -4
- package/esm2022/dialog/dialog.mjs +4 -4
- package/esm2022/drawer/drawer-container.mjs +7 -7
- package/esm2022/drawer/drawer-module.mjs +4 -4
- package/esm2022/drawer/drawer.mjs +5 -5
- package/esm2022/grid/cell.mjs +6 -6
- package/esm2022/grid/column-menu.mjs +5 -5
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +6 -6
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +6 -6
- package/esm2022/grid/column-resize/resize-strategy.mjs +5 -5
- package/esm2022/grid/expansion-toggle.mjs +5 -5
- package/esm2022/grid/grid-module.mjs +4 -4
- package/esm2022/grid/grid-pipes.mjs +22 -22
- package/esm2022/grid/grid-utils.mjs +4 -4
- package/esm2022/grid/grid.mjs +76 -44
- package/esm2022/loader/loader-module.mjs +4 -4
- package/esm2022/loader/loader.mjs +17 -29
- package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
- package/esm2022/photoviewer/photoviewer.mjs +7 -7
- package/esm2022/popover/popover-content.mjs +8 -8
- package/esm2022/popover/popover-module.mjs +4 -4
- package/esm2022/popover/popover-target.mjs +4 -4
- package/esm2022/popover/popover-trigger.mjs +6 -6
- package/esm2022/popover/popover.mjs +52 -137
- package/esm2022/progress/progress-module.mjs +4 -4
- package/esm2022/progress/progress.mjs +14 -25
- package/esm2022/select/option.mjs +11 -17
- package/esm2022/select/select-module.mjs +4 -4
- package/esm2022/select/select.mjs +13 -13
- package/esm2022/select/templates.mjs +44 -44
- package/esm2022/split/split-module.mjs +4 -4
- package/esm2022/split/split-pane.mjs +5 -5
- package/esm2022/split/split.mjs +7 -7
- package/esm2022/tooltip/tooltip-module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +22 -22
- package/fesm2022/mtxAlert.mjs +14 -21
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +17 -28
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +21 -32
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +61 -64
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +48 -48
- package/fesm2022/mtxCore.mjs +23 -23
- package/fesm2022/mtxDatetimepicker.mjs +150 -190
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +14 -14
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +17 -17
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +150 -118
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +20 -32
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +10 -10
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +73 -158
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +17 -28
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +68 -73
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +14 -14
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +26 -26
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +60 -24
- package/grid/column-menu.scss +32 -3
- package/grid/grid.d.ts +33 -1
- package/grid/grid.scss +36 -108
- package/loader/_loader-theme.scss +55 -22
- package/loader/loader.d.ts +4 -9
- package/loader/loader.scss +1 -1
- package/package.json +13 -19
- package/photoviewer/photoviewer.d.ts +1 -0
- package/popover/_popover-theme.scss +55 -22
- package/popover/popover.d.ts +23 -54
- package/popover/popover.scss +2 -2
- 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/_progress-theme.scss +60 -22
- package/progress/progress.d.ts +4 -9
- package/progress/progress.scss +3 -3
- package/select/_select-theme.scss +66 -34
- package/select/option.d.ts +2 -5
- package/select/select.d.ts +1 -3
- package/select/select.scss +104 -127
- package/split/_split-theme.scss +62 -32
- package/split/split.scss +2 -4
- package/tooltip/_tooltip-theme.scss +66 -34
- package/_theming.scss +0 -16
- package/alert/_alert-theme.import.scss +0 -2
- package/button/_button-theme.import.scss +0 -2
- package/colorpicker/_colorpicker-theme.import.scss +0 -2
- package/core/style/_elevation.scss +0 -91
- package/core/style/_private.scss +0 -32
- package/core/style/_variables.scss +0 -44
- package/core/style/_vendor-prefixes.scss +0 -46
- package/core/theming/_palette.scss +0 -746
- package/core/theming/_theming.scss +0 -463
- package/core/typography/_typography-utils.scss +0 -101
- package/datetimepicker/_datetimepicker-theme.import.scss +0 -4
- package/drawer/_drawer-theme.import.scss +0 -2
- package/grid/_grid-theme.import.scss +0 -2
- package/loader/_loader-theme.import.scss +0 -2
- package/popover/_popover-theme.import.scss +0 -2
- package/progress/_progress-theme.import.scss +0 -2
- package/select/_select-density.scss +0 -68
- package/select/_select-theme.import.scss +0 -3
- package/split/_split-theme.import.scss +0 -2
- package/tooltip/_tooltip-theme.import.scss +0 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '../../token-utils';
|
|
3
|
-
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
5
|
-
@use '../../../theming/palette';
|
|
6
5
|
|
|
7
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
8
7
|
$prefix: (mtx, alert);
|
|
@@ -10,36 +9,36 @@ $prefix: (mtx, alert);
|
|
|
10
9
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
11
10
|
// but may be in a future version of the theming API.
|
|
12
11
|
@function get-unthemable-tokens() {
|
|
13
|
-
@return (
|
|
12
|
+
@return (
|
|
13
|
+
container-shape: 4px,
|
|
14
|
+
);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
17
|
-
@function get-color-tokens($
|
|
18
|
-
$
|
|
19
|
-
$background: map.get($config, background);
|
|
20
|
-
$is-dark-theme: map.get($config, is-dark);
|
|
18
|
+
@function get-color-tokens($theme) {
|
|
19
|
+
$is-dark: mat.get-theme-type($theme) == dark;
|
|
21
20
|
|
|
22
21
|
@return (
|
|
23
|
-
background-color:
|
|
24
|
-
text-color:
|
|
25
|
-
info-background-color:
|
|
22
|
+
background-color: mat.get-theme-color($theme, background, dialog),
|
|
23
|
+
text-color: mat.get-theme-color($theme, foreground, text),
|
|
24
|
+
info-background-color: mat.get-color-from-palette(mat.$blue-palette, if($is-dark, 900, 500)),
|
|
26
25
|
info-text-color: white,
|
|
27
|
-
success-background-color:
|
|
26
|
+
success-background-color: mat.get-color-from-palette(mat.$green-palette, if($is-dark, 900, 500)),
|
|
28
27
|
success-text-color: white,
|
|
29
|
-
warning-background-color:
|
|
28
|
+
warning-background-color: mat.get-color-from-palette(mat.$orange-palette, if($is-dark, 900, 500)),
|
|
30
29
|
warning-text-color: white,
|
|
31
|
-
danger-background-color:
|
|
30
|
+
danger-background-color: mat.get-color-from-palette(mat.$red-palette, if($is-dark, 900, 500)),
|
|
32
31
|
danger-text-color: white,
|
|
33
32
|
);
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
37
|
-
@function get-typography-tokens($
|
|
36
|
+
@function get-typography-tokens($theme) {
|
|
38
37
|
@return ();
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
42
|
-
@function get-density-tokens($
|
|
41
|
+
@function get-density-tokens($theme) {
|
|
43
42
|
@return ();
|
|
44
43
|
}
|
|
45
44
|
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:meta';
|
|
4
|
+
@use '@angular/material' as mat;
|
|
4
5
|
@use '../../token-utils';
|
|
5
|
-
@use '../../../theming/theming';
|
|
6
6
|
@use '../../../style/sass-utils';
|
|
7
7
|
|
|
8
8
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
9
9
|
$prefix: (mtx, colorpicker);
|
|
10
10
|
|
|
11
|
-
@function private-get-toggle-color-palette-color-tokens($
|
|
12
|
-
$palette: map.get($config, $palette-name);
|
|
13
|
-
|
|
11
|
+
@function private-get-toggle-color-palette-color-tokens($theme, $palette-name) {
|
|
14
12
|
@return (
|
|
15
|
-
toggle-active-state-icon-color:
|
|
13
|
+
toggle-active-state-icon-color: mat.get-theme-color($theme, $palette-name, text),
|
|
16
14
|
);
|
|
17
15
|
}
|
|
18
16
|
|
|
@@ -23,10 +21,9 @@ $prefix: (mtx, colorpicker);
|
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
26
|
-
@function get-color-tokens($
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
$toggle-tokens: private-get-toggle-color-palette-color-tokens($config, primary);
|
|
24
|
+
@function get-color-tokens($theme) {
|
|
25
|
+
$inactive-icon-color: mat.get-theme-color($theme, foreground, icon);
|
|
26
|
+
$toggle-tokens: private-get-toggle-color-palette-color-tokens($theme, primary);
|
|
30
27
|
|
|
31
28
|
@return sass-utils.merge-all($toggle-tokens, (
|
|
32
29
|
toggle-icon-color: $inactive-icon-color
|
|
@@ -34,12 +31,12 @@ $prefix: (mtx, colorpicker);
|
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
37
|
-
@function get-typography-tokens($
|
|
34
|
+
@function get-typography-tokens($theme) {
|
|
38
35
|
@return ();
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
42
|
-
@function get-density-tokens($
|
|
39
|
+
@function get-density-tokens($theme) {
|
|
43
40
|
@return ();
|
|
44
41
|
}
|
|
45
42
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:meta';
|
|
4
|
+
@use '@angular/material' as mat;
|
|
4
5
|
@use '../../token-utils';
|
|
5
|
-
@use '../../../theming/theming';
|
|
6
6
|
@use '../../../style/sass-utils';
|
|
7
|
-
@use '../../../typography/typography-utils';
|
|
8
7
|
|
|
9
8
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
10
9
|
$prefix: (mtx, datetimepicker);
|
|
@@ -12,20 +11,17 @@ $prefix: (mtx, datetimepicker);
|
|
|
12
11
|
$_selected-fade-amount: .6;
|
|
13
12
|
$_today-fade-amount: .2;
|
|
14
13
|
|
|
15
|
-
@function private-get-calendar-color-palette-color-tokens($
|
|
16
|
-
$
|
|
17
|
-
$
|
|
18
|
-
$
|
|
19
|
-
$palette-color: theming.get-color-from-palette($palette);
|
|
20
|
-
$default-contrast: theming.get-color-from-palette($palette, default-contrast);
|
|
21
|
-
$active-background-color: theming.get-color-from-palette($palette, .3);
|
|
14
|
+
@function private-get-calendar-color-palette-color-tokens($theme, $palette-name) {
|
|
15
|
+
$palette-color: mat.get-theme-color($theme, $palette-name);
|
|
16
|
+
$default-contrast: mat.get-theme-color($theme, $palette-name, default-contrast);
|
|
17
|
+
$active-background-color: sass-utils.safe-color-change($palette-color, $alpha: .3);
|
|
22
18
|
$active-disabled-color: null;
|
|
23
19
|
|
|
24
20
|
@if (meta.type-of($palette-color) == color) {
|
|
25
21
|
$active-disabled-color: color.adjust($palette-color, $alpha: -$_selected-fade-amount);
|
|
26
22
|
}
|
|
27
23
|
@else {
|
|
28
|
-
$active-disabled-color:
|
|
24
|
+
$active-disabled-color: mat.get-theme-color($theme, foreground, disabled-button);
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
@return (
|
|
@@ -42,45 +38,40 @@ $_today-fade-amount: .2;
|
|
|
42
38
|
clock-cell-selected-state-background-color: $palette-color,
|
|
43
39
|
|
|
44
40
|
time-input-active-state-text-color: $palette-color,
|
|
45
|
-
time-input-active-state-background-color:
|
|
41
|
+
time-input-active-state-background-color: sass-utils.safe-color-change($palette-color, $alpha: .2),
|
|
46
42
|
time-input-focus-state-border-color: $palette-color,
|
|
47
|
-
time-input-focus-state-placeholder-text-color:
|
|
43
|
+
time-input-focus-state-placeholder-text-color: sass-utils.safe-color-change($palette-color, $alpha: .6),
|
|
48
44
|
);
|
|
49
45
|
}
|
|
50
46
|
|
|
51
|
-
@function private-get-toggle-color-palette-color-tokens($
|
|
52
|
-
$palette: map.get($config, $palette-name);
|
|
53
|
-
|
|
47
|
+
@function private-get-toggle-color-palette-color-tokens($theme, $palette-name) {
|
|
54
48
|
@return (
|
|
55
|
-
toggle-active-state-icon-color:
|
|
49
|
+
toggle-active-state-icon-color: mat.get-theme-color($theme, $palette-name, text),
|
|
56
50
|
);
|
|
57
51
|
}
|
|
58
52
|
|
|
59
53
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
60
54
|
// but may be in a future version of the theming API.
|
|
61
55
|
@function get-unthemable-tokens() {
|
|
62
|
-
@return (
|
|
56
|
+
@return (
|
|
57
|
+
container-shape: 4px,
|
|
58
|
+
);
|
|
63
59
|
}
|
|
64
60
|
|
|
65
61
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
66
|
-
@function get-color-tokens($
|
|
67
|
-
$
|
|
68
|
-
$
|
|
69
|
-
$
|
|
70
|
-
$
|
|
71
|
-
$
|
|
72
|
-
$
|
|
73
|
-
$text-color: theming.get-color-from-palette($foreground, text);
|
|
74
|
-
$secondary-text-color: theming.get-color-from-palette($foreground, secondary-text);
|
|
75
|
-
$disabled-text-color: theming.get-color-from-palette($foreground, disabled-text);
|
|
76
|
-
$divider-color: theming.get-color-from-palette($foreground, divider);
|
|
77
|
-
$hint-text-color: theming.get-color-from-palette($foreground, hint-text);
|
|
62
|
+
@function get-color-tokens($theme) {
|
|
63
|
+
$inactive-icon-color: mat.get-theme-color($theme, foreground, icon);
|
|
64
|
+
$text-color: mat.get-theme-color($theme, foreground, text);
|
|
65
|
+
$secondary-text-color: mat.get-theme-color($theme, foreground, secondary-text);
|
|
66
|
+
$disabled-text-color: mat.get-theme-color($theme, foreground, disabled-text);
|
|
67
|
+
$divider-color: mat.get-theme-color($theme, foreground, divider);
|
|
68
|
+
$hint-text-color: mat.get-theme-color($theme, foreground, hint-text);
|
|
78
69
|
$preview-outline-color: $divider-color;
|
|
79
70
|
$today-disabled-outline-color: null;
|
|
80
71
|
|
|
81
|
-
$primary-color:
|
|
82
|
-
$calendar-tokens: private-get-calendar-color-palette-color-tokens($
|
|
83
|
-
$toggle-tokens: private-get-toggle-color-palette-color-tokens($
|
|
72
|
+
$primary-color: mat.get-theme-color($theme, primary);
|
|
73
|
+
$calendar-tokens: private-get-calendar-color-palette-color-tokens($theme, primary);
|
|
74
|
+
$toggle-tokens: private-get-toggle-color-palette-color-tokens($theme, primary);
|
|
84
75
|
|
|
85
76
|
@return sass-utils.merge-all($calendar-tokens, $toggle-tokens, (
|
|
86
77
|
toggle-icon-color: $inactive-icon-color,
|
|
@@ -100,46 +91,46 @@ $_today-fade-amount: .2;
|
|
|
100
91
|
calendar-date-disabled-state-text-color: $disabled-text-color,
|
|
101
92
|
// calendar-date-preview-state-outline-color: $preview-outline-color,
|
|
102
93
|
|
|
103
|
-
calendar-container-background-color:
|
|
94
|
+
calendar-container-background-color: mat.get-theme-color($theme, background, card),
|
|
104
95
|
calendar-container-text-color: $text-color,
|
|
105
96
|
|
|
106
97
|
clock-dial-background-color: $divider-color,
|
|
107
98
|
clock-cell-text-color: $text-color,
|
|
108
|
-
clock-cell-hover-state-background-color:
|
|
99
|
+
clock-cell-hover-state-background-color: mat.get-theme-color($theme, background, hover),
|
|
109
100
|
clock-cell-disabled-state-text-color: $disabled-text-color,
|
|
110
101
|
|
|
111
102
|
time-input-text-color: $text-color,
|
|
112
103
|
time-input-background-color: $divider-color,
|
|
113
|
-
time-input-focus-state-background-color:
|
|
114
|
-
time-input-warn-state-border-color:
|
|
115
|
-
time-ampm-text-color:
|
|
104
|
+
time-input-focus-state-background-color: mat.get-theme-color($theme, background, background),
|
|
105
|
+
time-input-warn-state-border-color: mat.get-theme-color($theme, warn),
|
|
106
|
+
time-ampm-text-color: sass-utils.safe-color-change($text-color, $alpha: .75),
|
|
116
107
|
time-ampm-border-color: $hint-text-color,
|
|
117
|
-
time-ampm-selected-state-text-color:
|
|
118
|
-
time-ampm-selected-state-background-color:
|
|
108
|
+
time-ampm-selected-state-text-color: $text-color,
|
|
109
|
+
time-ampm-selected-state-background-color: mat.get-theme-color($theme, accent, .2),
|
|
119
110
|
));
|
|
120
111
|
}
|
|
121
112
|
|
|
122
113
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
123
|
-
@function get-typography-tokens($
|
|
114
|
+
@function get-typography-tokens($theme) {
|
|
124
115
|
@return (
|
|
125
|
-
calendar-text-font: typography-
|
|
116
|
+
calendar-text-font: mat.get-theme-typography($theme, body-1, font-family),
|
|
126
117
|
calendar-text-size: 13px,
|
|
127
118
|
|
|
128
|
-
calendar-body-label-text-size:
|
|
129
|
-
calendar-body-label-text-weight:
|
|
119
|
+
calendar-body-label-text-size: mat.get-theme-typography($theme, button, font-size),
|
|
120
|
+
calendar-body-label-text-weight: mat.get-theme-typography($theme, button, font-weight),
|
|
130
121
|
|
|
131
|
-
calendar-period-button-text-size:
|
|
132
|
-
calendar-period-button-text-weight:
|
|
122
|
+
calendar-period-button-text-size: mat.get-theme-typography($theme, button, font-size),
|
|
123
|
+
calendar-period-button-text-weight: mat.get-theme-typography($theme, button, font-weight),
|
|
133
124
|
|
|
134
125
|
calendar-table-header-text-size: 11px,
|
|
135
|
-
calendar-table-header-text-weight:
|
|
126
|
+
calendar-table-header-text-weight: mat.get-theme-typography($theme, body-1, font-weight),
|
|
136
127
|
|
|
137
128
|
clock-text-size: 14px,
|
|
138
129
|
);
|
|
139
130
|
}
|
|
140
131
|
|
|
141
132
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
142
|
-
@function get-density-tokens($
|
|
133
|
+
@function get-density-tokens($theme) {
|
|
143
134
|
@return ();
|
|
144
135
|
}
|
|
145
136
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '../../token-utils';
|
|
3
|
-
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
5
5
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -9,27 +9,26 @@ $prefix: (mtx, drawer);
|
|
|
9
9
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
10
10
|
// but may be in a future version of the theming API.
|
|
11
11
|
@function get-unthemable-tokens() {
|
|
12
|
-
@return (
|
|
12
|
+
@return (
|
|
13
|
+
container-shape: 0,
|
|
14
|
+
);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
16
|
-
@function get-color-tokens($
|
|
17
|
-
$foreground: map.get($config, foreground);
|
|
18
|
-
$background: map.get($config, background);
|
|
19
|
-
|
|
18
|
+
@function get-color-tokens($theme) {
|
|
20
19
|
@return (
|
|
21
|
-
container-background-color:
|
|
22
|
-
container-text-color:
|
|
20
|
+
container-background-color: mat.get-theme-color($theme, background, dialog),
|
|
21
|
+
container-text-color: mat.get-theme-color($theme, foreground, text),
|
|
23
22
|
);
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
27
|
-
@function get-typography-tokens($
|
|
26
|
+
@function get-typography-tokens($theme) {
|
|
28
27
|
@return ();
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
32
|
-
@function get-density-tokens($
|
|
31
|
+
@function get-density-tokens($theme) {
|
|
33
32
|
@return ();
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '../../token-utils';
|
|
3
|
-
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
5
5
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -9,40 +9,52 @@ $prefix: (mtx, grid);
|
|
|
9
9
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
10
10
|
// but may be in a future version of the theming API.
|
|
11
11
|
@function get-unthemable-tokens() {
|
|
12
|
-
@return (
|
|
12
|
+
@return (
|
|
13
|
+
container-shape: 0,
|
|
14
|
+
table-cell-min-width: 80px,
|
|
15
|
+
);
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
16
|
-
@function get-color-tokens($
|
|
17
|
-
$is-dark
|
|
18
|
-
$
|
|
19
|
-
$
|
|
20
|
-
$primary: map.get($config, primary);
|
|
21
|
-
$accent: map.get($config, accent);
|
|
19
|
+
@function get-color-tokens($theme) {
|
|
20
|
+
$is-dark: mat.get-theme-type($theme) == dark;
|
|
21
|
+
$text-color: mat.get-theme-color($theme, foreground, text);
|
|
22
|
+
$divider-color: mat.get-theme-color($theme, foreground, divider);
|
|
22
23
|
|
|
23
24
|
@return (
|
|
24
|
-
outline-color:
|
|
25
|
-
column-menu-text-color:
|
|
26
|
-
column-menu-divider-color:
|
|
27
|
-
table-footer-background-color:
|
|
28
|
-
table-row-striped-background-color: if($is-dark
|
|
29
|
-
table-row-hover-background-color: if($is-dark
|
|
30
|
-
table-row-selected-background-color: if($is-dark
|
|
31
|
-
table-cell-selected-outline-color:
|
|
32
|
-
resizable-handle-active-background-color:
|
|
33
|
-
resizable-handle-hover-background-color:
|
|
34
|
-
resizable-handle-disabled-background-color:
|
|
25
|
+
outline-color: sass-utils.safe-color-change($text-color, $alpha: .2),
|
|
26
|
+
column-menu-text-color: $text-color,
|
|
27
|
+
column-menu-divider-color: $divider-color,
|
|
28
|
+
table-footer-background-color: mat.get-theme-color($theme, background, app-bar),
|
|
29
|
+
table-row-striped-background-color: if($is-dark, #3a3a3a, #f5f5f5),
|
|
30
|
+
table-row-hover-background-color: if($is-dark, #2a2a2a, #e5e5e5),
|
|
31
|
+
table-row-selected-background-color: if($is-dark, #2a2a2a, #e5e5e5),
|
|
32
|
+
table-cell-selected-outline-color: mat.get-theme-color($theme, accent),
|
|
33
|
+
resizable-handle-active-background-color: mat.get-theme-color($theme, primary),
|
|
34
|
+
resizable-handle-hover-background-color: mat.get-theme-color($theme, primary),
|
|
35
|
+
resizable-handle-disabled-background-color: $divider-color,
|
|
35
36
|
);
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
39
|
-
@function get-typography-tokens($
|
|
40
|
+
@function get-typography-tokens($theme) {
|
|
40
41
|
@return ();
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
44
|
-
@function get-density-tokens($
|
|
45
|
-
|
|
45
|
+
@function get-density-tokens($theme) {
|
|
46
|
+
$scale: mat.private-clamp-density(mat.get-theme-density($theme), -4);
|
|
47
|
+
$expand-button-scale: (
|
|
48
|
+
0: 48px,
|
|
49
|
+
-1: 44px,
|
|
50
|
+
-2: 40px,
|
|
51
|
+
-3: 36px,
|
|
52
|
+
-4: 28px
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
@return (
|
|
56
|
+
row-expand-button-size: map.get($expand-button-scale, $scale),
|
|
57
|
+
);
|
|
46
58
|
}
|
|
47
59
|
|
|
48
60
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:meta';
|
|
4
|
+
@use '@angular/material' as mat;
|
|
4
5
|
@use '../../token-utils';
|
|
5
|
-
@use '../../../theming/theming';
|
|
6
6
|
@use '../../../style/sass-utils';
|
|
7
7
|
|
|
8
8
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -15,21 +15,21 @@ $prefix: (mtx, loader);
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
18
|
-
@function get-color-tokens($
|
|
19
|
-
$background:
|
|
18
|
+
@function get-color-tokens($theme) {
|
|
19
|
+
$background-color: mat.get-theme-color($theme, background, background);
|
|
20
20
|
|
|
21
21
|
@return (
|
|
22
|
-
backdrop-background-color:
|
|
22
|
+
backdrop-background-color: sass-utils.safe-color-change($background-color, $alpha: .75),
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
27
|
-
@function get-typography-tokens($
|
|
27
|
+
@function get-typography-tokens($theme) {
|
|
28
28
|
@return ();
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
32
|
-
@function get-density-tokens($
|
|
32
|
+
@function get-density-tokens($theme) {
|
|
33
33
|
@return ();
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '../../token-utils';
|
|
3
|
-
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
5
5
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -9,28 +9,27 @@ $prefix: (mtx, popover);
|
|
|
9
9
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
10
10
|
// but may be in a future version of the theming API.
|
|
11
11
|
@function get-unthemable-tokens() {
|
|
12
|
-
@return (
|
|
12
|
+
@return (
|
|
13
|
+
container-shape: 4px,
|
|
14
|
+
);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
16
|
-
@function get-color-tokens($
|
|
17
|
-
$foreground: map.get($config, foreground);
|
|
18
|
-
$background: map.get($config, background);
|
|
19
|
-
|
|
18
|
+
@function get-color-tokens($theme) {
|
|
20
19
|
@return (
|
|
21
|
-
background-color:
|
|
22
|
-
text-color:
|
|
23
|
-
arrow-outline-color:
|
|
20
|
+
background-color: mat.get-theme-color($theme, background, card),
|
|
21
|
+
text-color: mat.get-theme-color($theme, foreground, text),
|
|
22
|
+
arrow-outline-color: mat.get-theme-color($theme, foreground, divider),
|
|
24
23
|
);
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
28
|
-
@function get-typography-tokens($
|
|
27
|
+
@function get-typography-tokens($theme) {
|
|
29
28
|
@return ();
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
33
|
-
@function get-density-tokens($
|
|
32
|
+
@function get-density-tokens($theme) {
|
|
34
33
|
@return ();
|
|
35
34
|
}
|
|
36
35
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '../../token-utils';
|
|
3
|
-
@use '../../../theming/theming';
|
|
4
4
|
@use '../../../style/sass-utils';
|
|
5
|
-
@use '../../../theming/palette';
|
|
6
5
|
|
|
7
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
8
7
|
$prefix: (mtx, progress);
|
|
@@ -10,37 +9,39 @@ $prefix: (mtx, progress);
|
|
|
10
9
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
11
10
|
// but may be in a future version of the theming API.
|
|
12
11
|
@function get-unthemable-tokens() {
|
|
13
|
-
@return (
|
|
12
|
+
@return (
|
|
13
|
+
container-shape: 4px,
|
|
14
|
+
);
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
17
|
-
@function get-color-tokens($
|
|
18
|
-
$
|
|
19
|
-
$background: map.get($config, background);
|
|
20
|
-
$is-dark-theme: map.get($config, is-dark);
|
|
18
|
+
@function get-color-tokens($theme) {
|
|
19
|
+
$is-dark: mat.get-theme-type($theme) == dark;
|
|
21
20
|
|
|
22
21
|
@return (
|
|
23
|
-
track-color:
|
|
24
|
-
indicator-color:
|
|
25
|
-
text-color:
|
|
26
|
-
info-indicator-color:
|
|
22
|
+
track-color: mat.get-theme-color($theme, background, hover),
|
|
23
|
+
indicator-color: mat.get-theme-color($theme, foreground, divider),
|
|
24
|
+
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)),
|
|
27
26
|
info-text-color: white,
|
|
28
|
-
success-indicator-color:
|
|
27
|
+
success-indicator-color: mat.get-color-from-palette(mat.$green-palette, if($is-dark, 900, 500)),
|
|
29
28
|
success-text-color: white,
|
|
30
|
-
warning-indicator-color:
|
|
29
|
+
warning-indicator-color: mat.get-color-from-palette(mat.$orange-palette, if($is-dark, 900, 500)),
|
|
31
30
|
warning-text-color: white,
|
|
32
|
-
danger-indicator-color:
|
|
31
|
+
danger-indicator-color: mat.get-color-from-palette(mat.$red-palette, if($is-dark, 900, 500)),
|
|
33
32
|
danger-text-color: white,
|
|
34
33
|
);
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
38
|
-
@function get-typography-tokens($
|
|
39
|
-
@return (
|
|
37
|
+
@function get-typography-tokens($theme) {
|
|
38
|
+
@return (
|
|
39
|
+
text-size: 12px,
|
|
40
|
+
);
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
43
|
-
@function get-density-tokens($
|
|
44
|
+
@function get-density-tokens($theme) {
|
|
44
45
|
@return ();
|
|
45
46
|
}
|
|
46
47
|
|