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.
- package/esm2020/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.mjs +3 -6
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +5 -2
- package/fesm2015/iptdevs-design-system.mjs +6 -7
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +6 -6
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.d.ts +0 -1
- 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], []],
|
|
@@ -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
|
-
|
|
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) => {
|