iptdevs-design-system 3.1.883 → 3.1.885
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 +7 -2
- package/fesm2015/iptdevs-design-system.mjs +6 -1
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +6 -1
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3749,7 +3749,8 @@ 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.
|
|
3752
|
+
if (changes['initialData']?.currentValue && !this.isEditCod && !this.isRenovation && !this.courseSelectRenovation) {
|
|
3753
|
+
console.log("Procesando initialData (tiene prioridad)");
|
|
3753
3754
|
this.processData(this.initialData);
|
|
3754
3755
|
return;
|
|
3755
3756
|
}
|
|
@@ -3757,18 +3758,21 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3757
3758
|
if (changes['dataPreviusCodData']?.currentValue) {
|
|
3758
3759
|
// Subcaso 2.1: Es edición
|
|
3759
3760
|
if (this.isEditCod && !this.isRenovation) {
|
|
3761
|
+
console.log("Procesando dataPreviusCodData en modo edición");
|
|
3760
3762
|
this.processData(this.dataPreviusCodData);
|
|
3761
3763
|
this.isDisabledSel = !this.dataPreviusCodData.edit_course_payment;
|
|
3762
3764
|
return;
|
|
3763
3765
|
}
|
|
3764
3766
|
// Subcaso 2.2: Es renovación
|
|
3765
3767
|
if (!this.isEditCod && this.isRenovation && this.courseSelectRenovation) {
|
|
3768
|
+
console.log("Procesando dataPreviusCodData en modo renovación");
|
|
3766
3769
|
this.setDataCodRenovationSelect();
|
|
3767
3770
|
this.isDisabledSel = true;
|
|
3768
3771
|
return;
|
|
3769
3772
|
}
|
|
3770
3773
|
}
|
|
3771
3774
|
// Caso 3: Ninguna condición anterior se cumplió (reset controlado)
|
|
3775
|
+
console.log("Reseteando formulario (condición no reconocida)");
|
|
3772
3776
|
this.resetForm();
|
|
3773
3777
|
}
|
|
3774
3778
|
processData(data) {
|
|
@@ -3844,6 +3848,7 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3844
3848
|
const englishLevel = parseInt(this.codFormStepOne.controls['english_level'].value);
|
|
3845
3849
|
const courseModality = parseInt(this.codFormStepOne.controls['course_modality'].value);
|
|
3846
3850
|
if (agreementByCategory && englishLevel && courseModality) {
|
|
3851
|
+
console.log("se llama getAvailibleCourses desde setValuesByLocalStorage");
|
|
3847
3852
|
this.getAvailibleCourses();
|
|
3848
3853
|
}
|
|
3849
3854
|
}
|