@easyquery/ui 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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * EasyQuery.JS Community 7.2.0-rc02 (https://korzh.com/easyquery/javascript)
2
+ * EasyQuery.JS Community 7.2.0-rc03 (https://korzh.com/easyquery/javascript)
3
3
  * Copyright 2021 Korzh.com. All rights reserved.
4
4
  *
5
5
  * EasyQuery.JS commercial licenses may be obtained at
@@ -1,5 +1,5 @@
1
1
  /**
2
- * EasyQuery.JS Community 7.2.0-rc02 (https://korzh.com/easyquery/javascript)
2
+ * EasyQuery.JS Community 7.2.0-rc03 (https://korzh.com/easyquery/javascript)
3
3
  * Copyright 2021 Korzh.com. All rights reserved.
4
4
  *
5
5
  * EasyQuery.JS commercial licenses may be obtained at
@@ -1,5 +1,5 @@
1
1
  /**
2
- * EasyQuery.JS Community 7.2.0-rc02 (https://korzh.com/easyquery/javascript)
2
+ * EasyQuery.JS Community 7.2.0-rc03 (https://korzh.com/easyquery/javascript)
3
3
  * Copyright 2021 Korzh.com. All rights reserved.
4
4
  *
5
5
  * EasyQuery.JS commercial licenses may be obtained at
@@ -1,5 +1,5 @@
1
1
  /**
2
- * EasyQuery.JS Community 7.2.0-rc02 (https://korzh.com/easyquery/javascript)
2
+ * EasyQuery.JS Community 7.2.0-rc03 (https://korzh.com/easyquery/javascript)
3
3
  * Copyright 2021 Korzh.com. All rights reserved.
4
4
  *
5
5
  * EasyQuery.JS commercial licenses may be obtained at
@@ -2659,6 +2659,7 @@ var easy_data_table_EasyDataTable = /** @class */ (function () {
2659
2659
  this.cachedRows = [];
2660
2660
  this.total = 0;
2661
2661
  this.needTotal = !this._elasticChunks;
2662
+ this.fireUpdated();
2662
2663
  };
2663
2664
  EasyDataTable.prototype.createRow = function (dataOrRow) {
2664
2665
  var _this = this;
@@ -4342,7 +4343,7 @@ var easy_grid_EasyGrid = /** @class */ (function () {
4342
4343
  pageSizeItems: [20, 30, 50, 100, 200]
4343
4344
  },
4344
4345
  columnWidths: {
4345
- autoResize: AutoResizeColumns.Once,
4346
+ autoResize: AutoResizeColumns.Always,
4346
4347
  stringColumns: {
4347
4348
  min: 100,
4348
4349
  max: 500,
@@ -4580,9 +4581,6 @@ var easy_grid_EasyGrid = /** @class */ (function () {
4580
4581
  .then(function () {
4581
4582
  _this.firstRender = false;
4582
4583
  _this.rowsOnPagePromise = null;
4583
- if (needAutoResize) {
4584
- _this.resizeColumns();
4585
- }
4586
4584
  });
4587
4585
  }
4588
4586
  else {
@@ -4755,9 +4753,15 @@ var easy_grid_EasyGrid = /** @class */ (function () {
4755
4753
  _this.updateTotalsState(groups_1, row, true);
4756
4754
  }
4757
4755
  }
4758
- var containerWidth = _this.getContainerWidth();
4759
- domel(_this.bodyCellContainerDiv)
4760
- .setStyle('width', containerWidth + "px");
4756
+ var needAutoResize = _this.options.columnWidths.autoResize !== AutoResizeColumns.Never;
4757
+ if (needAutoResize) {
4758
+ _this.resizeColumns();
4759
+ }
4760
+ else {
4761
+ var containerWidth = _this.getContainerWidth();
4762
+ domel(_this.bodyCellContainerDiv)
4763
+ .setStyle('width', containerWidth + "px");
4764
+ }
4761
4765
  return rowsToRender;
4762
4766
  })
4763
4767
  .catch(function (error) { console.error(error); return 0; });
@@ -19048,6 +19052,9 @@ var result_facets_panel_ResultFacetsPanel = /** @class */ (function (_super) {
19048
19052
  ResultFacetsPanel.prototype.attachQueryObserver = function () {
19049
19053
  var _this = this;
19050
19054
  var query = this.getQuery();
19055
+ if (this.queryEventCallbackId) {
19056
+ query.removeChangedCallback(this.queryEventCallbackId);
19057
+ }
19051
19058
  this.queryEventCallbackId = query.addChangedCallback(function (event) {
19052
19059
  //if something has changed, and that change is related to columns
19053
19060
  var edata = event.data;
@@ -22061,6 +22068,7 @@ var report_view_ReportView = /** @class */ (function (_super) {
22061
22068
  var query = self.context.getQuery();
22062
22069
  var reportLoaded = function () {
22063
22070
  _this.renderReportProps();
22071
+ _this.context.resultTable.clear();
22064
22072
  query.fireChangedEvent({
22065
22073
  part: external_easyqueryCore_["QueryChangePart"].All,
22066
22074
  noSync: true,