@golstats/gsc-reports 1.0.53 → 1.0.54

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 (36) hide show
  1. package/README.md +2 -2
  2. package/dist/{FilterConditions-55d68355-zHMe0Dyg-CLarFrVK-C2M1z5WD.js → FilterConditions-55d68355-zHMe0Dyg-CrLqkkfP-M-GLdj8H.js} +10 -10
  3. package/dist/FilterField-59a73e38-DtNZKbqt-BMRKmoBk-C6CpYJ5U.js +21 -0
  4. package/dist/{FilterSubcategories-a9b32cc9-BjvvEE_X-Cb3jkvIi-CQ-9zRuN.js → FilterSubcategories-a9b32cc9-BjvvEE_X-DQe88zvC-BZF4ehk1.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 +149 -149
  9. package/dist/images/cancha-horizontal.jpg +0 -0
  10. package/dist/{index-B5MO1vo4.js → index-DoXBPhEZ.js} +23546 -23493
  11. package/package.json +2 -3
  12. package/src/components/elementsTemplates/ModalDeleteReport.vue +246 -246
  13. package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
  14. package/src/components/elementsTemplates/ModalRenameReporte.vue +330 -330
  15. package/src/components/elementsTemplates/ModalRenameTemplate.vue +337 -337
  16. package/src/components/elementsTemplates/ModalSoloEscritorio.vue +83 -83
  17. package/src/components/elementsTemplates/ModalduplicateTemplate.vue +300 -300
  18. package/src/components/elementsTemplates/TooltipReportOptions.vue +97 -97
  19. package/src/components/elementsTemplates/TooltipTemplateOptions.vue +168 -168
  20. package/src/components/filters.vue +935 -935
  21. package/src/components/template-report-maker/CoverPage.vue +636 -636
  22. package/src/components/template-report-maker/CoverSelector.vue +165 -165
  23. package/src/components/template-report-maker/ReportView.vue +66 -66
  24. package/src/components/template-report-maker/TemplateReportPage.vue +398 -398
  25. package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -741
  26. package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -743
  27. package/src/components/thumbnails-reports/AnalisisPostMatchType3.vue +441 -441
  28. package/src/components/thumbnails-reports/AnalisisPostMatchType4.vue +440 -440
  29. package/src/components/thumbnails-reports/AnalisisPrematchType1.vue +232 -232
  30. package/src/components/thumbnails-reports/AnalisisPrematchType2.vue +231 -231
  31. package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -173
  32. package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -173
  33. package/src/index.js +4 -4
  34. package/src/types.d.ts +45 -45
  35. package/src/utils/dateUtils.js +52 -52
  36. package/dist/FilterField-59a73e38-DtNZKbqt-CX86CGMh-DPrMukyS.js +0 -21
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
+ }
@@ -1,21 +0,0 @@
1
- import { ref as r, createElementBlock as a, openBlock as n, createVNode as c, unref as u } from "vue";
2
- import { Z as d, Q as f } from "./index-B5MO1vo4.js";
3
- const i = { class: "filter-field" }, m = {
4
- __name: "FilterField",
5
- setup(s) {
6
- const l = r(Array.from({ length: 16 }, (t, e) => e + 1));
7
- function o() {
8
- }
9
- return (t, e) => (n(), a("div", i, [
10
- c(u(f), {
11
- width: "100%",
12
- "background-color": "#2E3B46",
13
- value: l.value,
14
- "onUpdate:modelValue": o
15
- }, null, 8, ["value"])
16
- ]));
17
- }
18
- }, _ = /* @__PURE__ */ d(m, [["__scopeId", "data-v-8103c3e1"]]);
19
- export {
20
- _ as default
21
- };