@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.
@@ -4052,6 +4052,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
4052
4052
  const root = 'root';
4053
4053
  this.grid[`${root}`] = this[`${root}`] ? this[`${root}`] : this;
4054
4054
  this.grid.appendTo(gridContainer);
4055
+ const gridContent = this.element.getElementsByClassName('e-gridcontent')[0].childNodes[0];
4056
+ gridContent.setAttribute('tabindex', '0');
4057
+ const contentTable = this.element.getElementsByClassName('e-content')[0].querySelector('.e-table');
4058
+ contentTable.setAttribute('role', 'treegrid');
4055
4059
  if (this.isIndentEnabled) {
4056
4060
  this.refreshToolbarItems();
4057
4061
  }
@@ -5733,7 +5737,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5733
5737
  }
5734
5738
  else if (column.field) {
5735
5739
  const currentColumn = this.grid.getColumnByField(column.field);
5736
- column.width = currentColumn.width;
5740
+ if (!isNullOrUndefined(currentColumn)) {
5741
+ column.width = currentColumn.width;
5742
+ }
5737
5743
  }
5738
5744
  });
5739
5745
  }
@@ -9618,7 +9624,7 @@ class ExcelExport$1 {
9618
9624
  if (!this.isLocal()) {
9619
9625
  this.parent.flatData = [];
9620
9626
  }
9621
- if (property && property.dataSource && this.isLocal()) {
9627
+ if (property && property.dataSource) {
9622
9628
  const flatsData = this.parent.flatData;
9623
9629
  const dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
9624
9630
  this.parent.dataModule.convertToFlatData(dataSrc);
@@ -9810,7 +9816,7 @@ class PdfExport$1 {
9810
9816
  if (!isLocal) {
9811
9817
  this.parent.flatData = [];
9812
9818
  }
9813
- if (prop && prop.dataSource && isLocal) {
9819
+ if (prop && prop.dataSource) {
9814
9820
  const flatDatas = this.parent.flatData;
9815
9821
  const dataSrc = prop.dataSource instanceof DataManager ? prop.dataSource.dataSource.json : prop.dataSource;
9816
9822
  this.parent.dataModule.convertToFlatData(dataSrc);
@@ -11689,7 +11695,6 @@ class Edit$1 {
11689
11695
  if (this.parent.editSettings.mode === 'Cell' && this.parent.element.querySelector('form')) {
11690
11696
  args.cancel = true;
11691
11697
  const editModule = 'editModule';
11692
- setValue('isEdit', false, this.parent.grid);
11693
11698
  setValue('isEditCollapse', true, this.parent);
11694
11699
  args.rowData[args.columnName] = args.value;
11695
11700
  let row;
@@ -11746,6 +11751,7 @@ class Edit$1 {
11746
11751
  }
11747
11752
  else {
11748
11753
  this.updateCell(args, rowIndex);
11754
+ setValue('isEdit', false, this.parent.grid);
11749
11755
  this.afterCellSave(args, row, rowIndex);
11750
11756
  }
11751
11757
  }
@@ -11754,6 +11760,7 @@ class Edit$1 {
11754
11760
  const query = this.parent.grid.query;
11755
11761
  if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
11756
11762
  this.updateCell(args, rowIndex);
11763
+ setValue('isEdit', false, this.parent.grid);
11757
11764
  this.afterCellSave(args, row, rowIndex);
11758
11765
  }
11759
11766
  else {
@@ -11764,6 +11771,7 @@ class Edit$1 {
11764
11771
  args.rowData[args.columnName] = e[args.columnName];
11765
11772
  }
11766
11773
  this.updateCell(args, rowIndex);
11774
+ setValue('isEdit', false, this.parent.grid);
11767
11775
  this.afterCellSave(args, row, rowIndex);
11768
11776
  });
11769
11777
  }