iptdevs-design-system 2.7.38 → 2.7.39

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.
@@ -1757,6 +1757,301 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1757
1757
  }]
1758
1758
  }] });
1759
1759
 
1760
+ class QuestionTypeComponent {
1761
+ ngOnChanges(changes) {
1762
+ if (changes['questionType']) {
1763
+ console.log(this.questionType);
1764
+ console.log(this.formGruoup);
1765
+ }
1766
+ }
1767
+ }
1768
+ QuestionTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: QuestionTypeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1769
+ QuestionTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: QuestionTypeComponent, selector: "ipt-question-types", inputs: { questionType: "questionType", formGruoup: "formGruoup" }, usesOnChanges: true, ngImport: i0, template: `
1770
+ <div
1771
+ *ngIf="
1772
+ this.questionType === 'True or False' ||
1773
+ this.questionType === 'Correct or Incorrect'
1774
+ "
1775
+ class="sectionABCD"
1776
+ >
1777
+ <fieldset disabled="disabled">
1778
+ <ipt-input
1779
+ [control]="formGruoup.controls['answer1']"
1780
+ [inputType]="'text'"
1781
+ [placeHolder]="
1782
+ this.questionType === 'True or False' ? 'True' : 'Correct'
1783
+ "
1784
+ [validateText]="'Este campo es requerido'"
1785
+ >
1786
+ </ipt-input>
1787
+ </fieldset>
1788
+ <ipt-input
1789
+ [control]="formGruoup.controls['value1']"
1790
+ [inputType]="'number'"
1791
+ [placeHolder]="'Valor *'"
1792
+ [validateText]="'Debe ser 0 o 1'"
1793
+ >
1794
+ </ipt-input>
1795
+ <fieldset disabled="disabled">
1796
+ <ipt-input
1797
+ [control]="formGruoup.controls['answer2']"
1798
+ [inputType]="'text'"
1799
+ [placeHolder]="
1800
+ this.questionType === 'True or False' ? 'False' : 'Incorrect'
1801
+ "
1802
+ [validateText]="'Este campo es requerido'"
1803
+ >
1804
+ </ipt-input>
1805
+ </fieldset>
1806
+ <ipt-input
1807
+ [control]="formGruoup.controls['value2']"
1808
+ [inputType]="'number'"
1809
+ [placeHolder]="'Valor *'"
1810
+ [validateText]="'Debe ser 0 o 1'"
1811
+ >
1812
+ </ipt-input>
1813
+ </div>
1814
+
1815
+ <div
1816
+ *ngIf="
1817
+ this.questionType === 'Relationship' ||
1818
+ this.questionType === 'Complete' ||
1819
+ this.questionType === 'Conversation'
1820
+ "
1821
+ class="sectionABCD"
1822
+ >
1823
+ <ipt-input
1824
+ [control]="formGruoup.controls['answer1']"
1825
+ [inputType]="'text'"
1826
+ [placeHolder]="'Ingrese la opción'"
1827
+ [validateText]="'Este campo es requerido'"
1828
+ >
1829
+ </ipt-input>
1830
+ <ipt-input
1831
+ [control]="formGruoup.controls['value1']"
1832
+ [inputType]="'number'"
1833
+ [placeHolder]="'Valor *'"
1834
+ [validateText]="'Debe ser 0 o 1'"
1835
+ >
1836
+ </ipt-input>
1837
+ </div>
1838
+
1839
+ <div
1840
+ *ngIf="
1841
+ this.questionType === 'A, B, C' || this.questionType === 'A, B, C, D'
1842
+ "
1843
+ class="sectionABCD"
1844
+ >
1845
+ <ipt-input
1846
+ [control]="formGruoup.controls['answer1']"
1847
+ [inputType]="'text'"
1848
+ [placeHolder]="'Opción A *'"
1849
+ [validateText]="'Este campo es requerido'"
1850
+ >
1851
+ </ipt-input>
1852
+ <ipt-input
1853
+ [control]="formGruoup.controls['value1']"
1854
+ [inputType]="'number'"
1855
+ [placeHolder]="'Valor *'"
1856
+ [validateText]="'Debe ser 0 o 1'"
1857
+ >
1858
+ </ipt-input>
1859
+
1860
+ <ipt-input
1861
+ [control]="formGruoup.controls['answer2']"
1862
+ [inputType]="'text'"
1863
+ [placeHolder]="'Opción B *'"
1864
+ [validateText]="'Este campo es requerido'"
1865
+ >
1866
+ </ipt-input>
1867
+ <ipt-input
1868
+ [control]="formGruoup.controls['value2']"
1869
+ [inputType]="'number'"
1870
+ [placeHolder]="'Valor *'"
1871
+ [validateText]="'Debe ser 0 o 1'"
1872
+ >
1873
+ </ipt-input>
1874
+
1875
+ <ipt-input
1876
+ [control]="formGruoup.controls['answer3']"
1877
+ [inputType]="'text'"
1878
+ [placeHolder]="'Opción C *'"
1879
+ [validateText]="'Este campo es requerido'"
1880
+ >
1881
+ </ipt-input>
1882
+ <ipt-input
1883
+ [control]="formGruoup.controls['value3']"
1884
+ [inputType]="'number'"
1885
+ [placeHolder]="'Valor *'"
1886
+ [validateText]="'Debe ser 0 o 1'"
1887
+ >
1888
+ </ipt-input>
1889
+
1890
+ <ipt-input
1891
+ *ngIf="this.questionType === 'A, B, C, D'"
1892
+ [control]="formGruoup.controls['answer4']"
1893
+ [inputType]="'text'"
1894
+ [placeHolder]="'Opción D *'"
1895
+ [validateText]="'Este campo es requerido'"
1896
+ >
1897
+ </ipt-input>
1898
+ <ipt-input
1899
+ *ngIf="this.questionType === 'A, B, C, D'"
1900
+ [control]="formGruoup.controls['value4']"
1901
+ [inputType]="'number'"
1902
+ [placeHolder]="'Valor *'"
1903
+ [validateText]="'Debe ser 0 o 1'"
1904
+ >
1905
+ </ipt-input>
1906
+ </div>
1907
+ `, isInline: true, styles: ["form{display:grid;grid-template-columns:1fr}.sectionABCD{display:grid;grid-template-columns:12fr 0fr;grid-gap:0px 10px;gap:0px 10px}fieldset{background:transparent;border:none}\n"], components: [{ type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal"], outputs: ["dateSelected"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: QuestionTypeComponent, decorators: [{
1909
+ type: Component,
1910
+ args: [{ selector: 'ipt-question-types', template: `
1911
+ <div
1912
+ *ngIf="
1913
+ this.questionType === 'True or False' ||
1914
+ this.questionType === 'Correct or Incorrect'
1915
+ "
1916
+ class="sectionABCD"
1917
+ >
1918
+ <fieldset disabled="disabled">
1919
+ <ipt-input
1920
+ [control]="formGruoup.controls['answer1']"
1921
+ [inputType]="'text'"
1922
+ [placeHolder]="
1923
+ this.questionType === 'True or False' ? 'True' : 'Correct'
1924
+ "
1925
+ [validateText]="'Este campo es requerido'"
1926
+ >
1927
+ </ipt-input>
1928
+ </fieldset>
1929
+ <ipt-input
1930
+ [control]="formGruoup.controls['value1']"
1931
+ [inputType]="'number'"
1932
+ [placeHolder]="'Valor *'"
1933
+ [validateText]="'Debe ser 0 o 1'"
1934
+ >
1935
+ </ipt-input>
1936
+ <fieldset disabled="disabled">
1937
+ <ipt-input
1938
+ [control]="formGruoup.controls['answer2']"
1939
+ [inputType]="'text'"
1940
+ [placeHolder]="
1941
+ this.questionType === 'True or False' ? 'False' : 'Incorrect'
1942
+ "
1943
+ [validateText]="'Este campo es requerido'"
1944
+ >
1945
+ </ipt-input>
1946
+ </fieldset>
1947
+ <ipt-input
1948
+ [control]="formGruoup.controls['value2']"
1949
+ [inputType]="'number'"
1950
+ [placeHolder]="'Valor *'"
1951
+ [validateText]="'Debe ser 0 o 1'"
1952
+ >
1953
+ </ipt-input>
1954
+ </div>
1955
+
1956
+ <div
1957
+ *ngIf="
1958
+ this.questionType === 'Relationship' ||
1959
+ this.questionType === 'Complete' ||
1960
+ this.questionType === 'Conversation'
1961
+ "
1962
+ class="sectionABCD"
1963
+ >
1964
+ <ipt-input
1965
+ [control]="formGruoup.controls['answer1']"
1966
+ [inputType]="'text'"
1967
+ [placeHolder]="'Ingrese la opción'"
1968
+ [validateText]="'Este campo es requerido'"
1969
+ >
1970
+ </ipt-input>
1971
+ <ipt-input
1972
+ [control]="formGruoup.controls['value1']"
1973
+ [inputType]="'number'"
1974
+ [placeHolder]="'Valor *'"
1975
+ [validateText]="'Debe ser 0 o 1'"
1976
+ >
1977
+ </ipt-input>
1978
+ </div>
1979
+
1980
+ <div
1981
+ *ngIf="
1982
+ this.questionType === 'A, B, C' || this.questionType === 'A, B, C, D'
1983
+ "
1984
+ class="sectionABCD"
1985
+ >
1986
+ <ipt-input
1987
+ [control]="formGruoup.controls['answer1']"
1988
+ [inputType]="'text'"
1989
+ [placeHolder]="'Opción A *'"
1990
+ [validateText]="'Este campo es requerido'"
1991
+ >
1992
+ </ipt-input>
1993
+ <ipt-input
1994
+ [control]="formGruoup.controls['value1']"
1995
+ [inputType]="'number'"
1996
+ [placeHolder]="'Valor *'"
1997
+ [validateText]="'Debe ser 0 o 1'"
1998
+ >
1999
+ </ipt-input>
2000
+
2001
+ <ipt-input
2002
+ [control]="formGruoup.controls['answer2']"
2003
+ [inputType]="'text'"
2004
+ [placeHolder]="'Opción B *'"
2005
+ [validateText]="'Este campo es requerido'"
2006
+ >
2007
+ </ipt-input>
2008
+ <ipt-input
2009
+ [control]="formGruoup.controls['value2']"
2010
+ [inputType]="'number'"
2011
+ [placeHolder]="'Valor *'"
2012
+ [validateText]="'Debe ser 0 o 1'"
2013
+ >
2014
+ </ipt-input>
2015
+
2016
+ <ipt-input
2017
+ [control]="formGruoup.controls['answer3']"
2018
+ [inputType]="'text'"
2019
+ [placeHolder]="'Opción C *'"
2020
+ [validateText]="'Este campo es requerido'"
2021
+ >
2022
+ </ipt-input>
2023
+ <ipt-input
2024
+ [control]="formGruoup.controls['value3']"
2025
+ [inputType]="'number'"
2026
+ [placeHolder]="'Valor *'"
2027
+ [validateText]="'Debe ser 0 o 1'"
2028
+ >
2029
+ </ipt-input>
2030
+
2031
+ <ipt-input
2032
+ *ngIf="this.questionType === 'A, B, C, D'"
2033
+ [control]="formGruoup.controls['answer4']"
2034
+ [inputType]="'text'"
2035
+ [placeHolder]="'Opción D *'"
2036
+ [validateText]="'Este campo es requerido'"
2037
+ >
2038
+ </ipt-input>
2039
+ <ipt-input
2040
+ *ngIf="this.questionType === 'A, B, C, D'"
2041
+ [control]="formGruoup.controls['value4']"
2042
+ [inputType]="'number'"
2043
+ [placeHolder]="'Valor *'"
2044
+ [validateText]="'Debe ser 0 o 1'"
2045
+ >
2046
+ </ipt-input>
2047
+ </div>
2048
+ `, styles: ["form{display:grid;grid-template-columns:1fr}.sectionABCD{display:grid;grid-template-columns:12fr 0fr;grid-gap:0px 10px;gap:0px 10px}fieldset{background:transparent;border:none}\n"] }]
2049
+ }], propDecorators: { questionType: [{
2050
+ type: Input
2051
+ }], formGruoup: [{
2052
+ type: Input
2053
+ }] } });
2054
+
1760
2055
  class ComponentsModule {
1761
2056
  }
