@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.
@@ -11820,6 +11820,7 @@
11820
11820
  this.uti_s = uti_s;
11821
11821
  this.decimal = 0;
11822
11822
  this.label = '';
11823
+ this.th_character = '.';
11823
11824
  this.required = false;
11824
11825
  this.enabled = true;
11825
11826
  this.hidden = false;
@@ -11946,9 +11947,12 @@
11946
11947
  fraction = fractionSize > 0
11947
11948
  ? ',' + (fraction + '000000').substring(0, fractionSize)
11948
11949
  : "";
11949
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, '.');
11950
+ if (this.th_character != '')
11951
+ integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, this.th_character);
11950
11952
  if (integer == '')
11951
11953
  integer = '0';
11954
+ if (this.decimal == 0)
11955
+ return integer;
11952
11956
  // console.log(integer + fraction);
11953
11957
  return integer + fraction;
11954
11958
  };
@@ -12010,6 +12014,7 @@
12010
12014
  el: [{ type: core.ViewChild, args: ['el',] }],
12011
12015
  decimal: [{ type: core.Input }],
12012
12016
  label: [{ type: core.Input }],
12017
+ th_character: [{ type: core.Input }],
12013
12018
  required: [{ type: core.Input }],
12014
12019
  enabled: [{ type: core.Input }],
12015
12020
  hidden: [{ type: core.Input }],