@golstats/gsc-reports 1.0.5 → 1.0.7
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.
- package/dist/{FilterConditions-55d68355-C5NIJbY6-CrwdIOQy-CymVP7sT.js → FilterConditions-55d68355-C5NIJbY6-C6u4SYGM-CcxS73vx.js} +31 -31
- package/dist/FilterField-59a73e38-DO8nYLqs-kMEzVZsL-uXuuwpuX.js +21 -0
- package/dist/{FilterSubcategories-a9b32cc9-DlkHni1L-2XPKgOv6-CGRzThXj.js → FilterSubcategories-a9b32cc9-DlkHni1L-DTr5944T-Dv6wa9TS.js} +3 -3
- package/dist/gsc-reports.css +1 -1
- package/dist/gsc-reports.es.js +1 -1
- package/dist/gsc-reports.umd.js +238 -233
- package/dist/{index-iexGXjdj.js → index-qxZmBGgL.js} +83907 -81303
- package/package.json +2 -2
- package/src/components/ReportsSection.vue +8 -0
- package/src/components/elementsTemplates/ReportItem.vue +26 -13
- package/src/components/gsc-reports.vue +6 -1
- package/dist/FilterField-59a73e38-DO8nYLqs-C9htGE_0-I9si4bEK.js +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golstats/gsc-reports",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
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.
|
|
50
|
+
"@golstats/gsc-template-report-maker": "^1.0.14",
|
|
51
51
|
"@golstats/gsc-volumetric-field": "^1.0.1",
|
|
52
52
|
"axios": "^1.10.0",
|
|
53
53
|
"gridstack": "^12.1.1",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
@open-report="onOpenReport"
|
|
55
55
|
@renombrar="onRenombrarReporte"
|
|
56
56
|
@eliminar="onEliminarReporte"
|
|
57
|
+
@download-report="onDownloadReport"
|
|
57
58
|
/>
|
|
58
59
|
</div>
|
|
59
60
|
|
|
@@ -385,6 +386,13 @@ const onReportDeleted = (reportId) => {
|
|
|
385
386
|
reports.value = reports.value.filter((report) => report.id !== reportId)
|
|
386
387
|
}
|
|
387
388
|
|
|
389
|
+
function onDownloadReport(report) {
|
|
390
|
+
console.log('Descargando reporte:', report)
|
|
391
|
+
emit('download-report', report)
|
|
392
|
+
// Aquí podrías implementar la lógica para descargar el reporte
|
|
393
|
+
// Por ejemplo, redirigir a una URL de descarga o abrir un modal de descarga
|
|
394
|
+
}
|
|
395
|
+
|
|
388
396
|
const handleClickOutside = (event) => {
|
|
389
397
|
if (
|
|
390
398
|
showSortDropdown.value &&
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
:team="team"
|
|
113
113
|
:searchQuery="searchQueryReports"
|
|
114
114
|
@open-report="onOpenReport"
|
|
115
|
+
@download-report="onDownloadReport"
|
|
115
116
|
/>
|
|
116
117
|
<ModalCreateTemplate
|
|
117
118
|
v-if="showModalCreateTemplate"
|
|
@@ -160,7 +161,7 @@ const searchQuery = ref('')
|
|
|
160
161
|
const searchQueryReports = ref('')
|
|
161
162
|
const reportTemplateMaker = ref(null)
|
|
162
163
|
|
|
163
|
-
const emit = defineEmits(['toHome'])
|
|
164
|
+
const emit = defineEmits(['toHome', 'download-report'])
|
|
164
165
|
|
|
165
166
|
function checkContainerWidth() {
|
|
166
167
|
if (containerRef.value) {
|
|
@@ -223,6 +224,10 @@ function onOpenReport(report) {
|
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
|
|
227
|
+
function onDownloadReport(report) {
|
|
228
|
+
emit('download-report', report)
|
|
229
|
+
}
|
|
230
|
+
|
|
226
231
|
function toHome() {
|
|
227
232
|
emit('toHome')
|
|
228
233
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ref as r, createElementBlock as a, openBlock as n, createVNode as c, unref as d } from "vue";
|
|
2
|
-
import { C as u, o as f } from "./index-iexGXjdj.js";
|
|
3
|
-
const i = { class: "filter-field" }, m = {
|
|
4
|
-
__name: "FilterField",
|
|
5
|
-
setup(s) {
|
|
6
|
-
const o = r(Array.from({ length: 16 }, (t, e) => e + 1));
|
|
7
|
-
function l() {
|
|
8
|
-
}
|
|
9
|
-
return (t, e) => (n(), a("div", i, [
|
|
10
|
-
c(d(f), {
|
|
11
|
-
width: "100%",
|
|
12
|
-
"background-color": "#2E3B46",
|
|
13
|
-
value: o.value,
|
|
14
|
-
"onUpdate:modelValue": l
|
|
15
|
-
}, null, 8, ["value"])
|
|
16
|
-
]));
|
|
17
|
-
}
|
|
18
|
-
}, _ = /* @__PURE__ */ u(m, [["__scopeId", "data-v-8103c3e1"]]);
|
|
19
|
-
export {
|
|
20
|
-
_ as default
|
|
21
|
-
};
|