@fluxhub/fluxhub-lib 10.0.76 → 10.0.77

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.
@@ -8743,9 +8743,11 @@
8743
8743
  integer = "0";
8744
8744
  return integer + fraction;
8745
8745
  };
8746
- FHCurrencyFieldComponent.prototype.focus_e = function () {
8746
+ FHCurrencyFieldComponent.prototype.focus_e = function ($event) {
8747
8747
  try {
8748
- // this.value=this.value.split('.').join('');
8748
+ // this.value=this.value.split('.').join('');+
8749
+ this.removeCurrencyPipeFormat($event);
8750
+ this.setFocus();
8749
8751
  this.focus.emit(this.value);
8750
8752
  }
8751
8753
  catch (e) {
@@ -8766,13 +8768,23 @@
8766
8768
  _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8767
8769
  });
8768
8770
  };
8771
+ FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
8772
+ //console.log('removeCurrencyPipeFormat '+this.value);
8773
+ try {
8774
+ // this.value=this.value.split('.').join('');
8775
+ this.formattedAmount = this.transform(this.value, this.decimal);
8776
+ }
8777
+ catch (e) {
8778
+ console.log(e);
8779
+ }
8780
+ };
8769
8781
  return FHCurrencyFieldComponent;
8770
8782
  }());
8771
8783
  FHCurrencyFieldComponent.decorators = [
8772
8784
  { type: i0.Component, args: [{
8773
8785
  selector: "FHCurrencyField",
8774
8786
  providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
8775
- 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 ",
8787
+ 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($event)\"\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 ",
8776
8788
  styles: [""]
8777
8789
  },] }
8778
8790
  ];