@syncfusion/ej2-treegrid 25.2.6 → 26.1.39

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 (102) 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 +649 -467
  6. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  7. package/dist/es6/ej2-treegrid.es5.js +950 -767
  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 +16 -4
  15. package/src/treegrid/actions/page.js +4 -0
  16. package/src/treegrid/actions/rowdragdrop.js +13 -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 +8 -3
  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 +238 -63
  25. package/src/treegrid/renderer/virtual-row-model-generator.js +2 -2
  26. package/src/treegrid/renderer/virtual-tree-content-render.js +6 -3
  27. package/styles/bootstrap-dark.css +76 -48
  28. package/styles/bootstrap-dark.scss +18 -1
  29. package/styles/bootstrap.css +76 -49
  30. package/styles/bootstrap.scss +18 -1
  31. package/styles/bootstrap4.css +77 -48
  32. package/styles/bootstrap4.scss +18 -1
  33. package/styles/bootstrap5-dark.css +77 -49
  34. package/styles/bootstrap5-dark.scss +18 -1
  35. package/styles/bootstrap5.css +77 -49
  36. package/styles/bootstrap5.scss +18 -1
  37. package/styles/fabric-dark.css +74 -47
  38. package/styles/fabric-dark.scss +18 -1
  39. package/styles/fabric.css +74 -47
  40. package/styles/fabric.scss +18 -1
  41. package/styles/fluent-dark.css +77 -49
  42. package/styles/fluent-dark.scss +18 -1
  43. package/styles/fluent.css +77 -49
  44. package/styles/fluent.scss +18 -1
  45. package/styles/fluent2.css +1713 -0
  46. package/styles/fluent2.scss +18 -0
  47. package/styles/highcontrast-light.css +74 -47
  48. package/styles/highcontrast-light.scss +18 -1
  49. package/styles/highcontrast.css +74 -47
  50. package/styles/highcontrast.scss +18 -1
  51. package/styles/material-dark.css +111 -54
  52. package/styles/material-dark.scss +18 -1
  53. package/styles/material.css +125 -57
  54. package/styles/material.scss +18 -1
  55. package/styles/material3-dark.css +111 -56
  56. package/styles/material3-dark.scss +18 -1
  57. package/styles/material3.css +111 -56
  58. package/styles/material3.scss +18 -1
  59. package/styles/tailwind-dark.css +87 -51
  60. package/styles/tailwind-dark.scss +18 -1
  61. package/styles/tailwind.css +87 -51
  62. package/styles/tailwind.scss +18 -1
  63. package/styles/treegrid/_bds-definition.scss +0 -4
  64. package/styles/treegrid/_bootstrap-dark-definition.scss +0 -1
  65. package/styles/treegrid/_bootstrap-definition.scss +0 -1
  66. package/styles/treegrid/_bootstrap4-definition.scss +0 -1
  67. package/styles/treegrid/_bootstrap5-definition.scss +0 -4
  68. package/styles/treegrid/_bootstrap5.3-definition.scss +24 -0
  69. package/styles/treegrid/_fabric-dark-definition.scss +0 -1
  70. package/styles/treegrid/_fabric-definition.scss +0 -1
  71. package/styles/treegrid/_fluent-definition.scss +0 -4
  72. package/styles/treegrid/_fluent2-definition.scss +24 -0
  73. package/styles/treegrid/_fusionnew-definition.scss +0 -4
  74. package/styles/treegrid/_highcontrast-definition.scss +0 -1
  75. package/styles/treegrid/_highcontrast-light-definition.scss +0 -1
  76. package/styles/treegrid/_layout.scss +81 -85
  77. package/styles/treegrid/_material-dark-definition.scss +0 -1
  78. package/styles/treegrid/_material-definition.scss +0 -1
  79. package/styles/treegrid/_material3-definition.scss +0 -4
  80. package/styles/treegrid/_tailwind-definition.scss +0 -4
  81. package/styles/treegrid/bootstrap-dark.css +76 -48
  82. package/styles/treegrid/bootstrap.css +76 -49
  83. package/styles/treegrid/bootstrap4.css +77 -48
  84. package/styles/treegrid/bootstrap5-dark.css +77 -49
  85. package/styles/treegrid/bootstrap5.css +77 -49
  86. package/styles/treegrid/fabric-dark.css +74 -47
  87. package/styles/treegrid/fabric.css +74 -47
  88. package/styles/treegrid/fluent-dark.css +77 -49
  89. package/styles/treegrid/fluent.css +77 -49
  90. package/styles/treegrid/fluent2.css +1713 -0
  91. package/styles/treegrid/fluent2.scss +18 -0
  92. package/styles/treegrid/highcontrast-light.css +74 -47
  93. package/styles/treegrid/highcontrast.css +74 -47
  94. package/styles/treegrid/icons/_bootstrap5.3.scss +37 -0
  95. package/styles/treegrid/icons/_fluent2.scss +37 -0
  96. package/styles/treegrid/material-dark.css +111 -54
  97. package/styles/treegrid/material.css +125 -57
  98. package/styles/treegrid/material3-dark.css +111 -56
  99. package/styles/treegrid/material3.css +111 -56
  100. package/styles/treegrid/tailwind-dark.css +87 -51
  101. package/styles/treegrid/tailwind.css +87 -51
  102. package/CHANGELOG.md +0 -264
@@ -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, Data, ExportHelper, 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;
@@ -2101,7 +2107,8 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2101
2107
  */
2102
2108
  DataManipulation.prototype.convertToFlatData = function (data) {
2103
2109
  var _this = this;
2104
- 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) ?
2105
2112
  this.parent.dataSource : []);
2106
2113
  this.parent.parentData = [];
2107
2114
  if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) {
@@ -2157,7 +2164,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2157
2164
  var keys = Object.keys(data);
2158
2165
  for (var i = 0; i < keys.length; i++) {
2159
2166
  var tempData = data[parseInt(i.toString(), 10)];
2160
- this.hierarchyData.push(extend({}, tempData));
2167
+ this.hierarchyData.push(extend$1({}, tempData));
2161
2168
  if (!isNullOrUndefined(tempData[this.parent.idMapping])) {
2162
2169
  this.taskIds.push(tempData[this.parent.idMapping]);
2163
2170
  }
@@ -2259,7 +2266,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2259
2266
  }
2260
2267
  }
2261
2268
  if (isNullOrUndefined(records[parseInt(rec.toString(), 10)].index)) {
2262
- 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)]);
2263
2270
  records[parseInt(rec.toString(), 10)].uniqueID = getUid(this_1.parent.element.id + '_data_');
2264
2271
  setValue('uniqueIDCollection.' + records[parseInt(rec.toString(), 10)].uniqueID, records[parseInt(rec.toString(), 10)], this_1.parent);
2265
2272
  records[parseInt(rec.toString(), 10)].level = 0;
@@ -2366,16 +2373,20 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2366
2373
  var clonequries = qry.queries.filter(function (e) { return e.fn !== 'onPage' && e.fn !== 'onWhere'; });
2367
2374
  qry.queries = clonequries;
2368
2375
  qry.isCountRequired = true;
2376
+ var idMappingValue = parseInt(rowDetails.record[this.parent.idMapping], 10);
2377
+ if (isNaN(idMappingValue)) {
2378
+ idMappingValue = rowDetails.record[this.parent.idMapping].toString();
2379
+ }
2369
2380
  if (this.parent.enableVirtualization && rowDetails.action === 'remoteExpand') {
2370
2381
  qry.take(this.parent.pageSettings.pageSize);
2371
2382
  var expandDetail = [];
2372
- expandDetail.push('ExpandingAction', parseInt(rowDetails.record[this.parent.idMapping], 10).toString());
2383
+ expandDetail.push('ExpandingAction', idMappingValue.toString());
2373
2384
  qry.expand(expandDetail);
2374
2385
  }
2375
2386
  else if (this.parent.enableVirtualization && rowDetails.action === 'collapse') {
2376
2387
  qry.take(this.parent.grid.pageSettings.pageSize);
2377
2388
  var expandDetail = [];
2378
- expandDetail.push('CollapsingAction', parseInt(rowDetails.record[this.parent.idMapping], 10).toString());
2389
+ expandDetail.push('CollapsingAction', idMappingValue.toString());
2379
2390
  qry.expand(expandDetail);
2380
2391
  }
2381
2392
  qry.where(this.parent.parentIdMapping, 'equal', rowDetails.record[this.parent.idMapping]);
@@ -2458,7 +2469,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2458
2469
  }
2459
2470
  }
2460
2471
  }
