@syncfusion/ej2-treegrid 20.3.50 → 20.3.56
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 +11 -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 +13 -16
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +13 -16
- 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 +10 -10
- package/src/treegrid/actions/page.js +2 -0
- package/src/treegrid/actions/selection.d.ts +1 -0
- package/src/treegrid/actions/selection.js +8 -1
- package/src/treegrid/base/treegrid.d.ts +0 -1
- package/src/treegrid/base/treegrid.js +3 -15
|
@@ -849,6 +849,7 @@ class Selection {
|
|
|
849
849
|
this.selectedItems = [];
|
|
850
850
|
this.selectedIndexes = [];
|
|
851
851
|
this.filteredList = [];
|
|
852
|
+
this.searchingRecords = [];
|
|
852
853
|
this.addEventListener();
|
|
853
854
|
}
|
|
854
855
|
/**
|
|
@@ -1101,6 +1102,9 @@ class Selection {
|
|
|
1101
1102
|
if (this.filteredList.length === 0) {
|
|
1102
1103
|
this.filteredList = filterResult;
|
|
1103
1104
|
}
|
|
1105
|
+
if (this.parent.grid.searchSettings.key.length) {
|
|
1106
|
+
this.searchingRecords = filterResult;
|
|
1107
|
+
}
|
|
1104
1108
|
else {
|
|
1105
1109
|
if (this.filteredList !== filterResult) {
|
|
1106
1110
|
this.filteredList = filterResult;
|
|
@@ -1112,9 +1116,12 @@ class Selection {
|
|
|
1112
1116
|
}
|
|
1113
1117
|
}
|
|
1114
1118
|
if (this.filteredList.length > 0) {
|
|
1115
|
-
if (!this.parent.filterSettings.columns.length && this.filteredList.length) {
|
|
1119
|
+
if (!this.parent.filterSettings.columns.length && this.filteredList.length && !this.parent.grid.searchSettings.key.length) {
|
|
1116
1120
|
this.filteredList = [];
|
|
1117
1121
|
}
|
|
1122
|
+
if (this.searchingRecords.length && !isNullOrUndefined(checkAll)) {
|
|
1123
|
+
this.filteredList = this.searchingRecords;
|
|
1124
|
+
}
|
|
1118
1125
|
}
|
|
1119
1126
|
let data = (!isNullOrUndefined(this.parent.filterModule) &&
|
|
1120
1127
|
(this.filteredList.length > 0)) ? this.filteredList :
|
|
@@ -5449,8 +5456,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5449
5456
|
if (this.editSettings.mode === 'Batch') {
|
|
5450
5457
|
const obj = 'dialogObj';
|
|
5451
5458
|
const showDialog = 'showDialog';
|
|
5452
|
-
if (this.getBatchChanges()[this.changedRecords].length ||
|
|
5453
|
-
this.getBatchChanges()[this.deletedRecords].length || this.getBatchChanges()[this.addedRecords].length)
|
|
5459
|
+
if ((this.getBatchChanges()[this.changedRecords].length ||
|
|
5460
|
+
this.getBatchChanges()[this.deletedRecords].length || this.getBatchChanges()[this.addedRecords].length)
|
|
5461
|
+
&& this.editSettings.showConfirmDialog) {
|
|
5454
5462
|
const dialogObj = this.grid.editModule[obj];
|
|
5455
5463
|
this.grid.editModule[showDialog]('CancelEdit', dialogObj);
|
|
5456
5464
|
this.targetElement = target;
|
|
@@ -5897,20 +5905,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5897
5905
|
}
|
|
5898
5906
|
this.notify('rowExpandCollapse', { detailrows: detailrows, action: displayAction, record: record, row: row });
|
|
5899
5907
|
this.updateAltRow(gridRows);
|
|
5900
|
-
this.updateGridRowsVisible();
|
|
5901
|
-
}
|
|
5902
|
-
}
|
|
5903
|
-
updateGridRowsVisible() {
|
|
5904
|
-
const rowsToRefresh = this.grid.getRowsObject();
|
|
5905
|
-
const rows = this.getRows();
|
|
5906
|
-
for (let i = 0; i < rows.length; i++) {
|
|
5907
|
-
for (let j = 0; j < rowsToRefresh.length; j++) {
|
|
5908
|
-
if (rows[i].dataset.uid === rowsToRefresh[j].uid) {
|
|
5909
|
-
rowsToRefresh[j].visible = rows[i].style.display === 'none' ? false : true;
|
|
5910
|
-
}
|
|
5911
|
-
}
|
|
5912
5908
|
}
|
|
5913
|
-
this.grid.notify('refresh-Expand-and-Collapse', { rows: rowsToRefresh });
|
|
5914
5909
|
}
|
|
5915
5910
|
updateChildOnDemand(expandingArgs) {
|
|
5916
5911
|
if (expandingArgs.requestType === 'collapse' && isCountRequired(this)) {
|
|
@@ -9219,6 +9214,8 @@ class Page$1 {
|
|
|
9219
9214
|
*/
|
|
9220
9215
|
collapseExpandPagedchilds(rowDetails) {
|
|
9221
9216
|
rowDetails.record.expanded = rowDetails.action === 'collapse' ? false : true;
|
|
9217
|
+
this.parent.flatData.map((e) => e.expanded = e.uniqueID === rowDetails.record.uniqueID &&
|
|
9218
|
+
e.expanded !== rowDetails.record.expanded ? rowDetails.record.expanded : e.expanded);
|
|
9222
9219
|
if (this.parent.enableImmutableMode) {
|
|
9223
9220
|
const primaryKeyField = this.parent.getPrimaryKeyFieldNames()[0];
|
|
9224
9221
|
const record = this.parent.flatData.filter((e) => {
|