@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 30.
|
|
3
|
+
* version : 30.2.4
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-treegrid",
|
|
3
|
-
"version": "30.
|
|
3
|
+
"version": "30.2.4",
|
|
4
4
|
"description": "Essential JS 2 TreeGrid Component",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"es2015": "./dist/es6/ej2-treegrid.es5.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@syncfusion/ej2-base": "~30.
|
|
12
|
-
"@syncfusion/ej2-data": "~30.
|
|
13
|
-
"@syncfusion/ej2-grids": "~30.
|
|
14
|
-
"@syncfusion/ej2-popups": "~30.
|
|
11
|
+
"@syncfusion/ej2-base": "~30.2.4",
|
|
12
|
+
"@syncfusion/ej2-data": "~30.2.4",
|
|
13
|
+
"@syncfusion/ej2-grids": "~30.2.4",
|
|
14
|
+
"@syncfusion/ej2-popups": "~30.2.4"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
17
17
|
"keywords": [
|
|
@@ -79,7 +79,7 @@ var ExcelExport = /** @class */ (function () {
|
|
|
79
79
|
this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
|
|
80
80
|
}
|
|
81
81
|
if (!isNullOrUndefined(excelExportProperties)) {
|
|
82
|
-
if (!isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
|
|
82
|
+
if (!this.isLocal() && !isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
|
|
83
83
|
return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
|
|
84
84
|
}
|
|
85
85
|
if (excelExportProperties.exportType === 'CurrentPage') {
|
|
@@ -508,6 +508,13 @@ var Selection = /** @class */ (function () {
|
|
|
508
508
|
this.headerSelection();
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
|
+
else {
|
|
512
|
+
if ((requestType === 'filtering' || requestType === 'searching' || requestType === 'refresh')
|
|
513
|
+
&& !isRemoteData(this.parent)) {
|
|
514
|
+
this.selectedItems = [];
|
|
515
|
+
this.selectedIndexes = [];
|
|
516
|
+
}
|
|
517
|
+
}
|
|
511
518
|
}
|
|
512
519
|
};
|
|
513
520
|
Selection.prototype.getCheckedrecords = function () {
|
|
@@ -2214,7 +2214,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2214
2214
|
var checkedTarget = this.grid.getHeaderContent().querySelector('.e-checkselectall');
|
|
2215
2215
|
var checkedLen = this.grid.getSelectedRowIndexes().length;
|
|
2216
2216
|
var totalRecords = this.getCurrentViewRecords().length;
|
|
2217
|
-
if (checkedLen === totalRecords) {
|
|
2217
|
+
if (totalRecords > 0 && checkedLen === totalRecords) {
|
|
2218
2218
|
var spanEle = checkedTarget.nextElementSibling;
|
|
2219
2219
|
removeClass([spanEle], ['e-stop', 'e-uncheck']);
|
|
2220
2220
|
addClass([spanEle], ['e-check']);
|
|
@@ -804,7 +804,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
804
804
|
&& !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== ''))) {
|
|
805
805
|
var viewInfo = this.currentInfo = getValue('getInfoFromView', this).apply(this, [scrollArgs.direction, info, scrollArgs.offset]);
|
|
806
806
|
this.previousInfo = viewInfo;
|
|
807
|
-
if (this.prevInfo && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
|
|
807
|
+
if (this.prevInfo && (isRemoteData(this.parent.root) && viewInfo.event !== 'model-changed') && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
|
|
808
808
|
|| ((info.axis === 'X' && this.prevInfo.columnIndexes.toString() === viewInfo.columnIndexes.toString())
|
|
809
809
|
|| (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
|
|
810
810
|
&& this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
|