@fluxhub/fluxhub-lib 9.0.19 → 9.0.20
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 -12
- 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 -13
- package/esm5/lib/controls/fhcurrencyfield.js +5 -13
- package/fesm2015/fluxhub-fluxhub-lib.js +4 -12
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +4 -12
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -8028,10 +8028,8 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8028
8028
|
FHCurrencyFieldComponent.prototype.chg = function () {
|
|
8029
8029
|
var _this = this;
|
|
8030
8030
|
setTimeout(function () {
|
|
8031
|
-
console.log(' chg() -> ', _this.formattedAmount);
|
|
8032
8031
|
_this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
8033
|
-
|
|
8034
|
-
// this.onChange(this.value);
|
|
8032
|
+
_this.onChange(_this.value);
|
|
8035
8033
|
}, 50);
|
|
8036
8034
|
};
|
|
8037
8035
|
FHCurrencyFieldComponent.prototype.writeValue = function (value) {
|
|
@@ -8040,10 +8038,9 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8040
8038
|
// if (value !== this.innerValue) {
|
|
8041
8039
|
this.innerValue = value;
|
|
8042
8040
|
this.value = value;
|
|
8043
|
-
console.log(' writeValue() -> ', this.value);
|
|
8044
8041
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8045
|
-
|
|
8046
|
-
//this.onChange(this.value);
|
|
8042
|
+
//}
|
|
8043
|
+
// this.onChange(this.value);
|
|
8047
8044
|
};
|
|
8048
8045
|
FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
|
|
8049
8046
|
this.onChange = fn;
|
|
@@ -8071,7 +8068,6 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8071
8068
|
};
|
|
8072
8069
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8073
8070
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8074
|
-
console.log('ini trasform() -> ', value, fractionSize);
|
|
8075
8071
|
var _a = __read((value || "").toString().split('.'), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8076
8072
|
fraction = fractionSize > 0
|
|
8077
8073
|
? ',' + (fraction + '000000').substring(0, fractionSize)
|
|
@@ -8079,11 +8075,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8079
8075
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
8080
8076
|
if (integer == '')
|
|
8081
8077
|
integer = '0';
|
|
8082
|
-
|
|
8083
|
-
if (fractionSize > 0)
|
|
8084
|
-
return integer + fraction;
|
|
8085
|
-
else
|
|
8086
|
-
return integer;
|
|
8078
|
+
return integer + fraction;
|
|
8087
8079
|
};
|
|
8088
8080
|
FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
|
|
8089
8081
|
try {
|