@angular/material 15.2.1 → 15.2.3

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.
Files changed (62) hide show
  1. package/checkbox/index.d.ts +0 -1
  2. package/chips/index.d.ts +7 -6
  3. package/core/index.d.ts +0 -7
  4. package/datepicker/index.d.ts +1 -0
  5. package/esm2020/checkbox/checkbox.mjs +3 -9
  6. package/esm2020/chips/chip-option.mjs +9 -5
  7. package/esm2020/chips/chip-row.mjs +13 -14
  8. package/esm2020/chips/chip-set.mjs +8 -10
  9. package/esm2020/chips/chip.mjs +11 -7
  10. package/esm2020/core/option/option.mjs +12 -12
  11. package/esm2020/core/version.mjs +1 -1
  12. package/esm2020/datepicker/calendar-body.mjs +12 -6
  13. package/esm2020/legacy-checkbox/checkbox.mjs +3 -3
  14. package/esm2020/legacy-core/option/option.mjs +3 -3
  15. package/esm2020/legacy-snack-bar/snack-bar-container.mjs +3 -3
  16. package/esm2020/paginator/paginator.mjs +3 -3
  17. package/esm2020/snack-bar/snack-bar-container.mjs +52 -4
  18. package/esm2020/tabs/paginated-tab-header.mjs +3 -8
  19. package/fesm2015/checkbox.mjs +2 -8
  20. package/fesm2015/checkbox.mjs.map +1 -1
  21. package/fesm2015/chips.mjs +37 -32
  22. package/fesm2015/chips.mjs.map +1 -1
  23. package/fesm2015/core.mjs +12 -12
  24. package/fesm2015/core.mjs.map +1 -1
  25. package/fesm2015/datepicker.mjs +11 -6
  26. package/fesm2015/datepicker.mjs.map +1 -1
  27. package/fesm2015/legacy-checkbox.mjs +2 -2
  28. package/fesm2015/legacy-checkbox.mjs.map +1 -1
  29. package/fesm2015/legacy-core.mjs +2 -2
  30. package/fesm2015/legacy-core.mjs.map +1 -1
  31. package/fesm2015/legacy-snack-bar.mjs +2 -2
  32. package/fesm2015/legacy-snack-bar.mjs.map +1 -1
  33. package/fesm2015/paginator.mjs +2 -2
  34. package/fesm2015/paginator.mjs.map +1 -1
  35. package/fesm2015/snack-bar.mjs +51 -4
  36. package/fesm2015/snack-bar.mjs.map +1 -1
  37. package/fesm2015/tabs.mjs +2 -7
  38. package/fesm2015/tabs.mjs.map +1 -1
  39. package/fesm2020/checkbox.mjs +2 -8
  40. package/fesm2020/checkbox.mjs.map +1 -1
  41. package/fesm2020/chips.mjs +37 -32
  42. package/fesm2020/chips.mjs.map +1 -1
  43. package/fesm2020/core.mjs +12 -12
  44. package/fesm2020/core.mjs.map +1 -1
  45. package/fesm2020/datepicker.mjs +11 -6
  46. package/fesm2020/datepicker.mjs.map +1 -1
  47. package/fesm2020/legacy-checkbox.mjs +2 -2
  48. package/fesm2020/legacy-checkbox.mjs.map +1 -1
  49. package/fesm2020/legacy-core.mjs +2 -2
  50. package/fesm2020/legacy-core.mjs.map +1 -1
  51. package/fesm2020/legacy-snack-bar.mjs +2 -2
  52. package/fesm2020/legacy-snack-bar.mjs.map +1 -1
  53. package/fesm2020/paginator.mjs +2 -2
  54. package/fesm2020/paginator.mjs.map +1 -1
  55. package/fesm2020/snack-bar.mjs +51 -4
  56. package/fesm2020/snack-bar.mjs.map +1 -1
  57. package/fesm2020/tabs.mjs +2 -7
  58. package/fesm2020/tabs.mjs.map +1 -1
  59. package/package.json +2 -2
  60. package/schematics/ng-add/index.js +1 -1
  61. package/schematics/ng-add/index.mjs +1 -1
  62. package/snack-bar/index.d.ts +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/material",
3
- "version": "15.2.1",
3
+ "version": "15.2.3",
4
4
  "description": "Angular Material",
5
5
  "repository": {
6
6
  "type": "git",
@@ -989,7 +989,7 @@
989
989
  },
990
990
  "peerDependencies": {
991
991
  "@angular/animations": "^15.0.0 || ^16.0.0",
992
- "@angular/cdk": "15.2.1",
992
+ "@angular/cdk": "15.2.3",
993
993
  "@angular/core": "^15.0.0 || ^16.0.0",
994
994
  "@angular/common": "^15.0.0 || ^16.0.0",
995
995
  "@angular/forms": "^15.0.0 || ^16.0.0",
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
18
18
  * Note that the fallback version range does not use caret, but tilde because that is
19
19
  * the default for Angular framework dependencies in CLI projects.
20
20
  */
21
- const fallbackMaterialVersionRange = `~15.2.1`;
21
+ const fallbackMaterialVersionRange = `~15.2.3`;
22
22
  /**
23
23
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
24
24
  * automatically executed if developers run `ng add @angular/material`.
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
18
18
  * Note that the fallback version range does not use caret, but tilde because that is
19
19
  * the default for Angular framework dependencies in CLI projects.
20
20
  */
21
- const fallbackMaterialVersionRange = `~15.2.1`;
21
+ const fallbackMaterialVersionRange = `~15.2.3`;
22
22
  /**
23
23
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
24
24
  * automatically executed if developers run `ng add @angular/material`.
@@ -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
  /**