@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.
Files changed (30) hide show
  1. package/README.md +2 -2
  2. package/dist/{FilterConditions-55d68355-DMqzcKBO-D-F7eebx-B2f4vldh.js → FilterConditions-55d68355-DMqzcKBO-LoDZzMFx-BnRBGncA.js} +1 -1
  3. package/dist/{FilterField-59a73e38-CNaE03Ge-BSjrLEv7-BA50MIOk.js → FilterField-59a73e38-CNaE03Ge-CQDCuDcF-D41LgF38.js} +1 -1
  4. package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r-BXbLe1Ix-aBIaeKxy.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-B4SJzQzA-DXEQISeO.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 +225 -225
  9. package/dist/{index-BdUpXZsm.js → index-DWidkeeO.js} +54646 -54564
  10. package/package.json +2 -2
  11. package/src/components/TemplatesSection.vue +29 -2
  12. package/src/components/elementsTemplates/ModalConfigurarContenido.vue +1250 -1229
  13. package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
  14. package/src/components/elementsTemplates/ModalGenerarReporte.vue +22 -1
  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
  29. package/dist/images/cancha-horizontal.jpg +0 -0
  30. package/dist/images/canchaRPH.svg +0 -30
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
+ }
Binary file
@@ -1,30 +0,0 @@
1
- <svg width="849" height="257" viewBox="0 0 849 257" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M0.5 241.5L147 0H703L849 241.5H0.5Z" fill="#D9D9D9"/>
3
- <path d="M0.5 241.5L147 0H703L849 241.5H0.5Z" fill="url(#paint0_linear_221_1517)"/>
4
- <path d="M27.5 232.5L161.5 6.5L691.5 7.5L822.5 229.5L27.5 232.5Z" stroke="#BBBBBB"/>
5
- <path d="M146 33H226L165 194.5H50" stroke="#BBBBBB"/>
6
- <path d="M212.5 69C223.333 73 243.6 84.9 238 100.5C232.4 116.1 203.667 125.667 190 128.5" stroke="#BBBBBB"/>
7
- <path d="M707.5 33.5H628.5L687 193L800.5 192.5" stroke="#BBBBBB"/>
8
- <path d="M721 58H684.5L725.5 139.5H769.5" stroke="#BBBBBB"/>
9
- <path d="M495.5 96.5C495.5 107.157 488.115 116.896 475.977 123.999C463.851 131.095 447.067 135.5 428.5 135.5C409.933 135.5 393.149 131.095 381.023 123.999C368.885 116.896 361.5 107.157 361.5 96.5C361.5 85.8432 368.885 76.1037 381.023 69.0008C393.149 61.905 409.933 57.5 428.5 57.5C447.067 57.5 463.851 61.905 475.977 69.0008C488.115 76.1037 495.5 85.8432 495.5 96.5Z" stroke="#BBBBBB"/>
10
- <path d="M849 241H1V256H849V241Z" fill="url(#paint1_linear_221_1517)"/>
11
- <path d="M849 241H1V256H849V241Z" fill="url(#paint2_linear_221_1517)"/>
12
- <path d="M429 231V7" stroke="#BBBBBB"/>
13
- <path d="M131.407 58H166.5L123.994 141H81.5" stroke="#BBBBBB"/>
14
- <path d="M641.5 69C631.833 71.5 612.7 79.6 613.5 92C614.5 107.5 641 119.5 663 129" stroke="#BBBBBB"/>
15
- <defs>
16
- <linearGradient id="paint0_linear_221_1517" x1="215.705" y1="40.8717" x2="463.743" y2="439.384" gradientUnits="userSpaceOnUse">
17
- <stop stop-color="#0C1F52"/>
18
- <stop offset="0.553167" stop-color="#0C1F52"/>
19
- <stop offset="1" stop-color="#0C1F52"/>
20
- </linearGradient>
21
- <linearGradient id="paint1_linear_221_1517" x1="33.6861" y1="240.317" x2="34.8452" y2="278.283" gradientUnits="userSpaceOnUse">
22
- <stop stop-color="#3557A2"/>
23
- <stop offset="0.963266" stop-color="#192743"/>
24
- </linearGradient>
25
- <linearGradient id="paint2_linear_221_1517" x1="33.6861" y1="240.317" x2="34.8452" y2="278.283" gradientUnits="userSpaceOnUse">
26
- <stop stop-color="#3557A2"/>
27
- <stop offset="0.963266" stop-color="#192743"/>
28
- </linearGradient>
29
- </defs>
30
- </svg>