iptdevs-design-system 3.1.498 → 3.1.499

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.
@@ -6391,15 +6391,18 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
6391
6391
  });
6392
6392
  // Agregar la lógica para mostrar u ocultar el select de acuerdo al valor de grade
6393
6393
  this.codSelfFormStepOne.controls['grade'].valueChanges.subscribe((grade) => {
6394
- if (grade === 15 || grade === 16) {
6394
+ if (grade == 15 || grade == 16) {
6395
6395
  this.showAgreementSelect = true;
6396
+ console.log("grade-15 or 16", this.showAgreementSelect);
6396
6397
  this.codSelfFormStepOne.controls['agreement_by_category'].setValidators([Validators.required]);
6397
6398
  }
6398
6399
  else {
6399
6400
  this.showAgreementSelect = false;
6401
+ console.log("false", this.showAgreementSelect);
6400
6402
  this.codSelfFormStepOne.controls['agreement_by_category'].clearValidators();
6401
6403
  }
6402
6404
  this.codSelfFormStepOne.controls['agreement_by_category'].updateValueAndValidity();
6405
+ console.log("suscribeChangesGrade", this.showAgreementSelect);
6403
6406
  });
6404
6407
  // Calcular edad y setear valor
6405
6408
  this.codSelfFormStepOne.controls['birthdate'].valueChanges.subscribe({
@@ -6544,7 +6547,7 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
6544
6547
  this.codSelfFormStepOne.controls['grade'].setValue(grade);
6545
6548
  // Verificar si el grado seleccionado es 15 o 16
6546
6549
  console.log("selectGrade", grade);
6547
- if (grade === 15 || grade === 16) {
6550
+ if (grade == 15 || grade == 16) {
6548
6551
  // Si es 15 o 16, mostrar el otro ipt-select
6549
6552
  this.showAgreementSelect = true;
6550
6553
  }
@@ -6558,6 +6561,7 @@ class CodSelfFormStepOneComponent extends CodSelfManagedSteps {
6558
6561
  this.codSelfFormStepOne.controls['grade'].setValue(null);
6559
6562
  this.showAgreementSelect = false;
6560
6563
  }
6564
+ console.log("selectGrade", this.showAgreementSelect);
6561
6565
  }
6562
6566
  selectAgreement(grade) {
6563
6567
  if (grade !== 'Convenio') {