@golstats/gsc-reports 1.0.5 → 1.0.6

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 (37) hide show
  1. package/README.md +2 -2
  2. package/dist/{FilterConditions-55d68355-C5NIJbY6-CrwdIOQy-CymVP7sT.js → FilterConditions-55d68355-C5NIJbY6-CrwdIOQy-DJW3C0E9.js} +1 -1
  3. package/dist/{FilterField-59a73e38-DO8nYLqs-C9htGE_0-I9si4bEK.js → FilterField-59a73e38-DO8nYLqs-C9htGE_0-DSpyIXCH.js} +1 -1
  4. package/dist/{FilterSubcategories-a9b32cc9-DlkHni1L-2XPKgOv6-CGRzThXj.js → FilterSubcategories-a9b32cc9-DlkHni1L-2XPKgOv6-nRHReBmk.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 +79 -79
  9. package/dist/{index-iexGXjdj.js → index-Ba25qrrW.js} +5417 -5401
  10. package/package.json +1 -1
  11. package/src/components/ReportsSection.vue +8 -0
  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/ReportItem.vue +26 -13
  19. package/src/components/elementsTemplates/TooltipReportOptions.vue +97 -97
  20. package/src/components/elementsTemplates/TooltipTemplateOptions.vue +161 -161
  21. package/src/components/filters.vue +935 -935
  22. package/src/components/gsc-reports.vue +6 -1
  23. package/src/components/template-report-maker/CoverPage.vue +636 -636
  24. package/src/components/template-report-maker/CoverSelector.vue +165 -165
  25. package/src/components/template-report-maker/ReportView.vue +66 -66
  26. package/src/components/template-report-maker/TemplateReportPage.vue +398 -398
  27. package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -741
  28. package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -743
  29. package/src/components/thumbnails-reports/AnalisisPostMatchType3.vue +463 -463
  30. package/src/components/thumbnails-reports/AnalisisPostMatchType4.vue +462 -462
  31. package/src/components/thumbnails-reports/AnalisisPrematchType1.vue +164 -164
  32. package/src/components/thumbnails-reports/AnalisisPrematchType2.vue +163 -163
  33. package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -173
  34. package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -173
  35. package/src/index.js +4 -4
  36. package/src/types.d.ts +45 -45
  37. package/src/utils/dateUtils.js +52 -52
@@ -127,40 +127,49 @@ import AnalisisPostMatchType3 from '../thumbnails-reports/AnalisisPostMatchType3
127
127
  import AnalisisPrematchType4 from '../thumbnails-reports/AnalisisPrematchType4.vue'
128
128
  import AnalisisPostMatchType4 from '../thumbnails-reports/AnalisisPostMatchType4.vue'
129
129
  import { formatDate } from '../../utils/dateUtils.js'
130
- const emit = defineEmits(['ver-reporte', 'renombrar', 'eliminar', 'edit-template', 'open-report'])
130
+
131
+ const emit = defineEmits([
132
+ 'ver-reporte',
133
+ 'renombrar',
134
+ 'eliminar',
135
+ 'edit-template',
136
+ 'open-report',
137
+ 'download-report'
138
+ ])
131
139
  const props = defineProps({
132
140
  type: {
133
141
  type: Number,
134
- default: 1,
142
+ default: 1
135
143
  },
136
144
  localTeam: {
137
145
  type: String,
138
- default: 'América',
146
+ default: 'América'
139
147
  },
140
148
  report: {
141
149
  type: Object,
142
- default: () => {},
150
+ default: () => {
151
+ }
143
152
  },
144
153
  visitorTeam: {
145
154
  type: String,
146
- default: 'Chivas',
155
+ default: 'Chivas'
147
156
  },
148
157
  localScore: {
149
158
  type: Number,
150
- default: 2,
159
+ default: 2
151
160
  },
152
161
  visitorScore: {
153
162
  type: Number,
154
- default: 1,
163
+ default: 1
155
164
  },
156
165
  league: {
157
166
  type: String,
158
- default: 'Liga MX',
167
+ default: 'Liga MX'
159
168
  },
160
169
  date: {
161
170
  type: String,
162
- default: '15 Nov 2024',
163
- },
171
+ default: '15 Nov 2024'
172
+ }
164
173
  })
