@angular/material 20.0.2 → 20.1.0-next.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.
Files changed (110) hide show
  1. package/_index.scss +0 -1
  2. package/autocomplete/_m2-autocomplete.scss +1 -14
  3. package/badge/_badge-theme.scss +2 -2
  4. package/badge/_m2-badge.scss +13 -34
  5. package/bottom-sheet/_m2-bottom-sheet.scss +2 -15
  6. package/button/_button-theme.scss +2 -2
  7. package/button/_fab-theme.scss +2 -2
  8. package/button/_icon-button-theme.scss +2 -2
  9. package/button/_m2-button.scss +59 -108
  10. package/button/_m2-fab.scss +28 -60
  11. package/button/_m2-icon-button.scss +12 -26
  12. package/button-toggle/_button-toggle-theme.scss +2 -1
  13. package/button-toggle/_m2-button-toggle.scss +24 -49
  14. package/card/_m2-card.scss +9 -18
  15. package/checkbox/_checkbox-theme.scss +4 -3
  16. package/checkbox/_m2-checkbox.scss +31 -59
  17. package/chips/_chips-theme.scss +7 -4
  18. package/chips/_m2-chip.scss +19 -27
  19. package/chips/index.d.ts +56 -4
  20. package/chips/testing/index.d.ts +23 -2
  21. package/core/_m2-app.scss +6 -19
  22. package/core/m2/_theming.scss +55 -9
  23. package/core/option/_m2-optgroup.scss +1 -14
  24. package/core/option/_m2-option.scss +8 -16
  25. package/core/option/_option-theme.scss +3 -3
  26. package/core/ripple/_m2-ripple.scss +0 -13
  27. package/core/selection/pseudo-checkbox/_m2-pseudo-checkbox.scss +10 -20
  28. package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +3 -3
  29. package/core/style/_private.scss +6 -9
  30. package/core/style/_sass-utils.scss +0 -29
  31. package/core/tokens/_m2-utils.scss +20 -42
  32. package/{date-range-input-harness.d-CaEyN8dT.d.ts → date-range-input-harness.d-CJ4r85Uf.d.ts} +7 -4
  33. package/datepicker/_datepicker-theme.scss +10 -6
  34. package/datepicker/_m2-datepicker.scss +32 -41
  35. package/datepicker/testing/index.d.ts +3 -3
  36. package/dialog/_m2-dialog.scss +3 -24
  37. package/divider/_m2-divider.scss +1 -14
  38. package/expansion/_m2-expansion.scss +15 -25
  39. package/fesm2022/chips/testing.mjs +26 -1
  40. package/fesm2022/chips/testing.mjs.map +1 -1
  41. package/fesm2022/chips.mjs +131 -13
  42. package/fesm2022/chips.mjs.map +1 -1
  43. package/fesm2022/core.mjs +1 -1
  44. package/fesm2022/core.mjs.map +1 -1
  45. package/fesm2022/{date-range-input-harness-Bp1T4oUe.mjs → date-range-input-harness-DEyfkeOs.mjs} +32 -4
  46. package/fesm2022/date-range-input-harness-DEyfkeOs.mjs.map +1 -0
  47. package/fesm2022/datepicker/testing.mjs +3 -3
  48. package/fesm2022/form-field/testing/control.mjs +26 -1
  49. package/fesm2022/form-field/testing/control.mjs.map +1 -1
  50. package/fesm2022/form-field/testing.mjs +4 -4
  51. package/fesm2022/input/testing.mjs +7 -4
  52. package/fesm2022/input/testing.mjs.map +1 -1
  53. package/fesm2022/{input-harness-oQzj5EsQ.mjs → input-harness-C5Msdc4-.mjs} +6 -3
  54. package/fesm2022/input-harness-C5Msdc4-.mjs.map +1 -0
  55. package/fesm2022/menu.mjs +11 -2
  56. package/fesm2022/menu.mjs.map +1 -1
  57. package/fesm2022/paginator/testing.mjs +2 -3
  58. package/fesm2022/paginator/testing.mjs.map +1 -1
  59. package/fesm2022/select/testing.mjs +8 -5
  60. package/fesm2022/select/testing.mjs.map +1 -1
  61. package/fesm2022/stepper.mjs +2 -2
  62. package/fesm2022/stepper.mjs.map +1 -1
  63. package/form-field/_form-field-theme.scss +2 -2
  64. package/form-field/_m2-form-field.scss +58 -92
  65. package/form-field/testing/control/index.d.ts +8 -5
  66. package/form-field/testing/index.d.ts +5 -5
  67. package/form-field-control-harness.d-BLvFBy6v.d.ts +18 -0
  68. package/grid-list/_m2-grid-list.scss +0 -13
  69. package/icon/_m2-icon.scss +0 -13
  70. package/input/testing/index.d.ts +5 -4
  71. package/{input-harness.d-8fkAAbu2.d.ts → input-harness.d-DVI6ttzl.d.ts} +4 -4
  72. package/list/_list-theme.scss +10 -5
  73. package/list/_m2-list.scss +17 -31
  74. package/menu/_m2-menu.scss +4 -18
  75. package/menu/index.d.ts +2 -0
  76. package/package.json +6 -6
  77. package/paginator/_m2-paginator.scss +6 -18
  78. package/paginator/testing/index.d.ts +2 -3
  79. package/prebuilt-themes/deeppurple-amber.css +1 -1
  80. package/prebuilt-themes/indigo-pink.css +1 -1
  81. package/prebuilt-themes/pink-bluegrey.css +1 -1
  82. package/prebuilt-themes/purple-green.css +1 -1
  83. package/progress-bar/_m2-progress-bar.scss +11 -20
  84. package/progress-bar/_progress-bar-theme.scss +2 -2
  85. package/progress-spinner/_m2-progress-spinner.scss +7 -15
  86. package/progress-spinner/_progress-spinner-theme.scss +2 -2
  87. package/radio/_m2-radio.scss +21 -32
  88. package/radio/_radio-theme.scss +6 -3
  89. package/schematics/ng-add/index.js +2 -2
  90. package/select/_m2-select.scss +12 -35
  91. package/select/testing/index.d.ts +5 -6
  92. package/sidenav/_m2-sidenav.scss +10 -20
  93. package/slide-toggle/_m2-slide-toggle.scss +13 -20
  94. package/slide-toggle/_slide-toggle-theme.scss +3 -2
  95. package/slider/_m2-slider.scss +5 -18
  96. package/snack-bar/_m2-snack-bar.scss +6 -22
  97. package/sort/_m2-sort.scss +1 -34
  98. package/stepper/_m2-stepper.scss +23 -34
  99. package/stepper/_m3-stepper.scss +2 -2
  100. package/stepper/_stepper-theme.scss +2 -2
  101. package/table/_m2-table.scss +4 -17
  102. package/tabs/_m2-tabs.scss +16 -27
  103. package/tabs/_tabs-theme.scss +4 -4
  104. package/timepicker/_m2-timepicker.scss +1 -14
  105. package/toolbar/_m2-toolbar.scss +2 -15
  106. package/tooltip/_m2-tooltip.scss +4 -14
  107. package/tree/_m2-tree.scss +2 -17
  108. package/core/tokens/_m2-tokens.scss +0 -131
  109. package/fesm2022/date-range-input-harness-Bp1T4oUe.mjs.map +0 -1
  110. package/fesm2022/input-harness-oQzj5EsQ.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
