@fluxhub/fluxhub-lib 10.0.74 → 10.0.75

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.
@@ -8735,7 +8735,8 @@
8735
8735
  // this.value = parseFloat(this.formattedAmount.split('.').join('').split(',').join('.'));
8736
8736
  // this.writeValue(this.value);
8737
8737
  console.log('transform ini 2 ', _this.value);
8738
- _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8738
+ if (_this.decimal != 0)
8739
+ _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8739
8740
  }, 0);
8740
8741
  console.log('transform fin 2 ', this.formattedAmount);
8741
8742
  // Remove or comment this line if you dont want
@@ -8749,6 +8750,8 @@
8749
8750
  FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
8750
8751
  if (fractionSize === void 0) { fractionSize = 2; }
8751
8752
  console.log('transform ', value);
8753
+ if (fractionSize == 0)
8754
+ return value + '';
8752
8755
  var _a = __read((value || "").toString().split("."), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
8753
8756
  fraction =
8754
8757
  fractionSize > 0
@@ -8757,9 +8760,6 @@
8757
8760
  integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
8758
8761
  if (integer == "")
8759
8762
  integer = "0";
8760
- console.log('integer ', integer);
8761
- if (fractionSize == 0)
8762
- return integer;
8763
8763
  return integer + fraction;
8764
8764
  };
8765
8765
  FHCurrencyFieldComponent.prototype.focus_e = function () {
@@ -8791,7 +8791,7 @@
8791
8791
  { type: i0.Component, args: [{
8792
8792
  selector: "FHCurrencyField",
8793
8793
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
8794
- template: "\n <mat-form-field\n [hidden]=\"!enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n #el\n matInput\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (blur)=\"transformAmount($event); focus_out.emit(value)\"\n [style.color]=\"getStyle_color()\"\n (keydown)=\"kd($event)\"\n (focus)=\"focus_e()\"\n\n />\n </mat-form-field>\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n [style.color]=\"getStyle_color()\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"formattedAmount\"\n />\n </mat-form-field>\n ",
8794
+ template: "\n <mat-form-field\n [hidden]=\"!enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n #el\n matInput\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (blur)=\"transformAmount($event); focus_out.emit(value)\"\n [style.color]=\"getStyle_color()\"\n (keydown)=\"kd($event)\"\n (focus)=\"focus_e()\"\n (keyup)=\"chg()\"\n />\n </mat-form-field>\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n [style.color]=\"getStyle_color()\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"formattedAmount\"\n />\n </mat-form-field>\n ",
8795
8795
  styles: [""]
8796
8796
  },] }
8797
8797
  ];