@golstats/gsc-reports 1.0.84 → 1.0.85

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 (28) hide show
  1. package/README.md +2 -2
  2. package/dist/{FilterConditions-55d68355-DMqzcKBO-CrXvtqMe-CBqd2V4b.js → FilterConditions-55d68355-DMqzcKBO-BztXde2I-kyOFlHfh.js} +13 -13
  3. package/dist/{FilterField-59a73e38-CNaE03Ge-CItO--FD-Crm4UH60.js → FilterField-59a73e38-CNaE03Ge-Dx_kEi44-HUfd2M4_.js} +3 -3
  4. package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r-BbuVQXya-Cv0v2GxM.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-CpqGlYSI-tKXyAPGC.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 +135 -135
  9. package/dist/images/cancha-horizontal.jpg +0 -0
  10. package/dist/images/canchaRPH.svg +30 -0
  11. package/dist/{index-D_Ufd6mr.js → index-Db8K9_It.js} +18360 -18352
  12. package/package.json +2 -2
  13. package/src/components/elementsTemplates/ModalConfigurarContenido.vue +1341 -1341
  14. package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
  15. package/src/components/elementsTemplates/ModalSoloEscritorio.vue +83 -83
  16. package/src/components/elementsTemplates/ModalduplicateTemplate.vue +300 -300
  17. package/src/components/elementsTemplates/TooltipReportOptions.vue +97 -97
  18. package/src/components/elementsTemplates/TooltipTemplateOptions.vue +168 -168
  19. package/src/components/filters.vue +935 -935
  20. package/src/components/template-report-maker/CoverSelector.vue +165 -165
  21. package/src/components/template-report-maker/ReportView.vue +66 -66
  22. package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -741
  23. package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -743
  24. package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -173
  25. package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -173
  26. package/src/index.js +4 -4
  27. package/src/types.d.ts +45 -45
  28. package/src/utils/dateUtils.js +52 -52
