@easydata/crud 1.4.3 → 1.4.4

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.
@@ -1653,7 +1653,8 @@ var meta_entity_MetaEntityAttr = /** @class */ (function () {
1653
1653
  this.lookupEntity = dto.lent;
1654
1654
  this.dataAttr = dto.dattr;
1655
1655
  this.lookupDataAttr = dto.ldattr;
1656
- this.defaultValue = dto.defVal;
1656
+ var isDataType = utils_utils.getDateDataTypes().indexOf(this.dataType);
1657
+ this.defaultValue = dto.defVal && isDataType ? new Date(dto.defVal) : dto.defVal;
1657
1658
  this.isNullable = utils_utils.getIfDefined(dto.nul, this.isNullable);
1658
1659
  this.isEditable = utils_utils.getIfDefined(dto.ied, this.isEditable);
1659
1660
  this.showOnView = utils_utils.getIfDefined(dto.ivis || dto.sov, this.showOnView);