165
174
 
166
175
  const showTooltip = ref(false)
@@ -197,6 +206,7 @@ function onEliminar() {
197
206
 
198
207
  function onDescargar() {
199
208
  console.log('descargar')
209
+ emit('download-report', props.report)
200
210
  showTooltip.value = false
201
211
  }
202
212
 
@@ -422,6 +432,7 @@ function onClickOpenReport() {
422
432
  height: 100vh;
423
433
  z-index: 2999;
424
434
  }
435
+
425
436
  .report-img-overlay {
426
437
  position: absolute;
427
438
  inset: 0;
@@ -435,10 +446,12 @@ function onClickOpenReport() {
435
446
  transition: opacity 0.2s;
436
447
  z-index: 3000;
437
448
  }
449
+
438
450
  .report-img-placeholder:hover .report-img-overlay {
439
451
  opacity: 1;
440
452
  pointer-events: auto;
441
453
  }
454
+
442
455
  .report-img-button {
443
456
  background: #11111140;
444
457
  color: #ffffff;
@@ -448,10 +461,10 @@ function onClickOpenReport() {
448
461
  font-size: 14px;
449
462
  font-family: 'Poppins-Medium', 'Poppins', Arial, sans-serif;
450
463
  cursor: pointer;
451
- transition:
452
- background 0.2s,
453
- color 0.2s;
464
+ transition: background 0.2s,
465
+ color 0.2s;
454
466
  }
467
+
455
468
  .report-img-button:hover {
456
469
  border: 1px solid #ffffff;
457
470
  }
@@ -1,97 +1,97 @@
1
- <template>
2
- <div class="tooltip-report-options">
3
- <ul>
4
- <li class="option" @click="$emit('renombrar')">
5
- <img
6
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-rename.svg"
7
- alt="Renombrar reporte"
8
- class="icon"
9
- />
10
- Renombrar reporte
11
- </li>
12
- <li class="option" @click="$emit('descargar')">
13
- <img
14
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-download.svg"
15
- alt="Descargar reporte"
16
- class="icon"
17
- />
18
- Descargar reporte
19
- </li>
20
- <li class="option" @click="$emit('eliminar')">
21
- <img
22
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-delete.svg"
23
- alt="Eliminar reporte"
24
- class="icon"
25
- />
26
- Eliminar reporte
27
- </li>
28
- </ul>
29
- </div>
30
- </template>
31
-
32
- <script setup>
33
- const emit = defineEmits([
34
- 'ver-reporte',
35
- 'renombrar',
36
- 'editar',
37
- 'duplicar',
38
- 'descargar',
39
- 'eliminar',
40
- ])
41
- </script>
42
-
43
- <style scoped>
44
- .tooltip-report-options {
45
- position: absolute;
46
- top: 44px;
47
- right: 20px;
48
- width: 215px;
49
- height: 115px;
50
- background: #2e3b46;
51
- border-radius: 10px;
52
- box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
53
- padding: 8px 0 0 0;
54
- z-index: 3000;
55
- font-family: Poppins-Regular;
56
- }
57
-
58
- ul {
59
- list-style: none;
60
- margin: 0;
61
- padding: 0;
62
- }
63
-
64
- .option {
65
- display: flex;
66
- align-items: center;
67
- color: #fff;
68
- font-family: Poppins-Regular;
69
- font-size: 13px;
70
- font-weight: normal;
71
- font-stretch: normal;
72
- font-style: normal;
73
- line-height: 1.5;
74
- letter-spacing: normal;
75
- text-align: left;
76
- padding: 8px 16px 8px 14px;
77
- cursor: pointer;
78
- transition:
79
- background 0.2s,
80
- color 0.2s;
81
- gap: 14px;
82
- }
83
-
84
- .option:hover {
85
- background: #434f59;
86
- color: #cbee6b;
87
- }
88
-
89
- .icon {
90
- width: 17px;
91
- height: 17px;
92
- display: inline-block;
93
- background-size: contain;
94
- background-repeat: no-repeat;
95
- object-fit: contain;
96
- }
97
- </style>
1
+ <template>
2
+ <div class="tooltip-report-options">
3
+ <ul>
4
+ <li class="option" @click="$emit('renombrar')">
5
+ <img
6
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-rename.svg"
7
+ alt="Renombrar reporte"
8
+ class="icon"
9
+ />
10
+ Renombrar reporte
11
+ </li>
12
+ <li class="option" @click="$emit('descargar')">
13
+ <img
14
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-download.svg"
15
+ alt="Descargar reporte"
16
+ class="icon"
17
+ />
18
+ Descargar reporte
19
+ </li>
20
+ <li class="option" @click="$emit('eliminar')">
21
+ <img
22
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-delete.svg"
23
+ alt="Eliminar reporte"
24
+ class="icon"
25
+ />
26
+ Eliminar reporte
27
+ </li>
28
+ </ul>
29
+ </div>
30
+ </template>
31
+
32
+ <script setup>
33
+ const emit = defineEmits([
34
+ 'ver-reporte',
35
+ 'renombrar',
36
+ 'editar',
37
+ 'duplicar',
38
+ 'descargar',
39
+ 'eliminar',
40
+ ])
41
+ </script>
42
+
43
+ <style scoped>
44
+ .tooltip-report-options {
45
+ position: absolute;
46
+ top: 44px;
47
+ right: 20px;
48
+ width: 215px;
49
+ height: 115px;
50
+ background: #2e3b46;
51
+ border-radius: 10px;
52
+ box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
53
+ padding: 8px 0 0 0;
54
+ z-index: 3000;
55
+ font-family: Poppins-Regular;
56
+ }
57
+
58
+ ul {
59
+ list-style: none;
60
+ margin: 0;
61
+ padding: 0;
62
+ }
63
+
64
+ .option {
65
+ display: flex;
66
+ align-items: center;
67
+ color: #fff;
68
+ font-family: Poppins-Regular;
69
+ font-size: 13px;
70
+ font-weight: normal;
71
+ font-stretch: normal;
72
+ font-style: normal;
73
+ line-height: 1.5;
74
+ letter-spacing: normal;
75
+ text-align: left;
76
+ padding: 8px 16px 8px 14px;
77
+ cursor: pointer;
78
+ transition:
79
+ background 0.2s,
80
+ color 0.2s;
81
+ gap: 14px;
82
+ }
83
+
84
+ .option:hover {
85
+ background: #434f59;
86
+ color: #cbee6b;
87
+ }
88
+
89
+ .icon {
90
+ width: 17px;
91
+ height: 17px;
92
+ display: inline-block;
93
+ background-size: contain;
94
+ background-repeat: no-repeat;
95
+ object-fit: contain;
96
+ }
97
+ </style>
@@ -1,161 +1,161 @@
1
- <template>
2
- <div class="tooltip-template-options">
3
- <ul>
4
- <li class="option" @click="$emit('generar-reporte')">
5
- <img
6
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-report.svg"
7
- alt="Generar reporte"
8
- class="icon"
9
- />
10
- Generar reporte
11
- </li>
12
- <li class="option" @click="$emit('renombrar')">
13
- <img
14
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-rename.svg"
15
- alt="Renombrar template"
16
- class="icon"
17
- />
18
- Renombrar template
19
- </li>
20
- <li class="option" @click="$emit('editar')">
21
- <img
22
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-edit.svg"
23
- alt="Editar template"
24
- class="icon"
25
- />
26
- Editar template
27
- </li>
28
- <li class="option" @click="$emit('duplicar')">
29
- <img
30
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-duplicate.svg"
31
- alt="Duplicar template"
32
- class="icon"
33
- />
34
- Duplicar template
35
- </li>
36
- <li class="option" @click="$emit('eliminar')">
37
- <img
38
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-delete.svg"
39
- alt="Eliminar template"
40
- class="icon"
41
- />
42
- Eliminar template
43
- </li>
44
- </ul>
45
- </div>
46
- </template>
47
-
48
- <script setup>
49
- const emit = defineEmits(['generar-reporte', 'renombrar', 'editar', 'duplicar', 'eliminar'])
50
- </script>
51
-
52
- <style scoped>
53
- .tooltip-template-options {
54
- position: absolute;
55
- top: 48px;
56
- right: 20px;
57
- width: 215px;
58
- height: 185px;
59
- background: #2e3b46;
60
- border-radius: 10px;
61
- box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
62
- padding: 8px 0 0 0;
63
- z-index: 3000;
64
- font-family: Poppins-Regular;
65
- }
66
- ul {
67
- list-style: none;
68
- margin: 0;
69
- padding: 0;
70
- }
71
- .option {
72
- display: flex;
73
- align-items: center;
74
- color: #fff;
75
- font-family: Poppins-Regular;
76
- font-size: 13px;
77
- font-weight: normal;
78
- font-stretch: normal;
79
- font-style: normal;
80
- line-height: 1.5;
81
- letter-spacing: normal;
82
- text-align: left;
83
- padding: 8px 16px 8px 14px;
84
- cursor: pointer;
85
- transition:
86
- background 0.2s,
87
- color 0.2s;
88
- gap: 14px;
89
- }
90
- .option:hover {
91
- background: #434f59;
92
- color: #cbee6b;
93
- }
94
- .icon {
95
- width: 17px;
96
- height: 17px;
97
- display: inline-block;
98
- background-size: contain;
99
- background-repeat: no-repeat;
100
- object-fit: contain;
101
- }
102
- .icon-doc {
103
- background-image: url('https://img.icons8.com/ios-filled/24/cbee6b/document--v1.png');
104
- }
105
- .icon-rename {
106
- background-image: url('https://img.icons8.com/ios-filled/24/cbee6b/replace.png');
107
- }
108
-
109
- .divider {
110
- width: 100%;
111
- height: 1px;
112
- background: #3d4a54;
113
- margin: 6px 0 0 0;
114
- }
115
- .autogen-row {
116
- display: flex;
117
- align-items: center;
118
- gap: 10px;
119
- margin-top: 7px;
120
- padding: 10px 14px 12px 14px;
121
- }
122
- .switch {
123
- display: flex;
124
- align-items: center;
125
- cursor: pointer;
126
- }
127
- .switch-track {
128
- width: 28px;
129
- height: 16px;
130
- background: transparent;
131
- border-radius: 10px;
132
- position: relative;
133
- transition: background 0.2s;
134
- border: 1px solid #fff;
135
- }
136
- .switch-thumb {
137
- width: 12px;
138
- height: 12px;
139
- background: #cbee6b;
140
- border-radius: 50%;
141
- position: absolute;
142
- top: 2px;
143
- left: 1px;
144
- transition: left 0.2s;
145
- box-shadow: 0 1px 4px 0 rgba(203, 238, 107, 0.15);
146
- }
147
- .switch-thumb.on {
148
- left: 14px;
149
- }
150
- .autogen-label {
151
- color: #fff;
152
- font-family: Poppins-Regular;
153
- font-size: 13px;
154
- font-weight: normal;
155
- font-stretch: normal;
156
- font-style: normal;
157
- line-height: 1.5;
158
- letter-spacing: normal;
159
- text-align: left;
160
- }
161
- </style>
1
+ <template>
2
+ <div class="tooltip-template-options">
3
+ <ul>
4
+ <li class="option" @click="$emit('generar-reporte')">
5
+ <img
6
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-report.svg"
7
+ alt="Generar reporte"
8
+ class="icon"
9
+ />
10
+ Generar reporte
11
+ </li>
12
+ <li class="option" @click="$emit('renombrar')">
13
+ <img
14
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-rename.svg"
15
+ alt="Renombrar template"
16
+ class="icon"
17
+ />
18
+ Renombrar template
19
+ </li>
20
+ <li class="option" @click="$emit('editar')">
21
+ <img
22
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-edit.svg"
23
+ alt="Editar template"
24
+ class="icon"
25
+ />
26
+ Editar template
27
+ </li>
28
+ <li class="option" @click="$emit('duplicar')">
29
+ <img
30
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-duplicate.svg"
31
+ alt="Duplicar template"
32
+ class="icon"
33
+ />
34
+ Duplicar template
35
+ </li>
36
+ <li class="option" @click="$emit('eliminar')">
37
+ <img
38
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-delete.svg"
39
+ alt="Eliminar template"
40
+ class="icon"
41
+ />
42
+ Eliminar template
43
+ </li>
44
+ </ul>
45
+ </div>
46
+ </template>
47
+
48
+ <script setup>
49
+ const emit = defineEmits(['generar-reporte', 'renombrar', 'editar', 'duplicar', 'eliminar'])
50
+ </script>
51
+
52
+ <style scoped>
53
+ .tooltip-template-options {
54
+ position: absolute;
55
+ top: 48px;
56
+ right: 20px;
57
+ width: 215px;
58
+ height: 185px;
59
+ background: #2e3b46;
60
+ border-radius: 10px;
61
+ box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
62
+ padding: 8px 0 0 0;
63
+ z-index: 3000;
64
+ font-family: Poppins-Regular;
65
+ }
66
+ ul {
67
+ list-style: none;
68
+ margin: 0;
69
+ padding: 0;
70
+ }
71
+ .option {
72
+ display: flex;
73
+ align-items: center;
74
+ color: #fff;
75
+ font-family: Poppins-Regular;
76
+ font-size: 13px;
77
+ font-weight: normal;
78
+ font-stretch: normal;
79
+ font-style: normal;
80
+ line-height: 1.5;
81
+ letter-spacing: normal;
82
+ text-align: left;
83
+ padding: 8px 16px 8px 14px;
84
+ cursor: pointer;
85
+ transition:
86
+ background 0.2s,
87
+ color 0.2s;
88
+ gap: 14px;
89
+ }
90
+ .option:hover {
91
+ background: #434f59;
92
+ color: #cbee6b;
93
+ }
94
+ .icon {
95
+ width: 17px;
96
+ height: 17px;
97
+ display: inline-block;
98
+ background-size: contain;
99
+ background-repeat: no-repeat;
100
+ object-fit: contain;
101
+ }
102
+ .icon-doc {
103
+ background-image: url('https://img.icons8.com/ios-filled/24/cbee6b/document--v1.png');
104
+ }
105
+ .icon-rename {
106
+ background-image: url('https://img.icons8.com/ios-filled/24/cbee6b/replace.png');
107
+ }
108
+
109
+ .divider {
110
+ width: 100%;
111
+ height: 1px;
112
+ background: #3d4a54;
113
+ margin: 6px 0 0 0;
114
+ }
115
+ .autogen-row {
116
+ display: flex;
117
+ align-items: center;
118
+ gap: 10px;
119
+ margin-top: 7px;
120
+ padding: 10px 14px 12px 14px;
121
+ }
122
+ .switch {
123
+ display: flex;
124
+ align-items: center;
125
+ cursor: pointer;
126
+ }
127
+ .switch-track {
128
+ width: 28px;
129
+ height: 16px;
130
+ background: transparent;
131
+ border-radius: 10px;
132
+ position: relative;
133
+ transition: background 0.2s;
134
+ border: 1px solid #fff;
135
+ }
136
+ .switch-thumb {
137
+ width: 12px;
138
+ height: 12px;
139
+ background: #cbee6b;
140
+ border-radius: 50%;
141
+ position: absolute;
142
+ top: 2px;
143
+ left: 1px;
144
+ transition: left 0.2s;
145
+ box-shadow: 0 1px 4px 0 rgba(203, 238, 107, 0.15);
146
+ }
147
+ .switch-thumb.on {
148
+ left: 14px;
149
+ }
150
+ .autogen-label {
151
+ color: #fff;
152
+ font-family: Poppins-Regular;
153
+ font-size: 13px;
154
+ font-weight: normal;
155
+ font-stretch: normal;
156
+ font-style: normal;
157
+ line-height: 1.5;
158
+ letter-spacing: normal;
159
+ text-align: left;
160
+ }
161
+ </style>