@golstats/gsc-top-player 1.0.0
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/LICENSE +21 -0
- package/README.md +137 -0
- package/dist/FilterConditions-55d68355-Dpbg-_AB.js +191 -0
- package/dist/FilterField-59a73e38-j9kmr0oF.js +21 -0
- package/dist/FilterSubcategories-a9b32cc9-DwhgmIwf.js +42 -0
- package/dist/atajada.svg +57 -0
- package/dist/backarrow.svg +3 -0
- package/dist/cancha-3d.png +0 -0
- package/dist/contorno-escudo.svg +3 -0
- package/dist/css/fonts.css +91 -0
- package/dist/favicon.ico +0 -0
- package/dist/field-green-posesion.png +0 -0
- package/dist/fin-del-partido.svg +44 -0
- package/dist/fonts/BebasNeue-Bold.otf +0 -0
- package/dist/fonts/BebasNeue-Bold.ttf +0 -0
- package/dist/fonts/BebasNeue-Bold.woff2 +0 -0
- package/dist/fonts/BebasNeue-Book.otf +0 -0
- package/dist/fonts/BebasNeue-Book.ttf +0 -0
- package/dist/fonts/BebasNeue-Book.woff2 +0 -0
- package/dist/fonts/BebasNeue-Light.otf +0 -0
- package/dist/fonts/BebasNeue-Light.ttf +0 -0
- package/dist/fonts/BebasNeue-Light.woff2 +0 -0
- package/dist/fonts/BebasNeue-Regular.otf +0 -0
- package/dist/fonts/BebasNeue-Regular.ttf +0 -0
- package/dist/fonts/BebasNeue-Regular.woff2 +0 -0
- package/dist/fonts/BebasNeue-Thin.otf +0 -0
- package/dist/fonts/BebasNeue-Thin.ttf +0 -0
- package/dist/fonts/BebasNeue-Thin.woff2 +0 -0
- package/dist/fonts/Montserrat-Black.otf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.otf +0 -0
- package/dist/fonts/Montserrat-Bold.otf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.otf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.otf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Montserrat-Italic.otf +0 -0
- package/dist/fonts/Montserrat-Light.otf +0 -0
- package/dist/fonts/Montserrat-LightItalic.otf +0 -0
- package/dist/fonts/Montserrat-Medium.otf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.otf +0 -0
- package/dist/fonts/Montserrat-Regular.otf +0 -0
- package/dist/fonts/Montserrat-SemiBold.otf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-Thin.otf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.otf +0 -0
- package/dist/fonts/Oswald-Bold.ttf +0 -0
- package/dist/fonts/Oswald-ExtraLight.ttf +0 -0
- package/dist/fonts/Oswald-Light.ttf +0 -0
- package/dist/fonts/Oswald-Medium.ttf +0 -0
- package/dist/fonts/Oswald-Regular.ttf +0 -0
- package/dist/fonts/Oswald-SemiBold.ttf +0 -0
- package/dist/fonts/Poppins-Black.otf +0 -0
- package/dist/fonts/Poppins-BlackItalic.otf +0 -0
- package/dist/fonts/Poppins-Bold.otf +0 -0
- package/dist/fonts/Poppins-BoldItalic.otf +0 -0
- package/dist/fonts/Poppins-ExtraBold.otf +0 -0
- package/dist/fonts/Poppins-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Poppins-ExtraLight.otf +0 -0
- package/dist/fonts/Poppins-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Poppins-Italic.otf +0 -0
- package/dist/fonts/Poppins-Light.otf +0 -0
- package/dist/fonts/Poppins-LightItalic.otf +0 -0
- package/dist/fonts/Poppins-Medium.otf +0 -0
- package/dist/fonts/Poppins-MediumItalic.otf +0 -0
- package/dist/fonts/Poppins-Regular.otf +0 -0
- package/dist/fonts/Poppins-SemiBold.otf +0 -0
- package/dist/fonts/Poppins-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Poppins-Thin.otf +0 -0
- package/dist/fonts/Poppins-ThinItalic.otf +0 -0
- package/dist/fuera-de-lugar.svg +58 -0
- package/dist/gol.svg +49 -0
- package/dist/group-427321178.svg +8 -0
- package/dist/group-427321179.svg +5 -0
- package/dist/group-427321501.svg +5 -0
- package/dist/gsc-top-player.css +1 -0
- package/dist/gsc-top-player.es.js +4 -0
- package/dist/gsc-top-player.umd.js +15 -0
- package/dist/icn-arrow-expand.svg +3 -0
- package/dist/icn-cambio.svg +27 -0
- package/dist/icn-expand-arrow.svg +3 -0
- package/dist/icn-expand-arrow1.svg +3 -0
- package/dist/icn-falta.svg +43 -0
- package/dist/icn-filter.svg +12 -0
- package/dist/icn-filter1.svg +12 -0
- package/dist/icn-filter2.svg +12 -0
- package/dist/icn-golstats.png +0 -0
- package/dist/icn-play.svg +10 -0
- package/dist/icn-tarjeta-amarilla.svg +4 -0
- package/dist/icn-tarjeta-roja.svg +4 -0
- package/dist/icn-tiro-a-porteria.svg +36 -0
- package/dist/icn-tiros-de-esquina.svg +55 -0
- package/dist/index-oO1T2oQg.js +12265 -0
- package/dist/inicia-el-partido.svg +46 -0
- package/dist/jugada-peligrosa.svg +91 -0
- package/dist/line-white.png +0 -0
- package/dist/line.png +0 -0
- package/dist/next-arrow.svg +3 -0
- package/dist/nextarrow.svg +3 -0
- package/dist/penal-fallado.svg +195 -0
- package/dist/penal-marcado.svg +190 -0
- package/dist/play-icn.svg +3 -0
- package/dist/public/images/cancha-horizontal-raw.jpg +0 -0
- package/dist/public/images/cancha-horizontal.jpg +0 -0
- package/dist/public/images/canchaRPH.svg +30 -0
- package/dist/public/images/events/atajada.svg +57 -0
- package/dist/public/images/events/cambio.svg +27 -0
- package/dist/public/images/events/falta.svg +43 -0
- package/dist/public/images/events/favicon.ico +0 -0
- package/dist/public/images/events/fin-del-partido.svg +44 -0
- package/dist/public/images/events/fuera-de-lugar.svg +58 -0
- package/dist/public/images/events/generic.svg +1 -0
- package/dist/public/images/events/gol.svg +49 -0
- package/dist/public/images/events/icn-cambio.svg +6 -0
- package/dist/public/images/events/icn-falta.svg +4 -0
- package/dist/public/images/events/icn-play.svg +3 -0
- package/dist/public/images/events/icn-tarjeta-amarilla.svg +4 -0
- package/dist/public/images/events/icn-tarjeta-roja.svg +4 -0
- package/dist/public/images/events/icn-tiro-a-porteria.svg +36 -0
- package/dist/public/images/events/icn-tiros-de-esquina.svg +18 -0
- package/dist/public/images/events/inicia-el-partido.svg +46 -0
- package/dist/public/images/events/jugada-peligrosa.svg +91 -0
- package/dist/public/images/events/penal-fallado.svg +195 -0
- package/dist/public/images/events/penal-marcado.svg +190 -0
- package/dist/public/images/events/tiempo-agregado.svg +75 -0
- package/dist/public/images/events/tiro-a-porteria.svg +81 -0
- package/dist/public/images/events/tiro-de-esquina.svg +55 -0
- package/dist/public/images/events/var.png +0 -0
- package/dist/public/images/events/var.svg +31 -0
- package/dist/shape.svg +3 -0
- package/dist/styles.css +1191 -0
- package/dist/tiempo-agregado.svg +75 -0
- package/dist/tiro-a-porteria.svg +81 -0
- package/dist/var.png +0 -0
- package/dist/var.svg +31 -0
- package/package.json +69 -0
- package/src/App.vue +40 -0
- package/src/components/comparative/categories.js +137 -0
- package/src/components/comparative/composable-filters.js +10 -0
- package/src/components/comparative/computedProperties.js +327 -0
- package/src/components/comparative/filtersTypes.js +117 -0
- package/src/components/comparative/gsc-button.vue +209 -0
- package/src/components/comparative/gsc-expanded-info-player.vue +710 -0
- package/src/components/comparative/gsc-head-titles.vue +1482 -0
- package/src/components/comparative/gsc-header-tops.vue +1192 -0
- package/src/components/comparative/gsc-row.vue +1810 -0
- package/src/components/comparative/gsc-top.vue +1517 -0
- package/src/components/comparative/gsc-tops-full.vue +2463 -0
- package/src/components/comparative/nationalities-catalog.js +233 -0
- package/src/components/comparative/playsTypes.js +142 -0
- package/src/components/comparative/useElementSize.js +23 -0
- package/src/components/gsc-top-player.vue +69 -0
- package/src/index.js +5 -0
- package/src/main.js +4 -0
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
computed: {
|
|
3
|
+
sizeTabsFontMP() {
|
|
4
|
+
const width = this.elementSize.width
|
|
5
|
+
if (width <= 380) {
|
|
6
|
+
return '12px'
|
|
7
|
+
} else if (width <= 768) {
|
|
8
|
+
return '14px'
|
|
9
|
+
} else {
|
|
10
|
+
return '16px'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
sizeTabsFontMS() {
|
|
14
|
+
const width = this.elementSize.width
|
|
15
|
+
if (width <= 600) {
|
|
16
|
+
return '12px'
|
|
17
|
+
} else if (width <= 768) {
|
|
18
|
+
return '13px'
|
|
19
|
+
} else {
|
|
20
|
+
return '14px'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
sizeTabsMS() {
|
|
24
|
+
const width = this.elementSize.width
|
|
25
|
+
if (width <= 480) {
|
|
26
|
+
return '145px'
|
|
27
|
+
} else if (width <= 600) {
|
|
28
|
+
return '153px'
|
|
29
|
+
} else if (width <= 620) {
|
|
30
|
+
return '163px'
|
|
31
|
+
} else if (width <= 640) {
|
|
32
|
+
return '170px'
|
|
33
|
+
} else if (width <= 660) {
|
|
34
|
+
return '175px'
|
|
35
|
+
} else if (width <= 680) {
|
|
36
|
+
return '180px'
|
|
37
|
+
} else if (width <= 700) {
|
|
38
|
+
return '185px'
|
|
39
|
+
} else if (width <= 720) {
|
|
40
|
+
return '195px'
|
|
41
|
+
} else {
|
|
42
|
+
return '200px'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
sizeTabsMP() {
|
|
46
|
+
const width = this.elementSize.width
|
|
47
|
+
if (width <= 319) {
|
|
48
|
+
return '68px'
|
|
49
|
+
} else if (width <= 330) {
|
|
50
|
+
return '73px'
|
|
51
|
+
} else if (width <= 340) {
|
|
52
|
+
return '78px'
|
|
53
|
+
} else if (width <= 350) {
|
|
54
|
+
return '82px'
|
|
55
|
+
} else if (width <= 360) {
|
|
56
|
+
return '90px'
|
|
57
|
+
} else if (width <= 370) {
|
|
58
|
+
return '90px'
|
|
59
|
+
} else if (width <= 390) {
|
|
60
|
+
return '95px'
|
|
61
|
+
} else if (width <= 410) {
|
|
62
|
+
return '105px'
|
|
63
|
+
} else if (width <= 430) {
|
|
64
|
+
return '110px'
|
|
65
|
+
} else if (width <= 450) {
|
|
66
|
+
return '117px'
|
|
67
|
+
} else if (width <= 470) {
|
|
68
|
+
return '122px'
|
|
69
|
+
} else if (width <= 500) {
|
|
70
|
+
return '130px'
|
|
71
|
+
} else if (width <= 530) {
|
|
72
|
+
return '138px'
|
|
73
|
+
} else if (width <= 560) {
|
|
74
|
+
return '155px'
|
|
75
|
+
} else if (width <= 590) {
|
|
76
|
+
return '163px'
|
|
77
|
+
} else if (width <= 620) {
|
|
78
|
+
return '175px'
|
|
79
|
+
} else if (width <= 650) {
|
|
80
|
+
return '180px'
|
|
81
|
+
} else if (width <= 680) {
|
|
82
|
+
return '195px'
|
|
83
|
+
} else if (width <= 730) {
|
|
84
|
+
return '210px'
|
|
85
|
+
} else if (width <= 768) {
|
|
86
|
+
return '100px'
|
|
87
|
+
} else {
|
|
88
|
+
return '110px'
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
comextleyemdmultipleleaguesClass() {
|
|
92
|
+
const width = this.elementSize.width
|
|
93
|
+
if (width <= 380) {
|
|
94
|
+
return this.$style.comtextleyemdmultipleleagues380
|
|
95
|
+
} else {
|
|
96
|
+
return this.$style.comtextleyemdmultipleleagues
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
comdropdownParentClass() {
|
|
100
|
+
const width = this.elementSize.width
|
|
101
|
+
if (width <= 730) {
|
|
102
|
+
return this.$style.comdropdownParent730
|
|
103
|
+
} else {
|
|
104
|
+
return this.$style.comdropdownParent
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
comdescubreVideosClass() {
|
|
108
|
+
const width = this.elementSize.width
|
|
109
|
+
if (width <= 960) {
|
|
110
|
+
return this.$style.comdescubreVideos960
|
|
111
|
+
} else if (width <= 1232) {
|
|
112
|
+
return this.$style.comdescubreVideos1232
|
|
113
|
+
} else {
|
|
114
|
+
return this.$style.comdescubreVideos
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
comquitarFiltrosClass() {
|
|
118
|
+
const width = this.elementSize.width
|
|
119
|
+
if (width <= 380) {
|
|
120
|
+
return this.$style.comquitarFiltros380
|
|
121
|
+
} else if (width <= 480) {
|
|
122
|
+
return this.$style.comquitarFiltros480
|
|
123
|
+
} else if (width <= 730) {
|
|
124
|
+
return this.$style.comquitarFiltros730
|
|
125
|
+
} else {
|
|
126
|
+
return this.$style.comquitarFiltros
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
commejoresJugadoresClass() {
|
|
130
|
+
const width = this.elementSize.width
|
|
131
|
+
if (width <= 480) {
|
|
132
|
+
return this.$style.commejoresJugadores480
|
|
133
|
+
} else if (width <= 730) {
|
|
134
|
+
return this.$style.commejoresJugadores730
|
|
135
|
+
} else {
|
|
136
|
+
return this.$style.commejoresJugadores
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
menuSectionClass() {
|
|
140
|
+
const width = this.elementSize.width
|
|
141
|
+
if (width <= 960) {
|
|
142
|
+
return this.$style.commenuSection960
|
|
143
|
+
} else {
|
|
144
|
+
return this.$style.commenuSection
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
topFiltersClass() {
|
|
148
|
+
const width = this.elementSize.width
|
|
149
|
+
if (width <= 420) {
|
|
150
|
+
return this.$style.comtopFilters420
|
|
151
|
+
} else if (width <= 460) {
|
|
152
|
+
return this.$style.comtopFilters460
|
|
153
|
+
} else if (width <= 1232) {
|
|
154
|
+
return this.$style.comtopFilters1232
|
|
155
|
+
} else {
|
|
156
|
+
return this.$style.comtopFilters
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
toniKroosWrapperClass() {
|
|
160
|
+
const width = this.elementSize.width
|
|
161
|
+
if (width <= 319) {
|
|
162
|
+
return this.$style.comtoniKroosWrapper320
|
|
163
|
+
} else if (width <= 420) {
|
|
164
|
+
return this.$style.comtoniKroosWrapper420
|
|
165
|
+
} else if (width <= 916) {
|
|
166
|
+
return this.$style.comtoniKroosWrapper760
|
|
167
|
+
} else if (width <= 975) {
|
|
168
|
+
return this.$style.comtoniKroosWrapper975
|
|
169
|
+
} else if (width <= 1079) {
|
|
170
|
+
return this.$style.comtoniKroosWrapper1080
|
|
171
|
+
} else {
|
|
172
|
+
return this.$style.comtoniKroosWrapper
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
containerTablesClass() {
|
|
176
|
+
const width = this.elementSize.width
|
|
177
|
+
if (width <= 319) {
|
|
178
|
+
return this.$style.comcontainerTables320
|
|
179
|
+
} else if (width <= 916) {
|
|
180
|
+
return this.$style.comcontainerTables760
|
|
181
|
+
} else if (width <= 1079) {
|
|
182
|
+
return this.$style.comcontainerTables960
|
|
183
|
+
} else {
|
|
184
|
+
return this.$style.comcontainerTables
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
containerTheBestClass() {
|
|
188
|
+
const width = this.elementSize.width
|
|
189
|
+
if (width <= 319) {
|
|
190
|
+
return this.$style.comcontainerTheBest320
|
|
191
|
+
} else if (width <= 960) {
|
|
192
|
+
return this.$style.comcontainerTheBest960
|
|
193
|
+
} else if (width <= 1232) {
|
|
194
|
+
return this.$style.comcontainerTheBest1232
|
|
195
|
+
} else {
|
|
196
|
+
return this.$style.comcontainerTheBest
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
menuSectionHeaderClass() {
|
|
200
|
+
const width = this.elementSize.width
|
|
201
|
+
if (width <= 730) {
|
|
202
|
+
return this.$style.commenuSectionHeader730
|
|
203
|
+
} else if (width <= 960) {
|
|
204
|
+
return this.$style.commenuSectionHeader960
|
|
205
|
+
} else if (width <= 1232) {
|
|
206
|
+
return this.$style.commenuSectionHeader1232
|
|
207
|
+
} else {
|
|
208
|
+
return this.$style.commenuSectionHeader
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
losMejoresClass() {
|
|
212
|
+
const width = this.elementSize.width
|
|
213
|
+
if (width <= 380) {
|
|
214
|
+
return this.$style.comlosMejores380
|
|
215
|
+
} else if (width <= 530) {
|
|
216
|
+
return this.$style.comlosMejores530
|
|
217
|
+
} else if (width <= 730) {
|
|
218
|
+
return this.$style.comlosMejores730
|
|
219
|
+
} else {
|
|
220
|
+
return this.$style.comlosMejores
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
dropdownClass() {
|
|
224
|
+
const width = this.elementSize.width
|
|
225
|
+
if (width <= 730) {
|
|
226
|
+
return this.$style.comdropdown730
|
|
227
|
+
} else {
|
|
228
|
+
return this.$style.comdropdown
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
dropdown1Class() {
|
|
232
|
+
const width = this.elementSize.width
|
|
233
|
+
if (width <= 730) {
|
|
234
|
+
return this.$style.comdropdown1730
|
|
235
|
+
} else {
|
|
236
|
+
return this.$style.comdropdown1
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
menuSectionParentHeaderClass() {
|
|
241
|
+
const width = this.elementSize.width
|
|
242
|
+
if (width <= 430) {
|
|
243
|
+
return this.$style.commenuSectionParentHeader430
|
|
244
|
+
} else if (width <= 730) {
|
|
245
|
+
return this.$style.commenuSectionParentHeader730
|
|
246
|
+
} else if (width <= 960) {
|
|
247
|
+
return this.$style.commenuSectionParentHeader960
|
|
248
|
+
} else if (width <= 1232) {
|
|
249
|
+
return this.$style.commenuSectionParentHeader1232
|
|
250
|
+
} else {
|
|
251
|
+
return this.$style.commenuSectionParentHeader
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
templateLosMejoresClass() {
|
|
255
|
+
const width = this.elementSize.width
|
|
256
|
+
if (width <= 319) {
|
|
257
|
+
return this.$style.comtemplateLosMejores1320
|
|
258
|
+
} else if (width <= 350) {
|
|
259
|
+
return this.$style.comtemplateLosMejores1350
|
|
260
|
+
} else if (width <= 420) {
|
|
261
|
+
return this.$style.comtemplateLosMejores1420
|
|
262
|
+
} else if (width <= 540) {
|
|
263
|
+
return this.$style.comtemplateLosMejores1540
|
|
264
|
+
} else if (width <= 960) {
|
|
265
|
+
return this.$style.comtemplateLosMejores1960
|
|
266
|
+
} else if (width <= 1232) {
|
|
267
|
+
return this.$style.comtemplateLosMejores11232
|
|
268
|
+
} else {
|
|
269
|
+
return this.$style.comtemplateLosMejores1
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
containerMenuClass() {
|
|
273
|
+
const width = this.elementSize.width
|
|
274
|
+
if (width <= 760) {
|
|
275
|
+
return this.$style.comcontainerMenu760
|
|
276
|
+
} else {
|
|
277
|
+
return this.$style.comcontainerMenu
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
titleSectionClass() {
|
|
281
|
+
const width = this.elementSize.width
|
|
282
|
+
if (width <= 540) {
|
|
283
|
+
return this.$style.comtitleSection540
|
|
284
|
+
} else {
|
|
285
|
+
return this.$style.comtitleSection
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
containerSectionClass() {
|
|
289
|
+
const width = this.elementSize.width
|
|
290
|
+
if (width <= 319) {
|
|
291
|
+
return this.$style.comcontainerSection320
|
|
292
|
+
} else if (width <= 350) {
|
|
293
|
+
return this.$style.comcontainerSection350
|
|
294
|
+
} else if (width <= 960) {
|
|
295
|
+
return this.$style.comcontainerSection960
|
|
296
|
+
} else if (width <= 1232) {
|
|
297
|
+
return this.$style.comcontainerSection1232
|
|
298
|
+
} else {
|
|
299
|
+
return this.$style.comcontainerSection
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
filtersContainerClass() {
|
|
303
|
+
const width = this.elementSize.width
|
|
304
|
+
if (width <= 420) {
|
|
305
|
+
return this.$style.comfiltersContainer420
|
|
306
|
+
} else if (width <= 760) {
|
|
307
|
+
return this.$style.comfiltersContainer760
|
|
308
|
+
} else if (width <= 1232) {
|
|
309
|
+
return this.$style.comfiltersContainer1232
|
|
310
|
+
} else {
|
|
311
|
+
return this.$style.comfiltersContainer
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
topFiltersParentClass() {
|
|
315
|
+
const width = this.elementSize.width
|
|
316
|
+
if (width <= 420) {
|
|
317
|
+
return this.$style.comtopFiltersParent420
|
|
318
|
+
} else if (width <= 460) {
|
|
319
|
+
return this.$style.comtopFiltersParent460
|
|
320
|
+
} else if (width <= 1232) {
|
|
321
|
+
return this.$style.comtopFiltersParent1232
|
|
322
|
+
} else {
|
|
323
|
+
return this.$style.comtopFiltersParent
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
export const playsTypes = [
|
|
2
|
+
{
|
|
3
|
+
id: 1,
|
|
4
|
+
name: 'Goles',
|
|
5
|
+
isSelected: false
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
id: 2,
|
|
9
|
+
name: 'Pases acertados',
|
|
10
|
+
isSelected: false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 3,
|
|
14
|
+
name: 'Balones recuperados en disputa',
|
|
15
|
+
isSelected: false
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 4,
|
|
19
|
+
name: 'Asistencias',
|
|
20
|
+
isSelected: false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 5,
|
|
24
|
+
name: 'Participaciones en gol',
|
|
25
|
+
isSelected: false
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 6,
|
|
29
|
+
name: 'Tiros a gol',
|
|
30
|
+
isSelected: false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: 7,
|
|
34
|
+
name: 'Tiros a gol que llegaron a la portería',
|
|
35
|
+
isSelected: false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 8,
|
|
39
|
+
name: 'Cabeceos en área rival',
|
|
40
|
+
isSelected: false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: 9,
|
|
44
|
+
name: 'Cabeceos en área propia',
|
|
45
|
+
isSelected: false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 10,
|
|
49
|
+
name: 'Centros',
|
|
50
|
+
isSelected: false
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: 11,
|
|
54
|
+
name: 'Centros acertados',
|
|
55
|
+
isSelected: false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: 12,
|
|
59
|
+
name: '1vs1 exitosos ofensivos',
|
|
60
|
+
isSelected: false
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 13,
|
|
64
|
+
name: '1vs1 exitosos ofensivos que terminaron en gol',
|
|
65
|
+
isSelected: false
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: 14,
|
|
69
|
+
name: '1vs1 defensivos exitoso',
|
|
70
|
+
isSelected: false
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 15,
|
|
74
|
+
name: 'Rechaces',
|
|
75
|
+
isSelected: false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: 16,
|
|
79
|
+
name: 'Balones ganados en área propia',
|
|
80
|
+
isSelected: false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 17,
|
|
84
|
+
name: 'Balones ganados en área rival',
|
|
85
|
+
isSelected: false
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 18,
|
|
89
|
+
name: 'Faltas cometidas',
|
|
90
|
+
isSelected: false
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
id: 19,
|
|
94
|
+
name: 'Faltas recibidas',
|
|
95
|
+
isSelected: false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 20,
|
|
99
|
+
name: 'Tarjetas amarillas',
|
|
100
|
+
isSelected: false
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: 21,
|
|
104
|
+
name: 'Tarjetas rojas',
|
|
105
|
+
isSelected: false
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: 22,
|
|
109
|
+
name: 'Atajadas',
|
|
110
|
+
isSelected: false
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: 23,
|
|
114
|
+
name: 'Tiros de Esquina',
|
|
115
|
+
isSelected: false
|
|
116
|
+
}
|
|
117
|
+
]
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div
|
|
4
|
+
v-if="type == 0"
|
|
5
|
+
:class="['button', status && typeOnOff && 'button-active']"
|
|
6
|
+
:style="[customStyle, status && typeOnOff && customActive]"
|
|
7
|
+
@click="btnClick"
|
|
8
|
+
>
|
|
9
|
+
<img
|
|
10
|
+
:class="mini ? 'icon-txt' : 'icon'"
|
|
11
|
+
:style="{ width: iconSize }"
|
|
12
|
+
:src="icon"
|
|
13
|
+
v-if="icon && iconPosition.toLowerCase() === 'left'"
|
|
14
|
+
/>
|
|
15
|
+
<div class="text" v-if="textValue">{{ textValue }}</div>
|
|
16
|
+
<img
|
|
17
|
+
class="icon"
|
|
18
|
+
:style="{ width: iconSize }"
|
|
19
|
+
:src="icon"
|
|
20
|
+
v-if="icon && iconPosition.toLowerCase() === 'right'"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
<div v-if="type == 1" class="button-target" @click="btnClick">
|
|
24
|
+
<div class="stats">
|
|
25
|
+
<img class="iconstats" src="https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png" />
|
|
26
|
+
<div class="numstats">{{ textStat }}</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="leyend">{{ textCategory }}</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
export default {
|
|
35
|
+
props: {
|
|
36
|
+
type: { type: Number, default: 0 },
|
|
37
|
+
value: { type: Boolean, default: false },
|
|
38
|
+
textValue: String,
|
|
39
|
+
icon: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: 'https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png'
|
|
42
|
+
},
|
|
43
|
+
iconPosition: { type: String, default: 'left' },
|
|
44
|
+
iconSize: String,
|
|
45
|
+
mini: { type: Boolean, default: false },
|
|
46
|
+
fontColor: { type: String, default: '#FFFFFF' },
|
|
47
|
+
textDecoration: String,
|
|
48
|
+
fontSize: { type: String, default: '16px' },
|
|
49
|
+
fontSizeStat: { type: String, default: '16px' },
|
|
50
|
+
fontStyle: String,
|
|
51
|
+
fontFamily: { type: String, default: 'Poppins-Regular' },
|
|
52
|
+
height: { type: String, default: 'fit-content' },
|
|
53
|
+
width: { type: String, default: 'fit-content' },
|
|
54
|
+
buttonMaxWidth: { type: String, default: 'auto' },
|
|
55
|
+
borderRadius: { type: String, default: '0px' },
|
|
56
|
+
borderType: { type: String, default: 'solid' },
|
|
57
|
+
borderWidth: { type: Number, default: 0 },
|
|
58
|
+
borderWidthBtn: { type: String, default: '2px' },
|
|
59
|
+
borderColor: String,
|
|
60
|
+
backgroundColor: { type: String, default: 'none' },
|
|
61
|
+
activeBackgroundColor: { type: String, default: '#000000' },
|
|
62
|
+
activeBorderWidth: { type: Number, default: 2 },
|
|
63
|
+
activeBorderType: { type: String, default: 'solid' },
|
|
64
|
+
activeBorderColor: { type: String, default: '#cbee6b' },
|
|
65
|
+
activeColorText: { type: String, default: '#FFFFFF' },
|
|
66
|
+
cursorType: { type: String, default: 'default' },
|
|
67
|
+
typeOnOff: { type: Boolean, default: false },
|
|
68
|
+
textCategory: String,
|
|
69
|
+
textStat: String,
|
|
70
|
+
marginLeftStat: { type: String, default: '15%' }
|
|
71
|
+
},
|
|
72
|
+
watch: {
|
|
73
|
+
value: {
|
|
74
|
+
deep: true,
|
|
75
|
+
immediate: true,
|
|
76
|
+
handler(newValue) {
|
|
77
|
+
this.status = newValue
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
data() {
|
|
82
|
+
return { status: false }
|
|
83
|
+
},
|
|
84
|
+
computed: {
|
|
85
|
+
customStyle() {
|
|
86
|
+
return {
|
|
87
|
+
height: this.height,
|
|
88
|
+
width: this.width,
|
|
89
|
+
maxWidth: this.buttonMaxWidth,
|
|
90
|
+
backgroundColor: this.backgroundColor,
|
|
91
|
+
borderRadius: this.borderRadius,
|
|
92
|
+
border: `${this.borderType} ${this.borderWidth}px ${this.borderColor}`,
|
|
93
|
+
color: this.fontColor,
|
|
94
|
+
textDecoration: this.textDecoration,
|
|
95
|
+
cursor: this.cursorType,
|
|
96
|
+
fontSize: this.fontSize,
|
|
97
|
+
fontStyle: this.fontStyle,
|
|
98
|
+
fontFamily: `${this.fontFamily} !important`
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
customActive() {
|
|
102
|
+
return {
|
|
103
|
+
backgroundColor: this.activeBackgroundColor,
|
|
104
|
+
color: this.activeColorText,
|
|
105
|
+
border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
methods: {
|
|
110
|
+
btnClick(id) {
|
|
111
|
+
this.$emit('click', id)
|
|
112
|
+
if (this.typeOnOff) {
|
|
113
|
+
this.status = !this.status
|
|
114
|
+
this.$emit('status', this.status)
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
</script>
|
|
120
|
+
|
|
121
|
+
<style scoped>
|
|
122
|
+
.button,
|
|
123
|
+
.button-active {
|
|
124
|
+
display: inline-flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
align-content: center;
|
|
127
|
+
align-items: center;
|
|
128
|
+
overflow: none;
|
|
129
|
+
cursor: pointer !important;
|
|
130
|
+
padding: 0 6px;
|
|
131
|
+
}
|
|
132
|
+
.button:hover {
|
|
133
|
+
cursor: pointer !important;
|
|
134
|
+
opacity: 0.8;
|
|
135
|
+
}
|
|
136
|
+
.button-target {
|
|
137
|
+
display: inline-block;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
height: v-bind(height);
|
|
140
|
+
border-width: v-bind(borderWidthBtn) !important;
|
|
141
|
+
border-style: v-bind(borderType) !important;
|
|
142
|
+
border-color: v-bind(borderColor) !important;
|
|
143
|
+
border-radius: v-bind(borderRadius) !important;
|
|
144
|
+
width: v-bind(width);
|
|
145
|
+
background-color: v-bind(backgroundColor);
|
|
146
|
+
justify-content: center;
|
|
147
|
+
align-content: center;
|
|
148
|
+
align-items: center;
|
|
149
|
+
overflow: none;
|
|
150
|
+
cursor: pointer !important;
|
|
151
|
+
cursor: v-bind(cursorType) !important;
|
|
152
|
+
font-size: v-bind(fontSize) !important;
|
|
153
|
+
font-style: v-bind(fontStyle) !important;
|
|
154
|
+
font-family: v-bind(fontFamily) !important;
|
|
155
|
+
}
|
|
156
|
+
.stats {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
width: 100%;
|
|
159
|
+
padding-top: 5px;
|
|
160
|
+
justify-content: left;
|
|
161
|
+
align-items: center;
|
|
162
|
+
align-content: center;
|
|
163
|
+
height: 60%;
|
|
164
|
+
}
|
|
165
|
+
.iconstats {
|
|
166
|
+
width: 14px;
|
|
167
|
+
height: 14px;
|
|
168
|
+
margin-left: v-bind(marginLeftStat); /* dinamico */
|
|
169
|
+
}
|
|
170
|
+
.numstats {
|
|
171
|
+
font-family: 'Poppins-SemiBold';
|
|
172
|
+
color: #ffffff;
|
|
173
|
+
font-size: v-bind(fontSizeStat);
|
|
174
|
+
margin-left: 7px;
|
|
175
|
+
}
|
|
176
|
+
.leyend {
|
|
177
|
+
display: inline-flex;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
align-items: center;
|
|
180
|
+
align-content: center;
|
|
181
|
+
font-family: 'Poppins-Regular';
|
|
182
|
+
color: #a0a3a5;
|
|
183
|
+
width: 100%;
|
|
184
|
+
height: 15%;
|
|
185
|
+
}
|
|
186
|
+
.icon {
|
|
187
|
+
margin-left: 0px;
|
|
188
|
+
}
|
|
189
|
+
.icon-txt {
|
|
190
|
+
margin-left: 2px;
|
|
191
|
+
}
|
|
192
|
+
.text {
|
|
193
|
+
font-size: 10px;
|
|
194
|
+
padding: 4px;
|
|
195
|
+
max-width: 98%;
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
overflow: hidden !important;
|
|
198
|
+
text-overflow: ellipsis;
|
|
199
|
+
font-size: v-bind(fontSize) !important;
|
|
200
|
+
font-style: v-bind(fontStyle) !important;
|
|
201
|
+
font-family: v-bind(fontFamily) !important;
|
|
202
|
+
}
|
|
203
|
+
.text-mini {
|
|
204
|
+
font-size: 10px;
|
|
205
|
+
white-space: nowrap;
|
|
206
|
+
overflow: hidden !important;
|
|
207
|
+
text-overflow: ellipsis;
|
|
208
|
+
}
|
|
209
|
+
</style>
|