@angular/material-experimental 14.1.0-next.2 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/mdc-button/button-base.mjs +1 -3
- package/esm2020/mdc-button/button.mjs +5 -5
- package/esm2020/mdc-button/fab.mjs +9 -9
- package/esm2020/mdc-button/icon-button.mjs +5 -7
- package/esm2020/mdc-card/card.mjs +2 -2
- package/esm2020/mdc-checkbox/checkbox.mjs +2 -2
- package/esm2020/mdc-chips/chip-row.mjs +3 -3
- package/esm2020/mdc-core/option/option.mjs +2 -2
- package/esm2020/mdc-dialog/dialog-content-directives.mjs +1 -1
- package/esm2020/mdc-form-field/directives/notched-outline.mjs +10 -7
- package/esm2020/mdc-form-field/form-field.mjs +6 -11
- package/esm2020/mdc-list/list-option.mjs +2 -2
- package/esm2020/mdc-paginator/paginator.mjs +4 -4
- package/esm2020/mdc-slider/slider.mjs +17 -13
- package/esm2020/mdc-tabs/tab-header.mjs +2 -2
- package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2020/selection/selection-module.mjs +2 -2
- package/esm2020/version.mjs +1 -1
- package/fesm2015/material-experimental.mjs +1 -1
- package/fesm2015/material-experimental.mjs.map +1 -1
- package/fesm2015/mdc-button.mjs +16 -20
- package/fesm2015/mdc-button.mjs.map +1 -1
- package/fesm2015/mdc-card.mjs +1 -1
- package/fesm2015/mdc-card.mjs.map +1 -1
- package/fesm2015/mdc-checkbox.mjs +2 -2
- package/fesm2015/mdc-checkbox.mjs.map +1 -1
- package/fesm2015/mdc-chips.mjs +2 -2
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2015/mdc-core.mjs +2 -2
- package/fesm2015/mdc-core.mjs.map +1 -1
- package/fesm2015/mdc-dialog.mjs.map +1 -1
- package/fesm2015/mdc-form-field.mjs +14 -16
- package/fesm2015/mdc-form-field.mjs.map +1 -1
- package/fesm2015/mdc-list.mjs +1 -1
- package/fesm2015/mdc-list.mjs.map +1 -1
- package/fesm2015/mdc-paginator.mjs +3 -3
- package/fesm2015/mdc-paginator.mjs.map +1 -1
- package/fesm2015/mdc-slider.mjs +17 -12
- package/fesm2015/mdc-slider.mjs.map +1 -1
- package/fesm2015/mdc-tabs.mjs +4 -4
- package/fesm2015/mdc-tabs.mjs.map +1 -1
- package/fesm2015/selection.mjs.map +1 -1
- package/fesm2020/material-experimental.mjs +1 -1
- package/fesm2020/material-experimental.mjs.map +1 -1
- package/fesm2020/mdc-button.mjs +16 -20
- package/fesm2020/mdc-button.mjs.map +1 -1
- package/fesm2020/mdc-card.mjs +1 -1
- package/fesm2020/mdc-card.mjs.map +1 -1
- package/fesm2020/mdc-checkbox.mjs +2 -2
- package/fesm2020/mdc-checkbox.mjs.map +1 -1
- package/fesm2020/mdc-chips.mjs +2 -2
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/fesm2020/mdc-core.mjs +2 -2
- package/fesm2020/mdc-core.mjs.map +1 -1
- package/fesm2020/mdc-dialog.mjs.map +1 -1
- package/fesm2020/mdc-form-field.mjs +14 -16
- package/fesm2020/mdc-form-field.mjs.map +1 -1
- package/fesm2020/mdc-list.mjs +1 -1
- package/fesm2020/mdc-list.mjs.map +1 -1
- package/fesm2020/mdc-paginator.mjs +3 -3
- package/fesm2020/mdc-paginator.mjs.map +1 -1
- package/fesm2020/mdc-slider.mjs +16 -12
- package/fesm2020/mdc-slider.mjs.map +1 -1
- package/fesm2020/mdc-tabs.mjs +4 -4
- package/fesm2020/mdc-tabs.mjs.map +1 -1
- package/fesm2020/selection.mjs.map +1 -1
- package/mdc-button/_button-theme-private.scss +2 -1
- package/mdc-button/index.d.ts +1 -5
- package/mdc-checkbox/_checkbox-theme.scss +7 -1
- package/mdc-core/mdc-helpers/_mdc-helpers.scss +8 -0
- package/mdc-core/theming/prebuilt/deeppurple-amber.css +1 -1
- package/mdc-core/theming/prebuilt/indigo-pink.css +1 -1
- package/mdc-core/theming/prebuilt/pink-bluegrey.css +1 -1
- package/mdc-core/theming/prebuilt/purple-green.css +1 -1
- package/mdc-dialog/index.d.ts +1 -1
- package/mdc-form-field/_form-field-density.scss +2 -1
- package/mdc-form-field/_form-field-theme.scss +25 -1
- package/mdc-form-field/index.d.ts +5 -5
- package/mdc-list/index.d.ts +1 -1
- package/mdc-paginator/_paginator-theme.scss +15 -1
- package/mdc-paginator/index.d.ts +1 -1
- package/mdc-radio/_radio-theme.scss +7 -1
- package/mdc-slide-toggle/_slide-toggle-theme.scss +6 -0
- package/mdc-slider/index.d.ts +4 -0
- package/mdc-tabs/_tabs-common.scss +5 -2
- package/package.json +3 -3
package/mdc-button/index.d.ts
CHANGED
|
@@ -99,8 +99,6 @@ declare class MatButtonBase extends _MatButtonMixin implements CanDisable, CanCo
|
|
|
99
99
|
_animationMode?: string | undefined;
|
|
100
100
|
/** Whether this button is a FAB. Used to apply the correct class on the ripple. */
|
|
101
101
|
_isFab: boolean;
|
|
102
|
-
/** Whether this button is an icon button. Used to apply the correct class on the ripple. */
|
|
103
|
-
_isIconButton: boolean;
|
|
104
102
|
/** Reference to the MatRipple instance of the button. */
|
|
105
103
|
ripple: MatRipple;
|
|
106
104
|
constructor(elementRef: ElementRef, _platform: Platform, _ngZone: NgZone, _animationMode?: string | undefined);
|
|
@@ -173,7 +171,6 @@ export declare interface MatFabDefaultOptions {
|
|
|
173
171
|
* See https://material.io/develop/web/components/buttons/icon-buttons/
|
|
174
172
|
*/
|
|
175
173
|
export declare class MatIconAnchor extends MatAnchorBase {
|
|
176
|
-
_isIconButton: boolean;
|
|
177
174
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
178
175
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, [null, null, null, { optional: true; }]>;
|
|
179
176
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
|
|
@@ -185,10 +182,9 @@ export declare class MatIconAnchor extends MatAnchorBase {
|
|
|
185
182
|
* See https://material.io/develop/web/components/buttons/icon-buttons/
|
|
186
183
|
*/
|
|
187
184
|
export declare class MatIconButton extends MatButtonBase {
|
|
188
|
-
_isIconButton: boolean;
|
|
189
185
|
constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
|
|
190
186
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, [null, null, null, { optional: true; }]>;
|
|
191
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, ["
|
|
187
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, ["*"], false>;
|
|
192
188
|
}
|
|
193
189
|
|
|
194
190
|
/**
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
$primary: mat.get-color-from-palette(map.get($config, primary));
|
|
34
34
|
$accent: mat.get-color-from-palette(map.get($config, accent));
|
|
35
35
|
$warn: mat.get-color-from-palette(map.get($config, warn));
|
|
36
|
+
$foreground: map.get($config, foreground);
|
|
36
37
|
|
|
37
38
|
@include mdc-helpers.mat-using-mdc-theme($config) {
|
|
38
39
|
.mat-mdc-checkbox {
|
|
@@ -65,6 +66,11 @@
|
|
|
65
66
|
@include _selected-ripple-colors($warn, error);
|
|
66
67
|
}
|
|
67
68
|
}
|
|
69
|
+
|
|
70
|
+
.mat-mdc-checkbox-disabled label {
|
|
71
|
+
// MDC should set the disabled color on the label, but doesn't, so we do it here instead.
|
|
72
|
+
color: mat.get-color-from-palette($foreground, disabled-text);
|
|
73
|
+
}
|
|
68
74
|
}
|
|
69
75
|
}
|
|
70
76
|
|
|
@@ -88,7 +94,7 @@
|
|
|
88
94
|
);
|
|
89
95
|
}
|
|
90
96
|
|
|
91
|
-
@
|
|
97
|
+
@include mdc-helpers.if-touch-targets-unsupported($density-scale) {
|
|
92
98
|
.mat-mdc-checkbox-touch-target {
|
|
93
99
|
display: none;
|
|
94
100
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
8
8
|
@use '@material/theme/css' as mdc-theme-css;
|
|
9
9
|
@use 'sass:map';
|
|
10
|
+
@use 'sass:meta';
|
|
10
11
|
|
|
11
12
|
// A set of standard queries to use with MDC's queryable mixins.
|
|
12
13
|
$mat-base-styles-query: mdc-feature-targeting.without(mdc-feature-targeting.any(color, typography));
|
|
@@ -211,3 +212,10 @@ $mat-typography-mdc-level-mappings: (
|
|
|
211
212
|
@content;
|
|
212
213
|
mdc-theme-css.$enable-fallback-declarations: $previous-value;
|
|
213
214
|
}
|
|
215
|
+
|
|
216
|
+
// Excludes the passed-in CSS content if the layout is too dense to supports touch targets.
|
|
217
|
+
@mixin if-touch-targets-unsupported($scale) {
|
|
218
|
+
@if ($scale == 'minimum' or (meta.type-of($scale) == 'number' and $scale < -1)) {
|
|
219
|
+
@content;
|
|
220
|
+
}
|
|
221
|
+
}
|