@colijnit/corecomponents_v12 12.0.79 → 12.0.80

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.
@@ -7704,6 +7704,7 @@
7704
7704
  _this.placeholder = "";
7705
7705
  _this.type = "text";
7706
7706
  _this.digitsOnly = false;
7707
+ _this.excludePlusMinus = true;
7707
7708
  _this.showClearButton = undefined;
7708
7709
  _this.showPlaceholderOnFocus = true;
7709
7710
  _this.hasOwnLabel = true;
@@ -7751,8 +7752,8 @@
7751
7752
  });
7752
7753
  // exclude some non-digit characters, since input type 'number' still allows the characters -, + and e
7753
7754
  InputTextComponent.prototype.excludeNonDigitChars = function (event) {
7754
- var excludedKeyCodes = [69, 107, 109, 187, 189];
7755
- return !excludedKeyCodes.includes(event.keyCode);
7755
+ var excludedKeys = this.excludePlusMinus ? ['e', '-', '+'] : ['e'];
7756
+ return !excludedKeys.includes(event.key);
7756
7757
  };
7757
7758
  return InputTextComponent;
7758
7759
  }(BaseInputComponent));
@@ -7784,6 +7785,7 @@
7784
7785
  min: [{ type: i0.Input }],
7785
7786
  max: [{ type: i0.Input }],
7786
7787
  digitsOnly: [{ type: i0.Input }],
7788
+ excludePlusMinus: [{ type: i0.Input }],
7787
7789
  showClearButton: [{ type: i0.Input }],
7788
7790
  keyDownWhiteList: [{ type: i0.Input }],
7789
7791
  showPlaceholderOnFocus: [{ type: i0.Input }],