@syncfusion/ej2-treegrid 32.1.19 → 32.1.21
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/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 +4 -3
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +4 -3
- 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 +2 -2
- package/src/treegrid/base/treegrid.js +2 -2
- package/src/treegrid/renderer/virtual-tree-content-render.js +2 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 32.1.21
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
1
10
|
import * as _treegrid from '@syncfusion/ej2-treegrid';
|
|
2
11
|
|
|
3
12
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-treegrid",
|
|
3
|
-
"version": "32.1.
|
|
3
|
+
"version": "32.1.21",
|
|
4
4
|
"description": "Essential JS 2 TreeGrid Component",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@syncfusion/ej2-base": "~32.1.19",
|
|
12
12
|
"@syncfusion/ej2-data": "~32.1.19",
|
|
13
|
-
"@syncfusion/ej2-grids": "~32.1.
|
|
13
|
+
"@syncfusion/ej2-grids": "~32.1.21",
|
|
14
14
|
"@syncfusion/ej2-popups": "~32.1.19"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {},
|
|
@@ -907,7 +907,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
907
907
|
if (RecordsCount === 0 && this.columns.length === 0) {
|
|
908
908
|
failureCases.push('Either of the Data source or columns should be given.');
|
|
909
909
|
}
|
|
910
|
-
if (this.frozenColumns > 0 && this.columnModel.filter(function (col) { return col.isFrozen; })) {
|
|
910
|
+
if (this.frozenColumns > 0 && this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0) {
|
|
911
911
|
failureCases.push('Use only one attribute for Frozen either IsFrozen or FrozenColumns.');
|
|
912
912
|
}
|
|
913
913
|
if (this.enableVirtualization && !isNullOrUndefined(this.detailTemplate)) {
|
|
@@ -917,7 +917,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
917
917
|
&& (!isNullOrUndefined(this.detailTemplate) || !isNullOrUndefined(this.rowTemplate))) {
|
|
918
918
|
failureCases.push('Frozen rows and columns are not supported with the Detail template and row template.');
|
|
919
919
|
}
|
|
920
|
-
if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0 || this.frozenRows > 0) && this.editSettings.mode === 'Cell') {
|
|
920
|
+
if ((this.frozenColumns > 0 || this.columnModel.filter(function (col) { return col.isFrozen; }).length > 0 || this.frozenRows > 0) && this.editSettings.allowEditing && this.editSettings.mode === 'Cell') {
|
|
921
921
|
failureCases.push('Frozen rows and columns are not supported with cell editing.');
|
|
922
922
|
}
|
|
923
923
|
if (this.allowSelection && !isNullOrUndefined(this.rowTemplate)) {
|
|
@@ -84,7 +84,8 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
84
84
|
*/
|
|
85
85
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
86
86
|
VirtualTreeContentRenderer.prototype.getRowCollection = function (index, isMovable, isRowObject, isFrozenRight) {
|
|
87
|
-
var
|
|
87
|
+
var rows = this.parent.getRows();
|
|
88
|
+
var startIdx = rows.length > 0 ? parseInt(rows[0].getAttribute(literals.ariaRowIndex), 10) - 1 : 0;
|
|
88
89
|
var rowCollection = this.parent.getDataRows();
|
|
89
90
|
var collection = isRowObject ? this.parent.getCurrentViewRecords() : rowCollection;
|
|
90
91
|
var selectedRow = collection[index - startIdx];
|