@angular/cdk 17.3.6 → 17.3.8
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/drag-drop/index.d.ts +4 -0
- package/esm2022/drag-drop/drag-drop.mjs +35 -2
- package/esm2022/drag-drop/preview-ref.mjs +11 -32
- 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/version.mjs +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +44 -32
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/menu.mjs +13 -3
- package/fesm2022/menu.mjs.map +1 -1
- package/menu/index.d.ts +6 -0
- 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/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.8`);
|
|
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.8`);
|
|
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());
|