@golstats/gsc-lineups-reports 1.0.9 → 1.1.1

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 (49) hide show
  1. package/README.md +2 -2
  2. package/dist/css/fonts.css +91 -91
  3. package/dist/gsc-lineups-reports.css +1 -1
  4. package/dist/gsc-lineups-reports.es.js +3073 -2773
  5. package/dist/gsc-lineups-reports.umd.js +10 -7
  6. package/dist/images/canchaRPH.svg +30 -30
  7. package/dist/images/events/atajada.svg +56 -56
  8. package/dist/images/events/fin-del-partido.svg +43 -43
  9. package/dist/images/events/fuera-de-lugar.svg +57 -57
  10. package/dist/images/events/gol.svg +48 -48
  11. package/dist/images/events/icn-cambio.svg +6 -6
  12. package/dist/images/events/icn-falta.svg +4 -4
  13. package/dist/images/events/icn-play.svg +3 -3
  14. package/dist/images/events/icn-tarjeta-amarilla.svg +3 -3
  15. package/dist/images/events/icn-tarjeta-roja.svg +3 -3
  16. package/dist/images/events/icn-tiro-a-porteria.svg +36 -36
  17. package/dist/images/events/icn-tiros-de-esquina.svg +18 -18
  18. package/dist/images/events/inicia-el-partido.svg +45 -45
  19. package/dist/images/events/jugada-peligrosa.svg +90 -90
  20. package/dist/images/events/penal-fallado.svg +194 -194
  21. package/dist/images/events/penal-marcado.svg +189 -189
  22. package/dist/images/events/tiempo-agregado.svg +74 -74
  23. package/dist/images/events/tiro-a-porteria.svg +80 -80
  24. package/dist/images/events/var.svg +30 -30
  25. package/package.json +7 -3
  26. package/src/components/Lineup2D/CheckBox.vue +42 -42
  27. package/src/components/Lineup2D/FilterEmpty.vue +48 -48
  28. package/src/components/Lineup2D/Icons.vue +29 -29
  29. package/src/components/Lineup2D/LineupField.vue +274 -274
  30. package/src/components/Lineup2D/LineupFilter.vue +285 -285
  31. package/src/components/Lineup2D/LineupMainHeader.vue +222 -222
  32. package/src/components/Lineup2D/LineupRecentItem.vue +115 -110
  33. package/src/components/Lineup2D/MatchDetails.vue +66 -66
  34. package/src/components/gsc-filter.vue +286 -286
  35. package/src/components/gsc-header-historico-lineup.vue +1070 -1064
  36. package/src/components/gsc-header-postmatch-lineup.vue +1023 -1017
  37. package/src/components/gsc-header-probables-lineup.vue +1050 -1044
  38. package/src/components/gsc-header-recientes-lineup.vue +2343 -2337
  39. package/src/components/gsc-lineup-dosd.vue +3779 -3752
  40. package/src/components/gsc-lineup-main.vue +81 -65
  41. package/src/components/gsc-lineups-reports.vue +10 -0
  42. package/src/components/gsc-lineups.vue +95 -60
  43. package/src/components/gsc-player-card.vue +166 -166
  44. package/src/index.js +4 -4
  45. package/src/main-test.js +42 -0
  46. package/src/types.d.ts +45 -45
  47. package/src/utils/apiUrl.js +33 -0
  48. package/src/utils/imageUrl.js +30 -0
  49. package/src/utils/socketConnection.js +29 -29
