@angular/cdk 17.3.7 → 17.3.9

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/menu/index.d.ts CHANGED
@@ -16,6 +16,7 @@ import { OnDestroy } from '@angular/core';
16
16
  import { Optional } from '@angular/core';
17
17
  import { OverlayRef } from '@angular/cdk/overlay';
18
18
  import { QueryList } from '@angular/core';
19
+ import { ScrollStrategy } from '@angular/cdk/overlay';
19
20
  import { Subject } from 'rxjs';
20
21
  import { TemplatePortal } from '@angular/cdk/portal';
21
22
  import { TemplateRef } from '@angular/core';
@@ -487,6 +488,8 @@ export declare abstract class CdkMenuTriggerBase implements OnDestroy {
487
488
  protected readonly viewContainerRef: ViewContainerRef;
488
489
  /** The menu stack in which this menu resides. */
489
490
  protected readonly menuStack: MenuStack;
491
+ /** Function used to configure the scroll strategy for the menu. */
492
+ protected readonly menuScrollStrategy: () => ScrollStrategy;
490
493
  /**
491
494
  * A list of preferred menu positions to be used when constructing the
492
495
  * `FlexibleConnectedPositionStrategy` for this trigger's menu.
@@ -662,6 +665,9 @@ export declare interface Menu extends MenuStackItem {
662
665
  /** Injection token used for an implementation of MenuAim. */
663
666
  export declare const MENU_AIM: InjectionToken<MenuAim>;
664
667
 
668
+ /** Injection token used to configure the behavior of the menu when the page is scrolled. */
669
+ export declare const MENU_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
670
+
665
671
  /** Injection token used for an implementation of MenuStack. */
666
672
  export declare const MENU_STACK: InjectionToken<MenuStack>;
667
673
 
@@ -179,7 +179,8 @@ export declare class CdkConnectedOverlay implements OnDestroy, OnChanges {
179
179
  private _updatePositionStrategy;
180
180
  /** Returns the position strategy of the overlay to be set on the overlay config */
181
181
  private _createPositionStrategy;
182
- private _getFlexibleConnectedPositionStrategyOrigin;
182
+ private _getOrigin;
183
+ private _getOriginElement;
183
184
  /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */
184
185
  private _attachOverlay;
185
186
  /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cdk",
3
- "version": "17.3.7",
3
+ "version": "17.3.9",
4
4
  "description": "Angular Material Component Development Kit",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,7 +28,7 @@ function default_1() {
28
28
  // In order to align the CDK version with other Angular dependencies that are setup by
29
29
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
30
30
  // dependencies in new CLI projects.
31
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~17.3.7`);
31
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~17.3.9`);
32
32
  // Add a task to run the package manager. This is necessary because we updated the
33
33
  // workspace "package.json" file and we want lock files to reflect the new version range.
34
34
  context.addTask(new tasks_1.NodePackageInstallTask());
@@ -28,7 +28,7 @@ function default_1() {
28
28
  // In order to align the CDK version with other Angular dependencies that are setup by
29
29
  // `@schematics/angular`, we use tilde instead of caret. This is default for Angular
30
30
  // dependencies in new CLI projects.
31
- (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~17.3.7`);
31
+ (0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~17.3.9`);
32
32
  // Add a task to run the package manager. This is necessary because we updated the
33
33
  // workspace "package.json" file and we want lock files to reflect the new version range.
34
34
  context.addTask(new tasks_1.NodePackageInstallTask());