@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.
@@ -286,7 +286,8 @@ var meta_entity_MetaEntityAttr = /** @class */ (function () {
286
286
  this.lookupEntity = dto.lent;
287
287
  this.dataAttr = dto.dattr;
288
288
  this.lookupDataAttr = dto.ldattr;
289
- this.defaultValue = dto.defVal;
289
+ var isDataType = utils["a" /* utils */].getDateDataTypes().indexOf(this.dataType);
290
+ this.defaultValue = dto.defVal && isDataType ? new Date(dto.defVal) : dto.defVal;
290
291
  this.isNullable = utils["a" /* utils */].getIfDefined(dto.nul, this.isNullable);
291
292
  this.isEditable = utils["a" /* utils */].getIfDefined(dto.ied, this.isEditable);
292
293
  this.showOnView = utils["a" /* utils */].getIfDefined(dto.ivis || dto.sov, this.showOnView);