@syncfusion/ej2-treegrid 21.2.8 → 21.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,28 @@
1
1
  import { Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, classList, closest, compile, createElement, debounce, extend, getEnumValue, getValue, isNullOrUndefined, merge, remove, removeClass, select, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
2
- import { Aggregate, Cell, CellRenderer, CellType, Clipboard, ColumnChooser, ColumnFreezeContentRenderer, ColumnFreezeHeaderRenderer, ColumnMenu, ColumnVirtualFreezeRenderer, CommandColumn, ContextMenu, DetailRow, Edit, ExcelExport, Filter, Freeze, FreezeContentRender, FreezeRender, FreezeRowModelGenerator, Grid, InfiniteScroll, InterSectionObserver, Logger, Page, PdfExport, Print, RenderType, Reorder, Resize, RowDD, RowDropSettings, RowRenderer, Scroll, Sort, Toolbar, VirtualContentRenderer, VirtualFreezeHdrRenderer, VirtualFreezeRenderer, VirtualHeaderRenderer, VirtualRowModelGenerator, VirtualScroll, appendChildren, calculateAggregate, detailLists, extend as extend$1, getActualProperties, getObject, getUid, iterateArrayOrObject, parentsUntil, resetRowIndex, setDebounce, templateCompiler } from '@syncfusion/ej2-grids';
2
+ import { Aggregate, Cell, CellRenderer, CellType, Clipboard, ColumnChooser, ColumnFreezeContentRenderer, ColumnFreezeHeaderRenderer, ColumnMenu, ColumnVirtualFreezeRenderer, CommandColumn, ContextMenu, DetailRow, Edit, ExcelExport, Filter, Freeze, FreezeContentRender, FreezeRender, FreezeRowModelGenerator, Grid, InfiniteScroll, InterSectionObserver, Logger, Page, PdfExport, Print, RenderType, Reorder, Resize, RowDD, RowDropSettings, RowRenderer, Scroll, Sort, Toolbar, VirtualContentRenderer, VirtualFreezeHdrRenderer, VirtualFreezeRenderer, VirtualHeaderRenderer, VirtualRowModelGenerator, VirtualScroll, appendChildren, calculateAggregate, detailLists, extend as extend$1, getActualProperties, getObject, getTransformValues, getUid, iterateArrayOrObject, parentsUntil, resetRowIndex, setDebounce, templateCompiler } from '@syncfusion/ej2-grids';
3
3
  import { createCheckBox } from '@syncfusion/ej2-buttons';
4
4
  import { CacheAdaptor, DataManager, DataUtil, Deferred, JsonAdaptor, ODataAdaptor, Predicate, Query, RemoteSaveAdaptor, UrlAdaptor, WebApiAdaptor, WebMethodAdaptor } from '@syncfusion/ej2-data';
5
5
  import { createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
6
6
 
7
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
8
+ var extendStatics = function (d, b) {
9
+ extendStatics = Object.setPrototypeOf ||
10
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12
+ return extendStatics(d, b);
13
+ };
14
+ return function (d, b) {
15
+ extendStatics(d, b);
16
+ function __() { this.constructor = d; }
17
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
+ };
19
+ })();
20
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
21
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
+ 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;
24
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
25
+ };
7
26
  /**
8
27
  * Represents TreeGrid `Column` model class.
9
28
  */
@@ -97,8 +116,31 @@ var Column = /** @__PURE__ @class */ (function () {
97
116
  };
98
117
  return Column;
99
118
  }());
119
+ /**
120
+ * Defines TreeGrid column
121
+ */
122
+ var TreeGridColumn = /** @__PURE__ @class */ (function (_super) {
123
+ __extends$1(TreeGridColumn, _super);
124
+ function TreeGridColumn() {
125
+ return _super !== null && _super.apply(this, arguments) || this;
126
+ }
127
+ __decorate$1([
128
+ Property(null)
129
+ ], TreeGridColumn.prototype, "columns", void 0);
130
+ return TreeGridColumn;
131
+ }(Column));
132
+ /**
133
+ * Defines stacked tree grid column
134
+ */
135
+ var StackedColumn = /** @__PURE__ @class */ (function (_super) {
136
+ __extends$1(StackedColumn, _super);
137
+ function StackedColumn() {
138
+ return _super !== null && _super.apply(this, arguments) || this;
139
+ }
140
+ return StackedColumn;
141
+ }(TreeGridColumn));
100
142
 
