@syncfusion/ej2-treegrid 25.2.5 → 26.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/.eslintrc.json +3 -2
  2. package/dist/ej2-treegrid.min.js +2 -2
  3. package/dist/ej2-treegrid.umd.min.js +2 -2
  4. package/dist/ej2-treegrid.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-treegrid.es2015.js +629 -464
  6. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  7. package/dist/es6/ej2-treegrid.es5.js +929 -763
  8. package/dist/es6/ej2-treegrid.es5.js.map +1 -1
  9. package/dist/global/ej2-treegrid.min.js +2 -2
  10. package/dist/global/ej2-treegrid.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +10 -10
  13. package/src/treegrid/actions/edit.js +8 -7
  14. package/src/treegrid/actions/excel-export.js +4 -3
  15. package/src/treegrid/actions/page.js +4 -0
  16. package/src/treegrid/actions/rowdragdrop.js +17 -11
  17. package/src/treegrid/actions/selection.js +4 -1
  18. package/src/treegrid/base/constant.d.ts +2 -0
  19. package/src/treegrid/base/constant.js +2 -0
  20. package/src/treegrid/base/data.js +2 -1
  21. package/src/treegrid/base/interface.js +0 -1
  22. package/src/treegrid/base/treegrid-model.d.ts +1 -1
  23. package/src/treegrid/base/treegrid.d.ts +3 -0
  24. package/src/treegrid/base/treegrid.js +230 -62
  25. package/src/treegrid/renderer/render.js +3 -1
  26. package/src/treegrid/renderer/virtual-row-model-generator.js +2 -2
  27. package/src/treegrid/renderer/virtual-tree-content-render.js +2 -1
  28. package/styles/bootstrap-dark.css +76 -48
  29. package/styles/bootstrap-dark.scss +18 -1
  30. package/styles/bootstrap.css +76 -49
  31. package/styles/bootstrap.scss +18 -1
  32. package/styles/bootstrap4.css +77 -48
  33. package/styles/bootstrap4.scss +18 -1
  34. package/styles/bootstrap5-dark.css +77 -49
  35. package/styles/bootstrap5-dark.scss +18 -1
  36. package/styles/bootstrap5.css +77 -49
  37. package/styles/bootstrap5.scss +18 -1
  38. package/styles/fabric-dark.css +74 -47
  39. package/styles/fabric-dark.scss +18 -1
  40. package/styles/fabric.css +74 -47
  41. package/styles/fabric.scss +18 -1
  42. package/styles/fluent-dark.css +77 -49
  43. package/styles/fluent-dark.scss +18 -1
  44. package/styles/fluent.css +77 -49
  45. package/styles/fluent.scss +18 -1
  46. package/styles/fluent2.css +1721 -0
  47. package/styles/fluent2.scss +18 -0
  48. package/styles/highcontrast-light.css +74 -47
  49. package/styles/highcontrast-light.scss +18 -1
  50. package/styles/highcontrast.css +74 -47
  51. package/styles/highcontrast.scss +18 -1
  52. package/styles/material-dark.css +111 -54
  53. package/styles/material-dark.scss +18 -1
  54. package/styles/material.css +125 -57
  55. package/styles/material.scss +18 -1
  56. package/styles/material3-dark.css +111 -56
  57. package/styles/material3-dark.scss +18 -1
  58. package/styles/material3.css +111 -56
  59. package/styles/material3.scss +18 -1
  60. package/styles/tailwind-dark.css +87 -51
  61. package/styles/tailwind-dark.scss +18 -1
  62. package/styles/tailwind.css +87 -51
  63. package/styles/tailwind.scss +18 -1
  64. package/styles/treegrid/_bds-definition.scss +0 -4
  65. package/styles/treegrid/_bootstrap-dark-definition.scss +0 -1
  66. package/styles/treegrid/_bootstrap-definition.scss +0 -1
  67. package/styles/treegrid/_bootstrap4-definition.scss +0 -1
  68. package/styles/treegrid/_bootstrap5-definition.scss +0 -4
  69. package/styles/treegrid/_bootstrap5.3-definition.scss +24 -0
  70. package/styles/treegrid/_fabric-dark-definition.scss +0 -1
  71. package/styles/treegrid/_fabric-definition.scss +0 -1
  72. package/styles/treegrid/_fluent-definition.scss +0 -4
  73. package/styles/treegrid/_fluent2-definition.scss +24 -0
  74. package/styles/treegrid/_fusionnew-definition.scss +0 -4
  75. package/styles/treegrid/_highcontrast-definition.scss +0 -1
  76. package/styles/treegrid/_highcontrast-light-definition.scss +0 -1
  77. package/styles/treegrid/_layout.scss +81 -85
  78. package/styles/treegrid/_material-dark-definition.scss +0 -1
  79. package/styles/treegrid/_material-definition.scss +0 -1
  80. package/styles/treegrid/_material3-definition.scss +0 -4
  81. package/styles/treegrid/_tailwind-definition.scss +0 -4
  82. package/styles/treegrid/bootstrap-dark.css +76 -48
  83. package/styles/treegrid/bootstrap.css +76 -49
  84. package/styles/treegrid/bootstrap4.css +77 -48
  85. package/styles/treegrid/bootstrap5-dark.css +77 -49
  86. package/styles/treegrid/bootstrap5.css +77 -49
  87. package/styles/treegrid/fabric-dark.css +74 -47
  88. package/styles/treegrid/fabric.css +74 -47
  89. package/styles/treegrid/fluent-dark.css +77 -49
  90. package/styles/treegrid/fluent.css +77 -49
  91. package/styles/treegrid/fluent2.css +1721 -0
  92. package/styles/treegrid/fluent2.scss +18 -0
  93. package/styles/treegrid/highcontrast-light.css +74 -47
  94. package/styles/treegrid/highcontrast.css +74 -47
  95. package/styles/treegrid/icons/_bootstrap5.3.scss +37 -0
  96. package/styles/treegrid/icons/_fluent2.scss +37 -0
  97. package/styles/treegrid/material-dark.css +111 -54
  98. package/styles/treegrid/material.css +125 -57
  99. package/styles/treegrid/material3-dark.css +111 -56
  100. package/styles/treegrid/material3.css +111 -56
  101. package/styles/treegrid/tailwind-dark.css +87 -51
  102. package/styles/treegrid/tailwind.css +87 -51
  103. package/CHANGELOG.md +0 -250
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 25.2.5
3
+ * version : 26.1.35
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@25.2.4",
3
+ "_id": "@syncfusion/ej2-treegrid@20.12.1",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-8QscTDpc0SKK12xtkX3zNH48foIkUAV+3jSuMFNCKn5fTnqeBDjWrnYKEr5Bw53z5xgFhqMijx+GuqhSh5eOmA==",
5
+ "_integrity": "sha512-Zvs1n1hJSdqII9YsIoINuvcHJFdRrXZ1my6EGcdVE46oHM7dliewDSdLCulnzrp4KD1hHhkJV8+xJXML+697Pg==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,10 +24,10 @@
24
24
  "/@syncfusion/ej2-react-treegrid",
