@colijnit/corecomponents_v12 257.1.16 → 257.1.17

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.
@@ -2358,6 +2358,16 @@
2358
2358
  enumerable: false,
2359
2359
  configurable: true
2360
2360
  });
2361
+ Object.defineProperty(BaseInputComponent.prototype, "defaultValue", {
2362
+ get: function () {
2363
+ return this._defaultValue;
2364
+ },
2365
+ set: function (defaultValue) {
2366
+ this._defaultValue = defaultValue;
2367
+ },
2368
+ enumerable: false,
2369
+ configurable: true
2370
+ });
2361
2371
  Object.defineProperty(BaseInputComponent.prototype, "readonly", {
2362
2372
  get: function () {
2363
2373
  return this.forceReadonly || this._readonly;
@@ -3145,6 +3155,7 @@
3145
3155
  businessObjectId: [{ type: i0.Input }],
3146
3156
  disabled: [{ type: i0.Input }],
3147
3157
  maxLength: [{ type: i0.Input }],
3158
+ defaultValue: [{ type: i0.Input }],
3148
3159
  forcedMaxLength: [{ type: i0.Input }],
3149
3160
  readonly: [{ type: i0.Input }],
3150
3161
  forceReadonly: [{ type: i0.Input }],
@@ -13805,7 +13816,7 @@
13805
13816
  };
13806
13817
  BaseModuleScreenConfigService.prototype.getDefaultValue = function (configName) {
13807
13818
  var objectConfig = this._objectConfigsMap.get(configName);
13808
- return objectConfig ? objectConfig.getDefaultValue() : undefined;
13819
+ return objectConfig ? objectConfig.defaultValue : undefined;
13809
13820
  };
13810
13821
  BaseModuleScreenConfigService.prototype.getDefaultStringValue = function (configName) {
13811
13822
  var objectConfig = this._objectConfigsMap.get(configName);
@@ -14042,6 +14053,7 @@
14042
14053
  this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
14043
14054
  this.hostComponent.decimals = myCfgObj.scale;
14044
14055
  this.hostComponent.maxLength = myCfgObj.maxLength;
14056
+ this.hostComponent.defaultValue = myCfgObj.defaultValue;
14045
14057
  if ('configObject' in this.hostComponent) {
14046
14058
  this.hostComponent.configObject = myCfgObj;
14047
14059
  }