@fluxhub/fluxhub-lib 9.0.13 → 9.0.14
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 +2 -0
- 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 +3 -1
- package/esm5/lib/controls/fhcurrencyfield.js +3 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +2 -0
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +2 -0
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/package.json +1 -1
|
@@ -8071,6 +8071,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8071
8071
|
};
|
|
8072
8072
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8073
8073
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8074
|
+
console.log('ini trasform() -> ', value, fractionSize);
|
|
8074
8075
|
var _a = __read((value || "").toString().split('.'), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8075
8076
|
fraction = fractionSize > 0
|
|
8076
8077
|
? ',' + (fraction + '000000').substring(0, fractionSize)
|
|
@@ -8078,6 +8079,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8078
8079
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
8079
8080
|
if (integer == '')
|
|
8080
8081
|
integer = '0';
|
|
8082
|
+
console.log('fine transform() -> ', value, fractionSize);
|
|
8081
8083
|
if (fractionSize > 0)
|
|
8082
8084
|
return integer + fraction;
|
|
8083
8085
|
else
|