@easyquery/ui 7.2.2-rc01 → 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.2-rc01 (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.2-rc01 (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.2-rc01 (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.2-rc01 (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");