@fluxhub/fluxhub-lib 10.0.73 → 10.0.75
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/fluxhub-fluxhub-lib.umd.js +4 -4
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhcurrencyfield.js +5 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +4 -4
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -8735,7 +8735,8 @@
|
|
|
8735
8735
|
// this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
8736
8736
|
// this.writeValue(this.value);
|
|
8737
8737
|
console.log('transform ini 2 ', _this.value);
|
|
8738
|
-
|
|
8738
|
+
if (_this.decimal != 0)
|
|
8739
|
+
_this.formattedAmount = _this.transform(_this.value, _this.decimal);
|
|
8739
8740
|
}, 0);
|
|
8740
8741
|
console.log('transform fin 2 ', this.formattedAmount);
|
|
8741
8742
|
// Remove or comment this line if you dont want
|
|
@@ -8749,6 +8750,8 @@
|
|
|
8749
8750
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8750
8751
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8751
8752
|
console.log('transform ', value);
|
|
8753
|
+
if (fractionSize == 0)
|
|
8754
|
+
return value + '';
|
|
8752
8755
|
var _a = __read((value || "").toString().split("."), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8753
8756
|
fraction =
|
|
8754
8757
|
fractionSize > 0
|
|
@@ -8757,9 +8760,6 @@
|
|
|
8757
8760
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
|
8758
8761
|
if (integer == "")
|
|
8759
8762
|
integer = "0";
|
|
8760
|
-
console.log('integer ', integer);
|
|
8761
|
-
if (fractionSize == 0)
|
|
8762
|
-
return integer;
|
|
8763
8763
|
return integer + fraction;
|
|
8764
8764
|
};
|
|
8765
8765
|
FHCurrencyFieldComponent.prototype.focus_e = function () {
|