@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,111 +1,116 @@
1
- <template>
2
- <div class="recent-item">
3
- <div class="recent-item__team-info">
4
- <div class="recent-item__team">
5
- <div class="recent-item__acronym">
6
- {{ game.home_team_abbreviation }}
7
- </div>
8
- <img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.home_team+'.png'" class="left">
9
- </div>
10
- <div class="recent-item__score">
11
- {{ game.score[0]}} - {{ game.score[4] }}
12
- </div>
13
- <div class="recent-item__team">
14
- <img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.away_team+'.png'">
15
- <div class="recent-item__acronym">
16
- {{ game.away_team_abbreviation }}
17
- </div>
18
- </div>
19
- </div>
20
- <div class="recent-item__status">
21
- <template v-if="game.home_team_abbreviation == teamSelect">
22
- <template v-if="game.home_match_result == 1">Ganado</template>
23
- <template v-if="game.home_match_result == 2">Perdido</template>
24
- <template v-if="game.home_match_result == 3">Empatado</template>
25
- </template>
26
- <template v-if="game.away_team_abbreviation == teamSelect">
27
- <template v-if="game.visiting_match_result == 1">Ganado</template>
28
- <template v-if="game.visiting_match_result == 2">Perdido</template>
29
- <template v-if="game.visiting_match_result == 3">Empatado</template>
30
- </template>
31
- </div>
32
- </div>
33
- </template>
34
- <script setup>
35
- defineProps({
36
- score: {
37
- type: String,
38
- default: '2 - 3'
39
- },
40
- status: {
41
- type: String,
42
- default: 'Ganado'
43
- },
44
- game: {
45
- type: Object,
46
- default: () => ({})
47
- },
48
- teamSelect: {
49
- type: String,
50
- default: '1'
51
- }
52
- })
53
- </script>
54
- <style lang="scss" scoped>
55
- .recent-item {
56
- width: 200px;
57
- max-width: 264px;
58
- margin: auto;
59
- &__team-info {
60
- margin-bottom: 10px;
61
- display: flex;
62
- justify-content: space-between;
63
- }
64
- &__team {
65
- display: flex;
66
- align-items: center;
67
- }
68
- &__acronym {
69
- color: rgba(255, 255, 255, 0.70);
70
- font-family: Poppins, sans-serif;
71
- font-size: 14px;
72
- font-weight: 500;
73
- line-height: 20.065px; /* 143.322% */
74
- letter-spacing: -0.14px;
75
- }
76
- &__score {
77
- border-radius: 17.398px;
78
- border: 0.5px solid #CBEE6B;
79
- background: rgba(255, 255, 255, 0.10);
80
- width: 70px;
81
- height: 32px;
82
- display: flex;
83
- justify-content: center;
84
- align-items: center;
85
- color: #FFF;
86
- text-align: center;
87
- font-family: Inter, sans-serif;
88
- font-size: 15.223px;
89
- font-style: normal;
90
- font-weight: 600;
91
- line-height: normal;
92
- }
93
- img {
94
- height: 29px;
95
- width: 29px;
96
- margin: 0 5px 0 0;
97
- }
98
- .left {
99
- margin: 0 0 0 5px;
100
- }
101
- &__status {
102
- margin: auto;
103
- color: rgba(255, 255, 255, 0.70);
104
- text-align: center;
105
- font-family: Poppins, sans-serif;
106
- font-size: 12px;
107
- font-style: normal;
108
- font-weight: 500;
109
- }
110
- }
1
+ <template>
2
+ <div class="recent-item">
3
+ <div class="recent-item__team-info">
4
+ <div class="recent-item__team">
5
+ <div class="recent-item__acronym">
6
+ {{ game.home_team_abbreviation }}
7
+ </div>
8
+ <img :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+game.home_team+'.png', provider)" class="left">
9
+ </div>
10
+ <div class="recent-item__score">
11
+ {{ game.score[0]}} - {{ game.score[4] }}
12
+ </div>
13
+ <div class="recent-item__team">
14
+ <img :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+game.away_team+'.png', provider)">
15
+ <div class="recent-item__acronym">
16
+ {{ game.away_team_abbreviation }}
17
+ </div>
18
+ </div>
19
+ </div>
20
+ <div class="recent-item__status">
21
+ <template v-if="game.home_team_abbreviation == teamSelect">
22
+ <template v-if="game.home_match_result == 1">Ganado</template>
23
+ <template v-if="game.home_match_result == 2">Perdido</template>
24
+ <template v-if="game.home_match_result == 3">Empatado</template>
25
+ </template>
26
+ <template v-if="game.away_team_abbreviation == teamSelect">
27
+ <template v-if="game.visiting_match_result == 1">Ganado</template>
28
+ <template v-if="game.visiting_match_result == 2">Perdido</template>
29
+ <template v-if="game.visiting_match_result == 3">Empatado</template>
30
+ </template>
31
+ </div>
32
+ </div>
33
+ </template>
34
+ <script setup>
35
+ import { getImageUrl } from '@/utils/imageUrl'
36
+ defineProps({
37
+ provider: {
38
+ type: Number,
39
+ default: 1
40
+ },
41
+ score: {
42
+ type: String,
43
+ default: '2 - 3'
44
+ },
45
+ status: {
46
+ type: String,
47
+ default: 'Ganado'
48
+ },
49
+ game: {
50
+ type: Object,
51
+ default: () => ({})
52
+ },
53
+ teamSelect: {
54
+ type: String,
55
+ default: '1'
56
+ }
57
+ })
58
+ </script>
59
+ <style lang="scss" scoped>
60
+ .recent-item {
61
+ width: 200px;
62
+ max-width: 264px;
63
+ margin: auto;
64
+ &__team-info {
65
+ margin-bottom: 10px;
66
+ display: flex;
67
+ justify-content: space-between;
68
+ }
69
+ &__team {
70
+ display: flex;
71
+ align-items: center;
72
+ }
73
+ &__acronym {
74
+ color: rgba(255, 255, 255, 0.70);
75
+ font-family: Poppins, sans-serif;
76
+ font-size: 14px;
77
+ font-weight: 500;
78
+ line-height: 20.065px; /* 143.322% */
79
+ letter-spacing: -0.14px;
80
+ }
81
+ &__score {
82
+ border-radius: 17.398px;
83
+ border: 0.5px solid #CBEE6B;
84
+ background: rgba(255, 255, 255, 0.10);
85
+ width: 70px;
86
+ height: 32px;
87
+ display: flex;
88
+ justify-content: center;
89
+ align-items: center;
90
+ color: #FFF;
91
+ text-align: center;
92
+ font-family: Inter, sans-serif;
93
+ font-size: 15.223px;
94
+ font-style: normal;
95
+ font-weight: 600;
96
+ line-height: normal;
97
+ }
98
+ img {
99
+ height: 29px;
100
+ width: 29px;
101
+ margin: 0 5px 0 0;
102
+ }
103
+ .left {
104
+ margin: 0 0 0 5px;
105
+ }
106
+ &__status {
107
+ margin: auto;
108
+ color: rgba(255, 255, 255, 0.70);
109
+ text-align: center;
110
+ font-family: Poppins, sans-serif;
111
+ font-size: 12px;
112
+ font-style: normal;
113
+ font-weight: 500;
114
+ }
115
+ }
111
116
  </style>
