@angular/material-experimental 17.0.0-next.4 → 17.0.0-next.6
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/column-resize/_column-resize-theme.scss +6 -6
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
- package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
- package/esm2022/column-resize/column-resize-module.mjs +12 -12
- package/esm2022/column-resize/overlay-handle.mjs +6 -6
- package/esm2022/column-resize/resizable-directives/default-enabled-resizable.mjs +5 -5
- package/esm2022/column-resize/resizable-directives/resizable.mjs +5 -5
- package/esm2022/column-resize/resize-strategy.mjs +5 -5
- package/esm2022/menubar/menubar-item.mjs +3 -3
- package/esm2022/menubar/menubar-module.mjs +4 -4
- package/esm2022/menubar/menubar.mjs +3 -3
- package/esm2022/popover-edit/lens-directives.mjs +9 -9
- package/esm2022/popover-edit/popover-edit-module.mjs +4 -4
- package/esm2022/popover-edit/table-directives.mjs +12 -12
- package/esm2022/selection/row-selection.mjs +3 -3
- package/esm2022/selection/select-all.mjs +3 -3
- package/esm2022/selection/selection-column.mjs +6 -6
- package/esm2022/selection/selection-module.mjs +4 -4
- package/esm2022/selection/selection-toggle.mjs +3 -3
- package/esm2022/selection/selection.mjs +3 -3
- package/esm2022/version.mjs +1 -1
- package/fesm2022/column-resize.mjs +48 -48
- package/fesm2022/column-resize.mjs.map +1 -1
- package/fesm2022/material-experimental.mjs +1 -1
- package/fesm2022/material-experimental.mjs.map +1 -1
- package/fesm2022/menubar.mjs +10 -10
- package/fesm2022/popover-edit.mjs +25 -25
- package/fesm2022/selection.mjs +21 -21
- package/fesm2022/selection.mjs.map +1 -1
- package/package.json +3 -3
- package/popover-edit/_popover-edit-theme.scss +8 -8
- package/theming/_custom-tokens.scss +44 -2
- package/theming/_m3-density.scss +13 -0
- package/theming/_m3-tokens.scss +45 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material-experimental",
|
|
3
|
-
"version": "17.0.0-next.
|
|
3
|
+
"version": "17.0.0-next.6",
|
|
4
4
|
"description": "Experimental components for Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@angular/animations": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
52
|
-
"@angular/cdk": "17.0.0-next.
|
|
52
|
+
"@angular/cdk": "17.0.0-next.6",
|
|
53
53
|
"@angular/core": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
54
54
|
"@angular/common": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
55
55
|
"@angular/forms": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
56
56
|
"@angular/platform-browser": "^17.0.0-0 || ^17.1.0-0 || ^17.2.0-0 || ^17.3.0-0 || ^18.0.0-0",
|
|
57
|
-
"@angular/material": "17.0.0-next.
|
|
57
|
+
"@angular/material": "17.0.0-next.6"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"tslib": "^2.3.0",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
@mixin color($theme) {
|
|
9
|
-
$background-color: mat.
|
|
9
|
+
$background-color: mat.get-theme-color($theme, background, 'card');
|
|
10
10
|
|
|
11
11
|
// TODO: these structural styles don't belong in the `color` part of a theme.
|
|
12
12
|
// We should figure out a better place for them.
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
position: relative;
|
|
43
43
|
|
|
44
44
|
&::after {
|
|
45
|
-
background-color: mat.
|
|
45
|
+
background-color: mat.get-theme-color($theme, primary);
|
|
46
46
|
bottom: 0;
|
|
47
47
|
content: '';
|
|
48
48
|
height: 2px;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
.mat-edit-pane {
|
|
79
79
|
@include mat.private-theme-elevation(2, $theme);
|
|
80
80
|
background: $background-color;
|
|
81
|
-
color: mat.
|
|
81
|
+
color: mat.get-theme-color($theme, foreground, text);
|
|
82
82
|
display: block;
|
|
83
83
|
padding: 16px 24px;
|
|
84
84
|
|
|
@@ -144,8 +144,8 @@
|
|
|
144
144
|
|
|
145
145
|
@mixin typography($theme) {
|
|
146
146
|
[mat-edit-title] {
|
|
147
|
-
font: mat.
|
|
148
|
-
letter-spacing: mat.
|
|
147
|
+
font: mat.get-theme-typography($theme, headline-6, font);
|
|
148
|
+
letter-spacing: mat.get-theme-typography($theme, headline-6, letter-spacing);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -154,13 +154,13 @@
|
|
|
154
154
|
|
|
155
155
|
@mixin theme($theme) {
|
|
156
156
|
@include mat.private-check-duplicate-theme-styles($theme, 'mat-popover-edit') {
|
|
157
|
-
@if mat.
|
|
157
|
+
@if mat.theme-has($theme, color) {
|
|
158
158
|
@include color($theme);
|
|
159
159
|
}
|
|
160
|
-
@if mat.
|
|
160
|
+
@if mat.theme-has($theme, density) {
|
|
161
161
|
@include density($theme);
|
|
162
162
|
}
|
|
163
|
-
@if mat.
|
|
163
|
+
@if mat.theme-has($theme, typography) {
|
|
164
164
|
@include typography($theme);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
$result: ();
|
|
12
12
|
@each $prop in (font, line-height, size, tracking, weight) {
|
|
13
13
|
$result: map.set($result, #{$base-name}-#{$prop},
|
|
14
|
-
|
|
14
|
+
map.get($systems, md-sys-typescale, #{$typography-level}-#{$prop}));
|
|
15
15
|
}
|
|
16
16
|
@return $result;
|
|
17
17
|
}
|
|
@@ -25,7 +25,49 @@
|
|
|
25
25
|
_generate-typography-tokens($systems, title-text, title-large),
|
|
26
26
|
_generate-typography-tokens($systems, subtitle-text, title-medium),
|
|
27
27
|
(
|
|
28
|
-
subtitle-text-color: map.get($systems, md-
|
|
28
|
+
subtitle-text-color: map.get($systems, md-sys-color, on-surface)
|
|
29
29
|
)
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
/// Generates custom tokens for the mat-toolbar.
|
|
34
|
+
/// @param {Map} $systems The MDC system tokens
|
|
35
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
36
|
+
/// @return {Map} A set of custom tokens for the mat-toolbar
|
|
37
|
+
@function toolbar($systems, $exclude-hardcoded) {
|
|
38
|
+
@return mat.private-merge-all(
|
|
39
|
+
_generate-typography-tokens($systems, title-text, title-large),
|
|
40
|
+
(
|
|
41
|
+
container-background-color: map.get($systems, md-sys-color, surface),
|
|
42
|
+
container-text-color: map.get($systems, md-sys-color, on-surface),
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/// Generates custom tokens for the mat-slider.
|
|
48
|
+
/// @param {Map} $systems The MDC system tokens
|
|
49
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
50
|
+
/// @return {Map} A set of custom tokens for the mat-slider
|
|
51
|
+
@function slider($systems, $exclude-hardcoded) {
|
|
52
|
+
@return (
|
|
53
|
+
value-indicator-opacity: 1,
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/// Generates custom tokens for the mat-snack-bar.
|
|
58
|
+
/// @param {Map} $systems The MDC system tokens
|
|
59
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
60
|
+
/// @return {Map} A set of custom tokens for the mat-snack-bar
|
|
61
|
+
@function snack-bar($systems, $exclude-hardcoded) {
|
|
62
|
+
@return (
|
|
63
|
+
button-color: map.get($systems, md-sys-color, inverse-primary),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@function radio($systems, $exclude-hardcoded) {
|
|
68
|
+
@return (
|
|
69
|
+
ripple-color: map.get($systems, md-sys-color, on-surface),
|
|
70
|
+
checked-ripple-color: map.get($systems, md-sys-color, primary),
|
|
71
|
+
disabled-label-color: map.get($systems, md-sys-color, on-surface),
|
|
72
|
+
);
|
|
73
|
+
}
|
package/theming/_m3-density.scss
CHANGED
|
@@ -15,12 +15,25 @@
|
|
|
15
15
|
/// )
|
|
16
16
|
// TODO(mmalerba): Add density tokens for remaining components.
|
|
17
17
|
$_density-tokens: (
|
|
18
|
+
// MDC tokens
|
|
18
19
|
(mdc, checkbox): (
|
|
19
20
|
state-layer-size: (40px, 36px, 32px, 28px),
|
|
20
21
|
),
|
|
21
22
|
(mdc, elevated-card): (),
|
|
22
23
|
(mdc, outlined-card): (),
|
|
24
|
+
(mdc, slider): (),
|
|
25
|
+
(mdc, plain-tooltip): (),
|
|
26
|
+
(mdc, radio): (
|
|
27
|
+
state-layer-size: (40px, 36px, 32px, 28px),
|
|
28
|
+
),
|
|
29
|
+
// Custom Angular Material tokens
|
|
23
30
|
(mat, card): (),
|
|
31
|
+
(mat, toolbar): (
|
|
32
|
+
standard-height: (64px, 60px, 56px, 52px),
|
|
33
|
+
mobile-height: (56px, 52px, 48px, 44px),
|
|
34
|
+
),
|
|
35
|
+
(mat, slider): (),
|
|
36
|
+
(mat, radio): (),
|
|
24
37
|
);
|
|
25
38
|
|
|
26
39
|
/// Gets the value for the given density scale from the given set of density values.
|
package/theming/_m3-tokens.scss
CHANGED
|
@@ -188,6 +188,31 @@
|
|
|
188
188
|
mdc-tokens.md-comp-outlined-card-values($systems, $exclude-hardcoded),
|
|
189
189
|
$token-slots
|
|
190
190
|
),
|
|
191
|
+
_namespace-tokens(
|
|
192
|
+
(mdc, slider),
|
|
193
|
+
mdc-tokens.md-comp-slider-values($systems, $exclude-hardcoded),
|
|
194
|
+
$token-slots
|
|
195
|
+
),
|
|
196
|
+
_namespace-tokens(
|
|
197
|
+
(mdc, snackbar),
|
|
198
|
+
mdc-tokens.md-comp-snackbar-values($systems, $exclude-hardcoded),
|
|
199
|
+
$token-slots,
|
|
200
|
+
),
|
|
201
|
+
_namespace-tokens(
|
|
202
|
+
(mdc, plain-tooltip),
|
|
203
|
+
mdc-tokens.md-comp-plain-tooltip-values($systems, $exclude-hardcoded),
|
|
204
|
+
$token-slots
|
|
205
|
+
),
|
|
206
|
+
_namespace-tokens(
|
|
207
|
+
(mdc, circular-progress),
|
|
208
|
+
mdc-tokens.md-comp-circular-progress-indicator-values($systems, $exclude-hardcoded),
|
|
209
|
+
$token-slots
|
|
210
|
+
),
|
|
211
|
+
_namespace-tokens(
|
|
212
|
+
(mdc, radio),
|
|
213
|
+
mdc-tokens.md-comp-radio-button-values($systems, $exclude-hardcoded),
|
|
214
|
+
$token-slots
|
|
215
|
+
),
|
|
191
216
|
// Choose values for our made up tokens based on MDC system tokens or sensible hardcoded
|
|
192
217
|
// values.
|
|
193
218
|
_namespace-tokens(
|
|
@@ -195,6 +220,26 @@
|
|
|
195
220
|
custom-tokens.card($systems, $exclude-hardcoded),
|
|
196
221
|
$token-slots
|
|
197
222
|
),
|
|
223
|
+
_namespace-tokens(
|
|
224
|
+
(mat, toolbar),
|
|
225
|
+
custom-tokens.toolbar($systems, $exclude-hardcoded),
|
|
226
|
+
$token-slots,
|
|
227
|
+
),
|
|
228
|
+
_namespace-tokens(
|
|
229
|
+
(mat, slider),
|
|
230
|
+
custom-tokens.slider($systems, $exclude-hardcoded),
|
|
231
|
+
$token-slots
|
|
232
|
+
),
|
|
233
|
+
_namespace-tokens(
|
|
234
|
+
(mat, snack-bar),
|
|
235
|
+
custom-tokens.snack-bar($systems, $exclude-hardcoded),
|
|
236
|
+
$token-slots
|
|
237
|
+
),
|
|
238
|
+
_namespace-tokens(
|
|
239
|
+
(mat, radio),
|
|
240
|
+
custom-tokens.radio($systems, $exclude-hardcoded),
|
|
241
|
+
$token-slots
|
|
242
|
+
),
|
|
198
243
|
);
|
|
199
244
|
|
|
200
245
|
// Strip out tokens that are systemized by our made up density system.
|