package/src/index.js CHANGED
@@ -1,4 +1,4 @@
1
- 'use strict'
2
- import GSCReports from './components/gsc-reports.vue'
3
-
4
- export { GSCReports }
1
+ 'use strict'
2
+ import GSCReports from './components/gsc-reports.vue'
3
+
4
+ export { GSCReports }
package/src/types.d.ts CHANGED
@@ -1,45 +1,45 @@
1
- export interface Team {
2
- logo: string
3
- team_id: number
4
- provisional_logo: string
5
- colloquial_name: string
6
- acronym: string
7
- team_name: string
8
- }
9
-
10
- export interface GameMinutes {
11
- home_goals_minutes: number[]
12
- visiting_goals_minutes: number[]
13
- home_yellow_cards_minutes: number[]
14
- away_yellow_cards_minutes: number[]
15
- home_red_cards_minutes: number[]
16
- away_red_cards_minutes: number[]
17
- }
18
-
19
- export interface Game {
20
- gameId: number
21
- id: number
22
- seasonId: number
23
- regularSeasonId: number
24
- matchday_name: string
25
- status: number
26
- score: number[]
27
- game_status: number
28
- dateTimeUTC: string
29
- homeTeam: Team
30
- awayTeam: Team
31
- is_live: number
32
- minutes: GameMinutes
33
- }
34
-
35
- export interface TeamSelected {
36
- teamId: number
37
- }
38
-
39
- export interface FieldPosesionProps {
40
- game: Game
41
- widthSection: number
42
- teamSelected: TeamSelected
43
- areInactiveVisible?: boolean
44
- showTitle?: boolean
45
- }
1
+ export interface Team {
2
+ logo: string
3
+ team_id: number
4
+ provisional_logo: string
5
+ colloquial_name: string
6
+ acronym: string
7
+ team_name: string
8
+ }
9
+
10
+ export interface GameMinutes {
11
+ home_goals_minutes: number[]
12
+ visiting_goals_minutes: number[]
13
+ home_yellow_cards_minutes: number[]
14
+ away_yellow_cards_minutes: number[]
15
+ home_red_cards_minutes: number[]
16
+ away_red_cards_minutes: number[]
17
+ }
18
+
19
+ export interface Game {
20
+ gameId: number
21
+ id: number
22
+ seasonId: number
23
+ regularSeasonId: number
24
+ matchday_name: string
25
+ status: number
26
+ score: number[]
27
+ game_status: number
28
+ dateTimeUTC: string
29
+ homeTeam: Team
30
+ awayTeam: Team
31
+ is_live: number
32
+ minutes: GameMinutes
33
+ }
34
+
35
+ export interface TeamSelected {
36
+ teamId: number
37
+ }
38
+
39
+ export interface FieldPosesionProps {
40
+ game: Game
41
+ widthSection: number
42
+ teamSelected: TeamSelected
43
+ areInactiveVisible?: boolean
44
+ showTitle?: boolean
45
+ }
@@ -1,52 +1,52 @@
1
- /**
2
- * Convierte una fecha en formato ISO a formato legible
3
- * @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
4
- * @returns {string} - Fecha en formato "18 jun, 2025"
5
- */
6
- export function formatDate(isoDate) {
7
- if (!isoDate) return ''
8
-
9
- const date = new Date(isoDate)
10
-
11
- // Verificar si la fecha es válida
12
- if (isNaN(date.getTime())) return ''
13
-
14
- const day = date.getDate()
15
- const month = date.toLocaleDateString('es-ES', { month: 'short' })
16
- const year = date.getFullYear()
17
-
18
- return `${day} ${month}, ${year}`
19
- }
20
-
21
- /**
22
- * Convierte una fecha en formato ISO a formato de hora
23
- * @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
24
- * @returns {string} - Hora en formato "16:30"
25
- */
26
- export function formatTime(isoDate) {
27
- if (!isoDate) return ''
28
-
29
- const date = new Date(isoDate)
30
-
31
- // Verificar si la fecha es válida
32
- if (isNaN(date.getTime())) return ''
33
-
34
- const hours = date.getHours().toString().padStart(2, '0')
35
- const minutes = date.getMinutes().toString().padStart(2, '0')
36
-
37
- return `${hours}:${minutes}`
38
- }
39
-
40
- /**
41
- * Convierte una fecha en formato ISO a formato completo con fecha y hora
42
- * @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
43
- * @returns {string} - Fecha y hora en formato "18 jun, 2025 - 16:30"
44
- */
45
- export function formatDateTime(isoDate) {
46
- if (!isoDate) return ''
47
-
48
- const date = formatDate(isoDate)
49
- const time = formatTime(isoDate)
50
-
51
- return `${date} - ${time}`
52
- }
1
+ /**
2
+ * Convierte una fecha en formato ISO a formato legible
3
+ * @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
4
+ * @returns {string} - Fecha en formato "18 jun, 2025"
5
+ */
6
+ export function formatDate(isoDate) {
7
+ if (!isoDate) return ''
8
+
9
+ const date = new Date(isoDate)
10
+
11
+ // Verificar si la fecha es válida
12
+ if (isNaN(date.getTime())) return ''
13
+
14
+ const day = date.getDate()
15
+ const month = date.toLocaleDateString('es-ES', { month: 'short' })
16
+ const year = date.getFullYear()
17
+
18
+ return `${day} ${month}, ${year}`
19
+ }
20
+
21
+ /**
22
+ * Convierte una fecha en formato ISO a formato de hora
23
+ * @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
24
+ * @returns {string} - Hora en formato "16:30"
25
+ */
26
+ export function formatTime(isoDate) {
27
+ if (!isoDate) return ''
28
+
29
+ const date = new Date(isoDate)
30
+
31
+ // Verificar si la fecha es válida
32
+ if (isNaN(date.getTime())) return ''
33
+
34
+ const hours = date.getHours().toString().padStart(2, '0')
35
+ const minutes = date.getMinutes().toString().padStart(2, '0')
36
+
37
+ return `${hours}:${minutes}`
38
+ }
39
+
40
+ /**
41
+ * Convierte una fecha en formato ISO a formato completo con fecha y hora
42
+ * @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
43
+ * @returns {string} - Fecha y hora en formato "18 jun, 2025 - 16:30"
44
+ */
45
+ export function formatDateTime(isoDate) {
46
+ if (!isoDate) return ''
47
+
48
+ const date = formatDate(isoDate)
49
+ const time = formatTime(isoDate)
50
+
51
+ return `${date} - ${time}`
52
+ }