@syncfusion/ej2-treegrid 21.1.37 → 21.1.41
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 +15 -3
- 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 -0
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +36 -0
- 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 +9 -9
- package/src/treegrid/base/treegrid.js +24 -0
- package/src/treegrid/renderer/render.js +12 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.1.
|
|
3
|
+
* version : 21.1.41
|
|
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@21.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@21.1.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-yzDLy2soTHvZsUUxZCbJktnCGu6CA99GgvXZGMblq/f97fMtTbeyeaFqdy5c95BLi60jHIaacJqH2JrHFbOBoQ==",
|
|
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-21.1.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-21.1.38.tgz",
|
|
28
|
+
"_shasum": "9b8904acbb4c8e6c2ba33927564ca9e0059a1b5d",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@syncfusion/ej2-base": "~21.1.
|
|
40
|
-
"@syncfusion/ej2-data": "~21.1.
|
|
41
|
-
"@syncfusion/ej2-grids": "~21.1.
|
|
42
|
-
"@syncfusion/ej2-popups": "~21.1.
|
|
39
|
+
"@syncfusion/ej2-base": "~21.1.40",
|
|
40
|
+
"@syncfusion/ej2-data": "~21.1.38",
|
|
41
|
+
"@syncfusion/ej2-grids": "~21.1.41",
|
|
42
|
+
"@syncfusion/ej2-popups": "~21.1.41"
|
|
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": "21.1.
|
|
69
|
+
"version": "21.1.41",
|
|
70
70
|
"sideEffects": false
|
|
71
71
|
}
|
|
@@ -975,6 +975,11 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
975
975
|
return callBackPromise;
|
|
976
976
|
};
|
|
977
977
|
this.grid.cellSelecting = function (args) {
|
|
978
|
+
var actualTarget = 'actualTarget';
|
|
979
|
+
var target = _this.grid.selectionModule["" + actualTarget];
|
|
980
|
+
if (!isNullOrUndefined(target) && (target.classList.contains('e-treegridexpand') || target.classList.contains('e-treegridcollapse'))) {
|
|
981
|
+
args.cancel = true;
|
|
982
|
+
}
|
|
978
983
|
var callBackPromise = new Deferred();
|
|
979
984
|
_this.trigger(getObject('name', args), args, function (cellselectingArgs) {
|
|
980
985
|
callBackPromise.resolve(cellselectingArgs);
|
|
@@ -1105,6 +1110,25 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1105
1110
|
if (requestType === 'reorder') {
|
|
1106
1111
|
_this.notify('getColumnIndex', {});
|
|
1107
1112
|
}
|
|
1113
|
+
if (requestType === 'filterbeforeopen' && args.columnName && _this.filterSettings.hierarchyMode !== 'None') {
|
|
1114
|
+
for (var j = 0; j < _this.columns.length; j++) {
|
|
1115
|
+
var fields = 'field';
|
|
1116
|
+
if (_this.columns[parseInt(j.toString(), 10)]["" + fields] === args.columnName) {
|
|
1117
|
+
var taskFields = [];
|
|
1118
|
+
for (var i = 0; i < _this.grid.currentViewData.length; i++) {
|
|
1119
|
+
var fieldValue = _this.grid.currentViewData[parseInt(i.toString(), 10)][args.columnName];
|
|
1120
|
+
if (taskFields.indexOf(fieldValue) === -1) {
|
|
1121
|
+
taskFields.push(fieldValue);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
args['filterModel'].options.dataSource = taskFields.map(function (name) {
|
|
1125
|
+
var _a;
|
|
1126
|
+
return (_a = {}, _a[args.columnName] = name, _a);
|
|
1127
|
+
});
|
|
1128
|
+
args['filterModel'].options.filteredColumns = args['filterModel'].options.filteredColumns.filter(function (col) { return col.field === args.columnName; });
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1108
1132
|
if (isRemoteData(_this) && _this.enableVirtualization) {
|
|
1109
1133
|
if (args.requestType === 'virtualscroll') {
|
|
1110
1134
|
_this.query.expand('VirtualScrollingAction');
|
|
@@ -40,6 +40,8 @@ var Render = /** @class */ (function () {
|
|
|
40
40
|
!getExpandStatus(this.parent, args.data, this.parent.grid.getCurrentViewRecords());
|
|
41
41
|
if (collapsed) {
|
|
42
42
|
args.row.style.display = 'none';
|
|
43
|
+
var rowsObj = this.parent.grid.getRowsObject();
|
|
44
|
+
rowsObj.filter(function (e) { return e.uid === args.row.getAttribute('data-uid'); })[0].visible = false;
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
if (isRemoteData(this.parent) && !isOffline(this.parent)) {
|
|
@@ -68,6 +70,16 @@ var Render = /** @class */ (function () {
|
|
|
68
70
|
args.row.style.display = 'none';
|
|
69
71
|
}
|
|
70
72
|
}
|
|
73
|
+
var dragStartData = 'dragStartData';
|
|
74
|
+
var draggedRecord = 'draggedRecord';
|
|
75
|
+
if (this.parent.rowDragAndDropModule && this.parent.grid.rowDragAndDropModule && (this.parent.grid.rowDragAndDropModule["" + dragStartData] ||
|
|
76
|
+
this.parent.rowDragAndDropModule["" + draggedRecord]) && this.parent.getContentTable().scrollHeight <= this.parent.getContent().clientHeight) {
|
|
77
|
+
var lastRowBorder = 'lastRowBorder';
|
|
78
|
+
var lastVisualData = this.parent.getVisibleRecords()[this.parent.getVisibleRecords().length - 1];
|
|
79
|
+
if (lastVisualData.uniqueID === args.data.uniqueID && !isNullOrUndefined(args.row) && !args.row.cells[0].classList.contains('e-lastrowcell')) {
|
|
80
|
+
this.parent["" + lastRowBorder](args.row, true);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
71
83
|
this.parent.trigger(events.rowDataBound, args);
|
|
72
84
|
};
|
|
73
85
|
/**
|