@@ -26,7 +26,6 @@ import { OnDestroy } from '@angular/core';
26
26
import { OnInit } from ' @angular/core' ;
27
27
import { Platform } from ' @angular/cdk/platform' ;
28
28
import { _RecycleViewRepeaterStrategy } from ' @angular/cdk/collections' ;
29
- import { Renderer2 } from ' @angular/core' ;
30
29
import { Subject } from ' rxjs' ;
31
30
import { Subscription } from ' rxjs' ;
32
31
import { TemplateRef } from ' @angular/core' ;
@@ -65,10 +64,14 @@ export class CdkFixedSizeVirtualScroll implements OnChanges {
65
64
export class CdkScrollable implements OnInit , OnDestroy {
66
65
constructor (elementRef : ElementRef <HTMLElement >, scrollDispatcher : ScrollDispatcher , ngZone : NgZone , dir ? : Directionality | undefined );
67
66
// (undocumented)
67
+ protected readonly _destroyed: Subject <void >;
68
+ // (undocumented)
68
69
protected dir? : Directionality | undefined ;
69
70
// (undocumented)
70
71
protected elementRef: ElementRef <HTMLElement >;
71
72
elementScrolled(): Observable <Event >;
73
+ // (undocumented)
74
+ protected _elementScrolled: Observable <Event >;
72
75
getElementRef(): ElementRef <HTMLElement >;
73
76
measureScrollOffset(from : ' top' | ' left' | ' right' | ' bottom' | ' start' | ' end' ): number ;
74
77
// (undocumented)
@@ -142,6 +145,8 @@ export type CdkVirtualForOfContext<T> = {
142
145
export abstract class CdkVirtualScrollable extends CdkScrollable {
143
146
constructor (elementRef : ElementRef <HTMLElement >, scrollDispatcher : ScrollDispatcher , ngZone : NgZone , dir ? : Directionality );
144
147
// (undocumented)
148
+ abstract getBoundingClientRectWithScrollOffset(from : ' left' | ' top' | ' right' | ' bottom' ): number ;
149
+ // (undocumented)
145
150
measureViewportSize(orientation : ' horizontal' | ' vertical' ): number ;
146
151
// (undocumented)
147
152
static ɵdir: i0 .ɵɵDirectiveDeclaration <CdkVirtualScrollable , never , never , {}, {}, never >;
@@ -153,6 +158,8 @@ export abstract class CdkVirtualScrollable extends CdkScrollable {
153
158
export class CdkVirtualScrollableElement extends CdkVirtualScrollable {
154
159
constructor (elementRef : ElementRef , scrollDispatcher : ScrollDispatcher , ngZone : NgZone , dir : Directionality );
155
160
// (undocumented)
161
+ getBoundingClientRectWithScrollOffset(from : ' left' | ' top' | ' right' | ' bottom' ): number ;
162
+ // (undocumented)
156
163
static ɵdir: i0 .ɵɵDirectiveDeclaration <CdkVirtualScrollableElement , " [cdk-virtual-scrollable-element], [cdkVirtualScrollableElement]" , never , {}, {}, never >;
157
164
// (undocumented)
158
165
static ɵfac: i0 .ɵɵFactoryDeclaration <CdkVirtualScrollableElement , [null , null , null , { optional: true ; }]>;
@@ -162,6 +169,10 @@ export class CdkVirtualScrollableElement extends CdkVirtualScrollable {
162
169
export class CdkVirtualScrollableWindow extends CdkVirtualScrollable {
163
170
constructor (scrollDispatcher : ScrollDispatcher , ngZone : NgZone , dir : Directionality );
164
171
// (undocumented)
172
+ protected _elementScrolled: Observable <Event >;
173
+ // (undocumented)
174
+ getBoundingClientRectWithScrollOffset(from : ' left' | ' top' | ' right' | ' bottom' ): number ;
175
+ // (undocumented)
165
176
static ɵdir: i0 .ɵɵDirectiveDeclaration <CdkVirtualScrollableWindow , " cdk-virtual-scroll-viewport[scrollable-window]" , never , {}, {}, never >;
166
177
// (undocumented)
167
178
static ɵfac: i0 .ɵɵFactoryDeclaration <CdkVirtualScrollableWindow , [null , null , { optional: true ; }]>;
@@ -177,7 +188,7 @@ export interface CdkVirtualScrollRepeater<T> {
177
188
178
189
// @public
179
190
export class CdkVirtualScrollViewport extends CdkVirtualScrollable implements OnInit , OnDestroy {
180
- constructor (elementRef : ElementRef <HTMLElement >, _changeDetectorRef : ChangeDetectorRef , ngZone : NgZone , _scrollStrategy : VirtualScrollStrategy , dir : Directionality , scrollDispatcher : ScrollDispatcher , viewportRuler : ViewportRuler , renderer : Renderer2 , scrollable : CdkVirtualScrollable );
191
+ constructor (elementRef : ElementRef <HTMLElement >, _changeDetectorRef : ChangeDetectorRef , ngZone : NgZone , _scrollStrategy : VirtualScrollStrategy , dir : Directionality , scrollDispatcher : ScrollDispatcher , viewportRuler : ViewportRuler , scrollable : CdkVirtualScrollable );
181
192
get appendOnly(): boolean ;
182
193
set appendOnly(value : BooleanInput );
183
194
attach(forOf : CdkVirtualScrollRepeater <any >): void ;
@@ -186,6 +197,8 @@ export class CdkVirtualScrollViewport extends CdkVirtualScrollable implements On
186
197
detach(): void ;
187
198
// (undocumented)
188
199
elementRef: ElementRef <HTMLElement >;
200
+ // (undocumented)
201
+ getBoundingClientRectWithScrollOffset(from : ' left' | ' top' | ' right' | ' bottom' ): number ;
189
202
getDataLength(): number ;
190
203
getOffsetToRenderedContentStart(): number | null ;
191
204
getRenderedRange(): ListRange ;
@@ -215,7 +228,7 @@ export class CdkVirtualScrollViewport extends CdkVirtualScrollable implements On
215
228
// (undocumented)
216
229
static ɵcmp: i0 .ɵɵComponentDeclaration <CdkVirtualScrollViewport , " cdk-virtual-scroll-viewport" , never , { " orientation" : " orientation" ; " appendOnly" : " appendOnly" ; }, { " scrolledIndexChange" : " scrolledIndexChange" ; }, never , [" *" ]>;
217
230
// (undocumented)
218
- static ɵfac: i0 .ɵɵFactoryDeclaration <CdkVirtualScrollViewport , [null , null , null , { optional: true ; }, { optional: true ; }, null , null , null , { optional: true ; }]>;
231
+ static ɵfac: i0 .ɵɵFactoryDeclaration <CdkVirtualScrollViewport , [null , null , null , { optional: true ; }, { optional: true ; }, null , null , { optional: true ; }]>;
219
232
}
220
233
221
234
// @public
0 commit comments