@golstats/gsc-reports 1.0.2 → 1.0.3

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