@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.
- package/bundles/colijnit-corecomponents_v12.umd.js +4 -2
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/lib/components/input-text/input-text.component.js +5 -3
- package/fesm2015/colijnit-corecomponents_v12.js +4 -2
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/input-text/input-text.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
7755
|
-
return !
|
|
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 }],
|