@fluxhub/fluxhub-lib 9.0.18 → 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 +3 -10
- 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 +4 -11
- package/esm5/lib/controls/fhcurrencyfield.js +4 -11
- package/fesm2015/fluxhub-fluxhub-lib.js +3 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +3 -10
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -8161,9 +8161,7 @@
|
|
|
8161
8161
|
FHCurrencyFieldComponent.prototype.chg = function () {
|
|
8162
8162
|
var _this = this;
|
|
8163
8163
|
setTimeout(function () {
|
|
8164
|
-
console.log(' chg() -> ', _this.formattedAmount);
|
|
8165
8164
|
_this.value = parseFloat(_this.formattedAmount.split('.').join('').split(',').join('.'));
|
|
8166
|
-
console.log('fine chg value -> ', _this.value);
|
|
8167
8165
|
_this.onChange(_this.value);
|
|
8168
8166
|
}, 50);
|
|
8169
8167
|
};
|
|
@@ -8173,9 +8171,9 @@
|
|
|
8173
8171
|
// if (value !== this.innerValue) {
|
|
8174
8172
|
this.innerValue = value;
|
|
8175
8173
|
this.value = value;
|
|
8176
|
-
console.log(' writeValue() -> ', this.value);
|
|
8177
8174
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8178
|
-
|
|
8175
|
+
//}
|
|
8176
|
+
// this.onChange(this.value);
|
|
8179
8177
|
};
|
|
8180
8178
|
FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
|
|
8181
8179
|
this.onChange = fn;
|
|
@@ -8203,7 +8201,6 @@
|
|
|
8203
8201
|
};
|
|
8204
8202
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8205
8203
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8206
|
-
console.log('ini trasform() -> ', value, fractionSize);
|
|
8207
8204
|
var _a = __read((value || "").toString().split('.'), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8208
8205
|
fraction = fractionSize > 0
|
|
8209
8206
|
? ',' + (fraction + '000000').substring(0, fractionSize)
|
|
@@ -8211,11 +8208,7 @@
|
|
|
8211
8208
|
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
|
|
8212
8209
|
if (integer == '')
|
|
8213
8210
|
integer = '0';
|
|
8214
|
-
|
|
8215
|
-
if (fractionSize > 0)
|
|
8216
|
-
return integer + fraction;
|
|
8217
|
-
else
|
|
8218
|
-
return integer;
|
|
8211
|
+
return integer + fraction;
|
|
8219
8212
|
};
|
|
8220
8213
|
FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
|
|
8221
8214
|
try {
|