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.
@@ -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 !== '') || formControl.touched">
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 !== '') || formControl.touched">
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 'hola';
1200
- // [
1201
- // { code: '11', name: 'Teacher PRO' },
1202
- // { code: '12', name: 'Teacher' },
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
- { code: '31', name: 'Administrative Supervisor' },
1209
- { code: '32', name: 'Administrative Advisor' },
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
- { code: '21', name: 'Marketing Supervisor' },
1216
- { code: '22', name: 'Marketing Advisor' },
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
- { code: '41', name: 'Commercial Supervisor' },
1223
- { code: '42', name: 'Commercial Advisor' },
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
- { code: '51', name: 'Treauser Supervisor' },
1230
- { code: '52', name: 'Treauser Advisor' },
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') {