@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.
@@ -8028,9 +8028,7 @@ 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
- console.log('fine chg value -> ', _this.value);
8034
8032
  _this.onChange(_this.value);
8035
8033
  }, 50);
8036
8034
  };
@@ -8040,9 +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
- console.log('fine writeValue -> ', this.formattedAmount);
8042
+ //}
8043
+ // this.onChange(this.value);
8046
8044
  };
8047
8045
  FHCurrencyFieldComponent.prototype.registerOnChange = function (fn) {
8048
8046
  this.onChange = fn;
@@ -8070,7 +8068,6 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
8070
8068
  };
8071
8069
  FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
8072
8070
  if (fractionSize === void 0) { fractionSize = 2; }
8073
- console.log('ini trasform() -> ', value, fractionSize);
8074
8071
  var _a = __read((value || "").toString().split('.'), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
8075
8072
  fraction = fractionSize > 0
8076
8073
  ? ',' + (fraction + '000000').substring(0, fractionSize)
@@ -8078,11 +8075,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
8078
8075
  integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
8079
8076
  if (integer == '')
8080
8077
  integer = '0';
8081
- console.log('fine transform() -> ', value, fractionSize);
8082
- if (fractionSize > 0)
8083
- return integer + fraction;
8084
- else
8085
- return integer;
8078
+ return integer + fraction;
8086
8079
  };
8087
8080
  FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
8088
8081
  try {