@syncfusion/ej2-treegrid 23.2.4 → 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.
@@ -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
  }
@@ -6039,7 +6043,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6039
6043
  }
6040
6044
  else if (column.field) {
6041
6045
  var currentColumn = _this.grid.getColumnByField(column.field);
6042
- column.width = currentColumn.width;
6046
+ if (!isNullOrUndefined(currentColumn)) {
6047
+ column.width = currentColumn.width;
6048
+ }
6043
6049
  }
6044
6050
  });
6045
6051
  };
@@ -9998,7 +10004,7 @@ var ExcelExport$1 = /** @__PURE__ @class */ (function () {
9998
10004
  if (!this.isLocal()) {
9999
10005
  this.parent.flatData = [];
10000
10006
  }
10001
- if (property && property.dataSource && this.isLocal()) {
10007
+ if (property && property.dataSource) {
10002
10008
  var flatsData = this.parent.flatData;
10003
10009
  var dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
10004
10010
  this.parent.dataModule.convertToFlatData(dataSrc);
@@ -10192,7 +10198,7 @@ var PdfExport$1 = /** @__PURE__ @class */ (function () {
10192
10198
  if (!isLocal) {
10193
10199
  this.parent.flatData = [];
10194
10200
  }
10195
- if (prop && prop.dataSource && isLocal) {
10201
+ if (prop && prop.dataSource) {
10196
10202
  var flatDatas = this.parent.flatData;
10197
10203
  var dataSrc = prop.dataSource instanceof DataManager ? prop.dataSource.dataSource.json : prop.dataSource;
10198
10204
  this.parent.dataModule.convertToFlatData(dataSrc);
@@ -12092,7 +12098,6 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12092
12098
  if (this.parent.editSettings.mode === 'Cell' && this.parent.element.querySelector('form')) {
12093
12099
  args.cancel = true;
12094
12100
  var editModule = 'editModule';
12095
- setValue('isEdit', false, this.parent.grid);
12096
12101
  setValue('isEditCollapse', true, this.parent);
12097
12102
  args.rowData[args.columnName] = args.value;
12098
12103
  var row_1;
@@ -12149,6 +12154,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12149
12154
  }
12150
12155
  else {
12151
12156
  this.updateCell(args, rowIndex_1);
12157
+ setValue('isEdit', false, this.parent.grid);
12152
12158
  this.afterCellSave(args, row_1, rowIndex_1);
12153
12159
  }
12154
12160
  }
@@ -12157,6 +12163,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12157
12163
  var query = this.parent.grid.query;
12158
12164
  if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
12159
12165
  this.updateCell(args, rowIndex_1);
12166
+ setValue('isEdit', false, this.parent.grid);
12160
12167
  this.afterCellSave(args, row_1, rowIndex_1);
12161
12168
  }
12162
12169
  else {
@@ -12167,6 +12174,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
12167
12174
  args.rowData[args.columnName] = e[args.columnName];
12168
12175
  }
12169
12176
  _this.updateCell(args, rowIndex_1);
12177
+ setValue('isEdit', false, _this.parent.grid);
12170
12178
  _this.afterCellSave(args, row_1, rowIndex_1);
12171
12179
  });
12172
12180
  }