@angular/material 20.0.4 → 20.1.0-next.1
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 +5 -15
- package/badge/_badge-theme.scss +2 -2
- package/badge/_m2-badge.scss +13 -34
- package/bottom-sheet/_m2-bottom-sheet.scss +6 -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 +83 -127
- package/button/_m2-fab.scss +40 -68
- package/button/_m2-icon-button.scss +18 -30
- package/button/testing/index.d.ts +0 -1
- 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 +33 -62
- package/chips/_chips-theme.scss +7 -4
- package/chips/_m2-chip.scss +22 -47
- 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 +89 -79
- package/core/option/_m2-optgroup.scss +3 -13
- package/core/option/_m2-option.scss +14 -21
- package/core/option/_option-theme.scss +3 -3
- package/core/ripple/_m2-ripple.scss +5 -22
- package/core/selection/pseudo-checkbox/_m2-pseudo-checkbox.scss +11 -22
- 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 +10 -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 +16 -50
- package/datepicker/_m2-datepicker.scss +45 -137
- package/datepicker/testing/index.d.ts +3 -3
- package/dialog/_m2-dialog.scss +6 -25
- package/divider/_m2-divider.scss +3 -14
- package/expansion/_m2-expansion.scss +15 -25
- package/fesm2022/animation-DfMFjxHu.mjs.map +1 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +1 -1
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs +4 -7
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +2 -2
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs +26 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +132 -14
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-cKSwHniA.mjs.map +1 -1
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-K6TQue-Y.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/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +1 -1
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-DCNQlTOA.mjs.map +1 -1
- package/fesm2022/error-state-Dtb1IHM-.mjs.map +1 -1
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs.map +1 -1
- 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/form-field/testing.mjs.map +1 -1
- package/fesm2022/{form-field-CFbrnFED.mjs → form-field-C9DZXojn.mjs} +3 -3
- package/fesm2022/form-field-C9DZXojn.mjs.map +1 -0
- package/fesm2022/form-field.mjs +2 -2
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-DxiIc1ex.mjs.map +1 -1
- package/fesm2022/icon-registry-CwOTJ7YM.mjs.map +1 -1
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-BFRo2fUq.mjs.map +1 -1
- package/fesm2022/index-DwiL-HGk.mjs.map +1 -1
- 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/input-value-accessor-D1GvPuqO.mjs.map +1 -1
- package/fesm2022/input.mjs +27 -3
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-D5iFxU6d.mjs.map +1 -1
- package/fesm2022/line-Bz5f9Cyx.mjs.map +1 -1
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +11 -2
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/{module-B0CLRw5e.mjs → module-BDiw_nWS.mjs} +3 -3
- package/fesm2022/module-BDiw_nWS.mjs.map +1 -0
- package/fesm2022/module-CWxMD37a.mjs.map +1 -1
- package/fesm2022/module-Ce6F7TNm.mjs.map +1 -1
- package/fesm2022/{module-B62K-792.mjs → module-DzZHEh7B.mjs} +2 -2
- package/fesm2022/module-DzZHEh7B.mjs.map +1 -0
- package/fesm2022/option-BzhYL_xC.mjs.map +1 -1
- package/fesm2022/option-harness-BFcc-M_4.mjs.map +1 -1
- package/fesm2022/paginator/testing.mjs +2 -3
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +3 -3
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-DDmgx3P4.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-module-4F8Up4PL.mjs.map +1 -1
- package/fesm2022/public-api-BoO5eSq-.mjs.map +1 -1
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-BYgV4oZC.mjs.map +1 -1
- package/fesm2022/ripple-loader-BnMiRtmT.mjs.map +1 -1
- package/fesm2022/select/testing.mjs +8 -5
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select.mjs +3 -3
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +2 -2
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-CObeNzjn.mjs.map +1 -1
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1 -1
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +2 -2
- package/form-field/_m2-form-field.scss +59 -93
- 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/index.d.ts +11 -0
- 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 +19 -37
- package/menu/_m2-menu.scss +12 -23
- package/menu/index.d.ts +2 -0
- package/package.json +6 -6
- package/paginator/_m2-paginator.scss +7 -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 +14 -36
- package/select/_select-theme.scss +6 -3
- 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 +27 -39
- package/slider/_slider-theme.scss +2 -2
- package/snack-bar/_m2-snack-bar.scss +5 -22
- package/sort/_m2-sort.scss +3 -33
- 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 +6 -17
- package/tabs/_m2-tabs.scss +19 -36
- package/tabs/_tabs-theme.scss +4 -4
- package/timepicker/_m2-timepicker.scss +5 -15
- package/toolbar/_m2-toolbar.scss +4 -15
- package/tooltip/_m2-tooltip.scss +4 -14
- package/tree/_m2-tree.scss +4 -16
- package/core/tokens/_m2-tokens.scss +0 -131
- package/fesm2022/date-range-input-harness-Bp1T4oUe.mjs.map +0 -1
- package/fesm2022/form-field-CFbrnFED.mjs.map +0 -1
- package/fesm2022/input-harness-oQzj5EsQ.mjs.map +0 -1
- package/fesm2022/module-B0CLRw5e.mjs.map +0 -1
- package/fesm2022/module-B62K-792.mjs.map +0 -1
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,26 @@
|
|
|
27
26
|
|
|
28
27
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
29
28
|
@function get-color-tokens($theme) {
|
|
30
|
-
$
|
|
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));
|
|
29
|
+
$system: m2-utils.get-system($theme);
|
|
37
30
|
|
|
38
31
|
@return (
|
|
39
|
-
list-list-item-label-text-color: $
|
|
40
|
-
list-list-item-supporting-text-color: $
|
|
41
|
-
list-list-item-leading-icon-color: $
|
|
42
|
-
list-list-item-trailing-supporting-text-color: $
|
|
43
|
-
list-list-item-trailing-icon-color: $
|
|
44
|
-
list-list-item-selected-trailing-icon-color: $
|
|
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: $
|
|
49
|
-
list-list-item-hover-leading-icon-color: $
|
|
50
|
-
list-list-item-hover-state-layer-color: $
|
|
51
|
-
list-list-item-hover-state-layer-opacity:
|
|
52
|
-
list-list-item-hover-trailing-icon-color: $
|
|
53
|
-
list-list-item-focus-label-text-color: $
|
|
54
|
-
list-list-item-focus-state-layer-color: $
|
|
55
|
-
list-list-item-focus-state-layer-opacity:
|
|
32
|
+
list-list-item-label-text-color: map.get($system, on-surface),
|
|
33
|
+
list-list-item-supporting-text-color: map.get($system, on-surface-variant),
|
|
34
|
+
list-list-item-leading-icon-color: map.get($system, on-surface-variant),
|
|
35
|
+
list-list-item-trailing-supporting-text-color: map.get($system, on-surface-variant),
|
|
36
|
+
list-list-item-trailing-icon-color: map.get($system, on-surface-variant),
|
|
37
|
+
list-list-item-selected-trailing-icon-color: map.get($system, on-surface-variant),
|
|
38
|
+
list-list-item-disabled-label-text-color: map.get($system, on-surface),
|
|
39
|
+
list-list-item-disabled-leading-icon-color: map.get($system, on-surface),
|
|
40
|
+
list-list-item-disabled-trailing-icon-color: map.get($system, on-surface),
|
|
41
|
+
list-list-item-hover-label-text-color: map.get($system, on-surface),
|
|
42
|
+
list-list-item-hover-leading-icon-color: map.get($system, on-surface-variant),
|
|
43
|
+
list-list-item-hover-state-layer-color: map.get($system, on-surface),
|
|
44
|
+
list-list-item-hover-state-layer-opacity: map.get($system, hover-state-layer-opacity),
|
|
45
|
+
list-list-item-hover-trailing-icon-color: map.get($system, on-surface-variant),
|
|
46
|
+
list-list-item-focus-label-text-color: map.get($system, on-surface),
|
|
47
|
+
list-list-item-focus-state-layer-color: map.get($system, on-surface),
|
|
48
|
+
list-list-item-focus-state-layer-opacity: map.get($system, focus-state-layer-opacity),
|
|
56
49
|
);
|
|
57
50
|
}
|
|
58
51
|
|
|
@@ -121,14 +114,3 @@
|
|
|
121
114
|
), $scale),
|
|
122
115
|
);
|
|
123
116
|
}
|
|
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,7 +1,8 @@
|
|
|
1
|
-
@use '../core/tokens/m2-utils';
|
|
2
1
|
@use '../core/theming/inspection';
|
|
3
|
-
@use '../core/style/sass-utils';
|
|
4
2
|
@use '../core/style/elevation';
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use '../core/tokens/m2-utils';
|
|
5
|
+
@use '../core/tokens/m3-utils';
|
|
5
6
|
|
|
6
7
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
7
8
|
// but may be in a future version of the theming API.
|
|
@@ -25,18 +26,17 @@
|
|
|
25
26
|
|
|
26
27
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
27
28
|
@function get-color-tokens($theme) {
|
|
28
|
-
$
|
|
29
|
-
$active-state-layer-color: inspection.get-theme-color($theme, foreground, base,
|
|
30
|
-
if($is-dark, 0.08, 0.04));
|
|
31
|
-
$text-color: inspection.get-theme-color($theme, foreground, text);
|
|
29
|
+
$system: m2-utils.get-system($theme);
|
|
32
30
|
|
|
33
31
|
@return (
|
|
34
|
-
menu-item-label-text-color: $
|
|
35
|
-
menu-item-icon-color: $
|
|
36
|
-
menu-item-hover-state-layer-color:
|
|
37
|
-
|
|
38
|
-
menu-
|
|
39
|
-
|
|
32
|
+
menu-item-label-text-color: map.get($system, on-surface),
|
|
33
|
+
menu-item-icon-color: map.get($system, on-surface),
|
|
34
|
+
menu-item-hover-state-layer-color: m3-utils.color-with-opacity(
|
|
35
|
+
map.get($system, on-surface), map.get($system, hover-state-layer-opacity)),
|
|
36
|
+
menu-item-focus-state-layer-color: m3-utils.color-with-opacity(
|
|
37
|
+
map.get($system, on-surface), map.get($system, focus-state-layer-opacity)),
|
|
38
|
+
menu-container-color: map.get($system, surface),
|
|
39
|
+
menu-divider-color: map.get($system, outline),
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -55,14 +55,3 @@
|
|
|
55
55
|
@function get-density-tokens($theme) {
|
|
56
56
|
@return ();
|
|
57
57
|
}
|
|
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.1",
|
|
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.1",
|
|
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,9 @@
|
|
|
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';
|
|
6
|
+
@use '../core/tokens/m3-utils';
|
|
7
7
|
|
|
8
8
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
9
9
|
// but may be in a future version of the theming API.
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
15
15
|
@function get-color-tokens($theme) {
|
|
16
|
-
$
|
|
16
|
+
$system: m2-utils.get-system($theme);
|
|
17
17
|
|
|
18
18
|
@return (
|
|
19
|
-
paginator-container-text-color:
|
|
20
|
-
paginator-container-background-color:
|
|
21
|
-
paginator-enabled-icon-color:
|
|
22
|
-
paginator-disabled-icon-color:
|
|
19
|
+
paginator-container-text-color: map.get($system, on-surface),
|
|
20
|
+
paginator-container-background-color: map.get($system, surface),
|
|
21
|
+
paginator-enabled-icon-color: map.get($system, on-surface-variant),
|
|
22
|
+
paginator-disabled-icon-color: m3-utils.color-with-opacity(map.get($system, on-surface), 38%),
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -74,14 +74,3 @@
|
|
|
74
74
|
paginator-touch-target-display: if($density-scale < -2, none, block),
|
|
75
75
|
);
|
|
76
76
|
}
|
|
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 {
|