@syncfusion/ej2-treegrid 22.2.9 → 23.1.36

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 (63) hide show
  1. package/CHANGELOG.md +14 -51
  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 +219 -327
  6. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  7. package/dist/es6/ej2-treegrid.es5.js +218 -350
  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/batch-edit.js +2 -28
  14. package/src/treegrid/actions/crud-actions.js +1 -1
  15. package/src/treegrid/actions/edit.js +6 -52
  16. package/src/treegrid/actions/excel-export.d.ts +2 -2
  17. package/src/treegrid/actions/freeze-column.d.ts +0 -1
  18. package/src/treegrid/actions/freeze-column.js +4 -36
  19. package/src/treegrid/actions/infinite-scroll.js +8 -8
  20. package/src/treegrid/actions/pdf-export.d.ts +2 -2
  21. package/src/treegrid/actions/selection.js +1 -1
  22. package/src/treegrid/actions/virtual-scroll.js +6 -8
  23. package/src/treegrid/base/data.js +20 -4
  24. package/src/treegrid/base/treegrid-model.d.ts +8 -1
  25. package/src/treegrid/base/treegrid.d.ts +69 -1
  26. package/src/treegrid/base/treegrid.js +160 -34
  27. package/src/treegrid/models/column.d.ts +1 -0
  28. package/src/treegrid/renderer/virtual-row-model-generator.js +4 -4
  29. package/src/treegrid/renderer/virtual-tree-content-render.d.ts +0 -1
  30. package/src/treegrid/renderer/virtual-tree-content-render.js +9 -21
  31. package/styles/material-dark.css +0 -1
  32. package/styles/material.css +0 -1
  33. package/styles/material3-dark.css +0 -1
  34. package/styles/material3-dark.scss +1 -1
  35. package/styles/material3.css +0 -1
  36. package/styles/material3.scss +1 -1
  37. package/styles/tailwind-dark.css +0 -1
  38. package/styles/tailwind.css +0 -1
  39. package/styles/treegrid/bootstrap-dark.scss +1 -1
  40. package/styles/treegrid/bootstrap.scss +1 -1
  41. package/styles/treegrid/bootstrap4.scss +1 -1
  42. package/styles/treegrid/bootstrap5-dark.scss +1 -1
  43. package/styles/treegrid/bootstrap5.scss +1 -1
  44. package/styles/treegrid/fabric-dark.scss +1 -1
  45. package/styles/treegrid/fabric.scss +1 -1
  46. package/styles/treegrid/fluent-dark.scss +1 -1
  47. package/styles/treegrid/fluent.scss +1 -1
  48. package/styles/treegrid/highcontrast-light.scss +1 -1
  49. package/styles/treegrid/highcontrast.scss +1 -1
  50. package/styles/treegrid/material-dark.css +0 -1
  51. package/styles/treegrid/material-dark.scss +1 -1
  52. package/styles/treegrid/material.css +0 -1
  53. package/styles/treegrid/material.scss +1 -1
  54. package/styles/treegrid/material3-dark.css +0 -1
  55. package/styles/treegrid/material3-dark.scss +1 -1
  56. package/styles/treegrid/material3.css +0 -1
  57. package/styles/treegrid/material3.scss +1 -1
  58. package/styles/treegrid/tailwind-dark.css +0 -1
  59. package/styles/treegrid/tailwind-dark.scss +1 -1
  60. package/styles/treegrid/tailwind.css +0 -1
  61. package/styles/treegrid/tailwind.scss +1 -1
  62. package/src/treegrid/renderer/virtual-tree-freeze-render.d.ts +0 -59
  63. package/src/treegrid/renderer/virtual-tree-freeze-render.js +0 -163
