@angular/material 17.0.0-next.6 → 17.0.0-next.7

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 (92) hide show
  1. package/_index.scss +38 -31
  2. package/autocomplete/_autocomplete-theme.scss +3 -0
  3. package/badge/_badge-theme.scss +3 -0
  4. package/bottom-sheet/_bottom-sheet-theme.scss +8 -0
  5. package/button/_button-theme.scss +24 -5
  6. package/button/_fab-theme.scss +15 -11
  7. package/button/_icon-button-theme.scss +5 -0
  8. package/button-toggle/_button-toggle-theme.scss +14 -0
  9. package/chips/_chips-theme.scss +7 -0
  10. package/core/_core-theme.scss +9 -0
  11. package/core/option/_optgroup-theme.scss +3 -0
  12. package/core/option/_option-theme.scss +3 -0
  13. package/core/ripple/_ripple-theme.scss +5 -0
  14. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +5 -0
  15. package/core/style/_sass-utils.scss +6 -1
  16. package/core/theming/_all-theme.scss +40 -0
  17. package/core/tokens/m2/mdc/_button-filled.scss +19 -3
  18. package/core/tokens/m2/mdc/_button-protected.scss +16 -3
  19. package/datepicker/_datepicker-theme.scss +3 -0
  20. package/dialog/_dialog-theme.scss +2 -2
  21. package/divider/_divider-theme.scss +5 -0
  22. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +3 -3
  23. package/esm2022/button/button.mjs +4 -4
  24. package/esm2022/button-toggle/button-toggle.mjs +2 -2
  25. package/esm2022/chips/chip-option.mjs +2 -2
  26. package/esm2022/chips/chip-row.mjs +2 -2
  27. package/esm2022/chips/chip.mjs +2 -2
  28. package/esm2022/core/version.mjs +1 -1
  29. package/esm2022/menu/menu.mjs +3 -3
  30. package/esm2022/sidenav/drawer.mjs +3 -3
  31. package/esm2022/sidenav/sidenav.mjs +3 -3
  32. package/esm2022/slide-toggle/slide-toggle.mjs +2 -2
  33. package/esm2022/snack-bar/module.mjs +20 -24
  34. package/esm2022/snack-bar/simple-snack-bar.mjs +8 -6
  35. package/esm2022/snack-bar/snack-bar-container.mjs +4 -4
  36. package/esm2022/snack-bar/snack-bar-content.mjs +7 -4
  37. package/esm2022/snack-bar/snack-bar.mjs +3 -4
  38. package/esm2022/table/table.mjs +2 -2
  39. package/esm2022/tabs/tab-header.mjs +2 -2
  40. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  41. package/expansion/_expansion-theme.scss +5 -0
  42. package/fesm2022/bottom-sheet.mjs +2 -2
  43. package/fesm2022/bottom-sheet.mjs.map +1 -1
  44. package/fesm2022/button-toggle.mjs +2 -2
  45. package/fesm2022/button-toggle.mjs.map +1 -1
  46. package/fesm2022/button.mjs +4 -4
  47. package/fesm2022/button.mjs.map +1 -1
  48. package/fesm2022/chips.mjs +6 -6
  49. package/fesm2022/chips.mjs.map +1 -1
  50. package/fesm2022/core.mjs +1 -1
  51. package/fesm2022/core.mjs.map +1 -1
  52. package/fesm2022/menu.mjs +2 -2
  53. package/fesm2022/menu.mjs.map +1 -1
  54. package/fesm2022/sidenav.mjs +4 -4
  55. package/fesm2022/sidenav.mjs.map +1 -1
  56. package/fesm2022/slide-toggle.mjs +2 -2
  57. package/fesm2022/slide-toggle.mjs.map +1 -1
  58. package/fesm2022/snack-bar.mjs +48 -49
  59. package/fesm2022/snack-bar.mjs.map +1 -1
  60. package/fesm2022/table.mjs +2 -2
  61. package/fesm2022/table.mjs.map +1 -1
  62. package/fesm2022/tabs.mjs +4 -4
  63. package/fesm2022/tabs.mjs.map +1 -1
  64. package/form-field/_form-field-theme.scss +5 -0
  65. package/grid-list/_grid-list-theme.scss +2 -0
  66. package/icon/_icon-theme.scss +3 -0
  67. package/input/_input-theme.scss +3 -0
  68. package/menu/_menu-theme.scss +8 -0
  69. package/package.json +2 -2
  70. package/paginator/_paginator-theme.scss +3 -0
  71. package/prebuilt-themes/deeppurple-amber.css +1 -1
  72. package/prebuilt-themes/indigo-pink.css +1 -1
  73. package/prebuilt-themes/pink-bluegrey.css +1 -1
  74. package/prebuilt-themes/purple-green.css +1 -1
  75. package/progress-bar/_progress-bar-theme.scss +40 -19
  76. package/schematics/ng-add/index.js +1 -1
  77. package/schematics/ng-add/index.mjs +1 -1
  78. package/schematics/ng-generate/mdc-migration/index_bundled.js +46 -46
  79. package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
  80. package/schematics/ng-update/index_bundled.js +25 -25
  81. package/select/_select-theme.scss +3 -0
  82. package/sidenav/_sidenav-theme.scss +8 -0
  83. package/slide-toggle/_slide-toggle-theme.scss +7 -0
  84. package/slider/_slider-theme.scss +16 -16
  85. package/snack-bar/index.d.ts +13 -14
  86. package/sort/_sort-theme.scss +5 -0
  87. package/stepper/_stepper-theme.scss +3 -0
  88. package/table/_table-theme.scss +9 -11
  89. package/tabs/_tabs-common.scss +0 -10
  90. package/tabs/_tabs-theme.scss +15 -0
  91. package/toolbar/_toolbar-theme.scss +3 -0
  92. package/tree/_tree-theme.scss +5 -0
