Skip to content

Commit 1f11335

Browse files
committed
main - e9b0157 fix(material/form-field): move error aria-live to parent container (#30678)
1 parent a1e5404 commit 1f11335

25 files changed

+1123
-1132
lines changed

Diff for: fesm2022/autocomplete.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
1414
import { TemplatePortal } from '@angular/cdk/portal';
1515
import { NG_VALUE_ACCESSOR } from '@angular/forms';
1616
import { filter, map, startWith, switchMap, tap, delay, take } from 'rxjs/operators';
17-
import { M as MAT_FORM_FIELD } from './form-field-d428b130.mjs';
17+
import { M as MAT_FORM_FIELD } from './form-field-cfb5974a.mjs';
1818
import { M as MatOptionModule } from './index-24de77b5.mjs';
1919
import { M as MatCommonModule } from './common-module-727dea0d.mjs';
2020
import './ripple-41c62a88.mjs';

Diff for: fesm2022/chips.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { Directionality } from '@angular/cdk/bidi';
1414
import { NG_VALUE_ACCESSOR, NgControl, Validators, NgForm, FormGroupDirective } from '@angular/forms';
1515
import { E as ErrorStateMatcher } from './error-options-97896218.mjs';
1616
import { _ as _ErrorStateTracker } from './error-state-66849a3f.mjs';
17-
import { a as MatFormFieldControl, M as MAT_FORM_FIELD } from './form-field-d428b130.mjs';
17+
import { a as MatFormFieldControl, M as MAT_FORM_FIELD } from './form-field-cfb5974a.mjs';
1818
import { M as MatCommonModule } from './common-module-727dea0d.mjs';
1919
import { M as MatRippleModule } from './index-5ac4af9b.mjs';
2020
import '@angular/cdk/platform';

Diff for: fesm2022/datepicker.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { a as MatIconButton } from './icon-button-9055fbe1.mjs';
2020
import { _ as _animationsDisabled } from './animation-0a58df80.mjs';
2121
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, ControlContainer, NgForm, FormGroupDirective, NgControl } from '@angular/forms';
2222
import { M as MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-4d18edb7.mjs';
23-
import { M as MAT_FORM_FIELD, a as MatFormFieldControl } from './form-field-d428b130.mjs';
23+
import { M as MAT_FORM_FIELD, a as MatFormFieldControl } from './form-field-cfb5974a.mjs';
2424
import { E as ErrorStateMatcher } from './error-options-97896218.mjs';
2525
import { _ as _ErrorStateTracker } from './error-state-66849a3f.mjs';
2626
import { CdkScrollableModule } from '@angular/cdk/scrolling';

Diff for: fesm2022/form-field-cfb5974a.mjs

+1,078
Large diffs are not rendered by default.

Diff for: fesm2022/form-field-cfb5974a.mjs.map

+1
Large diffs are not rendered by default.

Diff for: fesm2022/form-field-d428b130.mjs

-1,087
This file was deleted.

Diff for: fesm2022/form-field-d428b130.mjs.map

-1
This file was deleted.

Diff for: fesm2022/form-field.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { c as MAT_ERROR, M as MAT_FORM_FIELD, j as MAT_FORM_FIELD_DEFAULT_OPTIONS, f as MAT_PREFIX, h as MAT_SUFFIX, d as MatError, k as MatFormField, a as MatFormFieldControl, e as MatHint, b as MatLabel, g as MatPrefix, i as MatSuffix, m as getMatFormFieldDuplicatedHintError, n as getMatFormFieldMissingControlError, l as getMatFormFieldPlaceholderConflictError } from './form-field-d428b130.mjs';
2-
export { M as MatFormFieldModule } from './module-547fb874.mjs';
1+
export { c as MAT_ERROR, M as MAT_FORM_FIELD, j as MAT_FORM_FIELD_DEFAULT_OPTIONS, f as MAT_PREFIX, h as MAT_SUFFIX, d as MatError, k as MatFormField, a as MatFormFieldControl, e as MatHint, b as MatLabel, g as MatPrefix, i as MatSuffix, m as getMatFormFieldDuplicatedHintError, n as getMatFormFieldMissingControlError, l as getMatFormFieldPlaceholderConflictError } from './form-field-cfb5974a.mjs';
2+
export { M as MatFormFieldModule } from './module-a096ae0c.mjs';
33
import '@angular/cdk/a11y';
44
import '@angular/cdk/bidi';
55
import '@angular/cdk/coercion';

Diff for: fesm2022/input.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { NgControl, Validators, NgForm, FormGroupDirective } from '@angular/form
88
import { Subject } from 'rxjs';
99
import { M as MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-4d18edb7.mjs';
1010
export { M as MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-4d18edb7.mjs';
11-
import { M as MAT_FORM_FIELD, a as MatFormFieldControl } from './form-field-d428b130.mjs';
12-
export { d as MatError, k as MatFormField, e as MatHint, b as MatLabel, g as MatPrefix, i as MatSuffix } from './form-field-d428b130.mjs';
11+
import { M as MAT_FORM_FIELD, a as MatFormFieldControl } from './form-field-cfb5974a.mjs';
12+
export { d as MatError, k as MatFormField, e as MatHint, b as MatLabel, g as MatPrefix, i as MatSuffix } from './form-field-cfb5974a.mjs';
1313
import { E as ErrorStateMatcher } from './error-options-97896218.mjs';
1414
import { _ as _ErrorStateTracker } from './error-state-66849a3f.mjs';
15-
import { M as MatFormFieldModule } from './module-547fb874.mjs';
15+
import { M as MatFormFieldModule } from './module-a096ae0c.mjs';
1616
import { M as MatCommonModule } from './common-module-727dea0d.mjs';
1717
import '@angular/cdk/bidi';
1818
import '@angular/common';

Diff for: fesm2022/module-547fb874.mjs renamed to fesm2022/module-a096ae0c.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ObserversModule } from '@angular/cdk/observers';
22
import * as i0 from '@angular/core';
33
import { NgModule } from '@angular/core';
4-
import { k as MatFormField, b as MatLabel, d as MatError, e as MatHint, g as MatPrefix, i as MatSuffix } from './form-field-d428b130.mjs';
4+
import { k as MatFormField, b as MatLabel, d as MatError, e as MatHint, g as MatPrefix, i as MatSuffix } from './form-field-cfb5974a.mjs';
55
import { M as MatCommonModule } from './common-module-727dea0d.mjs';
66

77
class MatFormFieldModule {
@@ -35,4 +35,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4",
3535
}] });
3636

