@golstats/gsc-reports 1.0.85 → 1.0.86

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.
Files changed (29) hide show
  1. package/README.md +2 -2
  2. package/dist/{FilterConditions-55d68355-DMqzcKBO-BztXde2I-kyOFlHfh.js → FilterConditions-55d68355-DMqzcKBO-Dsva57Z5-DGGQbyqc.js} +13 -13
  3. package/dist/{FilterField-59a73e38-CNaE03Ge-Dx_kEi44-HUfd2M4_.js → FilterField-59a73e38-CNaE03Ge-DoVl6t0F-9HWoGn8h.js} +3 -3
  4. package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r-CpqGlYSI-tKXyAPGC.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-ChNV-mxz-TFHmlF8S.js} +1 -1
  5. package/dist/css/fonts.css +83 -83
  6. package/dist/gsc-reports.css +1 -1
  7. package/dist/gsc-reports.es.js +1 -1
  8. package/dist/gsc-reports.umd.js +246 -246
  9. package/dist/{index-Db8K9_It.js → index-jr8PN3sh.js} +60261 -59697
  10. package/package.json +2 -2
  11. package/src/components/elementsTemplates/FortalezasView.vue +16 -5
  12. package/src/components/elementsTemplates/ModalConfigurarContenido.vue +1343 -1341
  13. package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
  14. package/src/components/elementsTemplates/ModalSoloEscritorio.vue +83 -83
  15. package/src/components/elementsTemplates/ModalduplicateTemplate.vue +300 -300
  16. package/src/components/elementsTemplates/TooltipReportOptions.vue +97 -97
  17. package/src/components/elementsTemplates/TooltipTemplateOptions.vue +168 -168
  18. package/src/components/filters.vue +935 -935
  19. package/src/components/template-report-maker/CoverSelector.vue +165 -165
  20. package/src/components/template-report-maker/ReportView.vue +66 -66
  21. package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -741
  22. package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -743
  23. package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -173
  24. package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -173
  25. package/src/index.js +4 -4
  26. package/src/types.d.ts +45 -45
  27. package/src/utils/dateUtils.js +52 -52
  28. package/dist/images/cancha-horizontal.jpg +0 -0
  29. 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.85",
3
+ "version": "1.0.86",
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.118",
50
+ "@golstats/gsc-template-report-maker": "^1.0.119",
51
51
  "axios": "^1.10.0",
52
52
  "gridstack": "^12.1.1",
53
53
  "tiny-emitter": "^2.1.0",
@@ -220,6 +220,11 @@ const props = defineProps({
220
220
  required: false,
221
221
  default: null,
222
222
  },
223
+ templateType: {
224
+ type: [String, Number],
225
+ required: false,
226
+ default: 1, // 1 = prepartido, 2 = postpartido
227
+ },
223
228
  })
224
229
 
225
230
  const emit = defineEmits(['update:modelValue'])
@@ -331,9 +336,9 @@ watch(
331
336
  { deep: true },
332
337
  )
333
338
 
334
- // Recargar fortalezas cuando cambien seasonId, teamId, gameId o token
339
+ // Recargar fortalezas cuando cambien seasonId, teamId, gameId, token o templateType
335
340
  watch(
336
- () => [props.seasonId, props.teamId, props.gameId, props.token],
341
+ () => [props.seasonId, props.teamId, props.gameId, props.token, props.templateType],
337
342
  () => {
338
343
  fetchFortalezas()
339
344
  },
@@ -371,9 +376,15 @@ async function fetchFortalezas() {
371
376
  error.value = null
372
377
 
373
378
  try {
374
- // Construir la URL: si hay gameId, usar la ruta con pregames, si no, usar la ruta sin pregames
375
-
376
- const url = `https://5c9xc3gwh2.execute-api.us-east-2.amazonaws.com/prod/strengths/seasons/${props.seasonId}/pregames/${props.gameId}/teams/${props.teamId}`
379
+ // Construir la URL según el tipo de template: pregames para prepartido (1), postgames para postpartido (2)
380
+ let url
381
+ if (props.templateType === 2) {
382
+ // Postpartido
383
+ url = `https://5c9xc3gwh2.execute-api.us-east-2.amazonaws.com/prod/strengths/seasons/${props.seasonId}/postgames/${props.gameId}/teams/${props.teamId}`
384
+ } else {
385
+ // Prepartido
386
+ url = `https://5c9xc3gwh2.execute-api.us-east-2.amazonaws.com/prod/strengths/seasons/${props.seasonId}/pregames/${props.gameId}/teams/${props.teamId}`
387
+ }
377
388
 
378
389
  const response = await fetch(url, {
379
390
  method: 'GET',