iptdevs-design-system 3.1.494 → 3.1.496
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-self-managed/steps/cod-form-step-one/cod-self-form-step-one.component.mjs +9 -7
- package/fesm2015/iptdevs-design-system.mjs +8 -8
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +8 -6
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6390,15 +6390,16 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
|
|
|
6390
6390
|
agreement_by_category: [''],
|
|
6391
6391
|
});
|
|
6392
6392
|
//Add agreement si grade is pregrade or postgrado
|
|
6393
|
-
this.codSelfFormStepOne.
|
|
6394
|
-
next: (
|
|
6395
|
-
|
|
6396
|
-
|
|
6393
|
+
this.codSelfFormStepOne.controls['grade'].valueChanges.subscribe({
|
|
6394
|
+
next: (change) => {
|
|
6395
|
+
console.log("form onInit", change);
|
|
6396
|
+
if (change === 15 || change === 16) {
|
|
6397
|
+
this.codSelfFormStepOne.controls['agreement_by_category'].setValidators([Validators.required]);
|
|
6397
6398
|
}
|
|
6398
6399
|
else {
|
|
6399
|
-
this.codSelfFormStepOne.
|
|
6400
|
+
this.codSelfFormStepOne.controls['agreement_by_category'].clearValidators();
|
|
6400
6401
|
}
|
|
6401
|
-
this.codSelfFormStepOne.
|
|
6402
|
+
this.codSelfFormStepOne.controls['agreement_by_category'].updateValueAndValidity();
|
|
6402
6403
|
}
|
|
6403
6404
|
});
|
|
6404
6405
|
// Calcular edad y setear valor
|
|
@@ -6543,6 +6544,7 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
|
|
|
6543
6544
|
if (grade !== 'Grado Educativo') {
|
|
6544
6545
|
this.codSelfFormStepOne.controls['grade'].setValue(grade);
|
|
6545
6546
|
// Verificar si el grado seleccionado es 15 o 16
|
|
6547
|
+
console.log("selectGrade", grade);
|
|
6546
6548
|
if (grade === 15 || grade === 16) {
|
|
6547
6549
|
// Si es 15 o 16, mostrar el otro ipt-select
|
|
6548
6550
|
this.showAgreementSelect = true;
|