@angular/material 19.0.2 → 19.0.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.
@@ -1,6 +1,5 @@
1
1
  import { AfterContentInit } from '@angular/core';
2
2
  import { AfterViewInit } from '@angular/core';
3
- import { AnimationEvent as AnimationEvent_2 } from '@angular/animations';
4
3
  import { AnimationTriggerMetadata } from '@angular/animations';
5
4
  import { CdkAccordion } from '@angular/cdk/accordion';
6
5
  import { CdkAccordionItem } from '@angular/cdk/accordion';
@@ -148,6 +147,8 @@ export declare type MatAccordionTogglePosition = 'before' | 'after';
148
147
  * Angular Bug: https://github.com/angular/angular/issues/18847
149
148
  *
150
149
  * @docs-private
150
+ * @deprecated No longer being used, to be removed.
151
+ * @breaking-change 21.0.0
151
152
  */
152
153
  export declare const matExpansionAnimations: {
153
154
  readonly indicatorRotate: AnimationTriggerMetadata;
@@ -166,9 +167,10 @@ export declare class MatExpansionModule {
166
167
  */
167
168
  export declare class MatExpansionPanel extends CdkAccordionItem implements AfterContentInit, OnChanges, OnDestroy {
168
169
  private _viewContainerRef;
169
- _animationMode: "NoopAnimations" | "BrowserAnimations" | null;
170
- protected _animationsDisabled: boolean;
170
+ private readonly _animationsDisabled;
171
171
  private _document;
172
+ private _ngZone;
173
+ private _elementRef;
172
174
  /** Whether the toggle indicator should be hidden. */
173
175
  get hideToggle(): boolean;
174
176
  set hideToggle(value: boolean);
@@ -189,6 +191,8 @@ export declare class MatExpansionPanel extends CdkAccordionItem implements After
189
191
  _lazyContent: MatExpansionPanelContent;
190
192
  /** Element containing the panel's user-provided content. */
191
193
  _body: ElementRef<HTMLElement>;
194
+ /** Element wrapping the panel body. */
195
+ protected _bodyWrapper: ElementRef<HTMLElement> | undefined;
192
196
  /** Portal holding the user's content. */
193
197
  _portal: TemplatePortal;
194
198
  /** ID for the associated header element. Used for a11y labelling. */
@@ -209,10 +213,8 @@ export declare class MatExpansionPanel extends CdkAccordionItem implements After
209
213
  ngOnDestroy(): void;
210
214
  /** Checks whether the expansion panel's content contains the currently-focused element. */
211
215
  _containsFocus(): boolean;
212
- /** Called when the expansion animation has started. */
213
- protected _animationStarted(event: AnimationEvent_2): void;
214
- /** Called when the expansion animation has finished. */
215
- protected _animationDone(event: AnimationEvent_2): void;
216
+ private _transitionEndListener;
217
+ protected _setupAnimationEvents(): void;
216
218
  static ɵfac: i0.ɵɵFactoryDeclaration<MatExpansionPanel, never>;
217
219
  static ɵcmp: i0.ɵɵComponentDeclaration<MatExpansionPanel, "mat-expansion-panel", ["matExpansionPanel"], { "hideToggle": { "alias": "hideToggle"; "required": false; }; "togglePosition": { "alias": "togglePosition"; "required": false; }; }, { "afterExpand": "afterExpand"; "afterCollapse": "afterCollapse"; }, ["_lazyContent"], ["mat-expansion-panel-header", "*", "mat-action-row"], true, never>;
218
220
  static ngAcceptInputType_hideToggle: unknown;
@@ -276,7 +278,6 @@ export declare class MatExpansionPanelHeader implements AfterViewInit, OnDestroy
276
278
  private _element;
277
279
  private _focusMonitor;
278
280
  private _changeDetectorRef;
279
- _animationMode: "NoopAnimations" | "BrowserAnimations" | null;
280
281
  private _parentChangeSubscription;
281
282
  constructor(...args: unknown[]);
282
283
  /** Height of the header while the panel is expanded. */
package/fesm2022/core.mjs CHANGED
@@ -11,7 +11,7 @@ import { ENTER, SPACE, hasModifierKey } from '@angular/cdk/keycodes';
11
11
  import { DOCUMENT } from '@angular/common';
12
12
 
13
13
  /** Current version of Angular Material. */
14
- const VERSION = new Version('19.0.2');
14
+ const VERSION = new Version('19.0.3');
15
15
 
16
16
  /** @docs-private */
17
17
  class AnimationCurves {