1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | "use strict";
|
8 | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
9 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
10 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
11 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
12 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
13 | };
|
14 | var __metadata = (this && this.__metadata) || function (k, v) {
|
15 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
16 | };
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | var eventService_1 = require("../eventService");
|
19 | var events_1 = require("../events");
|
20 | var gridOptionsWrapper_1 = require("../gridOptionsWrapper");
|
21 | var selectionController_1 = require("../selectionController");
|
22 | var valueService_1 = require("../valueService/valueService");
|
23 | var columnController_1 = require("../columnController/columnController");
|
24 | var columnApi_1 = require("../columnController/columnApi");
|
25 | var context_1 = require("../context/context");
|
26 | var constants_1 = require("../constants");
|
27 | var utils_1 = require("../utils");
|
28 | var valueCache_1 = require("../valueService/valueCache");
|
29 | var gridApi_1 = require("../gridApi");
|
30 | var RowNode = (function () {
|
31 | function RowNode() {
|
32 |
|
33 | this.childrenMapped = {};
|
34 |
|
35 | this.selectable = true;
|
36 | this.selected = false;
|
37 | }
|
38 | RowNode.prototype.setData = function (data) {
|
39 | var oldData = this.data;
|
40 | this.data = data;
|
41 | this.valueCache.onDataChanged();
|
42 | this.updateDataOnDetailNode();
|
43 | this.checkRowSelectable();
|
44 | var event = this.createDataChangedEvent(data, oldData, false);
|
45 | this.dispatchLocalEvent(event);
|
46 | };
|
47 |
|
48 |
|
49 |
|
50 | RowNode.prototype.updateDataOnDetailNode = function () {
|
51 | if (this.detailNode) {
|
52 | this.detailNode.data = this.data;
|
53 | }
|
54 | };
|
55 | RowNode.prototype.createDataChangedEvent = function (newData, oldData, update) {
|
56 | return {
|
57 | type: RowNode.EVENT_DATA_CHANGED,
|
58 | node: this,
|
59 | oldData: oldData,
|
60 | newData: newData,
|
61 | update: update
|
62 | };
|
63 | };
|
64 | RowNode.prototype.createLocalRowEvent = function (type) {
|
65 | return {
|
66 | type: type,
|
67 | node: this
|
68 | };
|
69 | };
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 | RowNode.prototype.updateData = function (data) {
|
76 | var oldData = this.data;
|
77 | this.data = data;
|
78 | this.updateDataOnDetailNode();
|
79 | this.checkRowSelectable();
|
80 | this.updateDataOnDetailNode();
|
81 | var event = this.createDataChangedEvent(data, oldData, true);
|
82 | this.dispatchLocalEvent(event);
|
83 | };
|
84 | RowNode.prototype.getRowIndexString = function () {
|
85 | if (this.rowPinned === constants_1.Constants.PINNED_TOP) {
|
86 | return 't-' + this.rowIndex;
|
87 | }
|
88 | else if (this.rowPinned === constants_1.Constants.PINNED_BOTTOM) {
|
89 | return 'b-' + this.rowIndex;
|
90 | }
|
91 | else {
|
92 | return this.rowIndex.toString();
|
93 | }
|
94 | };
|
95 | RowNode.prototype.createDaemonNode = function () {
|
96 | var oldNode = new RowNode();
|
97 | this.context.wireBean(oldNode);
|
98 |
|
99 |
|
100 |
|
101 | oldNode.id = this.id;
|
102 | oldNode.data = this.data;
|
103 | oldNode.daemon = true;
|
104 | oldNode.selected = this.selected;
|
105 | oldNode.level = this.level;
|
106 | return oldNode;
|
107 | };
|
108 | RowNode.prototype.setDataAndId = function (data, id) {
|
109 | var oldNode = utils_1.Utils.exists(this.id) ? this.createDaemonNode() : null;
|
110 | var oldData = this.data;
|
111 | this.data = data;
|
112 | this.updateDataOnDetailNode();
|
113 | this.setId(id);
|
114 | this.selectionController.syncInRowNode(this, oldNode);
|
115 | this.checkRowSelectable();
|
116 | var event = this.createDataChangedEvent(data, oldData, false);
|
117 | this.dispatchLocalEvent(event);
|
118 | };
|
119 | RowNode.prototype.checkRowSelectable = function () {
|
120 | var isRowSelectableFunc = this.gridOptionsWrapper.getIsRowSelectableFunc();
|
121 | var shouldInvokeIsRowSelectable = isRowSelectableFunc && utils_1.Utils.exists(this);
|
122 | this.setRowSelectable(shouldInvokeIsRowSelectable ? isRowSelectableFunc(this) : true);
|
123 | };
|
124 | RowNode.prototype.setRowSelectable = function (newVal) {
|
125 | if (this.selectable !== newVal) {
|
126 | this.selectable = newVal;
|
127 | if (this.eventService) {
|
128 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_SELECTABLE_CHANGED));
|
129 | }
|
130 | }
|
131 | };
|
132 | RowNode.prototype.setId = function (id) {
|
133 |
|
134 | var getRowNodeId = this.gridOptionsWrapper.getRowNodeIdFunc();
|
135 | if (getRowNodeId) {
|
136 |
|
137 |
|
138 | if (this.data) {
|
139 | this.id = getRowNodeId(this.data);
|
140 | }
|
141 | else {
|
142 |
|
143 |
|
144 |
|
145 | this.id = undefined;
|
146 | }
|
147 | }
|
148 | else {
|
149 | this.id = id;
|
150 | }
|
151 | };
|
152 | RowNode.prototype.isPixelInRange = function (pixel) {
|
153 | return pixel >= this.rowTop && pixel < (this.rowTop + this.rowHeight);
|
154 | };
|
155 | RowNode.prototype.clearRowTop = function () {
|
156 | this.oldRowTop = this.rowTop;
|
157 | this.setRowTop(null);
|
158 | };
|
159 | RowNode.prototype.setFirstChild = function (firstChild) {
|
160 | if (this.firstChild === firstChild) {
|
161 | return;
|
162 | }
|
163 | this.firstChild = firstChild;
|
164 | if (this.eventService) {
|
165 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_FIRST_CHILD_CHANGED));
|
166 | }
|
167 | };
|
168 | RowNode.prototype.setLastChild = function (lastChild) {
|
169 | if (this.lastChild === lastChild) {
|
170 | return;
|
171 | }
|
172 | this.lastChild = lastChild;
|
173 | if (this.eventService) {
|
174 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_LAST_CHILD_CHANGED));
|
175 | }
|
176 | };
|
177 | RowNode.prototype.setChildIndex = function (childIndex) {
|
178 | if (this.childIndex === childIndex) {
|
179 | return;
|
180 | }
|
181 | this.childIndex = childIndex;
|
182 | if (this.eventService) {
|
183 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_CHILD_INDEX_CHANGED));
|
184 | }
|
185 | };
|
186 | RowNode.prototype.setRowTop = function (rowTop) {
|
187 | if (this.rowTop === rowTop) {
|
188 | return;
|
189 | }
|
190 | this.rowTop = rowTop;
|
191 | if (this.eventService) {
|
192 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_TOP_CHANGED));
|
193 | }
|
194 | };
|
195 | RowNode.prototype.setDragging = function (dragging) {
|
196 | if (this.dragging === dragging) {
|
197 | return;
|
198 | }
|
199 | this.dragging = dragging;
|
200 | if (this.eventService) {
|
201 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_DRAGGING_CHANGED));
|
202 | }
|
203 | };
|
204 | RowNode.prototype.setAllChildrenCount = function (allChildrenCount) {
|
205 | if (this.allChildrenCount === allChildrenCount) {
|
206 | return;
|
207 | }
|
208 | this.allChildrenCount = allChildrenCount;
|
209 | if (this.eventService) {
|
210 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED));
|
211 | }
|
212 | };
|
213 | RowNode.prototype.setRowHeight = function (rowHeight) {
|
214 | this.rowHeight = rowHeight;
|
215 | if (this.eventService) {
|
216 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_HEIGHT_CHANGED));
|
217 | }
|
218 | };
|
219 | RowNode.prototype.setRowIndex = function (rowIndex) {
|
220 | this.rowIndex = rowIndex;
|
221 | if (this.eventService) {
|
222 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_ROW_INDEX_CHANGED));
|
223 | }
|
224 | };
|
225 | RowNode.prototype.setUiLevel = function (uiLevel) {
|
226 | if (this.uiLevel === uiLevel) {
|
227 | return;
|
228 | }
|
229 | this.uiLevel = uiLevel;
|
230 | if (this.eventService) {
|
231 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_UI_LEVEL_CHANGED));
|
232 | }
|
233 | };
|
234 | RowNode.prototype.setExpanded = function (expanded) {
|
235 | if (this.expanded === expanded) {
|
236 | return;
|
237 | }
|
238 | this.expanded = expanded;
|
239 | if (this.eventService) {
|
240 | this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_EXPANDED_CHANGED));
|
241 | }
|
242 | var event = this.createGlobalRowEvent(events_1.Events.EVENT_ROW_GROUP_OPENED);
|
243 | this.mainEventService.dispatchEvent(event);
|
244 | if (this.gridOptionsWrapper.isGroupIncludeFooter()) {
|
245 | this.gridApi.redrawRows({ rowNodes: [this] });
|
246 | }
|
247 | };
|
248 | RowNode.prototype.createGlobalRowEvent = function (type) {
|
249 | var event = {
|
250 | type: type,
|
251 | node: this,
|
252 | data: this.data,
|
253 | rowIndex: this.rowIndex,
|
254 | rowPinned: this.rowPinned,
|
255 | context: this.gridOptionsWrapper.getContext(),
|
256 | api: this.gridOptionsWrapper.getApi(),
|
257 | columnApi: this.gridOptionsWrapper.getColumnApi()
|
258 | };
|
259 | return event;
|
260 | };
|
261 | RowNode.prototype.dispatchLocalEvent = function (event) {
|
262 | if (this.eventService) {
|
263 | this.eventService.dispatchEvent(event);
|
264 | }
|
265 | };
|
266 |
|
267 |
|
268 |
|
269 |
|
270 |
|
271 | RowNode.prototype.setDataValue = function (colKey, newValue) {
|
272 | var column = this.columnController.getPrimaryColumn(colKey);
|
273 | this.valueService.setValue(this, column, newValue);
|
274 | this.dispatchCellChangedEvent(column, newValue);
|
275 | };
|
276 | RowNode.prototype.setGroupValue = function (colKey, newValue) {
|
277 | var column = this.columnController.getGridColumn(colKey);
|
278 | if (utils_1.Utils.missing(this.groupData)) {
|
279 | this.groupData = {};
|
280 | }
|
281 | this.groupData[column.getColId()] = newValue;
|
282 | this.dispatchCellChangedEvent(column, newValue);
|
283 | };
|
284 |
|
285 | RowNode.prototype.setAggData = function (newAggData) {
|
286 | var _this = this;
|
287 |
|
288 | var colIds = utils_1.Utils.getAllKeysInObjects([this.aggData, newAggData]);
|
289 | this.aggData = newAggData;
|
290 |
|
291 | if (this.eventService) {
|
292 | colIds.forEach(function (colId) {
|
293 | var column = _this.columnController.getGridColumn(colId);
|
294 | var value = _this.aggData ? _this.aggData[colId] : undefined;
|
295 | _this.dispatchCellChangedEvent(column, value);
|
296 | });
|
297 | }
|
298 | };
|
299 | RowNode.prototype.hasChildren = function () {
|
300 |
|
301 |
|
302 |
|
303 | return this.group || (this.childrenAfterGroup && this.childrenAfterGroup.length > 0);
|
304 | };
|
305 | RowNode.prototype.isEmptyFillerNode = function () {
|
306 | return this.group && utils_1.Utils.missingOrEmpty(this.childrenAfterGroup);
|
307 | };
|
308 | RowNode.prototype.dispatchCellChangedEvent = function (column, newValue) {
|
309 | var cellChangedEvent = {
|
310 | type: RowNode.EVENT_CELL_CHANGED,
|
311 | node: this,
|
312 | column: column,
|
313 | newValue: newValue
|
314 | };
|
315 | this.dispatchLocalEvent(cellChangedEvent);
|
316 | };
|
317 | RowNode.prototype.resetQuickFilterAggregateText = function () {
|
318 | this.quickFilterAggregateText = null;
|
319 | };
|
320 | RowNode.prototype.isExpandable = function () {
|
321 | return this.hasChildren() || this.master;
|
322 | };
|
323 | RowNode.prototype.isSelected = function () {
|
324 |
|
325 | if (this.footer) {
|
326 | return this.sibling.isSelected();
|
327 | }
|
328 | return this.selected;
|
329 | };
|
330 | RowNode.prototype.depthFirstSearch = function (callback) {
|
331 | if (this.childrenAfterGroup) {
|
332 | this.childrenAfterGroup.forEach(function (child) { return child.depthFirstSearch(callback); });
|
333 | }
|
334 | callback(this);
|
335 | };
|
336 |
|
337 |
|
338 | RowNode.prototype.calculateSelectedFromChildren = function () {
|
339 | var atLeastOneSelected = false;
|
340 | var atLeastOneDeSelected = false;
|
341 | var atLeastOneMixed = false;
|
342 | var newSelectedValue;
|
343 | if (this.childrenAfterGroup) {
|
344 | for (var i = 0; i < this.childrenAfterGroup.length; i++) {
|
345 | var child = this.childrenAfterGroup[i];
|
346 |
|
347 | if (!child.selectable)
|
348 | continue;
|
349 | var childState = child.isSelected();
|
350 | switch (childState) {
|
351 | case true:
|
352 | atLeastOneSelected = true;
|
353 | break;
|
354 | case false:
|
355 | atLeastOneDeSelected = true;
|
356 | break;
|
357 | default:
|
358 | atLeastOneMixed = true;
|
359 | break;
|
360 | }
|
361 | }
|
362 | }
|
363 | if (atLeastOneMixed) {
|
364 | newSelectedValue = undefined;
|
365 | }
|
366 | else if (atLeastOneSelected && !atLeastOneDeSelected) {
|
367 | newSelectedValue = true;
|
368 | }
|
369 | else if (!atLeastOneSelected && atLeastOneDeSelected) {
|
370 | newSelectedValue = false;
|
371 | }
|
372 | else {
|
373 | newSelectedValue = undefined;
|
374 | }
|
375 | this.selectThisNode(newSelectedValue);
|
376 | };
|
377 | RowNode.prototype.setSelectedInitialValue = function (selected) {
|
378 | this.selected = selected;
|
379 | };
|
380 | RowNode.prototype.setSelected = function (newValue, clearSelection, suppressFinishActions) {
|
381 | if (clearSelection === void 0) { clearSelection = false; }
|
382 | if (suppressFinishActions === void 0) { suppressFinishActions = false; }
|
383 | this.setSelectedParams({
|
384 | newValue: newValue,
|
385 | clearSelection: clearSelection,
|
386 | suppressFinishActions: suppressFinishActions,
|
387 | rangeSelect: false
|
388 | });
|
389 | };
|
390 | RowNode.prototype.isRowPinned = function () {
|
391 | return this.rowPinned === constants_1.Constants.PINNED_TOP || this.rowPinned === constants_1.Constants.PINNED_BOTTOM;
|
392 | };
|
393 |
|
394 | RowNode.prototype.setSelectedParams = function (params) {
|
395 | var groupSelectsChildren = this.gridOptionsWrapper.isGroupSelectsChildren();
|
396 | var newValue = params.newValue === true;
|
397 | var clearSelection = params.clearSelection === true;
|
398 | var suppressFinishActions = params.suppressFinishActions === true;
|
399 | var rangeSelect = params.rangeSelect === true;
|
400 |
|
401 | var groupSelectsFiltered = groupSelectsChildren && (params.groupSelectsFiltered === true);
|
402 | if (this.id === undefined) {
|
403 | console.warn('ag-Grid: cannot select node until id for node is known');
|
404 | return 0;
|
405 | }
|
406 | if (this.rowPinned) {
|
407 | console.log('ag-Grid: cannot select pinned rows');
|
408 | return 0;
|
409 | }
|
410 |
|
411 |
|
412 | if (this.footer) {
|
413 | var count = this.sibling.setSelectedParams(params);
|
414 | return count;
|
415 | }
|
416 | if (rangeSelect) {
|
417 | var newRowClicked = this.selectionController.getLastSelectedNode() !== this;
|
418 | var allowMultiSelect = this.gridOptionsWrapper.isRowSelectionMulti();
|
419 | if (newRowClicked && allowMultiSelect) {
|
420 | return this.doRowRangeSelection();
|
421 | }
|
422 | }
|
423 | var updatedCount = 0;
|
424 |
|
425 |
|
426 |
|
427 |
|
428 | var skipThisNode = groupSelectsFiltered && this.group;
|
429 | if (!skipThisNode) {
|
430 | var thisNodeWasSelected = this.selectThisNode(newValue);
|
431 | if (thisNodeWasSelected) {
|
432 | updatedCount++;
|
433 | }
|
434 | }
|
435 | if (groupSelectsChildren && this.group) {
|
436 | updatedCount += this.selectChildNodes(newValue, groupSelectsFiltered);
|
437 | }
|
438 |
|
439 | if (!suppressFinishActions) {
|
440 | var clearOtherNodes = newValue && (clearSelection || !this.gridOptionsWrapper.isRowSelectionMulti());
|
441 | if (clearOtherNodes) {
|
442 | updatedCount += this.selectionController.clearOtherNodes(this);
|
443 | }
|
444 |
|
445 | if (updatedCount > 0) {
|
446 | this.selectionController.updateGroupsFromChildrenSelections();
|
447 |
|
448 |
|
449 | var event_1 = {
|
450 | type: events_1.Events.EVENT_SELECTION_CHANGED,
|
451 | api: this.gridApi,
|
452 | columnApi: this.columnApi
|
453 | };
|
454 | this.mainEventService.dispatchEvent(event_1);
|
455 | }
|
456 |
|
457 | if (newValue) {
|
458 | this.selectionController.setLastSelectedNode(this);
|
459 | }
|
460 | }
|
461 | return updatedCount;
|
462 | };
|
463 |
|
464 |
|
465 |
|
466 | RowNode.prototype.doRowRangeSelection = function () {
|
467 | var updatedCount = 0;
|
468 | var groupsSelectChildren = this.gridOptionsWrapper.isGroupSelectsChildren();
|
469 | var lastSelectedNode = this.selectionController.getLastSelectedNode();
|
470 | var nodesToSelect = this.rowModel.getNodesInRangeForSelection(this, lastSelectedNode);
|
471 | nodesToSelect.forEach(function (rowNode) {
|
472 | if (rowNode.group && groupsSelectChildren) {
|
473 | return;
|
474 | }
|
475 | var nodeWasSelected = rowNode.selectThisNode(true);
|
476 | if (nodeWasSelected) {
|
477 | updatedCount++;
|
478 | }
|
479 | });
|
480 | this.selectionController.updateGroupsFromChildrenSelections();
|
481 | var event = {
|
482 | type: events_1.Events.EVENT_SELECTION_CHANGED,
|
483 | api: this.gridApi,
|
484 | columnApi: this.columnApi
|
485 | };
|
486 | this.mainEventService.dispatchEvent(event);
|
487 | return updatedCount;
|
488 | };
|
489 | RowNode.prototype.isParentOfNode = function (potentialParent) {
|
490 | var parentNode = this.parent;
|
491 | while (parentNode) {
|
492 | if (parentNode === potentialParent) {
|
493 | return true;
|
494 | }
|
495 | parentNode = parentNode.parent;
|
496 | }
|
497 | return false;
|
498 | };
|
499 | RowNode.prototype.selectThisNode = function (newValue) {
|
500 | if (!this.selectable || this.selected === newValue)
|
501 | return false;
|
502 | this.selected = newValue;
|
503 | if (this.eventService) {
|
504 | this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_ROW_SELECTED));
|
505 | }
|
506 | var event = this.createGlobalRowEvent(events_1.Events.EVENT_ROW_SELECTED);
|
507 | this.mainEventService.dispatchEvent(event);
|
508 | return true;
|
509 | };
|
510 | RowNode.prototype.selectChildNodes = function (newValue, groupSelectsFiltered) {
|
511 | var children = groupSelectsFiltered ? this.childrenAfterFilter : this.childrenAfterGroup;
|
512 | var updatedCount = 0;
|
513 | if (utils_1.Utils.missing(children)) {
|
514 | return;
|
515 | }
|
516 | for (var i = 0; i < children.length; i++) {
|
517 | updatedCount += children[i].setSelectedParams({
|
518 | newValue: newValue,
|
519 | clearSelection: false,
|
520 | suppressFinishActions: true,
|
521 | groupSelectsFiltered: groupSelectsFiltered
|
522 | });
|
523 | }
|
524 | return updatedCount;
|
525 | };
|
526 | RowNode.prototype.addEventListener = function (eventType, listener) {
|
527 | if (!this.eventService) {
|
528 | this.eventService = new eventService_1.EventService();
|
529 | }
|
530 | this.eventService.addEventListener(eventType, listener);
|
531 | };
|
532 | RowNode.prototype.removeEventListener = function (eventType, listener) {
|
533 | this.eventService.removeEventListener(eventType, listener);
|
534 | };
|
535 | RowNode.prototype.onMouseEnter = function () {
|
536 | this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_MOUSE_ENTER));
|
537 | };
|
538 | RowNode.prototype.onMouseLeave = function () {
|
539 | this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_MOUSE_LEAVE));
|
540 | };
|
541 | RowNode.prototype.getFirstChildOfFirstChild = function (rowGroupColumn) {
|
542 | var currentRowNode = this;
|
543 |
|
544 |
|
545 | var isCandidate = true;
|
546 | var foundFirstChildPath = false;
|
547 | var nodeToSwapIn;
|
548 | while (isCandidate && !foundFirstChildPath) {
|
549 | var parentRowNode = currentRowNode.parent;
|
550 | var firstChild = utils_1.Utils.exists(parentRowNode) && currentRowNode.firstChild;
|
551 | if (firstChild) {
|
552 | if (parentRowNode.rowGroupColumn === rowGroupColumn) {
|
553 | foundFirstChildPath = true;
|
554 | nodeToSwapIn = parentRowNode;
|
555 | }
|
556 | }
|
557 | else {
|
558 | isCandidate = false;
|
559 | }
|
560 | currentRowNode = parentRowNode;
|
561 | }
|
562 | return foundFirstChildPath ? nodeToSwapIn : null;
|
563 | };
|
564 | RowNode.EVENT_ROW_SELECTED = 'rowSelected';
|
565 | RowNode.EVENT_DATA_CHANGED = 'dataChanged';
|
566 | RowNode.EVENT_CELL_CHANGED = 'cellChanged';
|
567 | RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED = 'allChildrenCountChanged';
|
568 | RowNode.EVENT_MOUSE_ENTER = 'mouseEnter';
|
569 | RowNode.EVENT_MOUSE_LEAVE = 'mouseLeave';
|
570 | RowNode.EVENT_HEIGHT_CHANGED = 'heightChanged';
|
571 | RowNode.EVENT_TOP_CHANGED = 'topChanged';
|
572 | RowNode.EVENT_FIRST_CHILD_CHANGED = 'firstChildChanged';
|
573 | RowNode.EVENT_LAST_CHILD_CHANGED = 'lastChildChanged';
|
574 | RowNode.EVENT_CHILD_INDEX_CHANGED = 'childIndexChanged';
|
575 | RowNode.EVENT_ROW_INDEX_CHANGED = 'rowIndexChanged';
|
576 | RowNode.EVENT_EXPANDED_CHANGED = 'expandedChanged';
|
577 | RowNode.EVENT_SELECTABLE_CHANGED = 'selectableChanged';
|
578 | RowNode.EVENT_UI_LEVEL_CHANGED = 'uiLevelChanged';
|
579 | RowNode.EVENT_DRAGGING_CHANGED = 'draggingChanged';
|
580 | __decorate([
|
581 | context_1.Autowired('eventService'),
|
582 | __metadata("design:type", eventService_1.EventService)
|
583 | ], RowNode.prototype, "mainEventService", void 0);
|
584 | __decorate([
|
585 | context_1.Autowired('gridOptionsWrapper'),
|
586 | __metadata("design:type", gridOptionsWrapper_1.GridOptionsWrapper)
|
587 | ], RowNode.prototype, "gridOptionsWrapper", void 0);
|
588 | __decorate([
|
589 | context_1.Autowired('selectionController'),
|
590 | __metadata("design:type", selectionController_1.SelectionController)
|
591 | ], RowNode.prototype, "selectionController", void 0);
|
592 | __decorate([
|
593 | context_1.Autowired('columnController'),
|
594 | __metadata("design:type", columnController_1.ColumnController)
|
595 | ], RowNode.prototype, "columnController", void 0);
|
596 | __decorate([
|
597 | context_1.Autowired('valueService'),
|
598 | __metadata("design:type", valueService_1.ValueService)
|
599 | ], RowNode.prototype, "valueService", void 0);
|
600 | __decorate([
|
601 | context_1.Autowired('rowModel'),
|
602 | __metadata("design:type", Object)
|
603 | ], RowNode.prototype, "rowModel", void 0);
|
604 | __decorate([
|
605 | context_1.Autowired('context'),
|
606 | __metadata("design:type", context_1.Context)
|
607 | ], RowNode.prototype, "context", void 0);
|
608 | __decorate([
|
609 | context_1.Autowired('valueCache'),
|
610 | __metadata("design:type", valueCache_1.ValueCache)
|
611 | ], RowNode.prototype, "valueCache", void 0);
|
612 | __decorate([
|
613 | context_1.Autowired('columnApi'),
|
614 | __metadata("design:type", columnApi_1.ColumnApi)
|
615 | ], RowNode.prototype, "columnApi", void 0);
|
616 | __decorate([
|
617 | context_1.Autowired('gridApi'),
|
618 | __metadata("design:type", gridApi_1.GridApi)
|
619 | ], RowNode.prototype, "gridApi", void 0);
|
620 | return RowNode;
|
621 | }());
|
622 | exports.RowNode = RowNode;
|