@golstats/gsc-reports 1.0.75 → 1.0.76
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/README.md +2 -2
- package/dist/{FilterConditions-55d68355-DMqzcKBO-D-F7eebx-B2f4vldh.js → FilterConditions-55d68355-DMqzcKBO-LoDZzMFx-BnRBGncA.js} +1 -1
- package/dist/{FilterField-59a73e38-CNaE03Ge-BSjrLEv7-BA50MIOk.js → FilterField-59a73e38-CNaE03Ge-CQDCuDcF-D41LgF38.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r-BXbLe1Ix-aBIaeKxy.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-B4SJzQzA-DXEQISeO.js} +1 -1
- package/dist/css/fonts.css +83 -83
- package/dist/gsc-reports.css +1 -1
- package/dist/gsc-reports.es.js +1 -1
- package/dist/gsc-reports.umd.js +225 -225
- package/dist/{index-BdUpXZsm.js → index-DWidkeeO.js} +54646 -54564
- package/package.json +2 -2
- package/src/components/TemplatesSection.vue +29 -2
- package/src/components/elementsTemplates/ModalConfigurarContenido.vue +1250 -1229
- package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
- package/src/components/elementsTemplates/ModalGenerarReporte.vue +22 -1
- package/src/components/elementsTemplates/ModalSoloEscritorio.vue +83 -83
- package/src/components/elementsTemplates/ModalduplicateTemplate.vue +300 -300
- package/src/components/elementsTemplates/TooltipReportOptions.vue +97 -97
- package/src/components/elementsTemplates/TooltipTemplateOptions.vue +168 -168
- package/src/components/filters.vue +935 -935
- package/src/components/template-report-maker/CoverSelector.vue +165 -165
- package/src/components/template-report-maker/ReportView.vue +66 -66
- package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -741
- package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -743
- package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -173
- package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -173
- package/src/index.js +4 -4
- package/src/types.d.ts +45 -45
- package/src/utils/dateUtils.js +52 -52
- package/dist/images/cancha-horizontal.jpg +0 -0
- package/dist/images/canchaRPH.svg +0 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golstats/gsc-reports",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
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.
|
|
50
|
+
"@golstats/gsc-template-report-maker": "^1.0.109",
|
|
51
51
|
"axios": "^1.10.0",
|
|
52
52
|
"gridstack": "^12.1.1",
|
|
53
53
|
"tiny-emitter": "^2.1.0",
|
|
@@ -108,8 +108,9 @@
|
|
|
108
108
|
:template-id="generarTemplateId"
|
|
109
109
|
:template-type="generarTemplateType"
|
|
110
110
|
:template="generarTemplate"
|
|
111
|
+
:show-error409-on-mount="showError409InModal"
|
|
111
112
|
v-if="showModalGenerarReporte"
|
|
112
|
-
@close="
|
|
113
|
+
@close="handleCloseModalGenerarReporte"
|
|
113
114
|
@switch-to-reports="$emit('switch-to-reports')"
|
|
114
115
|
@open-configurar-contenido="onOpenConfigurarContenido"
|
|
115
116
|
/>
|
|
@@ -213,6 +214,7 @@ const showModalDuplicateTemplate = ref(false)
|
|
|
213
214
|
const showModalDeleteTemplate = ref(false)
|
|
214
215
|
const showModalConfigurarContenido = ref(false)
|
|
215
216
|
const configurarContenidoData = ref(null)
|
|
217
|
+
const showError409InModal = ref(false)
|
|
216
218
|
const renameTemplateName = ref('')
|
|
217
219
|
const renameTemplateType = ref('')
|
|
218
220
|
const duplicateTemplateName = ref('')
|
|
@@ -374,10 +376,17 @@ function onEditTemplate(template) {
|
|
|
374
376
|
emit('edit-template', template)
|
|
375
377
|
}
|
|
376
378
|
|
|
379
|
+
// Función para manejar cuando se cierra ModalGenerarReporte
|
|
380
|
+
function handleCloseModalGenerarReporte() {
|
|
381
|
+
showModalGenerarReporte.value = false
|
|
382
|
+
showError409InModal.value = false // Resetear el estado del error
|
|
383
|
+
}
|
|
384
|
+
|
|
377
385
|
// Función para manejar cuando se detecta componente Fortalezas y se necesita abrir ModalConfigurarContenido
|
|
378
386
|
function onOpenConfigurarContenido(data) {
|
|
379
387
|
configurarContenidoData.value = data
|
|
380
388
|
showModalGenerarReporte.value = false
|
|
389
|
+
showError409InModal.value = false // Asegurar que el error esté reseteado
|
|
381
390
|
showModalConfigurarContenido.value = true
|
|
382
391
|
}
|
|
383
392
|
|
|
@@ -468,7 +477,25 @@ async function onNextFromConfigurar(options) {
|
|
|
468
477
|
configurarContenidoData.value = null
|
|
469
478
|
} catch (error) {
|
|
470
479
|
console.error('Error al generar el reporte:', error)
|
|
471
|
-
|
|
480
|
+
|
|
481
|
+
// Verificar si es error 409 (Report with same template and game already exists)
|
|
482
|
+
if (error.response && error.response.status === 409) {
|
|
483
|
+
// Volver a abrir ModalGenerarReporte con el error 409 visible desde el inicio
|
|
484
|
+
// Necesitamos restaurar los datos del template para mostrar el modal
|
|
485
|
+
if (configurarContenidoData.value) {
|
|
486
|
+
generarTemplateId.value = configurarContenidoData.value.template.id
|
|
487
|
+
generarTemplateType.value = configurarContenidoData.value.template.template_type
|
|
488
|
+
generarTemplate.value = configurarContenidoData.value.template
|
|
489
|
+
// Activar el flag para mostrar el error 409 desde el inicio
|
|
490
|
+
showError409InModal.value = true
|
|
491
|
+
// Usar nextTick para asegurar que el modal se monte antes de mostrar el error
|
|
492
|
+
await nextTick()
|
|
493
|
+
showModalGenerarReporte.value = true
|
|
494
|
+
}
|
|
495
|
+
} else {
|
|
496
|
+
// Para otros errores, mostrar alerta genérica
|
|
497
|
+
alert('Error al generar el reporte. Por favor, intenta de nuevo.')
|
|
498
|
+
}
|
|
472
499
|
}
|
|
473
500
|
}
|
|
474
501
|
|