@golstats/gsc-reports 1.0.93 → 1.0.95

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 (23) hide show
  1. package/README.md +2 -2
  2. package/dist/{FilterConditions-55d68355-DMqzcKBO-Cz_vqNHX-D5hkw76H.js → FilterConditions-55d68355-DMqzcKBO-DKiAd6Zv-C9xkcpQB.js} +13 -13
  3. package/dist/{FilterField-59a73e38-CNaE03Ge-BjaCR_Nq-CC3-Ed9k.js → FilterField-59a73e38-CNaE03Ge-DELmUvtk-D7ny6ynp.js} +1 -1
  4. package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r-Dc1g2Fsn-C-ln4dZd.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-DcB3Vk9i-BUKbCAdT.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 +84 -84
  9. package/dist/{index-DUwWapyN.js → index-DwK9QuWg.js} +13321 -13251
  10. package/package.json +2 -2
  11. package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
  12. package/src/components/elementsTemplates/ModalSoloEscritorio.vue +83 -83
  13. package/src/components/elementsTemplates/ModalduplicateTemplate.vue +300 -300
  14. package/src/components/elementsTemplates/TooltipReportOptions.vue +97 -97
  15. package/src/components/elementsTemplates/TooltipTemplateOptions.vue +168 -168
  16. package/src/components/filters.vue +935 -935
  17. package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -741
  18. package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -743
  19. package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -173
  20. package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -173
  21. package/src/index.js +4 -4
  22. package/src/types.d.ts +45 -45
  23. 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
+ }