@syncfusion/ej2-treegrid 20.3.58 → 20.3.60
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 +33 -8
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +35 -8
- 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 +8 -8
- package/src/treegrid/actions/selection.js +3 -3
- package/src/treegrid/base/treegrid.js +30 -3
- package/src/treegrid/renderer/render.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 : 20.3.
|
|
3
|
+
* version : 20.3.60
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@20.3.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@20.3.58",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-iDfaMXRuBHOpBp3zDL6cZm71E8IAU7cssCK9y4Zth7TIBwoN67TQbVSqO59cj+6dcII5fGTe2buOY98chHYm5Q==",
|
|
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.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.3.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.3.58.tgz",
|
|
28
|
+
"_shasum": "212d2849066360a08e9f0d66461fa6d5030c93a4",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@syncfusion/ej2-base": "~20.3.56",
|
|
40
|
-
"@syncfusion/ej2-data": "~20.3.
|
|
41
|
-
"@syncfusion/ej2-grids": "~20.3.
|
|
42
|
-
"@syncfusion/ej2-popups": "~20.3.
|
|
40
|
+
"@syncfusion/ej2-data": "~20.3.60",
|
|
41
|
+
"@syncfusion/ej2-grids": "~20.3.60",
|
|
42
|
+
"@syncfusion/ej2-popups": "~20.3.60"
|
|
43
43
|
},
|
|
44
44
|
"deprecated": false,
|
|
45
45
|
"description": "Essential JS 2 TreeGrid Component",
|
|
@@ -60,6 +60,6 @@
|
|
|
60
60
|
"url": "git+https://github.com/syncfusion/ej2-treegrid.git"
|
|
61
61
|
},
|
|
62
62
|
"typings": "index.d.ts",
|
|
63
|
-
"version": "20.3.
|
|
63
|
+
"version": "20.3.60",
|
|
64
64
|
"sideEffects": false
|
|
65
65
|
}
|
|
@@ -411,9 +411,9 @@ var Selection = /** @class */ (function () {
|
|
|
411
411
|
if (recordIndex > -1) {
|
|
412
412
|
if (!isNullOrUndefined(checkbox)) {
|
|
413
413
|
checkbox.classList.add(checkBoxclass);
|
|
414
|
-
var chkstate = checkState
|
|
415
|
-
tr.querySelector('.e-treecheckselect').setAttribute(
|
|
416
|
-
tr.querySelector('.e-frame').setAttribute(
|
|
414
|
+
var chkstate = checkState === 'check' ? 'checked' : checkState === 'uncheck' ? 'unchecked' : 'mixed';
|
|
415
|
+
tr.querySelector('.e-treecheckselect').setAttribute('aria-checked', checkState === 'check' ? 'true' : checkState === 'uncheck' ? 'false' : 'mixed');
|
|
416
|
+
tr.querySelector('.e-frame').setAttribute('title', 'checkbox' + chkstate);
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
419
|
};
|
|
@@ -748,7 +748,8 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
748
748
|
};
|
|
749
749
|
TreeGrid.prototype.IsExpandCollapseClicked = function (args) {
|
|
750
750
|
if (!isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
|
|
751
|
-
|| args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell'))
|
|
751
|
+
|| args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell'))
|
|
752
|
+
&& (!isNullOrUndefined(args.data) && args.data['hasChildRecords'])) {
|
|
752
753
|
args.cancel = true;
|
|
753
754
|
return;
|
|
754
755
|
}
|
|
@@ -1415,7 +1416,9 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1415
1416
|
}
|
|
1416
1417
|
var treeGridColumn;
|
|
1417
1418
|
var gridColumn;
|
|
1418
|
-
|
|
1419
|
+
if (this.columnModel.length == 0) {
|
|
1420
|
+
index = index === 0 ? -1 : index;
|
|
1421
|
+
}
|
|
1419
1422
|
var gridColumnCollection = [];
|
|
1420
1423
|
for (var i = 0; i < column.length; i++) {
|
|
1421
1424
|
index = index + 1;
|
|
@@ -2905,7 +2908,7 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
2905
2908
|
}
|
|
2906
2909
|
removeClass([targetEle], 'e-treegridexpand');
|
|
2907
2910
|
}
|
|
2908
|
-
row.querySelectorAll('.e-treerowcell')[0].setAttribute(
|
|
2911
|
+
row.querySelectorAll('.e-treerowcell')[0].setAttribute('aria-expanded', action === 'expand' ? 'true' : 'false');
|
|
2909
2912
|
var detailrows = gridRows.filter(function (r) {
|
|
2910
2913
|
return r.classList.contains('e-griddetailrowindex' + record.index + 'level' + (record.level + 1));
|
|
2911
2914
|
});
|
|
@@ -3098,10 +3101,25 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3098
3101
|
return r.querySelector('.e-gridrowindex' + record.index + 'level' + (record.level + 1));
|
|
3099
3102
|
});
|
|
3100
3103
|
}
|
|
3104
|
+
var gridRowsObject = this.grid.getRowsObject();
|
|
3105
|
+
if (gridRowsObject[record.index].visible !== false) {
|
|
3106
|
+
gridRowsObject[record.index].visible = true;
|
|
3107
|
+
}
|
|
3108
|
+
var detailrows = gridRows.filter(function (r) {
|
|
3109
|
+
return r.classList.contains('e-griddetailrowindex' + record.index + 'level' + (record.level + 1));
|
|
3110
|
+
});
|
|
3101
3111
|
for (var i = 0; i < rows.length; i++) {
|
|
3102
3112
|
if (!isNullOrUndefined(rows[i])) {
|
|
3103
3113
|
rows[i].style.display = displayAction;
|
|
3104
3114
|
}
|
|
3115
|
+
if (!isNullOrUndefined(rows[i]) && !this.allowPaging && !(this.enableVirtualization || this.enableInfiniteScrolling || isRemoteData(this) || isCountRequired(this))) {
|
|
3116
|
+
gridRowsObject[rows[i].rowIndex].visible = displayAction != 'none' ? true : false;
|
|
3117
|
+
if ("parentItem" in record) {
|
|
3118
|
+
if (gridRows[record.parentItem.index].getElementsByClassName('e-treegridcollapse').length) {
|
|
3119
|
+
gridRowsObject[record.index].visible = false;
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3105
3123
|
if (!isNullOrUndefined(movableRows)) {
|
|
3106
3124
|
movableRows[i].style.display = displayAction;
|
|
3107
3125
|
}
|
|
@@ -3117,6 +3135,15 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
3117
3135
|
}
|
|
3118
3136
|
}
|
|
3119
3137
|
}
|
|
3138
|
+
for (var i = 0; i < detailrows.length; i++) {
|
|
3139
|
+
if (!isNullOrUndefined(detailrows[i]) && !this.allowPaging && !(this.enableVirtualization || this.enableInfiniteScrolling || isRemoteData(this) || isCountRequired(this))) {
|
|
3140
|
+
gridRowsObject[detailrows[i].rowIndex].visible = displayAction != 'none' ? true : false;
|
|
3141
|
+
detailrows[i].style.display = displayAction;
|
|
3142
|
+
}
|
|
3143
|
+
}
|
|
3144
|
+
if (!this.allowPaging && !(this.enableVirtualization || this.enableInfiniteScrolling || isRemoteData(this) || isCountRequired(this))) {
|
|
3145
|
+
this.grid.notify('refresh-Expand-and-Collapse', { rows: this.grid.getRowsObject() });
|
|
3146
|
+
}
|
|
3120
3147
|
};
|
|
3121
3148
|
TreeGrid.prototype.updateAltRow = function (rows) {
|
|
3122
3149
|
if (this.enableAltRow && !this.rowTemplate) {
|
|
@@ -122,7 +122,7 @@ var Render = /** @class */ (function () {
|
|
|
122
122
|
}
|
|
123
123
|
if (iconRequired) {
|
|
124
124
|
addClass([args.cell], 'e-treerowcell');
|
|
125
|
-
args.cell.setAttribute(
|
|
125
|
+
args.cell.setAttribute('aria-expanded', data.expanded ? 'true' : 'false');
|
|
126
126
|
var expandIcon = createElement('span', { className: 'e-icons' });
|
|
127
127
|
var expand = void 0;
|
|
128
128
|
if (this.parent.initialRender) {
|
|
@@ -581,7 +581,7 @@ var TreeInterSectionObserver = /** @class */ (function (_super) {
|
|
|
581
581
|
};
|
|
582
582
|
TreeInterSectionObserver.prototype.virtualScrollHandlers = function (callback, onEnterCallback, instance) {
|
|
583
583
|
var _this = this;
|
|
584
|
-
|
|
584
|
+
//const delay: number = Browser.info.name === 'chrome' ? 200 : 100;
|
|
585
585
|
var options = 'options';
|
|
586
586
|
var movableEle = 'movableEle';
|
|
587
587
|
var element = 'element';
|