@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
@@ -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
@@ -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
@@ -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
@@ -1574,7 +1574,8 @@ var meta_entity_MetaEntityAttr = /** @class */ (function () {
1574
1574
  this.lookupEntity = dto.lent;
1575
1575
  this.dataAttr = dto.dattr;
1576
1576
  this.lookupDataAttr = dto.ldattr;
1577
- this.defaultValue = dto.defVal;
1577
+ var isDataType = utils_utils.getDateDataTypes().indexOf(this.dataType);
1578
+ this.defaultValue = dto.defVal && isDataType ? new Date(dto.defVal) : dto.defVal;
1578
1579
  this.isNullable = utils_utils.getIfDefined(dto.nul, this.isNullable);
1579
1580
  this.isEditable = utils_utils.getIfDefined(dto.ied, this.isEditable);
1580
1581
  this.showOnView = utils_utils.getIfDefined(dto.ivis || dto.sov, this.showOnView);
@@ -4011,7 +4012,7 @@ var CellRendererType;
4011
4012
  })(CellRendererType || (CellRendererType = {}));
4012
4013
  var StringCellRendererDefault = function (value, column, cellValueElement, rowElement) {
4013
4014
  var text = value ? value.toString().replace(/\n/g, '\u21B5 ') : '';
4014
- cellValueElement.innerHTML = text;
4015
+ cellValueElement.innerText = text;
4015
4016
  cellValueElement.title = text;
4016
4017
  if (column.align == GridColumnAlign.NONE) {
4017
4018
  cellValueElement.classList.add(cssPrefix + "-cell-value-align-left");
@@ -4030,7 +4031,7 @@ var NumberCellRendererDefault = function (value, column, cellValueElement, rowEl
4030
4031
  strValue = value.toLocaleString();
4031
4032
  }
4032
4033
  }
4033
- cellValueElement.innerHTML = strValue;
4034
+ cellValueElement.innerText = strValue;
4034
4035
  cellValueElement.title = strValue;
4035
4036
  if (column.align == GridColumnAlign.NONE) {
4036
4037
  cellValueElement.classList.add(cssPrefix + "-cell-value-align-right");
@@ -4062,7 +4063,7 @@ var DateTimeCellRendererDefault = function (value, column, cellValueElement, row
4062
4063
  }
4063
4064
  }
4064
4065
  }
4065
- cellValueElement.innerHTML = strValue;
4066
+ cellValueElement.innerText = strValue;
4066
4067
  cellValueElement.title = strValue;
4067
4068
  if (column.align == GridColumnAlign.NONE) {
4068
4069
  cellValueElement.classList.add(cssPrefix + "-cell-value-align-right");
@@ -18289,6 +18290,7 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
18289
18290
  var dataTable = this.getContextDataTable();
18290
18291
  var csb = Object(lib_public_api["i" /* domel */])('select');
18291
18292
  var firstNumericColIndex = null;
18293
+ var optionIndex = 0;
18292
18294
  var _loop_2 = function (i) {
18293
18295
  var column = dataTable.columns.get(i);
18294
18296
  var colLabel = column.label;
@@ -18297,13 +18299,14 @@ var pivot_table_facet_PivotTableFacet = /** @class */ (function (_super) {
18297
18299
  if (allowedTypes && allowedTypes.indexOf(colType) < 0)
18298
18300
  return "continue";
18299
18301
  if (firstNumericColIndex === null && public_api["i" /* utils */].isNumericType(colType)) {
18300
- firstNumericColIndex = i;
18302
+ firstNumericColIndex = optionIndex;
18301
18303
  }
18302
18304
  csb.addChild('option', function (b) {
18303
18305
  b
18304
18306
  .attr('value', colId)
18305
18307
  .text(colLabel);
18306
18308
  });
18309
+ optionIndex++;
18307
18310
  };
18308
18311
  for (var i = 0; i < dataTable.columns.count; i++) {
18309
18312
  _loop_2(i);