1 |
|
2 |
|
3 |
|
4 | import { RowNode } from "../../entities/rowNode";
|
5 | import { ChangedPath } from "./changedPath";
|
6 | import { RowBounds } from "../../interfaces/iRowModel";
|
7 | export interface RefreshModelParams {
|
8 | step: number;
|
9 | groupState?: any;
|
10 | keepRenderedRows?: boolean;
|
11 | animate?: boolean;
|
12 | keepEditingRows?: boolean;
|
13 | rowNodeTransactions?: RowNodeTransaction[];
|
14 | rowNodeOrder?: {
|
15 | [id: string]: number;
|
16 | };
|
17 | newData?: boolean;
|
18 | }
|
19 | export interface RowDataTransaction {
|
20 | addIndex?: number;
|
21 | add?: any[];
|
22 | remove?: any[];
|
23 | update?: any[];
|
24 | }
|
25 | export interface RowNodeTransaction {
|
26 | add: RowNode[];
|
27 | remove: RowNode[];
|
28 | update: RowNode[];
|
29 | }
|
30 | export interface BatchTransactionItem {
|
31 | rowDataTransaction: RowDataTransaction;
|
32 | callback: (res: RowNodeTransaction) => void;
|
33 | }
|
34 | export declare class ClientSideRowModel {
|
35 | private gridOptionsWrapper;
|
36 | private columnController;
|
37 | private filterManager;
|
38 | private $scope;
|
39 | private selectionController;
|
40 | private eventService;
|
41 | private context;
|
42 | private valueService;
|
43 | private valueCache;
|
44 | private columnApi;
|
45 | private gridApi;
|
46 | private filterStage;
|
47 | private sortStage;
|
48 | private flattenStage;
|
49 | private groupStage;
|
50 | private aggregationStage;
|
51 | private pivotStage;
|
52 | private rootNode;
|
53 | private rowsToDisplay;
|
54 | private nodeManager;
|
55 | private rowDataTransactionBatch;
|
56 | init(): void;
|
57 | ensureRowAtPixel(rowNode: RowNode, pixel: number): boolean;
|
58 | isLastRowFound(): boolean;
|
59 | getRowCount(): number;
|
60 | getRowBounds(index: number): RowBounds;
|
61 | private onRowGroupOpened();
|
62 | private onFilterChanged();
|
63 | private onSortChanged();
|
64 | getType(): string;
|
65 | private onValueChanged();
|
66 | private createChangePath(rowNodeTransactions);
|
67 | refreshModel(params: RefreshModelParams): void;
|
68 | isEmpty(): boolean;
|
69 | isRowsToRender(): boolean;
|
70 | getNodesInRangeForSelection(firstInRange: RowNode, lastInRange: RowNode): RowNode[];
|
71 | setDatasource(datasource: any): void;
|
72 | getTopLevelNodes(): RowNode[];
|
73 | getRootNode(): RowNode;
|
74 | getRow(index: number): RowNode;
|
75 | isRowPresent(rowNode: RowNode): boolean;
|
76 | getVirtualRowCount(): number;
|
77 | getPageFirstRow(): number;
|
78 | getPageLastRow(): number;
|
79 | getRowIndexAtPixel(pixelToMatch: number): number;
|
80 | private isRowInPixel(rowNode, pixelToMatch);
|
81 | getCurrentPageHeight(): number;
|
82 | forEachLeafNode(callback: Function): void;
|
83 | forEachNode(callback: Function): void;
|
84 | forEachNodeAfterFilter(callback: Function): void;
|
85 | forEachNodeAfterFilterAndSort(callback: Function): void;
|
86 | forEachPivotNode(callback: Function): void;
|
87 | private recursivelyWalkNodesAndCallback(nodes, callback, recursionType, index);
|
88 | doAggregate(changedPath?: ChangedPath): void;
|
89 | expandOrCollapseAll(expand: boolean): void;
|
90 | private doSort();
|
91 | private doRowGrouping(groupState, rowNodeTransactions, rowNodeOrder, changedPath);
|
92 | private restoreGroupState(groupState);
|
93 | private doFilter();
|
94 | private doPivot(changedPath);
|
95 | private getGroupState();
|
96 | getCopyOfNodesMap(): {
|
97 | [id: string]: RowNode;
|
98 | };
|
99 | getRowNode(id: string): RowNode;
|
100 | setRowData(rowData: any[]): void;
|
101 | batchUpdateRowData(rowDataTransaction: RowDataTransaction, callback?: (res: RowNodeTransaction) => void): void;
|
102 | private executeBatchUpdateRowData();
|
103 | updateRowData(rowDataTran: RowDataTransaction, rowNodeOrder?: {
|
104 | [id: string]: number;
|
105 | }): RowNodeTransaction;
|
106 | private commonUpdateRowData(rowNodeTrans, rowNodeOrder?);
|
107 | private doRowsToDisplay();
|
108 | onRowHeightChanged(): void;
|
109 | resetRowHeights(): void;
|
110 | }
|