3737
export { MatFormFieldModule as M };
38-
//# sourceMappingURL=module-547fb874.mjs.map
38+
//# sourceMappingURL=module-a096ae0c.mjs.map

Diff for: fesm2022/module-547fb874.mjs.map renamed to fesm2022/module-a096ae0c.mjs.map

+1-1
Original file line numberDiff line numberDiff line change

Diff for: fesm2022/module-6f224398.mjs renamed to fesm2022/module-d01cd712.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import { NgControl, Validators, NgForm, FormGroupDirective } from '@angular/form
1010
import { Subject, defer, merge } from 'rxjs';
1111
import { startWith, switchMap, filter, map, takeUntil, take } from 'rxjs/operators';
1212
import { NgClass } from '@angular/common';
13-
import { M as MAT_FORM_FIELD, a as MatFormFieldControl } from './form-field-d428b130.mjs';
13+
import { M as MAT_FORM_FIELD, a as MatFormFieldControl } from './form-field-cfb5974a.mjs';
1414
import { _ as _animationsDisabled } from './animation-0a58df80.mjs';
1515
import { _ as _countGroupLabelsBeforeOption, d as _getOptionScrollPosition, M as MAT_OPTION_PARENT_COMPONENT, a as MatOption, b as MAT_OPTGROUP } from './option-5eb4c8e5.mjs';
1616
import { E as ErrorStateMatcher } from './error-options-97896218.mjs';
1717
import { _ as _ErrorStateTracker } from './error-state-66849a3f.mjs';
1818
import { M as MatOptionModule } from './index-24de77b5.mjs';
1919
import { M as MatCommonModule } from './common-module-727dea0d.mjs';
20-
import { M as MatFormFieldModule } from './module-547fb874.mjs';
20+
import { M as MatFormFieldModule } from './module-a096ae0c.mjs';
2121

