@esfaenza/forms-and-validations 11.2.122 → 11.2.124

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.
@@ -2305,6 +2305,11 @@
2305
2305
  this.updateValidityForNativeInput();
2306
2306
  }
2307
2307
  };
2308
+ BaseFormControl.prototype.registerForm = function (ngForm) {
2309
+ this.Form = ngForm;
2310
+ this.Form.addControl(this.validationControl);
2311
+ this.formHasBennBound = true;
2312
+ };
2308
2313
  /**
2309
2314
  * Aggiorna il valore e la validità dell'input sottostante. Non viene chiamato per input nativi come le checkbox
2310
2315
  *
@@ -2616,6 +2621,8 @@
2616
2621
  _this.datesExts = datesExts;
2617
2622
  _this.dateAdapter = dateAdapter;
2618
2623
  _this.lc = lc;
2624
+ /** Indica di aggiustare in uscita i number in modo che siano parsabili dal javascript */
2625
+ _this.AdjustNumber = true;
2619
2626
  /** Permette di scaricare l'eventuale file presente qualora il **Type** di questo componente fosse **file** */
2620
2627
  _this.AllowDownload = true;
2621
2628
  /** Utilizzata nel form-adapter per specificare la precisione degli input currencymap (Type: currency) */
@@ -2810,7 +2817,8 @@
2810
2817
  : JSON.parse(JSON.stringify(this.Model)))
2811
2818
  : null;
2812
2819
  if ((this.Type == "float" || this.Type == "number") && toEmit) {
2813
- toEmit = toEmit.replace(".", "").replace(",", ".");
2820
+ if (this.AdjustNumber)
2821
+ toEmit = toEmit.replace(".", "").replace(",", ".");
2814
2822
  this.EvaluatedModel = toEmit;
2815
2823
  }
2816
2824
  else if (this.Type == "boolean") {
@@ -2898,6 +2906,7 @@
2898
2906
  Type: [{ type: core.Input }],
2899
2907
  TypeMissingMessage: [{ type: core.Input }],
2900
2908
  Pattern: [{ type: core.Input }],
2909
+ AdjustNumber: [{ type: core.Input }],
2901
2910
  inputEl: [{ type: core.ViewChild, args: ["fileInput", { static: false },] }],
2902
2911
  AllowDownload: [{ type: core.Input }],
2903
2912
  Precision: [{ type: core.Input }],
@@ -4041,6 +4050,7 @@
4041
4050
 
4042
4051
  exports.ACO_CUSTOMKEY = ACO_CUSTOMKEY;
4043
4052
  exports.AppFile = AppFile;
4053
+ exports.BaseFormControl = BaseFormControl;
4044
4054
  exports.FAV_DEBUG_MODE = FAV_DEBUG_MODE;
4045
4055
  exports.FAV_LOCALE = FAV_LOCALE;
4046
4056
  exports.FAV_SLIDER_MODE = FAV_SLIDER_MODE;
@@ -4072,13 +4082,12 @@
4072
4082
  exports.ɵa = BaseValidation;
4073
4083
  exports.ɵb = BaseValidationLoc;
4074
4084
  exports.ɵc = CustomRequiredDirective;
4075
- exports.ɵd = BaseFormControl;
4076
- exports.ɵe = FormSelectComponentLoc;
4077
- exports.ɵf = FormAdaptiveComponentLoc;
4078
- exports.ɵg = FormMultiSelectComponent;
4079
- exports.ɵh = FormMultiSelectComponentLoc;
4080
- exports.ɵi = FormFileComponentLoc;
4081
- exports.ɵj = FormAutocompleteComponentLoc;
4085
+ exports.ɵd = FormSelectComponentLoc;
4086
+ exports.ɵe = FormAdaptiveComponentLoc;
4087
+ exports.ɵf = FormMultiSelectComponent;
4088
+ exports.ɵg = FormMultiSelectComponentLoc;
4089
+ exports.ɵh = FormFileComponentLoc;
4090
+ exports.ɵi = FormAutocompleteComponentLoc;
4082
4091
 
4083
4092
  Object.defineProperty(exports, '__esModule', { value: true });
4084
4093