1 | import { Observable } from 'rxjs';
|
2 | import { NbCollectionViewer } from '../../cdk/collections/collection-viewer';
|
3 | import { NbDataSource } from '../../cdk/table/data-source';
|
4 | import { NbSortable, NbSortRequest } from '../tree-grid-sort.component';
|
5 | import { NbTreeGridDataService } from './tree-grid-data.service';
|
6 | import { NbTreeGridFilterService } from './tree-grid-filter.service';
|
7 | import { NbTreeGridSortService } from './tree-grid-sort.service';
|
8 | import { NbGetters, NbTreeGridPresentationNode } from './tree-grid.model';
|
9 | import { NbToggleOptions, NbTreeGridService } from './tree-grid.service';
|
10 | import * as i0 from "@angular/core";
|
11 | export interface NbFilterable {
|
12 | filter(filterRequest: string): any;
|
13 | }
|
14 | export declare class NbTreeGridDataSource<T> extends NbDataSource<NbTreeGridPresentationNode<T>> implements NbSortable, NbFilterable {
|
15 | private sortService;
|
16 | private filterService;
|
17 | private treeGridService;
|
18 | private treeGridDataService;
|
19 |
|
20 | private data;
|
21 |
|
22 | private readonly renderData;
|
23 | private readonly filterRequest;
|
24 | private readonly sortRequest;
|
25 | constructor(sortService: NbTreeGridSortService<T>, filterService: NbTreeGridFilterService<T>, treeGridService: NbTreeGridService<T>, treeGridDataService: NbTreeGridDataService<T>);
|
26 | setData<N>(data: N[], customGetters?: NbGetters<N, T>): void;
|
27 | connect(collectionViewer: NbCollectionViewer): Observable<NbTreeGridPresentationNode<T>[] | ReadonlyArray<NbTreeGridPresentationNode<T>>>;
|
28 | disconnect(collectionViewer: NbCollectionViewer): void;
|
29 | expand(row: T): void;
|
30 | collapse(row: T): void;
|
31 | toggle(row: T, options?: NbToggleOptions): void;
|
32 | toggleByIndex(dataIndex: number, options?: NbToggleOptions): void;
|
33 | getLevel(rowIndex: number): number;
|
34 | sort(sortRequest: NbSortRequest): void;
|
35 | filter(searchQuery: string): void;
|
36 | protected updateChangeSubscription(): void;
|
37 | private filterData;
|
38 | private sortData;
|
39 | }
|
40 | export declare class NbTreeGridDataSourceBuilder<T> {
|
41 | private filterService;
|
42 | private sortService;
|
43 | private treeGridService;
|
44 | private treeGridDataService;
|
45 | constructor(filterService: NbTreeGridFilterService<T>, sortService: NbTreeGridSortService<T>, treeGridService: NbTreeGridService<T>, treeGridDataService: NbTreeGridDataService<T>);
|
46 | create<N>(data: N[], customGetters?: NbGetters<N, T>): NbTreeGridDataSource<T>;
|
47 | static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridDataSourceBuilder<any>, never>;
|
48 | static ɵprov: i0.ɵɵInjectableDeclaration<NbTreeGridDataSourceBuilder<any>>;
|
49 | }
|