- import { MatFormFieldControlHarness } from './control/index.js';
1
+ import { M as MatFormFieldControlHarness } from '../../form-field-control-harness.d-BLvFBy6v.js';
2
2
  import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
3
- import { M as MatInputHarness } from '../../input-harness.d-8fkAAbu2.js';
3
+ import { M as MatInputHarness } from '../../input-harness.d-DVI6ttzl.js';
4
4
  import { MatSelectHarness } from '../../select/testing/index.js';
5
- import { M as MatDatepickerInputHarness, g as MatDateRangeInputHarness } from '../../date-range-input-harness.d-CaEyN8dT.js';
6
- import '../../option-harness.d-IqsW95GR.js';
7
- import '../../core/testing/index.js';
5
+ import { M as MatDatepickerInputHarness, g as MatDateRangeInputHarness } from '../../date-range-input-harness.d-CJ4r85Uf.js';
6
+ import '@angular/material/form-field/testing/control';
7
+ import '@angular/material/core/testing';
8
8
 
9
9
  /** A set of criteria that can be used to filter a list of `MatFormFieldHarness` instances. */
10
10
  interface FormFieldHarnessFilters extends BaseHarnessFilters {
@@ -0,0 +1,18 @@
1
+ import { ComponentHarness } from '@angular/cdk/testing';
2
+
3
+ /**
4
+ * Base class for custom form-field control harnesses. Harnesses for
5
+ * custom controls with form-fields need to implement this interface.
6
+ */
7
+ declare abstract class MatFormFieldControlHarness extends ComponentHarness {
8
+ }
9
+ /**
10
+ * Shared behavior for `MatFormFieldControlHarness` implementations
11
+ */
12
+ declare abstract class MatFormFieldControlHarnessBase extends MatFormFieldControlHarness {
13
+ private readonly _floatingLabelSelector;
14
+ /** Gets the text content of the floating label, if it exists. */
15
+ getLabel(): Promise<string | null>;
16
+ }
17
+
18
+ export { MatFormFieldControlHarness as M, MatFormFieldControlHarnessBase as a };
@@ -1,6 +1,4 @@
1
- @use '../core/tokens/m2-utils';
2
1
  @use '../core/theming/inspection';
3
- @use '../core/style/sass-utils';
4
2
 
5
3
  // Tokens that can't be configured through Angular Material's current theming API,
6
4
  // but may be in a future version of the theming API.
@@ -34,14 +32,3 @@
34
32
  @function get-density-tokens($theme) {
35
33
  @return ();
36
34
  }
37
-
38
- // Combines the tokens generated by the above functions into a single map with placeholder values.
39
- // This is used to create token slots.
40
- @function get-token-slots() {
41
- @return sass-utils.deep-merge-all(
42
- get-unthemable-tokens(),
43
- get-color-tokens(m2-utils.$placeholder-color-config),
44
- get-typography-tokens(m2-utils.$placeholder-typography-config),
45
- get-density-tokens(m2-utils.$placeholder-density-config)
46
- );
47
- }
@@ -1,5 +1,3 @@
1
- @use '../core/tokens/m2-utils';
2
- @use '../core/style/sass-utils';
3
1
 
4
2
  // Tokens that can't be configured through Angular Material's current theming API,
5
3
  // but may be in a future version of the theming API.
@@ -29,14 +27,3 @@
29
27
  icon-color: $color,
30
28
  );