101
- var __extends$1 = (undefined && undefined.__extends) || (function () {
143
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
102
144
  var extendStatics = function (d, b) {
103
145
  extendStatics = Object.setPrototypeOf ||
104
146
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -111,7 +153,7 @@ var __extends$1 = (undefined && undefined.__extends) || (function () {
111
153
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
112
154
  };
113
155
  })();
114
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
156
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
115
157
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
116
158
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
117
159
  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;
@@ -121,17 +163,17 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
121
163
  * Configures the Loading Indicator of the Tree Grid.
122
164
  */
123
165
  var LoadingIndicator = /** @__PURE__ @class */ (function (_super) {
124
- __extends$1(LoadingIndicator, _super);
166
+ __extends$2(LoadingIndicator, _super);
125
167
  function LoadingIndicator() {
126
168
  return _super !== null && _super.apply(this, arguments) || this;
127
169
  }
128
- __decorate$1([
170
+ __decorate$2([
129
171
  Property('Spinner')
130
172
  ], LoadingIndicator.prototype, "indicatorType", void 0);
131
173
  return LoadingIndicator;
132
174
  }(ChildProperty));
133
175
 
134
- var __extends$2 = (undefined && undefined.__extends) || (function () {
176
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
135
177
  var extendStatics = function (d, b) {
136
178
  extendStatics = Object.setPrototypeOf ||
137
179
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -144,7 +186,7 @@ var __extends$2 = (undefined && undefined.__extends) || (function () {
144
186
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
145
187
  };
146
188
  })();
147
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
189
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
148
190
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
149
191
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
150
192
  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;
@@ -154,44 +196,44 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
154
196
  * Represents the Tree Grid predicate for the filter column.
155
197
  */
156
198
  var Predicate$1 = /** @__PURE__ @class */ (function (_super) {
157
- __extends$2(Predicate$$1, _super);
199
+ __extends$3(Predicate$$1, _super);
158
200
  function Predicate$$1() {
159
201
  return _super !== null && _super.apply(this, arguments) || this;
160
202
  }
161
- __decorate$2([
203
+ __decorate$3([
162
204
  Property()
163
205
  ], Predicate$$1.prototype, "field", void 0);
164
- __decorate$2([
206
+ __decorate$3([
165
207
  Property()
166
208
  ], Predicate$$1.prototype, "operator", void 0);
167
- __decorate$2([
209
+ __decorate$3([
168
210
  Property()
169
211
  ], Predicate$$1.prototype, "value", void 0);
170
- __decorate$2([
212
+ __decorate$3([
171
213
  Property()
172
214
  ], Predicate$$1.prototype, "matchCase", void 0);
173
- __decorate$2([
215
+ __decorate$3([
174
216
  Property()
175
217
  ], Predicate$$1.prototype, "ignoreAccent", void 0);
176
- __decorate$2([
218
+ __decorate$3([
177
219
  Property()
178
220
  ], Predicate$$1.prototype, "predicate", void 0);
179
- __decorate$2([
221
+ __decorate$3([
180
222
  Property({})
181
223
  ], Predicate$$1.prototype, "actualFilterValue", void 0);
182
- __decorate$2([
224
+ __decorate$3([
183
225
  Property({})
184
226
  ], Predicate$$1.prototype, "actualOperator", void 0);
185
- __decorate$2([
227
+ __decorate$3([
186
228
  Property()
187
229
  ], Predicate$$1.prototype, "type", void 0);
188
- __decorate$2([
230
+ __decorate$3([
189
231
  Property()
190
232
  ], Predicate$$1.prototype, "ejpredicate", void 0);
191
- __decorate$2([
233
+ __decorate$3([
192
234
  Property()
193
235
  ], Predicate$$1.prototype, "uid", void 0);
194
- __decorate$2([
236
+ __decorate$3([
195
237
  Property()
196
238
  ], Predicate$$1.prototype, "isForeignKey", void 0);
197
239
  return Predicate$$1;
@@ -200,38 +242,38 @@ var Predicate$1 = /** @__PURE__ @class */ (function (_super) {
200
242
  * Configures the filtering behavior of the TreeGrid.
201
243
  */
202
244
  var FilterSettings = /** @__PURE__ @class */ (function (_super) {
203
- __extends$2(FilterSettings, _super);
245
+ __extends$3(FilterSettings, _super);
204
246
  function FilterSettings() {
205
247
  return _super !== null && _super.apply(this, arguments) || this;
206
248
  }
207
- __decorate$2([
249
+ __decorate$3([
208
250
  Collection([], Predicate$1)
209
251
  ], FilterSettings.prototype, "columns", void 0);
210
- __decorate$2([
252
+ __decorate$3([
211
253
  Property('FilterBar')
212
254
  ], FilterSettings.prototype, "type", void 0);
213
- __decorate$2([
255
+ __decorate$3([
214
256
  Property()
215
257
  ], FilterSettings.prototype, "mode", void 0);
216
- __decorate$2([
258
+ __decorate$3([
217
259
  Property(true)
218
260
  ], FilterSettings.prototype, "showFilterBarStatus", void 0);
219
- __decorate$2([
261
+ __decorate$3([
220
262
  Property(1500)
221
263
  ], FilterSettings.prototype, "immediateModeDelay", void 0);
222
- __decorate$2([
264
+ __decorate$3([
223
265
  Property()
224
266
  ], FilterSettings.prototype, "operators", void 0);
225
- __decorate$2([
267
+ __decorate$3([
226
268
  Property(false)
227
269
  ], FilterSettings.prototype, "ignoreAccent", void 0);
228
- __decorate$2([
270
+ __decorate$3([
229
271
  Property('Parent')
230
272
  ], FilterSettings.prototype, "hierarchyMode", void 0);
231
273
  return FilterSettings;
232
274
  }(ChildProperty));
233
275
 
234
- var __extends$3 = (undefined && undefined.__extends) || (function () {
276
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
235
277
  var extendStatics = function (d, b) {
236
278
  extendStatics = Object.setPrototypeOf ||
237
279
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -244,7 +286,7 @@ var __extends$3 = (undefined && undefined.__extends) || (function () {
244
286
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
245
287
  };
246
288
  })();
247
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
289
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
248
290
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
249
291
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
250
292
  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;
@@ -254,17 +296,17 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
254
296
  * Configures the textwrap behavior of the TreeGrid.
255
297
  */
256
298
  var TextWrapSettings = /** @__PURE__ @class */ (function (_super) {
257
- __extends$3(TextWrapSettings, _super);
299
+ __extends$4(TextWrapSettings, _super);
258
300
  function TextWrapSettings() {
259
301
  return _super !== null && _super.apply(this, arguments) || this;
260
302
  }
261
- __decorate$3([
303
+ __decorate$4([
262
304
  Property('Both')
263
305
  ], TextWrapSettings.prototype, "wrapMode", void 0);
264
306
  return TextWrapSettings;
265
307
  }(ChildProperty));
266
308
 
267
- var __extends$4 = (undefined && undefined.__extends) || (function () {
309
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
268
310
  var extendStatics = function (d, b) {
269
311
  extendStatics = Object.setPrototypeOf ||
270
312
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -287,7 +329,7 @@ var BASE_DOC_URL = 'https://ej2.syncfusion.com/documentation';
287
329
  var ERROR = '[EJ2TreeGrid.Error]';
288
330
  var IsRowDDEnabled = false;
289
331
  var Logger$1 = /** @__PURE__ @class */ (function (_super) {
290
- __extends$4(Logger$$1, _super);
332
+ __extends$5(Logger$$1, _super);
291
333
  function Logger$$1(parent) {
292
334
  var _this = this;
293
335
  Grid.Inject(Logger);
@@ -561,7 +603,7 @@ var dataRowIndex = 'data-rowindex';
561
603
  /** @hidden */
562
604
  var ariaRowIndex = 'aria-rowindex';
563
605
 
564
- var __extends$5 = (undefined && undefined.__extends) || (function () {
606
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
565
607
  var extendStatics = function (d, b) {
566
608
  extendStatics = Object.setPrototypeOf ||
567
609
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -580,7 +622,7 @@ var __extends$5 = (undefined && undefined.__extends) || (function () {
580
622
  * @hidden
581
623
  */
582
624
  var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
583
- __extends$5(TreeClipboard, _super);
625
+ __extends$6(TreeClipboard, _super);
584
626
  function TreeClipboard(parent, serviceLocator) {
585
627
  var _this = _super.call(this, parent.grid, serviceLocator) || this;
586
628
  _this.treeCopyContent = '';
@@ -1506,7 +1548,7 @@ var Print$1 = /** @__PURE__ @class */ (function () {
1506
1548
  return Print$$1;
1507
1549
  }());
1508
1550
 
1509
- var __extends$6 = (undefined && undefined.__extends) || (function () {
1551
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
1510
1552
  var extendStatics = function (d, b) {
1511
1553
  extendStatics = Object.setPrototypeOf ||
1512
1554
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1519,7 +1561,7 @@ var __extends$6 = (undefined && undefined.__extends) || (function () {
1519
1561
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1520
1562
  };
1521
1563
  })();
1522
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1564
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1523
1565
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1524
1566
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1525
1567
  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;
@@ -1529,29 +1571,29 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
1529
1571
  * Configures the filtering behavior of the TreeGrid.
1530
1572
  */
1531
1573
  var SearchSettings = /** @__PURE__ @class */ (function (_super) {
1532
- __extends$6(SearchSettings, _super);
1574
+ __extends$7(SearchSettings, _super);
1533
1575
  function SearchSettings() {
1534
1576
  return _super !== null && _super.apply(this, arguments) || this;
1535
1577
  }
1536
- __decorate$4([
1578
+ __decorate$5([
1537
1579
  Property()
1538
1580
  ], SearchSettings.prototype, "fields", void 0);
1539
- __decorate$4([
1581
+ __decorate$5([
1540
1582
  Property(false)
1541
1583
  ], SearchSettings.prototype, "ignoreCase", void 0);
1542
- __decorate$4([
1584
+ __decorate$5([
1543
1585
  Property('contains')
1544
1586
  ], SearchSettings.prototype, "operator", void 0);
1545
- __decorate$4([
1587
+ __decorate$5([
1546
1588
  Property()
1547
1589
  ], SearchSettings.prototype, "key", void 0);
1548
- __decorate$4([
1590
+ __decorate$5([
1549
1591
  Property()
1550
1592
  ], SearchSettings.prototype, "hierarchyMode", void 0);
1551
1593
  return SearchSettings;
1552
1594
  }(ChildProperty));
1553
1595
 
1554
- var __extends$7 = (undefined && undefined.__extends) || (function () {
1596
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
1555
1597
  var extendStatics = function (d, b) {
1556
1598
  extendStatics = Object.setPrototypeOf ||
1557
1599
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1564,7 +1606,7 @@ var __extends$7 = (undefined && undefined.__extends) || (function () {
1564
1606
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1565
1607
  };
1566
1608
  })();
1567
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1609
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1568
1610
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1569
1611
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1570
1612
  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;
@@ -1574,29 +1616,29 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
1574
1616
  * Configures the selection behavior of the TreeGrid.
1575
1617
  */
1576
1618
  var SelectionSettings = /** @__PURE__ @class */ (function (_super) {
1577
- __extends$7(SelectionSettings, _super);
1619
+ __extends$8(SelectionSettings, _super);
1578
1620
  function SelectionSettings() {
1579
1621
  return _super !== null && _super.apply(this, arguments) || this;
1580
1622
  }
1581
- __decorate$5([
1623
+ __decorate$6([
1582
1624
  Property('Row')
1583
1625
  ], SelectionSettings.prototype, "mode", void 0);
1584
- __decorate$5([
1626
+ __decorate$6([
1585
1627
  Property('Flow')
1586
1628
  ], SelectionSettings.prototype, "cellSelectionMode", void 0);
1587
- __decorate$5([
1629
+ __decorate$6([
1588
1630
  Property('Single')
1589
1631
  ], SelectionSettings.prototype, "type", void 0);
1590
- __decorate$5([
1632
+ __decorate$6([
1591
1633
  Property(false)
1592
1634
  ], SelectionSettings.prototype, "persistSelection", void 0);
1593
- __decorate$5([
1635
+ __decorate$6([
1594
1636
  Property('Default')
1595
1637
  ], SelectionSettings.prototype, "checkboxMode", void 0);
1596
- __decorate$5([
1638
+ __decorate$6([
1597
1639
  Property(false)
1598
1640
  ], SelectionSettings.prototype, "checkboxOnly", void 0);
1599
- __decorate$5([
1641
+ __decorate$6([
1600
1642
  Property(true)
1601
1643
  ], SelectionSettings.prototype, "enableToggle", void 0);
1602
1644
  return SelectionSettings;
@@ -1640,7 +1682,7 @@ var Render = /** @__PURE__ @class */ (function () {
1640
1682
  if (collapsed$$1 && !isNullOrUndefined(args.row)) {
1641
1683
  args.row.style.display = 'none';
1642
1684
  var rowsObj = this.parent.grid.getRowsObject();
1643
- if (!isNullOrUndefined(args.row.getAttribute('data-uid'))) {
1685
+ if (!this.parent.grid.isFrozenGrid() && !isNullOrUndefined(args.row.getAttribute('data-uid'))) {
1644
1686
  rowsObj.filter(function (e) { return e.uid === args.row.getAttribute('data-uid'); })[0].visible = false;
1645
1687
  }
1646
1688
  }
@@ -1826,6 +1868,7 @@ var Render = /** @__PURE__ @class */ (function () {
1826
1868
  if (summaryRow) {
1827
1869
  addClass([args.cell], 'e-summarycell');
1828
1870
  var summaryData = getObject(args.column.field, args.data);
1871
+ summaryData = isNullOrUndefined(summaryData) ? null : summaryData;
1829
1872
  if (args.cell.querySelector('.e-treecell') != null) {
1830
1873
  args.cell.querySelector('.e-treecell').innerHTML = summaryData;
1831
1874
  }
@@ -2823,7 +2866,7 @@ var ContextMenuItems;
2823
2866
  ContextMenuItems[ContextMenuItems["RowOutdent"] = 17] = "RowOutdent";
2824
2867
  })(ContextMenuItems || (ContextMenuItems = {}));
2825
2868
 
2826
- var __extends$8 = (undefined && undefined.__extends) || (function () {
2869
+ var __extends$9 = (undefined && undefined.__extends) || (function () {
2827
2870
  var extendStatics = function (d, b) {
2828
2871
  extendStatics = Object.setPrototypeOf ||
2829
2872
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -2836,7 +2879,7 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
2836
2879
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2837
2880
  };
2838
2881
  })();
2839
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2882
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2840
2883
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2841
2884
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2842
2885
  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;
@@ -2846,38 +2889,38 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
2846
2889
  * Configures the paging behavior of the TreeGrid.
2847
2890
  */
2848
2891
  var PageSettings = /** @__PURE__ @class */ (function (_super) {
2849
- __extends$8(PageSettings, _super);
2892
+ __extends$9(PageSettings, _super);
2850
2893
  function PageSettings() {
2851
2894
  return _super !== null && _super.apply(this, arguments) || this;
2852
2895
  }
2853
- __decorate$6([
2896
+ __decorate$7([
2854
2897
  Property(12)
2855
2898
  ], PageSettings.prototype, "pageSize", void 0);
2856
- __decorate$6([
2899
+ __decorate$7([
2857
2900
  Property(8)
2858
2901
  ], PageSettings.prototype, "pageCount", void 0);
2859
- __decorate$6([
2902
+ __decorate$7([
2860
2903
  Property(1)
2861
2904
  ], PageSettings.prototype, "currentPage", void 0);
2862
- __decorate$6([
2905
+ __decorate$7([
2863
2906
  Property()
2864
2907
  ], PageSettings.prototype, "totalRecordsCount", void 0);
2865
- __decorate$6([
2908
+ __decorate$7([
2866
2909
  Property(false)
2867
2910
  ], PageSettings.prototype, "enableQueryString", void 0);
2868
- __decorate$6([
2911
+ __decorate$7([
2869
2912
  Property(false)
2870
2913
  ], PageSettings.prototype, "pageSizes", void 0);
2871
- __decorate$6([
2914
+ __decorate$7([
2872
2915
  Property(null)
2873
2916
  ], PageSettings.prototype, "template", void 0);
2874
- __decorate$6([
2917
+ __decorate$7([
2875
2918
  Property('All')
2876
2919
  ], PageSettings.prototype, "pageSizeMode", void 0);
2877
2920
  return PageSettings;
2878
2921
  }(ChildProperty));
2879
2922
 
2880
- var __extends$9 = (undefined && undefined.__extends) || (function () {
2923
+ var __extends$10 = (undefined && undefined.__extends) || (function () {
2881
2924
  var extendStatics = function (d, b) {
2882
2925
  extendStatics = Object.setPrototypeOf ||
2883
2926
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -2890,7 +2933,7 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
2890
2933
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2891
2934
  };
2892
2935
  })();
2893
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2936
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2894
2937
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2895
2938
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2896
2939
  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;
@@ -2900,7 +2943,7 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
2900
2943
  * Configures the TreeGrid's aggregate column.
2901
2944
  */
2902
2945
  var AggregateColumn = /** @__PURE__ @class */ (function (_super) {
2903
- __extends$9(AggregateColumn, _super);
2946
+ __extends$10(AggregateColumn, _super);
2904
2947
  function AggregateColumn() {
2905
2948
  var _this = _super !== null && _super.apply(this, arguments) || this;
2906
2949
  _this.intl = new Internationalization();
@@ -2968,41 +3011,41 @@ var AggregateColumn = /** @__PURE__ @class */ (function (_super) {
2968
3011
  AggregateColumn.prototype.setPropertiesSilent = function (prop) {
2969
3012
  this.setProperties(prop, true);
2970
3013
  };
2971
- __decorate$7([
3014
+ __decorate$8([
2972
3015
  Property()
2973
3016
  ], AggregateColumn.prototype, "type", void 0);
2974
- __decorate$7([
3017
+ __decorate$8([
2975
3018
  Property()
2976
3019
  ], AggregateColumn.prototype, "footerTemplate", void 0);
2977
- __decorate$7([
3020
+ __decorate$8([
2978
3021
  Property()
2979
3022
  ], AggregateColumn.prototype, "field", void 0);
2980
- __decorate$7([
3023
+ __decorate$8([
2981
3024
  Property()
2982
3025
  ], AggregateColumn.prototype, "format", void 0);
2983
- __decorate$7([
3026
+ __decorate$8([
2984
3027
  Property()
2985
3028
  ], AggregateColumn.prototype, "columnName", void 0);
2986
- __decorate$7([
3029
+ __decorate$8([
2987
3030
  Property()
2988
3031
  ], AggregateColumn.prototype, "customAggregate", void 0);
2989
3032
  return AggregateColumn;
2990
3033
  }(ChildProperty));
2991
3034
  var AggregateRow = /** @__PURE__ @class */ (function (_super) {
2992
- __extends$9(AggregateRow, _super);
3035
+ __extends$10(AggregateRow, _super);
2993
3036
  function AggregateRow() {
2994
3037
  return _super !== null && _super.apply(this, arguments) || this;
2995
3038
  }
2996
- __decorate$7([
3039
+ __decorate$8([
2997
3040
  Collection([], AggregateColumn)
2998
3041
  ], AggregateRow.prototype, "columns", void 0);
2999
- __decorate$7([
3042
+ __decorate$8([
3000
3043
  Property(true)
3001
3044
  ], AggregateRow.prototype, "showChildSummary", void 0);
3002
3045
  return AggregateRow;
3003
3046
  }(ChildProperty));
3004
3047
 
3005
- var __extends$10 = (undefined && undefined.__extends) || (function () {
3048
+ var __extends$11 = (undefined && undefined.__extends) || (function () {
3006
3049
  var extendStatics = function (d, b) {
3007
3050
  extendStatics = Object.setPrototypeOf ||
3008
3051
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3015,7 +3058,7 @@ var __extends$10 = (undefined && undefined.__extends) || (function () {
3015
3058
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3016
3059
  };
3017
3060
  })();
3018
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3061
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3019
3062
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3020
3063
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3021
3064
  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;
@@ -3025,47 +3068,47 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
3025
3068
  * Configures the edit behavior of the TreeGrid.
3026
3069
  */
3027
3070
  var EditSettings = /** @__PURE__ @class */ (function (_super) {
3028
- __extends$10(EditSettings, _super);
3071
+ __extends$11(EditSettings, _super);
3029
3072
  function EditSettings() {
3030
3073
  return _super !== null && _super.apply(this, arguments) || this;
3031
3074
  }
3032
- __decorate$8([
3075
+ __decorate$9([
3033
3076
  Property(false)
3034
3077
  ], EditSettings.prototype, "allowAdding", void 0);
3035
- __decorate$8([
3078
+ __decorate$9([
3036
3079
  Property(false)
3037
3080
  ], EditSettings.prototype, "allowEditing", void 0);
3038
- __decorate$8([
3081
+ __decorate$9([
3039
3082
  Property(false)
3040
3083
  ], EditSettings.prototype, "allowDeleting", void 0);
3041
- __decorate$8([
3084
+ __decorate$9([
3042
3085
  Property('Cell')
3043
3086
  ], EditSettings.prototype, "mode", void 0);
3044
- __decorate$8([
3087
+ __decorate$9([
3045
3088
  Property('Top')
3046
3089
  ], EditSettings.prototype, "newRowPosition", void 0);
3047
- __decorate$8([
3090
+ __decorate$9([
3048
3091
  Property(true)
3049
3092
  ], EditSettings.prototype, "allowEditOnDblClick", void 0);
3050
- __decorate$8([
3093
+ __decorate$9([
3051
3094
  Property(true)
3052
3095
  ], EditSettings.prototype, "showConfirmDialog", void 0);
3053
- __decorate$8([
3096
+ __decorate$9([
3054
3097
  Property(false)
3055
3098
  ], EditSettings.prototype, "showDeleteConfirmDialog", void 0);
3056
- __decorate$8([
3099
+ __decorate$9([
3057
3100
  Property('')
3058
3101
  ], EditSettings.prototype, "template", void 0);
3059
- __decorate$8([
3102
+ __decorate$9([
3060
3103
  Property({})
3061
3104
  ], EditSettings.prototype, "dialog", void 0);
3062
- __decorate$8([
3105
+ __decorate$9([
3063
3106
  Property(false)
3064
3107
  ], EditSettings.prototype, "allowNextRowEdit", void 0);
3065
3108
  return EditSettings;
3066
3109
  }(ChildProperty));
3067
3110
 
3068
- var __extends$11 = (undefined && undefined.__extends) || (function () {
3111
+ var __extends$12 = (undefined && undefined.__extends) || (function () {
3069
3112
  var extendStatics = function (d, b) {
3070
3113
  extendStatics = Object.setPrototypeOf ||
3071
3114
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3078,7 +3121,7 @@ var __extends$11 = (undefined && undefined.__extends) || (function () {
3078
3121
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3079
3122
  };
3080
3123
  })();
3081
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3124
+ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3082
3125
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3083
3126
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3084
3127
  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;
@@ -3088,14 +3131,14 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
3088
3131
  * Represents the field name and direction of sort column.
3089
3132
  */
3090
3133
  var SortDescriptor = /** @__PURE__ @class */ (function (_super) {
3091
- __extends$11(SortDescriptor, _super);
3134
+ __extends$12(SortDescriptor, _super);
3092
3135
  function SortDescriptor() {
3093
3136
  return _super !== null && _super.apply(this, arguments) || this;
3094
3137
  }
3095
- __decorate$9([
3138
+ __decorate$10([
3096
3139
  Property()
3097
3140
  ], SortDescriptor.prototype, "field", void 0);
3098
- __decorate$9([
3141
+ __decorate$10([
3099
3142
  Property()
3100
3143
  ], SortDescriptor.prototype, "direction", void 0);
3101
3144
  return SortDescriptor;
@@ -3104,14 +3147,14 @@ var SortDescriptor = /** @__PURE__ @class */ (function (_super) {
3104
3147
  * Configures the sorting behavior of TreeGrid.
3105
3148
  */
3106
3149
  var SortSettings = /** @__PURE__ @class */ (function (_super) {
3107
- __extends$11(SortSettings, _super);
3150
+ __extends$12(SortSettings, _super);
3108
3151
  function SortSettings() {
3109
3152
  return _super !== null && _super.apply(this, arguments) || this;
3110
3153
  }
3111
- __decorate$9([
3154
+ __decorate$10([
3112
3155
  Collection([], SortDescriptor)
3113
3156
  ], SortSettings.prototype, "columns", void 0);
3114
- __decorate$9([
3157
+ __decorate$10([
3115
3158
  Property(true)
3116
3159
  ], SortSettings.prototype, "allowUnsort", void 0);
3117
3160
  return SortSettings;
@@ -3524,7 +3567,7 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
3524
3567
  }
3525
3568
  }
3526
3569
 
3527
- var __extends$12 = (undefined && undefined.__extends) || (function () {
3570
+ var __extends$13 = (undefined && undefined.__extends) || (function () {
3528
3571
  var extendStatics = function (d, b) {
3529
3572
  extendStatics = Object.setPrototypeOf ||
3530
3573
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3537,7 +3580,7 @@ var __extends$12 = (undefined && undefined.__extends) || (function () {
3537
3580
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3538
3581
  };
3539
3582
  })();
3540
- var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3583
+ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3541
3584
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3542
3585
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3543
3586
  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;
@@ -3547,17 +3590,17 @@ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators,
3547
3590
  * Configures the infinite scroll behavior of Tree Grid.
3548
3591
  */
3549
3592
  var InfiniteScrollSettings = /** @__PURE__ @class */ (function (_super) {
3550
- __extends$12(InfiniteScrollSettings, _super);
3593
+ __extends$13(InfiniteScrollSettings, _super);
3551
3594
  function InfiniteScrollSettings() {
3552
3595
  return _super !== null && _super.apply(this, arguments) || this;
3553
3596
  }
3554
- __decorate$10([
3597
+ __decorate$11([
3555
3598
  Property(false)
3556
3599
  ], InfiniteScrollSettings.prototype, "enableCache", void 0);
3557
- __decorate$10([
3600
+ __decorate$11([
3558
3601
  Property(3)
3559
3602
  ], InfiniteScrollSettings.prototype, "maxBlocks", void 0);
3560
- __decorate$10([
3603
+ __decorate$11([
3561
3604
  Property(3)
3562
3605
  ], InfiniteScrollSettings.prototype, "initialBlocks", void 0);
3563
3606
  return InfiniteScrollSettings;
@@ -6191,7 +6234,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6191
6234
  }
6192
6235
  else {
6193
6236
  if (this.enableVirtualization && this.isCollapseAll) {
6194
- record = this.grid.getCurrentViewRecords()[row.rowIndex];
6237
+ if (this.isExpandAll && row.rowIndex === -1) {
6238
+ record = this.grid.getCurrentViewRecords()[parseInt(row.getAttribute('data-rowindex'), 10)];
6239
+ }
6240
+ else {
6241
+ record = this.grid.getCurrentViewRecords()[row.rowIndex];
6242
+ }
6195
6243
  }
6196
6244
  else {
6197
6245
  record = this.grid.getCurrentViewRecords()[parseInt(row.getAttribute('data-rowindex'), 10)];
@@ -6430,7 +6478,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6430
6478
  }
6431
6479
  }
6432
6480
  else {
6433
- this.expandRow(rows[parseInt(i.toString(), 10)]);
6481
+ if (!this.enableVirtualization) {
6482
+ this.expandRow(rows[parseInt(i.toString(), 10)]);
6483
+ }
6484
+ else if (rows[0].getAttribute('aria-expanded') !== 'true') {
6485
+ this.expandRow(rows[0]);
6486
+ }
6434
6487
  }
6435
6488
  }
6436
6489
  }
@@ -8794,14 +8847,13 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8794
8847
  var childRecords = rec[0].childRecords;
8795
8848
  var droppedRecordIndex = childRecords.indexOf(droppedRecord) + 1;
8796
8849
  childRecords.splice(droppedRecordIndex, 0, draggedRecord_2);
8797
- if (this_1.parent.enableImmutableMode || this_1.parent['isIndentEnabled'] && !this_1.parent.parentIdMapping) {
8798
- draggedRecord_2.parentItem = droppedRecord.parentItem;
8799
- draggedRecord_2.level = droppedRecord.level;
8800
- }
8850
+ draggedRecord_2.parentItem = droppedRecord.parentItem;
8801
8851
  draggedRecord_2.parentUniqueID = droppedRecord.parentUniqueID;
8852
+ draggedRecord_2.level = droppedRecord.level;
8802
8853
  if (this_1.parent.parentIdMapping) {
8803
8854
  draggedRecord_2[this_1.parent.parentIdMapping] = droppedRecord[this_1.parent.parentIdMapping];
8804
- draggedRecord_2.parentUniqueID = droppedRecord.parentUniqueID;
8855
+ draggedRecord_2.parentItem = droppedRecord.parentItem;
8856
+ draggedRecord_2.level = droppedRecord.level;
8805
8857
  }
8806
8858
  }
8807
8859
  if (draggedRecord_2.hasChildRecords) {
@@ -9192,7 +9244,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9192
9244
  * Base export
9193
9245
  */
9194
9246
 
9195
- var __extends$13 = (undefined && undefined.__extends) || (function () {
9247
+ var __extends$14 = (undefined && undefined.__extends) || (function () {
9196
9248
  var extendStatics = function (d, b) {
9197
9249
  extendStatics = Object.setPrototypeOf ||
9198
9250
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9205,7 +9257,7 @@ var __extends$13 = (undefined && undefined.__extends) || (function () {
9205
9257
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9206
9258
  };
9207
9259
  })();
9208
- var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9260
+ var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9209
9261
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9210
9262
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9211
9263
  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;
@@ -9215,11 +9267,11 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
9215
9267
  * Configures the row drop settings of the TreeGrid.
9216
9268
  */
9217
9269
  var RowDropSettings$1 = /** @__PURE__ @class */ (function (_super) {
9218
- __extends$13(RowDropSettings$$1, _super);
9270
+ __extends$14(RowDropSettings$$1, _super);
9219
9271
  function RowDropSettings$$1() {
9220
9272
  return _super !== null && _super.apply(this, arguments) || this;
9221
9273
  }
9222
- __decorate$11([
9274
+ __decorate$12([
9223
9275
  Property()
9224
9276
  ], RowDropSettings$$1.prototype, "targetID", void 0);
9225
9277
  return RowDropSettings$$1;
@@ -9229,7 +9281,7 @@ var RowDropSettings$1 = /** @__PURE__ @class */ (function (_super) {
9229
9281
  * Models export
9230
9282
  */
9231
9283
 
9232
- var __extends$14 = (undefined && undefined.__extends) || (function () {
9284
+ var __extends$15 = (undefined && undefined.__extends) || (function () {
9233
9285
  var extendStatics = function (d, b) {
9234
9286
  extendStatics = Object.setPrototypeOf ||
9235
9287
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9248,7 +9300,7 @@ var __extends$14 = (undefined && undefined.__extends) || (function () {
9248
9300
  * @hidden
9249
9301
  */
9250
9302
  var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9251
- __extends$14(TreeVirtualRowModelGenerator, _super);
9303
+ __extends$15(TreeVirtualRowModelGenerator, _super);
9252
9304
  function TreeVirtualRowModelGenerator(parent) {
9253
9305
  var _this = _super.call(this, parent) || this;
9254
9306
  _this.addEventListener();
@@ -11521,6 +11573,9 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11521
11573
  };
11522
11574
  Edit$$1.prototype.gridDblClick = function (e) {
11523
11575
  this.doubleClickTarget = e.target;
11576
+ if (e.target.classList.contains('e-frame') && this.parent.getCurrentViewRecords().length === 0) {
11577
+ this.doubleClickTarget = null;
11578
+ }
11524
11579
  };
11525
11580
  Edit$$1.prototype.getRowPosition = function (addArgs) {
11526
11581
  addArgs.newRowPosition = this.parent.editSettings.newRowPosition;
@@ -11528,7 +11583,9 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11528
11583
  addArgs.dataRowIndex = +this.prevAriaRowIndex;
11529
11584
  };
11530
11585
  Edit$$1.prototype.beforeStartEdit = function (args) {
11531
- this.parent.trigger(actionBegin, args);
11586
+ if (this.parent.editSettings.mode === 'Cell') {
11587
+ this.parent.trigger(actionBegin, args);
11588
+ }
11532
11589
  };
11533
11590
  Edit$$1.prototype.beforeBatchCancel = function (args) {
11534
11591
  if (this.parent.editSettings.mode === 'Cell') {
@@ -12673,7 +12730,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
12673
12730
  return DetailRow$$1;
12674
12731
  }());
12675
12732
 
12676
- var __extends$16 = (undefined && undefined.__extends) || (function () {
12733
+ var __extends$17 = (undefined && undefined.__extends) || (function () {
12677
12734
  var extendStatics = function (d, b) {
12678
12735
  extendStatics = Object.setPrototypeOf ||
12679
12736
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12687,7 +12744,7 @@ var __extends$16 = (undefined && undefined.__extends) || (function () {
12687
12744
  };
12688
12745
  })();
12689
12746
  var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
12690
- __extends$16(VirtualTreeContentRenderer, _super);
12747
+ __extends$17(VirtualTreeContentRenderer, _super);
12691
12748
  function VirtualTreeContentRenderer(parent, locator) {
12692
12749
  var _this = _super.call(this, parent, locator) || this;
12693
12750
  _this.isExpandCollapse = false;
@@ -13050,7 +13107,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13050
13107
  var currentViewData = this.parent.currentViewData;
13051
13108
  var indexValue = 'index';
13052
13109
  if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
13053
- var vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? this.parent.height :
13110
+ var vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
13054
13111
  this.parent.element.getBoundingClientRect().height);
13055
13112
  var index = (~~(content$$1.scrollTop / rowHeight)
13056
13113
  + Math.ceil(vHeight / rowHeight))
@@ -13109,7 +13166,9 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13109
13166
  }
13110
13167
  this.startIndex = !isLastBlock ? lastIndex - this.parent.pageSettings.pageSize : nextSetResIndex;
13111
13168
  this.endIndex = lastIndex;
13112
- if ((nextSetResIndex + this.parent.pageSettings.pageSize) > this.totalRecords && (this.endIndex - this.startIndex) < (this.parent.pageSettings.pageSize / 2) && (this.endIndex - nextSetResIndex) < (this.parent.pageSettings.pageSize / 2)) {
13169
+ if ((nextSetResIndex + this.parent.pageSettings.pageSize) > this.totalRecords &&
13170
+ (this.endIndex - this.startIndex) < (this.parent.pageSettings.pageSize / 2) &&
13171
+ (this.endIndex - nextSetResIndex) < (this.parent.pageSettings.pageSize / 2)) {
13113
13172
  this.startIndex = lastIndex - (this.parent.pageSettings.pageSize / 2);
13114
13173
  }
13115
13174
  if (currentViewData.length && this.startIndex > currentViewData[0]["" + indexValue] &&
@@ -13124,7 +13183,12 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13124
13183
  this.translateY = scrollArgs.offset.top - rowHeight * 2;
13125
13184
  }
13126
13185
  else {
13127
- this.translateY = scrollArgs.offset.top;
13186
+ if (this.totalRecords == this.endIndex) {
13187
+ this.translateY = (this.totalRecords * rowHeight) - ((this.endIndex - this.startIndex) * rowHeight);
13188
+ }
13189
+ else {
13190
+ this.translateY = scrollArgs.offset.top;
13191
+ }
13128
13192
  }
13129
13193
  }
13130
13194
  }
@@ -13254,7 +13318,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13254
13318
  return VirtualTreeContentRenderer;
13255
13319
  }(VirtualContentRenderer));
13256
13320
  var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
13257
- __extends$16(TreeInterSectionObserver, _super);
13321
+ __extends$17(TreeInterSectionObserver, _super);
13258
13322
  function TreeInterSectionObserver() {
13259
13323
  var _this = _super !== null && _super.apply(this, arguments) || this;
13260
13324
  _this.isWheeling = false;
@@ -13346,7 +13410,7 @@ var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
13346
13410
  return TreeInterSectionObserver;
13347
13411
  }(InterSectionObserver));
13348
13412
 
13349
- var __extends$15 = (undefined && undefined.__extends) || (function () {
13413
+ var __extends$16 = (undefined && undefined.__extends) || (function () {
13350
13414
  var extendStatics = function (d, b) {
13351
13415
  extendStatics = Object.setPrototypeOf ||
13352
13416
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13464,14 +13528,18 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13464
13528
  this.parent.grid.getContent().firstElementChild.scrollTop = 0;
13465
13529
  this.parent.grid.notify(virtualActionArgs, { setTop: true });
13466
13530
  }
13467
- if (requestType === 'save') {
13531
+ if (requestType === 'save' || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
13532
+ startIndex = counts.startIndex + (counts.count - counts.endIndex);
13468
13533
  endIndex = counts.count;
13534
+ this.parent['isAddedFromGantt'] = false;
13469
13535
  }
13470
13536
  //if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
13471
13537
  //this.prevendIndex === endIndex && this.prevstartIndex === startIndex) {
13538
+ var virtualWrapperElement = this.parent.grid.contentModule.virtualEle.wrapper;
13539
+ var translateY = getTransformValues(virtualWrapperElement).height;
13472
13540
  if (!isNullOrUndefined(this.expandCollapseRec) && (pageingDetails.actionArgs.requestType === 'virtualscroll' ||
13473
13541
  (pageingDetails.actionArgs.requestType === 'refresh' && startIndex !== this.prevstartIndex)) &&
13474
- (startIndex < this.parent.getRows().length && endIndex <= startIndex + this.parent.getRows().length)) {
13542
+ (startIndex < this.parent.getRows().length && endIndex <= startIndex + this.parent.getRows().length) && translateY === 0) {
13475
13543
  startIndex = 0;
13476
13544
  }
13477
13545
  if (!isNullOrUndefined(this.expandCollapseRec)) {
@@ -13519,7 +13587,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13519
13587
  return VirtualScroll$$1;
13520
13588
  }());
13521
13589
  var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13522
- __extends$15(TreeVirtual, _super);
13590
+ __extends$16(TreeVirtual, _super);
13523
13591
  function TreeVirtual(parent, locator) {
13524
13592
  var _this = _super.call(this, parent, locator) || this;
13525
13593
  getValue('parent', _this).off('initial-load', getValue('instantiateRenderer', _this), _this);
@@ -13550,7 +13618,7 @@ var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13550
13618
  if (!isNullOrUndefined(parentGrid.height) && typeof (parentGrid.height) === 'string' && parentGrid.height.indexOf('%') !== -1) {
13551
13619
  parentGrid.element.style.height = parentGrid.height;
13552
13620
  }
13553
- var vHeight = parentGrid.height.toString().indexOf('%') < 0 ? parentGrid.height :
13621
+ var vHeight = parentGrid.height.toString().indexOf('%') < 0 ? parseInt(parentGrid.height.toString(), 10) :
13554
13622
  parentGrid.element.getBoundingClientRect().height;
13555
13623
  var blockSize = ~~(vHeight / rowHeight);
13556
13624
  var height = blockSize * 2;
@@ -13560,7 +13628,7 @@ var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13560
13628
  return TreeVirtual;
13561
13629
  }(VirtualScroll));
13562
13630
 
13563
- var __extends$17 = (undefined && undefined.__extends) || (function () {
13631
+ var __extends$18 = (undefined && undefined.__extends) || (function () {
13564
13632
  var extendStatics = function (d, b) {
13565
13633
  extendStatics = Object.setPrototypeOf ||
13566
13634
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13579,7 +13647,7 @@ var __extends$17 = (undefined && undefined.__extends) || (function () {
13579
13647
  * @hidden
13580
13648
  */
13581
13649
  var VirtualTreeFreezeRenderer = /** @__PURE__ @class */ (function (_super) {
13582
- __extends$17(VirtualTreeFreezeRenderer, _super);
13650
+ __extends$18(VirtualTreeFreezeRenderer, _super);
13583
13651
  function VirtualTreeFreezeRenderer(parent, locator) {
13584
13652
  var _this = _super.call(this, parent, locator) || this;
13585
13653
  _this.addEventListener();
@@ -13649,7 +13717,7 @@ var VirtualTreeFreezeRenderer = /** @__PURE__ @class */ (function (_super) {
13649
13717
  * @hidden
13650
13718
  */
13651
13719
  var ColumnVirtualTreeFreezeRenderer = /** @__PURE__ @class */ (function (_super) {
13652
- __extends$17(ColumnVirtualTreeFreezeRenderer, _super);
13720
+ __extends$18(ColumnVirtualTreeFreezeRenderer, _super);
13653
13721
  function ColumnVirtualTreeFreezeRenderer(parent, locator) {
13654
13722
  var _this = _super.call(this, parent, locator) || this;
13655
13723
  _this.serviceLoc = locator;
@@ -13699,7 +13767,7 @@ var ColumnVirtualTreeFreezeRenderer = /** @__PURE__ @class */ (function (_super)
13699
13767
  * @hidden
13700
13768
  */
13701
13769
  var VirtualTreeFreezeHdrRenderer = /** @__PURE__ @class */ (function (_super) {
13702
- __extends$17(VirtualTreeFreezeHdrRenderer, _super);
13770
+ __extends$18(VirtualTreeFreezeHdrRenderer, _super);
13703
13771
  function VirtualTreeFreezeHdrRenderer() {
13704
13772
  return _super !== null && _super.apply(this, arguments) || this;
13705
13773
  }
@@ -14238,5 +14306,5 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14238
14306
  * Export TreeGrid component
14239
14307
  */
14240
14308
 
14241
- export { TreeGrid, load, rowDataBound, dataBound, queryCellInfo, beforeDataBound, actionBegin, dataStateChange, actionComplete, rowSelecting, rowSelected, checkboxChange, rowDeselected, toolbarClick, beforeExcelExport, beforePdfExport, resizeStop, expanded, expanding, collapsed, collapsing, remoteExpand, localPagedExpandCollapse, pagingActions, printGridInit, contextMenuOpen, contextMenuClick, beforeCopy, beforePaste, savePreviousRowPosition, crudAction, beginEdit, beginAdd, recordDoubleClick, cellSave, cellSaved, cellEdit, batchDelete, batchCancel, batchAdd, beforeBatchDelete, beforeBatchAdd, beforeBatchSave, batchSave, keyPressed, updateData, doubleTap, virtualColumnIndex, virtualActionArgs, destroy, dataListener, indexModifier, beforeStartEdit, beforeBatchCancel, batchEditFormRendered, detailDataBound, rowDrag, rowDragStartHelper, rowDrop, rowDragStart, rowsAdd, rowsRemove, rowdraging, rowDropped, autoCol, rowDeselecting, headerContent, movableContent, movableHeader, frozenContent, frozenHeader, content, table, leftRight, frozenRight, frozenLeft, dataColIndex, ariaColIndex, dataRowIndex, ariaRowIndex, DataManipulation, Reorder$1 as Reorder, Resize$1 as Resize, RowDD$1 as RowDD, Column, EditSettings, Predicate$1 as Predicate, FilterSettings, PageSettings, SearchSettings, SelectionSettings, AggregateColumn, AggregateRow, SortDescriptor, SortSettings, RowDropSettings$1 as RowDropSettings, InfiniteScrollSettings, LoadingIndicator, Render, TreeVirtualRowModelGenerator, isRemoteData, isCountRequired, isCheckboxcolumn, isFilterChildHierarchy, findParentRecords, getExpandStatus, findChildrenRecords, isOffline, extendArray, getPlainData, getParentData, isHidden, ToolbarItem, ContextMenuItems, Filter$1 as Filter, ExcelExport$1 as ExcelExport, PdfExport$1 as PdfExport, Page$1 as Page, Toolbar$1 as Toolbar, Aggregate$1 as Aggregate, Sort$1 as Sort, TreeClipboard, ColumnMenu$1 as ColumnMenu, ContextMenu$1 as ContextMenu, Edit$1 as Edit, CommandColumn$1 as CommandColumn, Selection, DetailRow$1 as DetailRow, VirtualScroll$1 as VirtualScroll, TreeVirtual, Freeze$1 as Freeze, ColumnChooser$1 as ColumnChooser, Logger$1 as Logger, treeGridDetails, InfiniteScroll$1 as InfiniteScroll };
14309
+ export { TreeGrid, load, rowDataBound, dataBound, queryCellInfo, beforeDataBound, actionBegin, dataStateChange, actionComplete, rowSelecting, rowSelected, checkboxChange, rowDeselected, toolbarClick, beforeExcelExport, beforePdfExport, resizeStop, expanded, expanding, collapsed, collapsing, remoteExpand, localPagedExpandCollapse, pagingActions, printGridInit, contextMenuOpen, contextMenuClick, beforeCopy, beforePaste, savePreviousRowPosition, crudAction, beginEdit, beginAdd, recordDoubleClick, cellSave, cellSaved, cellEdit, batchDelete, batchCancel, batchAdd, beforeBatchDelete, beforeBatchAdd, beforeBatchSave, batchSave, keyPressed, updateData, doubleTap, virtualColumnIndex, virtualActionArgs, destroy, dataListener, indexModifier, beforeStartEdit, beforeBatchCancel, batchEditFormRendered, detailDataBound, rowDrag, rowDragStartHelper, rowDrop, rowDragStart, rowsAdd, rowsRemove, rowdraging, rowDropped, autoCol, rowDeselecting, headerContent, movableContent, movableHeader, frozenContent, frozenHeader, content, table, leftRight, frozenRight, frozenLeft, dataColIndex, ariaColIndex, dataRowIndex, ariaRowIndex, DataManipulation, Reorder$1 as Reorder, Resize$1 as Resize, RowDD$1 as RowDD, Column, TreeGridColumn, StackedColumn, EditSettings, Predicate$1 as Predicate, FilterSettings, PageSettings, SearchSettings, SelectionSettings, AggregateColumn, AggregateRow, SortDescriptor, SortSettings, RowDropSettings$1 as RowDropSettings, InfiniteScrollSettings, LoadingIndicator, Render, TreeVirtualRowModelGenerator, isRemoteData, isCountRequired, isCheckboxcolumn, isFilterChildHierarchy, findParentRecords, getExpandStatus, findChildrenRecords, isOffline, extendArray, getPlainData, getParentData, isHidden, ToolbarItem, ContextMenuItems, Filter$1 as Filter, ExcelExport$1 as ExcelExport, PdfExport$1 as PdfExport, Page$1 as Page, Toolbar$1 as Toolbar, Aggregate$1 as Aggregate, Sort$1 as Sort, TreeClipboard, ColumnMenu$1 as ColumnMenu, ContextMenu$1 as ContextMenu, Edit$1 as Edit, CommandColumn$1 as CommandColumn, Selection, DetailRow$1 as DetailRow, VirtualScroll$1 as VirtualScroll, TreeVirtual, Freeze$1 as Freeze, ColumnChooser$1 as ColumnChooser, Logger$1 as Logger, treeGridDetails, InfiniteScroll$1 as InfiniteScroll };
14242
14310
  //# sourceMappingURL=ej2-treegrid.es5.js.map