@syncfusion/ej2-treegrid 23.1.39 → 23.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/CHANGELOG.md +26 -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 +15 -17
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +15 -17
- 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/actions/batch-edit.js +1 -5
- package/src/treegrid/actions/clipboard.js +3 -3
- package/src/treegrid/actions/freeze-column.js +1 -1
- package/src/treegrid/actions/selection.js +2 -2
- package/src/treegrid/actions/virtual-scroll.js +7 -2
- package/src/treegrid/base/treegrid.js +0 -3
- package/src/treegrid/renderer/virtual-tree-content-render.js +2 -2
- package/styles/bootstrap4.css +13 -2
- package/styles/treegrid/bootstrap4.css +13 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.
|
|
3
|
+
* version : 23.2.4
|
|
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@23.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-treegrid@23.1.43",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-Tl2QVesPW9C+/ARYpTYshODOrwslt20lAr06+KITs8TWPJn/48BLUF9bs0KSpxMD8YP52tfzY3GGdywJFBcDFQ==",
|
|
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-23.1.
|
|
28
|
-
"_shasum": "
|
|
27
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-23.1.43.tgz",
|
|
28
|
+
"_shasum": "60e82272c7ffd3d78df57d7620c1b1049520e330",
|
|
29
29
|
"_spec": "@syncfusion/ej2-treegrid@*",
|
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
31
31
|
"author": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"bundleDependencies": false,
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@syncfusion/ej2-base": "~23.
|
|
40
|
-
"@syncfusion/ej2-data": "~23.
|
|
41
|
-
"@syncfusion/ej2-grids": "~23.
|
|
42
|
-
"@syncfusion/ej2-popups": "~23.
|
|
39
|
+
"@syncfusion/ej2-base": "~23.2.4",
|
|
40
|
+
"@syncfusion/ej2-data": "~23.2.4",
|
|
41
|
+
"@syncfusion/ej2-grids": "~23.2.4",
|
|
42
|
+
"@syncfusion/ej2-popups": "~23.2.4"
|
|
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": "23.
|
|
69
|
+
"version": "23.2.4",
|
|
70
70
|
"sideEffects": false
|
|
71
71
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isNullOrUndefined, extend, setValue, getValue
|
|
1
|
+
import { isNullOrUndefined, extend, setValue, getValue } from '@syncfusion/ej2-base';
|
|
2
2
|
import * as events from '../base/constant';
|
|
3
3
|
import { DataManager } from '@syncfusion/ej2-data';
|
|
4
4
|
import { findChildrenRecords, getParentData, extendArray } from '../utils';
|
|
@@ -210,10 +210,6 @@ var BatchEdit = /** @class */ (function () {
|
|
|
210
210
|
this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].data = added;
|
|
211
211
|
this.newBatchRowAdded = false;
|
|
212
212
|
}
|
|
213
|
-
if (this.parent.frozenColumns || this.parent.getFrozenColumns()
|
|
214
|
-
&& this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].edit === 'add') {
|
|
215
|
-
merge(this.currentViewRecords[parseInt(rowObjectIndex.toString(), 10)], this.parent.grid.getRowsObject()[parseInt(rowObjectIndex.toString(), 10)].changes);
|
|
216
|
-
}
|
|
217
213
|
}
|
|
218
214
|
};
|
|
219
215
|
BatchEdit.prototype.beforeBatchAdd = function (e) {
|
|
@@ -47,7 +47,7 @@ var TreeClipboard = /** @class */ (function (_super) {
|
|
|
47
47
|
this.treeCopyContent += '\n';
|
|
48
48
|
}
|
|
49
49
|
if (!rows[selectedIndexes[parseInt(i.toString(), 10)]].classList.contains('e-summaryrow')) {
|
|
50
|
-
var cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell'));
|
|
50
|
+
var cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
51
51
|
var uniqueid = this.treeGridParent.getSelectedRecords()[parseInt(i.toString(), 10)]["" + uniqueID];
|
|
52
52
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
53
53
|
if (this.treeGridParent.copyHierarchyMode === 'Parent' || this.treeGridParent.copyHierarchyMode === 'Both') {
|
|
@@ -109,7 +109,7 @@ var TreeClipboard = /** @class */ (function (_super) {
|
|
|
109
109
|
if (!isNullOrUndefined(currentRecords[parseInt(selectedIndex.toString(), 10)]["" + parentItem]) &&
|
|
110
110
|
currentRecords[parseInt(j.toString(), 10)]["" + uniqueID] === currentRecords[parseInt(selectedIndex.toString(), 10)]["" + parentItem]["" + uniqueID]) {
|
|
111
111
|
selectedIndex = j;
|
|
112
|
-
var cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell'));
|
|
112
|
+
var cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
113
113
|
var uniqueid = currentRecords[parseInt(j.toString(), 10)]["" + uniqueID];
|
|
114
114
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
115
115
|
this["" + getCopyData](cells, false, '\t', withHeader);
|
|
@@ -164,7 +164,7 @@ var TreeClipboard = /** @class */ (function (_super) {
|
|
|
164
164
|
for (var j = 0; j < currentRecords.length; j++) {
|
|
165
165
|
if (!isNullOrUndefined(childData[parseInt(i.toString(), 10)]["" + uniqueID]) && currentRecords[parseInt(j.toString(), 10)]["" + uniqueID] === childData[parseInt(i.toString(), 10)]["" + uniqueID]) {
|
|
166
166
|
if ((!isNullOrUndefined(rows[parseInt(j.toString(), 10)])) && !rows[parseInt(j.toString(), 10)].classList.contains('e-summaryrow')) {
|
|
167
|
-
var cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell'));
|
|
167
|
+
var cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
168
168
|
var uniqueid = currentRecords[parseInt(j.toString(), 10)]["" + uniqueID];
|
|
169
169
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
170
170
|
this["" + getCopyData](cells, false, '\t', withHeader);
|
|
@@ -79,7 +79,7 @@ var Freeze = /** @class */ (function () {
|
|
|
79
79
|
Freeze.prototype.dblClickHandler = function (e) {
|
|
80
80
|
if (parentsUntil(e.target, 'e-rowcell') &&
|
|
81
81
|
this.parent.grid.editSettings.allowEditOnDblClick && this.parent.editSettings.mode !== 'Cell' && (!e.target['classList'].contains('e-treegridcollapse') && !e.target['classList'].contains('e-treegridexpand'))) {
|
|
82
|
-
this.parent.
|
|
82
|
+
this.parent.startEdit(parentsUntil(e.target, 'e-row'));
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
Freeze.prototype.dataBoundArg = function () {
|
|
@@ -387,7 +387,7 @@ var Selection = /** @class */ (function () {
|
|
|
387
387
|
(!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
388
388
|
this.selectedItems.push(checkedRecord);
|
|
389
389
|
}
|
|
390
|
-
if (this.selectedItems.indexOf(checkedRecord) === -1 && this.parent.enableVirtualization && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
390
|
+
if (this.selectedItems.indexOf(checkedRecord) === -1 && (this.parent.enableVirtualization || this.parent.allowPaging) && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
391
391
|
this.selectedItems.push(checkedRecord);
|
|
392
392
|
}
|
|
393
393
|
if (this.selectedItems.indexOf(checkedRecord) === -1 && (!isNullOrUndefined(this.parent.filterModule) &&
|
|
@@ -463,7 +463,7 @@ var Selection = /** @class */ (function () {
|
|
|
463
463
|
this.selectedItems = [];
|
|
464
464
|
this.selectedIndexes = [];
|
|
465
465
|
childData = (!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0) ?
|
|
466
|
-
this.parent.
|
|
466
|
+
this.parent.filterModule.filteredResult : this.parent.flatData;
|
|
467
467
|
childData.forEach(function (record) {
|
|
468
468
|
if (_this.parent.enableVirtualization) {
|
|
469
469
|
if (record.hasChildRecords && record.childRecords.length > 0) {
|
|
@@ -119,7 +119,7 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
119
119
|
else {
|
|
120
120
|
var requestType = pageingDetails.actionArgs.requestType;
|
|
121
121
|
if (requestType === 'filtering' || requestType === 'collapseAll' || requestType === 'searching' ||
|
|
122
|
-
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length)) {
|
|
122
|
+
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length && isNullOrUndefined(this.expandCollapseRec))) {
|
|
123
123
|
startIndex = 0;
|
|
124
124
|
endIndex = this.parent.grid.pageSettings.pageSize - 1;
|
|
125
125
|
this.parent.grid.getContent().firstElementChild.scrollTop = 0;
|
|
@@ -166,7 +166,12 @@ var VirtualScroll = /** @class */ (function () {
|
|
|
166
166
|
}
|
|
167
167
|
this.expandCollapseRec = null;
|
|
168
168
|
startIndex = startIndex < 0 ? 0 : startIndex;
|
|
169
|
-
|
|
169
|
+
if (endIndex === 0 && visualData.length > 0) {
|
|
170
|
+
pageingDetails.result = visualData;
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
pageingDetails.result = visualData.slice(startIndex, endIndex);
|
|
174
|
+
}
|
|
170
175
|
this.prevstartIndex = startIndex;
|
|
171
176
|
this.prevendIndex = endIndex;
|
|
172
177
|
}
|
|
@@ -1655,9 +1655,6 @@ var TreeGrid = /** @class */ (function (_super) {
|
|
|
1655
1655
|
for (var _i = 0, properties_1 = properties; _i < properties_1.length; _i++) {
|
|
1656
1656
|
var prop = properties_1[_i];
|
|
1657
1657
|
switch (prop) {
|
|
1658
|
-
case 'columns':
|
|
1659
|
-
this.grid.columns = this.getGridColumns(this.columns);
|
|
1660
|
-
break;
|
|
1661
1658
|
case 'treeColumnIndex':
|
|
1662
1659
|
this.grid.refreshColumns();
|
|
1663
1660
|
break;
|
|
@@ -228,8 +228,8 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
|
|
|
228
228
|
if (isNullOrUndefined(this.observer["" + containerRect])) {
|
|
229
229
|
this.observer["" + containerRect] = this.observers["" + containerRect];
|
|
230
230
|
}
|
|
231
|
-
if (isNullOrUndefined(this.parent['
|
|
232
|
-
isNullOrUndefined(this.parent['
|
|
231
|
+
if (isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule) || args.selectedIndex !== 0 ||
|
|
232
|
+
isNullOrUndefined(this.parent.clipboardModule['treeGridParent'].editModule['addRowIndex'])) {
|
|
233
233
|
_super.prototype["" + selectVirtualRow].call(this, args);
|
|
234
234
|
}
|
|
235
235
|
};
|
package/styles/bootstrap4.css
CHANGED
|
@@ -116,13 +116,24 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
119
|
-
font-size:
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.e-bigger .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
123
|
+
.e-bigger.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
124
|
+
font-size: 14px;
|
|
120
125
|
}
|
|
121
126
|
|
|
122
|
-
.e-
|
|
127
|
+
.e-small .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
128
|
+
.e-small.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
123
129
|
font-size: 10px;
|
|
124
130
|
}
|
|
125
131
|
|
|
132
|
+
.e-small.e-bigger .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
133
|
+
.e-small.e-bigger.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
134
|
+
font-size: 12px;
|
|
135
|
+
}
|
|
136
|
+
|
|
126
137
|
.e-bigger.e-small .e-ddl.e-popup .e-list-item, .e-bigger.e-small .e-ddl.e-popup .e-list-group-item, .e-bigger.e-small .e-ddl.e-popup .e-fixed-head {
|
|
127
138
|
font-size: 14px;
|
|
128
139
|
line-height: 34px;
|
|
@@ -116,13 +116,24 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
119
|
-
font-size:
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.e-bigger .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
123
|
+
.e-bigger.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
124
|
+
font-size: 14px;
|
|
120
125
|
}
|
|
121
126
|
|
|
122
|
-
.e-
|
|
127
|
+
.e-small .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
128
|
+
.e-small.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
123
129
|
font-size: 10px;
|
|
124
130
|
}
|
|
125
131
|
|
|
132
|
+
.e-small.e-bigger .e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon,
|
|
133
|
+
.e-small.e-bigger.e-input-group .e-control.e-dropdownlist ~ .e-ddl-icon {
|
|
134
|
+
font-size: 12px;
|
|
135
|
+
}
|
|
136
|
+
|
|
126
137
|
.e-bigger.e-small .e-ddl.e-popup .e-list-item, .e-bigger.e-small .e-ddl.e-popup .e-list-group-item, .e-bigger.e-small .e-ddl.e-popup .e-fixed-head {
|
|
127
138
|
font-size: 14px;
|
|
128
139
|
line-height: 34px;
|