@golstats/gsc-reports 1.0.52 → 1.0.53

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