@syncfusion/ej2-treegrid 26.1.39 → 26.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/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 +14 -3
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +14 -3
- 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 +20 -10
- package/src/treegrid/actions/crud-actions.js +1 -1
- package/src/treegrid/actions/rowdragdrop.js +1 -1
- package/src/treegrid/actions/virtual-scroll.d.ts +1 -0
- package/src/treegrid/actions/virtual-scroll.js +6 -0
- package/src/treegrid/base/treegrid.js +6 -1
|
@@ -3467,7 +3467,7 @@ function removeChildRecords(childRecords, modifiedData, action, key, control, is
|
|
|
3467
3467
|
editedData.taskData[keys[parseInt(i.toString(), 10)]] =
|
|
3468
3468
|
childRecords[parseInt(j.toString(), 10)][keys[parseInt(i.toString(), 10)]] =
|
|
3469
3469
|
modifiedData[keys[parseInt(i.toString(), 10)]];
|
|
3470
|
-
if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell') {
|
|
3470
|
+
if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell' && !isNullOrUndefined(control.grid.editModule)) {
|
|
3471
3471
|
var editModule = 'editModule';
|
|
3472
3472
|
control.grid.editModule["" + editModule].editRowIndex = modifiedData.index;
|
|
3473
3473
|
control.grid.editModule["" + editModule].updateCurrentViewData(modifiedData);
|
|
@@ -5447,7 +5447,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5447
5447
|
TreeGrid.prototype.onPropertyChanged = function (newProp) {
|
|
5448
5448
|
var properties = Object.keys(newProp);
|
|
5449
5449
|
var requireRefresh = false;
|
|
5450
|
-
if (properties.indexOf('columns') > -1) {
|
|
5450
|
+
if (properties.indexOf('columns') > -1 && !isNullOrUndefined(newProp.columns)) {
|
|
5451
5451
|
this.grid.columns = this.getGridColumns(newProp.columns);
|
|
5452
5452
|
this.grid['updateColumnObject']();
|
|
5453
5453
|
requireRefresh = true;
|
|
@@ -6570,6 +6570,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6570
6570
|
*/
|
|
6571
6571
|
TreeGrid.prototype.expandRow = function (row, record, key, level) {
|
|
6572
6572
|
var _this = this;
|
|
6573
|
+
this.isCollapseAll = false;
|
|
6573
6574
|
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key) && isNullOrUndefined(level)) {
|
|
6574
6575
|
var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6575
6576
|
this.trigger(actionFailure, { error: error });
|
|
@@ -6691,6 +6692,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6691
6692
|
*/
|
|
6692
6693
|
TreeGrid.prototype.collapseRow = function (row, record, key) {
|
|
6693
6694
|
var _this = this;
|
|
6695
|
+
this.isExpandAll = false;
|
|
6694
6696
|
if (isNullOrUndefined(row) && isNullOrUndefined(record) && isNullOrUndefined(key)) {
|
|
6695
6697
|
var error = 'The provided value for the row is undefined. Please ensure the row contains row element.';
|
|
6696
6698
|
this.trigger(actionFailure, { error: error });
|
|
@@ -6965,6 +6967,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
6965
6967
|
return e.querySelector('.e-treegrid' + (action === 'expand' ? 'collapse' : 'expand'));
|
|
6966
6968
|
});
|
|
6967
6969
|
}
|
|
6970
|
+
if (!rows.length && this.getRows().length) {
|
|
6971
|
+
rows.push(this.getRows()[0]);
|
|
6972
|
+
}
|
|
6968
6973
|
this.isExpandAll = true;
|
|
6969
6974
|
this.isCollapseAll = true;
|
|
6970
6975
|
if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization || this.enableInfiniteScrolling) && !isRemoteData(this)) {
|
|
@@ -9344,7 +9349,7 @@ var RowDD = /** @__PURE__ @class */ (function () {
|
|
|
9344
9349
|
var _loop_1 = function (i) {
|
|
9345
9350
|
draggedRecord_2 = dragRecords[parseInt(i.toString(), 10)];
|
|
9346
9351
|
this_1.draggedRecord = draggedRecord_2;
|
|
9347
|
-
if (this_1.dropPosition !== 'Invalid') {
|
|
9352
|
+
if (this_1.dropPosition !== 'Invalid' && !isNullOrUndefined(this_1.droppedRecord)) {
|
|
9348
9353
|
if (!tObj.rowDropSettings.targetID || isByMethod) {
|
|
9349
9354
|
this_1.deleteDragRow();
|
|
9350
9355
|
}
|
|
@@ -14090,6 +14095,11 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14090
14095
|
}
|
|
14091
14096
|
}
|
|
14092
14097
|
//}
|
|
14098
|
+
if (this.prevrequestType === 'collapseAll' && pageingDetails.actionArgs.requestType === 'virtualscroll') {
|
|
14099
|
+
startIndex = 0;
|
|
14100
|
+
endIndex = this.parent.grid.pageSettings.pageSize - 1;
|
|
14101
|
+
this.parent.grid.notify(virtualActionArgs, { setTop: true });
|
|
14102
|
+
}
|
|
14093
14103
|
if ((this.parent.enableCollapseAll || this.parent.expandStateMapping) && !isNullOrUndefined(this.expandCollapseRec)) {
|
|
14094
14104
|
if (pageingDetails.count < this.parent.getRows()[0].getBoundingClientRect().height) {
|
|
14095
14105
|
startIndex = 0;
|
|
@@ -14108,6 +14118,7 @@ var VirtualScroll = /** @__PURE__ @class */ (function () {
|
|
|
14108
14118
|
}
|
|
14109
14119
|
this.prevstartIndex = startIndex;
|
|
14110
14120
|
this.prevendIndex = endIndex;
|
|
14121
|
+
this.prevrequestType = pageingDetails.actionArgs.requestType;
|
|
14111
14122
|
}
|
|
14112
14123
|
this.parent.notify('updateAction', pageingDetails);
|
|
14113
14124
|
};
|