utn-cli 2.1.34 → 2.1.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utn-cli",
3
- "version": "2.1.34",
3
+ "version": "2.1.36",
4
4
  "description": "Herramienta CLI unificada para la gestión de plantillas en SIGU.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -24,7 +24,7 @@ class Miscelaneo {
24
24
  this.MenuPadre = InformacionDelModulo.getMenuPadre();
25
25
  this.BackEndsQueConsumeEsteModulo = InformacionDelModulo.getBackEndsQueConsumeEsteModulo();
26
26
  // this.PerfilGeneral = InformacionDelModulo.getPerfilGeneral();
27
- this.UsuariosConAccesoInicial = InformacionDelModulo.getUsuariosConAccesoInicial();
27
+ // this.UsuariosConAccesoInicial = InformacionDelModulo.getUsuariosConAccesoInicial();
28
28
  this.IconoDelModulo = this.NombreCanonicoDelModulo + '.svg';
29
29
  // this.ColorDelModulo = InformacionDelModulo.getColorDelModulo();
30
30
  this.CorreoParaReportes = InformacionDelModulo.getCorreoParaReportes();
@@ -1132,21 +1132,21 @@ class Miscelaneo {
1132
1132
  (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = '111050570'), NOW(4), USER()) ON DUPLICATE KEY UPDATE `LastUser` = USER()"
1133
1133
  , [await this.permisoIdV2()]);
1134
1134
 
1135
- // Asginación inicial de permisos
1136
- if (this.UsuariosConAccesoInicial.length > 0) {
1137
- const permisoId = await this.permisoIdV2();
1138
- const permisoIdDelPadre = await this.permisoIdDelPadreV2();
1139
- this.UsuariosConAccesoInicial.forEach(async (dato) => {
1140
- await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosPersonasV2` VALUES (?,\
1141
- (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
1142
- ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
1143
- , [permisoIdDelPadre, dato]);
1144
- await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosPersonasV2` VALUES (?,\
1145
- (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
1146
- ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
1147
- , [permisoId, dato]);
1148
- });
1149
- }
1135
+ // // Asginación inicial de permisos
1136
+ // if (this.UsuariosConAccesoInicial.length > 0) {
1137
+ // const permisoId = await this.permisoIdV2();
1138
+ // const permisoIdDelPadre = await this.permisoIdDelPadreV2();
1139
+ // this.UsuariosConAccesoInicial.forEach(async (dato) => {
1140
+ // await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosPersonasV2` VALUES (?,\
1141
+ // (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
1142
+ // ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
1143
+ // , [permisoIdDelPadre, dato]);
1144
+ // await ejecutarConsultaSIGU("INSERT INTO `SIGU`.`SIGU_PermisosPersonasV2` VALUES (?,\
1145
+ // (SELECT `Identificador` FROM `SIGU`.`SIGU_Personas` WHERE `Identificacion` = ?), NOW(4), USER())\
1146
+ // ON DUPLICATE KEY UPDATE `LastUpdate` = NOW(4)"
1147
+ // , [permisoId, dato]);
1148
+ // });
1149
+ // }
1150
1150
 
1151
1151
  // Validación de que sólo el front especificado pueda consumir este backend
1152
1152
  const uuidTemporal = await ejecutarConsultaSIGU("SELECT UUID() AS `UUID`");
@@ -5,7 +5,7 @@
5
5
  .modulo-card {
6
6
  position: relative;
7
7
  width: 300px;
8
- max-width: calc(100% - 20px);
8
+ /* Reduced from 380px */
9
9
  height: 220px;
10
10
  border-radius: 25px;
11
11
  overflow: hidden;
@@ -38,13 +38,34 @@
38
38
  position: relative;
39
39
  }
40
40
 
41
+ .modulo-tipo-container {
42
+ display: flex;
43
+ flex-direction: column;
44
+ align-items: flex-start;
45
+ gap: 6px;
46
+ }
47
+
41
48
  .modulo-tipo {
42
49
  color: #3e5a7a;
43
50
  font-size: 1.2rem;
44
51
  font-weight: 500;
45
52
  letter-spacing: 1px;
46
53
  margin-top: 5px;
47
- /* Slight adjustment for alignment */
54
+ }
55
+
56
+ .modulo-cantidad-badge {
57
+ display: inline-flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ background-color: #dce8fb;
61
+ color: #0B4FCE;
62
+ font-size: 0.7rem;
63
+ font-weight: 700;
64
+ min-width: 20px;
65
+ height: 20px;
66
+ padding: 0 5px;
67
+ border-radius: 10px;
68
+ line-height: 1;
48
69
  }
49
70
 
50
71
  .pin-container {
@@ -1,6 +1,11 @@
1
1
  <div class="modulo-card" (click)="onClick()">
2
2
  <div class="modulo-card-header">
3
- <span class="modulo-tipo">{{ modulo.Tipo | uppercase }}</span>
3
+ <div class="modulo-tipo-container">
4
+ <span class="modulo-tipo">{{ modulo.Tipo | uppercase }}</span>
5
+ @if(cantidad !== undefined && cantidad > 0) {
6
+ <span class="modulo-cantidad-badge">{{ cantidad }}</span>
7
+ }
8
+ </div>
4
9
  <div class="pin-container" (click)="alternarFavorito($event)" [ngClass]="{ 'pinned': estaEnFavoritos() }">
5
10
  <span class="material-icons pin-icon">
6
11
  push_pin
@@ -11,6 +11,7 @@ import { MiscelaneosService } from '../../../miscelaneos.service';
11
11
  })
12
12
  export class TarjetaModuloComponent {
13
13
  @Input() modulo!: any;
14
+ @Input() cantidad?: number;
14
15
  @Output() moduloSeleccionado = new EventEmitter<any>();
15
16
  @Output() favoritoToggled = new EventEmitter<string>();
16
17