@syncfusion/ej2-treegrid 29.1.39 → 29.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 +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 +37 -20
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +37 -20
- 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 +15 -51
- package/src/treegrid/actions/sort.js +6 -1
- package/src/treegrid/base/interface.d.ts +5 -1
- package/src/treegrid/base/treegrid-model.d.ts +1 -1
- package/src/treegrid/base/treegrid.d.ts +4 -0
- package/src/treegrid/base/treegrid.js +27 -5
- package/src/treegrid/renderer/virtual-row-model-generator.js +4 -15
- package/src/treegrid/renderer/virtual-tree-content-render.js +1 -0
|
@@ -3462,6 +3462,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3462
3462
|
this.isFromChartSide = false;
|
|
3463
3463
|
this.modifiedRecords = [];
|
|
3464
3464
|
this.stackedHeader = false;
|
|
3465
|
+
this.freezeColumnRefresh = true;
|
|
3465
3466
|
this.objectEqualityChecker = (old, current) => {
|
|
3466
3467
|
if (old) {
|
|
3467
3468
|
const keys = Object.keys(old);
|
|
@@ -3896,6 +3897,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3896
3897
|
this.columnModel = [];
|
|
3897
3898
|
this.isExpandAll = false;
|
|
3898
3899
|
this.isCollapseAll = false;
|
|
3900
|
+
this.freezeColumnRefresh = true;
|
|
3899
3901
|
this.keyConfigs = {
|
|
3900
3902
|
ctrlDownArrow: 'ctrl+downarrow',
|
|
3901
3903
|
ctrlUpArrow: 'ctrl+uparrow',
|
|
@@ -3938,6 +3940,10 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
3938
3940
|
requiredModules() {
|
|
3939
3941
|
const modules = [];
|
|
3940
3942
|
const splitFrozenCount = 'splitFrozenCount';
|
|
3943
|
+
const mergedColumns = 'mergedColumns';
|
|
3944
|
+
if (this[`${mergedColumns}`]) {
|
|
3945
|
+
this.grid[`${mergedColumns}`] = this[`${mergedColumns}`];
|
|
3946
|
+
}
|
|
3941
3947
|
if (isNullOrUndefined(this['changedProperties'].columns)) {
|
|
3942
3948
|
this.grid[`${splitFrozenCount}`](this.getColumns());
|
|
3943
3949
|
}
|
|
@@ -4864,12 +4870,12 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4864
4870
|
this.grid.refresh();
|
|
4865
4871
|
}
|
|
4866
4872
|
if (args.action === 'filter') {
|
|
4867
|
-
if (this.filterModule['currentFilterObject'] !== '' && this.enableVirtualization && !this.initialRender && !(isRemoteData(this) && this.enableVirtualization)) {
|
|
4873
|
+
if (!args.isCollapseMaintain && this.filterModule['currentFilterObject'] !== '' && this.enableVirtualization && !this.initialRender && !(isRemoteData(this) && this.enableVirtualization)) {
|
|
4868
4874
|
this.expandAll();
|
|
4869
4875
|
}
|
|
4870
4876
|
}
|
|
4871
4877
|
if (args.requestType === 'searching') {
|
|
4872
|
-
if (this.searchSettings.key !== '' && this.enableVirtualization && !this.initialRender && !(isRemoteData(this) && this.enableVirtualization)) {
|
|
4878
|
+
if (!args.isCollapseMaintain && this.searchSettings.key !== '' && this.enableVirtualization && !this.initialRender && !(isRemoteData(this) && this.enableVirtualization)) {
|
|
4873
4879
|
this.expandAll();
|
|
4874
4880
|
}
|
|
4875
4881
|
}
|
|
@@ -6137,14 +6143,30 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6137
6143
|
}
|
|
6138
6144
|
setFrozenCount() {
|
|
6139
6145
|
const persist3 = 'setFrozenCount';
|
|
6140
|
-
this.grid[`${persist3}`].apply(this
|
|
6146
|
+
this.grid[`${persist3}`].apply(this);
|
|
6141
6147
|
}
|
|
6142
6148
|
splitFrozenCount(columns) {
|
|
6143
6149
|
const persist4 = 'splitFrozenCount';
|
|
6144
|
-
this.
|
|
6150
|
+
const instance = this.frozenColumns > 0 ? this.grid : this;
|
|
6151
|
+
this.grid[`${persist4}`].apply(instance, [columns]);
|
|
6152
|
+
}
|
|
6153
|
+
removeBorder(columns) {
|
|
6154
|
+
const persist5 = 'removeBorder';
|
|
6155
|
+
this.grid[`${persist5}`].apply(this.grid, [columns]);
|
|
6156
|
+
}
|
|
6157
|
+
frozenLeftBorderColumns(columns) {
|
|
6158
|
+
const persist6 = 'frozenLeftBorderColumns';
|
|
6159
|
+
this.grid[`${persist6}`].apply(this.grid, [columns]);
|
|
6160
|
+
}
|
|
6161
|
+
frozenRightBorderColumns(columns) {
|
|
6162
|
+
const persist7 = 'frozenRightBorderColumns';
|
|
6163
|
+
this.grid[`${persist7}`].apply(this.grid, [columns]);
|
|
6145
6164
|
}
|
|
6146
6165
|
isFrozenGrid() {
|
|
6147
|
-
|
|
6166
|
+
const hasFreezeProp = Array.isArray(this.columns) &&
|
|
6167
|
+
this.columns.some((col) => !!col.freeze);
|
|
6168
|
+
return (this.frozenColumns > 0 || this.frozenRows > 0 || this.getFrozenColumns() > 0 ||
|
|
6169
|
+
hasFreezeProp);
|
|
6148
6170
|
}
|
|
6149
6171
|
updateTreeGridModel() {
|
|
6150
6172
|
this.setProperties({ filterSettings: getObject('properties', this.grid.filterSettings) }, true);
|
|
@@ -10237,22 +10259,11 @@ class TreeVirtualRowModelGenerator extends VirtualRowModelGenerator {
|
|
|
10237
10259
|
return super.getData();
|
|
10238
10260
|
}
|
|
10239
10261
|
generateRows(data, notifyArgs) {
|
|
10240
|
-
if (!isNullOrUndefined(notifyArgs.virtualInfo) && notifyArgs.virtualInfo.loadNext &&
|
|
10241
|
-
notifyArgs.virtualInfo.nextInfo.page !== this.parent.pageSettings.currentPage) {
|
|
10242
|
-
this.parent.setProperties({ pageSettings: { currentPage: notifyArgs.virtualInfo.nextInfo.page } }, true);
|
|
10243
|
-
}
|
|
10244
|
-
else if (!isNullOrUndefined(notifyArgs.virtualInfo) && !notifyArgs.virtualInfo.loadNext &&
|
|
10245
|
-
notifyArgs.virtualInfo.page !== this.parent.pageSettings.currentPage) {
|
|
10246
|
-
this.parent.setProperties({ pageSettings: { currentPage: notifyArgs.virtualInfo.page } }, true);
|
|
10247
|
-
}
|
|
10248
10262
|
const info = this.getDataInfo();
|
|
10249
10263
|
if (!isNullOrUndefined(notifyArgs.virtualInfo)) {
|
|
10250
|
-
if (
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|| notifyArgs.virtualInfo.blockIndexes.length === 1) {
|
|
10254
|
-
notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
|
|
10255
|
-
}
|
|
10264
|
+
if ((!isRemoteData(this.parent.root) || isCountRequired(this.parent))
|
|
10265
|
+
|| notifyArgs.virtualInfo.blockIndexes.length === 1) {
|
|
10266
|
+
notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
|
|
10256
10267
|
}
|
|
10257
10268
|
else {
|
|
10258
10269
|
notifyArgs.virtualInfo.blockIndexes = this.getBlockIndexes(notifyArgs.virtualInfo.page);
|
|
@@ -11560,8 +11571,13 @@ class Sort {
|
|
|
11560
11571
|
this.flatSortedData = [];
|
|
11561
11572
|
}
|
|
11562
11573
|
iterateSort(data, srtQry) {
|
|
11574
|
+
const gridQuery = this.parent.query;
|
|
11575
|
+
let filterQuery = [];
|
|
11576
|
+
if (!isNullOrUndefined(gridQuery)) {
|
|
11577
|
+
filterQuery = gridQuery.queries.filter((q) => q.fn === 'onWhere');
|
|
11578
|
+
}
|
|
11563
11579
|
for (let d = 0; d < data.length; d++) {
|
|
11564
|
-
if (this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
|
|
11580
|
+
if (filterQuery.length > 0 || this.parent.grid.filterSettings.columns.length > 0 || this.parent.grid.searchSettings.key !== '') {
|
|
11565
11581
|
if (!isNullOrUndefined(getParentData(this.parent, data[parseInt(d.toString(), 10)].uniqueID, true))) {
|
|
11566
11582
|
this.storedIndex++;
|
|
11567
11583
|
this.flatSortedData[this.storedIndex] = data[parseInt(d.toString(), 10)];
|
|
@@ -14389,6 +14405,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
|
|
|
14389
14405
|
|| (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
|
|
14390
14406
|
&& this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
|
|
14391
14407
|
this.parent.removeMaskRow();
|
|
14408
|
+
this.parent.notify('removeGanttShimmer', { requestType: 'hideShimmer' });
|
|
14392
14409
|
if (Browser.isIE) {
|
|
14393
14410
|
this.parent.hideSpinner();
|
|
14394
14411
|
}
|