@colijnit/corecomponents_v12 260.1.22 → 260.1.24

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,13 @@
6503
6504
  event.preventDefault();
6504
6505
  }
6505
6506
  }
6507
+ var value = String((_a = this.model) !== null && _a !== void 0 ? _a : "");
6508
+ if (this.type === "number" &&
6509
+ this.maxLength > 0 &&
6510
+ value.length >= this.maxLength &&
6511
+ /^\d$/.test(key)) {
6512
+ event.preventDefault();
6513
+ }
6506
6514
  };
6507
6515
  InputTextComponent.prototype.convertWeekToDate = function (weekStr) {
6508
6516
  var match = weekStr.match(/^w0*(\d{1,2})$/i);