@syncfusion/ej2-treegrid 29.1.37 → 29.2.4
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 +26 -5
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +26 -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 +9 -9
- package/src/treegrid/base/treegrid.d.ts +4 -0
- package/src/treegrid/base/treegrid.js +26 -5
|
@@ -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
|
}
|
|
@@ -4361,6 +4367,7 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
4361
4367
|
this.grid.pagerTemplate = this.pagerTemplate;
|
|
4362
4368
|
this.grid.showColumnMenu = this.showColumnMenu;
|
|
4363
4369
|
this.grid.allowSorting = this.allowSorting;
|
|
4370
|
+
this.grid.allowMultiSorting = this.allowMultiSorting;
|
|
4364
4371
|
this.grid.allowFiltering = this.allowFiltering;
|
|
4365
4372
|
this.grid.enableVirtualization = this.enableVirtualization;
|
|
4366
4373
|
this.grid.enableColumnVirtualization = this.enableColumnVirtualization;
|
|
@@ -6132,20 +6139,34 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
|
|
|
6132
6139
|
}
|
|
6133
6140
|
mergeColumns(storedColumn, columns) {
|
|
6134
6141
|
const persist2 = 'mergeColumns';
|
|
6135
|
-
const mergedColumns = 'mergedColumns';
|
|
6136
6142
|
this.grid[`${persist2}`].apply(this, [storedColumn, columns]);
|
|
6137
|
-
this.grid[`${mergedColumns}`] = true;
|
|
6138
6143
|
}
|
|
6139
6144
|
setFrozenCount() {
|
|
6140
6145
|
const persist3 = 'setFrozenCount';
|
|
6141
|
-
this.grid[`${persist3}`].apply(this
|
|
6146
|
+
this.grid[`${persist3}`].apply(this);
|
|
6142
6147
|
}
|
|
6143
6148
|
splitFrozenCount(columns) {
|
|
6144
6149
|
const persist4 = 'splitFrozenCount';
|
|
6145
|
-
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]);
|
|
6146
6164
|
}
|
|
6147
6165
|
isFrozenGrid() {
|
|
6148
|
-
|
|
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);
|
|
6149
6170
|
}
|
|
6150
6171
|
updateTreeGridModel() {
|
|
6151
6172
|
this.setProperties({ filterSettings: getObject('properties', this.grid.filterSettings) }, true);
|