@angular/material-experimental 14.0.3 → 14.0.4
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-chips/chip-row.mjs +3 -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-chips.mjs +2 -2
- package/fesm2015/mdc-chips.mjs.map +1 -1
- package/fesm2020/material-experimental.mjs +1 -1
- package/fesm2020/material-experimental.mjs.map +1 -1
- package/fesm2020/mdc-chips.mjs +2 -2
- package/fesm2020/mdc-chips.mjs.map +1 -1
- package/mdc-button/_button-theme-private.scss +2 -1
- package/mdc-checkbox/_checkbox-theme.scss +1 -1
- package/mdc-core/mdc-helpers/_mdc-helpers.scss +8 -0
- package/mdc-radio/_radio-theme.scss +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
3
|
@use '@material/theme/theme-color' as mdc-theme-color;
|
|
4
|
+
@use '../mdc-core/mdc-helpers/mdc-helpers';
|
|
4
5
|
|
|
5
6
|
@mixin _ripple-color($color) {
|
|
6
7
|
--mat-mdc-button-persistent-ripple-color: #{$color};
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
|
|
54
55
|
// Hides the touch target on lower densities.
|
|
55
56
|
@mixin touch-target-density($scale) {
|
|
56
|
-
@if
|
|
57
|
+
@include mdc-helpers.if-touch-targets-unsupported($scale) {
|
|
57
58
|
.mat-mdc-button-touch-target {
|
|
58
59
|
display: none;
|
|
59
60
|
}
|
|
@@ -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
|
+
}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
@include mdc-radio-theme.density($density-scale, $query: mdc-helpers.$mat-base-styles-query);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
@
|
|
80
|
+
@include mdc-helpers.if-touch-targets-unsupported($density-scale) {
|
|
81
81
|
.mat-mdc-radio-touch-target {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material-experimental",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"description": "Experimental components for Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -426,12 +426,12 @@
|
|
|
426
426
|
},
|
|
427
427
|
"peerDependencies": {
|
|
428
428
|
"@angular/animations": "^14.0.0 || ^15.0.0",
|
|
429
|
-
"@angular/cdk": "14.0.
|
|
429
|
+
"@angular/cdk": "14.0.4",
|
|
430
430
|
"@angular/core": "^14.0.0 || ^15.0.0",
|
|
431
431
|
"@angular/common": "^14.0.0 || ^15.0.0",
|
|
432
432
|
"@angular/forms": "^14.0.0 || ^15.0.0",
|
|
433
433
|
"@angular/platform-browser": "^14.0.0 || ^15.0.0",
|
|
434
|
-
"@angular/material": "14.0.
|
|
434
|
+
"@angular/material": "14.0.4"
|
|
435
435
|
},
|
|
436
436
|
"dependencies": {
|
|
437
437
|
"tslib": "^2.3.0",
|