2222
// Note that these have been copied over verbatim from
2323
// `material/select` so that we don't have to expose them publicly.
@@ -1291,4 +1291,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.4",
12911291
}] });
12921292

12931293
export { MatSelect as M, MatSelectModule as a, MAT_SELECT_SCROLL_STRATEGY as b, MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY as c, MAT_SELECT_CONFIG as d, MAT_SELECT_SCROLL_STRATEGY_PROVIDER as e, MAT_SELECT_TRIGGER as f, MatSelectChange as g, MatSelectTrigger as h };
1294-
//# sourceMappingURL=module-6f224398.mjs.map
1294+
//# sourceMappingURL=module-d01cd712.mjs.map

Diff for: fesm2022/module-6f224398.mjs.map renamed to fesm2022/module-d01cd712.mjs.map

+1-1
Large diffs are not rendered by default.

Diff for: fesm2022/paginator.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
22
import { Injectable, Optional, SkipSelf, InjectionToken, inject, ChangeDetectorRef, numberAttribute, EventEmitter, booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, NgModule } from '@angular/core';
33
import { Subject, ReplaySubject } from 'rxjs';
44
import { _IdGenerator } from '@angular/cdk/a11y';
5-
import { k as MatFormField } from './form-field-d428b130.mjs';
6-
import { M as MatSelect, a as MatSelectModule } from './module-6f224398.mjs';
5+
import { k as MatFormField } from './form-field-cfb5974a.mjs';
6+
import { M as MatSelect, a as MatSelectModule } from './module-d01cd712.mjs';
77
import { M as MatTooltip, a as MatTooltipModule } from './module-c62ec13a.mjs';
88
import { a as MatOption } from './option-5eb4c8e5.mjs';
99
import { a as MatIconButton } from './icon-button-9055fbe1.mjs';
@@ -29,7 +29,7 @@ import './ripple-41c62a88.mjs';
2929
import '@angular/cdk/private';
3030
import './pseudo-checkbox-module-fc4975bd.mjs';
3131
import './pseudo-checkbox-d3e74ed4.mjs';
32-
import './module-547fb874.mjs';
32+
import './module-a096ae0c.mjs';
3333
import '@angular/cdk/observers';
3434
import '@angular/cdk/portal';
3535
import './structural-styles-efc7816b.mjs';

Diff for: fesm2022/select.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { e as MatOptgroup, a as MatOption } from './option-5eb4c8e5.mjs';
2-
export { d as MatError, k as MatFormField, e as MatHint, b as MatLabel, g as MatPrefix, i as MatSuffix } from './form-field-d428b130.mjs';
3-
export { d as MAT_SELECT_CONFIG, b as MAT_SELECT_SCROLL_STRATEGY, e as MAT_SELECT_SCROLL_STRATEGY_PROVIDER, c as MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY, f as MAT_SELECT_TRIGGER, M as MatSelect, g as MatSelectChange, a as MatSelectModule, h as MatSelectTrigger } from './module-6f224398.mjs';
2+
export { d as MatError, k as MatFormField, e as MatHint, b as MatLabel, g as MatPrefix, i as MatSuffix } from './form-field-cfb5974a.mjs';
3+
export { d as MAT_SELECT_CONFIG, b as MAT_SELECT_SCROLL_STRATEGY, e as MAT_SELECT_SCROLL_STRATEGY_PROVIDER, c as MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY, f as MAT_SELECT_TRIGGER, M as MatSelect, g as MatSelectChange, a as MatSelectModule, h as MatSelectTrigger } from './module-d01cd712.mjs';
44
import '@angular/cdk/a11y';
55
import '@angular/cdk/keycodes';
66
import '@angular/core';
@@ -26,7 +26,7 @@ import './index-24de77b5.mjs';
2626
import './index-5ac4af9b.mjs';
2727
import './common-module-727dea0d.mjs';
2828
import './pseudo-checkbox-module-fc4975bd.mjs';
29-
import './module-547fb874.mjs';
29+
import './module-a096ae0c.mjs';
3030
import '@angular/cdk/observers';
3131