1762
2057
  ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -1773,7 +2068,8 @@ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
1773
2068
  RadioComponent,
1774
2069
  SelectComponent,
1775
2070
  SidenavComponent,
1776
- TextLinkComponent], imports: [CommonModule,
2071
+ TextLinkComponent,
2072
+ QuestionTypeComponent], imports: [CommonModule,
1777
2073
  // BrowserModule, // Para evitar doble carga de BrowserModule
1778
2074
  FormsModule,
1779
2075
  ReactiveFormsModule,
@@ -1792,7 +2088,8 @@ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versio
1792
2088
  TextLinkComponent,
1793
2089
  LoginFormComponent,
1794
2090
  SidenavComponent,
1795
- CurrencyMaskModule] });
2091
+ CurrencyMaskModule,
2092
+ QuestionTypeComponent] });
1796
2093
  ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: ComponentsModule, providers: [
1797
2094
  CurrencyPipe,
1798
2095
  TitleCasePipe
@@ -1822,6 +2119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1822
2119
  SelectComponent,
1823
2120
  SidenavComponent,
1824
2121
  TextLinkComponent,
2122
+ QuestionTypeComponent,
1825
2123
  ],
1826
2124
  imports: [
1827
2125
  CommonModule,
@@ -1846,7 +2144,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1846
2144
  TextLinkComponent,
1847
2145
  LoginFormComponent,
1848
2146
  SidenavComponent,
1849
- CurrencyMaskModule
2147
+ CurrencyMaskModule,
2148
+ QuestionTypeComponent
1850
2149
  ],
