@easyquery/enterprise 7.2.0-rc02 → 7.2.0-rc03

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.
@@ -2740,6 +2740,7 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
2740
2740
  this.cachedRows = [];
2741
2741
  this.total = 0;
2742
2742
  this.needTotal = !this._elasticChunks;
2743
+ this.fireUpdated();
2743
2744
  };
2744
2745
  EasyDataTable.prototype.createRow = function (dataOrRow) {
2745
2746
  var _this = this;
@@ -4389,7 +4390,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
4389
4390
  pageSizeItems: [20, 30, 50, 100, 200]
4390
4391
  },
4391
4392
  columnWidths: {
4392
- autoResize: AutoResizeColumns.Once,
4393
+ autoResize: AutoResizeColumns.Always,
4393
4394
  stringColumns: {
4394
4395
  min: 100,
4395
4396
  max: 500,
@@ -4627,9 +4628,6 @@ var easy_grid_EasyGrid = /** @class */ (function () {
4627
4628
  .then(function () {
4628
4629
  _this.firstRender = false;
4629
4630
  _this.rowsOnPagePromise = null;
4630
- if (needAutoResize) {
4631
- _this.resizeColumns();
4632
- }
4633
4631
  });
4634
4632
  }
4635
4633
  else {
@@ -4802,9 +4800,15 @@ var easy_grid_EasyGrid = /** @class */ (function () {
4802
4800
  _this.updateTotalsState(groups_1, row, true);
4803
4801
  }
4804
4802
  }
4805
- var containerWidth = _this.getContainerWidth();
4806
- domel(_this.bodyCellContainerDiv)
4807
- .setStyle('width', containerWidth + "px");
4803
+ var needAutoResize = _this.options.columnWidths.autoResize !== AutoResizeColumns.Never;
4804
+ if (needAutoResize) {
4805
+ _this.resizeColumns();
4806
+ }
4807
+ else {
4808
+ var containerWidth = _this.getContainerWidth();
4809
+ domel(_this.bodyCellContainerDiv)
4810
+ .setStyle('width', containerWidth + "px");
4811
+ }
4808
4812
  return rowsToRender;
4809
4813
  })
4810
4814
  .catch(function (error) { console.error(error); return 0; });
@@ -7331,17 +7335,19 @@ var data_table_aggr_calculator_DataTableAggregatesCalculator = /** @class */ (fu
7331
7335
  this.levelsTotals.push(levelTotals);
7332
7336
  }
7333
7337
  var allRows = this.context.resultTable.getCachedRows();
7334
- for (var _i = 0, allRows_1 = allRows; _i < allRows_1.length; _i++) {
7335
- var row = allRows_1[_i];
7336
- this.processDataRow(row);
7337
- }
7338
- //flusing the totals for all group levels
7339
- for (var levelIndex = 1; levelIndex < levelNumber; levelIndex++) {
7340
- this.flushLevelTotals(levelIndex);
7341
- }
7342
- //flusing the grand totals (if they are turned on)
7343
- if (this.aggrSettings.hasGrandTotals()) {
7344
- this.flushLevelTotals(0);
7338
+ if (allRows.length > 0) {
7339
+ for (var _i = 0, allRows_1 = allRows; _i < allRows_1.length; _i++) {
7340
+ var row = allRows_1[_i];
7341
+ this.processDataRow(row);
7342
+ }
7343
+ //flusing the totals for all group levels
7344
+ for (var levelIndex = 1; levelIndex < levelNumber; levelIndex++) {
7345
+ this.flushLevelTotals(levelIndex);
7346
+ }
7347
+ //flusing the grand totals (if they are turned on)
7348
+ if (this.aggrSettings.hasGrandTotals()) {
7349
+ this.flushLevelTotals(0);
7350
+ }
7345
7351
  }
7346
7352
  return Promise.resolve();
7347
7353
  };