@easyquery/ui 7.2.1-rc04 → 7.2.2-rc02

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-rc04 (https://korzh.com/easyquery/javascript)
2
+ * EasyQuery.JS Community 7.2.2-rc02 (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
@@ -294,7 +294,8 @@ var meta_entity_MetaEntityAttr = /** @class */ (function () {
294
294
  this.lookupEntity = dto.lent;
295
295
  this.dataAttr = dto.dattr;
296
296
  this.lookupDataAttr = dto.ldattr;
297
- this.defaultValue = dto.defVal;
297
+ var isDataType = utils["a" /* utils */].getDateDataTypes().indexOf(this.dataType);
298
+ this.defaultValue = dto.defVal && isDataType ? new Date(dto.defVal) : dto.defVal;
298
299
  this.isNullable = utils["a" /* utils */].getIfDefined(dto.nul, this.isNullable);
299
300
  this.isEditable = utils["a" /* utils */].getIfDefined(dto.ied, this.isEditable);
300
301
  this.showOnView = utils["a" /* utils */].getIfDefined(dto.ivis || dto.sov, this.showOnView);
@@ -2661,6 +2662,9 @@ var EqServerExporter = /** @class */ (function () {
2661
2662
  else {
2662
2663
  requestData.query = query.toJSONData();
2663
2664
  }
2665
+ if (exportOptions.data) {
2666
+ requestData.data = exportOptions.data;
2667
+ }
2664
2668
  var url = this.context.resolveEndpoint('ExportResult', { modelId: modelId, format: format });
2665
2669
  var actionResult = http.post(url, requestData, { responseType: this.responseType });
2666
2670
  var request = actionResult.getRequest();
@@ -14223,7 +14227,7 @@ var CellRendererType;
14223
14227
  })(CellRendererType || (CellRendererType = {}));
14224
14228
  var StringCellRendererDefault = function (value, column, cellValueElement, rowElement) {
14225
14229
  var text = value ? value.toString().replace(/\n/g, '\u21B5 ') : '';
14226
- cellValueElement.innerHTML = text;
14230
+ cellValueElement.innerText = text;
14227
14231
  cellValueElement.title = text;
14228
14232
  if (column.align == _easy_grid_columns__WEBPACK_IMPORTED_MODULE_1__[/* GridColumnAlign */ "b"].NONE) {
14229
14233
  cellValueElement.classList.add(cssPrefix + "-cell-value-align-left");
@@ -14242,7 +14246,7 @@ var NumberCellRendererDefault = function (value, column, cellValueElement, rowEl
14242
14246
  strValue = value.toLocaleString();
14243
14247
  }
14244
14248
  }
14245
- cellValueElement.innerHTML = strValue;
14249
+ cellValueElement.innerText = strValue;
14246
14250
  cellValueElement.title = strValue;
14247
14251
  if (column.align == _easy_grid_columns__WEBPACK_IMPORTED_MODULE_1__[/* GridColumnAlign */ "b"].NONE) {
14248
14252
  cellValueElement.classList.add(cssPrefix + "-cell-value-align-right");
@@ -14274,7 +14278,7 @@ var DateTimeCellRendererDefault = function (value, column, cellValueElement, row
14274
14278
  }
14275
14279
  }
14276
14280
  }
14277
- cellValueElement.innerHTML = strValue;
14281
+ cellValueElement.innerText = strValue;
14278
14282
  cellValueElement.title = strValue;
14279
14283
  if (column.align == _easy_grid_columns__WEBPACK_IMPORTED_MODULE_1__[/* GridColumnAlign */ "b"].NONE) {
14280
14284
  cellValueElement.classList.add(cssPrefix + "-cell-value-align-right");
@@ -25789,6 +25793,7 @@ var PivotTableFacet = /** @class */ (function (_super) {
25789
25793
  var dataTable = this.getContextDataTable();
25790
25794
  var csb = Object(_easydata_ui__WEBPACK_IMPORTED_MODULE_0__["domel"])('select');
25791
25795
  var firstNumericColIndex = null;
25796
+ var optionIndex = 0;
25792
25797
  var _loop_2 = function (i) {
25793
25798
  var column = dataTable.columns.get(i);
25794
25799
  var colLabel = column.label;
@@ -25797,13 +25802,14 @@ var PivotTableFacet = /** @class */ (function (_super) {
25797
25802
  if (allowedTypes && allowedTypes.indexOf(colType) < 0)
25798
25803
  return "continue";
25799
25804
  if (firstNumericColIndex === null && _easydata_core__WEBPACK_IMPORTED_MODULE_1__["utils"].isNumericType(colType)) {
25800
- firstNumericColIndex = i;
25805
+ firstNumericColIndex = optionIndex;
25801
25806
  }
25802
25807
  csb.addChild('option', function (b) {
25803
25808
  b
25804
25809
  .attr('value', colId)
25805
25810
  .text(colLabel);
25806
25811
  });
25812
+ optionIndex++;
25807
25813
  };
25808
25814
  for (var i = 0; i < dataTable.columns.count; i++) {
25809
25815
  _loop_2(i);