1 |
|
2 |
|
3 |
|
4 | import { AgEvent } from "../events";
|
5 | import { Column } from "./column";
|
6 | import { RowNodeCache, RowNodeCacheParams } from "../rowModels/cache/rowNodeCache";
|
7 | import { RowNodeBlock } from "../rowModels/cache/rowNodeBlock";
|
8 | import { IEventEmitter } from "../interfaces/iEventEmitter";
|
9 | import { DetailGridInfo } from "../gridApi";
|
10 | export interface SetSelectedParams {
|
11 | newValue: boolean;
|
12 | clearSelection?: boolean;
|
13 | suppressFinishActions?: boolean;
|
14 | rangeSelect?: boolean;
|
15 | groupSelectsFiltered?: boolean;
|
16 | }
|
17 | export interface RowNodeEvent extends AgEvent {
|
18 | node: RowNode;
|
19 | }
|
20 | export interface DataChangedEvent extends RowNodeEvent {
|
21 | oldData: any;
|
22 | newData: any;
|
23 | update: boolean;
|
24 | }
|
25 | export interface CellChangedEvent extends RowNodeEvent {
|
26 | column: Column;
|
27 | newValue: any;
|
28 | }
|
29 | export declare class RowNode implements IEventEmitter {
|
30 | static EVENT_ROW_SELECTED: string;
|
31 | static EVENT_DATA_CHANGED: string;
|
32 | static EVENT_CELL_CHANGED: string;
|
33 | static EVENT_ALL_CHILDREN_COUNT_CHANGED: string;
|
34 | static EVENT_MOUSE_ENTER: string;
|
35 | static EVENT_MOUSE_LEAVE: string;
|
36 | static EVENT_HEIGHT_CHANGED: string;
|
37 | static EVENT_TOP_CHANGED: string;
|
38 | static EVENT_FIRST_CHILD_CHANGED: string;
|
39 | static EVENT_LAST_CHILD_CHANGED: string;
|
40 | static EVENT_CHILD_INDEX_CHANGED: string;
|
41 | static EVENT_ROW_INDEX_CHANGED: string;
|
42 | static EVENT_EXPANDED_CHANGED: string;
|
43 | static EVENT_SELECTABLE_CHANGED: string;
|
44 | static EVENT_UI_LEVEL_CHANGED: string;
|
45 | static EVENT_DRAGGING_CHANGED: string;
|
46 | private mainEventService;
|
47 | private gridOptionsWrapper;
|
48 | private selectionController;
|
49 | private columnController;
|
50 | private valueService;
|
51 | private rowModel;
|
52 | private context;
|
53 | private valueCache;
|
54 | private columnApi;
|
55 | private gridApi;
|
56 | |
57 |
|
58 | id: string;
|
59 |
|
60 | groupData: any;
|
61 |
|
62 | aggData: any;
|
63 |
|
64 | data: any;
|
65 |
|
66 | parent: RowNode;
|
67 |
|
68 | level: number;
|
69 |
|
70 | uiLevel: number;
|
71 | |
72 |
|
73 | rowGroupIndex: number;
|
74 |
|
75 | group: boolean;
|
76 |
|
77 | dragging: boolean;
|
78 |
|
79 | master: boolean;
|
80 |
|
81 | detail: boolean;
|
82 |
|
83 | detailNode: RowNode;
|
84 |
|
85 | detailGridInfo: DetailGridInfo;
|
86 |
|
87 | canFlower: boolean;
|
88 |
|
89 | flower: boolean;
|
90 |
|
91 | childFlower: RowNode;
|
92 |
|
93 | leafGroup: boolean;
|
94 |
|
95 | firstChild: boolean;
|
96 |
|
97 | lastChild: boolean;
|
98 |
|
99 | childIndex: number;
|
100 |
|
101 | rowIndex: number;
|
102 |
|
103 | rowPinned: string;
|
104 |
|
105 | quickFilterAggregateText: string;
|
106 |
|
107 | footer: boolean;
|
108 |
|
109 | field: string;
|
110 |
|
111 | rowGroupColumn: Column;
|
112 |
|
113 | key: any;
|
114 |
|
115 | stub: boolean;
|
116 |
|
117 | allLeafChildren: RowNode[];
|
118 |
|
119 | childrenAfterGroup: RowNode[];
|
120 |
|
121 | childrenAfterFilter: RowNode[];
|
122 |
|
123 | childrenAfterSort: RowNode[];
|
124 |
|
125 | allChildrenCount: number;
|
126 |
|
127 | childrenMapped: {
|
128 | [key: string]: any;
|
129 | };
|
130 |
|
131 | childrenCache: RowNodeCache<RowNodeBlock, RowNodeCacheParams>;
|
132 |
|
133 | expanded: boolean;
|
134 |
|
135 | sibling: RowNode;
|
136 |
|
137 | rowHeight: number;
|
138 |
|
139 | rowTop: number;
|
140 | |
141 |
|
142 | oldRowTop: number;
|
143 | |
144 |
|
145 |
|
146 |
|
147 | daemon: boolean;
|
148 |
|
149 | selectable: boolean;
|
150 |
|
151 | __cacheData: {
|
152 | [colId: string]: any;
|
153 | };
|
154 | __cacheVersion: number;
|
155 | private selected;
|
156 | private eventService;
|
157 | setData(data: any): void;
|
158 | private updateDataOnDetailNode();
|
159 | private createDataChangedEvent(newData, oldData, update);
|
160 | private createLocalRowEvent(type);
|
161 | updateData(data: any): void;
|
162 | getRowIndexString(): string;
|
163 | private createDaemonNode();
|
164 | setDataAndId(data: any, id: string): void;
|
165 | private checkRowSelectable();
|
166 | setRowSelectable(newVal: boolean): void;
|
167 | setId(id: string): void;
|
168 | isPixelInRange(pixel: number): boolean;
|
169 | clearRowTop(): void;
|
170 | setFirstChild(firstChild: boolean): void;
|
171 | setLastChild(lastChild: boolean): void;
|
172 | setChildIndex(childIndex: number): void;
|
173 | setRowTop(rowTop: number): void;
|
174 | setDragging(dragging: boolean): void;
|
175 | setAllChildrenCount(allChildrenCount: number): void;
|
176 | setRowHeight(rowHeight: number): void;
|
177 | setRowIndex(rowIndex: number): void;
|
178 | setUiLevel(uiLevel: number): void;
|
179 | setExpanded(expanded: boolean): void;
|
180 | private createGlobalRowEvent(type);
|
181 | private dispatchLocalEvent(event);
|
182 | setDataValue(colKey: string | Column, newValue: any): void;
|
183 | setGroupValue(colKey: string | Column, newValue: any): void;
|
184 | setAggData(newAggData: any): void;
|
185 | hasChildren(): boolean;
|
186 | isEmptyFillerNode(): boolean;
|
187 | private dispatchCellChangedEvent(column, newValue);
|
188 | resetQuickFilterAggregateText(): void;
|
189 | isExpandable(): boolean;
|
190 | isSelected(): boolean;
|
191 | depthFirstSearch(callback: (rowNode: RowNode) => void): void;
|
192 | calculateSelectedFromChildren(): void;
|
193 | setSelectedInitialValue(selected: boolean): void;
|
194 | setSelected(newValue: boolean, clearSelection?: boolean, suppressFinishActions?: boolean): void;
|
195 | isRowPinned(): boolean;
|
196 | setSelectedParams(params: SetSelectedParams): number;
|
197 | private doRowRangeSelection();
|
198 | isParentOfNode(potentialParent: RowNode): boolean;
|
199 | selectThisNode(newValue: boolean): boolean;
|
200 | private selectChildNodes(newValue, groupSelectsFiltered);
|
201 | addEventListener(eventType: string, listener: Function): void;
|
202 | removeEventListener(eventType: string, listener: Function): void;
|
203 | onMouseEnter(): void;
|
204 | onMouseLeave(): void;
|
205 | getFirstChildOfFirstChild(rowGroupColumn: Column): RowNode;
|
206 | }
|