@wolkabout/commons 0.3.1 → 0.3.2
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.
|
@@ -2608,7 +2608,7 @@ class LocalizedNumericInputDirective {
|
|
|
2608
2608
|
input(value) {
|
|
2609
2609
|
const val = this.parseValue(value);
|
|
2610
2610
|
this.printValue(val);
|
|
2611
|
-
this.onChange(val ? parseFloat(val) : null);
|
|
2611
|
+
this.onChange(val ? (Math.abs(parseFloat(val)) > Number.MAX_SAFE_INTEGER ? BigInt(val.split('.')[0]) : parseFloat(val)) : null);
|
|
2612
2612
|
}
|
|
2613
2613
|
onBlur() {
|
|
2614
2614
|
this.onTouched(null);
|
|
@@ -2618,7 +2618,7 @@ class LocalizedNumericInputDirective {
|
|
|
2618
2618
|
const value = this.parseValue(previous);
|
|
2619
2619
|
this.printValue(value);
|
|
2620
2620
|
if (this.element.nativeElement.value !== previous) {
|
|
2621
|
-
this.onChange(value ? parseFloat(value) : null);
|
|
2621
|
+
this.onChange(value ? (Math.abs(parseFloat(value)) > Number.MAX_SAFE_INTEGER ? BigInt(value.split('.')[0]) : parseFloat(value)) : null);
|
|
2622
2622
|
}
|
|
2623
2623
|
}
|
|
2624
2624
|
writeValue(value) {
|