@golstats/gsc-top-player 1.0.11 → 1.0.13

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 (84) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +53 -53
  3. package/dist/{FilterConditions-55d68355-DMqzcKBO.js → FilterConditions-55d68355-icU5o85T.js} +1 -1
  4. package/dist/{FilterField-59a73e38-CNaE03Ge.js → FilterField-59a73e38-BOM_57PM.js} +1 -1
  5. package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r.js → FilterSubcategories-a9b32cc9-yXOBLwEK.js} +1 -1
  6. package/dist/atajada.svg +56 -56
  7. package/dist/backarrow.svg +3 -3
  8. package/dist/contorno-escudo.svg +3 -3
  9. package/dist/css/fonts.css +91 -91
  10. package/dist/fin-del-partido.svg +43 -43
  11. package/dist/fuera-de-lugar.svg +57 -57
  12. package/dist/gol.svg +48 -48
  13. package/dist/group-427321178.svg +8 -8
  14. package/dist/group-427321179.svg +5 -5
  15. package/dist/group-427321501.svg +5 -5
  16. package/dist/gsc-top-player.css +1 -1
  17. package/dist/gsc-top-player.es.js +1 -1
  18. package/dist/gsc-top-player.umd.js +9 -9
  19. package/dist/icn-arrow-expand.svg +3 -3
  20. package/dist/icn-cambio.svg +26 -26
  21. package/dist/icn-expand-arrow.svg +3 -3
  22. package/dist/icn-expand-arrow1.svg +3 -3
  23. package/dist/icn-falta.svg +42 -42
  24. package/dist/icn-filter.svg +12 -12
  25. package/dist/icn-filter1.svg +12 -12
  26. package/dist/icn-filter2.svg +12 -12
  27. package/dist/icn-play.svg +10 -10
  28. package/dist/icn-tarjeta-amarilla.svg +4 -4
  29. package/dist/icn-tarjeta-roja.svg +4 -4
  30. package/dist/icn-tiro-a-porteria.svg +36 -36
  31. package/dist/icn-tiros-de-esquina.svg +54 -54
  32. package/dist/images/events/logo-fusionado.svg +37 -37
  33. package/dist/{index--DcThtAY.js → index-DP7G7HpQ.js} +940 -940
  34. package/dist/inicia-el-partido.svg +45 -45
  35. package/dist/jugada-peligrosa.svg +90 -90
  36. package/dist/next-arrow.svg +3 -3
  37. package/dist/nextarrow.svg +3 -3
  38. package/dist/penal-fallado.svg +194 -194
  39. package/dist/penal-marcado.svg +189 -189
  40. package/dist/play-icn.svg +3 -3
  41. package/dist/public/images/canchaRPH.svg +30 -30
  42. package/dist/public/images/events/atajada.svg +56 -56
  43. package/dist/public/images/events/cambio.svg +26 -26
  44. package/dist/public/images/events/falta.svg +42 -42
  45. package/dist/public/images/events/fin-del-partido.svg +43 -43
  46. package/dist/public/images/events/fuera-de-lugar.svg +57 -57
  47. package/dist/public/images/events/gol.svg +48 -48
  48. package/dist/public/images/events/icn-cambio.svg +6 -6
  49. package/dist/public/images/events/icn-falta.svg +4 -4
  50. package/dist/public/images/events/icn-play.svg +3 -3
  51. package/dist/public/images/events/icn-tarjeta-amarilla.svg +4 -4
  52. package/dist/public/images/events/icn-tarjeta-roja.svg +4 -4
  53. package/dist/public/images/events/icn-tiro-a-porteria.svg +36 -36
  54. package/dist/public/images/events/icn-tiros-de-esquina.svg +18 -18
  55. package/dist/public/images/events/inicia-el-partido.svg +45 -45
  56. package/dist/public/images/events/jugada-peligrosa.svg +90 -90
  57. package/dist/public/images/events/penal-fallado.svg +194 -194
  58. package/dist/public/images/events/penal-marcado.svg +189 -189
  59. package/dist/public/images/events/tiempo-agregado.svg +74 -74
  60. package/dist/public/images/events/tiro-a-porteria.svg +80 -80
  61. package/dist/public/images/events/tiro-de-esquina.svg +54 -54
  62. package/dist/public/images/events/var.svg +30 -30
  63. package/dist/shape.svg +3 -3
  64. package/dist/styles.css +1176 -1176
  65. package/dist/tiempo-agregado.svg +74 -74
  66. package/dist/tiro-a-porteria.svg +80 -80
  67. package/dist/var.svg +30 -30
  68. package/package.json +1 -1
  69. package/src/components/comparative/categories.js +137 -137
  70. package/src/components/comparative/composable-filters.js +10 -10
  71. package/src/components/comparative/computedProperties.js +327 -327
  72. package/src/components/comparative/dummy-top-players.js +122 -122
  73. package/src/components/comparative/filtersTypes.js +117 -117
  74. package/src/components/comparative/gsc-button.vue +198 -198
  75. package/src/components/comparative/gsc-expanded-info-player.vue +710 -710
  76. package/src/components/comparative/gsc-head-titles.vue +1482 -1482
  77. package/src/components/comparative/gsc-header-tops.vue +1418 -1418
  78. package/src/components/comparative/gsc-top.vue +1511 -1511
  79. package/src/components/comparative/gsc-tops-full.vue +2473 -2473
  80. package/src/components/comparative/nationalities-catalog.js +233 -233
  81. package/src/components/comparative/playsTypes.js +142 -142
  82. package/src/components/comparative/useElementSize.js +23 -23
  83. package/src/components/gsc-top-player.vue +91 -91
  84. package/src/index.js +5 -5