3232
/**

Diff for: fesm2022/timepicker.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { D as DateAdapter, a as MAT_DATE_FORMATS } from './date-formats-7bf66210
1010
import { _ as _animationsDisabled } from './animation-0a58df80.mjs';
1111
import { a as MatOption, M as MAT_OPTION_PARENT_COMPONENT } from './option-5eb4c8e5.mjs';
1212
import { Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
13-
import { M as MAT_FORM_FIELD } from './form-field-d428b130.mjs';
13+
import { M as MAT_FORM_FIELD } from './form-field-cfb5974a.mjs';
1414
import { M as MAT_INPUT_VALUE_ACCESSOR } from './input-value-accessor-4d18edb7.mjs';
1515
import { a as MatIconButton } from './icon-button-9055fbe1.mjs';
1616
import { CdkScrollableModule } from '@angular/cdk/scrolling';

Diff for: form-field.d-15bf4dcf.d.ts renamed to form-field.d-e2081e20.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ declare class MatFormField implements FloatingLabelParent, AfterContentInit, Aft
332332
* should be forwarded to the host element.
333333
*/
334334
_shouldForward(prop: keyof AbstractControlDirective): boolean;
335-
/** Determines whether to display hints or errors. */
336-
_getDisplayedMessages(): 'error' | 'hint';
335+
/** Gets the type of subscript message to render (error or hint). */
336+
_getSubscriptMessageType(): 'error' | 'hint';
337337
/** Handle label resize events. */
338338
_handleLabelResized(): void;
339339
/** Refreshes the width of the outline-notch, if present. */

Diff for: form-field/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export { a as MatFormFieldModule, M as MatLabel } from '../module.d-debd2add.js';
2-
export { F as FloatLabelType, M as MAT_ERROR, i as MAT_FORM_FIELD, j as MAT_FORM_FIELD_DEFAULT_OPTIONS, c as MAT_PREFIX, e as MAT_SUFFIX, a as MatError, k as MatFormField, g as MatFormFieldAppearance, h as MatFormFieldDefaultOptions, b as MatHint, d as MatPrefix, f as MatSuffix, S as SubscriptSizing } from '../form-field.d-15bf4dcf.js';
1+
export { a as MatFormFieldModule, M as MatLabel } from '../module.d-a335a842.js';
2+
export { F as FloatLabelType, M as MAT_ERROR, i as MAT_FORM_FIELD, j as MAT_FORM_FIELD_DEFAULT_OPTIONS, c as MAT_PREFIX, e as MAT_SUFFIX, a as MatError, k as MatFormField, g as MatFormFieldAppearance, h as MatFormFieldDefaultOptions, b as MatHint, d as MatPrefix, f as MatSuffix, S as SubscriptSizing } from '../form-field.d-e2081e20.js';
33
export { M as MatFormFieldControl } from '../form-field-control.d-d7b3a431.js';
44
import '@angular/core';
55
import '../common-module.d-1b789e68.js';