@@ -454,9 +454,9 @@ var require_tslib = __commonJS({
454
454
  }
455
455
  });
456
456
 
457
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
457
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
458
458
  var require_attribute_selectors = __commonJS({
459
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
459
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
460
460
  "use strict";
461
461
  Object.defineProperty(exports, "__esModule", { value: true });
462
462
  exports.attributeSelectors = void 0;
@@ -464,9 +464,9 @@ var require_attribute_selectors = __commonJS({
464
464
  }
465
465
  });
466
466
 
467
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
467
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
468
468
  var require_class_names = __commonJS({
469
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
469
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
470
470
  "use strict";
471
471
  Object.defineProperty(exports, "__esModule", { value: true });
472
472
  exports.classNames = void 0;
@@ -474,9 +474,9 @@ var require_class_names = __commonJS({
474
474
  }
475
475
  });
476
476
 
477
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
477
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
478
478
  var require_constructor_checks = __commonJS({
479
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
479
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
480
480
  "use strict";
481
481
  Object.defineProperty(exports, "__esModule", { value: true });
482
482
  exports.constructorChecks = void 0;
@@ -484,9 +484,9 @@ var require_constructor_checks = __commonJS({
484
484
  }
485
485
  });
486
486
 
487
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
487
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
488
488
  var require_css_selectors = __commonJS({
489
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
489
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
490
490
  "use strict";
491
491
  Object.defineProperty(exports, "__esModule", { value: true });
492
492
  exports.cssSelectors = void 0;
@@ -494,9 +494,9 @@ var require_css_selectors = __commonJS({
494
494
  }
495
495
  });
496
496
 
497
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
497
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
498
498
  var require_element_selectors = __commonJS({
499
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
499
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
500
500
  "use strict";
501
501
  Object.defineProperty(exports, "__esModule", { value: true });
502
502
  exports.elementSelectors = void 0;
@@ -504,9 +504,9 @@ var require_element_selectors = __commonJS({
504
504
  }
505
505
  });
506
506
 
507
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
507
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
508
508
  var require_input_names = __commonJS({
509
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
509
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
510
510
  "use strict";
511
511
  Object.defineProperty(exports, "__esModule", { value: true });
512
512
  exports.inputNames = void 0;
@@ -514,9 +514,9 @@ var require_input_names = __commonJS({
514
514
  }
515
515
  });
516
516
 
517
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
517
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
518
518
  var require_method_call_checks = __commonJS({
519
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
519
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
520
520
  "use strict";
521
521
  Object.defineProperty(exports, "__esModule", { value: true });
522
522
  exports.methodCallChecks = void 0;
@@ -524,9 +524,9 @@ var require_method_call_checks = __commonJS({
524
524
  }
525
525
  });
526
526
 
527
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
527
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
528
528
  var require_output_names = __commonJS({
529
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
529
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
530
530
  "use strict";
531
531
  Object.defineProperty(exports, "__esModule", { value: true });
532
532
  exports.outputNames = void 0;
@@ -534,9 +534,9 @@ var require_output_names = __commonJS({
534
534
  }
535
535
  });
536
536
 
537
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
537
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
538
538
  var require_property_names = __commonJS({
539
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
539
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
540
540
  "use strict";
541
541
  Object.defineProperty(exports, "__esModule", { value: true });
542
542
  exports.propertyNames = void 0;
@@ -544,9 +544,9 @@ var require_property_names = __commonJS({
544
544
  }
545
545
  });
546
546
 
547
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
547
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
548
548
  var require_symbol_removal = __commonJS({
549
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
549
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
550
550
  "use strict";
551
551
  Object.defineProperty(exports, "__esModule", { value: true });
552
552
  exports.symbolRemoval = void 0;
@@ -554,9 +554,9 @@ var require_symbol_removal = __commonJS({
554
554
  }
555
555
  });
556
556
 
557
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/index.js
557
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js
558
558
  var require_data = __commonJS({
559
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
559
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
560
560
  "use strict";
561
561
  Object.defineProperty(exports, "__esModule", { value: true });
562
562
  var tslib_1 = require_tslib();
@@ -573,9 +573,9 @@ var require_data = __commonJS({
573
573
  }
574
574
  });
575
575
 
576
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
576
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
577
577
  var require_upgrade_data = __commonJS({
578
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
578
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
579
579
  "use strict";
580
580
  Object.defineProperty(exports, "__esModule", { value: true });
581
581
  exports.materialUpgradeData = void 0;
@@ -595,7 +595,7 @@ var require_upgrade_data = __commonJS({
595
595
  }
596
596
  });
597
597
 
598
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/index.mjs
598
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/index.mjs
599
599
  var ng_update_exports = {};
600
600
  __export(ng_update_exports, {
601
601
  updateToV17: () => updateToV17
@@ -8,6 +8,8 @@
8
8
  @use '../core/theming/inspection';
9
9
  @use '../core/typography/typography';
10
10
 
11
+ @mixin base($theme) {}
12
+
11
13
  @mixin color($theme) {
12
14
  @include sass-utils.current-selector-or-root() {
13
15
  @include token-utils.create-token-values(tokens-mat-select.$prefix,
@@ -58,6 +60,7 @@
58
60
 
59
61
  @mixin theme($theme) {
60
62
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-select') {
63
+ @include base($theme);
61
64
  @if inspection.theme-has($theme, color) {
62
65
  @include color($theme);
63
66
  }
@@ -4,6 +4,13 @@
4
4
  @use '../core/tokens/token-utils';
5
5
  @use '../core/style/sass-utils';
6
6
 
7
+ @mixin base($theme) {
8
+ @include sass-utils.current-selector-or-root() {
9
+ @include token-utils.create-token-values(
10
+ tokens-mat-sidenav.$prefix, tokens-mat-sidenav.get-unthemable-tokens());
11
+ }
12
+ }
13
+
7
14
  @mixin color($theme) {
8
15
  @include sass-utils.current-selector-or-root() {
9
16
  @include token-utils.create-token-values(tokens-mat-sidenav.$prefix,
@@ -17,6 +24,7 @@
17
24
 
18
25
  @mixin theme($theme) {
19
26
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-sidenav') {
27
+ @include base($theme);
20
28
  @if inspection.theme-has($theme, color) {
21
29
  @include color($theme);
22
30
  }
@@ -8,6 +8,12 @@
8
8
  @use '../core/tokens/m2/mat/slide-toggle' as m2-mat-slide-toggle;
9
9
  @use '../core/tokens/token-utils';
10
10
 
11
+ @mixin base($theme) {
12
+ .mdc-switch {
13
+ @include mdc-switch-theme.theme(m2-mdc-switch.get-unthemable-tokens());
14
+ }
15
+ }
16
+
11
17
  @mixin color($theme) {
12
18
  $is-dark: inspection.get-theme-type($theme) == dark;
13
19
  $mdc-switch-color-tokens: m2-mdc-switch.get-color-tokens($theme);
@@ -62,6 +68,7 @@
62
68
 
63
69
  @mixin theme($theme) {
64
70
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-slide-toggle') {
71
+ @include base($theme);
65
72
  @if inspection.theme-has($theme, color) {
66
73
  @include color($theme);
67
74
  }
@@ -35,22 +35,22 @@
35
35
 
36
36
  $mat-slider-color-tokens: tokens-mat-slider.get-color-tokens($theme);
37
37
 
38
- // Add values for MDC slider tokens.
39
- .mat-mdc-slider {
40
- @include mdc-slider-theme.theme($mdc-color-tokens);
41
- @include _slider-ripple-color($theme, primary);
42
- @include token-utils.create-token-values(
43
- tokens-mat-slider.$prefix,
44
- $mat-slider-color-tokens
45
- );
38
+ // Add values for MDC slider tokens.
39
+ @include sass-utils.current-selector-or-root() {
40
+ @include mdc-slider-theme.theme($mdc-color-tokens);
41
+ @include _slider-ripple-color($theme, primary);
42
+ @include token-utils.create-token-values(
43
+ tokens-mat-slider.$prefix,
44
+ $mat-slider-color-tokens
45
+ );
46
46
 
47
- &.mat-accent {
48
- @include mdc-slider-theme.theme(
49
- tokens-mdc-slider.private-get-color-palette-color-tokens($theme, accent));
50
- @include _slider-ripple-color($theme, accent);
51
- }
47
+ .mat-accent {
48
+ @include mdc-slider-theme.theme(
49
+ tokens-mdc-slider.private-get-color-palette-color-tokens($theme, accent));
50
+ @include _slider-ripple-color($theme, accent);
51
+ }
52
52
 
53
- &.mat-warn {
53
+ .mat-warn {
54
54
  @include mdc-slider-theme.theme(
55
55
  tokens-mdc-slider.private-get-color-palette-color-tokens($theme, warn));
56
56
  @include _slider-ripple-color($theme, warn);
@@ -65,7 +65,7 @@
65
65
  }
66
66
  @else {
67
67
  // Add values for MDC slider tokens.
68
- .mat-mdc-slider {
68
+ @include sass-utils.current-selector-or-root() {
69
69
  @include mdc-slider-theme.theme(tokens-mdc-slider.get-typography-tokens($theme));
70
70
  }
71
71
  }
@@ -77,7 +77,7 @@
77
77
  }
78
78
  @else {
79
79
  // Add values for MDC slider tokens.
80
- .mat-mdc-slider {
80
+ @include sass-utils.current-selector-or-root() {
81
81
  @include mdc-slider-theme.theme(tokens-mdc-slider.get-density-tokens($theme));
82
82
  }
83
83
  }
@@ -13,11 +13,10 @@ import { DomPortal } from '@angular/cdk/portal';
13
13
  import { ElementRef } from '@angular/core';
14
14
  import { EmbeddedViewRef } from '@angular/core';
15
15
  import * as i0 from '@angular/core';
16
- import * as i4 from '@angular/cdk/overlay';
17
- import * as i5 from '@angular/cdk/portal';
18
- import * as i6 from '@angular/common';
19
- import * as i7 from '@angular/material/button';
20
- import * as i8 from '@angular/material/core';
16
+ import * as i1 from '@angular/cdk/overlay';
17
+ import * as i2 from '@angular/cdk/portal';
18
+ import * as i3 from '@angular/material/button';
19
+ import * as i4 from '@angular/material/core';
21
20
  import { InjectionToken } from '@angular/core';
22
21
  import { Injector } from '@angular/core';
23
22
  import { LiveAnnouncer } from '@angular/cdk/a11y';
@@ -32,20 +31,20 @@ import { TemplatePortal } from '@angular/cdk/portal';
32
31
  import { TemplateRef } from '@angular/core';
33
32
  import { ViewContainerRef } from '@angular/core';
34
33
 
35
- declare namespace i1 {
34
+ declare namespace i5 {
36
35
  export {
37
36
  TextOnlySnackBar,
38
37
  SimpleSnackBar
39
38
  }
40
39
  }
41
40
 
42
- declare namespace i2 {
41
+ declare namespace i6 {
43
42
  export {
44
43
  MatSnackBarContainer
45
44
  }
46
45
  }
47
46
 
48
- declare namespace i3 {
47
+ declare namespace i7 {
49
48
  export {
50
49
  MatSnackBarLabel,
51
50
  MatSnackBarActions,
@@ -144,13 +143,13 @@ export declare class MatSnackBar implements OnDestroy {
144
143
  /** Directive that should be applied to each of the snack bar's action buttons. */
145
144
  export declare class MatSnackBarAction {
146
145
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarAction, never>;
147
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarAction, "[matSnackBarAction]", never, {}, {}, never, never, false, never>;
146
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarAction, "[matSnackBarAction]", never, {}, {}, never, never, true, never>;
148
147
  }
149
148
 
150
149
  /** Directive that should be applied to the element containing the snack bar's action buttons. */
151
150
  export declare class MatSnackBarActions {
152
151
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarActions, never>;
153
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarActions, "[matSnackBarActions]", never, {}, {}, never, never, false, never>;
152
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarActions, "[matSnackBarActions]", never, {}, {}, never, never, true, never>;
154
153
  }
155
154
 
156
155
  /**
@@ -282,7 +281,7 @@ export declare class MatSnackBarContainer extends BasePortalOutlet implements On
282
281
  */
283
282
  private _screenReaderAnnounce;
284
283
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarContainer, never>;
285
- static ɵcmp: i0.ɵɵComponentDeclaration<MatSnackBarContainer, "mat-snack-bar-container", never, {}, {}, never, never, false, never>;
284
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatSnackBarContainer, "mat-snack-bar-container", never, {}, {}, never, never, true, never>;
286
285
  }
287
286
 
288
287
  /** Event that is emitted when a snack bar is dismissed. */
@@ -297,12 +296,12 @@ export declare type MatSnackBarHorizontalPosition = 'start' | 'center' | 'end' |
297
296
  /** Directive that should be applied to the text element to be rendered in the snack bar. */
298
297
  export declare class MatSnackBarLabel {
299
298
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarLabel, never>;
300
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarLabel, "[matSnackBarLabel]", never, {}, {}, never, never, false, never>;
299
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MatSnackBarLabel, "[matSnackBarLabel]", never, {}, {}, never, never, true, never>;
301
300
  }
302
301
 
303
302
  export declare class MatSnackBarModule {
304
303
  static ɵfac: i0.ɵɵFactoryDeclaration<MatSnackBarModule, never>;
305
- static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, [typeof i1.SimpleSnackBar, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction], [typeof i4.OverlayModule, typeof i5.PortalModule, typeof i6.CommonModule, typeof i7.MatButtonModule, typeof i8.MatCommonModule], [typeof i8.MatCommonModule, typeof i2.MatSnackBarContainer, typeof i3.MatSnackBarLabel, typeof i3.MatSnackBarActions, typeof i3.MatSnackBarAction]>;
304
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MatSnackBarModule, never, [typeof i1.OverlayModule, typeof i2.PortalModule, typeof i3.MatButtonModule, typeof i4.MatCommonModule, typeof i5.SimpleSnackBar, typeof i6.MatSnackBarContainer, typeof i7.MatSnackBarLabel, typeof i7.MatSnackBarActions, typeof i7.MatSnackBarAction], [typeof i4.MatCommonModule, typeof i6.MatSnackBarContainer, typeof i7.MatSnackBarLabel, typeof i7.MatSnackBarActions, typeof i7.MatSnackBarAction]>;
306
305
  static ɵinj: i0.ɵɵInjectorDeclaration<MatSnackBarModule>;
307
306
  }
308
307
 
@@ -374,7 +373,7 @@ export declare class SimpleSnackBar implements TextOnlySnackBar {
374
373
  /** If the action button should be shown. */
375
374
  get hasAction(): boolean;
376
375
  static ɵfac: i0.ɵɵFactoryDeclaration<SimpleSnackBar, never>;
377
- static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", ["matSnackBar"], {}, {}, never, never, false, never>;
376
+ static ɵcmp: i0.ɵɵComponentDeclaration<SimpleSnackBar, "simple-snack-bar", ["matSnackBar"], {}, {}, never, never, true, never>;
378
377
  }
379
378
 
380
379
  /**
@@ -3,6 +3,10 @@
3
3
  @use '../core/theming/theming';
4
4
  @use '../core/theming/inspection';
5
5
 
6
+ @mixin base($theme) {
7
+ // TODO(mmalerba): Move sort header base tokens here
8
+ }
9
+
6
10
  @mixin color($theme) {
7
11
  .mat-sort-header-arrow {
8
12
  $table-background: inspection.get-theme-color($theme, background, card);
@@ -30,6 +34,7 @@
30
34
 
31
35
  @mixin theme($theme) {
32
36
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-sort') {
37
+ @include base($theme);
33
38
  @if inspection.theme-has($theme, color) {
34
39
  @include color($theme);
35
40
  }
@@ -5,6 +5,8 @@
5
5
  @use '../core/tokens/token-utils';
6
6
  @use '../core/tokens/m2/mat/stepper' as tokens-mat-stepper;
7
7
 
8
+ @mixin base($theme) {}
9
+
8
10
  @mixin color($theme) {
9
11
  @include sass-utils.current-selector-or-root() {
10
12
  @include token-utils.create-token-values(tokens-mat-stepper.$prefix,
@@ -38,6 +40,7 @@
38
40
 
39
41
  @mixin theme($theme) {
40
42
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-stepper') {
43
+ @include base($theme);
41
44
  @if inspection.theme-has($theme, color) {
42
45
  @include color($theme);
43
46
  }
@@ -3,34 +3,31 @@
3
3
  @use '../core/theming/inspection';
4
4
  @use '../core/typography/typography';
5
5
  @use '../core/tokens/token-utils';
6
+ @use '../core/style/sass-utils';
6
7
 
7
- @mixin _output-tokens {
8
- @if (&) {
9
- @content;
10
- }
11
- @else {
12
- html {
13
- @content;
14
- }
8
+ @mixin base($theme) {
9
+ @include sass-utils.current-selector-or-root() {
10
+ @include token-utils.create-token-values(
11
+ tokens-mat-table.$prefix, tokens-mat-table.get-unthemable-tokens());
15
12
  }
16
13
  }
17
14
 
18
15
  @mixin color($theme) {
19
- @include _output-tokens {
16
+ @include sass-utils.current-selector-or-root() {
20
17
  @include token-utils.create-token-values(tokens-mat-table.$prefix,
21
18
  tokens-mat-table.get-color-tokens($theme));
22
19
  }
23
20
  }
24
21
 
25
22
  @mixin typography($theme) {
26
- @include _output-tokens {
23
+ @include sass-utils.current-selector-or-root() {
27
24
  @include token-utils.create-token-values(tokens-mat-table.$prefix,
28
25
  tokens-mat-table.get-typography-tokens($theme));
29
26
  }
30
27
  }
31
28
 
32
29
  @mixin density($theme) {
33
- @include _output-tokens {
30
+ @include sass-utils.current-selector-or-root() {
34
31
  @include token-utils.create-token-values(tokens-mat-table.$prefix,
35
32
  tokens-mat-table.get-density-tokens($theme));
36
33
  }
@@ -38,6 +35,7 @@
38
35
 
39
36
  @mixin theme($theme) {
40
37
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-table') {
38
+ @include base($theme);
41
39
  @if inspection.theme-has($theme, color) {
42
40
  @include color($theme);
43
41
  }
@@ -215,11 +215,6 @@ $mat-tab-animation-duration: 500ms !default;
215
215
  overflow: hidden;
216
216
  position: relative;
217
217
  flex-shrink: 0;
218
-
219
- @include mdc-tab-indicator-theme.theme(tokens-mdc-tab-indicator.get-unthemable-tokens());
220
- @include mdc-tab-theme.secondary-navigation-tab-theme(tokens-mdc-tab.get-unthemable-tokens());
221
- @include token-utils.create-token-values(
222
- tokens-mat-tab-header.$prefix, tokens-mat-tab-header.get-unthemable-tokens());
223
218
  }
224
219
 
225
220
  .mdc-tab-indicator .mdc-tab-indicator__content {
@@ -352,11 +347,6 @@ $mat-tab-animation-duration: 500ms !default;
352
347
 
353
348
  @mixin paginated-tab-header-with-background($header-selector, $tab-selector) {
354
349
  &.mat-tabs-with-background {
355
- @include token-utils.create-token-values(
356
- tokens-mat-tab-header-with-background.$prefix,
357
- tokens-mat-tab-header-with-background.get-unthemable-tokens()
358
- );
359
-
360
350
  @include token-utils.use-tokens(
361
351
  tokens-mat-tab-header-with-background.$prefix,
362
352
  tokens-mat-tab-header-with-background.get-token-slots()
@@ -1,5 +1,6 @@
1
1
  @use '@material/tab-indicator/tab-indicator-theme' as mdc-tab-indicator-theme;
2
2
  @use '@material/tab/tab-theme' as mdc-tab-theme;
3
+ @use '../core/style/sass-utils';
3
4
  @use '../core/tokens/m2/mdc/tab' as tokens-mdc-tab;
4
5
  @use '../core/tokens/m2/mdc/tab-indicator' as tokens-mdc-tab-indicator;
5
6
  @use '../core/tokens/m2/mat/tab-header' as tokens-mat-tab-header;
@@ -9,6 +10,19 @@
9
10
  @use '../core/typography/typography';
10
11
  @use '../core/tokens/token-utils';
11
12
 
13
+ @mixin base($theme) {
14
+ @include sass-utils.current-selector-or-root() {
15
+ @include mdc-tab-indicator-theme.theme(tokens-mdc-tab-indicator.get-unthemable-tokens());
16
+ @include mdc-tab-theme.secondary-navigation-tab-theme(tokens-mdc-tab.get-unthemable-tokens());
17
+ @include token-utils.create-token-values(
18
+ tokens-mat-tab-header.$prefix, tokens-mat-tab-header.get-unthemable-tokens());
19
+ @include token-utils.create-token-values(
20
+ tokens-mat-tab-header-with-background.$prefix,
21
+ tokens-mat-tab-header-with-background.get-unthemable-tokens()
22
+ );
23
+ }
24
+ }
25
+
12
26
  @mixin color($theme) {
13
27
  .mat-mdc-tab-group, .mat-mdc-tab-nav-bar {
14
28
  @include _palette-styles($theme, primary);
@@ -77,6 +91,7 @@
77
91
 
78
92
  @mixin theme($theme) {
79
93
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-tabs') {
94
+ @include base($theme);
80
95
  @if inspection.theme-has($theme, color) {
81
96
  @include color($theme);
82
97
  }
@@ -16,6 +16,8 @@
16
16
  );
17
17
  }
18
18
 
19
+ @mixin base($theme) {}
20
+
19
21
  @mixin color($theme) {
20
22
  @if inspection.get-theme-version($theme) == 1 {
21
23
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
@@ -75,6 +77,7 @@
75
77
  @include _theme-from-tokens(inspection.get-theme-tokens($theme));
76
78
  }
77
79
  @else {
80
+ @include base($theme);
78
81
  @if inspection.theme-has($theme, color) {
79
82
  @include color($theme);
80
83
  }
@@ -4,6 +4,10 @@
4
4
  @use '../core/typography/typography';
5
5
  @use './tree-variables';
6
6
 
7
+ @mixin base($theme) {
8
+ // TODO(mmalerba): Move tree base tokens here
9
+ }
10
+
7
11
  @mixin color($theme) {
8
12
  .mat-tree {
9
13
  background: inspection.get-theme-color($theme, background, card);
@@ -44,6 +48,7 @@
44
48
 
45
49
  @mixin theme($theme) {
46
50
  @include theming.private-check-duplicate-theme-styles($theme, 'mat-tree') {
51
+ @include base($theme);
47
52
  @if inspection.theme-has($theme, color) {
48
53
  @include color($theme);
49
54
  }