@esfaenza/forms-and-validations 11.2.61 → 11.2.62

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.
@@ -2798,6 +2798,10 @@
2798
2798
  * Mostra un testo a sinistra dell'input, **FormLayout** permettendo
2799
2799
  */
2800
2800
  this.Label = "";
2801
+ /**
2802
+ * Eventuali classi extra da applicare alla Label, di default c'è solo un leggero margin top
2803
+ */
2804
+ this.LabelClass = "m-t-5";
2801
2805
  /**
2802
2806
  * Utilizza o meno il Layout di un form (Label con input di fianco), se false mostra solo l'input
2803
2807
  */
@@ -2836,13 +2840,14 @@
2836
2840
  FormTemplateComponent.decorators = [
2837
2841
  { type: core.Component, args: [{
2838
2842
  selector: "form-template",
2839
- template: "<ng-container *ngIf=\"!FormLayout\">\r\n <ng-content></ng-content>\r\n</ng-container>\r\n\r\n<div *ngIf=\"FormLayout\" class=\"form-group row {{FormGroupClass}}\" [class.app-margin-bottom-0]=\"Last\">\r\n <label class=\"col-md-{{LabelColWidth}} m-t-5\">{{Label}}{{Required ? '*' : ''}}<span *ngIf=\"Label\">:</span></label>\r\n <div class=\"col-md-{{InputColWidth}}\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n</div>",
2843
+ template: "<ng-container *ngIf=\"!FormLayout\">\r\n <ng-content></ng-content>\r\n</ng-container>\r\n\r\n<div *ngIf=\"FormLayout\" class=\"form-group row {{FormGroupClass}}\" [class.app-margin-bottom-0]=\"Last\">\r\n <label class=\"col-md-{{LabelColWidth}} {{LabelClass}}\">{{Label}}{{Required ? '*' : ''}}<span *ngIf=\"Label\">:</span></label>\r\n <div class=\"col-md-{{InputColWidth}}\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n</div>",
2840
2844
  changeDetection: core.ChangeDetectionStrategy.OnPush
2841
2845
  },] }
2842
2846
  ];
2843
2847
  FormTemplateComponent.propDecorators = {
2844
2848
  Required: [{ type: core.Input }],
2845
2849
  Label: [{ type: core.Input }],
2850
+ LabelClass: [{ type: core.Input }],
2846
2851
  FormLayout: [{ type: core.Input }],
2847
2852
  LabelColWidth: [{ type: core.Input }],
2848
2853
  InputColWidth: [{ type: core.Input }],