@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/esm2022/menu/context-menu-trigger.mjs +2 -2
- package/esm2022/menu/menu-trigger-base.mjs +12 -1
- package/esm2022/menu/menu-trigger.mjs +2 -2
- package/esm2022/observers/private/shared-resize-observer.mjs +2 -2
- package/esm2022/overlay/overlay-directives.mjs +22 -7
- package/esm2022/version.mjs +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/menu.mjs +13 -3
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers/private.mjs +1 -1
- package/fesm2022/observers/private.mjs.map +1 -1
- package/fesm2022/overlay.mjs +20 -6
- package/fesm2022/overlay.mjs.map +1 -1
- package/menu/index.d.ts +6 -0
- package/overlay/index.d.ts +2 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
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
|
|
package/overlay/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
@@ -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.
|
|
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.
|
|
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());
|