@angular/material 15.2.0 → 15.2.2
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/chips/_chips-theme.scss +1 -0
- package/chips/index.d.ts +15 -6
- package/core/index.d.ts +0 -7
- package/datepicker/index.d.ts +1 -0
- package/esm2020/chips/chip-grid.mjs +5 -5
- package/esm2020/chips/chip-listbox.mjs +5 -5
- package/esm2020/chips/chip-option.mjs +3 -3
- package/esm2020/chips/chip-row.mjs +3 -3
- package/esm2020/chips/chip-set.mjs +11 -12
- package/esm2020/chips/chip.mjs +20 -5
- package/esm2020/core/option/option.mjs +12 -12
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/datepicker/calendar-body.mjs +12 -6
- package/esm2020/legacy-core/option/option.mjs +3 -3
- package/esm2020/legacy-snack-bar/snack-bar-container.mjs +3 -3
- package/esm2020/list/list-base.mjs +5 -4
- package/esm2020/paginator/paginator.mjs +3 -3
- package/esm2020/snack-bar/snack-bar-container.mjs +52 -4
- package/fesm2015/chips.mjs +41 -26
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +12 -12
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/datepicker.mjs +11 -6
- package/fesm2015/datepicker.mjs.map +1 -1
- package/fesm2015/legacy-core.mjs +2 -2
- package/fesm2015/legacy-core.mjs.map +1 -1
- package/fesm2015/legacy-snack-bar.mjs +2 -2
- package/fesm2015/legacy-snack-bar.mjs.map +1 -1
- package/fesm2015/list.mjs +4 -3
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/paginator.mjs +2 -2
- package/fesm2015/paginator.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +51 -4
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2020/chips.mjs +40 -26
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +12 -12
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/datepicker.mjs +11 -6
- package/fesm2020/datepicker.mjs.map +1 -1
- package/fesm2020/legacy-core.mjs +2 -2
- package/fesm2020/legacy-core.mjs.map +1 -1
- package/fesm2020/legacy-snack-bar.mjs +2 -2
- package/fesm2020/legacy-snack-bar.mjs.map +1 -1
- package/fesm2020/list.mjs +4 -3
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/paginator.mjs +2 -2
- package/fesm2020/paginator.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +51 -4
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/list/index.d.ts +2 -0
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js +8 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
- package/snack-bar/index.d.ts +12 -0
package/snack-bar/index.d.ts
CHANGED
|
@@ -230,6 +230,8 @@ export declare abstract class _MatSnackBarContainerBase extends BasePortalOutlet
|
|
|
230
230
|
private _platform;
|
|
231
231
|
/** The snack bar configuration. */
|
|
232
232
|
snackBarConfig: MatSnackBarConfig;
|
|
233
|
+
private _document;
|
|
234
|
+
private _trackedModals;
|
|
233
235
|
/** The number of milliseconds to wait before announcing the snack bar's content. */
|
|
234
236
|
private readonly _announceDelay;
|
|
235
237
|
/** The timeout for announcing the snack bar's content. */
|
|
@@ -253,6 +255,8 @@ export declare abstract class _MatSnackBarContainerBase extends BasePortalOutlet
|
|
|
253
255
|
* JAWS does not read out aria-live message.
|
|
254
256
|
*/
|
|
255
257
|
_role?: 'status' | 'alert';
|
|
258
|
+
/** Unique ID of the aria-live element. */
|
|
259
|
+
readonly _liveElementId: string;
|
|
256
260
|
constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, _platform: Platform,
|
|
257
261
|
/** The snack bar configuration. */
|
|
258
262
|
snackBarConfig: MatSnackBarConfig);
|
|
@@ -284,6 +288,14 @@ export declare abstract class _MatSnackBarContainerBase extends BasePortalOutlet
|
|
|
284
288
|
* used to modify the DOM once it's guaranteed to be in place.
|
|
285
289
|
*/
|
|
286
290
|
protected _afterPortalAttached(): void;
|
|
291
|
+
/**
|
|
292
|
+
* Some browsers won't expose the accessibility node of the live element if there is an
|
|
293
|
+
* `aria-modal` and the live element is outside of it. This method works around the issue by
|
|
294
|
+
* pointing the `aria-owns` of all modals to the live element.
|
|
295
|
+
*/
|
|
296
|
+
private _exposeToModals;
|
|
297
|
+
/** Clears the references to the live element from any modals it was added to. */
|
|
298
|
+
private _clearFromModals;
|
|
287
299
|
/** Asserts that no content is already attached to the container. */
|
|
288
300
|
private _assertNotAttached;
|
|
289
301
|
/**
|