import { CdkTable } from '@angular/cdk/table'; import { AfterContentInit, NgZone, OnChanges, OnDestroy } from '@angular/core'; import { FixedSizeTableVirtualScrollStrategy } from './fixed-size-table-virtual-scroll-strategy'; import * as i0 from "@angular/core"; export declare class TableItemSizeDirective implements OnChanges, AfterContentInit, OnDestroy { private ngZone; keyEvent(event: KeyboardEvent): void; rowHeight: string | number; headerEnabled: boolean; headerHeight: string | number; footerEnabled: boolean; footerHeight: string | number; /** * Used to calculate the number of items buffered before the first and after the last displayed item; * NumberOfBufferedItems = displayed items * bufferMultiplier */ bufferMultiplier: string | number; private readonly firstVisibleIndexChanged$; firstVisibleIndexChanged: import("rxjs").Observable; private readonly visibleRowsChanged$; visibleRowsChanged: import("rxjs").Observable; private readonly totalRowsChanged$; totalRowsChanged: import("rxjs").Observable; private readonly filteredRowsChanged$; filteredRowsChanged: import("rxjs").Observable; protected table: CdkTable; protected scrollStrategy: FixedSizeTableVirtualScrollStrategy; private readonly rangeToDisplay$; private readonly dataSourceChanges$; private readonly unsubscribe$; private stickyPositions; private resetStickyPositions; private stickyEnabled; constructor(ngZone: NgZone, virtualScrollStrategy: FixedSizeTableVirtualScrollStrategy); ngOnDestroy(): void; ngAfterContentInit(): void; ngOnChanges(): void; /** * Get the length of the data bound to this table (in number of items). * @returns number of entries in the datastore */ getDataLength(): number; /** * Scroll table so that entry with given index is the first visible one. * The index is limited to available ones (0... dataLength - 1) by the virtual scroller. * @param index - index of entry to scroll to (zero based) */ scrollToIndex(index: number): void; /** * Scroll table so that entry with given index is in the center of the visible rows. * The index is limited to available ones (0... dataLength - 1) by the virtual scroller. * @param index - index of entry to scroll to (zero based) */ scrollToIndexCentered(index: number): void; /** * Attach this virtual scroller to the dataSource of the table. * @param dataSource - DataSource to connect this virtual scroller to. */ private connectDataSource; private setStickyEnabled; private setStickyHeader; private setStickyFooter; private initStickyPositions; /** * Detect stable context when sticky rows change. * @returns stream that emits 1 value when the context is stable */ private getScheduleObservable; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵdir: i0.ɵɵDirectiveDeclaration, "cdk-virtual-scroll-viewport[tvsItemSize]", ["table-virtual-scroll"], { "rowHeight": { "alias": "tvsItemSize"; "required": false; }; "headerEnabled": { "alias": "headerEnabled"; "required": false; }; "headerHeight": { "alias": "headerHeight"; "required": false; }; "footerEnabled": { "alias": "footerEnabled"; "required": false; }; "footerHeight": { "alias": "footerHeight"; "required": false; }; "bufferMultiplier": { "alias": "bufferMultiplier"; "required": false; }; }, { "firstVisibleIndexChanged": "firstVisibleIndexChanged"; "visibleRowsChanged": "visibleRowsChanged"; "totalRowsChanged": "totalRowsChanged"; "filteredRowsChanged": "filteredRowsChanged"; }, ["table"], never, true, never>; }