@syncfusion/ej2-treegrid 34.2.8 → 35.1.46

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 (229) hide show
  1. package/README.md +16 -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 +1054 -590
  6. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  7. package/dist/es6/ej2-treegrid.es5.js +1159 -618
  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 +5 -5
  13. package/src/global.js +1 -1
  14. package/src/treegrid/actions/crud-actions.js +4 -9
  15. package/src/treegrid/actions/dom-virtualization.d.ts +71 -0
  16. package/src/treegrid/actions/dom-virtualization.js +251 -0
  17. package/src/treegrid/actions/edit.d.ts +1 -4
  18. package/src/treegrid/actions/edit.js +23 -191
  19. package/src/treegrid/actions/filter.js +1 -1
  20. package/src/treegrid/actions/index.d.ts +1 -0
  21. package/src/treegrid/actions/index.js +1 -0
  22. package/src/treegrid/actions/page.js +12 -6
  23. package/src/treegrid/actions/rowdragdrop.js +20 -1
  24. package/src/treegrid/actions/selection.d.ts +21 -0
  25. package/src/treegrid/actions/selection.js +198 -32
  26. package/src/treegrid/actions/summary.js +25 -9
  27. package/src/treegrid/actions/toolbar.js +8 -5
  28. package/src/treegrid/base/constant.d.ts +6 -0
  29. package/src/treegrid/base/constant.js +6 -0
  30. package/src/treegrid/base/data.d.ts +17 -0
  31. package/src/treegrid/base/data.js +189 -132
  32. package/src/treegrid/base/treegrid-model.d.ts +35 -4
  33. package/src/treegrid/base/treegrid.d.ts +45 -7
  34. package/src/treegrid/base/treegrid.js +181 -73
  35. package/src/treegrid/enum.d.ts +12 -0
  36. package/src/treegrid/models/column.d.ts +2 -2
  37. package/src/treegrid/models/dom-virtualization-settings-model.d.ts +50 -0
  38. package/src/treegrid/models/dom-virtualization-settings.d.ts +43 -0
  39. package/src/treegrid/models/dom-virtualization-settings.js +47 -0
  40. package/src/treegrid/models/index.d.ts +2 -0
  41. package/src/treegrid/models/index.js +1 -0
  42. package/src/treegrid/models/summary-model.d.ts +1 -1
  43. package/src/treegrid/models/summary.d.ts +1 -1
  44. package/src/treegrid/renderer/dom-virtual-tree-content-renderer.d.ts +20 -0
  45. package/src/treegrid/renderer/dom-virtual-tree-content-renderer.js +49 -0
  46. package/src/treegrid/renderer/index.d.ts +1 -0
  47. package/src/treegrid/renderer/index.js +1 -0
  48. package/src/treegrid/renderer/render.js +4 -3
  49. package/src/treegrid/renderer/virtual-tree-content-render.js +1 -2
  50. package/helpers/e2e/index.d.ts +0 -1
  51. package/helpers/e2e/index.js +0 -8
  52. package/helpers/e2e/treegridhelper.d.ts +0 -21
  53. package/helpers/e2e/treegridhelper.js +0 -83
  54. package/styles/bds-lite.css +0 -402
  55. package/styles/bds-lite.scss +0 -3
  56. package/styles/bds.css +0 -422
  57. package/styles/bds.scss +0 -4
  58. package/styles/bootstrap-dark-lite.css +0 -406
  59. package/styles/bootstrap-dark-lite.scss +0 -3
  60. package/styles/bootstrap-dark.css +0 -426
  61. package/styles/bootstrap-dark.scss +0 -4
  62. package/styles/bootstrap-lite.css +0 -409
  63. package/styles/bootstrap-lite.scss +0 -3
  64. package/styles/bootstrap.css +0 -432
  65. package/styles/bootstrap.scss +0 -4
  66. package/styles/bootstrap4-lite.css +0 -406
  67. package/styles/bootstrap4-lite.scss +0 -3
  68. package/styles/bootstrap4.css +0 -426
  69. package/styles/bootstrap4.scss +0 -4
  70. package/styles/bootstrap5-dark-lite.css +0 -406
  71. package/styles/bootstrap5-dark-lite.scss +0 -3
  72. package/styles/bootstrap5-dark.css +0 -426
  73. package/styles/bootstrap5-dark.scss +0 -4
  74. package/styles/bootstrap5-lite.css +0 -406
  75. package/styles/bootstrap5-lite.scss +0 -3
  76. package/styles/bootstrap5.3-lite.css +0 -490
  77. package/styles/bootstrap5.3-lite.scss +0 -3
  78. package/styles/bootstrap5.3.css +0 -510
  79. package/styles/bootstrap5.3.scss +0 -4
  80. package/styles/bootstrap5.css +0 -426
  81. package/styles/bootstrap5.scss +0 -4
  82. package/styles/fabric-dark-lite.css +0 -409
  83. package/styles/fabric-dark-lite.scss +0 -3
  84. package/styles/fabric-dark.css +0 -432
  85. package/styles/fabric-dark.scss +0 -4
  86. package/styles/fabric-lite.css +0 -409
  87. package/styles/fabric-lite.scss +0 -3
  88. package/styles/fabric.css +0 -432
  89. package/styles/fabric.scss +0 -4
  90. package/styles/fluent-dark-lite.css +0 -417
  91. package/styles/fluent-dark-lite.scss +0 -3
  92. package/styles/fluent-dark.css +0 -444
  93. package/styles/fluent-dark.scss +0 -4
  94. package/styles/fluent-lite.css +0 -417
  95. package/styles/fluent-lite.scss +0 -3
  96. package/styles/fluent.css +0 -444
  97. package/styles/fluent.scss +0 -4
  98. package/styles/fluent2-lite.css +0 -507
  99. package/styles/fluent2-lite.scss +0 -3
  100. package/styles/fluent2.css +0 -531
  101. package/styles/fluent2.scss +0 -4
  102. package/styles/highcontrast-light-lite.css +0 -406
  103. package/styles/highcontrast-light-lite.scss +0 -3
  104. package/styles/highcontrast-light.css +0 -426
  105. package/styles/highcontrast-light.scss +0 -4
  106. package/styles/highcontrast-lite.css +0 -413
  107. package/styles/highcontrast-lite.scss +0 -3
  108. package/styles/highcontrast.css +0 -439
  109. package/styles/highcontrast.scss +0 -4
  110. package/styles/material-dark-lite.css +0 -406
  111. package/styles/material-dark-lite.scss +0 -3
  112. package/styles/material-dark.css +0 -426
  113. package/styles/material-dark.scss +0 -4
  114. package/styles/material-lite.css +0 -406
  115. package/styles/material-lite.scss +0 -3
  116. package/styles/material.css +0 -426
  117. package/styles/material.scss +0 -4
  118. package/styles/material3-dark-lite.css +0 -488
  119. package/styles/material3-dark-lite.scss +0 -3
  120. package/styles/material3-dark.css +0 -508
  121. package/styles/material3-dark.scss +0 -4
  122. package/styles/material3-lite.css +0 -490
  123. package/styles/material3-lite.scss +0 -3
  124. package/styles/material3.css +0 -510
  125. package/styles/material3.scss +0 -4
  126. package/styles/tailwind-dark-lite.css +0 -406
  127. package/styles/tailwind-dark-lite.scss +0 -3
  128. package/styles/tailwind-dark.css +0 -426
  129. package/styles/tailwind-dark.scss +0 -4
  130. package/styles/tailwind-lite.css +0 -406
  131. package/styles/tailwind-lite.scss +0 -3
  132. package/styles/tailwind.css +0 -426
  133. package/styles/tailwind.scss +0 -4
  134. package/styles/tailwind3-lite.css +0 -480
  135. package/styles/tailwind3-lite.scss +0 -3
  136. package/styles/tailwind3.css +0 -500
  137. package/styles/tailwind3.scss +0 -4
  138. package/styles/treegrid/_all.scss +0 -2
  139. package/styles/treegrid/_bds-definition.scss +0 -28
  140. package/styles/treegrid/_bigger.scss +0 -70
  141. package/styles/treegrid/_bootstrap-dark-definition.scss +0 -33
  142. package/styles/treegrid/_bootstrap-definition.scss +0 -33
  143. package/styles/treegrid/_bootstrap4-definition.scss +0 -33
  144. package/styles/treegrid/_bootstrap5-dark-definition.scss +0 -28
  145. package/styles/treegrid/_bootstrap5-definition.scss +0 -28
  146. package/styles/treegrid/_bootstrap5.3-definition.scss +0 -28
  147. package/styles/treegrid/_fabric-dark-definition.scss +0 -33
  148. package/styles/treegrid/_fabric-definition.scss +0 -33
  149. package/styles/treegrid/_fluent-dark-definition.scss +0 -29
  150. package/styles/treegrid/_fluent-definition.scss +0 -29
  151. package/styles/treegrid/_fluent2-definition.scss +0 -28
  152. package/styles/treegrid/_fusionnew-definition.scss +0 -26
  153. package/styles/treegrid/_highcontrast-definition.scss +0 -33
  154. package/styles/treegrid/_highcontrast-light-definition.scss +0 -33
  155. package/styles/treegrid/_icons.scss +0 -47
  156. package/styles/treegrid/_layout.scss +0 -531
  157. package/styles/treegrid/_material-dark-definition.scss +0 -33
  158. package/styles/treegrid/_material-definition.scss +0 -33
  159. package/styles/treegrid/_material3-dark-definition.scss +0 -28
  160. package/styles/treegrid/_material3-definition.scss +0 -28
  161. package/styles/treegrid/_tailwind-dark-definition.scss +0 -28
  162. package/styles/treegrid/_tailwind-definition.scss +0 -28
  163. package/styles/treegrid/_tailwind3-definition.scss +0 -28
  164. package/styles/treegrid/_theme.scss +0 -1
  165. package/styles/treegrid/_variables.scss +0 -2
  166. package/styles/treegrid/bds.css +0 -422
  167. package/styles/treegrid/bds.scss +0 -4
  168. package/styles/treegrid/bootstrap-dark.css +0 -426
  169. package/styles/treegrid/bootstrap-dark.scss +0 -4
  170. package/styles/treegrid/bootstrap.css +0 -432
  171. package/styles/treegrid/bootstrap.scss +0 -4
  172. package/styles/treegrid/bootstrap4.css +0 -426
  173. package/styles/treegrid/bootstrap4.scss +0 -4
  174. package/styles/treegrid/bootstrap5-dark.css +0 -426
  175. package/styles/treegrid/bootstrap5-dark.scss +0 -4
  176. package/styles/treegrid/bootstrap5.3.css +0 -510
  177. package/styles/treegrid/bootstrap5.3.scss +0 -4
  178. package/styles/treegrid/bootstrap5.css +0 -426
  179. package/styles/treegrid/bootstrap5.scss +0 -4
  180. package/styles/treegrid/fabric-dark.css +0 -432
  181. package/styles/treegrid/fabric-dark.scss +0 -4
  182. package/styles/treegrid/fabric.css +0 -432
  183. package/styles/treegrid/fabric.scss +0 -4
  184. package/styles/treegrid/fluent-dark.css +0 -444
  185. package/styles/treegrid/fluent-dark.scss +0 -4
  186. package/styles/treegrid/fluent.css +0 -444
  187. package/styles/treegrid/fluent.scss +0 -4
  188. package/styles/treegrid/fluent2.css +0 -531
  189. package/styles/treegrid/fluent2.scss +0 -4
  190. package/styles/treegrid/highcontrast-light.css +0 -426
  191. package/styles/treegrid/highcontrast-light.scss +0 -4
  192. package/styles/treegrid/highcontrast.css +0 -439
  193. package/styles/treegrid/highcontrast.scss +0 -4
  194. package/styles/treegrid/icons/_bds.scss +0 -38
  195. package/styles/treegrid/icons/_bootstrap-dark.scss +0 -48
  196. package/styles/treegrid/icons/_bootstrap.scss +0 -48
  197. package/styles/treegrid/icons/_bootstrap4.scss +0 -48
  198. package/styles/treegrid/icons/_bootstrap5-dark.scss +0 -1
  199. package/styles/treegrid/icons/_bootstrap5.3.scss +0 -48
  200. package/styles/treegrid/icons/_bootstrap5.scss +0 -48
  201. package/styles/treegrid/icons/_fabric-dark.scss +0 -48
  202. package/styles/treegrid/icons/_fabric.scss +0 -48
  203. package/styles/treegrid/icons/_fluent-dark.scss +0 -1
  204. package/styles/treegrid/icons/_fluent.scss +0 -48
  205. package/styles/treegrid/icons/_fluent2.scss +0 -48
  206. package/styles/treegrid/icons/_fusionnew.scss +0 -31
  207. package/styles/treegrid/icons/_highcontrast-light.scss +0 -48
  208. package/styles/treegrid/icons/_highcontrast.scss +0 -48
  209. package/styles/treegrid/icons/_material-dark.scss +0 -48
  210. package/styles/treegrid/icons/_material.scss +0 -48
  211. package/styles/treegrid/icons/_material3-dark.scss +0 -1
  212. package/styles/treegrid/icons/_material3.scss +0 -48
  213. package/styles/treegrid/icons/_tailwind-dark.scss +0 -48
  214. package/styles/treegrid/icons/_tailwind.scss +0 -48
  215. package/styles/treegrid/icons/_tailwind3.scss +0 -48
  216. package/styles/treegrid/material-dark.css +0 -426
  217. package/styles/treegrid/material-dark.scss +0 -4
  218. package/styles/treegrid/material.css +0 -426
  219. package/styles/treegrid/material.scss +0 -4
  220. package/styles/treegrid/material3-dark.css +0 -508
  221. package/styles/treegrid/material3-dark.scss +0 -4
  222. package/styles/treegrid/material3.css +0 -510
  223. package/styles/treegrid/material3.scss +0 -4
  224. package/styles/treegrid/tailwind-dark.css +0 -426
  225. package/styles/treegrid/tailwind-dark.scss +0 -4
  226. package/styles/treegrid/tailwind.css +0 -426
  227. package/styles/treegrid/tailwind.scss +0 -4
  228. package/styles/treegrid/tailwind3.css +0 -500
  229. package/styles/treegrid/tailwind3.scss +0 -4
