@angular/material 17.3.0-rc.0 → 17.3.1
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/core/theming/_theming.scss +4 -3
- package/core/tokens/m2/mat/_fab-small.scss +3 -1
- package/core/tokens/m2/mat/_fab.scss +3 -1
- package/core/tokens/m2/mat/_filled-button.scss +3 -1
- package/core/tokens/m2/mat/_icon-button.scss +5 -1
- package/core/tokens/m2/mat/_outlined-button.scss +5 -1
- package/core/tokens/m2/mat/_protected-button.scss +3 -1
- package/core/tokens/m2/mat/_text-button.scss +5 -1
- package/esm2022/core/version.mjs +1 -1
- package/esm2022/form-field/form-field.mjs +3 -3
- package/esm2022/slider/slider-input.mjs +3 -1
- package/esm2022/slider/slider-interface.mjs +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/form-field.mjs +2 -2
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/slider.mjs +2 -0
- package/fesm2022/slider.mjs.map +1 -1
- package/package.json +7 -7
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/slider/index.d.ts +2 -0
|
@@ -432,9 +432,10 @@ $_internals: _mat-theming-internals-do-not-access;
|
|
|
432
432
|
// Checks for duplicate styles in a `theme-version: 0` style theme.
|
|
433
433
|
@mixin _check-duplicate-theme-styles-v0($theme-or-color-config, $id) {
|
|
434
434
|
$theme: private-legacy-get-theme($theme-or-color-config);
|
|
435
|
-
$color-config: get-color-config($theme);
|
|
436
|
-
$density-config: get-density-config($theme);
|
|
437
|
-
$typography-config:
|
|
435
|
+
$color-config: map.get($theme, $_internals, m2-config, color) or get-color-config($theme);
|
|
436
|
+
$density-config: map.get($theme, $_internals, m2-config, density) or get-density-config($theme);
|
|
437
|
+
$typography-config:
|
|
438
|
+
map.get($theme, $_internals, m2-config, typography) or get-typography-config($theme);
|
|
438
439
|
// Lists of previous `color`, `density` and `typography` configurations.
|
|
439
440
|
$previous-color: map.get($_emitted-color, $id) or ();
|
|
440
441
|
$previous-typography: map.get($_emitted-typography, $id) or ();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
@use '../../../theming/theming';
|
|
@@ -63,8 +64,9 @@ $prefix: (mat, fab-small);
|
|
|
63
64
|
$foreground-color: null;
|
|
64
65
|
$state-layer-color: null;
|
|
65
66
|
$ripple-color: null;
|
|
67
|
+
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
66
68
|
|
|
67
|
-
@if (token-utils.$private-is-internal-build) {
|
|
69
|
+
@if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
|
|
68
70
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
69
71
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
70
72
|
$contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
@use '../../../theming/theming';
|
|
@@ -63,8 +64,9 @@ $prefix: (mat, fab);
|
|
|
63
64
|
$foreground-color: null;
|
|
64
65
|
$state-layer-color: null;
|
|
65
66
|
$ripple-color: null;
|
|
67
|
+
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
66
68
|
|
|
67
|
-
@if (token-utils.$private-is-internal-build) {
|
|
69
|
+
@if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
|
|
68
70
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
69
71
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
70
72
|
$contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
@use '../../../theming/theming';
|
|
@@ -58,10 +59,11 @@ $prefix: (mat, filled-button);
|
|
|
58
59
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
59
60
|
$state-layer-color: null;
|
|
60
61
|
$ripple-color: null;
|
|
62
|
+
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
61
63
|
|
|
62
64
|
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
|
|
63
65
|
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
|
|
64
|
-
@if (token-utils.$private-is-internal-build) {
|
|
66
|
+
@if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
|
|
65
67
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
66
68
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
67
69
|
$contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
|
|
@@ -47,10 +47,14 @@ $prefix: (mat, icon-button);
|
|
|
47
47
|
// Generates the mapping for the properties that change based on the button palette color.
|
|
48
48
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
49
49
|
$color: inspection.get-theme-color($theme, $palette-name);
|
|
50
|
+
$ripple-opacity: 0.1;
|
|
50
51
|
|
|
51
52
|
@return (
|
|
52
53
|
state-layer-color: $color,
|
|
53
|
-
ripple-color: if(
|
|
54
|
+
ripple-color: if(
|
|
55
|
+
meta.type-of($color) == color,
|
|
56
|
+
rgba($color, $ripple-opacity),
|
|
57
|
+
inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
|
|
54
58
|
);
|
|
55
59
|
}
|
|
56
60
|
|
|
@@ -57,10 +57,14 @@ $prefix: (mat, outlined-button);
|
|
|
57
57
|
// Generates the mapping for the properties that change based on the button palette color.
|
|
58
58
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
59
59
|
$color: inspection.get-theme-color($theme, $palette-name);
|
|
60
|
+
$ripple-opacity: 0.1;
|
|
60
61
|
|
|
61
62
|
@return (
|
|
62
63
|
state-layer-color: $color,
|
|
63
|
-
ripple-color: if(
|
|
64
|
+
ripple-color: if(
|
|
65
|
+
meta.type-of($color) == color,
|
|
66
|
+
rgba($color, $ripple-opacity),
|
|
67
|
+
inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
|
|
64
68
|
);
|
|
65
69
|
}
|
|
66
70
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
2
3
|
@use '@material/ripple/ripple-theme' as mdc-ripple-theme;
|
|
3
4
|
@use '../../token-utils';
|
|
4
5
|
@use '../../../theming/theming';
|
|
@@ -58,10 +59,11 @@ $prefix: (mat, protected-button);
|
|
|
58
59
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
59
60
|
$state-layer-color: null;
|
|
60
61
|
$ripple-color: null;
|
|
62
|
+
$contrast-color: inspection.get-theme-color($theme, $palette-name, default-contrast);
|
|
61
63
|
|
|
62
64
|
// Ideally we would derive all values directly from the theme, but it causes a lot of regressions
|
|
63
65
|
// internally. For now we fall back to the old hardcoded behavior only for internal apps.
|
|
64
|
-
@if (token-utils.$private-is-internal-build) {
|
|
66
|
+
@if (token-utils.$private-is-internal-build or meta.type-of($contrast-color) != 'color') {
|
|
65
67
|
$is-dark: inspection.get-theme-type($theme) == dark;
|
|
66
68
|
$container-color: inspection.get-theme-color($theme, $palette-name);
|
|
67
69
|
$contrast-tone: mdc-helpers.variable-safe-contrast-tone($container-color, $is-dark);
|
|
@@ -60,10 +60,14 @@ $prefix: (mat, text-button);
|
|
|
60
60
|
// Generates the mapping for the properties that change based on the button palette color.
|
|
61
61
|
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
62
62
|
$color: inspection.get-theme-color($theme, $palette-name);
|
|
63
|
+
$ripple-opacity: 0.1;
|
|
63
64
|
|
|
64
65
|
@return (
|
|
65
66
|
state-layer-color: $color,
|
|
66
|
-
ripple-color: if(
|
|
67
|
+
ripple-color: if(
|
|
68
|
+
meta.type-of($color) == color,
|
|
69
|
+
rgba($color, $ripple-opacity),
|
|
70
|
+
inspection.get-theme-color($theme, foreground, base, $ripple-opacity)),
|
|
67
71
|
);
|
|
68
72
|
}
|
|
69
73
|
|
package/esm2022/core/version.mjs
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Version } from '@angular/core';
|
|
9
9
|
/** Current version of Angular Material. */
|
|
10
|
-
export const VERSION = new Version('17.3.
|
|
10
|
+
export const VERSION = new Version('17.3.1');
|
|
11
11
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC9jb3JlL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV0QywyQ0FBMkM7QUFDM0MsTUFBTSxDQUFDLE1BQU0sT0FBTyxHQUFHLElBQUksT0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuaW1wb3J0IHtWZXJzaW9ufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuLyoqIEN1cnJlbnQgdmVyc2lvbiBvZiBBbmd1bGFyIE1hdGVyaWFsLiAqL1xuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
|