iptdevs-design-system 3.1.972 → 3.1.973
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/components/forms/update-user-form/update-user-form.component.mjs +4 -8
- package/fesm2015/iptdevs-design-system.mjs +3 -7
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +3 -7
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1889,7 +1889,7 @@ class updateUserFormComponent {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
ngOnInit() {
|
|
1891
1891
|
this.getParameters();
|
|
1892
|
-
this.trackIdTypeChanges();
|
|
1892
|
+
// this.trackIdTypeChanges();
|
|
1893
1893
|
}
|
|
1894
1894
|
ngOnChanges(changes) {
|
|
1895
1895
|
if (changes['visibleModal'] && changes['visibleModal'].currentValue) {
|
|
@@ -1958,10 +1958,6 @@ class updateUserFormComponent {
|
|
|
1958
1958
|
this.civilStatus = this.parametersAll?.civilStatus;
|
|
1959
1959
|
this.states = this.parametersAll?.State;
|
|
1960
1960
|
this.cities = this.parametersAll?.city;
|
|
1961
|
-
// this.genders = [
|
|
1962
|
-
// { code: 1, name: 'Masculino' },
|
|
1963
|
-
// { code: 2, name: 'Femenino' }
|
|
1964
|
-
// ];
|
|
1965
1961
|
if (this.parametersAll && this.parametersAll.gender) {
|
|
1966
1962
|
// Transformar gender en un arreglo de { code, name }
|
|
1967
1963
|
this.genders = this.parametersAll.gender.map((gender) => ({
|
|
@@ -2124,10 +2120,10 @@ class updateUserFormComponent {
|
|
|
2124
2120
|
parent_email: this.DataStudent.cods?.parent?.email || ''
|
|
2125
2121
|
});
|
|
2126
2122
|
}
|
|
2123
|
+
this.updateIdCardValidators(this.DataStudent.id_card_type);
|
|
2127
2124
|
this.updateUserForm.reset();
|
|
2128
2125
|
this.updateUserForm.patchValue(formValue);
|
|
2129
2126
|
this.initialFormValue = { ...this.updateUserForm.value };
|
|
2130
|
-
this.updateIdCardValidators(this.DataStudent.id_card_type);
|
|
2131
2127
|
if (formValue.country) {
|
|
2132
2128
|
// console.log("en populateForm se envio dato para setearse country");
|
|
2133
2129
|
this.countries = this.parametersAll?.country;
|
|
@@ -2141,7 +2137,7 @@ class updateUserFormComponent {
|
|
|
2141
2137
|
}
|
|
2142
2138
|
if (formValue.id_card_type) {
|
|
2143
2139
|
this.idTypes = this.parametersAll?.TypeIdCardByCountryCol;
|
|
2144
|
-
this.
|
|
2140
|
+
this.selectIdType('id_card_type', this.DataStudent.id_card_type);
|
|
2145
2141
|
}
|
|
2146
2142
|
if (formValue.phone_indicative) {
|
|
2147
2143
|
this.indicatives = this.parametersAll?.indicatives;
|