iptdevs-design-system 3.1.885 → 3.1.887
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/steps/cod-form-step-one/cod-form-step-one.component.mjs +8 -12
- package/fesm2015/iptdevs-design-system.mjs +7 -11
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +7 -11
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3749,8 +3749,7 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3749
3749
|
}
|
|
3750
3750
|
handleDataChanges(changes) {
|
|
3751
3751
|
// Caso 1: Hay initialData y NO hay dataPreviusCodData
|
|
3752
|
-
if (changes['initialData']?.currentValue && !this.
|
|
3753
|
-
console.log("Procesando initialData (tiene prioridad)");
|
|
3752
|
+
if (changes['initialData']?.currentValue && !this.isRenovation && !this.isEditCod) {
|
|
3754
3753
|
this.processData(this.initialData);
|
|
3755
3754
|
return;
|
|
3756
3755
|
}
|
|
@@ -3758,18 +3757,22 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3758
3757
|
if (changes['dataPreviusCodData']?.currentValue) {
|
|
3759
3758
|
// Subcaso 2.1: Es edición
|
|
3760
3759
|
if (this.isEditCod && !this.isRenovation) {
|
|
3761
|
-
console.log("Procesando dataPreviusCodData en modo edición");
|
|
3762
3760
|
this.processData(this.dataPreviusCodData);
|
|
3763
3761
|
this.isDisabledSel = !this.dataPreviusCodData.edit_course_payment;
|
|
3764
3762
|
return;
|
|
3765
3763
|
}
|
|
3766
3764
|
// Subcaso 2.2: Es renovación
|
|
3767
3765
|
if (!this.isEditCod && this.isRenovation && this.courseSelectRenovation) {
|
|
3768
|
-
console.log("Procesando dataPreviusCodData en modo renovación");
|
|
3769
3766
|
this.setDataCodRenovationSelect();
|
|
3770
3767
|
this.isDisabledSel = true;
|
|
3771
3768
|
return;
|
|
3772
3769
|
}
|
|
3770
|
+
// Subcaso 2.2: viene con initialData
|
|
3771
|
+
if (this.initialData && !this.isEditCod && !this.isRenovation) {
|
|
3772
|
+
this.processData(this.initialData);
|
|
3773
|
+
this.isDisabledSel = false;
|
|
3774
|
+
return;
|
|
3775
|
+
}
|
|
3773
3776
|
}
|
|
3774
3777
|
// Caso 3: Ninguna condición anterior se cumplió (reset controlado)
|
|
3775
3778
|
console.log("Reseteando formulario (condición no reconocida)");
|
|
@@ -3952,13 +3955,6 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3952
3955
|
this.codFormStepOne.controls['english_level'].setValue(null);
|
|
3953
3956
|
}
|
|
3954
3957
|
}
|
|
3955
|
-
// private validRequest(): boolean {
|
|
3956
|
-
// return (
|
|
3957
|
-
// this.codFormStepOne.controls['english_level'].value != '' &&
|
|
3958
|
-
// this.codFormStepOne.controls['agreement_by_category'].value != '' &&
|
|
3959
|
-
// this.codFormStepOne.controls['course_type'].value != ''
|
|
3960
|
-
// );
|
|
3961
|
-
// }
|
|
3962
3958
|
validRequest() {
|
|
3963
3959
|
const form = this.codFormStepOne;
|
|
3964
3960
|
return !!(form.get('english_level')?.value &&
|