@angular/material-experimental 17.0.0-next.4 → 17.0.0-next.5

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.
@@ -7,5 +7,5 @@
7
7
  */
8
8
  import { Version } from '@angular/core';
9
9
  /** Current version of the Material experimental package. */
10
- export const VERSION = new Version('17.0.0-next.4');
10
+ export const VERSION = new Version('17.0.0-next.5');
11
11
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tYXRlcmlhbC1leHBlcmltZW50YWwvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBRXRDLDREQUE0RDtBQUM1RCxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsSUFBSSxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKiogQ3VycmVudCB2ZXJzaW9uIG9mIHRoZSBNYXRlcmlhbCBleHBlcmltZW50YWwgcGFja2FnZS4gKi9cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gbmV3IFZlcnNpb24oJzAuMC4wLVBMQUNFSE9MREVSJyk7XG4iXX0=
@@ -1,7 +1,7 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
3
  /** Current version of the Material experimental package. */
4
- const VERSION = new Version('17.0.0-next.4');
4
+ const VERSION = new Version('17.0.0-next.5');
5
5
 
6
6
  export { VERSION };
7
7
  //# sourceMappingURL=material-experimental.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('17.0.0-next.4');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"material-experimental.mjs","sources":["../../../../../../src/material-experimental/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Material experimental package. */\nexport const VERSION = new Version('17.0.0-next.5');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material-experimental",
3
- "version": "17.0.0-next.4",
3
+ "version": "17.0.0-next.5",
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.4",
52
+ "@angular/cdk": "17.0.0-next.5",
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.4"
57
+ "@angular/material": "17.0.0-next.5"
58
58
  },
59
59
  "dependencies": {
60
60
  "tslib": "^2.3.0",
@@ -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
- map.get($systems, md-sys-typescale, #{$typography-level}-#{$prop}));
14
+ map.get($systems, md-sys-typescale, #{$typography-level}-#{$prop}));
15
15
  }
16
16
  @return $result;
17
17
  }
@@ -25,7 +25,41 @@
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-ref-color, on-surface)
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
+ }
@@ -20,7 +20,14 @@ $_density-tokens: (
20
20
  ),
21
21
  (mdc, elevated-card): (),
22
22
  (mdc, outlined-card): (),
23
+ (mdc, slider): (),
23
24
  (mat, card): (),
25
+ (mdc, plain-tooltip): (),
26
+ (mat, toolbar): (
27
+ standard-height: (64px, 60px, 56px, 52px),
28
+ mobile-height: (56px, 52px, 48px, 44px),
29
+ ),
30
+ (mat, slider): (),
24
31
  );
25
32
 
26
33
  /// Gets the value for the given density scale from the given set of density values.
@@ -188,6 +188,21 @@
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
+ ),
191
206
  // Choose values for our made up tokens based on MDC system tokens or sensible hardcoded
192
207
  // values.
193
208
  _namespace-tokens(
@@ -195,6 +210,21 @@
195
210
  custom-tokens.card($systems, $exclude-hardcoded),
196
211
  $token-slots
197
212
  ),
213
+ _namespace-tokens(
214
+ (mat, toolbar),
215
+ custom-tokens.toolbar($systems, $exclude-hardcoded),
216
+ $token-slots,
217
+ ),
218
+ _namespace-tokens(
219
+ (mat, slider),
220
+ custom-tokens.slider($systems, $exclude-hardcoded),
221
+ $token-slots
222
+ ),
223
+ _namespace-tokens(
224
+ (mat, snack-bar),
225
+ custom-tokens.snack-bar($systems, $exclude-hardcoded),
226
+ $token-slots
227
+ ),
198
228
  );
199
229
 
200
230
  // Strip out tokens that are systemized by our made up density system.