@syncfusion/ej2-treegrid 20.4.42 → 20.4.48
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 +16 -1
- package/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +27 -15
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +26 -14
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/treegrid/base/data.js +4 -4
- package/src/treegrid/base/treegrid-model.d.ts +1 -1
- package/src/treegrid/base/treegrid.js +21 -9
- package/src/treegrid/models/loading-indicator-model.d.ts +2 -1
- package/src/treegrid/models/loading-indicator.d.ts +1 -0
- package/src/treegrid/renderer/render.js +1 -1
|
@@ -1853,7 +1853,7 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
1853
1853
|
var portals = 'portals';
|
|
1854
1854
|
var renderReactTemplates = 'renderReactTemplates';
|
|
1855
1855
|
if (this.parent.isReact && typeof (args.column.template) !== 'string') {
|
|
1856
|
-
args.column["" + templateFn](args.data, this.parent, '
|
|
1856
|
+
args.column["" + templateFn](args.data, this.parent, 'columnTemplate', tempID, null, null, cellElement);
|
|
1857
1857
|
if (isNullOrUndefined(this.parent.grid["" + portals])) {
|
|
1858
1858
|
this.parent.grid["" + portals] = this.parent["" + portals];
|
|
1859
1859
|
}
|
|
@@ -2196,7 +2196,7 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2196
2196
|
&& this.parent.grid.aggregates.length && this.parent.grid.sortSettings.columns.length === 0
|
|
2197
2197
|
&& this.parent.grid.filterSettings.columns.length === 0 && !this.parent.grid.searchSettings.key.length) {
|
|
2198
2198
|
var query = 'query';
|
|
2199
|
-
var summaryQuery = args["" + query].queries.filter(function (q) { q.fn === 'onAggregates'; });
|
|
2199
|
+
var summaryQuery = args["" + query].queries.filter(function (q) { return q.fn === 'onAggregates'; });
|
|
2200
2200
|
args.result = this.parent.summaryModule.calculateSummaryValue(summaryQuery, this.parent.flatData, true);
|
|
2201
2201
|
}
|
|
2202
2202
|
this.parent.notify('updateResults', args);
|
|
@@ -2263,9 +2263,9 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2263
2263
|
qry.isCountRequired = true;
|
|
2264
2264
|
if (this.parent.enableVirtualization && rowDetails.action === 'remoteExpand') {
|
|
2265
2265
|
qry.take(this.parent.pageSettings.pageSize);
|
|
2266
|
-
var
|
|
2267
|
-
|
|
2268
|
-
qry.expand(
|
|
2266
|
+
var expandDetail = [];
|
|
2267
|
+
expandDetail.push('ExpandingAction', rowDetails.record[this.parent.idMapping]);
|
|
2268
|
+
qry.expand(expandDetail);
|
|
2269
2269
|
}
|
|
2270
2270
|
else if (this.parent.enableVirtualization && rowDetails.action === 'collapse') {
|
|
2271
2271
|
qry.take(this.parent.grid.pageSettings.pageSize);
|
|
@@ -4918,7 +4918,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4918
4918
|
}
|
|
4919
4919
|
var treeGridColumn;
|
|
4920
4920
|
var gridColumn;
|
|
4921
|
-
if (this.columnModel.length
|
|
4921
|
+
if (this.columnModel.length === 0) {
|
|
4922
4922
|
index = index === 0 ? -1 : index;
|
|
4923
4923
|
}
|
|
4924
4924
|
var gridColumnCollection = [];
|
|
@@ -6420,6 +6420,14 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6420
6420
|
if ((!isCountRequired(this) || childRecords.length) || action === 'collapse') {
|
|
6421
6421
|
this.localExpand(action, row, record);
|
|
6422
6422
|
}
|
|
6423
|
+
var lastrowIdx = this.getVisibleRecords()[this.getVisibleRecords().length - 1]['index'];
|
|
6424
|
+
var lastRow = this.getRowByIndex(lastrowIdx);
|
|
6425
|
+
if (this.grid.getContentTable().clientHeight <= this.grid.getContent().clientHeight && !isNullOrUndefined(lastRow) && !lastRow.cells[0].classList.contains('e-lastrowcell')) {
|
|
6426
|
+
this.lastRowBorder(lastRow, true);
|
|
6427
|
+
}
|
|
6428
|
+
}
|
|
6429
|
+
if (isCountRequired(this) && action === 'expand') {
|
|
6430
|
+
this.dataResults.result = this.getCurrentViewRecords();
|
|
6423
6431
|
}
|
|
6424
6432
|
if (!isNullOrUndefined(targetEle) && targetEle.closest('.e-treerowcell').classList.contains('e-cellselectionbackground')) {
|
|
6425
6433
|
targetEle.closest('.e-treerowcell').classList.remove('e-cellselectionbackground');
|
|
@@ -6612,8 +6620,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6612
6620
|
return e.uniqueID === record.uniqueID;
|
|
6613
6621
|
});
|
|
6614
6622
|
var currentIndex = currentViewData.indexOf(currentRecord[0]);
|
|
6615
|
-
if (!isNullOrUndefined(gridRowsObject[currentIndex
|
|
6616
|
-
gridRowsObject[currentIndex].visible
|
|
6623
|
+
if (!isNullOrUndefined(gridRowsObject[parseInt(currentIndex.toString(), 10)].visible) &&
|
|
6624
|
+
gridRowsObject[parseInt(currentIndex.toString(), 10)].visible !== false) {
|
|
6625
|
+
gridRowsObject[parseInt(currentIndex.toString(), 10)].visible = true;
|
|
6617
6626
|
}
|
|
6618
6627
|
var detailrows = gridRows.filter(function (r) {
|
|
6619
6628
|
return r.classList.contains('e-griddetailrowindex' + record.index + 'level' + (record.level + 1));
|
|
@@ -6622,13 +6631,14 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6622
6631
|
if (!isNullOrUndefined(rows[parseInt(i.toString(), 10)])) {
|
|
6623
6632
|
rows[parseInt(i.toString(), 10)].style.display = displayAction;
|
|
6624
6633
|
}
|
|
6625
|
-
if (!isNullOrUndefined(rows[parseInt(i.toString(), 10)]) && !this.allowPaging && !(this.enableVirtualization
|
|
6626
|
-
|
|
6634
|
+
if (!isNullOrUndefined(rows[parseInt(i.toString(), 10)]) && !this.allowPaging && !(this.enableVirtualization
|
|
6635
|
+
|| this.enableInfiniteScrolling || isRemoteData(this) || isCountRequired(this))) {
|
|
6636
|
+
gridRowsObject[rows[parseInt(i.toString(), 10)].rowIndex].visible = displayAction !== 'none' ? true : false;
|
|
6627
6637
|
var parentRecord = currentViewData.filter(function (e) {
|
|
6628
6638
|
return e.uniqueID === currentRecord[0].parentUniqueID;
|
|
6629
6639
|
});
|
|
6630
6640
|
if (!isNullOrUndefined(parentRecord[0]) && gridRows[currentViewData.indexOf(parentRecord[0])].getElementsByClassName('e-treegridcollapse').length) {
|
|
6631
|
-
gridRowsObject[currentIndex].visible = false;
|
|
6641
|
+
gridRowsObject[parseInt(currentIndex.toString(), 10)].visible = false;
|
|
6632
6642
|
}
|
|
6633
6643
|
}
|
|
6634
6644
|
if (!isNullOrUndefined(movableRows)) {
|
|
@@ -6647,12 +6657,14 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6647
6657
|
}
|
|
6648
6658
|
}
|
|
6649
6659
|
for (var i = 0; i < detailrows.length; i++) {
|
|
6650
|
-
if (!isNullOrUndefined(detailrows[parseInt(i.toString(), 10)]) && !this.allowPaging && !(this.enableVirtualization
|
|
6651
|
-
|
|
6660
|
+
if (!isNullOrUndefined(detailrows[parseInt(i.toString(), 10)]) && !this.allowPaging && !(this.enableVirtualization
|
|
6661
|
+
|| this.enableInfiniteScrolling || isRemoteData(this) || isCountRequired(this))) {
|
|
6662
|
+
gridRowsObject[detailrows[parseInt(i.toString(), 10)].rowIndex].visible = displayAction !== 'none' ? true : false;
|
|
6652
6663
|
detailrows[parseInt(i.toString(), 10)].style.display = displayAction;
|
|
6653
6664
|
}
|
|
6654
6665
|
}
|
|
6655
|
-
if (!this.allowPaging && !(this.enableVirtualization || this.enableInfiniteScrolling || isRemoteData(this)
|
|
6666
|
+
if (!this.allowPaging && !(this.enableVirtualization || this.enableInfiniteScrolling || isRemoteData(this)
|
|
6667
|
+
|| isCountRequired(this))) {
|
|
6656
6668
|
this.grid.notify('refresh-Expand-and-Collapse', { rows: this.grid.getRowsObject() });
|
|
6657
6669
|
}
|
|
6658
6670
|
};
|