@syncfusion/ej2-treegrid 34.1.31 → 34.1.33
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 +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 +18 -15
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +18 -15
- 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 +3 -3
- package/src/treegrid/actions/infinite-scroll.js +4 -1
- package/src/treegrid/base/treegrid.d.ts +2 -1
- package/src/treegrid/base/treegrid.js +14 -14
|
@@ -5854,10 +5854,11 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5854
5854
|
* Called internally if any of the property value changed.
|
|
5855
5855
|
*
|
|
5856
5856
|
* @param {TreeGridModel} newProp - properties details which has to be modified
|
|
5857
|
+
* @param {TreeGridModel} oldProp - properties details which previously existed
|
|
5857
5858
|
* @hidden
|
|
5858
5859
|
* @returns {void}
|
|
5859
5860
|
*/
|
|
5860
|
-
onPropertyChanged(newProp) {
|
|
5861
|
+
onPropertyChanged(newProp, oldProp) {
|
|
5861
5862
|
const properties = Object.keys(newProp);
|
|
5862
5863
|
let requireRefresh = false;
|
|
5863
5864
|
let refreshComponent = false;
|
|
@@ -5913,6 +5914,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
5913
5914
|
case 'filterSettings':
|
|
5914
5915
|
if (!this.initialRender) {
|
|
5915
5916
|
this.grid.filterSettings = getActualProperties(this.filterSettings);
|
|
5917
|
+
}
|
|
5918
|
+
if (newProp.filterSettings && !isNullOrUndefined(newProp.filterSettings.hierarchyMode)
|
|
5919
|
+
&& oldProp.filterSettings && !isNullOrUndefined(oldProp.filterSettings.hierarchyMode)
|
|
5920
|
+
&& newProp.filterSettings.hierarchyMode !== oldProp.filterSettings.hierarchyMode) {
|
|
5916
5921
|
this.refresh();
|
|
5917
5922
|
}
|
|
5918
5923
|
break;
|
|
@@ -8034,15 +8039,9 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
8034
8039
|
localExpand(action, row, record) {
|
|
8035
8040
|
let rows;
|
|
8036
8041
|
const detailRow = row.nextElementSibling ? row.nextElementSibling.classList.contains('e-detailrow') ? row.nextElementSibling : null : null;
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
}
|
|
8041
|
-
else {
|
|
8042
|
-
childRecords = this.grid.currentViewData.filter((e) => {
|
|
8043
|
-
return e.parentUniqueID === record.uniqueID;
|
|
8044
|
-
});
|
|
8045
|
-
}
|
|
8042
|
+
const childRecords = this.grid.currentViewData.filter((e) => {
|
|
8043
|
+
return e.parentUniqueID === record.uniqueID;
|
|
8044
|
+
});
|
|
8046
8045
|
if (this.isPixelHeight() && row.cells[0].classList.contains('e-lastrowcell')) {
|
|
8047
8046
|
this.lastRowBorder(row, false);
|
|
8048
8047
|
}
|
|
@@ -8116,11 +8115,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
8116
8115
|
this.toggleRowVisibility(freezeRightRows[parseInt(i.toString(), 10)], displayAction);
|
|
8117
8116
|
}
|
|
8118
8117
|
this.notify('childRowExpand', { row: rows[parseInt(i.toString(), 10)] });
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
|
|
8118
|
+
const childRecord = !isNullOrUndefined(childRecords) ? childRecords[parseInt(i.toString(), 10)] : undefined;
|
|
8119
|
+
if (childRecord && (childRecord.childRecords && childRecord.childRecords.length > 0) && (action !== 'expand' ||
|
|
8120
|
+
isNullOrUndefined(childRecord.expanded) || childRecord.expanded)) {
|
|
8121
|
+
this.expandCollapse(action, rows[parseInt(i.toString(), 10)], childRecord, true);
|
|
8122
8122
|
if (this.frozenColumns <= this.treeColumnIndex && !isNullOrUndefined(movableRows)) {
|
|
8123
|
-
this.expandCollapse(action, movableRows[parseInt(i.toString(), 10)],
|
|
8123
|
+
this.expandCollapse(action, movableRows[parseInt(i.toString(), 10)], childRecord, true);
|
|
8124
8124
|
}
|
|
8125
8125
|
}
|
|
8126
8126
|
}
|
|
@@ -16583,7 +16583,9 @@ class InfiniteScroll {
|
|
|
16583
16583
|
const index = getRowIndexFromElement(rows[rows.length - 1]);
|
|
16584
16584
|
const previousPage = this.parent.grid.pageSettings.currentPage;
|
|
16585
16585
|
const nextPage = Math.ceil(index / this.parent.grid.pageSettings.pageSize) + 1;
|
|
16586
|
-
|
|
16586
|
+
const totalVisibleCount = this.visualData ? this.visualData.length : 0;
|
|
16587
|
+
if ((totalVisibleCount > 0 && (index + 1) >= totalVisibleCount) ||
|
|
16588
|
+
(previousPage >= this.maxPage) || (nextPage > this.maxPage)) {
|
|
16587
16589
|
return;
|
|
16588
16590
|
}
|
|
16589
16591
|
this.parent.grid.pageSettings.currentPage = nextPage;
|
|
@@ -16666,6 +16668,7 @@ class InfiniteScroll {
|
|
|
16666
16668
|
const initial = actions.some((value) => { return value === actionArgs.requestType; });
|
|
16667
16669
|
const initialRender = initial ? true : this.parent.initialRender ? true : false;
|
|
16668
16670
|
this.visualData = visualData;
|
|
16671
|
+
this.maxPage = Math.ceil(visualData.length / this.parent.pageSettings.pageSize);
|
|
16669
16672
|
pageingDetails.count = visualData.length;
|
|
16670
16673
|
if (getValue('isPrinting', pageingDetails.actionArgs)) {
|
|
16671
16674
|
pageingDetails.result = visualData;
|