Diff for: input/index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { InjectionToken, OnChanges, OnDestroy, AfterViewInit, DoCheck, ElementRe
55
import { NgControl } from '@angular/forms';
66
import { Subject } from 'rxjs';
77
import { E as ErrorStateMatcher } from '../error-options.d-bd1801bf.js';
8-
import { k as MatFormField } from '../form-field.d-15bf4dcf.js';
9-
export { a as MatError, k as MatFormField, b as MatHint, d as MatPrefix, f as MatSuffix } from '../form-field.d-15bf4dcf.js';
8+
import { k as MatFormField } from '../form-field.d-e2081e20.js';
9+
export { a as MatError, k as MatFormField, b as MatHint, d as MatPrefix, f as MatSuffix } from '../form-field.d-e2081e20.js';
1010
import { M as MatFormFieldControl } from '../form-field-control.d-d7b3a431.js';
1111
import { M as MatCommonModule } from '../common-module.d-1b789e68.js';
12-
import { a as MatFormFieldModule } from '../module.d-debd2add.js';
13-
export { M as MatLabel } from '../module.d-debd2add.js';
12+
import { a as MatFormFieldModule } from '../module.d-a335a842.js';
13+
export { M as MatLabel } from '../module.d-a335a842.js';
1414
import * as i4 from '@angular/cdk/text-field';
1515
import '../palette.d-f5ca9a2b.js';
1616
import '@angular/cdk/bidi';

Diff for: module.d-324b469d.d.ts renamed to module.d-916841df.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import { ControlValueAccessor, NgControl } from '@angular/forms';
1212
import { Subject, Observable } from 'rxjs';
1313
import { E as ErrorStateMatcher } from './error-options.d-bd1801bf.js';
1414
import { M as MatOption, a as MatOptgroup, b as MatOptionSelectionChange } from './option.d-be9de0a8.js';
15-
import { k as MatFormField } from './form-field.d-15bf4dcf.js';
15+
import { k as MatFormField } from './form-field.d-e2081e20.js';
1616
import { M as MatFormFieldControl } from './form-field-control.d-d7b3a431.js';
17-
import { a as MatFormFieldModule } from './module.d-debd2add.js';
17+
import { a as MatFormFieldModule } from './module.d-a335a842.js';
1818

1919
/** Injection token that determines the scroll handling while a select is open. */
2020
declare const MAT_SELECT_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;

Diff for: module.d-debd2add.d.ts renamed to module.d-a335a842.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as i0 from '@angular/core';
22
import { M as MatCommonModule } from './common-module.d-1b789e68.js';
33
import * as i2 from '@angular/cdk/observers';
4-
import { k as MatFormField, a as MatError, b as MatHint, d as MatPrefix, f as MatSuffix } from './form-field.d-15bf4dcf.js';
4+
import { k as MatFormField, a as MatError, b as MatHint, d as MatPrefix, f as MatSuffix } from './form-field.d-e2081e20.js';
55

66
/** The floating label for a `mat-form-field`. */
77
declare class MatLabel {

Diff for: paginator.d-b387a59d.d.ts renamed to paginator.d-82b71ef4.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
22
import { Optional, InjectionToken, OnInit, OnDestroy, EventEmitter } from '@angular/core';
33
import { T as ThemePalette } from './palette.d-f5ca9a2b.js';
44
import { Subject, Observable } from 'rxjs';
5-
import { g as MatFormFieldAppearance } from './form-field.d-15bf4dcf.js';
5+
import { g as MatFormFieldAppearance } from './form-field.d-e2081e20.js';
66

77
/**
88
* To modify the labels and text displayed, create a new instance of MatPaginatorIntl and

Diff for: paginator/index.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as i0 from '@angular/core';
22
import { n as MatButtonModule } from '../module.d-1b393e15.js';
3-
import { M as MatSelectModule } from '../module.d-324b469d.js';
3+
import { M as MatSelectModule } from '../module.d-916841df.js';
44
import { M as MatTooltipModule } from '../module.d-984cabd6.js';
5-
import { M as MatPaginator } from '../paginator.d-b387a59d.js';
6-
export { c as MAT_PAGINATOR_DEFAULT_OPTIONS, f as MAT_PAGINATOR_INTL_PROVIDER, e as MAT_PAGINATOR_INTL_PROVIDER_FACTORY, M as MatPaginator, b as MatPaginatorDefaultOptions, d as MatPaginatorIntl, a as MatPaginatorSelectConfig, P as PageEvent } from '../paginator.d-b387a59d.js';
5+
import { M as MatPaginator } from '../paginator.d-82b71ef4.js';
6+
export { c as MAT_PAGINATOR_DEFAULT_OPTIONS, f as MAT_PAGINATOR_INTL_PROVIDER, e as MAT_PAGINATOR_INTL_PROVIDER_FACTORY, M as MatPaginator, b as MatPaginatorDefaultOptions, d as MatPaginatorIntl, a as MatPaginatorSelectConfig, P as PageEvent } from '../paginator.d-82b71ef4.js';
77
import '../common-module.d-1b789e68.js';
88
import '@angular/cdk/bidi';
99
import '../index.d-609609fc.js';
@@ -21,10 +21,10 @@ import '@angular/cdk/collections';
2121
import '@angular/cdk/scrolling';
2222
import '@angular/forms';
2323
import '../error-options.d-bd1801bf.js';
24-
import '../form-field.d-15bf4dcf.js';
24+
import '../form-field.d-e2081e20.js';
2525
import '@angular/cdk/coercion';
2626
import '../form-field-control.d-d7b3a431.js';
27-
import '../module.d-debd2add.js';
27+
import '../module.d-a335a842.js';
2828
import '@angular/cdk/observers';
2929

3030
declare class MatPaginatorModule {

0 commit comments

Comments
 (0)