iptdevs-design-system 3.1.809 → 3.1.811

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.
@@ -3971,7 +3971,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
3971
3971
  initForm() {
3972
3972
  this.codFormStepTwo = this.fb.group({
3973
3973
  student_address: ['', [Validators.required], []],
3974
- birthdate: [new Date().toISOString().split('T')[0], [Validators.required], []],
3974
+ birthdate: ['', [Validators.required], []],
3975
3975
  country: ['', [Validators.required], []],
3976
3976
  state: ['', [Validators.required], []],
3977
3977
  city: ['', [Validators.required], []],
@@ -3992,7 +3992,10 @@ class CodFormStepTwoComponent extends CodFormSteps {
3992
3992
  password: [{ value: '', disabled: this.isEditCod }, [Validators.required, Validators.minLength(6)]],
3993
3993
  re_password: [{ value: '', disabled: this.isEditCod }, [Validators.required, Validators.minLength(6)]],
3994
3994
  });
3995
+ const currentDate = new Date().toISOString().split('T')[0];
3996
+ this.codFormStepTwo.controls['birthdate'].setValue(currentDate);
3995
3997
  // Calcular edad y setear valor
3998
+ console.log(this.codFormStepTwo.controls['birthdate'].value);
3996
3999
  this.codFormStepTwo.controls['birthdate'].valueChanges.subscribe({
3997
4000
  next: (change) => {
3998
4001
  let today = new Date();
@@ -4632,13 +4635,10 @@ class CodFormStepFourComponent extends CodFormSteps {
4632
4635
  quota_price: ['', [Validators.required]],
4633
4636
  fee_number: ['', [Validators.required]],
4634
4637
  });
4635
- this.setCurrentDate();
4638
+ const currentDate = new Date().toISOString().split('T')[0];
4639
+ this.codFormStepFour.controls['payment_date'].setValue(currentDate);
4636
4640
  this.listenPaymentMethodField();
4637
4641
  }
4638
- setCurrentDate() {
4639
- const today = new Date().toISOString().split('T')[0];
4640
- this.codFormStepFour.get('payment_date')?.setValue(today);
4641
- }
4642
4642
  listenPaymentMethodField() {
4643
4643
  const control = this.codFormStepFour.get('payment_method');
4644
4644
  control?.valueChanges.subscribe((change) => {