2461
- result[parseInt(r.toString(), 10)].taskData = extend({}, result[parseInt(r.toString(), 10)]);
2472
+ result[parseInt(r.toString(), 10)].taskData = extend$1({}, result[parseInt(r.toString(), 10)]);
2462
2473
  if (result[parseInt(r.toString(), 10)]["" + _this.parent.parentIdMapping] && _this.parent.enableVirtualization && _this.parent["" + remoteExpandedData].length) {
2463
2474
  for (var i = 0; i < _this.parent["" + remoteExpandedData].length; i++) {
2464
2475
  if (result[parseInt(r.toString(), 10)]["" + _this.parent.parentIdMapping] === _this.parent["" + remoteExpandedData][parseInt(i.toString(), 10)]["" + _this.parent.idMapping]) {
@@ -2486,7 +2497,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2486
2497
  }
2487
2498
  }
2488
2499
  else {
2489
- var parentData = extend({}, rowDetails.record);
2500
+ var parentData = extend$1({}, rowDetails.record);
2490
2501
  delete parentData.childRecords;
2491
2502
  result[parseInt(r.toString(), 10)].parentItem = parentData;
2492
2503
  result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
@@ -2494,7 +2505,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2494
2505
  }
2495
2506
  else {
2496
2507
  result[parseInt(r.toString(), 10)].level = rowDetails.record.level + 1;
2497
- var parentData = extend({}, rowDetails.record);
2508
+ var parentData = extend$1({}, rowDetails.record);
2498
2509
  delete parentData.childRecords;
2499
2510
  result[parseInt(r.toString(), 10)].parentItem = parentData;
2500
2511
  result[parseInt(r.toString(), 10)].parentUniqueID = rowDetails.record.uniqueID;
@@ -2614,7 +2625,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2614
2625
  var treeGridData = [];
2615
2626
  var keys = Object.keys(data);
2616
2627
  for (var i = 0, len = keys.length; i < len; i++) {
2617
- var currentData = extend({}, data[parseInt(i.toString(), 10)]);
2628
+ var currentData = extend$1({}, data[parseInt(i.toString(), 10)]);
2618
2629
  currentData.taskData = data[parseInt(i.toString(), 10)];
2619
2630
  var level = 0;
2620
2631
  this.storedIndex++;
@@ -2642,7 +2653,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2642
2653
  currentData.uniqueID = getUid(this.parent.element.id + '_data_');
2643
2654
  setValue('uniqueIDCollection.' + currentData.uniqueID, currentData, this.parent);
2644
2655
  if (!isNullOrUndefined(parentRecords)) {
2645
- var parentData = extend({}, parentRecords);
2656
+ var parentData = extend$1({}, parentRecords);
2646
2657
  delete parentData.childRecords;
2647
2658
  delete parentData[this.parent.childMapping];
2648
2659
  if (this.isSelfReference) {
@@ -2924,7 +2935,7 @@ var ContextMenuItems;
2924
2935
  ContextMenuItems[ContextMenuItems["RowOutdent"] = 17] = "RowOutdent";
2925
2936
  })(ContextMenuItems || (ContextMenuItems = {}));
2926
2937
 
2927
- var __extends$9 = (undefined && undefined.__extends) || (function () {
2938
+ var __extends$8 = (undefined && undefined.__extends) || (function () {
2928
2939
  var extendStatics = function (d, b) {
2929
2940
  extendStatics = Object.setPrototypeOf ||
2930
2941
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -2937,7 +2948,7 @@ var __extends$9 = (undefined && undefined.__extends) || (function () {
2937
2948
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2938
2949
  };
2939
2950
  })();
2940
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2951
+ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2941
2952
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2942
2953
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2943
2954
  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;
@@ -2947,38 +2958,38 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
2947
2958
  * Configures the paging behavior of the TreeGrid.
2948
2959
  */
2949
2960
  var PageSettings = /** @__PURE__ @class */ (function (_super) {
2950
- __extends$9(PageSettings, _super);
2961
+ __extends$8(PageSettings, _super);
2951
2962
  function PageSettings() {
2952
2963
  return _super !== null && _super.apply(this, arguments) || this;
2953
2964
  }
2954
- __decorate$7([
2965
+ __decorate$6([
2955
2966
  Property(12)
2956
2967
  ], PageSettings.prototype, "pageSize", void 0);
2957
- __decorate$7([
2968
+ __decorate$6([
2958
2969
  Property(8)
2959
2970
  ], PageSettings.prototype, "pageCount", void 0);
2960
- __decorate$7([
2971
+ __decorate$6([
2961
2972
  Property(1)
2962
2973
  ], PageSettings.prototype, "currentPage", void 0);
2963
- __decorate$7([
2974
+ __decorate$6([
2964
2975
  Property()
2965
2976
  ], PageSettings.prototype, "totalRecordsCount", void 0);
2966
- __decorate$7([
2977
+ __decorate$6([
2967
2978
  Property(false)
2968
2979
  ], PageSettings.prototype, "enableQueryString", void 0);
2969
- __decorate$7([
2980
+ __decorate$6([
2970
2981
  Property(false)
2971
2982
  ], PageSettings.prototype, "pageSizes", void 0);
2972
- __decorate$7([
2983
+ __decorate$6([
2973
2984
  Property(null)
2974
2985
  ], PageSettings.prototype, "template", void 0);
2975
- __decorate$7([
2986
+ __decorate$6([
2976
2987
  Property('All')
2977
2988
  ], PageSettings.prototype, "pageSizeMode", void 0);
2978
2989
  return PageSettings;
2979
2990
  }(ChildProperty));
2980
2991
 
2981
- var __extends$10 = (undefined && undefined.__extends) || (function () {
2992
+ var __extends$9 = (undefined && undefined.__extends) || (function () {
2982
2993
  var extendStatics = function (d, b) {
2983
2994
  extendStatics = Object.setPrototypeOf ||
2984
2995
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -2991,7 +3002,7 @@ var __extends$10 = (undefined && undefined.__extends) || (function () {
2991
3002
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2992
3003
  };
2993
3004
  })();
2994
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3005
+ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2995
3006
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2996
3007
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2997
3008
  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;
@@ -3001,7 +3012,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
3001
3012
  * Configures the TreeGrid's aggregate column.
3002
3013
  */
3003
3014
  var AggregateColumn = /** @__PURE__ @class */ (function (_super) {
3004
- __extends$10(AggregateColumn, _super);
3015
+ __extends$9(AggregateColumn, _super);
3005
3016
  function AggregateColumn() {
3006
3017
  var _this = _super !== null && _super.apply(this, arguments) || this;
3007
3018
  _this.intl = new Internationalization();
@@ -3069,41 +3080,41 @@ var AggregateColumn = /** @__PURE__ @class */ (function (_super) {
3069
3080
  AggregateColumn.prototype.setPropertiesSilent = function (prop) {
3070
3081
  this.setProperties(prop, true);
3071
3082
  };
3072
- __decorate$8([
3083
+ __decorate$7([
3073
3084
  Property()
3074
3085
  ], AggregateColumn.prototype, "type", void 0);
3075
- __decorate$8([
3086
+ __decorate$7([
3076
3087
  Property()
3077
3088
  ], AggregateColumn.prototype, "footerTemplate", void 0);
3078
- __decorate$8([
3089
+ __decorate$7([
3079
3090
  Property()
3080
3091
  ], AggregateColumn.prototype, "field", void 0);
3081
- __decorate$8([
3092
+ __decorate$7([
3082
3093
  Property()
3083
3094
  ], AggregateColumn.prototype, "format", void 0);
3084
- __decorate$8([
3095
+ __decorate$7([
3085
3096
  Property()
3086
3097
  ], AggregateColumn.prototype, "columnName", void 0);
3087
- __decorate$8([
3098
+ __decorate$7([
3088
3099
  Property()
3089
3100
  ], AggregateColumn.prototype, "customAggregate", void 0);
3090
3101
  return AggregateColumn;
3091
3102
  }(ChildProperty));
3092
3103
  var AggregateRow = /** @__PURE__ @class */ (function (_super) {
3093
- __extends$10(AggregateRow, _super);
3104
+ __extends$9(AggregateRow, _super);
3094
3105
  function AggregateRow() {
3095
3106
  return _super !== null && _super.apply(this, arguments) || this;
3096
3107
  }
3097
- __decorate$8([
3108
+ __decorate$7([
3098
3109
  Collection([], AggregateColumn)
3099
3110
  ], AggregateRow.prototype, "columns", void 0);
3100
- __decorate$8([
3111
+ __decorate$7([
3101
3112
  Property(true)
3102
3113
  ], AggregateRow.prototype, "showChildSummary", void 0);
3103
3114
  return AggregateRow;
3104
3115
  }(ChildProperty));
3105
3116
 
3106
- var __extends$11 = (undefined && undefined.__extends) || (function () {
3117
+ var __extends$a = (undefined && undefined.__extends) || (function () {
3107
3118
  var extendStatics = function (d, b) {
3108
3119
  extendStatics = Object.setPrototypeOf ||
3109
3120
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3116,7 +3127,7 @@ var __extends$11 = (undefined && undefined.__extends) || (function () {
3116
3127
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3117
3128
  };
3118
3129
  })();
3119
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3130
+ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3120
3131
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3121
3132
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3122
3133
  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;
@@ -3126,47 +3137,47 @@ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators,
3126
3137
  * Configures the edit behavior of the TreeGrid.
3127
3138
  */
3128
3139
  var EditSettings = /** @__PURE__ @class */ (function (_super) {
3129
- __extends$11(EditSettings, _super);
3140
+ __extends$a(EditSettings, _super);
3130
3141
  function EditSettings() {
3131
3142
  return _super !== null && _super.apply(this, arguments) || this;
3132
3143
  }
3133
- __decorate$9([
3144
+ __decorate$8([
3134
3145
  Property(false)
3135
3146
  ], EditSettings.prototype, "allowAdding", void 0);
3136
- __decorate$9([
3147
+ __decorate$8([
3137
3148
  Property(false)
3138
3149
  ], EditSettings.prototype, "allowEditing", void 0);
3139
- __decorate$9([
3150
+ __decorate$8([
3140
3151
  Property(false)
3141
3152
  ], EditSettings.prototype, "allowDeleting", void 0);
3142
- __decorate$9([
3153
+ __decorate$8([
3143
3154
  Property('Cell')
3144
3155
  ], EditSettings.prototype, "mode", void 0);
3145
- __decorate$9([
3156
+ __decorate$8([
3146
3157
  Property('Top')
3147
3158
  ], EditSettings.prototype, "newRowPosition", void 0);
3148
- __decorate$9([
3159
+ __decorate$8([
3149
3160
  Property(true)
3150
3161
  ], EditSettings.prototype, "allowEditOnDblClick", void 0);
3151
- __decorate$9([
3162
+ __decorate$8([
3152
3163
  Property(true)
3153
3164
  ], EditSettings.prototype, "showConfirmDialog", void 0);
3154
- __decorate$9([
3165
+ __decorate$8([
3155
3166
  Property(false)
3156
3167
  ], EditSettings.prototype, "showDeleteConfirmDialog", void 0);
3157
- __decorate$9([
3168
+ __decorate$8([
3158
3169
  Property('')
3159
3170
  ], EditSettings.prototype, "template", void 0);
3160
- __decorate$9([
3171
+ __decorate$8([
3161
3172
  Property({})
3162
3173
  ], EditSettings.prototype, "dialog", void 0);
3163
- __decorate$9([
3174
+ __decorate$8([
3164
3175
  Property(false)
3165
3176
  ], EditSettings.prototype, "allowNextRowEdit", void 0);
3166
3177
  return EditSettings;
3167
3178
  }(ChildProperty));
3168
3179
 
3169
- var __extends$12 = (undefined && undefined.__extends) || (function () {
3180
+ var __extends$b = (undefined && undefined.__extends) || (function () {
3170
3181
  var extendStatics = function (d, b) {
3171
3182
  extendStatics = Object.setPrototypeOf ||
3172
3183
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3179,7 +3190,7 @@ var __extends$12 = (undefined && undefined.__extends) || (function () {
3179
3190
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3180
3191
  };
3181
3192
  })();
3182
- var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3193
+ var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3183
3194
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3184
3195
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3185
3196
  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;
@@ -3189,14 +3200,14 @@ var __decorate$10 = (undefined && undefined.__decorate) || function (decorators,
3189
3200
  * Represents the field name and direction of sort column.
3190
3201
  */
3191
3202
  var SortDescriptor = /** @__PURE__ @class */ (function (_super) {
3192
- __extends$12(SortDescriptor, _super);
3203
+ __extends$b(SortDescriptor, _super);
3193
3204
  function SortDescriptor() {
3194
3205
  return _super !== null && _super.apply(this, arguments) || this;
3195
3206
  }
3196
- __decorate$10([
3207
+ __decorate$9([
3197
3208
  Property()
3198
3209
  ], SortDescriptor.prototype, "field", void 0);
3199
- __decorate$10([
3210
+ __decorate$9([
3200
3211
  Property()
3201
3212
  ], SortDescriptor.prototype, "direction", void 0);
3202
3213
  return SortDescriptor;
@@ -3205,14 +3216,14 @@ var SortDescriptor = /** @__PURE__ @class */ (function (_super) {
3205
3216
  * Configures the sorting behavior of TreeGrid.
3206
3217
  */
3207
3218
  var SortSettings = /** @__PURE__ @class */ (function (_super) {
3208
- __extends$12(SortSettings, _super);
3219
+ __extends$b(SortSettings, _super);
3209
3220
  function SortSettings() {
3210
3221
  return _super !== null && _super.apply(this, arguments) || this;
3211
3222
  }
3212
- __decorate$10([
3223
+ __decorate$9([
3213
3224
  Collection([], SortDescriptor)
3214
3225
  ], SortSettings.prototype, "columns", void 0);
3215
- __decorate$10([
3226
+ __decorate$9([
3216
3227
  Property(true)
3217
3228
  ], SortSettings.prototype, "allowUnsort", void 0);
3218
3229
  return SortSettings;
@@ -3259,7 +3270,7 @@ function editAction(details, control, isSelfReference, addRowIndex, selectedInde
3259
3270
  modifiedData = extendArray(value);
3260
3271
  }
3261
3272
  else {
3262
- modifiedData.push(extend({}, value));
3273
+ modifiedData.push(extend$1({}, value));
3263
3274
  }
3264
3275
  if (!isSkip && (action !== 'add' ||
3265
3276
  (control.editSettings.newRowPosition !== 'Top' && control.editSettings.newRowPosition !== 'Bottom'))) {
@@ -3382,7 +3393,7 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
3382
3393
  var value;
3383
3394
  var isSkip = false;
3384
3395
  var currentViewRecords = control.grid.getCurrentViewRecords();
3385
- value = extend({}, details.value);
3396
+ value = extend$1({}, details.value);
3386
3397
  value = getPlainData(value);
3387
3398
  switch (control.editSettings.newRowPosition) {
3388
3399
  case 'Top':
@@ -3395,28 +3406,28 @@ function addAction(details, treeData, control, isSelfReference, addRowIndex, sel
3395
3406
  break;
3396
3407
  case 'Above':
3397
3408
  if (!isNullOrUndefined(addRowRecord)) {
3398
- value = extend({}, addRowRecord);
3409
+ value = extend$1({}, addRowRecord);
3399
3410
  value = getPlainData(value);
3400
3411
  }
3401
3412
  else {
3402
- value = extend({}, currentViewRecords[addRowIndex + 1]);
3413
+ value = extend$1({}, currentViewRecords[addRowIndex + 1]);
3403
3414
  value = getPlainData(value);
3404
3415
  }
3405
3416
  break;
3406
3417
  case 'Below':
3407
3418
  case 'Child':
3408
3419
  if (!isNullOrUndefined(addRowRecord)) {
3409
- value = extend({}, addRowRecord);
3420
+ value = extend$1({}, addRowRecord);
3410
3421
  value = getPlainData(value);
3411
3422
  }
3412
3423
  else {
3413
3424
  var primaryKeys = control.grid.getPrimaryKeyFieldNames()[0];
3414
3425
  var currentdata = currentViewRecords[parseInt(addRowIndex.toString(), 10)];
3415
3426
  if (!isNullOrUndefined(currentdata) && currentdata["" + primaryKeys] === details.value["" + primaryKeys] || selectedIndex !== -1) {
3416
- value = extend({}, currentdata);
3427
+ value = extend$1({}, currentdata);
3417
3428
  }
3418
3429
  else {
3419
- value = extend({}, details.value);
3430
+ value = extend$1({}, details.value);
3420
3431
  }
3421
3432
  value = getPlainData(value);
3422
3433
  var internalProperty = 'internalProperties';
@@ -3625,7 +3636,7 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
3625
3636
  }
3626
3637
  }
3627
3638
 
3628
- var __extends$13 = (undefined && undefined.__extends) || (function () {
3639
+ var __extends$c = (undefined && undefined.__extends) || (function () {
3629
3640
  var extendStatics = function (d, b) {
3630
3641
  extendStatics = Object.setPrototypeOf ||
3631
3642
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3638,7 +3649,7 @@ var __extends$13 = (undefined && undefined.__extends) || (function () {
3638
3649
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3639
3650
  };
3640
3651
  })();
3641
- var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3652
+ var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3642
3653
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3643
3654
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3644
3655
  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;
@@ -3648,23 +3659,23 @@ var __decorate$11 = (undefined && undefined.__decorate) || function (decorators,
3648
3659
  * Configures the infinite scroll behavior of Tree Grid.
3649
3660
  */
3650
3661
  var InfiniteScrollSettings = /** @__PURE__ @class */ (function (_super) {
3651
- __extends$13(InfiniteScrollSettings, _super);
3662
+ __extends$c(InfiniteScrollSettings, _super);
3652
3663
  function InfiniteScrollSettings() {
3653
3664
  return _super !== null && _super.apply(this, arguments) || this;
3654
3665
  }
3655
- __decorate$11([
3666
+ __decorate$a([
3656
3667
  Property(false)
3657
3668
  ], InfiniteScrollSettings.prototype, "enableCache", void 0);
3658
- __decorate$11([
3669
+ __decorate$a([
3659
3670
  Property(3)
3660
3671
  ], InfiniteScrollSettings.prototype, "maxBlocks", void 0);
3661
- __decorate$11([
3672
+ __decorate$a([
3662
3673
  Property(3)
3663
3674
  ], InfiniteScrollSettings.prototype, "initialBlocks", void 0);
3664
3675
  return InfiniteScrollSettings;
3665
3676
  }(ChildProperty));
3666
3677
 
3667
- var __extends = (undefined && undefined.__extends) || (function () {
3678
+ var __extends$d = (undefined && undefined.__extends) || (function () {
3668
3679
  var extendStatics = function (d, b) {
3669
3680
  extendStatics = Object.setPrototypeOf ||
3670
3681
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -3677,7 +3688,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
3677
3688
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3678
3689
  };
3679
3690
  })();
3680
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3691
+ var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
3681
3692
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3682
3693
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3683
3694
  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;
@@ -3694,7 +3705,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
3694
3705
  * ```
3695
3706
  */
3696
3707
  var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3697
- __extends(TreeGrid, _super);
3708
+ __extends$d(TreeGrid, _super);
3698
3709
  function TreeGrid(options, element) {
3699
3710
  var _this = _super.call(this, options, element) || this;
3700
3711
  _this.dataResults = {};
@@ -3729,15 +3740,15 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3729
3740
  return false;
3730
3741
  }
3731
3742
  };
3732
- TreeGrid_1.Inject(Selection, Logger$1);
3743
+ TreeGrid_1.Inject(Selection, Logger);
3733
3744
  setValue('mergePersistData', _this.mergePersistTreeGridData, _this);
3734
3745
  var logger = 'Logger';
3735
3746
  if (!isNullOrUndefined(_this.injectedModules["" + logger])) {
3736
- Grid.Inject(Logger);
3747
+ Grid.Inject(Logger$1);
3737
3748
  }
3738
3749
  var freezeModulePresent = _this.injectedModules.filter(function (e) {
3739
3750
  if (e.prototype.getModuleName() === 'freeze') {
3740
- Grid.Inject(Freeze);
3751
+ Grid.Inject(Freeze$1);
3741
3752
  }
3742
3753
  });
3743
3754
  _this.grid = new Grid();
@@ -3816,6 +3827,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3816
3827
  };
3817
3828
  /**
3818
3829
  * Exports the TreeGrid data to the specified URL using a POST request.
3830
+ *
3819
3831
  * @param {string} url - Defines exporting url
3820
3832
  * @returns {void}
3821
3833
  */
@@ -3846,6 +3858,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3846
3858
  };
3847
3859
  /**
3848
3860
  * Sets the header text and other properties for an array of columns based on specified criteria.
3861
+ *
3849
3862
  * @param {Column[]} columns - Defines array of columns
3850
3863
  * @param {string[]} include - Defines array of sting
3851
3864
  * @returns {Column[]} returns array of columns
@@ -3932,6 +3945,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3932
3945
  * @returns {void}
3933
3946
  */
3934
3947
  TreeGrid.prototype.sortByColumn = function (columnName, direction, isMultiSort) {
3948
+ if (isNullOrUndefined(columnName) && isNullOrUndefined(direction)) {
3949
+ var error = 'The provided value for the columnName and direction is undefined. Please ensure the columnName and direction contains string.';
3950
+ this.trigger(actionFailure, { error: error });
3951
+ }
3935
3952
  if (this.sortModule) {
3936
3953
  this.sortModule.sortColumn(columnName, direction, isMultiSort);
3937
3954
  }
@@ -3992,21 +4009,27 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3992
4009
  * @returns {void}
3993
4010
  */
3994
4011
  TreeGrid.prototype.reorderColumns = function (fromFName, toFName) {
4012
+ if (isNullOrUndefined(fromFName) && isNullOrUndefined(toFName)) {
4013
+ var error = 'The provided value for the fromFName and toFName is undefined. Please ensure the fromFName and toFName contains string.';
4014
+ this.trigger(actionFailure, { error: error });
4015
+ }
3995
4016
  this.grid.reorderColumns(fromFName, toFName);
3996
4017
  };
3997
4018
  TreeGrid.prototype.TreeGridLocale = function () {
3998
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
3999
- var locale = L10n.locale;
4000
- var localeObject = {};
4001
- setValue(this.locale, {}, localeObject);
4002
- var gridLocale;
4003
- gridLocale = {};
4004
- gridLocale = getObject(this.locale, locale);
4005
- var treeGridLocale;
4006
- treeGridLocale = {};
4007
- treeGridLocale = getObject(this.getModuleName(), gridLocale);
4008
- setValue('grid', treeGridLocale, getObject(this.locale, localeObject));
4009
- L10n.load(localeObject);
4019
+ if (!isNullOrUndefined(this.locale)) {
4020
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
4021
+ var locale = L10n.locale;
4022
+ var localeObject = {};
4023
+ setValue(this.locale, {}, localeObject);
4024
+ var gridLocale = void 0;
4025
+ gridLocale = {};
4026
+ gridLocale = getObject(this.locale, locale);
4027
+ var treeGridLocale = void 0;
4028
+ treeGridLocale = {};
4029
+ treeGridLocale = getObject(this.getModuleName(), gridLocale);
4030
+ setValue('grid', treeGridLocale, getObject(this.locale, localeObject));
4031
+ L10n.load(localeObject);
4032
+ }
4010
4033
  };
4011
4034
  /**
4012
4035
  * By default, prints all the pages of the TreeGrid and hides the pager.
@@ -4053,45 +4076,57 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4053
4076
  }
4054
4077
  break;
4055
4078
  case 'downArrow':
4056
- if (!this.enableVirtualization) {
4079
+ if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
4057
4080
  target = e.target;
4058
- parentTarget = target.parentElement;
4059
- if (!isNullOrUndefined(parentTarget)) {
4060
- var cellIndex = parentTarget.cellIndex;
4061
- if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
4062
- parentTarget = target;
4063
- }
4064
- summaryElement = this.findnextRowElement(parentTarget);
4065
- if (summaryElement !== null) {
4066
- var cellIndex_1 = e.target.cellIndex;
4067
- var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
4068
- addClass([row_1], 'e-focused');
4069
- addClass([row_1], 'e-focus');
4070
- }
4071
- else {
4072
- this.clearSelection();
4081
+ if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
4082
+ target = parentsUntil(target, 'e-rowcell');
4083
+ }
4084
+ if (!isNullOrUndefined(target)) {
4085
+ parentTarget = target.parentElement;
4086
+ if (!isNullOrUndefined(parentTarget)) {
4087
+ var cellIndex = parentTarget.cellIndex;
4088
+ if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
4089
+ parentTarget = target;
4090
+ }
4091
+ summaryElement = this.findnextRowElement(parentTarget);
4092
+ if (summaryElement !== null) {
4093
+ var cellIndex_1 = target.cellIndex;
4094
+ var row_1 = summaryElement.children[parseInt(cellIndex_1.toString(), 10)];
4095
+ addClass([row_1], 'e-focused');
4096
+ addClass([row_1], 'e-focus');
4097
+ }
4098
+ else {
4099
+ this.clearSelection();
4100
+ }
4073
4101
  }
4074
4102
  }
4075
4103
  }
4076
4104
  break;
4077
4105
  case 'upArrow':
4078
- if (!this.enableVirtualization) {
4106
+ if (!this.enableVirtualization && isNullOrUndefined(this.rowTemplate)) {
4079
4107
  target = e.target;
4080
- parentTarget = target.parentElement;
4081
- if (!isNullOrUndefined(parentTarget)) {
4082
- var cellIndex = parentTarget.cellIndex;
4083
- if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
4084
- parentTarget = target;
4085
- }
4086
- summaryElement = this.findPreviousRowElement(parentTarget);
4087
- if (summaryElement !== null) {
4088
- var cIndex = e.target.cellIndex;
4089
- var rows = summaryElement.children[parseInt(cIndex.toString(), 10)];
4090
- addClass([rows], 'e-focused');
4091
- addClass([rows], 'e-focus');
4092
- }
4093
- else {
4094
- this.clearSelection();
4108
+ if (!isNullOrUndefined(target.querySelectorAll('.e-rowcell'))) {
4109
+ target = parentsUntil(target, 'e-rowcell');
4110
+ }
4111
+ if (!isNullOrUndefined(target)) {
4112
+ parentTarget = target.parentElement;
4113
+ if (!isNullOrUndefined(parentTarget)) {
4114
+ var cellIndex = parentTarget.cellIndex;
4115
+ if (this.grid.getColumnByIndex(cellIndex).editType === 'dropdownedit' && isNullOrUndefined(this.grid.getColumnByIndex(cellIndex).edit['obj'])) {
4116
+ parentTarget = target;
4117
+ }
4118
+ summaryElement = this.findPreviousRowElement(parentTarget);
4119
+ if (summaryElement !== null) {
4120
+ var cellIndex_2 = target.cellIndex;
4121
+ if (!isNullOrUndefined(cellIndex_2)) {
4122
+ var row_2 = summaryElement.children[parseInt(cellIndex_2.toString(), 10)];
4123
+ addClass([row_2], 'e-focused');
4124
+ addClass([row_2], 'e-focus');
4125
+ }
4126
+ }
4127
+ else {
4128
+ this.clearSelection();
4129
+ }
4095
4130
  }
4096
4131
  }
4097
4132
  }
@@ -4165,7 +4200,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4165
4200
  TreeGrid.prototype.requiredModules = function () {
4166
4201
  var modules = [];
4167
4202
  var splitFrozenCount = 'splitFrozenCount';
4168
- this.grid["" + splitFrozenCount](this.getColumns());
4203
+ if (!this.isReact && isNullOrUndefined(this['changedProperties'].columns)) {
4204
+ this.grid["" + splitFrozenCount](this.getColumns());
4205
+ }
4169
4206
  if (this.isDestroyed) {
4170
4207
  return modules;
4171
4208
  }
@@ -4285,7 +4322,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4285
4322
  name: 'Edit'
4286
4323
  });
4287
4324
  }
4288
- if (this.isCommandColumn(this.columns)) {
4325
+ if (!isNullOrUndefined(this.columns) && this.isCommandColumn(this.columns)) {
4289
4326
  modules.push({
4290
4327
  member: 'commandColumn',
4291
4328
  args: [this],
@@ -4383,7 +4420,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4383
4420
  this.log(['mapping_fields_missing']);
4384
4421
  this.renderModule = new Render(this);
4385
4422
  this.dataModule = new DataManipulation(this);
4386
- this.printModule = new Print$1(this);
4423
+ this.printModule = new Print(this);
4387
4424
  this.trigger(load);
4388
4425
  this.autoGenerateColumns();
4389
4426
  this.initialRender = true;
@@ -4418,6 +4455,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4418
4455
  var root = 'root';
4419
4456
  this.grid["" + root] = this["" + root] ? this["" + root] : this;
4420
4457
  this.grid.appendTo(gridContainer);
4458
+ this.actionFailureHandler();
4421
4459
  var gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
4422
4460
  gridContent.setAttribute('tabindex', '0');
4423
4461
  var contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
@@ -4440,6 +4478,85 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4440
4478
  }
4441
4479
  };
4442
4480
  };
4481
+ TreeGrid.prototype.actionFailureHandler = function () {
4482
+ var _this = this;
4483
+ var failureCases = [];
4484
+ var primaryKeyFieldNames = this.getPrimaryKeyFieldNames();
4485
+ var RecordsCount = this.flatData.length;
4486
+ if ((this.editSettings.allowAdding || this.editSettings.allowDeleting || this.editSettings.allowEditing)
4487
+ && primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
4488
+ failureCases.push('For the CRUD actions, it is necessary to enable Primary Key field for the unique data column.');
4489
+ }
4490
+ if (this.allowRowDragAndDrop && primaryKeyFieldNames.length === 0 && RecordsCount !== 0) {
4491
+ failureCases.push('For the Row Drag and Drop actions, it is necessary to enable Primary Key field for the unique data column.');
4492
+ }
4493
+ if (this.allowPaging && this.enableVirtualization) {
4494
+ failureCases.push('Paging is not allowed in virtualization case.');
4495
+ }
4496
+ if (RecordsCount === 0 && this.columns.length === 0) {
4497
+ failureCases.push('Either of the Data source or columns should be given.');
4498
+ }
4499
+ if (this.frozenColumns > 0 && this.columnModel.filter(function (col) { return col.isFrozen; })) {
4500
+ failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
4501
+ }
4502
+ if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
4503
+ failureCases.push('Virtual scrolling is not compatible with the detail template');
4504
+ }
4505
+ if (this.stackedHeader && !isNullOrUndefined(this.detailTemplate)) {
4506
+ failureCases.push('Virtual scrolling is not compatible with the detail template');
4507
+ }
4508
+ if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }) || this.frozenRows > 0)
4509
+ && (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
4510
+ failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
4511
+ }
4512
+ if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
4513
+ failureCases.push('Frozen rows and columns are not supported with cell editing.');
4514
+ }
4515
+ if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
4516
+ failureCases.push('Selection is not supported in RowTemplate');
4517
+ }
4518
+ if (this.treeColumnIndex < 0) {
4519
+ failureCases.push('For showing tree structure it is must to set the TreeColumnIndex value.');
4520
+ }
4521
+ if (this.treeColumnIndex >= this.columns.length) {
4522
+ failureCases.push('TreeColumnIndex value should not exceed the total column count.');
4523
+ }
4524
+ if (this.enableVirtualization && (!/[0-9]$/.test(this.columnModel.filter(function (col) { return col.width; }).toString())
4525
+ && !/[px]$/.test(this.columnModel.filter(function (col) { return col.width; }).toString()))
4526
+ || (/[0-9]$/.test(this.height.toString()) && /[px]$/.test(this.height.toString()))) {
4527
+ failureCases.push('column width and height should be in pixels');
4528
+ }
4529
+ if (!isNullOrUndefined(this.childMapping) && !isNullOrUndefined(this.idMapping)) {
4530
+ failureCases.push('Both IdMapping and ChildMapping should not be used together for tree grid rendering.');
4531
+ }
4532
+ if ((!isNullOrUndefined(this.idMapping) && (isNullOrUndefined(this.parentIdMapping))) ||
4533
+ ((isNullOrUndefined(this.idMapping) && (!isNullOrUndefined(this.parentIdMapping))))) {
4534
+ failureCases.push('IdMapping and ParentIdMapping properties should be defined and vice versa.');
4535
+ }
4536
+ var checkboxColumn = this.columnModel.filter(function (col) { return col.showCheckbox; });
4537
+ var treeColumn = this.columns[this.treeColumnIndex];
4538
+ if (checkboxColumn.length !== 0) {
4539
+ if (checkboxColumn !== treeColumn) {
4540
+ failureCases.push('ShowCheckbox column should not be defined other than the tree column.');
4541
+ }
4542
+ if (checkboxColumn.length > 1) {
4543
+ failureCases.push('Only one column can have the ShowCheckbox option enabled.');
4544
+ }
4545
+ }
4546
+ var alignColumn = this.columnModel.filter(function (col) { return col.textAlign === 'Right' && col.field === _this.columnModel[_this.treeColumnIndex].field; });
4547
+ if (alignColumn.length !== 0) {
4548
+ failureCases.push('TextAlign right for the tree column is not applicable.');
4549
+ }
4550
+ if (failureCases.length > 0) {
4551
+ var failureEventArgs_1 = {
4552
+ error: {}
4553
+ };
4554
+ failureCases.forEach(function (failureCase, index) {
4555
+ failureEventArgs_1.error[parseInt(index.toString(), 10)] = failureCase;
4556
+ });
4557
+ this.trigger(actionFailure, failureEventArgs_1);
4558
+ }
4559
+ };
4443
4560
  TreeGrid.prototype.refreshToolbarItems = function () {
4444
4561
  var toolbarElement = this.toolbarModule.getToolbar();
4445
4562
  var indentID = this.element.id + '_gridcontrol_indent';
@@ -4647,11 +4764,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4647
4764
  _this.grid.on('initial-end', _this.afterGridRender, _this);
4648
4765
  if (!isNullOrUndefined(_this.loggerModule)) {
4649
4766
  var loggerModule = 'loggerModule';
4650
- _this.loggerModule = _this.grid["" + loggerModule] = new Logger$1(_this.grid);
4767
+ _this.loggerModule = _this.grid["" + loggerModule] = new Logger(_this.grid);
4651
4768
  }
4652
4769
  };
4653
4770
  this.grid.printComplete = this.triggerEvents.bind(this);
4654
- this.grid.actionFailure = this.triggerEvents.bind(this);
4771
+ this.grid.actionFailure = function (args) {
4772
+ _this.trigger(actionFailure, args);
4773
+ };
4655
4774
  this.extendedGridDataBoundEvent();
4656
4775
  this.extendedGridEvents();
4657
4776
  this.extendedGridActionEvents();
@@ -4740,7 +4859,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4740
4859
  treeGrid.notify('dataProcessor', args);
4741
4860
  //args = treeGrid.dataModule.dataProcessor(args);
4742
4861
  }
4743
- extend(args, treeGrid.dataResults);
4862
+ extend$1(args, treeGrid.dataResults);
4744
4863
  if (treeGrid.enableImmutableMode) {
4745
4864
  args.result = args.result.slice();
4746
4865
  }
@@ -5024,9 +5143,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5024
5143
  }
5025
5144
  else {
5026
5145
  if (_this.grid.isFrozenGrid() && _this.enableVirtualization && args['tableName'] === 'movable') {
5027
- var movableContent$$1 = _this.grid.element.querySelector('.' + movableContent);
5028
- var frozenContent$$1 = _this.grid.element.querySelector('.' + frozenContent);
5029
- movableContent$$1.style.height = frozenContent$$1.style.height = 'auto';
5146
+ var movableContent$1 = _this.grid.element.querySelector('.' + movableContent);
5147
+ var frozenContent$1 = _this.grid.element.querySelector('.' + frozenContent);
5148
+ movableContent$1.style.height = frozenContent$1.style.height = 'auto';
5030
5149
  }
5031
5150
  _this.trigger(actionComplete, args);
5032
5151
  }
@@ -5328,6 +5447,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5328
5447
  TreeGrid.prototype.onPropertyChanged = function (newProp) {
5329
5448
  var properties = Object.keys(newProp);
5330
5449
  var requireRefresh = false;
5450
+ if (properties.indexOf('columns') > -1) {
5451
+ this.grid.columns = this.getGridColumns(newProp.columns);
5452
+ this.grid['updateColumnObject']();
5453
+ requireRefresh = true;
5454
+ }
5331
5455
  for (var _i = 0, properties_1 = properties; _i < properties_1.length; _i++) {
5332
5456
  var prop = properties_1[_i];
5333
5457
  switch (prop) {
@@ -5747,7 +5871,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5747
5871
  if (this.grid.editModule) {
5748
5872
  if (!isNullOrUndefined(index)) {
5749
5873
  var griddata = this.grid.getCurrentViewRecords()[parseInt(index.toString(), 10)];
5750
- extend(griddata, data);
5874
+ extend$1(griddata, data);
5751
5875
  this.grid.editModule.updateRow(index, griddata);
5752
5876
  }
5753
5877
  else {
@@ -5764,6 +5888,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5764
5888
  * @returns {void}
5765
5889
  */
5766
5890
  TreeGrid.prototype.deleteRecord = function (fieldName, data) {
5891
+ if ((isNullOrUndefined(fieldName) && (isNullOrUndefined(data)) || (this.getSelectedRecords().length <= 0))) {
5892
+ var error = 'The provided value for the fieldName and data is undefined. Please ensure the fieldName and data contains number.';
5893
+ this.trigger(actionFailure, { error: error });
5894
+ }
5767
5895
  if (this.grid.editModule) {
5768
5896
  this.grid.editModule.deleteRecord(fieldName, data);
5769
5897
  }
@@ -5832,6 +5960,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5832
5960
  * @returns {void}
5833
5961
  */
5834
5962
  TreeGrid.prototype.deleteRow = function (tr) {
5963
+ if (isNullOrUndefined(tr)) {
5964
+ var error = 'The provided value for the tr is undefined. Please ensure the tr contains HTMLTableRowElement.';
5965
+ this.trigger(actionFailure, { error: error });
5966
+ }
5835
5967
  if (this.grid.editModule) {
5836
5968
  this.grid.editModule.deleteRow(tr);
5837
5969
  }
@@ -5857,9 +5989,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5857
5989
  this.grid.setCellValue(key, field, value);
5858
5990
  var rowIndex = this.grid.getRowIndexByPrimaryKey(key);
5859
5991
  var record = this.getCurrentViewRecords()[parseInt(rowIndex.toString(), 10)];
5860
- if (!isNullOrUndefined(record)) {
5861
- editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
5992
+ if (isNullOrUndefined(record)) {
5993
+ var error = 'The provided value for the record is undefined. Please ensure the record contains ITreeData.';
5994
+ this.trigger(actionFailure, { error: error });
5862
5995
  }
5996
+ editAction({ value: record, action: 'edit' }, this, this.isSelfReference, record.index, this.grid.selectedRowIndex, field);
5863
5997
  };
5864
5998
  /**
5865
5999
  * Updates and refresh the particular row values based on the given primary key value.
@@ -5897,8 +6031,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5897
6031
  this.grid.setRowData(key, rowData);
5898
6032
  var visibleRecords = this.getVisibleRecords();
5899
6033
  if (visibleRecords.length > 0 && key === (visibleRecords[visibleRecords.length - 1])["" + primaryKey]) {
5900
- var table$$1 = this.getContentTable();
5901
- var sHeight = table$$1.scrollHeight;
6034
+ var table = this.getContentTable();
6035
+ var sHeight = table.scrollHeight;
5902
6036
  var clientHeight = this.getContent().clientHeight;
5903
6037
  this.lastRowBorder(this.getRows()[currentRecords.indexOf(record)], sHeight <= clientHeight);
5904
6038
  }
@@ -5910,6 +6044,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5910
6044
  * @returns {void}
5911
6045
  */
5912
6046
  TreeGrid.prototype.goToPage = function (pageNo) {
6047
+ if (isNullOrUndefined(pageNo)) {
6048
+ var error = 'The provided value for the pageNo is undefined. Please ensure the pageNo contains number.';
6049
+ this.trigger(actionFailure, { error: error });
6050
+ }
5913
6051
  if (this.grid.pagerModule) {
5914
6052
  this.grid.pagerModule.goToPage(pageNo);
5915
6053
  }
@@ -6011,6 +6149,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6011
6149
  * @returns {void}
6012
6150
  */
6013
6151
  TreeGrid.prototype.hideColumns = function (keys, hideBy) {
6152
+ if (isNullOrUndefined(keys)) {
6153
+ var error = 'The provided value for the keys is undefined. Please ensure the keys contains string.';
6154
+ this.trigger(actionFailure, { error: error });
6155
+ }
6014
6156
  this.grid.hideColumns(keys, hideBy);
6015
6157
  this.updateColumnModel();
6016
6158
  };
@@ -6108,10 +6250,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6108
6250
  if (this.grid.columns.length !== this.columnModel.length) {
6109
6251
  this.stackedHeader = true;
6110
6252
  }
6111
- if (this.stackedHeader && this.allowResizing) {
6253
+ if (this.stackedHeader && this.allowResizing && !isNullOrUndefined(this.columns)) {
6112
6254
  this.updateColumnsWidth(this.columns);
6113
6255
  }
6114
- if (!this.stackedHeader) {
6256
+ if (!this.stackedHeader && !isNullOrUndefined(this.columns)) {
6115
6257
  merge(this.columns, this.columnModel);
6116
6258
  }
6117
6259
  this["" + deepMerge] = undefined; // Workaround for blazor updateModel
@@ -6120,10 +6262,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6120
6262
  TreeGrid.prototype.updateColumnsWidth = function (columns) {
6121
6263
  var _this = this;
6122
6264
  columns.forEach(function (column) {
6123
- if (column.columns) {
6265
+ if (!isNullOrUndefined(column) && column.columns) {
6124
6266
  _this.updateColumnsWidth(column.columns);
6125
6267
  }
6126
- else if (column.field) {
6268
+ else if (!isNullOrUndefined(column) && column.field) {
6127
6269
  var currentColumn = _this.grid.getColumnByField(column.field);
6128
6270
  if (!isNullOrUndefined(currentColumn)) {
6129
6271
  column.width = currentColumn.width;
@@ -6428,6 +6570,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6428
6570
  */
6429
6571
  TreeGrid.prototype.expandRow = function (row, record, key, level) {
6430
6572
  var _this = this;
6573
+ if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
6574
+ var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
6575
+ this.trigger(actionFailure, { error: error });
6576
+ }
6431
6577
  var parentRec = this.parentData;
6432
6578
  if (!this.enableVirtualization) {
6433
6579
  parentRec = this.flatData.filter(function (e) {
@@ -6451,13 +6597,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6451
6597
  if (expandingArgs.expandAll) {
6452
6598
  _this.expandCollapseAllChildren(record, 'expand', key, level);
6453
6599
  }
6454
- _this.expandRows(row, record, parentRec, key, level);
6600
+ _this.expandRows(row, record, parentRec);
6455
6601
  }
6456
6602
  });
6457
6603
  }
6458
6604
  else if ((!this.allowPaging || (pagerValuePresent && this.grid.pagerModule.pagerObj.pagerdropdownModule['dropDownListObject'].value === 'All')) &&
6459
6605
  !this.expandAllPrevent && this.isExpandingEventTriggered) {
6460
- this.expandRows(row, record, parentRec, key, level);
6606
+ this.expandRows(row, record, parentRec);
6461
6607
  }
6462
6608
  this.isExpandingEventTriggered = true;
6463
6609
  }
@@ -6468,13 +6614,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6468
6614
  if (expandingArgs.expandAll) {
6469
6615
  _this.expandCollapseAllChildren(record, 'expand', key, level);
6470
6616
  }
6471
- _this.expandRows(row, record, parentRec, key, level);
6617
+ _this.expandRows(row, record, parentRec);
6472
6618
  }
6473
6619
  });
6474
6620
  }
6475
6621
  };
6476
6622
  // Internal method to handle the rows expand
6477
- TreeGrid.prototype.expandRows = function (row, record, parentRec, key, level) {
6623
+ TreeGrid.prototype.expandRows = function (row, record, parentRec) {
6478
6624
  this.expandCollapse('expand', row, record);
6479
6625
  var children = 'Children';
6480
6626
  if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record["" + children]))) {
@@ -6545,6 +6691,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6545
6691
  */
6546
6692
  TreeGrid.prototype.collapseRow = function (row, record, key) {
6547
6693
  var _this = this;
6694
+ if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
6695
+ var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
6696
+ this.trigger(actionFailure, { error: error });
6697
+ }
6548
6698
  var parentRec = this.parentData;
6549
6699
  if (!this.enableVirtualization) {
6550
6700
  parentRec = this.flatData.filter(function (e) {
@@ -6561,12 +6711,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6561
6711
  if (collapsingArgs.collapseAll) {
6562
6712
  _this.expandCollapseAllChildren(record, 'collapse', key);
6563
6713
  }
6564
- _this.collapseRows(row, record, parentRec, key);
6714
+ _this.collapseRows(row, record, parentRec);
6565
6715
  }
6566
6716
  });
6567
6717
  }
6568
6718
  else if (!this.allowPaging && !this.collapseAllPrevent && this.isCollapsingEventTriggered) {
6569
- this.collapseRows(row, record, parentRec, key);
6719
+ this.collapseRows(row, record, parentRec);
6570
6720
  }
6571
6721
  this.isCollapsingEventTriggered = true;
6572
6722
  }
@@ -6574,13 +6724,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6574
6724
  var args = { data: record, row: row, cancel: false };
6575
6725
  this.trigger(collapsing, args, function (collapsingArgs) {
6576
6726
  if (!collapsingArgs.cancel && !isNullOrUndefined(record)) {
6577
- _this.collapseRows(row, record, parentRec, key);
6727
+ _this.collapseRows(row, record, parentRec);
6578
6728
  }
6579
6729
  });
6580
6730
  }
6581
6731
  };
6582
6732
  // Internal method for handling the rows collapse
6583
- TreeGrid.prototype.collapseRows = function (row, record, parentRec, key) {
6733
+ TreeGrid.prototype.collapseRows = function (row, record, parentRec) {
6584
6734
  this.expandCollapse('collapse', row, record);
6585
6735
  var collapseArgs = { data: record, row: row };
6586
6736
  if (!isRemoteData(this)) {
@@ -6624,6 +6774,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6624
6774
  * @returns {void}
6625
6775
  */
6626
6776
  TreeGrid.prototype.expandAtLevel = function (level) {
6777
+ if (isNullOrUndefined(level)) {
6778
+ var error = 'The provided value for the level is undefined. Please ensure the level contains number.';
6779
+ this.trigger(actionFailure, { error: error });
6780
+ }
6627
6781
  if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
6628
6782
  var rec = this.grid.dataSource.filter(function (e) {
6629
6783
  if (e.hasChildRecords && e.level === level) {
@@ -6646,6 +6800,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6646
6800
  * @returns {void}
6647
6801
  */
6648
6802
  TreeGrid.prototype.expandByKey = function (key) {
6803
+ if (isNullOrUndefined(key)) {
6804
+ var error = 'The provided value for the key is undefined. Please ensure the key contains number.';
6805
+ this.trigger(actionFailure, { error: error });
6806
+ }
6649
6807
  this.expandCollapseActionByKey(key, 'Expand');
6650
6808
  };
6651
6809
  TreeGrid.prototype.expandAction = function (record, key, level, isPaging) {
@@ -6703,6 +6861,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6703
6861
  * @returns {void}
6704
6862
  */
6705
6863
  TreeGrid.prototype.collapseAtLevel = function (level) {
6864
+ if (isNullOrUndefined(level)) {
6865
+ var error = 'The provided value for the level is undefined. Please ensure the level contains number.';
6866
+ this.trigger(actionFailure, { error: error });
6867
+ }
6706
6868
  if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)) {
6707
6869
  var record = this.grid.dataSource.filter(function (e) {
6708
6870
  if (e.hasChildRecords && e.level === level) {
@@ -6725,6 +6887,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6725
6887
  * @returns {void}
6726
6888
  */
6727
6889
  TreeGrid.prototype.collapseByKey = function (key) {
6890
+ if (isNullOrUndefined(key)) {
6891
+ var error = 'The provided value for the key is undefined. Please ensure the key contains number.';
6892
+ this.trigger(actionFailure, { error: error });
6893
+ }
6728
6894
  this.expandCollapseActionByKey(key, 'Collapse');
6729
6895
  };
6730
6896
  TreeGrid.prototype.expandCollapseActionByKey = function (key, action) {
@@ -6765,6 +6931,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6765
6931
  * @returns {void}
6766
6932
  */
6767
6933
  TreeGrid.prototype.expandAll = function () {
6934
+ if (this.getCurrentViewRecords().length === 0) {
6935
+ var error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
6936
+ this.trigger(actionFailure, { error: error });
6937
+ }
6768
6938
  this.isExpandedEventTriggered = false;
6769
6939
  this.isExpandingEventTriggered = false;
6770
6940
  this.expandCollapseAll('expand');
@@ -6775,6 +6945,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6775
6945
  * @returns {void}
6776
6946
  */
6777
6947
  TreeGrid.prototype.collapseAll = function () {
6948
+ if (this.getCurrentViewRecords().length === 0) {
6949
+ var error = 'The provided value for the datasource is undefined. Please ensure to add the dataSource.';
6950
+ this.trigger(actionFailure, { error: error });
6951
+ }
6778
6952
  this.isCollapsedEventTriggered = false;
6779
6953
  this.isCollapsingEventTriggered = false;
6780
6954
  this.expandCollapseAll('collapse');
@@ -6944,8 +7118,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6944
7118
  totalRows = [].slice.call(rows);
6945
7119
  for (var i = totalRows.length - 1; i >= 0; i--) {
6946
7120
  if (!isHidden(totalRows[parseInt(i.toString(), 10)])) {
6947
- var table$$1 = this.getContentTable();
6948
- var sHeight = table$$1.scrollHeight;
7121
+ var table = this.getContentTable();
7122
+ var sHeight = table.scrollHeight;
6949
7123
  var clientHeight = this.getContent().clientHeight;
6950
7124
  this.lastRowBorder(totalRows[parseInt(i.toString(), 10)], sHeight <= clientHeight);
6951
7125
  break;
@@ -7005,8 +7179,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7005
7179
  if (childData[parseInt(i.toString(), 10)]) {
7006
7180
  childData[parseInt(i.toString(), 10)].level = record.level + 1;
7007
7181
  childData[parseInt(i.toString(), 10)].index = Math.ceil(Math.random() * 1000);
7008
- childData[parseInt(i.toString(), 10)].parentItem = extend({}, record);
7009
- childData[parseInt(i.toString(), 10)].taskData = extend({}, childData[parseInt(i.toString(), 10)]);
7182
+ childData[parseInt(i.toString(), 10)].parentItem = extend$1({}, record);
7183
+ childData[parseInt(i.toString(), 10)].taskData = extend$1({}, childData[parseInt(i.toString(), 10)]);
7010
7184
  delete childData[parseInt(i.toString(), 10)].parentItem.childRecords;
7011
7185
  delete childData[parseInt(i.toString(), 10)].taskData.parentItem;
7012
7186
  childData[parseInt(i.toString(), 10)].parentUniqueID = record.uniqueID;
@@ -7334,6 +7508,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7334
7508
  * @returns {void}
7335
7509
  */
7336
7510
  TreeGrid.prototype.filterByColumn = function (fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator) {
7511
+ if (isNullOrUndefined(fieldName) && isNullOrUndefined(filterOperator) && isNullOrUndefined(filterValue)) {
7512
+ var error = 'The provided value for the fieldName, filterOperator and filterValue are undefined. Please ensure the fieldName, filterOperator and filterValue.';
7513
+ this.trigger(actionFailure, { error: error });
7514
+ }
7337
7515
  this.grid.filterByColumn(fieldName, filterOperator, filterValue, predicate, matchCase, ignoreAccent, actualFilterValue, actualOperator);
7338
7516
  };
7339
7517
  /**
@@ -7400,6 +7578,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7400
7578
  * @returns {void}
7401
7579
  */
7402
7580
  TreeGrid.prototype.paste = function (data, rowIndex, colIndex) {
7581
+ if (isNullOrUndefined(data) && isNullOrUndefined(rowIndex) && isNullOrUndefined(colIndex)) {
7582
+ var error = 'The provided value for the index is undefined. Please ensure the index contains number.';
7583
+ this.trigger(actionFailure, { error: error });
7584
+ }
7403
7585
  this.clipboardModule.paste(data, rowIndex, colIndex);
7404
7586
  };
7405
7587
  /**
@@ -7611,7 +7793,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7611
7793
  * @returns {number} - Returns frozen column count
7612
7794
  */
7613
7795
  TreeGrid.prototype.getFrozenColumns = function () {
7614
- return this.getFrozenCount(this.columns, 0) + this.frozenColumns;
7796
+ return this.getFrozenCount(!isNullOrUndefined(this.columns) && this.columns, 0) + this.frozenColumns;
7615
7797
  };
7616
7798
  TreeGrid.prototype.getFrozenCount = function (cols, cnt) {
7617
7799
  for (var j = 0, len = cols.length; j < len; j++) {
@@ -7668,6 +7850,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7668
7850
  * @returns {void}
7669
7851
  */
7670
7852
  TreeGrid.prototype.reorderRows = function (fromIndexes, toIndex, position) {
7853
+ if (isNullOrUndefined(fromIndexes) && isNullOrUndefined(toIndex) && isNullOrUndefined(position)) {
7854
+ 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.';
7855
+ this.trigger(actionFailure, { error: error });
7856
+ }
7671
7857
  this.rowDragAndDropModule.reorderRows(fromIndexes, toIndex, position);
7672
7858
  };
7673
7859
  /**
@@ -7695,400 +7881,400 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7695
7881
  }
7696
7882
  };
7697
7883
  var TreeGrid_1;
7698
- __decorate([
7884
+ __decorate$b([
7699
7885
  Property(0)
7700
7886
  ], TreeGrid.prototype, "frozenRows", void 0);
7701
- __decorate([
7887
+ __decorate$b([
7702
7888
  Property(0)
7703
7889
  ], TreeGrid.prototype, "frozenColumns", void 0);
7704
- __decorate([
7890
+ __decorate$b([
7705
7891
  Property('Ellipsis')
7706
7892
  ], TreeGrid.prototype, "clipMode", void 0);
7707
- __decorate([
7893
+ __decorate$b([
7708
7894
  Property([])
7709
7895
  ], TreeGrid.prototype, "columns", void 0);
7710
- __decorate([
7896
+ __decorate$b([
7711
7897
  Property(null)
7712
7898
  ], TreeGrid.prototype, "childMapping", void 0);
7713
- __decorate([
7899
+ __decorate$b([
7714
7900
  Property(null)
7715
7901
  ], TreeGrid.prototype, "hasChildMapping", void 0);
7716
- __decorate([
7902
+ __decorate$b([
7717
7903
  Property(0)
7718
7904
  ], TreeGrid.prototype, "treeColumnIndex", void 0);
7719
- __decorate([
7905
+ __decorate$b([
7720
7906
  Property(null)
7721
7907
  ], TreeGrid.prototype, "idMapping", void 0);
7722
- __decorate([
7908
+ __decorate$b([
7723
7909
  Property(null)
7724
7910
  ], TreeGrid.prototype, "parentIdMapping", void 0);
7725
- __decorate([
7911
+ __decorate$b([
7726
7912
  Property(false)
7727
7913
  ], TreeGrid.prototype, "enableCollapseAll", void 0);
7728
- __decorate([
7914
+ __decorate$b([
7729
7915
  Property(null)
7730
7916
  ], TreeGrid.prototype, "expandStateMapping", void 0);
7731
- __decorate([
7917
+ __decorate$b([
7732
7918
  Property(false)
7733
7919
  ], TreeGrid.prototype, "allowRowDragAndDrop", void 0);
7734
- __decorate([
7920
+ __decorate$b([
7735
7921
  Property([])
7736
7922
  ], TreeGrid.prototype, "dataSource", void 0);
7737
- __decorate([
7923
+ __decorate$b([
7738
7924
  Property()
7739
7925
  ], TreeGrid.prototype, "query", void 0);
7740
- __decorate([
7926
+ __decorate$b([
7741
7927
  Property()
7742
7928
  ], TreeGrid.prototype, "cloneQuery", void 0);
7743
- __decorate([
7929
+ __decorate$b([
7744
7930
  Property('AllPages')
7745
7931
  ], TreeGrid.prototype, "printMode", void 0);
7746
- __decorate([
7932
+ __decorate$b([
7747
7933
  Property(false)
7748
7934
  ], TreeGrid.prototype, "allowPaging", void 0);
7749
- __decorate([
7935
+ __decorate$b([
7750
7936
  Property(false)
7751
7937
  ], TreeGrid.prototype, "loadChildOnDemand", void 0);
7752
- __decorate([
7938
+ __decorate$b([
7753
7939
  Property(false)
7754
7940
  ], TreeGrid.prototype, "allowTextWrap", void 0);
7755
- __decorate([
7941
+ __decorate$b([
7756
7942
  Complex({}, TextWrapSettings)
7757
7943
  ], TreeGrid.prototype, "textWrapSettings", void 0);
7758
- __decorate([
7944
+ __decorate$b([
7759
7945
  Property(false)
7760
7946
  ], TreeGrid.prototype, "allowReordering", void 0);
7761
- __decorate([
7947
+ __decorate$b([
7762
7948
  Property(false)
7763
7949
  ], TreeGrid.prototype, "allowResizing", void 0);
7764
- __decorate([
7950
+ __decorate$b([
7765
7951
  Property(false)
7766
7952
  ], TreeGrid.prototype, "autoCheckHierarchy", void 0);
7767
- __decorate([
7953
+ __decorate$b([
7768
7954
  Complex({}, PageSettings)
7769
7955
  ], TreeGrid.prototype, "pageSettings", void 0);
7770
- __decorate([
7771
- Complex({}, RowDropSettings)
7956
+ __decorate$b([
7957
+ Complex({}, RowDropSettings$1)
7772
7958
  ], TreeGrid.prototype, "rowDropSettings", void 0);
7773
- __decorate([
7959
+ __decorate$b([
7774
7960
  Property('USD')
7775
7961
  ], TreeGrid.prototype, "currencyCode", void 0);
7776
- __decorate([
7962
+ __decorate$b([
7777
7963
  Property()
7778
7964
  ], TreeGrid.prototype, "pagerTemplate", void 0);
7779
- __decorate([
7965
+ __decorate$b([
7780
7966
  Property(false)
7781
7967
  ], TreeGrid.prototype, "showColumnMenu", void 0);
7782
- __decorate([
7968
+ __decorate$b([
7783
7969
  Property(false)
7784
7970
  ], TreeGrid.prototype, "showColumnChooser", void 0);
7785
- __decorate([
7971
+ __decorate$b([
7786
7972
  Property(false)
7787
7973
  ], TreeGrid.prototype, "allowSorting", void 0);
7788
- __decorate([
7974
+ __decorate$b([
7789
7975
  Property(true)
7790
7976
  ], TreeGrid.prototype, "allowMultiSorting", void 0);
7791
- __decorate([
7977
+ __decorate$b([
7792
7978
  Complex({}, SortSettings)
7793
7979
  ], TreeGrid.prototype, "sortSettings", void 0);
7794
- __decorate([
7980
+ __decorate$b([
7795
7981
  Collection([], AggregateRow)
7796
7982
  ], TreeGrid.prototype, "aggregates", void 0);
7797
- __decorate([
7983
+ __decorate$b([
7798
7984
  Complex({}, EditSettings)
7799
7985
  ], TreeGrid.prototype, "editSettings", void 0);
7800
- __decorate([
7986
+ __decorate$b([
7801
7987
  Property(false)
7802
7988
  ], TreeGrid.prototype, "allowFiltering", void 0);
7803
- __decorate([
7989
+ __decorate$b([
7804
7990
  Property()
7805
7991
  ], TreeGrid.prototype, "detailTemplate", void 0);
7806
- __decorate([
7992
+ __decorate$b([
7807
7993
  Complex({}, FilterSettings)
7808
7994
  ], TreeGrid.prototype, "filterSettings", void 0);
7809
- __decorate([
7995
+ __decorate$b([
7810
7996
  Complex({}, SearchSettings)
7811
7997
  ], TreeGrid.prototype, "searchSettings", void 0);
7812
- __decorate([
7998
+ __decorate$b([
7813
7999
  Property()
7814
8000
  ], TreeGrid.prototype, "toolbar", void 0);
7815
- __decorate([
8001
+ __decorate$b([
7816
8002
  Property()
7817
8003
  ], TreeGrid.prototype, "toolbarTemplate", void 0);
7818
- __decorate([
8004
+ __decorate$b([
7819
8005
  Property('Default')
7820
8006
  ], TreeGrid.prototype, "gridLines", void 0);
7821
- __decorate([
8007
+ __decorate$b([
7822
8008
  Property()
7823
8009
  ], TreeGrid.prototype, "contextMenuItems", void 0);
7824
- __decorate([
8010
+ __decorate$b([
7825
8011
  Property()
7826
8012
  ], TreeGrid.prototype, "columnMenuItems", void 0);
7827
- __decorate([
8013
+ __decorate$b([
7828
8014
  Property()
7829
8015
  ], TreeGrid.prototype, "rowTemplate", void 0);
7830
- __decorate([
8016
+ __decorate$b([
7831
8017
  Property('Parent')
7832
8018
  ], TreeGrid.prototype, "copyHierarchyMode", void 0);
7833
- __decorate([
8019
+ __decorate$b([
7834
8020
  Property(null)
7835
8021
  ], TreeGrid.prototype, "rowHeight", void 0);
7836
- __decorate([
8022
+ __decorate$b([
7837
8023
  Property(true)
7838
8024
  ], TreeGrid.prototype, "enableAltRow", void 0);
7839
- __decorate([
8025
+ __decorate$b([
7840
8026
  Property(true)
7841
8027
  ], TreeGrid.prototype, "allowKeyboard", void 0);
7842
- __decorate([
8028
+ __decorate$b([
7843
8029
  Property(false)
7844
8030
  ], TreeGrid.prototype, "enableHover", void 0);
7845
- __decorate([
8031
+ __decorate$b([
7846
8032
  Property(false)
7847
8033
  ], TreeGrid.prototype, "enableAutoFill", void 0);
7848
- __decorate([
8034
+ __decorate$b([
7849
8035
  Property(false)
7850
8036
  ], TreeGrid.prototype, "enableAdaptiveUI", void 0);
7851
- __decorate([
8037
+ __decorate$b([
7852
8038
  Property(false)
7853
8039
  ], TreeGrid.prototype, "enableImmutableMode", void 0);
7854
- __decorate([
8040
+ __decorate$b([
7855
8041
  Property('auto')
7856
8042
  ], TreeGrid.prototype, "height", void 0);
7857
- __decorate([
8043
+ __decorate$b([
7858
8044
  Property('auto')
7859
8045
  ], TreeGrid.prototype, "width", void 0);
7860
- __decorate([
8046
+ __decorate$b([
7861
8047
  Complex({}, LoadingIndicator)
7862
8048
  ], TreeGrid.prototype, "loadingIndicator", void 0);
7863
- __decorate([
8049
+ __decorate$b([
7864
8050
  Property(true)
7865
8051
  ], TreeGrid.prototype, "enableVirtualMaskRow", void 0);
7866
- __decorate([
8052
+ __decorate$b([
7867
8053
  Property(false)
7868
8054
  ], TreeGrid.prototype, "enableVirtualization", void 0);
7869
- __decorate([
8055
+ __decorate$b([
7870
8056
  Property(false)
7871
8057
  ], TreeGrid.prototype, "enableColumnVirtualization", void 0);
7872
- __decorate([
8058
+ __decorate$b([
7873
8059
  Property(false)
7874
8060
  ], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
7875
- __decorate([
8061
+ __decorate$b([
7876
8062
  Property(false)
7877
8063
  ], TreeGrid.prototype, "enableInfiniteScrolling", void 0);
7878
- __decorate([
8064
+ __decorate$b([
7879
8065
  Complex({}, InfiniteScrollSettings)
7880
8066
  ], TreeGrid.prototype, "infiniteScrollSettings", void 0);
7881
- __decorate([
8067
+ __decorate$b([
7882
8068
  Property('All')
7883
8069
  ], TreeGrid.prototype, "columnQueryMode", void 0);
7884
- __decorate([
8070
+ __decorate$b([
7885
8071
  Event()
7886
8072
  ], TreeGrid.prototype, "created", void 0);
7887
- __decorate([
8073
+ __decorate$b([
7888
8074
  Event()
7889
8075
  ], TreeGrid.prototype, "load", void 0);
7890
- __decorate([
8076
+ __decorate$b([
7891
8077
  Event()
7892
8078
  ], TreeGrid.prototype, "expanding", void 0);
7893
- __decorate([
8079
+ __decorate$b([
7894
8080
  Event()
7895
8081
  ], TreeGrid.prototype, "expanded", void 0);
7896
- __decorate([
8082
+ __decorate$b([
7897
8083
  Event()
7898
8084
  ], TreeGrid.prototype, "collapsing", void 0);
7899
- __decorate([
8085
+ __decorate$b([
7900
8086
  Event()
7901
8087
  ], TreeGrid.prototype, "collapsed", void 0);
7902
- __decorate([
8088
+ __decorate$b([
7903
8089
  Event()
7904
8090
  ], TreeGrid.prototype, "cellSave", void 0);
7905
- __decorate([
8091
+ __decorate$b([
7906
8092
  Event()
7907
8093
  ], TreeGrid.prototype, "cellSaved", void 0);
7908
- __decorate([
8094
+ __decorate$b([
7909
8095
  Event()
7910
8096
  ], TreeGrid.prototype, "actionBegin", void 0);
7911
- __decorate([
8097
+ __decorate$b([
7912
8098
  Event()
7913
8099
  ], TreeGrid.prototype, "actionComplete", void 0);
7914
- __decorate([
8100
+ __decorate$b([
7915
8101
  Event()
7916
8102
  ], TreeGrid.prototype, "beginEdit", void 0);
7917
- __decorate([
8103
+ __decorate$b([
7918
8104
  Event()
7919
8105
  ], TreeGrid.prototype, "batchAdd", void 0);
7920
- __decorate([
8106
+ __decorate$b([
7921
8107
  Event()
7922
8108
  ], TreeGrid.prototype, "batchDelete", void 0);
7923
- __decorate([
8109
+ __decorate$b([
7924
8110
  Event()
7925
8111
  ], TreeGrid.prototype, "batchCancel", void 0);
7926
- __decorate([
8112
+ __decorate$b([
7927
8113
  Event()
7928
8114
  ], TreeGrid.prototype, "beforeBatchAdd", void 0);
7929
- __decorate([
8115
+ __decorate$b([
7930
8116
  Event()
7931
8117
  ], TreeGrid.prototype, "beforeBatchDelete", void 0);
7932
- __decorate([
8118
+ __decorate$b([
7933
8119
  Event()
7934
8120
  ], TreeGrid.prototype, "beforeBatchSave", void 0);
7935
- __decorate([
8121
+ __decorate$b([
7936
8122
  Event()
7937
8123
  ], TreeGrid.prototype, "cellEdit", void 0);
7938
- __decorate([
8124
+ __decorate$b([
7939
8125
  Event()
7940
8126
  ], TreeGrid.prototype, "actionFailure", void 0);
7941
- __decorate([
8127
+ __decorate$b([
7942
8128
  Event()
7943
8129
  ], TreeGrid.prototype, "dataBound", void 0);
7944
- __decorate([
8130
+ __decorate$b([
7945
8131
  Event()
7946
8132
  ], TreeGrid.prototype, "dataSourceChanged", void 0);
7947
- __decorate([
8133
+ __decorate$b([
7948
8134
  Event()
7949
8135
  ], TreeGrid.prototype, "dataStateChange", void 0);
7950
- __decorate([
8136
+ __decorate$b([
7951
8137
  Event()
7952
8138
  ], TreeGrid.prototype, "recordDoubleClick", void 0);
7953
- __decorate([
8139
+ __decorate$b([
7954
8140
  Event()
7955
8141
  ], TreeGrid.prototype, "rowDataBound", void 0);
7956
- __decorate([
8142
+ __decorate$b([
7957
8143
  Event()
7958
8144
  ], TreeGrid.prototype, "detailDataBound", void 0);
7959
- __decorate([
8145
+ __decorate$b([
7960
8146
  Event()
7961
8147
  ], TreeGrid.prototype, "queryCellInfo", void 0);
7962
- __decorate([
8148
+ __decorate$b([
7963
8149
  Property(true)
7964
8150
  ], TreeGrid.prototype, "allowSelection", void 0);
7965
- __decorate([
8151
+ __decorate$b([
7966
8152
  Event()
7967
8153
  ], TreeGrid.prototype, "rowSelecting", void 0);
7968
- __decorate([
8154
+ __decorate$b([
7969
8155
  Event()
7970
8156
  ], TreeGrid.prototype, "rowSelected", void 0);
7971
- __decorate([
8157
+ __decorate$b([
7972
8158
  Event()
7973
8159
  ], TreeGrid.prototype, "rowDeselecting", void 0);
7974
- __decorate([
8160
+ __decorate$b([
7975
8161
  Event()
7976
8162
  ], TreeGrid.prototype, "rowDeselected", void 0);
7977
- __decorate([
8163
+ __decorate$b([
7978
8164
  Event()
7979
8165
  ], TreeGrid.prototype, "headerCellInfo", void 0);
7980
- __decorate([
8166
+ __decorate$b([
7981
8167
  Event()
7982
8168
  ], TreeGrid.prototype, "cellSelecting", void 0);
7983
- __decorate([
8169
+ __decorate$b([
7984
8170
  Event()
7985
8171
  ], TreeGrid.prototype, "columnMenuOpen", void 0);
7986
- __decorate([
8172
+ __decorate$b([
7987
8173
  Event()
7988
8174
  ], TreeGrid.prototype, "columnMenuClick", void 0);
7989
- __decorate([
8175
+ __decorate$b([
7990
8176
  Event()
7991
8177
  ], TreeGrid.prototype, "cellSelected", void 0);
7992
- __decorate([
8178
+ __decorate$b([
7993
8179
  Event()
7994
8180
  ], TreeGrid.prototype, "cellDeselecting", void 0);
7995
- __decorate([
8181
+ __decorate$b([
7996
8182
  Event()
7997
8183
  ], TreeGrid.prototype, "cellDeselected", void 0);
7998
- __decorate([
8184
+ __decorate$b([
7999
8185
  Event()
8000
8186
  ], TreeGrid.prototype, "resizeStart", void 0);
8001
- __decorate([
8187
+ __decorate$b([
8002
8188
  Event()
8003
8189
  ], TreeGrid.prototype, "resizing", void 0);
8004
- __decorate([
8190
+ __decorate$b([
8005
8191
  Event()
8006
8192
  ], TreeGrid.prototype, "resizeStop", void 0);
8007
- __decorate([
8193
+ __decorate$b([
8008
8194
  Event()
8009
8195
  ], TreeGrid.prototype, "columnDragStart", void 0);
8010
- __decorate([
8196
+ __decorate$b([
8011
8197
  Event()
8012
8198
  ], TreeGrid.prototype, "columnDrag", void 0);
8013
- __decorate([
8199
+ __decorate$b([
8014
8200
  Event()
8015
8201
  ], TreeGrid.prototype, "columnDrop", void 0);
8016
- __decorate([
8202
+ __decorate$b([
8017
8203
  Event()
8018
8204
  ], TreeGrid.prototype, "checkboxChange", void 0);
8019
- __decorate([
8205
+ __decorate$b([
8020
8206
  Event()
8021
8207
  ], TreeGrid.prototype, "printComplete", void 0);
8022
- __decorate([
8208
+ __decorate$b([
8023
8209
  Event()
8024
8210
  ], TreeGrid.prototype, "beforePrint", void 0);
8025
- __decorate([
8211
+ __decorate$b([
8026
8212
  Event()
8027
8213
  ], TreeGrid.prototype, "toolbarClick", void 0);
8028
- __decorate([
8214
+ __decorate$b([
8029
8215
  Event()
8030
8216
  ], TreeGrid.prototype, "beforeDataBound", void 0);
8031
- __decorate([
8217
+ __decorate$b([
8032
8218
  Event()
8033
8219
  ], TreeGrid.prototype, "contextMenuOpen", void 0);
8034
- __decorate([
8220
+ __decorate$b([
8035
8221
  Event()
8036
8222
  ], TreeGrid.prototype, "contextMenuClick", void 0);
8037
- __decorate([
8223
+ __decorate$b([
8038
8224
  Event()
8039
8225
  ], TreeGrid.prototype, "beforeCopy", void 0);
8040
- __decorate([
8226
+ __decorate$b([
8041
8227
  Event()
8042
8228
  ], TreeGrid.prototype, "beforePaste", void 0);
8043
- __decorate([
8229
+ __decorate$b([
8044
8230
  Event()
8045
8231
  ], TreeGrid.prototype, "rowDrag", void 0);
8046
- __decorate([
8232
+ __decorate$b([
8047
8233
  Event()
8048
8234
  ], TreeGrid.prototype, "rowDragStart", void 0);
8049
- __decorate([
8235
+ __decorate$b([
8050
8236
  Event()
8051
8237
  ], TreeGrid.prototype, "rowDragStartHelper", void 0);
8052
- __decorate([
8238
+ __decorate$b([
8053
8239
  Event()
8054
8240
  ], TreeGrid.prototype, "rowDrop", void 0);
8055
- __decorate([
8241
+ __decorate$b([
8056
8242
  Property(-1)
8057
8243
  ], TreeGrid.prototype, "selectedRowIndex", void 0);
8058
- __decorate([
8244
+ __decorate$b([
8059
8245
  Complex({}, SelectionSettings)
8060
8246
  ], TreeGrid.prototype, "selectionSettings", void 0);
8061
- __decorate([
8247
+ __decorate$b([
8062
8248
  Property(false)
8063
8249
  ], TreeGrid.prototype, "allowExcelExport", void 0);
8064
- __decorate([
8250
+ __decorate$b([
8065
8251
  Property(false)
8066
8252
  ], TreeGrid.prototype, "allowPdfExport", void 0);
8067
- __decorate([
8253
+ __decorate$b([
8068
8254
  Event()
8069
8255
  ], TreeGrid.prototype, "pdfQueryCellInfo", void 0);
8070
- __decorate([
8256
+ __decorate$b([
8071
8257
  Event()
8072
8258
  ], TreeGrid.prototype, "pdfHeaderQueryCellInfo", void 0);
8073
- __decorate([
8259
+ __decorate$b([
8074
8260
  Event()
8075
8261
  ], TreeGrid.prototype, "excelQueryCellInfo", void 0);
8076
- __decorate([
8262
+ __decorate$b([
8077
8263
  Event()
8078
8264
  ], TreeGrid.prototype, "excelHeaderQueryCellInfo", void 0);
8079
- __decorate([
8265
+ __decorate$b([
8080
8266
  Event()
8081
8267
  ], TreeGrid.prototype, "beforeExcelExport", void 0);
8082
- __decorate([
8268
+ __decorate$b([
8083
8269
  Event()
8084
8270
  ], TreeGrid.prototype, "excelExportComplete", void 0);
8085
- __decorate([
8271
+ __decorate$b([
8086
8272
  Event()
8087
8273
  ], TreeGrid.prototype, "beforePdfExport", void 0);
8088
- __decorate([
8274
+ __decorate$b([
8089
8275
  Event()
8090
8276
  ], TreeGrid.prototype, "pdfExportComplete", void 0);
8091
- TreeGrid = TreeGrid_1 = __decorate([
8277
+ TreeGrid = TreeGrid_1 = __decorate$b([
8092
8278
  NotifyPropertyChanges
8093
8279
  ], TreeGrid);
8094
8280
  return TreeGrid;
@@ -8099,14 +8285,14 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
8099
8285
  *
8100
8286
  * @hidden
8101
8287
  */
8102
- var Reorder$1 = /** @__PURE__ @class */ (function () {
8288
+ var Reorder = /** @__PURE__ @class */ (function () {
8103
8289
  /**
8104
8290
  * Constructor for Reorder module
8105
8291
  *
8106
8292
  * @param {TreeGrid} parent - Tree Grid instance
8107
8293
  */
8108
- function Reorder$$1(parent) {
8109
- Grid.Inject(Reorder);
8294
+ function Reorder(parent) {
8295
+ Grid.Inject(Reorder$1);
8110
8296
  this.parent = parent;
8111
8297
  this.addEventListener();
8112
8298
  }
@@ -8116,17 +8302,17 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
8116
8302
  * @private
8117
8303
  * @returns {string} Returns Reorder module name
8118
8304
  */
8119
- Reorder$$1.prototype.getModuleName = function () {
8305
+ Reorder.prototype.getModuleName = function () {
8120
8306
  return 'reorder';
8121
8307
  };
8122
8308
  /**
8123
8309
  * @hidden
8124
8310
  * @returns {void}
8125
8311
  */
8126
- Reorder$$1.prototype.addEventListener = function () {
8312
+ Reorder.prototype.addEventListener = function () {
8127
8313
  this.parent.on('getColumnIndex', this.getTreeColumn, this);
8128
8314
  };
8129
- Reorder$$1.prototype.removeEventListener = function () {
8315
+ Reorder.prototype.removeEventListener = function () {
8130
8316
  if (this.parent.isDestroyed) {
8131
8317
  return;
8132
8318
  }
@@ -8138,10 +8324,10 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
8138
8324
  * @returns {void}
8139
8325
  * @hidden
8140
8326
  */
8141
- Reorder$$1.prototype.destroy = function () {
8327
+ Reorder.prototype.destroy = function () {
8142
8328
  this.removeEventListener();
8143
8329
  };
8144
- Reorder$$1.prototype.getTreeColumn = function () {
8330
+ Reorder.prototype.getTreeColumn = function () {
8145
8331
  var columnModel = 'columnModel';
8146
8332
  var treeColumn = this.parent["" + columnModel][this.parent.treeColumnIndex];
8147
8333
  var treeIndex;
@@ -8156,7 +8342,7 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
8156
8342
  }
8157
8343
  this.parent.setProperties({ treeColumnIndex: treeIndex }, true);
8158
8344
  };
8159
- return Reorder$$1;
8345
+ return Reorder;
8160
8346
  }());
8161
8347
 
8162
8348
  /**
@@ -8164,14 +8350,14 @@ var Reorder$1 = /** @__PURE__ @class */ (function () {
8164
8350
  *
8165
8351
  * @hidden
8166
8352
  */
8167
- var Resize$1 = /** @__PURE__ @class */ (function () {
8353
+ var Resize = /** @__PURE__ @class */ (function () {
8168
8354
  /**
8169
8355
  * Constructor for Resize module
8170
8356
  *
8171
8357
  * @param {TreeGrid} parent - Tree Grid instance
8172
8358
  */
8173
- function Resize$$1(parent) {
8174
- Grid.Inject(Resize);
8359
+ function Resize(parent) {
8360
+ Grid.Inject(Resize$1);
8175
8361
  this.parent = parent;
8176
8362
  }
8177
8363
  /**
@@ -8180,7 +8366,7 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
8180
8366
  * @param {string|string[]} fName - Defines the field name.
8181
8367
  * @returns {void}
8182
8368
  */
8183
- Resize$$1.prototype.autoFitColumns = function (fName) {
8369
+ Resize.prototype.autoFitColumns = function (fName) {
8184
8370
  this.parent.grid.autoFitColumns(fName);
8185
8371
  };
8186
8372
  /**
@@ -8189,7 +8375,7 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
8189
8375
  * @private
8190
8376
  * @returns {string} Returns Resize module name
8191
8377
  */
8192
- Resize$$1.prototype.getModuleName = function () {
8378
+ Resize.prototype.getModuleName = function () {
8193
8379
  return 'resize';
8194
8380
  };
8195
8381
  /**
@@ -8198,13 +8384,13 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
8198
8384
  * @function destroy
8199
8385
  * @returns {void}
8200
8386
  */
8201
- Resize$$1.prototype.destroy = function () {
8387
+ Resize.prototype.destroy = function () {
8202
8388
  if (this.parent.isDestroyed) {
8203
8389
  return;
8204
8390
  }
8205
8391
  this.parent.grid.resizeModule.destroy();
8206
8392
  };
8207
- return Resize$$1;
8393
+ return Resize;
8208
8394
  }());
8209
8395
 
8210
8396
  /**
@@ -8212,13 +8398,13 @@ var Resize$1 = /** @__PURE__ @class */ (function () {
8212
8398
  *
8213
8399
  * @hidden
8214
8400
  */
8215
- var RowDD$1 = /** @__PURE__ @class */ (function () {
8401
+ var RowDD = /** @__PURE__ @class */ (function () {
8216
8402
  /**
8217
8403
  * Constructor for render module
8218
8404
  *
8219
8405
  * @param {TreeGrid} parent - Tree Grid instance
8220
8406
  */
8221
- function RowDD$$1(parent) {
8407
+ function RowDD(parent) {
8222
8408
  /** @hidden */
8223
8409
  this.canDrop = true;
8224
8410
  /** @hidden */
@@ -8233,11 +8419,11 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8233
8419
  this.hasDropItem = true;
8234
8420
  /** @hidden */
8235
8421
  this.isaddtoBottom = false;
8236
- Grid.Inject(RowDD);
8422
+ Grid.Inject(RowDD$1);
8237
8423
  this.parent = parent;
8238
8424
  this.addEventListener();
8239
8425
  }
8240
- RowDD$$1.prototype.getChildrecordsByParentID = function (id) {
8426
+ RowDD.prototype.getChildrecordsByParentID = function (id) {
8241
8427
  var treeGridDataSource;
8242
8428
  if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
8243
8429
  treeGridDataSource = this.parent.grid.dataSource.dataSource.json;
@@ -8254,7 +8440,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8254
8440
  * @hidden
8255
8441
  * @returns {void}
8256
8442
  */
8257
- RowDD$$1.prototype.addEventListener = function () {
8443
+ RowDD.prototype.addEventListener = function () {
8258
8444
  this.parent.on(rowdraging, this.Rowdraging, this);
8259
8445
  this.parent.on(rowDropped, this.rowDropped, this);
8260
8446
  this.parent.on(rowsAdd, this.rowsAdded, this);
@@ -8268,7 +8454,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8268
8454
  * @param {number} toIndex - Destination row index
8269
8455
  * @param {string} position - Drop position as above or below or child
8270
8456
  */
8271
- RowDD$$1.prototype.reorderRows = function (fromIndexes, toIndex, position) {
8457
+ RowDD.prototype.reorderRows = function (fromIndexes, toIndex, position) {
8272
8458
  var tObj = this.parent;
8273
8459
  var action = 'action';
8274
8460
  var dropPosition = 'dropPosition';
@@ -8349,7 +8535,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8349
8535
  return;
8350
8536
  }
8351
8537
  };
8352
- RowDD$$1.prototype.indentOutdentAction = function (record, request) {
8538
+ RowDD.prototype.indentOutdentAction = function (record, request) {
8353
8539
  var tObj = this.parent;
8354
8540
  var action = 'action';
8355
8541
  var droppedIndex = 'dropIndex';
@@ -8423,7 +8609,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8423
8609
  }
8424
8610
  }
8425
8611
  };
8426
- RowDD$$1.prototype.eventTrigger = function (action, dropIndex) {
8612
+ RowDD.prototype.eventTrigger = function (action, dropIndex) {
8427
8613
  var _this = this;
8428
8614
  var actionArgs = {
8429
8615
  action: action,
@@ -8452,7 +8638,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8452
8638
  }
8453
8639
  });
8454
8640
  };
8455
- RowDD$$1.prototype.orderToIndex = function (currentData) {
8641
+ RowDD.prototype.orderToIndex = function (currentData) {
8456
8642
  for (var i = 0; i < currentData.length; i++) {
8457
8643
  currentData[parseInt(i.toString(), 10)].index = i;
8458
8644
  if (!isNullOrUndefined(currentData[parseInt(i.toString(), 10)].parentItem)) {
@@ -8462,7 +8648,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8462
8648
  }
8463
8649
  return currentData;
8464
8650
  };
8465
- RowDD$$1.prototype.rowsAdded = function (e) {
8651
+ RowDD.prototype.rowsAdded = function (e) {
8466
8652
  var draggedRecord;
8467
8653
  var dragRecords = e.records;
8468
8654
  for (var i = e.records.length - 1; i > -1; i--) {
@@ -8505,15 +8691,17 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8505
8691
  !Object.prototype.hasOwnProperty.call(draggedRecord_1.taskData, tObj.childMapping)) {
8506
8692
  draggedRecord_1.taskData[tObj.childMapping] = [];
8507
8693
  }
8508
- if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
8509
- (draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
8510
- !isNullOrUndefined(tObj.parentIdMapping)) {
8511
- var childData = (draggedRecord_1[tObj.childMapping]);
8512
- for (var j = 0; j < childData.length; j++) {
8513
- if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
8514
- dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
8515
- childData[parseInt(j.toString(), 10)].taskData = extend({}, childData[parseInt(j.toString(), 10)]);
8516
- i += 1;
8694
+ if (!isNullOrUndefined(draggedRecord_1[tObj.childMapping])) {
8695
+ if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
8696
+ (draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
8697
+ !isNullOrUndefined(tObj.parentIdMapping)) {
8698
+ var childData = (draggedRecord_1[tObj.childMapping]);
8699
+ for (var j = 0; j < childData.length; j++) {
8700
+ if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
8701
+ dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
8702
+ childData[parseInt(j.toString(), 10)].taskData = extend$1({}, childData[parseInt(j.toString(), 10)]);
8703
+ i += 1;
8704
+ }
8517
8705
  }
8518
8706
  }
8519
8707
  }
@@ -8564,7 +8752,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8564
8752
  this.dropRows(args);
8565
8753
  }
8566
8754
  };
8567
- RowDD$$1.prototype.rowsRemoved = function (e) {
8755
+ RowDD.prototype.rowsRemoved = function (e) {
8568
8756
  for (var i = 0; i < e.records.length; i++) {
8569
8757
  this.draggedRecord = e.records[parseInt(i.toString(), 10)];
8570
8758
  if (this.draggedRecord.hasChildRecords || this.draggedRecord.parentItem &&
@@ -8575,7 +8763,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8575
8763
  }
8576
8764
  }
8577
8765
  };
8578
- RowDD$$1.prototype.refreshGridDataSource = function () {
8766
+ RowDD.prototype.refreshGridDataSource = function () {
8579
8767
  var draggedRecord = this.draggedRecord;
8580
8768
  var droppedRecord = this.droppedRecord;
8581
8769
  var proxy = this.parent;
@@ -8587,8 +8775,8 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8587
8775
  else {
8588
8776
  tempDataSource = proxy.dataSource;
8589
8777
  }
8590
- // eslint-disable-next-line max-len
8591
- if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem) && !isNullOrUndefined(droppedRecord.taskData)) {
8778
+ if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
8779
+ && !isNullOrUndefined(droppedRecord.taskData)) {
8592
8780
  var keys = Object.keys(tempDataSource);
8593
8781
  for (var i = 0; i < keys.length; i++) {
8594
8782
  if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
@@ -8634,14 +8822,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8634
8822
  }
8635
8823
  }
8636
8824
  };
8637
- RowDD$$1.prototype.removeFirstrowBorder = function (element) {
8825
+ RowDD.prototype.removeFirstrowBorder = function (element) {
8638
8826
  var canremove = this.dropPosition === 'bottomSegment';
8639
8827
  if (this.parent.element.getElementsByClassName('e-firstrow-border').length > 0 && element &&
8640
8828
  (element.rowIndex !== 0 || canremove)) {
8641
8829
  this.parent.element.getElementsByClassName('e-firstrow-border')[0].remove();
8642
8830
  }
8643
8831
  };
8644
- RowDD$$1.prototype.removeLastrowBorder = function (element) {
8832
+ RowDD.prototype.removeLastrowBorder = function (element) {
8645
8833
  var isEmptyRow = element && (element.classList.contains('e-emptyrow') || element.classList.contains('e-columnheader')
8646
8834
  || element.classList.contains('e-detailrow'));
8647
8835
  var islastRowIndex;
@@ -8660,7 +8848,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8660
8848
  this.parent.element.getElementsByClassName('e-lastrow-border')[0].remove();
8661
8849
  }
8662
8850
  };
8663
- RowDD$$1.prototype.updateIcon = function (row, index, args) {
8851
+ RowDD.prototype.updateIcon = function (row, index, args) {
8664
8852
  var rowEle = args.target ? closest(args.target, 'tr') : null;
8665
8853
  this.dropPosition = undefined;
8666
8854
  var rowPositionHeight = 0;
@@ -8745,14 +8933,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8745
8933
  }
8746
8934
  return this.dropPosition;
8747
8935
  };
8748
- RowDD$$1.prototype.removeChildBorder = function () {
8936
+ RowDD.prototype.removeChildBorder = function () {
8749
8937
  var borderElem = [];
8750
8938
  borderElem = [].slice.call(this.parent.element.querySelectorAll('.e-childborder'));
8751
8939
  if (borderElem.length > 0) {
8752
8940
  this.addRemoveClasses(borderElem, false, 'e-childborder');
8753
8941
  }
8754
8942
  };
8755
- RowDD$$1.prototype.addFirstrowBorder = function (targetRow) {
8943
+ RowDD.prototype.addFirstrowBorder = function (targetRow) {
8756
8944
  var node = this.parent.element;
8757
8945
  var tObj = this.parent;
8758
8946
  if (targetRow && targetRow.rowIndex === 0 && !targetRow.classList.contains('e-emptyrow')) {
@@ -8774,7 +8962,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8774
8962
  }
8775
8963
  }
8776
8964
  };
8777
- RowDD$$1.prototype.addLastRowborder = function (trElement) {
8965
+ RowDD.prototype.addLastRowborder = function (trElement) {
8778
8966
  var isEmptyRow = trElement && (trElement.classList.contains('e-emptyrow') ||
8779
8967
  trElement.classList.contains('e-columnheader') || trElement.classList.contains('e-detailrow'));
8780
8968
  if (trElement && !isEmptyRow && this.parent.getRows()[this.parent.getCurrentViewRecords().length - 1].getAttribute('data-uid') ===
@@ -8789,11 +8977,11 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8789
8977
  }
8790
8978
  }
8791
8979
  };
8792
- RowDD$$1.prototype.getScrollWidth = function () {
8980
+ RowDD.prototype.getScrollWidth = function () {
8793
8981
  var scrollElem = this.parent.getContent().firstElementChild;
8794
8982
  return scrollElem.scrollWidth > scrollElem.offsetWidth ? Scroll.getScrollBarWidth() : 0;
8795
8983
  };
8796
- RowDD$$1.prototype.addErrorElem = function () {
8984
+ RowDD.prototype.addErrorElem = function () {
8797
8985
  var dragelem = document.getElementsByClassName('e-cloneproperties')[0];
8798
8986
  var errorelem = dragelem.querySelectorAll('.e-errorelem').length;
8799
8987
  var sanitize = 'sanitize';
@@ -8802,16 +8990,16 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8802
8990
  classList(ele, ['e-errorcontainer'], []);
8803
8991
  classList(ele, ['e-icons', 'e-errorelem'], []);
8804
8992
  var errorVal = dragelem.querySelector('.errorValue');
8805
- var content$$1 = dragelem.querySelector('.e-rowcell').innerHTML;
8993
+ var content = dragelem.querySelector('.e-rowcell').innerHTML;
8806
8994
  if (errorVal) {
8807
- content$$1 = this.parent["" + sanitize](errorVal.innerHTML);
8995
+ content = this.parent["" + sanitize](errorVal.innerHTML);
8808
8996
  errorVal.parentNode.removeChild(errorVal);
8809
8997
  }
8810
8998
  dragelem.querySelector('.e-rowcell').innerHTML = '';
8811
8999
  var spanContent = document.createElement('span');
8812
9000
  spanContent.className = 'errorValue';
8813
9001
  spanContent.style.paddingLeft = '16px';
8814
- spanContent.innerHTML = this.parent["" + sanitize](content$$1);
9002
+ spanContent.innerHTML = this.parent["" + sanitize](content);
8815
9003
  dragelem.querySelector('.e-rowcell').appendChild(ele);
8816
9004
  dragelem.querySelector('.e-rowcell').appendChild(spanContent);
8817
9005
  var dropItemSpan = document.querySelector('.e-dropitemscount');
@@ -8823,7 +9011,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8823
9011
  }
8824
9012
  }
8825
9013
  };
8826
- RowDD$$1.prototype.removeErrorElem = function () {
9014
+ RowDD.prototype.removeErrorElem = function () {
8827
9015
  var errorelem = document.querySelector('.e-errorelem');
8828
9016
  var errorValue = document.querySelector('.errorValue');
8829
9017
  var dropItemSpan = document.querySelector('.e-dropitemscount');
@@ -8843,7 +9031,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8843
9031
  }
8844
9032
  this.hasDropItem = true;
8845
9033
  };
8846
- RowDD$$1.prototype.topOrBottomBorder = function (target) {
9034
+ RowDD.prototype.topOrBottomBorder = function (target) {
8847
9035
  var rowElement = [];
8848
9036
  var element = closest(target, 'tr');
8849
9037
  rowElement = element ? [].slice.call(element.querySelectorAll('.e-rowcell,.e-rowdragdrop,.e-detailrowcollapse')) : [];
@@ -8859,7 +9047,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8859
9047
  }
8860
9048
  }
8861
9049
  };
8862
- RowDD$$1.prototype.removetopOrBottomBorder = function () {
9050
+ RowDD.prototype.removetopOrBottomBorder = function () {
8863
9051
  var border = [];
8864
9052
  border = [].slice.call(this.parent.element.querySelectorAll('.e-dropbottom, .e-droptop'));
8865
9053
  if (border.length) {
@@ -8867,7 +9055,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8867
9055
  this.addRemoveClasses(border, false, 'e-droptop');
8868
9056
  }
8869
9057
  };
8870
- RowDD$$1.prototype.addRemoveClasses = function (cells, add, className) {
9058
+ RowDD.prototype.addRemoveClasses = function (cells, add, className) {
8871
9059
  for (var i = 0, len = cells.length; i < len; i++) {
8872
9060
  if (add) {
8873
9061
  cells[parseInt(i.toString(), 10)].classList.add(className);
@@ -8877,7 +9065,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8877
9065
  }
8878
9066
  }
8879
9067
  };
8880
- RowDD$$1.prototype.getOffset = function (element) {
9068
+ RowDD.prototype.getOffset = function (element) {
8881
9069
  var box = element.getBoundingClientRect();
8882
9070
  var body = document.body;
8883
9071
  var docElem = document.documentElement;
@@ -8889,7 +9077,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8889
9077
  var left = box.left + scrollLeft - clientLeft;
8890
9078
  return { top: Math.round(top), left: Math.round(left) };
8891
9079
  };
8892
- RowDD$$1.prototype.Rowdraging = function (args) {
9080
+ RowDD.prototype.Rowdraging = function (args) {
8893
9081
  var tObj = this.parent;
8894
9082
  var cloneElement = this.parent.element.querySelector('.e-cloneproperties');
8895
9083
  cloneElement.style.cursor = '';
@@ -8932,7 +9120,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8932
9120
  }
8933
9121
  }
8934
9122
  };
8935
- RowDD$$1.prototype.rowDropped = function (args) {
9123
+ RowDD.prototype.rowDropped = function (args) {
8936
9124
  var tObj = this.parent;
8937
9125
  var parentItem = 'parentItem';
8938
9126
  if (!tObj.rowDropSettings.targetID) {
@@ -9018,7 +9206,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9018
9206
  }
9019
9207
  }
9020
9208
  };
9021
- RowDD$$1.prototype.dragDropGrid = function (args) {
9209
+ RowDD.prototype.dragDropGrid = function (args) {
9022
9210
  var tObj = this.parent;
9023
9211
  var targetRow = closest(args.target, 'tr');
9024
9212
  var targetIndex = isNaN(this.getTargetIdx(targetRow)) ? 0 : this.getTargetIdx(targetRow);
@@ -9078,10 +9266,10 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9078
9266
  srcControl.grid.refresh();
9079
9267
  }
9080
9268
  };
9081
- RowDD$$1.prototype.getTargetIdx = function (targetRow) {
9269
+ RowDD.prototype.getTargetIdx = function (targetRow) {
9082
9270
  return targetRow ? parseInt(targetRow.getAttribute('data-rowindex'), 10) : 0;
9083
9271
  };
9084
- RowDD$$1.prototype.getParentData = function (record, data) {
9272
+ RowDD.prototype.getParentData = function (record, data) {
9085
9273
  var parentItem = record.parentItem;
9086
9274
  var selectedItemIndex = -1;
9087
9275
  if (this.parent.enableVirtualization && this.parent.selectedRowIndex !== -1) {
@@ -9108,7 +9296,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9108
9296
  }
9109
9297
  }
9110
9298
  };
9111
- RowDD$$1.prototype.dropRows = function (args, isByMethod) {
9299
+ RowDD.prototype.dropRows = function (args, isByMethod) {
9112
9300
  if (this.dropPosition !== 'Invalid' && !isRemoteData(this.parent)) {
9113
9301
  var tObj = this.parent;
9114
9302
  var draggedRecord_2;
@@ -9245,7 +9433,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9245
9433
  }
9246
9434
  }
9247
9435
  };
9248
- RowDD$$1.prototype.dropMiddle = function (recordIndex) {
9436
+ RowDD.prototype.dropMiddle = function (recordIndex) {
9249
9437
  var tObj = this.parent;
9250
9438
  var childRecords = findChildrenRecords(this.droppedRecord);
9251
9439
  var childRecordsLength = (isNullOrUndefined(childRecords) ||
@@ -9265,7 +9453,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9265
9453
  }
9266
9454
  }
9267
9455
  };
9268
- RowDD$$1.prototype.dropAtTop = function (recordIndex1) {
9456
+ RowDD.prototype.dropAtTop = function (recordIndex1) {
9269
9457
  var tObj = this.parent;
9270
9458
  if (this.dropPosition === 'topSegment') {
9271
9459
  if (tObj.parentIdMapping) {
@@ -9288,7 +9476,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9288
9476
  }
9289
9477
  }
9290
9478
  };
9291
- RowDD$$1.prototype.recordLevel = function () {
9479
+ RowDD.prototype.recordLevel = function () {
9292
9480
  var tObj = this.parent;
9293
9481
  var draggedRecord = this.draggedRecord;
9294
9482
  var droppedRecord = this.droppedRecord;
@@ -9304,7 +9492,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9304
9492
  }
9305
9493
  }
9306
9494
  if (this.dropPosition === 'middleSegment') {
9307
- var parentItem = extend({}, droppedRecord);
9495
+ var parentItem = extend$1({}, droppedRecord);
9308
9496
  delete parentItem.childRecords;
9309
9497
  draggedRecord.parentItem = parentItem;
9310
9498
  draggedRecord.parentUniqueID = droppedRecord.uniqueID;
@@ -9328,7 +9516,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9328
9516
  droppedRecord.expanded = true;
9329
9517
  }
9330
9518
  };
9331
- RowDD$$1.prototype.deleteDragRow = function () {
9519
+ RowDD.prototype.deleteDragRow = function () {
9332
9520
  if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
9333
9521
  this.treeGridData = this.parent.grid.dataSource.dataSource.json;
9334
9522
  this.treeData = this.parent.dataSource.dataSource.json;
@@ -9343,7 +9531,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9343
9531
  }
9344
9532
  this.removeRecords(deletedRow);
9345
9533
  };
9346
- RowDD$$1.prototype.updateChildRecord = function (record, count) {
9534
+ RowDD.prototype.updateChildRecord = function (record, count) {
9347
9535
  var currentRecord;
9348
9536
  var tObj = this.parent;
9349
9537
  var length = 0;
@@ -9370,7 +9558,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9370
9558
  }
9371
9559
  return count;
9372
9560
  };
9373
- RowDD$$1.prototype.updateChildRecordLevel = function (record, level) {
9561
+ RowDD.prototype.updateChildRecordLevel = function (record, level) {
9374
9562
  var length = 0;
9375
9563
  var currentRecord;
9376
9564
  level++;
@@ -9400,7 +9588,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9400
9588
  }
9401
9589
  return level;
9402
9590
  };
9403
- RowDD$$1.prototype.removeRecords = function (record) {
9591
+ RowDD.prototype.removeRecords = function (record) {
9404
9592
  var tObj = this.parent;
9405
9593
  var dataSource;
9406
9594
  if (this.parent.dataSource instanceof DataManager && isOffline(this.parent)) {
@@ -9482,14 +9670,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9482
9670
  }
9483
9671
  }
9484
9672
  };
9485
- RowDD$$1.prototype.updateModifiedRecords = function (record) {
9673
+ RowDD.prototype.updateModifiedRecords = function (record) {
9486
9674
  var parentData = getParentData(this.parent, record.parentUniqueID);
9487
9675
  if (!isNullOrUndefined(parentData)) {
9488
9676
  this.parent[this.modifiedRecords].push(parentData);
9489
9677
  this.updateModifiedRecords(parentData);
9490
9678
  }
9491
9679
  };
9492
- RowDD$$1.prototype.removeChildItem = function (record) {
9680
+ RowDD.prototype.removeChildItem = function (record) {
9493
9681
  var currentRecord;
9494
9682
  var idx;
9495
9683
  var idz;
@@ -9535,7 +9723,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9535
9723
  }
9536
9724
  }
9537
9725
  };
9538
- RowDD$$1.prototype.getChildCount = function (record, count) {
9726
+ RowDD.prototype.getChildCount = function (record, count) {
9539
9727
  var currentRecord;
9540
9728
  if (!record.hasChildRecords) {
9541
9729
  return 0;
@@ -9549,7 +9737,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9549
9737
  }
9550
9738
  return count;
9551
9739
  };
9552
- RowDD$$1.prototype.ensuredropPosition = function (draggedRecords, currentRecord) {
9740
+ RowDD.prototype.ensuredropPosition = function (draggedRecords, currentRecord) {
9553
9741
  var _this = this;
9554
9742
  draggedRecords.filter(function (e) {
9555
9743
  if (e.hasChildRecords && !isNullOrUndefined(e.childRecords)) {
@@ -9566,14 +9754,14 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9566
9754
  }
9567
9755
  });
9568
9756
  };
9569
- RowDD$$1.prototype.destroy = function () {
9757
+ RowDD.prototype.destroy = function () {
9570
9758
  this.removeEventListener();
9571
9759
  };
9572
9760
  /**
9573
9761
  * @hidden
9574
9762
  * @returns {void}
9575
9763
  */
9576
- RowDD$$1.prototype.removeEventListener = function () {
9764
+ RowDD.prototype.removeEventListener = function () {
9577
9765
  if (this.parent.isDestroyed) {
9578
9766
  return;
9579
9767
  }
@@ -9591,17 +9779,13 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
9591
9779
  * @private
9592
9780
  * @returns {string} Returns RowDragAndDrop module name
9593
9781
  */
9594
- RowDD$$1.prototype.getModuleName = function () {
9782
+ RowDD.prototype.getModuleName = function () {
9595
9783
  return 'rowDragAndDrop';
9596
9784
  };
9597
- return RowDD$$1;
9785
+ return RowDD;
9598
9786
  }());
9599
9787
 
9600
- /**
9601
- * Base export
9602
- */
9603
-
9604
- var __extends$14 = (undefined && undefined.__extends) || (function () {
9788
+ var __extends$e = (undefined && undefined.__extends) || (function () {
9605
9789
  var extendStatics = function (d, b) {
9606
9790
  extendStatics = Object.setPrototypeOf ||
9607
9791
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9614,7 +9798,7 @@ var __extends$14 = (undefined && undefined.__extends) || (function () {
9614
9798
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9615
9799
  };
9616
9800
  })();
9617
- var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9801
+ var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9618
9802
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
9619
9803
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
9620
9804
  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;
@@ -9623,22 +9807,18 @@ var __decorate$12 = (undefined && undefined.__decorate) || function (decorators,
9623
9807
  /**
9624
9808
  * Configures the row drop settings of the TreeGrid.
9625
9809
  */
9626
- var RowDropSettings$1 = /** @__PURE__ @class */ (function (_super) {
9627
- __extends$14(RowDropSettings$$1, _super);
9628
- function RowDropSettings$$1() {
9810
+ var RowDropSettings = /** @__PURE__ @class */ (function (_super) {
9811
+ __extends$e(RowDropSettings, _super);
9812
+ function RowDropSettings() {
9629
9813
  return _super !== null && _super.apply(this, arguments) || this;
9630
9814
  }
9631
- __decorate$12([
9815
+ __decorate$c([
9632
9816
  Property()
9633
- ], RowDropSettings$$1.prototype, "targetID", void 0);
9634
- return RowDropSettings$$1;
9817
+ ], RowDropSettings.prototype, "targetID", void 0);
9818
+ return RowDropSettings;
9635
9819
  }(ChildProperty));
9636
9820
 
9637
- /**
9638
- * Models export
9639
- */
9640
-
9641
- var __extends$15 = (undefined && undefined.__extends) || (function () {
9821
+ var __extends$f = (undefined && undefined.__extends) || (function () {
9642
9822
  var extendStatics = function (d, b) {
9643
9823
  extendStatics = Object.setPrototypeOf ||
9644
9824
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -9657,7 +9837,7 @@ var __extends$15 = (undefined && undefined.__extends) || (function () {
9657
9837
  * @hidden
9658
9838
  */
9659
9839
  var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9660
- __extends$15(TreeVirtualRowModelGenerator, _super);
9840
+ __extends$f(TreeVirtualRowModelGenerator, _super);
9661
9841
  function TreeVirtualRowModelGenerator(parent) {
9662
9842
  var _this = _super.call(this, parent) || this;
9663
9843
  _this.addEventListener();
@@ -9705,8 +9885,8 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9705
9885
  var rows = _super.prototype.generateRows.call(this, data, notifyArgs);
9706
9886
  if (!isNullOrUndefined((this.visualData))) {
9707
9887
  for (var r = 0; r < rows.length; r++) {
9708
- rows[parseInt(r.toString(), 10)].index =
9709
- (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
9888
+ rows[parseInt(r.toString(), 10)].index
9889
+ = (this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
9710
9890
  }
9711
9891
  }
9712
9892
  return rows;
@@ -9746,23 +9926,19 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9746
9926
  return TreeVirtualRowModelGenerator;
9747
9927
  }(VirtualRowModelGenerator));
9748
9928
 
9749
- /**
9750
- * Renderer export
9751
- */
9752
-
9753
9929
  /**
9754
9930
  * TreeGrid Filter module will handle filtering action
9755
9931
  *
9756
9932
  * @hidden
9757
9933
  */
9758
- var Filter$1 = /** @__PURE__ @class */ (function () {
9934
+ var Filter = /** @__PURE__ @class */ (function () {
9759
9935
  /**
9760
9936
  * Constructor for Filter module
9761
9937
  *
9762
9938
  * @param {TreeGrid} parent - Tree Grid instance
9763
9939
  */
9764
- function Filter$$1(parent) {
9765
- Grid.Inject(Filter);
9940
+ function Filter(parent) {
9941
+ Grid.Inject(Filter$1);
9766
9942
  this.parent = parent;
9767
9943
  this.isHierarchyFilter = false;
9768
9944
  this.filteredResult = [];
@@ -9776,7 +9952,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9776
9952
  * @private
9777
9953
  * @returns {string} Returns Filter module name
9778
9954
  */
9779
- Filter$$1.prototype.getModuleName = function () {
9955
+ Filter.prototype.getModuleName = function () {
9780
9956
  return 'filter';
9781
9957
  };
9782
9958
  /**
@@ -9785,14 +9961,14 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9785
9961
  * @returns {void}
9786
9962
  * @hidden
9787
9963
  */
9788
- Filter$$1.prototype.destroy = function () {
9964
+ Filter.prototype.destroy = function () {
9789
9965
  this.removeEventListener();
9790
9966
  };
9791
9967
  /**
9792
9968
  * @hidden
9793
9969
  * @returns {void}
9794
9970
  */
9795
- Filter$$1.prototype.addEventListener = function () {
9971
+ Filter.prototype.addEventListener = function () {
9796
9972
  this.parent.on('updateFilterRecs', this.updatedFilteredRecord, this);
9797
9973
  this.parent.on('clearFilters', this.clearFilterLevel, this);
9798
9974
  };
@@ -9800,7 +9976,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9800
9976
  * @hidden
9801
9977
  * @returns {void}
9802
9978
  */
9803
- Filter$$1.prototype.removeEventListener = function () {
9979
+ Filter.prototype.removeEventListener = function () {
9804
9980
  if (this.parent.isDestroyed) {
9805
9981
  return;
9806
9982
  }
@@ -9815,7 +9991,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9815
9991
  * @hidden
9816
9992
  * @returns {void}
9817
9993
  */
9818
- Filter$$1.prototype.updatedFilteredRecord = function (dataDetails) {
9994
+ Filter.prototype.updatedFilteredRecord = function (dataDetails) {
9819
9995
  setValue('uniqueIDFilterCollection', {}, this.parent);
9820
9996
  this.flatFilteredData = dataDetails.data;
9821
9997
  this.filteredParentRecs = [];
@@ -9850,7 +10026,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9850
10026
  }
9851
10027
  this.parent.notify('updateAction', { result: this.filteredResult });
9852
10028
  };
9853
- Filter$$1.prototype.updateParentFilteredRecord = function (record) {
10029
+ Filter.prototype.updateParentFilteredRecord = function (record) {
9854
10030
  var parRecord = getParentData(this.parent, record.parentItem.uniqueID, true);
9855
10031
  var uniqueIDValue = getValue('uniqueIDFilterCollection', this.parent);
9856
10032
  if (parRecord && Object.prototype.hasOwnProperty.call(uniqueIDValue, parRecord.uniqueID)) {
@@ -9860,7 +10036,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9860
10036
  this.updateParentFilteredRecord(parRecord);
9861
10037
  }
9862
10038
  };
9863
- Filter$$1.prototype.addParentRecord = function (record) {
10039
+ Filter.prototype.addParentRecord = function (record) {
9864
10040
  var parent = getParentData(this.parent, record.parentUniqueID);
9865
10041
  //let parent: Object = this.parent.flatData.filter((e: ITreeData) => {return e.uniqueID === record.parentUniqueID; })[0];
9866
10042
  var hierarchyMode = this.parent.grid.searchSettings.key === '' ? this.parent.filterSettings.hierarchyMode
@@ -9913,7 +10089,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9913
10089
  }
9914
10090
  }
9915
10091
  };
9916
- Filter$$1.prototype.checkChildExsist = function (records) {
10092
+ Filter.prototype.checkChildExsist = function (records) {
9917
10093
  var childRec = getObject('childRecords', records);
9918
10094
  var isExist = false;
9919
10095
  for (var count = 0; count < childRec.length; count++) {
@@ -9945,7 +10121,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9945
10121
  }
9946
10122
  return isExist;
9947
10123
  };
9948
- Filter$$1.prototype.updateFilterLevel = function () {
10124
+ Filter.prototype.updateFilterLevel = function () {
9949
10125
  var record = this.filteredResult;
9950
10126
  var len = this.filteredResult.length;
9951
10127
  for (var c = 0; c < len; c++) {
@@ -9961,7 +10137,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9961
10137
  }
9962
10138
  }
9963
10139
  };
9964
- Filter$$1.prototype.clearFilterLevel = function (data) {
10140
+ Filter.prototype.clearFilterLevel = function (data) {
9965
10141
  var count = 0;
9966
10142
  var flatData = data.flatData;
9967
10143
  var len = flatData.length;
@@ -9977,7 +10153,7 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9977
10153
  this.filteredResult = [];
9978
10154
  this.parent.notify('updateResults', { result: flatData, count: flatData.length });
9979
10155
  };
9980
- return Filter$$1;
10156
+ return Filter;
9981
10157
  }());
9982
10158
 
9983
10159
  /**
@@ -9985,15 +10161,15 @@ var Filter$1 = /** @__PURE__ @class */ (function () {
9985
10161
  *
9986
10162
  * @hidden
9987
10163
  */
9988
- var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10164
+ var ExcelExport = /** @__PURE__ @class */ (function () {
9989
10165
  /**
9990
10166
  * Constructor for Excel Export module
9991
10167
  *
9992
10168
  * @param {TreeGrid} parent - Tree Grid instance
9993
10169
  */
9994
- function ExcelExport$$1(parent) {
10170
+ function ExcelExport(parent) {
9995
10171
  this.isCollapsedStatePersist = false;
9996
- Grid.Inject(ExcelExport);
10172
+ Grid.Inject(ExcelExport$1);
9997
10173
  this.parent = parent;
9998
10174
  this.dataResults = {};
9999
10175
  this.addEventListener();
@@ -10004,14 +10180,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10004
10180
  * @private
10005
10181
  * @returns {string} Returns ExcelExport module name
10006
10182
  */
10007
- ExcelExport$$1.prototype.getModuleName = function () {
10183
+ ExcelExport.prototype.getModuleName = function () {
10008
10184
  return 'ExcelExport';
10009
10185
  };
10010
10186
  /**
10011
10187
  * @hidden
10012
10188
  * @returns {void}
10013
10189
  */
10014
- ExcelExport$$1.prototype.addEventListener = function () {
10190
+ ExcelExport.prototype.addEventListener = function () {
10015
10191
  this.parent.on('updateResults', this.updateExcelResultModel, this);
10016
10192
  this.parent.on('excelCellInfo', this.excelQueryCellInfo, this);
10017
10193
  this.parent.grid.on('export-RowDataBound', this.exportRowDataBound, this);
@@ -10023,14 +10199,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10023
10199
  * @returns {void}
10024
10200
  * @hidden
10025
10201
  */
10026
- ExcelExport$$1.prototype.destroy = function () {
10202
+ ExcelExport.prototype.destroy = function () {
10027
10203
  this.removeEventListener();
10028
10204
  };
10029
10205
  /**
10030
10206
  * @hidden
10031
10207
  * @returns {void}
10032
10208
  */
10033
- ExcelExport$$1.prototype.removeEventListener = function () {
10209
+ ExcelExport.prototype.removeEventListener = function () {
10034
10210
  if (this.parent.isDestroyed) {
10035
10211
  return;
10036
10212
  }
@@ -10039,23 +10215,29 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10039
10215
  this.parent.grid.off('export-RowDataBound', this.exportRowDataBound);
10040
10216
  this.parent.grid.off('finalPageSetup', this.finalPageSetup);
10041
10217
  };
10042
- ExcelExport$$1.prototype.updateExcelResultModel = function (returnResult) {
10218
+ ExcelExport.prototype.updateExcelResultModel = function (returnResult) {
10043
10219
  this.dataResults = returnResult;
10044
10220
  };
10045
- ExcelExport$$1.prototype.Map = function (excelExportProperties,
10221
+ ExcelExport.prototype.Map = function (excelExportProperties,
10046
10222
  /* eslint-disable-next-line */
10047
10223
  isMultipleExport, workbook, isBlob, isCsv) {
10048
10224
  var _this = this;
10049
10225
  var dataSource = this.parent.dataSource;
10226
+ var data = new Data(this.parent.grid);
10050
10227
  var property = Object();
10051
10228
  setValue('isCsv', isCsv, property);
10052
10229
  setValue('cancel', false, property);
10053
10230
  if (!isNullOrUndefined(excelExportProperties)) {
10054
10231
  this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
10055
10232
  }
10056
- if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
10057
- && !isNullOrUndefined(excelExportProperties.dataSource instanceof DataManager)) {
10058
- return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
10233
+ if (!isNullOrUndefined(excelExportProperties)) {
10234
+ if (!isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
10235
+ return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
10236
+ }
10237
+ if (excelExportProperties.exportType === 'CurrentPage') {
10238
+ excelExportProperties.dataSource = this.parent.getCurrentViewRecords();
10239
+ return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
10240
+ }
10059
10241
  }
10060
10242
  return new Promise(function (resolve) {
10061
10243
  var dm = _this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
@@ -10064,9 +10246,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10064
10246
  if (!_this.isLocal()) {
10065
10247
  query = _this.generateQuery(query);
10066
10248
  query.queries = _this.parent.grid.getDataModule().generateQuery().queries;
10249
+ query = ExportHelper.getQuery(_this.parent.grid, data);
10250
+ if (isNullOrUndefined(_this.parent.filterModule)) {
10251
+ query.queries = query.queries.slice(1, 2);
10252
+ query.params = query.params.slice(0, 0);
10253
+ }
10067
10254
  setValue('query', query, property);
10068
10255
  }
10069
- _this.parent.trigger(beforeExcelExport, extend(property, excelExportProperties));
10256
+ _this.parent.trigger(beforeExcelExport, extend$1(property, excelExportProperties));
10070
10257
  if (getObject('cancel', property)) {
10071
10258
  return null;
10072
10259
  }
@@ -10088,7 +10275,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10088
10275
  });
10089
10276
  });
10090
10277
  };
10091
- ExcelExport$$1.prototype.generateQuery = function (query, property) {
10278
+ ExcelExport.prototype.generateQuery = function (query, property) {
10092
10279
  if (!isNullOrUndefined(property) && property.exportType === 'CurrentPage'
10093
10280
  && this.parent.allowPaging) {
10094
10281
  property.exportType = 'AllPages';
@@ -10098,7 +10285,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10098
10285
  }
10099
10286
  return query;
10100
10287
  };
10101
- ExcelExport$$1.prototype.manipulateExportProperties = function (property, dtSrc, queryResult) {
10288
+ ExcelExport.prototype.manipulateExportProperties = function (property, dtSrc, queryResult) {
10102
10289
  //count not required for this query
10103
10290
  var args = Object();
10104
10291
  setValue('query', this.parent.grid.getDataModule().generateQuery(true), args);
@@ -10139,7 +10326,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10139
10326
  * @hidden
10140
10327
  * @returns {void}
10141
10328
  */
10142
- ExcelExport$$1.prototype.excelQueryCellInfo = function (args) {
10329
+ ExcelExport.prototype.excelQueryCellInfo = function (args) {
10143
10330
  if (this.parent.grid.getColumnIndexByUid(args.column.uid) === this.parent.treeColumnIndex) {
10144
10331
  var style = {};
10145
10332
  var data = args.data;
@@ -10151,7 +10338,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10151
10338
  this.parent.notify('updateResults', args);
10152
10339
  this.parent.trigger('excelQueryCellInfo', args);
10153
10340
  };
10154
- ExcelExport$$1.prototype.exportRowDataBound = function (excelRow) {
10341
+ ExcelExport.prototype.exportRowDataBound = function (excelRow) {
10155
10342
  if (excelRow.type === 'excel') {
10156
10343
  var excelrowobj = excelRow.rowObj.data;
10157
10344
  var filtercolumnlength = this.parent.grid.filterSettings.columns.length;
@@ -10174,17 +10361,17 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10174
10361
  }
10175
10362
  };
10176
10363
  /* eslint-disable-next-line */
10177
- ExcelExport$$1.prototype.finalPageSetup = function (workbook) {
10364
+ ExcelExport.prototype.finalPageSetup = function (workbook) {
10178
10365
  for (var i = 0; i < workbook.worksheets.length; i++) {
10179
10366
  if (workbook.worksheets[parseInt(i.toString(), 10)].rows) {
10180
10367
  workbook.worksheets[parseInt(i.toString(), 10)].pageSetup = { isSummaryRowBelow: false };
10181
10368
  }
10182
10369
  }
10183
10370
  };
10184
- ExcelExport$$1.prototype.isLocal = function () {
10371
+ ExcelExport.prototype.isLocal = function () {
10185
10372
  return !isRemoteData(this.parent) && isOffline(this.parent);
10186
10373
  };
10187
- return ExcelExport$$1;
10374
+ return ExcelExport;
10188
10375
  }());
10189
10376
 
10190
10377
  /**
@@ -10192,14 +10379,14 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
10192
10379
  *
10193
10380
  * @hidden
10194
10381
  */
10195
- var PdfExport$1 = /** @__PURE__ @class */ (function () {
10382
+ var PdfExport = /** @__PURE__ @class */ (function () {
10196
10383
  /**
10197
10384
  * Constructor for PDF export module
10198
10385
  *
10199
10386
  * @param {TreeGrid} parent - Tree Grid instance
10200
10387
  */
10201
- function PdfExport$$1(parent) {
10202
- Grid.Inject(PdfExport);
10388
+ function PdfExport(parent) {
10389
+ Grid.Inject(PdfExport$1);
10203
10390
  this.parent = parent;
10204
10391
  this.dataResults = {};
10205
10392
  this.addEventListener();
@@ -10210,14 +10397,14 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10210
10397
  * @private
10211
10398
  * @returns {string} PdfExport module name
10212
10399
  */
10213
- PdfExport$$1.prototype.getModuleName = function () {
10400
+ PdfExport.prototype.getModuleName = function () {
10214
10401
  return 'PdfExport';
10215
10402
  };
10216
10403
  /**
10217
10404
  * @hidden
10218
10405
  * @returns {void}
10219
10406
  */
10220
- PdfExport$$1.prototype.addEventListener = function () {
10407
+ PdfExport.prototype.addEventListener = function () {
10221
10408
  this.parent.on('pdfCellInfo', this.pdfQueryCellInfo, this);
10222
10409
  this.parent.on('updateResults', this.updatePdfResultModel, this);
10223
10410
  };
@@ -10225,7 +10412,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10225
10412
  * @hidden
10226
10413
  * @returns {void}
10227
10414
  */
10228
- PdfExport$$1.prototype.removeEventListener = function () {
10415
+ PdfExport.prototype.removeEventListener = function () {
10229
10416
  if (this.parent.isDestroyed) {
10230
10417
  return;
10231
10418
  }
@@ -10238,13 +10425,13 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10238
10425
  * @returns {void}
10239
10426
  * @hidden
10240
10427
  */
10241
- PdfExport$$1.prototype.destroy = function () {
10428
+ PdfExport.prototype.destroy = function () {
10242
10429
  this.removeEventListener();
10243
10430
  };
10244
- PdfExport$$1.prototype.updatePdfResultModel = function (returnResult) {
10431
+ PdfExport.prototype.updatePdfResultModel = function (returnResult) {
10245
10432
  this.dataResults = returnResult;
10246
10433
  };
10247
- PdfExport$$1.prototype.Map = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
10434
+ PdfExport.prototype.Map = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
10248
10435
  var _this = this;
10249
10436
  var dtSrc = this.parent.dataSource;
10250
10437
  var prop = Object();
@@ -10258,7 +10445,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10258
10445
  query = _this.generateQuery(query);
10259
10446
  setValue('query', query, prop);
10260
10447
  }
10261
- _this.parent.trigger(beforePdfExport, extend(prop, pdfExportProperties));
10448
+ _this.parent.trigger(beforePdfExport, extend$1(prop, pdfExportProperties));
10262
10449
  if (getObject('cancel', prop)) {
10263
10450
  return null;
10264
10451
  }
@@ -10280,7 +10467,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10280
10467
  });
10281
10468
  });
10282
10469
  };
10283
- PdfExport$$1.prototype.generateQuery = function (query, prop) {
10470
+ PdfExport.prototype.generateQuery = function (query, prop) {
10284
10471
  if (!isNullOrUndefined(prop) && prop.exportType === 'CurrentPage'
10285
10472
  && this.parent.allowPaging) {
10286
10473
  prop.exportType = 'AllPages';
@@ -10290,7 +10477,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10290
10477
  }
10291
10478
  return query;
10292
10479
  };
10293
- PdfExport$$1.prototype.manipulatePdfProperties = function (prop, dtSrc, queryResult) {
10480
+ PdfExport.prototype.manipulatePdfProperties = function (prop, dtSrc, queryResult) {
10294
10481
  var args = {};
10295
10482
  //count not required for this query
10296
10483
  var isLocal = !isRemoteData(this.parent) && isOffline(this.parent);
@@ -10334,7 +10521,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10334
10521
  * @hidden
10335
10522
  * @returns {void}
10336
10523
  */
10337
- PdfExport$$1.prototype.pdfQueryCellInfo = function (args) {
10524
+ PdfExport.prototype.pdfQueryCellInfo = function (args) {
10338
10525
  if (this.parent.grid.getColumnIndexByUid(args.column.uid) === this.parent.treeColumnIndex) {
10339
10526
  var style = {};
10340
10527
  var data = getObject('data', args);
@@ -10346,7 +10533,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10346
10533
  this.parent.notify('updateResults', args);
10347
10534
  this.parent.trigger('pdfQueryCellInfo', args);
10348
10535
  };
10349
- return PdfExport$$1;
10536
+ return PdfExport;
10350
10537
  }());
10351
10538
 
10352
10539
  /**
@@ -10354,9 +10541,9 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10354
10541
  *
10355
10542
  * @hidden
10356
10543
  */
10357
- var Page$1 = /** @__PURE__ @class */ (function () {
10358
- function Page$$1(parent) {
10359
- Grid.Inject(Page);
10544
+ var Page = /** @__PURE__ @class */ (function () {
10545
+ function Page(parent) {
10546
+ Grid.Inject(Page$1);
10360
10547
  this.parent = parent;
10361
10548
  this.addEventListener();
10362
10549
  }
@@ -10364,7 +10551,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10364
10551
  * @hidden
10365
10552
  * @returns {void}
10366
10553
  */
10367
- Page$$1.prototype.addEventListener = function () {
10554
+ Page.prototype.addEventListener = function () {
10368
10555
  this.parent.on(localPagedExpandCollapse, this.collapseExpandPagedchilds, this);
10369
10556
  this.parent.on(pagingActions, this.pageAction, this);
10370
10557
  };
@@ -10372,7 +10559,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10372
10559
  * @hidden
10373
10560
  * @returns {void}
10374
10561
  */
10375
- Page$$1.prototype.removeEventListener = function () {
10562
+ Page.prototype.removeEventListener = function () {
10376
10563
  if (this.parent.isDestroyed) {
10377
10564
  return;
10378
10565
  }
@@ -10385,7 +10572,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10385
10572
  * @private
10386
10573
  * @returns {string} Returns Pager module name
10387
10574
  */
10388
- Page$$1.prototype.getModuleName = function () {
10575
+ Page.prototype.getModuleName = function () {
10389
10576
  return 'pager';
10390
10577
  };
10391
10578
  /**
@@ -10393,7 +10580,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10393
10580
  *
10394
10581
  * @returns {void}
10395
10582
  */
10396
- Page$$1.prototype.refresh = function () {
10583
+ Page.prototype.refresh = function () {
10397
10584
  this.parent.grid.pagerModule.refresh();
10398
10585
  };
10399
10586
  /**
@@ -10402,7 +10589,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10402
10589
  * @returns {void}
10403
10590
  * @hidden
10404
10591
  */
10405
- Page$$1.prototype.destroy = function () {
10592
+ Page.prototype.destroy = function () {
10406
10593
  this.removeEventListener();
10407
10594
  };
10408
10595
  /**
@@ -10411,7 +10598,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10411
10598
  * @param {number} pageNo - Defines the page number to navigate.
10412
10599
  * @returns {void}
10413
10600
  */
10414
- Page$$1.prototype.goToPage = function (pageNo) {
10601
+ Page.prototype.goToPage = function (pageNo) {
10415
10602
  this.parent.grid.pagerModule.goToPage(pageNo);
10416
10603
  };
10417
10604
  /**
@@ -10420,7 +10607,11 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10420
10607
  * @param {string} message - Defines the message to update.
10421
10608
  * @returns {void}
10422
10609
  */
10423
- Page$$1.prototype.updateExternalMessage = function (message) {
10610
+ Page.prototype.updateExternalMessage = function (message) {
10611
+ if (isNullOrUndefined(message)) {
10612
+ var error = 'The provided value for the message is undefined. Please ensure the message contains string.';
10613
+ this.parent.trigger(actionFailure, { error: error });
10614
+ }
10424
10615
  this.parent.grid.pagerModule.updateExternalMessage(message);
10425
10616
  };
10426
10617
  /**
@@ -10432,7 +10623,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10432
10623
  * @hidden
10433
10624
  * @returns {void}
10434
10625
  */
10435
- Page$$1.prototype.collapseExpandPagedchilds = function (rowDetails) {
10626
+ Page.prototype.collapseExpandPagedchilds = function (rowDetails) {
10436
10627
  rowDetails.record.expanded = rowDetails.action === 'collapse' ? false : true;
10437
10628
  this.parent.flatData.map(function (e) { return e.expanded = e.uniqueID === rowDetails.record.uniqueID &&
10438
10629
  e.expanded !== rowDetails.record.expanded ? rowDetails.record.expanded : e.expanded; });
@@ -10473,7 +10664,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10473
10664
  }
10474
10665
  }
10475
10666
  };
10476
- Page$$1.prototype.pageRoot = function (pagedResults, temp, result) {
10667
+ Page.prototype.pageRoot = function (pagedResults, temp, result) {
10477
10668
  var newResults = isNullOrUndefined(result) ? [] : result;
10478
10669
  var _loop_1 = function (t) {
10479
10670
  newResults.push(temp[parseInt(t.toString(), 10)]);
@@ -10491,7 +10682,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10491
10682
  }
10492
10683
  return newResults;
10493
10684
  };
10494
- Page$$1.prototype.updatePageSize = function (pageingDetails) {
10685
+ Page.prototype.updatePageSize = function (pageingDetails) {
10495
10686
  var updateSize = pageingDetails.result.length;
10496
10687
  var gridPagerModule = this.parent.grid.pagerModule;
10497
10688
  if (this.parent.pageSettings.pageSizes === true) {
@@ -10501,7 +10692,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10501
10692
  }
10502
10693
  }
10503
10694
  };
10504
- Page$$1.prototype.pageAction = function (pageingDetails) {
10695
+ Page.prototype.pageAction = function (pageingDetails) {
10505
10696
  var _this = this;
10506
10697
  var dm = new DataManager(pageingDetails.result);
10507
10698
  if (this.parent.pageSettings.pageSizeMode === 'Root') {
@@ -10522,8 +10713,8 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10522
10713
  }
10523
10714
  else {
10524
10715
  var dm_1 = new DataManager(pageingDetails.result);
10525
- var expanded$$1 = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
10526
- var parents_1 = dm_1.executeLocal(new Query().where(expanded$$1));
10716
+ var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
10717
+ var parents_1 = dm_1.executeLocal(new Query().where(expanded));
10527
10718
  var visualData = void 0;
10528
10719
  if (isFilterChildHierarchy(this.parent) && (pageingDetails.actionArgs.action !== 'collapse' &&
10529
10720
  pageingDetails.actionArgs.action !== 'expand')) {
@@ -10531,7 +10722,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10531
10722
  }
10532
10723
  else {
10533
10724
  visualData = parents_1.filter(function (e) {
10534
- return getExpandStatus(_this.parent, e, parents_1);
10725
+ return getExpandStatus(_this.parent, e);
10535
10726
  });
10536
10727
  }
10537
10728
  pageingDetails.count = visualData.length;
@@ -10551,7 +10742,7 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10551
10742
  }
10552
10743
  this.parent.notify('updateAction', pageingDetails);
10553
10744
  };
10554
- return Page$$1;
10745
+ return Page;
10555
10746
  }());
10556
10747
 
10557
10748
  /**
@@ -10559,9 +10750,9 @@ var Page$1 = /** @__PURE__ @class */ (function () {
10559
10750
  *
10560
10751
  * @hidden
10561
10752
  */
10562
- var Toolbar$1 = /** @__PURE__ @class */ (function () {
10563
- function Toolbar$$1(parent) {
10564
- Grid.Inject(Toolbar);
10753
+ var Toolbar = /** @__PURE__ @class */ (function () {
10754
+ function Toolbar(parent) {
10755
+ Grid.Inject(Toolbar$1);
10565
10756
  this.parent = parent;
10566
10757
  this.addEventListener();
10567
10758
  }
@@ -10571,14 +10762,14 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10571
10762
  * @private
10572
10763
  * @returns {string} - Returns Toolbar module name
10573
10764
  */
10574
- Toolbar$$1.prototype.getModuleName = function () {
10765
+ Toolbar.prototype.getModuleName = function () {
10575
10766
  return 'toolbar';
10576
10767
  };
10577
10768
  /**
10578
10769
  * @hidden
10579
10770
  * @returns {void}
10580
10771
  */
10581
- Toolbar$$1.prototype.addEventListener = function () {
10772
+ Toolbar.prototype.addEventListener = function () {
10582
10773
  this.parent.on(rowSelected, this.refreshToolbar, this);
10583
10774
  this.parent.on(rowDeselected, this.refreshToolbar, this);
10584
10775
  this.parent.on(toolbarClick, this.toolbarClickHandler, this);
@@ -10587,7 +10778,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10587
10778
  * @hidden
10588
10779
  * @returns {void}
10589
10780
  */
10590
- Toolbar$$1.prototype.removeEventListener = function () {
10781
+ Toolbar.prototype.removeEventListener = function () {
10591
10782
  if (this.parent.isDestroyed) {
10592
10783
  return;
10593
10784
  }
@@ -10595,7 +10786,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10595
10786
  this.parent.off(rowDeselected, this.refreshToolbar);
10596
10787
  this.parent.off(toolbarClick, this.toolbarClickHandler);
10597
10788
  };
10598
- Toolbar$$1.prototype.refreshToolbar = function (args) {
10789
+ Toolbar.prototype.refreshToolbar = function (args) {
10599
10790
  var toolbarElement = this.parent.grid.toolbarModule.getToolbar();
10600
10791
  if (!isNullOrUndefined(toolbarElement)) {
10601
10792
  var tObj = this.parent;
@@ -10649,7 +10840,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10649
10840
  }
10650
10841
  }
10651
10842
  };
10652
- Toolbar$$1.prototype.toolbarClickHandler = function (args) {
10843
+ Toolbar.prototype.toolbarClickHandler = function (args) {
10653
10844
  var tObj = this.parent;
10654
10845
  var indentOutdentAction = 'indentOutdentAction';
10655
10846
  if (this.parent.editSettings.mode === 'Cell' && this.parent.grid.editSettings.mode === 'Batch' &&
@@ -10678,7 +10869,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10678
10869
  * @returns {Element} - Returns Toolbar element
10679
10870
  * @hidden
10680
10871
  */
10681
- Toolbar$$1.prototype.getToolbar = function () {
10872
+ Toolbar.prototype.getToolbar = function () {
10682
10873
  return this.parent.grid.toolbarModule.getToolbar();
10683
10874
  };
10684
10875
  /**
@@ -10689,7 +10880,7 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10689
10880
  * @returns {void}
10690
10881
  * @hidden
10691
10882
  */
10692
- Toolbar$$1.prototype.enableItems = function (items, isEnable) {
10883
+ Toolbar.prototype.enableItems = function (items, isEnable) {
10693
10884
  this.parent.grid.toolbarModule.enableItems(items, isEnable);
10694
10885
  };
10695
10886
  /**
@@ -10698,10 +10889,10 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10698
10889
  * @method destroy
10699
10890
  * @returns {void}
10700
10891
  */
10701
- Toolbar$$1.prototype.destroy = function () {
10892
+ Toolbar.prototype.destroy = function () {
10702
10893
  this.removeEventListener();
10703
10894
  };
10704
- return Toolbar$$1;
10895
+ return Toolbar;
10705
10896
  }());
10706
10897
 
10707
10898
  /**
@@ -10709,14 +10900,14 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
10709
10900
  *
10710
10901
  * @hidden
10711
10902
  */
10712
- var Aggregate$1 = /** @__PURE__ @class */ (function () {
10903
+ var Aggregate = /** @__PURE__ @class */ (function () {
10713
10904
  /**
10714
10905
  * Constructor for Aggregate module
10715
10906
  *
10716
10907
  * @param {TreeGrid} parent - Tree Grid instance
10717
10908
  */
10718
- function Aggregate$$1(parent) {
10719
- Grid.Inject(Aggregate);
10909
+ function Aggregate(parent) {
10910
+ Grid.Inject(Aggregate$1);
10720
10911
  this.parent = parent;
10721
10912
  this.flatChildRecords = [];
10722
10913
  this.summaryQuery = [];
@@ -10727,10 +10918,10 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10727
10918
  * @private
10728
10919
  * @returns {string} Returns Summary module name
10729
10920
  */
10730
- Aggregate$$1.prototype.getModuleName = function () {
10921
+ Aggregate.prototype.getModuleName = function () {
10731
10922
  return 'summary';
10732
10923
  };
10733
- Aggregate$$1.prototype.removeEventListener = function () {
10924
+ Aggregate.prototype.removeEventListener = function () {
10734
10925
  if (this.parent.isDestroyed) {
10735
10926
  return;
10736
10927
  }
@@ -10744,7 +10935,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10744
10935
  * @hidden
10745
10936
  * @returns {Object[]} - return flat records with summary values
10746
10937
  */
10747
- Aggregate$$1.prototype.calculateSummaryValue = function (summaryQuery, filteredData, isSort) {
10938
+ Aggregate.prototype.calculateSummaryValue = function (summaryQuery, filteredData, isSort) {
10748
10939
  this.summaryQuery = summaryQuery;
10749
10940
  var parentRecord;
10750
10941
  var parentDataLength = Object.keys(filteredData).length;
@@ -10784,7 +10975,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10784
10975
  }
10785
10976
  });
10786
10977
  var currentIndex = idx_1 + childRecordsLength + summaryRowIndex;
10787
- var summaryParent = extend({}, parentRecord);
10978
+ var summaryParent = extend$1({}, parentRecord);
10788
10979
  delete summaryParent.childRecords;
10789
10980
  delete summaryParent[this_1.parent.childMapping];
10790
10981
  setValue('parentItem', summaryParent, item);
@@ -10825,7 +11016,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10825
11016
  }
10826
11017
  return flatRecords;
10827
11018
  };
10828
- Aggregate$$1.prototype.getChildRecordsLength = function (parentData, flatData) {
11019
+ Aggregate.prototype.getChildRecordsLength = function (parentData, flatData) {
10829
11020
  var recordLength = Object.keys(flatData).length;
10830
11021
  var record;
10831
11022
  for (var i = 0, len = recordLength; i < len; i++) {
@@ -10845,7 +11036,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10845
11036
  }
10846
11037
  return this.flatChildRecords.length;
10847
11038
  };
10848
- Aggregate$$1.prototype.createSummaryItem = function (itemData, summary) {
11039
+ Aggregate.prototype.createSummaryItem = function (itemData, summary) {
10849
11040
  var summaryColumnLength = Object.keys(summary.columns).length;
10850
11041
  for (var i = 0, len = summaryColumnLength; i < len; i++) {
10851
11042
  var displayColumn = isNullOrUndefined(summary.columns[parseInt(i.toString(), 10)].columnName) ?
@@ -10870,7 +11061,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10870
11061
  }
10871
11062
  return itemData;
10872
11063
  };
10873
- Aggregate$$1.prototype.getSummaryValues = function (summaryColumn, summaryData) {
11064
+ Aggregate.prototype.getSummaryValues = function (summaryColumn, summaryData) {
10874
11065
  var qry = new Query();
10875
11066
  var single = {};
10876
11067
  var helper = {};
@@ -10921,7 +11112,7 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10921
11112
  return cellElement.innerHTML;
10922
11113
  }
10923
11114
  };
10924
- Aggregate$$1.prototype.getFormatFromType = function (summaryformat, type) {
11115
+ Aggregate.prototype.getFormatFromType = function (summaryformat, type) {
10925
11116
  if (isNullOrUndefined(type) || typeof summaryformat !== 'string') {
10926
11117
  return summaryformat;
10927
11118
  }
@@ -10945,10 +11136,10 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10945
11136
  * @returns {void}
10946
11137
  * @hidden
10947
11138
  */
10948
- Aggregate$$1.prototype.destroy = function () {
11139
+ Aggregate.prototype.destroy = function () {
10949
11140
  this.removeEventListener();
10950
11141
  };
10951
- return Aggregate$$1;
11142
+ return Aggregate;
10952
11143
  }());
10953
11144
 
10954
11145
  /**
@@ -10956,9 +11147,9 @@ var Aggregate$1 = /** @__PURE__ @class */ (function () {
10956
11147
  *
10957
11148
  * @hidden
10958
11149
  */
10959
- var Sort$1 = /** @__PURE__ @class */ (function () {
10960
- function Sort$$1(grid) {
10961
- Grid.Inject(Sort);
11150
+ var Sort = /** @__PURE__ @class */ (function () {
11151
+ function Sort(grid) {
11152
+ Grid.Inject(Sort$1);
10962
11153
  this.parent = grid;
10963
11154
  this.taskIds = [];
10964
11155
  this.flatSortedData = [];
@@ -10972,13 +11163,13 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
10972
11163
  * @private
10973
11164
  * @returns {string} Returns Sort module name
10974
11165
  */
10975
- Sort$$1.prototype.getModuleName = function () {
11166
+ Sort.prototype.getModuleName = function () {
10976
11167
  return 'sort';
10977
11168
  };
10978
11169
  /**
10979
11170
  * @hidden
10980
11171
  */
10981
- Sort$$1.prototype.addEventListener = function () {
11172
+ Sort.prototype.addEventListener = function () {
10982
11173
  this.parent.on('updateModel', this.updateModel, this);
10983
11174
  this.parent.on('createSort', this.createdSortedRecords, this);
10984
11175
  };
@@ -10986,14 +11177,14 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
10986
11177
  * @hidden
10987
11178
  * @returns {void}
10988
11179
  */
10989
- Sort$$1.prototype.removeEventListener = function () {
11180
+ Sort.prototype.removeEventListener = function () {
10990
11181
  if (this.parent.isDestroyed) {
10991
11182
  return;
10992
11183
  }
10993
11184
  this.parent.off('updateModel', this.updateModel);
10994
11185
  this.parent.off('createSort', this.createdSortedRecords);
10995
11186
  };
10996
- Sort$$1.prototype.createdSortedRecords = function (sortParams) {
11187
+ Sort.prototype.createdSortedRecords = function (sortParams) {
10997
11188
  var data = sortParams.modifiedData;
10998
11189
  var srtQry = sortParams.srtQry;
10999
11190
  this.iterateSort(data, srtQry);
@@ -11001,7 +11192,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11001
11192
  sortParams.modifiedData = this.flatSortedData;
11002
11193
  this.flatSortedData = [];
11003
11194
  };
11004
- Sort$$1.prototype.iterateSort = function (data, srtQry) {
11195
+ Sort.prototype.iterateSort = function (data, srtQry) {
11005
11196
  for (var d = 0; d < data.length; d++) {
11006
11197
  if (this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
11007
11198
  if (!isNullOrUndefined(getParentData(this.parent, data[parseInt(d.toString(), 10)].uniqueID, true))) {
@@ -11039,10 +11230,10 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11039
11230
  * @param {boolean} isMultiSort - Specifies whether the previous sorted columns are to be maintained.
11040
11231
  * @returns {void}
11041
11232
  */
11042
- Sort$$1.prototype.sortColumn = function (columnName, direction, isMultiSort) {
11233
+ Sort.prototype.sortColumn = function (columnName, direction, isMultiSort) {
11043
11234
  this.parent.grid.sortColumn(columnName, direction, isMultiSort);
11044
11235
  };
11045
- Sort$$1.prototype.removeSortColumn = function (field) {
11236
+ Sort.prototype.removeSortColumn = function (field) {
11046
11237
  this.parent.grid.removeSortColumn(field);
11047
11238
  };
11048
11239
  /**
@@ -11051,7 +11242,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11051
11242
  * @returns {void}
11052
11243
  * @hidden
11053
11244
  */
11054
- Sort$$1.prototype.updateModel = function () {
11245
+ Sort.prototype.updateModel = function () {
11055
11246
  this.parent.setProperties({ sortSettings: getActualProperties(this.parent.grid.sortSettings) }, true);
11056
11247
  };
11057
11248
  /**
@@ -11059,7 +11250,7 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11059
11250
  *
11060
11251
  * @returns {void}
11061
11252
  */
11062
- Sort$$1.prototype.clearSorting = function () {
11253
+ Sort.prototype.clearSorting = function () {
11063
11254
  this.parent.grid.clearSorting();
11064
11255
  this.updateModel();
11065
11256
  };
@@ -11069,10 +11260,10 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11069
11260
  * @function destroy
11070
11261
  * @returns {void}
11071
11262
  */
11072
- Sort$$1.prototype.destroy = function () {
11263
+ Sort.prototype.destroy = function () {
11073
11264
  this.removeEventListener();
11074
11265
  };
11075
- return Sort$$1;
11266
+ return Sort;
11076
11267
  }());
11077
11268
 
11078
11269
  /**
@@ -11080,20 +11271,20 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
11080
11271
  *
11081
11272
  * @hidden
11082
11273
  */
11083
- var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
11274
+ var ColumnMenu = /** @__PURE__ @class */ (function () {
11084
11275
  /**
11085
11276
  * Constructor for render module
11086
11277
  *
11087
11278
  * @param {TreeGrid} parent - Tree Grid instance
11088
11279
  */
11089
- function ColumnMenu$$1(parent) {
11090
- Grid.Inject(ColumnMenu);
11280
+ function ColumnMenu(parent) {
11281
+ Grid.Inject(ColumnMenu$1);
11091
11282
  this.parent = parent;
11092
11283
  }
11093
- ColumnMenu$$1.prototype.getColumnMenu = function () {
11284
+ ColumnMenu.prototype.getColumnMenu = function () {
11094
11285
  return this.parent.grid.columnMenuModule.getColumnMenu();
11095
11286
  };
11096
- ColumnMenu$$1.prototype.destroy = function () {
11287
+ ColumnMenu.prototype.destroy = function () {
11097
11288
  //this.parent.grid.columnMenuModule.destroy();
11098
11289
  };
11099
11290
  /**
@@ -11102,10 +11293,10 @@ var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
11102
11293
  * @private
11103
11294
  * @returns {string} Returns ColumnMenu module name
11104
11295
  */
11105
- ColumnMenu$$1.prototype.getModuleName = function () {
11296
+ ColumnMenu.prototype.getModuleName = function () {
11106
11297
  return 'columnMenu';
11107
11298
  };
11108
- return ColumnMenu$$1;
11299
+ return ColumnMenu;
11109
11300
  }());
11110
11301
 
11111
11302
  /**
@@ -11113,9 +11304,9 @@ var ColumnMenu$1 = /** @__PURE__ @class */ (function () {
11113
11304
  *
11114
11305
  * @hidden
11115
11306
  */
11116
- var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11117
- function ContextMenu$$1(parent) {
11118
- Grid.Inject(ContextMenu);
11307
+ var ContextMenu = /** @__PURE__ @class */ (function () {
11308
+ function ContextMenu(parent) {
11309
+ Grid.Inject(ContextMenu$1);
11119
11310
  this.parent = parent;
11120
11311
  this.addEventListener();
11121
11312
  }
@@ -11123,7 +11314,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11123
11314
  * @hidden
11124
11315
  * @returns {void}
11125
11316
  */
11126
- ContextMenu$$1.prototype.addEventListener = function () {
11317
+ ContextMenu.prototype.addEventListener = function () {
11127
11318
  this.parent.on('contextMenuOpen', this.contextMenuOpen, this);
11128
11319
  this.parent.on('contextMenuClick', this.contextMenuClick, this);
11129
11320
  };
@@ -11131,14 +11322,14 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11131
11322
  * @hidden
11132
11323
  * @returns {void}
11133
11324
  */
11134
- ContextMenu$$1.prototype.removeEventListener = function () {
11325
+ ContextMenu.prototype.removeEventListener = function () {
11135
11326
  if (this.parent.isDestroyed) {
11136
11327
  return;
11137
11328
  }
11138
11329
  this.parent.off('contextMenuOpen', this.contextMenuOpen);
11139
11330
  this.parent.off('contextMenuClick', this.contextMenuClick);
11140
11331
  };
11141
- ContextMenu$$1.prototype.contextMenuOpen = function (args) {
11332
+ ContextMenu.prototype.contextMenuOpen = function (args) {
11142
11333
  var addRow = select('#' + this.parent.element.id + '_gridcontrol_cmenu_AddRow', args.element);
11143
11334
  var editRecord = select('#' + this.parent.element.id + '_gridcontrol_cmenu_Edit', args.element);
11144
11335
  var indent = select('#' + this.parent.element.id + '_gridcontrol_cmenu_Indent', args.element);
@@ -11209,7 +11400,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11209
11400
  }
11210
11401
  }
11211
11402
  };
11212
- ContextMenu$$1.prototype.contextMenuClick = function (args) {
11403
+ ContextMenu.prototype.contextMenuClick = function (args) {
11213
11404
  if (args.item.id === 'Above' || args.item.id === 'Below' || args.item.id === 'Child') {
11214
11405
  this.parent.notify('savePreviousRowPosition', args);
11215
11406
  this.parent.setProperties({ editSettings: { newRowPosition: args.item.id } }, true);
@@ -11230,7 +11421,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11230
11421
  * @private
11231
11422
  * @returns {string} Returns ContextMenu module name
11232
11423
  */
11233
- ContextMenu$$1.prototype.getModuleName = function () {
11424
+ ContextMenu.prototype.getModuleName = function () {
11234
11425
  return 'contextMenu';
11235
11426
  };
11236
11427
  /**
@@ -11239,7 +11430,7 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11239
11430
  * @function destroy
11240
11431
  * @returns {void}
11241
11432
  */
11242
- ContextMenu$$1.prototype.destroy = function () {
11433
+ ContextMenu.prototype.destroy = function () {
11243
11434
  this.removeEventListener();
11244
11435
  };
11245
11436
  /**
@@ -11247,10 +11438,10 @@ var ContextMenu$1 = /** @__PURE__ @class */ (function () {
11247
11438
  *
11248
11439
  * @returns {Element} Return Context Menu root element.
11249
11440
  */
11250
- ContextMenu$$1.prototype.getContextMenu = function () {
11441
+ ContextMenu.prototype.getContextMenu = function () {
11251
11442
  return this.parent.grid.contextMenuModule.getContextMenu();
11252
11443
  };
11253
- return ContextMenu$$1;
11444
+ return ContextMenu;
11254
11445
  }());
11255
11446
 
11256
11447
  /**
@@ -11398,7 +11589,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11398
11589
  if (this.parent.editSettings.newRowPosition === 'Child') {
11399
11590
  added.primaryParent = parentRecord;
11400
11591
  if (this.selectedIndex > -1) {
11401
- added.parentItem = extend({}, this.batchRecords[this.addRowIndex]);
11592
+ added.parentItem = extend$1({}, this.batchRecords[this.addRowIndex]);
11402
11593
  added.parentUniqueID = added.parentItem.uniqueID;
11403
11594
  delete added.parentItem.childRecords;
11404
11595
  delete added.parentItem[this.parent.childMapping];
@@ -11507,13 +11698,13 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11507
11698
  this.updateRowIndex();
11508
11699
  // update focus module, need to refix this once grid source modified.
11509
11700
  var focusModule = getValue('focusModule', this.parent.grid);
11510
- var table$$1 = this.parent.getContentTable();
11701
+ var table = this.parent.getContentTable();
11511
11702
  if (this.parent.getBatchChanges()[this.deletedRecords].length && this.parent.editSettings.newRowPosition === 'Above') {
11512
11703
  actualIndex = e.row.rowIndex;
11513
11704
  focusModule.getContent().matrix.matrix = this.matrix;
11514
11705
  }
11515
11706
  else {
11516
- actualIndex = table$$1.getElementsByClassName('e-batchrow')[0].rowIndex;
11707
+ actualIndex = table.getElementsByClassName('e-batchrow')[0].rowIndex;
11517
11708
  // if (this.parent.frozenRows || this.parent.frozenColumns) {
11518
11709
  // actualIndex = this.batchIndex;
11519
11710
  // }
@@ -11741,7 +11932,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11741
11932
  addRecords.reverse();
11742
11933
  }
11743
11934
  for (i = 0; i < addRecords.length; i++) {
11744
- var taskData = extend({}, addRecords[parseInt(i.toString(), 10)]);
11935
+ var taskData = extend$1({}, addRecords[parseInt(i.toString(), 10)]);
11745
11936
  delete taskData.parentItem;
11746
11937
  delete taskData.uniqueID;
11747
11938
  delete taskData.index;
@@ -11866,19 +12057,19 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11866
12057
  * TreeGrid Edit Module
11867
12058
  * The `Edit` module is used to handle editing actions.
11868
12059
  */
11869
- var Edit$1 = /** @__PURE__ @class */ (function () {
12060
+ var Edit = /** @__PURE__ @class */ (function () {
11870
12061
  /**
11871
12062
  * Constructor for Edit module
11872
12063
  *
11873
12064
  * @param {TreeGrid} parent - Tree Grid instance
11874
12065
  */
11875
- function Edit$$1(parent) {
12066
+ function Edit(parent) {
11876
12067
  this.addedRecords = 'addedRecords';
11877
12068
  this.deletedRecords = 'deletedRecords';
11878
12069
  this.prevAriaRowIndex = '-1';
11879
12070
  this.isAddedRowByMethod = false;
11880
12071
  this.isAddedRowByContextMenu = false;
11881
- Grid.Inject(Edit);
12072
+ Grid.Inject(Edit$1);
11882
12073
  this.parent = parent;
11883
12074
  this.isSelfReference = !isNullOrUndefined(parent.parentIdMapping);
11884
12075
  this.previousNewRowPosition = null;
@@ -11892,14 +12083,14 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11892
12083
  * @private
11893
12084
  * @returns {string} Returns Edit module name
11894
12085
  */
11895
- Edit$$1.prototype.getModuleName = function () {
12086
+ Edit.prototype.getModuleName = function () {
11896
12087
  return 'edit';
11897
12088
  };
11898
12089
  /**
11899
12090
  * @hidden
11900
12091
  * @returns {void}
11901
12092
  */
11902
- Edit$$1.prototype.addEventListener = function () {
12093
+ Edit.prototype.addEventListener = function () {
11903
12094
  this.parent.on(crudAction, this.crudAction, this);
11904
12095
  this.parent.on(beginEdit, this.beginEdit, this);
11905
12096
  this.parent.on(beginAdd, this.beginAdd, this);
@@ -11922,7 +12113,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11922
12113
  this.parent.grid.on('reset-edit-props', this.resetIsOnBatch, this);
11923
12114
  this.parent.grid.on('get-row-position', this.getRowPosition, this);
11924
12115
  };
11925
- Edit$$1.prototype.gridDblClick = function (e) {
12116
+ Edit.prototype.gridDblClick = function (e) {
11926
12117
  this.doubleClickTarget = e.target;
11927
12118
  if (e.target.classList.contains('e-frame') && this.parent.getCurrentViewRecords().length === 0) {
11928
12119
  this.doubleClickTarget = null;
@@ -11936,17 +12127,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11936
12127
  }
11937
12128
  }
11938
12129
  };
11939
- Edit$$1.prototype.getRowPosition = function (addArgs) {
12130
+ Edit.prototype.getRowPosition = function (addArgs) {
11940
12131
  addArgs.newRowPosition = this.parent.editSettings.newRowPosition;
11941
12132
  addArgs.addRowIndex = this.addRowIndex;
11942
12133
  addArgs.dataRowIndex = +this.prevAriaRowIndex;
11943
12134
  };
11944
- Edit$$1.prototype.beforeStartEdit = function (args) {
12135
+ Edit.prototype.beforeStartEdit = function (args) {
11945
12136
  if (this.parent.editSettings.mode === 'Cell') {
11946
12137
  this.parent.trigger(actionBegin, args);
11947
12138
  }
11948
12139
  };
11949
- Edit$$1.prototype.beforeBatchCancel = function (args) {
12140
+ Edit.prototype.beforeBatchCancel = function (args) {
11950
12141
  if (this.parent.editSettings.mode === 'Cell') {
11951
12142
  args['requestType'] = 'cancel';
11952
12143
  this.parent.trigger(actionComplete, args);
@@ -11956,7 +12147,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11956
12147
  * @hidden
11957
12148
  * @returns {void}
11958
12149
  */
11959
- Edit$$1.prototype.removeEventListener = function () {
12150
+ Edit.prototype.removeEventListener = function () {
11960
12151
  if (this.parent.isDestroyed) {
11961
12152
  return;
11962
12153
  }
@@ -11987,7 +12178,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11987
12178
  * @returns {void}
11988
12179
  * @hidden
11989
12180
  */
11990
- Edit$$1.prototype.destroy = function () {
12181
+ Edit.prototype.destroy = function () {
11991
12182
  this.removeEventListener();
11992
12183
  };
11993
12184
  /**
@@ -11995,15 +12186,16 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11995
12186
  * @hidden
11996
12187
  * @returns {void}
11997
12188
  */
11998
- Edit$$1.prototype.applyFormValidation = function (cols) {
12189
+ Edit.prototype.applyFormValidation = function (cols) {
11999
12190
  this.parent.grid.editModule.applyFormValidation(cols);
12000
12191
  };
12001
- Edit$$1.prototype.editActionEvents = function (args) {
12192
+ Edit.prototype.editActionEvents = function (args) {
12002
12193
  var eventArgs = getObject('editAction', args);
12003
12194
  var eventName = getObject('name', eventArgs);
12004
12195
  var treeObj = this.parent;
12005
- var adaptor = treeObj.dataSource.adaptor;
12006
- if ((isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
12196
+ var adaptor = !isNullOrUndefined(treeObj.dataSource)
12197
+ && treeObj.dataSource.adaptor;
12198
+ if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
12007
12199
  (eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
12008
12200
  (treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
12009
12201
  || treeObj.editSettings.newRowPosition === 'Above')) {
@@ -12030,7 +12222,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12030
12222
  this.parent.notify('batchPageAction', {});
12031
12223
  }
12032
12224
  };
12033
- Edit$$1.prototype.infiniteAddAction = function (args) {
12225
+ Edit.prototype.infiniteAddAction = function (args) {
12034
12226
  if ((args.requestType === 'save' && args.action === 'add') || args.requestType === 'delete') {
12035
12227
  if (this.parent.editSettings.newRowPosition !== 'Top' && this.selectedIndex !== -1
12036
12228
  && (args.requestType === 'save' && args.action === 'add')) {
@@ -12060,7 +12252,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12060
12252
  }
12061
12253
  }
12062
12254
  };
12063
- Edit$$1.prototype.updateInfiniteCurrentViewData = function (newRecord, newRowIndex) {
12255
+ Edit.prototype.updateInfiniteCurrentViewData = function (newRecord, newRowIndex) {
12064
12256
  var _this = this;
12065
12257
  var infiniteData = 'infiniteCurrentViewData';
12066
12258
  var updateCurrentViewData = 'updateCurrentViewData';
@@ -12090,7 +12282,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12090
12282
  data.splice(dataIndex, 0, newRecord);
12091
12283
  this.parent.grid.infiniteScrollModule["" + updateCurrentViewData]();
12092
12284
  };
12093
- Edit$$1.prototype.recordDoubleClick = function (args) {
12285
+ Edit.prototype.recordDoubleClick = function (args) {
12094
12286
  var target = args.target;
12095
12287
  if (isNullOrUndefined(target.closest('td.e-rowcell'))) {
12096
12288
  return;
@@ -12116,19 +12308,19 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12116
12308
  this.updateGridEditMode('Batch');
12117
12309
  }
12118
12310
  };
12119
- Edit$$1.prototype.updateGridEditMode = function (mode) {
12311
+ Edit.prototype.updateGridEditMode = function (mode) {
12120
12312
  this.parent.grid.setProperties({ editSettings: { mode: mode } }, true);
12121
12313
  var updateMethod = getObject('updateEditObj', this.parent.grid.editModule);
12122
12314
  updateMethod.apply(this.parent.grid.editModule);
12123
12315
  this.parent.grid.isEdit = false;
12124
12316
  };
12125
- Edit$$1.prototype.resetIsOnBatch = function () {
12317
+ Edit.prototype.resetIsOnBatch = function () {
12126
12318
  if (this.parent.enableVirtualization && this.parent.editSettings.mode === 'Cell') {
12127
12319
  this.isOnBatch = false;
12128
12320
  this.updateGridEditMode('Normal');
12129
12321
  }
12130
12322
  };
12131
- Edit$$1.prototype.keyPressed = function (args) {
12323
+ Edit.prototype.keyPressed = function (args) {
12132
12324
  if (this.isOnBatch) {
12133
12325
  this.keyPress = args.action;
12134
12326
  }
@@ -12139,13 +12331,13 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12139
12331
  this.parent.closeEdit();
12140
12332
  }
12141
12333
  };
12142
- Edit$$1.prototype.deleteUniqueID = function (value) {
12334
+ Edit.prototype.deleteUniqueID = function (value) {
12143
12335
  var idFilter = 'uniqueIDFilterCollection';
12144
12336
  delete this.parent["" + idFilter]["" + value];
12145
12337
  var id = 'uniqueIDCollection';
12146
12338
  delete this.parent["" + id]["" + value];
12147
12339
  };
12148
- Edit$$1.prototype.cellEdit = function (args) {
12340
+ Edit.prototype.cellEdit = function (args) {
12149
12341
  var _this = this;
12150
12342
  var promise = 'promise';
12151
12343
  var prom = args["" + promise];
@@ -12194,14 +12386,14 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12194
12386
  // this.isAdd = false;
12195
12387
  // }
12196
12388
  };
12197
- Edit$$1.prototype.enableToolbarItems = function (request) {
12389
+ Edit.prototype.enableToolbarItems = function (request) {
12198
12390
  if (!isNullOrUndefined(this.parent.grid.toolbarModule)) {
12199
12391
  var toolbarID = this.parent.element.id + '_gridcontrol_';
12200
12392
  this.parent.grid.toolbarModule.enableItems([toolbarID + 'add', toolbarID + 'edit', toolbarID + 'delete'], request === 'save');
12201
12393
  this.parent.grid.toolbarModule.enableItems([toolbarID + 'update', toolbarID + 'cancel'], request === 'edit');
12202
12394
  }
12203
12395
  };
12204
- Edit$$1.prototype.batchCancel = function () {
12396
+ Edit.prototype.batchCancel = function () {
12205
12397
  if (this.parent.editSettings.mode === 'Cell') {
12206
12398
  var cellDetails = getValue('editModule.cellDetails', this.parent.grid.editModule);
12207
12399
  var treeCell = this.parent.getCellFromIndex(cellDetails.rowIndex, this.parent.treeColumnIndex);
@@ -12217,13 +12409,13 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12217
12409
  this.parent.notify('batchCancelAction', {});
12218
12410
  }
12219
12411
  };
12220
- Edit$$1.prototype.customCellSave = function (args) {
12412
+ Edit.prototype.customCellSave = function (args) {
12221
12413
  if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
12222
12414
  this.updateCell(args, args.rowIndex);
12223
- this.afterCellSave(args, args.row, args.rowIndex);
12415
+ this.afterCellSave(args, args.row);
12224
12416
  }
12225
12417
  };
12226
- Edit$$1.prototype.cellSave = function (args) {
12418
+ Edit.prototype.cellSave = function (args) {
12227
12419
  var _this = this;
12228
12420
  if (this.parent.editSettings.mode === 'Cell' && this.parent.element.querySelector('form')) {
12229
12421
  args.cancel = true;
@@ -12264,7 +12456,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12264
12456
  }
12265
12457
  }
12266
12458
  var arg = {};
12267
- extend(arg, args);
12459
+ extend$1(arg, args);
12268
12460
  arg.cancel = false;
12269
12461
  arg.type = 'save';
12270
12462
  row_1 = this.parent.grid.getRows()[row_1.rowIndex];
@@ -12285,7 +12477,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12285
12477
  else {
12286
12478
  this.updateCell(args, rowIndex_1);
12287
12479
  setValue('isEdit', false, this.parent.grid);
12288
- this.afterCellSave(args, row_1, rowIndex_1);
12480
+ this.afterCellSave(args, row_1);
12289
12481
  }
12290
12482
  }
12291
12483
  else if (isRemoteData(this.parent) ||
@@ -12294,7 +12486,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12294
12486
  if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
12295
12487
  this.updateCell(args, rowIndex_1);
12296
12488
  setValue('isEdit', false, this.parent.grid);
12297
- this.afterCellSave(args, row_1, rowIndex_1);
12489
+ this.afterCellSave(args, row_1);
12298
12490
  }
12299
12491
  else {
12300
12492
  var crud = null;
@@ -12305,7 +12497,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12305
12497
  }
12306
12498
  _this.updateCell(args, rowIndex_1);
12307
12499
  setValue('isEdit', false, _this.parent.grid);
12308
- _this.afterCellSave(args, row_1, rowIndex_1);
12500
+ _this.afterCellSave(args, row_1);
12309
12501
  });
12310
12502
  }
12311
12503
  }
@@ -12318,7 +12510,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12318
12510
  this.parent.grid.contentModule['virtualData'] = {};
12319
12511
  }
12320
12512
  };
12321
- Edit$$1.prototype.afterCellSave = function (args, row, rowIndex) {
12513
+ Edit.prototype.afterCellSave = function (args, row) {
12322
12514
  if (this.parent.grid.aggregateModule) {
12323
12515
  this.parent.grid.aggregateModule.refresh(args.rowData);
12324
12516
  }
@@ -12347,7 +12539,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12347
12539
  }
12348
12540
  this.parent.trigger(actionComplete, saveArgs);
12349
12541
  };
12350
- Edit$$1.prototype.lastCellTab = function () {
12542
+ Edit.prototype.lastCellTab = function () {
12351
12543
  if (!this.parent.grid.isEdit && this.isOnBatch && this.keyPress === 'tab' && this.parent.editSettings.mode === 'Cell') {
12352
12544
  if (!this.parent.editSettings.allowNextRowEdit) {
12353
12545
  this.updateGridEditMode('Normal');
@@ -12359,11 +12551,11 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12359
12551
  }
12360
12552
  }
12361
12553
  };
12362
- Edit$$1.prototype.updateCell = function (args, rowIndex) {
12554
+ Edit.prototype.updateCell = function (args, rowIndex) {
12363
12555
  this.parent.grid.editModule.updateCell(rowIndex, args.columnName, args.rowData[args.columnName]);
12364
12556
  this.parent.grid.getRowsObject()[parseInt(rowIndex.toString(), 10)].data = args.rowData;
12365
12557
  };
12366
- Edit$$1.prototype.crudAction = function (details, columnName) {
12558
+ Edit.prototype.crudAction = function (details, columnName) {
12367
12559
  editAction(details, this.parent, this.isSelfReference, this.addRowIndex, this.selectedIndex, columnName, this.addRowRecord);
12368
12560
  this.parent.parentData = [];
12369
12561
  var data = this.parent.grid.dataSource instanceof DataManager ?
@@ -12399,7 +12591,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12399
12591
  }
12400
12592
  }
12401
12593
  };
12402
- Edit$$1.prototype.updateIndex = function (data, rows, records) {
12594
+ Edit.prototype.updateIndex = function (data, rows, records) {
12403
12595
  for (var j = 0; j < this.parent.getDataRows().length; j++) {
12404
12596
  var data1 = records[parseInt(j.toString(), 10)];
12405
12597
  if (!isNullOrUndefined(data1)) {
@@ -12438,9 +12630,9 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12438
12630
  if (!isNullOrUndefined(treecell)) {
12439
12631
  for (var l = 0; l < treecell.classList.length; l++) {
12440
12632
  var value = treecell.classList[parseInt(l.toString(), 10)];
12441
- var remove$$1 = /e-gridrowindex/i;
12633
+ var remove = /e-gridrowindex/i;
12442
12634
  var removed = /e-griddetailrowindex/i;
12443
- var result = value.match(remove$$1);
12635
+ var result = value.match(remove);
12444
12636
  var results = value.match(removed);
12445
12637
  if (result != null) {
12446
12638
  removeClass([treecell], value);
@@ -12459,7 +12651,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12459
12651
  }
12460
12652
  }
12461
12653
  };
12462
- Edit$$1.prototype.beginAdd = function () {
12654
+ Edit.prototype.beginAdd = function () {
12463
12655
  var position;
12464
12656
  var index = this.addRowIndex;
12465
12657
  var records = this.parent.grid.getCurrentViewRecords();
@@ -12573,7 +12765,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12573
12765
  // }
12574
12766
  // }
12575
12767
  // }
12576
- Edit$$1.prototype.beginEdit = function (args) {
12768
+ Edit.prototype.beginEdit = function (args) {
12577
12769
  if (args.requestType === 'refresh' && this.isOnBatch) {
12578
12770
  args.cancel = true;
12579
12771
  return;
@@ -12685,17 +12877,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12685
12877
  // }
12686
12878
  // }
12687
12879
  };
12688
- Edit$$1.prototype.savePreviousRowPosition = function () {
12880
+ Edit.prototype.savePreviousRowPosition = function () {
12689
12881
  if (this.previousNewRowPosition === null) {
12690
12882
  this.previousNewRowPosition = this.parent.editSettings.newRowPosition;
12691
12883
  }
12692
12884
  };
12693
- Edit$$1.prototype.beginAddEdit = function (args) {
12885
+ Edit.prototype.beginAddEdit = function (args) {
12694
12886
  var value = args.data;
12695
12887
  if (args.action === 'add') {
12696
12888
  var key = this.parent.grid.getPrimaryKeyFieldNames()[0];
12697
12889
  var position = null;
12698
- value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
12890
+ value.taskData = isNullOrUndefined(value.taskData) ? extend$1({}, args.data) : value.taskData;
12699
12891
  var currentData = void 0;
12700
12892
  if (this.parent.enableVirtualization && args.index !== 0) {
12701
12893
  currentData = this.parent.flatData;
@@ -12747,7 +12939,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12747
12939
  else if (this.parent.editSettings.newRowPosition === 'Child') {
12748
12940
  position = 'after';
12749
12941
  if ((this.selectedIndex > -1 || isVirtualization) && withinRange) {
12750
- value.parentItem = extend({}, currentData[this.addRowIndex]);
12942
+ value.parentItem = extend$1({}, currentData[this.addRowIndex]);
12751
12943
  value.parentUniqueID = value.parentItem.uniqueID;
12752
12944
  delete value.parentItem.childRecords;
12753
12945
  delete value.parentItem[this.parent.childMapping];
@@ -12773,7 +12965,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12773
12965
  if (this.parent.editSettings.newRowPosition === 'Above' || this.parent.editSettings.newRowPosition === 'Below') {
12774
12966
  if ((this.selectedIndex > -1 || isVirtualization) && level && withinRange) {
12775
12967
  value.parentUniqueID = parentUniqueID;
12776
- value.parentItem = extend({}, parentItem);
12968
+ value.parentItem = extend$1({}, parentItem);
12777
12969
  delete value.parentItem.childRecords;
12778
12970
  delete value.parentItem[this.parent.childMapping];
12779
12971
  }
@@ -12826,7 +13018,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12826
13018
  *
12827
13019
  * @returns {void}
12828
13020
  */
12829
- Edit$$1.prototype.addRecord = function (data, index, position) {
13021
+ Edit.prototype.addRecord = function (data, index, position) {
12830
13022
  if (this.parent.editSettings.newRowPosition === this.previousNewRowPosition || this.previousNewRowPosition === null) {
12831
13023
  this.previousNewRowPosition = this.parent.editSettings.newRowPosition;
12832
13024
  }
@@ -12871,17 +13063,17 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12871
13063
  *
12872
13064
  * @returns {boolean} Returns form validation results
12873
13065
  */
12874
- Edit$$1.prototype.editFormValidate = function () {
13066
+ Edit.prototype.editFormValidate = function () {
12875
13067
  return this.parent.grid.editModule.editFormValidate();
12876
13068
  };
12877
13069
  /**
12878
13070
  * @hidden
12879
13071
  * @returns {void}
12880
13072
  */
12881
- Edit$$1.prototype.destroyForm = function () {
13073
+ Edit.prototype.destroyForm = function () {
12882
13074
  this.parent.grid.editModule.destroyForm();
12883
13075
  };
12884
- Edit$$1.prototype.contentready = function (e) {
13076
+ Edit.prototype.contentready = function (e) {
12885
13077
  if (!isNullOrUndefined(e.args.requestType)
12886
13078
  && (e.args.requestType.toString() === 'delete' || e.args.requestType.toString() === 'save'
12887
13079
  || (this.parent.editSettings.mode === 'Batch' && e.args.requestType.toString() === 'batchsave'))) {
@@ -12898,7 +13090,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12898
13090
  *
12899
13091
  * @returns {void}
12900
13092
  */
12901
- Edit$$1.prototype.editCell = function (rowIndex, field) {
13093
+ Edit.prototype.editCell = function (rowIndex, field) {
12902
13094
  if (this.parent.editSettings.mode === 'Cell' || this.parent.editSettings.mode === 'Batch') {
12903
13095
  if (this.parent.editSettings.mode !== 'Batch') {
12904
13096
  this.isOnBatch = true;
@@ -12907,7 +13099,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12907
13099
  this.parent.grid.editModule.editCell(rowIndex, field);
12908
13100
  }
12909
13101
  };
12910
- return Edit$$1;
13102
+ return Edit;
12911
13103
  }());
12912
13104
 
12913
13105
  /**
@@ -12915,9 +13107,9 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12915
13107
  *
12916
13108
  * @hidden
12917
13109
  */
12918
- var CommandColumn$1 = /** @__PURE__ @class */ (function () {
12919
- function CommandColumn$$1(parent) {
12920
- Grid.Inject(CommandColumn);
13110
+ var CommandColumn = /** @__PURE__ @class */ (function () {
13111
+ function CommandColumn(parent) {
13112
+ Grid.Inject(CommandColumn$1);
12921
13113
  this.parent = parent;
12922
13114
  }
12923
13115
  /**
@@ -12926,7 +13118,7 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
12926
13118
  * @private
12927
13119
  * @returns {string} Returns CommandColumn module name
12928
13120
  */
12929
- CommandColumn$$1.prototype.getModuleName = function () {
13121
+ CommandColumn.prototype.getModuleName = function () {
12930
13122
  return 'commandColumn';
12931
13123
  };
12932
13124
  /**
@@ -12935,10 +13127,10 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
12935
13127
  * @function destroy
12936
13128
  * @returns {void}
12937
13129
  */
12938
- CommandColumn$$1.prototype.destroy = function () {
13130
+ CommandColumn.prototype.destroy = function () {
12939
13131
  //this.removeEventListener();
12940
13132
  };
12941
- return CommandColumn$$1;
13133
+ return CommandColumn;
12942
13134
  }());
12943
13135
 
12944
13136
  /**
@@ -12946,9 +13138,9 @@ var CommandColumn$1 = /** @__PURE__ @class */ (function () {
12946
13138
  *
12947
13139
  * @hidden
12948
13140
  */
12949
- var DetailRow$1 = /** @__PURE__ @class */ (function () {
12950
- function DetailRow$$1(parent) {
12951
- Grid.Inject(DetailRow);
13141
+ var DetailRow = /** @__PURE__ @class */ (function () {
13142
+ function DetailRow(parent) {
13143
+ Grid.Inject(DetailRow$1);
12952
13144
  this.parent = parent;
12953
13145
  this.addEventListener();
12954
13146
  }
@@ -12961,10 +13153,10 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
12961
13153
  * @private
12962
13154
  * @returns {string} Returns DetailRow module name
12963
13155
  */
12964
- DetailRow$$1.prototype.getModuleName = function () {
13156
+ DetailRow.prototype.getModuleName = function () {
12965
13157
  return 'detailRow';
12966
13158
  };
12967
- DetailRow$$1.prototype.addEventListener = function () {
13159
+ DetailRow.prototype.addEventListener = function () {
12968
13160
  this.parent.on('dataBoundArg', this.dataBoundArg, this);
12969
13161
  this.parent.on('detaildataBound', this.detaildataBound, this);
12970
13162
  this.parent.grid.on('detail-indentcell-info', this.setIndentVisibility, this);
@@ -12976,7 +13168,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
12976
13168
  * @hidden
12977
13169
  * @returns {void}
12978
13170
  */
12979
- DetailRow$$1.prototype.removeEventListener = function () {
13171
+ DetailRow.prototype.removeEventListener = function () {
12980
13172
  if (this.parent.isDestroyed) {
12981
13173
  return;
12982
13174
  }
@@ -12987,11 +13179,11 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
12987
13179
  this.parent.off('actioncomplete', this.actioncomplete);
12988
13180
  this.parent.grid.off('detail-indentcell-info', this.setIndentVisibility);
12989
13181
  };
12990
- DetailRow$$1.prototype.setIndentVisibility = function (args) {
13182
+ DetailRow.prototype.setIndentVisibility = function (args) {
12991
13183
  var visible = 'visible';
12992
13184
  args["" + visible] = false;
12993
13185
  };
12994
- DetailRow$$1.prototype.dataBoundArg = function () {
13186
+ DetailRow.prototype.dataBoundArg = function () {
12995
13187
  var detailele = this.parent.getRows().filter(function (e) {
12996
13188
  return !e.classList.contains('e-detailrow');
12997
13189
  });
@@ -13005,13 +13197,13 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
13005
13197
  }
13006
13198
  }
13007
13199
  };
13008
- DetailRow$$1.prototype.childRowExpand = function (args) {
13200
+ DetailRow.prototype.childRowExpand = function (args) {
13009
13201
  var detailRowElement = args.row.getElementsByClassName('e-detailrowcollapse');
13010
13202
  if (!isNullOrUndefined(detailRowElement[0])) {
13011
13203
  this.parent.grid.detailRowModule.expand(detailRowElement[0]);
13012
13204
  }
13013
13205
  };
13014
- DetailRow$$1.prototype.rowExpandCollapse = function (args) {
13206
+ DetailRow.prototype.rowExpandCollapse = function (args) {
13015
13207
  if (isRemoteData(this.parent)) {
13016
13208
  return;
13017
13209
  }
@@ -13019,7 +13211,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
13019
13211
  args.detailrows[parseInt(i.toString(), 10)].style.display = args.action;
13020
13212
  }
13021
13213
  };
13022
- DetailRow$$1.prototype.detaildataBound = function (args) {
13214
+ DetailRow.prototype.detaildataBound = function (args) {
13023
13215
  var data = args.data;
13024
13216
  var row = args.detailElement.parentElement.previousSibling;
13025
13217
  var index = !isNullOrUndefined(data.parentItem) ? data.parentItem.index : data.index;
@@ -13031,7 +13223,7 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
13031
13223
  var detailClass = 'e-griddetail' + slicedclas;
13032
13224
  addClass([args.detailElement.parentElement], detailClass);
13033
13225
  };
13034
- DetailRow$$1.prototype.actioncomplete = function (args) {
13226
+ DetailRow.prototype.actioncomplete = function (args) {
13035
13227
  if (args.requestType === 'beginEdit' || args.requestType === 'add') {
13036
13228
  var spann = (args.row.querySelectorAll('.e-editcell')[0].getAttribute('colSpan'));
13037
13229
  var colum = parseInt(spann, 10) - 1;
@@ -13052,13 +13244,13 @@ var DetailRow$1 = /** @__PURE__ @class */ (function () {
13052
13244
  * @function destroy
13053
13245
  * @returns {void}
13054
13246
  */
13055
- DetailRow$$1.prototype.destroy = function () {
13247
+ DetailRow.prototype.destroy = function () {
13056
13248
  this.removeEventListener();
13057
13249
  };
13058
- return DetailRow$$1;
13250
+ return DetailRow;
13059
13251
  }());
13060
13252
 
13061
- var __extends$17 = (undefined && undefined.__extends) || (function () {
13253
+ var __extends$g = (undefined && undefined.__extends) || (function () {
13062
13254
  var extendStatics = function (d, b) {
13063
13255
  extendStatics = Object.setPrototypeOf ||
13064
13256
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13072,7 +13264,7 @@ var __extends$17 = (undefined && undefined.__extends) || (function () {
13072
13264
  };
13073
13265
  })();
13074
13266
  var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13075
- __extends$17(VirtualTreeContentRenderer, _super);
13267
+ __extends$g(VirtualTreeContentRenderer, _super);
13076
13268
  function VirtualTreeContentRenderer(parent, locator) {
13077
13269
  var _this = _super.call(this, parent, locator) || this;
13078
13270
  _this.isExpandCollapse = false;
@@ -13103,6 +13295,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13103
13295
  VirtualTreeContentRenderer.prototype.getFrozenRightVirtualRowByIndex = function (index) {
13104
13296
  return this.getRowCollection(index, false, false, true);
13105
13297
  };
13298
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
13106
13299
  VirtualTreeContentRenderer.prototype.getRowCollection = function (index, isMovable, isRowObject, isFrozenRight) {
13107
13300
  var startIdx = parseInt(this.parent.getRows()[0].getAttribute(dataRowIndex), 10);
13108
13301
  var rowCollection = this.parent.getDataRows();
@@ -13135,10 +13328,10 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13135
13328
  }
13136
13329
  };
13137
13330
  VirtualTreeContentRenderer.prototype.indexModifier = function (args) {
13138
- var content$$1 = this.parent.getContent().querySelector('.e-content');
13331
+ var content = this.parent.getContent().querySelector('.e-content');
13139
13332
  if ((this.recordAdded || args.requestType === 'delete' && this.endIndex > args.count - this.parent.pageSettings.pageSize) && this.startIndex > -1 && this.endIndex > -1) {
13140
13333
  if (this.endIndex > args.count - this.parent.pageSettings.pageSize) {
13141
- var nextSetResIndex = ~~(content$$1.scrollTop / this.parent.getRowHeight());
13334
+ var nextSetResIndex = ~~(content.scrollTop / this.parent.getRowHeight());
13142
13335
  var lastIndex = nextSetResIndex + this.parent.getRows().length;
13143
13336
  if (lastIndex > args.count) {
13144
13337
  lastIndex = nextSetResIndex +
@@ -13267,8 +13460,9 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13267
13460
  _super.prototype["" + dataBoundEve].call(this);
13268
13461
  };
13269
13462
  VirtualTreeContentRenderer.prototype.rowSelectedEvent = function (args) {
13270
- var rowSelected$$1 = 'rowSelected';
13271
- _super.prototype["" + rowSelected$$1].call(this, args);
13463
+ var rowSelected = 'rowSelected';
13464
+ _super.prototype["" + rowSelected].call(this, args);
13465
+ this.parent.notify('virtualTransform', { requestType: 'transformChange' });
13272
13466
  };
13273
13467
  VirtualTreeContentRenderer.prototype.toSelectVirtualRow = function (args) {
13274
13468
  if (this.parent.isEdit) {
@@ -13353,8 +13547,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13353
13547
  };
13354
13548
  VirtualTreeContentRenderer.prototype.virtualEditSuccess = function () {
13355
13549
  var isAdd = 'isAdd';
13356
- var content$$1 = this.parent.getContent().querySelector('.e-content');
13357
- if (this["" + isAdd] && content$$1.querySelector('.e-addedrow')) {
13550
+ var content = this.parent.getContent().querySelector('.e-content');
13551
+ if (this["" + isAdd] && content.querySelector('.e-addedrow')) {
13358
13552
  this.recordAdded = true;
13359
13553
  }
13360
13554
  };
@@ -13368,8 +13562,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13368
13562
  };
13369
13563
  VirtualTreeContentRenderer.prototype.restoreNewRow = function () {
13370
13564
  var isAdd = 'isAdd';
13371
- var content$$1 = this.parent.getContent().querySelector('.e-content');
13372
- if (this["" + isAdd] && !content$$1.querySelector('.e-addedrow')) {
13565
+ var content = this.parent.getContent().querySelector('.e-content');
13566
+ if (this["" + isAdd] && !content.querySelector('.e-addedrow')) {
13373
13567
  this.parent.isEdit = false;
13374
13568
  this.parent.editModule.addRecord(null, this.parent.root.editModule.selectedIndex);
13375
13569
  }
@@ -13386,8 +13580,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13386
13580
  this.addRowIndex = addArgs.addRowIndex;
13387
13581
  this.dataRowIndex = this.parent.root.editModule.selectedIndex;
13388
13582
  }
13389
- var actionComplete$$1 = 'actionComplete';
13390
- _super.prototype["" + actionComplete$$1].call(this, args);
13583
+ var actionComplete = 'actionComplete';
13584
+ _super.prototype["" + actionComplete].call(this, args);
13391
13585
  };
13392
13586
  VirtualTreeContentRenderer.prototype.onEnteredAction = function () {
13393
13587
  var _this = this;
@@ -13436,9 +13630,9 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13436
13630
  var info = scrollArgs.sentinel;
13437
13631
  var rowHeight = this.parent.getRowHeight();
13438
13632
  var outBuffer = this.parent.pageSettings.pageSize - Math.ceil(this.parent.pageSettings.pageSize / 2);
13439
- var content$$1 = this.parent.getContent().querySelector('.e-content');
13633
+ var content = this.parent.getContent().querySelector('.e-content');
13440
13634
  var scrollHeight = outBuffer * rowHeight;
13441
- var upScroll = (scrollArgs.offset.top - this.translateY) < 0;
13635
+ var upScroll = (scrollArgs.offset.top - this.translateY) <= 0;
13442
13636
  var downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
13443
13637
  var selectedRowIndex = 'selectedRowIndex';
13444
13638
  var currentViewData = this.parent.currentViewData;
@@ -13446,11 +13640,12 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13446
13640
  if (upScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
13447
13641
  var vHeight = +(this.parent.height.toString().indexOf('%') < 0 ? parseInt(this.parent.height.toString(), 10) :
13448
13642
  this.parent.element.getBoundingClientRect().height);
13449
- var index = (~~(content$$1.scrollTop / rowHeight)
13643
+ var index = (~~(content.scrollTop / rowHeight)
13450
13644
  + Math.ceil(vHeight / rowHeight))
13451
13645
  - this.parent.pageSettings.pageSize;
13452
13646
  index = (index > 0) ? index : 0;
13453
- if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 && index !== this["" + selectedRowIndex]) {
13647
+ if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 && index !== this["" + selectedRowIndex] &&
13648
+ ((this.parent.rowHeight * this.parent.pageSettings.pageSize) < content.scrollTop)) {
13454
13649
  index = this["" + selectedRowIndex];
13455
13650
  }
13456
13651
  this.startIndex = index;
@@ -13491,7 +13686,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13491
13686
  }
13492
13687
  }
13493
13688
  else if (downScroll && (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left')) {
13494
- var nextSetResIndex = ~~(content$$1.scrollTop / rowHeight);
13689
+ var nextSetResIndex = ~~(content.scrollTop / rowHeight);
13495
13690
  var isLastBlock = (this["" + selectedRowIndex] + this.parent.pageSettings.pageSize) < this.totalRecords ? false : true;
13496
13691
  if (!isNullOrUndefined(this["" + selectedRowIndex]) && this["" + selectedRowIndex] !== -1 &&
13497
13692
  nextSetResIndex !== this["" + selectedRowIndex] && !isLastBlock) {
@@ -13513,7 +13708,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13513
13708
  this.startIndex = currentViewData[0]["" + indexValue] + (this.parent.pageSettings.pageSize / 2);
13514
13709
  }
13515
13710
  if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
13516
- this.translateY = this.getTranslateY(scrollArgs.offset.top, content$$1.getBoundingClientRect().height);
13711
+ this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
13517
13712
  }
13518
13713
  else {
13519
13714
  if (this.totalRecords === this.endIndex) {
@@ -13540,10 +13735,10 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13540
13735
  this.previousInfo = viewInfo;
13541
13736
  this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
13542
13737
  var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
13738
+ this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
13543
13739
  if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
13544
13740
  viewInfo.loadNext = false;
13545
13741
  }
13546
- this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
13547
13742
  this.requestType = 'virtualscroll';
13548
13743
  if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
13549
13744
  viewInfo.event = viewInfo.event === 'refresh-virtual-block' ? 'model-changed' : viewInfo.event;
@@ -13648,7 +13843,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13648
13843
  return VirtualTreeContentRenderer;
13649
13844
  }(VirtualContentRenderer));
13650
13845
  var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
13651
- __extends$17(TreeInterSectionObserver, _super);
13846
+ __extends$g(TreeInterSectionObserver, _super);
13652
13847
  function TreeInterSectionObserver() {
13653
13848
  var _this = _super !== null && _super.apply(this, arguments) || this;
13654
13849
  _this.isWheeling = false;
@@ -13742,7 +13937,7 @@ var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
13742
13937
  return TreeInterSectionObserver;
13743
13938
  }(InterSectionObserver));
13744
13939
 
13745
- var __extends$16 = (undefined && undefined.__extends) || (function () {
13940
+ var __extends$h = (undefined && undefined.__extends) || (function () {
13746
13941
  var extendStatics = function (d, b) {
13747
13942
  extendStatics = Object.setPrototypeOf ||
13748
13943
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -13760,20 +13955,20 @@ var __extends$16 = (undefined && undefined.__extends) || (function () {
13760
13955
  *
13761
13956
  * @hidden
13762
13957
  */
13763
- var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13958
+ var VirtualScroll = /** @__PURE__ @class */ (function () {
13764
13959
  /**
13765
13960
  * Constructor for VirtualScroll module
13766
13961
  *
13767
13962
  * @param {TreeGrid} parent - Tree Grid instance
13768
13963
  */
13769
- function VirtualScroll$$1(parent) {
13964
+ function VirtualScroll(parent) {
13770
13965
  this.prevstartIndex = -1;
13771
13966
  this.prevendIndex = -1;
13772
13967
  this.parent = parent;
13773
13968
  Grid.Inject(TreeVirtual);
13774
13969
  this.addEventListener();
13775
13970
  }
13776
- VirtualScroll$$1.prototype.returnVisualData = function (args) {
13971
+ VirtualScroll.prototype.returnVisualData = function (args) {
13777
13972
  args.data = this.visualData;
13778
13973
  };
13779
13974
  /**
@@ -13782,14 +13977,14 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13782
13977
  * @private
13783
13978
  * @returns {string} - Returns VirtualScroll module name
13784
13979
  */
13785
- VirtualScroll$$1.prototype.getModuleName = function () {
13980
+ VirtualScroll.prototype.getModuleName = function () {
13786
13981
  return 'virtualScroll';
13787
13982
  };
13788
13983
  /**
13789
13984
  * @hidden
13790
13985
  * @returns {void}
13791
13986
  */
13792
- VirtualScroll$$1.prototype.addEventListener = function () {
13987
+ VirtualScroll.prototype.addEventListener = function () {
13793
13988
  if (this.parent.isDestroyed) {
13794
13989
  return;
13795
13990
  }
@@ -13801,7 +13996,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13801
13996
  * @hidden
13802
13997
  * @returns {void}
13803
13998
  */
13804
- VirtualScroll$$1.prototype.removeEventListener = function () {
13999
+ VirtualScroll.prototype.removeEventListener = function () {
13805
14000
  if (this.parent.isDestroyed) {
13806
14001
  return;
13807
14002
  }
@@ -13809,7 +14004,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13809
14004
  this.parent.off(pagingActions, this.virtualPageAction);
13810
14005
  this.parent.off(destroy, this.destroy);
13811
14006
  };
13812
- VirtualScroll$$1.prototype.collapseExpandVirtualchilds = function (row) {
14007
+ VirtualScroll.prototype.collapseExpandVirtualchilds = function (row) {
13813
14008
  this.parent.grid.notify(virtualActionArgs, { isExpandCollapse: true });
13814
14009
  this.expandCollapseRec = row.record;
13815
14010
  row.record.expanded = row.action === 'collapse' ? false : true;
@@ -13827,13 +14022,13 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13827
14022
  var requestType = getValue('isCollapseAll', this.parent) ? 'collapseAll' : 'refresh';
13828
14023
  getValue('grid.renderModule', this.parent).dataManagerSuccess(ret, { requestType: requestType });
13829
14024
  };
13830
- VirtualScroll$$1.prototype.virtualPageAction = function (pageingDetails) {
14025
+ VirtualScroll.prototype.virtualPageAction = function (pageingDetails) {
13831
14026
  var _this = this;
13832
14027
  var dm = new DataManager(pageingDetails.result);
13833
- var expanded$$1 = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
13834
- var parents = dm.executeLocal(new Query().where(expanded$$1));
14028
+ var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
14029
+ var parents = dm.executeLocal(new Query().where(expanded));
13835
14030
  var visualData = parents.filter(function (e) {
13836
- return getExpandStatus(_this.parent, e, parents);
14031
+ return getExpandStatus(_this.parent, e);
13837
14032
  });
13838
14033
  this.visualData = visualData;
13839
14034
  pageingDetails.count = visualData.length;
@@ -13922,13 +14117,13 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13922
14117
  * @returns {void}
13923
14118
  * @hidden
13924
14119
  */
13925
- VirtualScroll$$1.prototype.destroy = function () {
14120
+ VirtualScroll.prototype.destroy = function () {
13926
14121
  this.removeEventListener();
13927
14122
  };
13928
- return VirtualScroll$$1;
14123
+ return VirtualScroll;
13929
14124
  }());
13930
14125
  var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13931
- __extends$16(TreeVirtual, _super);
14126
+ __extends$h(TreeVirtual, _super);
13932
14127
  function TreeVirtual(parent, locator) {
13933
14128
  var _this = _super.call(this, parent, locator) || this;
13934
14129
  getValue('parent', _this).off('initial-load', getValue('instantiateRenderer', _this), _this);
@@ -13964,30 +14159,30 @@ var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13964
14159
  parentGrid.setProperties({ pageSettings: { pageSize: size < height ? height : size } }, true);
13965
14160
  };
13966
14161
  return TreeVirtual;
13967
- }(VirtualScroll));
14162
+ }(VirtualScroll$1));
13968
14163
 
13969
14164
  /**
13970
14165
  * TreeGrid Freeze module
13971
14166
  *
13972
14167
  * @hidden
13973
14168
  */
13974
- var Freeze$1 = /** @__PURE__ @class */ (function () {
14169
+ var Freeze = /** @__PURE__ @class */ (function () {
13975
14170
  /**
13976
14171
  * Constructor for render module
13977
14172
  *
13978
14173
  * @param {TreeGrid} parent - Tree Grid instance
13979
14174
  */
13980
- function Freeze$$1(parent) {
13981
- Grid.Inject(Freeze);
14175
+ function Freeze(parent) {
14176
+ Grid.Inject(Freeze$1);
13982
14177
  this.parent = parent;
13983
14178
  this.addEventListener();
13984
14179
  }
13985
- Freeze$$1.prototype.addEventListener = function () {
14180
+ Freeze.prototype.addEventListener = function () {
13986
14181
  this.parent.on('rowExpandCollapse', this.rowExpandCollapse, this);
13987
14182
  this.parent.on('dataBoundArg', this.dataBoundArg, this);
13988
14183
  this.parent.grid.on('dblclick', this.dblClickHandler, this);
13989
14184
  };
13990
- Freeze$$1.prototype.removeEventListener = function () {
14185
+ Freeze.prototype.removeEventListener = function () {
13991
14186
  if (this.parent.isDestroyed) {
13992
14187
  return;
13993
14188
  }
@@ -13995,7 +14190,7 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
13995
14190
  this.parent.off('dataBoundArg', this.dataBoundArg);
13996
14191
  this.parent.grid.off('dblclick', this.dblClickHandler);
13997
14192
  };
13998
- Freeze$$1.prototype.rowExpandCollapse = function (args) {
14193
+ Freeze.prototype.rowExpandCollapse = function (args) {
13999
14194
  var movableRows = this.parent.getDataRows();
14000
14195
  var frozenrows = this.parent.getRows();
14001
14196
  var rows;
@@ -14041,13 +14236,13 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
14041
14236
  }
14042
14237
  }
14043
14238
  };
14044
- Freeze$$1.prototype.dblClickHandler = function (e) {
14239
+ Freeze.prototype.dblClickHandler = function (e) {
14045
14240
  if (parentsUntil(e.target, 'e-rowcell') &&
14046
14241
  this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
14047
14242
  this.parent.startEdit(parentsUntil(e.target, 'e-row'));
14048
14243
  }
14049
14244
  };
14050
- Freeze$$1.prototype.dataBoundArg = function () {
14245
+ Freeze.prototype.dataBoundArg = function () {
14051
14246
  var checkboxColumn = this.parent.getColumns().filter(function (e) {
14052
14247
  return e.showCheckbox;
14053
14248
  });
@@ -14055,7 +14250,7 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
14055
14250
  addClass([this.parent.element.getElementsByClassName('e-grid')[0]], 'e-checkselection');
14056
14251
  }
14057
14252
  };
14058
- Freeze$$1.prototype.destroy = function () {
14253
+ Freeze.prototype.destroy = function () {
14059
14254
  this.removeEventListener();
14060
14255
  };
14061
14256
  /**
@@ -14064,10 +14259,10 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
14064
14259
  * @private
14065
14260
  * @returns {string} Returns Freeze module name
14066
14261
  */
14067
- Freeze$$1.prototype.getModuleName = function () {
14262
+ Freeze.prototype.getModuleName = function () {
14068
14263
  return 'freeze';
14069
14264
  };
14070
- return Freeze$$1;
14265
+ return Freeze;
14071
14266
  }());
14072
14267
 
14073
14268
  /**
@@ -14075,14 +14270,14 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
14075
14270
  *
14076
14271
  * @hidden
14077
14272
  */
14078
- var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14273
+ var ColumnChooser = /** @__PURE__ @class */ (function () {
14079
14274
  /**
14080
14275
  * Constructor for render module
14081
14276
  *
14082
14277
  * @param {TreeGrid} parent - Tree Grid instance.
14083
14278
  */
14084
- function ColumnChooser$$1(parent) {
14085
- Grid.Inject(ColumnChooser);
14279
+ function ColumnChooser(parent) {
14280
+ Grid.Inject(ColumnChooser$1);
14086
14281
  this.parent = parent;
14087
14282
  }
14088
14283
  /**
@@ -14092,7 +14287,7 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14092
14287
  * @param {number} Y - Defines the Y axis.
14093
14288
  * @returns {void}
14094
14289
  */
14095
- ColumnChooser$$1.prototype.openColumnChooser = function (X, Y) {
14290
+ ColumnChooser.prototype.openColumnChooser = function (X, Y) {
14096
14291
  return this.parent.grid.columnChooserModule.openColumnChooser(X, Y);
14097
14292
  };
14098
14293
  /**
@@ -14101,7 +14296,7 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14101
14296
  * @function destroy
14102
14297
  * @returns {void}
14103
14298
  */
14104
- ColumnChooser$$1.prototype.destroy = function () {
14299
+ ColumnChooser.prototype.destroy = function () {
14105
14300
  //this.parent.grid.ColumnChooserModule.destroy();
14106
14301
  };
14107
14302
  /**
@@ -14110,10 +14305,10 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14110
14305
  * @private
14111
14306
  * @returns {string} Returns ColumnChooser module name
14112
14307
  */
14113
- ColumnChooser$$1.prototype.getModuleName = function () {
14308
+ ColumnChooser.prototype.getModuleName = function () {
14114
14309
  return 'ColumnChooser';
14115
14310
  };
14116
- return ColumnChooser$$1;
14311
+ return ColumnChooser;
14117
14312
  }());
14118
14313
 
14119
14314
  /**
@@ -14121,15 +14316,15 @@ var ColumnChooser$1 = /** @__PURE__ @class */ (function () {
14121
14316
  *
14122
14317
  * @hidden
14123
14318
  */
14124
- var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14319
+ var InfiniteScroll = /** @__PURE__ @class */ (function () {
14125
14320
  /**
14126
14321
  * Constructor for VirtualScroll module
14127
14322
  *
14128
14323
  * @param {TreeGrid} parent - Tree Grid instance
14129
14324
  */
14130
- function InfiniteScroll$$1(parent) {
14325
+ function InfiniteScroll(parent) {
14131
14326
  this.parent = parent;
14132
- Grid.Inject(InfiniteScroll);
14327
+ Grid.Inject(InfiniteScroll$1);
14133
14328
  this.addEventListener();
14134
14329
  }
14135
14330
  /**
@@ -14138,14 +14333,14 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14138
14333
  * @private
14139
14334
  * @returns {string} - Returns Logger module name
14140
14335
  */
14141
- InfiniteScroll$$1.prototype.getModuleName = function () {
14336
+ InfiniteScroll.prototype.getModuleName = function () {
14142
14337
  return 'infiniteScroll';
14143
14338
  };
14144
14339
  /**
14145
14340
  * @hidden
14146
14341
  * @returns {void}
14147
14342
  */
14148
- InfiniteScroll$$1.prototype.addEventListener = function () {
14343
+ InfiniteScroll.prototype.addEventListener = function () {
14149
14344
  this.parent.on(pagingActions, this.infinitePageAction, this);
14150
14345
  this.parent.on('infinite-remote-expand', this.infiniteRemoteExpand, this);
14151
14346
  this.parent.grid.on('delete-complete', this.infiniteDeleteHandler, this);
@@ -14157,7 +14352,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14157
14352
  * @hidden
14158
14353
  * @returns {void}
14159
14354
  */
14160
- InfiniteScroll$$1.prototype.removeEventListener = function () {
14355
+ InfiniteScroll.prototype.removeEventListener = function () {
14161
14356
  if (this.parent.isDestroyed) {
14162
14357
  return;
14163
14358
  }
@@ -14176,7 +14371,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14176
14371
  * @param { ITreeData[] } args.childData - child data of expanded row
14177
14372
  * @returns {void}
14178
14373
  */
14179
- InfiniteScroll$$1.prototype.infiniteRemoteExpand = function (args) {
14374
+ InfiniteScroll.prototype.infiniteRemoteExpand = function (args) {
14180
14375
  var rowObjects = this.parent.grid.getRowsObject();
14181
14376
  var locator = 'serviceLocator';
14182
14377
  var generateRows = 'generateRows';
@@ -14207,7 +14402,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14207
14402
  *
14208
14403
  * @returns {void}
14209
14404
  */
14210
- InfiniteScroll$$1.prototype.contentready = function () {
14405
+ InfiniteScroll.prototype.contentready = function () {
14211
14406
  if (this.parent.infiniteScrollSettings.enableCache && !isNullOrUndefined(this.parent.editModule)) {
14212
14407
  var updateIndex = 'updateIndex';
14213
14408
  this.parent.editModule["" + updateIndex](this.parent.grid.dataSource, this.parent.getRows(), this.parent.getCurrentViewRecords());
@@ -14225,10 +14420,10 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14225
14420
  * @param {Object} pageingDetails.actionArgs - scroll action details
14226
14421
  * @returns {void}
14227
14422
  */
14228
- InfiniteScroll$$1.prototype.infinitePageAction = function (pageingDetails) {
14423
+ InfiniteScroll.prototype.infinitePageAction = function (pageingDetails) {
14229
14424
  var dm = new DataManager(pageingDetails.result);
14230
- var expanded$$1 = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
14231
- var visualData = dm.executeLocal(new Query().where(expanded$$1));
14425
+ var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
14426
+ var visualData = dm.executeLocal(new Query().where(expanded));
14232
14427
  var actionArgs = getValue('actionArgs', pageingDetails.actionArgs);
14233
14428
  var actions = getValue('actions', this.parent.grid.infiniteScrollModule);
14234
14429
  if (this.parent.grid.infiniteScrollModule['isInitialRender'] && !this.parent.initialRender) {
@@ -14289,7 +14484,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14289
14484
  * @param {Object[]} args.result - data details while CRUD
14290
14485
  * @returns {void}
14291
14486
  */
14292
- InfiniteScroll$$1.prototype.infiniteEditHandler = function (args) {
14487
+ InfiniteScroll.prototype.infiniteEditHandler = function (args) {
14293
14488
  var infiniteData = 'infiniteCurrentViewData';
14294
14489
  var infiniteCurrentViewData = this.parent.grid.infiniteScrollModule["" + infiniteData];
14295
14490
  var keys = Object.keys(infiniteCurrentViewData);
@@ -14305,7 +14500,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14305
14500
  * @param {ActionEventArgs} args - crud action details
14306
14501
  * @returns {void}
14307
14502
  */
14308
- InfiniteScroll$$1.prototype.infiniteDeleteHandler = function (args) {
14503
+ InfiniteScroll.prototype.infiniteDeleteHandler = function (args) {
14309
14504
  if (args.requestType === 'delete') {
14310
14505
  var rows = this.parent.grid.getRowsObject();
14311
14506
  var rowElms = this.parent.getRows();
@@ -14329,7 +14524,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14329
14524
  * @param { boolean} isFrozen - Specifies whether frozen column enabled
14330
14525
  * @returns {void}
14331
14526
  */
14332
- InfiniteScroll$$1.prototype.removeRows = function (rowElms, rows, data, keyField, isFrozen) {
14527
+ InfiniteScroll.prototype.removeRows = function (rowElms, rows, data, keyField, isFrozen) {
14333
14528
  var _this = this;
14334
14529
  var resetInfiniteCurrentViewData = 'resetInfiniteCurrentViewData';
14335
14530
  var _loop_1 = function (i) {
@@ -14352,7 +14547,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14352
14547
  /**
14353
14548
  * Handles the row objects for Add operation.
14354
14549
  */
14355
- InfiniteScroll$$1.prototype.createRows = function (eventArgs) {
14550
+ InfiniteScroll.prototype.createRows = function (eventArgs) {
14356
14551
  var locator = 'serviceLocator';
14357
14552
  var actionArgs = eventArgs.args.e;
14358
14553
  var row = eventArgs.row;
@@ -14417,23 +14612,11 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14417
14612
  * @returns {void}
14418
14613
  * @hidden
14419
14614
  */
14420
- InfiniteScroll$$1.prototype.destroy = function () {
14615
+ InfiniteScroll.prototype.destroy = function () {
14421
14616
  this.removeEventListener();
14422
14617
  };
14423
- return InfiniteScroll$$1;
14618
+ return InfiniteScroll;
14424
14619
  }());
14425
14620
 
14426
- /**
14427
- * actions export
14428
- */
14429
-
14430
- /**
14431
- * TreeGrid component exported items
14432
- */
14433
-
14434
- /**
14435
- * Export TreeGrid component
14436
- */
14437
-
14438
- 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 };
14621
+ 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 };
14439
14622
  //# sourceMappingURL=ej2-treegrid.es5.js.map