iptdevs-design-system 3.1.884 → 3.1.886
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 +15 -2
- package/fesm2015/iptdevs-design-system.mjs +14 -1
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +14 -1
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3697,6 +3697,12 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3697
3697
|
this.communicatorService.setCurrentAgreement(this.localStorageCOD.getCodFormData(1, 'agreement_by_category'));
|
|
3698
3698
|
// Lógica principal de cambios
|
|
3699
3699
|
if (changes['initialData'] || changes['dataPreviusCodData']) {
|
|
3700
|
+
console.log(changes);
|
|
3701
|
+
console.log("initialData", this.initialData);
|
|
3702
|
+
console.log("dataPreviusCodData", this.dataPreviusCodData);
|
|
3703
|
+
console.log("isRenovation", this.isRenovation);
|
|
3704
|
+
console.log("isEditCod", this.isEditCod);
|
|
3705
|
+
console.log("courseSelectRenovation", this.courseSelectRenovation);
|
|
3700
3706
|
this.handleDataChanges(changes);
|
|
3701
3707
|
}
|
|
3702
3708
|
this.cdRef.detectChanges();
|
|
@@ -3749,7 +3755,7 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3749
3755
|
}
|
|
3750
3756
|
handleDataChanges(changes) {
|
|
3751
3757
|
// Caso 1: Hay initialData y NO hay dataPreviusCodData
|
|
3752
|
-
if (changes['initialData']?.currentValue) {
|
|
3758
|
+
if (changes['initialData']?.currentValue && !this.isRenovation && !this.isEditCod) {
|
|
3753
3759
|
console.log("Procesando initialData (tiene prioridad)");
|
|
3754
3760
|
this.processData(this.initialData);
|
|
3755
3761
|
return;
|
|
@@ -3770,6 +3776,13 @@ class CodFormStepOneComponent extends CodFormSteps {
|
|
|
3770
3776
|
this.isDisabledSel = true;
|
|
3771
3777
|
return;
|
|
3772
3778
|
}
|
|
3779
|
+
// Subcaso 2.2: viene con initialData
|
|
3780
|
+
if (this.initialData && !this.isEditCod && !this.isRenovation) {
|
|
3781
|
+
console.log("Procesando dataPreviusCodData en modo dataPreviusCodData con initialData");
|
|
3782
|
+
this.processData(this.initialData);
|
|
3783
|
+
this.isDisabledSel = false;
|
|
3784
|
+
return;
|
|
3785
|
+
}
|
|
3773
3786
|
}
|
|
3774
3787
|
// Caso 3: Ninguna condición anterior se cumplió (reset controlado)
|
|
3775
3788
|
console.log("Reseteando formulario (condición no reconocida)");
|