@@ -1,5 +1,5 @@
1
1
  import { Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, addClass, classList, closest, compile, createElement, debounce, extend, getEnumValue, getValue, isNullOrUndefined, merge, remove, removeClass, select, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
2
- import { Aggregate, Cell, CellRenderer, CellType, Clipboard, ColumnChooser, ColumnFreezeContentRenderer, ColumnFreezeHeaderRenderer, ColumnMenu, ColumnVirtualFreezeRenderer, CommandColumn, ContextMenu, DetailRow, Edit, ExcelExport, Filter, Freeze, FreezeContentRender, FreezeRender, FreezeRowModelGenerator, Grid, InfiniteScroll, InterSectionObserver, Logger, Page, PdfExport, Print, RenderType, Reorder, Resize, RowDD, RowDropSettings, RowRenderer, Scroll, Sort, Toolbar, VirtualContentRenderer, VirtualFreezeHdrRenderer, VirtualFreezeRenderer, VirtualHeaderRenderer, VirtualRowModelGenerator, VirtualScroll, appendChildren, calculateAggregate, detailLists, extend as extend$1, getActualProperties, getObject, getTransformValues, getUid, iterateArrayOrObject, parentsUntil, resetRowIndex, setDebounce, templateCompiler } from '@syncfusion/ej2-grids';
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';
3
3
  import { createCheckBox } from '@syncfusion/ej2-buttons';
4
4
  import { CacheAdaptor, DataManager, DataUtil, Deferred, JsonAdaptor, ODataAdaptor, Predicate, Query, RemoteSaveAdaptor, UrlAdaptor, WebApiAdaptor, WebMethodAdaptor } from '@syncfusion/ej2-data';
5
5
  import { createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
@@ -1348,7 +1348,7 @@ var Selection = /** @__PURE__ @class */ (function () {
1348
1348
  if (recordIndex > -1) {
1349
1349
  var movableTr = void 0;
1350
1350
  if (this.parent.frozenRows || this.parent.getFrozenColumns()) {
1351
- movableTr = this.parent.getMovableDataRows()[parseInt(recordIndex.toString(), 10)];
1351
+ movableTr = this.parent.getDataRows()[parseInt(recordIndex.toString(), 10)];
1352
1352
  }
1353
1353
  checkbox = tr.querySelectorAll('.e-frame')[0] ? tr.querySelectorAll('.e-frame')[0]
1354
1354
  : movableTr.querySelectorAll('.e-frame')[0];
@@ -2085,9 +2085,13 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2085
2085
  qry.isCountRequired = true;
2086
2086
  dm.executeQuery(qry).then(function (e) {
2087
2087
  _this.parentItems = DataUtil.distinct(e.result, _this.parent.parentIdMapping, false);
2088
- var req = getObject('dataSource.requests', _this.parent).filter(function (e) {
2089
- return e.httpRequest.statusText !== 'OK';
2090
- }).length;
2088
+ var req;
2089
+ if (e.result) {
2090
+ req = 0;
2091
+ }
2092
+ else {
2093
+ req = 1;
2094
+ }
2091
2095
  if (req === 0) {
2092
2096
  setValue('grid.contentModule.isLoaded', true, _this.parent);
2093
2097
  if (!isNullOrUndefined(_this.zerothLevelData)) {
@@ -2347,7 +2351,19 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2347
2351
  var remoteCollapsedData = 'remoteCollapsedData';
2348
2352
  var level = 'level';
2349
2353
  var datas = _this.parent.grid.currentViewData.slice();
2350
- var inx = datas.indexOf(rowDetails.record);
2354
+ var inx;
2355
+ var idMapping = _this.parent.idMapping;
2356
+ if (_this.parent['isGantt'] && !_this.parent.loadChildOnDemand && _this.parent.hasChildMapping) {
2357
+ for (var i = 0; i < _this.parent.grid.currentViewData.length; i++) {
2358
+ if (rowDetails.record[idMapping] === _this.parent.grid.currentViewData[i][idMapping]) {
2359
+ inx = i;
2360
+ break;
2361
+ }
2362
+ }
2363
+ }
2364
+ else {
2365
+ inx = datas.indexOf(rowDetails.record);
2366
+ }
2351
2367
  if (_this.parent.enableVirtualization && (rowDetails.action === 'collapse' || rowDetails.action === 'remoteExpand')) {
2352
2368
  datas = [];
2353
2369
  for (var i = 0; i < inx; i++) {
@@ -3549,7 +3565,7 @@ function updateParentRow(key, record, action, control, isSelfReference, child) {
3549
3565
  }
3550
3566
  var movableRow = void 0;
3551
3567
  if (control.frozenRows || control.getFrozenColumns()) {
3552
- movableRow = control.getMovableRowByIndex(index_1);
3568
+ movableRow = control.getRowByIndex(index_1);
3553
3569
  }
3554
3570
  if (!control.enableVirtualization && !isNullOrUndefined(row) || !isNullOrUndefined(movableRow)) {
3555
3571
  var index_2 = control.treeColumnIndex;
@@ -3725,6 +3741,112 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
3725
3741
  TreeGrid.prototype.pdfExport = function (pdfExportProperties, isMultipleExport, pdfDoc, isBlob) {
3726
3742
  return this.pdfExportModule.Map(pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
3727
3743
  };
3744
+ /**
3745
+ * Sends a post request to export tree grid to excel file in server side.
3746
+ *
3747
+ * @param {string} url - Pass URL for server side excel export action.
3748
+ * @returns {void}
3749
+ */
3750
+ TreeGrid.prototype.serverExcelExport = function (url) {
3751
+ this.isExcel = true;
3752
+ this.exportTreeGrid(url);
3753
+ };
3754
+ /**
3755
+ * Sends a post request to export tree grid to pdf file in server side.
3756
+ *
3757
+ * @param {string} url - Pass URL for server-side pdf export action.
3758
+ * @returns {void}
3759
+ */
3760
+ TreeGrid.prototype.serverPdfExport = function (url) {
3761
+ this.isExcel = false;
3762
+ this.exportTreeGrid(url);
3763
+ };
3764
+ /**
3765
+ * Sends a Post request to export Tree Grid to CSV file in server side.
3766
+ *
3767
+ * @param {string} url - Pass URL for server-side csv export action.
3768
+ * @returns {void}
3769
+ */
3770
+ TreeGrid.prototype.serverCsvExport = function (url) {
3771
+ this.isExcel = true;
3772
+ this.exportTreeGrid(url);
3773
+ };
3774
+ /**
3775
+ * Exports the TreeGrid data to the specified URL using a POST request.
3776
+ * @param {string} url - Defines exporting url
3777
+ * @returns {void}
3778
+ */
3779
+ TreeGrid.prototype.exportTreeGrid = function (url) {
3780
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
3781
+ var treegrid = this;
3782
+ var query = treegrid.grid.getDataModule().generateQuery(true);
3783
+ var state = new UrlAdaptor().processQuery(new DataManager({ url: '' }), query);
3784
+ var queries = JSON.parse(state.data);
3785
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3786
+ var treeGridModel = JSON.parse(this.addOnPersist(['allowPaging', 'pageSettings', 'sortSettings', 'allowPdfExport', 'allowExcelExport', 'aggregates',
3787
+ 'filterSettings', 'columns', 'locale', 'searchSettings', 'idMapping', 'parentIdMapping', 'childMapping', 'treeColumnIndex']));
3788
+ var include = ['field', 'headerText', 'type', 'format', 'visible',
3789
+ 'template', 'index', 'width', 'textAlign', 'headerTextAlign', 'columns'];
3790
+ treeGridModel.filterSettings.columns = queries.where;
3791
+ treeGridModel.searchSettings.fields = queries.search && queries.search[0]['fields'] || [];
3792
+ treeGridModel.sortSettings.columns = queries.sorted;
3793
+ treeGridModel.columns = this.setHeaderText(treeGridModel.columns, include);
3794
+ var form = this.createElement('form', { id: 'ExportForm', styles: 'display:none;' });
3795
+ var treeGridInput = this.createElement('input', { id: 'treeGridInput', attrs: { name: 'treeGridModel' } });
3796
+ treeGridInput.value = JSON.stringify(treeGridModel);
3797
+ form.method = 'POST';
3798
+ form.action = url;
3799
+ form.appendChild(treeGridInput);
3800
+ document.body.appendChild(form);
3801
+ form.submit();
3802
+ form.remove();
3803
+ };
3804
+ /**
3805
+ * Sets the header text and other properties for an array of columns based on specified criteria.
3806
+ * @param {Column[]} columns - Defines array of columns
3807
+ * @param {string[]} include - Defines array of sting
3808
+ * @returns {Column[]} returns array of columns
3809
+ */
3810
+ TreeGrid.prototype.setHeaderText = function (columns, include) {
3811
+ for (var i = 0; i < columns.length; i++) {
3812
+ var column = this.getColumnByUid(columns[parseInt(i.toString(), 10)].uid);
3813
+ if (this.stackedHeader && isNullOrUndefined(column)) {
3814
+ column = !isNullOrUndefined(columns[parseInt(i.toString(), 10)].field) ?
3815
+ this.getColumnByField(columns[parseInt(i.toString(), 10)].field) : columns[parseInt(i.toString(), 10)];
3816
+ }
3817
+ columns[parseInt(i.toString(), 10)].headerText = column.headerText;
3818
+ if (!isNullOrUndefined(column.template)) {
3819
+ columns[parseInt(i.toString(), 10)].template = 'true';
3820
+ }
3821
+ if (columns[parseInt(i.toString(), 10)].format) {
3822
+ columns[parseInt(i.toString(), 10)].format = getNumberFormat(this.getFormat(column.format), column.type, false, this.currencyCode);
3823
+ if (!this.isExcel && (column.type === 'datetime' || column.type === 'date')) {
3824
+ columns[parseInt(i.toString(), 10)].format = columns[parseInt(i.toString(), 10)].format.toString().replace('AM/PM', 'tt');
3825
+ }
3826
+ columns[parseInt(i.toString(), 10)].type = column.type;
3827
+ }
3828
+ if (columns[parseInt(i.toString(), 10)].columns) {
3829
+ this.setHeaderText(columns[parseInt(i.toString(), 10)].columns, include);
3830
+ }
3831
+ var keys = Object.keys(columns[parseInt(i.toString(), 10)]);
3832
+ for (var j = 0; j < keys.length; j++) {
3833
+ if (include.indexOf(keys[parseInt(j.toString(), 10)]) < 0) {
3834
+ delete columns[parseInt(i.toString(), 10)][keys[parseInt(j.toString(), 10)]];
3835
+ }
3836
+ }
3837
+ }
3838
+ return columns;
3839
+ };
3840
+ /**
3841
+ * Retrieves the appropriate format string from the given format options.
3842
+ *
3843
+ * @param {string | NumberFormatOptions | DateFormatOptions} format - The format options to retrieve the format string from.
3844
+ * @returns {string} The format string extracted from the provided format options.
3845
+ */
3846
+ TreeGrid.prototype.getFormat = function (format) {
3847
+ return typeof (format) === 'object' ? !isNullOrUndefined(format.format) ?
3848
+ format.format : format.skeleton : format;
3849
+ };
3728
3850
  /**
3729
3851
  * For internal use only - Get the module name.
3730
3852
  *
@@ -4000,7 +4122,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4000
4122
  TreeGrid.prototype.requiredModules = function () {
4001
4123
  var modules = [];
4002
4124
  var splitFrozenCount = 'splitFrozenCount';
4003
- this.grid["" + splitFrozenCount](this.getGridColumns(this.columns));
4125
+ this.grid["" + splitFrozenCount](this.getColumns());
4004
4126
  if (this.isDestroyed) {
4005
4127
  return modules;
4006
4128
  }
@@ -4360,9 +4482,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4360
4482
  TreeGrid.prototype.IsExpandCollapseClicked = function (args) {
4361
4483
  if (!isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
4362
4484
  || args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell'))
4363
- && (!isNullOrUndefined(args.data) && args.data['hasChildRecords']) && !this.selectionSettings.checkboxOnly) {
4364
- args.cancel = true;
4365
- return;
4485
+ && !this.selectionSettings.checkboxOnly) {
4486
+ if ((!isNullOrUndefined(args.data) && args.data['hasChildRecords']) || (args.rowIndex !== -1 && isNullOrUndefined(args.data))) {
4487
+ args.cancel = true;
4488
+ return;
4489
+ }
4366
4490
  }
4367
4491
  };
4368
4492
  TreeGrid.prototype.bindGridEvents = function () {
@@ -4480,9 +4604,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4480
4604
  _this.updateAltRow(_this.getRows());
4481
4605
  _this.notify('dataBoundArg', args);
4482
4606
  if (isRemoteData(_this) && !isOffline(_this) && !_this.hasChildMapping) {
4483
- var req = getObject('dataSource.requests', _this).filter(function (e) {
4484
- return e.httpRequest.statusText !== 'OK';
4485
- }).length;
4607
+ var req = void 0;
4608
+ if (_this.dataResults.result) {
4609
+ req = 0;
4610
+ }
4611
+ else {
4612
+ req = 1;
4613
+ }
4486
4614
  setValue('grid.contentModule.isLoaded', !(req > 0), _this);
4487
4615
  }
4488
4616
  if (_this.isPixelHeight() && _this.initialRender) {
@@ -6243,7 +6371,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6243
6371
  var children = 'Children';
6244
6372
  if (!(isRemoteData(this) && !isOffline(this)) && (!isCountRequired(this) || !isNullOrUndefined(record["" + children]))) {
6245
6373
  var expandArgs = { data: record, row: row };
6246
- this.setHeightForFrozenContent();
6247
6374
  if (!isNullOrUndefined(this.expandStateMapping)) {
6248
6375
  this.updateExpandStateMapping(expandArgs.data, true);
6249
6376
  }
@@ -6270,12 +6397,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6270
6397
  this.expandCollapse(action, null, records[parseInt(i.toString(), 10)]);
6271
6398
  }
6272
6399
  };
6273
- TreeGrid.prototype.setHeightForFrozenContent = function () {
6274
- var freeze = (this.grid.getFrozenLeftColumnsCount() > 0 || this.grid.getFrozenRightColumnsCount() > 0) ? true : false;
6275
- if (this.grid.getFrozenColumns() > 0 || freeze) {
6276
- this.grid.contentModule.refreshScrollOffset();
6277
- }
6278
- };
6279
6400
  TreeGrid.prototype.getCollapseExpandRecords = function (row, record) {
6280
6401
  if (this.allowPaging && this.pageSettings.pageSizeMode === 'All' && this.isExpandAll && isNullOrUndefined(record) &&
6281
6402
  !isRemoteData(this)) {
@@ -6352,7 +6473,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6352
6473
  this.expandCollapse('collapse', row, record);
6353
6474
  var collapseArgs = { data: record, row: row };
6354
6475
  if (!isRemoteData(this)) {
6355
- this.setHeightForFrozenContent();
6356
6476
  if (!isNullOrUndefined(this.expandStateMapping)) {
6357
6477
  this.updateExpandStateMapping(collapseArgs.data, false);
6358
6478
  }
@@ -6807,7 +6927,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6807
6927
  _this.isExpandRefresh = true;
6808
6928
  var scrollHeightBeforeRefresh = _this.getContentTable().parentElement.scrollTop;
6809
6929
  _this.grid.refresh();
6810
- _this.setHeightForFrozenContent();
6811
6930
  if (_this.enableInfiniteScrolling) {
6812
6931
  _this.getContentTable().parentElement.scrollTop = scrollHeightBeforeRefresh;
6813
6932
  }
@@ -6830,7 +6949,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6830
6949
  this.notify(remoteExpand, { record: record, rows: rows, parentRow: row });
6831
6950
  var args_1 = { row: row, data: record };
6832
6951
  if (rows.length > 0) {
6833
- this.setHeightForFrozenContent();
6834
6952
  this.trigger(expanded, args_1);
6835
6953
  }
6836
6954
  }
@@ -6839,7 +6957,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6839
6957
  }
6840
6958
  else {
6841
6959
  this.collapseRemoteChild({ record: record, rows: rows });
6842
- this.setHeightForFrozenContent();
6843
6960
  this.trigger(collapsed, args);
6844
6961
  }
6845
6962
  };
@@ -6874,12 +6991,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6874
6991
  }
6875
6992
  var freeze = (this.grid.getFrozenLeftColumnsCount() > 0 || this.grid.getFrozenRightColumnsCount() > 0) ? true : false;
6876
6993
  if (this.frozenRows || this.frozenColumns || this.getFrozenColumns() || freeze) {
6877
- movableRows = this.getMovableRows().filter(function (r) {
6994
+ movableRows = this.getRows().filter(function (r) {
6878
6995
  return r.querySelector('.e-gridrowindex' + record.index + 'level' + (record.level + 1));
6879
6996
  });
6880
6997
  }
6881
6998
  if (freeze) {
6882
- freezeRightRows = this.getFrozenRightRows().filter(function (r) {
6999
+ freezeRightRows = this.getRows().filter(function (r) {
6883
7000
  return r.querySelector('.e-gridrowindex' + record.index + 'level' + (record.level + 1));
6884
7001
  });
6885
7002
  }
@@ -6979,10 +7096,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6979
7096
  var rightrows = [];
6980
7097
  var freeze = (this.getFrozenLeftColumnsCount() > 0 || this.getFrozenRightColumnsCount() > 0) ? true : false;
6981
7098
  if (freeze) {
6982
- movablerows = this.getMovableRows().filter(function (r) {
7099
+ movablerows = this.getRows().filter(function (r) {
6983
7100
  return r.querySelector('.e-gridrowindex' + rowDetails.record.index + 'level' + (rowDetails.record.level + 1));
6984
7101
  });
6985
- rightrows = this.getFrozenRightRows().filter(function (r) {
7102
+ rightrows = this.getRows().filter(function (r) {
6986
7103
  return r.querySelector('.e-gridrowindex' + rowDetails.record.index + 'level' + (rowDetails.record.level + 1));
6987
7104
  });
6988
7105
  }
@@ -7192,59 +7309,72 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7192
7309
  * @param {number} rowIndex - Specifies the row index.
7193
7310
  * @param {number} columnIndex - Specifies the column index.
7194
7311
  * @returns {Element} - Returns movable cell element from the indexes passed
7312
+ *
7313
+ * @deprecated This method is deprecated. Use getCellFromIndex method instead.
7195
7314
  */
7196
7315
  TreeGrid.prototype.getMovableCellFromIndex = function (rowIndex, columnIndex) {
7197
- return this.grid.getMovableCellFromIndex(rowIndex, columnIndex);
7316
+ return this.grid.getCellFromIndex(rowIndex, columnIndex);
7198
7317
  };
7199
7318
  /**
7200
7319
  * Gets all the TreeGrid's movable table data rows.
7201
7320
  *
7202
7321
  * @returns {Element[]} - Returns element collection of movable rows
7322
+ *
7323
+ * @deprecated This method is deprecated. Use getDataRows method instead.
7203
7324
  */
7204
7325
  TreeGrid.prototype.getMovableDataRows = function () {
7205
- return this.grid.getMovableDataRows();
7326
+ return this.grid.getDataRows();
7206
7327
  };
7207
7328
  /**
7208
7329
  * Gets a movable tables row by index.
7209
7330
  *
7210
7331
  * @param {number} index - Specifies the row index.
7211
7332
  * @returns {Element} - Returns movable row based on index passed
7333
+ *
7334
+ * @deprecated This method is deprecated. Use getRowByIndex method instead.
7212
7335
  */
7213
7336
  TreeGrid.prototype.getMovableRowByIndex = function (index) {
7214
- return this.grid.getMovableRowByIndex(index);
7337
+ return this.grid.getRowByIndex(index);
7215
7338
  };
7216
7339
  /**
7217
7340
  * Gets the TreeGrid's movable content rows from frozen treegrid.
7218
7341
  *
7219
7342
  * @returns {Element[]}: Returns movable row element
7343
+ * @deprecated This method is deprecated. Use getRows method instead.
7220
7344
  */
7221
7345
  TreeGrid.prototype.getMovableRows = function () {
7222
- return this.grid.getMovableRows();
7346
+ return this.grid.getRows();
7223
7347
  };
7224
7348
  /**
7225
7349
  * Gets a frozen right tables row element by index.
7226
7350
  *
7227
7351
  * @param {number} index - Specifies the row index.
7228
7352
  * @returns {Element} returns the element
7353
+ *
7354
+ * @deprecated This method is deprecated. Use getRowByIndex method instead.
7229
7355
  */
7230
7356
  TreeGrid.prototype.getFrozenRightRowByIndex = function (index) {
7231
- return this.grid.getFrozenRightRowByIndex(index);
7357
+ return this.grid.getRowByIndex(index);
7232
7358
  };
7233
7359
  /**
7234
7360
  * Gets the Tree Grid's frozen right content rows from frozen Tree Grid.
7235
7361
  *
7236
7362
  * @returns {Element[]} returns the element
7363
+ *
7364
+ * @deprecated This method is deprecated. Use getRows method instead.
7237
7365
  */
7238
7366
  TreeGrid.prototype.getFrozenRightRows = function () {
7239
- return this.grid.getFrozenRightRows();
7367
+ return this.grid.getRows();
7240
7368
  };
7241
7369
  /**
7242
7370
  * Gets all the Tree Grid's frozen right table data rows.
7243
7371
  *
7244
7372
  * @returns {Element[]} Returns the Element
7373
+ *
7374
+ * @deprecated This method is deprecated. Use getDataRows method instead.
7245
7375
  */
7246
7376
  TreeGrid.prototype.getFrozenRightDataRows = function () {
7247
- return this.grid.getFrozenRightDataRows();
7377
+ return this.grid.getDataRows();
7248
7378
  };
7249
7379
  /**
7250
7380
  * Gets a frozen right table cell by row and column index.
@@ -7252,36 +7382,44 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7252
7382
  * @param {number} rowIndex - Specifies the row index.
7253
7383
  * @param {number} columnIndex - Specifies the column index.
7254
7384
  * @returns {Element} Returns the Element
7385
+ *
7386
+ * @deprecated This method is deprecated. Use getCellFromIndex method instead.
7255
7387
  */
7256
7388
  TreeGrid.prototype.getFrozenRightCellFromIndex = function (rowIndex, columnIndex) {
7257
- return this.grid.getFrozenRightCellFromIndex(rowIndex, columnIndex);
7389
+ return this.grid.getCellFromIndex(rowIndex, columnIndex);
7258
7390
  };
7259
7391
  /**
7260
7392
  * Gets a frozen left column header by column index.
7261
7393
  *
7262
7394
  * @param {number} index - Specifies the column index.
7263
7395
  * @returns {Element} Returns the Element
7396
+ *
7397
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
7264
7398
  */
7265
7399
  TreeGrid.prototype.getFrozenLeftColumnHeaderByIndex = function (index) {
7266
- return this.grid.getFrozenLeftColumnHeaderByIndex(index);
7400
+ return this.grid.getColumnHeaderByIndex(index);
7267
7401
  };
7268
7402
  /**
7269
7403
  * Gets a frozen right column header by column index.
7270
7404
  *
7271
7405
  * @param {number} index - Specifies the column index.
7272
7406
  * @returns {Element} Returns the Element
7407
+ *
7408
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
7273
7409
  */
7274
7410
  TreeGrid.prototype.getFrozenRightColumnHeaderByIndex = function (index) {
7275
- return this.grid.getFrozenRightColumnHeaderByIndex(index);
7411
+ return this.grid.getColumnHeaderByIndex(index);
7276
7412
  };
7277
7413
  /**
7278
7414
  * Gets a movable column header by column index.
7279
7415
  *
7280
7416
  * @param {number} index - Specifies the column index.
7281
7417
  * @returns {Element} Returns the Element
7418
+ *
7419
+ * @deprecated This method is deprecated. Use getColumnHeaderByIndex method instead.
7282
7420
  */
7283
7421
  TreeGrid.prototype.getMovableColumnHeaderByIndex = function (index) {
7284
- return this.grid.getMovableColumnHeaderByIndex(index);
7422
+ return this.grid.getColumnHeaderByIndex(index);
7285
7423
  };
7286
7424
  /**
7287
7425
  * @hidden
@@ -7515,6 +7653,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
7515
7653
  __decorate([
7516
7654
  Complex({}, RowDropSettings)
7517
7655
  ], TreeGrid.prototype, "rowDropSettings", void 0);
7656
+ __decorate([
7657
+ Property('USD')
7658
+ ], TreeGrid.prototype, "currencyCode", void 0);
7518
7659
  __decorate([
7519
7660
  Property()
7520
7661
  ], TreeGrid.prototype, "pagerTemplate", void 0);
@@ -9454,8 +9595,8 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9454
9595
  var currentPage = this["" + model].currentPage;
9455
9596
  if (clear) {
9456
9597
  this.cache = {};
9457
- this.movableCache = {};
9458
- this.frozenRightCache = {};
9598
+ /*this.movableCache = {};
9599
+ this.frozenRightCache = {};*/
9459
9600
  this.data = {};
9460
9601
  this.groups = {};
9461
9602
  }
@@ -9470,8 +9611,8 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
9470
9611
  this.cache = {};
9471
9612
  this.data = {};
9472
9613
  this.groups = {};
9473
- this.movableCache = {};
9474
- this.frozenRightCache = {};
9614
+ /*this.movableCache = {};
9615
+ this.frozenRightCache = {};*/
9475
9616
  }
9476
9617
  }
9477
9618
  return clear;
@@ -11069,21 +11210,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11069
11210
  };
11070
11211
  BatchEdit.prototype.cellSaved = function (args) {
11071
11212
  var actualCellIndex = args.column.index;
11072
- var frozenCols = this.parent.frozenColumns || this.parent.getFrozenColumns();
11073
- if (frozenCols && args.columnObject.index > frozenCols) {
11074
- actualCellIndex = actualCellIndex + frozenCols;
11075
- }
11076
- var freeze = (this.parent.getFrozenLeftColumnsCount() > 0 ||
11077
- this.parent.getFrozenRightColumnsCount() > 0) ? true : false;
11078
- if (freeze) {
11079
- var colCount = this.parent.getFrozenLeftColumnsCount() + actualCellIndex;
11080
- if (colCount === this.parent.treeColumnIndex) {
11081
- this.parent.renderModule.cellRender({ data: args.rowData, cell: args.cell,
11082
- column: this.parent.grid.getColumnByIndex(args.column.index)
11083
- });
11084
- }
11085
- }
11086
- else if (actualCellIndex === this.parent.treeColumnIndex) {
11213
+ if (actualCellIndex === this.parent.treeColumnIndex) {
11087
11214
  this.parent.renderModule.cellRender({ data: args.rowData, cell: args.cell,
11088
11215
  column: this.parent.grid.getColumnByIndex(args.column.index)
11089
11216
  });
@@ -11287,7 +11414,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11287
11414
  for (var i = firstChildIndex; i <= totalCount; i++) {
11288
11415
  row.push(this.parent.grid.getDataRows()[parseInt(i.toString(), 10)]);
11289
11416
  if (this.parent.frozenRows || this.parent.frozenColumns || this.parent.getFrozenColumns()) {
11290
- row.push(this.parent.grid.getMovableRows()[parseInt(i.toString(), 10)]);
11417
+ row.push(this.parent.grid.getHeaderContent()[parseInt(i.toString(), 10)]);
11291
11418
  }
11292
11419
  }
11293
11420
  }
@@ -11319,18 +11446,6 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
11319
11446
  for (var i = 0; i < rows.length; i++) {
11320
11447
  rows[parseInt(i.toString(), 10)].setAttribute('data-rowindex', i.toString());
11321
11448
  }
11322
- var freeze = (this.parent.getFrozenLeftColumnsCount() > 0 ||
11323
- this.parent.getFrozenRightColumnsCount() > 0) ? true : false;
11324
- if (this.parent.frozenRows || this.parent.getFrozenColumns() || this.parent.frozenColumns || freeze) {
11325
- var mRows = this.parent.grid.getMovableDataRows();
11326
- var freezeRightRows = this.parent.grid.getFrozenRightDataRows();
11327
- for (var i = 0; i < mRows.length; i++) {
11328
- mRows[parseInt(i.toString(), 10)].setAttribute('data-rowindex', i.toString());
11329
- if (freeze) {
11330
- freezeRightRows[parseInt(i.toString(), 10)].setAttribute('data-rowindex', i.toString());
11331
- }
11332
- }
11333
- }
11334
11449
  };
11335
11450
  BatchEdit.prototype.updateChildCount = function (records) {
11336
11451
  var primaryKey = this.parent.grid.getPrimaryKeyFieldNames()[0];
@@ -11789,8 +11904,8 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11789
11904
  currentData.splice(newRowObjectIndex, 0, newRecord);
11790
11905
  this.updateInfiniteCurrentViewData(newRecord, this.addRowIndex);
11791
11906
  }
11792
- var movableRows = this.parent.grid.getMovableRows();
11793
- var movableRowsObject = this.parent.grid.getMovableRowsObject();
11907
+ var movableRows = this.parent.grid.getRows();
11908
+ var movableRowsObject = this.parent.grid.getRowsObject();
11794
11909
  var isCache = this.parent.infiniteScrollSettings.enableCache;
11795
11910
  if (!isCache) {
11796
11911
  resetRowIndex(this.parent.grid, this.parent.grid.getRowsObject(), this.parent.grid.getRows(), 0);
@@ -11997,16 +12112,13 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
11997
12112
  if (this.parent.getRows().indexOf(row_1) !== -1) {
11998
12113
  rowIndex_1 = this.parent.getRows().indexOf(row_1);
11999
12114
  }
12000
- else if (this.parent.getFrozenRightRows().indexOf(row_1) !== -1) {
12001
- rowIndex_1 = this.parent.getFrozenRightRows().indexOf(row_1);
12002
- }
12003
12115
  else {
12004
- rowIndex_1 = this.parent.getMovableRows().indexOf(row_1);
12116
+ rowIndex_1 = this.parent.getRows().indexOf(row_1);
12005
12117
  }
12006
12118
  }
12007
12119
  else {
12008
12120
  rowIndex_1 = (this.parent.getRows().indexOf(row_1) === -1 && (this.parent.getFrozenColumns() > 0)) ?
12009
- this.parent.grid.getMovableRows().indexOf(row_1) : this.parent.getRows().indexOf(row_1);
12121
+ this.parent.grid.getRows().indexOf(row_1) : this.parent.getRows().indexOf(row_1);
12010
12122
  }
12011
12123
  }
12012
12124
  var arg = {};
@@ -12062,7 +12174,6 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12062
12174
  }
12063
12175
  };
12064
12176
  Edit$$1.prototype.afterCellSave = function (args, row, rowIndex) {
12065
- var mRow;
12066
12177
  if (this.parent.grid.aggregateModule) {
12067
12178
  this.parent.grid.aggregateModule.refresh(args.rowData);
12068
12179
  }
@@ -12073,31 +12184,6 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12073
12184
  this.isOnBatch = false;
12074
12185
  }
12075
12186
  this.enableToolbarItems('save');
12076
- var freeze = (this.parent.getFrozenLeftColumnsCount() > 0 ||
12077
- this.parent.getFrozenRightColumnsCount() > 0) ? true : false;
12078
- if (freeze) {
12079
- if (args.cell.closest('.e-frozen-left-header') || args.cell.closest('.e-frozen-left-content')) {
12080
- mRow = this.parent.grid.getRows()[parseInt(rowIndex.toString(), 10)];
12081
- }
12082
- else if (args.cell.closest('.e-movableheader') || args.cell.closest('.e-movablecontent')) {
12083
- mRow = this.parent.grid.getMovableRows()[parseInt(rowIndex.toString(), 10)];
12084
- }
12085
- else {
12086
- mRow = this.parent.grid.getFrozenRightRows()[parseInt(rowIndex.toString(), 10)];
12087
- }
12088
- removeClass([mRow], ['e-editedrow', 'e-batchrow']);
12089
- removeClass(mRow.querySelectorAll('.e-rowcell'), ['e-editedbatchcell', 'e-updatedtd']);
12090
- }
12091
- else if (this.parent.getFrozenColumns() > 0) {
12092
- if (args.cell.closest('.e-frozenheader') || args.cell.closest('.e-frozencontent')) {
12093
- mRow = this.parent.grid.getRows()[parseInt(rowIndex.toString(), 10)];
12094
- }
12095
- else {
12096
- mRow = this.parent.grid.getMovableRows()[parseInt(rowIndex.toString(), 10)];
12097
- }
12098
- removeClass([mRow], ['e-editedrow', 'e-batchrow']);
12099
- removeClass(mRow.querySelectorAll('.e-rowcell'), ['e-editedbatchcell', 'e-updatedtd']);
12100
- }
12101
12187
  removeClass([row], ['e-editedrow', 'e-batchrow']);
12102
12188
  removeClass(row.querySelectorAll('.e-rowcell'), ['e-editedbatchcell', 'e-updatedtd']);
12103
12189
  if (this.parent['isCellSaveFocus'] !== false) {
@@ -12283,23 +12369,6 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12283
12369
  this.parent.grid.contentModule["" + r].splice(0, 1);
12284
12370
  this.parent.grid.contentModule["" + r].splice(rowObjectIndex, 0, newRowObject);
12285
12371
  }
12286
- var freeze = (this.parent.getFrozenLeftColumnsCount() > 0 ||
12287
- this.parent.getFrozenRightColumnsCount() > 0) ? true : false;
12288
- if (this.parent.frozenRows || this.parent.getFrozenColumns() || this.parent.frozenColumns || freeze) {
12289
- var movableRows = this.parent.getMovableDataRows();
12290
- var frows = 'freezeRows';
12291
- var newFreezeRowObject = this.parent.grid.getRowsObject()[0];
12292
- movableRows[index + 1]["" + position](movableRows[0]);
12293
- if (freeze) {
12294
- var rightFrozenRows = this.parent.getFrozenRightDataRows();
12295
- rightFrozenRows[index + 1]["" + position](rightFrozenRows[0]);
12296
- }
12297
- if (this.parent.editSettings.mode === 'Batch') {
12298
- this.parent.grid.contentModule["" + frows].splice(0, 1);
12299
- this.parent.grid.contentModule["" + frows].splice(rowObjectIndex, 0, newFreezeRowObject);
12300
- }
12301
- setValue('batchIndex', index + 1, this.batchEditModule);
12302
- }
12303
12372
  if (this.parent.editSettings.mode === 'Row' || this.parent.editSettings.mode === 'Cell') {
12304
12373
  var errors = this.parent.grid.getContentTable().querySelectorAll('.e-griderror');
12305
12374
  for (var i = 0; i < errors.length; i++) {
@@ -12672,8 +12741,8 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12672
12741
  || (this.parent.editSettings.mode === 'Batch' && e.args.requestType.toString() === 'batchsave'))) {
12673
12742
  this.updateIndex(this.parent.grid.dataSource, this.parent.getRows(), this.parent.getCurrentViewRecords());
12674
12743
  if (this.parent.frozenRows || this.parent.getFrozenColumns() || this.parent.frozenColumns) {
12675
- if (this.parent.grid.dataSource.length === this.parent.getMovableDataRows().length) {
12676
- this.updateIndex(this.parent.grid.dataSource, this.parent.getMovableDataRows(), this.parent.getCurrentViewRecords());
12744
+ if (this.parent.grid.dataSource.length === this.parent.getDataRows().length) {
12745
+ this.updateIndex(this.parent.grid.dataSource, this.parent.getDataRows(), this.parent.getCurrentViewRecords());
12677
12746
  }
12678
12747
  }
12679
12748
  }
@@ -12878,18 +12947,19 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
12878
12947
  return new TreeVirtualRowModelGenerator(this.parent);
12879
12948
  };
12880
12949
  VirtualTreeContentRenderer.prototype.getRowByIndex = function (index) {
12881
- return this.parent.getDataRows().filter(function (e) { return parseInt(e.getAttribute('data-rowindex'), 10) === index; })[0];
12882
- };
12883
- VirtualTreeContentRenderer.prototype.getMovableVirtualRowByIndex = function (index) {
12884
- return this.getRowCollection(index, true);
12950
+ if (this.parent.enableVirtualization && this.parent.isFrozenGrid()) {
12951
+ return this.getRowCollection(index, true);
12952
+ }
12953
+ else {
12954
+ return this.parent.getDataRows().filter(function (e) { return parseInt(e.getAttribute('data-rowindex'), 10) === index; })[0];
12955
+ }
12885
12956
  };
12886
12957
  VirtualTreeContentRenderer.prototype.getFrozenRightVirtualRowByIndex = function (index) {
12887
12958
  return this.getRowCollection(index, false, false, true);
12888
12959
  };
12889
12960
  VirtualTreeContentRenderer.prototype.getRowCollection = function (index, isMovable, isRowObject, isFrozenRight) {
12890
12961
  var startIdx = parseInt(this.parent.getRows()[0].getAttribute(dataRowIndex), 10);
12891
- var rowCollection = isMovable ? this.parent.getMovableDataRows() : this.parent.getDataRows();
12892
- rowCollection = isFrozenRight ? this.parent.getFrozenRightDataRows() : rowCollection;
12962
+ var rowCollection = this.parent.getDataRows();
12893
12963
  var collection = isRowObject ? this.parent.getCurrentViewRecords() : rowCollection;
12894
12964
  var selectedRow = collection[index - startIdx];
12895
12965
  if (this.parent.frozenRows && this.parent.pageSettings.currentPage > 1) {
@@ -12942,8 +13012,8 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
12942
13012
  this.endIndex = this.parent.pageSettings.pageSize - 1;
12943
13013
  }
12944
13014
  if ((this.endIndex - this.startIndex !== this.parent.pageSettings.pageSize) &&
12945
- (this.totalRecords > this.parent.pageSettings.pageSize) &&
12946
- (this.endIndex === this.totalRecords)) {
13015
+ (this.totalRecords > this.parent.pageSettings.pageSize)
13016
+ && (this.endIndex === this.totalRecords)) {
12947
13017
  args.startIndex = this.endIndex - this.parent.pageSettings.pageSize;
12948
13018
  args.endIndex = this.endIndex;
12949
13019
  }
@@ -13341,29 +13411,16 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
13341
13411
  }
13342
13412
  };
13343
13413
  VirtualTreeContentRenderer.prototype.appendContent = function (target, newChild, e) {
13344
- var isFrozen = this.parent.isFrozenGrid();
13345
13414
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
13346
13415
  && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || this.parent.isFrozenGrid()) {
13347
13416
  if (getValue('isExpandCollapse', e)) {
13348
13417
  this.isRemoteExpand = true;
13349
13418
  }
13350
- if (isFrozen && ((isNullOrUndefined(this.requestType) && getValue('requestTypes', this).indexOf('isFrozen') === -1) ||
13351
- (this.parent.enableVirtualMaskRow && this.requestType === 'virtualscroll'))) {
13352
- getValue('requestTypes', this).push('isFrozen');
13353
- this.requestType = 'isFrozen';
13354
- }
13355
13419
  _super.prototype.appendContent.call(this, target, newChild, e);
13356
13420
  if (getValue('requestTypes', this).indexOf('isFrozen') !== -1) {
13357
13421
  getValue('requestTypes', this).splice(getValue('requestTypes', this).indexOf('isFrozen'), 1);
13358
13422
  this.requestType = this.requestType === 'isFrozen' ? undefined : this.requestType;
13359
13423
  }
13360
- if (isFrozen && (!this.isExpandCollapse || this.translateY === 0)) {
13361
- this.translateY = this.translateY < 0 ? 0 : this.translateY;
13362
- getValue('virtualEle', this).adjustTable(0, this.translateY);
13363
- }
13364
- else {
13365
- this.isExpandCollapse = false;
13366
- }
13367
13424
  }
13368
13425
  else {
13369
13426
  var info = e.virtualInfo.sentinelInfo && e.virtualInfo.sentinelInfo.axis === 'Y' &&
@@ -13633,6 +13690,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13633
13690
  this.parent.grid.notify(indexModifier, counts);
13634
13691
  var startIndex = counts.startIndex;
13635
13692
  var endIndex = counts.endIndex;
13693
+ pageingDetails.count = visualData.length;
13636
13694
  if (startIndex === -1 && endIndex === -1) {
13637
13695
  var query = new Query();
13638
13696
  var size = this.parent.grid.pageSettings.pageSize;
@@ -13651,7 +13709,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
13651
13709
  this.parent.grid.getContent().firstElementChild.scrollTop = 0;
13652
13710
  this.parent.grid.notify(virtualActionArgs, { setTop: true });
13653
13711
  }
13654
- if ((requestType === 'save' && (pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt']) && (counts.count === this.prevendIndex + 1))) {
13712
+ if ((requestType === 'save' && pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
13655
13713
  startIndex = counts.startIndex + (counts.count - counts.endIndex);
13656
13714
  endIndex = counts.count;
13657
13715
  this.parent['isAddedFromGantt'] = false;
@@ -13724,15 +13782,12 @@ var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13724
13782
  var parentGrid = getValue('parent', this);
13725
13783
  getValue('parent', this).log(['limitation', 'virtual_height'], 'virtualization');
13726
13784
  var renderer = getValue('locator', this).getService('rendererFactory');
13727
- if (!parentGrid.isFrozenGrid()) {
13728
- if (parentGrid.enableColumnVirtualization) {
13729
- getValue('addRenderer', renderer)
13730
- .apply(renderer, [RenderType.Header, new VirtualHeaderRenderer(getValue('parent', this), getValue('locator', this))]);
13731
- }
13785
+ if (parentGrid.enableColumnVirtualization) {
13732
13786
  getValue('addRenderer', renderer)
13733
- .apply(renderer, [RenderType.Content, new VirtualTreeContentRenderer(getValue('parent', this), getValue('locator', this))]);
13787
+ .apply(renderer, [RenderType.Header, new VirtualHeaderRenderer(getValue('parent', this), getValue('locator', this))]);
13734
13788
  }
13735
- //renderer.addRenderer(RenderType.Content, new VirtualTreeContentRenderer(getValue('parent', this), getValue('locator', this)));
13789
+ getValue('addRenderer', renderer)
13790
+ .apply(renderer, [RenderType.Content, new VirtualTreeContentRenderer(getValue('parent', this), getValue('locator', this))]);
13736
13791
  this.ensurePageSize();
13737
13792
  };
13738
13793
  TreeVirtual.prototype.ensurePageSize = function () {
@@ -13751,162 +13806,6 @@ var TreeVirtual = /** @__PURE__ @class */ (function (_super) {
13751
13806
  return TreeVirtual;
13752
13807
  }(VirtualScroll));
13753
13808
 
13754
- var __extends$18 = (undefined && undefined.__extends) || (function () {
13755
- var extendStatics = function (d, b) {
13756
- extendStatics = Object.setPrototypeOf ||
13757
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
13758
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
13759
- return extendStatics(d, b);
13760
- };
13761
- return function (d, b) {
13762
- extendStatics(d, b);
13763
- function __() { this.constructor = d; }
13764
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13765
- };
13766
- })();
13767
- /**
13768
- * VirtualTreeFreezeRenderer is used to render the virtual table within the frozen and movable content table
13769
- *
13770
- * @hidden
13771
- */
13772
- var VirtualTreeFreezeRenderer = /** @__PURE__ @class */ (function (_super) {
13773
- __extends$18(VirtualTreeFreezeRenderer, _super);
13774
- function VirtualTreeFreezeRenderer(parent, locator) {
13775
- var _this = _super.call(this, parent, locator) || this;
13776
- _this.addEventListener();
13777
- return _this;
13778
- }
13779
- /**
13780
- * @returns {void}
13781
- * @hidden
13782
- */
13783
- VirtualTreeFreezeRenderer.prototype.renderTable = function () {
13784
- this.freezeRowGenerator = new FreezeRowModelGenerator(this.parent);
13785
- this.virtualRenderer = new VirtualTreeContentRenderer(this.parent, this.serviceLoc);
13786
- this.virtualRenderer.header = this.serviceLoc.getService('rendererFactory')
13787
- .getRenderer(RenderType.Header).virtualHdrRenderer;
13788
- FreezeContentRender.prototype.renderTable.call(this);
13789
- this.virtualRenderer.setPanel(this.parent.getContent());
13790
- this.scrollbar = this.parent.getContent().querySelector('.e-movablescrollbar');
13791
- var movableCont = this.getMovableContent();
13792
- var minHeight = this.parent.height;
13793
- this.virtualRenderer.virtualEle.content = this.virtualRenderer.content = this.getPanel().querySelector('.' + content);
13794
- this.virtualRenderer.virtualEle.content.style.overflowX = 'hidden';
13795
- this.virtualRenderer.virtualEle.renderFrozenWrapper(minHeight);
13796
- this.virtualRenderer.virtualEle.renderFrozenPlaceHolder();
13797
- if (this.parent.enableColumnVirtualization) {
13798
- this.virtualRenderer.virtualEle.movableContent = this.virtualRenderer.movableContent
13799
- = this.getPanel().querySelector('.' + movableContent);
13800
- this.virtualRenderer.virtualEle.renderMovableWrapper(minHeight);
13801
- this.virtualRenderer.virtualEle.renderMovablePlaceHolder();
13802
- var tbl = movableCont.querySelector('table');
13803
- this.virtualRenderer.virtualEle.movableTable = tbl;
13804
- this.virtualRenderer.virtualEle.movableWrapper.appendChild(tbl);
13805
- movableCont.appendChild(this.virtualRenderer.virtualEle.movableWrapper);
13806
- movableCont.appendChild(this.virtualRenderer.virtualEle.movablePlaceholder);
13807
- }
13808
- this.virtualRenderer.virtualEle.wrapper.appendChild(this.getFrozenContent());
13809
- this.virtualRenderer.virtualEle.wrapper.appendChild(movableCont);
13810
- this.virtualRenderer.virtualEle.table = this.getTable();
13811
- setDebounce(this.parent, this.virtualRenderer, this.scrollbar, this.getMovableContent());
13812
- };
13813
- /**
13814
- * @param {HTMLElement} target - specifies the target
13815
- * @param {DocumentFragment} newChild - specifies the newChild
13816
- * @param {NotifyArgs} e - specifies the notifyargs
13817
- * @returns {void}
13818
- * @hidden
13819
- */
13820
- VirtualTreeFreezeRenderer.prototype.appendContent = function (target, newChild, e) {
13821
- getValue('observer', this.virtualRenderer).options.debounceEvent = false;
13822
- this.virtualRenderer['observers'] = new TreeInterSectionObserver(getValue('observer', this.virtualRenderer).element, getValue('observer', this.virtualRenderer).options, getValue('observer', this.virtualRenderer).movableEle);
13823
- this.virtualRenderer['contents'] = this.getPanel().firstChild;
13824
- _super.prototype.appendContent.call(this, target, newChild, e);
13825
- };
13826
- /**
13827
- * @param {Object[]} data - specifies the data
13828
- * @param {NotifyArgs} e - specifies the notifyargs
13829
- * @returns {Row<Column>[]} returns the row
13830
- * @hidden
13831
- */
13832
- VirtualTreeFreezeRenderer.prototype.generateRows = function (data, e) {
13833
- return _super.prototype.generateRows.call(this, data, e);
13834
- };
13835
- return VirtualTreeFreezeRenderer;
13836
- }(VirtualFreezeRenderer));
13837
- /**
13838
- * ColumnVirtualTreeFreezeRenderer is used to render the virtual table within the frozen and movable content table
13839
- *
13840
- * @hidden
13841
- */
13842
- var ColumnVirtualTreeFreezeRenderer = /** @__PURE__ @class */ (function (_super) {
13843
- __extends$18(ColumnVirtualTreeFreezeRenderer, _super);
13844
- function ColumnVirtualTreeFreezeRenderer(parent, locator) {
13845
- var _this = _super.call(this, parent, locator) || this;
13846
- _this.serviceLoc = locator;
13847
- _this.eventListener('on');
13848
- return _this;
13849
- }
13850
- /**
13851
- * @returns {void}
13852
- * @hidden
13853
- */
13854
- ColumnVirtualTreeFreezeRenderer.prototype.renderTable = function () {
13855
- this.virtualRenderer = new VirtualTreeContentRenderer(this.parent, this.serviceLoc);
13856
- this.virtualRenderer.header = this.serviceLoc.getService('rendererFactory')
13857
- .getRenderer(RenderType.Header).virtualHdrRenderer;
13858
- this.freezeRowGenerator = new FreezeRowModelGenerator(this.parent);
13859
- ColumnFreezeContentRenderer.prototype.renderTable.call(this);
13860
- this.virtualRenderer.setPanel(this.parent.getContent());
13861
- this.scrollbar = this.parent.getContent().querySelector('.e-movablescrollbar');
13862
- var frozenRightCont = this.getFrozenRightContent();
13863
- var frzCont = this.getFrozenContent();
13864
- var movableCont = this.getMovableContent();
13865
- if (this.parent.getFrozenMode() === 'Right') {
13866
- frzCont = frozenRightCont;
13867
- }
13868
- this.virtualRenderer.virtualEle.content = this.virtualRenderer.content = this.getPanel().querySelector('.' + content);
13869
- this.virtualRenderer.virtualEle.content.style.overflowX = 'hidden';
13870
- var minHeight = this.parent.height;
13871
- this.virtualRenderer.virtualEle.renderFrozenWrapper(minHeight);
13872
- this.virtualRenderer.virtualEle.renderFrozenPlaceHolder();
13873
- _super.prototype['renderVirtualFrozenLeft'].call(this, frzCont, movableCont);
13874
- _super.prototype['renderVirtualFrozenRight'].call(this, frzCont, movableCont);
13875
- _super.prototype['renderVirtualFrozenLeftRight'].call(this, frzCont, movableCont, frozenRightCont);
13876
- this.virtualRenderer.virtualEle.table = this.getTable();
13877
- setDebounce(this.parent, this.virtualRenderer, this.scrollbar, this.getMovableContent());
13878
- };
13879
- ColumnVirtualTreeFreezeRenderer.prototype.appendContent = function (target, newChild, e) {
13880
- getValue('observer', this.virtualRenderer).options.debounceEvent = false;
13881
- this.virtualRenderer['observers'] = new TreeInterSectionObserver(getValue('observer', this.virtualRenderer).element, getValue('observer', this.virtualRenderer).options, getValue('observer', this.virtualRenderer).movableEle);
13882
- this.virtualRenderer['contents'] = this.getPanel().firstChild;
13883
- _super.prototype.appendContent.call(this, target, newChild, e);
13884
- };
13885
- return ColumnVirtualTreeFreezeRenderer;
13886
- }(ColumnVirtualFreezeRenderer));
13887
- /**
13888
- * VirtualTreeFreezeHdrRenderer is used to render the virtual table within the frozen and movable header table
13889
- *
13890
- * @hidden
13891
- */
13892
- var VirtualTreeFreezeHdrRenderer = /** @__PURE__ @class */ (function (_super) {
13893
- __extends$18(VirtualTreeFreezeHdrRenderer, _super);
13894
- function VirtualTreeFreezeHdrRenderer() {
13895
- return _super !== null && _super.apply(this, arguments) || this;
13896
- }
13897
- /**
13898
- * @returns {void}
13899
- * @hidden
13900
- */
13901
- VirtualTreeFreezeHdrRenderer.prototype.renderTable = function () {
13902
- _super.prototype.renderTable.call(this);
13903
- };
13904
- VirtualTreeFreezeHdrRenderer.prototype.rfshMovable = function () {
13905
- _super.prototype.rfshMovable.call(this);
13906
- };
13907
- return VirtualTreeFreezeHdrRenderer;
13908
- }(VirtualFreezeHdrRenderer));
13909
-
13910
13809
  /**
13911
13810
  * TreeGrid Freeze module
13912
13811
  *
@@ -13927,7 +13826,6 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
13927
13826
  this.parent.on('rowExpandCollapse', this.rowExpandCollapse, this);
13928
13827
  this.parent.on('dataBoundArg', this.dataBoundArg, this);
13929
13828
  this.parent.grid.on('dblclick', this.dblClickHandler, this);
13930
- this.parent.grid.on('initial-load', this.instantiateRenderer, this);
13931
13829
  };
13932
13830
  Freeze$$1.prototype.removeEventListener = function () {
13933
13831
  if (this.parent.isDestroyed) {
@@ -13936,46 +13834,16 @@ var Freeze$1 = /** @__PURE__ @class */ (function () {
13936
13834
  this.parent.off('rowExpandCollapse', this.rowExpandCollapse);
13937
13835
  this.parent.off('dataBoundArg', this.dataBoundArg);
13938
13836
  this.parent.grid.off('dblclick', this.dblClickHandler);
13939
- this.parent.grid.off('initial-load', this.instantiateRenderer);
13940
- };
13941
- Freeze$$1.prototype.instantiateRenderer = function () {
13942
- var renderer = getValue('serviceLocator', this.parent.grid).getService('rendererFactory');
13943
- if (this.parent.getFrozenColumns()) {
13944
- if (this.parent.enableColumnVirtualization) {
13945
- getValue('addRenderer', renderer)
13946
- .apply(renderer, [RenderType.Header, new VirtualTreeFreezeHdrRenderer(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
13947
- }
13948
- else {
13949
- getValue('addRenderer', renderer)
13950
- .apply(renderer, [RenderType.Header, new FreezeRender(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
13951
- }
13952
- if (this.parent.enableVirtualization) {
13953
- getValue('addRenderer', renderer)
13954
- .apply(renderer, [RenderType.Content, new VirtualTreeFreezeRenderer(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
13955
- }
13956
- }
13957
- if (this.parent.getFrozenLeftColumnsCount() || this.parent.getFrozenRightColumnsCount()) {
13958
- getValue('addRenderer', renderer)
13959
- .apply(renderer, [RenderType.Header, new ColumnFreezeHeaderRenderer(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
13960
- if (this.parent.enableVirtualization) {
13961
- getValue('addRenderer', renderer)
13962
- .apply(renderer, [RenderType.Content, new ColumnVirtualTreeFreezeRenderer(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
13963
- }
13964
- else {
13965
- getValue('addRenderer', renderer)
13966
- .apply(renderer, [RenderType.Content, new ColumnFreezeContentRenderer(getValue('grid', this.parent), getValue('serviceLocator', this.parent.grid))]);
13967
- }
13968
- }
13969
13837
  };
13970
13838
  Freeze$$1.prototype.rowExpandCollapse = function (args) {
13971
- var movableRows = this.parent.getMovableDataRows();
13839
+ var movableRows = this.parent.getDataRows();
13972
13840
  var frozenrows = this.parent.getRows();
13973
13841
  var rows;
13974
13842
  var frozenRightRows;
13975
13843
  var freeze = (this.parent.getFrozenLeftColumnsCount() > 0 ||
13976
13844
  this.parent.getFrozenRightColumnsCount() > 0) ? true : false;
13977
13845
  if (freeze) {
13978
- frozenRightRows = this.parent.getFrozenRightRows().filter(function (e) {
13846
+ frozenRightRows = this.parent.getRows().filter(function (e) {
13979
13847
  return e.querySelector('.e-gridrowindex' + args.record.index + 'level' + (args.record.level + 1));
13980
13848
  });
13981
13849
  }
@@ -14186,7 +14054,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14186
14054
  var updateIndex = 'updateIndex';
14187
14055
  this.parent.editModule["" + updateIndex](this.parent.grid.dataSource, this.parent.getRows(), this.parent.getCurrentViewRecords());
14188
14056
  if (this.parent.getFrozenColumns()) {
14189
- this.parent.editModule["" + updateIndex](this.parent.grid.dataSource, this.parent.getMovableDataRows(), this.parent.getCurrentViewRecords());
14057
+ this.parent.editModule["" + updateIndex](this.parent.grid.dataSource, this.parent.getDataRows(), this.parent.getCurrentViewRecords());
14190
14058
  }
14191
14059
  }
14192
14060
  };
@@ -14307,8 +14175,8 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14307
14175
  var keyField = this.parent.grid.getPrimaryKeyFieldNames()[0];
14308
14176
  this.removeRows(rowElms, rows, data, keyField, true);
14309
14177
  if (this.parent.getFrozenColumns() > 0) {
14310
- var mRows = this.parent.grid.getMovableRowsObject();
14311
- var mRowElms = this.parent.grid.getMovableRows();
14178
+ var mRows = this.parent.grid.getRowsObject();
14179
+ var mRowElms = this.parent.grid.getRows();
14312
14180
  this.removeRows(mRowElms, mRows, data, keyField);
14313
14181
  }
14314
14182
  }
@@ -14354,23 +14222,23 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
14354
14222
  var rowRenderer = new RowRenderer(serviceLocator, null, this.parent.grid);
14355
14223
  var tbody;
14356
14224
  var currentData = this.parent.getCurrentViewRecords();
14357
- var currentRows = eventArgs.isMovable ? this.parent.grid.getMovableRows()
14225
+ var currentRows = eventArgs.isMovable ? this.parent.grid.getRows()
14358
14226
  : this.parent.grid.getDataRows();
14359
14227
  if (eventArgs.isFrozenRight) {
14360
14228
  tbody = this.parent.element.querySelector('.e-frozen-right-content').querySelector('tbody');
14361
14229
  }
14362
14230
  else {
14363
14231
  tbody = !this.parent.grid.isFrozenGrid() ? this.parent.getContent().querySelector('tbody') : eventArgs.isMovable
14364
- ? this.parent.grid.getMovableVirtualContent().querySelector('tbody')
14365
- : this.parent.grid.getFrozenVirtualContent().querySelector('tbody');
14232
+ ? this.parent.grid.getContent().querySelector('tbody')
14233
+ : this.parent.grid.getContent().querySelector('tbody');
14366
14234
  }
14367
14235
  if (this.parent.frozenRows) {
14368
14236
  tbody = eventArgs.isFrozenRows && this.parent.grid.infiniteScrollModule.requestType !== 'add'
14369
14237
  || !eventArgs.isFrozenRows && this.parent.grid.infiniteScrollModule.requestType === 'add'
14370
14238
  ? !this.parent.grid.isFrozenGrid() ? this.parent.getHeaderContent().querySelector('tbody')
14371
- : eventArgs.isMovable ? this.parent.grid.getMovableVirtualHeader().querySelector('tbody')
14239
+ : eventArgs.isMovable ? this.parent.grid.getHeaderContent().querySelector('tbody')
14372
14240
  : eventArgs.isFrozenRight ? this.parent.element.querySelector('.e-frozen-right-header').querySelector('tbody')
14373
- : this.parent.grid.getFrozenVirtualHeader().querySelector('tbody') : tbody;
14241
+ : this.parent.grid.getHeaderContent().querySelector('tbody') : tbody;
14374
14242
  }
14375
14243
  var position;
14376
14244
  var addRowIndex = 'addRowIndex';