@syncfusion/ej2-treegrid 33.1.49 → 33.2.8
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 +1 -10
- package/dist/ej2-treegrid.umd.min.js +1 -10
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +7 -9
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +7 -9
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +1 -10
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +5 -5
- package/src/treegrid/base/data.js +4 -7
- package/src/treegrid/base/treegrid.js +1 -1
- package/src/treegrid/renderer/virtual-tree-content-render.js +2 -1
|
@@ -2561,13 +2561,10 @@ class DataManipulation {
|
|
|
2561
2561
|
// }
|
|
2562
2562
|
selfReferenceUpdate(selfData) {
|
|
2563
2563
|
const result = [];
|
|
2564
|
-
|
|
2565
|
-
const index = selfData.indexOf(this.hierarchyData[
|
|
2566
|
-
if (index
|
|
2567
|
-
this.hierarchyData.
|
|
2568
|
-
}
|
|
2569
|
-
else {
|
|
2570
|
-
result.push(this.hierarchyData.shift());
|
|
2564
|
+
for (let i = 0; i < this.hierarchyData.length && selfData.length > 0; i++) {
|
|
2565
|
+
const index = selfData.indexOf(this.hierarchyData[parseInt(i.toString(), 10)]);
|
|
2566
|
+
if (index !== -1) {
|
|
2567
|
+
result.push(this.hierarchyData[parseInt(i.toString(), 10)]);
|
|
2571
2568
|
selfData.splice(index, 1);
|
|
2572
2569
|
}
|
|
2573
2570
|
}
|
|
@@ -4820,7 +4817,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4820
4817
|
const portals = 'portals';
|
|
4821
4818
|
if (!(this.isReact && isNullOrUndefined(this[`${portals}`]))) {
|
|
4822
4819
|
const isGantt = this['isFromGantt'] && !isNullOrUndefined(this['root'].clearTemplate) &&
|
|
4823
|
-
this['root'].chartRowsModule['isGridRowRefreshed'];
|
|
4820
|
+
(this['root'].chartRowsModule['isGridRowRefreshed'] || this['root']['registeredTemplate']);
|
|
4824
4821
|
if (isGantt) {
|
|
4825
4822
|
this['root'].clearTemplate(args, index, callback);
|
|
4826
4823
|
}
|
|
@@ -15478,7 +15475,8 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
15478
15475
|
let index = scrolledRows + visibleRows - this.parent.pageSettings.pageSize;
|
|
15479
15476
|
index = (index > 0) ? index : 0;
|
|
15480
15477
|
if (!isNullOrUndefined(this[`${selectedRowIndex}`]) && this[`${selectedRowIndex}`] !== -1 && index !== this[`${selectedRowIndex}`] &&
|
|
15481
|
-
((this.parent.rowHeight * this.parent.pageSettings.pageSize) < content.scrollTop) &&
|
|
15478
|
+
(this.parent.rowHeight && ((this.parent.rowHeight * this.parent.pageSettings.pageSize) < content.scrollTop)) &&
|
|
15479
|
+
!this.parent.allowRowDragAndDrop) {
|
|
15482
15480
|
index = this[`${selectedRowIndex}`];
|
|
15483
15481
|
}
|
|
15484
15482
|
this.startIndex = index;
|