@angular/material-experimental 17.1.0-next.3 → 17.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/LICENSE +1 -1
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +3 -3
- package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize.mjs +3 -3
- package/esm2022/column-resize/column-resize-module.mjs +12 -12
- package/esm2022/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/column-resize/resizable-directives/default-enabled-resizable.mjs +3 -3
- package/esm2022/column-resize/resizable-directives/resizable.mjs +3 -3
- package/esm2022/column-resize/resize-strategy.mjs +3 -3
- 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 +3 -3
- 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 +36 -36
- 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 +19 -19
- package/package.json +55 -55
- package/theming/_custom-tokens.scss +103 -1
- package/theming/_m3-density.scss +19 -1
- package/theming/_m3-tokens.scss +329 -8
- package/theming-next/_card.scss +0 -93
- package/theming-next/_checkbox.scss +0 -109
- package/theming-next/_m3-tokens.scss +0 -146
- package/theming-next/_theming.scss +0 -130
- package/theming-next/_token-resolution.scss +0 -88
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material-experimental",
|
|
3
|
-
"version": "17.1.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"description": "Experimental components for Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,63 +48,63 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@angular/animations": "^17.0.0
|
|
52
|
-
"@angular/cdk": "17.1.0
|
|
53
|
-
"@angular/core": "^17.0.0
|
|
54
|
-
"@angular/common": "^17.0.0
|
|
55
|
-
"@angular/forms": "^17.0.0
|
|
56
|
-
"@angular/platform-browser": "^17.0.0
|
|
57
|
-
"@angular/material": "17.1.0
|
|
51
|
+
"@angular/animations": "^17.0.0 || ^18.0.0",
|
|
52
|
+
"@angular/cdk": "17.1.0",
|
|
53
|
+
"@angular/core": "^17.0.0 || ^18.0.0",
|
|
54
|
+
"@angular/common": "^17.0.0 || ^18.0.0",
|
|
55
|
+
"@angular/forms": "^17.0.0 || ^18.0.0",
|
|
56
|
+
"@angular/platform-browser": "^17.0.0 || ^18.0.0",
|
|
57
|
+
"@angular/material": "17.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"tslib": "^2.3.0",
|
|
61
|
-
"@material/animation": "15.0.0-canary.
|
|
62
|
-
"@material/auto-init": "15.0.0-canary.
|
|
63
|
-
"@material/banner": "15.0.0-canary.
|
|
64
|
-
"@material/base": "15.0.0-canary.
|
|
65
|
-
"@material/button": "15.0.0-canary.
|
|
66
|
-
"@material/card": "15.0.0-canary.
|
|
67
|
-
"@material/checkbox": "15.0.0-canary.
|
|
68
|
-
"@material/chips": "15.0.0-canary.
|
|
69
|
-
"@material/circular-progress": "15.0.0-canary.
|
|
70
|
-
"@material/data-table": "15.0.0-canary.
|
|
71
|
-
"@material/density": "15.0.0-canary.
|
|
72
|
-
"@material/dialog": "15.0.0-canary.
|
|
73
|
-
"@material/dom": "15.0.0-canary.
|
|
74
|
-
"@material/drawer": "15.0.0-canary.
|
|
75
|
-
"@material/elevation": "15.0.0-canary.
|
|
76
|
-
"@material/fab": "15.0.0-canary.
|
|
77
|
-
"@material/feature-targeting": "15.0.0-canary.
|
|
78
|
-
"@material/floating-label": "15.0.0-canary.
|
|
79
|
-
"@material/form-field": "15.0.0-canary.
|
|
80
|
-
"@material/icon-button": "15.0.0-canary.
|
|
81
|
-
"@material/image-list": "15.0.0-canary.
|
|
82
|
-
"@material/layout-grid": "15.0.0-canary.
|
|
83
|
-
"@material/line-ripple": "15.0.0-canary.
|
|
84
|
-
"@material/linear-progress": "15.0.0-canary.
|
|
85
|
-
"@material/list": "15.0.0-canary.
|
|
86
|
-
"@material/menu": "15.0.0-canary.
|
|
87
|
-
"@material/menu-surface": "15.0.0-canary.
|
|
88
|
-
"@material/notched-outline": "15.0.0-canary.
|
|
89
|
-
"@material/radio": "15.0.0-canary.
|
|
90
|
-
"@material/ripple": "15.0.0-canary.
|
|
91
|
-
"@material/rtl": "15.0.0-canary.
|
|
92
|
-
"@material/segmented-button": "15.0.0-canary.
|
|
93
|
-
"@material/select": "15.0.0-canary.
|
|
94
|
-
"@material/shape": "15.0.0-canary.
|
|
95
|
-
"@material/slider": "15.0.0-canary.
|
|
96
|
-
"@material/snackbar": "15.0.0-canary.
|
|
97
|
-
"@material/switch": "15.0.0-canary.
|
|
98
|
-
"@material/tab": "15.0.0-canary.
|
|
99
|
-
"@material/tab-bar": "15.0.0-canary.
|
|
100
|
-
"@material/tab-indicator": "15.0.0-canary.
|
|
101
|
-
"@material/tab-scroller": "15.0.0-canary.
|
|
102
|
-
"@material/textfield": "15.0.0-canary.
|
|
103
|
-
"@material/theme": "15.0.0-canary.
|
|
104
|
-
"@material/tooltip": "15.0.0-canary.
|
|
105
|
-
"@material/top-app-bar": "15.0.0-canary.
|
|
106
|
-
"@material/touch-target": "15.0.0-canary.
|
|
107
|
-
"@material/typography": "15.0.0-canary.
|
|
61
|
+
"@material/animation": "15.0.0-canary.7f224ddd4.0",
|
|
62
|
+
"@material/auto-init": "15.0.0-canary.7f224ddd4.0",
|
|
63
|
+
"@material/banner": "15.0.0-canary.7f224ddd4.0",
|
|
64
|
+
"@material/base": "15.0.0-canary.7f224ddd4.0",
|
|
65
|
+
"@material/button": "15.0.0-canary.7f224ddd4.0",
|
|
66
|
+
"@material/card": "15.0.0-canary.7f224ddd4.0",
|
|
67
|
+
"@material/checkbox": "15.0.0-canary.7f224ddd4.0",
|
|
68
|
+
"@material/chips": "15.0.0-canary.7f224ddd4.0",
|
|
69
|
+
"@material/circular-progress": "15.0.0-canary.7f224ddd4.0",
|
|
70
|
+
"@material/data-table": "15.0.0-canary.7f224ddd4.0",
|
|
71
|
+
"@material/density": "15.0.0-canary.7f224ddd4.0",
|
|
72
|
+
"@material/dialog": "15.0.0-canary.7f224ddd4.0",
|
|
73
|
+
"@material/dom": "15.0.0-canary.7f224ddd4.0",
|
|
74
|
+
"@material/drawer": "15.0.0-canary.7f224ddd4.0",
|
|
75
|
+
"@material/elevation": "15.0.0-canary.7f224ddd4.0",
|
|
76
|
+
"@material/fab": "15.0.0-canary.7f224ddd4.0",
|
|
77
|
+
"@material/feature-targeting": "15.0.0-canary.7f224ddd4.0",
|
|
78
|
+
"@material/floating-label": "15.0.0-canary.7f224ddd4.0",
|
|
79
|
+
"@material/form-field": "15.0.0-canary.7f224ddd4.0",
|
|
80
|
+
"@material/icon-button": "15.0.0-canary.7f224ddd4.0",
|
|
81
|
+
"@material/image-list": "15.0.0-canary.7f224ddd4.0",
|
|
82
|
+
"@material/layout-grid": "15.0.0-canary.7f224ddd4.0",
|
|
83
|
+
"@material/line-ripple": "15.0.0-canary.7f224ddd4.0",
|
|
84
|
+
"@material/linear-progress": "15.0.0-canary.7f224ddd4.0",
|
|
85
|
+
"@material/list": "15.0.0-canary.7f224ddd4.0",
|
|
86
|
+
"@material/menu": "15.0.0-canary.7f224ddd4.0",
|
|
87
|
+
"@material/menu-surface": "15.0.0-canary.7f224ddd4.0",
|
|
88
|
+
"@material/notched-outline": "15.0.0-canary.7f224ddd4.0",
|
|
89
|
+
"@material/radio": "15.0.0-canary.7f224ddd4.0",
|
|
90
|
+
"@material/ripple": "15.0.0-canary.7f224ddd4.0",
|
|
91
|
+
"@material/rtl": "15.0.0-canary.7f224ddd4.0",
|
|
92
|
+
"@material/segmented-button": "15.0.0-canary.7f224ddd4.0",
|
|
93
|
+
"@material/select": "15.0.0-canary.7f224ddd4.0",
|
|
94
|
+
"@material/shape": "15.0.0-canary.7f224ddd4.0",
|
|
95
|
+
"@material/slider": "15.0.0-canary.7f224ddd4.0",
|
|
96
|
+
"@material/snackbar": "15.0.0-canary.7f224ddd4.0",
|
|
97
|
+
"@material/switch": "15.0.0-canary.7f224ddd4.0",
|
|
98
|
+
"@material/tab": "15.0.0-canary.7f224ddd4.0",
|
|
99
|
+
"@material/tab-bar": "15.0.0-canary.7f224ddd4.0",
|
|
100
|
+
"@material/tab-indicator": "15.0.0-canary.7f224ddd4.0",
|
|
101
|
+
"@material/tab-scroller": "15.0.0-canary.7f224ddd4.0",
|
|
102
|
+
"@material/textfield": "15.0.0-canary.7f224ddd4.0",
|
|
103
|
+
"@material/theme": "15.0.0-canary.7f224ddd4.0",
|
|
104
|
+
"@material/tooltip": "15.0.0-canary.7f224ddd4.0",
|
|
105
|
+
"@material/top-app-bar": "15.0.0-canary.7f224ddd4.0",
|
|
106
|
+
"@material/touch-target": "15.0.0-canary.7f224ddd4.0",
|
|
107
|
+
"@material/typography": "15.0.0-canary.7f224ddd4.0"
|
|
108
108
|
},
|
|
109
109
|
"sideEffects": false,
|
|
110
110
|
"module": "./fesm2022/material-experimental.mjs",
|
|
@@ -334,8 +334,94 @@
|
|
|
334
334
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
335
335
|
/// @return {Map} A set of custom tokens for the mat-icon
|
|
336
336
|
@function icon($systems, $exclude-hardcoded) {
|
|
337
|
-
@return (
|
|
337
|
+
@return ((
|
|
338
338
|
color: _hardcode(inherit, $exclude-hardcoded),
|
|
339
|
+
), (
|
|
340
|
+
// Color variants:
|
|
341
|
+
primary: (
|
|
342
|
+
color: map.get($systems, md-sys-color, primary),
|
|
343
|
+
),
|
|
344
|
+
secondary: (
|
|
345
|
+
color: map.get($systems, md-sys-color, secondary),
|
|
346
|
+
),
|
|
347
|
+
tertiary: (
|
|
348
|
+
color: map.get($systems, md-sys-color, tertiary),
|
|
349
|
+
),
|
|
350
|
+
error: (
|
|
351
|
+
color: map.get($systems, md-sys-color, error),
|
|
352
|
+
)
|
|
353
|
+
));
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/// Generates custom tokens for the mat-button.
|
|
357
|
+
/// @param {Map} $systems The MDC system tokens
|
|
358
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
359
|
+
/// @return {Map} A set of custom tokens for the mat-button
|
|
360
|
+
@function text-button($systems, $exclude-hardcoded) {
|
|
361
|
+
@return (
|
|
362
|
+
state-layer-color: map.get($systems, md-sys-color, primary),
|
|
363
|
+
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
364
|
+
ripple-color: mat.private-safe-color-change(
|
|
365
|
+
map.get($systems, md-sys-color, primary),
|
|
366
|
+
$alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
|
|
367
|
+
),
|
|
368
|
+
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
|
|
369
|
+
focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
|
|
370
|
+
pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/// Generates custom tokens for the mat-flat-button.
|
|
375
|
+
/// @param {Map} $systems The MDC system tokens
|
|
376
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
377
|
+
/// @return {Map} A set of custom tokens for the mat-flat-button
|
|
378
|
+
@function filled-button($systems, $exclude-hardcoded) {
|
|
379
|
+
@return (
|
|
380
|
+
state-layer-color: map.get($systems, md-sys-color, on-primary),
|
|
381
|
+
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
382
|
+
ripple-color: mat.private-safe-color-change(
|
|
383
|
+
map.get($systems, md-sys-color, on-primary),
|
|
384
|
+
$alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
|
|
385
|
+
),
|
|
386
|
+
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
|
|
387
|
+
focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
|
|
388
|
+
pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/// Generates custom tokens for the mat-raised-button.
|
|
393
|
+
/// @param {Map} $systems The MDC system tokens
|
|
394
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
395
|
+
/// @return {Map} A set of custom tokens for the mat-raised-button
|
|
396
|
+
@function elevated-button($systems, $exclude-hardcoded) {
|
|
397
|
+
@return (
|
|
398
|
+
state-layer-color: map.get($systems, md-sys-color, primary),
|
|
399
|
+
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
400
|
+
ripple-color: mat.private-safe-color-change(
|
|
401
|
+
map.get($systems, md-sys-color, primary),
|
|
402
|
+
$alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
|
|
403
|
+
),
|
|
404
|
+
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
|
|
405
|
+
focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
|
|
406
|
+
pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/// Generates custom tokens for the mat-outlined-button.
|
|
411
|
+
/// @param {Map} $systems The MDC system tokens
|
|
412
|
+
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
413
|
+
/// @return {Map} A set of custom tokens for the mat-outlined-button
|
|
414
|
+
@function outlined-button($systems, $exclude-hardcoded) {
|
|
415
|
+
@return (
|
|
416
|
+
state-layer-color: map.get($systems, md-sys-color, primary),
|
|
417
|
+
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
418
|
+
ripple-color: mat.private-safe-color-change(
|
|
419
|
+
map.get($systems, md-sys-color, primary),
|
|
420
|
+
$alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
|
|
421
|
+
),
|
|
422
|
+
hover-state-layer-opacity: map.get($systems, md-sys-state, hover-state-layer-opacity),
|
|
423
|
+
focus-state-layer-opacity: map.get($systems, md-sys-state, focus-state-layer-opacity),
|
|
424
|
+
pressed-state-layer-opacity: map.get($systems, md-sys-state, pressed-state-layer-opacity),
|
|
339
425
|
);
|
|
340
426
|
}
|
|
341
427
|
|
|
@@ -346,6 +432,7 @@
|
|
|
346
432
|
@function icon-button($systems, $exclude-hardcoded) {
|
|
347
433
|
@return (
|
|
348
434
|
state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
435
|
+
disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
349
436
|
ripple-color: mat.private-safe-color-change(
|
|
350
437
|
map.get($systems, md-sys-color, on-surface-variant),
|
|
351
438
|
$alpha: map.get($systems, md-sys-state, pressed-state-layer-opacity)
|
|
@@ -508,8 +595,23 @@
|
|
|
508
595
|
/// @param {Boolean} $exclude-hardcoded Whether to exclude hardcoded token values
|
|
509
596
|
/// @return {Map} A set of custom tokens for the mat-slider
|
|
510
597
|
@function slider($systems, $exclude-hardcoded) {
|
|
598
|
+
$ripple-color: map.get($systems, md-sys-color, primary);
|
|
599
|
+
$hover-ripple-color: if($ripple-color == null, null, #{rgba($ripple-color, 0.05)});
|
|
600
|
+
$focus-ripple-color: if($ripple-color == null, null, #{rgba($ripple-color, 0.2)});
|
|
601
|
+
|
|
511
602
|
@return (
|
|
603
|
+
ripple-color: $ripple-color,
|
|
604
|
+
hover-state-layer-color: $hover-ripple-color,
|
|
605
|
+
focus-state-layer-color: $focus-ripple-color,
|
|
512
606
|
value-indicator-opacity: _hardcode(1, $exclude-hardcoded),
|
|
607
|
+
value-indicator-padding: _hardcode(0, $exclude-hardcoded),
|
|
608
|
+
value-indicator-width: _hardcode(28px, $exclude-hardcoded),
|
|
609
|
+
value-indicator-height: _hardcode(28px, $exclude-hardcoded),
|
|
610
|
+
value-indicator-caret-display: _hardcode(none, $exclude-hardcoded),
|
|
611
|
+
value-indicator-border-radius: _hardcode(50% 50% 50% 0, $exclude-hardcoded),
|
|
612
|
+
value-indicator-text-transform: _hardcode(rotate(45deg), $exclude-hardcoded),
|
|
613
|
+
value-indicator-container-transform:
|
|
614
|
+
_hardcode(translateX(-50%) rotate(-45deg), $exclude-hardcoded)
|
|
513
615
|
);
|
|
514
616
|
}
|
|
515
617
|
|
package/theming/_m3-density.scss
CHANGED
|
@@ -28,6 +28,18 @@ $_density-tokens: (
|
|
|
28
28
|
(mdc, extended-fab): (),
|
|
29
29
|
(mdc, fab): (),
|
|
30
30
|
(mdc, filled-text-field): (),
|
|
31
|
+
(mdc, text-button): (
|
|
32
|
+
container-height: (40px, 36px, 32px, 28px),
|
|
33
|
+
),
|
|
34
|
+
(mdc, protected-button): (
|
|
35
|
+
container-height: (40px, 36px, 32px, 28px),
|
|
36
|
+
),
|
|
37
|
+
(mdc, filled-button): (
|
|
38
|
+
container-height: (40px, 36px, 32px, 28px),
|
|
39
|
+
),
|
|
40
|
+
(mdc, outlined-button): (
|
|
41
|
+
container-height: (40px, 36px, 32px, 28px),
|
|
42
|
+
),
|
|
31
43
|
(mdc, icon-button): (
|
|
32
44
|
state-layer-size: (48px, 44px, 40px, 36px, 32px, 28px),
|
|
33
45
|
),
|
|
@@ -63,7 +75,13 @@ $_density-tokens: (
|
|
|
63
75
|
header-expanded-state-height: (64px, 60px, 56px, 48px),
|
|
64
76
|
),
|
|
65
77
|
(mat, fab): (),
|
|
66
|
-
(mat, form-
|
|
78
|
+
(mat, form-field): (
|
|
79
|
+
container-height: (56px, 52px, 48px, 44px, 40px, 36px),
|
|
80
|
+
filled-label-display: (block, block, none, none, none, none),
|
|
81
|
+
container-vertical-padding: (16px, 14px, 12px, 10px, 8px, 6px),
|
|
82
|
+
filled-with-label-container-padding-top: (24px, 22px, 12px, 10px, 8px, 6px),
|
|
83
|
+
filled-with-label-container-padding-bottom: (8px, 6px, 12px, 10px, 8px, 6px),
|
|
84
|
+
),
|
|
67
85
|
(mat, grid-list): (),
|
|
68
86
|
(mat, icon): (),
|
|
69
87
|
(mat, icon-button): (),
|