@@ -1,223 +1,223 @@
1
- <template>
2
- <div class="main-header" :class="mainHeaderClass(type)" >
3
- <div class="team" :class="{ disabled: !isLocalSelected && type === 'Recientes' }">
4
- <div class="team__img-container" :style="teamSelected != localTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">
5
- <img :src="localTeam.img" v-if="localTeam.acronym != '-'">
6
- </div>
7
- <div class="team__acronym" :style="teamSelected != localTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'" v-if="localTeam.acronym != '-'">{{ localTeam.acronym }}</div>
8
- <div v-if="type === 'Probables'" class="team_rival">
9
- <div class="team__vs">vs</div>
10
- <img v-if="probablyTeamHome.img!= '-'" :src="probablyTeamHome.img" class="img-post--left">
11
- <div v-if="probablyTeamHome.acronym != '-'" class="team__acronym--gray team__acronym--gray--left">{{ probablyTeamHome.acronym }}</div>
12
- </div>
13
- </div>
14
- <div v-if="['Historicos', 'Postmatch'].includes(type)" class="main-header__score">
15
- {{ score }}
16
- </div>
17
- <div v-else-if="type === 'Recientes'" class="main-header__switch">
18
- <GSCSwitchRadio width="43px" height="20px" heightCircle="17px" widthCircle="17px" circle-color-switch="#cbee6b" :text-option-left="localTeam.acronym" @change="changeSwitchRadio" :text-option-right="visitTeam.acronym" font-color="white" :value-default="teamSelect" :hidden-labels="true" />
19
- </div>
20
- <div class="team">
21
- <div v-if="type === 'Probables'" class="team_rival">
22
- <div class="team__acronym--gray team__acronym--gray--right" v-if="probablyTeamAway.acronym != '-'">{{ probablyTeamAway.acronym }}</div>
23
- <img v-if="probablyTeamAway.img != '-'" :src="probablyTeamAway.img" class="img-post">
24
- <div class="team__vs">vs</div>
25
- </div>
26
- <div class="team__acronym" :style="teamSelected != visitTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">{{ visitTeam.acronym }}</div>
27
- <div class="team__img-container left" :style="teamSelected != visitTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">
28
- <img v-if="visitTeam.img != '-'" :src="visitTeam.img">
29
- </div>
30
- </div>
31
- </div>
32
-
33
- </template>
34
- <script setup>
35
- import { GSCSwitchRadio } from '@golstats/gsc-switch-radio'
36
- import { ref } from 'vue'
37
- import '@@/@golstats/gsc-switch-radio/dist/style.css'
38
-
39
- const props = defineProps({
40
- type: {
41
- type: String,
42
- default: 'Historicos'
43
- },
44
- score: {
45
- type: String,
46
- default: '2 - 3'
47
- },
48
- //{ acronym: '', img: ''}
49
- localTeam: {
50
- type: Object,
51
- default: () => ({})
52
- },
53
- visitTeam: {
54
- type: Object,
55
- default: () => ({})
56
- },
57
- probablyTeamHome: {
58
- type: Object,
59
- default: () => ({})
60
- },
61
- probablyTeamAway: {
62
- type: Object,
63
- default: () => ({})
64
- }
65
- })
66
- const emit = defineEmits(['change'])
67
- const changeSwitchRadio = (val) => {
68
- if(typeof val === 'string') teamSelected.value = val
69
- emit('change', val)
70
- }
71
- const isLocalSelected= ref(true)
72
- let teamSelected = ref(props.localTeam.acronym)
73
- </script>
74
- <script >
75
- export default {
76
- methods: {
77
- mainHeaderClass: function(type) {
78
- let clase = ''
79
- if (type === 'Recientes') clase = 'main-header-recientes'
80
- if (type === 'Probables') clase = 'main-header-probables'
81
- return clase
82
- }
83
- }
84
- }
85
- </script>
86
- <style lang="scss" scoped>
87
- .team_rival {
88
- display: flex;
89
- justify-content: space-between;
90
- align-items: center;
91
- gap: 0px;
92
- visibility: visible;
93
- width: auto;
94
- @media screen and (max-width: 500px) {
95
- visibility: hidden;
96
- width: 0;
97
- }
98
- }
99
- .main-header-recientes {
100
- padding-bottom: 16px;
101
- border-bottom: 1px solid #3D3D49;
102
- }
103
-
104
- .main-header-probables {
105
- @media screen and (max-width: 724px) {
106
- justify-content: center;
107
- }
108
- }
109
- .main-header {
110
- display: flex;
111
- align-items: center;
112
- justify-content: space-between;
113
- margin-bottom: 16px;
114
- .team {
115
- display: flex;
116
- align-items: center;
117
- &__img-container {
118
- height: 42px;
119
- width: 42px;
120
- border-radius: 50%;
121
- border: 0.873px solid #0033C5;
122
- box-shadow: 0px 1px 8px 0px rgb(0 0 0 / 25%);
123
- display: flex;
124
- align-items: center;
125
- justify-content: center;
126
- margin: 0 10px 0 0;
127
- position: relative;
128
- &.left {
129
- margin: 0 0 0 10px;
130
- border: 0.873px solid #CBEE6B;
131
- }
132
- img {
133
- width: 28px;
134
- height: 28px;
135
- z-index: 1;
136
- }
137
- &::after {
138
- content: " ";
139
- height: 80%;
140
- width: 80%;
141
- position: absolute;
142
- border-radius: 109.091px;
143
- background: #172531;
144
- }
145
- }
146
- &__acronym {
147
- color: #F4F4F4;
148
- font-family: Poppins,sans-serif;
149
- font-size: 14px;
150
- font-weight: 500;
151
- line-height: 220.495%;
152
- letter-spacing: 0.309px;
153
- &--gray {
154
- color: rgba(255, 255, 255, 0.70);
155
- margin-left: 2px;
156
- @media screen and (max-width: 724px) {
157
- font-size: 10px;
158
- &--left {
159
- margin-right: 13px;
160
- }
161
- &--right {
162
- margin-left: 13px;
163
- }
164
- }
165
- }
166
- @media screen and (max-width: 724px) {
167
- /* font-size: 10px; */
168
- }
169
-
170
- }
171
- &__vs {
172
- color: rgba(255, 255, 255, 0.70);
173
- font-family: Poppins,sans-serif;
174
- font-size: 14px;
175
- font-weight: 500;
176
- line-height: 20.065px; /* 143.322% */
177
- letter-spacing: -0.14px;
178
- margin: 0 5px 0 10px;
179
- @media screen and (max-width: 724px) {
180
- font-size: 10px;
181
- }
182
- }
183
- &.disabled {
184
- opacity: 0.7;
185
- }
186
- .img-post {
187
- width: 30px;
188
- margin-left: 5px;
189
- }
190
- .img-post--left {
191
- width: 30px;
192
- margin-right: 5px;
193
- }
194
- }
195
-
196
- &__score {
197
- display: flex;
198
- width: 71px;
199
- height: 31px;
200
- justify-content: center;
201
- align-items: center;
202
- border-radius: 17px;
203
- background-color: rgba(255, 255, 255, .1);
204
- color: #FFF;
205
- text-align: center;
206
- font-family: Inter, sans-serif;
207
- font-size: 15px;
208
- font-weight: 600;
209
- padding: 6.524074554443359px 17.397533416748047px;
210
- gap: 5px;
211
- text-wrap: nowrap;
212
- }
213
-
214
- &__switch {
215
- display: flex;
216
- width: 71px;
217
- height: 31px;
218
- justify-content: center;
219
- align-items: center;
220
- }
221
- }
222
-
1
+ <template>
2
+ <div class="main-header" :class="mainHeaderClass(type)" >
3
+ <div class="team" :class="{ disabled: !isLocalSelected && type === 'Recientes' }">
4
+ <div class="team__img-container" :style="teamSelected != localTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">
5
+ <img :src="localTeam.img" v-if="localTeam.acronym != '-'">
6
+ </div>
7
+ <div class="team__acronym" :style="teamSelected != localTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'" v-if="localTeam.acronym != '-'">{{ localTeam.acronym }}</div>
8
+ <div v-if="type === 'Probables'" class="team_rival">
9
+ <div class="team__vs">vs</div>
10
+ <img v-if="probablyTeamHome.img!= '-'" :src="probablyTeamHome.img" class="img-post--left">
11
+ <div v-if="probablyTeamHome.acronym != '-'" class="team__acronym--gray team__acronym--gray--left">{{ probablyTeamHome.acronym }}</div>
12
+ </div>
13
+ </div>
14
+ <div v-if="['Historicos', 'Postmatch'].includes(type)" class="main-header__score">
15
+ {{ score }}
16
+ </div>
17
+ <div v-else-if="type === 'Recientes'" class="main-header__switch">
18
+ <GSCSwitchRadio width="43px" height="20px" heightCircle="17px" widthCircle="17px" circle-color-switch="#cbee6b" :text-option-left="localTeam.acronym" @change="changeSwitchRadio" :text-option-right="visitTeam.acronym" font-color="white" :value-default="teamSelect" :hidden-labels="true" />
19
+ </div>
20
+ <div class="team">
21
+ <div v-if="type === 'Probables'" class="team_rival">
22
+ <div class="team__acronym--gray team__acronym--gray--right" v-if="probablyTeamAway.acronym != '-'">{{ probablyTeamAway.acronym }}</div>
23
+ <img v-if="probablyTeamAway.img != '-'" :src="probablyTeamAway.img" class="img-post">
24
+ <div class="team__vs">vs</div>
25
+ </div>
26
+ <div class="team__acronym" :style="teamSelected != visitTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">{{ visitTeam.acronym }}</div>
27
+ <div class="team__img-container left" :style="teamSelected != visitTeam.acronym && type==='Recientes' ? 'opacity: 0.5' : 'opacity: 1'">
28
+ <img v-if="visitTeam.img != '-'" :src="visitTeam.img">
29
+ </div>
30
+ </div>
31
+ </div>
32
+
33
+ </template>
34
+ <script setup>
35
+ import { GSCSwitchRadio } from '@golstats/gsc-switch-radio'
36
+ import { ref } from 'vue'
37
+ import '@@/@golstats/gsc-switch-radio/dist/style.css'
38
+
39
+ const props = defineProps({
40
+ type: {
41
+ type: String,
42
+ default: 'Historicos'
43
+ },
44
+ score: {
45
+ type: String,
46
+ default: '2 - 3'
47
+ },
48
+ //{ acronym: '', img: ''}
49
+ localTeam: {
50
+ type: Object,
51
+ default: () => ({})
52
+ },
53
+ visitTeam: {
54
+ type: Object,
55
+ default: () => ({})
56
+ },
57
+ probablyTeamHome: {
58
+ type: Object,
59
+ default: () => ({})
60
+ },
61
+ probablyTeamAway: {
62
+ type: Object,
63
+ default: () => ({})
64
+ }
65
+ })
66
+ const emit = defineEmits(['change'])
67
+ const changeSwitchRadio = (val) => {
68
+ if(typeof val === 'string') teamSelected.value = val
69
+ emit('change', val)
70
+ }
71
+ const isLocalSelected= ref(true)
72
+ let teamSelected = ref(props.localTeam.acronym)
73
+ </script>
74
+ <script >
75
+ export default {
76
+ methods: {
77
+ mainHeaderClass: function(type) {
78
+ let clase = ''
79
+ if (type === 'Recientes') clase = 'main-header-recientes'
80
+ if (type === 'Probables') clase = 'main-header-probables'
81
+ return clase
82
+ }
83
+ }
84
+ }
85
+ </script>
86
+ <style lang="scss" scoped>
87
+ .team_rival {
88
+ display: flex;
89
+ justify-content: space-between;
90
+ align-items: center;
91
+ gap: 0px;
92
+ visibility: visible;
93
+ width: auto;
94
+ @media screen and (max-width: 500px) {
95
+ visibility: hidden;
96
+ width: 0;
97
+ }
98
+ }
99
+ .main-header-recientes {
100
+ padding-bottom: 16px;
101
+ border-bottom: 1px solid #3D3D49;
102
+ }
103
+
104
+ .main-header-probables {
105
+ @media screen and (max-width: 724px) {
106
+ justify-content: center;
107
+ }
108
+ }
109
+ .main-header {
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: space-between;
113
+ margin-bottom: 16px;
114
+ .team {
115
+ display: flex;
116
+ align-items: center;
117
+ &__img-container {
118
+ height: 42px;
119
+ width: 42px;
120
+ border-radius: 50%;
121
+ border: 0.873px solid #0033C5;
122
+ box-shadow: 0px 1px 8px 0px rgb(0 0 0 / 25%);
123
+ display: flex;
124
+ align-items: center;
125
+ justify-content: center;
126
+ margin: 0 10px 0 0;
127
+ position: relative;
128
+ &.left {
129
+ margin: 0 0 0 10px;
130
+ border: 0.873px solid #CBEE6B;
131
+ }
132
+ img {
133
+ width: 28px;
134
+ height: 28px;
135
+ z-index: 1;
136
+ }
137
+ &::after {
138
+ content: " ";
139
+ height: 80%;
140
+ width: 80%;
141
+ position: absolute;
142
+ border-radius: 109.091px;
143
+ background: #172531;
144
+ }
145
+ }
146
+ &__acronym {
147
+ color: #F4F4F4;
148
+ font-family: Poppins,sans-serif;
149
+ font-size: 14px;
150
+ font-weight: 500;
151
+ line-height: 220.495%;
152
+ letter-spacing: 0.309px;
153
+ &--gray {
154
+ color: rgba(255, 255, 255, 0.70);
155
+ margin-left: 2px;
156
+ @media screen and (max-width: 724px) {
157
+ font-size: 10px;
158
+ &--left {
159
+ margin-right: 13px;
160
+ }
161
+ &--right {
162
+ margin-left: 13px;
163
+ }
164
+ }
165
+ }
166
+ @media screen and (max-width: 724px) {
167
+ /* font-size: 10px; */
168
+ }
169
+
170
+ }
171
+ &__vs {
172
+ color: rgba(255, 255, 255, 0.70);
173
+ font-family: Poppins,sans-serif;
174
+ font-size: 14px;
175
+ font-weight: 500;
176
+ line-height: 20.065px; /* 143.322% */
177
+ letter-spacing: -0.14px;
178
+ margin: 0 5px 0 10px;
179
+ @media screen and (max-width: 724px) {
180
+ font-size: 10px;
181
+ }
182
+ }
183
+ &.disabled {
184
+ opacity: 0.7;
185
+ }
186
+ .img-post {
187
+ width: 30px;
188
+ margin-left: 5px;
189
+ }
190
+ .img-post--left {
191
+ width: 30px;
192
+ margin-right: 5px;
193
+ }
194
+ }
195
+
196
+ &__score {
197
+ display: flex;
198
+ width: 71px;
199
+ height: 31px;
200
+ justify-content: center;
201
+ align-items: center;
202
+ border-radius: 17px;
203
+ background-color: rgba(255, 255, 255, .1);
204
+ color: #FFF;
205
+ text-align: center;
206
+ font-family: Inter, sans-serif;
207
+ font-size: 15px;
208
+ font-weight: 600;
209
+ padding: 6.524074554443359px 17.397533416748047px;
210
+ gap: 5px;
211
+ text-wrap: nowrap;
212
+ }
213
+
214
+ &__switch {
215
+ display: flex;
216
+ width: 71px;
217
+ height: 31px;
218
+ justify-content: center;
219
+ align-items: center;
220
+ }
221
+ }
222
+
223
223
  </style>