utn-cli 2.1.35 → 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.35",
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",
@@ -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