@colijnit/corecomponents_v12 260.1.21 → 260.1.23

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.
@@ -6465,6 +6465,7 @@
6465
6465
  this.clearIconClick.emit(event);
6466
6466
  };
6467
6467
  InputTextComponent.prototype.handleKeyDownInput = function (event) {
6468
+ var _a;
6468
6469
  var key = event.key.toLowerCase();
6469
6470
  if (this.type === 'date') {
6470
6471
  if (key === 'w') {
@@ -6503,6 +6504,9 @@
6503
6504
  event.preventDefault();
6504
6505
  }
6505
6506
  }
6507
+ if (this.type === 'number' && ((_a = this.model) === null || _a === void 0 ? void 0 : _a.length) === this.maxLength && /^\d$/.test(key)) {
6508
+ event.preventDefault();
6509
+ }
6506
6510
  };
6507
6511
  InputTextComponent.prototype.convertWeekToDate = function (weekStr) {
6508
6512
  var match = weekStr.match(/^w0*(\d{1,2})$/i);
@@ -14904,7 +14908,7 @@
14904
14908
  this._setHostVisible(myCfgObj.immediatelyVisible());
14905
14909
  if (!this.screenConfigNativeElement) {
14906
14910
  this.hostComponent.required = this.hostComponent.required || myCfgObj.isRequired();
14907
- this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
14911
+ this.hostComponent.readonly = this._moduleInReadonlyMode() || myCfgObj.isReadonly();
14908
14912
  this.hostComponent.decimals = myCfgObj.scale;
14909
14913
  this.hostComponent.maxLength = myCfgObj.maxLength;
14910
14914
  this.hostComponent.defaultValue = myCfgObj.defaultValue;