@syncfusion/ej2-treegrid 25.1.38 → 25.1.41
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.
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/dist/ej2-treegrid.min.js +10 -1
- package/dist/ej2-treegrid.umd.min.js +10 -1
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +18 -18
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +18 -18
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +10 -1
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +70 -70
- package/src/treegrid/actions/excel-export.js +1 -1
- package/src/treegrid/actions/virtual-scroll.js +5 -5
- package/src/treegrid/base/treegrid-model.d.ts +32 -32
- package/src/treegrid/base/treegrid.d.ts +43 -43
- package/src/treegrid/base/treegrid.js +13 -13
- package/src/treegrid/renderer/render.js +2 -1
- package/src/treegrid/renderer/virtual-row-model-generator.js +2 -1
- package/src/treegrid/renderer/virtual-tree-content-render.js +6 -8
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/treegrid/material3-dark.scss +1 -1
- package/styles/treegrid/material3.scss +1 -1
|
@@ -1834,7 +1834,8 @@ class Render {
|
|
|
1834
1834
|
const cellIndex = this.parent.grid.getNormalizedColumnIndex(columnUid);
|
|
1835
1835
|
if (rows.length !== 0) {
|
|
1836
1836
|
for (let j = 0; j < rowsObj.length; j++) {
|
|
1837
|
-
if (rowsObj[parseInt(j.toString(), 10)].isDataRow
|
|
1837
|
+
if (rowsObj[parseInt(j.toString(), 10)].isDataRow
|
|
1838
|
+
&& !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
|
|
1838
1839
|
const cell = rowsObj[parseInt(j.toString(), 10)][`${cells}`][parseInt(cellIndex.toString(), 10)];
|
|
1839
1840
|
const cellRenderer = new CellRenderer(this.parent.grid, this.parent.grid.serviceLocator);
|
|
1840
1841
|
const td = this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
|
|
@@ -6862,7 +6863,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6862
6863
|
}
|
|
6863
6864
|
}
|
|
6864
6865
|
collapseRemoteChild(rowDetails, isChild) {
|
|
6865
|
-
if (!isChild) {
|
|
6866
|
+
if (!isNullOrUndefined(isChild) && !isChild && !this.loadChildOnDemand) {
|
|
6866
6867
|
rowDetails.record.expanded = false;
|
|
6867
6868
|
}
|
|
6868
6869
|
const rows = rowDetails.rows;
|
|
@@ -7525,7 +7526,7 @@ __decorate([
|
|
|
7525
7526
|
Property(false)
|
|
7526
7527
|
], TreeGrid.prototype, "enableColumnVirtualization", void 0);
|
|
7527
7528
|
__decorate([
|
|
7528
|
-
Property(
|
|
7529
|
+
Property(false)
|
|
7529
7530
|
], TreeGrid.prototype, "enableHtmlSanitizer", void 0);
|
|
7530
7531
|
__decorate([
|
|
7531
7532
|
Property(false)
|
|
@@ -9312,7 +9313,8 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
9312
9313
|
const rows = super.generateRows(data, notifyArgs);
|
|
9313
9314
|
if (!isNullOrUndefined((this.visualData))) {
|
|
9314
9315
|
for (let r = 0; r < rows.length; r++) {
|
|
9315
|
-
rows[parseInt(r.toString(), 10)].index =
|
|
9316
|
+
rows[parseInt(r.toString(), 10)].index =
|
|
9317
|
+
(this.visualData).indexOf(rows[parseInt(r.toString(), 10)].data);
|
|
9316
9318
|
}
|
|
9317
9319
|
}
|
|
9318
9320
|
return rows;
|
|
@@ -9716,7 +9718,7 @@ class ExcelExport$1 {
|
|
|
9716
9718
|
if (!this.isLocal()) {
|
|
9717
9719
|
this.parent.flatData = [];
|
|
9718
9720
|
}
|
|
9719
|
-
if (property && property.dataSource
|
|
9721
|
+
if (property && property.dataSource) {
|
|
9720
9722
|
const flatsData = this.parent.flatData;
|
|
9721
9723
|
const dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
|
|
9722
9724
|
this.parent.dataModule.convertToFlatData(dataSrc);
|
|
@@ -12802,7 +12804,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
12802
12804
|
dataBoundEvent() {
|
|
12803
12805
|
const dataBoundEve = 'dataBound';
|
|
12804
12806
|
const initialRowTop = 'initialRowTop';
|
|
12805
|
-
if (
|
|
12807
|
+
if (this.parent.getRows().length && !isNullOrUndefined(this.parent.getRowByIndex(0)) && !this[`${initialRowTop}`]) {
|
|
12806
12808
|
const rowTop = this.parent.getRowByIndex(0).getBoundingClientRect().top;
|
|
12807
12809
|
const gridTop = this.parent.element.getBoundingClientRect().top;
|
|
12808
12810
|
if (rowTop > 0) {
|
|
@@ -13025,13 +13027,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13025
13027
|
firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('data-rowindex');
|
|
13026
13028
|
}
|
|
13027
13029
|
if (firsttdinx === 0) {
|
|
13028
|
-
scrollArgs.offset.top
|
|
13029
|
-
|
|
13030
|
-
this.translateY = scrollArgs.offset.top - rowHeight * 2;
|
|
13031
|
-
}
|
|
13032
|
-
else {
|
|
13033
|
-
this.translateY = scrollArgs.offset.top;
|
|
13034
|
-
}
|
|
13030
|
+
this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
|
|
13031
|
+
scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + 10 : 0;
|
|
13035
13032
|
}
|
|
13036
13033
|
else {
|
|
13037
13034
|
this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
|
|
@@ -13085,6 +13082,9 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
13085
13082
|
this.previousInfo = viewInfo;
|
|
13086
13083
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
13087
13084
|
const page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
|
|
13085
|
+
if (downScroll && this.endIndex === this.totalRecords && viewInfo.loadNext) {
|
|
13086
|
+
viewInfo.loadNext = false;
|
|
13087
|
+
}
|
|
13088
13088
|
this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
|
|
13089
13089
|
this.requestType = 'virtualscroll';
|
|
13090
13090
|
if (scrollArgs.direction !== 'right' && scrollArgs.direction !== 'left') {
|
|
@@ -13386,14 +13386,14 @@ class VirtualScroll$1 {
|
|
|
13386
13386
|
}
|
|
13387
13387
|
if ((requestType === 'save' && pageingDetails.actionArgs.index >= (counts.count - this.parent.grid.pageSettings.pageSize)) || (requestType === 'refresh' && this.parent['isGantt'] && this.parent['isAddedFromGantt'])) {
|
|
13388
13388
|
const modifiedStartIndex = counts.startIndex + (counts.count - counts.endIndex);
|
|
13389
|
-
if (counts.
|
|
13390
|
-
startIndex = counts.startIndex;
|
|
13391
|
-
endIndex = counts.endIndex;
|
|
13392
|
-
}
|
|
13393
|
-
else {
|
|
13389
|
+
if (counts.count - counts.startIndex <= this.parent.grid.pageSettings.pageSize) {
|
|
13394
13390
|
startIndex = modifiedStartIndex;
|
|
13395
13391
|
endIndex = counts.count;
|
|
13396
13392
|
}
|
|
13393
|
+
else {
|
|
13394
|
+
startIndex = counts.startIndex;
|
|
13395
|
+
endIndex = counts.endIndex;
|
|
13396
|
+
}
|
|
13397
13397
|
this.parent['isAddedFromGantt'] = false;
|
|
13398
13398
|
}
|
|
13399
13399
|
//if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
|