@angular/cdk 18.0.0-next.4 → 18.0.0-next.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.
- package/drag-drop/index.d.ts +1 -1
- package/esm2022/drag-drop/drag-ref.mjs +24 -7
- package/esm2022/observers/observe-content.mjs +59 -31
- package/esm2022/scrolling/virtual-scroll-viewport.mjs +17 -24
- package/esm2022/version.mjs +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +23 -6
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/observers.mjs +57 -29
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +15 -22
- package/fesm2022/scrolling.mjs.map +1 -1
- package/observers/index.d.ts +2 -3
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/scrolling/index.d.ts +0 -2
package/observers/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { AfterContentInit } from '@angular/core';
|
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
3
|
import { EventEmitter } from '@angular/core';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { NgZone } from '@angular/core';
|
|
6
5
|
import { NumberInput } from '@angular/cdk/coercion';
|
|
7
6
|
import { Observable } from 'rxjs';
|
|
8
7
|
import { OnDestroy } from '@angular/core';
|
|
@@ -14,7 +13,6 @@ import { OnDestroy } from '@angular/core';
|
|
|
14
13
|
export declare class CdkObserveContent implements AfterContentInit, OnDestroy {
|
|
15
14
|
private _contentObserver;
|
|
16
15
|
private _elementRef;
|
|
17
|
-
private _ngZone;
|
|
18
16
|
/** Event emitted for each change in the element's content. */
|
|
19
17
|
readonly event: EventEmitter<MutationRecord[]>;
|
|
20
18
|
/**
|
|
@@ -29,7 +27,7 @@ export declare class CdkObserveContent implements AfterContentInit, OnDestroy {
|
|
|
29
27
|
set debounce(value: NumberInput);
|
|
30
28
|
private _debounce;
|
|
31
29
|
private _currentSubscription;
|
|
32
|
-
constructor(_contentObserver: ContentObserver, _elementRef: ElementRef<HTMLElement
|
|
30
|
+
constructor(_contentObserver: ContentObserver, _elementRef: ElementRef<HTMLElement>);
|
|
33
31
|
ngAfterContentInit(): void;
|
|
34
32
|
ngOnDestroy(): void;
|
|
35
33
|
private _subscribe;
|
|
@@ -44,6 +42,7 @@ export declare class ContentObserver implements OnDestroy {
|
|
|
44
42
|
private _mutationObserverFactory;
|
|
45
43
|
/** Keeps track of the existing MutationObservers so they can be reused. */
|
|
46
44
|
private _observedElements;
|
|
45
|
+
private _ngZone;
|
|
47
46
|
constructor(_mutationObserverFactory: MutationObserverFactory);
|
|
48
47
|
ngOnDestroy(): void;
|
|
49
48
|
/**
|
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', `~18.0.0-next.
|
|
31
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~18.0.0-next.5`);
|
|
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', `~18.0.0-next.
|
|
31
|
+
(0, package_config_1.addPackageToPackageJson)(host, '@angular/cdk', `~18.0.0-next.5`);
|
|
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());
|
package/scrolling/index.d.ts
CHANGED
|
@@ -318,8 +318,6 @@ export declare class CdkVirtualScrollViewport extends CdkVirtualScrollable imple
|
|
|
318
318
|
private _runAfterChangeDetection;
|
|
319
319
|
/** Subscription to changes in the viewport size. */
|
|
320
320
|
private _viewportChanges;
|
|
321
|
-
private _injector;
|
|
322
|
-
private _isDestroyed;
|
|
323
321
|
constructor(elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, _scrollStrategy: VirtualScrollStrategy, dir: Directionality, scrollDispatcher: ScrollDispatcher, viewportRuler: ViewportRuler, scrollable: CdkVirtualScrollable);
|
|
324
322
|
ngOnInit(): void;
|
|
325
323
|
ngOnDestroy(): void;
|