@angular/cdk 22.0.0-next.8 → 22.0.0-rc.1
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/fesm2022/_a11y-module-chunk.mjs +22 -22
- package/fesm2022/_a11y-module-chunk.mjs.map +1 -1
- package/fesm2022/_breakpoints-observer-chunk.mjs +6 -6
- package/fesm2022/_directionality-chunk.mjs +3 -3
- package/fesm2022/_focus-monitor-chunk.mjs +9 -9
- package/fesm2022/_id-generator-chunk.mjs +3 -3
- package/fesm2022/_overlay-module-chunk.mjs +35 -37
- package/fesm2022/_overlay-module-chunk.mjs.map +1 -1
- package/fesm2022/_platform-chunk.mjs +3 -3
- package/fesm2022/_style-loader-chunk.mjs +3 -3
- package/fesm2022/_unique-selection-dispatcher-chunk.mjs +3 -3
- package/fesm2022/a11y.mjs +9 -9
- package/fesm2022/accordion.mjs +10 -10
- package/fesm2022/accordion.mjs.map +1 -1
- package/fesm2022/bidi.mjs +7 -7
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/clipboard.mjs +10 -10
- package/fesm2022/dialog.mjs +10 -10
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +32 -34
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/layout.mjs +4 -4
- package/fesm2022/listbox.mjs +10 -10
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/menu.mjs +49 -49
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/observers-private.mjs +3 -3
- package/fesm2022/observers.mjs +13 -13
- package/fesm2022/observers.mjs.map +1 -1
- package/fesm2022/overlay.mjs +3 -3
- package/fesm2022/platform.mjs +4 -4
- package/fesm2022/portal.mjs +10 -10
- package/fesm2022/portal.mjs.map +1 -1
- package/fesm2022/private.mjs +4 -6
- package/fesm2022/private.mjs.map +1 -1
- package/fesm2022/scrolling.mjs +50 -52
- package/fesm2022/scrolling.mjs.map +1 -1
- package/fesm2022/stepper.mjs +24 -26
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table.mjs +73 -73
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/text-field.mjs +17 -19
- package/fesm2022/text-field.mjs.map +1 -1
- package/fesm2022/tree.mjs +25 -25
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/types/_overlay-module-chunk.d.ts +2 -2
- package/types/_scrolling-module-chunk.d.ts +24 -17
- package/types/scrolling.d.ts +1 -1
package/package.json
CHANGED
|
@@ -26,6 +26,6 @@ function default_1() {
|
|
|
26
26
|
// In order to align the CDK version with other Angular dependencies that are setup by
|
|
27
27
|
// `@schematics/angular`, we use tilde instead of caret. This is default for Angular
|
|
28
28
|
// dependencies in new CLI projects.
|
|
29
|
-
return (0, utility_1.addDependency)('@angular/cdk', `~22.0.0-
|
|
29
|
+
return (0, utility_1.addDependency)('@angular/cdk', `~22.0.0-rc.1`, { existing: utility_1.ExistingBehavior.Skip });
|
|
30
30
|
}
|
|
31
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { OnDestroy, NgZone, EnvironmentInjector, Renderer2, ComponentRef, EmbeddedViewRef, ElementRef, Injector, OnChanges, EventEmitter, SimpleChanges, InjectionToken } from '@angular/core';
|
|
3
3
|
import { Direction, Directionality, BidiModule } from './_bidi-module-chunk.js';
|
|
4
4
|
import { PortalOutlet, ComponentPortal, TemplatePortal, PortalModule } from './_portal-directives-chunk.js';
|
|
5
|
-
import {
|
|
5
|
+
import { ScrollDispatcherTarget, ScrollingModule } from './_scrolling-module-chunk.js';
|
|
6
6
|
import { Location } from '@angular/common';
|
|
7
7
|
import { Subject, Observable } from 'rxjs';
|
|
8
8
|
import { ViewportRuler } from './scrolling.js';
|
|
@@ -550,7 +550,7 @@ declare class FlexibleConnectedPositionStrategy implements PositionStrategy {
|
|
|
550
550
|
* on reposition we can evaluate if it or the overlay has been clipped or outside view. Every
|
|
551
551
|
* Scrollable must be an ancestor element of the strategy's origin element.
|
|
552
552
|
*/
|
|
553
|
-
withScrollableContainers(scrollables:
|
|
553
|
+
withScrollableContainers(scrollables: ScrollDispatcherTarget[]): this;
|
|
554
554
|
/**
|
|
555
555
|
* Adds new preferred positions.
|
|
556
556
|
* @param positions List of positions options for this overlay.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementRef, OnDestroy, OnInit, NgZone, InjectionToken, OnChanges, DoCheck, NgIterable, TrackByFunction, TemplateRef } from '@angular/core';
|
|
3
3
|
import { Directionality, BidiModule } from './_bidi-module-chunk.js';
|
|
4
4
|
import { Observable, Subscription, Subject } from 'rxjs';
|
|
5
5
|
import { ListRange, CollectionViewer, DataSource } from './_data-source-chunk.js';
|
|
@@ -15,35 +15,42 @@ interface CdkVirtualScrollRepeater<T> {
|
|
|
15
15
|
|
|
16
16
|
/** Time in ms to throttle the scrolling events by default. */
|
|
17
17
|
declare const DEFAULT_SCROLL_TIME = 20;
|
|
18
|
+
/** Scrollable instance that can be registered with the `ScrollDispatcher`. */
|
|
19
|
+
interface ScrollDispatcherTarget {
|
|
20
|
+
/** Observable that emits when the element is scrolled. */
|
|
21
|
+
elementScrolled(): Observable<Event>;
|
|
22
|
+
/** Gets the `ElementRef` representing the scrollable element. */
|
|
23
|
+
getElementRef(): ElementRef<HTMLElement>;
|
|
24
|
+
}
|
|
18
25
|
/**
|
|
19
|
-
* Service contained all registered
|
|
20
|
-
*
|
|
26
|
+
* Service contained all registered scroll targets and emits
|
|
27
|
+
* an event when any one of them emits a scrolled event.
|
|
21
28
|
*/
|
|
22
29
|
declare class ScrollDispatcher implements OnDestroy {
|
|
23
30
|
private _ngZone;
|
|
24
31
|
private _platform;
|
|
25
32
|
private _renderer;
|
|
26
33
|
private _cleanupGlobalListener;
|
|
27
|
-
/** Subject for notifying that a registered
|
|
34
|
+
/** Subject for notifying that a registered element has been scrolled. */
|
|
28
35
|
private readonly _scrolled;
|
|
29
36
|
/** Keeps track of the amount of subscriptions to `scrolled`. Used for cleaning up afterwards. */
|
|
30
37
|
private _scrolledCount;
|
|
31
38
|
/**
|
|
32
|
-
* Map of all the scrollable
|
|
39
|
+
* Map of all the scrollable targets that are registered with the service and their
|
|
33
40
|
* scroll event subscriptions.
|
|
34
41
|
*/
|
|
35
|
-
scrollContainers: Map<
|
|
42
|
+
readonly scrollContainers: Map<ScrollDispatcherTarget, Subscription>;
|
|
36
43
|
/**
|
|
37
44
|
* Registers a scrollable instance with the service and listens for its scrolled events. When the
|
|
38
45
|
* scrollable is scrolled, the service emits the event to its scrolled observable.
|
|
39
|
-
* @param
|
|
46
|
+
* @param target Scrollable instance to be registered.
|
|
40
47
|
*/
|
|
41
|
-
register(
|
|
48
|
+
register(target: ScrollDispatcherTarget): void;
|
|
42
49
|
/**
|
|
43
50
|
* De-registers a Scrollable reference and unsubscribes from its scroll event observable.
|
|
44
|
-
* @param
|
|
51
|
+
* @param target Scrollable instance to be deregistered.
|
|
45
52
|
*/
|
|
46
|
-
deregister(
|
|
53
|
+
deregister(target: ScrollDispatcherTarget): void;
|
|
47
54
|
/**
|
|
48
55
|
* Returns an observable that emits an event whenever any of the registered Scrollable
|
|
49
56
|
* references (or window, document, or body) fire a scrolled event. Can provide a time in ms
|
|
@@ -54,7 +61,7 @@ declare class ScrollDispatcher implements OnDestroy {
|
|
|
54
61
|
* If you need to update any data bindings as a result of a scroll event, you have
|
|
55
62
|
* to run the callback using `NgZone.run`.
|
|
56
63
|
*/
|
|
57
|
-
scrolled(auditTimeInMs?: number): Observable<
|
|
64
|
+
scrolled(auditTimeInMs?: number): Observable<ScrollDispatcherTarget | void>;
|
|
58
65
|
ngOnDestroy(): void;
|
|
59
66
|
/**
|
|
60
67
|
* Returns an observable that emits whenever any of the
|
|
@@ -62,11 +69,11 @@ declare class ScrollDispatcher implements OnDestroy {
|
|
|
62
69
|
* @param elementOrElementRef Element whose ancestors to listen for.
|
|
63
70
|
* @param auditTimeInMs Time to throttle the scroll events.
|
|
64
71
|
*/
|
|
65
|
-
ancestorScrolled(elementOrElementRef: ElementRef | HTMLElement, auditTimeInMs?: number): Observable<
|
|
66
|
-
/** Returns all registered
|
|
67
|
-
getAncestorScrollContainers(elementOrElementRef: ElementRef | HTMLElement):
|
|
72
|
+
ancestorScrolled(elementOrElementRef: ElementRef | HTMLElement, auditTimeInMs?: number): Observable<ScrollDispatcherTarget | void>;
|
|
73
|
+
/** Returns all registered containers that contain the provided element. */
|
|
74
|
+
getAncestorScrollContainers(elementOrElementRef: ElementRef | HTMLElement): ScrollDispatcherTarget[];
|
|
68
75
|
/** Returns true if the element is contained within the provided Scrollable. */
|
|
69
|
-
private
|
|
76
|
+
private _targetContainsElement;
|
|
70
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollDispatcher, never>;
|
|
71
78
|
static ɵprov: i0.ɵɵInjectableDeclaration<ScrollDispatcher>;
|
|
72
79
|
}
|
|
@@ -107,7 +114,7 @@ type ExtendedScrollToOptions = _XAxis & _YAxis & ScrollOptions;
|
|
|
107
114
|
* ScrollDispatcher service to include itself as part of its collection of scrolling events that it
|
|
108
115
|
* can be listened to through the service.
|
|
109
116
|
*/
|
|
110
|
-
declare class CdkScrollable implements OnInit, OnDestroy {
|
|
117
|
+
declare class CdkScrollable implements ScrollDispatcherTarget, OnInit, OnDestroy {
|
|
111
118
|
protected elementRef: ElementRef<HTMLElement>;
|
|
112
119
|
protected scrollDispatcher: ScrollDispatcher;
|
|
113
120
|
protected ngZone: NgZone;
|
|
@@ -554,4 +561,4 @@ declare class ScrollingModule {
|
|
|
554
561
|
}
|
|
555
562
|
|
|
556
563
|
export { CDK_VIRTUAL_SCROLL_VIEWPORT, CdkFixedSizeVirtualScroll, CdkScrollable, CdkScrollableModule, CdkVirtualForOf, CdkVirtualScrollViewport, CdkVirtualScrollable, CdkVirtualScrollableElement, CdkVirtualScrollableWindow, DEFAULT_SCROLL_TIME, FixedSizeVirtualScrollStrategy, ScrollDispatcher, ScrollingModule, VIRTUAL_SCROLLABLE, VIRTUAL_SCROLL_STRATEGY, _fixedSizeVirtualScrollStrategyFactory };
|
|
557
|
-
export type { CdkVirtualForOfContext, CdkVirtualScrollRepeater, ExtendedScrollToOptions, VirtualScrollStrategy, _Bottom, _End, _Left, _Right, _Start, _Top, _Without, _XAxis, _XOR, _YAxis };
|
|
564
|
+
export type { CdkVirtualForOfContext, CdkVirtualScrollRepeater, ExtendedScrollToOptions, ScrollDispatcherTarget, VirtualScrollStrategy, _Bottom, _End, _Left, _Right, _Start, _Top, _Without, _XAxis, _XOR, _YAxis };
|
package/types/scrolling.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CDK_VIRTUAL_SCROLL_VIEWPORT, CdkFixedSizeVirtualScroll, CdkScrollable, CdkScrollableModule, CdkVirtualForOf, CdkVirtualForOfContext, CdkVirtualScrollRepeater, CdkVirtualScrollViewport, CdkVirtualScrollable, CdkVirtualScrollableElement, CdkVirtualScrollableWindow, DEFAULT_SCROLL_TIME, ExtendedScrollToOptions, FixedSizeVirtualScrollStrategy, ScrollDispatcher, ScrollingModule, VIRTUAL_SCROLLABLE, VIRTUAL_SCROLL_STRATEGY, VirtualScrollStrategy, _Bottom, _End, _Left, _Right, _Start, _Top, _Without, _XAxis, _XOR, _YAxis, _fixedSizeVirtualScrollStrategyFactory } from './_scrolling-module-chunk.js';
|
|
1
|
+
export { CDK_VIRTUAL_SCROLL_VIEWPORT, CdkFixedSizeVirtualScroll, CdkScrollable, CdkScrollableModule, CdkVirtualForOf, CdkVirtualForOfContext, CdkVirtualScrollRepeater, CdkVirtualScrollViewport, CdkVirtualScrollable, CdkVirtualScrollableElement, CdkVirtualScrollableWindow, DEFAULT_SCROLL_TIME, ExtendedScrollToOptions, FixedSizeVirtualScrollStrategy, ScrollDispatcher, ScrollDispatcherTarget, ScrollingModule, VIRTUAL_SCROLLABLE, VIRTUAL_SCROLL_STRATEGY, VirtualScrollStrategy, _Bottom, _End, _Left, _Right, _Start, _Top, _Without, _XAxis, _XOR, _YAxis, _fixedSizeVirtualScrollStrategyFactory } from './_scrolling-module-chunk.js';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { OnDestroy } from '@angular/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|