@angular/material-experimental 14.0.0-next.8 → 14.0.0-next.9
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 -0
- package/column-resize/_column-resize-theme.scss +15 -17
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/default-enabled-column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-module.mjs +12 -12
- package/esm2020/column-resize/overlay-handle.mjs +3 -3
- package/esm2020/column-resize/resizable-directives/default-enabled-resizable.mjs +3 -3
- package/esm2020/column-resize/resizable-directives/resizable.mjs +3 -3
- package/esm2020/column-resize/resize-strategy.mjs +3 -3
- package/esm2020/mdc-autocomplete/autocomplete-origin.mjs +3 -3
- package/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +3 -3
- package/esm2020/mdc-autocomplete/autocomplete.mjs +5 -5
- package/esm2020/mdc-autocomplete/module.mjs +4 -4
- package/esm2020/mdc-button/button-base.mjs +6 -6
- package/esm2020/mdc-button/button.mjs +8 -8
- package/esm2020/mdc-button/fab.mjs +16 -16
- package/esm2020/mdc-button/icon-button.mjs +8 -8
- package/esm2020/mdc-button/module.mjs +4 -4
- package/esm2020/mdc-card/card.mjs +43 -43
- package/esm2020/mdc-card/module.mjs +4 -4
- package/esm2020/mdc-checkbox/checkbox.mjs +4 -4
- package/esm2020/mdc-checkbox/module.mjs +4 -4
- package/esm2020/mdc-chips/chip-action.mjs +3 -3
- package/esm2020/mdc-chips/chip-edit-input.mjs +3 -3
- package/esm2020/mdc-chips/chip-grid.mjs +22 -9
- package/esm2020/mdc-chips/chip-icons.mjs +9 -9
- package/esm2020/mdc-chips/chip-input.mjs +8 -4
- package/esm2020/mdc-chips/chip-listbox.mjs +5 -5
- package/esm2020/mdc-chips/chip-option.mjs +4 -4
- package/esm2020/mdc-chips/chip-row.mjs +4 -4
- package/esm2020/mdc-chips/chip-set.mjs +6 -8
- package/esm2020/mdc-chips/chip-text-control.mjs +1 -1
- package/esm2020/mdc-chips/chip.mjs +4 -4
- package/esm2020/mdc-chips/module.mjs +4 -4
- package/esm2020/mdc-core/option/index.mjs +4 -4
- package/esm2020/mdc-core/option/optgroup.mjs +4 -4
- package/esm2020/mdc-core/option/option.mjs +4 -4
- package/esm2020/mdc-dialog/dialog-container.mjs +4 -4
- package/esm2020/mdc-dialog/dialog-content-directives.mjs +12 -12
- package/esm2020/mdc-dialog/dialog.mjs +3 -3
- package/esm2020/mdc-dialog/module.mjs +4 -4
- package/esm2020/mdc-form-field/directives/error.mjs +3 -3
- package/esm2020/mdc-form-field/directives/floating-label.mjs +3 -3
- package/esm2020/mdc-form-field/directives/hint.mjs +3 -3
- package/esm2020/mdc-form-field/directives/label.mjs +3 -3
- package/esm2020/mdc-form-field/directives/line-ripple.mjs +3 -3
- package/esm2020/mdc-form-field/directives/notched-outline.mjs +3 -3
- package/esm2020/mdc-form-field/directives/prefix.mjs +3 -3
- package/esm2020/mdc-form-field/directives/suffix.mjs +3 -3
- package/esm2020/mdc-form-field/form-field.mjs +5 -5
- package/esm2020/mdc-form-field/module.mjs +4 -4
- package/esm2020/mdc-form-field/testing/public-api.mjs +4 -4
- package/esm2020/mdc-input/input.mjs +3 -3
- package/esm2020/mdc-input/module.mjs +4 -4
- package/esm2020/mdc-list/action-list.mjs +4 -4
- package/esm2020/mdc-list/interactive-list-base.mjs +3 -3
- package/esm2020/mdc-list/list-base.mjs +6 -6
- package/esm2020/mdc-list/list-item-sections.mjs +18 -18
- package/esm2020/mdc-list/list-option.mjs +5 -5
- package/esm2020/mdc-list/list.mjs +7 -7
- package/esm2020/mdc-list/module.mjs +4 -4
- package/esm2020/mdc-list/nav-list.mjs +4 -4
- package/esm2020/mdc-list/selection-list.mjs +5 -5
- package/esm2020/mdc-list/subheader.mjs +3 -3
- package/esm2020/mdc-menu/directives.mjs +6 -6
- package/esm2020/mdc-menu/menu-item.mjs +3 -3
- package/esm2020/mdc-menu/menu.mjs +5 -5
- package/esm2020/mdc-menu/module.mjs +4 -4
- package/esm2020/mdc-paginator/module.mjs +4 -4
- package/esm2020/mdc-paginator/paginator.mjs +4 -4
- package/esm2020/mdc-progress-bar/module.mjs +4 -4
- package/esm2020/mdc-progress-bar/progress-bar.mjs +4 -4
- package/esm2020/mdc-progress-spinner/module.mjs +4 -4
- package/esm2020/mdc-progress-spinner/progress-spinner.mjs +4 -4
- package/esm2020/mdc-radio/module.mjs +4 -4
- package/esm2020/mdc-radio/radio.mjs +8 -8
- package/esm2020/mdc-select/module.mjs +4 -4
- package/esm2020/mdc-select/select.mjs +9 -9
- package/esm2020/mdc-slide-toggle/module.mjs +4 -4
- package/esm2020/mdc-slide-toggle/slide-toggle.mjs +4 -4
- package/esm2020/mdc-slider/global-change-and-input-listener.mjs +3 -3
- package/esm2020/mdc-slider/module.mjs +4 -4
- package/esm2020/mdc-slider/slider.mjs +46 -17
- package/esm2020/mdc-snack-bar/module.mjs +4 -4
- package/esm2020/mdc-snack-bar/simple-snack-bar.mjs +4 -4
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +18 -12
- package/esm2020/mdc-snack-bar/snack-bar-content.mjs +9 -9
- package/esm2020/mdc-snack-bar/snack-bar.mjs +3 -3
- package/esm2020/mdc-table/cell.mjs +21 -21
- package/esm2020/mdc-table/module.mjs +4 -4
- package/esm2020/mdc-table/row.mjs +21 -21
- package/esm2020/mdc-table/table.mjs +8 -8
- package/esm2020/mdc-table/text-column.mjs +3 -3
- package/esm2020/mdc-tabs/module.mjs +4 -4
- package/esm2020/mdc-tabs/tab-body.mjs +8 -8
- package/esm2020/mdc-tabs/tab-content.mjs +3 -3
- package/esm2020/mdc-tabs/tab-group.mjs +5 -5
- package/esm2020/mdc-tabs/tab-header.mjs +4 -4
- package/esm2020/mdc-tabs/tab-label-wrapper.mjs +3 -3
- package/esm2020/mdc-tabs/tab-label.mjs +3 -3
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +11 -11
- package/esm2020/mdc-tabs/tab.mjs +3 -3
- package/esm2020/mdc-tooltip/module.mjs +4 -4
- package/esm2020/mdc-tooltip/tooltip.mjs +7 -7
- package/esm2020/menubar/menubar-item.mjs +4 -4
- package/esm2020/menubar/menubar-module.mjs +4 -4
- package/esm2020/menubar/menubar.mjs +7 -10
- package/esm2020/popover-edit/lens-directives.mjs +9 -9
- package/esm2020/popover-edit/popover-edit-module.mjs +4 -4
- package/esm2020/popover-edit/table-directives.mjs +12 -12
- package/esm2020/selection/row-selection.mjs +3 -3
- package/esm2020/selection/select-all.mjs +3 -3
- package/esm2020/selection/selection-column.mjs +5 -5
- package/esm2020/selection/selection-module.mjs +4 -4
- package/esm2020/selection/selection-toggle.mjs +3 -3
- package/esm2020/selection/selection.mjs +3 -3
- package/esm2020/version.mjs +1 -1
- package/fesm2015/column-resize.mjs +36 -36
- package/fesm2015/material-experimental.mjs +1 -1
- package/fesm2015/material-experimental.mjs.map +1 -1
- package/fesm2015/mdc-autocomplete.mjs +14 -14
- package/fesm2015/mdc-autocomplete.mjs.map +1 -1
- package/fesm2015/mdc-button.mjs +42 -42
- package/fesm2015/mdc-button.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +47 -47
- package/fesm2015/mdc-card.mjs.map +1 -1
- package/fesm2015/mdc-checkbox.mjs +8 -8
- package/fesm2015/mdc-checkbox.mjs.map +1 -1
- package/fesm2015/mdc-chips.mjs +69 -54
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2015/mdc-core.mjs +12 -12
- package/fesm2015/mdc-core.mjs.map +1 -1
- package/fesm2015/mdc-dialog.mjs +23 -23
- package/fesm2015/mdc-dialog.mjs.map +1 -1
- package/fesm2015/mdc-form-field/testing.mjs +1 -1
- package/fesm2015/mdc-form-field/testing.mjs.map +1 -1
- package/fesm2015/mdc-form-field.mjs +32 -32
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-input.mjs +7 -7
- package/fesm2015/mdc-list.mjs +59 -59
- package/fesm2015/mdc-list.mjs.map +1 -1
- package/fesm2015/mdc-menu.mjs +17 -17
- package/fesm2015/mdc-menu.mjs.map +1 -1
- package/fesm2015/mdc-paginator.mjs +8 -8
- package/fesm2015/mdc-paginator.mjs.map +1 -1
- package/fesm2015/mdc-progress-bar.mjs +8 -8
- package/fesm2015/mdc-progress-bar.mjs.map +1 -1
- package/fesm2015/mdc-progress-spinner.mjs +8 -8
- package/fesm2015/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2015/mdc-radio.mjs +11 -11
- package/fesm2015/mdc-radio.mjs.map +1 -1
- package/fesm2015/mdc-select.mjs +12 -12
- package/fesm2015/mdc-select.mjs.map +1 -1
- package/fesm2015/mdc-slide-toggle.mjs +8 -8
- package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2015/mdc-slider.mjs +54 -23
- package/fesm2015/mdc-slider.mjs.map +1 -1
- package/fesm2015/mdc-snack-bar.mjs +37 -31
- package/fesm2015/mdc-snack-bar.mjs.map +1 -1
- package/fesm2015/mdc-table.mjs +57 -57
- package/fesm2015/mdc-table.mjs.map +1 -1
- package/fesm2015/mdc-tabs.mjs +43 -43
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/mdc-tooltip.mjs +11 -11
- package/fesm2015/mdc-tooltip.mjs.map +1 -1
- package/fesm2015/menubar.mjs +14 -17
- package/fesm2015/menubar.mjs.map +1 -1
- package/fesm2015/popover-edit.mjs +25 -25
- package/fesm2015/selection.mjs +21 -21
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2020/column-resize.mjs +36 -36
- package/fesm2020/material-experimental.mjs +1 -1
- package/fesm2020/material-experimental.mjs.map +1 -1
- package/fesm2020/mdc-autocomplete.mjs +14 -14
- package/fesm2020/mdc-autocomplete.mjs.map +1 -1
- package/fesm2020/mdc-button.mjs +42 -42
- package/fesm2020/mdc-button.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +47 -47
- package/fesm2020/mdc-card.mjs.map +1 -1
- package/fesm2020/mdc-checkbox.mjs +8 -8
- package/fesm2020/mdc-checkbox.mjs.map +1 -1
- package/fesm2020/mdc-chips.mjs +69 -54
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/fesm2020/mdc-core.mjs +12 -12
- package/fesm2020/mdc-core.mjs.map +1 -1
- package/fesm2020/mdc-dialog.mjs +23 -23
- package/fesm2020/mdc-dialog.mjs.map +1 -1
- package/fesm2020/mdc-form-field/testing.mjs +1 -1
- package/fesm2020/mdc-form-field/testing.mjs.map +1 -1
- package/fesm2020/mdc-form-field.mjs +32 -32
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-input.mjs +7 -7
- package/fesm2020/mdc-list.mjs +59 -59
- package/fesm2020/mdc-list.mjs.map +1 -1
- package/fesm2020/mdc-menu.mjs +17 -17
- package/fesm2020/mdc-menu.mjs.map +1 -1
- package/fesm2020/mdc-paginator.mjs +8 -8
- package/fesm2020/mdc-paginator.mjs.map +1 -1
- package/fesm2020/mdc-progress-bar.mjs +8 -8
- package/fesm2020/mdc-progress-bar.mjs.map +1 -1
- package/fesm2020/mdc-progress-spinner.mjs +8 -8
- package/fesm2020/mdc-progress-spinner.mjs.map +1 -1
- package/fesm2020/mdc-radio.mjs +11 -11
- package/fesm2020/mdc-radio.mjs.map +1 -1
- package/fesm2020/mdc-select.mjs +12 -12
- package/fesm2020/mdc-select.mjs.map +1 -1
- package/fesm2020/mdc-slide-toggle.mjs +8 -8
- package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
- package/fesm2020/mdc-slider.mjs +52 -22
- package/fesm2020/mdc-slider.mjs.map +1 -1
- package/fesm2020/mdc-snack-bar.mjs +37 -31
- package/fesm2020/mdc-snack-bar.mjs.map +1 -1
- package/fesm2020/mdc-table.mjs +57 -57
- package/fesm2020/mdc-table.mjs.map +1 -1
- package/fesm2020/mdc-tabs.mjs +43 -43
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/mdc-tooltip.mjs +11 -11
- package/fesm2020/mdc-tooltip.mjs.map +1 -1
- package/fesm2020/menubar.mjs +14 -17
- package/fesm2020/menubar.mjs.map +1 -1
- package/fesm2020/popover-edit.mjs +25 -25
- package/fesm2020/selection.mjs +21 -21
- package/fesm2020/selection.mjs.map +1 -1
- package/mdc-autocomplete/_autocomplete-theme.scss +10 -10
- package/mdc-button/_button-base.scss +4 -3
- package/mdc-button/_button-theme-private.scss +0 -1
- package/mdc-button/_button-theme.scss +11 -11
- package/mdc-button/_fab-theme.scss +10 -10
- package/mdc-button/_icon-button-theme.scss +11 -11
- package/mdc-card/_card-theme.scss +11 -11
- package/mdc-checkbox/_checkbox-theme.scss +16 -17
- package/mdc-chips/_chips-theme.scss +20 -15
- package/mdc-chips/chip-grid.d.ts +4 -0
- package/mdc-chips/chip-input.d.ts +3 -0
- package/mdc-chips/chip-set.d.ts +0 -2
- package/mdc-chips/chip-text-control.d.ts +2 -0
- package/mdc-color/_all-color.scss +4 -3
- package/mdc-core/_core-theme.scss +13 -13
- package/mdc-core/option/_optgroup-theme.scss +11 -11
- package/mdc-core/option/_option-theme.scss +11 -11
- package/mdc-density/_all-density.scss +4 -3
- package/mdc-dialog/_dialog-theme.scss +49 -13
- package/mdc-form-field/_form-field-density.scss +4 -3
- package/mdc-form-field/_form-field-focus-overlay.scss +2 -2
- package/mdc-form-field/_form-field-high-contrast.scss +5 -5
- package/mdc-form-field/_form-field-native-select.scss +5 -4
- package/mdc-form-field/_form-field-subscript.scss +5 -3
- package/mdc-form-field/_form-field-theme.scss +16 -16
- package/mdc-form-field/testing/public-api.d.ts +1 -1
- package/mdc-helpers/_focus-indicators-theme.scss +6 -6
- package/mdc-helpers/_focus-indicators.scss +2 -2
- package/mdc-helpers/_mdc-helpers.scss +12 -14
- package/mdc-input/_input-theme.scss +10 -10
- package/mdc-list/_interactive-list-theme.scss +2 -2
- package/mdc-list/_list-theme.scss +15 -17
- package/mdc-menu/_menu-theme.scss +10 -10
- package/mdc-paginator/_paginator-theme.scss +20 -23
- package/mdc-progress-bar/_progress-bar-theme.scss +8 -7
- package/mdc-progress-spinner/_progress-spinner-theme.scss +8 -7
- package/mdc-radio/_radio-theme.scss +13 -14
- package/mdc-select/_select-theme.scss +10 -10
- package/mdc-slide-toggle/_slide-toggle-theme.scss +14 -15
- package/mdc-slider/_slider-theme.scss +11 -12
- package/mdc-slider/slider.d.ts +6 -0
- package/mdc-snack-bar/_snack-bar-theme.scss +11 -11
- package/mdc-table/_table-theme.scss +12 -12
- package/mdc-tabs/_tabs-common.scss +5 -4
- package/mdc-tabs/_tabs-theme.scss +14 -14
- package/mdc-theming/_all-theme.scss +3 -2
- package/mdc-theming/prebuilt/deeppurple-amber.css +1 -1
- package/mdc-theming/prebuilt/indigo-pink.css +1 -1
- package/mdc-theming/prebuilt/pink-bluegrey.css +1 -1
- package/mdc-theming/prebuilt/purple-green.css +1 -1
- package/mdc-tooltip/_tooltip-theme.scss +12 -13
- package/mdc-typography/_all-typography.scss +5 -5
- package/package.json +50 -4
- package/popover-edit/_popover-edit-theme.scss +23 -26
- package/selection/_selection.scss +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '@angular/cdk';
|
|
2
2
|
|
|
3
3
|
@mixin private-form-field-high-contrast() {
|
|
4
4
|
$focus-indicator-width: 3px;
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
// The outline of the `fill` appearance is achieved through a background color
|
|
9
9
|
// which won't be visible in high contrast mode. Add an outline to replace it.
|
|
10
10
|
.mat-mdc-text-field-wrapper {
|
|
11
|
-
@include
|
|
11
|
+
@include cdk.high-contrast(active, off) {
|
|
12
12
|
outline: solid 1px;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
// Use GreyText for the disabled outline color which will account for the user's configuration.
|
|
17
17
|
&.mat-form-field-disabled .mat-mdc-text-field-wrapper {
|
|
18
|
-
@include
|
|
18
|
+
@include cdk.high-contrast(active, off) {
|
|
19
19
|
outline-color: GrayText;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
// If a form field with fill appearance is focused, update the outline to be
|
|
25
25
|
// dashed and thicker to indicate focus.
|
|
26
26
|
.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper {
|
|
27
|
-
@include
|
|
27
|
+
@include cdk.high-contrast(active, off) {
|
|
28
28
|
outline: $focus-indicator-style $focus-indicator-width;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
// For form fields with outline appearance, we show a dashed thick border on top
|
|
33
33
|
// of the solid notched-outline border to indicate focus.
|
|
34
34
|
.mat-mdc-form-field.mat-focused .mdc-notched-outline {
|
|
35
|
-
@include
|
|
35
|
+
@include cdk.high-contrast(active, off) {
|
|
36
36
|
border: $focus-indicator-style $focus-indicator-width;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:math';
|
|
3
|
-
@use '
|
|
4
|
-
@use '../../material/core/theming/palette';
|
|
3
|
+
@use '@angular/material' as mat;
|
|
5
4
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
6
5
|
|
|
6
|
+
@use '../mdc-helpers/mdc-helpers';
|
|
7
|
+
|
|
7
8
|
// Width of the Material Design form-field select arrow.
|
|
8
9
|
$mat-form-field-select-arrow-width: 10px;
|
|
9
10
|
// Height of the Material Design form-field select arrow.
|
|
@@ -88,11 +89,11 @@ $mat-form-field-select-horizontal-end-padding: $mat-form-field-select-arrow-widt
|
|
|
88
89
|
// reset the color of the options to something dark.
|
|
89
90
|
@if (map.get($config, is-dark)) {
|
|
90
91
|
option {
|
|
91
|
-
color:
|
|
92
|
+
color: mat.$private-dark-primary-text;
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
option:disabled {
|
|
95
|
-
color:
|
|
96
|
+
color: mat.$private-dark-disabled-text;
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
@use '@angular/material' as mat;
|
|
1
3
|
@use '@material/textfield' as mdc-textfield;
|
|
2
4
|
@use '@material/theme/theme' as mdc-theme;
|
|
3
5
|
@use '@material/typography' as mdc-typography;
|
|
4
6
|
@use '@material/textfield/variables' as mdc-textfield-variables;
|
|
5
|
-
|
|
7
|
+
|
|
8
|
+
@use './form-field-sizing';
|
|
6
9
|
@use '../mdc-helpers/mdc-helpers';
|
|
7
|
-
@use '../../material/core/theming/theming';
|
|
8
10
|
|
|
9
11
|
@mixin private-form-field-subscript() {
|
|
10
12
|
// Wrapper for the hints and error messages.
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
// We need to define our own typography for the subscript because we don't include MDC's
|
|
71
73
|
// helper text in our MDC based form field
|
|
72
74
|
@mixin private-form-field-subscript-typography($config-or-theme) {
|
|
73
|
-
$config:
|
|
75
|
+
$config: mat.get-typography-config($config-or-theme);
|
|
74
76
|
|
|
75
77
|
// The subscript wrapper has a minimum height to avoid that the form-field
|
|
76
78
|
// jumps when hints or errors are displayed.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/textfield' as mdc-textfield;
|
|
2
3
|
@use '@material/floating-label' as mdc-floating-label;
|
|
3
4
|
@use '@material/notched-outline' as mdc-notched-outline;
|
|
4
5
|
@use '@material/line-ripple' as mdc-line-ripple;
|
|
5
6
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
6
7
|
@use '@material/typography/typography' as mdc-typography;
|
|
8
|
+
|
|
7
9
|
@use '../mdc-helpers/mdc-helpers';
|
|
8
|
-
@use '
|
|
9
|
-
@use 'form-field-
|
|
10
|
-
@use 'form-field-
|
|
11
|
-
@use 'form-field-
|
|
12
|
-
@use '
|
|
13
|
-
@use 'mdc-text-field-theme-variable-refresh';
|
|
14
|
-
@use '../../material/core/theming/theming';
|
|
10
|
+
@use './form-field-density';
|
|
11
|
+
@use './form-field-subscript';
|
|
12
|
+
@use './form-field-focus-overlay';
|
|
13
|
+
@use './form-field-native-select';
|
|
14
|
+
@use './mdc-text-field-theme-variable-refresh';
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
// Mixin that overwrites the default MDC text-field color styles to be based on
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@mixin color($config-or-theme) {
|
|
43
|
-
$config:
|
|
43
|
+
$config: mat.get-color-config($config-or-theme);
|
|
44
44
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
45
45
|
@include mdc-text-field-theme-variable-refresh.private-text-field-refresh-theme-variables() {
|
|
46
46
|
@include mdc-textfield.without-ripple($query: mdc-helpers.$mat-theme-styles-query);
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
@mixin typography($config-or-theme) {
|
|
66
|
-
$config:
|
|
67
|
-
|
|
66
|
+
$config: mat.private-typography-to-2018-config(
|
|
67
|
+
mat.get-typography-config($config-or-theme));
|
|
68
68
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
69
69
|
@include mdc-textfield.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
70
70
|
@include mdc-floating-label.core-styles($query: mdc-helpers.$mat-typography-styles-query);
|
|
@@ -100,16 +100,16 @@
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
@mixin density($config-or-theme) {
|
|
103
|
-
$density-scale:
|
|
103
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
104
104
|
@include form-field-density.private-form-field-density($density-scale);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@mixin theme($theme-or-color-config) {
|
|
108
|
-
$theme:
|
|
109
|
-
@include
|
|
110
|
-
$color:
|
|
111
|
-
$density:
|
|
112
|
-
$typography:
|
|
108
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
109
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-form-field') {
|
|
110
|
+
$color: mat.get-color-config($theme);
|
|
111
|
+
$density: mat.get-density-config($theme);
|
|
112
|
+
$typography: mat.get-typography-config($theme);
|
|
113
113
|
|
|
114
114
|
@if $color != null {
|
|
115
115
|
@include color($color);
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export { MatFormFieldControlHarness } from '@angular/material/form-field/testing/control';
|
|
9
9
|
export { FormFieldHarnessFilters } from '@angular/material/form-field/testing';
|
|
10
10
|
export * from './form-field-harness';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use 'sass:map';
|
|
2
3
|
@use 'sass:meta';
|
|
3
|
-
@use '../../material/core/theming/theming';
|
|
4
4
|
|
|
5
5
|
@mixin _border-color($color) {
|
|
6
6
|
.mat-mdc-focus-indicator::before {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
@include _border-color($config-or-theme-or-color);
|
|
15
15
|
}
|
|
16
16
|
@else {
|
|
17
|
-
$config:
|
|
18
|
-
$border-color:
|
|
17
|
+
$config: mat.get-color-config($config-or-theme-or-color);
|
|
18
|
+
$border-color: mat.get-color-from-palette(map.get($config, primary));
|
|
19
19
|
@include _border-color($border-color);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
@include _border-color($theme-or-color-config-or-color);
|
|
27
27
|
}
|
|
28
28
|
@else {
|
|
29
|
-
$theme:
|
|
30
|
-
@include
|
|
31
|
-
$color:
|
|
29
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config-or-color);
|
|
30
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-focus-indicators') {
|
|
31
|
+
$color: mat.get-color-config($theme);
|
|
32
32
|
@if $color != null {
|
|
33
33
|
@include color($color);
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use 'sass:map';
|
|
2
|
-
@use '../../material/core/style/layout-common';
|
|
3
3
|
|
|
4
4
|
/// Mixin that turns on strong focus indicators.
|
|
5
5
|
///
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
// Base styles for focus indicators.
|
|
25
25
|
.mat-mdc-focus-indicator::before {
|
|
26
|
-
@include
|
|
26
|
+
@include mat.private-fill();
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
pointer-events: none;
|
|
29
29
|
border: $border-width $border-style transparent;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
// TODO(mmalerba): this file should be split into separate cohesive partials for things like
|
|
2
2
|
// "theming", "typography", "core".
|
|
3
3
|
|
|
4
|
+
@use '@angular/material' as mat;
|
|
4
5
|
@use '@material/feature-targeting' as mdc-feature-targeting;
|
|
5
6
|
@use '@material/typography' as mdc-typography;
|
|
6
7
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
7
8
|
@use '@material/theme/css' as mdc-theme-css;
|
|
8
9
|
@use 'sass:map';
|
|
9
|
-
@use '../../material/core/theming/theming';
|
|
10
|
-
@use '../../material/core/typography/typography';
|
|
11
|
-
@use '../../material/core/typography/typography-utils';
|
|
12
10
|
|
|
13
11
|
// A set of standard queries to use with MDC's queryable mixins.
|
|
14
12
|
$mat-base-styles-query: mdc-feature-targeting.without(mdc-feature-targeting.any(color, typography));
|
|
@@ -48,11 +46,11 @@ $mat-typography-mdc-level-mappings: (
|
|
|
48
46
|
)),
|
|
49
47
|
if($mat-level,
|
|
50
48
|
(
|
|
51
|
-
font-size:
|
|
52
|
-
line-height:
|
|
53
|
-
font-weight:
|
|
54
|
-
letter-spacing:
|
|
55
|
-
font-family:
|
|
49
|
+
font-size: mat.font-size($mat-config, $mat-level),
|
|
50
|
+
line-height: mat.line-height($mat-config, $mat-level),
|
|
51
|
+
font-weight: mat.font-weight($mat-config, $mat-level),
|
|
52
|
+
letter-spacing: mat.letter-spacing($mat-config, $mat-level),
|
|
53
|
+
font-family: mat.font-family($mat-config, $mat-level),
|
|
56
54
|
// Angular Material doesn't use text-transform, so disable it.
|
|
57
55
|
text-transform: none,
|
|
58
56
|
),
|
|
@@ -86,7 +84,7 @@ $mat-typography-mdc-level-mappings: (
|
|
|
86
84
|
@function mat-typography-config-level-from-mdc($mdc-level) {
|
|
87
85
|
$mdc-level-config: map.get(mdc-typography.$styles, $mdc-level);
|
|
88
86
|
|
|
89
|
-
@return
|
|
87
|
+
@return mat.define-typography-level(
|
|
90
88
|
map.get($mdc-level-config, font-size),
|
|
91
89
|
map.get($mdc-level-config, line-height),
|
|
92
90
|
map.get($mdc-level-config, font-weight),
|
|
@@ -97,9 +95,9 @@ $mat-typography-mdc-level-mappings: (
|
|
|
97
95
|
// Configures MDC's global variables to reflect the given theme, applies the given styles,
|
|
98
96
|
// then resets the global variables to prevent unintended side effects.
|
|
99
97
|
@mixin mat-using-mdc-theme($config) {
|
|
100
|
-
$primary:
|
|
101
|
-
$accent:
|
|
102
|
-
$warn:
|
|
98
|
+
$primary: mat.get-color-from-palette(map.get($config, primary));
|
|
99
|
+
$accent: mat.get-color-from-palette(map.get($config, accent));
|
|
100
|
+
$warn: mat.get-color-from-palette(map.get($config, warn));
|
|
103
101
|
$background-palette: map.get($config, background);
|
|
104
102
|
|
|
105
103
|
// Save the original values.
|
|
@@ -121,8 +119,8 @@ $mat-typography-mdc-level-mappings: (
|
|
|
121
119
|
mdc-theme-color.$secondary: $accent;
|
|
122
120
|
mdc-theme-color.$on-secondary:
|
|
123
121
|
if(mdc-theme-color.contrast-tone(mdc-theme-color.$secondary) == 'dark', #000, #fff);
|
|
124
|
-
mdc-theme-color.$background:
|
|
125
|
-
mdc-theme-color.$surface:
|
|
122
|
+
mdc-theme-color.$background: mat.get-color-from-palette($background-palette, background);
|
|
123
|
+
mdc-theme-color.$surface: mat.get-color-from-palette($background-palette, card);
|
|
126
124
|
mdc-theme-color.$on-surface:
|
|
127
125
|
if(mdc-theme-color.contrast-tone(mdc-theme-color.$surface) == 'dark', #000, #fff);
|
|
128
126
|
mdc-theme-color.$error: $warn;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
1
3
|
@use '../mdc-helpers/mdc-helpers';
|
|
2
|
-
@use '../../material/core/typography/typography';
|
|
3
|
-
@use '../../material/core/theming/theming';
|
|
4
4
|
|
|
5
5
|
@mixin color($config-or-theme) {
|
|
6
|
-
$config:
|
|
6
|
+
$config: mat.get-color-config($config-or-theme);
|
|
7
7
|
@include mdc-helpers.mat-using-mdc-theme($config) {}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
@mixin typography($config-or-theme) {
|
|
11
|
-
$config:
|
|
12
|
-
|
|
11
|
+
$config: mat.private-typography-to-2018-config(
|
|
12
|
+
mat.get-typography-config($config-or-theme));
|
|
13
13
|
@include mdc-helpers.mat-using-mdc-typography($config) {}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
@mixin density($config-or-theme) {}
|
|
17
17
|
|
|
18
18
|
@mixin theme($theme-or-color-config) {
|
|
19
|
-
$theme:
|
|
20
|
-
@include
|
|
21
|
-
$color:
|
|
22
|
-
$density:
|
|
23
|
-
$typography:
|
|
19
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
20
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-input') {
|
|
21
|
+
$color: mat.get-color-config($theme);
|
|
22
|
+
$density: mat.get-density-config($theme);
|
|
23
|
+
$typography: mat.get-typography-config($theme);
|
|
24
24
|
|
|
25
25
|
@if $color != null {
|
|
26
26
|
@include color($color);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/ripple' as mdc-ripple;
|
|
2
3
|
@use 'sass:map';
|
|
3
|
-
@use '../../material/core/theming/theming';
|
|
4
4
|
|
|
5
5
|
// Mixin that provides colors for the various states of an interactive list-item. MDC
|
|
6
6
|
// has integrated styles for these states but relies on their complex ripples for it.
|
|
7
7
|
@mixin private-interactive-list-item-state-colors($config) {
|
|
8
8
|
$is-dark-theme: map.get($config, is-dark);
|
|
9
9
|
$active-base-color: if($is-dark-theme, white, black);
|
|
10
|
-
$selected-color:
|
|
10
|
+
$selected-color: mat.get-color-from-palette(map.get($config, primary));
|
|
11
11
|
|
|
12
12
|
.mat-mdc-list-item-interactive {
|
|
13
13
|
&::before {
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '@material/list/evolution-mixins' as mdc-list;
|
|
4
|
+
|
|
3
5
|
@use './interactive-list-theme';
|
|
4
6
|
@use './list-option-theme';
|
|
5
7
|
@use '../mdc-helpers/mdc-helpers';
|
|
6
|
-
@use '../../material/core/typography/typography';
|
|
7
|
-
@use '../../material/core/typography/typography-utils';
|
|
8
|
-
@use '../../material/core/theming/theming';
|
|
9
|
-
|
|
10
8
|
|
|
11
9
|
// TODO: implement mat-list[dense] once density system is in master
|
|
12
10
|
|
|
13
11
|
|
|
14
12
|
@mixin color($config-or-theme) {
|
|
15
|
-
$config:
|
|
16
|
-
$primary:
|
|
17
|
-
$accent:
|
|
18
|
-
$warn:
|
|
13
|
+
$config: mat.get-color-config($config-or-theme);
|
|
14
|
+
$primary: mat.get-color-from-palette(map.get($config, primary));
|
|
15
|
+
$accent: mat.get-color-from-palette(map.get($config, accent));
|
|
16
|
+
$warn: mat.get-color-from-palette(map.get($config, warn));
|
|
19
17
|
|
|
20
18
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
21
19
|
// MDC's state styles are tied in with their ripple. Since we don't use the MDC
|
|
@@ -36,7 +34,7 @@
|
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
@mixin density($config-or-theme) {
|
|
39
|
-
$density-scale:
|
|
37
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
40
38
|
|
|
41
39
|
@include mdc-helpers.disable-fallback-declarations {
|
|
42
40
|
.mat-mdc-list-item {
|
|
@@ -50,8 +48,8 @@
|
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
@mixin typography($config-or-theme) {
|
|
53
|
-
$config:
|
|
54
|
-
|
|
51
|
+
$config: mat.private-typography-to-2018-config(
|
|
52
|
+
mat.get-typography-config($config-or-theme));
|
|
55
53
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
56
54
|
@include mdc-list.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
57
55
|
@include list-option-theme.private-list-option-typography-styles();
|
|
@@ -62,16 +60,16 @@
|
|
|
62
60
|
// and the Google-specific spec states that it should be body-1.
|
|
63
61
|
// For consistency, we use body-1 for both public and Google internal.
|
|
64
62
|
.mat-mdc-list-item .mdc-list-item__primary-text {
|
|
65
|
-
@include
|
|
63
|
+
@include mat.typography-level($config, body-1);
|
|
66
64
|
}
|
|
67
65
|
}
|
|
68
66
|
|
|
69
67
|
@mixin theme($theme-or-color-config) {
|
|
70
|
-
$theme:
|
|
71
|
-
@include
|
|
72
|
-
$color:
|
|
73
|
-
$density:
|
|
74
|
-
$typography:
|
|
68
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
69
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-list') {
|
|
70
|
+
$color: mat.get-color-config($theme);
|
|
71
|
+
$density: mat.get-density-config($theme);
|
|
72
|
+
$typography: mat.get-typography-config($theme);
|
|
75
73
|
|
|
76
74
|
@if $color != null {
|
|
77
75
|
@include color($color);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
2
3
|
@use '@material/theme/theme' as mdc-theme;
|
|
3
4
|
@use '@material/menu-surface' as mdc-menu-surface;
|
|
4
5
|
@use '@material/list/evolution-mixins' as mdc-list;
|
|
5
6
|
@use '@material/typography' as mdc-typography;
|
|
6
7
|
@use '@material/ripple' as mdc-ripple;
|
|
8
|
+
|
|
7
9
|
@use '../mdc-helpers/mdc-helpers';
|
|
8
|
-
@use '../../material/core/typography/typography';
|
|
9
|
-
@use '../../material/core/theming/theming';
|
|
10
10
|
|
|
11
11
|
@mixin color($config-or-theme) {
|
|
12
|
-
$config:
|
|
12
|
+
$config: mat.get-color-config($config-or-theme);
|
|
13
13
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
14
14
|
@include mdc-menu-surface.core-styles(mdc-helpers.$mat-theme-styles-query);
|
|
15
15
|
@include mdc-list.without-ripple(mdc-helpers.$mat-theme-styles-query);
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@mixin typography($config-or-theme) {
|
|
48
|
-
$config:
|
|
49
|
-
|
|
48
|
+
$config: mat.private-typography-to-2018-config(
|
|
49
|
+
mat.get-typography-config($config-or-theme));
|
|
50
50
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
51
51
|
@include mdc-menu-surface.core-styles(mdc-helpers.$mat-typography-styles-query);
|
|
52
52
|
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
@mixin density($config-or-theme) {}
|
|
69
69
|
|
|
70
70
|
@mixin theme($theme-or-color-config) {
|
|
71
|
-
$theme:
|
|
72
|
-
@include
|
|
73
|
-
$color:
|
|
74
|
-
$density:
|
|
75
|
-
$typography:
|
|
71
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
72
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-menu') {
|
|
73
|
+
$color: mat.get-color-config($theme);
|
|
74
|
+
$density: mat.get-density-config($theme);
|
|
75
|
+
$typography: mat.get-typography-config($theme);
|
|
76
76
|
|
|
77
77
|
@if $color != null {
|
|
78
78
|
@include color($color);
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use '@material/density' as mdc-density;
|
|
1
3
|
@use '@material/typography' as mdc-typography;
|
|
2
4
|
@use 'sass:map';
|
|
3
|
-
|
|
4
|
-
@use '../../material/core/density/private/compatibility';
|
|
5
|
-
@use '../../material/core/typography/typography';
|
|
5
|
+
|
|
6
6
|
@use '../mdc-helpers/mdc-helpers';
|
|
7
7
|
@use './paginator-variables';
|
|
8
|
-
@use '../../material/core/typography/typography-utils';
|
|
9
8
|
|
|
10
9
|
@mixin color($config-or-theme) {
|
|
11
|
-
$config:
|
|
10
|
+
$config: mat.get-color-config($config-or-theme);
|
|
12
11
|
$background: map.get($config, background);
|
|
13
12
|
$foreground: map.get($config, foreground);
|
|
14
|
-
$icon-color: rgba(
|
|
15
|
-
$disabled-color: rgba(
|
|
13
|
+
$icon-color: rgba(mat.get-color-from-palette($foreground, base), 0.54);
|
|
14
|
+
$disabled-color: rgba(mat.get-color-from-palette($foreground, base), 0.12);
|
|
16
15
|
|
|
17
16
|
.mat-mdc-paginator {
|
|
18
|
-
background:
|
|
19
|
-
color: rgba(
|
|
17
|
+
background: mat.get-color-from-palette($background, card);
|
|
18
|
+
color: rgba(mat.get-color-from-palette($foreground, base), 0.87);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
.mat-mdc-paginator-icon {
|
|
@@ -49,8 +48,8 @@
|
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
@mixin typography($config-or-theme) {
|
|
52
|
-
$config:
|
|
53
|
-
|
|
51
|
+
$config: mat.private-typography-to-2018-config(
|
|
52
|
+
mat.get-typography-config($config-or-theme));
|
|
54
53
|
|
|
55
54
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
56
55
|
.mat-mdc-paginator {
|
|
@@ -58,29 +57,27 @@
|
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
.mat-mdc-paginator .mat-mdc-select-value {
|
|
61
|
-
font-size:
|
|
60
|
+
font-size: mat.font-size($config, caption);
|
|
62
61
|
}
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
@mixin density($config-or-theme) {
|
|
67
|
-
$density-scale:
|
|
68
|
-
$height:
|
|
66
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
67
|
+
$height: mdc-density.prop-value(
|
|
69
68
|
paginator-variables.$density-config, $density-scale, height);
|
|
70
69
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
min-height: $height;
|
|
74
|
-
}
|
|
70
|
+
.mat-mdc-paginator-container {
|
|
71
|
+
min-height: $height;
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
74
|
|
|
78
75
|
@mixin theme($theme-or-color-config) {
|
|
79
|
-
$theme:
|
|
80
|
-
@include
|
|
81
|
-
$color:
|
|
82
|
-
$density:
|
|
83
|
-
$typography:
|
|
76
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
77
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-paginator') {
|
|
78
|
+
$color: mat.get-color-config($theme);
|
|
79
|
+
$density: mat.get-density-config($theme);
|
|
80
|
+
$typography: mat.get-typography-config($theme);
|
|
84
81
|
|
|
85
82
|
@if $color != null {
|
|
86
83
|
@include color($color);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
2
3
|
@use '@material/linear-progress' as mdc-linear-progress;
|
|
3
4
|
@use 'sass:color';
|
|
5
|
+
|
|
4
6
|
@use '../mdc-helpers/mdc-helpers';
|
|
5
|
-
@use '../../material/core/theming/theming';
|
|
6
7
|
|
|
7
8
|
@mixin _palette-styles($color) {
|
|
8
9
|
// TODO(crisbeto): the buffer color should come from somewhere in MDC, however at the time of
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
@mixin color($config-or-theme) {
|
|
19
|
-
$config:
|
|
20
|
+
$config: mat.get-color-config($config-or-theme);
|
|
20
21
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
21
22
|
.mat-mdc-progress-bar {
|
|
22
23
|
@include _palette-styles(primary);
|
|
@@ -37,11 +38,11 @@
|
|
|
37
38
|
@mixin density($config-or-theme) {}
|
|
38
39
|
|
|
39
40
|
@mixin theme($theme-or-color-config) {
|
|
40
|
-
$theme:
|
|
41
|
-
@include
|
|
42
|
-
$color:
|
|
43
|
-
$density:
|
|
44
|
-
$typography:
|
|
41
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
42
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-progress-bar') {
|
|
43
|
+
$color: mat.get-color-config($theme);
|
|
44
|
+
$density: mat.get-density-config($theme);
|
|
45
|
+
$typography: mat.get-typography-config($theme);
|
|
45
46
|
|
|
46
47
|
@if $color != null {
|
|
47
48
|
@include color($color);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/circular-progress' as mdc-circular-progress;
|
|
3
|
+
|
|
2
4
|
@use '../mdc-helpers/mdc-helpers';
|
|
3
|
-
@use '../../material/core/theming/theming';
|
|
4
5
|
|
|
5
6
|
@mixin _palette-styles($color) {
|
|
6
7
|
@include mdc-circular-progress.color($color, $query: mdc-helpers.$mat-theme-styles-query);
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
@mixin color($config-or-theme) {
|
|
10
|
-
$config:
|
|
11
|
+
$config: mat.get-color-config($config-or-theme);
|
|
11
12
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
12
13
|
.mat-mdc-progress-spinner {
|
|
13
14
|
@include _palette-styles(primary);
|
|
@@ -28,11 +29,11 @@
|
|
|
28
29
|
@mixin density($config-or-theme) {}
|
|
29
30
|
|
|
30
31
|
@mixin theme($theme-or-color-config) {
|
|
31
|
-
$theme:
|
|
32
|
-
@include
|
|
33
|
-
$color:
|
|
34
|
-
$density:
|
|
35
|
-
$typography:
|
|
32
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
33
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-progress-spinner') {
|
|
34
|
+
$color: mat.get-color-config($theme);
|
|
35
|
+
$density: mat.get-density-config($theme);
|
|
36
|
+
$typography: mat.get-typography-config($theme);
|
|
36
37
|
|
|
37
38
|
@if $color != null {
|
|
38
39
|
@include color($color);
|