@syncfusion/ej2-treegrid 24.2.8 → 24.2.9
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 +8 -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 +23 -8
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +26 -11
- 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 +7 -7
- package/src/treegrid/base/treegrid.js +10 -5
- package/src/treegrid/renderer/render.js +16 -6
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.9
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-treegrid@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-treegrid@24.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@24.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-FszUjBBJdywxw3DyIgp+wHsJ93z8G+CKd9f0VUaqkeySW/yRRtKVBGB0RJ7snJaMyc/uxIApPaAtY5CquNdLfw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-treegrid",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"/@syncfusion/ej2-react-treegrid",
|
|
25
25
|
"/@syncfusion/ej2-vue-treegrid"
|
|
26
26
|
],
|
|
27
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-24.2.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-24.2.8.tgz",
|
|
28
|
+
"_shasum": "bfa805b7271215c1d2d53c303953de8b7186e779",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@syncfusion/ej2-base": "~24.2.7",
|
|
40
40
|
"@syncfusion/ej2-data": "~24.2.3",
|
|
41
|
-
"@syncfusion/ej2-grids": "~24.2.
|
|
42
|
-
"@syncfusion/ej2-popups": "~24.2.
|
|
41
|
+
"@syncfusion/ej2-grids": "~24.2.9",
|
|
42
|
+
"@syncfusion/ej2-popups": "~24.2.9"
|
|
43
43
|
},
|
|
44
44
|
"deprecated": false,
|
|
45
45
|
"description": "Essential JS 2 TreeGrid Component",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"url": "git+https://github.com/syncfusion/ej2-treegrid.git"
|
|
67
67
|
},
|
|
68
68
|
"typings": "index.d.ts",
|
|
69
|
-
"version": "24.2.
|
|
69
|
+
"version": "24.2.9",
|
|
70
70
|
"sideEffects": false
|
|
71
71
|
}
|
|
@@ -3104,11 +3104,16 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3104
3104
|
this.expandCollapseAll('collapse');
|
|
3105
3105
|
};
|
|
3106
3106
|
TreeGrid.prototype.expandCollapseAll = function (action) {
|
|
3107
|
-
var rows
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3107
|
+
var rows;
|
|
3108
|
+
if (this.rowTemplate) {
|
|
3109
|
+
rows = [].slice.call(this.grid.getContentTable().querySelectorAll('tr')).filter(function (e) {
|
|
3110
|
+
return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
|
|
3111
|
+
});
|
|
3112
|
+
}
|
|
3113
|
+
else {
|
|
3114
|
+
rows = this.getRows().filter(function (e) {
|
|
3115
|
+
return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
|
|
3116
|
+
});
|
|
3112
3117
|
}
|
|
3113
3118
|
this.isExpandAll = true;
|
|
3114
3119
|
this.isCollapseAll = true;
|
|
@@ -257,11 +257,21 @@ var Render = /** @class */ (function () {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
this.parent['args'] = args;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
var columnModel = getValue('columnModel', this.parent);
|
|
261
|
+
var treeColumn = columnModel[this.parent.treeColumnIndex];
|
|
262
|
+
if ((isNullOrUndefined(this.parent.rowTemplate) && !(this.parent.isReact))) {
|
|
263
263
|
this.parent.trigger(events.queryCellInfo, args);
|
|
264
264
|
}
|
|
265
|
+
else if (((this.parent.isReact) &&
|
|
266
|
+
treeColumn.field !== args.column.field)) {
|
|
267
|
+
var renderReactTemplates = 'renderReactTemplates';
|
|
268
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
269
|
+
var thisRef_2 = this;
|
|
270
|
+
// tslint:disable-next-line:typedef
|
|
271
|
+
thisRef_2.parent["" + renderReactTemplates](function () {
|
|
272
|
+
thisRef_2.parent.trigger(events.queryCellInfo, args);
|
|
273
|
+
});
|
|
274
|
+
}
|
|
265
275
|
};
|
|
266
276
|
Render.prototype.updateTreeCell = function (args, cellElement) {
|
|
267
277
|
var columnModel = getValue('columnModel', this.parent);
|
|
@@ -297,10 +307,10 @@ var Render = /** @class */ (function () {
|
|
|
297
307
|
}
|
|
298
308
|
this.parent.notify('renderReactTemplate', this.parent["" + portals]);
|
|
299
309
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
300
|
-
var
|
|
310
|
+
var thisRef_3 = this;
|
|
301
311
|
// tslint:disable-next-line:typedef
|
|
302
|
-
|
|
303
|
-
|
|
312
|
+
thisRef_3.parent["" + renderReactTemplates](function () {
|
|
313
|
+
thisRef_3.parent.trigger(events.queryCellInfo, args);
|
|
304
314
|
});
|
|
305
315
|
}
|
|
306
316
|
else {
|