@angular/material-experimental 17.0.0-next.5 → 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.
Files changed (36) hide show
  1. package/column-resize/_column-resize-theme.scss +6 -6
  2. package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
  3. package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
  4. package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize-flex.mjs +4 -4
  5. package/esm2022/column-resize/column-resize-directives/default-enabled-column-resize.mjs +4 -4
  6. package/esm2022/column-resize/column-resize-module.mjs +12 -12
  7. package/esm2022/column-resize/overlay-handle.mjs +6 -6
  8. package/esm2022/column-resize/resizable-directives/default-enabled-resizable.mjs +5 -5
  9. package/esm2022/column-resize/resizable-directives/resizable.mjs +5 -5
  10. package/esm2022/column-resize/resize-strategy.mjs +5 -5
  11. package/esm2022/menubar/menubar-item.mjs +3 -3
  12. package/esm2022/menubar/menubar-module.mjs +4 -4
  13. package/esm2022/menubar/menubar.mjs +3 -3
  14. package/esm2022/popover-edit/lens-directives.mjs +9 -9
  15. package/esm2022/popover-edit/popover-edit-module.mjs +4 -4
  16. package/esm2022/popover-edit/table-directives.mjs +12 -12
  17. package/esm2022/selection/row-selection.mjs +3 -3
  18. package/esm2022/selection/select-all.mjs +3 -3
  19. package/esm2022/selection/selection-column.mjs +6 -6
  20. package/esm2022/selection/selection-module.mjs +4 -4
  21. package/esm2022/selection/selection-toggle.mjs +3 -3
  22. package/esm2022/selection/selection.mjs +3 -3
  23. package/esm2022/version.mjs +1 -1
  24. package/fesm2022/column-resize.mjs +48 -48
  25. package/fesm2022/column-resize.mjs.map +1 -1
  26. package/fesm2022/material-experimental.mjs +1 -1
  27. package/fesm2022/material-experimental.mjs.map +1 -1
  28. package/fesm2022/menubar.mjs +10 -10
  29. package/fesm2022/popover-edit.mjs +25 -25
  30. package/fesm2022/selection.mjs +21 -21
  31. package/fesm2022/selection.mjs.map +1 -1
  32. package/package.json +3 -3
  33. package/popover-edit/_popover-edit-theme.scss +8 -8
  34. package/theming/_custom-tokens.scss +8 -0
  35. package/theming/_m3-density.scss +7 -1
  36. package/theming/_m3-tokens.scss +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material-experimental",
3
- "version": "17.0.0-next.5",
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.5",
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.5"
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.private-get-theme-color($theme, background, 'card');
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.private-get-theme-color($theme, primary);
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.private-get-theme-color($theme, foreground, text);
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.private-get-theme-typography($theme, headline-6, font);
148
- letter-spacing: mat.private-get-theme-typography($theme, headline-6, letter-spacing);
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.private-theme-has($theme, color) {
157
+ @if mat.theme-has($theme, color) {
158
158
  @include color($theme);
159
159
  }
160
- @if mat.private-theme-has($theme, density) {
160
+ @if mat.theme-has($theme, density) {
161
161
  @include density($theme);
162
162
  }
163
- @if mat.private-theme-has($theme, typography) {
163
+ @if mat.theme-has($theme, typography) {
164
164
  @include typography($theme);
165
165
  }
166
166
  }
@@ -63,3 +63,11 @@
63
63
  button-color: map.get($systems, md-sys-color, inverse-primary),
64
64
  );
65
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
+ }
@@ -15,19 +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): (),
23
24
  (mdc, slider): (),
24
- (mat, card): (),
25
25
  (mdc, plain-tooltip): (),
26
+ (mdc, radio): (
27
+ state-layer-size: (40px, 36px, 32px, 28px),
28
+ ),
29
+ // Custom Angular Material tokens
30
+ (mat, card): (),
26
31
  (mat, toolbar): (
27
32
  standard-height: (64px, 60px, 56px, 52px),
28
33
  mobile-height: (56px, 52px, 48px, 44px),
29
34
  ),
30
35
  (mat, slider): (),
36
+ (mat, radio): (),
31
37
  );
32
38
 
33
39
  /// Gets the value for the given density scale from the given set of density values.
@@ -203,6 +203,16 @@
203
203
  mdc-tokens.md-comp-plain-tooltip-values($systems, $exclude-hardcoded),
204
204
  $token-slots
205
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
+ ),
206
216
  // Choose values for our made up tokens based on MDC system tokens or sensible hardcoded
207
217
  // values.
208
218
  _namespace-tokens(
@@ -225,6 +235,11 @@
225
235
  custom-tokens.snack-bar($systems, $exclude-hardcoded),
226
236
  $token-slots
227
237
  ),
238
+ _namespace-tokens(
239
+ (mat, radio),
240
+ custom-tokens.radio($systems, $exclude-hardcoded),
241
+ $token-slots
242
+ ),
228
243
  );
229
244
 
230
245
  // Strip out tokens that are systemized by our made up density system.