@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.
@@ -8161,10 +8161,8 @@
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
- // this.onChange(this.value);
8165
+ _this.onChange(_this.value);
8168
8166
  }, 50);
8169
8167
  };
8170
8168
  FHCurrencyFieldComponent.prototype.writeValue = function (value) {
@@ -8173,10 +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
- console.log('fine writeValue -> ', this.formattedAmount);
8179
- //this.onChange(this.value);
8175
+ //}
8176
+ // this.onChange(this.value);
8180
8177
  };
8181
8178
  FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
8182
8179
  this.onChange = fn;
@@ -8204,7 +8201,6 @@
8204
8201
  };
8205
8202
  FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
8206
8203
  if (fractionSize === void 0) { fractionSize = 2; }
8207
- console.log('ini trasform() -> ', value, fractionSize);
8208
8204
  var _a = __read((value || "").toString().split('.'), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
8209
8205
  fraction = fractionSize > 0
8210
8206
  ? ',' + (fraction + '000000').substring(0, fractionSize)
@@ -8212,11 +8208,7 @@
8212
8208
  integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
8213
8209
  if (integer == '')
8214
8210
  integer = '0';
8215
- console.log('fine transform() -> ', value, fractionSize);
8216
- if (fractionSize > 0)
8217
- return integer + fraction;
8218
- else
8219
- return integer;
8211
+ return integer + fraction;
8220
8212
  };
8221
8213
  FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
8222
8214
  try {