@golstats/gsc-reports 1.0.55 → 1.0.56

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-zHMe0Dyg-CrLqkkfP-BaX3BGxl.js → FilterConditions-55d68355-DMqzcKBO-C_38-UtQ-I4EI-PPf.js} +11 -11
  3. package/dist/FilterField-59a73e38-CNaE03Ge-BFSDTkDc-DMVHttnm.js +21 -0
  4. package/dist/{FilterSubcategories-a9b32cc9-BjvvEE_X-DQe88zvC-BCPYEIqn.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-BfnH8dG2-42c1SG74.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 +258 -258
  9. package/dist/images/cancha-horizontal.jpg +0 -0
  10. package/dist/images/canchaRPH.svg +30 -0
  11. package/dist/{index-BMnmRJrj.js → index-DXR88fvk.js} +73601 -73471
  12. package/package.json +2 -2
  13. package/src/components/elementsTemplates/ModalDeleteReport.vue +246 -246
  14. package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
  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 -441
  29. package/src/components/thumbnails-reports/AnalisisPostMatchType4.vue +440 -440
  30. package/src/components/thumbnails-reports/AnalisisPrematchType1.vue +232 -232
  31. package/src/components/thumbnails-reports/AnalisisPrematchType2.vue +231 -231
  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-DtNZKbqt-BMRKmoBk-pUUn67tu.js +0 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-reports",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "main": "dist/gsc-reports.umd.js",
5
5
  "module": "dist/gsc-reports.es.js",
6
6
  "exports": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@golstats/gsc-checkbox": "^1.0.13",
50
- "@golstats/gsc-template-report-maker": "^1.0.73",
50
+ "@golstats/gsc-template-report-maker": "^1.0.78",
51
51
  "axios": "^1.10.0",
52
52
  "gridstack": "^12.1.1",
53
53
  "tiny-emitter": "^2.1.0",
@@ -1,246 +1,246 @@
1
- <template>
2
- <div class="modal-overlay">
3
- <div class="modal-content">
4
- <button class="close-btn" @click="$emit('close')">
5
- <img
6
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-close.svg"
7
- alt="Cerrar"
8
- />
9
- </button>
10
- <div class="modal-header">
11
- <img
12
- src="https://golstatsimages.blob.core.windows.net/reports-images/icn-delete-delete.svg"
13
- class="icon-title"
14
- alt="icon"
15
- />
16
- <span class="modal-title">Eliminar reporte</span>
17
- </div>
18
- <div class="header-separator"></div>
19
- <div class="modal-body confirm-text">
20
- ¿Estás seguro que deseas eliminar<br />
21
- este reporte? Si lo haces no habrá manera<br />
22
- de recuperarlo.
23
- </div>
24
- <div class="header-separator"></div>
25
- <div class="modal-footer">
26
- <button class="cancel-btn" @click="$emit('close')" :disabled="isDeleting">Cancelar</button>
27
- <button class="delete-btn" @click="handleDelete" :disabled="isDeleting">
28
- {{ isDeleting ? 'Eliminando...' : 'Eliminar' }}
29
- </button>
30
- </div>
31
- </div>
32
- </div>
33
- </template>
34
-
35
- <script setup>
36
- import { ref, onMounted, onUnmounted } from 'vue'
37
- import axios from 'axios'
38
-
39
- // Props para recibir el ID del reporte, user_id y token
40
- const props = defineProps({
41
- reportId: {
42
- type: String,
43
- required: true,
44
- },
45
- userId: {
46
- type: String,
47
- required: true,
48
- },
49
- token: {
50
- type: String,
51
- required: true,
52
- },
53
- })
54
-
55
- // Emits para comunicar con el componente padre
56
- const emit = defineEmits(['close', 'delete', 'reportDeleted'])
57
-
58
- // Estado para controlar el loading
59
- const isDeleting = ref(false)
60
-
61
- // Función para eliminar el reporte
62
- const handleDelete = async () => {
63
- try {
64
- isDeleting.value = true
65
-
66
- const axiosInstance = axios.create({
67
- headers: { Authorization: `${props.token}` },
68
- })
69
-
70
- const response = await axiosInstance.delete(
71
- `https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${props.userId}/reports/${props.reportId}`,
72
- )
73
-
74
- console.log('Reporte eliminado exitosamente:', response.data)
75
-
76
- // Emitir evento de eliminación exitosa
77
- emit('reportDeleted', props.reportId)
78
-
79
- // Cerrar el modal
80
- emit('close')
81
- } catch (error) {
82
- console.error('Error al eliminar el reporte:', error)
83
-
84
- // Aquí podrías mostrar un mensaje de error al usuario
85
- alert('Error al eliminar el reporte. Por favor, intenta de nuevo.')
86
- } finally {
87
- isDeleting.value = false
88
- }
89
- }
90
-
91
- onMounted(() => {
92
- document.body.style.overflow = 'hidden'
93
- })
94
-
95
- onUnmounted(() => {
96
- document.body.style.overflow = ''
97
- })
98
- </script>
99
-
100
- <style scoped>
101
- .modal-overlay {
102
- position: fixed;
103
- top: 0;
104
- left: 0;
105
- width: 100vw;
106
- height: 100vh;
107
- background: rgba(0, 0, 0, 0.45);
108
- display: flex;
109
- align-items: center;
110
- justify-content: center;
111
- z-index: 3200;
112
- }
113
- .modal-content {
114
- width: 375px;
115
- height: 218px;
116
- background: #2e3b46;
117
- border-radius: 10px;
118
- box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.18);
119
- padding: 0;
120
- position: relative;
121
- display: flex;
122
- flex-direction: column;
123
- font-family: 'Poppins-Regular', 'Montserrat', sans-serif;
124
- }
125
- .close-btn {
126
- position: absolute;
127
- top: 16px;
128
- right: 16px;
129
- background: none;
130
- border: none;
131
- cursor: pointer;
132
- z-index: 2;
133
- padding: 0;
134
- display: flex;
135
- align-items: center;
136
- justify-content: center;
137
- }
138
- .close-btn:hover {
139
- opacity: 0.7;
140
- }
141
- .close-btn img {
142
- width: 20px;
143
- height: 20px;
144
- }
145
- .header-separator {
146
- width: 100%;
147
- height: 1px;
148
- border-bottom: dashed 1px #58626b;
149
- margin: 12px 0 0 0;
150
- }
151
- .modal-header {
152
- display: flex;
153
- align-items: center;
154
- gap: 8px;
155
- padding: 20px 24px 0 24px;
156
- }
157
- .icon-title {
158
- width: 15px;
159
- height: 15px;
160
- }
161
- .modal-title {
162
- font-family: Poppins-Medium;
163
- font-size: 14px;
164
- font-weight: 500;
165
- font-stretch: normal;
166
- font-style: normal;
167
- line-height: 1.5;
168
- letter-spacing: normal;
169
- text-align: left;
170
- color: #fff;
171
- }
172
- .modal-body.confirm-text {
173
- flex: 1;
174
- display: flex;
175
- flex-direction: column;
176
- justify-content: center;
177
- align-items: center;
178
- padding: 4px 24px 0 24px;
179
- opacity: 0.5;
180
- font-family: Poppins-Regular;
181
- font-size: 13px;
182
- font-weight: normal;
183
- font-stretch: normal;
184
- font-style: normal;
185
- line-height: 1.38;
186
- letter-spacing: normal;
187
- text-align: center;
188
- color: #fff;
189
- }
190
- .modal-footer {
191
- display: flex;
192
- justify-content: center;
193
- align-items: center;
194
- gap: 18px;
195
- margin-top: 13px;
196
- padding: 0 24px 12px 24px;
197
- }
198
- .cancel-btn {
199
- background: none;
200
- border: none;
201
- color: #b0bec5;
202
- font-size: 14.9px;
203
- font-family: Poppins-Medium;
204
- height: 30px;
205
- border-radius: 64px;
206
- display: flex;
207
- align-items: center;
208
- justify-content: center;
209
- cursor: pointer;
210
- padding: 0 18px;
211
- transition: color 0.2s;
212
- text-decoration: underline;
213
- }
214
- .cancel-btn:hover {
215
- color: #fff;
216
- }
217
- .delete-btn {
218
- width: 107px;
219
- height: 30px;
220
- border-radius: 64px;
221
- -webkit-backdrop-filter: blur(16px);
222
- backdrop-filter: blur(16px);
223
- border: solid 0.8px #ff6b6b;
224
- background-color: rgba(255, 255, 255, 0.06);
225
- font-family: Poppins-Medium;
226
- font-size: 14.9px;
227
- font-weight: 500;
228
- font-stretch: normal;
229
- font-style: normal;
230
- line-height: 1.2;
231
- letter-spacing: -0.45px;
232
- text-align: center;
233
- color: #ff6b6b;
234
- cursor: pointer;
235
- transition:
236
- background 0.2s,
237
- color 0.2s;
238
- display: flex;
239
- align-items: center;
240
- justify-content: center;
241
- }
242
- .delete-btn:hover {
243
- background: #ff6b6b;
244
- color: #fff;
245
- }
246
- </style>
1
+ <template>
2
+ <div class="modal-overlay">
3
+ <div class="modal-content">
4
+ <button class="close-btn" @click="$emit('close')">
5
+ <img
6
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-close.svg"
7
+ alt="Cerrar"
8
+ />
9
+ </button>
10
+ <div class="modal-header">
11
+ <img
12
+ src="https://golstatsimages.blob.core.windows.net/reports-images/icn-delete-delete.svg"
13
+ class="icon-title"
14
+ alt="icon"
15
+ />
16
+ <span class="modal-title">Eliminar reporte</span>
17
+ </div>
18
+ <div class="header-separator"></div>
19
+ <div class="modal-body confirm-text">
20
+ ¿Estás seguro que deseas eliminar<br />
21
+ este reporte? Si lo haces no habrá manera<br />
22
+ de recuperarlo.
23
+ </div>
24
+ <div class="header-separator"></div>
25
+ <div class="modal-footer">
26
+ <button class="cancel-btn" @click="$emit('close')" :disabled="isDeleting">Cancelar</button>
27
+ <button class="delete-btn" @click="handleDelete" :disabled="isDeleting">
28
+ {{ isDeleting ? 'Eliminando...' : 'Eliminar' }}
29
+ </button>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </template>
34
+
35
+ <script setup>
36
+ import { ref, onMounted, onUnmounted } from 'vue'
37
+ import axios from 'axios'
38
+
39
+ // Props para recibir el ID del reporte, user_id y token
40
+ const props = defineProps({
41
+ reportId: {
42
+ type: String,
43
+ required: true,
44
+ },
45
+ userId: {
46
+ type: String,
47
+ required: true,
48
+ },
49
+ token: {
50
+ type: String,
51
+ required: true,
52
+ },
53
+ })
54
+
55
+ // Emits para comunicar con el componente padre
56
+ const emit = defineEmits(['close', 'delete', 'reportDeleted'])
57
+
58
+ // Estado para controlar el loading
59
+ const isDeleting = ref(false)
60
+
61
+ // Función para eliminar el reporte
62
+ const handleDelete = async () => {
63
+ try {
64
+ isDeleting.value = true
65
+
66
+ const axiosInstance = axios.create({
67
+ headers: { Authorization: `${props.token}` },
68
+ })
69
+
70
+ const response = await axiosInstance.delete(
71
+ `https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${props.userId}/reports/${props.reportId}`,
72
+ )
73
+
74
+ console.log('Reporte eliminado exitosamente:', response.data)
75
+
76
+ // Emitir evento de eliminación exitosa
77
+ emit('reportDeleted', props.reportId)
78
+
79
+ // Cerrar el modal
80
+ emit('close')
81
+ } catch (error) {
82
+ console.error('Error al eliminar el reporte:', error)
83
+
84
+ // Aquí podrías mostrar un mensaje de error al usuario
85
+ alert('Error al eliminar el reporte. Por favor, intenta de nuevo.')
86
+ } finally {
87
+ isDeleting.value = false
88
+ }
89
+ }
90
+
91
+ onMounted(() => {
92
+ document.body.style.overflow = 'hidden'
93
+ })
94
+
95
+ onUnmounted(() => {
96
+ document.body.style.overflow = ''
97
+ })
98
+ </script>
99
+
100
+ <style scoped>
101
+ .modal-overlay {
102
+ position: fixed;
103
+ top: 0;
104
+ left: 0;
105
+ width: 100vw;
106
+ height: 100vh;
107
+ background: rgba(0, 0, 0, 0.45);
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+ z-index: 3200;
112
+ }
113
+ .modal-content {
114
+ width: 375px;
115
+ height: 218px;
116
+ background: #2e3b46;
117
+ border-radius: 10px;
118
+ box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.18);
119
+ padding: 0;
120
+ position: relative;
121
+ display: flex;
122
+ flex-direction: column;
123
+ font-family: 'Poppins-Regular', 'Montserrat', sans-serif;
124
+ }
125
+ .close-btn {
126
+ position: absolute;
127
+ top: 16px;
128
+ right: 16px;
129
+ background: none;
130
+ border: none;
131
+ cursor: pointer;
132
+ z-index: 2;
133
+ padding: 0;
134
+ display: flex;
135
+ align-items: center;
136
+ justify-content: center;
137
+ }
138
+ .close-btn:hover {
139
+ opacity: 0.7;
140
+ }
141
+ .close-btn img {
142
+ width: 20px;
143
+ height: 20px;
144
+ }
145
+ .header-separator {
146
+ width: 100%;
147
+ height: 1px;
148
+ border-bottom: dashed 1px #58626b;
149
+ margin: 12px 0 0 0;
150
+ }
151
+ .modal-header {
152
+ display: flex;
153
+ align-items: center;
154
+ gap: 8px;
155
+ padding: 20px 24px 0 24px;
156
+ }
157
+ .icon-title {
158
+ width: 15px;
159
+ height: 15px;
160
+ }
161
+ .modal-title {
162
+ font-family: Poppins-Medium;
163
+ font-size: 14px;
164
+ font-weight: 500;
165
+ font-stretch: normal;
166
+ font-style: normal;
167
+ line-height: 1.5;
168
+ letter-spacing: normal;
169
+ text-align: left;
170
+ color: #fff;
171
+ }
172
+ .modal-body.confirm-text {
173
+ flex: 1;
174
+ display: flex;
175
+ flex-direction: column;
176
+ justify-content: center;
177
+ align-items: center;
178
+ padding: 4px 24px 0 24px;
179
+ opacity: 0.5;
180
+ font-family: Poppins-Regular;
181
+ font-size: 13px;
182
+ font-weight: normal;
183
+ font-stretch: normal;
184
+ font-style: normal;
185
+ line-height: 1.38;
186
+ letter-spacing: normal;
187
+ text-align: center;
188
+ color: #fff;
189
+ }
190
+ .modal-footer {
191
+ display: flex;
192
+ justify-content: center;
193
+ align-items: center;
194
+ gap: 18px;
195
+ margin-top: 13px;
196
+ padding: 0 24px 12px 24px;
197
+ }
198
+ .cancel-btn {
199
+ background: none;
200
+ border: none;
201
+ color: #b0bec5;
202
+ font-size: 14.9px;
203
+ font-family: Poppins-Medium;
204
+ height: 30px;
205
+ border-radius: 64px;
206
+ display: flex;
207
+ align-items: center;
208
+ justify-content: center;
209
+ cursor: pointer;
210
+ padding: 0 18px;
211
+ transition: color 0.2s;
212
+ text-decoration: underline;
213
+ }
214
+ .cancel-btn:hover {
215
+ color: #fff;
216
+ }
217
+ .delete-btn {
218
+ width: 107px;
219
+ height: 30px;
220
+ border-radius: 64px;
221
+ -webkit-backdrop-filter: blur(16px);
222
+ backdrop-filter: blur(16px);
223
+ border: solid 0.8px #ff6b6b;
224
+ background-color: rgba(255, 255, 255, 0.06);
225
+ font-family: Poppins-Medium;
226
+ font-size: 14.9px;
227
+ font-weight: 500;
228
+ font-stretch: normal;
229
+ font-style: normal;
230
+ line-height: 1.2;
231
+ letter-spacing: -0.45px;
232
+ text-align: center;
233
+ color: #ff6b6b;
234
+ cursor: pointer;
235
+ transition:
236
+ background 0.2s,
237
+ color 0.2s;
238
+ display: flex;
239
+ align-items: center;
240
+ justify-content: center;
241
+ }
242
+ .delete-btn:hover {
243
+ background: #ff6b6b;
244
+ color: #fff;
245
+ }
246
+ </style>