@angular/material 17.1.0 → 17.1.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.
Files changed (79) hide show
  1. package/badge/_badge-theme.scss +0 -169
  2. package/badge/index.d.ts +11 -1
  3. package/core/index.d.ts +7 -4
  4. package/core/tokens/m2/mat/_form-field.scss +15 -0
  5. package/core/tokens/m2/mdc/_filled-text-field.scss +8 -8
  6. package/core/tokens/m2/mdc/_outlined-text-field.scss +6 -6
  7. package/core/tokens/m2/mdc/_switch.scss +12 -3
  8. package/esm2022/badge/badge-module.mjs +6 -4
  9. package/esm2022/badge/badge.mjs +29 -3
  10. package/esm2022/badge/public-api.mjs +2 -2
  11. package/esm2022/button/button.mjs +2 -3
  12. package/esm2022/button/fab.mjs +2 -3
  13. package/esm2022/button/icon-button.mjs +2 -3
  14. package/esm2022/checkbox/checkbox.mjs +2 -3
  15. package/esm2022/chips/chip-row.mjs +2 -3
  16. package/esm2022/chips/chip.mjs +2 -3
  17. package/esm2022/core/common-behaviors/error-state.mjs +2 -4
  18. package/esm2022/core/ripple/ripple.mjs +2 -3
  19. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +2 -3
  20. package/esm2022/core/version.mjs +1 -1
  21. package/esm2022/dialog/dialog-container.mjs +4 -5
  22. package/esm2022/expansion/expansion-panel-header.mjs +2 -3
  23. package/esm2022/expansion/expansion-panel.mjs +2 -3
  24. package/esm2022/form-field/form-field.mjs +4 -5
  25. package/esm2022/list/list-base.mjs +2 -3
  26. package/esm2022/list/list.mjs +2 -3
  27. package/esm2022/progress-bar/progress-bar.mjs +2 -3
  28. package/esm2022/progress-spinner/progress-spinner.mjs +2 -3
  29. package/esm2022/radio/radio.mjs +2 -3
  30. package/esm2022/sidenav/drawer.mjs +2 -3
  31. package/esm2022/slide-toggle/slide-toggle.mjs +4 -5
  32. package/esm2022/slider/slider.mjs +2 -3
  33. package/esm2022/tabs/paginated-tab-header.mjs +2 -3
  34. package/esm2022/tabs/tab-group.mjs +2 -3
  35. package/esm2022/tabs/tab-header.mjs +2 -3
  36. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -3
  37. package/esm2022/tooltip/tooltip.mjs +2 -3
  38. package/fesm2022/badge.mjs +32 -4
  39. package/fesm2022/badge.mjs.map +1 -1
  40. package/fesm2022/button.mjs +1 -2
  41. package/fesm2022/button.mjs.map +1 -1
  42. package/fesm2022/checkbox.mjs +1 -2
  43. package/fesm2022/checkbox.mjs.map +1 -1
  44. package/fesm2022/chips.mjs +1 -2
  45. package/fesm2022/chips.mjs.map +1 -1
  46. package/fesm2022/core.mjs +4 -7
  47. package/fesm2022/core.mjs.map +1 -1
  48. package/fesm2022/dialog.mjs +5 -6
  49. package/fesm2022/dialog.mjs.map +1 -1
  50. package/fesm2022/expansion.mjs +1 -2
  51. package/fesm2022/expansion.mjs.map +1 -1
  52. package/fesm2022/form-field.mjs +3 -4
  53. package/fesm2022/form-field.mjs.map +1 -1
  54. package/fesm2022/list.mjs +3 -4
  55. package/fesm2022/list.mjs.map +1 -1
  56. package/fesm2022/progress-bar.mjs +1 -2
  57. package/fesm2022/progress-bar.mjs.map +1 -1
  58. package/fesm2022/progress-spinner.mjs +1 -2
  59. package/fesm2022/progress-spinner.mjs.map +1 -1
  60. package/fesm2022/radio.mjs +1 -2
  61. package/fesm2022/radio.mjs.map +1 -1
  62. package/fesm2022/sidenav.mjs +1 -2
  63. package/fesm2022/sidenav.mjs.map +1 -1
  64. package/fesm2022/slide-toggle.mjs +3 -4
  65. package/fesm2022/slide-toggle.mjs.map +1 -1
  66. package/fesm2022/slider.mjs +1 -2
  67. package/fesm2022/slider.mjs.map +1 -1
  68. package/fesm2022/tabs.mjs +1 -2
  69. package/fesm2022/tabs.mjs.map +1 -1
  70. package/fesm2022/tooltip.mjs +1 -2
  71. package/fesm2022/tooltip.mjs.map +1 -1
  72. package/package.json +2 -2
  73. package/prebuilt-themes/deeppurple-amber.css +1 -1
  74. package/prebuilt-themes/indigo-pink.css +1 -1
  75. package/prebuilt-themes/pink-bluegrey.css +1 -1
  76. package/prebuilt-themes/purple-green.css +1 -1
  77. package/schematics/ng-add/index.js +1 -1
  78. package/schematics/ng-add/index.mjs +1 -1
  79. package/slide-toggle/_slide-toggle-theme.scss +7 -7
