UNPKG

2.19 kBTypeScriptView Raw
1// Type definitions for ag-grid v18.1.2
2// Project: http://www.ag-grid.com/
3// Definitions by: Niall Crosby <https://github.com/ag-grid/>
4import { RowNode } from "../../entities/rowNode";
5import { GridOptionsWrapper } from "../../gridOptionsWrapper";
6import { Context } from "../../context/context";
7import { EventService } from "../../eventService";
8import { RowDataTransaction, RowNodeTransaction } from "./clientSideRowModel";
9import { ColumnController } from "../../columnController/columnController";
10import { GridApi } from "../../gridApi";
11import { ColumnApi } from "../../columnController/columnApi";
12import { SelectionController } from "../../selectionController";
13export declare class ClientSideNodeManager {
14 private static TOP_LEVEL;
15 private rootNode;
16 private gridOptionsWrapper;
17 private context;
18 private eventService;
19 private columnController;
20 private selectionController;
21 private nextId;
22 private static ROOT_NODE_ID;
23 private getNodeChildDetails;
24 private doesDataFlower;
25 private isRowMasterFunc;
26 private suppressParentsInRowNodes;
27 private doingLegacyTreeData;
28 private doingMasterDetail;
29 private allNodesMap;
30 private columnApi;
31 private gridApi;
32 constructor(rootNode: RowNode, gridOptionsWrapper: GridOptionsWrapper, context: Context, eventService: EventService, columnController: ColumnController, gridApi: GridApi, columnApi: ColumnApi, selectionController: SelectionController);
33 postConstruct(): void;
34 getCopyOfNodesMap(): {
35 [id: string]: RowNode;
36 };
37 getRowNode(id: string): RowNode;
38 setRowData(rowData: any[]): RowNode[];
39 updateRowData(rowDataTran: RowDataTransaction, rowNodeOrder: {
40 [id: string]: number;
41 }): RowNodeTransaction;
42 private addRowNode(data, index?);
43 private lookupRowNode(data);
44 private updatedRowNode(rowNode, data, update);
45 private recursiveFunction(rowData, parent, level);
46 private createNode(dataItem, parent, level);
47 private isExpanded(level);
48 private setLeafChildren(node);
49 insertItemsAtIndex(index: number, rowData: any[]): RowNode[];
50 addItems(items: any): RowNode[];
51 isLegacyTreeData(): boolean;
52}