@golstats/gsc-reports 1.0.79 → 1.0.80

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-D2ZerJ0p-Cc4ohJII.js → FilterConditions-55d68355-DMqzcKBO-BAniiYAp-BupK7hCt.js} +1 -1
  3. package/dist/{FilterField-59a73e38-CNaE03Ge-Dq6bT6HM-pz8ZTRNa.js → FilterField-59a73e38-CNaE03Ge-C_jOHZXY-lDCHt_1F.js} +1 -1
  4. package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r-a9ImVRWo-CrA3UZVD.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-B83ffZQ0-BBw7f2jE.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 +66 -65
  9. package/dist/{index-Dp5bx4hi.js → index-D3dTwIm2.js} +10977 -10898
  10. package/package.json +2 -2
  11. package/src/components/elementsTemplates/FortalezasView.vue +15 -4
  12. package/src/components/elementsTemplates/ModalConfigurarContenido.vue +1332 -1250
  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.79",
3
+ "version": "1.0.80",
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.112",
50
+ "@golstats/gsc-template-report-maker": "^1.0.114",
51
51
  "axios": "^1.10.0",
52
52
  "gridstack": "^12.1.1",
53
53
  "tiny-emitter": "^2.1.0",
@@ -215,6 +215,11 @@ const props = defineProps({
215
215
  required: false,
216
216
  default: null,
217
217
  },
218
+ gameId: {
219
+ type: [String, Number],
220
+ required: false,
221
+ default: null,
222
+ },
218
223
  })
219
224
 
220
225
  const emit = defineEmits(['update:modelValue'])
@@ -326,9 +331,9 @@ watch(
326
331
  { deep: true },
327
332
  )
328
333
 
329
- // Recargar fortalezas cuando cambien seasonId, teamId o token
334
+ // Recargar fortalezas cuando cambien seasonId, teamId, gameId o token
330
335
  watch(
331
- () => [props.seasonId, props.teamId, props.token],
336
+ () => [props.seasonId, props.teamId, props.gameId, props.token],
332
337
  () => {
333
338
  fetchFortalezas()
334
339
  },
@@ -366,7 +371,10 @@ async function fetchFortalezas() {
366
371
  error.value = null
367
372
 
368
373
  try {
369
- const url = `https://5c9xc3gwh2.execute-api.us-east-2.amazonaws.com/prod/strengths/seasons/${props.seasonId}/teams/${props.teamId}`
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}`
377
+
370
378
  const response = await fetch(url, {
371
379
  method: 'GET',
372
380
  headers: {
@@ -381,17 +389,20 @@ async function fetchFortalezas() {
381
389
 
382
390
  const data = await response.json()
383
391
  console.log('data: ', data)
392
+ console.log('nUEVO NUEVO dataaaaaa: ----------->', data)
384
393
 
385
394
  // Guardar los datos originales del API
386
395
  fortalezasRawData.value = data.strengths || []
387
396
 
397
+ console.log('nUEVO NUEVO dataaaaaa:5555555555 ----------->', data.strengths)
398
+
388
399
  // Mapear los datos del API al formato esperado por el componente
389
400
  fortalezasData.value = data.strengths.map((item) => ({
390
401
  id: item.categories,
391
402
  name: item.name,
392
403
  value: item.total,
393
404
  category:
394
- item.category_type == 1 ? 'Ofensiva' : item.category_type == 2 ? 'Posesion' : 'Defensiva',
405
+ item.category_type == 1 ? 'Ofensiva' : item.category_type == 2 ? 'Defensiva' : 'Posesion',
395
406
  ranking: `#${item.league_ranking} en la liga`,
396
407
  color: getCategoryColor(item.category_type || 'General'),
397
408
  }))