1851
2150
  providers: [
1852
2151
  CurrencyPipe,
@@ -4397,5 +4696,5 @@ class UserLoginRs {
4397
4696
  * Generated bundle index. Do not edit.
4398
4697
  */
4399
4698
 
4400
- export { AcademicService, ActivityService, AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalculateQuotesService, CalendarService, CertificateService, CheckboxComponent, ClassroomService, CodDocumentsSectionComponent, CodFormComponent, CodFormControls, CodFormStepFiveComponent, CodFormStepFourComponent, CodFormStepOneComponent, CodFormStepThreeComponent, CodFormStepTwoComponent, CodFormSteps, CodModule, CommercialService, CommunicatorService, ComponentsModule, CopiesService, CoreModule, CourseService, CreateUserFormComponent, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoaderComponent, LocalStorageCODService, LoginFormComponent, MarketingService, NotesService, ParameterService, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, UserEktService, UserLoginRs, UserRs, UserService, validateCoupunts };
4699
+ export { AcademicService, ActivityService, AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalculateQuotesService, CalendarService, CertificateService, CheckboxComponent, ClassroomService, CodDocumentsSectionComponent, CodFormComponent, CodFormControls, CodFormStepFiveComponent, CodFormStepFourComponent, CodFormStepOneComponent, CodFormStepThreeComponent, CodFormStepTwoComponent, CodFormSteps, CodModule, CommercialService, CommunicatorService, ComponentsModule, CopiesService, CoreModule, CourseService, CreateUserFormComponent, DatalistComponent, DesignSystemModule, InputComponent, LevelButtonComponent, LevelTextComponent, LoaderComponent, LocalStorageCODService, LoginFormComponent, MarketingService, NotesService, ParameterService, QuestionTypeComponent, RadioComponent, RedirectGuard, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, UserEktService, UserLoginRs, UserRs, UserService, validateCoupunts };
4401
4700
  //# sourceMappingURL=iptdevs-design-system.mjs.map