@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
49 lines • 1.81 kB
TypeScript
import { CollectionViewer, DataSource } from '@angular/cdk/collections';
import { IResultList } from '@c8y/client';
import { Observable } from 'rxjs';
import { DataSourceStats, Row } from './data-grid.model';
export declare class GridDataSource implements DataSource<object> {
loading$: Observable<boolean>;
data$: Observable<object[]>;
stats$: Observable<DataSourceStats>;
selection$: Observable<any>;
resultList$: Observable<IResultList<object>>;
nodesLoading$: Observable<Row[]>;
set childNodesProperty(name: string);
private loadingSubject;
private dataSourceSubject;
private dataStatsSubject;
private dataSelectionSubject;
private resultListSubject;
private nodesLoadingSubject;
private childNodesPropertyName;
constructor();
connect(_collectionViewer: CollectionViewer): Observable<object[]>;
disconnect(_collectionViewer: CollectionViewer): void;
loadData({ rows, columns, pagination, searchText, serverSideDataCallback, selectable, selectionPrimaryKey, infiniteScroll, reload, parentRow }: {
rows: any;
columns: any;
pagination: any;
searchText: any;
serverSideDataCallback: any;
selectable: any;
selectionPrimaryKey: any;
infiniteScroll: any;
reload?: boolean;
parentRow?: any;
}): void;
collapseNode(row: Row): void;
resolveValue(x: any, path: any): any;
resolveFunction(x: any): any;
normalizeNil(x: any): any;
private getLevel;
private emitLoadingStart;
private emitLoadingEnd;
private doClientSideFiltering;
private doClientSideSearch;
private doClientSideSorting;
private doClientSidePagination;
private createRegexSearch;
private isParent;
}
//# sourceMappingURL=grid-data-source.d.ts.map