@syncfusion/ej2-treegrid 25.2.5 → 26.1.35

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.
Files changed (103) hide show
  1. package/.eslintrc.json +3 -2
  2. package/dist/ej2-treegrid.min.js +2 -2
  3. package/dist/ej2-treegrid.umd.min.js +2 -2
  4. package/dist/ej2-treegrid.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-treegrid.es2015.js +629 -464
  6. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  7. package/dist/es6/ej2-treegrid.es5.js +929 -763
  8. package/dist/es6/ej2-treegrid.es5.js.map +1 -1
  9. package/dist/global/ej2-treegrid.min.js +2 -2
  10. package/dist/global/ej2-treegrid.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +10 -10
  13. package/src/treegrid/actions/edit.js +8 -7
  14. package/src/treegrid/actions/excel-export.js +4 -3
  15. package/src/treegrid/actions/page.js +4 -0
  16. package/src/treegrid/actions/rowdragdrop.js +17 -11
  17. package/src/treegrid/actions/selection.js +4 -1
  18. package/src/treegrid/base/constant.d.ts +2 -0
  19. package/src/treegrid/base/constant.js +2 -0
  20. package/src/treegrid/base/data.js +2 -1
  21. package/src/treegrid/base/interface.js +0 -1
  22. package/src/treegrid/base/treegrid-model.d.ts +1 -1
  23. package/src/treegrid/base/treegrid.d.ts +3 -0
  24. package/src/treegrid/base/treegrid.js +230 -62
  25. package/src/treegrid/renderer/render.js +3 -1
  26. package/src/treegrid/renderer/virtual-row-model-generator.js +2 -2
  27. package/src/treegrid/renderer/virtual-tree-content-render.js +2 -1
  28. package/styles/bootstrap-dark.css +76 -48
  29. package/styles/bootstrap-dark.scss +18 -1
  30. package/styles/bootstrap.css +76 -49
  31. package/styles/bootstrap.scss +18 -1
  32. package/styles/bootstrap4.css +77 -48
  33. package/styles/bootstrap4.scss +18 -1
  34. package/styles/bootstrap5-dark.css +77 -49
  35. package/styles/bootstrap5-dark.scss +18 -1
  36. package/styles/bootstrap5.css +77 -49
  37. package/styles/bootstrap5.scss +18 -1
  38. package/styles/fabric-dark.css +74 -47
  39. package/styles/fabric-dark.scss +18 -1
  40. package/styles/fabric.css +74 -47
  41. package/styles/fabric.scss +18 -1
  42. package/styles/fluent-dark.css +77 -49
  43. package/styles/fluent-dark.scss +18 -1
  44. package/styles/fluent.css +77 -49
  45. package/styles/fluent.scss +18 -1
  46. package/styles/fluent2.css +1721 -0
  47. package/styles/fluent2.scss +18 -0
  48. package/styles/highcontrast-light.css +74 -47
  49. package/styles/highcontrast-light.scss +18 -1
  50. package/styles/highcontrast.css +74 -47
  51. package/styles/highcontrast.scss +18 -1
  52. package/styles/material-dark.css +111 -54
  53. package/styles/material-dark.scss +18 -1
  54. package/styles/material.css +125 -57
  55. package/styles/material.scss +18 -1
  56. package/styles/material3-dark.css +111 -56
  57. package/styles/material3-dark.scss +18 -1
  58. package/styles/material3.css +111 -56
  59. package/styles/material3.scss +18 -1
  60. package/styles/tailwind-dark.css +87 -51
  61. package/styles/tailwind-dark.scss +18 -1
  62. package/styles/tailwind.css +87 -51
  63. package/styles/tailwind.scss +18 -1
  64. package/styles/treegrid/_bds-definition.scss +0 -4
  65. package/styles/treegrid/_bootstrap-dark-definition.scss +0 -1
  66. package/styles/treegrid/_bootstrap-definition.scss +0 -1
  67. package/styles/treegrid/_bootstrap4-definition.scss +0 -1
  68. package/styles/treegrid/_bootstrap5-definition.scss +0 -4
  69. package/styles/treegrid/_bootstrap5.3-definition.scss +24 -0
  70. package/styles/treegrid/_fabric-dark-definition.scss +0 -1
  71. package/styles/treegrid/_fabric-definition.scss +0 -1
  72. package/styles/treegrid/_fluent-definition.scss +0 -4
  73. package/styles/treegrid/_fluent2-definition.scss +24 -0
  74. package/styles/treegrid/_fusionnew-definition.scss +0 -4
  75. package/styles/treegrid/_highcontrast-definition.scss +0 -1
  76. package/styles/treegrid/_highcontrast-light-definition.scss +0 -1
  77. package/styles/treegrid/_layout.scss +81 -85
  78. package/styles/treegrid/_material-dark-definition.scss +0 -1
  79. package/styles/treegrid/_material-definition.scss +0 -1
  80. package/styles/treegrid/_material3-definition.scss +0 -4
  81. package/styles/treegrid/_tailwind-definition.scss +0 -4
  82. package/styles/treegrid/bootstrap-dark.css +76 -48
  83. package/styles/treegrid/bootstrap.css +76 -49
  84. package/styles/treegrid/bootstrap4.css +77 -48
  85. package/styles/treegrid/bootstrap5-dark.css +77 -49
  86. package/styles/treegrid/bootstrap5.css +77 -49
  87. package/styles/treegrid/fabric-dark.css +74 -47
  88. package/styles/treegrid/fabric.css +74 -47
  89. package/styles/treegrid/fluent-dark.css +77 -49
  90. package/styles/treegrid/fluent.css +77 -49
  91. package/styles/treegrid/fluent2.css +1721 -0
  92. package/styles/treegrid/fluent2.scss +18 -0
  93. package/styles/treegrid/highcontrast-light.css +74 -47
  94. package/styles/treegrid/highcontrast.css +74 -47
  95. package/styles/treegrid/icons/_bootstrap5.3.scss +37 -0
  96. package/styles/treegrid/icons/_fluent2.scss +37 -0
  97. package/styles/treegrid/material-dark.css +111 -54
  98. package/styles/treegrid/material.css +125 -57
  99. package/styles/treegrid/material3-dark.css +111 -56
  100. package/styles/treegrid/material3.css +111 -56
  101. package/styles/treegrid/tailwind-dark.css +87 -51
  102. package/styles/treegrid/tailwind.css +87 -51
  103. package/CHANGELOG.md +0 -250
@@ -1,10 +1,10 @@
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, ColumnMenu, CommandColumn, ContextMenu, DetailRow, Edit, ExcelExport, Filter, Freeze, Grid, InfiniteScroll, InterSectionObserver, Logger, Page, PdfExport, Print, RenderType, Reorder, Resize, RowDD, RowDropSettings, RowRenderer, Scroll, Sort, Toolbar, VirtualContentRenderer, VirtualHeaderRenderer, VirtualRowModelGenerator, VirtualScroll, appendChildren, calculateAggregate, detailLists, extend as extend$1, getActualProperties, getNumberFormat, getObject, getTransformValues, getUid, iterateArrayOrObject, parentsUntil, resetRowIndex, templateCompiler } from '@syncfusion/ej2-grids';
1
+ import { Property, merge, ChildProperty, Collection, isNullOrUndefined, Browser, removeClass, addClass, getValue, createElement, setValue, extend as extend$1, Internationalization, getEnumValue, compile, L10n, EventHandler, KeyboardEvents, SanitizeHtmlHelper, Complex, Event, NotifyPropertyChanges, Component, closest, classList, setStyleAttribute, select, debounce, remove } from '@syncfusion/ej2-base';
2
+ import { Grid, Logger as Logger$1, detailLists, Clipboard, getObject, parentsUntil, Print as Print$1, templateCompiler, appendChildren, extend, CellRenderer, getUid, CellType, Freeze as Freeze$1, getNumberFormat, getActualProperties, iterateArrayOrObject, RowDropSettings as RowDropSettings$1, Reorder as Reorder$1, Resize as Resize$1, Scroll, RowDD as RowDD$1, VirtualRowModelGenerator, Filter as Filter$1, ExcelExport as ExcelExport$1, PdfExport as PdfExport$1, Page as Page$1, Toolbar as Toolbar$1, calculateAggregate, Aggregate as Aggregate$1, Sort as Sort$1, ColumnMenu as ColumnMenu$1, ContextMenu as ContextMenu$1, resetRowIndex, Edit as Edit$1, CommandColumn as CommandColumn$1, DetailRow as DetailRow$1, Cell, VirtualContentRenderer, InterSectionObserver, getTransformValues, RenderType, VirtualHeaderRenderer, VirtualScroll as VirtualScroll$1, ColumnChooser as ColumnChooser$1, RowRenderer, InfiniteScroll as InfiniteScroll$1 } from '@syncfusion/ej2-grids';
3
3
  import { createCheckBox } from '@syncfusion/ej2-buttons';
