@golstats/gsc-reports 1.0.66 → 1.0.67
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.
- package/README.md +2 -2
- package/dist/{FilterConditions-55d68355-DMqzcKBO-BmIhhD-B-BGQIEaLr.js → FilterConditions-55d68355-DMqzcKBO-BqAxDL_w-t5hljoND.js} +1 -1
- package/dist/{FilterField-59a73e38-CNaE03Ge-BTX2xPpF-D9vcJGsy.js → FilterField-59a73e38-CNaE03Ge-Bv7oIztz-KtUWbrT3.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r-DZeIIQAW-CLBX_KE1.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-h8kv1BbC-CHa3yKm3.js} +1 -1
- package/dist/css/fonts.css +83 -83
- package/dist/gsc-reports.css +1 -1
- package/dist/gsc-reports.es.js +1 -1
- package/dist/gsc-reports.umd.js +7 -7
- package/dist/{index-Bt6tyu0M.js → index-BNb6LArS.js} +28 -29
- package/package.json +2 -2
- package/src/components/elementsTemplates/ModalDeleteReport.vue +246 -246
- package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
- package/src/components/elementsTemplates/ModalRenameReporte.vue +330 -330
- package/src/components/elementsTemplates/ModalRenameTemplate.vue +337 -337
- package/src/components/elementsTemplates/ModalSoloEscritorio.vue +83 -83
- package/src/components/elementsTemplates/ModalduplicateTemplate.vue +300 -300
- package/src/components/elementsTemplates/TooltipReportOptions.vue +97 -97
- package/src/components/elementsTemplates/TooltipTemplateOptions.vue +168 -168
- package/src/components/filters.vue +935 -935
- package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -741
- package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -743
- package/src/components/thumbnails-reports/AnalisisPostMatchType3.vue +441 -441
- package/src/components/thumbnails-reports/AnalisisPostMatchType4.vue +440 -440
- package/src/components/thumbnails-reports/AnalisisPrematchType1.vue +232 -232
- package/src/components/thumbnails-reports/AnalisisPrematchType2.vue +231 -231
- package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -173
- package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -173
- package/src/index.js +4 -4
- package/src/types.d.ts +45 -45
- 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
|
+
}
|
package/src/utils/dateUtils.js
CHANGED
|
@@ -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
|
+
}
|