@angular/material 22.0.3 → 22.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/focus-indicators/_private.scss +3 -0
- package/fesm2022/_animation-chunk.mjs.map +1 -1
- package/fesm2022/_date-formats-chunk.mjs.map +1 -1
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_error-options-chunk.mjs +22 -6
- package/fesm2022/_error-options-chunk.mjs.map +1 -1
- package/fesm2022/_error-state-chunk.mjs +23 -7
- package/fesm2022/_error-state-chunk.mjs.map +1 -1
- package/fesm2022/_form-field-chunk.mjs +30 -30
- package/fesm2022/_form-field-chunk.mjs.map +1 -1
- package/fesm2022/_icon-button-chunk.mjs +6 -6
- package/fesm2022/_icon-button-chunk.mjs.map +1 -1
- package/fesm2022/_icon-registry-chunk.mjs +3 -3
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
- package/fesm2022/_input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -1
- package/fesm2022/_internal-form-field-chunk.mjs +3 -3
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
- package/fesm2022/_line-chunk.mjs +7 -7
- package/fesm2022/_line-chunk.mjs.map +1 -1
- package/fesm2022/_option-chunk.mjs +6 -6
- package/fesm2022/_option-chunk.mjs.map +1 -1
- package/fesm2022/_option-harness-chunk.mjs.map +1 -1
- package/fesm2022/_option-module-chunk.mjs +4 -4
- package/fesm2022/_option-module-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-chunk.mjs +3 -3
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs +4 -4
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
- package/fesm2022/_public-api-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-chunk.mjs +6 -6
- package/fesm2022/_ripple-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-loader-chunk.mjs +3 -3
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-module-chunk.mjs +4 -4
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
- package/fesm2022/_structural-styles-chunk.mjs +5 -5
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
- package/fesm2022/_tooltip-chunk.mjs +6 -6
- package/fesm2022/_tooltip-chunk.mjs.map +1 -1
- package/fesm2022/autocomplete-testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +13 -13
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge-testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +10 -10
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +10 -10
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-testing.mjs.map +1 -1
- package/fesm2022/button-toggle-testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +10 -10
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +17 -17
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card-testing.mjs.map +1 -1
- package/fesm2022/card.mjs +46 -46
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox-testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +7 -7
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips-testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +52 -47
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core-testing.mjs.map +1 -1
- package/fesm2022/core.mjs +12 -12
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker-testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +89 -84
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog-testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +25 -25
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider-testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +7 -7
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion-testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +25 -25
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field-testing-control.mjs.map +1 -1
- package/fesm2022/form-field-testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +4 -4
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list-testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +22 -22
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon-testing.mjs +7 -7
- package/fesm2022/icon-testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +7 -7
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input-testing.mjs.map +1 -1
- package/fesm2022/input.mjs +13 -8
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list-testing.mjs.map +1 -1
- package/fesm2022/list.mjs +49 -49
- 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 +22 -22
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator-testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +11 -10
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar-testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +7 -7
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner-testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +7 -7
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio-testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +10 -10
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select-testing.mjs.map +1 -1
- package/fesm2022/select.mjs +16 -11
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav-testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +22 -22
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle-testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +7 -7
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider-testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +16 -16
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar-testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +22 -22
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort-testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +15 -15
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper-testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +38 -33
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table-testing.mjs.map +1 -1
- package/fesm2022/table.mjs +55 -55
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs-testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +43 -43
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker-testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +16 -14
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar-testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +10 -10
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip-testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +4 -4
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree-testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/prebuilt-themes/deeppurple-amber.css +2 -2
- package/prebuilt-themes/indigo-pink.css +2 -2
- package/prebuilt-themes/pink-bluegrey.css +2 -2
- package/prebuilt-themes/purple-green.css +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/stepper/_m2-stepper.scss +2 -2
- package/types/_error-options-chunk.d.ts +3 -0
- package/types/chips.d.ts +1 -0
- package/types/core.d.ts +7 -2
- package/types/datepicker.d.ts +1 -0
- package/types/input.d.ts +1 -0
- package/types/paginator.d.ts +1 -0
- package/types/select.d.ts +1 -0
- package/types/stepper.d.ts +2 -0
package/stepper/_m2-stepper.scss
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
|
|
10
10
|
@return (
|
|
11
11
|
base: (
|
|
12
|
-
stepper-header-focus-state-layer-shape:
|
|
13
|
-
stepper-header-hover-state-layer-shape:
|
|
12
|
+
stepper-header-focus-state-layer-shape: 4px,
|
|
13
|
+
stepper-header-hover-state-layer-shape: 4px,
|
|
14
14
|
),
|
|
15
15
|
color: map.merge(private-get-color-palette-color-tokens($theme, primary), (
|
|
16
16
|
stepper-container-color: map.get($system, surface),
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
2
|
+
import { Field } from '@angular/forms/signals';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
4
|
|
|
4
5
|
/** Error state matcher that matches when a control is invalid and dirty. */
|
|
5
6
|
declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
|
|
6
7
|
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
8
|
+
isSignalErrorState(field: Field<unknown> | null): boolean;
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnDirtyErrorStateMatcher, never>;
|
|
8
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
|
|
9
11
|
}
|
|
10
12
|
/** Provider that defines how form controls behave with regards to displaying error messages. */
|
|
11
13
|
declare class ErrorStateMatcher {
|
|
12
14
|
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
15
|
+
isSignalErrorState?(field: Field<unknown> | null): boolean;
|
|
13
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorStateMatcher, never>;
|
|
14
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorStateMatcher>;
|
|
15
18
|
}
|
package/types/chips.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { MatFormFieldControl } from './_form-field-control-chunk.js';
|
|
|
8
8
|
import { MatRippleModule } from './_ripple-module-chunk.js';
|
|
9
9
|
import { ModifierKey } from '@angular/cdk/keycodes';
|
|
10
10
|
import * as i2 from '@angular/cdk/bidi';
|
|
11
|
+
import '@angular/forms/signals';
|
|
11
12
|
import './_ripple-chunk.js';
|
|
12
13
|
import '@angular/cdk/platform';
|
|
13
14
|
|
package/types/core.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { NgControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import { ErrorStateMatcher as ErrorStateMatcher$1 } from './_error-options-chunk.js';
|
|
7
7
|
export { ShowOnDirtyErrorStateMatcher } from './_error-options-chunk.js';
|
|
8
|
+
import { FormField } from '@angular/forms/signals';
|
|
8
9
|
export { MatLine, MatLineModule, setLines } from './_line-chunk.js';
|
|
9
10
|
export { MatOptionModule } from './_option-module-chunk.js';
|
|
10
11
|
export { MAT_OPTGROUP, MatOptgroup, MatOption, MatOptionSelectionChange, _countGroupLabelsBeforeOption, _getOptionScrollPosition } from './_option-chunk.js';
|
|
@@ -48,7 +49,6 @@ interface ErrorStateMatcher extends ErrorStateMatcher$1 {
|
|
|
48
49
|
*/
|
|
49
50
|
declare class _ErrorStateTracker {
|
|
50
51
|
private _defaultMatcher;
|
|
51
|
-
ngControl: NgControl | null;
|
|
52
52
|
private _parentFormGroup;
|
|
53
53
|
private _parentForm;
|
|
54
54
|
private _stateChanges;
|
|
@@ -56,9 +56,14 @@ declare class _ErrorStateTracker {
|
|
|
56
56
|
errorState: boolean;
|
|
57
57
|
/** User-defined matcher for the error state. */
|
|
58
58
|
matcher: ErrorStateMatcher;
|
|
59
|
-
|
|
59
|
+
/** Reactive or template-based control directive. */
|
|
60
|
+
ngControl: NgControl | null;
|
|
61
|
+
/** Signal-based form field directive. */
|
|
62
|
+
formField: FormField<unknown> | null;
|
|
63
|
+
constructor(_defaultMatcher: ErrorStateMatcher | null, directive: NgControl | FormField<unknown> | null, _parentFormGroup: FormGroupDirective | null, _parentForm: NgForm | null, _stateChanges: Subject<void>);
|
|
60
64
|
/** Updates the error state based on the provided error state matcher. */
|
|
61
65
|
updateErrorState(): void;
|
|
66
|
+
private _getCurrentErrorState;
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
type MatDateFormats = {
|
package/types/datepicker.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import './_ripple-loader-chunk.js';
|
|
|
20
20
|
import './_ripple-module-chunk.js';
|
|
21
21
|
import './_ripple-chunk.js';
|
|
22
22
|
import '@angular/cdk/platform';
|
|
23
|
+
import '@angular/forms/signals';
|
|
23
24
|
|
|
24
25
|
/** Extra CSS classes that can be associated with a calendar cell. */
|
|
25
26
|
type MatCalendarCellCssClasses = string | string[] | Set<string> | Record<string, any>;
|
package/types/input.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { MatFormFieldModule } from './_form-field-module-chunk.js';
|
|
|
12
12
|
export { MatLabel } from './_form-field-module-chunk.js';
|
|
13
13
|
import * as i3 from '@angular/cdk/text-field';
|
|
14
14
|
import * as i2 from '@angular/cdk/bidi';
|
|
15
|
+
import '@angular/forms/signals';
|
|
15
16
|
import './_palette-chunk.js';
|
|
16
17
|
import '@angular/cdk/observers';
|
|
17
18
|
|
package/types/paginator.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import '@angular/cdk/collections';
|
|
|
20
20
|
import '@angular/cdk/scrolling';
|
|
21
21
|
import '@angular/forms';
|
|
22
22
|
import './_error-options-chunk.js';
|
|
23
|
+
import '@angular/forms/signals';
|
|
23
24
|
import './_form-field-chunk.js';
|
|
24
25
|
import '@angular/cdk/coercion';
|
|
25
26
|
import './_form-field-control-chunk.js';
|
package/types/select.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import './_ripple-module-chunk.js';
|
|
|
21
21
|
import './_ripple-chunk.js';
|
|
22
22
|
import '@angular/cdk/platform';
|
|
23
23
|
import './_pseudo-checkbox-module-chunk.js';
|
|
24
|
+
import '@angular/forms/signals';
|
|
24
25
|
import '@angular/cdk/coercion';
|
|
25
26
|
import './_palette-chunk.js';
|
|
26
27
|
import '@angular/cdk/observers';
|
package/types/stepper.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { MatRippleModule } from './_ripple-module-chunk.js';
|
|
|
10
10
|
import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
11
11
|
import { ThemePalette } from './_palette-chunk.js';
|
|
12
12
|
import { ErrorStateMatcher } from './_error-options-chunk.js';
|
|
13
|
+
import { Field } from '@angular/forms/signals';
|
|
13
14
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
14
15
|
import { Subject } from 'rxjs';
|
|
15
16
|
import * as i2$2 from '@angular/cdk/bidi';
|
|
@@ -140,6 +141,7 @@ declare class MatStep extends CdkStep implements ErrorStateMatcher, AfterContent
|
|
|
140
141
|
ngOnDestroy(): void;
|
|
141
142
|
/** Custom error state matcher that additionally checks for validity of interacted form. */
|
|
142
143
|
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
144
|
+
isSignalErrorState(field: Field<unknown> | null): boolean;
|
|
143
145
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatStep, never>;
|
|
144
146
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatStep, "mat-step", ["matStep"], { "color": { "alias": "color"; "required": false; }; }, {}, ["stepLabel", "_lazyContent"], ["*"], true, never>;
|
|
145
147
|
}
|