31
29
  }
32
-
33
- // Combines the tokens generated by the above functions into a single map with placeholder values.
34
- // This is used to create token slots.
35
- @function get-token-slots() {
36
- @return sass-utils.deep-merge-all(
37
- get-unthemable-tokens(),
38
- get-color-tokens(m2-utils.$placeholder-color-config),
39
- get-typography-tokens(m2-utils.$placeholder-typography-config),
40
- get-density-tokens(m2-utils.$placeholder-density-config)
41
- );
42
- }
@@ -1,9 +1,10 @@
1
- export { I as InputHarnessFilters, M as MatInputHarness } from '../../input-harness.d-8fkAAbu2.js';
1
+ export { I as InputHarnessFilters, M as MatInputHarness } from '../../input-harness.d-DVI6ttzl.js';
2
2
  import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
3
- import { MatFormFieldControlHarness } from '../../form-field/testing/control/index.js';
3
+ import { a as MatFormFieldControlHarnessBase } from '../../form-field-control-harness.d-BLvFBy6v.js';
4
+ import { MatFormFieldControlHarnessFilters } from '@angular/material/form-field/testing/control';
4
5
 
5
6
  /** A set of criteria that can be used to filter a list of `MatNativeSelectHarness` instances. */
6
- interface NativeSelectHarnessFilters extends BaseHarnessFilters {
7
+ interface NativeSelectHarnessFilters extends MatFormFieldControlHarnessFilters {
7
8
  }
8
9
  /** A set of criteria that can be used to filter a list of `MatNativeOptionHarness` instances. */
9
10
  interface NativeOptionHarnessFilters extends BaseHarnessFilters {
@@ -34,7 +35,7 @@ declare class MatNativeOptionHarness extends ComponentHarness {
34
35
  }
35
36
 
36
37
  /** Harness for interacting with a native `select` in tests. */
37
- declare class MatNativeSelectHarness extends MatFormFieldControlHarness {
38
+ declare class MatNativeSelectHarness extends MatFormFieldControlHarnessBase {
38
39
  static hostSelector: string;
39
40
  /**
40
41
  * Gets a `HarnessPredicate` that can be used to search for a `MatNativeSelectHarness` that meets
@@ -1,8 +1,8 @@
1
- import { BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
2
- import { MatFormFieldControlHarness } from './form-field/testing/control/index.js';
1
+ import { HarnessPredicate } from '@angular/cdk/testing';
2
+ import { MatFormFieldControlHarnessFilters, MatFormFieldControlHarnessBase } from '@angular/material/form-field/testing/control';
3
3
 
4
4
  /** A set of criteria that can be used to filter a list of `MatInputHarness` instances. */
5
- interface InputHarnessFilters extends BaseHarnessFilters {
5
+ interface InputHarnessFilters extends MatFormFieldControlHarnessFilters {
6
6
  /** Filters based on the value of the input. */
7
7
  value?: string | RegExp;
8
8
  /** Filters based on the placeholder text of the input. */
@@ -10,7 +10,7 @@ interface InputHarnessFilters extends BaseHarnessFilters {
10
10
  }
11
11
 
12
12
  /** Harness for interacting with a standard Material inputs in tests. */
13
- declare class MatInputHarness extends MatFormFieldControlHarness {
13
+ declare class MatInputHarness extends MatFormFieldControlHarnessBase {
14
14
  static hostSelector: string;
15
15
  /**
16
16
  * Gets a `HarnessPredicate` that can be used to search for a `MatInputHarness` that meets
@@ -37,25 +37,30 @@
37
37
  .mat-accent {
38
38
  .mdc-list-item__start,
39
39
  .mdc-list-item__end {
40
- @include token-utils.create-token-values-mixed(m2-radio.get-color-tokens($theme, accent));
40
+ @include token-utils.create-token-values-mixed(
41
+ m2-radio.get-color-tokens($theme, secondary));
41
42
  }
42
43
  }
43
44
 
44
45
  .mat-warn {
45
46
  .mdc-list-item__start,
46
47
  .mdc-list-item__end {
47
- @include token-utils.create-token-values-mixed(m2-radio.get-color-tokens($theme, warn));
48
+ @include token-utils.create-token-values-mixed(
49
+ m2-radio.get-color-tokens($theme, error));
48
50
  }
49
51
  }
50
52
 
51
53
  .mat-mdc-list-option {
52
- @include token-utils.create-token-values-mixed(m2-checkbox.get-color-tokens($theme, primary));
54
+ @include token-utils.create-token-values-mixed(
55
+ m2-checkbox.get-color-tokens($theme, primary));
53
56
  }
54
57
  .mat-mdc-list-option.mat-accent {
55
- @include token-utils.create-token-values-mixed(m2-checkbox.get-color-tokens($theme, accent));
58
+ @include token-utils.create-token-values-mixed(
59
+ m2-checkbox.get-color-tokens($theme, secondary));
56
60
  }
57
61
  .mat-mdc-list-option.mat-warn {
58
- @include token-utils.create-token-values-mixed(m2-checkbox.get-color-tokens($theme, warn));
62
+ @include token-utils.create-token-values-mixed(
63
+ m2-checkbox.get-color-tokens($theme, error));
59
64
  }
60
65
 
61
66
  // There is no token for activated color on nav list.
@@ -1,7 +1,6 @@
1
- @use '../core/tokens/m2-utils';
2
- @use '../core/style/sass-utils';
3
1
  @use '../core/theming/inspection';
4
2
  @use 'sass:map';
3
+ @use '../core/tokens/m2-utils';
5
4
 
6
5
  // Tokens that can't be configured through Angular Material's current theming API,
7
6
  // but may be in a future version of the theming API.
@@ -27,32 +26,30 @@
27
26
 
28
27
  // Tokens that can be configured through Angular Material's color theming API.
29
28
  @function get-color-tokens($theme) {
29
+ $system: m2-utils.get-system($theme);
30
+
30
31
  $is-dark: inspection.get-theme-type($theme) == dark;
31
- $foreground-base: inspection.get-theme-color($theme, foreground, base);
32
- $foreground-text: inspection.get-theme-color($theme, foreground, text);
33
- $foreground-secondary-text: inspection.get-theme-color($theme, foreground, secondary-text);
34
- $foreground-hint-text: inspection.get-theme-color($theme, foreground, hint-text);
35
- $text-icon-on-background: sass-utils.safe-color-change(
36
- $foreground-base, $alpha: if($is-dark, 0.5, 0.38));
32
+ $text-icon-on-background:
33
+ inspection.get-theme-color($theme, foreground, base, if($is-dark, 0.5, 0.38));
37
34
 
38
35
  @return (
39
- list-list-item-label-text-color: $foreground-text,
40
- list-list-item-supporting-text-color: $foreground-secondary-text,
36
+ list-list-item-label-text-color: map.get($system, on-surface),
37
+ list-list-item-supporting-text-color: map.get($system, on-surface-variant),
41
38
  list-list-item-leading-icon-color: $text-icon-on-background,
42
- list-list-item-trailing-supporting-text-color: $foreground-hint-text,
39
+ list-list-item-trailing-supporting-text-color: map.get($system, on-surface-variant),
43
40
  list-list-item-trailing-icon-color: $text-icon-on-background,
44
41
  list-list-item-selected-trailing-icon-color: $text-icon-on-background,
45
- list-list-item-disabled-label-text-color: $foreground-base,
46
- list-list-item-disabled-leading-icon-color: $foreground-base,
47
- list-list-item-disabled-trailing-icon-color: $foreground-base,
48
- list-list-item-hover-label-text-color: $foreground-text,
42
+ list-list-item-disabled-label-text-color: map.get($system, on-surface),
43
+ list-list-item-disabled-leading-icon-color: map.get($system, on-surface),
44
+ list-list-item-disabled-trailing-icon-color: map.get($system, on-surface),
45
+ list-list-item-hover-label-text-color: map.get($system, on-surface),
49
46
  list-list-item-hover-leading-icon-color: $text-icon-on-background,
50
- list-list-item-hover-state-layer-color: $foreground-base,
51
- list-list-item-hover-state-layer-opacity: if($is-dark, 0.08, 0.04),
47
+ list-list-item-hover-state-layer-color: map.get($system, on-surface),
48
+ list-list-item-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity),
52
49
  list-list-item-hover-trailing-icon-color: $text-icon-on-background,
53
- list-list-item-focus-label-text-color: $foreground-text,
54
- list-list-item-focus-state-layer-color: $foreground-base,
55
- list-list-item-focus-state-layer-opacity: if($is-dark, 0.24, 0.12),
50
+ list-list-item-focus-label-text-color: map.get($system, on-surface),
51
+ list-list-item-focus-state-layer-color: map.get($system, on-surface),
52
+ list-list-item-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity),
56
53
  );
57
54
  }
58
55
 
@@ -121,14 +118,3 @@
121
118
  ), $scale),
122
119
  );
123
120
  }
124
-
125
- // Combines the tokens generated by the above functions into a single map with placeholder values.
126
- // This is used to create token slots.
127
- @function get-token-slots() {
128
- @return sass-utils.deep-merge-all(
129
- get-unthemable-tokens(),
130
- get-color-tokens(m2-utils.$placeholder-color-config),
131
- get-typography-tokens(m2-utils.$placeholder-typography-config),
132
- get-density-tokens(m2-utils.$placeholder-density-config)
133
- );
134
- }
@@ -1,6 +1,4 @@
1
- @use '../core/tokens/m2-utils';
2
1
  @use '../core/theming/inspection';
3
- @use '../core/style/sass-utils';
4
2
  @use '../core/style/elevation';
5
3
 
6
4
  // Tokens that can't be configured through Angular Material's current theming API,
@@ -28,15 +26,14 @@
28
26
  $is-dark: inspection.get-theme-type($theme) == dark;
29
27
  $active-state-layer-color: inspection.get-theme-color($theme, foreground, base,
30
28
  if($is-dark, 0.08, 0.04));
31
- $text-color: inspection.get-theme-color($theme, foreground, text);
32
29
 
33
30
  @return (
34
- menu-item-label-text-color: $text-color,
35
- menu-item-icon-color: $text-color,
31
+ menu-item-label-text-color: inspection.get-theme-color($theme, system, on-surface),
32
+ menu-item-icon-color: inspection.get-theme-color($theme, system, on-surface),
36
33
  menu-item-hover-state-layer-color: $active-state-layer-color,
37
34
  menu-item-focus-state-layer-color: $active-state-layer-color,
38
- menu-container-color: inspection.get-theme-color($theme, background, card),
39
- menu-divider-color: inspection.get-theme-color($theme, foreground, divider),
35
+ menu-container-color: inspection.get-theme-color($theme, system, surface),
36
+ menu-divider-color: inspection.get-theme-color($theme, system, outline),
40
37
  );
41
38
  }
42
39
 
@@ -55,14 +52,3 @@
55
52
  @function get-density-tokens($theme) {
56
53
  @return ();
57
54
  }
58
-
59
- // Combines the tokens generated by the above functions into a single map with placeholder values.
60
- // This is used to create token slots.
61
- @function get-token-slots() {
62
- @return sass-utils.deep-merge-all(
63
- get-unthemable-tokens(),
64
- get-color-tokens(m2-utils.$placeholder-color-config),
65
- get-typography-tokens(m2-utils.$placeholder-typography-config),
66
- get-density-tokens(m2-utils.$placeholder-density-config)
67
- );
68
- }
package/menu/index.d.ts CHANGED
@@ -404,6 +404,8 @@ declare class MatMenuTrigger implements AfterContentInit, OnDestroy {
404
404
  toggleMenu(): void;
405
405
  /** Opens the menu. */
406
406
  openMenu(): void;
407
+ /** Internal method to open menu providing option to auto focus on first item. */
408
+ private _openMenu;
407
409
  /** Closes the menu. */
408
410
  closeMenu(): void;
409
411
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "20.0.2",
3
+ "version": "20.1.0-next.0",
4
4
  "description": "Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -353,11 +353,11 @@
353
353
  }
354
354
  },
355
355
  "peerDependencies": {
356
- "@angular/cdk": "20.0.2",
357
- "@angular/core": "^20.0.0 || ^21.0.0",
358
- "@angular/common": "^20.0.0 || ^21.0.0",
359
- "@angular/forms": "^20.0.0 || ^21.0.0",
360
- "@angular/platform-browser": "^20.0.0 || ^21.0.0",
356
+ "@angular/cdk": "20.1.0-next.0",
357
+ "@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
358
+ "@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
359
+ "@angular/forms": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
360
+ "@angular/platform-browser": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
361
361
  "rxjs": "^6.5.3 || ^7.4.0"
362
362
  },
363
363
  "dependencies": {
@@ -1,9 +1,8 @@
1
1
  @use 'sass:math';
2
2
  @use 'sass:map';
3
- @use '../core/tokens/m2-utils';
4
3
  @use '../core/theming/theming';
5
4
  @use '../core/theming/inspection';
6
- @use '../core/style/sass-utils';
5
+ @use '../core/tokens/m2-utils';
7
6
 
8
7
  // Tokens that can't be configured through Angular Material's current theming API,
9
8
  // but may be in a future version of the theming API.
@@ -13,13 +12,13 @@
13
12
 
14
13
  // Tokens that can be configured through Angular Material's color theming API.
15
14
  @function get-color-tokens($theme) {
16
- $foreground-base: inspection.get-theme-color($theme, foreground, base);
15
+ $system: m2-utils.get-system($theme);
17
16
 
18
17
  @return (
19
- paginator-container-text-color: sass-utils.safe-color-change($foreground-base, $alpha: 0.87),
20
- paginator-container-background-color: inspection.get-theme-color($theme, background, card),
21
- paginator-enabled-icon-color: sass-utils.safe-color-change($foreground-base, $alpha: 0.54),
22
- paginator-disabled-icon-color: sass-utils.safe-color-change($foreground-base, $alpha: 0.12),
18
+ paginator-container-text-color: map.get($system, on-surface),
19
+ paginator-container-background-color: map.get($system, surface),
20
+ paginator-enabled-icon-color: map.get($system, on-surface-variant),
21
+ paginator-disabled-icon-color: inspection.get-theme-color($theme, foreground, base, 0.12),
23
22
  );
24
23
  }
25
24
 
@@ -74,14 +73,3 @@
74
73
  paginator-touch-target-display: if($density-scale < -2, none, block),
75
74
  );
76
75
  }
77
-
78
- // Combines the tokens generated by the above functions into a single map with placeholder values.
79
- // This is used to create token slots.
80
- @function get-token-slots() {
81
- @return sass-utils.deep-merge-all(
82
- get-unthemable-tokens(),
83
- get-color-tokens(m2-utils.$placeholder-color-config),
84
- get-typography-tokens(m2-utils.$placeholder-typography-config),
85
- get-density-tokens(m2-utils.$placeholder-density-config)
86
- );
87
- }
@@ -1,9 +1,8 @@
1
1
  import * as _angular_cdk_testing from '@angular/cdk/testing';
2
2
  import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
3
3
  import { MatSelectHarness } from '../../select/testing/index.js';
4
- import '../../option-harness.d-IqsW95GR.js';
5
- import '../../core/testing/index.js';
6
- import '../../form-field/testing/control/index.js';
4
+ import '@angular/material/core/testing';
5
+ import '@angular/material/form-field/testing/control';
7
6
 
8
7
  /** A set of criteria that can be used to filter a list of `MatPaginatorHarness` instances. */
9
8
  interface PaginatorHarnessFilters extends BaseHarnessFilters {