@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,14 +1,14 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
2
3
|
@use '@material/icon-button/mixins' as mdc-icon-button;
|
|
3
4
|
@use '@material/icon-button/icon-button-theme' as mdc-icon-button-theme;
|
|
4
5
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
6
|
+
|
|
5
7
|
@use '../mdc-helpers/mdc-helpers';
|
|
6
|
-
@use '../../material/core/theming/theming';
|
|
7
|
-
@use '../../material/core/typography/typography';
|
|
8
8
|
@use './button-theme-private';
|
|
9
9
|
|
|
10
10
|
@mixin color($config-or-theme) {
|
|
11
|
-
$config:
|
|
11
|
+
$config: mat.get-color-config($config-or-theme);
|
|
12
12
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
13
13
|
$is-dark: map.get($config, is-dark);
|
|
14
14
|
$on-surface: mdc-theme-color.prop-value(on-surface);
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@mixin typography($config-or-theme) {
|
|
43
|
-
$config:
|
|
44
|
-
|
|
43
|
+
$config: mat.private-typography-to-2018-config(
|
|
44
|
+
mat.get-typography-config($config-or-theme));
|
|
45
45
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
46
46
|
@include mdc-icon-button.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
@mixin density($config-or-theme) {
|
|
51
|
-
$density-scale:
|
|
51
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
52
52
|
// Use `mat-mdc-button-base` to increase the specificity over the button's structural styles.
|
|
53
53
|
.mat-mdc-icon-button.mat-mdc-button-base {
|
|
54
54
|
@include mdc-icon-button.density($density-scale, $query: mdc-helpers.$mat-base-styles-query);
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
@mixin theme($theme-or-color-config) {
|
|
60
|
-
$theme:
|
|
61
|
-
@include
|
|
62
|
-
$color:
|
|
63
|
-
$density:
|
|
64
|
-
$typography:
|
|
60
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
61
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-icon-button') {
|
|
62
|
+
$color: mat.get-color-config($theme);
|
|
63
|
+
$density: mat.get-density-config($theme);
|
|
64
|
+
$typography: mat.get-typography-config($theme);
|
|
65
65
|
|
|
66
66
|
@if $color != null {
|
|
67
67
|
@include color($color);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/card' as mdc-card;
|
|
2
3
|
@use '@material/typography' as mdc-typography;
|
|
3
4
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
4
5
|
@use 'sass:color';
|
|
5
6
|
@use 'sass:map';
|
|
7
|
+
|
|
6
8
|
@use '../mdc-helpers/mdc-helpers';
|
|
7
|
-
@use '../../material/core/typography/typography';
|
|
8
|
-
@use '../../material/core/theming/theming';
|
|
9
9
|
|
|
10
10
|
@mixin color($config-or-theme) {
|
|
11
|
-
$config:
|
|
11
|
+
$config: mat.get-color-config($config-or-theme);
|
|
12
12
|
$foreground: map.get($config, foreground);
|
|
13
13
|
$is-dark-theme: map.get($config, is-dark);
|
|
14
14
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// Card subtitles are an Angular Material construct (not MDC), so we explicitly set their
|
|
27
27
|
// color to secondary text here.
|
|
28
28
|
.mat-mdc-card-subtitle {
|
|
29
|
-
color:
|
|
29
|
+
color: mat.get-color-from-palette($foreground, secondary-text);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@mixin typography($config-or-theme) {
|
|
38
|
-
$config:
|
|
39
|
-
|
|
38
|
+
$config: mat.private-typography-to-2018-config(
|
|
39
|
+
mat.get-typography-config($config-or-theme));
|
|
40
40
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
41
41
|
@include mdc-card.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
42
42
|
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
@mixin density($config-or-theme) {}
|
|
56
56
|
|
|
57
57
|
@mixin theme($theme-or-color-config) {
|
|
58
|
-
$theme:
|
|
59
|
-
@include
|
|
60
|
-
$color:
|
|
61
|
-
$density:
|
|
62
|
-
$typography:
|
|
58
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
59
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-card') {
|
|
60
|
+
$color: mat.get-color-config($theme);
|
|
61
|
+
$density: mat.get-density-config($theme);
|
|
62
|
+
$typography: mat.get-typography-config($theme);
|
|
63
63
|
|
|
64
64
|
@if $color != null {
|
|
65
65
|
@include color($color);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/checkbox/checkbox' as mdc-checkbox;
|
|
2
3
|
@use '@material/checkbox/checkbox-theme' as mdc-checkbox-theme;
|
|
3
4
|
@use '@material/form-field' as mdc-form-field;
|
|
@@ -5,10 +6,8 @@
|
|
|
5
6
|
@use '@material/theme/theme';
|
|
6
7
|
@use 'sass:map';
|
|
7
8
|
@use 'sass:color';
|
|
9
|
+
|
|
8
10
|
@use '../mdc-helpers/mdc-helpers';
|
|
9
|
-
@use '../../material/core/typography/typography';
|
|
10
|
-
@use '../../material/core/theming/theming';
|
|
11
|
-
@use '../../material/core/ripple/ripple-theme';
|
|
12
11
|
@use './checkbox-private';
|
|
13
12
|
|
|
14
13
|
// Apply ripple colors to the MatRipple element and the MDC ripple element when the
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
@mixin _selected-ripple-colors($theme, $mdc-color) {
|
|
17
16
|
.mdc-checkbox--selected ~ {
|
|
18
17
|
.mat-mdc-checkbox-ripple {
|
|
19
|
-
@include ripple-
|
|
18
|
+
@include mat.ripple-color((
|
|
20
19
|
foreground: (
|
|
21
20
|
base: mdc-theme-color.prop-value($mdc-color)
|
|
22
21
|
),
|
|
@@ -30,15 +29,15 @@
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
@mixin color($config-or-theme) {
|
|
33
|
-
$config:
|
|
34
|
-
$primary:
|
|
35
|
-
$accent:
|
|
36
|
-
$warn:
|
|
32
|
+
$config: mat.get-color-config($config-or-theme);
|
|
33
|
+
$primary: mat.get-color-from-palette(map.get($config, primary));
|
|
34
|
+
$accent: mat.get-color-from-palette(map.get($config, accent));
|
|
35
|
+
$warn: mat.get-color-from-palette(map.get($config, warn));
|
|
37
36
|
|
|
38
37
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
39
38
|
.mat-mdc-checkbox {
|
|
40
39
|
@include mdc-form-field.core-styles($query: mdc-helpers.$mat-theme-styles-query);
|
|
41
|
-
@include ripple-
|
|
40
|
+
@include mat.ripple-color((
|
|
42
41
|
foreground: (
|
|
43
42
|
base: mdc-theme-color.prop-value(on-surface)
|
|
44
43
|
),
|
|
@@ -70,8 +69,8 @@
|
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
@mixin typography($config-or-theme) {
|
|
73
|
-
$config:
|
|
74
|
-
|
|
72
|
+
$config: mat.private-typography-to-2018-config(
|
|
73
|
+
mat.get-typography-config($config-or-theme));
|
|
75
74
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
76
75
|
@include mdc-checkbox.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
77
76
|
@include mdc-form-field.core-styles($query: mdc-helpers.$mat-typography-styles-query);
|
|
@@ -79,7 +78,7 @@
|
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
@mixin density($config-or-theme) {
|
|
82
|
-
$density-scale:
|
|
81
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
83
82
|
|
|
84
83
|
@include mdc-helpers.disable-fallback-declarations {
|
|
85
84
|
.mat-mdc-checkbox .mdc-checkbox {
|
|
@@ -98,11 +97,11 @@
|
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
@mixin theme($theme-or-color-config) {
|
|
101
|
-
$theme:
|
|
102
|
-
@include
|
|
103
|
-
$color:
|
|
104
|
-
$density:
|
|
105
|
-
$typography:
|
|
100
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
101
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-checkbox') {
|
|
102
|
+
$color: mat.get-color-config($theme);
|
|
103
|
+
$density: mat.get-density-config($theme);
|
|
104
|
+
$typography: mat.get-typography-config($theme);
|
|
106
105
|
|
|
107
106
|
@if $color != null {
|
|
108
107
|
@include color($color);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@use '@material
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
2
|
@use '@material/chips/chip-theme' as mdc-chip-theme;
|
|
3
3
|
@use '@material/chips/chip-set' as mdc-chip-set;
|
|
4
4
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
5
5
|
@use '@material/theme/color-palette' as mdc-color-palette;
|
|
6
|
+
@use '@material/typography' as mdc-typography;
|
|
6
7
|
@use 'sass:color';
|
|
7
8
|
@use 'sass:map';
|
|
9
|
+
|
|
8
10
|
@use '../mdc-helpers/mdc-helpers';
|
|
9
|
-
@use '../../material/core/typography/typography';
|
|
10
|
-
@use '../../material/core/theming/theming';
|
|
11
11
|
|
|
12
12
|
// Customizes the appearance of a chip. Note that ideally we would be doing this using the
|
|
13
13
|
// `theme-styles` mixin, however it has the following problems:
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
@mixin _colored-chip($palette) {
|
|
35
|
-
$background:
|
|
36
|
-
$foreground:
|
|
35
|
+
$background: mat.get-color-from-palette($palette);
|
|
36
|
+
$foreground: mat.get-color-from-palette($palette, default-contrast);
|
|
37
37
|
|
|
38
38
|
&.mat-mdc-chip-selected,
|
|
39
39
|
&.mat-mdc-chip-highlighted {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
@mixin color($config-or-theme) {
|
|
45
|
-
$config:
|
|
45
|
+
$config: mat.get-color-config($config-or-theme);
|
|
46
46
|
$primary: map.get($config, primary);
|
|
47
47
|
$accent: map.get($config, accent);
|
|
48
48
|
$warn: map.get($config, warn);
|
|
@@ -76,27 +76,32 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
@mixin typography($config-or-theme) {
|
|
79
|
-
$config:
|
|
80
|
-
|
|
79
|
+
$config: mat.private-typography-to-2018-config(
|
|
80
|
+
mat.get-typography-config($config-or-theme));
|
|
81
81
|
@include mdc-chip-set.core-styles($query: mdc-helpers.$mat-typography-styles-query);
|
|
82
82
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
83
|
-
|
|
83
|
+
// Note that we don't go through MDC's typography mixin, because it assigns the styles to
|
|
84
|
+
// an inner element which makes it difficult for clients to customize. Instead we apply the
|
|
85
|
+
// same styles ourselves to the root.
|
|
86
|
+
.mat-mdc-standard-chip {
|
|
87
|
+
@include mdc-typography.typography(body2, $query: mdc-helpers.$mat-typography-styles-query);
|
|
88
|
+
}
|
|
84
89
|
}
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
@mixin density($config-or-theme) {
|
|
88
|
-
$density-scale:
|
|
93
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
89
94
|
.mat-mdc-chip {
|
|
90
95
|
@include mdc-chip-theme.density($density-scale, $query: mdc-helpers.$mat-base-styles-query);
|
|
91
96
|
}
|
|
92
97
|
}
|
|
93
98
|
|
|
94
99
|
@mixin theme($theme-or-color-config) {
|
|
95
|
-
$theme:
|
|
96
|
-
@include
|
|
97
|
-
$color:
|
|
98
|
-
$density:
|
|
99
|
-
$typography:
|
|
100
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
101
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-chips') {
|
|
102
|
+
$color: mat.get-color-config($theme);
|
|
103
|
+
$density: mat.get-density-config($theme);
|
|
104
|
+
$typography: mat.get-typography-config($theme);
|
|
100
105
|
|
|
101
106
|
@if $color != null {
|
|
102
107
|
@include color($color);
|
package/mdc-chips/chip-grid.d.ts
CHANGED
|
@@ -71,6 +71,10 @@ export declare class MatChipGrid extends _MatChipGridMixinBase implements AfterC
|
|
|
71
71
|
/** The chip input to add more chips */
|
|
72
72
|
protected _chipInput: MatChipTextControl;
|
|
73
73
|
protected _defaultRole: string;
|
|
74
|
+
/**
|
|
75
|
+
* List of element ids to propagate to the chipInput's aria-describedby attribute.
|
|
76
|
+
*/
|
|
77
|
+
private _ariaDescribedbyIds;
|
|
74
78
|
/**
|
|
75
79
|
* Function when touched. Set as part of ControlValueAccessor implementation.
|
|
76
80
|
* @docs-private
|
|
@@ -34,6 +34,8 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
34
34
|
private _defaultOptions;
|
|
35
35
|
/** Used to prevent focus moving to chips while user is holding backspace */
|
|
36
36
|
private _focusLastChipOnBackspace;
|
|
37
|
+
/** Value for ariaDescribedby property */
|
|
38
|
+
_ariaDescribedby?: string;
|
|
37
39
|
/** Whether the control is focused. */
|
|
38
40
|
focused: boolean;
|
|
39
41
|
_chipGrid: MatChipGrid;
|
|
@@ -85,6 +87,7 @@ export declare class MatChipInput implements MatChipTextControl, AfterContentIni
|
|
|
85
87
|
focus(): void;
|
|
86
88
|
/** Clears the input */
|
|
87
89
|
clear(): void;
|
|
90
|
+
setDescribedByIds(ids: string[]): void;
|
|
88
91
|
/** Checks whether a keycode is one of the configured separators. */
|
|
89
92
|
private _isSeparatorKey;
|
|
90
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatChipInput, [null, null, { optional: true; }]>;
|
package/mdc-chips/chip-set.d.ts
CHANGED
|
@@ -51,8 +51,6 @@ export declare class MatChipSet extends _MatChipSetMixinBase implements AfterCon
|
|
|
51
51
|
* These methods are called by the chip set foundation.
|
|
52
52
|
*/
|
|
53
53
|
protected _chipSetAdapter: MDCChipSetAdapter;
|
|
54
|
-
/** The aria-describedby attribute on the chip list for improved a11y. */
|
|
55
|
-
_ariaDescribedby: string;
|
|
56
54
|
/**
|
|
57
55
|
* Map from class to whether the class is enabled.
|
|
58
56
|
* Enabled classes are set on the MDC chip-set div.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
1
3
|
@use '../mdc-theming/all-theme';
|
|
2
|
-
@use '../../material/core/theming/theming';
|
|
3
4
|
|
|
4
5
|
@mixin all-mdc-component-colors($config-or-theme) {
|
|
5
6
|
// In case a theme object has been passed instead of a configuration for
|
|
6
7
|
// the color system, extract the color config from the theme object.
|
|
7
|
-
$config: if(
|
|
8
|
-
|
|
8
|
+
$config: if(mat.private-is-theme-object($config-or-theme),
|
|
9
|
+
mat.get-color-config($config-or-theme), $config-or-theme);
|
|
9
10
|
|
|
10
11
|
@if $config == null {
|
|
11
12
|
@error 'No color configuration specified.';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '
|
|
3
|
-
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
4
|
@use './option/option-theme';
|
|
5
5
|
@use './option/optgroup-theme';
|
|
6
6
|
@use './elevation';
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
@mixin color($config-or-theme) {
|
|
10
|
-
$config:
|
|
10
|
+
$config: mat.get-color-config($config-or-theme);
|
|
11
11
|
|
|
12
12
|
@include option-theme.color($config);
|
|
13
13
|
@include optgroup-theme.color($config);
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
$background: map.get($config, background);
|
|
33
33
|
$foreground: map.get($config, foreground);
|
|
34
34
|
|
|
35
|
-
background-color:
|
|
36
|
-
color:
|
|
35
|
+
background-color: mat.get-color-from-palette($background, background);
|
|
36
|
+
color: mat.get-color-from-palette($foreground, text);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
@mixin typography($config-or-theme) {
|
|
42
|
-
$config:
|
|
43
|
-
|
|
42
|
+
$config: mat.private-typography-to-2018-config(
|
|
43
|
+
mat.get-typography-config($config-or-theme));
|
|
44
44
|
|
|
45
45
|
@include option-theme.typography($config-or-theme);
|
|
46
46
|
@include optgroup-theme.typography($config-or-theme);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
@mixin density($config-or-theme) {
|
|
50
|
-
$density-scale:
|
|
50
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
51
51
|
|
|
52
52
|
@include option-theme.density($density-scale);
|
|
53
53
|
@include optgroup-theme.density($density-scale);
|
|
@@ -55,15 +55,15 @@
|
|
|
55
55
|
|
|
56
56
|
// Mixin that renders all of the core styles that depend on the theme.
|
|
57
57
|
@mixin theme($theme-or-color-config) {
|
|
58
|
-
$theme:
|
|
58
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
59
59
|
|
|
60
60
|
// Wrap the sub-theme includes in the duplicate theme styles mixin. This ensures that
|
|
61
61
|
// there won't be multiple warnings. e.g. if `mat-mdc-core-theme` reports a warning, then
|
|
62
62
|
// the imported themes (such as `mat-ripple-theme`) should not report again.
|
|
63
|
-
@include
|
|
64
|
-
$color:
|
|
65
|
-
$density:
|
|
66
|
-
$typography:
|
|
63
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-core') {
|
|
64
|
+
$color: mat.get-color-config($theme);
|
|
65
|
+
$density: mat.get-density-config($theme);
|
|
66
|
+
$typography: mat.get-typography-config($theme);
|
|
67
67
|
|
|
68
68
|
@if $color != null {
|
|
69
69
|
@include color($color);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@use '@material/theme/theme' as mdc-theme;
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
2
4
|
@use '../../mdc-helpers/mdc-helpers';
|
|
3
|
-
@use '../../../material/core/theming/theming';
|
|
4
|
-
@use '../../../material/core/typography/typography';
|
|
5
5
|
|
|
6
6
|
@mixin color($config-or-theme) {
|
|
7
|
-
$config:
|
|
7
|
+
$config: mat.get-color-config($config-or-theme);
|
|
8
8
|
|
|
9
9
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
10
10
|
.mat-mdc-optgroup-label {
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
@mixin typography($config-or-theme) {
|
|
19
|
-
$config:
|
|
20
|
-
|
|
19
|
+
$config: mat.private-typography-to-2018-config(
|
|
20
|
+
mat.get-typography-config($config-or-theme));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@mixin density($config-or-theme) {
|
|
24
|
-
$density-scale:
|
|
24
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@mixin theme($theme-or-color-config) {
|
|
28
|
-
$theme:
|
|
29
|
-
@include
|
|
30
|
-
$color:
|
|
31
|
-
$density:
|
|
32
|
-
$typography:
|
|
28
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
29
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-optgroup') {
|
|
30
|
+
$color: mat.get-color-config($theme);
|
|
31
|
+
$density: mat.get-density-config($theme);
|
|
32
|
+
$typography: mat.get-typography-config($theme);
|
|
33
33
|
|
|
34
34
|
@if $color != null {
|
|
35
35
|
@include color($color);
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
@use '@material/list/evolution-mixins' as mdc-list-mixins;
|
|
4
4
|
@use '@material/typography' as mdc-typography;
|
|
5
5
|
@use '@material/ripple' as mdc-ripple;
|
|
6
|
+
@use '@angular/material' as mat;
|
|
7
|
+
|
|
6
8
|
@use '../../mdc-helpers/mdc-helpers';
|
|
7
|
-
@use '../../../material/core/theming/theming';
|
|
8
|
-
@use '../../../material/core/typography/typography';
|
|
9
9
|
|
|
10
10
|
@mixin color($config-or-theme) {
|
|
11
|
-
$config:
|
|
11
|
+
$config: mat.get-color-config($config-or-theme);
|
|
12
12
|
|
|
13
13
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
14
14
|
.mat-mdc-option {
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
@mixin typography($config-or-theme) {
|
|
54
|
-
$config:
|
|
55
|
-
|
|
54
|
+
$config: mat.private-typography-to-2018-config(
|
|
55
|
+
mat.get-typography-config($config-or-theme));
|
|
56
56
|
|
|
57
57
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
58
58
|
// MDC uses the `subtitle1` level for list items, but
|
|
@@ -64,15 +64,15 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@mixin density($config-or-theme) {
|
|
67
|
-
$density-scale:
|
|
67
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
68
68
|
}
|
|
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-option') {
|
|
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,11 +1,12 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
1
3
|
@use '../mdc-theming/all-theme';
|
|
2
|
-
@use '../../material/core/theming/theming';
|
|
3
4
|
|
|
4
5
|
@mixin all-mdc-component-densities($config-or-theme) {
|
|
5
6
|
// In case a theme object has been passed instead of a configuration for
|
|
6
7
|
// the density system, extract the density config from the theme object.
|
|
7
|
-
$config: if(
|
|
8
|
-
|
|
8
|
+
$config: if(mat.private-is-theme-object($config-or-theme),
|
|
9
|
+
mat.get-density-config($config-or-theme), $config-or-theme);
|
|
9
10
|
|
|
10
11
|
@if $config == null {
|
|
11
12
|
@error 'No density configuration specified.';
|
|
@@ -1,33 +1,69 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
1
3
|
@use '@material/dialog' as mdc-dialog;
|
|
4
|
+
@use '@material/dialog/dialog-theme' as mdc-dialog-theme;
|
|
5
|
+
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
6
|
+
@use '@material/typography' as mdc-typography;
|
|
7
|
+
|
|
2
8
|
@use '../mdc-helpers/mdc-helpers';
|
|
3
|
-
@use '../../material/core/typography/typography';
|
|
4
|
-
@use '../../material/core/theming/theming';
|
|
5
9
|
|
|
6
10
|
@mixin color($config-or-theme) {
|
|
7
|
-
$config:
|
|
11
|
+
$config: mat.get-color-config($config-or-theme);
|
|
12
|
+
|
|
8
13
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
9
|
-
|
|
14
|
+
.mat-mdc-dialog-container {
|
|
15
|
+
$surface: mdc-theme-color.$surface;
|
|
16
|
+
$on-surface: mdc-theme-color.$on-surface;
|
|
17
|
+
$text-emphasis-high: mdc-theme-color.text-emphasis(high);
|
|
18
|
+
$text-emphasis-medium: mdc-theme-color.text-emphasis(medium);
|
|
19
|
+
|
|
20
|
+
@include mdc-dialog-theme.theme((
|
|
21
|
+
container-color: $surface,
|
|
22
|
+
container-elevation: 24,
|
|
23
|
+
container-shadow-color: $on-surface,
|
|
24
|
+
with-divider-divider-color: rgba($on-surface, mdc-dialog.$scroll-divider-opacity),
|
|
25
|
+
subhead-color: rgba($on-surface, $text-emphasis-high),
|
|
26
|
+
supporting-text-color: rgba($on-surface, $text-emphasis-medium),
|
|
27
|
+
));
|
|
28
|
+
}
|
|
10
29
|
}
|
|
11
30
|
}
|
|
12
31
|
|
|
13
32
|
@mixin typography($config-or-theme) {
|
|
14
|
-
$config:
|
|
15
|
-
|
|
33
|
+
$config: mat.private-typography-to-2018-config(
|
|
34
|
+
mat.get-typography-config($config-or-theme));
|
|
16
35
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
17
|
-
|
|
36
|
+
.mat-mdc-dialog-container {
|
|
37
|
+
$styles: mdc-typography.$styles;
|
|
38
|
+
$headline6: map.get($styles, headline6);
|
|
39
|
+
|
|
40
|
+
@include mdc-dialog-theme.theme((
|
|
41
|
+
subhead-font: map.get($headline6, font-family),
|
|
42
|
+
subhead-line-height: map.get($styles, headline6, line-height),
|
|
43
|
+
subhead-size: map.get($styles, headline6, font-size),
|
|
44
|
+
subhead-weight: map.get($styles, headline6, font-weight),
|
|
45
|
+
subhead-tracking: map.get($styles, headline6, letter-spacing),
|
|
46
|
+
|
|
47
|
+
supporting-text-font: map.get($styles, body1, font-family),
|
|
48
|
+
supporting-text-line-height: map.get($styles, body1, line-height),
|
|
49
|
+
supporting-text-size: map.get($styles, body1, font-size),
|
|
50
|
+
supporting-text-weight: map.get($styles, body1, font-weight),
|
|
51
|
+
supporting-text-tracking: map.get($styles, body1, letter-spacing),
|
|
52
|
+
));
|
|
53
|
+
}
|
|
18
54
|
}
|
|
19
55
|
}
|
|
20
56
|
|
|
21
57
|
@mixin density($config-or-theme) {
|
|
22
|
-
$density-scale:
|
|
58
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
23
59
|
}
|
|
24
60
|
|
|
25
61
|
@mixin theme($theme-or-color-config) {
|
|
26
|
-
$theme:
|
|
27
|
-
@include
|
|
28
|
-
$color:
|
|
29
|
-
$density:
|
|
30
|
-
$typography:
|
|
62
|
+
$theme: mat.private-legacy-get-theme($theme-or-color-config);
|
|
63
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mat-mdc-dialog') {
|
|
64
|
+
$color: mat.get-color-config($theme);
|
|
65
|
+
$density: mat.get-density-config($theme);
|
|
66
|
+
$typography: mat.get-typography-config($theme);
|
|
31
67
|
|
|
32
68
|
@if $color != null {
|
|
33
69
|
@include color($color);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use 'sass:math';
|
|
3
|
+
@use '@angular/material' as mat;
|
|
3
4
|
@use '@material/density' as mdc-density;
|
|
4
5
|
@use '@material/textfield' as mdc-textfield;
|
|
5
|
-
|
|
6
|
-
@use 'form-field-sizing';
|
|
6
|
+
|
|
7
|
+
@use './form-field-sizing';
|
|
7
8
|
|
|
8
9
|
// Mixin that sets the vertical spacing for the infix container of filled form fields.
|
|
9
10
|
// We need to apply spacing to the infix container because we removed the input padding
|
|
@@ -39,7 +40,7 @@
|
|
|
39
40
|
// specification. In order to support density, we need to adjust the vertical spacing to be
|
|
40
41
|
// based on the density scale.
|
|
41
42
|
@mixin private-form-field-density($config-or-theme) {
|
|
42
|
-
$density-scale:
|
|
43
|
+
$density-scale: mat.get-density-config($config-or-theme);
|
|
43
44
|
// Height of the form field that is based on the current density scale.
|
|
44
45
|
$height: mdc-density.prop-value(
|
|
45
46
|
$density-config: mdc-textfield.$density-config,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '@material/ripple/functions' as mdc-ripple-functions;
|
|
2
3
|
@use '@material/textfield' as mdc-textfield;
|
|
3
|
-
@use '../../material/core/style/layout-common';
|
|
4
4
|
|
|
5
5
|
// MDC text-field uses `@material/ripple` in order to show a focus and hover effect for
|
|
6
6
|
// text-fields. This is unnecessary because the ripples bring in a lot of unnecessary
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// uses the exact same logic to compute the colors as in the default MDC text-field ripples.
|
|
12
12
|
@mixin private-form-field-focus-overlay() {
|
|
13
13
|
.mat-mdc-form-field-focus-overlay {
|
|
14
|
-
@include
|
|
14
|
+
@include mat.private-fill;
|
|
15
15
|
opacity: 0;
|
|
16
16
|
}
|
|
17
17
|
}
|