@datorama/core 22.7.1 → 22.7.2

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.
@@ -14266,7 +14266,7 @@ var GridService = /** @class */ (function () {
14266
14266
  }
14267
14267
  };
14268
14268
  GridService.prototype.setGridSort = function (gridSort) {
14269
- if (this.api && gridSort) {
14269
+ if (gridSort && this.api && this.api.grid.getDisplayedRowCount() > 0) {
14270
14270
  var colId_1 = gridSort.colId, sort = gridSort.sort, sortIndex = gridSort.sortIndex;
14271
14271
  var sortToApply = gridSort;
14272
14272
  if (!isNil(sortIndex)) {
@@ -14278,7 +14278,9 @@ var GridService = /** @class */ (function () {
14278
14278
  if (isPivotColId || valueColumn) {
14279
14279
  /** Column is pivot value column, sort by index */
14280
14280
  var columnByIndex = gridColumns[sortIndex];
14281
- if (columnByIndex) {
14281
+ var pivotValueColumn = columnByIndex && columnByIndex.getColDef().pivotValueColumn;
14282
+ var pivotValueColumnId = pivotValueColumn && pivotValueColumn.getColId();
14283
+ if (pivotValueColumnId === colId_1) {
14282
14284
  sortToApply = { colId: columnByIndex.getColId(), sort: sort };
14283
14285
  }
14284
14286
  }
@@ -25237,7 +25239,7 @@ function fixNgLeaks() {
25237
25239
  };
25238
25240
  }
25239
25241
 
25240
- window.coreVersion = '22.7.1';
25242
+ window.coreVersion = '22.7.2';
25241
25243
 
25242
25244
  /**
25243
25245
  * @license