@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
@@ -1,330 +1,330 @@
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-rename-white.svg"
13
- class="icon-title"
14
- alt="icon"
15
- />
16
- <span class="modal-title">Renombrar Reporte</span>
17
- </div>
18
- <div class="header-separator"></div>
19
- <div class="modal-body">
20
- <div class="modal-label">Nombre:</div>
21
- <input
22
- class="template-name-input"
23
- type="text"
24
- v-model="newName"
25
- :placeholder="initialName"
26
- maxlength="40"
27
- autocomplete="off"
28
- :disabled="isLoading"
29
- />
30
- <div v-if="errorMessage" class="error-message">
31
- {{ errorMessage }}
32
- </div>
33
- </div>
34
- <div class="header-separator"></div>
35
- <div class="modal-footer">
36
- <button class="cancel-btn" @click="$emit('close')" :disabled="isLoading">Cancelar</button>
37
- <button
38
- class="next-btn"
39
- :disabled="newName.trim().length < 3 || isLoading"
40
- @click="acceptRename"
41
- >
42
- <span v-if="isLoading">Guardando...</span>
43
- <span v-else>Guardar</span>
44
- </button>
45
- </div>
46
- </div>
47
- </div>
48
- </template>
49
-
50
- <script setup>
51
- import { ref, watch, onMounted, onUnmounted } from 'vue'
52
- import axios from 'axios'
53
-
54
- const props = defineProps({
55
- initialName: {
56
- type: String,
57
- required: true,
58
- },
59
- templateType: {
60
- type: String,
61
- required: true,
62
- },
63
- token: {
64
- type: String,
65
- required: true,
66
- },
67
- userId: {
68
- type: [String, Number],
69
- required: true,
70
- },
71
- reportId: {
72
- type: [String, Number],
73
- required: true,
74
- },
75
- })
76
-
77
- const emit = defineEmits(['close', 'rename', 'refresh'])
78
- const newName = ref(props.initialName)
79
- const isLoading = ref(false)
80
- const errorMessage = ref('')
81
-
82
- watch(
83
- () => props.initialName,
84
- (val) => {
85
- newName.value = val
86
- errorMessage.value = ''
87
- },
88
- )
89
-
90
- async function acceptRename() {
91
- console.log('acceptRename')
92
- if (newName.value.trim().length < 3) return
93
- console.log('acceptRename 22')
94
- isLoading.value = true
95
- errorMessage.value = ''
96
-
97
- try {
98
- const axiosInstance = axios.create({ headers: { Authorization: `${props.token}` } })
99
-
100
- await axiosInstance.put(
101
- `https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${props.userId}/reports/${props.reportId}/rename`,
102
- {
103
- name: newName.value.trim(),
104
- },
105
- )
106
-
107
- // Si la petición es exitosa, emitir el evento de rename y refresh
108
- emit('rename', newName.value.trim())
109
- emit('refresh')
110
- emit('close')
111
- } catch (error) {
112
- console.error('Error al renombrar el reporte:', error)
113
-
114
- if (error.response?.status === 409) {
115
- errorMessage.value = 'Ya existe un reporte con el mismo nombre'
116
- } else {
117
- errorMessage.value = 'Error al renombrar el reporte. Inténtalo de nuevo.'
118
- }
119
- } finally {
120
- isLoading.value = false
121
- }
122
- }
123
-
124
- onMounted(() => {
125
- document.body.style.overflow = 'hidden'
126
- })
127
-
128
- onUnmounted(() => {
129
- document.body.style.overflow = ''
130
- })
131
- </script>
132
-
133
- <style scoped>
134
- .modal-overlay {
135
- position: fixed;
136
- top: 0;
137
- left: 0;
138
- width: 100vw;
139
- height: 100vh;
140
- background: rgba(0, 0, 0, 0.45);
141
- display: flex;
142
- align-items: center;
143
- justify-content: center;
144
- z-index: 4210;
145
- }
146
- .modal-content {
147
- width: 375px;
148
- height: auto;
149
- background: #2e3b46;
150
- border-radius: 10px;
151
- box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.18);
152
- padding: 0;
153
- position: relative;
154
- display: flex;
155
- flex-direction: column;
156
- font-family: 'Poppins-Regular', 'Montserrat', sans-serif;
157
- }
158
- .close-btn {
159
- position: absolute;
160
- top: 16px;
161
- right: 16px;
162
- background: none;
163
- border: none;
164
- cursor: pointer;
165
- z-index: 2;
166
- padding: 0;
167
- display: flex;
168
- align-items: center;
169
- justify-content: center;
170
- }
171
- .close-btn:hover {
172
- opacity: 0.7;
173
- }
174
- .close-btn img {
175
- width: 20px;
176
- height: 20px;
177
- }
178
- .header-separator {
179
- width: 100%;
180
- height: 1px;
181
- border-bottom: dashed 1px #58626b;
182
- margin: 12px 0 0 0;
183
- }
184
- .modal-header {
185
- display: flex;
186
- align-items: center;
187
- gap: 8px;
188
- padding: 20px 24px 0 24px;
189
- }
190
- .icon-title {
191
- width: 16px;
192
- height: 16px;
193
- }
194
- .modal-title {
195
- font-family: Poppins-Medium;
196
- font-size: 14px;
197
- font-weight: 500;
198
- font-stretch: normal;
199
- font-style: normal;
200
- line-height: 1.5;
201
- letter-spacing: normal;
202
- text-align: left;
203
- color: #fff;
204
- }
205
- .modal-body {
206
- flex: 1;
207
- display: flex;
208
- flex-direction: column;
209
- justify-content: center;
210
- padding: 12px 24px 0 24px;
211
- }
212
- .modal-label {
213
- font-family: Poppins-Regular;
214
- font-size: 14px;
215
- font-stretch: normal;
216
- font-style: normal;
217
- line-height: normal;
218
- letter-spacing: -0.3px;
219
- margin-top: 0px;
220
- text-align: left;
221
- color: rgba(255, 255, 255, 0.6);
222
- margin-bottom: 8px;
223
- }
224
- .template-name-input {
225
- width: 327px;
226
- height: 44.5px;
227
- border-radius: 6px;
228
- border: 1px solid #3d4a54;
229
- background: #2e3b46;
230
- color: #fff;
231
- font-family: Poppins-Regular;
232
- font-size: 14px;
233
- font-weight: normal;
234
- font-stretch: normal;
235
- font-style: normal;
236
- line-height: normal;
237
- letter-spacing: 0.1px;
238
- text-align: left;
239
- padding: 0 16px;
240
- margin-bottom: 8px;
241
- outline: none;
242
- box-sizing: border-box;
243
- transition: border 0.2s;
244
- margin-left: auto;
245
- margin-right: auto;
246
- }
247
- .template-name-input::placeholder {
248
- color: #b0bec5;
249
- opacity: 0.5;
250
- }
251
- .template-name-input:focus {
252
- border: 1.5px solid rgba(224, 231, 240, 0.3);
253
- }
254
- .template-name-input:disabled {
255
- opacity: 0.5;
256
- cursor: not-allowed;
257
- }
258
- .error-message {
259
- color: #fcfcfc;
260
- font-size: 12px;
261
- opacity: 0.6;
262
- text-align: center;
263
- margin-top: 0px;
264
- font-family: Poppins-Regular;
265
- }
266
- .modal-footer {
267
- display: flex;
268
- justify-content: center;
269
- align-items: center;
270
- gap: 18px;
271
- margin-top: 13px;
272
- padding: 0 24px 12px 24px;
273
- }
274
- .cancel-btn {
275
- background: none;
276
- border: none;
277
- color: #b0bec5;
278
- font-size: 14.9px;
279
- font-family: Poppins-Medium;
280
- height: 30px;
281
- border-radius: 64px;
282
- display: flex;
283
- align-items: center;
284
- justify-content: center;
285
- cursor: pointer;
286
- padding: 0 18px;
287
- transition: color 0.2s;
288
- text-decoration: underline;
289
- }
290
- .cancel-btn:hover:not(:disabled) {
291
- color: #fff;
292
- }
293
- .cancel-btn:disabled {
294
- opacity: 0.5;
295
- cursor: not-allowed;
296
- }
297
- .next-btn {
298
- width: 107px;
299
- height: 30px;
300
- border-radius: 64px;
301
- -webkit-backdrop-filter: blur(16px);
302
- backdrop-filter: blur(16px);
303
- border: solid 0.8px #cbee6b;
304
- background-color: rgba(255, 255, 255, 0.06);
305
- font-family: Poppins-Medium;
306
- font-size: 14.9px;
307
- font-weight: 500;
308
- font-stretch: normal;
309
- font-style: normal;
310
- line-height: 1.2;
311
- letter-spacing: -0.45px;
312
- text-align: center;
313
- color: #fff;
314
- cursor: pointer;
315
- transition:
316
- background 0.2s,
317
- color 0.2s;
318
- display: flex;
319
- align-items: center;
320
- justify-content: center;
321
- }
322
- .next-btn:disabled {
323
- opacity: 0.5;
324
- cursor: not-allowed;
325
- }
326
- .next-btn:not(:disabled):hover {
327
- background: #cbee6b;
328
- color: #232e39;
329
- }
330
- </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-rename-white.svg"
13
+ class="icon-title"
14
+ alt="icon"
15
+ />
16
+ <span class="modal-title">Renombrar Reporte</span>
17
+ </div>
18
+ <div class="header-separator"></div>
19
+ <div class="modal-body">
20
+ <div class="modal-label">Nombre:</div>
21
+ <input
22
+ class="template-name-input"
23
+ type="text"
24
+ v-model="newName"
25
+ :placeholder="initialName"
26
+ maxlength="40"
27
+ autocomplete="off"
28
+ :disabled="isLoading"
29
+ />
30
+ <div v-if="errorMessage" class="error-message">
31
+ {{ errorMessage }}
32
+ </div>
33
+ </div>
34
+ <div class="header-separator"></div>
35
+ <div class="modal-footer">
36
+ <button class="cancel-btn" @click="$emit('close')" :disabled="isLoading">Cancelar</button>
37
+ <button
38
+ class="next-btn"
39
+ :disabled="newName.trim().length < 3 || isLoading"
40
+ @click="acceptRename"
41
+ >
42
+ <span v-if="isLoading">Guardando...</span>
43
+ <span v-else>Guardar</span>
44
+ </button>
45
+ </div>
46
+ </div>
47
+ </div>
48
+ </template>
49
+
50
+ <script setup>
51
+ import { ref, watch, onMounted, onUnmounted } from 'vue'
52
+ import axios from 'axios'
53
+
54
+ const props = defineProps({
55
+ initialName: {
56
+ type: String,
57
+ required: true,
58
+ },
59
+ templateType: {
60
+ type: String,
61
+ required: true,
62
+ },
63
+ token: {
64
+ type: String,
65
+ required: true,
66
+ },
67
+ userId: {
68
+ type: [String, Number],
69
+ required: true,
70
+ },
71
+ reportId: {
72
+ type: [String, Number],
73
+ required: true,
74
+ },
75
+ })
76
+
77
+ const emit = defineEmits(['close', 'rename', 'refresh'])
78
+ const newName = ref(props.initialName)
79
+ const isLoading = ref(false)
80
+ const errorMessage = ref('')
81
+
82
+ watch(
83
+ () => props.initialName,
84
+ (val) => {
85
+ newName.value = val
86
+ errorMessage.value = ''
87
+ },
88
+ )
89
+
90
+ async function acceptRename() {
91
+ console.log('acceptRename')
92
+ if (newName.value.trim().length < 3) return
93
+ console.log('acceptRename 22')
94
+ isLoading.value = true
95
+ errorMessage.value = ''
96
+
97
+ try {
98
+ const axiosInstance = axios.create({ headers: { Authorization: `${props.token}` } })
99
+
100
+ await axiosInstance.put(
101
+ `https://m9qip57rsh.execute-api.us-east-2.amazonaws.com/prod/users/${props.userId}/reports/${props.reportId}/rename`,
102
+ {
103
+ name: newName.value.trim(),
104
+ },
105
+ )
106
+
107
+ // Si la petición es exitosa, emitir el evento de rename y refresh
108
+ emit('rename', newName.value.trim())
109
+ emit('refresh')
110
+ emit('close')
111
+ } catch (error) {
112
+ console.error('Error al renombrar el reporte:', error)
113
+
114
+ if (error.response?.status === 409) {
115
+ errorMessage.value = 'Ya existe un reporte con el mismo nombre'
116
+ } else {
117
+ errorMessage.value = 'Error al renombrar el reporte. Inténtalo de nuevo.'
118
+ }
119
+ } finally {
120
+ isLoading.value = false
121
+ }
122
+ }
123
+
124
+ onMounted(() => {
125
+ document.body.style.overflow = 'hidden'
126
+ })
127
+
128
+ onUnmounted(() => {
129
+ document.body.style.overflow = ''
130
+ })
131
+ </script>
132
+
133
+ <style scoped>
134
+ .modal-overlay {
135
+ position: fixed;
136
+ top: 0;
137
+ left: 0;
138
+ width: 100vw;
139
+ height: 100vh;
140
+ background: rgba(0, 0, 0, 0.45);
141
+ display: flex;
142
+ align-items: center;
143
+ justify-content: center;
144
+ z-index: 4210;
145
+ }
146
+ .modal-content {
147
+ width: 375px;
148
+ height: auto;
149
+ background: #2e3b46;
150
+ border-radius: 10px;
151
+ box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.18);
152
+ padding: 0;
153
+ position: relative;
154
+ display: flex;
155
+ flex-direction: column;
156
+ font-family: 'Poppins-Regular', 'Montserrat', sans-serif;
157
+ }
158
+ .close-btn {
159
+ position: absolute;
160
+ top: 16px;
161
+ right: 16px;
162
+ background: none;
163
+ border: none;
164
+ cursor: pointer;
165
+ z-index: 2;
166
+ padding: 0;
167
+ display: flex;
168
+ align-items: center;
169
+ justify-content: center;
170
+ }
171
+ .close-btn:hover {
172
+ opacity: 0.7;
173
+ }
174
+ .close-btn img {
175
+ width: 20px;
176
+ height: 20px;
177
+ }
178
+ .header-separator {
179
+ width: 100%;
180
+ height: 1px;
181
+ border-bottom: dashed 1px #58626b;
182
+ margin: 12px 0 0 0;
183
+ }
184
+ .modal-header {
185
+ display: flex;
186
+ align-items: center;
187
+ gap: 8px;
188
+ padding: 20px 24px 0 24px;
189
+ }
190
+ .icon-title {
191
+ width: 16px;
192
+ height: 16px;
193
+ }
194
+ .modal-title {
195
+ font-family: Poppins-Medium;
196
+ font-size: 14px;
197
+ font-weight: 500;
198
+ font-stretch: normal;
199
+ font-style: normal;
200
+ line-height: 1.5;
201
+ letter-spacing: normal;
202
+ text-align: left;
203
+ color: #fff;
204
+ }
205
+ .modal-body {
206
+ flex: 1;
207
+ display: flex;
208
+ flex-direction: column;
209
+ justify-content: center;
210
+ padding: 12px 24px 0 24px;
211
+ }
212
+ .modal-label {
213
+ font-family: Poppins-Regular;
214
+ font-size: 14px;
215
+ font-stretch: normal;
216
+ font-style: normal;
217
+ line-height: normal;
218
+ letter-spacing: -0.3px;
219
+ margin-top: 0px;
220
+ text-align: left;
221
+ color: rgba(255, 255, 255, 0.6);
222
+ margin-bottom: 8px;
223
+ }
224
+ .template-name-input {
225
+ width: 327px;
226
+ height: 44.5px;
227
+ border-radius: 6px;
228
+ border: 1px solid #3d4a54;
229
+ background: #2e3b46;
230
+ color: #fff;
231
+ font-family: Poppins-Regular;
232
+ font-size: 14px;
233
+ font-weight: normal;
234
+ font-stretch: normal;
235
+ font-style: normal;
236
+ line-height: normal;
237
+ letter-spacing: 0.1px;
238
+ text-align: left;
239
+ padding: 0 16px;
240
+ margin-bottom: 8px;
241
+ outline: none;
242
+ box-sizing: border-box;
243
+ transition: border 0.2s;
244
+ margin-left: auto;
245
+ margin-right: auto;
246
+ }
247
+ .template-name-input::placeholder {
248
+ color: #b0bec5;
249
+ opacity: 0.5;
250
+ }
251
+ .template-name-input:focus {
252
+ border: 1.5px solid rgba(224, 231, 240, 0.3);
253
+ }
254
+ .template-name-input:disabled {
255
+ opacity: 0.5;
256
+ cursor: not-allowed;
257
+ }
258
+ .error-message {
259
+ color: #fcfcfc;
260
+ font-size: 12px;
261
+ opacity: 0.6;
262
+ text-align: center;
263
+ margin-top: 0px;
264
+ font-family: Poppins-Regular;
265
+ }
266
+ .modal-footer {
267
+ display: flex;
268
+ justify-content: center;
269
+ align-items: center;
270
+ gap: 18px;
271
+ margin-top: 13px;
272
+ padding: 0 24px 12px 24px;
273
+ }
274
+ .cancel-btn {
275
+ background: none;
276
+ border: none;
277
+ color: #b0bec5;
278
+ font-size: 14.9px;
279
+ font-family: Poppins-Medium;
280
+ height: 30px;
281
+ border-radius: 64px;
282
+ display: flex;
283
+ align-items: center;
284
+ justify-content: center;
285
+ cursor: pointer;
286
+ padding: 0 18px;
287
+ transition: color 0.2s;
288
+ text-decoration: underline;
289
+ }
290
+ .cancel-btn:hover:not(:disabled) {
291
+ color: #fff;
292
+ }
293
+ .cancel-btn:disabled {
294
+ opacity: 0.5;
295
+ cursor: not-allowed;
296
+ }
297
+ .next-btn {
298
+ width: 107px;
299
+ height: 30px;
300
+ border-radius: 64px;
301
+ -webkit-backdrop-filter: blur(16px);
302
+ backdrop-filter: blur(16px);
303
+ border: solid 0.8px #cbee6b;
304
+ background-color: rgba(255, 255, 255, 0.06);
305
+ font-family: Poppins-Medium;
306
+ font-size: 14.9px;
307
+ font-weight: 500;
308
+ font-stretch: normal;
309
+ font-style: normal;
310
+ line-height: 1.2;
311
+ letter-spacing: -0.45px;
312
+ text-align: center;
313
+ color: #fff;
314
+ cursor: pointer;
315
+ transition:
316
+ background 0.2s,
317
+ color 0.2s;
318
+ display: flex;
319
+ align-items: center;
320
+ justify-content: center;
321
+ }
322
+ .next-btn:disabled {
323
+ opacity: 0.5;
324
+ cursor: not-allowed;
325
+ }
326
+ .next-btn:not(:disabled):hover {
327
+ background: #cbee6b;
328
+ color: #232e39;
329
+ }
330
+ </style>