iptdevs-design-system 2.7.41 → 2.7.44
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/components/molecules/question-type/edit-question-types.component.mjs +49 -23
- package/esm2020/lib/core/models/cronogram/cronogram.models.mjs +1 -1
- package/fesm2015/iptdevs-design-system.mjs +48 -22
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +48 -22
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/components/molecules/question-type/edit-question-types.component.d.ts +1 -2
- package/lib/core/models/cronogram/cronogram.models.d.ts +23 -22
- package/package.json +1 -1
|
@@ -1760,18 +1760,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1760
1760
|
class QuestionTypeComponent {
|
|
1761
1761
|
ngOnChanges(changes) {
|
|
1762
1762
|
if (changes['formGruoup']) {
|
|
1763
|
-
console.log('a change in form group has ocurr');
|
|
1764
|
-
console.log(this.formGruoup.controls['value1'].value);
|
|
1765
|
-
console.log(this.formGruoup.controls['value2'].value);
|
|
1766
|
-
console.log(this.formGruoup.controls['value3'].value);
|
|
1767
|
-
console.log(this.formGruoup.controls['value4'].value);
|
|
1768
1763
|
}
|
|
1769
1764
|
}
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1765
|
+
clickDetection(value) {
|
|
1766
|
+
switch (value) {
|
|
1767
|
+
case 'value1':
|
|
1768
|
+
if (this.formGruoup.controls['value1'].value === 1) {
|
|
1769
|
+
this.formGruoup.controls['value2'].value === 0;
|
|
1770
|
+
this.formGruoup.controls['value3'].value === 0;
|
|
1771
|
+
this.formGruoup.controls['value4'].value === 0;
|
|
1772
|
+
}
|
|
1773
|
+
break;
|
|
1774
|
+
case 'value2':
|
|
1775
|
+
if (this.formGruoup.controls['value2'].value === 1) {
|
|
1776
|
+
this.formGruoup.controls['value1'].value === 0;
|
|
1777
|
+
this.formGruoup.controls['value3'].value === 0;
|
|
1778
|
+
this.formGruoup.controls['value4'].value === 0;
|
|
1779
|
+
}
|
|
1780
|
+
break;
|
|
1781
|
+
case 'value3':
|
|
1782
|
+
if (this.formGruoup.controls['value3'].value === 1) {
|
|
1783
|
+
this.formGruoup.controls['value1'].value === 0;
|
|
1784
|
+
this.formGruoup.controls['value2'].value === 0;
|
|
1785
|
+
this.formGruoup.controls['value4'].value === 0;
|
|
1786
|
+
}
|
|
1787
|
+
break;
|
|
1788
|
+
case 'value4':
|
|
1789
|
+
if (this.formGruoup.controls['value4'].value === 1) {
|
|
1790
|
+
this.formGruoup.controls['value1'].value === 0;
|
|
1791
|
+
this.formGruoup.controls['value2'].value === 0;
|
|
1792
|
+
this.formGruoup.controls['value3'].value === 0;
|
|
1793
|
+
}
|
|
1794
|
+
break;
|
|
1795
|
+
default:
|
|
1796
|
+
console.log('exception');
|
|
1797
|
+
break;
|
|
1798
|
+
}
|
|
1775
1799
|
}
|
|
1776
1800
|
}
|
|
1777
1801
|
QuestionTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: QuestionTypeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1799,8 +1823,7 @@ QuestionTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1799
1823
|
[inputType]="'number'"
|
|
1800
1824
|
[placeHolder]="'Valor *'"
|
|
1801
1825
|
[validateText]="'Debe ser 0 o 1'"
|
|
1802
|
-
(
|
|
1803
|
-
(click)="clickDetection()"
|
|
1826
|
+
(click)='clickDetection("value1")'
|
|
1804
1827
|
>
|
|
1805
1828
|
</ipt-input>
|
|
1806
1829
|
<fieldset disabled="disabled">
|
|
@@ -1819,8 +1842,7 @@ QuestionTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1819
1842
|
[inputType]="'number'"
|
|
1820
1843
|
[placeHolder]="'Valor *'"
|
|
1821
1844
|
[validateText]="'Debe ser 0 o 1'"
|
|
1822
|
-
(
|
|
1823
|
-
(click)="clickDetection()"
|
|
1845
|
+
(click)='clickDetection("value2")'
|
|
1824
1846
|
>
|
|
1825
1847
|
</ipt-input>
|
|
1826
1848
|
</div>
|
|
@@ -1845,6 +1867,7 @@ QuestionTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1845
1867
|
[inputType]="'number'"
|
|
1846
1868
|
[placeHolder]="'Valor *'"
|
|
1847
1869
|
[validateText]="'Debe ser 0 o 1'"
|
|
1870
|
+
(click)='clickDetection("value1")'
|
|
1848
1871
|
>
|
|
1849
1872
|
</ipt-input>
|
|
1850
1873
|
</div>
|
|
@@ -1867,6 +1890,7 @@ QuestionTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1867
1890
|
[inputType]="'number'"
|
|
1868
1891
|
[placeHolder]="'Valor *'"
|
|
1869
1892
|
[validateText]="'Debe ser 0 o 1'"
|
|
1893
|
+
(click)='clickDetection("value1")'
|
|
1870
1894
|
>
|
|
1871
1895
|
</ipt-input>
|
|
1872
1896
|
|
|
@@ -1882,6 +1906,7 @@ QuestionTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1882
1906
|
[inputType]="'number'"
|
|
1883
1907
|
[placeHolder]="'Valor *'"
|
|
1884
1908
|
[validateText]="'Debe ser 0 o 1'"
|
|
1909
|
+
(click)='clickDetection("value2")'
|
|
1885
1910
|
>
|
|
1886
1911
|
</ipt-input>
|
|
1887
1912
|
|
|
@@ -1897,6 +1922,7 @@ QuestionTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1897
1922
|
[inputType]="'number'"
|
|
1898
1923
|
[placeHolder]="'Valor *'"
|
|
1899
1924
|
[validateText]="'Debe ser 0 o 1'"
|
|
1925
|
+
(click)='clickDetection("value3")'
|
|
1900
1926
|
>
|
|
1901
1927
|
</ipt-input>
|
|
1902
1928
|
|
|
@@ -1914,8 +1940,7 @@ QuestionTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1914
1940
|
[inputType]="'number'"
|
|
1915
1941
|
[placeHolder]="'Valor *'"
|
|
1916
1942
|
[validateText]="'Debe ser 0 o 1'"
|
|
1917
|
-
(
|
|
1918
|
-
(click)="clickDetection()"
|
|
1943
|
+
(click)='clickDetection("value4")'
|
|
1919
1944
|
>
|
|
1920
1945
|
</ipt-input>
|
|
1921
1946
|
</div>
|
|
@@ -1946,8 +1971,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1946
1971
|
[inputType]="'number'"
|
|
1947
1972
|
[placeHolder]="'Valor *'"
|
|
1948
1973
|
[validateText]="'Debe ser 0 o 1'"
|
|
1949
|
-
(
|
|
1950
|
-
(click)="clickDetection()"
|
|
1974
|
+
(click)='clickDetection("value1")'
|
|
1951
1975
|
>
|
|
1952
1976
|
</ipt-input>
|
|
1953
1977
|
<fieldset disabled="disabled">
|
|
@@ -1966,8 +1990,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1966
1990
|
[inputType]="'number'"
|
|
1967
1991
|
[placeHolder]="'Valor *'"
|
|
1968
1992
|
[validateText]="'Debe ser 0 o 1'"
|
|
1969
|
-
(
|
|
1970
|
-
(click)="clickDetection()"
|
|
1993
|
+
(click)='clickDetection("value2")'
|
|
1971
1994
|
>
|
|
1972
1995
|
</ipt-input>
|
|
1973
1996
|
</div>
|
|
@@ -1992,6 +2015,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
1992
2015
|
[inputType]="'number'"
|
|
1993
2016
|
[placeHolder]="'Valor *'"
|
|
1994
2017
|
[validateText]="'Debe ser 0 o 1'"
|
|
2018
|
+
(click)='clickDetection("value1")'
|
|
1995
2019
|
>
|
|
1996
2020
|
</ipt-input>
|
|
1997
2021
|
</div>
|
|
@@ -2014,6 +2038,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
2014
2038
|
[inputType]="'number'"
|
|
2015
2039
|
[placeHolder]="'Valor *'"
|
|
2016
2040
|
[validateText]="'Debe ser 0 o 1'"
|
|
2041
|
+
(click)='clickDetection("value1")'
|
|
2017
2042
|
>
|
|
2018
2043
|
</ipt-input>
|
|
2019
2044
|
|
|
@@ -2029,6 +2054,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
2029
2054
|
[inputType]="'number'"
|
|
2030
2055
|
[placeHolder]="'Valor *'"
|
|
2031
2056
|
[validateText]="'Debe ser 0 o 1'"
|
|
2057
|
+
(click)='clickDetection("value2")'
|
|
2032
2058
|
>
|
|
2033
2059
|
</ipt-input>
|
|
2034
2060
|
|
|
@@ -2044,6 +2070,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
2044
2070
|
[inputType]="'number'"
|
|
2045
2071
|
[placeHolder]="'Valor *'"
|
|
2046
2072
|
[validateText]="'Debe ser 0 o 1'"
|
|
2073
|
+
(click)='clickDetection("value3")'
|
|
2047
2074
|
>
|
|
2048
2075
|
</ipt-input>
|
|
2049
2076
|
|
|
@@ -2061,8 +2088,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
2061
2088
|
[inputType]="'number'"
|
|
2062
2089
|
[placeHolder]="'Valor *'"
|
|
2063
2090
|
[validateText]="'Debe ser 0 o 1'"
|
|
2064
|
-
(
|
|
2065
|
-
(click)="clickDetection()"
|
|
2091
|
+
(click)='clickDetection("value4")'
|
|
2066
2092
|
>
|
|
2067
2093
|
</ipt-input>
|
|
2068
2094
|
</div>
|