25
25
  "/@syncfusion/ej2-vue-treegrid"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-25.2.4.tgz",
28
- "_shasum": "0e5afb29737f441a377420231b89444e32ef78c6",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.12.1.tgz",
28
+ "_shasum": "edfc8b85e074d04489b50692dc6d0fdc2afc1fca",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
- "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
30
+ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
31
31
  "author": {
32
32
  "name": "Syncfusion Inc."
33
33
  },
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~25.2.5",
40
- "@syncfusion/ej2-data": "~25.2.3",
41
- "@syncfusion/ej2-grids": "~25.2.5",
42
- "@syncfusion/ej2-popups": "~25.2.4"
39
+ "@syncfusion/ej2-base": "~26.1.35",
40
+ "@syncfusion/ej2-data": "~26.1.35",
41
+ "@syncfusion/ej2-grids": "~26.1.35",
42
+ "@syncfusion/ej2-popups": "~26.1.35"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -66,6 +66,6 @@
66
66
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
67
  },
68
68
  "typings": "index.d.ts",
69
- "version": "25.2.5",
69
+ "version": "26.1.35",
70
70
  "sideEffects": false
71
71
  }
@@ -146,8 +146,9 @@ var Edit = /** @class */ (function () {
146
146
  var eventArgs = getObject('editAction', args);
147
147
  var eventName = getObject('name', eventArgs);
148
148
  var treeObj = this.parent;
149
- var adaptor = treeObj.dataSource.adaptor;
150
- if ((isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
149
+ var adaptor = !isNullOrUndefined(treeObj.dataSource)
150
+ && treeObj.dataSource.adaptor;
151
+ if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
151
152
  (eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
152
153
  (treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
153
154
  || treeObj.editSettings.newRowPosition === 'Above')) {
@@ -364,7 +365,7 @@ var Edit = /** @class */ (function () {
364
365
  Edit.prototype.customCellSave = function (args) {
365
366
  if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
366
367
  this.updateCell(args, args.rowIndex);
367
- this.afterCellSave(args, args.row, args.rowIndex);
368
+ this.afterCellSave(args, args.row);
368
369
  }
369
370
  };
370
371
  Edit.prototype.cellSave = function (args) {
@@ -429,7 +430,7 @@ var Edit = /** @class */ (function () {
429
430
  else {
430
431
  this.updateCell(args, rowIndex_1);
431
432
  setValue('isEdit', false, this.parent.grid);
432
- this.afterCellSave(args, row_1, rowIndex_1);
433
+ this.afterCellSave(args, row_1);
433
434
  }
434
435
  }
435
436
  else if (isRemoteData(this.parent) ||
@@ -438,7 +439,7 @@ var Edit = /** @class */ (function () {
438
439
  if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
439
440
  this.updateCell(args, rowIndex_1);
440
441
  setValue('isEdit', false, this.parent.grid);
441
- this.afterCellSave(args, row_1, rowIndex_1);
442
+ this.afterCellSave(args, row_1);
442
443
  }
443
444
  else {
444
445
  var crud = null;
@@ -449,7 +450,7 @@ var Edit = /** @class */ (function () {
449
450
  }
450
451
  _this.updateCell(args, rowIndex_1);
451
452
  setValue('isEdit', false, _this.parent.grid);
452
- _this.afterCellSave(args, row_1, rowIndex_1);
453
+ _this.afterCellSave(args, row_1);
453
454
  });
454
455
  }
455
456
  }
@@ -462,7 +463,7 @@ var Edit = /** @class */ (function () {
462
463
  this.parent.grid.contentModule['virtualData'] = {};
463
464
  }
464
465
  };
465
- Edit.prototype.afterCellSave = function (args, row, rowIndex) {
466
+ Edit.prototype.afterCellSave = function (args, row) {
466
467
  if (this.parent.grid.aggregateModule) {
467
468
  this.parent.grid.aggregateModule.refresh(args.rowData);
468
469
  }
@@ -76,9 +76,10 @@ var ExcelExport = /** @class */ (function () {
76
76
  if (!isNullOrUndefined(excelExportProperties)) {
77
77
  this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
78
78
  }
79
- if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
80
- && !isNullOrUndefined(excelExportProperties.dataSource instanceof DataManager)) {
81
- return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
79
+ if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)) {
80
+ if (!excelExportProperties.dataSource['dataSource']) {
81
+ return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
82
+ }
82
83
  }
83
84
  return new Promise(function (resolve) {
84
85
  var dm = _this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
@@ -76,6 +76,10 @@ var Page = /** @class */ (function () {
76
76
  * @returns {void}
77
77
  */
78
78
  Page.prototype.updateExternalMessage = function (message) {
79
+ if (isNullOrUndefined(message)) {
80
+ var error = 'The provided value for the message is undefined. Please ensure the message contains string.';
81
+ this.parent.trigger(events.actionFailure, { error: error });
82
+ }
79
83
  this.parent.grid.pagerModule.updateExternalMessage(message);
80
84
  };
81
85
  /**
@@ -303,15 +303,17 @@ var RowDD = /** @class */ (function () {
303
303
  !Object.prototype.hasOwnProperty.call(draggedRecord_1.taskData, tObj.childMapping)) {
304
304
  draggedRecord_1.taskData[tObj.childMapping] = [];
305
305
  }
306
- if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
307
- (draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
308
- !isNullOrUndefined(tObj.parentIdMapping)) {
309
- var childData = (draggedRecord_1[tObj.childMapping]);
310
- for (var j = 0; j < childData.length; j++) {
311
- if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
312
- dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
313
- childData[parseInt(j.toString(), 10)].taskData = extend({}, childData[parseInt(j.toString(), 10)]);
314
- i += 1;
306
+ if (!isNullOrUndefined(draggedRecord_1[tObj.childMapping])) {
307
+ if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
308
+ (draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
309
+ !isNullOrUndefined(tObj.parentIdMapping)) {
310
+ var childData = (draggedRecord_1[tObj.childMapping]);
311
+ for (var j = 0; j < childData.length; j++) {
312
+ if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
313
+ dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
314
+ childData[parseInt(j.toString(), 10)].taskData = extend({}, childData[parseInt(j.toString(), 10)]);
315
+ i += 1;
316
+ }
315
317
  }
316
318
  }
317
319
  }
@@ -385,8 +387,8 @@ var RowDD = /** @class */ (function () {
385
387
  else {
386
388
  tempDataSource = proxy.dataSource;
387
389
  }
388
- // eslint-disable-next-line max-len
389
- if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem) && !isNullOrUndefined(droppedRecord.taskData)) {
390
+ if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
391
+ && !isNullOrUndefined(droppedRecord.taskData)) {
390
392
  var keys = Object.keys(tempDataSource);
391
393
  for (var i = 0; i < keys.length; i++) {
392
394
  if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
@@ -502,6 +504,10 @@ var RowDD = /** @class */ (function () {
502
504
  var touchEvent = getObject('originalEvent.event', args);
503
505
  var posy = (mouseEvent.type === 'mousemove') ? mouseEvent.pageY : ((!isNullOrUndefined(touchEvent) &&
504
506
  !isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].pageY : null);
507
+ if (this.parent.enableVirtualization) {
508
+ posy = (mouseEvent.type === 'mousemove') ? mouseEvent.clientY : ((!isNullOrUndefined(touchEvent) &&
509
+ !isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].clientY : null);
510
+ }
505
511
  var isTopSegment = posy <= topRowSegment;
506
512
  var isMiddleRowSegment = (posy > topRowSegment && posy <= middleRowSegment);
507
513
  var isBottomRowSegment = (posy > middleRowSegment && posy <= bottomRowSegment);
@@ -166,6 +166,10 @@ var Selection = /** @class */ (function () {
166
166
  }
167
167
  };
168
168
  Selection.prototype.selectCheckboxes = function (rowIndexes) {
169
+ if (isNullOrUndefined(rowIndexes)) {
170
+ var error = 'The provided value for the rowIndexes is undefined. Please ensure the rowIndexes contains number.';
171
+ this.parent.trigger(events.actionFailure, { error: error });
172
+ }
169
173
  for (var i = 0; i < rowIndexes.length; i++) {
170
174
  var record = this.parent.getCurrentViewRecords()[rowIndexes[parseInt(i.toString(), 10)]];
171
175
  var flatRecord = getParentData(this.parent, record.uniqueID);
@@ -412,7 +416,6 @@ var Selection = /** @class */ (function () {
412
416
  if (recordIndex > -1) {
413
417
  if (!isNullOrUndefined(checkbox)) {
414
418
  checkbox.classList.add(checkBoxclass);
415
- var chkstate = checkState === 'check' ? 'checked' : checkState === 'uncheck' ? 'unchecked' : 'mixed';
416
419
  tr.querySelector('.e-treecheckselect').setAttribute('aria-checked', checkState === 'check' ? 'true' : checkState === 'uncheck' ? 'false' : 'mixed');
417
420
  }
418
421
  }
@@ -158,3 +158,5 @@ export declare const ariaColIndex: string;
158
158
  export declare const dataRowIndex: string;
159
159
  /** @hidden */
160
160
  export declare const ariaRowIndex: string;
161
+ /** @hidden */
162
+ export declare const actionFailure: string;
@@ -158,3 +158,5 @@ export var ariaColIndex = 'aria-colindex';
158
158
  export var dataRowIndex = 'data-rowindex';
159
159
  /** @hidden */
160
160
  export var ariaRowIndex = 'aria-rowindex';
161
+ /** @hidden */
162
+ export var actionFailure = 'actionFailure';
@@ -78,7 +78,8 @@ var DataManipulation = /** @class */ (function () {
78
78
  */
79
79
  DataManipulation.prototype.convertToFlatData = function (data) {
80
80
  var _this = this;
81
- this.parent.flatData = (Object.keys(data).length === 0 && !(this.parent.dataSource instanceof DataManager) ?
81
+ this.parent.flatData = (!isNullOrUndefined(data) && Object.keys(data).length === 0
82
+ && !(this.parent.dataSource instanceof DataManager) ?
82
83
  this.parent.dataSource : []);
83
84
  this.parent.parentData = [];
84
85
  if ((isRemoteData(this.parent) && !isOffline(this.parent)) && data instanceof DataManager && !(data instanceof Array)) {
@@ -1 +0,0 @@
1
-
@@ -1,4 +1,4 @@
1
- import { Component, addClass, createElement, EventHandler, isNullOrUndefined, Fetch, ModuleDeclaration, extend, merge, SanitizeHtmlHelper} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs, getValue, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import {Event, Property, NotifyPropertyChanges, INotifyPropertyChanged, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';import { Column, ColumnModel } from '../models/column';import { BeforeBatchSaveArgs, BeforeBatchAddArgs, BatchDeleteArgs, BeforeBatchDeleteArgs, Row, getNumberFormat } from '@syncfusion/ej2-grids';import { GridModel, ColumnQueryModeType, HeaderCellInfoEventArgs, EditSettingsModel as GridEditModel, Freeze as FreezeColumn } from '@syncfusion/ej2-grids';import { RowDragEventArgs, RowDropEventArgs, RowDropSettingsModel, RowDropSettings, getUid, parentsUntil } from '@syncfusion/ej2-grids';import { LoadingIndicator } from '../models/loading-indicator';import { LoadingIndicatorModel } from '../models/loading-indicator-model';import { ActionEventArgs, TextAlign } from'@syncfusion/ej2-grids';import { DetailDataBoundEventArgs, ClipMode, ColumnChooser} from '@syncfusion/ej2-grids';import { SearchEventArgs, AddEventArgs, EditEventArgs, DeleteEventArgs} from '@syncfusion/ej2-grids';import { SaveEventArgs, CellSaveArgs, BatchAddArgs, BatchCancelArgs, BeginEditArgs, CellEditArgs} from '@syncfusion/ej2-grids';import { FilterSettings } from '../models/filter-settings';import { TextWrapSettings } from '../models/textwrap-settings';import { TextWrapSettingsModel } from '../models/textwrap-settings-model';import {Filter} from '../actions/filter';import { Logger as TreeLogger } from '../actions/logger';import { BeforeCopyEventArgs, BeforePasteEventArgs } from '@syncfusion/ej2-grids';import { TreeClipboard } from '../actions/clipboard';import {Aggregate} from '../actions/summary';import { Reorder } from '../actions/reorder';import { Resize } from '../actions/resize';import { Selection as TreeGridSelection } from '../actions/selection';import { ColumnMenu } from '../actions/column-menu';import { DetailRow } from '../actions/detail-row';import { Freeze } from '../actions/freeze-column';import { Print } from '../actions/print';import * as events from '../base/constant';import { FilterSettingsModel } from '../models/filter-settings-model';import { SearchSettings} from '../models/search-settings';import { SearchSettingsModel } from '../models/search-settings-model';import {RowInfo, RowDataBoundEventArgs, PageEventArgs, FilterEventArgs, FailureEventArgs, SortEventArgs } from '@syncfusion/ej2-grids';import { RowSelectingEventArgs, RowSelectEventArgs, RowDeselectingEventArgs, RowDeselectEventArgs, IIndex, ISelectedCell } from '@syncfusion/ej2-grids';import {ColumnModel as GridColumnModel, Column as GridColumn, CellSelectEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { SelectionSettings } from '../models/selection-settings';import { SelectionSettingsModel } from '../models/selection-settings-model';import {getActualProperties, SortDirection, getObject, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { PrintMode, Data, IGrid, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { ColumnMenuItem, ColumnMenuItemModel, CheckBoxChangeEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { PdfExportCompleteArgs, PdfHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportProperties, PdfExportProperties, CellSelectingEventArgs, PrintEventArgs } from '@syncfusion/ej2-grids';import { ColumnMenuOpenEventArgs } from '@syncfusion/ej2-grids';import {BeforeDataBoundArgs} from '@syncfusion/ej2-grids';import { DataManager, ReturnOption, RemoteSaveAdaptor, Query, JsonAdaptor, Deferred, UrlAdaptor } from '@syncfusion/ej2-data';import { createSpinner, hideSpinner, showSpinner, Dialog } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline, extendArray, isCountRequired, findChildrenRecords } from '../utils';import { Grid, QueryCellInfoEventArgs, Logger } from '@syncfusion/ej2-grids';import { Render } from '../renderer/render';import { VirtualTreeContentRenderer } from '../renderer/virtual-tree-content-render';import { DataManipulation } from './data';import { RowDD } from '../actions/rowdragdrop';import { Sort } from '../actions/sort';import { ITreeData, RowExpandedEventArgs, RowCollapsedEventArgs, RowCollapsingEventArgs, TreeGridExcelExportProperties } from './interface';import { DataStateChangeEventArgs, RowExpandingEventArgs, TreeGridPdfExportProperties } from './interface';import { iterateArrayOrObject, GridLine } from '@syncfusion/ej2-grids';import { DataSourceChangedEventArgs, RecordDoubleClickEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { ToolbarItems, ToolbarItem, ContextMenuItem, ContextMenuItems, RowPosition, CopyHierarchyType } from '../enum';import { ItemModel, ClickEventArgs, BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations';import { PageSettings } from '../models/page-settings';import { PageSettingsModel } from '../models/page-settings-model';import { AggregateRow } from '../models/summary';import { AggregateRowModel } from '../models/summary-model';import { ExcelExport } from '../actions/excel-export';import { PdfExport } from '../actions/pdf-export';import { Toolbar } from '../actions/toolbar';import { Page } from '../actions/page';import { ContextMenu } from '../actions/context-menu';import { EditSettings } from '../models/edit-settings';import { EditSettingsModel } from '../models/edit-settings-model';import { Edit} from '../actions/edit';import { SortSettings } from '../models/sort-settings';import { SortSettingsModel } from '../models/sort-settings-model';import { isHidden, getExpandStatus } from '../utils';import { editAction } from '../actions/crud-actions';import { InfiniteScrollSettings } from '../models/infinite-scroll-settings';import { InfiniteScrollSettingsModel } from '../models/infinite-scroll-settings-model';import { TreeActionEventArgs } from '..';import * as literals from '../base/constant';
1
+ import { Component, addClass, createElement, EventHandler, isNullOrUndefined, ModuleDeclaration, extend, merge, SanitizeHtmlHelper} from '@syncfusion/ej2-base';import { removeClass, EmitType, Complex, Collection, KeyboardEventArgs, getValue, NumberFormatOptions, DateFormatOptions } from '@syncfusion/ej2-base';import {Event, Property, NotifyPropertyChanges, INotifyPropertyChanged, setValue, KeyboardEvents, L10n } from '@syncfusion/ej2-base';import { Column, ColumnModel } from '../models/column';import { BeforeBatchSaveArgs, BeforeBatchAddArgs, BatchDeleteArgs, BeforeBatchDeleteArgs, Row, getNumberFormat } from '@syncfusion/ej2-grids';import { GridModel, ColumnQueryModeType, HeaderCellInfoEventArgs, EditSettingsModel as GridEditModel, Freeze as FreezeColumn } from '@syncfusion/ej2-grids';import { RowDragEventArgs, RowDropEventArgs, RowDropSettingsModel, RowDropSettings, getUid, parentsUntil } from '@syncfusion/ej2-grids';import { LoadingIndicator } from '../models/loading-indicator';import { LoadingIndicatorModel } from '../models/loading-indicator-model';import { ActionEventArgs, TextAlign } from'@syncfusion/ej2-grids';import { DetailDataBoundEventArgs, ClipMode, ColumnChooser} from '@syncfusion/ej2-grids';import { SearchEventArgs, AddEventArgs, EditEventArgs, DeleteEventArgs} from '@syncfusion/ej2-grids';import { SaveEventArgs, CellSaveArgs, BatchAddArgs, BatchCancelArgs, BeginEditArgs, CellEditArgs} from '@syncfusion/ej2-grids';import { FilterSettings } from '../models/filter-settings';import { TextWrapSettings } from '../models/textwrap-settings';import { TextWrapSettingsModel } from '../models/textwrap-settings-model';import {Filter} from '../actions/filter';import { Logger as TreeLogger } from '../actions/logger';import { BeforeCopyEventArgs, BeforePasteEventArgs } from '@syncfusion/ej2-grids';import { TreeClipboard } from '../actions/clipboard';import {Aggregate} from '../actions/summary';import { Reorder } from '../actions/reorder';import { Resize } from '../actions/resize';import { Selection as TreeGridSelection } from '../actions/selection';import { ColumnMenu } from '../actions/column-menu';import { DetailRow } from '../actions/detail-row';import { Freeze } from '../actions/freeze-column';import { Print } from '../actions/print';import * as events from '../base/constant';import { FilterSettingsModel } from '../models/filter-settings-model';import { SearchSettings} from '../models/search-settings';import { SearchSettingsModel } from '../models/search-settings-model';import {RowInfo, RowDataBoundEventArgs, PageEventArgs, FilterEventArgs, FailureEventArgs, SortEventArgs } from '@syncfusion/ej2-grids';import { RowSelectingEventArgs, RowSelectEventArgs, RowDeselectingEventArgs, RowDeselectEventArgs, IIndex, ISelectedCell } from '@syncfusion/ej2-grids';import {ColumnModel as GridColumnModel, Column as GridColumn, CellSelectEventArgs, CellDeselectEventArgs } from '@syncfusion/ej2-grids';import { SelectionSettings } from '../models/selection-settings';import { SelectionSettingsModel } from '../models/selection-settings-model';import {getActualProperties, SortDirection, getObject, ColumnDragEventArgs } from '@syncfusion/ej2-grids';import { PrintMode, Data, IGrid, ContextMenuItemModel } from '@syncfusion/ej2-grids';import { ColumnMenuItem, ColumnMenuItemModel, CheckBoxChangeEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportCompleteArgs, ExcelHeaderQueryCellInfoEventArgs, ExcelQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { PdfExportCompleteArgs, PdfHeaderQueryCellInfoEventArgs, PdfQueryCellInfoEventArgs } from '@syncfusion/ej2-grids';import { ExcelExportProperties, PdfExportProperties, CellSelectingEventArgs, PrintEventArgs } from '@syncfusion/ej2-grids';import { ColumnMenuOpenEventArgs } from '@syncfusion/ej2-grids';import {BeforeDataBoundArgs} from '@syncfusion/ej2-grids';import { DataManager, ReturnOption, RemoteSaveAdaptor, Query, JsonAdaptor, Deferred, UrlAdaptor } from '@syncfusion/ej2-data';import { createSpinner, hideSpinner, showSpinner, Dialog } from '@syncfusion/ej2-popups';import { isRemoteData, isOffline, extendArray, isCountRequired, findChildrenRecords } from '../utils';import { Grid, QueryCellInfoEventArgs, Logger } from '@syncfusion/ej2-grids';import { Render } from '../renderer/render';import { VirtualTreeContentRenderer } from '../renderer/virtual-tree-content-render';import { DataManipulation } from './data';import { RowDD } from '../actions/rowdragdrop';import { Sort } from '../actions/sort';import { ITreeData, RowExpandedEventArgs, RowCollapsedEventArgs, RowCollapsingEventArgs, TreeGridExcelExportProperties } from './interface';import { DataStateChangeEventArgs, RowExpandingEventArgs, TreeGridPdfExportProperties } from './interface';import { iterateArrayOrObject, GridLine } from '@syncfusion/ej2-grids';import { DataSourceChangedEventArgs, RecordDoubleClickEventArgs, ResizeArgs } from '@syncfusion/ej2-grids';import { ToolbarItems, ToolbarItem, ContextMenuItem, ContextMenuItems, RowPosition, CopyHierarchyType } from '../enum';import { ItemModel, ClickEventArgs, BeforeOpenCloseMenuEventArgs, MenuEventArgs } from '@syncfusion/ej2-navigations';import { PageSettings } from '../models/page-settings';import { PageSettingsModel } from '../models/page-settings-model';import { AggregateRow } from '../models/summary';import { AggregateRowModel } from '../models/summary-model';import { ExcelExport } from '../actions/excel-export';import { PdfExport } from '../actions/pdf-export';import { Toolbar } from '../actions/toolbar';import { Page } from '../actions/page';import { ContextMenu } from '../actions/context-menu';import { EditSettings } from '../models/edit-settings';import { EditSettingsModel } from '../models/edit-settings-model';import { Edit} from '../actions/edit';import { SortSettings } from '../models/sort-settings';import { SortSettingsModel } from '../models/sort-settings-model';import { isHidden, getExpandStatus } from '../utils';import { editAction } from '../actions/crud-actions';import { InfiniteScrollSettings } from '../models/infinite-scroll-settings';import { InfiniteScrollSettingsModel } from '../models/infinite-scroll-settings-model';import { TreeActionEventArgs } from '..';import * as literals from '../base/constant';
2
2
  import {ComponentModel} from '@syncfusion/ej2-base';
3
3
 
4
4
  /**
@@ -1174,12 +1174,14 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1174
1174
  serverCsvExport(url: string): void;
1175
1175
  /**
1176
1176
  * Exports the TreeGrid data to the specified URL using a POST request.
1177
+ *
1177
1178
  * @param {string} url - Defines exporting url
1178
1179
  * @returns {void}
1179
1180
  */
1180
1181
  private exportTreeGrid;
1181
1182
  /**
1182
1183
  * Sets the header text and other properties for an array of columns based on specified criteria.
1184
+ *
1183
1185
  * @param {Column[]} columns - Defines array of columns
1184
1186
  * @param {string[]} include - Defines array of sting
1185
1187
  * @returns {Column[]} returns array of columns
@@ -1311,6 +1313,7 @@ export declare class TreeGrid extends Component<HTMLElement> implements INotifyP
1311
1313
  * @returns {void}
1312
1314
  */
1313
1315
  protected render(): void;
1316
+ private actionFailureHandler;
1314
1317
  private refreshToolbarItems;
1315
1318
  private afterGridRender;
1316
1319
  private convertTreeData;