@angular/material-experimental 13.2.2 → 13.2.5
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/esm2020/mdc-autocomplete/autocomplete-trigger.mjs +4 -3
- package/esm2020/mdc-card/card.mjs +2 -2
- package/esm2020/mdc-checkbox/checkbox.mjs +4 -2
- package/esm2020/mdc-chips/testing/public-api.mjs +2 -1
- package/esm2020/mdc-dialog/dialog-container.mjs +4 -4
- package/esm2020/mdc-form-field/directives/floating-label.mjs +3 -8
- package/esm2020/mdc-form-field/form-field.mjs +3 -3
- package/esm2020/mdc-list/action-list.mjs +3 -3
- package/esm2020/mdc-menu/menu.mjs +8 -8
- package/esm2020/mdc-paginator/paginator.mjs +2 -2
- package/esm2020/mdc-progress-bar/progress-bar.mjs +2 -2
- package/esm2020/mdc-select/select.mjs +3 -3
- package/esm2020/mdc-slider/slider.mjs +3 -3
- package/esm2020/mdc-snack-bar/snack-bar-container.mjs +2 -2
- package/esm2020/mdc-table/table.mjs +2 -2
- package/esm2020/mdc-tabs/tab-body.mjs +3 -3
- package/esm2020/mdc-tabs/tab-header.mjs +3 -3
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +3 -3
- package/esm2020/mdc-tooltip/tooltip.mjs +4 -3
- package/esm2020/version.mjs +1 -1
- package/fesm2015/material-experimental.mjs +1 -1
- package/fesm2015/material-experimental.mjs.map +1 -1
- package/fesm2015/mdc-autocomplete.mjs +3 -2
- package/fesm2015/mdc-autocomplete.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +2 -2
- package/fesm2015/mdc-checkbox.mjs +3 -1
- package/fesm2015/mdc-checkbox.mjs.map +1 -1
- package/fesm2015/mdc-chips/testing.mjs +2 -2
- package/fesm2015/mdc-chips/testing.mjs.map +1 -1
- package/fesm2015/mdc-dialog.mjs +3 -3
- package/fesm2015/mdc-dialog.mjs.map +1 -1
- package/fesm2015/mdc-form-field.mjs +4 -9
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-list.mjs +2 -2
- package/fesm2015/mdc-list.mjs.map +1 -1
- package/fesm2015/mdc-menu.mjs +6 -6
- package/fesm2015/mdc-menu.mjs.map +1 -1
- package/fesm2015/mdc-paginator.mjs +2 -2
- package/fesm2015/mdc-progress-bar.mjs +2 -2
- package/fesm2015/mdc-select.mjs +2 -2
- package/fesm2015/mdc-select.mjs.map +1 -1
- package/fesm2015/mdc-slider.mjs +2 -2
- package/fesm2015/mdc-slider.mjs.map +1 -1
- package/fesm2015/mdc-snack-bar.mjs +2 -2
- package/fesm2015/mdc-table.mjs +2 -2
- package/fesm2015/mdc-tabs.mjs +6 -6
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/mdc-tooltip.mjs +3 -2
- package/fesm2015/mdc-tooltip.mjs.map +1 -1
- package/fesm2020/material-experimental.mjs +1 -1
- package/fesm2020/material-experimental.mjs.map +1 -1
- package/fesm2020/mdc-autocomplete.mjs +3 -2
- package/fesm2020/mdc-autocomplete.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +2 -2
- package/fesm2020/mdc-checkbox.mjs +3 -1
- package/fesm2020/mdc-checkbox.mjs.map +1 -1
- package/fesm2020/mdc-chips/testing.mjs +1 -1
- package/fesm2020/mdc-chips/testing.mjs.map +1 -1
- package/fesm2020/mdc-dialog.mjs +3 -3
- package/fesm2020/mdc-dialog.mjs.map +1 -1
- package/fesm2020/mdc-form-field.mjs +4 -9
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-list.mjs +2 -2
- package/fesm2020/mdc-list.mjs.map +1 -1
- package/fesm2020/mdc-menu.mjs +6 -6
- package/fesm2020/mdc-menu.mjs.map +1 -1
- package/fesm2020/mdc-paginator.mjs +2 -2
- package/fesm2020/mdc-progress-bar.mjs +2 -2
- package/fesm2020/mdc-select.mjs +2 -2
- package/fesm2020/mdc-select.mjs.map +1 -1
- package/fesm2020/mdc-slider.mjs +2 -2
- package/fesm2020/mdc-slider.mjs.map +1 -1
- package/fesm2020/mdc-snack-bar.mjs +2 -2
- package/fesm2020/mdc-table.mjs +2 -2
- package/fesm2020/mdc-tabs.mjs +6 -6
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/mdc-tooltip.mjs +3 -2
- package/fesm2020/mdc-tooltip.mjs.map +1 -1
- package/mdc-button/_button-theme.scss +5 -2
- package/mdc-button/_icon-button-theme.scss +2 -1
- package/mdc-chips/testing/public-api.d.ts +1 -0
- package/mdc-form-field/_form-field-density.scss +2 -2
- package/mdc-form-field/_form-field-high-contrast.scss +14 -5
- package/mdc-form-field/_form-field-theme.scss +1 -1
- package/mdc-form-field/_mdc-text-field-structure-overrides.scss +2 -2
- package/mdc-form-field/directives/floating-label.d.ts +1 -3
- package/mdc-list/_list-theme.scss +9 -0
- package/mdc-menu/menu.d.ts +1 -1
- package/mdc-select/_select-theme.scss +1 -1
- package/mdc-table/_table-theme.scss +2 -9
- package/mdc-tabs/_tabs-common.scss +9 -0
- 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/package.json +3 -11
- package/esm2020/mdc-sidenav/index.mjs +0 -9
- package/esm2020/mdc-sidenav/mdc-sidenav_public_index.mjs +0 -5
- package/esm2020/mdc-sidenav/module.mjs +0 -23
- package/esm2020/mdc-sidenav/public-api.mjs +0 -9
- package/fesm2015/mdc-sidenav.mjs +0 -46
- package/fesm2015/mdc-sidenav.mjs.map +0 -1
- package/fesm2020/mdc-sidenav.mjs +0 -46
- package/fesm2020/mdc-sidenav.mjs.map +0 -1
- package/mdc-sidenav/_sidenav-theme.import.scss +0 -5
- package/mdc-sidenav/_sidenav-theme.scss +0 -28
- package/mdc-sidenav/index.d.ts +0 -8
- package/mdc-sidenav/mdc-sidenav_public_index.d.ts +0 -4
- package/mdc-sidenav/module.d.ts +0 -7
- package/mdc-sidenav/package.json +0 -9
- package/mdc-sidenav/public-api.d.ts +0 -8
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
// on whether a textarea is used. This is not possible in our implementation of the
|
|
78
78
|
// form-field because we do not know what type of form-field control is set up. Hence
|
|
79
79
|
// we always use a fixed position for the label. This does not have any implications.
|
|
80
|
-
.mat-mdc-form-field .mat-mdc-text-field-wrapper .mdc-floating-label {
|
|
80
|
+
.mat-mdc-form-field .mat-mdc-text-field-wrapper .mat-mdc-floating-label {
|
|
81
81
|
top: math.div($height, 2);
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
// Update the spacing for filled form fields to account for the hidden floating label.
|
|
108
108
|
@include _infix-vertical-spacing-filled(
|
|
109
109
|
$no-label-padding, $no-label-padding);
|
|
110
|
-
.mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mdc-floating-label {
|
|
110
|
+
.mat-mdc-text-field-wrapper:not(.mdc-text-field--outlined) .mat-mdc-floating-label {
|
|
111
111
|
display: none;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -4,11 +4,20 @@
|
|
|
4
4
|
$focus-indicator-width: 3px;
|
|
5
5
|
$focus-indicator-style: dashed;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
.mat-form-field-appearance-fill {
|
|
8
|
+
// The outline of the `fill` appearance is achieved through a background color
|
|
9
|
+
// which won't be visible in high contrast mode. Add an outline to replace it.
|
|
10
|
+
.mat-mdc-text-field-wrapper {
|
|
11
|
+
@include a11y.high-contrast(active, off) {
|
|
12
|
+
outline: solid 1px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Use GreyText for the disabled outline color which will account for the user's configuration.
|
|
17
|
+
&.mat-form-field-disabled .mat-mdc-text-field-wrapper {
|
|
18
|
+
@include a11y.high-contrast(active, off) {
|
|
19
|
+
outline-color: GrayText;
|
|
20
|
+
}
|
|
12
21
|
}
|
|
13
22
|
}
|
|
14
23
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
// shows `body1` for text fields though, so we manually override the typography.
|
|
77
77
|
// Note: Form controls inherit the typography from the parent form field.
|
|
78
78
|
.mat-mdc-form-field,
|
|
79
|
-
.mat-mdc-
|
|
79
|
+
.mat-mdc-floating-label {
|
|
80
80
|
@include mdc-typography.typography(body1, $query: mdc-helpers.$mat-typography-styles-query);
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// In order to ensure proper alignment of the floating label, we reset its line-height.
|
|
21
21
|
// The line-height is not important as the element is absolutely positioned and only has one line
|
|
22
22
|
// of text.
|
|
23
|
-
.mat-mdc-form-field .mdc-floating-label.mdc-floating-label {
|
|
23
|
+
.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label {
|
|
24
24
|
line-height: normal;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
// the notched outline container, and already applies a specific horizontal spacing which
|
|
96
96
|
// we do not want to overwrite. *Note*: We need to have increased specificity for this
|
|
97
97
|
// override because the `right` property will be set with higher specificity in RTL mode.
|
|
98
|
-
.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mdc-floating-label {
|
|
98
|
+
.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label {
|
|
99
99
|
left: auto;
|
|
100
100
|
right: auto;
|
|
101
101
|
}
|
|
@@ -24,13 +24,11 @@ export declare class MatFormFieldFloatingLabel {
|
|
|
24
24
|
private _elementRef;
|
|
25
25
|
/** Whether the label is floating. */
|
|
26
26
|
floating: boolean;
|
|
27
|
-
/** Whether the label is required. */
|
|
28
|
-
required: boolean;
|
|
29
27
|
constructor(_elementRef: ElementRef);
|
|
30
28
|
/** Gets the width of the label. Used for the outline notch. */
|
|
31
29
|
getWidth(): number;
|
|
32
30
|
/** Gets the HTML element for the floating label. */
|
|
33
31
|
get element(): HTMLElement;
|
|
34
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatFormFieldFloatingLabel, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldFloatingLabel, "label[matFormFieldFloatingLabel]", never, { "floating": "floating";
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatFormFieldFloatingLabel, "label[matFormFieldFloatingLabel]", never, { "floating": "floating"; }, {}, never>;
|
|
36
34
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@use './list-option-theme';
|
|
5
5
|
@use '../mdc-helpers/mdc-helpers';
|
|
6
6
|
@use '../../material/core/typography/typography';
|
|
7
|
+
@use '../../material/core/typography/typography-utils';
|
|
7
8
|
@use '../../material/core/theming/theming';
|
|
8
9
|
|
|
9
10
|
|
|
@@ -55,6 +56,14 @@
|
|
|
55
56
|
@include mdc-list.without-ripple($query: mdc-helpers.$mat-typography-styles-query);
|
|
56
57
|
@include list-option-theme.private-list-option-typography-styles();
|
|
57
58
|
}
|
|
59
|
+
|
|
60
|
+
// According to the public spec this should be subtitle-1.
|
|
61
|
+
// However, body-1 and subtitle-1 are nearly identical in the public spec,
|
|
62
|
+
// and the Google-specific spec states that it should be body-1.
|
|
63
|
+
// For consistency, we use body-1 for both public and Google internal.
|
|
64
|
+
.mat-mdc-list-item .mdc-list-item__primary-text {
|
|
65
|
+
@include typography-utils.typography-level($config, body-1);
|
|
66
|
+
}
|
|
58
67
|
}
|
|
59
68
|
|
|
60
69
|
@mixin theme($theme-or-color-config) {
|
package/mdc-menu/menu.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER: Provider;
|
|
|
16
16
|
export declare class MatMenu extends _MatMenuBase {
|
|
17
17
|
protected _elevationPrefix: string;
|
|
18
18
|
protected _baseElevation: number;
|
|
19
|
-
constructor(
|
|
19
|
+
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone, defaultOptions: MatMenuDefaultOptions);
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatMenu, never>;
|
|
21
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatMenu, "mat-menu", ["matMenu"], {}, {}, never, ["*"]>;
|
|
22
22
|
}
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
$orig-row-hover-fill-color: mdc-data-table-theme.$row-hover-fill-color;
|
|
16
16
|
$orig-header-row-text-color: mdc-data-table-theme.$header-row-text-color;
|
|
17
17
|
$orig-row-text-color: mdc-data-table-theme.$row-text-color;
|
|
18
|
-
$orig-sort-icon-color: mdc-data-table-theme.$sort-icon-color;
|
|
19
|
-
$orig-sort-icon-active-color: mdc-data-table-theme.$sort-icon-active-color;
|
|
20
18
|
$orig-stroke-color: mdc-data-table-theme.$stroke-color;
|
|
21
19
|
|
|
22
20
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
@@ -25,12 +23,9 @@
|
|
|
25
23
|
mdc-data-table-theme.$row-hover-fill-color: rgba(mdc-theme-color.prop-value(on-surface), 0.04);
|
|
26
24
|
mdc-data-table-theme.$header-row-text-color: rgba(mdc-theme-color.prop-value(on-surface), 0.87);
|
|
27
25
|
mdc-data-table-theme.$row-text-color: rgba(mdc-theme-color.prop-value(on-surface), 0.87);
|
|
28
|
-
mdc-data-table-theme.$sort-icon-color: rgba(mdc-theme-color.prop-value(on-surface), 0.6);
|
|
29
|
-
mdc-data-table-theme.$sort-icon-active-color:
|
|
30
|
-
rgba(mdc-theme-color.prop-value(on-surface), 0.87);
|
|
31
26
|
mdc-data-table-theme.$stroke-color: rgba(mdc-theme-color.prop-value(on-surface), 0.12);
|
|
32
27
|
|
|
33
|
-
@include mdc-data-table.
|
|
28
|
+
@include mdc-data-table.table-styles($query: mdc-helpers.$mat-theme-styles-query);
|
|
34
29
|
}
|
|
35
30
|
|
|
36
31
|
// Restore original values of MDC global variables.
|
|
@@ -39,8 +34,6 @@
|
|
|
39
34
|
mdc-data-table-theme.$row-hover-fill-color: $orig-row-hover-fill-color;
|
|
40
35
|
mdc-data-table-theme.$header-row-text-color: $orig-header-row-text-color;
|
|
41
36
|
mdc-data-table-theme.$row-text-color: $orig-row-text-color;
|
|
42
|
-
mdc-data-table-theme.$sort-icon-color: $orig-sort-icon-color;
|
|
43
|
-
mdc-data-table-theme.$sort-icon-active-color: $orig-sort-icon-active-color;
|
|
44
37
|
mdc-data-table-theme.$stroke-color: $orig-stroke-color;
|
|
45
38
|
|
|
46
39
|
.mat-mdc-table {
|
|
@@ -53,7 +46,7 @@
|
|
|
53
46
|
$config: typography.private-typography-to-2018-config(
|
|
54
47
|
theming.get-typography-config($config-or-theme));
|
|
55
48
|
@include mdc-helpers.mat-using-mdc-typography($config) {
|
|
56
|
-
@include mdc-data-table.
|
|
49
|
+
@include mdc-data-table.table-styles($query: mdc-helpers.$mat-typography-styles-query);
|
|
57
50
|
}
|
|
58
51
|
}
|
|
59
52
|
|
|
@@ -104,6 +104,15 @@ $mat-tab-animation-duration: 500ms !default;
|
|
|
104
104
|
z-index: 2;
|
|
105
105
|
-webkit-tap-highlight-color: transparent;
|
|
106
106
|
touch-action: none;
|
|
107
|
+
box-sizing: content-box;
|
|
108
|
+
background: none;
|
|
109
|
+
border: none;
|
|
110
|
+
outline: 0;
|
|
111
|
+
padding: 0;
|
|
112
|
+
|
|
113
|
+
&::-moz-focus-inner {
|
|
114
|
+
border: 0;
|
|
115
|
+
}
|
|
107
116
|
|
|
108
117
|
.mat-ripple-element {
|
|
109
118
|
opacity: map.get(mdc-ripple.$dark-ink-opacities, press);
|