iptdevs-design-system 3.1.808 → 3.1.810
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-four/cod-form-step-four.component.mjs +6 -5
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +6 -2
- package/fesm2015/iptdevs-design-system.mjs +11 -5
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +10 -5
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.d.ts +1 -1
- package/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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: [
|
|
3974
|
+
birthdate: ['', [Validators.required], []],
|
|
3975
3975
|
country: ['', [Validators.required], []],
|
|
3976
3976
|
state: ['', [Validators.required], []],
|
|
3977
3977
|
city: ['', [Validators.required], []],
|
|
@@ -3993,6 +3993,7 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
3993
3993
|
re_password: [{ value: '', disabled: this.isEditCod }, [Validators.required, Validators.minLength(6)]],
|
|
3994
3994
|
});
|
|
3995
3995
|
// Calcular edad y setear valor
|
|
3996
|
+
this.codFormStepTwo.controls['birthdate'].setValue(this.getCurrentDate());
|
|
3996
3997
|
this.codFormStepTwo.controls['birthdate'].valueChanges.subscribe({
|
|
3997
3998
|
next: (change) => {
|
|
3998
3999
|
let today = new Date();
|
|
@@ -4015,6 +4016,9 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
4015
4016
|
}
|
|
4016
4017
|
});
|
|
4017
4018
|
}
|
|
4019
|
+
getCurrentDate() {
|
|
4020
|
+
return new Date().toISOString().split('T')[0];
|
|
4021
|
+
}
|
|
4018
4022
|
getParameters() {
|
|
4019
4023
|
this.parameterService.getCardTypes('col').subscribe((response) => {
|
|
4020
4024
|
this.idTypes = response.data;
|
|
@@ -4624,7 +4628,7 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4624
4628
|
initForm() {
|
|
4625
4629
|
this.codFormStepFour = this.fb.group({
|
|
4626
4630
|
program_price: [{ value: '', disabled: true }, [Validators.required]],
|
|
4627
|
-
payment_date: [
|
|
4631
|
+
payment_date: ['', [Validators.required]],
|
|
4628
4632
|
payment_method: ['', [Validators.required]],
|
|
4629
4633
|
quota_times: [{ value: '', disabled: true }, [Validators.required]],
|
|
4630
4634
|
total_price: [{ value: '', disabled: true }, [Validators.required]],
|
|
@@ -4632,11 +4636,12 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4632
4636
|
quota_price: ['', [Validators.required]],
|
|
4633
4637
|
fee_number: ['', [Validators.required]],
|
|
4634
4638
|
});
|
|
4639
|
+
this.setCurrentDate();
|
|
4635
4640
|
this.listenPaymentMethodField();
|
|
4636
4641
|
}
|
|
4637
|
-
|
|
4638
|
-
const today = new Date();
|
|
4639
|
-
|
|
4642
|
+
setCurrentDate() {
|
|
4643
|
+
const today = new Date().toISOString().split('T')[0];
|
|
4644
|
+
this.codFormStepFour.get('payment_date')?.setValue(today);
|
|
4640
4645
|
}
|
|
4641
4646
|
listenPaymentMethodField() {
|
|
4642
4647
|
const control = this.codFormStepFour.get('payment_method');
|