iptdevs-design-system 2.7.164 → 2.7.165
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/cod/cod-documents-section/cod-documents-section.component.mjs +14 -29
- package/fesm2015/iptdevs-design-system.mjs +13 -28
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +13 -28
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/cod-documents-section/cod-documents-section.component.d.ts +1 -7
- package/package.json +1 -1
|
@@ -2225,12 +2225,6 @@ class CodDocumentsSectionComponent {
|
|
|
2225
2225
|
this.idPdf = [];
|
|
2226
2226
|
this.numDoc = -1;
|
|
2227
2227
|
this.value = false;
|
|
2228
|
-
this.documentState = {
|
|
2229
|
-
doc_student: this.value,
|
|
2230
|
-
doc_agreement: this.value,
|
|
2231
|
-
doc_parent: this.value,
|
|
2232
|
-
doc_confanorte: this.value,
|
|
2233
|
-
};
|
|
2234
2228
|
this.documentsForm = this.fb.group({
|
|
2235
2229
|
doc_student: ['', [Validators.required], []],
|
|
2236
2230
|
doc_agreement: [''],
|
|
@@ -2244,22 +2238,7 @@ class CodDocumentsSectionComponent {
|
|
|
2244
2238
|
}
|
|
2245
2239
|
catchDocument(event, visible) {
|
|
2246
2240
|
this.numDoc++;
|
|
2247
|
-
|
|
2248
|
-
case 'doc_student':
|
|
2249
|
-
this.docStudent = true;
|
|
2250
|
-
break;
|
|
2251
|
-
case 'doc_agreement':
|
|
2252
|
-
this.docAgreement = true;
|
|
2253
|
-
break;
|
|
2254
|
-
case 'doc_parent':
|
|
2255
|
-
this.docParent = true;
|
|
2256
|
-
break;
|
|
2257
|
-
case 'doc_confanorte':
|
|
2258
|
-
this.docConfanorte = true;
|
|
2259
|
-
break;
|
|
2260
|
-
default:
|
|
2261
|
-
break;
|
|
2262
|
-
}
|
|
2241
|
+
this.validateVisibility(visible, true);
|
|
2263
2242
|
const fileCatched = event.target.files[0];
|
|
2264
2243
|
let reader = new FileReader();
|
|
2265
2244
|
reader.onload = (e) => {
|
|
@@ -2279,22 +2258,28 @@ class CodDocumentsSectionComponent {
|
|
|
2279
2258
|
this.documentsForm.controls['doc_agreement'].setValue(null);
|
|
2280
2259
|
this.documentsForm.controls['doc_parent'].setValue(null);
|
|
2281
2260
|
this.documentsForm.controls['doc_confanorte'].setValue(null);
|
|
2261
|
+
this.docStudent = false;
|
|
2262
|
+
this.docAgreement = false;
|
|
2263
|
+
this.docParent = false;
|
|
2264
|
+
this.docConfanorte = false;
|
|
2282
2265
|
}
|
|
2283
2266
|
clearDocStudent(typeDoc) {
|
|
2284
2267
|
this.documentsForm.controls[typeDoc].setValue(null);
|
|
2285
|
-
this.
|
|
2286
|
-
|
|
2268
|
+
this.validateVisibility(typeDoc, false);
|
|
2269
|
+
}
|
|
2270
|
+
validateVisibility(compVisivility, value) {
|
|
2271
|
+
switch (compVisivility) {
|
|
2287
2272
|
case 'doc_student':
|
|
2288
|
-
this.docStudent =
|
|
2273
|
+
this.docStudent = value;
|
|
2289
2274
|
break;
|
|
2290
2275
|
case 'doc_agreement':
|
|
2291
|
-
this.docAgreement =
|
|
2276
|
+
this.docAgreement = value;
|
|
2292
2277
|
break;
|
|
2293
2278
|
case 'doc_parent':
|
|
2294
|
-
this.docParent =
|
|
2279
|
+
this.docParent = value;
|
|
2295
2280
|
break;
|
|
2296
2281
|
case 'doc_confanorte':
|
|
2297
|
-
this.docConfanorte =
|
|
2282
|
+
this.docConfanorte = value;
|
|
2298
2283
|
break;
|
|
2299
2284
|
default:
|
|
2300
2285
|
break;
|