@angular/cdk 19.0.3 → 19.0.5

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.
@@ -13,6 +13,7 @@ import { OnDestroy } from '@angular/core';
13
13
  * earlier calls.
14
14
  */
15
15
  export declare class SharedResizeObserver implements OnDestroy {
16
+ private _cleanupErrorListener;
16
17
  /** Map of box type to shared resize observer. */
17
18
  private _observers;
18
19
  /** The Angular zone. */
@@ -21,6 +21,7 @@ import { OnChanges } from '@angular/core';
21
21
  import { OnDestroy } from '@angular/core';
22
22
  import { Platform } from '@angular/cdk/platform';
23
23
  import { PortalOutlet } from '@angular/cdk/portal';
24
+ import { Renderer2 } from '@angular/core';
24
25
  import { ScrollDispatcher } from '@angular/cdk/scrolling';
25
26
  import { SimpleChanges } from '@angular/core';
26
27
  import { Subject } from 'rxjs';
@@ -549,13 +550,13 @@ export declare type FlexibleConnectedPositionStrategyOrigin = ElementRef | Eleme
549
550
  * Should be provided in the root component.
550
551
  */
551
552
  export declare class FullscreenOverlayContainer extends OverlayContainer implements OnDestroy {
553
+ private _renderer;
552
554
  private _fullScreenEventName;
553
- private _fullScreenListener;
555
+ private _cleanupFullScreenListener;
554
556
  constructor(...args: unknown[]);
555
557
  ngOnDestroy(): void;
556
558
  protected _createContainer(): void;
557
559
  private _adjustParentForFullscreenChange;
558
- private _addFullscreenChangeListener;
559
560
  private _getEventName;
560
561
  /**
561
562
  * When the page is put into fullscreen mode, a specific element is specified.
@@ -713,6 +714,7 @@ export declare class Overlay {
713
714
  private _outsideClickDispatcher;
714
715
  private _animationsModuleType;
715
716
  private _idGenerator;
717
+ private _renderer;
716
718
  private _appRef;
717
719
  private _styleLoader;
718
720
  constructor(...args: unknown[]);
@@ -826,6 +828,8 @@ export declare class OverlayContainer implements OnDestroy {
826
828
  */
827
829
  export declare class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
828
830
  private _ngZone;
831
+ private _renderer;
832
+ private _cleanupKeydown;
829
833
  /** Add a new overlay to the list of attached overlay refs. */
830
834
  add(overlayRef: OverlayRef): void;
831
835
  /** Detaches the global keyboard event listener. */
@@ -902,6 +906,7 @@ export declare class OverlayRef implements PortalOutlet {
902
906
  private _outsideClickDispatcher;
903
907
  private _animationsDisabled;
904
908
  private _injector;
909
+ private _renderer;
905
910
  private _backdropElement;
906
911
  private _backdropTimeout;
907
912
  private readonly _backdropClick;
@@ -910,8 +915,8 @@ export declare class OverlayRef implements PortalOutlet {
910
915
  private _positionStrategy;
911
916
  private _scrollStrategy;
912
917
  private _locationChanges;
913
- private _backdropClickHandler;
914
- private _backdropTransitionendHandler;
918
+ private _cleanupBackdropClick;
919
+ private _cleanupBackdropTransitionEnd;
915
920
  /**
916
921
  * Reference to the parent of the `_host` at the time it was detached. Used to restore
917
922
  * the `_host` to its original position in the DOM when it gets re-attached.
@@ -925,7 +930,7 @@ export declare class OverlayRef implements PortalOutlet {
925
930
  private _afterRenderRef;
926
931
  /** Reference to the currently-running `afterNextRender` call. */
927
932
  private _afterNextRenderRef;
928
- constructor(_portalOutlet: PortalOutlet, _host: HTMLElement, _pane: HTMLElement, _config: ImmutableObject<OverlayConfig>, _ngZone: NgZone, _keyboardDispatcher: OverlayKeyboardDispatcher, _document: Document, _location: Location_2, _outsideClickDispatcher: OverlayOutsideClickDispatcher, _animationsDisabled: boolean | undefined, _injector: EnvironmentInjector);
933
+ constructor(_portalOutlet: PortalOutlet, _host: HTMLElement, _pane: HTMLElement, _config: ImmutableObject<OverlayConfig>, _ngZone: NgZone, _keyboardDispatcher: OverlayKeyboardDispatcher, _document: Document, _location: Location_2, _outsideClickDispatcher: OverlayOutsideClickDispatcher, _animationsDisabled: boolean | undefined, _injector: EnvironmentInjector, _renderer: Renderer2);
929
934
  /** The overlay's HTML element */
930
935
  get overlayElement(): HTMLElement;
931
936
  /** The overlay's backdrop HTML element. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "19.0.3",
3
+ "version": "19.0.5",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@ function default_1() {
29
29
  // In order to align the CDK version with other Angular dependencies that are setup by
30
30
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
31
31
  // dependencies in new CLI projects.
32
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.0.3`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.0.5`);
33
33
  // Add a task to run the package manager. This is necessary because we updated the
34
34
  // workspace "package.json" file and we want lock files to reflect the new version range.
35
35
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -29,7 +29,7 @@ function default_1() {
29
29
  // In order to align the CDK version with other Angular dependencies that are setup by
30
30
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
31
31
  // dependencies in new CLI projects.
32
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.0.3`);
32
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~19.0.5`);
33
33
  // Add a task to run the package manager. This is necessary because we updated the
34
34
  // workspace "package.json" file and we want lock files to reflect the new version range.
35
35
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -603,12 +603,11 @@ export declare type _Top = {
603
603
  */
604
604
  export declare class ViewportRuler implements OnDestroy {
605
605
  private _platform;
606
+ private _listeners;
606
607
  /** Cached viewport dimensions. */
607
608
  private _viewportSize;
608
609
  /** Stream of viewport change events. */
609
610
  private readonly _change;
610
- /** Event listener that will be used to handle the viewport change events. */
611
- private _changeListener;
612
611
  /** Used to reference correct document/window */
613
612
  protected _document: Document;
614
613
  constructor(...args: unknown[]);
@@ -72,10 +72,12 @@ export declare class CdkTextareaAutosize implements AfterViewInit, DoCheck, OnDe
72
72
  private _elementRef;
73
73
  private _platform;
74
74
  private _ngZone;
75
+ private _renderer;
75
76
  /** Keep track of the previous textarea value to avoid resizing when the value hasn't changed. */
76
77
  private _previousValue?;
77
78
  private _initialHeight;
78
79
  private readonly _destroyed;
80
+ private _listenerCleanups;
79
81
  private _minRows;
80
82
  private _maxRows;
81
83
  private _enabled;
package/tree/index.d.ts CHANGED
@@ -363,6 +363,8 @@ export declare class CdkTree<T, K = T> implements AfterContentChecked, AfterCont
363
363
  private _updateKeyManagerItems;
364
364
  /** Traverse the flattened node data and compute parents, levels, and group data. */
365
365
  private _calculateParents;
366
+ /** Invokes a callback with all node expansion keys. */
367
+ private _forEachExpansionKey;
366
368
  static ɵfac: i0.ɵɵFactoryDeclaration<CdkTree<any, any>, never>;
367
369
  static ɵcmp: i0.ɵɵComponentDeclaration<CdkTree<any, any>, "cdk-tree", ["cdkTree"], { "dataSource": { "alias": "dataSource"; "required": false; }; "treeControl": { "alias": "treeControl"; "required": false; }; "levelAccessor": { "alias": "levelAccessor"; "required": false; }; "childrenAccessor": { "alias": "childrenAccessor"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "expansionKey": { "alias": "expansionKey"; "required": false; }; }, {}, ["_nodeDefs"], never, true, never>;
368
370
  }