@esfaenza/forms-and-validations 15.2.0 → 15.2.1
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/esm2020/lib/forms/base-form-control.mjs +39 -39
- package/fesm2015/esfaenza-forms-and-validations.mjs +38 -38
- package/fesm2015/esfaenza-forms-and-validations.mjs.map +1 -1
- package/fesm2020/esfaenza-forms-and-validations.mjs +38 -38
- package/fesm2020/esfaenza-forms-and-validations.mjs.map +1 -1
- package/lib/forms/form-adaptive/form-adaptive.component.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1733,6 +1733,44 @@ class ChangeEvent {
|
|
|
1733
1733
|
// Angular
|
|
1734
1734
|
/** Componente base da cui tutti i componenti Form implementano */
|
|
1735
1735
|
class BaseFormControl {
|
|
1736
|
+
/**
|
|
1737
|
+
* Ottiene il valore della variabile **_readonly**
|
|
1738
|
+
*
|
|
1739
|
+
* @returns {boolean} **true** se sola lettura, **false** altrimenti
|
|
1740
|
+
*/
|
|
1741
|
+
get Readonly() { return this._readonly; }
|
|
1742
|
+
/**
|
|
1743
|
+
* Imposta il valore della variabile **_readonly** gestendo anche il Contesto applicativo
|
|
1744
|
+
*
|
|
1745
|
+
* @param {boolean} value Valore da impostare
|
|
1746
|
+
*/
|
|
1747
|
+
set Readonly(value) {
|
|
1748
|
+
if (this.AppContextOwnership)
|
|
1749
|
+
this._readonly = value;
|
|
1750
|
+
}
|
|
1751
|
+
/**
|
|
1752
|
+
* Permette di settare in una volta solo gli input LabelColWidth e InputColWidth, basta scriverlo con la sintassi "X Y"
|
|
1753
|
+
*
|
|
1754
|
+
* @param {string} input Input nel formato "X Y"
|
|
1755
|
+
*/
|
|
1756
|
+
set LabelInputRatio(input) {
|
|
1757
|
+
var ratio = input.split(/\s/);
|
|
1758
|
+
this.LabelColWidth = parseInt(ratio[0]);
|
|
1759
|
+
this.InputColWidth = parseInt(ratio[1]);
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* Query sull'elemento 'validationControl' che funziona in ambiente statico
|
|
1763
|
+
*
|
|
1764
|
+
* @param {NgModel} comp Elemento HTML marcato con "#validationControl"
|
|
1765
|
+
*/
|
|
1766
|
+
set _validationControl(comp) { this.registerValComp(comp); }
|
|
1767
|
+
/**
|
|
1768
|
+
* Query sull'elemento 'validationControl' che funziona in ambiente dinamico
|
|
1769
|
+
*
|
|
1770
|
+
* @param {NgModel} comp Elemento HTML marcato con "#validationControl"
|
|
1771
|
+
*/
|
|
1772
|
+
set validationControl_static(comp) { this.registerValComp(comp); }
|
|
1773
|
+
;
|
|
1736
1774
|
/** @ignore Costruttore */
|
|
1737
1775
|
constructor(cdr, ngControl, _validators, ac, AppContext, ACO_CUSTOMKEY, FAV_DEBUG_MODE, nativeInput = false) {
|
|
1738
1776
|
this.cdr = cdr;
|
|
@@ -1880,44 +1918,6 @@ class BaseFormControl {
|
|
|
1880
1918
|
this.ngControl.control.updateValueAndValidity();
|
|
1881
1919
|
}
|
|
1882
1920
|
}
|
|
1883
|
-
/**
|
|
1884
|
-
* Ottiene il valore della variabile **_readonly**
|
|
1885
|
-
*
|
|
1886
|
-
* @returns {boolean} **true** se sola lettura, **false** altrimenti
|
|
1887
|
-
*/
|
|
1888
|
-
get Readonly() { return this._readonly; }
|
|
1889
|
-
/**
|
|
1890
|
-
* Imposta il valore della variabile **_readonly** gestendo anche il Contesto applicativo
|
|
1891
|
-
*
|
|
1892
|
-
* @param {boolean} value Valore da impostare
|
|
1893
|
-
*/
|
|
1894
|
-
set Readonly(value) {
|
|
1895
|
-
if (this.AppContextOwnership)
|
|
1896
|
-
this._readonly = value;
|
|
1897
|
-
}
|
|
1898
|
-
/**
|
|
1899
|
-
* Permette di settare in una volta solo gli input LabelColWidth e InputColWidth, basta scriverlo con la sintassi "X Y"
|
|
1900
|
-
*
|
|
1901
|
-
* @param {string} input Input nel formato "X Y"
|
|
1902
|
-
*/
|
|
1903
|
-
set LabelInputRatio(input) {
|
|
1904
|
-
var ratio = input.split(/\s/);
|
|
1905
|
-
this.LabelColWidth = parseInt(ratio[0]);
|
|
1906
|
-
this.InputColWidth = parseInt(ratio[1]);
|
|
1907
|
-
}
|
|
1908
|
-
/**
|
|
1909
|
-
* Query sull'elemento 'validationControl' che funziona in ambiente statico
|
|
1910
|
-
*
|
|
1911
|
-
* @param {NgModel} comp Elemento HTML marcato con "#validationControl"
|
|
1912
|
-
*/
|
|
1913
|
-
set _validationControl(comp) { this.registerValComp(comp); }
|
|
1914
|
-
/**
|
|
1915
|
-
* Query sull'elemento 'validationControl' che funziona in ambiente dinamico
|
|
1916
|
-
*
|
|
1917
|
-
* @param {NgModel} comp Elemento HTML marcato con "#validationControl"
|
|
1918
|
-
*/
|
|
1919
|
-
set validationControl_static(comp) { this.registerValComp(comp); }
|
|
1920
|
-
;
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Effettua il Bind/Parse delle varie **Source** unendo le informazioni specificate in **Display**
|
|
1923
1923
|
*
|