@@ -11,6 +11,17 @@ var __extends = (this && this.__extends) || (function () {
11
11
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
12
  };
13
13
  })();
14
+ var __assign = (this && this.__assign) || function () {
15
+ __assign = Object.assign || function(t) {
16
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
17
+ s = arguments[i];
18
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19
+ t[p] = s[p];
20
+ }
21
+ return t;
22
+ };
23
+ return __assign.apply(this, arguments);
24
+ };
14
25
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
26
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
27
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -52,6 +63,7 @@ import { editAction } from '../actions/crud-actions';
52
63
  import { InfiniteScrollSettings } from '../models/infinite-scroll-settings';
53
64
  import * as literals from '../base/constant';
54
65
  import { ColumnChooserSettings } from '../models/column-chooser-settings';
66
+ import { DomVirtualizationSettings } from '../models/dom-virtualization-settings';
55
67
  /**
56
68
  * Represents the TreeGrid component.
57
69
  * ```html
@@ -70,6 +82,8 @@ var TreeGrid = /** @class */ (function (_super) {
70
82
  /** @hidden */
71
83
  _this.uniqueIDCollection = {};
72
84
  /** @hidden */
85
+ _this.uniqueIDCollpaseCollection = {};
86
+ /** @hidden */
73
87
  _this.uniqueIDFilterCollection = {};
74
88
  _this.changedRecords = 'changedRecords';
75
89
  _this.deletedRecords = 'deletedRecords';
@@ -314,6 +328,8 @@ var TreeGrid = /** @class */ (function (_super) {
314
328
  }
315
329
  this.TreeGridLocale();
316
330
  this.initProperties();
331
+ this.autoCheckHierarchy = (this.hierarchyCheckboxMode === 'hierarchy' || this.hierarchyCheckboxMode === 'filteredHierarchy')
332
+ ? true : false;
317
333
  this.defaultLocale = {
318
334
  Above: 'Above',
319
335
  Below: 'Below',
@@ -366,7 +382,7 @@ var TreeGrid = /** @class */ (function (_super) {
366
382
  };
367
383
  /**
368
384
  * Searches for TreeGrid records using a specified search string.
369
- * Customize the search behavior through the [searchSettings](./#searchsettings/).
385
+ * Customize the search behavior through the [searchSettings](./index-default#searchsettings).
370
386
  *
371
387
  * @param {string} searchString - The string used as the search key.
372
388
  * @returns {void}
@@ -414,7 +430,7 @@ var TreeGrid = /** @class */ (function (_super) {
414
430
  };
415
431
  /**
416
432
  * Prints all the pages of the TreeGrid and hides the pager by default.
417
- * Customize print options using the [printMode](./#printmode).
433
+ * Customize print options using the [printMode](./index-default#printmode).
418
434
  *
419
435
  * @returns {void}
420
436
  */
@@ -429,6 +445,20 @@ var TreeGrid = /** @class */ (function (_super) {
429
445
  var row = void 0;
430
446
  var summaryElement = void 0;
431
447
  switch (e.action) {
448
+ case 'space': {
449
+ target = e.target;
450
+ var checkboxWrapper = target && target.closest('.e-checkbox-wrapper');
451
+ var headerCheckbox = checkboxWrapper && checkboxWrapper.querySelector('.e-treeselectall');
452
+ if (headerCheckbox && this.selectionModule) {
453
+ if (this.selectionModule['headerSelectionState'] === 'check') {
454
+ this.selectionModule['headerSelection'](false);
455
+ }
456
+ else {
457
+ this.selectionModule['headerSelection'](true);
458
+ }
459
+ }
460
+ break;
461
+ }
432
462
  case 'ctrlDownArrow':
433
463
  this.expandAll();
434
464
  break;
@@ -563,7 +593,8 @@ var TreeGrid = /** @class */ (function (_super) {
563
593
  ctrlShiftUpArrow: 'ctrl+shift+uparrow',
564
594
  ctrlShiftDownArrow: 'ctrl+shift+downarrow',
565
595
  downArrow: 'downArrow',
566
- upArrow: 'upArrow'
596
+ upArrow: 'upArrow',
597
+ space: 'space'
567
598
  };
568
599
  this.isLocalData = (!(this.dataSource instanceof DataManager) || this.dataSource.dataSource.offline
569
600
  || (!isNullOrUndefined(this.dataSource.ready)) || this.dataSource.adaptor instanceof RemoteSaveAdaptor);
@@ -748,7 +779,7 @@ var TreeGrid = /** @class */ (function (_super) {
748
779
  name: 'Selection'
749
780
  });
750
781
  }
751
- if (this.enableVirtualization) {
782
+ if (this.enableVirtualization && !this.enableDomVirtualization) {
752
783
  modules.push({
753
784
  member: 'virtualScroll',
754
785
  args: [this],
@@ -762,6 +793,13 @@ var TreeGrid = /** @class */ (function (_super) {
762
793
  name: 'InfiniteScroll'
763
794
  });
764
795
  }
796
+ if (this.enableDomVirtualization) {
797
+ modules.push({
798
+ member: 'domVirtualization',
799
+ args: [this],
800
+ name: 'DomVirtualization'
801
+ });
802
+ }
765
803
  modules.push({
766
804
  member: 'logger',
767
805
  args: [this.grid]
@@ -866,7 +904,10 @@ var TreeGrid = /** @class */ (function (_super) {
866
904
  var modules = [];
867
905
  modules = gridRequiredModules.apply(this);
868
906
  for (var i = 0; i < modules.length; i++) {
869
- if (modules[parseInt(i.toString(), 10)].member === 'virtualscroll') {
907
+ if (modules[parseInt(i.toString(), 10)].member === 'domVirtualization') {
908
+ modules[parseInt(i.toString(), 10)].member = 'treeDomVirtualization';
909
+ }
910
+ else if (modules[parseInt(i.toString(), 10)].member === 'virtualscroll') {
870
911
  modules[parseInt(i.toString(), 10)].member = 'treeVirtualScroll';
871
912
  }
872
913
  }
@@ -1066,6 +1107,8 @@ var TreeGrid = /** @class */ (function (_super) {
1066
1107
  this.grid.allowSorting = this.allowSorting;
1067
1108
  this.grid.allowMultiSorting = this.allowMultiSorting;
1068
1109
  this.grid.allowFiltering = this.allowFiltering;
1110
+ this.grid.enableDomVirtualization = this.enableDomVirtualization;
1111
+ this.grid.domVirtualizationSettings = this.domVirtualizationSettings;
1069
1112
  this.grid.enableVirtualization = this.enableVirtualization;
1070
1113
  this.grid.enableColumnVirtualization = this.enableColumnVirtualization;
1071
1114
  this.grid.enableInfiniteScrolling = this.enableInfiniteScrolling;
@@ -1168,7 +1211,7 @@ var TreeGrid = /** @class */ (function (_super) {
1168
1211
  _this.trigger(events.rowDeselecting, args);
1169
1212
  };
1170
1213
  this.grid.rowSelected = function (args) {
1171
- if (_this.enableVirtualization) {
1214
+ if (_this.enableVirtualization && !_this.enableDomVirtualization) {
1172
1215
  _this.virtualScrollModule.updateSelection(args);
1173
1216
  }
1174
1217
  _this.selectedRowIndex = _this.grid.selectedRowIndex;
@@ -1327,8 +1370,13 @@ var TreeGrid = /** @class */ (function (_super) {
1327
1370
  var dataSource = 'dataSource';
1328
1371
  var requestType = getObject('action', args);
1329
1372
  if (((isRemoteData(treeGrid) && !isOffline(treeGrid)) || isCountRequired(this)) && requestType !== 'edit') {
1330
- treeGrid.notify('updateRemoteLevel', args);
1331
- args = (treeGrid.dataResults);
1373
+ if (this.enableDomVirtualization && requestType === 'collapse' && !this.enableVirtualization) {
1374
+ args.result = args.result.slice();
1375
+ }
1376
+ else {
1377
+ treeGrid.notify('updateRemoteLevel', args);
1378
+ args = (treeGrid.dataResults);
1379
+ }
1332
1380
  }
1333
1381
  else if (treeGrid.flatData.length === 0 && isOffline(treeGrid) && treeGrid.dataSource instanceof DataManager) {
1334
1382
  var dm = treeGrid.dataSource;
@@ -1536,6 +1584,14 @@ var TreeGrid = /** @class */ (function (_super) {
1536
1584
  TreeGrid.prototype.extendedGridActionEvents = function () {
1537
1585
  var _this = this;
1538
1586
  this.grid.actionBegin = function (args) {
1587
+ var newArgs = __assign({}, args);
1588
+ var changeArgs = false;
1589
+ if (newArgs.requestType === 'save' && _this['isGantt'] && !isNullOrUndefined(_this.editSettings)
1590
+ && _this.editSettings.mode === 'Cell') {
1591
+ delete newArgs.requestType;
1592
+ newArgs.type = 'save';
1593
+ changeArgs = true;
1594
+ }
1539
1595
  if (args.requestType === 'sorting' && args.target && args.target.parentElement &&
1540
1596
  args.target.parentElement.classList.contains('e-hierarchycheckbox')) {
1541
1597
  args.cancel = true;
@@ -1572,7 +1628,7 @@ var TreeGrid = /** @class */ (function (_super) {
1572
1628
  }
1573
1629
  if (_this.action !== 'indenting' && _this.action !== 'outdenting') {
1574
1630
  var callBackPromise_2 = new Deferred();
1575
- _this.trigger(events.actionBegin, args, function (actionArgs) {
1631
+ _this.trigger(events.actionBegin, changeArgs ? newArgs : args, function (actionArgs) {
1576
1632
  if (!actionArgs.cancel) {
1577
1633
  _this.notify(events.beginEdit, actionArgs);
1578
1634
  }
@@ -1582,6 +1638,14 @@ var TreeGrid = /** @class */ (function (_super) {
1582
1638
  }
1583
1639
  };
1584
1640
  this.grid.actionComplete = function (args) {
1641
+ var newArgs = __assign({}, args);
1642
+ var changeArgs = false;
1643
+ if (newArgs.requestType === 'save' && _this['isGantt'] && !isNullOrUndefined(_this.editSettings)
1644
+ && _this.editSettings.mode === 'Cell') {
1645
+ delete newArgs.requestType;
1646
+ newArgs.type = 'save';
1647
+ changeArgs = true;
1648
+ }
1585
1649
  _this.notify('actioncomplete', args);
1586
1650
  _this.updateColumnModel();
1587
1651
  _this.updateTreeGridModel();
@@ -1630,7 +1694,7 @@ var TreeGrid = /** @class */ (function (_super) {
1630
1694
  var frozenContent = _this.grid.element.querySelector('.' + literals.frozenContent);
1631
1695
  movableContent.style.height = frozenContent.style.height = 'auto';
1632
1696
  }
1633
- _this.trigger(events.actionComplete, args);
1697
+ _this.trigger(events.actionComplete, changeArgs ? newArgs : args);
1634
1698
  }
1635
1699
  };
1636
1700
  };
@@ -1758,7 +1822,7 @@ var TreeGrid = /** @class */ (function (_super) {
1758
1822
  edit.mode = 'Normal';
1759
1823
  break;
1760
1824
  case 'Cell':
1761
- edit.mode = 'Normal';
1825
+ edit.mode = this.editSettings.mode;
1762
1826
  edit.showConfirmDialog = false;
1763
1827
  break;
1764
1828
  }
@@ -1969,6 +2033,9 @@ var TreeGrid = /** @class */ (function (_super) {
1969
2033
  case 'enableVirtualization':
1970
2034
  this.grid.enableVirtualization = this.enableVirtualization;
1971
2035
  break;
2036
+ case 'enableDomVirtualization':
2037
+ this.grid.enableDomVirtualization = this.enableDomVirtualization;
2038
+ break;
1972
2039
  case 'enableColumnVirtualization':
1973
2040
  this.grid.enableColumnVirtualization = this.enableColumnVirtualization;
1974
2041
  break;
@@ -2176,6 +2243,10 @@ var TreeGrid = /** @class */ (function (_super) {
2176
2243
  this.grid.enableColumnSpan = this.enableColumnSpan;
2177
2244
  this.refreshColumns();
2178
2245
  break;
2246
+ case 'hierarchyCheckboxMode':
2247
+ this.autoCheckHierarchy = (this.hierarchyCheckboxMode === 'filteredHierarchy' ||
2248
+ this.hierarchyCheckboxMode === 'hierarchy');
2249
+ break;
2179
2250
  }
2180
2251
  }
2181
2252
  if (requireRefresh) {
@@ -2239,6 +2310,7 @@ var TreeGrid = /** @class */ (function (_super) {
2239
2310
  }
2240
2311
  this.dataResults = null;
2241
2312
  this.uniqueIDCollection = {};
2313
+ this.uniqueIDCollpaseCollection = {};
2242
2314
  this.uniqueIDFilterCollection = {};
2243
2315
  this.element.innerHTML = '';
2244
2316
  this.grid = null;
@@ -2314,6 +2386,7 @@ var TreeGrid = /** @class */ (function (_super) {
2314
2386
  };
2315
2387
  TreeGrid.prototype.mouseClickHandler = function (e) {
2316
2388
  var _this = this;
2389
+ this.resetDoubleClickTarget();
2317
2390
  if (!isNullOrUndefined(e.touches)) {
2318
2391
  return;
2319
2392
  }
@@ -3834,9 +3907,15 @@ var TreeGrid = /** @class */ (function (_super) {
3834
3907
  if (!rows.length && this.getRows().length) {
3835
3908
  rows.push(this.getRows()[0]);
3836
3909
  }
3837
- this.isExpandAll = true;
3838
- this.isCollapseAll = true;
3839
- if (((this.allowPaging && (this.pageSettings.pageSizeMode === 'All' || this.pageSettings.pageSizeMode === 'Root')) || this.enableVirtualization || this.enableInfiniteScrolling) && !isRemoteData(this)) {
3910
+ this.isExpandAll = this.enableDomVirtualization ? action !== 'collapse' : true;
3911
+ this.isCollapseAll = this.enableDomVirtualization ? action === 'collapse' : true;
3912
+ if (this.enableDomVirtualization) {
3913
+ var collapseArgs = { data: this.parentData, row: rows[0] };
3914
+ this.trigger(events.collapsed, collapseArgs);
3915
+ this.notify(events.virtualExpandCollapse, { action: action, row: rows[0] });
3916
+ this.notify(events.localPagedExpandCollapse, { action: action, row: rows[0] });
3917
+ }
3918
+ else if (((this.allowPaging && (this.pageSettings.pageSizeMode === 'All' || this.pageSettings.pageSizeMode === 'Root')) || this.enableVirtualization || this.enableInfiniteScrolling) && !isRemoteData(this)) {
3840
3919
  this.flatData.filter(function (e) {
3841
3920
  if (e.hasChildRecords) {
3842
3921
  e.expanded = action === 'collapse' ? false : true;
@@ -3906,64 +3985,65 @@ var TreeGrid = /** @class */ (function (_super) {
3906
3985
  if (!isNullOrUndefined(row)) {
3907
3986
  row.setAttribute('aria-expanded', action === 'expand' ? 'true' : 'false');
3908
3987
  }
3909
- if (((this.allowPaging && (this.pageSettings.pageSizeMode === 'All' || this.pageSettings.pageSizeMode === 'Root')) || this.enableVirtualization) && !isRemoteData(this)
3988
+ if (((this.allowPaging && (this.pageSettings.pageSizeMode === 'All' || this.pageSettings.pageSizeMode === 'Root')) || this.enableVirtualization || this.enableDomVirtualization) && !isRemoteData(this)
3910
3989
  && !isCountRequired(this)) {
3990
+ this.notify(events.virtualExpandCollapse, { action: action, row: row, record: record });
3911
3991
  this.notify(events.localPagedExpandCollapse, { action: action, row: row, record: record });
3912
3992
  }
3913
3993
  else {
3914
- var displayAction = void 0;
3915
- if (action === 'expand') {
3916
- displayAction = 'e-childrow-visible';
3917
- if (!isChild) {
3918
- record.expanded = true;
3919
- this.flatData.forEach(function (e) {
3920
- e.expanded = e.uniqueID === record.uniqueID && e.expanded !== record.expanded ? record.expanded : e.expanded;
3921
- });
3922
- this.uniqueIDCollection[record.uniqueID].expanded = record.expanded;
3923
- }
3924
- if (!isNullOrUndefined(row)) {
3925
- targetEle = row.getElementsByClassName('e-treegridcollapse')[0];
3994
+ var isExpand = action === 'expand';
3995
+ var displayAction = isExpand ? 'e-childrow-visible' : 'e-childrow-hidden';
3996
+ var expandStateMap = this.expandStateMapping;
3997
+ var recordUniqueID = record.uniqueID;
3998
+ if (!isChild) {
3999
+ record.expanded = isExpand;
4000
+ var flatRecord = this.flatData[record.index];
4001
+ if (!isNullOrUndefined(flatRecord)) {
4002
+ flatRecord.expanded = flatRecord.uniqueID === record.uniqueID &&
4003
+ flatRecord.expanded !== record.expanded ? record.expanded : flatRecord.expanded;
3926
4004
  }
3927
- if (isChild && !isNullOrUndefined(record[this.expandStateMapping]) &&
3928
- record[this.expandStateMapping] && isNullOrUndefined(targetEle)) {
3929
- targetEle = row.getElementsByClassName('e-treegridexpand')[0];
4005
+ this.uniqueIDCollection["" + recordUniqueID].expanded = isExpand;
4006
+ }
4007
+ else if (isExpand || isCountRequired(this)) {
4008
+ record.expanded = isExpand;
4009
+ var flatRecord = this.flatData[record.index];
4010
+ if (!isNullOrUndefined(flatRecord)) {
4011
+ flatRecord.expanded = flatRecord.uniqueID === record.uniqueID &&
4012
+ flatRecord.expanded !== record.expanded ? record.expanded : flatRecord.expanded;
3930
4013
  }
3931
- if (isNullOrUndefined(targetEle)) {
3932
- return;
4014
+ this.uniqueIDCollection["" + recordUniqueID].expanded = isExpand;
4015
+ }
4016
+ if (!isNullOrUndefined(row)) {
4017
+ var collapseEle = row.getElementsByClassName('e-treegridcollapse')[0];
4018
+ var expandEle = row.getElementsByClassName('e-treegridexpand')[0];
4019
+ targetEle = isExpand ? collapseEle : expandEle;
4020
+ if (isChild && !isNullOrUndefined(record["" + expandStateMap]) &&
4021
+ ((isExpand && record["" + expandStateMap]) || (!isExpand && !record["" + expandStateMap])) &&
4022
+ isNullOrUndefined(targetEle)) {
4023
+ targetEle = isExpand ? expandEle : collapseEle;
3933
4024
  }
3934
- if (!targetEle.classList.contains('e-treegridexpand')) {
3935
- addClass([targetEle], 'e-treegridexpand');
4025
+ }
4026
+ if (isNullOrUndefined(targetEle)) {
4027
+ return;
4028
+ }
4029
+ var targetClsList = targetEle.classList;
4030
+ var expandClass = 'e-treegridexpand';
4031
+ var collapseClass = 'e-treegridcollapse';
4032
+ if (isExpand) {
4033
+ if (!targetClsList.contains(expandClass)) {
4034
+ addClass([targetEle], expandClass);
4035
+ removeClass([targetEle], collapseClass);
3936
4036
  }
3937
- removeClass([targetEle], 'e-treegridcollapse');
3938
4037
  }
3939
4038
  else {
3940
- displayAction = 'e-childrow-hidden';
3941
- if (!isChild || isCountRequired(this)) {
3942
- record.expanded = false;
3943
- this.flatData.forEach(function (e) {
3944
- e.expanded = e.uniqueID === record.uniqueID && e.expanded !== record.expanded ? record.expanded : e.expanded;
3945
- });
3946
- this.uniqueIDCollection[record.uniqueID].expanded = record.expanded;
3947
- }
3948
- if (!isNullOrUndefined(row)) {
3949
- targetEle = row.getElementsByClassName('e-treegridexpand')[0];
3950
- }
3951
- if (isChild && !isNullOrUndefined(record[this.expandStateMapping]) &&
3952
- !record[this.expandStateMapping] && isNullOrUndefined(targetEle)) {
3953
- targetEle = row.getElementsByClassName('e-treegridcollapse')[0];
4039
+ if (!targetClsList.contains(collapseClass)) {
4040
+ addClass([targetEle], collapseClass);
4041
+ removeClass([targetEle], expandClass);
3954
4042
  }
3955
- if (isNullOrUndefined(targetEle)) {
3956
- return;
3957
- }
3958
- if (!targetEle.classList.contains('e-treegridcollapse')) {
3959
- addClass([targetEle], 'e-treegridcollapse');
3960
- }
3961
- removeClass([targetEle], 'e-treegridexpand');
3962
4043
  }
3963
- row.querySelectorAll('.e-treerowcell')[0].setAttribute('aria-expanded', action === 'expand' ? 'true' : 'false');
3964
- var detailrows = gridRows.filter(function (r) {
3965
- return r.classList.contains('e-griddetailrowindex' + record.index + 'level' + (record.level + 1));
3966
- });
4044
+ row.querySelectorAll('.e-treerowcell')[0].setAttribute('aria-expanded', isExpand ? 'true' : 'false');
4045
+ var detailRowClass_1 = 'e-griddetailrowindex' + record.index + 'level' + (record.level + 1);
4046
+ var detailrows = gridRows.filter(function (r) { return r.classList.contains(detailRowClass_1); });
3967
4047
  if (isRemoteData(this) && !isOffline(this)) {
3968
4048
  this.remoteExpand(action, row, record);
3969
4049
  }
@@ -3974,29 +4054,37 @@ var TreeGrid = /** @class */ (function (_super) {
3974
4054
  if (this.enableInfiniteScrolling && action === 'collapse' && !this.isCollapseAll) {
3975
4055
  this.notify(events.collapseActionComplete, { isCollapse: true, data: record, row: row });
3976
4056
  }
3977
- var lastrowIdx = this.getVisibleRecords()[this.getVisibleRecords().length - 1]['index'];
3978
- var lastRow = this.getRowByIndex(lastrowIdx);
3979
- var borderElement = lastRow ? lastRow.nextElementSibling ? lastRow.nextElementSibling.classList.contains('e-detailrow') ? lastRow.nextElementSibling : lastRow : lastRow : null;
3980
- if (!this.isInfiniteCollapse && this.grid.getContentTable().clientHeight <= this.grid.getContent().clientHeight && !isNullOrUndefined(borderElement) && !borderElement.cells[0].classList.contains('e-lastrowcell')) {
3981
- this.lastRowBorder(borderElement, true);
4057
+ var visibleRecords = this.getVisibleRecords();
4058
+ var lastRecord = visibleRecords[visibleRecords.length - 1];
4059
+ if (!isNullOrUndefined(lastRecord)) {
4060
+ var lastrowIdx = lastRecord.index;
4061
+ var lastRow = this.getRowByIndex(lastrowIdx);
4062
+ var borderElement = (lastRow ? lastRow.nextElementSibling ? lastRow.nextElementSibling.classList.contains('e-detailrow') ? lastRow.nextElementSibling : lastRow : lastRow : null);
4063
+ if (!this.isInfiniteCollapse && this.grid.getContentTable().clientHeight <= this.grid.getContent().clientHeight && !isNullOrUndefined(borderElement) && !(borderElement.cells[0].classList.contains('e-lastrowcell'))) {
4064
+ this.lastRowBorder(borderElement, true);
4065
+ }
3982
4066
  }
3983
4067
  }
3984
- if (isCountRequired(this) && action === 'expand') {
4068
+ if (isCountRequired(this) && isExpand) {
3985
4069
  var currentData = this.getCurrentViewRecords();
3986
- var visibleRecords = currentData.filter(function (e) {
4070
+ var filteredRecords = currentData.filter(function (e) {
3987
4071
  return getExpandStatus(_this, e, _this.parentData);
3988
4072
  });
3989
- this.dataResults.result = visibleRecords;
4073
+ this.dataResults.result = filteredRecords;
3990
4074
  }
3991
- if (!isNullOrUndefined(targetEle) && targetEle.closest('.e-treerowcell').classList.contains('e-cellselectionbackground')) {
3992
- targetEle.closest('.e-treerowcell').classList.remove('e-cellselectionbackground');
3993
- targetEle.closest('.e-treerowcell').removeAttribute('aria-selected');
4075
+ if (!isNullOrUndefined(targetEle)) {
4076
+ var treeRowCell = targetEle.closest('.e-treerowcell');
4077
+ if (!isNullOrUndefined(treeRowCell) && treeRowCell.classList.contains('e-cellselectionbackground')) {
4078
+ treeRowCell.classList.remove('e-cellselectionbackground');
4079
+ treeRowCell.removeAttribute('aria-selected');
4080
+ }
3994
4081
  }
3995
4082
  if (this.isPixelHeight() && !row.cells[0].classList.contains('e-lastrowcell') && !this.isInfiniteCollapse) {
3996
4083
  var totalRows = this.getRows();
3997
4084
  var rows = this.getContentTable().rows;
3998
4085
  totalRows = [].slice.call(rows);
3999
- for (var i = totalRows.length - 1; i >= 0; i--) {
4086
+ var len = totalRows.length;
4087
+ for (var i = len - 1; i >= 0; i--) {
4000
4088
  if (!isHidden(totalRows[parseInt(i.toString(), 10)])) {
4001
4089
  var table = this.getContentTable();
4002
4090
  var sHeight = table.scrollHeight;
@@ -4137,7 +4225,13 @@ var TreeGrid = /** @class */ (function (_super) {
4137
4225
  this.dataModule["" + fetchRemoteChildData]({ action: action, record: args.data, rows: null, parentRow: args.row });
4138
4226
  }
4139
4227
  else {
4140
- this.collapseRemoteChild({ record: record, rows: rows });
4228
+ if (this.enableDomVirtualization) {
4229
+ this.notify(events.virtualExpandCollapse, { action: action, row: row, record: record });
4230
+ this.notify(events.localPagedExpandCollapse, { action: action, row: row, record: record });
4231
+ }
4232
+ else {
4233
+ this.collapseRemoteChild({ record: record, rows: rows });
4234
+ }
4141
4235
  this.trigger(events.collapsed, args);
4142
4236
  }
4143
4237
  };
@@ -4413,6 +4507,11 @@ var TreeGrid = /** @class */ (function (_super) {
4413
4507
  Array.prototype.push.apply(args.elements, cells);
4414
4508
  }
4415
4509
  };
4510
+ TreeGrid.prototype.resetDoubleClickTarget = function () {
4511
+ if (this.editModule) {
4512
+ this.notify('resetDoubleClickTarget', {});
4513
+ }
4514
+ };
4416
4515
  TreeGrid.prototype.partialFilterUpdate = function (args) {
4417
4516
  var gridFiltered = args.gridFiltered;
4418
4517
  if ((this.allowFiltering && this.filterModule && this.grid.filterSettings.columns.length) ||
@@ -4965,6 +5064,9 @@ var TreeGrid = /** @class */ (function (_super) {
4965
5064
  __decorate([
4966
5065
  Property(false)
4967
5066
  ], TreeGrid.prototype, "autoCheckHierarchy", void 0);
5067
+ __decorate([
5068
+ Property('self')
5069
+ ], TreeGrid.prototype, "hierarchyCheckboxMode", void 0);
4968
5070
  __decorate([
4969
5071
  Complex({}, PageSettings)
4970
5072
  ], TreeGrid.prototype, "pageSettings", void 0);
@@ -5088,6 +5190,12 @@ var TreeGrid = /** @class */ (function (_super) {
5088
5190
  __decorate([
5089
5191
  Complex({}, InfiniteScrollSettings)
5090
5192
  ], TreeGrid.prototype, "infiniteScrollSettings", void 0);
5193
+ __decorate([
5194
+ Property(false)
5195
+ ], TreeGrid.prototype, "enableDomVirtualization", void 0);
5196
+ __decorate([
5197
+ Complex({}, DomVirtualizationSettings)
5198
+ ], TreeGrid.prototype, "domVirtualizationSettings", void 0);
5091
5199
  __decorate([
5092
5200
  Property('All')
5093
5201
  ], TreeGrid.prototype, "columnQueryMode", void 0);
@@ -150,3 +150,15 @@ export declare type WrapMode = 'Both' | 'Header' | 'Content';
150
150
  * * `None`: Copies data without any hierarchy structure.
151
151
  */
152
152
  export declare type CopyHierarchyType = 'Parent' | 'Child' | 'Both' | 'None';
153
+ /**
154
+ * Defines the mode for hierarchy checkbox selection.
155
+ * Available modes are:
156
+ * * `self`: Only the targeted row is selected; children and parent are not affected.
157
+ * * `hierarchy`: Selecting a row cascades to all its descendants (children, grandchildren, etc.)
158
+ * and adjusts the parent state.
159
+ * * `filteredHierarchy`: Behaves like `hierarchy`, but applies the cascade only to the records
160
+ * that match the current filter/search. Hidden (filtered-out) descendants are excluded from the
161
+ * cascade.
162
+ *
163
+ */
164
+ export declare type HierarchyCheckboxMode = 'self' | 'hierarchy' | 'filteredHierarchy';
@@ -166,7 +166,7 @@ export declare class Column {
166
166
  * Allows display format customization, affecting only the display, not the actual data.
167
167
  * Supported format options for numbers and dates can be provided.
168
168
  *
169
- * References for [number](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
169
+ * References for [number](https://ej2.syncfusion.com/documentation/common/internationalization#supported-format-string)
170
170
  * and [date](https://ej2.syncfusion.com/documentation/common/internationalization#date-formatting) formats.
171
171
  *
172
172
  * @default null
@@ -451,7 +451,7 @@ export interface ColumnModel {
451
451
  /**
452
452
  * Formats the displayed value of the column without affecting the underlying data. Supports standard and custom formats for numbers and dates.
453
453
  *
454
- * References for [number](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
454
+ * References for [number](https://ej2.syncfusion.com/documentation/common/internationalization#supported-format-string)
455
455
  * and [date](https://ej2.syncfusion.com/documentation/common/internationalization#date-formatting) formats.
456
456
  * @default null
457
457
  * @aspType string
@@ -0,0 +1,50 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';import { Property } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Interface for a class DomVirtualizationSettings
5
+ */
6
+ export interface DomVirtualizationSettingsModel {
7
+
8
+ /**
9
+ * Defines the virtualization mode.
10
+ * * `Row` — Vertical virtualization only.
11
+ *
12
+ * @default 'Row'
13
+ */
14
+ virtualDomType?: string;
15
+
16
+ /**
17
+ * Number of extra rows rendered above and below the visible viewport.
18
+ * Higher values reduce whitespace during fast scroll at the cost of a larger DOM.
19
+ *
20
+ * @default 5
21
+ */
22
+ rowBuffer?: number;
23
+
24
+ /**
25
+ * Throttle scroll events (milliseconds).
26
+ * Reduces scroll event processing frequency and used for backend fetching delay can set from user.
27
+ *
28
+ * @default 0 (no throttling)
29
+ */
30
+ scrollThrottle?: number;
31
+
32
+ /**
33
+ * Maximum row pool size (for memory safety).
34
+ * Restricted to no.of dom rows render.
35
+ *
36
+ * @default 500 rows
37
+ * @hidden
38
+ */
39
+ maxPoolSize?: number;
40
+
41
+ /**
42
+ * If `autoRowHeight` is set to true, row heights are measured automatically to support variable row heights.
43
+ * Enable this when using `rowTemplate`, `columnTemplate`, or `allowTextWrap` features that produce rows of different heights.
44
+ * Note: enabling this with column templates disables column virtualization.
45
+ *
46
+ * @default false
47
+ */
48
+ autoRowHeight?: boolean;
49
+
50
+ }
@@ -0,0 +1,43 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ /**
3
+ * Configures the DOM virtualization settings for TreeGrid.
4
+ */
5
+ export declare class DomVirtualizationSettings extends ChildProperty<DomVirtualizationSettings> {
6
+ /**
7
+ * Defines the virtualization mode.
8
+ * * `Row` — Vertical virtualization only.
9
+ *
10
+ * @default 'Row'
11
+ */
12
+ virtualDomType: string;
13
+ /**
14
+ * Number of extra rows rendered above and below the visible viewport.
15
+ * Higher values reduce whitespace during fast scroll at the cost of a larger DOM.
16
+ *
17
+ * @default 5
18
+ */
19
+ rowBuffer: number;
20
+ /**
21
+ * Throttle scroll events (milliseconds).
22
+ * Reduces scroll event processing frequency and used for backend fetching delay can set from user.
23
+ *
24
+ * @default 0 (no throttling)
25
+ */
26
+ scrollThrottle: number;
27
+ /**
28
+ * Maximum row pool size (for memory safety).
29
+ * Restricted to no.of dom rows render.
30
+ *
31
+ * @default 500 rows
32
+ * @hidden
33
+ */
34
+ maxPoolSize: number;
35
+ /**
36
+ * If `autoRowHeight` is set to true, row heights are measured automatically to support variable row heights.
37
+ * Enable this when using `rowTemplate`, `columnTemplate`, or `allowTextWrap` features that produce rows of different heights.
38
+ * Note: enabling this with column templates disables column virtualization.
39
+ *
40
+ * @default false
41
+ */
42
+ autoRowHeight: boolean;
43
+ }
@@ -0,0 +1,47 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ 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;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
+ import { ChildProperty } from '@syncfusion/ej2-base';
21
+ import { Property } from '@syncfusion/ej2-base';
22
+ /**
23
+ * Configures the DOM virtualization settings for TreeGrid.
24
+ */
25
+ var DomVirtualizationSettings = /** @class */ (function (_super) {
26
+ __extends(DomVirtualizationSettings, _super);
27
+ function DomVirtualizationSettings() {
28
+ return _super !== null && _super.apply(this, arguments) || this;
29
+ }
30
+ __decorate([
31
+ Property('Row')
32
+ ], DomVirtualizationSettings.prototype, "virtualDomType", void 0);
33
+ __decorate([
34
+ Property(5)
35
+ ], DomVirtualizationSettings.prototype, "rowBuffer", void 0);
36
+ __decorate([
37
+ Property(0)
38
+ ], DomVirtualizationSettings.prototype, "scrollThrottle", void 0);
39
+ __decorate([
40
+ Property(500)
41
+ ], DomVirtualizationSettings.prototype, "maxPoolSize", void 0);
42
+ __decorate([
43
+ Property(false)
44
+ ], DomVirtualizationSettings.prototype, "autoRowHeight", void 0);
45
+ return DomVirtualizationSettings;
46
+ }(ChildProperty));
47
+ export { DomVirtualizationSettings };