@@ -1,198 +1,198 @@
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
- </div>
17
- <div v-if="type == 1" class="button-target" @click="btnClick">
18
- <div class="stats">
19
- <div class="numstats">{{ textStat }}</div>
20
- </div>
21
- <div class="leyend">{{ textCategory }}</div>
22
- </div>
23
- </div>
24
- </template>
25
-
26
- <script>
27
- export default {
28
- props: {
29
- type: { type: Number, default: 0 },
30
- value: { type: Boolean, default: false },
31
- textValue: String,
32
- iconPosition: { type: String, default: 'left' },
33
- iconSize: String,
34
- mini: { type: Boolean, default: false },
35
- fontColor: { type: String, default: '#FFFFFF' },
36
- textDecoration: String,
37
- fontSize: { type: String, default: '16px' },
38
- fontSizeStat: { type: String, default: '16px' },
39
- fontStyle: String,
40
- fontFamily: { type: String, default: 'Poppins-Regular' },
41
- height: { type: String, default: 'fit-content' },
42
- width: { type: String, default: 'fit-content' },
43
- buttonMaxWidth: { type: String, default: 'auto' },
44
- borderRadius: { type: String, default: '0px' },
45
- borderType: { type: String, default: 'solid' },
46
- borderWidth: { type: Number, default: 0 },
47
- borderWidthBtn: { type: String, default: '2px' },
48
- borderColor: String,
49
- backgroundColor: { type: String, default: 'none' },
50
- activeBackgroundColor: { type: String, default: '#000000' },
51
- activeBorderWidth: { type: Number, default: 2 },
52
- activeBorderType: { type: String, default: 'solid' },
53
- activeBorderColor: { type: String, default: '#cbee6b' },
54
- activeColorText: { type: String, default: '#FFFFFF' },
55
- cursorType: { type: String, default: 'default' },
56
- typeOnOff: { type: Boolean, default: false },
57
- textCategory: String,
58
- textStat: String,
59
- marginLeftStat: { type: String, default: '15%' },
60
- },
61
- watch: {
62
- value: {
63
- deep: true,
64
- immediate: true,
65
- handler(newValue) {
66
- this.status = newValue
67
- },
68
- },
69
- },
70
- data() {
71
- return { status: false }
72
- },
73
- computed: {
74
- customStyle() {
75
- return {
76
- height: this.height,
77
- width: this.width,
78
- maxWidth: this.buttonMaxWidth,
79
- backgroundColor: this.backgroundColor,
80
- borderRadius: this.borderRadius,
81
- border: `${this.borderType} ${this.borderWidth}px ${this.borderColor}`,
82
- color: this.fontColor,
83
- textDecoration: this.textDecoration,
84
- cursor: this.cursorType,
85
- fontSize: this.fontSize,
86
- fontStyle: this.fontStyle,
87
- fontFamily: `${this.fontFamily} !important`,
88
- }
89
- },
90
- customActive() {
91
- return {
92
- backgroundColor: this.activeBackgroundColor,
93
- color: this.activeColorText,
94
- border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`,
95
- }
96
- },
97
- },
98
- methods: {
99
- btnClick(id) {
100
- this.$emit('click', id)
101
- if (this.typeOnOff) {
102
- this.status = !this.status
103
- this.$emit('status', this.status)
104
- }
105
- },
106
- },
107
- }
108
- </script>
109
-
110
- <style scoped>
111
- .button,
112
- .button-active {
113
- display: inline-flex;
114
- justify-content: center;
115
- align-content: center;
116
- align-items: center;
117
- overflow: none;
118
- cursor: pointer !important;
119
- padding: 0 6px;
120
- }
121
- .button:hover {
122
- cursor: pointer !important;
123
- opacity: 0.8;
124
- }
125
- .button-target {
126
- display: inline-block;
127
- overflow: hidden;
128
- height: v-bind(height);
129
- border-width: v-bind(borderWidthBtn) !important;
130
- border-style: v-bind(borderType) !important;
131
- border-color: v-bind(borderColor) !important;
132
- border-radius: v-bind(borderRadius) !important;
133
- width: v-bind(width);
134
- background-color: v-bind(backgroundColor);
135
- justify-content: center;
136
- align-content: center;
137
- align-items: center;
138
- overflow: none;
139
- cursor: pointer !important;
140
- cursor: v-bind(cursorType) !important;
141
- font-size: v-bind(fontSize) !important;
142
- font-style: v-bind(fontStyle) !important;
143
- font-family: v-bind(fontFamily) !important;
144
- }
145
- .stats {
146
- display: inline-flex;
147
- width: 100%;
148
- padding-top: 5px;
149
- justify-content: left;
150
- align-items: center;
151
- align-content: center;
152
- height: 60%;
153
- }
154
- .iconstats {
155
- width: 14px;
156
- height: 14px;
157
- margin-left: v-bind(marginLeftStat); /* dinamico */
158
- }
159
- .numstats {
160
- font-family: 'Poppins-SemiBold';
161
- color: #ffffff;
162
- font-size: v-bind(fontSizeStat);
163
- margin-left: 7px;
164
- }
165
- .leyend {
166
- display: inline-flex;
167
- justify-content: center;
168
- align-items: center;
169
- align-content: center;
170
- font-family: 'Poppins-Regular';
171
- color: #a0a3a5;
172
- width: 100%;
173
- height: 15%;
174
- }
175
- .icon {
176
- margin-left: 0px;
177
- }
178
- .icon-txt {
179
- margin-left: 2px;
180
- }
181
- .text {
182
- font-size: 10px;
183
- padding: 4px;
184
- max-width: 98%;
185
- white-space: nowrap;
186
- overflow: hidden !important;
187
- text-overflow: ellipsis;
188
- font-size: v-bind(fontSize) !important;
189
- font-style: v-bind(fontStyle) !important;
190
- font-family: v-bind(fontFamily) !important;
191
- }
192
- .text-mini {
193
- font-size: 10px;
194
- white-space: nowrap;
195
- overflow: hidden !important;
196
- text-overflow: ellipsis;
197
- }
198
- </style>
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
+ </div>
17
+ <div v-if="type == 1" class="button-target" @click="btnClick">
18
+ <div class="stats">
19
+ <div class="numstats">{{ textStat }}</div>
20
+ </div>
21
+ <div class="leyend">{{ textCategory }}</div>
22
+ </div>
23
+ </div>
24
+ </template>
25
+
26
+ <script>
27
+ export default {
28
+ props: {
29
+ type: { type: Number, default: 0 },
30
+ value: { type: Boolean, default: false },
31
+ textValue: String,
32
+ iconPosition: { type: String, default: 'left' },
33
+ iconSize: String,
34
+ mini: { type: Boolean, default: false },
35
+ fontColor: { type: String, default: '#FFFFFF' },
36
+ textDecoration: String,
37
+ fontSize: { type: String, default: '16px' },
38
+ fontSizeStat: { type: String, default: '16px' },
39
+ fontStyle: String,
40
+ fontFamily: { type: String, default: 'Poppins-Regular' },
41
+ height: { type: String, default: 'fit-content' },
42
+ width: { type: String, default: 'fit-content' },
43
+ buttonMaxWidth: { type: String, default: 'auto' },
44
+ borderRadius: { type: String, default: '0px' },
45
+ borderType: { type: String, default: 'solid' },
46
+ borderWidth: { type: Number, default: 0 },
47
+ borderWidthBtn: { type: String, default: '2px' },
48
+ borderColor: String,
49
+ backgroundColor: { type: String, default: 'none' },
50
+ activeBackgroundColor: { type: String, default: '#000000' },
51
+ activeBorderWidth: { type: Number, default: 2 },
52
+ activeBorderType: { type: String, default: 'solid' },
53
+ activeBorderColor: { type: String, default: '#cbee6b' },
54
+ activeColorText: { type: String, default: '#FFFFFF' },
55
+ cursorType: { type: String, default: 'default' },
56
+ typeOnOff: { type: Boolean, default: false },
57
+ textCategory: String,
58
+ textStat: String,
59
+ marginLeftStat: { type: String, default: '15%' },
60
+ },
61
+ watch: {
62
+ value: {
63
+ deep: true,
64
+ immediate: true,
65
+ handler(newValue) {
66
+ this.status = newValue
67
+ },
68
+ },
69
+ },
70
+ data() {
71
+ return { status: false }
72
+ },
73
+ computed: {
74
+ customStyle() {
75
+ return {
76
+ height: this.height,
77
+ width: this.width,
78
+ maxWidth: this.buttonMaxWidth,
79
+ backgroundColor: this.backgroundColor,
80
+ borderRadius: this.borderRadius,
81
+ border: `${this.borderType} ${this.borderWidth}px ${this.borderColor}`,
82
+ color: this.fontColor,
83
+ textDecoration: this.textDecoration,
84
+ cursor: this.cursorType,
85
+ fontSize: this.fontSize,
86
+ fontStyle: this.fontStyle,
87
+ fontFamily: `${this.fontFamily} !important`,
88
+ }
89
+ },
90
+ customActive() {
91
+ return {
92
+ backgroundColor: this.activeBackgroundColor,
93
+ color: this.activeColorText,
94
+ border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`,
95
+ }
96
+ },
97
+ },
98
+ methods: {
99
+ btnClick(id) {
100
+ this.$emit('click', id)
101
+ if (this.typeOnOff) {
102
+ this.status = !this.status
103
+ this.$emit('status', this.status)
104
+ }
105
+ },
106
+ },
107
+ }
108
+ </script>
109
+
110
+ <style scoped>
111
+ .button,
112
+ .button-active {
113
+ display: inline-flex;
114
+ justify-content: center;
115
+ align-content: center;
116
+ align-items: center;
117
+ overflow: none;
118
+ cursor: pointer !important;
119
+ padding: 0 6px;
120
+ }
121
+ .button:hover {
122
+ cursor: pointer !important;
123
+ opacity: 0.8;
124
+ }
125
+ .button-target {
126
+ display: inline-block;
127
+ overflow: hidden;
128
+ height: v-bind(height);
129
+ border-width: v-bind(borderWidthBtn) !important;
130
+ border-style: v-bind(borderType) !important;
131
+ border-color: v-bind(borderColor) !important;
132
+ border-radius: v-bind(borderRadius) !important;
133
+ width: v-bind(width);
134
+ background-color: v-bind(backgroundColor);
135
+ justify-content: center;
136
+ align-content: center;
137
+ align-items: center;
138
+ overflow: none;
139
+ cursor: pointer !important;
140
+ cursor: v-bind(cursorType) !important;
141
+ font-size: v-bind(fontSize) !important;
142
+ font-style: v-bind(fontStyle) !important;
143
+ font-family: v-bind(fontFamily) !important;
144
+ }
145
+ .stats {
146
+ display: inline-flex;
147
+ width: 100%;
148
+ padding-top: 5px;
149
+ justify-content: left;
150
+ align-items: center;
151
+ align-content: center;
152
+ height: 60%;
153
+ }
154
+ .iconstats {
155
+ width: 14px;
156
+ height: 14px;
157
+ margin-left: v-bind(marginLeftStat); /* dinamico */
158
+ }
159
+ .numstats {
160
+ font-family: 'Poppins-SemiBold';
161
+ color: #ffffff;
162
+ font-size: v-bind(fontSizeStat);
163
+ margin-left: 7px;
164
+ }
165
+ .leyend {
166
+ display: inline-flex;
167
+ justify-content: center;
168
+ align-items: center;
169
+ align-content: center;
170
+ font-family: 'Poppins-Regular';
171
+ color: #a0a3a5;
172
+ width: 100%;
173
+ height: 15%;
174
+ }
175
+ .icon {
176
+ margin-left: 0px;
177
+ }
178
+ .icon-txt {
179
+ margin-left: 2px;
180
+ }
181
+ .text {
182
+ font-size: 10px;
183
+ padding: 4px;
184
+ max-width: 98%;
185
+ white-space: nowrap;
186
+ overflow: hidden !important;
187
+ text-overflow: ellipsis;
188
+ font-size: v-bind(fontSize) !important;
189
+ font-style: v-bind(fontStyle) !important;
190
+ font-family: v-bind(fontFamily) !important;
191
+ }
192
+ .text-mini {
193
+ font-size: 10px;
194
+ white-space: nowrap;
195
+ overflow: hidden !important;
196
+ text-overflow: ellipsis;
197
+ }
198
+ </style>