@syncfusion/ej2-treegrid 30.1.37 → 30.2.4
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/aceconfig.js +17 -0
- 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 +10 -3
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +10 -3
- 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 +5 -5
- package/src/treegrid/actions/excel-export.js +1 -1
- package/src/treegrid/actions/selection.js +7 -0
- package/src/treegrid/base/treegrid.js +1 -1
- package/src/treegrid/renderer/virtual-tree-content-render.js +1 -1
|
@@ -1473,6 +1473,13 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
1473
1473
|
this.headerSelection();
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
1476
|
+
else {
|
|
1477
|
+
if ((requestType === 'filtering' || requestType === 'searching' || requestType === 'refresh')
|
|
1478
|
+
&& !isRemoteData(this.parent)) {
|
|
1479
|
+
this.selectedItems = [];
|
|
1480
|
+
this.selectedIndexes = [];
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1476
1483
|
}
|
|
1477
1484
|
};
|
|
1478
1485
|
Selection.prototype.getCheckedrecords = function () {
|
|
@@ -5909,7 +5916,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5909
5916
|
var checkedTarget = this.grid.getHeaderContent().querySelector('.e-checkselectall');
|
|
5910
5917
|
var checkedLen = this.grid.getSelectedRowIndexes().length;
|
|
5911
5918
|
var totalRecords = this.getCurrentViewRecords().length;
|
|
5912
|
-
if (checkedLen === totalRecords) {
|
|
5919
|
+
if (totalRecords > 0 && checkedLen === totalRecords) {
|
|
5913
5920
|
var spanEle = checkedTarget.nextElementSibling;
|
|
5914
5921
|
removeClass([spanEle], ['e-stop', 'e-uncheck']);
|
|
5915
5922
|
addClass([spanEle], ['e-check']);
|
|
@@ -11064,7 +11071,7 @@ var ExcelExport = /** @__PURE__ @class */ (function () {
|
|
|
11064
11071
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
11065
11072
|
}
|
|
11066
11073
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
11067
|
-
if (!isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
|
|
11074
|
+
if (!this.isLocal() && !isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
|
|
11068
11075
|
return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
|
|
11069
11076
|
}
|
|
11070
11077
|
if (excelExportProperties.exportType === 'CurrentPage') {
|
|
@@ -14947,7 +14954,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
14947
14954
|
&& !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== ''))) {
|
|
14948
14955
|
var viewInfo = this.currentInfo = getValue('getInfoFromView', this).apply(this, [scrollArgs.direction, info, scrollArgs.offset]);
|
|
14949
14956
|
this.previousInfo = viewInfo;
|
|
14950
|
-
if (this.prevInfo && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
|
|
14957
|
+
if (this.prevInfo && (isRemoteData(this.parent.root) && viewInfo.event !== 'model-changed') && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
|
|
14951
14958
|
|| ((info.axis === 'X' && this.prevInfo.columnIndexes.toString() === viewInfo.columnIndexes.toString())
|
|
14952
14959
|
|| (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
|
|
14953
14960
|
&& this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
|