@golstats/gsc-table-scrollable 0.0.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.
- package/README.md +29 -0
- package/dist/favicon.ico +0 -0
- package/dist/gsc-table-scrollable.css +1 -0
- package/dist/gsc-table-scrollable.js +751 -0
- package/dist/gsc-table-scrollable.umd.cjs +1 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# scrollable-table
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
4
|
+
|
|
5
|
+
## Recommended IDE Setup
|
|
6
|
+
|
|
7
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
|
8
|
+
|
|
9
|
+
## Customize configuration
|
|
10
|
+
|
|
11
|
+
See [Vite Configuration Reference](https://vite.dev/config/).
|
|
12
|
+
|
|
13
|
+
## Project Setup
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm install
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Compile and Hot-Reload for Development
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npm run dev
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Compile and Minify for Production
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
npm run build
|
|
29
|
+
```
|
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.checkbox[data-v-b6f124d8]{width:var(--7bd9d47b);height:var(--34dc7ddc);display:flex;justify-content:flex-start;align-items:flex-start;cursor:pointer}.checkbox__teams[data-v-b6f124d8]{margin-left:6px;display:flex}.checkbox__teams__logo[data-v-b6f124d8]{height:22px;width:22px;display:flex;justify-content:center;align-items:center;border-radius:50%;border:solid .5px #cbee6b;background-color:#0d1d29}.checkbox__teams__logo[data-v-b6f124d8]:first-child{transform:translate(8px)}.checkbox__teams__logo>img[data-v-b6f124d8]{height:18px;width:18px}.checkbox.box-right[data-v-b6f124d8]{flex-direction:row-reverse;justify-content:flex-end}.checkbox.box-top[data-v-b6f124d8]{flex-direction:column;justify-content:flex-start;align-items:center}.checkbox.box-bottom[data-v-b6f124d8]{flex-direction:column-reverse;justify-content:flex-end;align-items:center}.checkbox__box[data-v-b6f124d8]{display:flex;justify-content:center;align-items:center}.checkbox__label[data-v-b6f124d8]{margin:.3em 0;width:var(--7bd9d47b)}.button[data-v-f3ee6b2b],.button-active[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important}.button-target[data-v-f3ee6b2b]{display:inline-block;overflow:hidden;height:var(--9d01acb4);border-width:var(--14e95081)!important;border-style:var(--38fec285)!important;border-color:var(--34353510)!important;border-radius:var(--20d20dc6)!important;width:var(--17130967);background-color:var(--4ccb7d36);justify-content:center;align-content:center;align-items:center;overflow:none;cursor:pointer!important;cursor:var(--5d1e86a2)!important;font-size:var(--ce65d4a2)!important;font-style:var(--fe4ac47a)!important;font-family:var(--f98e44dc)!important}.stats[data-v-f3ee6b2b]{display:inline-flex;width:100%;padding-top:5px;justify-content:left;align-items:center;align-content:center;height:60%}.iconstats[data-v-f3ee6b2b]{width:14px;height:14px;margin-left:var(--93b87770)}.numstats[data-v-f3ee6b2b]{font-family:Poppins-SemiBold;color:#fff;font-size:var(--c7f7beba);margin-left:7px}.leyend[data-v-f3ee6b2b]{display:inline-flex;justify-content:center;align-items:center;align-content:center;font-family:Poppins-Regular;color:#a0a3a5;width:100%;height:15%}.text[data-v-f3ee6b2b],.icon[data-v-f3ee6b2b]{padding:0 4px}.scrollable-row-2[data-v-c362d03a]{display:grid;grid-template-columns:var(--grid-template-columns);width:fit-content}.scrollable-row-totals[data-v-c362d03a]{display:grid;grid-template-columns:var(--grid-template-columns-totals);width:fit-content;transition:all .3s ease}.titles[data-v-c362d03a]{width:100%}.column-title-2[data-v-c362d03a]{height:70px;width:fit-content;display:flex;justify-content:center;align-items:center;background-color:#1e3142;border-bottom:solid 1px rgba(255,255,255,.1);font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:center;color:#f4f4f4;padding:0 17px}.row[data-v-c362d03a]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-c362d03a]{background-color:#172531}.scroll-columns[data-v-c362d03a]{display:flex;flex-direction:column;position:relative}.overlay[data-v-c362d03a]{position:absolute;top:71px;left:0;right:0;bottom:0;background-color:#0009;z-index:1}.underline[data-v-c362d03a]{text-decoration:underline}.data-info[data-v-c362d03a]{display:flex;justify-content:center;align-items:center;font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.data-info>svg[data-v-c362d03a]{cursor:pointer}.country-flag[data-v-f240471a]{width:14px;height:auto}.team-info[data-v-f240471a]{display:flex;justify-content:center;align-items:center;gap:12px}.team-info>.team-logo[data-v-f240471a]{width:25px;height:25px}.team-info>.team-logo>img[data-v-f240471a]{width:25px;height:25px}.underline[data-v-f240471a]{text-decoration:underline}.data-info[data-v-f240471a]{display:flex;justify-content:center;align-items:center;font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.scrollable-row[data-v-f240471a]{display:grid;grid-template-columns:104px 100px 100px 100px 100px 100px 104px 114px 100px}.titles[data-v-f240471a]{width:100%}.row[data-v-f240471a]{height:72px;border-bottom:solid 1px rgba(255,255,255,.1);background-color:#111d28}.row.odd[data-v-f240471a]{background-color:#172531}.column-title[data-v-f240471a]{height:70px;display:flex;justify-content:center;align-items:center;background-color:#1e3142;border-bottom:solid 1px rgba(255,255,255,.1);font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:center;color:#f4f4f4}.details-row[data-v-f240471a]{width:var(--width-details);position:absolute;top:74px;left:0;z-index:1;background-color:#111d28;border-bottom:solid 1px rgba(255,255,255,.1)}.details-row>.container[data-v-f240471a]{width:calc(var(--width-details) - 80px);padding:16px 40px 0;display:flex;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap}.details-row>.container>div[data-v-f240471a]{margin-bottom:24px}.details-row__info[data-v-f240471a]{display:flex;align-items:flex-start;font-family:Poppins-Regular,sans-serif;font-weight:500;font-size:12px;color:#fff}.details-row__info>div[data-v-f240471a]{margin:0 40px}.details-row__info span.bold[data-v-f240471a]{font-family:Poppins-Medium,sans-serif}.details-row__buttons[data-v-f240471a]{display:flex;align-items:center;gap:16px;margin-left:40px}.details-row.odd[data-v-f240471a]{background-color:#172531}.static-row[data-v-f240471a]{display:flex;justify-content:flex-start;align-items:center;gap:18px;padding-left:24px;position:relative;transition:all .3s ease}.static-row>.position[data-v-f240471a]{font-family:Montserrat-SemiBold,sans-serif;font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.static-row>.player-name[data-v-f240471a]{font-family:Poppins-Medium,sans-serif;font-size:12px;font-weight:500;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:.2px;text-align:left;color:#f4f4f4}.player-photo[data-v-f240471a]{width:32px;height:32px;border-radius:50%;background-color:#fff}.player-photo>img[data-v-f240471a]{width:32px;height:32px;border-radius:50%}.table[data-v-f240471a]{width:100%;height:fit-content;display:flex;justify-content:flex-start;align-items:flex-start}.table__static-column[data-v-f240471a]{width:256px;min-width:256px;background-color:#1e3142}.table__scrollable-columns[data-v-f240471a]{width:100%;overflow-x:scroll}
|
|
@@ -0,0 +1,751 @@
|
|
|
1
|
+
import { useCssVars as q, ref as _, computed as P, watch as T, createElementBlock as s, openBlock as i, normalizeClass as h, createElementVNode as l, createCommentVNode as S, normalizeStyle as C, Fragment as B, toDisplayString as n, pushScopeId as I, popScopeId as L, onMounted as G, renderList as V, createVNode as R, createBlock as M, Transition as j, withCtx as K, withDirectives as Q, createTextVNode as z, unref as F, vShow as X, createStaticVNode as Y } from "vue";
|
|
2
|
+
const tt = (t, u) => {
|
|
3
|
+
const e = t.__vccOpts || t;
|
|
4
|
+
for (const [d, f] of u)
|
|
5
|
+
e[d] = f;
|
|
6
|
+
return e;
|
|
7
|
+
}, et = { key: 1 }, ot = {
|
|
8
|
+
width: "10",
|
|
9
|
+
height: "8",
|
|
10
|
+
viewBox: "0 0 10 8",
|
|
11
|
+
fill: "none",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
+
}, lt = ["fill"], it = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "checkbox__teams"
|
|
16
|
+
}, st = { class: "checkbox__teams__logo" }, at = ["src"], nt = { class: "checkbox__teams__logo" }, dt = ["src"], rt = {
|
|
17
|
+
__name: "GSC-Checkbox",
|
|
18
|
+
props: {
|
|
19
|
+
width: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "fit-content"
|
|
22
|
+
},
|
|
23
|
+
height: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "fit-content"
|
|
26
|
+
},
|
|
27
|
+
label: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
},
|
|
31
|
+
labelWhiteSpace: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "normal"
|
|
34
|
+
},
|
|
35
|
+
labelColor: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "white"
|
|
38
|
+
},
|
|
39
|
+
fontFamily: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: "sans-serif"
|
|
42
|
+
},
|
|
43
|
+
labelFontSize: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "12px"
|
|
46
|
+
},
|
|
47
|
+
modelValue: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
justifyContent: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "flex-start"
|
|
54
|
+
},
|
|
55
|
+
alignItems: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "center"
|
|
58
|
+
},
|
|
59
|
+
boxBackgroundColor: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: "#CBEE6B"
|
|
62
|
+
},
|
|
63
|
+
boxValueColor: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: "#0d1d29"
|
|
66
|
+
},
|
|
67
|
+
boxValue: {
|
|
68
|
+
type: [String, Number],
|
|
69
|
+
default: ""
|
|
70
|
+
},
|
|
71
|
+
boxPosition: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "left",
|
|
74
|
+
// values can be 'left', 'right', 'top', 'bottom'
|
|
75
|
+
validator(t) {
|
|
76
|
+
return ["left", "right", "top", "bottom"].includes(t);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
boxMarginTop: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: "0.2em"
|
|
82
|
+
},
|
|
83
|
+
boxWidthAndHeight: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: "16px"
|
|
86
|
+
},
|
|
87
|
+
boxBorderColor: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: "#969da2"
|
|
90
|
+
},
|
|
91
|
+
boxBorderWidth: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: "2px"
|
|
94
|
+
},
|
|
95
|
+
boxBorderRadius: {
|
|
96
|
+
type: String,
|
|
97
|
+
default: "4px"
|
|
98
|
+
},
|
|
99
|
+
boxValueFontSize: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: "10px"
|
|
102
|
+
},
|
|
103
|
+
boxValueFontFamily: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: "sans-serif"
|
|
106
|
+
},
|
|
107
|
+
avoidInteraction: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !1
|
|
110
|
+
},
|
|
111
|
+
avoidToCheck: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !1
|
|
114
|
+
},
|
|
115
|
+
isBoxOnly: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: !1
|
|
118
|
+
},
|
|
119
|
+
teamsIds: {
|
|
120
|
+
type: Array,
|
|
121
|
+
default: () => null
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
emits: ["update:modelValue"],
|
|
125
|
+
setup(t, { emit: u }) {
|
|
126
|
+
const e = t;
|
|
127
|
+
q((c) => ({
|
|
128
|
+
"7bd9d47b": t.width,
|
|
129
|
+
"34dc7ddc": t.height
|
|
130
|
+
}));
|
|
131
|
+
const d = _(!1), f = P(() => {
|
|
132
|
+
const c = {
|
|
133
|
+
color: e.boxValueColor,
|
|
134
|
+
"font-family": e.fontFamily,
|
|
135
|
+
height: e.boxWidthAndHeight,
|
|
136
|
+
width: e.boxWidthAndHeight,
|
|
137
|
+
minWidth: e.boxWidthAndHeight,
|
|
138
|
+
"border-radius": e.boxBorderRadius,
|
|
139
|
+
"margin-top": e.boxMarginTop
|
|
140
|
+
};
|
|
141
|
+
return d.value ? (c["background-color"] = e.boxBackgroundColor, c.border = `solid ${e.boxBorderWidth} ${e.boxBackgroundColor}`) : c.border = `solid ${e.boxBorderWidth} ${e.boxBorderColor}`, c;
|
|
142
|
+
}), r = P(() => ({
|
|
143
|
+
"font-family": e.boxValueFontFamily,
|
|
144
|
+
"font-size": e.boxValueFontSize,
|
|
145
|
+
color: e.boxValueColor,
|
|
146
|
+
"line-height": 1
|
|
147
|
+
})), m = P(() => {
|
|
148
|
+
const c = {
|
|
149
|
+
color: e.labelColor,
|
|
150
|
+
"font-family": e.fontFamily,
|
|
151
|
+
"font-size": e.labelFontSize,
|
|
152
|
+
"white-space": e.labelWhiteSpace,
|
|
153
|
+
"text-align": e.boxPosition === "top" || e.boxPosition === "bottom" ? "center" : e.boxPosition
|
|
154
|
+
};
|
|
155
|
+
return (e.boxPosition === "left" || e.boxPosition === "right") && (c[`margin-${e.boxPosition}`] = e.isBoxOnly ? "0" : e.teamsIds ? "8px" : "10px"), c;
|
|
156
|
+
});
|
|
157
|
+
T(
|
|
158
|
+
() => e.modelValue,
|
|
159
|
+
(c) => {
|
|
160
|
+
c !== d.value && (d.value = c);
|
|
161
|
+
},
|
|
162
|
+
{ immediate: !0 }
|
|
163
|
+
);
|
|
164
|
+
function w() {
|
|
165
|
+
e.avoidInteraction || !d.value && e.avoidToCheck || (d.value = !d.value, u("update:modelValue", d.value));
|
|
166
|
+
}
|
|
167
|
+
function k(c) {
|
|
168
|
+
return `${{}.TEAM_LOGOS_URL || "https://golstatsimages.blob.core.windows.net/teams-80/"}${c}.png`;
|
|
169
|
+
}
|
|
170
|
+
return (c, O) => (i(), s("div", {
|
|
171
|
+
class: h(["checkbox", `box-${t.boxPosition}`]),
|
|
172
|
+
onClick: w
|
|
173
|
+
}, [
|
|
174
|
+
l("div", {
|
|
175
|
+
class: "checkbox__box",
|
|
176
|
+
style: C(f.value)
|
|
177
|
+
}, [
|
|
178
|
+
d.value ? (i(), s(B, { key: 0 }, [
|
|
179
|
+
e.boxValue ? (i(), s("div", {
|
|
180
|
+
key: 0,
|
|
181
|
+
class: "checkbox__box__value",
|
|
182
|
+
style: C(r.value)
|
|
183
|
+
}, n(t.boxValue), 5)) : (i(), s("div", et, [
|
|
184
|
+
(i(), s("svg", ot, [
|
|
185
|
+
l("path", {
|
|
186
|
+
d: "M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",
|
|
187
|
+
fill: t.boxValueColor
|
|
188
|
+
}, null, 8, lt)
|
|
189
|
+
]))
|
|
190
|
+
]))
|
|
191
|
+
], 64)) : S("", !0)
|
|
192
|
+
], 4),
|
|
193
|
+
t.teamsIds && t.teamsIds.length ? (i(), s("div", it, [
|
|
194
|
+
l("div", st, [
|
|
195
|
+
l("img", {
|
|
196
|
+
src: k(t.teamsIds[0]),
|
|
197
|
+
alt: ""
|
|
198
|
+
}, null, 8, at)
|
|
199
|
+
]),
|
|
200
|
+
l("div", nt, [
|
|
201
|
+
l("img", {
|
|
202
|
+
src: k(t.teamsIds[1]),
|
|
203
|
+
alt: ""
|
|
204
|
+
}, null, 8, dt)
|
|
205
|
+
])
|
|
206
|
+
])) : S("", !0),
|
|
207
|
+
l("div", {
|
|
208
|
+
class: "checkbox__label",
|
|
209
|
+
style: C(m.value)
|
|
210
|
+
}, n(t.label), 5)
|
|
211
|
+
], 2));
|
|
212
|
+
}
|
|
213
|
+
}, ct = /* @__PURE__ */ tt(rt, [["__scopeId", "data-v-b6f124d8"]]), ut = (t, u) => {
|
|
214
|
+
const e = t.__vccOpts || t;
|
|
215
|
+
for (const [d, f] of u)
|
|
216
|
+
e[d] = f;
|
|
217
|
+
return e;
|
|
218
|
+
}, W = {
|
|
219
|
+
props: {
|
|
220
|
+
type: { type: Number, default: 0 },
|
|
221
|
+
value: { type: Boolean, default: !1 },
|
|
222
|
+
textValue: String,
|
|
223
|
+
icon: String,
|
|
224
|
+
iconPosition: { type: String, default: "left" },
|
|
225
|
+
iconSize: String,
|
|
226
|
+
fontColor: { type: String, default: "#FFFFFF" },
|
|
227
|
+
textDecoration: String,
|
|
228
|
+
fontSize: { type: String, default: "16px" },
|
|
229
|
+
fontSizeStat: { type: String, default: "16px" },
|
|
230
|
+
fontStyle: String,
|
|
231
|
+
fontFamily: { type: String, default: "Poppins-Regular" },
|
|
232
|
+
height: { type: String, default: "fit-content" },
|
|
233
|
+
width: { type: String, default: "fit-content" },
|
|
234
|
+
borderRadius: { type: String, default: "0px" },
|
|
235
|
+
borderType: { type: String, default: "solid" },
|
|
236
|
+
borderWidth: { type: Number, default: 0 },
|
|
237
|
+
borderWidthBtn: { type: String, default: "2px" },
|
|
238
|
+
borderColor: String,
|
|
239
|
+
backgroundColor: { type: String, default: "none" },
|
|
240
|
+
activeBackgroundColor: { type: String, default: "#000000" },
|
|
241
|
+
activeBorderWidth: { type: Number, default: 2 },
|
|
242
|
+
activeBorderType: { type: String, default: "solid" },
|
|
243
|
+
activeBorderColor: { type: String, default: "#cbee6b" },
|
|
244
|
+
activeColorText: { type: String, default: "#FFFFFF" },
|
|
245
|
+
cursorType: { type: String, default: "default" },
|
|
246
|
+
typeOnOff: { type: Boolean, default: !1 },
|
|
247
|
+
textCategory: String,
|
|
248
|
+
textStat: String,
|
|
249
|
+
marginLeftStat: { type: String, default: "15%" }
|
|
250
|
+
},
|
|
251
|
+
watch: {
|
|
252
|
+
value: {
|
|
253
|
+
deep: !0,
|
|
254
|
+
immediate: !0,
|
|
255
|
+
handler(t) {
|
|
256
|
+
this.status = t;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
data() {
|
|
261
|
+
return { status: !1 };
|
|
262
|
+
},
|
|
263
|
+
computed: {
|
|
264
|
+
customStyle() {
|
|
265
|
+
return {
|
|
266
|
+
height: this.height,
|
|
267
|
+
width: this.width,
|
|
268
|
+
backgroundColor: this.backgroundColor,
|
|
269
|
+
borderRadius: this.borderRadius,
|
|
270
|
+
border: `${this.borderType} ${this.borderWidth}px ${this.borderColor}`,
|
|
271
|
+
color: this.fontColor,
|
|
272
|
+
textDecoration: this.textDecoration,
|
|
273
|
+
cursor: this.cursorType,
|
|
274
|
+
fontSize: this.fontSize,
|
|
275
|
+
fontStyle: this.fontStyle,
|
|
276
|
+
fontFamily: `${this.fontFamily} !important`
|
|
277
|
+
};
|
|
278
|
+
},
|
|
279
|
+
customActive() {
|
|
280
|
+
return {
|
|
281
|
+
backgroundColor: this.activeBackgroundColor,
|
|
282
|
+
color: this.activeColorText,
|
|
283
|
+
border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
methods: {
|
|
288
|
+
btnClick(t) {
|
|
289
|
+
this.$emit("click", t), this.typeOnOff && (this.status = !this.status, this.$emit("status", this.status));
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}, N = () => {
|
|
293
|
+
q((t) => ({
|
|
294
|
+
"9d01acb4": t.height,
|
|
295
|
+
"14e95081": t.borderWidthBtn,
|
|
296
|
+
"38fec285": t.borderType,
|
|
297
|
+
34353510: t.borderColor,
|
|
298
|
+
"20d20dc6": t.borderRadius,
|
|
299
|
+
17130967: t.width,
|
|
300
|
+
"4ccb7d36": t.backgroundColor,
|
|
301
|
+
"5d1e86a2": t.cursorType,
|
|
302
|
+
ce65d4a2: t.fontSize,
|
|
303
|
+
fe4ac47a: t.fontStyle,
|
|
304
|
+
f98e44dc: t.fontFamily,
|
|
305
|
+
"93b87770": t.marginLeftStat,
|
|
306
|
+
c7f7beba: t.fontSizeStat
|
|
307
|
+
}));
|
|
308
|
+
}, U = W.setup;
|
|
309
|
+
W.setup = U ? (t, u) => (N(), U(t, u)) : N;
|
|
310
|
+
const ft = (t) => (I("data-v-f3ee6b2b"), t = t(), L(), t), pt = ["src"], vt = {
|
|
311
|
+
key: 1,
|
|
312
|
+
class: "text"
|
|
313
|
+
}, ht = ["src"], bt = { class: "stats" }, gt = /* @__PURE__ */ ft(() => /* @__PURE__ */ l("img", {
|
|
314
|
+
class: "iconstats",
|
|
315
|
+
src: "https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"
|
|
316
|
+
}, null, -1)), mt = { class: "numstats" }, _t = { class: "leyend" };
|
|
317
|
+
function yt(t, u, e, d, f, r) {
|
|
318
|
+
return i(), s("div", null, [
|
|
319
|
+
e.type == 0 ? (i(), s("div", {
|
|
320
|
+
key: 0,
|
|
321
|
+
class: h(["button", f.status && e.typeOnOff && "button-active"]),
|
|
322
|
+
style: C([r.customStyle, f.status && e.typeOnOff && r.customActive]),
|
|
323
|
+
onClick: u[0] || (u[0] = (...m) => r.btnClick && r.btnClick(...m))
|
|
324
|
+
}, [
|
|
325
|
+
e.icon && e.iconPosition.toLowerCase() === "left" ? (i(), s("img", {
|
|
326
|
+
key: 0,
|
|
327
|
+
class: "icon",
|
|
328
|
+
style: C({ width: e.iconSize }),
|
|
329
|
+
src: e.icon
|
|
330
|
+
}, null, 12, pt)) : S("", !0),
|
|
331
|
+
e.textValue ? (i(), s("div", vt, n(e.textValue), 1)) : S("", !0),
|
|
332
|
+
e.icon && e.iconPosition.toLowerCase() === "right" ? (i(), s("img", {
|
|
333
|
+
key: 2,
|
|
334
|
+
class: "icon",
|
|
335
|
+
style: C({ width: e.iconSize }),
|
|
336
|
+
src: e.icon
|
|
337
|
+
}, null, 12, ht)) : S("", !0)
|
|
338
|
+
], 6)) : S("", !0),
|
|
339
|
+
e.type == 1 ? (i(), s("div", {
|
|
340
|
+
key: 1,
|
|
341
|
+
class: "button-target",
|
|
342
|
+
onClick: u[1] || (u[1] = (...m) => r.btnClick && r.btnClick(...m))
|
|
343
|
+
}, [
|
|
344
|
+
l("div", bt, [
|
|
345
|
+
gt,
|
|
346
|
+
l("div", mt, n(e.textStat), 1)
|
|
347
|
+
]),
|
|
348
|
+
l("div", _t, n(e.textCategory), 1)
|
|
349
|
+
])) : S("", !0)
|
|
350
|
+
]);
|
|
351
|
+
}
|
|
352
|
+
const E = /* @__PURE__ */ ut(W, [["render", yt], ["__scopeId", "data-v-f3ee6b2b"]]), H = (t, u) => {
|
|
353
|
+
const e = t.__vccOpts || t;
|
|
354
|
+
for (const [d, f] of u)
|
|
355
|
+
e[d] = f;
|
|
356
|
+
return e;
|
|
357
|
+
}, J = (t) => (I("data-v-c362d03a"), t = t(), L(), t), xt = {
|
|
358
|
+
key: 0,
|
|
359
|
+
class: "overlay"
|
|
360
|
+
}, St = /* @__PURE__ */ J(() => /* @__PURE__ */ l("div", { class: "column-title-2" }, null, -1)), wt = ["onClick"], Ct = /* @__PURE__ */ J(() => /* @__PURE__ */ l("path", {
|
|
361
|
+
"fill-rule": "evenodd",
|
|
362
|
+
"clip-rule": "evenodd",
|
|
363
|
+
d: "M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",
|
|
364
|
+
fill: "#D9D9D9"
|
|
365
|
+
}, null, -1)), kt = [
|
|
366
|
+
Ct
|
|
367
|
+
], $t = {
|
|
368
|
+
__name: "ScrollColumns",
|
|
369
|
+
props: {
|
|
370
|
+
availablePlayers: {
|
|
371
|
+
type: Array,
|
|
372
|
+
default: () => []
|
|
373
|
+
},
|
|
374
|
+
isEditMode: {
|
|
375
|
+
type: Boolean,
|
|
376
|
+
default: !1
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
emits: ["expand"],
|
|
380
|
+
setup(t, { expose: u, emit: e }) {
|
|
381
|
+
const d = t, f = _(null), r = _(null), m = _(0), w = P(() => {
|
|
382
|
+
const v = d.availablePlayers[0];
|
|
383
|
+
return v ? v.stats : [];
|
|
384
|
+
}), k = P(() => {
|
|
385
|
+
const v = `repeat(${w.value.length}, max-content) 36px`;
|
|
386
|
+
let y = "";
|
|
387
|
+
return m.value > 0 && document.querySelectorAll(".column-title-2").forEach((x) => {
|
|
388
|
+
y += `${x.offsetWidth}px `;
|
|
389
|
+
}), {
|
|
390
|
+
"--grid-template-columns": v,
|
|
391
|
+
"--grid-template-columns-totals": y || v
|
|
392
|
+
};
|
|
393
|
+
});
|
|
394
|
+
function c() {
|
|
395
|
+
f.value = new ResizeObserver((v) => {
|
|
396
|
+
for (const y of v) {
|
|
397
|
+
const { width: g } = y.contentRect;
|
|
398
|
+
m.value = g;
|
|
399
|
+
}
|
|
400
|
+
}), f.value.observe(r.value);
|
|
401
|
+
}
|
|
402
|
+
function O(v) {
|
|
403
|
+
console.log("onClickExpand", v), e("expand", v);
|
|
404
|
+
}
|
|
405
|
+
function D(v, y) {
|
|
406
|
+
const x = document.querySelectorAll(".scrollable-row-totals")[v + 1];
|
|
407
|
+
x && (x.style.marginTop = `${y}px`);
|
|
408
|
+
}
|
|
409
|
+
return G(() => {
|
|
410
|
+
c();
|
|
411
|
+
}), u({
|
|
412
|
+
setMarginTopDetails: D
|
|
413
|
+
}), (v, y) => (i(), s("div", {
|
|
414
|
+
class: "scroll-columns",
|
|
415
|
+
style: C(k.value)
|
|
416
|
+
}, [
|
|
417
|
+
t.isEditMode ? (i(), s("div", xt)) : S("", !0),
|
|
418
|
+
l("div", {
|
|
419
|
+
ref_key: "titlesRow",
|
|
420
|
+
ref: r,
|
|
421
|
+
class: "scrollable-row-2"
|
|
422
|
+
}, [
|
|
423
|
+
(i(!0), s(B, null, V(w.value, (g) => (i(), s("div", {
|
|
424
|
+
key: `t-${g.category_id}`,
|
|
425
|
+
class: "column-title-2"
|
|
426
|
+
}, n(g.name), 1))), 128)),
|
|
427
|
+
St
|
|
428
|
+
], 512),
|
|
429
|
+
(i(!0), s(B, null, V(t.availablePlayers, (g, x) => (i(), s("div", {
|
|
430
|
+
key: `i-${g.id}`,
|
|
431
|
+
class: "row scrollable-row-totals"
|
|
432
|
+
}, [
|
|
433
|
+
(i(!0), s(B, null, V(g.stats, ($) => (i(), s("div", {
|
|
434
|
+
key: $.category_id,
|
|
435
|
+
class: h(["row data-info underline", { odd: x % 2 !== 0 }])
|
|
436
|
+
}, n($.total), 3))), 128)),
|
|
437
|
+
l("div", {
|
|
438
|
+
class: h(["row data-info", { odd: x % 2 !== 0 }])
|
|
439
|
+
}, [
|
|
440
|
+
(i(), s("svg", {
|
|
441
|
+
onClick: ($) => O(g),
|
|
442
|
+
class: "_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",
|
|
443
|
+
width: "12",
|
|
444
|
+
height: "8",
|
|
445
|
+
viewBox: "0 0 12 8",
|
|
446
|
+
fill: "#D9D9D9",
|
|
447
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
448
|
+
}, kt, 8, wt))
|
|
449
|
+
], 2)
|
|
450
|
+
]))), 128))
|
|
451
|
+
], 4));
|
|
452
|
+
}
|
|
453
|
+
}, Bt = /* @__PURE__ */ H($t, [["__scopeId", "data-v-c362d03a"]]), Z = (t) => (I("data-v-f240471a"), t = t(), L(), t), Ot = { class: "table__static-column" }, zt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("div", { class: "static-title column-title" }, null, -1)), Pt = { class: "container" }, Rt = { class: "details-row__info" }, Ft = { class: "details-row__info__personal" }, Vt = { class: "bold" }, Et = { class: "bold" }, Tt = { class: "bold" }, Dt = { class: "bold" }, It = { class: "details-row__info__games" }, Lt = { class: "bold" }, Wt = { class: "bold" }, At = { class: "details-row__buttons" }, Mt = { class: "position" }, Nt = { class: "player-photo" }, Ut = ["src"], qt = { class: "player-name" }, Gt = { class: "table__scrollable-columns" }, Ht = /* @__PURE__ */ Y('<div class="titles scrollable-row" data-v-f240471a><div class="column-title" data-v-f240471a>Equipo</div><div class="column-title" data-v-f240471a>Posición</div><div class="column-title" data-v-f240471a>Edad</div><div class="column-title" data-v-f240471a>País</div><div class="column-title" data-v-f240471a>Partidos Jugados</div><div class="column-title" data-v-f240471a>Minutos Jugados</div><div class="column-title" data-v-f240471a>Liga</div><div class="column-title" data-v-f240471a>Videos</div><div class="column-title" data-v-f240471a></div></div>', 1), Jt = { class: "team-logo" }, Zt = ["src"], jt = { class: "team-name data-info" }, Kt = ["src"], Qt = ["onClick"], Xt = /* @__PURE__ */ Z(() => /* @__PURE__ */ l("path", {
|
|
454
|
+
"fill-rule": "evenodd",
|
|
455
|
+
"clip-rule": "evenodd",
|
|
456
|
+
d: "M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",
|
|
457
|
+
fill: "#D9D9D9"
|
|
458
|
+
}, null, -1)), Yt = [
|
|
459
|
+
Xt
|
|
460
|
+
], te = {
|
|
461
|
+
__name: "GSC-TableScrollable",
|
|
462
|
+
props: {
|
|
463
|
+
players: {
|
|
464
|
+
type: Array,
|
|
465
|
+
default: () => []
|
|
466
|
+
},
|
|
467
|
+
isGeneral: {
|
|
468
|
+
type: Boolean,
|
|
469
|
+
default: !0
|
|
470
|
+
},
|
|
471
|
+
isEditMode: {
|
|
472
|
+
type: Boolean,
|
|
473
|
+
default: !1
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
emits: ["change-selected-players"],
|
|
477
|
+
setup(t, { emit: u }) {
|
|
478
|
+
const e = t;
|
|
479
|
+
let d = null, f = null;
|
|
480
|
+
const r = _([]), m = _(null), w = _(null), k = _(0), c = _(0), O = _(-1), D = P(() => ({
|
|
481
|
+
"--width-details": `${k.value}px`
|
|
482
|
+
}));
|
|
483
|
+
T(
|
|
484
|
+
() => e.players,
|
|
485
|
+
(a) => {
|
|
486
|
+
a && a.length && (r.value = a.map((b, o) => {
|
|
487
|
+
const p = o + 1;
|
|
488
|
+
return console.log("isOdd", o % 2 !== 0), {
|
|
489
|
+
...b,
|
|
490
|
+
position: p < 10 ? `0${p}` : `${p}`,
|
|
491
|
+
isSelected: !1,
|
|
492
|
+
isExpanded: !1,
|
|
493
|
+
isOdd: o % 2 !== 0,
|
|
494
|
+
index: o
|
|
495
|
+
};
|
|
496
|
+
}));
|
|
497
|
+
},
|
|
498
|
+
{ immediate: !0 }
|
|
499
|
+
), T(
|
|
500
|
+
() => e.isEditMode,
|
|
501
|
+
(a) => {
|
|
502
|
+
a && r.value.forEach((b) => {
|
|
503
|
+
b.isSelected = !1;
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
), T(
|
|
507
|
+
c,
|
|
508
|
+
(a) => {
|
|
509
|
+
const o = document.querySelectorAll(".static-row")[O.value + 1];
|
|
510
|
+
o && (o.style.marginTop = `${a}px`), w.value && w.value.setMarginTopDetails(O.value, a), console.log("detailsHeight", a);
|
|
511
|
+
}
|
|
512
|
+
);
|
|
513
|
+
function v(a) {
|
|
514
|
+
console.log("onClickVideos", a);
|
|
515
|
+
}
|
|
516
|
+
function y() {
|
|
517
|
+
d = new ResizeObserver((a) => {
|
|
518
|
+
for (const b of a)
|
|
519
|
+
k.value = b.contentRect.width;
|
|
520
|
+
}), d.observe(m.value);
|
|
521
|
+
}
|
|
522
|
+
function g(a) {
|
|
523
|
+
f = new ResizeObserver((b) => {
|
|
524
|
+
for (const o of b)
|
|
525
|
+
c.value = o.contentRect.height;
|
|
526
|
+
}), f.observe(a);
|
|
527
|
+
}
|
|
528
|
+
function x(a, b) {
|
|
529
|
+
b.isSelected = a;
|
|
530
|
+
const o = r.value.filter((p) => p.isSelected);
|
|
531
|
+
console.log("selectedPlayers", o), u("change-selected-players", o);
|
|
532
|
+
}
|
|
533
|
+
function $(a) {
|
|
534
|
+
console.log("onCilckViewProfile", a);
|
|
535
|
+
}
|
|
536
|
+
function A(a) {
|
|
537
|
+
const b = a.isExpanded;
|
|
538
|
+
if (r.value.forEach((o) => {
|
|
539
|
+
o.isExpanded = !1;
|
|
540
|
+
}), !b) {
|
|
541
|
+
const o = document.querySelectorAll(".details-row");
|
|
542
|
+
console.log("detailsRows", o);
|
|
543
|
+
const p = o[a.index];
|
|
544
|
+
console.log("playerDetailRow", p), O.value = a.index, p && g(p);
|
|
545
|
+
}
|
|
546
|
+
a.isExpanded = !b;
|
|
547
|
+
}
|
|
548
|
+
return G(() => {
|
|
549
|
+
y();
|
|
550
|
+
}), (a, b) => (i(), s("div", {
|
|
551
|
+
class: "table",
|
|
552
|
+
ref_key: "tableSC",
|
|
553
|
+
ref: m,
|
|
554
|
+
style: C(D.value)
|
|
555
|
+
}, [
|
|
556
|
+
l("div", Ot, [
|
|
557
|
+
zt,
|
|
558
|
+
(i(!0), s(B, null, V(r.value, (o) => (i(), s("div", {
|
|
559
|
+
key: `s-${o.id}`,
|
|
560
|
+
class: h(["row static-row", { odd: o.isOdd }])
|
|
561
|
+
}, [
|
|
562
|
+
R(j, null, {
|
|
563
|
+
default: K(() => [
|
|
564
|
+
Q(l("div", {
|
|
565
|
+
class: h(["details-row", { odd: o.isOdd }])
|
|
566
|
+
}, [
|
|
567
|
+
l("div", Pt, [
|
|
568
|
+
l("div", Rt, [
|
|
569
|
+
l("div", Ft, [
|
|
570
|
+
l("div", null, [
|
|
571
|
+
z("Equipo: "),
|
|
572
|
+
l("span", Vt, n(o.team_name), 1)
|
|
573
|
+
]),
|
|
574
|
+
l("div", null, [
|
|
575
|
+
z("Edad: "),
|
|
576
|
+
l("span", Et, n(o.player_age) + " Años", 1)
|
|
577
|
+
]),
|
|
578
|
+
l("div", null, [
|
|
579
|
+
z("Nacionalidad: "),
|
|
580
|
+
l("span", Tt, n(o.player_country), 1)
|
|
581
|
+
]),
|
|
582
|
+
l("div", null, [
|
|
583
|
+
z("Posición: "),
|
|
584
|
+
l("span", Dt, n(o.position_name), 1)
|
|
585
|
+
])
|
|
586
|
+
]),
|
|
587
|
+
l("div", It, [
|
|
588
|
+
l("div", null, [
|
|
589
|
+
z("Partidos Jugados: "),
|
|
590
|
+
l("span", Lt, n(o.player_games), 1)
|
|
591
|
+
]),
|
|
592
|
+
l("div", null, [
|
|
593
|
+
z("Minutos Jugados: "),
|
|
594
|
+
l("span", Wt, n(o.player_min), 1)
|
|
595
|
+
])
|
|
596
|
+
])
|
|
597
|
+
]),
|
|
598
|
+
l("div", At, [
|
|
599
|
+
R(F(E), {
|
|
600
|
+
icon: "",
|
|
601
|
+
width: "88px",
|
|
602
|
+
height: "30px",
|
|
603
|
+
"border-radius": "30px",
|
|
604
|
+
"border-width": 1,
|
|
605
|
+
"background-color": "#ffffff1a",
|
|
606
|
+
"font-family": "Poppins-Semibold",
|
|
607
|
+
"border-color": "gray",
|
|
608
|
+
"text-value": "Ver gráfica",
|
|
609
|
+
"font-size": "10px",
|
|
610
|
+
onClick: (p) => $(o)
|
|
611
|
+
}, null, 8, ["onClick"]),
|
|
612
|
+
R(F(E), {
|
|
613
|
+
icon: "",
|
|
614
|
+
width: "88px",
|
|
615
|
+
height: "30px",
|
|
616
|
+
"border-radius": "30px",
|
|
617
|
+
"border-width": 1,
|
|
618
|
+
"background-color": "#ffffff1a",
|
|
619
|
+
"font-family": "Poppins-Semibold",
|
|
620
|
+
"border-color": "gray",
|
|
621
|
+
"text-value": "Agregar a lista",
|
|
622
|
+
"font-size": "10px",
|
|
623
|
+
onClick: (p) => $(o)
|
|
624
|
+
}, null, 8, ["onClick"]),
|
|
625
|
+
R(F(E), {
|
|
626
|
+
width: "88px",
|
|
627
|
+
height: "30px",
|
|
628
|
+
"border-radius": "30px",
|
|
629
|
+
"border-width": 1,
|
|
630
|
+
"background-color": "#ffffff1a",
|
|
631
|
+
"font-family": "Poppins-Semibold",
|
|
632
|
+
"border-color": "#cbee6b",
|
|
633
|
+
"text-value": "Ver perfil",
|
|
634
|
+
"font-size": "10px",
|
|
635
|
+
onClick: (p) => $(o)
|
|
636
|
+
}, null, 8, ["onClick"])
|
|
637
|
+
])
|
|
638
|
+
])
|
|
639
|
+
], 2), [
|
|
640
|
+
[X, o.isExpanded]
|
|
641
|
+
])
|
|
642
|
+
]),
|
|
643
|
+
_: 2
|
|
644
|
+
}, 1024),
|
|
645
|
+
t.isEditMode ? (i(), M(F(ct), {
|
|
646
|
+
key: 0,
|
|
647
|
+
fontFamily: "Poppins-Regular",
|
|
648
|
+
labelFontSize: "14px",
|
|
649
|
+
"model-value": o.isSelected,
|
|
650
|
+
"onUpdate:modelValue": (p) => x(p, o)
|
|
651
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])) : S("", !0),
|
|
652
|
+
l("div", Mt, n(o.position), 1),
|
|
653
|
+
l("div", Nt, [
|
|
654
|
+
l("img", {
|
|
655
|
+
src: o.player_photo,
|
|
656
|
+
alt: "player photo"
|
|
657
|
+
}, null, 8, Ut)
|
|
658
|
+
]),
|
|
659
|
+
l("div", qt, n(o.player_name), 1)
|
|
660
|
+
], 2))), 128))
|
|
661
|
+
]),
|
|
662
|
+
l("div", Gt, [
|
|
663
|
+
t.isGeneral ? (i(), s(B, { key: 0 }, [
|
|
664
|
+
Ht,
|
|
665
|
+
(i(!0), s(B, null, V(r.value, (o) => (i(), s("div", {
|
|
666
|
+
key: `i-${o.id}`,
|
|
667
|
+
class: "row scrollable-row"
|
|
668
|
+
}, [
|
|
669
|
+
l("div", {
|
|
670
|
+
class: h(["row team-info", { odd: o.isOdd }])
|
|
671
|
+
}, [
|
|
672
|
+
l("div", Jt, [
|
|
673
|
+
l("img", {
|
|
674
|
+
src: o.team_logo,
|
|
675
|
+
alt: "team logo"
|
|
676
|
+
}, null, 8, Zt)
|
|
677
|
+
]),
|
|
678
|
+
l("div", jt, n(o.team_abrev), 1)
|
|
679
|
+
], 2),
|
|
680
|
+
l("div", {
|
|
681
|
+
class: h(["row data-info", { odd: o.isOdd }])
|
|
682
|
+
}, n(o.player_position), 3),
|
|
683
|
+
l("div", {
|
|
684
|
+
class: h(["row data-info", { odd: o.isOdd }])
|
|
685
|
+
}, n(o.player_age), 3),
|
|
686
|
+
l("div", {
|
|
687
|
+
class: h(["row data-info", { odd: o.isOdd }])
|
|
688
|
+
}, [
|
|
689
|
+
l("img", {
|
|
690
|
+
src: o.player_country_flag,
|
|
691
|
+
alt: "player country flag",
|
|
692
|
+
class: "country-flag"
|
|
693
|
+
}, null, 8, Kt)
|
|
694
|
+
], 2),
|
|
695
|
+
l("div", {
|
|
696
|
+
class: h(["row data-info", { odd: o.isOdd }])
|
|
697
|
+
}, n(o.player_games), 3),
|
|
698
|
+
l("div", {
|
|
699
|
+
class: h(["row data-info", { odd: o.isOdd }])
|
|
700
|
+
}, n(o.player_min), 3),
|
|
701
|
+
l("div", {
|
|
702
|
+
class: h(["row data-info", { odd: o.isOdd }])
|
|
703
|
+
}, n(o.league_name), 3),
|
|
704
|
+
l("div", {
|
|
705
|
+
class: h(["row data-info", { odd: o.isOdd }])
|
|
706
|
+
}, [
|
|
707
|
+
R(F(E), {
|
|
708
|
+
icon: "https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png",
|
|
709
|
+
"icon-size": "13px",
|
|
710
|
+
"icon-position": "left",
|
|
711
|
+
width: "98px",
|
|
712
|
+
height: "30px",
|
|
713
|
+
"border-radius": "30px",
|
|
714
|
+
"border-width": "1",
|
|
715
|
+
"background-color": "#ffffff1a",
|
|
716
|
+
"font-family": "Poppins-Regular",
|
|
717
|
+
"border-color": "#55636e",
|
|
718
|
+
"text-value": "Ver videos",
|
|
719
|
+
"font-size": "10px",
|
|
720
|
+
onClick: (p) => v(o)
|
|
721
|
+
}, null, 8, ["onClick"])
|
|
722
|
+
], 2),
|
|
723
|
+
l("div", {
|
|
724
|
+
class: h(["row data-info", { odd: o.isOdd }])
|
|
725
|
+
}, [
|
|
726
|
+
(i(), s("svg", {
|
|
727
|
+
onClick: (p) => A(o),
|
|
728
|
+
class: "_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",
|
|
729
|
+
width: "12",
|
|
730
|
+
height: "8",
|
|
731
|
+
viewBox: "0 0 12 8",
|
|
732
|
+
fill: "#D9D9D9",
|
|
733
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
734
|
+
}, Yt, 8, Qt))
|
|
735
|
+
], 2)
|
|
736
|
+
]))), 128))
|
|
737
|
+
], 64)) : (i(), M(Bt, {
|
|
738
|
+
key: 1,
|
|
739
|
+
ref_key: "scrollColumns",
|
|
740
|
+
ref: w,
|
|
741
|
+
"available-players": r.value,
|
|
742
|
+
"is-edit-mode": t.isEditMode,
|
|
743
|
+
onExpand: A
|
|
744
|
+
}, null, 8, ["available-players", "is-edit-mode"]))
|
|
745
|
+
])
|
|
746
|
+
], 4));
|
|
747
|
+
}
|
|
748
|
+
}, oe = /* @__PURE__ */ H(te, [["__scopeId", "data-v-f240471a"]]);
|
|
749
|
+
export {
|
|
750
|
+
oe as GSCTableScrollable
|
|
751
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_.GSCTableScrollable={},_.Vue))})(this,function(_,e){"use strict";const D=(t,r)=>{const o=t.__vccOpts||t;for(const[n,d]of r)o[n]=d;return o},T={key:1},F={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},O=["fill"],P={key:0,class:"checkbox__teams"},R={class:"checkbox__teams__logo"},I=["src"],L={class:"checkbox__teams__logo"},W=["src"],M={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(t){return["left","right","top","bottom"].includes(t)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(t,{emit:r}){const o=t;e.useCssVars(s=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const n=e.ref(!1),d=e.computed(()=>{const s={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return n.value?(s["background-color"]=o.boxBackgroundColor,s.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):s.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,s}),i=e.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),g=e.computed(()=>{const s={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(s[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),s});e.watch(()=>o.modelValue,s=>{s!==n.value&&(n.value=s)},{immediate:!0});function y(){o.avoidInteraction||!n.value&&o.avoidToCheck||(n.value=!n.value,r("update:modelValue",n.value))}function S(s){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${s}.png`}return(s,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:y},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(d.value)},[n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(i.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(),e.createElementBlock("svg",F,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:t.boxValueColor},null,8,O)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",P,[e.createElementVNode("div",R,[e.createElementVNode("img",{src:S(t.teamsIds[0]),alt:""},null,8,I)]),e.createElementVNode("div",L,[e.createElementVNode("img",{src:S(t.teamsIds[1]),alt:""},null,8,W)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(g.value)},e.toDisplayString(t.label),5)],2))}},A=D(M,[["__scopeId","data-v-b6f124d8"]]),G=(t,r)=>{const o=t.__vccOpts||t;for(const[n,d]of r)o[n]=d;return o},C={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},w=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},V=C.setup;C.setup=V?(t,r)=>(w(),V(t,r)):w;const q=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),U=["src"],H={key:1,class:"text"},J=["src"],j={class:"stats"},Z=q(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),K={class:"numstats"},Q={class:"leyend"};function X(t,r,o,n,d,i){return e.openBlock(),e.createElementBlock("div",null,[o.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",d.status&&o.typeOnOff&&"button-active"]),style:e.normalizeStyle([i.customStyle,d.status&&o.typeOnOff&&i.customActive]),onClick:r[0]||(r[0]=(...g)=>i.btnClick&&i.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,U)):e.createCommentVNode("",!0),o.textValue?(e.openBlock(),e.createElementBlock("div",H,e.toDisplayString(o.textValue),1)):e.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,J)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),o.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>i.btnClick&&i.btnClick(...g))},[e.createElementVNode("div",j,[Z,e.createElementVNode("div",K,e.toDisplayString(o.textStat),1)]),e.createElementVNode("div",Q,e.toDisplayString(o.textCategory),1)])):e.createCommentVNode("",!0)])}const u=G(C,[["render",X],["__scopeId","data-v-f3ee6b2b"]]),B=(t,r)=>{const o=t.__vccOpts||t;for(const[n,d]of r)o[n]=d;return o},N=t=>(e.pushScopeId("data-v-c362d03a"),t=t(),e.popScopeId(),t),Y={key:0,class:"overlay"},v=N(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),ee=["onClick"],te=[N(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1))],oe=B({__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand"],setup(t,{expose:r,emit:o}){const n=t,d=e.ref(null),i=e.ref(null),g=e.ref(0),y=e.computed(()=>{const m=n.availablePlayers[0];return m?m.stats:[]}),S=e.computed(()=>{const m=`repeat(${y.value.length}, max-content) 36px`;let h="";return g.value>0&&document.querySelectorAll(".column-title-2").forEach(b=>{h+=`${b.offsetWidth}px `}),{"--grid-template-columns":m,"--grid-template-columns-totals":h||m}});function s(){d.value=new ResizeObserver(m=>{for(const h of m){const{width:p}=h.contentRect;g.value=p}}),d.value.observe(i.value)}function k(m){console.log("onClickExpand",m),o("expand",m)}function E(m,h){const b=document.querySelectorAll(".scrollable-row-totals")[m+1];b&&(b.style.marginTop=`${h}px`)}return e.onMounted(()=>{s()}),r({setMarginTopDetails:E}),(m,h)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(S.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",Y)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:i,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,p=>(e.openBlock(),e.createElementBlock("div",{key:`t-${p.category_id}`,class:"column-title-2"},e.toDisplayString(p.name),1))),128)),v],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(p,b)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${p.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.stats,x=>(e.openBlock(),e.createElementBlock("div",{key:x.category_id,class:e.normalizeClass(["row data-info underline",{odd:b%2!==0}])},e.toDisplayString(x.total),3))),128)),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:b%2!==0}])},[(e.openBlock(),e.createElementBlock("svg",{onClick:x=>k(p),class:"_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg"},te,8,ee))],2)]))),128))],4))}},[["__scopeId","data-v-c362d03a"]]),z=t=>(e.pushScopeId("data-v-f240471a"),t=t(),e.popScopeId(),t),le={class:"table__static-column"},ae=z(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),ne={class:"container"},ie={class:"details-row__info"},se={class:"details-row__info__personal"},re={class:"bold"},de={class:"bold"},ce={class:"bold"},me={class:"bold"},fe={class:"details-row__info__games"},pe={class:"bold"},ge={class:"bold"},he={class:"details-row__buttons"},be={class:"position"},ye={class:"player-photo"},_e=["src"],Se={class:"player-name"},xe={class:"table__scrollable-columns"},ke=e.createStaticVNode('<div class="titles scrollable-row" data-v-f240471a><div class="column-title" data-v-f240471a>Equipo</div><div class="column-title" data-v-f240471a>Posición</div><div class="column-title" data-v-f240471a>Edad</div><div class="column-title" data-v-f240471a>País</div><div class="column-title" data-v-f240471a>Partidos Jugados</div><div class="column-title" data-v-f240471a>Minutos Jugados</div><div class="column-title" data-v-f240471a>Liga</div><div class="column-title" data-v-f240471a>Videos</div><div class="column-title" data-v-f240471a></div></div>',1),ue={class:"team-logo"},Ce=["src"],Ee={class:"team-name data-info"},we=["src"],Ve=["onClick"],Be=[z(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1))],Ne=B({__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1}},emits:["change-selected-players"],setup(t,{emit:r}){const o=t;let n=null,d=null;const i=e.ref([]),g=e.ref(null),y=e.ref(null),S=e.ref(0),s=e.ref(0),k=e.ref(-1),E=e.computed(()=>({"--width-details":`${S.value}px`}));e.watch(()=>o.players,a=>{a&&a.length&&(i.value=a.map((f,l)=>{const c=l+1;return console.log("isOdd",l%2!==0),{...f,position:c<10?`0${c}`:`${c}`,isSelected:!1,isExpanded:!1,isOdd:l%2!==0,index:l}}))},{immediate:!0}),e.watch(()=>o.isEditMode,a=>{a&&i.value.forEach(f=>{f.isSelected=!1})}),e.watch(s,a=>{const l=document.querySelectorAll(".static-row")[k.value+1];l&&(l.style.marginTop=`${a}px`),y.value&&y.value.setMarginTopDetails(k.value,a),console.log("detailsHeight",a)});function m(a){console.log("onClickVideos",a)}function h(){n=new ResizeObserver(a=>{for(const f of a)S.value=f.contentRect.width}),n.observe(g.value)}function p(a){d=new ResizeObserver(f=>{for(const l of f)s.value=l.contentRect.height}),d.observe(a)}function b(a,f){f.isSelected=a;const l=i.value.filter(c=>c.isSelected);console.log("selectedPlayers",l),r("change-selected-players",l)}function x(a){console.log("onCilckViewProfile",a)}function $(a){const f=a.isExpanded;if(i.value.forEach(l=>{l.isExpanded=!1}),!f){const l=document.querySelectorAll(".details-row");console.log("detailsRows",l);const c=l[a.index];console.log("playerDetailRow",c),k.value=a.index,c&&p(c)}a.isExpanded=!f}return e.onMounted(()=>{h()}),(a,f)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:g,style:e.normalizeStyle(E.value)},[e.createElementVNode("div",le,[ae,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,l=>(e.openBlock(),e.createElementBlock("div",{key:`s-${l.id}`,class:e.normalizeClass(["row static-row",{odd:l.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:l.isOdd}])},[e.createElementVNode("div",ne,[e.createElementVNode("div",ie,[e.createElementVNode("div",se,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",re,e.toDisplayString(l.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",de,e.toDisplayString(l.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",ce,e.toDisplayString(l.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",me,e.toDisplayString(l.position_name),1)])]),e.createElementVNode("div",fe,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",pe,e.toDisplayString(l.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",ge,e.toDisplayString(l.player_min),1)])])]),e.createElementVNode("div",he,[e.createVNode(e.unref(u),{icon:"",width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"gray","text-value":"Ver gráfica","font-size":"10px",onClick:c=>x(l)},null,8,["onClick"]),e.createVNode(e.unref(u),{icon:"",width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"gray","text-value":"Agregar a lista","font-size":"10px",onClick:c=>x(l)},null,8,["onClick"]),e.createVNode(e.unref(u),{width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:c=>x(l)},null,8,["onClick"])])])],2),[[e.vShow,l.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(A),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":l.isSelected,"onUpdate:modelValue":c=>b(c,l)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",be,e.toDisplayString(l.position),1),e.createElementVNode("div",ye,[e.createElementVNode("img",{src:l.player_photo,alt:"player photo"},null,8,_e)]),e.createElementVNode("div",Se,e.toDisplayString(l.player_name),1)],2))),128))]),e.createElementVNode("div",xe,[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ke,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,l=>(e.openBlock(),e.createElementBlock("div",{key:`i-${l.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:l.isOdd}])},[e.createElementVNode("div",ue,[e.createElementVNode("img",{src:l.team_logo,alt:"team logo"},null,8,Ce)]),e.createElementVNode("div",Ee,e.toDisplayString(l.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:l.isOdd}])},e.toDisplayString(l.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:l.isOdd}])},e.toDisplayString(l.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:l.isOdd}])},[e.createElementVNode("img",{src:l.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,we)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:l.isOdd}])},e.toDisplayString(l.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:l.isOdd}])},e.toDisplayString(l.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:l.isOdd}])},e.toDisplayString(l.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:l.isOdd}])},[e.createVNode(e.unref(u),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"13px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:c=>m(l)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:l.isOdd}])},[(e.openBlock(),e.createElementBlock("svg",{onClick:c=>$(l),class:"_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg"},Be,8,Ve))],2)]))),128))],64)):(e.openBlock(),e.createBlock(oe,{key:1,ref_key:"scrollColumns",ref:y,"available-players":i.value,"is-edit-mode":t.isEditMode,onExpand:$},null,8,["available-players","is-edit-mode"]))])],4))}},[["__scopeId","data-v-f240471a"]]);_.GSCTableScrollable=Ne,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@golstats/gsc-table-scrollable",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/gsc-table-scrollable.umd.cjs",
|
|
9
|
+
"module": "./dist/gsc-table-scrollable.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/gsc-table-scrollable.js",
|
|
13
|
+
"require": "./dist/gsc-table-scrollable.umd.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build": "vite build",
|
|
19
|
+
"preview": "vite preview",
|
|
20
|
+
"format": "prettier --write src/"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@golstats/gsc-button": "^1.0.14",
|
|
24
|
+
"@golstats/gsc-checkbox": "^1.0.13",
|
|
25
|
+
"vue": "3.3.4"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
29
|
+
"prettier": "3.5.3",
|
|
30
|
+
"sass-embedded": "^1.85.1",
|
|
31
|
+
"sass-loader": "^13.3.2",
|
|
32
|
+
"vite": "^6.2.1",
|
|
33
|
+
"vite-plugin-vue-devtools": "^7.7.2"
|
|
34
|
+
}
|
|
35
|
+
}
|