@golstats/gsc-top-player 1.0.8 → 1.0.10
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-DgmObXIt.js → FilterConditions-55d68355-zHMe0Dyg.js} +1 -1
- package/dist/{FilterField-59a73e38-09cJ-DRW.js → FilterField-59a73e38-DtNZKbqt.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-DNpw7zPl.js → FilterSubcategories-a9b32cc9-BjvvEE_X.js} +1 -1
- package/dist/gsc-top-player.css +1 -1
- package/dist/gsc-top-player.es.js +1 -1
- package/dist/gsc-top-player.umd.js +11 -11
- package/dist/{index-BUTX2R4X.js → index-Cctg5U4Y.js} +1318 -1260
- package/package.json +1 -1
- package/src/App.vue +3 -85
- package/src/components/comparative/dummy-top-players.js +28 -28
- package/src/components/comparative/gsc-header-tops.vue +165 -1
- package/src/components/comparative/gsc-row.vue +390 -38
- package/src/components/comparative/gsc-top.vue +1 -2
- package/src/components/gsc-top-player.vue +1 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import GscTopPlayer from './components/gsc-top-player.vue'
|
|
3
|
-
import { categoriesDefault } from './components/comparative/categories.js'
|
|
4
3
|
// import { dummyTopPlayers } from './components/comparative/dummy-top-players.js'
|
|
5
4
|
|
|
6
|
-
// Selecciona una categoría real o la dummy manualmente para pruebas
|
|
7
|
-
//const selectedCategories = [{ id: 0, name: 'Categoria' }]
|
|
8
|
-
const selectedCategories = categoriesDefault.filter((cat) => cat.id === 2)
|
|
9
|
-
|
|
10
5
|
const gameData = {
|
|
11
6
|
gameId: 90209,
|
|
12
7
|
id: 90209,
|
|
@@ -43,96 +38,19 @@ const gameData = {
|
|
|
43
38
|
away_red_cards_minutes: [],
|
|
44
39
|
},
|
|
45
40
|
}
|
|
46
|
-
|
|
47
|
-
const gameData2 = {
|
|
48
|
-
season_id: 2010,
|
|
49
|
-
game_id: 90328,
|
|
50
|
-
matchday_id: 4,
|
|
51
|
-
matchday_name: 'Matchday 4',
|
|
52
|
-
matchday_abbreviation: 'M4',
|
|
53
|
-
home_team: 16,
|
|
54
|
-
visiting_team: 10,
|
|
55
|
-
date: '2025-08-08',
|
|
56
|
-
schedule: '21:00:00',
|
|
57
|
-
date_time_utc: '2025-08-09T02:00:00Z',
|
|
58
|
-
game_status: 4,
|
|
59
|
-
score: [0, 0],
|
|
60
|
-
is_live: 0,
|
|
61
|
-
penalties_score_home_team: 0,
|
|
62
|
-
penalties_score_visiting_team: 0,
|
|
63
|
-
referee_id: 0,
|
|
64
|
-
referee_name: 'Sin designar',
|
|
65
|
-
home_games_played: 2,
|
|
66
|
-
away_games_played: 3,
|
|
67
|
-
has_video: 0,
|
|
68
|
-
tv_stations: [],
|
|
69
|
-
home_team_name: 'Tigres de la UANL',
|
|
70
|
-
visiting_team_name: 'Puebla FC',
|
|
71
|
-
home_team_acronym: 'TIG',
|
|
72
|
-
visiting_team_acronym: 'PUE',
|
|
73
|
-
live_stats: 0,
|
|
74
|
-
has_tracking: 0,
|
|
75
|
-
video_types: [],
|
|
76
|
-
home_team_probability: 69,
|
|
77
|
-
visiting_team_probability: 8,
|
|
78
|
-
draw_probability: 23,
|
|
79
|
-
home_team_xg: 1.9749,
|
|
80
|
-
home_team_goals: 1,
|
|
81
|
-
visiting_team_xg: 6.331,
|
|
82
|
-
visiting_team_goals: 4,
|
|
83
|
-
minutes: {
|
|
84
|
-
home_goals_minutes: [],
|
|
85
|
-
visiting_goals_minutes: [],
|
|
86
|
-
home_yellow_cards_minutes: [],
|
|
87
|
-
away_yellow_cards_minutes: [],
|
|
88
|
-
home_red_cards_minutes: [],
|
|
89
|
-
away_red_cards_minutes: [],
|
|
90
|
-
},
|
|
91
|
-
report_minutes: {
|
|
92
|
-
home_goals_minutes: [],
|
|
93
|
-
visiting_goals_minutes: [],
|
|
94
|
-
home_yellow_cards_minutes: [],
|
|
95
|
-
away_yellow_cards_minutes: [],
|
|
96
|
-
home_red_cards_minutes: [],
|
|
97
|
-
away_red_cards_minutes: [],
|
|
98
|
-
},
|
|
99
|
-
alt_minutes: {
|
|
100
|
-
home_goals_minutes: [],
|
|
101
|
-
visiting_goals_minutes: [],
|
|
102
|
-
home_yellow_cards_minutes: [],
|
|
103
|
-
away_yellow_cards_minutes: [],
|
|
104
|
-
home_red_cards_minutes: [],
|
|
105
|
-
away_red_cards_minutes: [],
|
|
106
|
-
},
|
|
107
|
-
time_active: {
|
|
108
|
-
home_te: '00:00',
|
|
109
|
-
visiting_te: '00:00',
|
|
110
|
-
home_ti: '00:00',
|
|
111
|
-
visiting_ti: '00:00',
|
|
112
|
-
total_te: '00:00',
|
|
113
|
-
total_ti: '00:00',
|
|
114
|
-
others: '00:00',
|
|
115
|
-
home_ta_average: '30:50',
|
|
116
|
-
visiting_ta_average: '31:10',
|
|
117
|
-
referee_ta_average: '-',
|
|
118
|
-
xta: '62:00',
|
|
119
|
-
},
|
|
120
|
-
is_edition_available: 1,
|
|
121
|
-
}
|
|
122
41
|
</script>
|
|
123
42
|
|
|
124
43
|
<template>
|
|
125
44
|
<div id="app">
|
|
126
|
-
<!-- Ejemplo con datos dummy
|
|
45
|
+
<!-- Ejemplo con datos dummy - Goles -->
|
|
127
46
|
<GscTopPlayer
|
|
128
|
-
:category-view="
|
|
47
|
+
:category-view="[{ id: 1, name: 'Goles' }]"
|
|
129
48
|
:gamed="gameData.id"
|
|
130
49
|
:game="gameData"
|
|
131
50
|
:season="gameData.seasonId"
|
|
132
51
|
:team-view="2"
|
|
133
|
-
:use-dummy-data="
|
|
52
|
+
:use-dummy-data="true"
|
|
134
53
|
/>
|
|
135
|
-
|
|
136
54
|
<!-- Ejemplo con datos reales (useDummyData: false) -->
|
|
137
55
|
<!--
|
|
138
56
|
<GscTopPlayer
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
export const dummyTopPlayers = [
|
|
3
3
|
{
|
|
4
4
|
top: '01',
|
|
5
|
-
name: 'Nombre
|
|
6
|
-
name_short: 'Nombre
|
|
5
|
+
name: 'Nombre Completo',
|
|
6
|
+
name_short: 'Nombre Completo',
|
|
7
7
|
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow@2x.png',
|
|
8
8
|
id: 9991,
|
|
9
9
|
age: 25,
|
|
10
|
-
team: '
|
|
10
|
+
team: 'EQU',
|
|
11
11
|
teamid: 1,
|
|
12
12
|
position: 'DEL',
|
|
13
13
|
positionId: 9,
|
|
@@ -20,18 +20,18 @@ export const dummyTopPlayers = [
|
|
|
20
20
|
nationality: 'Mexicano',
|
|
21
21
|
player_country_flag:
|
|
22
22
|
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
23
|
-
categoryName: '
|
|
24
|
-
total:
|
|
23
|
+
categoryName: 'Goles',
|
|
24
|
+
total: 15,
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
top: '02',
|
|
28
|
-
name: 'Nombre
|
|
29
|
-
name_short: 'Nombre
|
|
28
|
+
name: 'Nombre Completo',
|
|
29
|
+
name_short: 'Nombre Completo',
|
|
30
30
|
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
31
31
|
id: 9992,
|
|
32
32
|
age: 27,
|
|
33
|
-
team: '
|
|
34
|
-
teamname: '
|
|
33
|
+
team: 'EQU',
|
|
34
|
+
teamname: 'Equipo',
|
|
35
35
|
teamid: 1,
|
|
36
36
|
position: 'MED',
|
|
37
37
|
positionId: 7,
|
|
@@ -44,18 +44,18 @@ export const dummyTopPlayers = [
|
|
|
44
44
|
nationality: 'Mexicano',
|
|
45
45
|
player_country_flag:
|
|
46
46
|
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
47
|
-
categoryName: '
|
|
48
|
-
total:
|
|
47
|
+
categoryName: 'Asistencias',
|
|
48
|
+
total: 12,
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
top: '03',
|
|
52
|
-
name: 'Nombre
|
|
53
|
-
name_short: 'Nombre
|
|
52
|
+
name: 'Nombre Completo',
|
|
53
|
+
name_short: 'Nombre Completo',
|
|
54
54
|
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
55
55
|
id: 9993,
|
|
56
56
|
age: 22,
|
|
57
|
-
team: '
|
|
58
|
-
teamname: '
|
|
57
|
+
team: 'EQU',
|
|
58
|
+
teamname: 'Equipo',
|
|
59
59
|
teamid: 1,
|
|
60
60
|
position: 'DEF',
|
|
61
61
|
positionId: 2,
|
|
@@ -69,17 +69,17 @@ export const dummyTopPlayers = [
|
|
|
69
69
|
player_country_flag:
|
|
70
70
|
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
71
71
|
categoryName: 'Pases acertados',
|
|
72
|
-
total:
|
|
72
|
+
total: 89,
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
top: '04',
|
|
76
|
-
name: 'Nombre
|
|
77
|
-
name_short: 'Nombre
|
|
76
|
+
name: 'Nombre Completo',
|
|
77
|
+
name_short: 'Nombre Completo',
|
|
78
78
|
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
79
79
|
id: 9994,
|
|
80
80
|
age: 24,
|
|
81
|
-
team: '
|
|
82
|
-
teamname: '
|
|
81
|
+
team: 'EQU',
|
|
82
|
+
teamname: 'Equipo',
|
|
83
83
|
teamid: 1,
|
|
84
84
|
position: 'POR',
|
|
85
85
|
positionId: 1,
|
|
@@ -92,18 +92,18 @@ export const dummyTopPlayers = [
|
|
|
92
92
|
nationality: 'Mexicano',
|
|
93
93
|
player_country_flag:
|
|
94
94
|
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
95
|
-
categoryName: '
|
|
96
|
-
total:
|
|
95
|
+
categoryName: 'Atajadas',
|
|
96
|
+
total: 45,
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
top: '05',
|
|
100
|
-
name: 'Nombre
|
|
101
|
-
name_short: 'Nombre
|
|
100
|
+
name: 'Nombre Completo',
|
|
101
|
+
name_short: 'Nombre Completo',
|
|
102
102
|
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
103
103
|
id: 9995,
|
|
104
104
|
age: 28,
|
|
105
|
-
team: '
|
|
106
|
-
teamname: '
|
|
105
|
+
team: 'EQU',
|
|
106
|
+
teamname: 'Equipo',
|
|
107
107
|
teamid: 1,
|
|
108
108
|
position: 'LAT',
|
|
109
109
|
positionId: 3,
|
|
@@ -116,7 +116,7 @@ export const dummyTopPlayers = [
|
|
|
116
116
|
nationality: 'Mexicano',
|
|
117
117
|
player_country_flag:
|
|
118
118
|
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
119
|
-
categoryName: '
|
|
120
|
-
total:
|
|
119
|
+
categoryName: 'Centros',
|
|
120
|
+
total: 23,
|
|
121
121
|
},
|
|
122
122
|
]
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
<div :class="$style.playerPhotoGamesReports" id="container-player-photp">
|
|
7
7
|
<div :class="$style.tablePositionWrapperGamesReports">
|
|
8
8
|
<b :class="$style.tablePositionGamesReports">{{ data.top }}</b>
|
|
9
|
+
<div
|
|
10
|
+
:class="$style.teamIconOverlay"
|
|
11
|
+
:style="{ backgroundImage: `url(${data.logo})` }"
|
|
12
|
+
></div>
|
|
9
13
|
</div>
|
|
10
14
|
<img :class="$style.imgHenrryIconReports" alt="" :src="data.photo" />
|
|
11
15
|
<img :class="$style.americaIconReports" alt="" :src="data.logo" />
|
|
@@ -837,7 +841,6 @@ body {
|
|
|
837
841
|
|
|
838
842
|
.playerRowReports {
|
|
839
843
|
height: 80px;
|
|
840
|
-
min-width: 300px;
|
|
841
844
|
}
|
|
842
845
|
|
|
843
846
|
.groupsLeagueReports {
|
|
@@ -875,6 +878,167 @@ body {
|
|
|
875
878
|
}
|
|
876
879
|
}
|
|
877
880
|
|
|
881
|
+
@container header-tops (max-width: 300px) {
|
|
882
|
+
.headerTopGameReports {
|
|
883
|
+
position: relative;
|
|
884
|
+
height: 88px;
|
|
885
|
+
align-items: flex-end;
|
|
886
|
+
justify-content: flex-start;
|
|
887
|
+
padding: 0px 8px 0px 4px;
|
|
888
|
+
gap: 20px;
|
|
889
|
+
overflow: visible;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.playerPhotoGamesReports {
|
|
893
|
+
position: relative;
|
|
894
|
+
height: 132px;
|
|
895
|
+
padding-bottom: 8px !important;
|
|
896
|
+
justify-content: flex-end;
|
|
897
|
+
align-items: flex-end;
|
|
898
|
+
z-index: 1;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
#container-player-info {
|
|
902
|
+
position: absolute !important;
|
|
903
|
+
right: 8px !important;
|
|
904
|
+
z-index: 10 !important;
|
|
905
|
+
width: auto !important;
|
|
906
|
+
gap: 4px !important;
|
|
907
|
+
align-items: flex-end !important;
|
|
908
|
+
justify-content: flex-end !important;
|
|
909
|
+
border-radius: 6px !important;
|
|
910
|
+
backdrop-filter: blur(2px) !important;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.playerInfoGamesReports {
|
|
914
|
+
position: absolute !important;
|
|
915
|
+
right: 8px !important;
|
|
916
|
+
top: -12px !important;
|
|
917
|
+
z-index: 10 !important;
|
|
918
|
+
width: auto !important;
|
|
919
|
+
gap: 4px !important;
|
|
920
|
+
align-items: flex-end !important;
|
|
921
|
+
justify-content: flex-end !important;
|
|
922
|
+
border-radius: 6px !important;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.playerNameGamesReports {
|
|
926
|
+
width: auto;
|
|
927
|
+
text-align: right;
|
|
928
|
+
justify-content: flex-end;
|
|
929
|
+
margin-bottom: 0;
|
|
930
|
+
z-index: 11;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.toniKroosGamesReports {
|
|
934
|
+
font-size: 9px;
|
|
935
|
+
line-height: 11px;
|
|
936
|
+
text-align: right;
|
|
937
|
+
max-width: 100px;
|
|
938
|
+
margin: 0;
|
|
939
|
+
font-weight: 600;
|
|
940
|
+
color: #ffffff;
|
|
941
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.playerDataGamesReports {
|
|
945
|
+
width: auto;
|
|
946
|
+
justify-content: flex-end;
|
|
947
|
+
gap: 6px;
|
|
948
|
+
flex-wrap: nowrap;
|
|
949
|
+
z-index: 11;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.containerDataReports {
|
|
953
|
+
justify-content: flex-end;
|
|
954
|
+
gap: 6px;
|
|
955
|
+
flex-wrap: nowrap;
|
|
956
|
+
z-index: 11;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.containerDataReports :deep(.gsc-button) {
|
|
960
|
+
z-index: 12;
|
|
961
|
+
position: relative;
|
|
962
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.tablePositionWrapperGamesReports {
|
|
966
|
+
position: relative;
|
|
967
|
+
z-index: 0;
|
|
968
|
+
height: 132px;
|
|
969
|
+
display: flex;
|
|
970
|
+
flex-direction: column;
|
|
971
|
+
align-items: flex-start;
|
|
972
|
+
justify-content: flex-end;
|
|
973
|
+
padding-bottom: 0;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.tablePositionGamesReports {
|
|
977
|
+
font-size: v-bind(fontSizeTopNum);
|
|
978
|
+
line-height: 90px;
|
|
979
|
+
opacity: v-bind(opacityColorTopNum);
|
|
980
|
+
color: v-bind(fontColorTopNum);
|
|
981
|
+
width: 96px;
|
|
982
|
+
height: 81px;
|
|
983
|
+
margin-bottom: 0;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.imgHenrryIconReports {
|
|
987
|
+
height: 132px;
|
|
988
|
+
width: auto;
|
|
989
|
+
margin-left: -14px;
|
|
990
|
+
position: relative;
|
|
991
|
+
z-index: 1;
|
|
992
|
+
display: block;
|
|
993
|
+
margin-bottom: 0;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.americaIconReports {
|
|
997
|
+
display: none;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.americaIcon1Reports {
|
|
1001
|
+
display: none;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.teamsAmericaReports {
|
|
1005
|
+
display: none;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.tablePositionWrapperGamesReports {
|
|
1009
|
+
position: relative;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.teamIconOverlay {
|
|
1013
|
+
position: absolute;
|
|
1014
|
+
top: 92px;
|
|
1015
|
+
left: 28px;
|
|
1016
|
+
width: 28px;
|
|
1017
|
+
height: 28px;
|
|
1018
|
+
z-index: 5;
|
|
1019
|
+
border-radius: 50%;
|
|
1020
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
1021
|
+
background-size: contain;
|
|
1022
|
+
background-repeat: no-repeat;
|
|
1023
|
+
background-position: center;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.playerRowReports {
|
|
1027
|
+
height: 88px;
|
|
1028
|
+
position: relative;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
.headerTopsGamesReports {
|
|
1032
|
+
height: 88px;
|
|
1033
|
+
position: relative;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.icnExpandReports {
|
|
1037
|
+
z-index: 11;
|
|
1038
|
+
position: relative;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
878
1042
|
/** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */
|
|
879
1043
|
/** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */
|
|
880
1044
|
/** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */ /** holaaaaaaaaaaaaaa numerto 1 */
|