@esfaenza/forms-and-validations 11.2.56 → 11.2.57
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.
- package/bundles/esfaenza-forms-and-validations.umd.js +6 -4
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esm2015/lib/forms/form-adaptive/form-adaptive.component.js +7 -5
- package/fesm2015/esfaenza-forms-and-validations.js +6 -4
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/package.json +1 -1
|
@@ -2650,15 +2650,17 @@
|
|
|
2650
2650
|
* Effettua gli aggiustamenti dati del caso ed emette il modello corretto
|
|
2651
2651
|
*/
|
|
2652
2652
|
FormAdaptiveComponent.prototype.getModelToEmit = function () {
|
|
2653
|
-
var toEmit = this.Model ?
|
|
2653
|
+
var toEmit = this.Model ?
|
|
2654
|
+
(this.Type == "time" || this.useJsDates ?
|
|
2655
|
+
this.dateAdapter.clone(this.Model)
|
|
2656
|
+
: JSON.parse(JSON.stringify(this.Model)))
|
|
2657
|
+
: null;
|
|
2654
2658
|
if ((this.Type == "float" || this.Type == "number") && toEmit)
|
|
2655
2659
|
toEmit = toEmit.replace(".", "").replace(",", ".");
|
|
2656
2660
|
if (this.Type == "boolean")
|
|
2657
2661
|
toEmit = toEmit ? true : false;
|
|
2658
|
-
if (this.Type == "time")
|
|
2659
|
-
var toEmit = this.dateAdapter.clone(this.Model);
|
|
2662
|
+
if (this.Type == "time")
|
|
2660
2663
|
toEmit = toEmit.format("HH:mm:ss");
|
|
2661
|
-
}
|
|
2662
2664
|
return toEmit;
|
|
2663
2665
|
};
|
|
2664
2666
|
/**
|