@esfaenza/forms-and-validations 11.2.122 → 11.2.123

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.
@@ -2616,6 +2616,8 @@
2616
2616
  _this.datesExts = datesExts;
2617
2617
  _this.dateAdapter = dateAdapter;
2618
2618
  _this.lc = lc;
2619
+ /** Indica di aggiustare in uscita i number in modo che siano parsabili dal javascript */
2620
+ _this.AdjustNumber = true;
2619
2621
  /** Permette di scaricare l'eventuale file presente qualora il **Type** di questo componente fosse **file** */
2620
2622
  _this.AllowDownload = true;
2621
2623
  /** Utilizzata nel form-adapter per specificare la precisione degli input currencymap (Type: currency) */
@@ -2810,7 +2812,8 @@
2810
2812
  : JSON.parse(JSON.stringify(this.Model)))
2811
2813
  : null;
2812
2814
  if ((this.Type == "float" || this.Type == "number") && toEmit) {
2813
- toEmit = toEmit.replace(".", "").replace(",", ".");
2815
+ if (this.AdjustNumber)
2816
+ toEmit = toEmit.replace(".", "").replace(",", ".");
2814
2817
  this.EvaluatedModel = toEmit;
2815
2818
  }
2816
2819
  else if (this.Type == "boolean") {
@@ -2898,6 +2901,7 @@
2898
2901
  Type: [{ type: core.Input }],
2899
2902
  TypeMissingMessage: [{ type: core.Input }],
2900
2903
  Pattern: [{ type: core.Input }],
2904
+ AdjustNumber: [{ type: core.Input }],
2901
2905
  inputEl: [{ type: core.ViewChild, args: ["fileInput", { static: false },] }],
2902
2906
  AllowDownload: [{ type: core.Input }],
2903
2907
  Precision: [{ type: core.Input }],