@angular/cdk 16.1.0-next.1 → 16.1.0-next.2
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 +26 -51
- package/esm2022/drag-drop/directives/drag.mjs +8 -3
- package/esm2022/drag-drop/directives/drop-list.mjs +3 -8
- package/esm2022/drag-drop/drag-events.mjs +1 -1
- package/esm2022/drag-drop/drag-ref.mjs +1 -1
- package/esm2022/drag-drop/drop-list-ref.mjs +1 -1
- package/esm2022/drag-drop/public-api.mjs +2 -2
- package/esm2022/overlay/dispatchers/base-overlay-dispatcher.mjs +1 -1
- package/esm2022/overlay/dispatchers/overlay-keyboard-dispatcher.mjs +1 -1
- package/esm2022/overlay/dispatchers/overlay-outside-click-dispatcher.mjs +1 -1
- package/esm2022/overlay/overlay-ref.mjs +1 -1
- package/esm2022/overlay/position/flexible-connected-position-strategy.mjs +1 -1
- package/esm2022/overlay/position/global-position-strategy.mjs +1 -1
- package/esm2022/overlay/position/position-strategy.mjs +1 -1
- package/esm2022/overlay/scroll/close-scroll-strategy.mjs +1 -1
- package/esm2022/overlay/scroll/reposition-scroll-strategy.mjs +1 -1
- package/esm2022/overlay/scroll/scroll-strategy.mjs +1 -1
- package/esm2022/scrolling/scroll-dispatcher.mjs +1 -1
- package/esm2022/scrolling/virtual-scroll-strategy.mjs +1 -1
- package/esm2022/version.mjs +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +733 -733
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/scrolling.mjs.map +1 -1
- package/overlay/index.d.ts +12 -42
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/esm2022/overlay/overlay-reference.mjs +0 -9
package/overlay/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ import { Observable } from 'rxjs';
|
|
|
21
21
|
import { OnChanges } from '@angular/core';
|
|
22
22
|
import { OnDestroy } from '@angular/core';
|
|
23
23
|
import { Platform } from '@angular/cdk/platform';
|
|
24
|
-
import { Portal } from '@angular/cdk/portal';
|
|
25
24
|
import { PortalOutlet } from '@angular/cdk/portal';
|
|
26
25
|
import { ScrollDispatcher } from '@angular/cdk/scrolling';
|
|
27
26
|
import { SimpleChanges } from '@angular/core';
|
|
@@ -38,15 +37,15 @@ import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
|
38
37
|
*/
|
|
39
38
|
declare abstract class BaseOverlayDispatcher implements OnDestroy {
|
|
40
39
|
/** Currently attached overlays in the order they were attached. */
|
|
41
|
-
_attachedOverlays:
|
|
40
|
+
_attachedOverlays: OverlayRef[];
|
|
42
41
|
protected _document: Document;
|
|
43
42
|
protected _isAttached: boolean;
|
|
44
43
|
constructor(document: any);
|
|
45
44
|
ngOnDestroy(): void;
|
|
46
45
|
/** Add a new overlay to the list of attached overlay refs. */
|
|
47
|
-
add(overlayRef:
|
|
46
|
+
add(overlayRef: OverlayRef): void;
|
|
48
47
|
/** Remove an overlay from the list of attached overlay refs. */
|
|
49
|
-
remove(overlayRef:
|
|
48
|
+
remove(overlayRef: OverlayRef): void;
|
|
50
49
|
/** Detaches the global event listener. */
|
|
51
50
|
protected abstract detach(): void;
|
|
52
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseOverlayDispatcher, never>;
|
|
@@ -224,7 +223,7 @@ export declare class CloseScrollStrategy implements ScrollStrategy {
|
|
|
224
223
|
private _initialScrollPosition;
|
|
225
224
|
constructor(_scrollDispatcher: ScrollDispatcher, _ngZone: NgZone, _viewportRuler: ViewportRuler, _config?: CloseScrollStrategyConfig | undefined);
|
|
226
225
|
/** Attaches this scroll strategy to an overlay. */
|
|
227
|
-
attach(overlayRef:
|
|
226
|
+
attach(overlayRef: OverlayRef): void;
|
|
228
227
|
/** Enables the closing of the attached overlay on scroll. */
|
|
229
228
|
enable(): void;
|
|
230
229
|
/** Disables the closing the attached overlay on scroll. */
|
|
@@ -369,7 +368,7 @@ export declare class FlexibleConnectedPositionStrategy implements PositionStrate
|
|
|
369
368
|
get positions(): ConnectionPositionPair[];
|
|
370
369
|
constructor(connectedTo: FlexibleConnectedPositionStrategyOrigin, _viewportRuler: ViewportRuler, _document: Document, _platform: Platform, _overlayContainer: OverlayContainer);
|
|
371
370
|
/** Attaches this position strategy to an overlay. */
|
|
372
|
-
attach(overlayRef:
|
|
371
|
+
attach(overlayRef: OverlayRef): void;
|
|
373
372
|
/**
|
|
374
373
|
* Updates the position of the overlay element, using whichever preferred position relative
|
|
375
374
|
* to the origin best fits on-screen.
|
|
@@ -587,7 +586,7 @@ export declare class GlobalPositionStrategy implements PositionStrategy {
|
|
|
587
586
|
private _width;
|
|
588
587
|
private _height;
|
|
589
588
|
private _isDisposed;
|
|
590
|
-
attach(overlayRef:
|
|
589
|
+
attach(overlayRef: OverlayRef): void;
|
|
591
590
|
/**
|
|
592
591
|
* Sets the top position of the overlay. Clears any previously set vertical position.
|
|
593
592
|
* @param value New top offset.
|
|
@@ -833,7 +832,7 @@ export declare class OverlayKeyboardDispatcher extends BaseOverlayDispatcher {
|
|
|
833
832
|
/** @breaking-change 14.0.0 _ngZone will be required. */
|
|
834
833
|
_ngZone?: NgZone | undefined);
|
|
835
834
|
/** Add a new overlay to the list of attached overlay refs. */
|
|
836
|
-
add(overlayRef:
|
|
835
|
+
add(overlayRef: OverlayRef): void;
|
|
837
836
|
/** Detaches the global keyboard event listener. */
|
|
838
837
|
protected detach(): void;
|
|
839
838
|
/** Keyboard event listener that will be attached to the body. */
|
|
@@ -864,7 +863,7 @@ export declare class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher
|
|
|
864
863
|
/** @breaking-change 14.0.0 _ngZone will be required. */
|
|
865
864
|
_ngZone?: NgZone | undefined);
|
|
866
865
|
/** Add a new overlay to the list of attached overlay refs. */
|
|
867
|
-
add(overlayRef:
|
|
866
|
+
add(overlayRef: OverlayRef): void;
|
|
868
867
|
/** Detaches the global keyboard event listener. */
|
|
869
868
|
protected detach(): void;
|
|
870
869
|
private _addEventListeners;
|
|
@@ -900,7 +899,7 @@ export declare class OverlayPositionBuilder {
|
|
|
900
899
|
* Reference to an overlay that has been created with the Overlay service.
|
|
901
900
|
* Used to manipulate or dispose of said overlay.
|
|
902
901
|
*/
|
|
903
|
-
export declare class OverlayRef implements PortalOutlet
|
|
902
|
+
export declare class OverlayRef implements PortalOutlet {
|
|
904
903
|
private _portalOutlet;
|
|
905
904
|
private _host;
|
|
906
905
|
private _pane;
|
|
@@ -1011,35 +1010,6 @@ export declare class OverlayRef implements PortalOutlet, OverlayReference {
|
|
|
1011
1010
|
private _disposeBackdrop;
|
|
1012
1011
|
}
|
|
1013
1012
|
|
|
1014
|
-
/**
|
|
1015
|
-
* Basic interface for an overlay. Used to avoid circular type references between
|
|
1016
|
-
* `OverlayRef`, `PositionStrategy` and `ScrollStrategy`, and `OverlayConfig`.
|
|
1017
|
-
* @docs-private
|
|
1018
|
-
*/
|
|
1019
|
-
declare interface OverlayReference {
|
|
1020
|
-
attach: (portal: Portal<any>) => any;
|
|
1021
|
-
detach: () => any;
|
|
1022
|
-
dispose: () => void;
|
|
1023
|
-
overlayElement: HTMLElement;
|
|
1024
|
-
hostElement: HTMLElement;
|
|
1025
|
-
backdropElement: HTMLElement | null;
|
|
1026
|
-
getConfig: () => any;
|
|
1027
|
-
hasAttached: () => boolean;
|
|
1028
|
-
updateSize: (config: any) => void;
|
|
1029
|
-
updatePosition: () => void;
|
|
1030
|
-
getDirection: () => Direction;
|
|
1031
|
-
setDirection: (dir: Direction | Directionality) => void;
|
|
1032
|
-
backdropClick: () => Observable<MouseEvent>;
|
|
1033
|
-
attachments: () => Observable<void>;
|
|
1034
|
-
detachments: () => Observable<void>;
|
|
1035
|
-
keydownEvents: () => Observable<KeyboardEvent>;
|
|
1036
|
-
outsidePointerEvents: () => Observable<MouseEvent>;
|
|
1037
|
-
addPanelClass: (classes: string | string[]) => void;
|
|
1038
|
-
removePanelClass: (classes: string | string[]) => void;
|
|
1039
|
-
readonly _outsidePointerEvents: Subject<MouseEvent>;
|
|
1040
|
-
readonly _keydownEvents: Subject<KeyboardEvent>;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
1013
|
/** Size properties for an overlay. */
|
|
1044
1014
|
export declare interface OverlaySizeConfig {
|
|
1045
1015
|
width?: number | string;
|
|
@@ -1059,7 +1029,7 @@ declare interface Point {
|
|
|
1059
1029
|
/** Strategy for setting the position on an overlay. */
|
|
1060
1030
|
export declare interface PositionStrategy {
|
|
1061
1031
|
/** Attaches this position strategy to an overlay. */
|
|
1062
|
-
attach(overlayRef:
|
|
1032
|
+
attach(overlayRef: OverlayRef): void;
|
|
1063
1033
|
/** Updates the position of the overlay element. */
|
|
1064
1034
|
apply(): void;
|
|
1065
1035
|
/** Called when the overlay is detached. */
|
|
@@ -1080,7 +1050,7 @@ export declare class RepositionScrollStrategy implements ScrollStrategy {
|
|
|
1080
1050
|
private _overlayRef;
|
|
1081
1051
|
constructor(_scrollDispatcher: ScrollDispatcher, _viewportRuler: ViewportRuler, _ngZone: NgZone, _config?: RepositionScrollStrategyConfig | undefined);
|
|
1082
1052
|
/** Attaches this scroll strategy to an overlay. */
|
|
1083
|
-
attach(overlayRef:
|
|
1053
|
+
attach(overlayRef: OverlayRef): void;
|
|
1084
1054
|
/** Enables repositioning of the attached overlay on scroll. */
|
|
1085
1055
|
enable(): void;
|
|
1086
1056
|
/** Disables repositioning of the attached overlay on scroll. */
|
|
@@ -1141,7 +1111,7 @@ export declare interface ScrollStrategy {
|
|
|
1141
1111
|
/** Disable this scroll strategy (called when the attached overlay is detached from a portal). */
|
|
1142
1112
|
disable: () => void;
|
|
1143
1113
|
/** Attaches this `ScrollStrategy` to an overlay. */
|
|
1144
|
-
attach: (overlayRef:
|
|
1114
|
+
attach: (overlayRef: OverlayRef) => void;
|
|
1145
1115
|
/** Detaches the scroll strategy from the current overlay. */
|
|
1146
1116
|
detach?: () => void;
|
|
1147
1117
|
}
|
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', `~16.1.0-next.
|
|
31
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~16.1.0-next.2`);
|
|
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', `~16.1.0-next.
|
|
31
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~16.1.0-next.2`);
|
|
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());
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1yZWZlcmVuY2UuanMiLCJzb3VyY2VSb290IjoiI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