@golstats/gsc-top-player 1.0.13 → 1.0.15
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-icU5o85T.js → FilterConditions-55d68355-CbEZVvg5.js} +1 -1
- package/dist/{FilterField-59a73e38-BOM_57PM.js → FilterField-59a73e38-BNu0uYUx.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-yXOBLwEK.js → FilterSubcategories-a9b32cc9-C6gwpp_B.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 +8 -8
- package/dist/{index-DP7G7HpQ.js → index-CIY5Repw.js} +248 -215
- package/package.json +1 -1
- package/src/App.vue +2 -1
- package/src/components/comparative/gsc-header-tops.vue +8 -4
- package/src/components/comparative/gsc-row.vue +4 -3
- package/src/components/comparative/gsc-top.vue +8 -5
- package/src/components/comparative/gsc-tops-full.vue +7 -2
- package/src/components/gsc-top-player.vue +5 -0
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<div :class="$style.playerRowReports" id="player-row">
|
|
5
5
|
<div :class="$style.headerTopGameReports">
|
|
6
6
|
<div :class="$style.playerPhotoGamesReports" id="container-player-photp">
|
|
7
|
-
<div
|
|
8
|
-
<b
|
|
7
|
+
<div :class="$style.tablePositionWrapperGamesReports">
|
|
8
|
+
<b :class="$style.tablePositionGamesReports"><template v-if="showPosition">{{ data.top }}</template></b>
|
|
9
9
|
<div
|
|
10
10
|
:class="$style.teamIconOverlay"
|
|
11
11
|
:style="{ backgroundImage: `url(${data.logo})` }"
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
<div :class="$style.containerHeaderReports" id="header-container">
|
|
94
94
|
<div :class="$style.headerTopTeamReports">
|
|
95
95
|
<div :class="$style.teamPhotoReports" id="container-team">
|
|
96
|
-
<div
|
|
97
|
-
<b :class="$style.positionReports">{{ data.top }}</b>
|
|
96
|
+
<div :class="$style.positionWrapperReports">
|
|
97
|
+
<b :class="$style.positionReports"><template v-if="showPosition">{{ data.top }}</template></b>
|
|
98
98
|
</div>
|
|
99
99
|
<div :class="$style.teamLogoReports">
|
|
100
100
|
<img :class="$style.imgNecaxaIconReports" alt="" :src="data.logo" />
|
|
@@ -313,6 +313,10 @@ export default {
|
|
|
313
313
|
type: String,
|
|
314
314
|
default: '12px',
|
|
315
315
|
},
|
|
316
|
+
showPosition: {
|
|
317
|
+
type: Boolean,
|
|
318
|
+
default: true,
|
|
319
|
+
},
|
|
316
320
|
},
|
|
317
321
|
data: () => ({
|
|
318
322
|
expand: false,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div v-if="type == 0" :class="rowwPlayerClass" id="container-row-player">
|
|
10
10
|
<!-- jugador -->
|
|
11
11
|
<div :class="containerLeftClass" id="container-left">
|
|
12
|
-
<div :class="positionContainerClass">
|
|
12
|
+
<div v-if="showPosition" :class="positionContainerClass">
|
|
13
13
|
<div :class="numberPositionClass">{{ data.position }}</div>
|
|
14
14
|
</div>
|
|
15
15
|
<div :class="playerContainerClass">
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
>
|
|
60
60
|
<!-- equipo -->
|
|
61
61
|
<div :class="containerLeftType1Class" id="container-left">
|
|
62
|
-
<div :class="positionContainertype1Class">
|
|
62
|
+
<div v-if="showPosition" :class="positionContainertype1Class">
|
|
63
63
|
<div :class="numberPositionType1Class">{{ data.position }}</div>
|
|
64
64
|
</div>
|
|
65
65
|
<div :class="playerContainerType1Class">
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
<div v-if="type == 2" :class="rowwPlayerClass" id="container-row-player">
|
|
98
98
|
<!-- scouting -->
|
|
99
99
|
<div :class="containerLeftClass" id="container-left">
|
|
100
|
-
<div :class="positionContainerClass">
|
|
100
|
+
<div v-if="showPosition" :class="positionContainerClass">
|
|
101
101
|
<div :class="numberPositionClass">{{ data.position }}</div>
|
|
102
102
|
</div>
|
|
103
103
|
<div :class="playerContainerClass">
|
|
@@ -580,6 +580,7 @@ export default {
|
|
|
580
580
|
buttonfontFamily: { type: String, default: 'Poppins-Regular' },
|
|
581
581
|
buttonBorderColor: { type: String, default: '#55636e' },
|
|
582
582
|
buttonFontSize: { type: String, default: '10px' },
|
|
583
|
+
showPosition: { type: Boolean, default: true },
|
|
583
584
|
},
|
|
584
585
|
data: () => ({
|
|
585
586
|
expand: false,
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
:team-widget="teamWidget"
|
|
20
20
|
:can-play-videos="canPlayVideos"
|
|
21
21
|
:is-expanded="playerexpand == player.id && expand"
|
|
22
|
+
:show-position="showPosition"
|
|
22
23
|
ref="GSCLeaders"
|
|
23
24
|
:data="
|
|
24
25
|
typeTable == 0
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
:type-view="type"
|
|
71
72
|
:arrow="arrow"
|
|
72
73
|
:is-expanded="playerexpand == player.id && expand"
|
|
74
|
+
:show-position="showPosition"
|
|
73
75
|
@mediadata="emitEventMedia($event, category, categoryName)"
|
|
74
76
|
:data="
|
|
75
77
|
typeTable == 0
|
|
@@ -195,6 +197,7 @@
|
|
|
195
197
|
:type-view="type"
|
|
196
198
|
:can-play-videos="canPlayVideos"
|
|
197
199
|
:is-expanded="playerexpand == player.id && expand"
|
|
200
|
+
:show-position="showPosition"
|
|
198
201
|
@mediadata="emitEventMediaFullTable($event, category, categoryName)"
|
|
199
202
|
:data="
|
|
200
203
|
typeTable == 0
|
|
@@ -387,6 +390,10 @@ export default {
|
|
|
387
390
|
type: Array,
|
|
388
391
|
default: null,
|
|
389
392
|
},
|
|
393
|
+
showPosition: {
|
|
394
|
+
type: Boolean,
|
|
395
|
+
default: true,
|
|
396
|
+
},
|
|
390
397
|
},
|
|
391
398
|
setup() {
|
|
392
399
|
const myDivRef = ref('myDivRef')
|
|
@@ -1108,7 +1115,6 @@ export default {
|
|
|
1108
1115
|
this.playerexpand = expandobject.id
|
|
1109
1116
|
},
|
|
1110
1117
|
async getCategoryStats(season) {
|
|
1111
|
-
console.log('llego aqui; ', season)
|
|
1112
1118
|
this.mapPlayers = new Map()
|
|
1113
1119
|
try {
|
|
1114
1120
|
if (!season) return
|
|
@@ -1127,10 +1133,7 @@ export default {
|
|
|
1127
1133
|
})
|
|
1128
1134
|
this.isloading = true
|
|
1129
1135
|
let data = {}
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
console.log('this.game, ', this.game)
|
|
1133
|
-
if (this.game.game_status === 1) {
|
|
1136
|
+
if (this.typeData === 0) {
|
|
1134
1137
|
data = await axiosInstance.get(this.url + '/' + this.gameId + '/' + this.category)
|
|
1135
1138
|
} else {
|
|
1136
1139
|
data = await axiosInstance.get(
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
border-radius="12px"
|
|
15
15
|
:game-id="gameId"
|
|
16
16
|
:game="game"
|
|
17
|
-
:typeData="
|
|
17
|
+
:typeData="typeData"
|
|
18
18
|
:category="category.id"
|
|
19
19
|
:type-table="typeTable"
|
|
20
20
|
:categoryName="category.name"
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
:num-rows="numRows"
|
|
25
25
|
:key="updateTables"
|
|
26
26
|
:dummy-data="dummyData"
|
|
27
|
+
:show-position="showPosition"
|
|
27
28
|
/>
|
|
28
29
|
</div>
|
|
29
30
|
</template>
|
|
@@ -98,7 +99,7 @@ export default {
|
|
|
98
99
|
type: Number,
|
|
99
100
|
default: 0,
|
|
100
101
|
},
|
|
101
|
-
|
|
102
|
+
typeData: {
|
|
102
103
|
type: Number,
|
|
103
104
|
default: 0,
|
|
104
105
|
},
|
|
@@ -168,6 +169,10 @@ export default {
|
|
|
168
169
|
type: Array,
|
|
169
170
|
default: null,
|
|
170
171
|
},
|
|
172
|
+
showPosition: {
|
|
173
|
+
type: Boolean,
|
|
174
|
+
default: true,
|
|
175
|
+
},
|
|
171
176
|
},
|
|
172
177
|
watch: {
|
|
173
178
|
async seasonActive() {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
:category-view="categoryView"
|
|
13
13
|
:num-rows="numRows"
|
|
14
14
|
:dummy-data="dummyData"
|
|
15
|
+
:show-position="showPosition"
|
|
15
16
|
/>
|
|
16
17
|
</div>
|
|
17
18
|
</template>
|
|
@@ -66,6 +67,10 @@ const props = defineProps({
|
|
|
66
67
|
type: Boolean,
|
|
67
68
|
default: true,
|
|
68
69
|
},
|
|
70
|
+
showPosition: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: true,
|
|
73
|
+
},
|
|
69
74
|
})
|
|
70
75
|
|
|
71
76
|
// Si useDummyData es true, usa datos dummy, si es false busca datos reales
|