@golstats/gsc-reports 1.0.82 → 1.0.84

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": "@golstats/gsc-reports",
3
- "version": "1.0.82",
3
+ "version": "1.0.84",
4
4
  "main": "dist/gsc-reports.umd.js",
5
5
  "module": "dist/gsc-reports.es.js",
6
6
  "exports": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@golstats/gsc-checkbox": "^1.0.13",
50
- "@golstats/gsc-template-report-maker": "^1.0.116",
50
+ "@golstats/gsc-template-report-maker": "^1.0.117",
51
51
  "axios": "^1.10.0",
52
52
  "gridstack": "^12.1.1",
53
53
  "tiny-emitter": "^2.1.0",
@@ -11,7 +11,8 @@
11
11
  alt="icono reporte blanco"
12
12
  />
13
13
  <span class="modal-title"
14
- >Generar reporte&nbsp; - &nbsp; <span class="prepartido-text">Prepartido</span></span
14
+ >Generar reporte&nbsp; - &nbsp;
15
+ <span class="prepartido-text">{{ tipoReporteTexto }}</span></span
15
16
  >
16
17
  </div>
17
18
  <div class="step-counter">
@@ -356,6 +357,14 @@ const hasFortalezas = computed(() => tieneComponenteFortalezas())
356
357
  // Computed para obtener los conteos de Fortalezas
357
358
  const fortalezasCounts = computed(() => contarFortalezas())
358
359
 
360
+ // Computed para determinar el texto del tipo de reporte
361
+ const tipoReporteTexto = computed(() => {
362
+ if (!props.template || !props.template.template_type) {
363
+ return 'Prepartido' // Valor por defecto
364
+ }
365
+ return props.template.template_type === 1 ? 'Prepartido' : 'Postpartido'
366
+ })
367
+
359
368
  // const hasCorners = false // OCULTO POR EL MOMENTO
360
369
  // Estado del modal
361
370
  const currentStep = ref(0) // 0 = configuración inicial, luego pasos dinámicos