@syncfusion/ej2-treegrid 20.3.47 → 20.3.48
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 +3 -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 +12 -3
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +12 -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 +8 -8
- package/src/treegrid/actions/edit.js +10 -1
- package/src/treegrid/base/treegrid.js +2 -2
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/fluent-dark.css +1 -1
- package/styles/fluent.css +1 -1
- package/styles/treegrid/_layout.scss +1 -1
- package/styles/treegrid/bootstrap5-dark.css +1 -1
- package/styles/treegrid/bootstrap5.css +1 -1
- package/styles/treegrid/fluent-dark.css +1 -1
- package/styles/treegrid/fluent.css +1 -1
|
@@ -3973,12 +3973,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
3973
3973
|
this.trigger(getObject('name', args), args);
|
|
3974
3974
|
};
|
|
3975
3975
|
TreeGrid.prototype.IsExpandCollapseClicked = function (args) {
|
|
3976
|
-
if (args['name'] ===
|
|
3976
|
+
if (args['name'] === 'rowSelecting' && !isNullOrUndefined(args.target) && (args.target.classList.contains('e-treegridexpand')
|
|
3977
3977
|
|| args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')) && (isNullOrUndefined(args['previousRowIndex']))) {
|
|
3978
3978
|
args.cancel = true;
|
|
3979
3979
|
return;
|
|
3980
3980
|
}
|
|
3981
|
-
else if (args['name'] ===
|
|
3981
|
+
else if (args['name'] === 'rowDeselecting' && !isNullOrUndefined(args.target) && ((!isNullOrUndefined(args.row) && (!args.row.length)) && (args.target.classList.contains('e-treegridexpand')
|
|
3982
3982
|
|| args.target.classList.contains('e-treegridcollapse') || args.target.classList.contains('e-summarycell')))) {
|
|
3983
3983
|
args.cancel = true;
|
|
3984
3984
|
return;
|
|
@@ -11170,6 +11170,10 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11170
11170
|
}
|
|
11171
11171
|
this.updateGridEditMode('Batch');
|
|
11172
11172
|
}
|
|
11173
|
+
else if (this.parent.editSettings.mode === 'Cell' && (!column.allowEditing || column.isPrimaryKey)) {
|
|
11174
|
+
this.isOnBatch = true;
|
|
11175
|
+
this.updateGridEditMode('Batch');
|
|
11176
|
+
}
|
|
11173
11177
|
};
|
|
11174
11178
|
Edit$$1.prototype.updateGridEditMode = function (mode) {
|
|
11175
11179
|
this.parent.grid.setProperties({ editSettings: { mode: mode } }, true);
|
|
@@ -11846,7 +11850,12 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11846
11850
|
}
|
|
11847
11851
|
index = (childRecordCount1 > 0) ? (currentDataIndex1 + childRecordCount1) : (currentDataIndex1);
|
|
11848
11852
|
if (this.isSelfReference) {
|
|
11849
|
-
|
|
11853
|
+
if (!this.parent.isLocalData && this.parent.editModule.selectedIndex === -1) {
|
|
11854
|
+
value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = null;
|
|
11855
|
+
}
|
|
11856
|
+
else {
|
|
11857
|
+
value.taskData[this.parent.parentIdMapping] = value[this.parent.parentIdMapping] = idMapping;
|
|
11858
|
+
}
|
|
11850
11859
|
if (!isNullOrUndefined(value.parentItem)) {
|
|
11851
11860
|
updateParentRow(key, value.parentItem, 'add', this.parent, this.isSelfReference, value);
|
|
11852
11861
|
}
|