package/fesm2022/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Version, InjectionToken, inject, NgModule, Optional, Inject, LOCALE_ID, Injectable, Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, booleanAttribute, EventEmitter, Output, ViewChild, ANIMATION_MODULE_TYPE as ANIMATION_MODULE_TYPE$1, NgZone, ElementRef } from '@angular/core';
2
+ import { Version, InjectionToken, inject, NgModule, Optional, Inject, LOCALE_ID, Injectable, Directive, ANIMATION_MODULE_TYPE, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, booleanAttribute, EventEmitter, Output, ViewChild, NgZone, ElementRef } from '@angular/core';
3
3
  import * as i1 from '@angular/cdk/a11y';
4
4
  import { isFakeMousedownFromScreenReader, isFakeTouchstartFromScreenReader } from '@angular/cdk/a11y';
5
5
  import { BidiModule } from '@angular/cdk/bidi';
@@ -10,11 +10,10 @@ import { Platform, _isTestEnvironment, normalizePassiveListenerOptions, _getEven
10
10
  import { coerceBooleanProperty, coerceNumberProperty, coerceElement } from '@angular/cdk/coercion';
11
11
  import { Observable, Subject } from 'rxjs';
12
12
  import { startWith } from 'rxjs/operators';
13
- import { ANIMATION_MODULE_TYPE } from '@angular/platform-browser/animations';
14
13
  import { ENTER, SPACE, hasModifierKey } from '@angular/cdk/keycodes';
15
14
 
16
15
  /** Current version of Angular Material. */
17
- const VERSION = new Version('17.1.0');
16
+ const VERSION = new Version('17.1.1');
18
17
 
19
18
  /** @docs-private */
20
19
  class AnimationCurves {
@@ -235,9 +234,7 @@ class _ErrorStateTracker {
235
234
  const parent = this._parentFormGroup || this._parentForm;
236
235
  const matcher = this.matcher || this._defaultMatcher;
237
236
  const control = this.ngControl ? this.ngControl.control : null;
238
- // Note: the null check here shouldn't be necessary, but there's an internal
239
- // test that appears to pass an object whose `isErrorState` isn't a function.
240
- const newState = typeof matcher?.isErrorState === 'function' ? matcher.isErrorState(control, parent) : false;
237
+ const newState = matcher?.isErrorState(control, parent) ?? false;
241
238
  if (newState !== oldState) {
242
239
  this.errorState = newState;
243
240
  this._stateChanges.next();
@@ -1779,7 +1776,7 @@ const matRippleDisabled = 'mat-ripple-loader-disabled';
1779
1776
  class MatRippleLoader {
1780
1777
  constructor() {
1781
1778
  this._document = inject(DOCUMENT, { optional: true });
1782
- this._animationMode = inject(ANIMATION_MODULE_TYPE$1, { optional: true });
1779
+ this._animationMode = inject(ANIMATION_MODULE_TYPE, { optional: true });
1783
1780
  this._globalRippleOptions = inject(MAT_RIPPLE_GLOBAL_OPTIONS, { optional: true });
1784
1781
  this._platform = inject(Platform);
1785
1782
  this._ngZone = inject(NgZone);