@syncfusion/ej2-treegrid 23.2.4 → 23.2.7
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 +18 -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 +14 -5
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +14 -5
- 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 +7 -7
- package/src/treegrid/actions/edit.js +3 -1
- package/src/treegrid/actions/excel-export.js +1 -1
- package/src/treegrid/actions/pdf-export.js +1 -1
- package/src/treegrid/base/treegrid.js +9 -2
|
@@ -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
|
-
|
|
5740
|
+
if (!isNullOrUndefined(currentColumn)) {
|
|
5741
|
+
column.width = currentColumn.width;
|
|
5742
|
+
}
|
|
5737
5743
|
}
|
|
5738
5744
|
});
|
|
5739
5745
|
}
|
|
@@ -6756,11 +6762,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6756
6762
|
treeColumnRowTemplate() {
|
|
6757
6763
|
let rows = this.getContentTable().rows;
|
|
6758
6764
|
rows = [].slice.call(rows);
|
|
6765
|
+
let rowsObject = this.grid.getRowsObject();
|
|
6759
6766
|
for (let i = 0; i < rows.length; i++) {
|
|
6760
6767
|
const rcell = this.grid.getContentTable().rows[parseInt(i.toString(), 10)]
|
|
6761
6768
|
.cells[this.treeColumnIndex];
|
|
6762
6769
|
const row = rows[parseInt(i.toString(), 10)];
|
|
6763
|
-
const rowData =
|
|
6770
|
+
const rowData = rowsObject.length != 0 ? rowsObject[parseInt(i.toString(), 10)].data : new Object();
|
|
6764
6771
|
const arg = { data: rowData, row: row, cell: rcell, column: this.getColumns()[this.treeColumnIndex] };
|
|
6765
6772
|
this.renderModule.cellRender(arg);
|
|
6766
6773
|
}
|
|
@@ -9618,7 +9625,7 @@ class ExcelExport$1 {
|
|
|
9618
9625
|
if (!this.isLocal()) {
|
|
9619
9626
|
this.parent.flatData = [];
|
|
9620
9627
|
}
|
|
9621
|
-
if (property && property.dataSource
|
|
9628
|
+
if (property && property.dataSource) {
|
|
9622
9629
|
const flatsData = this.parent.flatData;
|
|
9623
9630
|
const dataSrc = property.dataSource instanceof DataManager ? property.dataSource.dataSource.json : property.dataSource;
|
|
9624
9631
|
this.parent.dataModule.convertToFlatData(dataSrc);
|
|
@@ -9810,7 +9817,7 @@ class PdfExport$1 {
|
|
|
9810
9817
|
if (!isLocal) {
|
|
9811
9818
|
this.parent.flatData = [];
|
|
9812
9819
|
}
|
|
9813
|
-
if (prop && prop.dataSource
|
|
9820
|
+
if (prop && prop.dataSource) {
|
|
9814
9821
|
const flatDatas = this.parent.flatData;
|
|
9815
9822
|
const dataSrc = prop.dataSource instanceof DataManager ? prop.dataSource.dataSource.json : prop.dataSource;
|
|
9816
9823
|
this.parent.dataModule.convertToFlatData(dataSrc);
|
|
@@ -11689,7 +11696,6 @@ class Edit$1 {
|
|
|
11689
11696
|
if (this.parent.editSettings.mode === 'Cell' && this.parent.element.querySelector('form')) {
|
|
11690
11697
|
args.cancel = true;
|
|
11691
11698
|
const editModule = 'editModule';
|
|
11692
|
-
setValue('isEdit', false, this.parent.grid);
|
|
11693
11699
|
setValue('isEditCollapse', true, this.parent);
|
|
11694
11700
|
args.rowData[args.columnName] = args.value;
|
|
11695
11701
|
let row;
|
|
@@ -11746,6 +11752,7 @@ class Edit$1 {
|
|
|
11746
11752
|
}
|
|
11747
11753
|
else {
|
|
11748
11754
|
this.updateCell(args, rowIndex);
|
|
11755
|
+
setValue('isEdit', false, this.parent.grid);
|
|
11749
11756
|
this.afterCellSave(args, row, rowIndex);
|
|
11750
11757
|
}
|
|
11751
11758
|
}
|
|
@@ -11754,6 +11761,7 @@ class Edit$1 {
|
|
|
11754
11761
|
const query = this.parent.grid.query;
|
|
11755
11762
|
if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
|
|
11756
11763
|
this.updateCell(args, rowIndex);
|
|
11764
|
+
setValue('isEdit', false, this.parent.grid);
|
|
11757
11765
|
this.afterCellSave(args, row, rowIndex);
|
|
11758
11766
|
}
|
|
11759
11767
|
else {
|
|
@@ -11764,6 +11772,7 @@ class Edit$1 {
|
|
|
11764
11772
|
args.rowData[args.columnName] = e[args.columnName];
|
|
11765
11773
|
}
|
|
11766
11774
|
this.updateCell(args, rowIndex);
|
|
11775
|
+
setValue('isEdit', false, this.parent.grid);
|
|
11767
11776
|
this.afterCellSave(args, row, rowIndex);
|
|
11768
11777
|
});
|
|
11769
11778
|
}
|