@easyquery/ui 7.2.1-rc03 → 7.2.2-rc01

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.1-rc03 (https://korzh.com/easyquery/javascript)
2
+ * EasyQuery.JS Community 7.2.2-rc01 (https://korzh.com/easyquery/javascript)
3
3
  * Copyright 2022 Korzh.com. All rights reserved.
4
4
  *
5
5
  * EasyQuery.JS commercial licenses may be obtained at
@@ -3221,7 +3221,6 @@ var context_EqContext = /** @class */ (function () {
3221
3221
  /**
3222
3222
  * If `defaultModelId` property is define - this method calls `loadModel` function in the broker
3223
3223
  * to load the model with such ID.
3224
- *
3225
3224
  */
3226
3225
  EqContext.prototype.loadDefaultModel = function () {
3227
3226
  var _this = this;
@@ -25790,6 +25789,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
25790
25789
  var dataTable = this.getContextDataTable();
25791
25790
  var csb = Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_0__["domel"])('select');
25792
25791
  var firstNumericColIndex = null;
25792
+ var optionIndex = 0;
25793
25793
  var _loop_2 = function (i) {
25794
25794
  var column = dataTable.columns.get(i);
25795
25795
  var colLabel = column.label;
@@ -25798,13 +25798,14 @@ var PivotTableFacet = /** @class */ (function (_super) {
25798
25798
  if (allowedTypes && allowedTypes.indexOf(colType) < 0)
25799
25799
  return "continue";
25800
25800
  if (firstNumericColIndex === null && _easydata_core__WEBPACK_IMPORTED_MODULE_1__["utils"].isNumericType(colType)) {
25801
- firstNumericColIndex = i;
25801
+ firstNumericColIndex = optionIndex;
25802
25802
  }
25803
25803
  csb.addChild('option', function (b) {
25804
25804
  b
25805
25805
  .attr('value', colId)
25806
25806
  .text(colLabel);
25807
25807
  });
25808
+ optionIndex++;
25808
25809
  };
25809
25810
  for (var i = 0; i < dataTable.columns.count; i++) {
25810
25811
  _loop_2(i);
@@ -34689,13 +34690,12 @@ var data_filter_view_extends = (undefined && undefined.__extends) || (function (
34689
34690
  var data_filter_view_DataFilterView = /** @class */ (function (_super) {
34690
34691
  data_filter_view_extends(DataFilterView, _super);
34691
34692
  function DataFilterView() {
34692
- var _this = _super.call(this) || this;
34693
- _this.resultOptions.fetchEmptyQueries = true;
34694
- return _this;
34693
+ return _super.call(this) || this;
34695
34694
  }
34696
34695
  DataFilterView.prototype.initOptions = function (options) {
34697
34696
  var _this = this;
34698
34697
  options = _super.prototype.initOptions.call(this, options);
34698
+ options.result.fetchEmptyQueries = true;
34699
34699
  var query = this.context.getQuery();
34700
34700
  query.addChangedCallback(function () {
34701
34701
  if (_this.resultOptions.clearResultOnQueryChange) {
@@ -34769,9 +34769,7 @@ var html_data_filter_view_extends = (undefined && undefined.__extends) || (funct
34769
34769
  var html_data_filter_view_HtmlDataFilterView = /** @class */ (function (_super) {
34770
34770
  html_data_filter_view_extends(HtmlDataFilterView, _super);
34771
34771
  function HtmlDataFilterView() {
34772
- var _this = _super.call(this) || this;
34773
- _this.resultOptions.fetchEmptyQueries = true;
34774
- return _this;
34772
+ return _super.call(this) || this;
34775
34773
  }
34776
34774
  /**
34777
34775
  * Creates the widget that represents Grid Widget.