iptdevs-design-system 2.6.8 → 2.6.10
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/atoms/input/input.component.mjs +3 -3
- package/esm2020/lib/components/forms/create-user-form/create-user-form.component.mjs +37 -33
- package/fesm2015/iptdevs-design-system.mjs +38 -34
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +38 -34
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -324,7 +324,7 @@ InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
324
324
|
|
|
325
325
|
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
326
326
|
|
|
327
|
-
<p *ngIf="(formControl.invalid && formControl.value !== '')
|
|
327
|
+
<p *ngIf="(formControl.invalid && formControl.value !== '')">
|
|
328
328
|
{{ validateText }}
|
|
329
329
|
</p>
|
|
330
330
|
</div>
|
|
@@ -371,7 +371,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
371
371
|
|
|
372
372
|
<label [ngClass]="{'labelUp': formControl.value !== ''}">{{ placeHolder }}</label>
|
|
373
373
|
|
|
374
|
-
<p *ngIf="(formControl.invalid && formControl.value !== '')
|
|
374
|
+
<p *ngIf="(formControl.invalid && formControl.value !== '')">
|
|
375
375
|
{{ validateText }}
|
|
376
376
|
</p>
|
|
377
377
|
</div>
|
|
@@ -1129,8 +1129,6 @@ class CreateUserFormComponent {
|
|
|
1129
1129
|
this.loader = false;
|
|
1130
1130
|
}
|
|
1131
1131
|
ngOnInit() {
|
|
1132
|
-
console.log(this.userType);
|
|
1133
|
-
console.log(this.getRolesOptions());
|
|
1134
1132
|
this.initForm();
|
|
1135
1133
|
this.getParameters();
|
|
1136
1134
|
}
|
|
@@ -1194,41 +1192,47 @@ class CreateUserFormComponent {
|
|
|
1194
1192
|
});
|
|
1195
1193
|
}
|
|
1196
1194
|
getRolesOptions() {
|
|
1195
|
+
// Estudiante
|
|
1196
|
+
if (this.userType === 'student') {
|
|
1197
|
+
return [
|
|
1198
|
+
{ code: '13', name: 'Student' },
|
|
1199
|
+
];
|
|
1200
|
+
}
|
|
1197
1201
|
// Académico
|
|
1198
|
-
if (this.userType === 'academic')
|
|
1199
|
-
return
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1202
|
+
if (this.userType === 'academic') {
|
|
1203
|
+
return [
|
|
1204
|
+
{ code: '11', name: 'Teacher PRO' },
|
|
1205
|
+
{ code: '12', name: 'Teacher' },
|
|
1206
|
+
];
|
|
1207
|
+
}
|
|
1204
1208
|
// Administrativo
|
|
1205
|
-
if (this.userType === 'administrative')
|
|
1206
|
-
return
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1209
|
+
if (this.userType === 'administrative') {
|
|
1210
|
+
return [
|
|
1211
|
+
{ code: '31', name: 'Administrative Supervisor' },
|
|
1212
|
+
{ code: '32', name: 'Administrative Advisor' },
|
|
1213
|
+
];
|
|
1214
|
+
}
|
|
1211
1215
|
// Marketing
|
|
1212
|
-
if (this.userType === 'marketing')
|
|
1213
|
-
return
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1216
|
+
if (this.userType === 'marketing') {
|
|
1217
|
+
return [
|
|
1218
|
+
{ code: '21', name: 'Marketing Supervisor' },
|
|
1219
|
+
{ code: '22', name: 'Marketing Advisor' },
|
|
1220
|
+
];
|
|
1221
|
+
}
|
|
1218
1222
|
// Comercial
|
|
1219
|
-
if (this.userType === 'commercial')
|
|
1220
|
-
return
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1223
|
+
if (this.userType === 'commercial') {
|
|
1224
|
+
return [
|
|
1225
|
+
{ code: '41', name: 'Commercial Supervisor' },
|
|
1226
|
+
{ code: '42', name: 'Commercial Advisor' },
|
|
1227
|
+
];
|
|
1228
|
+
}
|
|
1225
1229
|
// Cartera
|
|
1226
|
-
if (this.userType === 'treasure')
|
|
1227
|
-
return
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1230
|
+
if (this.userType === 'treasure') {
|
|
1231
|
+
return [
|
|
1232
|
+
{ code: '51', name: 'Treauser Supervisor' },
|
|
1233
|
+
{ code: '52', name: 'Treauser Advisor' },
|
|
1234
|
+
];
|
|
1235
|
+
}
|
|
1232
1236
|
}
|
|
1233
1237
|
selectRol(role) {
|
|
1234
1238
|
if (role !== 'Seleccione el rol') {
|