@fluxhub/fluxhub-lib 1.0.572 → 1.0.574

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.
@@ -11798,6 +11798,7 @@ var FHNumericFieldComponent = /** @class */ (function () {
11798
11798
  this.uti_s = uti_s;
11799
11799
  this.decimal = 0;
11800
11800
  this.label = '';
11801
+ this.th_character = '.';
11801
11802
  this.required = false;
11802
11803
  this.enabled = true;
11803
11804
  this.hidden = false;
@@ -11924,9 +11925,12 @@ var FHNumericFieldComponent = /** @class */ (function () {
11924
11925
  fraction = fractionSize > 0
11925
11926
  ? ',' + (fraction + '000000').substring(0, fractionSize)
11926
11927
  : "";
11927
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
11928
+ if (this.th_character != '')
11929
+ integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, this.th_character);
11928
11930
  if (integer == '')
11929
11931
  integer = '0';
11932
+ if (this.decimal == 0)
11933
+ return integer;
11930
11934
  // console.log(integer + fraction);
11931
11935
  return integer + fraction;
11932
11936
  };
@@ -11988,6 +11992,7 @@ var FHNumericFieldComponent = /** @class */ (function () {
11988
11992
  el: [{ type: ViewChild, args: ['el',] }],
11989
11993
  decimal: [{ type: Input }],
11990
11994
  label: [{ type: Input }],
11995
+ th_character: [{ type: Input }],
11991
11996
  required: [{ type: Input }],
11992
11997
  enabled: [{ type: Input }],
11993
11998
  hidden: [{ type: Input }],