4
- import { CacheAdaptor, DataManager, DataUtil, Deferred, JsonAdaptor, ODataAdaptor, Predicate, Query, RemoteSaveAdaptor, UrlAdaptor, WebApiAdaptor, WebMethodAdaptor } from '@syncfusion/ej2-data';
5
- import { createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
4
+ import { DataManager, ODataAdaptor, WebApiAdaptor, WebMethodAdaptor, CacheAdaptor, UrlAdaptor, Query, DataUtil, RemoteSaveAdaptor, Deferred, JsonAdaptor, Predicate as Predicate$1 } from '@syncfusion/ej2-data';
5
+ import { showSpinner, hideSpinner, createSpinner } from '@syncfusion/ej2-popups';
6
6
 
7
- var __extends$1 = (undefined && undefined.__extends) || (function () {
7
+ var __extends = (undefined && undefined.__extends) || (function () {
8
8
  var extendStatics = function (d, b) {
9
9
  extendStatics = Object.setPrototypeOf ||
10
10
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -17,7 +17,7 @@ var __extends$1 = (undefined && undefined.__extends) || (function () {
17
17
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
18
  };
19
19
  })();
20
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
20
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
21
21
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
22
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
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;
@@ -120,11 +120,11 @@ var Column = /** @__PURE__ @class */ (function () {
120
120
  * Defines TreeGrid column
121
121
  */
122
122
  var TreeGridColumn = /** @__PURE__ @class */ (function (_super) {
123
- __extends$1(TreeGridColumn, _super);
123
+ __extends(TreeGridColumn, _super);
124
124
  function TreeGridColumn() {
125
125
  return _super !== null && _super.apply(this, arguments) || this;
126
126
  }
127
- __decorate$1([
127
+ __decorate([
128
128
  Property(null)
129
129
  ], TreeGridColumn.prototype, "columns", void 0);
130
130
  return TreeGridColumn;
@@ -133,14 +133,14 @@ var TreeGridColumn = /** @__PURE__ @class */ (function (_super) {
133
133
  * Defines stacked tree grid column
134
134
  */
135
135
  var StackedColumn = /** @__PURE__ @class */ (function (_super) {
136
- __extends$1(StackedColumn, _super);
136
+ __extends(StackedColumn, _super);
137
137
  function StackedColumn() {
138
138
  return _super !== null && _super.apply(this, arguments) || this;
139
139
  }
140
140
  return StackedColumn;
141
141
  }(TreeGridColumn));
142
142
 
143
- var __extends$2 = (undefined && undefined.__extends) || (function () {
143
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
144
144
  var extendStatics = function (d, b) {
145
145
  extendStatics = Object.setPrototypeOf ||
146
146
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -153,7 +153,7 @@ var __extends$2 = (undefined && undefined.__extends) || (function () {
153
153
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
154
154
  };
155
155
  })();
156
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
156
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
157
157
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
158
158
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
159
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;
@@ -163,17 +163,17 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
163
163
  * Configures the Loading Indicator of the Tree Grid.
164
164
  */
165
165
  var LoadingIndicator = /** @__PURE__ @class */ (function (_super) {
166
- __extends$2(LoadingIndicator, _super);
166
+ __extends$1(LoadingIndicator, _super);
167
167
  function LoadingIndicator() {
168
168
  return _super !== null && _super.apply(this, arguments) || this;
169
169
  }
170
- __decorate$2([
170
+ __decorate$1([
171
171
  Property('Spinner')
172
172
  ], LoadingIndicator.prototype, "indicatorType", void 0);
173
173
  return LoadingIndicator;
174
174
  }(ChildProperty));
175
175
 
176
- var __extends$3 = (undefined && undefined.__extends) || (function () {
176
+ var __extends$2 = (undefined && undefined.__extends) || (function () {
177
177
  var extendStatics = function (d, b) {
178
178
  extendStatics = Object.setPrototypeOf ||
179
179
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -186,7 +186,7 @@ var __extends$3 = (undefined && undefined.__extends) || (function () {
186
186
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
187
187
  };
188
188
  })();
189
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
189
+ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
190
190
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
191
191
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
192
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;
@@ -195,85 +195,85 @@ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators,
195
195
  /**
196
196
  * Represents the Tree Grid predicate for the filter column.
197
197
  */
198
- var Predicate$1 = /** @__PURE__ @class */ (function (_super) {
199
- __extends$3(Predicate$$1, _super);
200
- function Predicate$$1() {
198
+ var Predicate = /** @__PURE__ @class */ (function (_super) {
199
+ __extends$2(Predicate, _super);
200
+ function Predicate() {
201
201
  return _super !== null && _super.apply(this, arguments) || this;
202
202
  }
203
- __decorate$3([
203
+ __decorate$2([
204
204
  Property()
205
- ], Predicate$$1.prototype, "field", void 0);
206
- __decorate$3([
205
+ ], Predicate.prototype, "field", void 0);
206
+ __decorate$2([
207
207
  Property()
208
- ], Predicate$$1.prototype, "operator", void 0);
209
- __decorate$3([
208
+ ], Predicate.prototype, "operator", void 0);
209
+ __decorate$2([
210
210
  Property()
211
- ], Predicate$$1.prototype, "value", void 0);
212
- __decorate$3([
211
+ ], Predicate.prototype, "value", void 0);
212
+ __decorate$2([
213
213
  Property()
214
- ], Predicate$$1.prototype, "matchCase", void 0);
215
- __decorate$3([
214
+ ], Predicate.prototype, "matchCase", void 0);
215
+ __decorate$2([
216
216
  Property()
217
- ], Predicate$$1.prototype, "ignoreAccent", void 0);
218
- __decorate$3([
217
+ ], Predicate.prototype, "ignoreAccent", void 0);
218
+ __decorate$2([
219
219
  Property()
220
- ], Predicate$$1.prototype, "predicate", void 0);
221
- __decorate$3([
220
+ ], Predicate.prototype, "predicate", void 0);
221
+ __decorate$2([
222
222
  Property({})
223
- ], Predicate$$1.prototype, "actualFilterValue", void 0);
224
- __decorate$3([
223
+ ], Predicate.prototype, "actualFilterValue", void 0);
224
+ __decorate$2([
225
225
  Property({})
226
- ], Predicate$$1.prototype, "actualOperator", void 0);
227
- __decorate$3([
226
+ ], Predicate.prototype, "actualOperator", void 0);
227
+ __decorate$2([
228
228
  Property()
229
- ], Predicate$$1.prototype, "type", void 0);
230
- __decorate$3([
229
+ ], Predicate.prototype, "type", void 0);
230
+ __decorate$2([
231
231
  Property()
232
- ], Predicate$$1.prototype, "ejpredicate", void 0);
233
- __decorate$3([
232
+ ], Predicate.prototype, "ejpredicate", void 0);
233
+ __decorate$2([
234
234
  Property()
235
- ], Predicate$$1.prototype, "uid", void 0);
236
- __decorate$3([
235
+ ], Predicate.prototype, "uid", void 0);
236
+ __decorate$2([
237
237
  Property()
238
- ], Predicate$$1.prototype, "isForeignKey", void 0);
239
- return Predicate$$1;
238
+ ], Predicate.prototype, "isForeignKey", void 0);
239
+ return Predicate;
240
240
  }(ChildProperty));
241
241
  /**
242
242
  * Configures the filtering behavior of the TreeGrid.
243
243
  */
244
244
  var FilterSettings = /** @__PURE__ @class */ (function (_super) {
245
- __extends$3(FilterSettings, _super);
245
+ __extends$2(FilterSettings, _super);
246
246
  function FilterSettings() {
247
247
  return _super !== null && _super.apply(this, arguments) || this;
248
248
  }
249
- __decorate$3([
250
- Collection([], Predicate$1)
249
+ __decorate$2([
250
+ Collection([], Predicate)
251
251
  ], FilterSettings.prototype, "columns", void 0);
252
- __decorate$3([
252
+ __decorate$2([
253
253
  Property('FilterBar')
254
254
  ], FilterSettings.prototype, "type", void 0);
255
- __decorate$3([
255
+ __decorate$2([
256
256
  Property()
257
257
  ], FilterSettings.prototype, "mode", void 0);
258
- __decorate$3([
258
+ __decorate$2([
259
259
  Property(true)
260
260
  ], FilterSettings.prototype, "showFilterBarStatus", void 0);
261
- __decorate$3([
261
+ __decorate$2([
262
262
  Property(1500)
263
263
  ], FilterSettings.prototype, "immediateModeDelay", void 0);
264
- __decorate$3([
264
+ __decorate$2([
265
265
  Property()
266
266
  ], FilterSettings.prototype, "operators", void 0);
267
- __decorate$3([
267
+ __decorate$2([
268
268
  Property(false)
269
269
  ], FilterSettings.prototype, "ignoreAccent", void 0);
270
- __decorate$3([
270
+ __decorate$2([
271
271
  Property('Parent')
272
272
  ], FilterSettings.prototype, "hierarchyMode", void 0);
273
273
  return FilterSettings;
274
274
  }(ChildProperty));
275
275
 
276
- var __extends$4 = (undefined && undefined.__extends) || (function () {
276
+ var __extends$3 = (undefined && undefined.__extends) || (function () {
277
277
  var extendStatics = function (d, b) {
278
278
  extendStatics = Object.setPrototypeOf ||
279
279
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -286,7 +286,7 @@ var __extends$4 = (undefined && undefined.__extends) || (function () {
286
286
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
287
287
  };
288
288
  })();
289
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
289
+ var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
290
290
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
291
291
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
292
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;
@@ -296,17 +296,17 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
296
296
  * Configures the textwrap behavior of the TreeGrid.
297
297
  */
298
298
  var TextWrapSettings = /** @__PURE__ @class */ (function (_super) {
299
- __extends$4(TextWrapSettings, _super);
299
+ __extends$3(TextWrapSettings, _super);
300
300
  function TextWrapSettings() {
301
301
  return _super !== null && _super.apply(this, arguments) || this;
302
302
  }
303
- __decorate$4([
303
+ __decorate$3([
304
304
  Property('Both')
305
305
  ], TextWrapSettings.prototype, "wrapMode", void 0);
306
306
  return TextWrapSettings;
307
307
  }(ChildProperty));
308
308
 
309
- var __extends$5 = (undefined && undefined.__extends) || (function () {
309
+ var __extends$4 = (undefined && undefined.__extends) || (function () {
310
310
  var extendStatics = function (d, b) {
311
311
  extendStatics = Object.setPrototypeOf ||
312
312
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -328,11 +328,11 @@ var DOC_URL = 'https://ej2.syncfusion.com/documentation/treegrid';
328
328
  var BASE_DOC_URL = 'https://ej2.syncfusion.com/documentation';
329
329
  var ERROR = '[EJ2TreeGrid.Error]';
330
330
  var IsRowDDEnabled = false;
331
- var Logger$1 = /** @__PURE__ @class */ (function (_super) {
332
- __extends$5(Logger$$1, _super);
333
- function Logger$$1(parent) {
331
+ var Logger = /** @__PURE__ @class */ (function (_super) {
332
+ __extends$4(Logger, _super);
333
+ function Logger(parent) {
334
334
  var _this = this;
335
- Grid.Inject(Logger);
335
+ Grid.Inject(Logger$1);
336
336
  _this = _super.call(this, parent) || this;
337
337
  return _this;
338
338
  }
@@ -342,10 +342,10 @@ var Logger$1 = /** @__PURE__ @class */ (function (_super) {
342
342
  * @private
343
343
  * @returns {string} - Returns Logger module name
344
344
  */
345
- Logger$$1.prototype.getModuleName = function () {
345
+ Logger.prototype.getModuleName = function () {
346
346
  return 'logger';
347
347
  };
348
- Logger$$1.prototype.log = function (types, args) {
348
+ Logger.prototype.log = function (types, args) {
349
349
  if (!(types instanceof Array)) {
350
350
  types = [types];
351
351
  }
@@ -393,7 +393,7 @@ var Logger$1 = /** @__PURE__ @class */ (function (_super) {
393
393
  }
394
394
  }
395
395
  };
396
- Logger$$1.prototype.treeLog = function (types, args, treeGrid) {
396
+ Logger.prototype.treeLog = function (types, args, treeGrid) {
397
397
  this.treeGridObj = treeGrid;
398
398
  if (!(types instanceof Array)) {
399
399
  types = [types];
@@ -413,8 +413,8 @@ var Logger$1 = /** @__PURE__ @class */ (function (_super) {
413
413
  }
414
414
  }
415
415
  };
416
- return Logger$$1;
417
- }(Logger));
416
+ return Logger;
417
+ }(Logger$1));
418
418
  var treeGridDetails = {
419
419
  // eslint-disable-next-line camelcase
420
420
  mapping_fields_missing: {
@@ -602,8 +602,10 @@ var ariaColIndex = 'aria-colindex';
602
602
  var dataRowIndex = 'data-rowindex';
603
603
  /** @hidden */
604
604
  var ariaRowIndex = 'aria-rowindex';
605
+ /** @hidden */
606
+ var actionFailure = 'actionFailure';
605
607
 
606
- var __extends$6 = (undefined && undefined.__extends) || (function () {
608
+ var __extends$5 = (undefined && undefined.__extends) || (function () {
607
609
  var extendStatics = function (d, b) {
608
610
  extendStatics = Object.setPrototypeOf ||
609
611
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -622,7 +624,7 @@ var __extends$6 = (undefined && undefined.__extends) || (function () {
622
624
  * @hidden
623
625
  */
624
626
  var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
625
- __extends$6(TreeClipboard, _super);
627
+ __extends$5(TreeClipboard, _super);
626
628
  function TreeClipboard(parent, serviceLocator) {
627
629
  var _this = _super.call(this, parent.grid, serviceLocator) || this;
628
630
  _this.treeCopyContent = '';
@@ -880,7 +882,7 @@ function getExpandStatus(parent, record, parents) {
880
882
  return false;
881
883
  }
882
884
  else if (childParent) {
883
- return getExpandStatus(parent, childParent, parents);
885
+ return getExpandStatus(parent, childParent);
884
886
  }
885
887
  return true;
886
888
  }
@@ -1148,6 +1150,10 @@ var Selection = /** @__PURE__ @class */ (function () {
1148
1150
  }
1149
1151
  };
1150
1152
  Selection.prototype.selectCheckboxes = function (rowIndexes) {
1153
+ if (isNullOrUndefined(rowIndexes)) {
1154
+ var error = 'The provided value for the rowIndexes is undefined. Please ensure the rowIndexes contains number.';
1155
+ this.parent.trigger(actionFailure, { error: error });
1156
+ }
1151
1157
  for (var i = 0; i < rowIndexes.length; i++) {
1152
1158
  var record = this.parent.getCurrentViewRecords()[rowIndexes[parseInt(i.toString(), 10)]];
1153
1159
  var flatRecord = getParentData(this.parent, record.uniqueID);
@@ -1493,15 +1499,15 @@ var Selection = /** @__PURE__ @class */ (function () {
1493
1499
  *
1494
1500
  * @hidden
1495
1501
  */
1496
- var Print$1 = /** @__PURE__ @class */ (function () {
1502
+ var Print = /** @__PURE__ @class */ (function () {
1497
1503
  /**
1498
1504
  * Constructor for Print module
1499
1505
  *
1500
1506
  * @param {TreeGrid} parent - Tree Grid instance
1501
1507
  */
1502
- function Print$$1(parent) {
1508
+ function Print(parent) {
1503
1509
  this.parent = parent;
1504
- Grid.Inject(Print);
1510
+ Grid.Inject(Print$1);
1505
1511
  this.addEventListener();
1506
1512
  }
1507
1513
  /**
@@ -1510,20 +1516,20 @@ var Print$1 = /** @__PURE__ @class */ (function () {
1510
1516
  * @private
1511
1517
  * @returns {string} Returns Print module name
1512
1518
  */
1513
- Print$$1.prototype.getModuleName = function () {
1519
+ Print.prototype.getModuleName = function () {
1514
1520
  return 'print';
1515
1521
  };
1516
1522
  /**
1517
1523
  * @hidden
1518
1524
  * @returns {void}
1519
1525
  */
1520
- Print$$1.prototype.addEventListener = function () {
1526
+ Print.prototype.addEventListener = function () {
1521
1527
  this.parent.grid.on(printGridInit, this.printTreeGrid, this);
1522
1528
  };
1523
- Print$$1.prototype.removeEventListener = function () {
1529
+ Print.prototype.removeEventListener = function () {
1524
1530
  this.parent.grid.off(printGridInit, this.printTreeGrid);
1525
1531
  };
1526
- Print$$1.prototype.printTreeGrid = function (printGrid) {
1532
+ Print.prototype.printTreeGrid = function (printGrid) {
1527
1533
  var grid = getObject('printgrid', printGrid);
1528
1534
  var gridElement = getObject('element', printGrid);
1529
1535
  grid.addEventListener(queryCellInfo, this.parent.grid.queryCellInfo);
@@ -1531,7 +1537,7 @@ var Print$1 = /** @__PURE__ @class */ (function () {
1531
1537
  grid.addEventListener(beforeDataBound, this.parent.grid.beforeDataBound);
1532
1538
  addClass([gridElement], 'e-treegrid');
1533
1539
  };
1534
- Print$$1.prototype.print = function () {
1540
+ Print.prototype.print = function () {
1535
1541
  this.parent.grid.print();
1536
1542
  };
1537
1543
  /**
@@ -1540,13 +1546,13 @@ var Print$1 = /** @__PURE__ @class */ (function () {
1540
1546
  * @returns {void}
1541
1547
  * @hidden
1542
1548
  */
1543
- Print$$1.prototype.destroy = function () {
1549
+ Print.prototype.destroy = function () {
1544
1550
  this.removeEventListener();
1545
1551
  };
1546
- return Print$$1;
1552
+ return Print;
1547
1553
  }());
1548
1554
 
1549
- var __extends$7 = (undefined && undefined.__extends) || (function () {
1555
+ var __extends$6 = (undefined && undefined.__extends) || (function () {
1550
1556
  var extendStatics = function (d, b) {
1551
1557
  extendStatics = Object.setPrototypeOf ||
1552
1558
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1559,7 +1565,7 @@ var __extends$7 = (undefined && undefined.__extends) || (function () {
1559
1565
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1560
1566
  };
1561
1567
  })();
1562
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1568
+ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1563
1569
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1564
1570
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1565
1571
  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;
@@ -1569,29 +1575,29 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
1569
1575
  * Configures the filtering behavior of the TreeGrid.
1570
1576
  */
1571
1577
  var SearchSettings = /** @__PURE__ @class */ (function (_super) {
1572
- __extends$7(SearchSettings, _super);
1578
+ __extends$6(SearchSettings, _super);
1573
1579
  function SearchSettings() {
1574
1580
  return _super !== null && _super.apply(this, arguments) || this;
1575
1581
  }
1576
- __decorate$5([
1582
+ __decorate$4([
1577
1583
  Property()
1578
1584
  ], SearchSettings.prototype, "fields", void 0);
1579
- __decorate$5([
1585
+ __decorate$4([
1580
1586
  Property(false)
1581
1587
  ], SearchSettings.prototype, "ignoreCase", void 0);
1582
- __decorate$5([
1588
+ __decorate$4([
1583
1589
  Property('contains')
1584
1590
  ], SearchSettings.prototype, "operator", void 0);
1585
- __decorate$5([
1591
+ __decorate$4([
1586
1592
  Property()
1587
1593
  ], SearchSettings.prototype, "key", void 0);
1588
- __decorate$5([
1594
+ __decorate$4([
1589
1595
  Property()
1590
1596
  ], SearchSettings.prototype, "hierarchyMode", void 0);
1591
1597
  return SearchSettings;
1592
1598
  }(ChildProperty));
1593
1599
 
1594
- var __extends$8 = (undefined && undefined.__extends) || (function () {
1600
+ var __extends$7 = (undefined && undefined.__extends) || (function () {
1595
1601
  var extendStatics = function (d, b) {
1596
1602
  extendStatics = Object.setPrototypeOf ||
1597
1603
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -1604,7 +1610,7 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
1604
1610
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1605
1611
  };
1606
1612
  })();
1607
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1613
+ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1608
1614
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1609
1615
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1610
1616
  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;
@@ -1614,29 +1620,29 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
1614
1620
  * Configures the selection behavior of the TreeGrid.
1615
1621
  */
1616
1622
  var SelectionSettings = /** @__PURE__ @class */ (function (_super) {
1617
- __extends$8(SelectionSettings, _super);
1623
+ __extends$7(SelectionSettings, _super);
1618
1624
  function SelectionSettings() {
1619
1625
  return _super !== null && _super.apply(this, arguments) || this;
1620
1626
  }
1621
- __decorate$6([
1627
+ __decorate$5([
1622
1628
  Property('Row')
1623
1629
  ], SelectionSettings.prototype, "mode", void 0);
1624
- __decorate$6([
1630
+ __decorate$5([
1625
1631
  Property('Flow')
1626
1632
  ], SelectionSettings.prototype, "cellSelectionMode", void 0);
1627
- __decorate$6([
1633
+ __decorate$5([
1628
1634
  Property('Single')
1629
1635
  ], SelectionSettings.prototype, "type", void 0);
1630
- __decorate$6([
1636
+ __decorate$5([
1631
1637
  Property(false)
1632
1638
  ], SelectionSettings.prototype, "persistSelection", void 0);
1633
- __decorate$6([
1639
+ __decorate$5([
1634
1640
  Property('Default')
1635
1641
  ], SelectionSettings.prototype, "checkboxMode", void 0);
1636
- __decorate$6([
1642
+ __decorate$5([
1637
1643
  Property(false)
1638
1644
  ], SelectionSettings.prototype, "checkboxOnly", void 0);
1639
- __decorate$6([
1645
+ __decorate$5([
1640
1646
  Property(true)
1641
1647
  ], SelectionSettings.prototype, "enableToggle", void 0);
1642
1648
  return SelectionSettings;
@@ -1674,10 +1680,10 @@ var Render = /** @__PURE__ @class */ (function () {
1674
1680
  if (!isNullOrUndefined(data.parentItem) && !isFilterChildHierarchy(this.parent) &&
1675
1681
  (!(this.parent.allowPaging && !(this.parent.pageSettings.pageSizeMode === 'Root')) ||
1676
1682
  (isRemoteData(this.parent) && !isOffline(this.parent)))) {
1677
- var collapsed$$1 = (this.parent.initialRender && (!(isNullOrUndefined(parentData[this.parent.expandStateMapping]) ||
1683
+ var collapsed = (this.parent.initialRender && (!(isNullOrUndefined(parentData[this.parent.expandStateMapping]) ||
1678
1684
  parentData[this.parent.expandStateMapping]) || this.parent.enableCollapseAll)) ||
1679
1685
  !getExpandStatus(this.parent, args.data, this.parent.grid.getCurrentViewRecords());
1680
- if (collapsed$$1 && !isNullOrUndefined(args.row)) {
1686
+ if (collapsed && !isNullOrUndefined(args.row)) {
1681
1687
  args.row.style.display = 'none';
1682
1688
  var rowsObj = this.parent.grid.getRowsObject();
1683
1689
  if (!this.parent.grid.isFrozenGrid() && !isNullOrUndefined(args.row.getAttribute('data-uid'))) {
@@ -1956,7 +1962,7 @@ var Render = /** @__PURE__ @class */ (function () {
1956
1962
  }
1957
1963
  else {
1958
1964
  var str = 'isStringTemplate';
1959
- var result = args.column["" + templateFn](extend$1({ 'index': '' }, args.data), this.parent, 'template', tempID, this.parent["" + str]);
1965
+ var result = args.column["" + templateFn](extend({ 'index': '' }, args.data), this.parent, 'template', tempID, this.parent["" + str]);
1960
1966
  appendChildren(cellElement, result);
1961
1967
  }
1962
1968
  delete args.column.template;
@@ -1996,7 +2002,9 @@ var Render = /** @__PURE__ @class */ (function () {
1996
2002
  && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
1997
2003
  var cell = rowsObj[parseInt(j.toString(), 10)]["" + cells][parseInt(cellIndex.toString(), 10)];
1998
2004
  var cellRenderer = new CellRenderer(_this.parent.grid, _this.parent.grid.serviceLocator);
1999
- var td = _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
2005
+ var td = rows.length >= rowsObj.length
2006
+ ? _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent)
2007
+ : _this.parent.getRows()[rowsObj[parseInt(j.toString(), 10)].index].querySelector('.e-templatecell');
2000
2008
  cellRenderer.refreshTD(td, cell, rowsObj[parseInt(j.toString(), 10)].data, { index: rowsObj[parseInt(j.toString(), 10)]["" + rowIdx] });
2001
2009
  var treecell = _this.parent.getRows()[parseInt(j.toString(), 10)]
2002
2010
  .cells[parseInt(cellIndex.toString(), 10)];
@@ -2099,7 +2107,8 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2099
2107
  */
2100
2108
  DataManipulation.prototype.convertToFlatData = function (data) {
2101
2109
  var _this = this;
2102
- this.parent.flatData = (Object.keys(data).length === 0 && !(this.parent.dataSource instanceof DataManager) ?
2110
+ this.parent.flatData = (!isNullOrUndefined(data) && Object.keys(data).length === 0
2111
+ && !(this.parent.dataSource instanceof DataManager) ?
2103
2112
  this.parent.dataSource : []);
2104
2113
  this.parent.parentData = [];
2105
2114
  if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) {
@@ -2155,7 +2164,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2155
2164
  var keys = Object.keys(data);
2156
2165
  for (var i = 0; i < keys.length; i++) {
2157
2166
  var tempData = data[parseInt(i.toString(), 10)];
2158
- this.hierarchyData.push(extend({}, tempData));
2167
+ this.hierarchyData.push(extend$1({}, tempData));
2159
2168
  if (!isNullOrUndefined(tempData[this.parent.idMapping])) {
2160
2169
  this.taskIds.push(tempData[this.parent.idMapping]);
2161
2170
  }
@@ -2257,7 +2266,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2257
2266
  }
2258
2267
  }
2259
2268
  if (isNullOrUndefined(records[parseInt(rec.toString(), 10)].index)) {
2260
- records[parseInt(rec.toString(), 10)].taskData = extend({}, records[parseInt(rec.toString(), 10)]);
2269
+ records[parseInt(rec.toString(), 10)].taskData = extend$1({}, records[parseInt(rec.toString(), 10)]);
2261
2270
  records[parseInt(rec.toString(), 10)].uniqueID = getUid(this_1.parent.element.id + '_data_');
2262
2271
  setValue('uniqueIDCollection.' + records[parseInt(rec.toString(), 10)].uniqueID, records[parseInt(rec.toString(), 10)], this_1.parent);
2263
2272
  records[parseInt(rec.toString(), 10)].level = 0;
@@ -2456,7 +2465,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2456
2465
  }
2457
2466
  }
2458
2467
  }
2459
- result[parseInt(r.toString(), 10)].taskData = extend({}, result[parseInt(r.toString(), 10)]);
2468
+ result[parseInt(r.toString(), 10)].taskData = extend$1({}, result[parseInt(r.toString(), 10)]);
2460
2469
  if (result[parseInt(r.toString(), 10)]["" + _this.parent.parentIdMapping] && _this.parent.enableVirtualization && _this.parent["" + remoteExpandedData].length) {
2461
2470
  for (var i = 0; i < _this.parent["" + remoteExpandedData].length; i++) {
2462
2471
  if (result[parseInt(r.toString(), 10)]["" + _this.parent.parentIdMapping] === _this.parent["" + remoteExpandedData][parseInt(i.toString(), 10)]["" + _this.parent.idMapping]) {
@@ -2484,7 +2493,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2484
2493
  }
2485
2494
  }
2486
2495
  else {
2487
- var parentData = extend({}, rowDetails.record);
2496
+ var parentData = extend$1({}, rowDetails.record);
2488
2497
  delete parentData.childRecords;
2489
2498
  result[parseInt(r.toString(), 10)].parentItem = parentData;
2490
2499
  result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
@@ -2492,7 +2501,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2492
2501
  }
2493
2502
  else {
2494
2503
  result[parseInt(r.toString(), 10)].level = rowDetails.record.level + 1;
2495
- var parentData = extend({}, rowDetails.record);
2504
+ var parentData = extend$1({}, rowDetails.record);
2496
2505
  delete parentData.childRecords;
2497
2506
  result[parseInt(r.toString(), 10)].parentItem = parentData;
2498
2507
  result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
@@ -2612,7 +2621,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2612
2621
  var treeGridData = [];
2613
2622
  var keys = Object.keys(data);
2614
2623
  for (var i = 0, len = keys.length; i < len; i++) {
2615
- var currentData = extend({}, data[parseInt(i.toString(), 10)]);
2624
+ var currentData = extend$1({}, data[parseInt(i.toString(), 10)]);
2616
2625
  currentData.taskData = data[parseInt(i.toString(), 10)];
2617
2626
  var level = 0;
2618
2627
  this.storedIndex++;
@@ -2640,7 +2649,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2640
2649
  currentData.uniqueID = getUid(this.parent.element.id + '_data_');
2641
2650
  setValue('uniqueIDCollection.' + currentData.uniqueID, currentData, this.parent);
2642
2651
  if (!isNullOrUndefined(parentRecords)) {
2643
- var parentData = extend({}, parentRecords);
2652
+ var parentData = extend$1({}, parentRecords);
2644
2653
  delete parentData.childRecords;
2645
2654
  delete parentData[this.parent.childMapping];
2646
2655
  if (this.isSelfReference) {
@@ -2922,7 +2931,7 @@ var ContextMenuItems;
2922
2931
  ContextMenuItems[ContextMenuItems["RowOutdent"] = 17] = "RowOutdent";
2923
2932
  })(ContextMenuItems || (ContextMenuItems = {}));
2924
2933
 
2925
- var __extends$9 = (undefined && undefined.__extends) || (function () {
2934
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
2926
2935
  var extendStatics = function (d, b) {
2927
2936
  extendStatics = Object.setPrototypeOf ||
2928
2937
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -2935,7 +2944,7 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
2935
2944
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2936
2945
  };
2937
2946
  })();
2938
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2947
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2939
2948
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2940
2949
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2941
2950
  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;
@@ -2945,38 +2954,38 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
2945
2954
  * Configures the paging behavior of the TreeGrid.
2946
2955
  */
2947
2956
  var PageSettings = /** @__PURE__ @class */ (function (_super) {
2948
- __extends$9(PageSettings, _super);
2957
+ __extends$8(PageSettings, _super);
2949
2958
  function PageSettings() {
2950
2959
  return _super !== null && _super.apply(this, arguments) || this;
2951
2960
  }
2952
- __decorate$7([
2961
+ __decorate$6([
2953
2962
  Property(12)
2954
2963
  ], PageSettings.prototype, "pageSize", void 0);
2955
- __decorate$7([
2964
+ __decorate$6([
2956
2965
  Property(8)
2957
2966
  ], PageSettings.prototype, "pageCount", void 0);
2958
- __decorate$7([
2967
+ __decorate$6([
2959
2968
  Property(1)
2960
2969
  ], PageSettings.prototype, "currentPage", void 0);
2961
- __decorate$7([
2970
+ __decorate$6([
2962
2971
  Property()
2963
2972
  ], PageSettings.prototype, "totalRecordsCount", void 0);
2964
- __decorate$7([
2973
+ __decorate$6([
2965
2974
  Property(false)
2966
2975
  ], PageSettings.prototype, "enableQueryString", void 0);
2967
- __decorate$7([
2976
+ __decorate$6([
2968
2977
  Property(false)
2969
2978
  ], PageSettings.prototype, "pageSizes", void 0);
2970
- __decorate$7([
2979
+ __decorate$6([
2971
2980
  Property(null)
2972
2981
  ], PageSettings.prototype, "template", void 0);
2973
- __decorate$7([
2982
+ __decorate$6([
2974
2983
  Property('All')
2975
2984
  ], PageSettings.prototype, "pageSizeMode", void 0);
2976
2985
  return PageSettings;
2977
2986
  }(ChildProperty));
2978
2987
 
2979
- var __extends$10 = (undefined && undefined.__extends) || (function () {
2988
+ var __extends$9 = (undefined && undefined.__extends) || (function () {
2980
2989
  var extendStatics = function (d, b) {
2981
2990
  extendStatics = Object.setPrototypeOf ||
2982
2991
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -2989,7 +2998,7 @@ var __extends$10 = (undefined && undefined.__extends) || (function () {
2989
2998
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2990
2999
  };
2991
3000
  })();
2992
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3001
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2993
3002
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2994
3003
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2995
3004
  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;
@@ -2999,7 +3008,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
2999
3008
  * Configures the TreeGrid's aggregate column.
3000
3009
  */
3001
3010
  var AggregateColumn = /** @__PURE__ @class */ (function (_super) {
3002
- __extends$10(AggregateColumn, _super);
3011
+ __extends$9(AggregateColumn, _super);
3003
3012
  function AggregateColumn() {
3004
3013
  var _this = _super !== null && _super.apply(this, arguments) || this;
3005
3014
  _this.intl = new Internationalization();
@@ -3067,41 +3076,41 @@ var AggregateColumn = /** @__PURE__ @class */ (function (_super) {
3067
3076
  AggregateColumn.prototype.setPropertiesSilent = function (prop) {
3068
3077
  this.setProperties(prop, true);
3069
3078
  };
3070
- __decorate$8([
3079
+ __decorate$7([
3071
3080
  Property()
3072
3081
  ], AggregateColumn.prototype, "type", void 0);
3073
- __decorate$8([
3082
+ __decorate$7([
3074
3083
  Property()
3075
3084
  ], AggregateColumn.prototype, "footerTemplate", void 0);
3076
- __decorate$8([
3085
+ __decorate$7([
3077
3086
  Property()
3078
3087
  ], AggregateColumn.prototype, "field", void 0);
3079
- __decorate$8([
3088
+ __decorate$7([
3080
3089
  Property()
3081
3090
  ], AggregateColumn.prototype, "format", void 0);
3082
- __decorate$8([
3091
+ __decorate$7([
3083
3092
  Property()
3084
3093
  ], AggregateColumn.prototype, "columnName", void 0);
3085
- __decorate$8([
3094
+ __decorate$7([
3086
3095
  Property()
3087
3096
  ], AggregateColumn.prototype, "customAggregate", void 0);
3088
3097
  return AggregateColumn;
3089
3098
  }(ChildProperty));
3090
3099
  var AggregateRow = /** @__PURE__ @class */ (function (_super) {
3091
- __extends$10(AggregateRow, _super);
3100
+ __extends$9(AggregateRow, _super);
3092
3101
  function AggregateRow() {
3093
3102
  return _super !== null && _super.apply(this, arguments) || this;
3094
3103
  }
3095
- __decorate$8([
3104
+ __decorate$7([
3096
3105
  Collection([], AggregateColumn)
3097
3106
  ], AggregateRow.prototype, "columns", void 0);
3098
- __decorate$8([
3107
+ __decorate$7([
3099
3108
  Property(true)
3100
3109
  ], AggregateRow.prototype, "showChildSummary", void 0);
3101
3110
  return AggregateRow;
3102
3111
  }(ChildProperty));
3103
3112
 
3104
- var __extends$11 = (undefined && undefined.__extends) || (function () {
3113
+ var __extends$a = (undefined && undefined.__extends) || (function () {
3105
3114
  var extendStatics = function (d, b) {
3106
3115
  extendStatics = Object.setPrototypeOf ||
3107
3116
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3114,7 +3123,7 @@ var __extends$11 = (undefined && undefined.__extends) || (function () {
3114
3123
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3115
3124
  };
3116
3125
  })();
3117
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3126
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3118
3127
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3119
3128
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3120
3129
  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;
@@ -3124,47 +3133,47 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
3124
3133
  * Configures the edit behavior of the TreeGrid.
3125
3134
  */
3126
3135
  var EditSettings = /** @__PURE__ @class */ (function (_super) {
3127
- __extends$11(EditSettings, _super);
3136
+ __extends$a(EditSettings, _super);
3128
3137
  function EditSettings() {
3129
3138
  return _super !== null && _super.apply(this, arguments) || this;
3130
3139
  }
3131
- __decorate$9([
3140
+ __decorate$8([
3132
3141
  Property(false)
3133
3142
  ], EditSettings.prototype, "allowAdding", void 0);
3134
- __decorate$9([
3143
+ __decorate$8([
3135
3144
  Property(false)
3136
3145
  ], EditSettings.prototype, "allowEditing", void 0);
3137
- __decorate$9([
3146
+ __decorate$8([
3138
3147
  Property(false)
3139
3148
  ], EditSettings.prototype, "allowDeleting", void 0);
3140
- __decorate$9([
3149
+ __decorate$8([
3141
3150
  Property('Cell')
3142
3151
  ], EditSettings.prototype, "mode", void 0);
3143
- __decorate$9([
3152
+ __decorate$8([
3144
3153
  Property('Top')
3145
3154
  ], EditSettings.prototype, "newRowPosition", void 0);
3146
- __decorate$9([
3155
+ __decorate$8([
3147
3156
  Property(true)
3148
3157
  ], EditSettings.prototype, "allowEditOnDblClick", void 0);
3149
- __decorate$9([
3158
+ __decorate$8([
3150
3159
  Property(true)
3151
3160
  ], EditSettings.prototype, "showConfirmDialog", void 0);
3152
- __decorate$9([
3161
+ __decorate$8([
3153
3162
  Property(false)
3154
3163
  ], EditSettings.prototype, "showDeleteConfirmDialog", void 0);
3155
- __decorate$9([
3164
+ __decorate$8([
3156
3165
  Property('')
3157
3166
  ], EditSettings.prototype, "template", void 0);
3158
- __decorate$9([
3167
+ __decorate$8([
3159
3168
  Property({})
3160
3169
  ], EditSettings.prototype, "dialog", void 0);
3161
- __decorate$9([
3170
+ __decorate$8([
3162
3171
  Property(false)
3163
3172
  ], EditSettings.prototype, "allowNextRowEdit", void 0);
3164
3173
  return EditSettings;
3165
3174
  }(ChildProperty));
3166
3175
 
3167
- var __extends$12 = (undefined && undefined.__extends) || (function () {
3176
+ var __extends$b = (undefined && undefined.__extends) || (function () {
3168
3177
  var extendStatics = function (d, b) {
3169
3178
  extendStatics = Object.setPrototypeOf ||
3170
3179
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3177,7 +3186,7 @@ var __extends$12 = (undefined && undefined.__extends) || (function () {
3177
3186
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3178
3187
  };
3179
3188
  })();
3180
- var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3189
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3181
3190
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3182
3191
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3183
3192
  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;
@@ -3187,14 +3196,14 @@ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators,
3187
3196
  * Represents the field name and direction of sort column.
3188
3197
  */
3189
3198
  var SortDescriptor = /** @__PURE__ @class */ (function (_super) {
3190
- __extends$12(SortDescriptor, _super);
3199
+ __extends$b(SortDescriptor, _super);
3191
3200
  function SortDescriptor() {
3192
3201
  return _super !== null && _super.apply(this, arguments) || this;
3193
3202
  }
3194
- __decorate$10([
3203
+ __decorate$9([
3195
3204
  Property()
3196
3205
  ], SortDescriptor.prototype, "field", void 0);
3197
- __decorate$10([
3206
+ __decorate$9([
3198
3207
  Property()
3199
3208
  ], SortDescriptor.prototype, "direction", void 0);
3200
3209
  return SortDescriptor;
@@ -3203,14 +3212,14 @@ var SortDescriptor = /** @__PURE__ @class */ (function (_super) {
3203
3212
  * Configures the sorting behavior of TreeGrid.
3204
3213
  */
3205
3214
  var SortSettings = /** @__PURE__ @class */ (function (_super) {
3206
- __extends$12(SortSettings, _super);
3215
+ __extends$b(SortSettings, _super);
3207
3216
  function SortSettings() {
3208
3217
  return _super !== null && _super.apply(this, arguments) || this;
3209
3218
  }
3210
- __decorate$10([
3219
+ __decorate$9([
3211
3220
  Collection([], SortDescriptor)
3212
3221
  ], SortSettings.prototype, "columns", void 0);
3213
- __decorate$10([
3222
+ __decorate$9([
3214
3223
  Property(true)
3215
3224
  ], SortSettings.prototype, "allowUnsort", void 0);
3216
3225
  return SortSettings;
@@ -3257,7 +3266,7 @@ function editAction(details, control, isSelfReference, addRowIndex, selectedInde
3257
3266
  modifiedData = extendArray(value);
3258
3267
  }
3259
3268
  else {
3260
- modifiedData.push(extend({}, value));
3269
+ modifiedData.push(extend$1({}, value));
3261
3270
  }
3262
3271
  if (!isSkip && (action !== 'add' ||
3263
3272
  (control.editSettings.newRowPosition !== 'Top' && control.editSettings.newRowPosition !== 'Bottom'))) {
@@ -3380,7 +3389,7 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
3380
3389
  var value;
3381
3390
  var isSkip = false;
3382
3391
  var currentViewRecords = control.grid.getCurrentViewRecords();
3383
- value = extend({}, details.value);
3392
+ value = extend$1({}, details.value);
3384
3393
  value = getPlainData(value);
3385
3394
  switch (control.editSettings.newRowPosition) {
3386
3395
  case 'Top':
@@ -3393,28 +3402,28 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
3393
3402
  break;
3394
3403
  case 'Above':
3395
3404
  if (!isNullOrUndefined(addRowRecord)) {
3396
- value = extend({}, addRowRecord);
3405
+ value = extend$1({}, addRowRecord);
3397
3406
  value = getPlainData(value);
3398
3407
  }
3399
3408
  else {
3400
- value = extend({}, currentViewRecords[addRowIndex + 1]);
3409
+ value = extend$1({}, currentViewRecords[addRowIndex + 1]);
3401
3410
  value = getPlainData(value);
3402
3411
  }
3403
3412
  break;
3404
3413
  case 'Below':
3405
3414
  case 'Child':
3406
3415
  if (!isNullOrUndefined(addRowRecord)) {
3407
- value = extend({}, addRowRecord);
3416
+ value = extend$1({}, addRowRecord);
3408
3417
  value = getPlainData(value);
3409
3418
  }
3410
3419
  else {
3411
3420
  var primaryKeys = control.grid.getPrimaryKeyFieldNames()[0];
3412
3421
  var currentdata = currentViewRecords[parseInt(addRowIndex.toString(), 10)];
3413
3422
  if (!isNullOrUndefined(currentdata) && currentdata["" + primaryKeys] === details.value["" + primaryKeys] || selectedIndex !== -1) {
3414
- value = extend({}, currentdata);
3423
+ value = extend$1({}, currentdata);
3415
3424
  }
3416
3425
  else {
3417
- value = extend({}, details.value);
3426
+ value = extend$1({}, details.value);
3418
3427
  }
3419
3428
  value = getPlainData(value);
3420
3429
  var internalProperty = 'internalProperties';
@@ -3623,7 +3632,7 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
3623
3632
  }
3624
3633
  }
3625
3634
 
3626
- var __extends$13 = (undefined && undefined.__extends) || (function () {
3635
+ var __extends$c = (undefined && undefined.__extends) || (function () {
3627
3636
  var extendStatics = function (d, b) {
3628
3637
  extendStatics = Object.setPrototypeOf ||
3629
3638
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3636,7 +3645,7 @@ var __extends$13 = (undefined && undefined.__extends) || (function () {
3636
3645
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3637
3646
  };
3638
3647
  })();
3639
- var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3648
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3640
3649
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3641
3650
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3642
3651
  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;
@@ -3646,23 +3655,23 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
3646
3655
  * Configures the infinite scroll behavior of Tree Grid.
3647
3656
  */
3648
3657
  var InfiniteScrollSettings = /** @__PURE__ @class */ (function (_super) {
3649
- __extends$13(InfiniteScrollSettings, _super);
3658
+ __extends$c(InfiniteScrollSettings, _super);
3650
3659
  function InfiniteScrollSettings() {
3651
3660
  return _super !== null && _super.apply(this, arguments) || this;
3652
3661
  }
3653
- __decorate$11([
3662
+ __decorate$a([
3654
3663
  Property(false)
3655
3664
  ], InfiniteScrollSettings.prototype, "enableCache", void 0);
3656
- __decorate$11([
3665
+ __decorate$a([
3657
3666
  Property(3)
3658
3667
  ], InfiniteScrollSettings.prototype, "maxBlocks", void 0);
3659
- __decorate$11([
3668
+ __decorate$a([
3660
3669
  Property(3)
3661
3670
  ], InfiniteScrollSettings.prototype, "initialBlocks", void 0);
3662
3671
  return InfiniteScrollSettings;
3663
3672
  }(ChildProperty));
3664
3673
 
3665
- var __extends = (undefined && undefined.__extends) || (function () {
3674
+ var __extends$d = (undefined && undefined.__extends) || (function () {
3666
3675
  var extendStatics = function (d, b) {
3667
3676
  extendStatics = Object.setPrototypeOf ||
3668
3677
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3675,7 +3684,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
3675
3684
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3676
3685
  };
3677
3686
  })();
3678
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3687
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3679
3688
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3680
3689
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3681
3690
  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;
@@ -3692,7 +3701,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
3692
3701
  * ```
3693
3702
  */
3694
3703
  var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3695
- __extends(TreeGrid, _super);
3704
+ __extends$d(TreeGrid, _super);
3696
3705
  function TreeGrid(options, element) {
3697
3706
  var _this = _super.call(this, options, element) || this;
3698
3707
  _this.dataResults = {};
@@ -3727,15 +3736,15 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3727
3736
  return false;
3728
3737
  }
3729
3738
  };
3730
- TreeGrid_1.Inject(Selection, Logger$1);
3739
+ TreeGrid_1.Inject(Selection, Logger);
3731
3740
  setValue('mergePersistData', _this.mergePersistTreeGridData, _this);
3732
3741
  var logger = 'Logger';
3733
3742
  if (!isNullOrUndefined(_this.injectedModules["" + logger])) {
3734
- Grid.Inject(Logger);
3743
+ Grid.Inject(Logger$1);
3735
3744
  }
3736
3745
  var freezeModulePresent = _this.injectedModules.filter(function (e) {
3737
3746
  if (e.prototype.getModuleName() === 'freeze') {
3738
- Grid.Inject(Freeze);
3747
+ Grid.Inject(Freeze$1);
3739
3748
  }
3740
3749
  });
3741
3750
  _this.grid = new Grid();
@@ -3814,6 +3823,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3814
3823
  };
3815
3824
  /**
3816
3825
  * Exports the TreeGrid data to the specified URL using a POST request.
3826
+ *
3817
3827
  * @param {string} url - Defines exporting url
3818
3828
  * @returns {void}
3819
3829
  */
@@ -3844,6 +3854,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3844
3854
  };
3845
3855
  /**
3846
3856
  * Sets the header text and other properties for an array of columns based on specified criteria.
3857
+ *
3847
3858
  * @param {Column[]} columns - Defines array of columns
3848
3859
  * @param {string[]} include - Defines array of sting
3849
3860
  * @returns {Column[]} returns array of columns
@@ -3930,6 +3941,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3930
3941
  * @returns {void}
3931
3942
  */
3932
3943
  TreeGrid.prototype.sortByColumn = function (columnName, direction, isMultiSort) {
3944
+ if (isNullOrUndefined(columnName) && isNullOrUndefined(direction)) {
3945
+ var error = 'The provided value for the columnName and direction is undefined. Please ensure the columnName and direction contains string.';
3946
+ this.trigger(actionFailure, { error: error });
3947
+ }
3933
3948
  if (this.sortModule) {
3934
3949
  this.sortModule.sortColumn(columnName, direction, isMultiSort);
3935
3950
  }
@@ -3990,21 +4005,27 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3990
4005
  * @returns {void}
3991
4006
  */
3992
4007
  TreeGrid.prototype.reorderColumns = function (fromFName, toFName) {
4008
+ if (isNullOrUndefined(fromFName) && isNullOrUndefined(toFName)) {
4009
+ var error = 'The provided value for the fromFName and toFName is undefined. Please ensure the fromFName and toFName contains string.';
4010
+ this.trigger(actionFailure, { error: error });
4011
+ }
3993
4012
  this.grid.reorderColumns(fromFName, toFName);
3994
4013
  };
3995
4014
  TreeGrid.prototype.TreeGridLocale = function () {
3996
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
3997
- var locale = L10n.locale;
3998
- var localeObject = {};
3999
- setValue(this.locale, {}, localeObject);
4000
- var gridLocale;
4001
- gridLocale = {};
4002
- gridLocale = getObject(this.locale, locale);
4003
- var treeGridLocale;
4004
- treeGridLocale = {};
4005
- treeGridLocale = getObject(this.getModuleName(), gridLocale);
4006
- setValue('grid', treeGridLocale, getObject(this.locale, localeObject));
4007
- L10n.load(localeObject);
4015
+ if (!isNullOrUndefined(this.locale)) {
4016
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
4017
+ var locale = L10n.locale;
4018
+ var localeObject = {};
4019
+ setValue(this.locale, {}, localeObject);
4020
+ var gridLocale = void 0;
4021
+ gridLocale = {};
4022
+ gridLocale = getObject(this.locale, locale);
4023
+ var treeGridLocale = void 0;
4024
+ treeGridLocale = {};
4025
+ treeGridLocale = getObject(this.getModuleName(), gridLocale);
4026
+ setValue('grid', treeGridLocale, getObject(this.locale, localeObject));
4027
+ L10n.load(localeObject);
4028
+ }
4008
4029
  };
4009
4030
  /**
4010
4031
  * By default, prints all the pages of the TreeGrid and hides the pager.
@@ -4051,45 +4072,57 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4051
4072
  }
4052
4073
  break;
4053
4074
  case 'downArrow':
4054
- if (!this.enableVirtualization) {
4075
+ if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
4055
4076
  target = e.target;
4056
- parentTarget = target.parentElement;
4057
- if (!isNullOrUndefined(parentTarget)) {
4058
- var cellIndex = parentTarget.cellIndex;
4059
- if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
4060
- parentTarget = target;
4061
- }
4062
- summaryElement = this.findnextRowElement(parentTarget);
4063
- if (summaryElement !== null) {
4064
- var cellIndex_1 = e.target.cellIndex;
4065
- var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
4066
- addClass([row_1], 'e-focused');
4067
- addClass([row_1], 'e-focus');
4068
- }
4069
- else {
4070
- this.clearSelection();
4077
+ if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
4078
+ target = parentsUntil(target, 'e-rowcell');
4079
+ }
4080
+ if (!isNullOrUndefined(target)) {
4081
+ parentTarget = target.parentElement;
4082
+ if (!isNullOrUndefined(parentTarget)) {
4083
+ var cellIndex = parentTarget.cellIndex;
4084
+ if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
4085
+ parentTarget = target;
4086
+ }
4087
+ summaryElement = this.findnextRowElement(parentTarget);
4088
+ if (summaryElement !== null) {
4089
+ var cellIndex_1 = target.cellIndex;
4090
+ var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
4091
+ addClass([row_1], 'e-focused');
4092
+ addClass([row_1], 'e-focus');
4093
+ }
4094
+ else {
4095
+ this.clearSelection();
4096
+ }
4071
4097
  }
4072
4098
  }
4073
4099
  }
4074
4100
  break;
4075
4101
  case 'upArrow':
4076
- if (!this.enableVirtualization) {
4102
+ if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
4077
4103
  target = e.target;
4078
- parentTarget = target.parentElement;
4079
- if (!isNullOrUndefined(parentTarget)) {
4080
- var cellIndex = parentTarget.cellIndex;
4081
- if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
4082
- parentTarget = target;
4083
- }
4084
- summaryElement = this.findPreviousRowElement(parentTarget);
4085
- if (summaryElement !== null) {
4086
- var cIndex = e.target.cellIndex;
4087
- var rows = summaryElement.children[parseInt(cIndex.toString(), 10)];
4088
- addClass([rows], 'e-focused');
4089
- addClass([rows], 'e-focus');
4090
- }
4091
- else {
4092
- this.clearSelection();
4104
+ if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
4105
+ target = parentsUntil(target, 'e-rowcell');
4106
+ }
4107
+ if (!isNullOrUndefined(target)) {
4108
+ parentTarget = target.parentElement;
4109
+ if (!isNullOrUndefined(parentTarget)) {
4110
+ var cellIndex = parentTarget.cellIndex;
4111
+ if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
4112
+ parentTarget = target;
4113
+ }
4114
+ summaryElement = this.findPreviousRowElement(parentTarget);
4115
+ if (summaryElement !== null) {
4116
+ var cellIndex_2 = target.cellIndex;
4117
+ if (!isNullOrUndefined(cellIndex_2)) {
4118
+ var row_2 = summaryElement.children[parseInt(cellIndex_2.toString(), 10)];
4119
+ addClass([row_2], 'e-focused');
4120
+ addClass([row_2], 'e-focus');
4121
+ }
4122
+ }
4123
+ else {
4124
+ this.clearSelection();
4125
+ }
4093
4126
  }
4094
4127
  }
4095
4128
  }
@@ -4283,7 +4316,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4283
4316
  name: 'Edit'
4284
4317
  });
4285
4318
  }
4286
- if (this.isCommandColumn(this.columns)) {
4319
+ if (!isNullOrUndefined(this.columns) && this.isCommandColumn(this.columns)) {
4287
4320
  modules.push({
4288
4321
  member: 'commandColumn',
4289
4322
  args: [this],
@@ -4381,7 +4414,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4381
4414
  this.log(['mapping_fields_missing']);
4382
4415
  this.renderModule = new Render(this);
4383
4416
  this.dataModule = new DataManipulation(this);
4384
- this.printModule = new Print$1(this);
4417
+ this.printModule = new Print(this);
4385
4418
  this.trigger(load);
4386
4419
  this.autoGenerateColumns();
4387
4420
  this.initialRender = true;
@@ -4416,6 +4449,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4416
4449
  var root = 'root';
4417
4450
  this.grid["" + root] = this["" + root] ? this["" + root] : this;
4418
4451
  this.grid.appendTo(gridContainer);
4452
+ this.actionFailureHandler();
4419
4453
  var gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
4420
4454
  gridContent.setAttribute('tabindex', '0');
4421
4455
  var contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
@@ -4438,6 +4472,85 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4438
4472
  }
4439
4473
  };
4440
4474
  };
4475
+ TreeGrid.prototype.actionFailureHandler = function () {
4476
+ var _this = this;
4477
+ var failureCases = [];
4478
+ var primaryKeyFieldNames = this.getPrimaryKeyFieldNames();
4479
+ var RecordsCount = this.flatData.length;
4480
+ if ((this.editSettings.allowAdding || this.editSettings.allowDeleting || this.editSettings.allowEditing)
4481
+ && primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
4482
+ failureCases.push('For the CRUD actions, it is necessary to enable Primary Key field for the unique data column.');
4483
+ }
4484
+ if (this.allowRowDragAndDrop && primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
4485
+ failureCases.push('For the Row Drag and Drop actions, it is necessary to enable Primary Key field for the unique data column.');
4486
+ }
4487
+ if (this.allowPaging && this.enableVirtualization) {
4488
+ failureCases.push('Paging is not allowed in virtualization case.');
4489
+ }
4490
+ if (RecordsCount === 0 && this.columns.length === 0) {
4491
+ failureCases.push('Either of the Data source or columns should be given.');
4492
+ }
4493
+ if (this.frozenColumns > 0 && this.columnModel.filter(function (col) { return col.isFrozen; })) {
4494
+ failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
4495
+ }
4496
+ if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
4497
+ failureCases.push('Virtual scrolling is not compatible with the detail template');
4498
+ }
4499
+ if (this.stackedHeader && !isNullOrUndefined(this.detailTemplate)) {
4500
+ failureCases.push('Virtual scrolling is not compatible with the detail template');
4501
+ }
4502
+ if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }) || this.frozenRows > 0)
4503
+ && (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
4504
+ failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
4505
+ }
4506
+ if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
4507
+ failureCases.push('Frozen rows and columns are not supported with cell editing.');
4508
+ }
4509
+ if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
4510
+ failureCases.push('Selection is not supported in RowTemplate');
4511
+ }
4512
+ if (this.treeColumnIndex < 0) {
4513
+ failureCases.push('For showing tree structure it is must to set the TreeColumnIndex value.');
4514
+ }
4515
+ if (this.treeColumnIndex >= this.columns.length) {
4516
+ failureCases.push('TreeColumnIndex value should not exceed the total column count.');
4517
+ }
4518
+ if (this.enableVirtualization && (!/[0-9]$/.test(this.columnModel.filter(function (col) { return col.width; }).toString())
4519
+ && !/[px]$/.test(this.columnModel.filter(function (col) { return col.width; }).toString()))
4520
+ || (/[0-9]$/.test(this.height.toString()) && /[px]$/.test(this.height.toString()))) {
4521
+ failureCases.push('column width and height should be in pixels');
4522
+ }
4523
+ if (!isNullOrUndefined(this.childMapping) && !isNullOrUndefined(this.idMapping)) {
4524
+ failureCases.push('Both IdMapping and ChildMapping should not be used together for tree grid rendering.');
4525
+ }
4526
+ if ((!isNullOrUndefined(this.idMapping) && (isNullOrUndefined(this.parentIdMapping))) ||
4527
+ ((isNullOrUndefined(this.idMapping) && (!isNullOrUndefined(this.parentIdMapping))))) {
4528
+ failureCases.push('IdMapping and ParentIdMapping properties should be defined and vice versa.');
4529
+ }
4530
+ var checkboxColumn = this.columnModel.filter(function (col) { return col.showCheckbox; });
4531
+ var treeColumn = this.columns[this.treeColumnIndex];
4532
+ if (checkboxColumn.length !== 0) {
4533
+ if (checkboxColumn !== treeColumn) {
4534
+ failureCases.push('ShowCheckbox column should not be defined other than the tree column.');
4535
+ }
4536
+ if (checkboxColumn.length > 1) {
4537
+ failureCases.push('Only one column can have the ShowCheckbox option enabled.');
4538
+ }
4539
+ }
4540
+ var alignColumn = this.columnModel.filter(function (col) { return col.textAlign === 'Right' && col.field === _this.columnModel[_this.treeColumnIndex].field; });
4541
+ if (alignColumn.length !== 0) {
4542
+ failureCases.push('TextAlign right for the tree column is not applicable.');
4543
+ }
4544
+ if (failureCases.length > 0) {
4545
+ var failureEventArgs_1 = {
4546
+ error: {}
4547
+ };
4548
+ failureCases.forEach(function (failureCase, index) {
4549
+ failureEventArgs_1.error[parseInt(index.toString(), 10)] = failureCase;
4550
+ });
4551
+ this.trigger(actionFailure, failureEventArgs_1);
4552
+ }
4553
+ };
4441
4554
  TreeGrid.prototype.refreshToolbarItems = function () {
4442
4555
  var toolbarElement = this.toolbarModule.getToolbar();
4443
4556
  var indentID = this.element.id + '_gridcontrol_indent';
@@ -4645,11 +4758,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4645
4758
  _this.grid.on('initial-end', _this.afterGridRender, _this);
4646
4759
  if (!isNullOrUndefined(_this.loggerModule)) {
4647
4760
  var loggerModule = 'loggerModule';
4648
- _this.loggerModule = _this.grid["" + loggerModule] = new Logger$1(_this.grid);
4761
+ _this.loggerModule = _this.grid["" + loggerModule] = new Logger(_this.grid);
4649
4762
  }
4650
4763
  };
4651
4764
  this.grid.printComplete = this.triggerEvents.bind(this);
4652
- this.grid.actionFailure = this.triggerEvents.bind(this);
4765
+ this.grid.actionFailure = function (args) {
4766
+ _this.trigger(actionFailure, args);
4767
+ };
4653
4768
  this.extendedGridDataBoundEvent();
4654
4769
  this.extendedGridEvents();
4655
4770
  this.extendedGridActionEvents();
@@ -4738,7 +4853,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4738
4853
  treeGrid.notify('dataProcessor', args);
4739
4854
  //args = treeGrid.dataModule.dataProcessor(args);
4740
4855
  }
4741
- extend(args, treeGrid.dataResults);
4856
+ extend$1(args, treeGrid.dataResults);
4742
4857
  if (treeGrid.enableImmutableMode) {
4743
4858
  args.result = args.result.slice();
4744
4859
  }
@@ -5022,9 +5137,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5022
5137
  }
5023
5138
  else {
5024
5139
  if (_this.grid.isFrozenGrid() && _this.enableVirtualization && args['tableName'] === 'movable') {
5025
- var movableContent$$1 = _this.grid.element.querySelector('.' + movableContent);
5026
- var frozenContent$$1 = _this.grid.element.querySelector('.' + frozenContent);
5027
- movableContent$$1.style.height = frozenContent$$1.style.height = 'auto';
5140
+ var movableContent$1 = _this.grid.element.querySelector('.' + movableContent);
5141
+ var frozenContent$1 = _this.grid.element.querySelector('.' + frozenContent);
5142
+ movableContent$1.style.height = frozenContent$1.style.height = 'auto';
5028
5143
  }
5029
5144
  _this.trigger(actionComplete, args);
5030
5145
  }
@@ -5745,7 +5860,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5745
5860
  if (this.grid.editModule) {
5746
5861
  if (!isNullOrUndefined(index)) {
5747
5862
  var griddata = this.grid.getCurrentViewRecords()[parseInt(index.toString(), 10)];
5748
- extend(griddata, data);
5863
+ extend$1(griddata, data);
5749
5864
  this.grid.editModule.updateRow(index, griddata);
5750
5865
  }
5751
5866
  else {
@@ -5762,6 +5877,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5762
5877
  * @returns {void}
5763
5878
  */
5764
5879
  TreeGrid.prototype.deleteRecord = function (fieldName, data) {
5880
+ if ((isNullOrUndefined(fieldName) && (isNullOrUndefined(data)) || (this.getSelectedRecords().length <= 0))) {
5881
+ var error = 'The provided value for the fieldName and data is undefined. Please ensure the fieldName and data contains number.';
5882
+ this.trigger(actionFailure, { error: error });
5883
+ }
5765
5884
  if (this.grid.editModule) {
5766
5885
  this.grid.editModule.deleteRecord(fieldName, data);
5767
5886
  }
@@ -5830,6 +5949,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5830
5949
  * @returns {void}
5831
5950
  */
5832
5951
  TreeGrid.prototype.deleteRow = function (tr) {
5952
+ if (isNullOrUndefined(tr)) {
5953
+ var error = 'The provided value for the tr is undefined. Please ensure the tr contains HTMLTableRowElement.';
5954
+ this.trigger(actionFailure, { error: error });
5955
+ }
5833
5956
  if (this.grid.editModule) {
5834
5957
  this.grid.editModule.deleteRow(tr);
5835
5958
  }
@@ -5855,9 +5978,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5855
5978
  this.grid.setCellValue(key, field, value);
5856
5979
  var rowIndex = this.grid.getRowIndexByPrimaryKey(key);
5857
5980
  var record = this.getCurrentViewRecords()[parseInt(rowIndex.toString(), 10)];
5858
- if (!isNullOrUndefined(record)) {
5859
- editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
5981
+ if (isNullOrUndefined(record)) {
5982
+ var error = 'The provided value for the record is undefined. Please ensure the record contains ITreeData.';
5983
+ this.trigger(actionFailure, { error: error });
5860
5984
  }
5985
+ editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
5861
5986
  };
5862
5987
  /**
5863
5988
  * Updates and refresh the particular row values based on the given primary key value.
@@ -5895,8 +6020,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5895
6020
  this.grid.setRowData(key, rowData);
5896
6021
  var visibleRecords = this.getVisibleRecords();
5897
6022
  if (visibleRecords.length > 0 && key === (visibleRecords[visibleRecords.length - 1])["" + primaryKey]) {
5898
- var table$$1 = this.getContentTable();
5899
- var sHeight = table$$1.scrollHeight;
6023
+ var table = this.getContentTable();
6024
+ var sHeight = table.scrollHeight;
5900
6025
  var clientHeight = this.getContent().clientHeight;
5901
6026
  this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
5902
6027
  }
@@ -5908,6 +6033,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5908
6033
  * @returns {void}
5909
6034
  */
5910
6035
  TreeGrid.prototype.goToPage = function (pageNo) {
6036
+ if (isNullOrUndefined(pageNo)) {
6037
+ var error = 'The provided value for the pageNo is undefined. Please ensure the pageNo contains number.';
6038
+ this.trigger(actionFailure, { error: error });
6039
+ }
5911
6040
  if (this.grid.pagerModule) {
5912
6041
  this.grid.pagerModule.goToPage(pageNo);
5913
6042
  }
@@ -6009,6 +6138,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6009
6138
  * @returns {void}
6010
6139
  */
6011
6140
  TreeGrid.prototype.hideColumns = function (keys, hideBy) {
6141
+ if (isNullOrUndefined(keys)) {
6142
+ var error = 'The provided value for the keys is undefined. Please ensure the keys contains string.';
6143
+ this.trigger(actionFailure, { error: error });
6144
+ }
6012
6145
  this.grid.hideColumns(keys, hideBy);
6013
6146
  this.updateColumnModel();
6014
6147
  };
@@ -6106,10 +6239,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6106
6239
  if (this.grid.columns.length !== this.columnModel.length) {
6107
6240
  this.stackedHeader = true;
6108
6241
  }
6109
- if (this.stackedHeader && this.allowResizing) {
6242
+ if (this.stackedHeader && this.allowResizing && !isNullOrUndefined(this.columns)) {
6110
6243
  this.updateColumnsWidth(this.columns);
6111
6244
  }
6112
- if (!this.stackedHeader) {
6245
+ if (!this.stackedHeader && !isNullOrUndefined(this.columns)) {
6113
6246
  merge(this.columns, this.columnModel);
6114
6247
  }
6115
6248
  this["" + deepMerge] = undefined; // Workaround for blazor updateModel
@@ -6118,10 +6251,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6118
6251
  TreeGrid.prototype.updateColumnsWidth = function (columns) {
6119
6252
  var _this = this;
6120
6253
  columns.forEach(function (column) {
6121
- if (column.columns) {
6254
+ if (!isNullOrUndefined(column) && column.columns) {
6122
6255
  _this.updateColumnsWidth(column.columns);
6123
6256
  }
6124
- else if (column.field) {
6257
+ else if (!isNullOrUndefined(column) && column.field) {
6125
6258
  var currentColumn = _this.grid.getColumnByField(column.field);
6126
6259
  if (!isNullOrUndefined(currentColumn)) {
6127
6260
  column.width = currentColumn.width;
@@ -6426,6 +6559,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6426
6559
  */
6427
6560
  TreeGrid.prototype.expandRow = function (row, record, key, level) {
6428
6561
  var _this = this;
6562
+ if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
6563
+ var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
6564
+ this.trigger(actionFailure, { error: error });
6565
+ }
6429
6566
  var parentRec = this.parentData;
6430
6567
  if (!this.enableVirtualization) {
6431
6568
  parentRec = this.flatData.filter(function (e) {
@@ -6449,13 +6586,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6449
6586
  if (expandingArgs.expandAll) {
6450
6587
  _this.expandCollapseAllChildren(record, 'expand', key, level);
6451
6588
  }
6452
- _this.expandRows(row, record, parentRec, key, level);
6589
+ _this.expandRows(row, record, parentRec);
6453
6590
  }
6454
6591
  });
6455
6592
  }
6456
6593
  else if ((!this.allowPaging || (pagerValuePresent && this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value === 'All')) &&
6457
6594
  !this.expandAllPrevent && this.isExpandingEventTriggered) {
6458
- this.expandRows(row, record, parentRec, key, level);
6595
+ this.expandRows(row, record, parentRec);
6459
6596
  }
6460
6597
  this.isExpandingEventTriggered = true;
6461
6598
  }
@@ -6466,13 +6603,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6466
6603
  if (expandingArgs.expandAll) {
6467
6604
  _this.expandCollapseAllChildren(record, 'expand', key, level);
6468
6605
  }
6469
- _this.expandRows(row, record, parentRec, key, level);
6606
+ _this.expandRows(row, record, parentRec);
6470
6607
  }
6471
6608
  });
6472
6609
  }
6473
6610
  };
6474
6611
  // Internal method to handle the rows expand
6475
- TreeGrid.prototype.expandRows = function (row, record, parentRec, key, level) {
6612
+ TreeGrid.prototype.expandRows = function (row, record, parentRec) {
6476
6613
  this.expandCollapse('expand', row, record);
6477
6614
  var children = 'Children';
6478
6615
  if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record["" + children]))) {
@@ -6543,6 +6680,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6543
6680
  */
6544
6681
  TreeGrid.prototype.collapseRow = function (row, record, key) {
6545
6682
  var _this = this;
6683
+ if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
6684
+ var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
6685
+ this.trigger(actionFailure, { error: error });
6686
+ }
6546
6687
  var parentRec = this.parentData;
6547
6688
  if (!this.enableVirtualization) {
6548
6689
  parentRec = this.flatData.filter(function (e) {
@@ -6559,12 +6700,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6559
6700
  if (collapsingArgs.collapseAll) {
6560
6701
  _this.expandCollapseAllChildren(record, 'collapse', key);
6561
6702
  }
6562
- _this.collapseRows(row, record, parentRec, key);
6703
+ _this.collapseRows(row, record, parentRec);
6563
6704
  }
6564
6705
  });
6565
6706
  }
6566
6707
  else if (!this.allowPaging && !this.collapseAllPrevent && this.isCollapsingEventTriggered) {
6567
- this.collapseRows(row, record, parentRec, key);
6708
+ this.collapseRows(row, record, parentRec);
6568
6709
  }
6569
6710
  this.isCollapsingEventTriggered = true;
6570
6711
  }
@@ -6572,13 +6713,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6572
6713
  var args = { data: record, row: row, cancel: false };
6573
6714
  this.trigger(collapsing, args, function (collapsingArgs) {
6574
6715
  if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
6575
- _this.collapseRows(row, record, parentRec, key);
6716
+ _this.collapseRows(row, record, parentRec);
6576
6717
  }
6577
6718
  });
6578
6719
  }
6579
6720
  };
6580
6721
  // Internal method for handling the rows collapse
6581
- TreeGrid.prototype.collapseRows = function (row, record, parentRec, key) {
6722
+ TreeGrid.prototype.collapseRows = function (row, record, parentRec) {
6582
6723
  this.expandCollapse('collapse', row, record);
6583
6724
  var collapseArgs = { data: record, row: row };
6584
6725
  if (!isRemoteData(this)) {
@@ -6622,6 +6763,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6622
6763
  * @returns {void}
6623
6764
  */
6624
6765
  TreeGrid.prototype.expandAtLevel = function (level) {
6766
+ if (isNullOrUndefined(level)) {
6767
+ var error = 'The provided value for the level is undefined. Please ensure the level contains number.';
6768
+ this.trigger(actionFailure, { error: error });
6769
+ }
6625
6770
  if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
6626
6771
  var rec = this.grid.dataSource.filter(function (e) {
6627
6772
  if (e.hasChildRecords && e.level === level) {
@@ -6644,6 +6789,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6644
6789
  * @returns {void}
6645
6790
  */
6646
6791
  TreeGrid.prototype.expandByKey = function (key) {
6792
+ if (isNullOrUndefined(key)) {
6793
+ var error = 'The provided value for the key is undefined. Please ensure the key contains number.';
6794
+ this.trigger(actionFailure, { error: error });
6795
+ }
6647
6796
  this.expandCollapseActionByKey(key, 'Expand');
6648
6797
  };
6649
6798
  TreeGrid.prototype.expandAction = function (record, key, level, isPaging) {
@@ -6701,6 +6850,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6701
6850
  * @returns {void}
6702
6851
  */
6703
6852
  TreeGrid.prototype.collapseAtLevel = function (level) {
6853
+ if (isNullOrUndefined(level)) {
6854
+ var error = 'The provided value for the level is undefined. Please ensure the level contains number.';
6855
+ this.trigger(actionFailure, { error: error });
6856
+ }
6704
6857
  if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
6705
6858
  var record = this.grid.dataSource.filter(function (e) {
6706
6859
  if (e.hasChildRecords && e.level === level) {
@@ -6723,6 +6876,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6723
6876
  * @returns {void}
6724
6877
  */
6725
6878
  TreeGrid.prototype.collapseByKey = function (key) {
6879
+ if (isNullOrUndefined(key)) {
6880
+ var error = 'The provided value for the key is undefined. Please ensure the key contains number.';
6881
+ this.trigger(actionFailure, { error: error });
6882
+ }
6726
6883
  this.expandCollapseActionByKey(key, 'Collapse');
6727
6884
  };
6728
6885
  TreeGrid.prototype.expandCollapseActionByKey = function (key, action) {
@@ -6763,6 +6920,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6763
6920
  * @returns {void}
6764
6921
  */
6765
6922
  TreeGrid.prototype.expandAll = function () {
6923
+ if (this.getCurrentViewRecords().length === 0) {
6924
+ var error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
6925
+ this.trigger(actionFailure, { error: error });
6926
+ }
6766
6927
  this.isExpandedEventTriggered = false;
6767
6928
  this.isExpandingEventTriggered = false;
6768
6929
  this.expandCollapseAll('expand');
@@ -6773,6 +6934,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6773
6934
  * @returns {void}
6774
6935
  */
6775
6936
  TreeGrid.prototype.collapseAll = function () {
6937
+ if (this.getCurrentViewRecords().length === 0) {
6938
+ var error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
6939
+ this.trigger(actionFailure, { error: error });
6940
+ }
6776
6941
  this.isCollapsedEventTriggered = false;
6777
6942
  this.isCollapsingEventTriggered = false;
6778
6943
  this.expandCollapseAll('collapse');
@@ -6942,8 +7107,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6942
7107
  totalRows = [].slice.call(rows);
6943
7108
  for (var i = totalRows.length - 1; i >= 0; i--) {
6944
7109
  if (!isHidden(totalRows[parseInt(i.toString(), 10)])) {
6945
- var table$$1 = this.getContentTable();
6946
- var sHeight = table$$1.scrollHeight;
7110
+ var table = this.getContentTable();
7111
+ var sHeight = table.scrollHeight;
6947
7112
  var clientHeight = this.getContent().clientHeight;
6948
7113
  this.lastRowBorder(totalRows[parseInt(i.toString(), 10)], sHeight <= clientHeight);
6949
7114
  break;
@@ -7003,8 +7168,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7003
7168
  if (childData[parseInt(i.toString(), 10)]) {
7004
7169
  childData[parseInt(i.toString(), 10)].level = record.level + 1;
7005
7170
  childData[parseInt(i.toString(), 10)].index = Math.ceil(Math.random() * 1000);
7006
- childData[parseInt(i.toString(), 10)].parentItem = extend({}, record);
7007
- childData[parseInt(i.toString(), 10)].taskData = extend({}, childData[parseInt(i.toString(), 10)]);
7171
+ childData[parseInt(i.toString(), 10)].parentItem = extend$1({}, record);
7172
+ childData[parseInt(i.toString(), 10)].taskData = extend$1({}, childData[parseInt(i.toString(), 10)]);
7008
7173
  delete childData[parseInt(i.toString(), 10)].parentItem.childRecords;
7009
7174
  delete childData[parseInt(i.toString(), 10)].taskData.parentItem;
7010
7175
  childData[parseInt(i.toString(), 10)].parentUniqueID = record.uniqueID;
@@ -7332,6 +7497,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7332
7497
  * @returns {void}
7333
7498
  */
7334
7499
  TreeGrid.prototype.filterByColumn = function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
7500
+ if (isNullOrUndefined(fieldName) && isNullOrUndefined(filterOperator) && isNullOrUndefined(filterValue)) {
7501
+ var error = 'The provided value for the fieldName, filterOperator and filterValue are undefined. Please ensure the fieldName, filterOperator and filterValue.';
7502
+ this.trigger(actionFailure, { error: error });
7503
+ }
7335
7504
  this.grid.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
7336
7505
  };
7337
7506
  /**
@@ -7398,6 +7567,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7398
7567
  * @returns {void}
7399
7568
  */
7400
7569
  TreeGrid.prototype.paste = function (data, rowIndex, colIndex) {
7570
+ if (isNullOrUndefined(data) && isNullOrUndefined(rowIndex) && isNullOrUndefined(colIndex)) {
7571
+ var error = 'The provided value for the index is undefined. Please ensure the index contains number.';
7572
+ this.trigger(actionFailure, { error: error });
7573
+ }
7401
7574
  this.clipboardModule.paste(data, rowIndex, colIndex);
7402
7575
  };
7403
7576
  /**
@@ -7609,7 +7782,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7609
7782
  * @returns {number} - Returns frozen column count
7610
7783
  */
7611
7784
  TreeGrid.prototype.getFrozenColumns = function () {
7612
- return this.getFrozenCount(this.columns, 0) + this.frozenColumns;
7785
+ return this.getFrozenCount(!isNullOrUndefined(this.columns) && this.columns, 0) + this.frozenColumns;
7613
7786
  };
7614
7787
  TreeGrid.prototype.getFrozenCount = function (cols, cnt) {
7615
7788
  for (var j = 0, len = cols.length; j < len; j++) {
@@ -7666,6 +7839,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7666
7839
  * @returns {void}
7667
7840
  */
7668
7841
  TreeGrid.prototype.reorderRows = function (fromIndexes, toIndex, position) {
7842
+ if (isNullOrUndefined(fromIndexes) && isNullOrUndefined(toIndex) && isNullOrUndefined(position)) {
7843
+ var error = 'The provided value for the fromIndexes, toIndex and position is undefined. Please ensure the fromIndexes and toIndex contains number and position contains string.';
7844
+ this.trigger(actionFailure, { error: error });
7845
+ }
7669
7846
  this.rowDragAndDropModule.reorderRows(fromIndexes, toIndex, position);
7670
7847
  };
7671
7848
  /**
@@ -7693,400 +7870,400 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7693
7870
  }
7694
7871
  };
7695
7872
  var TreeGrid_1;
7696
- __decorate([
7873
+ __decorate$b([
7697
7874
  Property(0)
7698
7875
  ], TreeGrid.prototype, "frozenRows", void 0);
7699
- __decorate([
7876
+ __decorate$b([
7700
7877
  Property(0)
7701
7878
  ], TreeGrid.prototype, "frozenColumns", void 0);
7702
- __decorate([
7879
+ __decorate$b([
7703
7880
  Property('Ellipsis')
7704
7881
  ], TreeGrid.prototype, "clipMode", void 0);
7705
- __decorate([
7882
+ __decorate$b([
7706
7883
  Property([])
7707
7884
  ], TreeGrid.prototype, "columns", void 0);
7708
- __decorate([
7885
+ __decorate$b([
7709
7886
  Property(null)
7710
7887
  ], TreeGrid.prototype, "childMapping", void 0);
7711
- __decorate([
7888
+ __decorate$b([
7712
7889
  Property(null)
7713
7890
  ], TreeGrid.prototype, "hasChildMapping", void 0);
7714
- __decorate([
7891
+ __decorate$b([
7715
7892
  Property(0)
7716
7893
  ], TreeGrid.prototype, "treeColumnIndex", void 0);
7717
- __decorate([
7894
+ __decorate$b([
7718
7895
  Property(null)
7719
7896
  ], TreeGrid.prototype, "idMapping", void 0);
7720
- __decorate([
7897
+ __decorate$b([
7721
7898
  Property(null)
7722
7899
  ], TreeGrid.prototype, "parentIdMapping", void 0);
7723
- __decorate([
7900
+ __decorate$b([
7724
7901
  Property(false)
7725
7902
  ], TreeGrid.prototype, "enableCollapseAll", void 0);
7726
- __decorate([
7903
+ __decorate$b([
7727
7904
  Property(null)
7728
7905
  ], TreeGrid.prototype, "expandStateMapping", void 0);
7729
- __decorate([
7906
+ __decorate$b([
7730
7907
  Property(false)
7731
7908
  ], TreeGrid.prototype, "allowRowDragAndDrop", void 0);
7732
- __decorate([
7909
+ __decorate$b([
7733
7910
  Property([])
7734
7911
  ], TreeGrid.prototype, "dataSource", void 0);
7735
- __decorate([
7912
+ __decorate$b([
7736
7913
  Property()
7737
7914
  ], TreeGrid.prototype, "query", void 0);
7738
- __decorate([
7915
+ __decorate$b([
7739
7916
  Property()
7740
7917
  ], TreeGrid.prototype, "cloneQuery", void 0);
7741
- __decorate([
7918
+ __decorate$b([
7742
7919
  Property('AllPages')
7743
7920
  ], TreeGrid.prototype, "printMode", void 0);
7744
- __decorate([
7921
+ __decorate$b([
7745
7922
  Property(false)
7746
7923
  ], TreeGrid.prototype, "allowPaging", void 0);
7747
- __decorate([
7924
+ __decorate$b([
7748
7925
  Property(false)
7749
7926
  ], TreeGrid.prototype, "loadChildOnDemand", void 0);
7750
- __decorate([
7927
+ __decorate$b([
7751
7928
  Property(false)
7752
7929
  ], TreeGrid.prototype, "allowTextWrap", void 0);
7753
- __decorate([
7930
+ __decorate$b([
7754
7931
  Complex({}, TextWrapSettings)
7755
7932
  ], TreeGrid.prototype, "textWrapSettings", void 0);
7756
- __decorate([
7933
+ __decorate$b([
7757
7934
  Property(false)
7758
7935
  ], TreeGrid.prototype, "allowReordering", void 0);
7759
- __decorate([
7936
+ __decorate$b([
7760
7937
  Property(false)
7761
7938
  ], TreeGrid.prototype, "allowResizing", void 0);
7762
- __decorate([
7939
+ __decorate$b([
7763
7940
  Property(false)
7764
7941
  ], TreeGrid.prototype, "autoCheckHierarchy", void 0);
7765
- __decorate([
7942
+ __decorate$b([
7766
7943
  Complex({}, PageSettings)
7767
7944
  ], TreeGrid.prototype, "pageSettings", void 0);
7768
- __decorate([
7769
- Complex({}, RowDropSettings)
7945
+ __decorate$b([
7946
+ Complex({}, RowDropSettings$1)
7770
7947
  ], TreeGrid.prototype, "rowDropSettings", void 0);
7771
- __decorate([
7948
+ __decorate$b([
7772
7949
  Property('USD')
7773
7950
  ], TreeGrid.prototype, "currencyCode", void 0);
7774
- __decorate([
7951
+ __decorate$b([
7775
7952
  Property()
7776
7953
  ], TreeGrid.prototype, "pagerTemplate", void 0);
7777
- __decorate([
7954
+ __decorate$b([
7778
7955
  Property(false)
7779
7956
  ], TreeGrid.prototype, "showColumnMenu", void 0);
7780
- __decorate([
7957
+ __decorate$b([
7781
7958
  Property(false)
7782
7959
  ], TreeGrid.prototype, "showColumnChooser", void 0);
7783
- __decorate([
7960
+ __decorate$b([
7784
7961
  Property(false)
7785
7962
  ], TreeGrid.prototype, "allowSorting", void 0);
7786
- __decorate([
7963
+ __decorate$b([
7787
7964
  Property(true)
7788
7965
  ], TreeGrid.prototype, "allowMultiSorting", void 0);
7789
- __decorate([
7966
+ __decorate$b([
7790
7967
  Complex({}, SortSettings)
7791
7968
  ], TreeGrid.prototype, "sortSettings", void 0);
7792
- __decorate([
7969
+ __decorate$b([
7793
7970
  Collection([], AggregateRow)
7794
7971
  ], TreeGrid.prototype, "aggregates", void 0);
7795
- __decorate([
7972
+ __decorate$b([
7796
7973
  Complex({}, EditSettings)
7797
7974
  ], TreeGrid.prototype, "editSettings", void 0);
7798
- __decorate([
7975
+ __decorate$b([
7799
7976
  Property(false)
7800
7977
  ], TreeGrid.prototype, "allowFiltering", void 0);
7801
- __decorate([
7978
+ __decorate$b([
7802
7979
  Property()
7803
7980
  ], TreeGrid.prototype, "detailTemplate", void 0);
7804
- __decorate([
7981
+ __decorate$b([
7805
7982
  Complex({}, FilterSettings)
7806
7983
  ], TreeGrid.prototype, "filterSettings", void 0);
7807
- __decorate([
7984
+ __decorate$b([
7808
7985
  Complex({}, SearchSettings)
7809
7986
  ], TreeGrid.prototype, "searchSettings", void 0);
7810
- __decorate([
7987
+ __decorate$b([
7811
7988
  Property()
7812
7989
  ], TreeGrid.prototype, "toolbar", void 0);
7813
- __decorate([
7990
+ __decorate$b([
7814
7991
  Property()
7815
7992
  ], TreeGrid.prototype, "toolbarTemplate", void 0);
7816
- __decorate([
7993
+ __decorate$b([
7817
7994
  Property('Default')
7818
7995
  ], TreeGrid.prototype, "gridLines", void 0);
7819
- __decorate([
7996
+ __decorate$b([
7820
7997
  Property()
7821
7998
  ], TreeGrid.prototype, "contextMenuItems", void 0);
7822
- __decorate([
7999
+ __decorate$b([
7823
8000
  Property()
7824
8001
  ], TreeGrid.prototype, "columnMenuItems", void 0);
7825
- __decorate([
8002
+ __decorate$b([
7826
8003
  Property()
7827
8004
  ], TreeGrid.prototype, "rowTemplate", void 0);
7828
- __decorate([
8005
+ __decorate$b([
7829
8006
  Property('Parent')
7830
8007
  ], TreeGrid.prototype, "copyHierarchyMode", void 0);
7831
- __decorate([
8008
+ __decorate$b([
7832
8009
  Property(null)
7833
8010
  ], TreeGrid.prototype, "rowHeight", void 0);
7834
- __decorate([
8011
+ __decorate$b([
7835
8012
  Property(true)
7836
8013
  ], TreeGrid.prototype, "enableAltRow", void 0);
7837
- __decorate([
8014
+ __decorate$b([
7838
8015
  Property(true)
7839
8016
  ], TreeGrid.prototype, "allowKeyboard", void 0);
7840
- __decorate([
8017
+ __decorate$b([
7841
8018
  Property(false)
7842
8019
  ], TreeGrid.prototype, "enableHover", void 0);
7843
- __decorate([
8020
+ __decorate$b([
7844
8021
  Property(false)
7845
8022
  ], TreeGrid.prototype, "enableAutoFill", void 0);
7846
- __decorate([
8023
+ __decorate$b([
7847
8024
  Property(false)
7848
8025
  ], TreeGrid.prototype, "enableAdaptiveUI", void 0);
7849
- __decorate([
8026
+ __decorate$b([
7850
8027
  Property(false)
7851
8028
  ], TreeGrid.prototype, "enableImmutableMode", void 0);
7852
- __decorate([
8029
+ __decorate$b([
7853
8030
  Property('auto')
7854
8031
  ], TreeGrid.prototype, "height", void 0);
7855
- __decorate([
8032
+ __decorate$b([
7856
8033
  Property('auto')
7857
8034
  ], TreeGrid.prototype, "width", void 0);
7858
- __decorate([
8035
+ __decorate$b([
7859
8036
  Complex({}, LoadingIndicator)
7860
8037
  ], TreeGrid.prototype, "loadingIndicator", void 0);
7861
- __decorate([
8038
+ __decorate$b([
7862
8039
  Property(true)
7863
8040
  ], TreeGrid.prototype, "enableVirtualMaskRow", void 0);
7864
- __decorate([
8041
+ __decorate$b([
7865
8042
  Property(false)
7866
8043
  ], TreeGrid.prototype, "enableVirtualization", void 0);
7867
- __decorate([
8044
+ __decorate$b([
7868
8045
  Property(false)
7869
8046
  ], TreeGrid.prototype, "enableColumnVirtualization", void 0);
7870
- __decorate([
8047
+ __decorate$b([
7871
8048
  Property(false)
7872
8049
  ], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
7873
- __decorate([
8050
+ __decorate$b([
7874
8051
  Property(false)
7875
8052
  ], TreeGrid.prototype, "enableInfiniteScrolling", void 0);
7876
- __decorate([
8053
+ __decorate$b([
7877
8054
  Complex({}, InfiniteScrollSettings)
7878
8055
  ], TreeGrid.prototype, "infiniteScrollSettings", void 0);
7879
- __decorate([
8056
+ __decorate$b([
7880
8057
  Property('All')
7881
8058
  ], TreeGrid.prototype, "columnQueryMode", void 0);
7882
- __decorate([
8059
+ __decorate$b([
7883
8060
  Event()
7884
8061
  ], TreeGrid.prototype, "created", void 0);
7885
- __decorate([
8062
+ __decorate$b([
7886
8063
  Event()
7887
8064
  ], TreeGrid.prototype, "load", void 0);
7888
- __decorate([
8065
+ __decorate$b([
7889
8066
  Event()
7890
8067
  ], TreeGrid.prototype, "expanding", void 0);
7891
- __decorate([
8068
+ __decorate$b([
7892
8069
  Event()
7893
8070
  ], TreeGrid.prototype, "expanded", void 0);
7894
- __decorate([
8071
+ __decorate$b([
7895
8072
  Event()
7896
8073
  ], TreeGrid.prototype, "collapsing", void 0);
7897
- __decorate([
8074
+ __decorate$b([
7898
8075
  Event()
7899
8076
  ], TreeGrid.prototype, "collapsed", void 0);
7900
- __decorate([
8077
+ __decorate$b([
7901
8078
  Event()
7902
8079
  ], TreeGrid.prototype, "cellSave", void 0);
7903
- __decorate([
8080
+ __decorate$b([
7904
8081
  Event()
7905
8082
  ], TreeGrid.prototype, "cellSaved", void 0);
7906
- __decorate([
8083
+ __decorate$b([
7907
8084
  Event()
7908
8085
  ], TreeGrid.prototype, "actionBegin", void 0);
7909
- __decorate([
8086
+ __decorate$b([
7910
8087
  Event()
7911
8088
  ], TreeGrid.prototype, "actionComplete", void 0);
7912
- __decorate([
8089
+ __decorate$b([
7913
8090
  Event()
7914
8091
  ], TreeGrid.prototype, "beginEdit", void 0);
7915
- __decorate([
8092
+ __decorate$b([
7916
8093
  Event()
7917
8094
  ], TreeGrid.prototype, "batchAdd", void 0);
7918
- __decorate([
8095
+ __decorate$b([
7919
8096
  Event()
7920
8097
  ], TreeGrid.prototype, "batchDelete", void 0);
7921
- __decorate([
8098
+ __decorate$b([
7922
8099
  Event()
7923
8100
  ], TreeGrid.prototype, "batchCancel", void 0);
7924
- __decorate([
8101
+ __decorate$b([
7925
8102
  Event()
7926
8103
  ], TreeGrid.prototype, "beforeBatchAdd", void 0);
7927
- __decorate([
8104
+ __decorate$b([
7928
8105
  Event()
7929
8106
  ], TreeGrid.prototype, "beforeBatchDelete", void 0);
7930
- __decorate([
8107
+ __decorate$b([
7931
8108
  Event()
7932
8109
  ], TreeGrid.prototype, "beforeBatchSave", void 0);
7933
- __decorate([
8110
+ __decorate$b([
7934
8111
  Event()
7935
8112
  ], TreeGrid.prototype, "cellEdit", void 0);
7936
- __decorate([
8113
+ __decorate$b([
7937
8114
  Event()
7938
8115
  ], TreeGrid.prototype, "actionFailure", void 0);
7939
- __decorate([
8116
+ __decorate$b([
7940
8117
  Event()
7941
8118
  ], TreeGrid.prototype, "dataBound", void 0);
7942
- __decorate([
8119
+ __decorate$b([
7943
8120
  Event()
7944
8121
  ], TreeGrid.prototype, "dataSourceChanged", void 0);
7945
- __decorate([
8122
+ __decorate$b([
7946
8123
  Event()
7947
8124
  ], TreeGrid.prototype, "dataStateChange", void 0);
7948
- __decorate([
8125
+ __decorate$b([
7949
8126
  Event()
7950
8127
  ], TreeGrid.prototype, "recordDoubleClick", void 0);
7951
- __decorate([
8128
+ __decorate$b([
7952
8129
  Event()
7953
8130
  ], TreeGrid.prototype, "rowDataBound", void 0);
7954
- __decorate([
8131
+ __decorate$b([
7955
8132
  Event()
7956
8133
  ], TreeGrid.prototype, "detailDataBound", void 0);
7957
- __decorate([
8134
+ __decorate$b([
7958
8135
  Event()
7959
8136
  ], TreeGrid.prototype, "queryCellInfo", void 0);
7960
- __decorate([
8137
+ __decorate$b([
7961
8138
  Property(true)
7962
8139
  ], TreeGrid.prototype, "allowSelection", void 0);
7963
- __decorate([
8140
+ __decorate$b([
7964
8141
  Event()
7965
8142
  ], TreeGrid.prototype, "rowSelecting", void 0);
7966
- __decorate([
8143
+ __decorate$b([
7967
8144
  Event()
7968
8145
  ], TreeGrid.prototype, "rowSelected", void 0);
7969
- __decorate([
8146
+ __decorate$b([
7970
8147
  Event()
7971
8148
  ], TreeGrid.prototype, "rowDeselecting", void 0);
7972
- __decorate([
8149
+ __decorate$b([
7973
8150
  Event()
7974
8151
  ], TreeGrid.prototype, "rowDeselected", void 0);
7975
- __decorate([
8152
+ __decorate$b([
7976
8153
  Event()
7977
8154
  ], TreeGrid.prototype, "headerCellInfo", void 0);
7978
- __decorate([
8155
+ __decorate$b([
7979
8156
  Event()
7980
8157
  ], TreeGrid.prototype, "cellSelecting", void 0);
7981
- __decorate([
8158
+ __decorate$b([
7982
8159
  Event()
7983
8160
  ], TreeGrid.prototype, "columnMenuOpen", void 0);
7984
- __decorate([
8161
+ __decorate$b([
7985
8162
  Event()
7986
8163
  ], TreeGrid.prototype, "columnMenuClick", void 0);
7987
- __decorate([
8164
+ __decorate$b([
7988
8165
  Event()
7989
8166
  ], TreeGrid.prototype, "cellSelected", void 0);
7990
- __decorate([
8167
+ __decorate$b([
7991
8168
  Event()
7992
8169
  ], TreeGrid.prototype, "cellDeselecting", void 0);
7993
- __decorate([
8170
+ __decorate$b([
7994
8171
  Event()
7995
8172
  ], TreeGrid.prototype, "cellDeselected", void 0);
7996
- __decorate([
8173
+ __decorate$b([
7997
8174
  Event()
7998
8175
  ], TreeGrid.prototype, "resizeStart", void 0);
7999
- __decorate([
8176
+ __decorate$b([
8000
8177
  Event()
8001
8178
  ], TreeGrid.prototype, "resizing", void 0);
8002
- __decorate([
8179
+ __decorate$b([
8003
8180
  Event()
8004
8181
  ], TreeGrid.prototype, "resizeStop", void 0);
8005
- __decorate([
8182
+ __decorate$b([
8006
8183
  Event()
8007
8184
  ], TreeGrid.prototype, "columnDragStart", void 0);
8008
- __decorate([
8185
+ __decorate$b([
8009
8186
  Event()
8010
8187
  ], TreeGrid.prototype, "columnDrag", void 0);
8011
- __decorate([
8188
+ __decorate$b([
8012
8189
  Event()
8013
8190
  ], TreeGrid.prototype, "columnDrop", void 0);
8014
- __decorate([
8191
+ __decorate$b([
8015
8192
  Event()
8016
8193
  ], TreeGrid.prototype, "checkboxChange", void 0);
8017
- __decorate([
8194
+ __decorate$b([
8018
8195
  Event()
8019
8196
  ], TreeGrid.prototype, "printComplete", void 0);
8020
- __decorate([
8197
+ __decorate$b([
8021
8198
  Event()
8022
8199
  ], TreeGrid.prototype, "beforePrint", void 0);
8023
- __decorate([
8200
+ __decorate$b([
8024
8201
  Event()
8025
8202
  ], TreeGrid.prototype, "toolbarClick", void 0);
8026
- __decorate([
8203
+ __decorate$b([
8027
8204
  Event()
8028
8205
  ], TreeGrid.prototype, "beforeDataBound", void 0);
8029
- __decorate([
8206
+ __decorate$b([
8030
8207
  Event()
8031
8208
  ], TreeGrid.prototype, "contextMenuOpen", void 0);
8032
- __decorate([
8209
+ __decorate$b([
8033
8210
  Event()
8034
8211
  ], TreeGrid.prototype, "contextMenuClick", void 0);
8035
- __decorate([
8212
+ __decorate$b([
8036
8213
  Event()
8037
8214
  ], TreeGrid.prototype, "beforeCopy", void 0);
8038
- __decorate([
8215
+ __decorate$b([
8039
8216
  Event()
8040
8217
  ], TreeGrid.prototype, "beforePaste", void 0);
8041
- __decorate([
8218
+ __decorate$b([
8042
8219
  Event()
8043
8220
  ], TreeGrid.prototype, "rowDrag", void 0);
8044
- __decorate([
8221
+ __decorate$b([
8045
8222
  Event()
8046
8223
  ], TreeGrid.prototype, "rowDragStart", void 0);
8047
- __decorate([
8224
+ __decorate$b([
8048
8225
  Event()
8049
8226
  ], TreeGrid.prototype, "rowDragStartHelper", void 0);
8050
- __decorate([
8227
+ __decorate$b([
8051
8228
  Event()
8052
8229
  ], TreeGrid.prototype, "rowDrop", void 0);
8053
- __decorate([
8230
+ __decorate$b([
8054
8231
  Property(-1)
8055
8232
  ], TreeGrid.prototype, "selectedRowIndex", void 0);
8056
- __decorate([
8233
+ __decorate$b([
8057
8234
  Complex({}, SelectionSettings)
8058
8235
  ], TreeGrid.prototype, "selectionSettings", void 0);
8059
- __decorate([
8236
+ __decorate$b([
8060
8237
  Property(false)
8061
8238
  ], TreeGrid.prototype, "allowExcelExport", void 0);
8062
- __decorate([
8239
+ __decorate$b([
8063
8240
  Property(false)
8064
8241
  ], TreeGrid.prototype, "allowPdfExport", void 0);
8065
- __decorate([
8242
+ __decorate$b([
8066
8243
  Event()
8067
8244
  ], TreeGrid.prototype, "pdfQueryCellInfo", void 0);
8068
- __decorate([
8245
+ __decorate$b([
8069
8246
  Event()
8070
8247
  ], TreeGrid.prototype, "pdfHeaderQueryCellInfo", void 0);
8071
- __decorate([
8248
+ __decorate$b([
8072
8249
  Event()
8073
8250
  ], TreeGrid.prototype, "excelQueryCellInfo", void 0);
8074
- __decorate([
8251
+ __decorate$b([
8075
8252
  Event()
8076
8253
  ], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
8077
- __decorate([
8254
+ __decorate$b([
8078
8255
  Event()
8079
8256
  ], TreeGrid.prototype, "beforeExcelExport", void 0);
8080
- __decorate([
8257
+ __decorate$b([
8081
8258
  Event()
8082
8259
  ], TreeGrid.prototype, "excelExportComplete", void 0);
8083
- __decorate([
8260
+ __decorate$b([
8084
8261
  Event()
8085
8262
  ], TreeGrid.prototype, "beforePdfExport", void 0);
8086
- __decorate([
8263
+ __decorate$b([
8087
8264
  Event()
8088
8265
  ], TreeGrid.prototype, "pdfExportComplete", void 0);
8089
- TreeGrid = TreeGrid_1 = __decorate([
8266
+ TreeGrid = TreeGrid_1 = __decorate$b([
8090
8267
  NotifyPropertyChanges
8091
8268
  ], TreeGrid);
8092
8269
  return TreeGrid;
@@ -8097,14 +8274,14 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
8097
8274
  *
8098
8275
  * @hidden
8099
8276
  */
8100
- var Reorder$1 = /** @__PURE__ @class */ (function () {
8277
+ var Reorder = /** @__PURE__ @class */ (function () {
8101
8278
  /**
8102
8279
  * Constructor for Reorder module
8103
8280
  *
8104
8281
  * @param {TreeGrid} parent - Tree Grid instance
8105
8282
  */
8106
- function Reorder$$1(parent) {
8107
- Grid.Inject(Reorder);
8283
+ function Reorder(parent) {
8284
+ Grid.Inject(Reorder$1);
8108
8285
  this.parent = parent;
8109
8286
  this.addEventListener();
8110
8287
  }
@@ -8114,17 +8291,17 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
8114
8291
  * @private
8115
8292
  * @returns {string} Returns Reorder module name
8116
8293
  */
8117
- Reorder$$1.prototype.getModuleName = function () {
8294
+ Reorder.prototype.getModuleName = function () {
8118
8295
  return 'reorder';
8119
8296
  };
8120
8297
  /**
8121
8298
  * @hidden
8122
8299
  * @returns {void}
8123
8300
  */
8124
- Reorder$$1.prototype.addEventListener = function () {
8301
+ Reorder.prototype.addEventListener = function () {
8125
8302
  this.parent.on('getColumnIndex', this.getTreeColumn, this);
8126
8303
  };
8127
- Reorder$$1.prototype.removeEventListener = function () {
8304
+ Reorder.prototype.removeEventListener = function () {
8128
8305
  if (this.parent.isDestroyed) {
8129
8306
  return;
8130
8307
  }
@@ -8136,10 +8313,10 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
8136
8313
  * @returns {void}
8137
8314
  * @hidden
8138
8315
  */
8139
- Reorder$$1.prototype.destroy = function () {
8316
+ Reorder.prototype.destroy = function () {
8140
8317
  this.removeEventListener();
8141
8318
  };
8142
- Reorder$$1.prototype.getTreeColumn = function () {
8319
+ Reorder.prototype.getTreeColumn = function () {
8143
8320
  var columnModel = 'columnModel';
8144
8321
  var treeColumn = this.parent["" + columnModel][this.parent.treeColumnIndex];
8145
8322
  var treeIndex;
@@ -8154,7 +8331,7 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
8154
8331
  }
8155
8332
  this.parent.setProperties({ treeColumnIndex: treeIndex }, true);
8156
8333
  };
8157
- return Reorder$$1;
8334
+ return Reorder;
8158
8335
  }());
8159
8336
 
8160
8337
  /**
@@ -8162,14 +8339,14 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
8162
8339
  *
8163
8340
  * @hidden
8164
8341
  */
8165
- var Resize$1 = /** @__PURE__ @class */ (function () {
8342
+ var Resize = /** @__PURE__ @class */ (function () {
8166
8343
  /**
8167
8344
  * Constructor for Resize module
8168
8345
  *
8169
8346
  * @param {TreeGrid} parent - Tree Grid instance
8170
8347
  */
8171
- function Resize$$1(parent) {
8172
- Grid.Inject(Resize);
8348
+ function Resize(parent) {
8349
+ Grid.Inject(Resize$1);
8173
8350
  this.parent = parent;
8174
8351
  }
8175
8352
  /**
@@ -8178,7 +8355,7 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
8178
8355
  * @param {string|string[]} fName - Defines the field name.
8179
8356
  * @returns {void}
8180
8357
  */
8181
- Resize$$1.prototype.autoFitColumns = function (fName) {
8358
+ Resize.prototype.autoFitColumns = function (fName) {
8182
8359
  this.parent.grid.autoFitColumns(fName);
8183
8360
  };
8184
8361
  /**
@@ -8187,7 +8364,7 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
8187
8364
  * @private
8188
8365
  * @returns {string} Returns Resize module name
8189
8366
  */
8190
- Resize$$1.prototype.getModuleName = function () {
8367
+ Resize.prototype.getModuleName = function () {
8191
8368
  return 'resize';
8192
8369
  };
8193
8370
  /**
@@ -8196,13 +8373,13 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
8196
8373
  * @function destroy
8197
8374
  * @returns {void}
8198
8375
  */
8199
- Resize$$1.prototype.destroy = function () {
8376
+ Resize.prototype.destroy = function () {
8200
8377
  if (this.parent.isDestroyed) {
8201
8378
  return;
8202
8379
  }
8203
8380
  this.parent.grid.resizeModule.destroy();
8204
8381
  };
8205
- return Resize$$1;
8382
+ return Resize;
8206
8383
  }());
8207
8384
 
8208
8385
  /**
@@ -8210,13 +8387,13 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
8210
8387
  *
8211
8388
  * @hidden
8212
8389
  */
8213
- var RowDD$1 = /** @__PURE__ @class */ (function () {
8390
+ var RowDD = /** @__PURE__ @class */ (function () {
8214
8391
  /**
8215
8392
  * Constructor for render module
8216
8393
  *
8217
8394
  * @param {TreeGrid} parent - Tree Grid instance
8218
8395
  */
8219
- function RowDD$$1(parent) {
8396
+ function RowDD(parent) {
8220
8397
  /** @hidden */
8221
8398
  this.canDrop = true;
8222
8399
  /** @hidden */
@@ -8231,11 +8408,11 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8231
8408
  this.hasDropItem = true;
8232
8409
  /** @hidden */
8233
8410
  this.isaddtoBottom = false;
8234
- Grid.Inject(RowDD);
8411
+ Grid.Inject(RowDD$1);
8235
8412
  this.parent = parent;
8236
8413
  this.addEventListener();
8237
8414
  }
8238
- RowDD$$1.prototype.getChildrecordsByParentID = function (id) {
8415
+ RowDD.prototype.getChildrecordsByParentID = function (id) {
8239
8416
  var treeGridDataSource;
8240
8417
  if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
8241
8418
  treeGridDataSource = this.parent.grid.dataSource.dataSource.json;
@@ -8252,7 +8429,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8252
8429
  * @hidden
8253
8430
  * @returns {void}
8254
8431
  */
8255
- RowDD$$1.prototype.addEventListener = function () {
8432
+ RowDD.prototype.addEventListener = function () {
8256
8433
  this.parent.on(rowdraging, this.Rowdraging, this);
8257
8434
  this.parent.on(rowDropped, this.rowDropped, this);
8258
8435
  this.parent.on(rowsAdd, this.rowsAdded, this);
@@ -8266,7 +8443,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8266
8443
  * @param {number} toIndex - Destination row index
8267
8444
  * @param {string} position - Drop position as above or below or child
8268
8445
  */
8269
- RowDD$$1.prototype.reorderRows = function (fromIndexes, toIndex, position) {
8446
+ RowDD.prototype.reorderRows = function (fromIndexes, toIndex, position) {
8270
8447
  var tObj = this.parent;
8271
8448
  var action = 'action';
8272
8449
  var dropPosition = 'dropPosition';
@@ -8347,7 +8524,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8347
8524
  return;
8348
8525
  }
8349
8526
  };
8350
- RowDD$$1.prototype.indentOutdentAction = function (record, request) {
8527
+ RowDD.prototype.indentOutdentAction = function (record, request) {
8351
8528
  var tObj = this.parent;
8352
8529
  var action = 'action';
8353
8530
  var droppedIndex = 'dropIndex';
@@ -8421,7 +8598,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8421
8598
  }
8422
8599
  }
8423
8600
  };
8424
- RowDD$$1.prototype.eventTrigger = function (action, dropIndex) {
8601
+ RowDD.prototype.eventTrigger = function (action, dropIndex) {
8425
8602
  var _this = this;
8426
8603
  var actionArgs = {
8427
8604
  action: action,
@@ -8450,7 +8627,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8450
8627
  }
8451
8628
  });
8452
8629
  };
8453
- RowDD$$1.prototype.orderToIndex = function (currentData) {
8630
+ RowDD.prototype.orderToIndex = function (currentData) {
8454
8631
  for (var i = 0; i < currentData.length; i++) {
8455
8632
  currentData[parseInt(i.toString(), 10)].index = i;
8456
8633
  if (!isNullOrUndefined(currentData[parseInt(i.toString(), 10)].parentItem)) {
@@ -8460,7 +8637,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8460
8637
  }
8461
8638
  return currentData;
8462
8639
  };
8463
- RowDD$$1.prototype.rowsAdded = function (e) {
8640
+ RowDD.prototype.rowsAdded = function (e) {
8464
8641
  var draggedRecord;
8465
8642
  var dragRecords = e.records;
8466
8643
  for (var i = e.records.length - 1; i > -1; i--) {
@@ -8503,15 +8680,17 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8503
8680
  !Object.prototype.hasOwnProperty.call(draggedRecord_1.taskData, tObj.childMapping)) {
8504
8681
  draggedRecord_1.taskData[tObj.childMapping] = [];
8505
8682
  }
8506
- if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
8507
- (draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
8508
- !isNullOrUndefined(tObj.parentIdMapping)) {
8509
- var childData = (draggedRecord_1[tObj.childMapping]);
8510
- for (var j = 0; j < childData.length; j++) {
8511
- if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
8512
- dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
8513
- childData[parseInt(j.toString(), 10)].taskData = extend({}, childData[parseInt(j.toString(), 10)]);
8514
- i += 1;
8683
+ if (!isNullOrUndefined(draggedRecord_1[tObj.childMapping])) {
8684
+ if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
8685
+ (draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
8686
+ !isNullOrUndefined(tObj.parentIdMapping)) {
8687
+ var childData = (draggedRecord_1[tObj.childMapping]);
8688
+ for (var j = 0; j < childData.length; j++) {
8689
+ if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
8690
+ dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
8691
+ childData[parseInt(j.toString(), 10)].taskData = extend$1({}, childData[parseInt(j.toString(), 10)]);
8692
+ i += 1;
8693
+ }
8515
8694
  }
8516
8695
  }
8517
8696
  }
@@ -8562,7 +8741,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8562
8741
  this.dropRows(args);
8563
8742
  }
8564
8743
  };
8565
- RowDD$$1.prototype.rowsRemoved = function (e) {
8744
+ RowDD.prototype.rowsRemoved = function (e) {
8566
8745
  for (var i = 0; i < e.records.length; i++) {
8567
8746
  this.draggedRecord = e.records[parseInt(i.toString(), 10)];
8568
8747
  if (this.draggedRecord.hasChildRecords || this.draggedRecord.parentItem &&
@@ -8573,7 +8752,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8573
8752
  }
8574
8753
  }
8575
8754
  };
8576
- RowDD$$1.prototype.refreshGridDataSource = function () {
8755
+ RowDD.prototype.refreshGridDataSource = function () {
8577
8756
  var draggedRecord = this.draggedRecord;
8578
8757
  var droppedRecord = this.droppedRecord;
8579
8758
  var proxy = this.parent;
@@ -8585,8 +8764,8 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8585
8764
  else {
8586
8765
  tempDataSource = proxy.dataSource;
8587
8766
  }
8588
- // eslint-disable-next-line max-len
8589
- if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem) && !isNullOrUndefined(droppedRecord.taskData)) {
8767
+ if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
8768
+ && !isNullOrUndefined(droppedRecord.taskData)) {
8590
8769
  var keys = Object.keys(tempDataSource);
8591
8770
  for (var i = 0; i < keys.length; i++) {
8592
8771
  if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
@@ -8632,14 +8811,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8632
8811
  }
8633
8812
  }
8634
8813
  };
8635
- RowDD$$1.prototype.removeFirstrowBorder = function (element) {
8814
+ RowDD.prototype.removeFirstrowBorder = function (element) {
8636
8815
  var canremove = this.dropPosition === 'bottomSegment';
8637
8816
  if (this.parent.element.getElementsByClassName('e-firstrow-border').length > 0 && element &&
8638
8817
  (element.rowIndex !== 0 || canremove)) {
8639
8818
  this.parent.element.getElementsByClassName('e-firstrow-border')[0].remove();
8640
8819
  }
8641
8820
  };
8642
- RowDD$$1.prototype.removeLastrowBorder = function (element) {
8821
+ RowDD.prototype.removeLastrowBorder = function (element) {
8643
8822
  var isEmptyRow = element && (element.classList.contains('e-emptyrow') || element.classList.contains('e-columnheader')
8644
8823
  || element.classList.contains('e-detailrow'));
8645
8824
  var islastRowIndex;
@@ -8658,7 +8837,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8658
8837
  this.parent.element.getElementsByClassName('e-lastrow-border')[0].remove();
8659
8838
  }
8660
8839
  };
8661
- RowDD$$1.prototype.updateIcon = function (row, index, args) {
8840
+ RowDD.prototype.updateIcon = function (row, index, args) {
8662
8841
  var rowEle = args.target ? closest(args.target, 'tr') : null;
8663
8842
  this.dropPosition = undefined;
8664
8843
  var rowPositionHeight = 0;
@@ -8702,6 +8881,10 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8702
8881
  var touchEvent = getObject('originalEvent.event', args);
8703
8882
  var posy = (mouseEvent.type === 'mousemove') ? mouseEvent.pageY : ((!isNullOrUndefined(touchEvent) &&
8704
8883
  !isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].pageY : null);
8884
+ if (this.parent.enableVirtualization) {
8885
+ posy = (mouseEvent.type === 'mousemove') ? mouseEvent.clientY : ((!isNullOrUndefined(touchEvent) &&
8886
+ !isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].clientY : null);
8887
+ }
8705
8888
  var isTopSegment = posy <= topRowSegment;
8706
8889
  var isMiddleRowSegment = (posy > topRowSegment && posy <= middleRowSegment);
8707
8890
  var isBottomRowSegment = (posy > middleRowSegment && posy <= bottomRowSegment);
@@ -8739,14 +8922,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8739
8922
  }
8740
8923
  return this.dropPosition;
8741
8924
  };
8742
- RowDD$$1.prototype.removeChildBorder = function () {
8925
+ RowDD.prototype.removeChildBorder = function () {
8743
8926
  var borderElem = [];
8744
8927
  borderElem = [].slice.call(this.parent.element.querySelectorAll('.e-childborder'));
8745
8928
  if (borderElem.length > 0) {
8746
8929
  this.addRemoveClasses(borderElem, false, 'e-childborder');
8747
8930
  }
8748
8931
  };
8749
- RowDD$$1.prototype.addFirstrowBorder = function (targetRow) {
8932
+ RowDD.prototype.addFirstrowBorder = function (targetRow) {
8750
8933
  var node = this.parent.element;
8751
8934
  var tObj = this.parent;
8752
8935
  if (targetRow && targetRow.rowIndex === 0 && !targetRow.classList.contains('e-emptyrow')) {
@@ -8768,7 +8951,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8768
8951
  }
8769
8952
  }
8770
8953
  };
8771
- RowDD$$1.prototype.addLastRowborder = function (trElement) {
8954
+ RowDD.prototype.addLastRowborder = function (trElement) {
8772
8955
  var isEmptyRow = trElement && (trElement.classList.contains('e-emptyrow') ||
8773
8956
  trElement.classList.contains('e-columnheader') || trElement.classList.contains('e-detailrow'));
8774
8957
  if (trElement && !isEmptyRow && this.parent.getRows()[this.parent.getCurrentViewRecords().length - 1].getAttribute('data-uid') ===
@@ -8783,11 +8966,11 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8783
8966
  }
8784
8967
  }
8785
8968
  };
8786
- RowDD$$1.prototype.getScrollWidth = function () {
8969
+ RowDD.prototype.getScrollWidth = function () {
8787
8970
  var scrollElem = this.parent.getContent().firstElementChild;
8788
8971
  return scrollElem.scrollWidth > scrollElem.offsetWidth ? Scroll.getScrollBarWidth() : 0;
8789
8972
  };
8790
- RowDD$$1.prototype.addErrorElem = function () {
8973
+ RowDD.prototype.addErrorElem = function () {
8791
8974
  var dragelem = document.getElementsByClassName('e-cloneproperties')[0];
8792
8975
  var errorelem = dragelem.querySelectorAll('.e-errorelem').length;
8793
8976
  var sanitize = 'sanitize';
@@ -8796,16 +8979,16 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8796
8979
  classList(ele, ['e-errorcontainer'], []);
8797
8980
  classList(ele, ['e-icons', 'e-errorelem'], []);
8798
8981
  var errorVal = dragelem.querySelector('.errorValue');
8799
- var content$$1 = dragelem.querySelector('.e-rowcell').innerHTML;
8982
+ var content = dragelem.querySelector('.e-rowcell').innerHTML;
8800
8983
  if (errorVal) {
8801
- content$$1 = this.parent["" + sanitize](errorVal.innerHTML);
8984
+ content = this.parent["" + sanitize](errorVal.innerHTML);
8802
8985
  errorVal.parentNode.removeChild(errorVal);
8803
8986
  }
8804
8987
  dragelem.querySelector('.e-rowcell').innerHTML = '';
8805
8988
  var spanContent = document.createElement('span');
8806
8989
  spanContent.className = 'errorValue';
8807
8990
  spanContent.style.paddingLeft = '16px';
8808
- spanContent.innerHTML = this.parent["" + sanitize](content$$1);
8991
+ spanContent.innerHTML = this.parent["" + sanitize](content);
8809
8992
  dragelem.querySelector('.e-rowcell').appendChild(ele);
8810
8993
  dragelem.querySelector('.e-rowcell').appendChild(spanContent);
8811
8994
  var dropItemSpan = document.querySelector('.e-dropitemscount');
@@ -8817,7 +9000,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8817
9000
  }
8818
9001
  }
8819
9002
  };
8820
- RowDD$$1.prototype.removeErrorElem = function () {
9003
+ RowDD.prototype.removeErrorElem = function () {
8821
9004
  var errorelem = document.querySelector('.e-errorelem');
8822
9005
  var errorValue = document.querySelector('.errorValue');
8823
9006
  var dropItemSpan = document.querySelector('.e-dropitemscount');
@@ -8837,7 +9020,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8837
9020
  }
8838
9021
  this.hasDropItem = true;
8839
9022
  };
8840
- RowDD$$1.prototype.topOrBottomBorder = function (target) {
9023
+ RowDD.prototype.topOrBottomBorder = function (target) {
8841
9024
  var rowElement = [];
8842
9025
  var element = closest(target, 'tr');
8843
9026
  rowElement = element ? [].slice.call(element.querySelectorAll('.e-rowcell,.e-rowdragdrop,.e-detailrowcollapse')) : [];
@@ -8853,7 +9036,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8853
9036
  }
8854
9037
  }
8855
9038
  };
8856
- RowDD$$1.prototype.removetopOrBottomBorder = function () {
9039
+ RowDD.prototype.removetopOrBottomBorder = function () {
8857
9040
  var border = [];
8858
9041
  border = [].slice.call(this.parent.element.querySelectorAll('.e-dropbottom, .e-droptop'));
8859
9042
  if (border.length) {
@@ -8861,7 +9044,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8861
9044
  this.addRemoveClasses(border, false, 'e-droptop');
8862
9045
  }
8863
9046
  };
8864
- RowDD$$1.prototype.addRemoveClasses = function (cells, add, className) {
9047
+ RowDD.prototype.addRemoveClasses = function (cells, add, className) {
8865
9048
  for (var i = 0, len = cells.length; i < len; i++) {
8866
9049
  if (add) {
8867
9050
  cells[parseInt(i.toString(), 10)].classList.add(className);
@@ -8871,7 +9054,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8871
9054
  }
8872
9055
  }
8873
9056
  };
8874
- RowDD$$1.prototype.getOffset = function (element) {
9057
+ RowDD.prototype.getOffset = function (element) {
8875
9058
  var box = element.getBoundingClientRect();
8876
9059
  var body = document.body;
8877
9060
  var docElem = document.documentElement;
@@ -8883,7 +9066,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8883
9066
  var left = box.left + scrollLeft - clientLeft;
8884
9067
  return { top: Math.round(top), left: Math.round(left) };
8885
9068
  };
8886
- RowDD$$1.prototype.Rowdraging = function (args) {
9069
+ RowDD.prototype.Rowdraging = function (args) {
8887
9070
  var tObj = this.parent;
8888
9071
  var cloneElement = this.parent.element.querySelector('.e-cloneproperties');
8889
9072
  cloneElement.style.cursor = '';
@@ -8926,7 +9109,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8926
9109
  }
8927
9110
  }
8928
9111
  };
8929
- RowDD$$1.prototype.rowDropped = function (args) {
9112
+ RowDD.prototype.rowDropped = function (args) {
8930
9113
  var tObj = this.parent;
8931
9114
  var parentItem = 'parentItem';
8932
9115
  if (!tObj.rowDropSettings.targetID) {
@@ -9012,7 +9195,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9012
9195
  }
9013
9196
  }
9014
9197
  };
9015
- RowDD$$1.prototype.dragDropGrid = function (args) {
9198
+ RowDD.prototype.dragDropGrid = function (args) {
9016
9199
  var tObj = this.parent;
9017
9200
  var targetRow = closest(args.target, 'tr');
9018
9201
  var targetIndex = isNaN(this.getTargetIdx(targetRow)) ? 0 : this.getTargetIdx(targetRow);
@@ -9072,10 +9255,10 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9072
9255
  srcControl.grid.refresh();
9073
9256
  }
9074
9257
  };
9075
- RowDD$$1.prototype.getTargetIdx = function (targetRow) {
9258
+ RowDD.prototype.getTargetIdx = function (targetRow) {
9076
9259
  return targetRow ? parseInt(targetRow.getAttribute('data-rowindex'), 10) : 0;
9077
9260
  };
9078
- RowDD$$1.prototype.getParentData = function (record, data) {
9261
+ RowDD.prototype.getParentData = function (record, data) {
9079
9262
  var parentItem = record.parentItem;
9080
9263
  var selectedItemIndex = -1;
9081
9264
  if (this.parent.enableVirtualization && this.parent.selectedRowIndex !== -1) {
@@ -9102,7 +9285,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9102
9285
  }
9103
9286
  }
9104
9287
  };
9105
- RowDD$$1.prototype.dropRows = function (args, isByMethod) {
9288
+ RowDD.prototype.dropRows = function (args, isByMethod) {
9106
9289
  if (this.dropPosition !== 'Invalid' && !isRemoteData(this.parent)) {
9107
9290
  var tObj = this.parent;
9108
9291
  var draggedRecord_2;
@@ -9239,7 +9422,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9239
9422
  }
9240
9423
  }
9241
9424
  };
9242
- RowDD$$1.prototype.dropMiddle = function (recordIndex) {
9425
+ RowDD.prototype.dropMiddle = function (recordIndex) {
9243
9426
  var tObj = this.parent;
9244
9427
  var childRecords = findChildrenRecords(this.droppedRecord);
9245
9428
  var childRecordsLength = (isNullOrUndefined(childRecords) ||
@@ -9259,7 +9442,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9259
9442
  }
9260
9443
  }
9261
9444
  };
9262
- RowDD$$1.prototype.dropAtTop = function (recordIndex1) {
9445
+ RowDD.prototype.dropAtTop = function (recordIndex1) {
9263
9446
  var tObj = this.parent;
9264
9447
  if (this.dropPosition === 'topSegment') {
9265
9448
  if (tObj.parentIdMapping) {
@@ -9282,7 +9465,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9282
9465
  }
9283
9466
  }
9284
9467
  };
9285
- RowDD$$1.prototype.recordLevel = function () {
9468
+ RowDD.prototype.recordLevel = function () {
9286
9469
  var tObj = this.parent;
9287
9470
  var draggedRecord = this.draggedRecord;
9288
9471
  var droppedRecord = this.droppedRecord;
@@ -9298,7 +9481,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9298
9481
  }
9299
9482
  }
9300
9483
  if (this.dropPosition === 'middleSegment') {
9301
- var parentItem = extend({}, droppedRecord);
9484
+ var parentItem = extend$1({}, droppedRecord);
9302
9485
  delete parentItem.childRecords;
9303
9486
  draggedRecord.parentItem = parentItem;
9304
9487
  draggedRecord.parentUniqueID = droppedRecord.uniqueID;
@@ -9322,7 +9505,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9322
9505
  droppedRecord.expanded = true;
9323
9506
  }
9324
9507
  };
9325
- RowDD$$1.prototype.deleteDragRow = function () {
9508
+ RowDD.prototype.deleteDragRow = function () {
9326
9509
  if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
9327
9510
  this.treeGridData = this.parent.grid.dataSource.dataSource.json;
9328
9511
  this.treeData = this.parent.dataSource.dataSource.json;
@@ -9337,7 +9520,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9337
9520
  }
9338
9521
  this.removeRecords(deletedRow);
9339
9522
  };
9340
- RowDD$$1.prototype.updateChildRecord = function (record, count) {
9523
+ RowDD.prototype.updateChildRecord = function (record, count) {
9341
9524
  var currentRecord;
9342
9525
  var tObj = this.parent;
9343
9526
  var length = 0;
@@ -9364,7 +9547,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9364
9547
  }
9365
9548
  return count;
9366
9549
  };
9367
- RowDD$$1.prototype.updateChildRecordLevel = function (record, level) {
9550
+ RowDD.prototype.updateChildRecordLevel = function (record, level) {
9368
9551
  var length = 0;
9369
9552
  var currentRecord;
9370
9553
  level++;
@@ -9394,7 +9577,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9394
9577
  }
9395
9578
  return level;
9396
9579
  };
9397
- RowDD$$1.prototype.removeRecords = function (record) {
9580
+ RowDD.prototype.removeRecords = function (record) {
9398
9581
  var tObj = this.parent;
9399
9582
  var dataSource;
9400
9583
  if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
@@ -9476,14 +9659,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9476
9659
  }
9477
9660
  }
9478
9661
  };
9479
- RowDD$$1.prototype.updateModifiedRecords = function (record) {
9662
+ RowDD.prototype.updateModifiedRecords = function (record) {
9480
9663
  var parentData = getParentData(this.parent, record.parentUniqueID);
9481
9664
  if (!isNullOrUndefined(parentData)) {
9482
9665
  this.parent[this.modifiedRecords].push(parentData);
9483
9666
  this.updateModifiedRecords(parentData);
9484
9667
  }
9485
9668
  };
9486
- RowDD$$1.prototype.removeChildItem = function (record) {
9669
+ RowDD.prototype.removeChildItem = function (record) {
9487
9670
  var currentRecord;
9488
9671
  var idx;
9489
9672
  var idz;
@@ -9529,7 +9712,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9529
9712
  }
9530
9713
  }
9531
9714
  };
9532
- RowDD$$1.prototype.getChildCount = function (record, count) {
9715
+ RowDD.prototype.getChildCount = function (record, count) {
9533
9716
  var currentRecord;
9534
9717
  if (!record.hasChildRecords) {
9535
9718
  return 0;
@@ -9543,7 +9726,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9543
9726
  }
9544
9727
  return count;
9545
9728
  };
9546
- RowDD$$1.prototype.ensuredropPosition = function (draggedRecords, currentRecord) {
9729
+ RowDD.prototype.ensuredropPosition = function (draggedRecords, currentRecord) {
9547
9730
  var _this = this;
9548
9731
  draggedRecords.filter(function (e) {
9549
9732
  if (e.hasChildRecords && !isNullOrUndefined(e.childRecords)) {
@@ -9560,14 +9743,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9560
9743
  }
9561
9744
  });
9562
9745
  };
9563
- RowDD$$1.prototype.destroy = function () {
9746
+ RowDD.prototype.destroy = function () {
9564
9747
  this.removeEventListener();
9565
9748
  };
9566
9749
  /**
9567
9750
  * @hidden
9568
9751
  * @returns {void}
9569
9752
  */
9570
- RowDD$$1.prototype.removeEventListener = function () {
9753
+ RowDD.prototype.removeEventListener = function () {
9571
9754
  if (this.parent.isDestroyed) {
9572
9755
  return;
9573
9756
  }
@@ -9585,17 +9768,13 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9585
9768
  * @private
9586
9769
  * @returns {string} Returns RowDragAndDrop module name
9587
9770
  */
9588
- RowDD$$1.prototype.getModuleName = function () {
9771
+ RowDD.prototype.getModuleName = function () {
9589
9772
  return 'rowDragAndDrop';
9590
9773
  };
9591
- return RowDD$$1;
9774
+ return RowDD;
9592
9775
  }());
9593
9776
 
9594
- /**
9595
- * Base export
9596
- */
9597
-
9598
- var __extends$14 = (undefined && undefined.__extends) || (function () {
9777
+ var __extends$e = (undefined && undefined.__extends) || (function () {
9599
9778
  var extendStatics = function (d, b) {
9600
9779
  extendStatics = Object.setPrototypeOf ||
9601
9780
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9608,7 +9787,7 @@ var __extends$14 = (undefined && undefined.__extends) || (function () {
9608
9787
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9609
9788
  };
9610
9789
  })();
9611
- var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9790
+ var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9612
9791
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9613
9792
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9614
9793
  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;
@@ -9617,22 +9796,18 @@ var __decorate$12 = (undefined && undefined.__decorate) || function (decorators,
9617
9796
  /**
9618
9797
  * Configures the row drop settings of the TreeGrid.
9619
9798
  */
9620
- var RowDropSettings$1 = /** @__PURE__ @class */ (function (_super) {
9621
- __extends$14(RowDropSettings$$1, _super);
9622
- function RowDropSettings$$1() {
9799
+ var RowDropSettings = /** @__PURE__ @class */ (function (_super) {
9800
+ __extends$e(RowDropSettings, _super);
9801
+ function RowDropSettings() {
9623
9802
  return _super !== null && _super.apply(this, arguments) || this;
9624
9803
  }
9625
- __decorate$12([
9804
+ __decorate$c([
9626
9805
  Property()
9627
- ], RowDropSettings$$1.prototype, "targetID", void 0);
9628
- return RowDropSettings$$1;
9806
+ ], RowDropSettings.prototype, "targetID", void 0);
9807
+ return RowDropSettings;
9629
9808
  }(ChildProperty));
9630
9809
 
9631
- /**
9632
- * Models export
9633
- */
9634
-
9635
- var __extends$15 = (undefined && undefined.__extends) || (function () {
9810
+ var __extends$f = (undefined && undefined.__extends) || (function () {
9636
9811
  var extendStatics = function (d, b) {
9637
9812
  extendStatics = Object.setPrototypeOf ||
9638
9813
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9651,7 +9826,7 @@ var __extends$15 = (undefined && undefined.__extends) || (function () {
9651
9826
  * @hidden
9652
9827
  */
9653
9828
  var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9654
- __extends$15(TreeVirtualRowModelGenerator, _super);
9829
+ __extends$f(TreeVirtualRowModelGenerator, _super);
9655
9830
  function TreeVirtualRowModelGenerator(parent) {
9656
9831
  var _this = _super.call(this, parent) || this;
9657
9832
  _this.addEventListener();
@@ -9699,8 +9874,8 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9699
9874
  var rows = _super.prototype.generateRows.call(this, data, notifyArgs);
9700
9875
  if (!isNullOrUndefined((this.visualData))) {
9701
9876
  for (var r = 0; r < rows.length; r++) {
9702
- rows[parseInt(r.toString(), 10)].index =
9703
- (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
9877
+ rows[parseInt(r.toString(), 10)].index
9878
+ = (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
9704
9879
  }
9705
9880
  }
9706
9881
  return rows;
@@ -9740,23 +9915,19 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9740
9915
  return TreeVirtualRowModelGenerator;
9741
9916
  }(VirtualRowModelGenerator));
9742
9917
 
9743
- /**
9744
- * Renderer export
9745
- */
9746
-
9747
9918
  /**
9748
9919
  * TreeGrid Filter module will handle filtering action
9749
9920
  *
9750
9921
  * @hidden
9751
9922
  */
9752
- var Filter$1 = /** @__PURE__ @class */ (function () {
9923
+ var Filter = /** @__PURE__ @class */ (function () {
9753
9924
  /**
9754
9925
  * Constructor for Filter module
9755
9926
  *
9756
9927
  * @param {TreeGrid} parent - Tree Grid instance
9757
9928
  */
9758
- function Filter$$1(parent) {
9759
- Grid.Inject(Filter);
9929
+ function Filter(parent) {
9930
+ Grid.Inject(Filter$1);
9760
9931
  this.parent = parent;
9761
9932
  this.isHierarchyFilter = false;
9762
9933
  this.filteredResult = [];
@@ -9770,7 +9941,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9770
9941
  * @private
9771
9942
  * @returns {string} Returns Filter module name
9772
9943
  */
9773
- Filter$$1.prototype.getModuleName = function () {
9944
+ Filter.prototype.getModuleName = function () {
9774
9945
  return 'filter';
9775
9946
  };
9776
9947
  /**
@@ -9779,14 +9950,14 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9779
9950
  * @returns {void}
9780
9951
  * @hidden
9781
9952
  */
9782
- Filter$$1.prototype.destroy = function () {
9953
+ Filter.prototype.destroy = function () {
9783
9954
  this.removeEventListener();
9784
9955
  };
9785
9956
  /**
9786
9957
  * @hidden
9787
9958
  * @returns {void}
9788
9959
  */
9789
- Filter$$1.prototype.addEventListener = function () {
9960
+ Filter.prototype.addEventListener = function () {
9790
9961
  this.parent.on('updateFilterRecs', this.updatedFilteredRecord, this);
9791
9962
  this.parent.on('clearFilters', this.clearFilterLevel, this);
9792
9963
  };
@@ -9794,7 +9965,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9794
9965
  * @hidden
9795
9966
  * @returns {void}
9796
9967
  */
9797
- Filter$$1.prototype.removeEventListener = function () {
9968
+ Filter.prototype.removeEventListener = function () {
9798
9969
  if (this.parent.isDestroyed) {
9799
9970
  return;
9800
9971
  }
@@ -9809,7 +9980,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9809
9980
  * @hidden
9810
9981
  * @returns {void}
9811
9982
  */
9812
- Filter$$1.prototype.updatedFilteredRecord = function (dataDetails) {
9983
+ Filter.prototype.updatedFilteredRecord = function (dataDetails) {
9813
9984
  setValue('uniqueIDFilterCollection', {}, this.parent);
9814
9985
  this.flatFilteredData = dataDetails.data;
9815
9986
  this.filteredParentRecs = [];
@@ -9844,7 +10015,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9844
10015
  }
9845
10016
  this.parent.notify('updateAction', { result: this.filteredResult });
9846
10017
  };
9847
- Filter$$1.prototype.updateParentFilteredRecord = function (record) {
10018
+ Filter.prototype.updateParentFilteredRecord = function (record) {
9848
10019
  var parRecord = getParentData(this.parent, record.parentItem.uniqueID, true);
9849
10020
  var uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);
9850
10021
  if (parRecord && Object.prototype.hasOwnProperty.call(uniqueIDValue, parRecord.uniqueID)) {
@@ -9854,7 +10025,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9854
10025
  this.updateParentFilteredRecord(parRecord);
9855
10026
  }
9856
10027
  };
9857
- Filter$$1.prototype.addParentRecord = function (record) {
10028
+ Filter.prototype.addParentRecord = function (record) {
9858
10029
  var parent = getParentData(this.parent, record.parentUniqueID);
9859
10030
  //let parent: Object = this.parent.flatData.filter((e: ITreeData) => {return e.uniqueID === record.parentUniqueID; })[0];
9860
10031
  var hierarchyMode = this.parent.grid.searchSettings.key === '' ? this.parent.filterSettings.hierarchyMode
@@ -9907,7 +10078,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9907
10078
  }
9908
10079
  }
9909
10080
  };
9910
- Filter$$1.prototype.checkChildExsist = function (records) {
10081
+ Filter.prototype.checkChildExsist = function (records) {
9911
10082
  var childRec = getObject('childRecords', records);
9912
10083
  var isExist = false;
9913
10084
  for (var count = 0; count < childRec.length; count++) {
@@ -9939,7 +10110,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9939
10110
  }
9940
10111
  return isExist;
9941
10112
  };
9942
- Filter$$1.prototype.updateFilterLevel = function () {
10113
+ Filter.prototype.updateFilterLevel = function () {
9943
10114
  var record = this.filteredResult;
9944
10115
  var len = this.filteredResult.length;
9945
10116
  for (var c = 0; c < len; c++) {
@@ -9955,7 +10126,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9955
10126
  }
9956
10127
  }
9957
10128
  };
9958
- Filter$$1.prototype.clearFilterLevel = function (data) {
10129
+ Filter.prototype.clearFilterLevel = function (data) {
9959
10130
  var count = 0;
9960
10131
  var flatData = data.flatData;
9961
10132
  var len = flatData.length;
@@ -9971,7 +10142,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9971
10142
  this.filteredResult = [];
9972
10143
  this.parent.notify('updateResults', { result: flatData, count: flatData.length });
9973
10144
  };
9974
- return Filter$$1;
10145
+ return Filter;
9975
10146
  }());
9976
10147
 
9977
10148
  /**
@@ -9979,15 +10150,15 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9979
10150
  *
9980
10151
  * @hidden
9981
10152
  */
9982
- var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10153
+ var ExcelExport = /** @__PURE__ @class */ (function () {
9983
10154
  /**
9984
10155
  * Constructor for Excel Export module
9985
10156
  *
9986
10157
  * @param {TreeGrid} parent - Tree Grid instance
9987
10158
  */
9988
- function ExcelExport$$1(parent) {
10159
+ function ExcelExport(parent) {
9989
10160
  this.isCollapsedStatePersist = false;
9990
- Grid.Inject(ExcelExport);
10161
+ Grid.Inject(ExcelExport$1);
9991
10162
  this.parent = parent;
9992
10163
  this.dataResults = {};
9993
10164
  this.addEventListener();
@@ -9998,14 +10169,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
9998
10169
  * @private
9999
10170
  * @returns {string} Returns ExcelExport module name
10000
10171
  */
10001
- ExcelExport$$1.prototype.getModuleName = function () {
10172
+ ExcelExport.prototype.getModuleName = function () {
10002
10173
  return 'ExcelExport';
10003
10174
  };
10004
10175
  /**
10005
10176
  * @hidden
10006
10177
  * @returns {void}
10007
10178
  */
10008
- ExcelExport$$1.prototype.addEventListener = function () {
10179
+ ExcelExport.prototype.addEventListener = function () {
10009
10180
  this.parent.on('updateResults', this.updateExcelResultModel, this);
10010
10181
  this.parent.on('excelCellInfo', this.excelQueryCellInfo, this);
10011
10182
  this.parent.grid.on('export-RowDataBound', this.exportRowDataBound, this);
@@ -10017,14 +10188,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10017
10188
  * @returns {void}
10018
10189
  * @hidden
10019
10190
  */
10020
- ExcelExport$$1.prototype.destroy = function () {
10191
+ ExcelExport.prototype.destroy = function () {
10021
10192
  this.removeEventListener();
10022
10193
  };
10023
10194
  /**
10024
10195
  * @hidden
10025
10196
  * @returns {void}
10026
10197
  */
10027
- ExcelExport$$1.prototype.removeEventListener = function () {
10198
+ ExcelExport.prototype.removeEventListener = function () {
10028
10199
  if (this.parent.isDestroyed) {
10029
10200
  return;
10030
10201
  }
@@ -10033,10 +10204,10 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10033
10204
  this.parent.grid.off('export-RowDataBound', this.exportRowDataBound);
10034
10205
  this.parent.grid.off('finalPageSetup', this.finalPageSetup);
10035
10206
  };
10036
- ExcelExport$$1.prototype.updateExcelResultModel = function (returnResult) {
10207
+ ExcelExport.prototype.updateExcelResultModel = function (returnResult) {
10037
10208
  this.dataResults = returnResult;
10038
10209
  };
10039
- ExcelExport$$1.prototype.Map = function (excelExportProperties,
10210
+ ExcelExport.prototype.Map = function (excelExportProperties,
10040
10211
  /* eslint-disable-next-line */
10041
10212
  isMultipleExport, workbook, isBlob, isCsv) {
10042
10213
  var _this = this;
@@ -10047,9 +10218,10 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10047
10218
  if (!isNullOrUndefined(excelExportProperties)) {
10048
10219
  this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
10049
10220
  }
10050
- if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
10051
- && !isNullOrUndefined(excelExportProperties.dataSource instanceof DataManager)) {
10052
- return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
10221
+ if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)) {
10222
+ if (!excelExportProperties.dataSource['dataSource']) {
10223
+ return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
10224
+ }
10053
10225
  }
10054
10226
  return new Promise(function (resolve) {
10055
10227
  var dm = _this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
@@ -10060,7 +10232,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10060
10232
  query.queries = _this.parent.grid.getDataModule().generateQuery().queries;
10061
10233
  setValue('query', query, property);
10062
10234
  }
10063
- _this.parent.trigger(beforeExcelExport, extend(property, excelExportProperties));
10235
+ _this.parent.trigger(beforeExcelExport, extend$1(property, excelExportProperties));
10064
10236
  if (getObject('cancel', property)) {
10065
10237
  return null;
10066
10238
  }
@@ -10082,7 +10254,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10082
10254
  });
10083
10255
  });
10084
10256
  };
10085
- ExcelExport$$1.prototype.generateQuery = function (query, property) {
10257
+ ExcelExport.prototype.generateQuery = function (query, property) {
10086
10258
  if (!isNullOrUndefined(property) && property.exportType === 'CurrentPage'
10087
10259
  && this.parent.allowPaging) {
10088
10260
  property.exportType = 'AllPages';
@@ -10092,7 +10264,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10092
10264
  }
10093
10265
  return query;
10094
10266
  };
10095
- ExcelExport$$1.prototype.manipulateExportProperties = function (property, dtSrc, queryResult) {
10267
+ ExcelExport.prototype.manipulateExportProperties = function (property, dtSrc, queryResult) {
10096
10268
  //count not required for this query
10097
10269
  var args = Object();
10098
10270
  setValue('query', this.parent.grid.getDataModule().generateQuery(true), args);
@@ -10133,7 +10305,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10133
10305
  * @hidden
10134
10306
  * @returns {void}
10135
10307
  */
10136
- ExcelExport$$1.prototype.excelQueryCellInfo = function (args) {
10308
+ ExcelExport.prototype.excelQueryCellInfo = function (args) {
10137
10309
  if (this.parent.grid.getColumnIndexByUid(args.column.uid) === this.parent.treeColumnIndex) {
10138
10310
  var style = {};
10139
10311
  var data = args.data;
@@ -10145,7 +10317,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10145
10317
  this.parent.notify('updateResults', args);
10146
10318
  this.parent.trigger('excelQueryCellInfo', args);
10147
10319
  };
10148
- ExcelExport$$1.prototype.exportRowDataBound = function (excelRow) {
10320
+ ExcelExport.prototype.exportRowDataBound = function (excelRow) {
10149
10321
  if (excelRow.type === 'excel') {
10150
10322
  var excelrowobj = excelRow.rowObj.data;
10151
10323
  var filtercolumnlength = this.parent.grid.filterSettings.columns.length;
@@ -10168,17 +10340,17 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10168
10340
  }
10169
10341
  };
10170
10342
  /* eslint-disable-next-line */
10171
- ExcelExport$$1.prototype.finalPageSetup = function (workbook) {
10343
+ ExcelExport.prototype.finalPageSetup = function (workbook) {
10172
10344
  for (var i = 0; i < workbook.worksheets.length; i++) {
10173
10345
  if (workbook.worksheets[parseInt(i.toString(), 10)].rows) {
10174
10346
  workbook.worksheets[parseInt(i.toString(), 10)].pageSetup = { isSummaryRowBelow: false };
10175
10347
  }
10176
10348
  }
10177
10349
  };
10178
- ExcelExport$$1.prototype.isLocal = function () {
10350
+ ExcelExport.prototype.isLocal = function () {
10179
10351
  return !isRemoteData(this.parent) && isOffline(this.parent);
10180
10352
  };
10181
- return ExcelExport$$1;
10353
+ return ExcelExport;
10182
10354
  }());
10183
10355
 
10184
10356
  /**
@@ -10186,14 +10358,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10186
10358
  *
10187
10359
  * @hidden
10188
10360
  */
10189
- var PdfExport$1 = /** @__PURE__ @class */ (function () {
10361
+ var PdfExport = /** @__PURE__ @class */ (function () {
10190
10362
  /**
10191
10363
  * Constructor for PDF export module
10192
10364
  *
10193
10365
  * @param {TreeGrid} parent - Tree Grid instance
10194
10366
  */
10195
- function PdfExport$$1(parent) {
10196
- Grid.Inject(PdfExport);
10367
+ function PdfExport(parent) {
10368
+ Grid.Inject(PdfExport$1);
10197
10369
  this.parent = parent;
10198
10370
  this.dataResults = {};
10199
10371
  this.addEventListener();
@@ -10204,14 +10376,14 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10204
10376
  * @private
10205
10377
  * @returns {string} PdfExport module name
10206
10378
  */
10207
- PdfExport$$1.prototype.getModuleName = function () {
10379
+ PdfExport.prototype.getModuleName = function () {
10208
10380
  return 'PdfExport';
10209
10381
  };
10210
10382
  /**
10211
10383
  * @hidden
10212
10384
  * @returns {void}
10213
10385
  */
10214
- PdfExport$$1.prototype.addEventListener = function () {
10386
+ PdfExport.prototype.addEventListener = function () {
10215
10387
  this.parent.on('pdfCellInfo', this.pdfQueryCellInfo, this);
10216
10388
  this.parent.on('updateResults', this.updatePdfResultModel, this);
10217
10389
  };
@@ -10219,7 +10391,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10219
10391
  * @hidden
10220
10392
  * @returns {void}
10221
10393
  */
10222
- PdfExport$$1.prototype.removeEventListener = function () {
10394
+ PdfExport.prototype.removeEventListener = function () {
10223
10395
  if (this.parent.isDestroyed) {
10224
10396
  return;
10225
10397
  }
@@ -10232,13 +10404,13 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10232
10404
  * @returns {void}
10233
10405
  * @hidden
10234
10406
  */
10235
- PdfExport$$1.prototype.destroy = function () {
10407
+ PdfExport.prototype.destroy = function () {
10236
10408
  this.removeEventListener();
10237
10409
  };
10238
- PdfExport$$1.prototype.updatePdfResultModel = function (returnResult) {
10410
+ PdfExport.prototype.updatePdfResultModel = function (returnResult) {
10239
10411
  this.dataResults = returnResult;
10240
10412
  };
10241
- PdfExport$$1.prototype.Map = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
10413
+ PdfExport.prototype.Map = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
10242
10414
  var _this = this;
10243
10415
  var dtSrc = this.parent.dataSource;
10244
10416
  var prop = Object();
@@ -10252,7 +10424,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10252
10424
  query = _this.generateQuery(query);
10253
10425
  setValue('query', query, prop);
10254
10426
  }
10255
- _this.parent.trigger(beforePdfExport, extend(prop, pdfExportProperties));
10427
+ _this.parent.trigger(beforePdfExport, extend$1(prop, pdfExportProperties));
10256
10428
  if (getObject('cancel', prop)) {
10257
10429
  return null;
10258
10430
  }
@@ -10274,7 +10446,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10274
10446
  });
10275
10447
  });
10276
10448
  };
10277
- PdfExport$$1.prototype.generateQuery = function (query, prop) {
10449
+ PdfExport.prototype.generateQuery = function (query, prop) {
10278
10450
  if (!isNullOrUndefined(prop) && prop.exportType === 'CurrentPage'
10279
10451
  && this.parent.allowPaging) {
10280
10452
  prop.exportType = 'AllPages';
@@ -10284,7 +10456,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10284
10456
  }
10285
10457
  return query;
10286
10458
  };
10287
- PdfExport$$1.prototype.manipulatePdfProperties = function (prop, dtSrc, queryResult) {
10459
+ PdfExport.prototype.manipulatePdfProperties = function (prop, dtSrc, queryResult) {
10288
10460
  var args = {};
10289
10461
  //count not required for this query
10290
10462
  var isLocal = !isRemoteData(this.parent) && isOffline(this.parent);
@@ -10328,7 +10500,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10328
10500
  * @hidden
10329
10501
  * @returns {void}
10330
10502
  */
10331
- PdfExport$$1.prototype.pdfQueryCellInfo = function (args) {
10503
+ PdfExport.prototype.pdfQueryCellInfo = function (args) {
10332
10504
  if (this.parent.grid.getColumnIndexByUid(args.column.uid) === this.parent.treeColumnIndex) {
10333
10505
  var style = {};
10334
10506
  var data = getObject('data', args);
@@ -10340,7 +10512,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10340
10512
  this.parent.notify('updateResults', args);
10341
10513
  this.parent.trigger('pdfQueryCellInfo', args);
10342
10514
  };
10343
- return PdfExport$$1;
10515
+ return PdfExport;
10344
10516
  }());
10345
10517
 
10346
10518
  /**
@@ -10348,9 +10520,9 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10348
10520
  *
10349
10521
  * @hidden
10350
10522
  */
10351
- var Page$1 = /** @__PURE__ @class */ (function () {
10352
- function Page$$1(parent) {
10353
- Grid.Inject(Page);
10523
+ var Page = /** @__PURE__ @class */ (function () {
10524
+ function Page(parent) {
10525
+ Grid.Inject(Page$1);
10354
10526
  this.parent = parent;
10355
10527
  this.addEventListener();
10356
10528
  }
@@ -10358,7 +10530,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10358
10530
  * @hidden
10359
10531
  * @returns {void}
10360
10532
  */
10361
- Page$$1.prototype.addEventListener = function () {
10533
+ Page.prototype.addEventListener = function () {
10362
10534
  this.parent.on(localPagedExpandCollapse, this.collapseExpandPagedchilds, this);
10363
10535
  this.parent.on(pagingActions, this.pageAction, this);
10364
10536
  };
@@ -10366,7 +10538,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10366
10538
  * @hidden
10367
10539
  * @returns {void}
10368
10540
  */
10369
- Page$$1.prototype.removeEventListener = function () {
10541
+ Page.prototype.removeEventListener = function () {
10370
10542
  if (this.parent.isDestroyed) {
10371
10543
  return;
10372
10544
  }
@@ -10379,7 +10551,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10379
10551
  * @private
10380
10552
  * @returns {string} Returns Pager module name
10381
10553
  */
10382
- Page$$1.prototype.getModuleName = function () {
10554
+ Page.prototype.getModuleName = function () {
10383
10555
  return 'pager';
10384
10556
  };
10385
10557
  /**
@@ -10387,7 +10559,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10387
10559
  *
10388
10560
  * @returns {void}
10389
10561
  */
10390
- Page$$1.prototype.refresh = function () {
10562
+ Page.prototype.refresh = function () {
10391
10563
  this.parent.grid.pagerModule.refresh();
10392
10564
  };
10393
10565
  /**
@@ -10396,7 +10568,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10396
10568
  * @returns {void}
10397
10569
  * @hidden
10398
10570
  */
10399
- Page$$1.prototype.destroy = function () {
10571
+ Page.prototype.destroy = function () {
10400
10572
  this.removeEventListener();
10401
10573
  };
10402
10574
  /**
@@ -10405,7 +10577,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10405
10577
  * @param {number} pageNo - Defines the page number to navigate.
10406
10578
  * @returns {void}
10407
10579
  */
10408
- Page$$1.prototype.goToPage = function (pageNo) {
10580
+ Page.prototype.goToPage = function (pageNo) {
10409
10581
  this.parent.grid.pagerModule.goToPage(pageNo);
10410
10582
  };
10411
10583
  /**
@@ -10414,7 +10586,11 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10414
10586
  * @param {string} message - Defines the message to update.
10415
10587
  * @returns {void}
10416
10588
  */
10417
- Page$$1.prototype.updateExternalMessage = function (message) {
10589
+ Page.prototype.updateExternalMessage = function (message) {
10590
+ if (isNullOrUndefined(message)) {
10591
+ var error = 'The provided value for the message is undefined. Please ensure the message contains string.';
10592
+ this.parent.trigger(actionFailure, { error: error });
10593
+ }
10418
10594
  this.parent.grid.pagerModule.updateExternalMessage(message);
10419
10595
  };
10420
10596
  /**
@@ -10426,7 +10602,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10426
10602
  * @hidden
10427
10603
  * @returns {void}
10428
10604
  */
10429
- Page$$1.prototype.collapseExpandPagedchilds = function (rowDetails) {
10605
+ Page.prototype.collapseExpandPagedchilds = function (rowDetails) {
10430
10606
  rowDetails.record.expanded = rowDetails.action === 'collapse' ? false : true;
10431
10607
  this.parent.flatData.map(function (e) { return e.expanded = e.uniqueID === rowDetails.record.uniqueID &&
10432
10608
  e.expanded !== rowDetails.record.expanded ? rowDetails.record.expanded : e.expanded; });
@@ -10467,7 +10643,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10467
10643
  }
10468
10644
  }
10469
10645
  };
10470
- Page$$1.prototype.pageRoot = function (pagedResults, temp, result) {
10646
+ Page.prototype.pageRoot = function (pagedResults, temp, result) {
10471
10647
  var newResults = isNullOrUndefined(result) ? [] : result;
10472
10648
  var _loop_1 = function (t) {
10473
10649
  newResults.push(temp[parseInt(t.toString(), 10)]);
@@ -10485,7 +10661,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10485
10661
  }
10486
10662
  return newResults;
10487
10663
  };
10488
- Page$$1.prototype.updatePageSize = function (pageingDetails) {
10664
+ Page.prototype.updatePageSize = function (pageingDetails) {
10489
10665
  var updateSize = pageingDetails.result.length;
10490
10666
  var gridPagerModule = this.parent.grid.pagerModule;
10491
10667
  if (this.parent.pageSettings.pageSizes === true) {
@@ -10495,7 +10671,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10495
10671
  }
10496
10672
  }
10497
10673
  };
10498
- Page$$1.prototype.pageAction = function (pageingDetails) {
10674
+ Page.prototype.pageAction = function (pageingDetails) {
10499
10675
  var _this = this;
10500
10676
  var dm = new DataManager(pageingDetails.result);
10501
10677
  if (this.parent.pageSettings.pageSizeMode === 'Root') {
@@ -10516,8 +10692,8 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10516
10692
  }
10517
10693
  else {
10518
10694
  var dm_1 = new DataManager(pageingDetails.result);
10519
- var expanded$$1 = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
10520
- var parents_1 = dm_1.executeLocal(new Query().where(expanded$$1));
10695
+ var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
10696
+ var parents_1 = dm_1.executeLocal(new Query().where(expanded));
10521
10697
  var visualData = void 0;
10522
10698
  if (isFilterChildHierarchy(this.parent) && (pageingDetails.actionArgs.action !== 'collapse' &&
10523
10699
  pageingDetails.actionArgs.action !== 'expand')) {
@@ -10525,7 +10701,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10525
10701
  }
10526
10702
  else {
10527
10703
  visualData = parents_1.filter(function (e) {
10528
- return getExpandStatus(_this.parent, e, parents_1);
10704
+ return getExpandStatus(_this.parent, e);
10529
10705
  });
10530
10706
  }
10531
10707
  pageingDetails.count = visualData.length;
@@ -10545,7 +10721,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10545
10721
  }
10546
10722
  this.parent.notify('updateAction', pageingDetails);
10547
10723
  };
10548
- return Page$$1;
10724
+ return Page;
10549
10725
  }());
10550
10726
 
10551
10727
  /**
@@ -10553,9 +10729,9 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10553
10729
  *
10554
10730
  * @hidden
10555
10731
  */
10556
- var Toolbar$1 = /** @__PURE__ @class */ (function () {
10557
- function Toolbar$$1(parent) {
10558
- Grid.Inject(Toolbar);
10732
+ var Toolbar = /** @__PURE__ @class */ (function () {
10733
+ function Toolbar(parent) {
10734
+ Grid.Inject(Toolbar$1);
10559
10735
  this.parent = parent;
10560
10736
  this.addEventListener();
10561
10737
  }
@@ -10565,14 +10741,14 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10565
10741
  * @private
10566
10742
  * @returns {string} - Returns Toolbar module name
10567
10743
  */
10568
- Toolbar$$1.prototype.getModuleName = function () {
10744
+ Toolbar.prototype.getModuleName = function () {
10569
10745
  return 'toolbar';
10570
10746
  };
10571
10747
  /**
10572
10748
  * @hidden
10573
10749
  * @returns {void}
10574
10750
  */
10575
- Toolbar$$1.prototype.addEventListener = function () {
10751
+ Toolbar.prototype.addEventListener = function () {
10576
10752
  this.parent.on(rowSelected, this.refreshToolbar, this);
10577
10753
  this.parent.on(rowDeselected, this.refreshToolbar, this);
10578
10754
  this.parent.on(toolbarClick, this.toolbarClickHandler, this);
@@ -10581,7 +10757,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10581
10757
  * @hidden
10582
10758
  * @returns {void}
10583
10759
  */
10584
- Toolbar$$1.prototype.removeEventListener = function () {
10760
+ Toolbar.prototype.removeEventListener = function () {
10585
10761
  if (this.parent.isDestroyed) {
10586
10762
  return;
10587
10763
  }
@@ -10589,7 +10765,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10589
10765
  this.parent.off(rowDeselected, this.refreshToolbar);
10590
10766
  this.parent.off(toolbarClick, this.toolbarClickHandler);
10591
10767
  };
10592
- Toolbar$$1.prototype.refreshToolbar = function (args) {
10768
+ Toolbar.prototype.refreshToolbar = function (args) {
10593
10769
  var toolbarElement = this.parent.grid.toolbarModule.getToolbar();
10594
10770
  if (!isNullOrUndefined(toolbarElement)) {
10595
10771
  var tObj = this.parent;
@@ -10643,7 +10819,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10643
10819
  }
10644
10820
  }
10645
10821
  };
10646
- Toolbar$$1.prototype.toolbarClickHandler = function (args) {
10822
+ Toolbar.prototype.toolbarClickHandler = function (args) {
10647
10823
  var tObj = this.parent;
10648
10824
  var indentOutdentAction = 'indentOutdentAction';
10649
10825
  if (this.parent.editSettings.mode === 'Cell' && this.parent.grid.editSettings.mode === 'Batch' &&
@@ -10672,7 +10848,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10672
10848
  * @returns {Element} - Returns Toolbar element
10673
10849
  * @hidden
10674
10850
  */
10675
- Toolbar$$1.prototype.getToolbar = function () {
10851
+ Toolbar.prototype.getToolbar = function () {
10676
10852
  return this.parent.grid.toolbarModule.getToolbar();
10677
10853
  };
10678
10854
  /**
@@ -10683,7 +10859,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10683
10859
  * @returns {void}
10684
10860
  * @hidden
10685
10861
  */
10686
- Toolbar$$1.prototype.enableItems = function (items, isEnable) {
10862
+ Toolbar.prototype.enableItems = function (items, isEnable) {
10687
10863
  this.parent.grid.toolbarModule.enableItems(items, isEnable);
10688
10864
  };
10689
10865
  /**
@@ -10692,10 +10868,10 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10692
10868
  * @method destroy
10693
10869
  * @returns {void}
10694
10870
  */
10695
- Toolbar$$1.prototype.destroy = function () {
10871
+ Toolbar.prototype.destroy = function () {
10696
10872
  this.removeEventListener();
10697
10873
  };
10698
- return Toolbar$$1;
10874
+ return Toolbar;
10699
10875
  }());
10700
10876
 
10701
10877
  /**
@@ -10703,14 +10879,14 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10703
10879
  *
10704
10880
  * @hidden
10705
10881
  */
10706
- var Aggregate$1 = /** @__PURE__ @class */ (function () {
10882
+ var Aggregate = /** @__PURE__ @class */ (function () {
10707
10883
  /**
10708
10884
  * Constructor for Aggregate module
10709
10885
  *
10710
10886
  * @param {TreeGrid} parent - Tree Grid instance
10711
10887
  */
10712
- function Aggregate$$1(parent) {
10713
- Grid.Inject(Aggregate);
10888
+ function Aggregate(parent) {
10889
+ Grid.Inject(Aggregate$1);
10714
10890
  this.parent = parent;
10715
10891
  this.flatChildRecords = [];
10716
10892
  this.summaryQuery = [];
@@ -10721,10 +10897,10 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10721
10897
  * @private
10722
10898
  * @returns {string} Returns Summary module name
10723
10899
  */
10724
- Aggregate$$1.prototype.getModuleName = function () {
10900
+ Aggregate.prototype.getModuleName = function () {
10725
10901
  return 'summary';
10726
10902
  };
10727
- Aggregate$$1.prototype.removeEventListener = function () {
10903
+ Aggregate.prototype.removeEventListener = function () {
10728
10904
  if (this.parent.isDestroyed) {
10729
10905
  return;
10730
10906
  }
@@ -10738,7 +10914,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10738
10914
  * @hidden
10739
10915
  * @returns {Object[]} - return flat records with summary values
10740
10916
  */
10741
- Aggregate$$1.prototype.calculateSummaryValue = function (summaryQuery, filteredData, isSort) {
10917
+ Aggregate.prototype.calculateSummaryValue = function (summaryQuery, filteredData, isSort) {
10742
10918
  this.summaryQuery = summaryQuery;
10743
10919
  var parentRecord;
10744
10920
  var parentDataLength = Object.keys(filteredData).length;
@@ -10778,7 +10954,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10778
10954
  }
10779
10955
  });
10780
10956
  var currentIndex = idx_1 + childRecordsLength + summaryRowIndex;
10781
- var summaryParent = extend({}, parentRecord);
10957
+ var summaryParent = extend$1({}, parentRecord);
10782
10958
  delete summaryParent.childRecords;
10783
10959
  delete summaryParent[this_1.parent.childMapping];
10784
10960
  setValue('parentItem', summaryParent, item);
@@ -10819,7 +10995,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10819
10995
  }
10820
10996
  return flatRecords;
10821
10997
  };
10822
- Aggregate$$1.prototype.getChildRecordsLength = function (parentData, flatData) {
10998
+ Aggregate.prototype.getChildRecordsLength = function (parentData, flatData) {
10823
10999
  var recordLength = Object.keys(flatData).length;
10824
11000
  var record;
10825
11001
  for (var i = 0, len = recordLength; i < len; i++) {
@@ -10839,7 +11015,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10839
11015
  }
10840
11016
  return this.flatChildRecords.length;
10841
11017
  };
10842
- Aggregate$$1.prototype.createSummaryItem = function (itemData, summary) {
11018
+ Aggregate.prototype.createSummaryItem = function (itemData, summary) {
10843
11019
  var summaryColumnLength = Object.keys(summary.columns).length;
10844
11020
  for (var i = 0, len = summaryColumnLength; i < len; i++) {
10845
11021
  var displayColumn = isNullOrUndefined(summary.columns[parseInt(i.toString(), 10)].columnName) ?
@@ -10864,7 +11040,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10864
11040
  }
10865
11041
  return itemData;
10866
11042
  };
10867
- Aggregate$$1.prototype.getSummaryValues = function (summaryColumn, summaryData) {
11043
+ Aggregate.prototype.getSummaryValues = function (summaryColumn, summaryData) {
10868
11044
  var qry = new Query();
10869
11045
  var single = {};
10870
11046
  var helper = {};
@@ -10915,7 +11091,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10915
11091
  return cellElement.innerHTML;
10916
11092
  }
10917
11093
  };
10918
- Aggregate$$1.prototype.getFormatFromType = function (summaryformat, type) {
11094
+ Aggregate.prototype.getFormatFromType = function (summaryformat, type) {
10919
11095
  if (isNullOrUndefined(type) || typeof summaryformat !== 'string') {
10920
11096
  return summaryformat;
10921
11097
  }
@@ -10939,10 +11115,10 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10939
11115
  * @returns {void}
10940
11116
  * @hidden
10941
11117
  */
10942
- Aggregate$$1.prototype.destroy = function () {
11118
+ Aggregate.prototype.destroy = function () {
10943
11119
  this.removeEventListener();
10944
11120
  };
10945
- return Aggregate$$1;
11121
+ return Aggregate;
10946
11122
  }());
10947
11123
 
10948
11124
  /**
@@ -10950,9 +11126,9 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10950
11126
  *
10951
11127
  * @hidden
10952
11128
  */
10953
- var Sort$1 = /** @__PURE__ @class */ (function () {
10954
- function Sort$$1(grid) {
10955
- Grid.Inject(Sort);
11129
+ var Sort = /** @__PURE__ @class */ (function () {
11130
+ function Sort(grid) {
11131
+ Grid.Inject(Sort$1);
10956
11132
  this.parent = grid;
10957
11133
  this.taskIds = [];
10958
11134
  this.flatSortedData = [];
@@ -10966,13 +11142,13 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
10966
11142
  * @private
10967
11143
  * @returns {string} Returns Sort module name
10968
11144
  */
10969
- Sort$$1.prototype.getModuleName = function () {
11145
+ Sort.prototype.getModuleName = function () {
10970
11146
  return 'sort';
10971
11147
  };
10972
11148
  /**
10973
11149
  * @hidden
10974
11150
  */
10975
- Sort$$1.prototype.addEventListener = function () {
11151
+ Sort.prototype.addEventListener = function () {
10976
11152
  this.parent.on('updateModel', this.updateModel, this);
10977
11153
  this.parent.on('createSort', this.createdSortedRecords, this);
10978
11154
  };
@@ -10980,14 +11156,14 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
10980
11156
  * @hidden
10981
11157
  * @returns {void}
10982
11158
  */
10983
- Sort$$1.prototype.removeEventListener = function () {
11159
+ Sort.prototype.removeEventListener = function () {
10984
11160
  if (this.parent.isDestroyed) {
10985
11161
  return;
10986
11162
  }
10987
11163
  this.parent.off('updateModel', this.updateModel);
10988
11164
  this.parent.off('createSort', this.createdSortedRecords);
10989
11165
  };
10990
- Sort$$1.prototype.createdSortedRecords = function (sortParams) {
11166
+ Sort.prototype.createdSortedRecords = function (sortParams) {
10991
11167
  var data = sortParams.modifiedData;
10992
11168
  var srtQry = sortParams.srtQry;
10993
11169
  this.iterateSort(data, srtQry);
@@ -10995,7 +11171,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
10995
11171
  sortParams.modifiedData = this.flatSortedData;
10996
11172
  this.flatSortedData = [];
10997
11173
  };
10998
- Sort$$1.prototype.iterateSort = function (data, srtQry) {
11174
+ Sort.prototype.iterateSort = function (data, srtQry) {
10999
11175
  for (var d = 0; d < data.length; d++) {
11000
11176
  if (this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
11001
11177
  if (!isNullOrUndefined(getParentData(this.parent, data[parseInt(d.toString(), 10)].uniqueID, true))) {
@@ -11033,10 +11209,10 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11033
11209
  * @param {boolean} isMultiSort - Specifies whether the previous sorted columns are to be maintained.
11034
11210
  * @returns {void}
11035
11211
  */
11036
- Sort$$1.prototype.sortColumn = function (columnName, direction, isMultiSort) {
11212
+ Sort.prototype.sortColumn = function (columnName, direction, isMultiSort) {
11037
11213
  this.parent.grid.sortColumn(columnName, direction, isMultiSort);
11038
11214
  };
11039
- Sort$$1.prototype.removeSortColumn = function (field) {
11215
+ Sort.prototype.removeSortColumn = function (field) {
11040
11216
  this.parent.grid.removeSortColumn(field);
11041
11217
  };
11042
11218
  /**
@@ -11045,7 +11221,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11045
11221
  * @returns {void}
11046
11222
  * @hidden
11047
11223
  */
11048
- Sort$$1.prototype.updateModel = function () {
11224
+ Sort.prototype.updateModel = function () {
11049
11225
  this.parent.setProperties({ sortSettings: getActualProperties(this.parent.grid.sortSettings) }, true);
11050
11226
  };
11051
11227
  /**
@@ -11053,7 +11229,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11053
11229
  *
11054
11230
  * @returns {void}
11055
11231
  */
11056
- Sort$$1.prototype.clearSorting = function () {
11232
+ Sort.prototype.clearSorting = function () {
11057
11233
  this.parent.grid.clearSorting();
11058
11234
  this.updateModel();
11059
11235
  };
@@ -11063,10 +11239,10 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11063
11239
  * @function destroy
11064
11240
  * @returns {void}
11065
11241
  */
11066
- Sort$$1.prototype.destroy = function () {
11242
+ Sort.prototype.destroy = function () {
11067
11243
  this.removeEventListener();
11068
11244
  };
11069
- return Sort$$1;
11245
+ return Sort;
11070
11246
  }());
11071
11247
 
11072
11248
  /**
@@ -11074,20 +11250,20 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11074
11250
  *
11075
11251
  * @hidden
11076
11252
  */
11077
- var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
11253
+ var ColumnMenu = /** @__PURE__ @class */ (function () {
11078
11254
  /**
11079
11255
  * Constructor for render module
11080
11256
  *
11081
11257
  * @param {TreeGrid} parent - Tree Grid instance
11082
11258
  */
11083
- function ColumnMenu$$1(parent) {
11084
- Grid.Inject(ColumnMenu);
11259
+ function ColumnMenu(parent) {
11260
+ Grid.Inject(ColumnMenu$1);
11085
11261
  this.parent = parent;
11086
11262
  }
11087
- ColumnMenu$$1.prototype.getColumnMenu = function () {
11263
+ ColumnMenu.prototype.getColumnMenu = function () {
11088
11264
  return this.parent.grid.columnMenuModule.getColumnMenu();
11089
11265
  };
11090
- ColumnMenu$$1.prototype.destroy = function () {
11266
+ ColumnMenu.prototype.destroy = function () {
11091
11267
  //this.parent.grid.columnMenuModule.destroy();
11092
11268
  };
11093
11269
  /**
@@ -11096,10 +11272,10 @@ var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
11096
11272
  * @private
11097
11273
  * @returns {string} Returns ColumnMenu module name
11098
11274
  */
11099
- ColumnMenu$$1.prototype.getModuleName = function () {
11275
+ ColumnMenu.prototype.getModuleName = function () {
11100
11276
  return 'columnMenu';
11101
11277
  };
11102
- return ColumnMenu$$1;
11278
+ return ColumnMenu;
11103
11279
  }());
11104
11280
 
11105
11281
  /**
@@ -11107,9 +11283,9 @@ var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
11107
11283
  *
11108
11284
  * @hidden
11109
11285
  */
11110
- var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11111
- function ContextMenu$$1(parent) {
11112
- Grid.Inject(ContextMenu);
11286
+ var ContextMenu = /** @__PURE__ @class */ (function () {
11287
+ function ContextMenu(parent) {
11288
+ Grid.Inject(ContextMenu$1);
11113
11289
  this.parent = parent;
11114
11290
  this.addEventListener();
11115
11291
  }
@@ -11117,7 +11293,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11117
11293
  * @hidden
11118
11294
  * @returns {void}
11119
11295
  */
11120
- ContextMenu$$1.prototype.addEventListener = function () {
11296
+ ContextMenu.prototype.addEventListener = function () {
11121
11297
  this.parent.on('contextMenuOpen', this.contextMenuOpen, this);
11122
11298
  this.parent.on('contextMenuClick', this.contextMenuClick, this);
11123
11299
  };
@@ -11125,14 +11301,14 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11125
11301
  * @hidden
11126
11302
  * @returns {void}
11127
11303
  */
11128
- ContextMenu$$1.prototype.removeEventListener = function () {
11304
+ ContextMenu.prototype.removeEventListener = function () {
11129
11305
  if (this.parent.isDestroyed) {
11130
11306
  return;
11131
11307
  }
11132
11308
  this.parent.off('contextMenuOpen', this.contextMenuOpen);
11133
11309
  this.parent.off('contextMenuClick', this.contextMenuClick);
11134
11310
  };
11135
- ContextMenu$$1.prototype.contextMenuOpen = function (args) {
11311
+ ContextMenu.prototype.contextMenuOpen = function (args) {
11136
11312
  var addRow = select('#' + this.parent.element.id + '_gridcontrol_cmenu_AddRow', args.element);
11137
11313
  var editRecord = select('#' + this.parent.element.id + '_gridcontrol_cmenu_Edit', args.element);
11138
11314
  var indent = select('#' + this.parent.element.id + '_gridcontrol_cmenu_Indent', args.element);
@@ -11203,7 +11379,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11203
11379
  }
11204
11380
  }
11205
11381
  };
11206
- ContextMenu$$1.prototype.contextMenuClick = function (args) {
11382
+ ContextMenu.prototype.contextMenuClick = function (args) {
11207
11383
  if (args.item.id === 'Above' || args.item.id === 'Below' || args.item.id === 'Child') {
11208
11384
  this.parent.notify('savePreviousRowPosition', args);
11209
11385
  this.parent.setProperties({ editSettings: { newRowPosition: args.item.id } }, true);
@@ -11224,7 +11400,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11224
11400
  * @private
11225
11401
  * @returns {string} Returns ContextMenu module name
11226
11402
  */
11227
- ContextMenu$$1.prototype.getModuleName = function () {
11403
+ ContextMenu.prototype.getModuleName = function () {
11228
11404
  return 'contextMenu';
11229
11405
  };
11230
11406
  /**
@@ -11233,7 +11409,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11233
11409
  * @function destroy
11234
11410
  * @returns {void}
11235
11411
  */
11236
- ContextMenu$$1.prototype.destroy = function () {
11412
+ ContextMenu.prototype.destroy = function () {
11237
11413
  this.removeEventListener();
11238
11414
  };
11239
11415
  /**
@@ -11241,10 +11417,10 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11241
11417
  *
11242
11418
  * @returns {Element} Return Context Menu root element.
11243
11419
  */
11244
- ContextMenu$$1.prototype.getContextMenu = function () {
11420
+ ContextMenu.prototype.getContextMenu = function () {
11245
11421
  return this.parent.grid.contextMenuModule.getContextMenu();
11246
11422
  };
11247
- return ContextMenu$$1;
11423
+ return ContextMenu;
11248
11424
  }());
11249
11425
 
11250
11426
  /**
@@ -11392,7 +11568,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11392
11568
  if (this.parent.editSettings.newRowPosition === 'Child') {
11393
11569
  added.primaryParent = parentRecord;
11394
11570
  if (this.selectedIndex > -1) {
11395
- added.parentItem = extend({}, this.batchRecords[this.addRowIndex]);
11571
+ added.parentItem = extend$1({}, this.batchRecords[this.addRowIndex]);
11396
11572
  added.parentUniqueID = added.parentItem.uniqueID;
11397
11573
  delete added.parentItem.childRecords;
11398
11574
  delete added.parentItem[this.parent.childMapping];
@@ -11501,13 +11677,13 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11501
11677
  this.updateRowIndex();
11502
11678
  // update focus module, need to refix this once grid source modified.
11503
11679
  var focusModule = getValue('focusModule', this.parent.grid);
11504
- var table$$1 = this.parent.getContentTable();
11680
+ var table = this.parent.getContentTable();
11505
11681
  if (this.parent.getBatchChanges()[this.deletedRecords].length && this.parent.editSettings.newRowPosition === 'Above') {
11506
11682
  actualIndex = e.row.rowIndex;
11507
11683
  focusModule.getContent().matrix.matrix = this.matrix;
11508
11684
  }
11509
11685
  else {
11510
- actualIndex = table$$1.getElementsByClassName('e-batchrow')[0].rowIndex;
11686
+ actualIndex = table.getElementsByClassName('e-batchrow')[0].rowIndex;
11511
11687
  // if (this.parent.frozenRows || this.parent.frozenColumns) {
11512
11688
  // actualIndex = this.batchIndex;
11513
11689
  // }
@@ -11735,7 +11911,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11735
11911
  addRecords.reverse();
11736
11912
  }
11737
11913
  for (i = 0; i < addRecords.length; i++) {
11738
- var taskData = extend({}, addRecords[parseInt(i.toString(), 10)]);
11914
+ var taskData = extend$1({}, addRecords[parseInt(i.toString(), 10)]);
11739
11915
  delete taskData.parentItem;
11740
11916
  delete taskData.uniqueID;
11741
11917
  delete taskData.index;
@@ -11860,19 +12036,19 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11860
12036
  * TreeGrid Edit Module
11861
12037
  * The `Edit` module is used to handle editing actions.
11862
12038
  */
11863
- var Edit$1 = /** @__PURE__ @class */ (function () {
12039
+ var Edit = /** @__PURE__ @class */ (function () {
11864
12040
  /**
11865
12041
  * Constructor for Edit module
11866
12042
  *
11867
12043
  * @param {TreeGrid} parent - Tree Grid instance
11868
12044
  */
11869
- function Edit$$1(parent) {
12045
+ function Edit(parent) {
11870
12046
  this.addedRecords = 'addedRecords';
11871
12047
  this.deletedRecords = 'deletedRecords';
11872
12048
  this.prevAriaRowIndex = '-1';
11873
12049
  this.isAddedRowByMethod = false;
11874
12050
  this.isAddedRowByContextMenu = false;
11875
- Grid.Inject(Edit);
12051
+ Grid.Inject(Edit$1);
11876
12052
  this.parent = parent;
11877
12053
  this.isSelfReference = !isNullOrUndefined(parent.parentIdMapping);
11878
12054
  this.previousNewRowPosition = null;
@@ -11886,14 +12062,14 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11886
12062
  * @private
11887
12063
  * @returns {string} Returns Edit module name
11888
12064
  */
11889
- Edit$$1.prototype.getModuleName = function () {
12065
+ Edit.prototype.getModuleName = function () {
11890
12066
  return 'edit';
11891
12067
  };
11892
12068
  /**
11893
12069
  * @hidden
11894
12070
  * @returns {void}
11895
12071
  */
11896
- Edit$$1.prototype.addEventListener = function () {
12072
+ Edit.prototype.addEventListener = function () {
11897
12073
  this.parent.on(crudAction, this.crudAction, this);
11898
12074
  this.parent.on(beginEdit, this.beginEdit, this);
11899
12075
  this.parent.on(beginAdd, this.beginAdd, this);
@@ -11916,7 +12092,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11916
12092
  this.parent.grid.on('reset-edit-props', this.resetIsOnBatch, this);
11917
12093
  this.parent.grid.on('get-row-position', this.getRowPosition, this);
11918
12094
  };
11919
- Edit$$1.prototype.gridDblClick = function (e) {
12095
+ Edit.prototype.gridDblClick = function (e) {
11920
12096
  this.doubleClickTarget = e.target;
11921
12097
  if (e.target.classList.contains('e-frame') && this.parent.getCurrentViewRecords().length === 0) {
11922
12098
  this.doubleClickTarget = null;
@@ -11930,17 +12106,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11930
12106
  }
11931
12107
  }
11932
12108
  };
11933
- Edit$$1.prototype.getRowPosition = function (addArgs) {
12109
+ Edit.prototype.getRowPosition = function (addArgs) {
11934
12110
  addArgs.newRowPosition = this.parent.editSettings.newRowPosition;
11935
12111
  addArgs.addRowIndex = this.addRowIndex;
11936
12112
  addArgs.dataRowIndex = +this.prevAriaRowIndex;
11937
12113
  };
11938
- Edit$$1.prototype.beforeStartEdit = function (args) {
12114
+ Edit.prototype.beforeStartEdit = function (args) {
11939
12115
  if (this.parent.editSettings.mode === 'Cell') {
11940
12116
  this.parent.trigger(actionBegin, args);
11941
12117
  }
11942
12118
  };
11943
- Edit$$1.prototype.beforeBatchCancel = function (args) {
12119
+ Edit.prototype.beforeBatchCancel = function (args) {
11944
12120
  if (this.parent.editSettings.mode === 'Cell') {
11945
12121
  args['requestType'] = 'cancel';
11946
12122
  this.parent.trigger(actionComplete, args);
@@ -11950,7 +12126,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11950
12126
  * @hidden
11951
12127
  * @returns {void}
11952
12128
  */
11953
- Edit$$1.prototype.removeEventListener = function () {
12129
+ Edit.prototype.removeEventListener = function () {
11954
12130
  if (this.parent.isDestroyed) {
11955
12131
  return;
11956
12132
  }
@@ -11981,7 +12157,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11981
12157
  * @returns {void}
11982
12158
  * @hidden
11983
12159
  */
11984
- Edit$$1.prototype.destroy = function () {
12160
+ Edit.prototype.destroy = function () {
11985
12161
  this.removeEventListener();
11986
12162
  };
11987
12163
  /**
@@ -11989,15 +12165,16 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11989
12165
  * @hidden
11990
12166
  * @returns {void}
11991
12167
  */
11992
- Edit$$1.prototype.applyFormValidation = function (cols) {
12168
+ Edit.prototype.applyFormValidation = function (cols) {
11993
12169
  this.parent.grid.editModule.applyFormValidation(cols);
11994
12170
  };
11995
- Edit$$1.prototype.editActionEvents = function (args) {
12171
+ Edit.prototype.editActionEvents = function (args) {
11996
12172
  var eventArgs = getObject('editAction', args);
11997
12173
  var eventName = getObject('name', eventArgs);
11998
12174
  var treeObj = this.parent;
11999
- var adaptor = treeObj.dataSource.adaptor;
12000
- if ((isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
12175
+ var adaptor = !isNullOrUndefined(treeObj.dataSource)
12176
+ && treeObj.dataSource.adaptor;
12177
+ if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
12001
12178
  (eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
12002
12179
  (treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
12003
12180
  || treeObj.editSettings.newRowPosition === 'Above')) {
@@ -12024,7 +12201,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12024
12201
  this.parent.notify('batchPageAction', {});
12025
12202
  }
12026
12203
  };
12027
- Edit$$1.prototype.infiniteAddAction = function (args) {
12204
+ Edit.prototype.infiniteAddAction = function (args) {
12028
12205
  if ((args.requestType === 'save' && args.action === 'add') || args.requestType === 'delete') {
12029
12206
  if (this.parent.editSettings.newRowPosition !== 'Top' && this.selectedIndex !== -1
12030
12207
  && (args.requestType === 'save' && args.action === 'add')) {
@@ -12054,7 +12231,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12054
12231
  }
12055
12232
  }
12056
12233
  };
12057
- Edit$$1.prototype.updateInfiniteCurrentViewData = function (newRecord, newRowIndex) {
12234
+ Edit.prototype.updateInfiniteCurrentViewData = function (newRecord, newRowIndex) {
12058
12235
  var _this = this;
12059
12236
  var infiniteData = 'infiniteCurrentViewData';
12060
12237
  var updateCurrentViewData = 'updateCurrentViewData';
@@ -12084,7 +12261,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12084
12261
  data.splice(dataIndex, 0, newRecord);
12085
12262
  this.parent.grid.infiniteScrollModule["" + updateCurrentViewData]();
12086
12263
  };
12087
- Edit$$1.prototype.recordDoubleClick = function (args) {
12264
+ Edit.prototype.recordDoubleClick = function (args) {
12088
12265
  var target = args.target;
12089
12266
  if (isNullOrUndefined(target.closest('td.e-rowcell'))) {
12090
12267
  return;
@@ -12110,19 +12287,19 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12110
12287
  this.updateGridEditMode('Batch');
12111
12288
  }
12112
12289
  };
12113
- Edit$$1.prototype.updateGridEditMode = function (mode) {
12290
+ Edit.prototype.updateGridEditMode = function (mode) {
12114
12291
  this.parent.grid.setProperties({ editSettings: { mode: mode } }, true);
12115
12292
  var updateMethod = getObject('updateEditObj', this.parent.grid.editModule);
12116
12293
  updateMethod.apply(this.parent.grid.editModule);
12117
12294
  this.parent.grid.isEdit = false;
12118
12295
  };
12119
- Edit$$1.prototype.resetIsOnBatch = function () {
12296
+ Edit.prototype.resetIsOnBatch = function () {
12120
12297
  if (this.parent.enableVirtualization && this.parent.editSettings.mode === 'Cell') {
12121
12298
  this.isOnBatch = false;
12122
12299
  this.updateGridEditMode('Normal');
12123
12300
  }
12124
12301
  };
12125
- Edit$$1.prototype.keyPressed = function (args) {
12302
+ Edit.prototype.keyPressed = function (args) {
12126
12303
  if (this.isOnBatch) {
12127
12304
  this.keyPress = args.action;
12128
12305
  }
@@ -12133,13 +12310,13 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12133
12310
  this.parent.closeEdit();
12134
12311
  }
12135
12312
  };
12136
- Edit$$1.prototype.deleteUniqueID = function (value) {
12313
+ Edit.prototype.deleteUniqueID = function (value) {
12137
12314
  var idFilter = 'uniqueIDFilterCollection';
12138
12315
  delete this.parent["" + idFilter]["" + value];
12139
12316
  var id = 'uniqueIDCollection';
12140
12317
  delete this.parent["" + id]["" + value];
12141
12318
  };
12142
- Edit$$1.prototype.cellEdit = function (args) {
12319
+ Edit.prototype.cellEdit = function (args) {
12143
12320
  var _this = this;
12144
12321
  var promise = 'promise';
12145
12322
  var prom = args["" + promise];
@@ -12188,14 +12365,14 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12188
12365
  // this.isAdd = false;
12189
12366
  // }
12190
12367
  };
12191
- Edit$$1.prototype.enableToolbarItems = function (request) {
12368
+ Edit.prototype.enableToolbarItems = function (request) {
12192
12369
  if (!isNullOrUndefined(this.parent.grid.toolbarModule)) {
12193
12370
  var toolbarID = this.parent.element.id + '_gridcontrol_';
12194
12371
  this.parent.grid.toolbarModule.enableItems([toolbarID + 'add', toolbarID + 'edit', toolbarID + 'delete'], request === 'save');
12195
12372
  this.parent.grid.toolbarModule.enableItems([toolbarID + 'update', toolbarID + 'cancel'], request === 'edit');
12196
12373
  }
12197
12374
  };
12198
- Edit$$1.prototype.batchCancel = function () {
12375
+ Edit.prototype.batchCancel = function () {
12199
12376
  if (this.parent.editSettings.mode === 'Cell') {
12200
12377
  var cellDetails = getValue('editModule.cellDetails', this.parent.grid.editModule);
12201
12378
  var treeCell = this.parent.getCellFromIndex(cellDetails.rowIndex, this.parent.treeColumnIndex);
@@ -12211,13 +12388,13 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12211
12388
  this.parent.notify('batchCancelAction', {});
12212
12389
  }
12213
12390
  };
12214
- Edit$$1.prototype.customCellSave = function (args) {
12391
+ Edit.prototype.customCellSave = function (args) {
12215
12392
  if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
12216
12393
  this.updateCell(args, args.rowIndex);
12217
- this.afterCellSave(args, args.row, args.rowIndex);
12394
+ this.afterCellSave(args, args.row);
12218
12395
  }
12219
12396
  };
12220
- Edit$$1.prototype.cellSave = function (args) {
12397
+ Edit.prototype.cellSave = function (args) {
12221
12398
  var _this = this;
12222
12399
  if (this.parent.editSettings.mode === 'Cell' && this.parent.element.querySelector('form')) {
12223
12400
  args.cancel = true;
@@ -12258,7 +12435,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12258
12435
  }
12259
12436
  }
12260
12437
  var arg = {};
12261
- extend(arg, args);
12438
+ extend$1(arg, args);
12262
12439
  arg.cancel = false;
12263
12440
  arg.type = 'save';
12264
12441
  row_1 = this.parent.grid.getRows()[row_1.rowIndex];
@@ -12279,7 +12456,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12279
12456
  else {
12280
12457
  this.updateCell(args, rowIndex_1);
12281
12458
  setValue('isEdit', false, this.parent.grid);
12282
- this.afterCellSave(args, row_1, rowIndex_1);
12459
+ this.afterCellSave(args, row_1);
12283
12460
  }
12284
12461
  }
12285
12462
  else if (isRemoteData(this.parent) ||
@@ -12288,7 +12465,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12288
12465
  if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
12289
12466
  this.updateCell(args, rowIndex_1);
12290
12467
  setValue('isEdit', false, this.parent.grid);
12291
- this.afterCellSave(args, row_1, rowIndex_1);
12468
+ this.afterCellSave(args, row_1);
12292
12469
  }
12293
12470
  else {
12294
12471
  var crud = null;
@@ -12299,7 +12476,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12299
12476
  }
12300
12477
  _this.updateCell(args, rowIndex_1);
12301
12478
  setValue('isEdit', false, _this.parent.grid);
12302
- _this.afterCellSave(args, row_1, rowIndex_1);
12479
+ _this.afterCellSave(args, row_1);
12303
12480
  });
12304
12481
  }
12305
12482
  }
@@ -12312,7 +12489,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12312
12489
  this.parent.grid.contentModule['virtualData'] = {};
12313
12490
  }
12314
12491
  };
12315
- Edit$$1.prototype.afterCellSave = function (args, row, rowIndex) {
12492
+ Edit.prototype.afterCellSave = function (args, row) {
12316
12493
  if (this.parent.grid.aggregateModule) {
12317
12494
  this.parent.grid.aggregateModule.refresh(args.rowData);
12318
12495
  }
@@ -12341,7 +12518,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12341
12518
  }
12342
12519
  this.parent.trigger(actionComplete, saveArgs);
12343
12520
  };
12344
- Edit$$1.prototype.lastCellTab = function () {
12521
+ Edit.prototype.lastCellTab = function () {
12345
12522
  if (!this.parent.grid.isEdit && this.isOnBatch && this.keyPress === 'tab' && this.parent.editSettings.mode === 'Cell') {
12346
12523
  if (!this.parent.editSettings.allowNextRowEdit) {
12347
12524
  this.updateGridEditMode('Normal');
@@ -12353,11 +12530,11 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12353
12530
  }
12354
12531
  }
12355
12532
  };
12356
- Edit$$1.prototype.updateCell = function (args, rowIndex) {
12533
+ Edit.prototype.updateCell = function (args, rowIndex) {
12357
12534
  this.parent.grid.editModule.updateCell(rowIndex, args.columnName, args.rowData[args.columnName]);
12358
12535
  this.parent.grid.getRowsObject()[parseInt(rowIndex.toString(), 10)].data = args.rowData;
12359
12536
  };
12360
- Edit$$1.prototype.crudAction = function (details, columnName) {
12537
+ Edit.prototype.crudAction = function (details, columnName) {
12361
12538
  editAction(details, this.parent, this.isSelfReference, this.addRowIndex, this.selectedIndex, columnName, this.addRowRecord);
12362
12539
  this.parent.parentData = [];
12363
12540
  var data = this.parent.grid.dataSource instanceof DataManager ?
@@ -12393,7 +12570,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12393
12570
  }
12394
12571
  }
12395
12572
  };
12396
- Edit$$1.prototype.updateIndex = function (data, rows, records) {
12573
+ Edit.prototype.updateIndex = function (data, rows, records) {
12397
12574
  for (var j = 0; j < this.parent.getDataRows().length; j++) {
12398
12575
  var data1 = records[parseInt(j.toString(), 10)];
12399
12576
  if (!isNullOrUndefined(data1)) {
@@ -12432,9 +12609,9 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12432
12609
  if (!isNullOrUndefined(treecell)) {
12433
12610
  for (var l = 0; l < treecell.classList.length; l++) {
12434
12611
  var value = treecell.classList[parseInt(l.toString(), 10)];
12435
- var remove$$1 = /e-gridrowindex/i;
12612
+ var remove = /e-gridrowindex/i;
12436
12613
  var removed = /e-griddetailrowindex/i;
12437
- var result = value.match(remove$$1);
12614
+ var result = value.match(remove);
12438
12615
  var results = value.match(removed);
12439
12616
  if (result != null) {
12440
12617
  removeClass([treecell], value);
@@ -12453,7 +12630,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12453
12630
  }
12454
12631
  }
12455
12632
  };
12456
- Edit$$1.prototype.beginAdd = function () {
12633
+ Edit.prototype.beginAdd = function () {
12457
12634
  var position;
12458
12635
  var index = this.addRowIndex;
12459
12636
  var records = this.parent.grid.getCurrentViewRecords();
@@ -12567,7 +12744,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12567
12744
  // }
12568
12745
  // }
12569
12746
  // }
12570
- Edit$$1.prototype.beginEdit = function (args) {
12747
+ Edit.prototype.beginEdit = function (args) {
12571
12748
  if (args.requestType === 'refresh' && this.isOnBatch) {
12572
12749
  args.cancel = true;
12573
12750
  return;
@@ -12679,17 +12856,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12679
12856
  // }
12680
12857
  // }
12681
12858
  };
12682
- Edit$$1.prototype.savePreviousRowPosition = function () {
12859
+ Edit.prototype.savePreviousRowPosition = function () {
12683
12860
  if (this.previousNewRowPosition === null) {
12684
12861
  this.previousNewRowPosition = this.parent.editSettings.newRowPosition;
12685
12862
  }
12686
12863
  };
12687
- Edit$$1.prototype.beginAddEdit = function (args) {
12864
+ Edit.prototype.beginAddEdit = function (args) {
12688
12865
  var value = args.data;
12689
12866
  if (args.action === 'add') {
12690
12867
  var key = this.parent.grid.getPrimaryKeyFieldNames()[0];
12691
12868
  var position = null;
12692
- value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
12869
+ value.taskData = isNullOrUndefined(value.taskData) ? extend$1({}, args.data) : value.taskData;
12693
12870
  var currentData = void 0;
12694
12871
  if (this.parent.enableVirtualization && args.index !== 0) {
12695
12872
  currentData = this.parent.flatData;
@@ -12741,7 +12918,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12741
12918
  else if (this.parent.editSettings.newRowPosition === 'Child') {
12742
12919
  position = 'after';
12743
12920
  if ((this.selectedIndex > -1 || isVirtualization) && withinRange) {
12744
- value.parentItem = extend({}, currentData[this.addRowIndex]);
12921
+ value.parentItem = extend$1({}, currentData[this.addRowIndex]);
12745
12922
  value.parentUniqueID = value.parentItem.uniqueID;
12746
12923
  delete value.parentItem.childRecords;
12747
12924
  delete value.parentItem[this.parent.childMapping];
@@ -12767,7 +12944,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12767
12944
  if (this.parent.editSettings.newRowPosition === 'Above' || this.parent.editSettings.newRowPosition === 'Below') {
12768
12945
  if ((this.selectedIndex > -1 || isVirtualization) && level && withinRange) {
12769
12946
  value.parentUniqueID = parentUniqueID;
12770
- value.parentItem = extend({}, parentItem);
12947
+ value.parentItem = extend$1({}, parentItem);
12771
12948
  delete value.parentItem.childRecords;
12772
12949
  delete value.parentItem[this.parent.childMapping];
12773
12950
  }
@@ -12820,7 +12997,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12820
12997
  *
12821
12998
  * @returns {void}
12822
12999
  */
12823
- Edit$$1.prototype.addRecord = function (data, index, position) {
13000
+ Edit.prototype.addRecord = function (data, index, position) {
12824
13001
  if (this.parent.editSettings.newRowPosition === this.previousNewRowPosition || this.previousNewRowPosition === null) {
12825
13002
  this.previousNewRowPosition = this.parent.editSettings.newRowPosition;
12826
13003
  }
@@ -12865,17 +13042,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12865
13042
  *
12866
13043
  * @returns {boolean} Returns form validation results
12867
13044
  */
12868
- Edit$$1.prototype.editFormValidate = function () {
13045
+ Edit.prototype.editFormValidate = function () {
12869
13046
  return this.parent.grid.editModule.editFormValidate();
12870
13047
  };
12871
13048
  /**
12872
13049
  * @hidden
12873
13050
  * @returns {void}
12874
13051
  */
12875
- Edit$$1.prototype.destroyForm = function () {
13052
+ Edit.prototype.destroyForm = function () {
12876
13053
  this.parent.grid.editModule.destroyForm();
12877
13054
  };
12878
- Edit$$1.prototype.contentready = function (e) {
13055
+ Edit.prototype.contentready = function (e) {
12879
13056
  if (!isNullOrUndefined(e.args.requestType)
12880
13057
  && (e.args.requestType.toString() === 'delete' || e.args.requestType.toString() === 'save'
12881
13058
  || (this.parent.editSettings.mode === 'Batch' && e.args.requestType.toString() === 'batchsave'))) {
@@ -12892,7 +13069,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12892
13069
  *
12893
13070
  * @returns {void}
12894
13071
  */
12895
- Edit$$1.prototype.editCell = function (rowIndex, field) {
13072
+ Edit.prototype.editCell = function (rowIndex, field) {
12896
13073
  if (this.parent.editSettings.mode === 'Cell' || this.parent.editSettings.mode === 'Batch') {
12897
13074
  if (this.parent.editSettings.mode !== 'Batch') {
12898
13075
  this.isOnBatch = true;
@@ -12901,7 +13078,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12901
13078
  this.parent.grid.editModule.editCell(rowIndex, field);
12902
13079
  }
12903
13080
  };
12904
- return Edit$$1;
13081
+ return Edit;
12905
13082
  }());
12906
13083
 
12907
13084
  /**
@@ -12909,9 +13086,9 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12909
13086
  *
12910
13087
  * @hidden
12911
13088
  */
12912
- var CommandColumn$1 = /** @__PURE__ @class */ (function () {
12913
- function CommandColumn$$1(parent) {
12914
- Grid.Inject(CommandColumn);
13089
+ var CommandColumn = /** @__PURE__ @class */ (function () {
13090
+ function CommandColumn(parent) {
13091
+ Grid.Inject(CommandColumn$1);
12915
13092
  this.parent = parent;
12916
13093
  }
12917
13094
  /**
@@ -12920,7 +13097,7 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
12920
13097
  * @private
12921
13098
  * @returns {string} Returns CommandColumn module name
12922
13099
  */
12923
- CommandColumn$$1.prototype.getModuleName = function () {
13100
+ CommandColumn.prototype.getModuleName = function () {
12924
13101
  return 'commandColumn';
12925
13102
  };
12926
13103
  /**
@@ -12929,10 +13106,10 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
12929
13106
  * @function destroy
12930
13107
  * @returns {void}
12931
13108
  */
12932
- CommandColumn$$1.prototype.destroy = function () {
13109
+ CommandColumn.prototype.destroy = function () {
12933
13110
  //this.removeEventListener();
12934
13111
  };
12935
- return CommandColumn$$1;
13112
+ return CommandColumn;
12936
13113
  }());
12937
13114
 
12938
13115
  /**
@@ -12940,9 +13117,9 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
12940
13117
  *
12941
13118
  * @hidden
12942
13119
  */
12943
- var DetailRow$1 = /** @__PURE__ @class */ (function () {
12944
- function DetailRow$$1(parent) {
12945
- Grid.Inject(DetailRow);
13120
+ var DetailRow = /** @__PURE__ @class */ (function () {
13121
+ function DetailRow(parent) {
13122
+ Grid.Inject(DetailRow$1);
12946
13123
  this.parent = parent;
12947
13124
  this.addEventListener();
12948
13125
  }
@@ -12955,10 +13132,10 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
12955
13132
  * @private
12956
13133
  * @returns {string} Returns DetailRow module name
12957
13134
  */
12958
- DetailRow$$1.prototype.getModuleName = function () {
13135
+ DetailRow.prototype.getModuleName = function () {
12959
13136
  return 'detailRow';
12960
13137
  };
12961
- DetailRow$$1.prototype.addEventListener = function () {
13138
+ DetailRow.prototype.addEventListener = function () {
12962
13139
  this.parent.on('dataBoundArg', this.dataBoundArg, this);
12963
13140
  this.parent.on('detaildataBound', this.detaildataBound, this);
12964
13141
  this.parent.grid.on('detail-indentcell-info', this.setIndentVisibility, this);
@@ -12970,7 +13147,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
12970
13147
  * @hidden
12971
13148
  * @returns {void}
12972
13149
  */
12973
- DetailRow$$1.prototype.removeEventListener = function () {
13150
+ DetailRow.prototype.removeEventListener = function () {
12974
13151
  if (this.parent.isDestroyed) {
12975
13152
  return;
12976
13153
  }
@@ -12981,11 +13158,11 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
12981
13158
  this.parent.off('actioncomplete', this.actioncomplete);
12982
13159
  this.parent.grid.off('detail-indentcell-info', this.setIndentVisibility);
12983
13160
  };
12984
- DetailRow$$1.prototype.setIndentVisibility = function (args) {
13161
+ DetailRow.prototype.setIndentVisibility = function (args) {
12985
13162
  var visible = 'visible';
12986
13163
  args["" + visible] = false;
12987
13164
  };
12988
- DetailRow$$1.prototype.dataBoundArg = function () {
13165
+ DetailRow.prototype.dataBoundArg = function () {
12989
13166
  var detailele = this.parent.getRows().filter(function (e) {
12990
13167
  return !e.classList.contains('e-detailrow');
12991
13168
  });
@@ -12999,13 +13176,13 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
12999
13176
  }
13000
13177
  }
13001
13178
  };
13002
- DetailRow$$1.prototype.childRowExpand = function (args) {
13179
+ DetailRow.prototype.childRowExpand = function (args) {
13003
13180
  var detailRowElement = args.row.getElementsByClassName('e-detailrowcollapse');
13004
13181
  if (!isNullOrUndefined(detailRowElement[0])) {
13005
13182
  this.parent.grid.detailRowModule.expand(detailRowElement[0]);
13006
13183
  }
13007
13184
  };
13008
- DetailRow$$1.prototype.rowExpandCollapse = function (args) {
13185
+ DetailRow.prototype.rowExpandCollapse = function (args) {
13009
13186
  if (isRemoteData(this.parent)) {
13010
13187
  return;
13011
13188
  }
@@ -13013,7 +13190,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
13013
13190
  args.detailrows[parseInt(i.toString(), 10)].style.display = args.action;
13014
13191
  }
13015
13192
  };
13016
- DetailRow$$1.prototype.detaildataBound = function (args) {
13193
+ DetailRow.prototype.detaildataBound = function (args) {
13017
13194
  var data = args.data;
13018
13195
  var row = args.detailElement.parentElement.previousSibling;
13019
13196
  var index = !isNullOrUndefined(data.parentItem) ? data.parentItem.index : data.index;
@@ -13025,7 +13202,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
13025
13202
  var detailClass = 'e-griddetail' + slicedclas;
13026
13203
  addClass([args.detailElement.parentElement], detailClass);
13027
13204
  };
13028
- DetailRow$$1.prototype.actioncomplete = function (args) {
13205
+ DetailRow.prototype.actioncomplete = function (args) {
13029
13206
  if (args.requestType === 'beginEdit' || args.requestType === 'add') {
13030
13207
  var spann = (args.row.querySelectorAll('.e-editcell')[0].getAttribute('colSpan'));
13031
13208
  var colum = parseInt(spann, 10) - 1;
@@ -13046,13 +13223,13 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
13046
13223
  * @function destroy
13047
13224
  * @returns {void}
13048
13225
  */
13049
- DetailRow$$1.prototype.destroy = function () {
13226
+ DetailRow.prototype.destroy = function () {
13050
13227
  this.removeEventListener();
13051
13228
  };
13052
- return DetailRow$$1;
13229
+ return DetailRow;
13053
13230
  }());
13054
13231
 
13055
- var __extends$17 = (undefined && undefined.__extends) || (function () {
13232
+ var __extends$g = (undefined && undefined.__extends) || (function () {
13056
13233
  var extendStatics = function (d, b) {
13057
13234
  extendStatics = Object.setPrototypeOf ||
13058
13235
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13066,7 +13243,7 @@ var __extends$17 = (undefined && undefined.__extends) || (function () {
13066
13243
  };
13067
13244
  })();
13068
13245
  var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13069
- __extends$17(VirtualTreeContentRenderer, _super);
13246
+ __extends$g(VirtualTreeContentRenderer, _super);
13070
13247
  function VirtualTreeContentRenderer(parent, locator) {
13071
13248
  var _this = _super.call(this, parent, locator) || this;
13072
13249
  _this.isExpandCollapse = false;
@@ -13097,6 +13274,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13097
13274
  VirtualTreeContentRenderer.prototype.getFrozenRightVirtualRowByIndex = function (index) {
13098
13275
  return this.getRowCollection(index, false, false, true);
13099
13276
  };
13277
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13100
13278
  VirtualTreeContentRenderer.prototype.getRowCollection = function (index, isMovable, isRowObject, isFrozenRight) {
13101
13279
  var startIdx = parseInt(this.parent.getRows()[0].getAttribute(dataRowIndex), 10);
13102
13280
  var rowCollection = this.parent.getDataRows();
@@ -13129,10 +13307,10 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13129
13307
  }
13130
13308
  };
13131
13309
  VirtualTreeContentRenderer.prototype.indexModifier = function (args) {
13132
- var content$$1 = this.parent.getContent().querySelector('.e-content');
13310
+ var content = this.parent.getContent().querySelector('.e-content');
13133
13311
  if ((this.recordAdded || args.requestType === 'delete' && this.endIndex > args.count - this.parent.pageSettings.pageSize) && this.startIndex > -1 && this.endIndex > -1) {
13134
13312
  if (this.endIndex > args.count - this.parent.pageSettings.pageSize) {
13135
- var nextSetResIndex = ~~(content$$1.scrollTop / this.parent.getRowHeight());
13313
+ var nextSetResIndex = ~~(content.scrollTop / this.parent.getRowHeight());
13136
13314
  var lastIndex = nextSetResIndex + this.parent.getRows().length;
13137
13315
  if (lastIndex > args.count) {
13138
13316
  lastIndex = nextSetResIndex +
@@ -13261,8 +13439,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13261
13439
  _super.prototype["" + dataBoundEve].call(this);
13262
13440
  };
13263
13441
  VirtualTreeContentRenderer.prototype.rowSelectedEvent = function (args) {
13264
- var rowSelected$$1 = 'rowSelected';
13265
- _super.prototype["" + rowSelected$$1].call(this, args);
13442
+ var rowSelected = 'rowSelected';
13443
+ _super.prototype["" + rowSelected].call(this, args);
13266
13444
  };
13267
13445
  VirtualTreeContentRenderer.prototype.toSelectVirtualRow = function (args) {
13268
13446
  if (this.parent.isEdit) {
@@ -13347,8 +13525,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13347
13525
  };
13348
13526
  VirtualTreeContentRenderer.prototype.virtualEditSuccess = function () {
13349
13527
  var isAdd = 'isAdd';
13350
- var content$$1 = this.parent.getContent().querySelector('.e-content');
13351
- if (this["" + isAdd] && content$$1.querySelector('.e-addedrow')) {
13528
+ var content = this.parent.getContent().querySelector('.e-content');
13529
+ if (this["" + isAdd] && content.querySelector('.e-addedrow')) {
13352
13530
  this.recordAdded = true;
13353
13531
  }
13354
13532
  };
@@ -13362,8 +13540,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13362
13540
  };
13363
13541
  VirtualTreeContentRenderer.prototype.restoreNewRow = function () {
13364
13542
  var isAdd = 'isAdd';
13365
- var content$$1 = this.parent.getContent().querySelector('.e-content');
13366
- if (this["" + isAdd] && !content$$1.querySelector('.e-addedrow')) {
13543
+ var content = this.parent.getContent().querySelector('.e-content');
13544
+ if (this["" + isAdd] && !content.querySelector('.e-addedrow')) {
13367
13545
  this.parent.isEdit = false;
13368
13546
  this.parent.editModule.addRecord(null, this.parent.root.editModule.selectedIndex);
13369
13547
  }
@@ -13380,8 +13558,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13380
13558
  this.addRowIndex = addArgs.addRowIndex;
13381
13559
  this.dataRowIndex = this.parent.root.editModule.selectedIndex;
13382
13560
  }
13383
- var actionComplete$$1 = 'actionComplete';
13384
- _super.prototype["" + actionComplete$$1].call(this, args);
13561
+ var actionComplete = 'actionComplete';
13562
+ _super.prototype["" + actionComplete].call(this, args);
13385
13563
  };
13386
13564
  VirtualTreeContentRenderer.prototype.onEnteredAction = function () {
13387
13565
  var _this = this;
@@ -13430,7 +13608,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13430
13608
  var info = scrollArgs.sentinel;
13431
13609
  var rowHeight = this.parent.getRowHeight();
13432
13610
  var outBuffer = this.parent.pageSettings.pageSize - Math.ceil(this.parent.pageSettings.pageSize / 2);
13433
- var content$$1 = this.parent.getContent().querySelector('.e-content');
13611
+ var content = this.parent.getContent().querySelector('.e-content');
13434
13612
  var scrollHeight = outBuffer * rowHeight;
13435
13613
  var upScroll = (scrollArgs.offset.top - this.translateY) < 0;
13436
13614
  var downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
@@ -13440,7 +13618,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13440
13618
  if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
13441
13619
  var vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
13442
13620
  this.parent.element.getBoundingClientRect().height);
13443
- var index = (~~(content$$1.scrollTop / rowHeight)
13621
+ var index = (~~(content.scrollTop / rowHeight)
13444
13622
  + Math.ceil(vHeight / rowHeight))
13445
13623
  - this.parent.pageSettings.pageSize;
13446
13624
  index = (index > 0) ? index : 0;
@@ -13485,7 +13663,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13485
13663
  }
13486
13664
  }
13487
13665
  else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
13488
- var nextSetResIndex = ~~(content$$1.scrollTop / rowHeight);
13666
+ var nextSetResIndex = ~~(content.scrollTop / rowHeight);
13489
13667
  var isLastBlock = (this["" + selectedRowIndex] + this.parent.pageSettings.pageSize) < this.totalRecords ? false : true;
13490
13668
  if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 &&
13491
13669
  nextSetResIndex !== this["" + selectedRowIndex] && !isLastBlock) {
@@ -13507,7 +13685,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13507
13685
  this.startIndex = currentViewData[0]["" + indexValue] + (this.parent.pageSettings.pageSize / 2);
13508
13686
  }
13509
13687
  if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
13510
- this.translateY = this.getTranslateY(scrollArgs.offset.top, content$$1.getBoundingClientRect().height);
13688
+ this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
13511
13689
  }
13512
13690
  else {
13513
13691
  if (this.totalRecords === this.endIndex) {
@@ -13534,10 +13712,10 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13534
13712
  this.previousInfo = viewInfo;
13535
13713
  this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
13536
13714
  var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
13715
+ this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
13537
13716
  if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
13538
13717
  viewInfo.loadNext = false;
13539
13718
  }
13540
- this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
13541
13719
  this.requestType = 'virtualscroll';
13542
13720
  if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
13543
13721
  viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
@@ -13642,7 +13820,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13642
13820
  return VirtualTreeContentRenderer;
13643
13821
  }(VirtualContentRenderer));
13644
13822
  var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
13645
- __extends$17(TreeInterSectionObserver, _super);
13823
+ __extends$g(TreeInterSectionObserver, _super);
13646
13824
  function TreeInterSectionObserver() {
13647
13825
  var _this = _super !== null && _super.apply(this, arguments) || this;
13648
13826
  _this.isWheeling = false;
@@ -13736,7 +13914,7 @@ var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
13736
13914
  return TreeInterSectionObserver;
13737
13915
  }(InterSectionObserver));
13738
13916
 
13739
- var __extends$16 = (undefined && undefined.__extends) || (function () {
13917
+ var __extends$h = (undefined && undefined.__extends) || (function () {
13740
13918
  var extendStatics = function (d, b) {
13741
13919
  extendStatics = Object.setPrototypeOf ||
13742
13920
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13754,20 +13932,20 @@ var __extends$16 = (undefined && undefined.__extends) || (function () {
13754
13932
  *
13755
13933
  * @hidden
13756
13934
  */
13757
- var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13935
+ var VirtualScroll = /** @__PURE__ @class */ (function () {
13758
13936
  /**
13759
13937
  * Constructor for VirtualScroll module
13760
13938
  *
13761
13939
  * @param {TreeGrid} parent - Tree Grid instance
13762
13940
  */
13763
- function VirtualScroll$$1(parent) {
13941
+ function VirtualScroll(parent) {
13764
13942
  this.prevstartIndex = -1;
13765
13943
  this.prevendIndex = -1;
13766
13944
  this.parent = parent;
13767
13945
  Grid.Inject(TreeVirtual);
13768
13946
  this.addEventListener();
13769
13947
  }
13770
- VirtualScroll$$1.prototype.returnVisualData = function (args) {
13948
+ VirtualScroll.prototype.returnVisualData = function (args) {
13771
13949
  args.data = this.visualData;
13772
13950
  };
13773
13951
  /**
@@ -13776,14 +13954,14 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13776
13954
  * @private
13777
13955
  * @returns {string} - Returns VirtualScroll module name
13778
13956
  */
13779
- VirtualScroll$$1.prototype.getModuleName = function () {
13957
+ VirtualScroll.prototype.getModuleName = function () {
13780
13958
  return 'virtualScroll';
13781
13959
  };
13782
13960
  /**
13783
13961
  * @hidden
13784
13962
  * @returns {void}
13785
13963
  */
13786
- VirtualScroll$$1.prototype.addEventListener = function () {
13964
+ VirtualScroll.prototype.addEventListener = function () {
13787
13965
  if (this.parent.isDestroyed) {
13788
13966
  return;
13789
13967
  }
@@ -13795,7 +13973,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13795
13973
  * @hidden
13796
13974
  * @returns {void}
13797
13975
  */
13798
- VirtualScroll$$1.prototype.removeEventListener = function () {
13976
+ VirtualScroll.prototype.removeEventListener = function () {
13799
13977
  if (this.parent.isDestroyed) {
13800
13978
  return;
13801
13979
  }
@@ -13803,7 +13981,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13803
13981
  this.parent.off(pagingActions, this.virtualPageAction);
13804
13982
  this.parent.off(destroy, this.destroy);
13805
13983
  };
13806
- VirtualScroll$$1.prototype.collapseExpandVirtualchilds = function (row) {
13984
+ VirtualScroll.prototype.collapseExpandVirtualchilds = function (row) {
13807
13985
  this.parent.grid.notify(virtualActionArgs, { isExpandCollapse: true });
13808
13986
  this.expandCollapseRec = row.record;
13809
13987
  row.record.expanded = row.action === 'collapse' ? false : true;
@@ -13821,13 +13999,13 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13821
13999
  var requestType = getValue('isCollapseAll', this.parent) ? 'collapseAll' : 'refresh';
13822
14000
  getValue('grid.renderModule', this.parent).dataManagerSuccess(ret, { requestType: requestType });
13823
14001
  };
13824
- VirtualScroll$$1.prototype.virtualPageAction = function (pageingDetails) {
14002
+ VirtualScroll.prototype.virtualPageAction = function (pageingDetails) {
13825
14003
  var _this = this;
13826
14004
  var dm = new DataManager(pageingDetails.result);
13827
- var expanded$$1 = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
13828
- var parents = dm.executeLocal(new Query().where(expanded$$1));
14005
+ var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
14006
+ var parents = dm.executeLocal(new Query().where(expanded));
13829
14007
  var visualData = parents.filter(function (e) {
13830
- return getExpandStatus(_this.parent, e, parents);
14008
+ return getExpandStatus(_this.parent, e);
13831
14009
  });
13832
14010
  this.visualData = visualData;
13833
14011
  pageingDetails.count = visualData.length;
@@ -13916,13 +14094,13 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13916
14094
  * @returns {void}
13917
14095
  * @hidden
13918
14096
  */
13919
- VirtualScroll$$1.prototype.destroy = function () {
14097
+ VirtualScroll.prototype.destroy = function () {
13920
14098
  this.removeEventListener();
13921
14099
  };
13922
- return VirtualScroll$$1;
14100
+ return VirtualScroll;
13923
14101
  }());
13924
14102
  var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13925
- __extends$16(TreeVirtual, _super);
14103
+ __extends$h(TreeVirtual, _super);
13926
14104
  function TreeVirtual(parent, locator) {
13927
14105
  var _this = _super.call(this, parent, locator) || this;
13928
14106
  getValue('parent', _this).off('initial-load', getValue('instantiateRenderer', _this), _this);
@@ -13958,30 +14136,30 @@ var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13958
14136
  parentGrid.setProperties({ pageSettings: { pageSize: size < height ? height : size } }, true);
13959
14137
  };
13960
14138
  return TreeVirtual;
13961
- }(VirtualScroll));
14139
+ }(VirtualScroll$1));
13962
14140
 
13963
14141
  /**
13964
14142
  * TreeGrid Freeze module
13965
14143
  *
13966
14144
  * @hidden
13967
14145
  */
13968
- var Freeze$1 = /** @__PURE__ @class */ (function () {
14146
+ var Freeze = /** @__PURE__ @class */ (function () {
13969
14147
  /**
13970
14148
  * Constructor for render module
13971
14149
  *
13972
14150
  * @param {TreeGrid} parent - Tree Grid instance
13973
14151
  */
13974
- function Freeze$$1(parent) {
13975
- Grid.Inject(Freeze);
14152
+ function Freeze(parent) {
14153
+ Grid.Inject(Freeze$1);
13976
14154
  this.parent = parent;
13977
14155
  this.addEventListener();
13978
14156
  }
13979
- Freeze$$1.prototype.addEventListener = function () {
14157
+ Freeze.prototype.addEventListener = function () {
13980
14158
  this.parent.on('rowExpandCollapse', this.rowExpandCollapse, this);
13981
14159
  this.parent.on('dataBoundArg', this.dataBoundArg, this);
13982
14160
  this.parent.grid.on('dblclick', this.dblClickHandler, this);
13983
14161
  };
13984
- Freeze$$1.prototype.removeEventListener = function () {
14162
+ Freeze.prototype.removeEventListener = function () {
13985
14163
  if (this.parent.isDestroyed) {
13986
14164
  return;
13987
14165
  }
@@ -13989,7 +14167,7 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
13989
14167
  this.parent.off('dataBoundArg', this.dataBoundArg);
13990
14168
  this.parent.grid.off('dblclick', this.dblClickHandler);
13991
14169
  };
13992
- Freeze$$1.prototype.rowExpandCollapse = function (args) {
14170
+ Freeze.prototype.rowExpandCollapse = function (args) {
13993
14171
  var movableRows = this.parent.getDataRows();
13994
14172
  var frozenrows = this.parent.getRows();
13995
14173
  var rows;
@@ -14035,13 +14213,13 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
14035
14213
  }
14036
14214
  }
14037
14215
  };
14038
- Freeze$$1.prototype.dblClickHandler = function (e) {
14216
+ Freeze.prototype.dblClickHandler = function (e) {
14039
14217
  if (parentsUntil(e.target, 'e-rowcell') &&
14040
14218
  this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
14041
14219
  this.parent.startEdit(parentsUntil(e.target, 'e-row'));
14042
14220
  }
14043
14221
  };
14044
- Freeze$$1.prototype.dataBoundArg = function () {
14222
+ Freeze.prototype.dataBoundArg = function () {
14045
14223
  var checkboxColumn = this.parent.getColumns().filter(function (e) {
14046
14224
  return e.showCheckbox;
14047
14225
  });
@@ -14049,7 +14227,7 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
14049
14227
  addClass([this.parent.element.getElementsByClassName('e-grid')[0]], 'e-checkselection');
14050
14228
  }
14051
14229
  };
14052
- Freeze$$1.prototype.destroy = function () {
14230
+ Freeze.prototype.destroy = function () {
14053
14231
  this.removeEventListener();
14054
14232
  };
14055
14233
  /**
@@ -14058,10 +14236,10 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
14058
14236
  * @private
14059
14237
  * @returns {string} Returns Freeze module name
14060
14238
  */
14061
- Freeze$$1.prototype.getModuleName = function () {
14239
+ Freeze.prototype.getModuleName = function () {
14062
14240
  return 'freeze';
14063
14241
  };
14064
- return Freeze$$1;
14242
+ return Freeze;
14065
14243
  }());
14066
14244
 
14067
14245
  /**
@@ -14069,14 +14247,14 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
14069
14247
  *
14070
14248
  * @hidden
14071
14249
  */
14072
- var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14250
+ var ColumnChooser = /** @__PURE__ @class */ (function () {
14073
14251
  /**
14074
14252
  * Constructor for render module
14075
14253
  *
14076
14254
  * @param {TreeGrid} parent - Tree Grid instance.
14077
14255
  */
14078
- function ColumnChooser$$1(parent) {
14079
- Grid.Inject(ColumnChooser);
14256
+ function ColumnChooser(parent) {
14257
+ Grid.Inject(ColumnChooser$1);
14080
14258
  this.parent = parent;
14081
14259
  }
14082
14260
  /**
@@ -14086,7 +14264,7 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14086
14264
  * @param {number} Y - Defines the Y axis.
14087
14265
  * @returns {void}
14088
14266
  */
14089
- ColumnChooser$$1.prototype.openColumnChooser = function (X, Y) {
14267
+ ColumnChooser.prototype.openColumnChooser = function (X, Y) {
14090
14268
  return this.parent.grid.columnChooserModule.openColumnChooser(X, Y);
14091
14269
  };
14092
14270
  /**
@@ -14095,7 +14273,7 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14095
14273
  * @function destroy
14096
14274
  * @returns {void}
14097
14275
  */
14098
- ColumnChooser$$1.prototype.destroy = function () {
14276
+ ColumnChooser.prototype.destroy = function () {
14099
14277
  //this.parent.grid.ColumnChooserModule.destroy();
14100
14278
  };
14101
14279
  /**
@@ -14104,10 +14282,10 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14104
14282
  * @private
14105
14283
  * @returns {string} Returns ColumnChooser module name
14106
14284
  */
14107
- ColumnChooser$$1.prototype.getModuleName = function () {
14285
+ ColumnChooser.prototype.getModuleName = function () {
14108
14286
  return 'ColumnChooser';
14109
14287
  };
14110
- return ColumnChooser$$1;
14288
+ return ColumnChooser;
14111
14289
  }());
14112
14290
 
14113
14291
  /**
@@ -14115,15 +14293,15 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14115
14293
  *
14116
14294
  * @hidden
14117
14295
  */
14118
- var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14296
+ var InfiniteScroll = /** @__PURE__ @class */ (function () {
14119
14297
  /**
14120
14298
  * Constructor for VirtualScroll module
14121
14299
  *
14122
14300
  * @param {TreeGrid} parent - Tree Grid instance
14123
14301
  */
14124
- function InfiniteScroll$$1(parent) {
14302
+ function InfiniteScroll(parent) {
14125
14303
  this.parent = parent;
14126
- Grid.Inject(InfiniteScroll);
14304
+ Grid.Inject(InfiniteScroll$1);
14127
14305
  this.addEventListener();
14128
14306
  }
14129
14307
  /**
@@ -14132,14 +14310,14 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14132
14310
  * @private
14133
14311
  * @returns {string} - Returns Logger module name
14134
14312
  */
14135
- InfiniteScroll$$1.prototype.getModuleName = function () {
14313
+ InfiniteScroll.prototype.getModuleName = function () {
14136
14314
  return 'infiniteScroll';
14137
14315
  };
14138
14316
  /**
14139
14317
  * @hidden
14140
14318
  * @returns {void}
14141
14319
  */
14142
- InfiniteScroll$$1.prototype.addEventListener = function () {
14320
+ InfiniteScroll.prototype.addEventListener = function () {
14143
14321
  this.parent.on(pagingActions, this.infinitePageAction, this);
14144
14322
  this.parent.on('infinite-remote-expand', this.infiniteRemoteExpand, this);
14145
14323
  this.parent.grid.on('delete-complete', this.infiniteDeleteHandler, this);
@@ -14151,7 +14329,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14151
14329
  * @hidden
14152
14330
  * @returns {void}
14153
14331
  */
14154
- InfiniteScroll$$1.prototype.removeEventListener = function () {
14332
+ InfiniteScroll.prototype.removeEventListener = function () {
14155
14333
  if (this.parent.isDestroyed) {
14156
14334
  return;
14157
14335
  }
@@ -14170,7 +14348,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14170
14348
  * @param { ITreeData[] } args.childData - child data of expanded row
14171
14349
  * @returns {void}
14172
14350
  */
14173
- InfiniteScroll$$1.prototype.infiniteRemoteExpand = function (args) {
14351
+ InfiniteScroll.prototype.infiniteRemoteExpand = function (args) {
14174
14352
  var rowObjects = this.parent.grid.getRowsObject();
14175
14353
  var locator = 'serviceLocator';
14176
14354
  var generateRows = 'generateRows';
@@ -14201,7 +14379,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14201
14379
  *
14202
14380
  * @returns {void}
14203
14381
  */
14204
- InfiniteScroll$$1.prototype.contentready = function () {
14382
+ InfiniteScroll.prototype.contentready = function () {
14205
14383
  if (this.parent.infiniteScrollSettings.enableCache && !isNullOrUndefined(this.parent.editModule)) {
14206
14384
  var updateIndex = 'updateIndex';
14207
14385
  this.parent.editModule["" + updateIndex](this.parent.grid.dataSource, this.parent.getRows(), this.parent.getCurrentViewRecords());
@@ -14219,10 +14397,10 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14219
14397
  * @param {Object} pageingDetails.actionArgs - scroll action details
14220
14398
  * @returns {void}
14221
14399
  */
14222
- InfiniteScroll$$1.prototype.infinitePageAction = function (pageingDetails) {
14400
+ InfiniteScroll.prototype.infinitePageAction = function (pageingDetails) {
14223
14401
  var dm = new DataManager(pageingDetails.result);
14224
- var expanded$$1 = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
14225
- var visualData = dm.executeLocal(new Query().where(expanded$$1));
14402
+ var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
14403
+ var visualData = dm.executeLocal(new Query().where(expanded));
14226
14404
  var actionArgs = getValue('actionArgs', pageingDetails.actionArgs);
14227
14405
  var actions = getValue('actions', this.parent.grid.infiniteScrollModule);
14228
14406
  if (this.parent.grid.infiniteScrollModule['isInitialRender'] && !this.parent.initialRender) {
@@ -14283,7 +14461,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14283
14461
  * @param {Object[]} args.result - data details while CRUD
14284
14462
  * @returns {void}
14285
14463
  */
14286
- InfiniteScroll$$1.prototype.infiniteEditHandler = function (args) {
14464
+ InfiniteScroll.prototype.infiniteEditHandler = function (args) {
14287
14465
  var infiniteData = 'infiniteCurrentViewData';
14288
14466
  var infiniteCurrentViewData = this.parent.grid.infiniteScrollModule["" + infiniteData];
14289
14467
  var keys = Object.keys(infiniteCurrentViewData);
@@ -14299,7 +14477,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14299
14477
  * @param {ActionEventArgs} args - crud action details
14300
14478
  * @returns {void}
14301
14479
  */
14302
- InfiniteScroll$$1.prototype.infiniteDeleteHandler = function (args) {
14480
+ InfiniteScroll.prototype.infiniteDeleteHandler = function (args) {
14303
14481
  if (args.requestType === 'delete') {
14304
14482
  var rows = this.parent.grid.getRowsObject();
14305
14483
  var rowElms = this.parent.getRows();
@@ -14323,7 +14501,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14323
14501
  * @param { boolean} isFrozen - Specifies whether frozen column enabled
14324
14502
  * @returns {void}
14325
14503
  */
14326
- InfiniteScroll$$1.prototype.removeRows = function (rowElms, rows, data, keyField, isFrozen) {
14504
+ InfiniteScroll.prototype.removeRows = function (rowElms, rows, data, keyField, isFrozen) {
14327
14505
  var _this = this;
14328
14506
  var resetInfiniteCurrentViewData = 'resetInfiniteCurrentViewData';
14329
14507
  var _loop_1 = function (i) {
@@ -14346,7 +14524,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14346
14524
  /**
14347
14525
  * Handles the row objects for Add operation.
14348
14526
  */
14349
- InfiniteScroll$$1.prototype.createRows = function (eventArgs) {
14527
+ InfiniteScroll.prototype.createRows = function (eventArgs) {
14350
14528
  var locator = 'serviceLocator';
14351
14529
  var actionArgs = eventArgs.args.e;
14352
14530
  var row = eventArgs.row;
@@ -14411,23 +14589,11 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14411
14589
  * @returns {void}
14412
14590
  * @hidden
14413
14591
  */
14414
- InfiniteScroll$$1.prototype.destroy = function () {
14592
+ InfiniteScroll.prototype.destroy = function () {
14415
14593
  this.removeEventListener();
14416
14594
  };
14417
- return InfiniteScroll$$1;
14595
+ return InfiniteScroll;
14418
14596
  }());
14419
14597
 
14420
- /**
14421
- * actions export
14422
- */
14423
-
14424
- /**
14425
- * TreeGrid component exported items
14426
- */
14427
-
14428
- /**
14429
- * Export TreeGrid component
14430
- */
14431
-
14432
- 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 };
14598
+ export { Aggregate, AggregateColumn, AggregateRow, Column, ColumnChooser, ColumnMenu, CommandColumn, ContextMenu, ContextMenuItems, DataManipulation, DetailRow, Edit, EditSettings, ExcelExport, Filter, FilterSettings, Freeze, InfiniteScroll, InfiniteScrollSettings, LoadingIndicator, Logger, Page, PageSettings, PdfExport, Predicate, Render, Reorder, Resize, RowDD, RowDropSettings, SearchSettings, Selection, SelectionSettings, Sort, SortDescriptor, SortSettings, StackedColumn, Toolbar, ToolbarItem, TreeClipboard, TreeGrid, TreeGridColumn, TreeVirtual, TreeVirtualRowModelGenerator, VirtualScroll, actionBegin, actionComplete, actionFailure, ariaColIndex, ariaRowIndex, autoCol, batchAdd, batchCancel, batchDelete, batchEditFormRendered, batchSave, beforeBatchAdd, beforeBatchCancel, beforeBatchDelete, beforeBatchSave, beforeCopy, beforeDataBound, beforeExcelExport, beforePaste, beforePdfExport, beforeStartEdit, beginAdd, beginEdit, cellEdit, cellSave, cellSaved, checkboxChange, collapsed, collapsing, content, contextMenuClick, contextMenuOpen, crudAction, dataBound, dataColIndex, dataListener, dataRowIndex, dataStateChange, destroy, detailDataBound, doubleTap, expanded, expanding, extendArray, findChildrenRecords, findParentRecords, frozenContent, frozenHeader, frozenLeft, frozenRight, getExpandStatus, getParentData, getPlainData, headerContent, indexModifier, isCheckboxcolumn, isCountRequired, isFilterChildHierarchy, isHidden, isOffline, isRemoteData, keyPressed, leftRight, load, localPagedExpandCollapse, movableContent, movableHeader, pagingActions, printGridInit, queryCellInfo, recordDoubleClick, remoteExpand, resizeStop, rowDataBound, rowDeselected, rowDeselecting, rowDrag, rowDragStart, rowDragStartHelper, rowDrop, rowDropped, rowSelected, rowSelecting, rowdraging, rowsAdd, rowsRemove, savePreviousRowPosition, table, toolbarClick, treeGridDetails, updateData, virtualActionArgs, virtualColumnIndex };
14433
14599
  //# sourceMappingURL=ej2-treegrid.es5.js.map