@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.
- package/_index.scss +0 -1
- package/autocomplete/_m2-autocomplete.scss +1 -14
- package/badge/_badge-theme.scss +2 -2
- package/badge/_m2-badge.scss +13 -34
- package/bottom-sheet/_m2-bottom-sheet.scss +2 -15
- package/button/_button-theme.scss +2 -2
- package/button/_fab-theme.scss +2 -2
- package/button/_icon-button-theme.scss +2 -2
- package/button/_m2-button.scss +59 -108
- package/button/_m2-fab.scss +28 -60
- package/button/_m2-icon-button.scss +12 -26
- package/button-toggle/_button-toggle-theme.scss +2 -1
- package/button-toggle/_m2-button-toggle.scss +24 -49
- package/card/_m2-card.scss +9 -18
- package/checkbox/_checkbox-theme.scss +4 -3
- package/checkbox/_m2-checkbox.scss +31 -59
- package/chips/_chips-theme.scss +7 -4
- package/chips/_m2-chip.scss +19 -27
- package/chips/index.d.ts +56 -4
- package/chips/testing/index.d.ts +23 -2
- package/core/_m2-app.scss +6 -19
- package/core/m2/_theming.scss +55 -9
- package/core/option/_m2-optgroup.scss +1 -14
- package/core/option/_m2-option.scss +8 -16
- package/core/option/_option-theme.scss +3 -3
- package/core/ripple/_m2-ripple.scss +0 -13
- package/core/selection/pseudo-checkbox/_m2-pseudo-checkbox.scss +10 -20
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +3 -3
- package/core/style/_private.scss +6 -9
- package/core/style/_sass-utils.scss +0 -29
- package/core/tokens/_m2-utils.scss +20 -42
- package/{date-range-input-harness.d-CaEyN8dT.d.ts → date-range-input-harness.d-CJ4r85Uf.d.ts} +7 -4
- package/datepicker/_datepicker-theme.scss +10 -6
- package/datepicker/_m2-datepicker.scss +32 -41
- package/datepicker/testing/index.d.ts +3 -3
- package/dialog/_m2-dialog.scss +3 -24
- package/divider/_m2-divider.scss +1 -14
- package/expansion/_m2-expansion.scss +15 -25
- package/fesm2022/chips/testing.mjs +26 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +131 -13
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{date-range-input-harness-Bp1T4oUe.mjs → date-range-input-harness-DEyfkeOs.mjs} +32 -4
- package/fesm2022/date-range-input-harness-DEyfkeOs.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +3 -3
- package/fesm2022/form-field/testing/control.mjs +26 -1
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +4 -4
- package/fesm2022/input/testing.mjs +7 -4
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/{input-harness-oQzj5EsQ.mjs → input-harness-C5Msdc4-.mjs} +6 -3
- package/fesm2022/input-harness-C5Msdc4-.mjs.map +1 -0
- package/fesm2022/menu.mjs +11 -2
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs +2 -3
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/select/testing.mjs +8 -5
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +2 -2
- package/fesm2022/stepper.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +2 -2
- package/form-field/_m2-form-field.scss +58 -92
- package/form-field/testing/control/index.d.ts +8 -5
- package/form-field/testing/index.d.ts +5 -5
- package/form-field-control-harness.d-BLvFBy6v.d.ts +18 -0
- package/grid-list/_m2-grid-list.scss +0 -13
- package/icon/_m2-icon.scss +0 -13
- package/input/testing/index.d.ts +5 -4
- package/{input-harness.d-8fkAAbu2.d.ts → input-harness.d-DVI6ttzl.d.ts} +4 -4
- package/list/_list-theme.scss +10 -5
- package/list/_m2-list.scss +17 -31
- package/menu/_m2-menu.scss +4 -18
- package/menu/index.d.ts +2 -0
- package/package.json +6 -6
- package/paginator/_m2-paginator.scss +6 -18
- package/paginator/testing/index.d.ts +2 -3
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress-bar/_m2-progress-bar.scss +11 -20
- package/progress-bar/_progress-bar-theme.scss +2 -2
- package/progress-spinner/_m2-progress-spinner.scss +7 -15
- package/progress-spinner/_progress-spinner-theme.scss +2 -2
- package/radio/_m2-radio.scss +21 -32
- package/radio/_radio-theme.scss +6 -3
- package/schematics/ng-add/index.js +2 -2
- package/select/_m2-select.scss +12 -35
- package/select/testing/index.d.ts +5 -6
- package/sidenav/_m2-sidenav.scss +10 -20
- package/slide-toggle/_m2-slide-toggle.scss +13 -20
- package/slide-toggle/_slide-toggle-theme.scss +3 -2
- package/slider/_m2-slider.scss +5 -18
- package/snack-bar/_m2-snack-bar.scss +6 -22
- package/sort/_m2-sort.scss +1 -34
- package/stepper/_m2-stepper.scss +23 -34
- package/stepper/_m3-stepper.scss +2 -2
- package/stepper/_stepper-theme.scss +2 -2
- package/table/_m2-table.scss +4 -17
- package/tabs/_m2-tabs.scss +16 -27
- package/tabs/_tabs-theme.scss +4 -4
- package/timepicker/_m2-timepicker.scss +1 -14
- package/toolbar/_m2-toolbar.scss +2 -15
- package/tooltip/_m2-tooltip.scss +4 -14
- package/tree/_m2-tree.scss +2 -17
- package/core/tokens/_m2-tokens.scss +0 -131
- package/fesm2022/date-range-input-harness-Bp1T4oUe.mjs.map +0 -1
- package/fesm2022/input-harness-oQzj5EsQ.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MatFormFieldControlHarness } from '
|
|
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-
|
|
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-
|
|
6
|
-
import '
|
|
7
|
-
import '
|
|
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
|
-
}
|
package/icon/_m2-icon.scss
CHANGED
|
@@ -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
|
-
}
|
package/input/testing/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { I as InputHarnessFilters, M as MatInputHarness } from '../../input-harness.d-
|
|
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 {
|
|
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
|
|
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
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
|
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
|
|
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
|
package/list/_list-theme.scss
CHANGED
|
@@ -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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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.
|
package/list/_m2-list.scss
CHANGED
|
@@ -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
|
-
$
|
|
32
|
-
|
|
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: $
|
|
40
|
-
list-list-item-supporting-text-color: $
|
|
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: $
|
|
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: $
|
|
46
|
-
list-list-item-disabled-leading-icon-color: $
|
|
47
|
-
list-list-item-disabled-trailing-icon-color: $
|
|
48
|
-
list-list-item-hover-label-text-color: $
|
|
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: $
|
|
51
|
-
list-list-item-hover-state-layer-opacity:
|
|
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: $
|
|
54
|
-
list-list-item-focus-state-layer-color: $
|
|
55
|
-
list-list-item-focus-state-layer-opacity:
|
|
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
|
-
}
|
package/menu/_m2-menu.scss
CHANGED
|
@@ -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:
|
|
35
|
-
menu-item-icon-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,
|
|
39
|
-
menu-divider-color: inspection.get-theme-color($theme,
|
|
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.
|
|
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.
|
|
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/
|
|
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
|
-
$
|
|
15
|
+
$system: m2-utils.get-system($theme);
|
|
17
16
|
|
|
18
17
|
@return (
|
|
19
|
-
paginator-container-text-color:
|
|
20
|
-
paginator-container-background-color:
|
|
21
|
-
paginator-enabled-icon-color:
|
|
22
|
-
paginator-disabled-icon-color:
|
|
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 '
|
|
5
|
-
import '
|
|
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 {
|