@syncfusion/ej2-treegrid 23.1.43 → 23.2.6
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 +20 -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 +18 -13
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +18 -13
- 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/clipboard.js +3 -3
- package/src/treegrid/actions/edit.js +3 -1
- package/src/treegrid/actions/excel-export.js +1 -1
- package/src/treegrid/actions/pdf-export.js +1 -1
- package/src/treegrid/actions/selection.js +2 -2
- package/src/treegrid/actions/virtual-scroll.js +1 -1
- package/src/treegrid/base/treegrid.js +7 -4
|
@@ -649,7 +649,7 @@ var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
|
|
|
649
649
|
this.treeCopyContent += '\n';
|
|
650
650
|
}
|
|
651
651
|
if (!rows[selectedIndexes[parseInt(i.toString(), 10)]].classList.contains('e-summaryrow')) {
|
|
652
|
-
var cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell'));
|
|
652
|
+
var cells = [].slice.call(rows[selectedIndexes[parseInt(i.toString(), 10)]].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
653
653
|
var uniqueid = this.treeGridParent.getSelectedRecords()[parseInt(i.toString(), 10)]["" + uniqueID];
|
|
654
654
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
655
655
|
if (this.treeGridParent.copyHierarchyMode === 'Parent' || this.treeGridParent.copyHierarchyMode === 'Both') {
|
|
@@ -711,7 +711,7 @@ var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
|
|
|
711
711
|
if (!isNullOrUndefined(currentRecords[parseInt(selectedIndex.toString(), 10)]["" + parentItem]) &&
|
|
712
712
|
currentRecords[parseInt(j.toString(), 10)]["" + uniqueID] === currentRecords[parseInt(selectedIndex.toString(), 10)]["" + parentItem]["" + uniqueID]) {
|
|
713
713
|
selectedIndex = j;
|
|
714
|
-
var cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell'));
|
|
714
|
+
var cells = [].slice.call(rows[parseInt(selectedIndex.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
715
715
|
var uniqueid = currentRecords[parseInt(j.toString(), 10)]["" + uniqueID];
|
|
716
716
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
717
717
|
this["" + getCopyData](cells, false, '\t', withHeader);
|
|
@@ -766,7 +766,7 @@ var TreeClipboard = /** @__PURE__ @class */ (function (_super) {
|
|
|
766
766
|
for (var j = 0; j < currentRecords.length; j++) {
|
|
767
767
|
if (!isNullOrUndefined(childData[parseInt(i.toString(), 10)]["" + uniqueID]) && currentRecords[parseInt(j.toString(), 10)]["" + uniqueID] === childData[parseInt(i.toString(), 10)]["" + uniqueID]) {
|
|
768
768
|
if ((!isNullOrUndefined(rows[parseInt(j.toString(), 10)])) && !rows[parseInt(j.toString(), 10)].classList.contains('e-summaryrow')) {
|
|
769
|
-
var cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell'));
|
|
769
|
+
var cells = [].slice.call(rows[parseInt(j.toString(), 10)].querySelectorAll('.e-rowcell:not(.e-hide)'));
|
|
770
770
|
var uniqueid = currentRecords[parseInt(j.toString(), 10)]["" + uniqueID];
|
|
771
771
|
if (this.copiedUniqueIdCollection.indexOf(uniqueid) === -1) {
|
|
772
772
|
this["" + getCopyData](cells, false, '\t', withHeader);
|
|
@@ -1369,7 +1369,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
1369
1369
|
(!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1370
1370
|
this.selectedItems.push(checkedRecord);
|
|
1371
1371
|
}
|
|
1372
|
-
if (this.selectedItems.indexOf(checkedRecord) === -1 && this.parent.enableVirtualization && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1372
|
+
if (this.selectedItems.indexOf(checkedRecord) === -1 && (this.parent.enableVirtualization || this.parent.allowPaging) && ((!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0))) {
|
|
1373
1373
|
this.selectedItems.push(checkedRecord);
|
|
1374
1374
|
}
|
|
1375
1375
|
if (this.selectedItems.indexOf(checkedRecord) === -1 && (!isNullOrUndefined(this.parent.filterModule) &&
|
|
@@ -1444,7 +1444,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
1444
1444
|
this.selectedItems = [];
|
|
1445
1445
|
this.selectedIndexes = [];
|
|
1446
1446
|
childData = (!isNullOrUndefined(this.parent.filterModule) && this.parent.filterModule.filteredResult.length > 0) ?
|
|
1447
|
-
this.parent.
|
|
1447
|
+
this.parent.filterModule.filteredResult : this.parent.flatData;
|
|
1448
1448
|
childData.forEach(function (record) {
|
|
1449
1449
|
if (_this.parent.enableVirtualization) {
|
|
1450
1450
|
if (record.hasChildRecords && record.childRecords.length > 0) {
|
|
@@ -4343,6 +4343,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4343
4343
|
var root = 'root';
|
|
4344
4344
|
this.grid["" + root] = this["" + root] ? this["" + root] : this;
|
|
4345
4345
|
this.grid.appendTo(gridContainer);
|
|
4346
|
+
var gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
|
|
4347
|
+
gridContent.setAttribute('tabindex', '0');
|
|
4348
|
+
var contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
|
|
4349
|
+
contentTable.setAttribute('role', 'treegrid');
|
|
4346
4350
|
if (this.isIndentEnabled) {
|
|
4347
4351
|
this.refreshToolbarItems();
|
|
4348
4352
|
}
|
|
@@ -5250,9 +5254,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5250
5254
|
for (var _i = 0, properties_1 = properties; _i < properties_1.length; _i++) {
|
|
5251
5255
|
var prop = properties_1[_i];
|
|
5252
5256
|
switch (prop) {
|
|
5253
|
-
case 'columns':
|
|
5254
|
-
this.grid.columns = this.getGridColumns(this.columns);
|
|
5255
|
-
break;
|
|
5256
5257
|
case 'treeColumnIndex':
|
|
5257
5258
|
this.grid.refreshColumns();
|
|
5258
5259
|
break;
|
|
@@ -6042,7 +6043,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6042
6043
|
}
|
|
6043
6044
|
else if (column.field) {
|
|
6044
6045
|
var currentColumn = _this.grid.getColumnByField(column.field);
|
|
6045
|
-
|
|
6046
|
+
if (!isNullOrUndefined(currentColumn)) {
|
|
6047
|
+
column.width = currentColumn.width;
|
|
6048
|
+
}
|
|
6046
6049
|
}
|
|
6047
6050
|
});
|
|
6048
6051
|
};
|
|
@@ -10001,7 +10004,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10001
10004
|
if (!this.isLocal()) {
|
|
10002
10005
|
this.parent.flatData = [];
|
|
10003
10006
|
}
|
|
10004
|
-
if (property && property.dataSource
|
|
10007
|
+
if (property && property.dataSource) {
|
|
10005
10008
|
var flatsData = this.parent.flatData;
|
|
10006
10009
|
var dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
|
|
10007
10010
|
this.parent.dataModule.convertToFlatData(dataSrc);
|
|
@@ -10195,7 +10198,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
|
|
|
10195
10198
|
if (!isLocal) {
|
|
10196
10199
|
this.parent.flatData = [];
|
|
10197
10200
|
}
|
|
10198
|
-
if (prop && prop.dataSource
|
|
10201
|
+
if (prop && prop.dataSource) {
|
|
10199
10202
|
var flatDatas = this.parent.flatData;
|
|
10200
10203
|
var dataSrc = prop.dataSource instanceof DataManager ? prop.dataSource.dataSource.json : prop.dataSource;
|
|
10201
10204
|
this.parent.dataModule.convertToFlatData(dataSrc);
|
|
@@ -12095,7 +12098,6 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12095
12098
|
if (this.parent.editSettings.mode === 'Cell' && this.parent.element.querySelector('form')) {
|
|
12096
12099
|
args.cancel = true;
|
|
12097
12100
|
var editModule = 'editModule';
|
|
12098
|
-
setValue('isEdit', false, this.parent.grid);
|
|
12099
12101
|
setValue('isEditCollapse', true, this.parent);
|
|
12100
12102
|
args.rowData[args.columnName] = args.value;
|
|
12101
12103
|
var row_1;
|
|
@@ -12152,6 +12154,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12152
12154
|
}
|
|
12153
12155
|
else {
|
|
12154
12156
|
this.updateCell(args, rowIndex_1);
|
|
12157
|
+
setValue('isEdit', false, this.parent.grid);
|
|
12155
12158
|
this.afterCellSave(args, row_1, rowIndex_1);
|
|
12156
12159
|
}
|
|
12157
12160
|
}
|
|
@@ -12160,6 +12163,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12160
12163
|
var query = this.parent.grid.query;
|
|
12161
12164
|
if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
|
|
12162
12165
|
this.updateCell(args, rowIndex_1);
|
|
12166
|
+
setValue('isEdit', false, this.parent.grid);
|
|
12163
12167
|
this.afterCellSave(args, row_1, rowIndex_1);
|
|
12164
12168
|
}
|
|
12165
12169
|
else {
|
|
@@ -12170,6 +12174,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
12170
12174
|
args.rowData[args.columnName] = e[args.columnName];
|
|
12171
12175
|
}
|
|
12172
12176
|
_this.updateCell(args, rowIndex_1);
|
|
12177
|
+
setValue('isEdit', false, _this.parent.grid);
|
|
12173
12178
|
_this.afterCellSave(args, row_1, rowIndex_1);
|
|
12174
12179
|
});
|
|
12175
12180
|
}
|
|
@@ -13713,7 +13718,7 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13713
13718
|
else {
|
|
13714
13719
|
var requestType = pageingDetails.actionArgs.requestType;
|
|
13715
13720
|
if (requestType === 'filtering' || requestType === 'collapseAll' || requestType === 'searching' ||
|
|
13716
|
-
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length)) {
|
|
13721
|
+
(requestType === 'refresh' && this.parent.enableCollapseAll && endIndex > visualData.length && isNullOrUndefined(this.expandCollapseRec))) {
|
|
13717
13722
|
startIndex = 0;
|
|
13718
13723
|
endIndex = this.parent.grid.pageSettings.pageSize - 1;
|
|
13719
13724
|
this.parent.grid.getContent().firstElementChild.scrollTop = 0;
|