@@ -1,67 +1,67 @@
1
- <template>
2
- <div class="match-details">
3
- <ul class="match-details__list">
4
- <li v-for="detail in localDetails">
5
- <Icons class="icon" :icon="detail.icon" />
6
- <span>{{ detail.description }}</span>
7
- </li>
8
- </ul>
9
- <ul class="match-details__list right">
10
- <li v-for="detail in foreignDetails">
11
- <span>{{ detail.description }}</span>
12
- <Icons class="icon" :icon="detail.icon" />
13
- </li>
14
- </ul>
15
- </div>
16
- </template>
17
- <script setup>
18
- import Icons from '@/components/Lineup2D/Icons.vue'
19
- defineProps({
20
- localDetails: {
21
- type: Array,
22
- default: () => []
23
- },
24
- foreignDetails: {
25
- type: Array,
26
- default: () => []
27
- }
28
- })
29
- </script>
30
- <style lang="scss" scoped>
31
- .match-details {
32
- max-width: 195px;
33
- widows: 100%;
34
- margin: auto;
35
- display: flex;
36
- justify-content: space-between;
37
- &__list {
38
- list-style: none;
39
- padding: 0;
40
- margin: 0;
41
- li {
42
- color: rgba(255, 255, 255, 0.70);
43
- font-family: Poppins, sans-serif;
44
- font-size: 9px;
45
- display: flex;
46
- align-items: center;
47
- font-weight: 500;
48
- text-align: right;
49
- line-height: 19.5px; /* 216.667% */
50
- letter-spacing: -0.09px;
51
- text-transform: capitalize;
52
- }
53
- }
54
- .icon {
55
- margin-right: 9px;
56
- width: 9px;
57
- }
58
- &__list.right li {
59
- text-align: left;
60
- justify-content: flex-end;
61
- }
62
- &__list.right .icon {
63
- margin-right: unset;
64
- margin-left: 9px;
65
- }
66
- }
1
+ <template>
2
+ <div class="match-details">
3
+ <ul class="match-details__list">
4
+ <li v-for="detail in localDetails">
5
+ <Icons class="icon" :icon="detail.icon" />
6
+ <span>{{ detail.description }}</span>
7
+ </li>
8
+ </ul>
9
+ <ul class="match-details__list right">
10
+ <li v-for="detail in foreignDetails">
11
+ <span>{{ detail.description }}</span>
12
+ <Icons class="icon" :icon="detail.icon" />
13
+ </li>
14
+ </ul>
15
+ </div>
16
+ </template>
17
+ <script setup>
18
+ import Icons from '@/components/Lineup2D/Icons.vue'
19
+ defineProps({
20
+ localDetails: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ foreignDetails: {
25
+ type: Array,
26
+ default: () => []
27
+ }
28
+ })
29
+ </script>
30
+ <style lang="scss" scoped>
31
+ .match-details {
32
+ max-width: 195px;
33
+ widows: 100%;
34
+ margin: auto;
35
+ display: flex;
36
+ justify-content: space-between;
37
+ &__list {
38
+ list-style: none;
39
+ padding: 0;
40
+ margin: 0;
41
+ li {
42
+ color: rgba(255, 255, 255, 0.70);
43
+ font-family: Poppins, sans-serif;
44
+ font-size: 9px;
45
+ display: flex;
46
+ align-items: center;
47
+ font-weight: 500;
48
+ text-align: right;
49
+ line-height: 19.5px; /* 216.667% */
50
+ letter-spacing: -0.09px;
51
+ text-transform: capitalize;
52
+ }
53
+ }
54
+ .icon {
55
+ margin-right: 9px;
56
+ width: 9px;
57
+ }
58
+ &__list.right li {
59
+ text-align: left;
60
+ justify-content: flex-end;
61
+ }
62
+ &__list.right .icon {
63
+ margin-right: unset;
64
+ margin-left: 9px;
65
+ }
66
+ }
67
67
  </style>