@golstats/gsc-relevant-data 1.0.34 → 1.0.36
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 +2 -2
- package/dist/{CardBase-DJPEW7xu-DvigOSsN.js → CardBase-DJPEW7xu-DFswbthr.js} +18 -18
- package/dist/{CardBaseAllIndividual-CJY0KdrJ-D3GoC5YQ.js → CardBaseAllIndividual-CJY0KdrJ-BRcPgyV4.js} +7 -7
- package/dist/{CardGeneral-CDS08xVv-ZCgeOXT9.js → CardGeneral-CDS08xVv-BgnA3Nqg.js} +27 -27
- package/dist/{CardGeneralIndividual-DoXvg6Ch-Q1vOwbqe.js → CardGeneralIndividual-DoXvg6Ch-eBpVDecK.js} +54 -54
- package/dist/{CardGeneralTeams-FYzVxcB3-CxxTwq-e.js → CardGeneralTeams-FYzVxcB3-CHWAYyay.js} +76 -76
- package/dist/{CardIndividual-u8FZLLmq-MD9cTt86.js → CardIndividual-u8FZLLmq-DuFjQsrV.js} +29 -29
- package/dist/{CardIndividual1vs1-C13lA1gg-VkxfTHCY.js → CardIndividual1vs1-C13lA1gg-C5vylB-t.js} +12 -12
- package/dist/{CardIndividualAreas-D13F6fry-DGMuzBOv.js → CardIndividualAreas-D13F6fry-CUkq5F0C.js} +5 -5
- package/dist/{CardIndividualCenters-If_CjK9--CF3f_V-A.js → CardIndividualCenters-If_CjK9--4jFKc24c.js} +14 -14
- package/dist/{CardIndividualDistance-DtT14cRG-CqMixyll.js → CardIndividualDistance-DtT14cRG-Lh0aEPvU.js} +5 -5
- package/dist/{CardIndividualFouls-Bsm2M4Gv-Ch5n8GIs.js → CardIndividualFouls-Bsm2M4Gv-CSTot1dR.js} +13 -13
- package/dist/{CardIndividualGoalParticipation-DxJDrw64-DAooJtOi.js → CardIndividualGoalParticipation-DxJDrw64-lUjbFdg3.js} +18 -18
- package/dist/{CardIndividualGoals-tVv3jx9v-BQN3CZ2w.js → CardIndividualGoals-tVv3jx9v-DzfCbxNU.js} +2 -2
- package/dist/{CardIndividualGold-B3awfrVU-BuDP2fNh.js → CardIndividualGold-B3awfrVU-nvDEJPSL.js} +24 -24
- package/dist/{CardIndividualNoGoalReceived-plZw_S4K-CXu3Np6y.js → CardIndividualNoGoalReceived-plZw_S4K-DP6E8Lv3.js} +23 -23
- package/dist/{CardIndividualPerformance-pONmvZ---hq8Jz-PA.js → CardIndividualPerformance-pONmvZ---pZ_SEqXY.js} +30 -30
- package/dist/{CardIndividualSaves-7NZaLckt-BuJkgBsg.js → CardIndividualSaves-7NZaLckt-DSJly5Ac.js} +11 -11
- package/dist/{CardIndividualShotsOnGoal-BA2B5zK2-BZsEQQ61.js → CardIndividualShotsOnGoal-BA2B5zK2-C0xylOqe.js} +26 -26
- package/dist/{CardIndividualStatistics-BdNBubd3-BlcbtVI2.js → CardIndividualStatistics-BdNBubd3-XyMTECyd.js} +7 -7
- package/dist/CardPromTournament-IvcxYf42-ByVlA4aI.js +145 -0
- package/dist/{CardSuccessfulPasses-CvGqK_hf-PI8YbzyZ.js → CardSuccessfulPasses-CvGqK_hf-Ce6ANYMW.js} +7 -7
- package/dist/CardTheMostProductive-Crx3j88e-CLSNsiUj.js +87 -0
- package/dist/{PlayerProfileCircle-BQwTCjvG-m9kGWHFb.js → PlayerProfileCircle-BQwTCjvG-0nC4rraP.js} +1 -1
- package/dist/{Shield-aiuYwUJa-sBSEvsAv.js → Shield-aiuYwUJa-Y41Gamiw.js} +1 -1
- package/dist/css/fonts.css +127 -127
- package/dist/gsc-relevant-data.css +1 -1
- package/dist/gsc-relevant-data.js +1 -1
- package/dist/gsc-relevant-data.umd.cjs +6 -6
- package/dist/{index-EJts-ABe.js → index-5u57JwXd.js} +1879 -1811
- package/package.json +43 -43
- package/dist/CardPromTournament-IvcxYf42-CVgWxA2S.js +0 -145
- package/dist/CardTheMostProductive-Crx3j88e-BGxgikpm.js +0 -87
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@golstats/gsc-relevant-data",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist"
|
|
7
|
-
],
|
|
8
|
-
"main": "./dist/gsc-relevant-data.umd.cjs",
|
|
9
|
-
"module": "./dist/gsc-relevant-data.js",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": "./dist/gsc-relevant-data.js",
|
|
13
|
-
"require": "./dist/gsc-relevant-data.umd.cjs"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"dev": "vite",
|
|
18
|
-
"build": "vite build",
|
|
19
|
-
"preview": "vite preview",
|
|
20
|
-
"lint": "eslint . --fix",
|
|
21
|
-
"format": "prettier --write src/"
|
|
22
|
-
},
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@golstats/gsc-data-cards": "^1.0.29",
|
|
25
|
-
"@golstats/gsc-season-select": "^1.0.
|
|
26
|
-
"@golstats/gsc-slider": "^1.0.5",
|
|
27
|
-
"@golstats/gsc-switch-component": "^1.0.14",
|
|
28
|
-
"@golstats/gsc-tournament-select": "^1.0.
|
|
29
|
-
"axios": "^1.7.9",
|
|
30
|
-
"vue": "3.4.14"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@eslint/js": "^9.14.0",
|
|
34
|
-
"@vitejs/plugin-vue": "^5.2.1",
|
|
35
|
-
"@vue/eslint-config-prettier": "^10.1.0",
|
|
36
|
-
"eslint": "^9.14.0",
|
|
37
|
-
"eslint-plugin-vue": "^9.30.0",
|
|
38
|
-
"prettier": "^3.3.3",
|
|
39
|
-
"sass": "^1.66.1",
|
|
40
|
-
"vite": "^6.0.5",
|
|
41
|
-
"vite-plugin-vue-devtools": "^7.6.8"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@golstats/gsc-relevant-data",
|
|
3
|
+
"version": "1.0.36",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/gsc-relevant-data.umd.cjs",
|
|
9
|
+
"module": "./dist/gsc-relevant-data.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/gsc-relevant-data.js",
|
|
13
|
+
"require": "./dist/gsc-relevant-data.umd.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build": "vite build",
|
|
19
|
+
"preview": "vite preview",
|
|
20
|
+
"lint": "eslint . --fix",
|
|
21
|
+
"format": "prettier --write src/"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@golstats/gsc-data-cards": "^1.0.29",
|
|
25
|
+
"@golstats/gsc-season-select": "^1.0.10",
|
|
26
|
+
"@golstats/gsc-slider": "^1.0.5",
|
|
27
|
+
"@golstats/gsc-switch-component": "^1.0.14",
|
|
28
|
+
"@golstats/gsc-tournament-select": "^1.0.20",
|
|
29
|
+
"axios": "^1.7.9",
|
|
30
|
+
"vue": "3.4.14"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@eslint/js": "^9.14.0",
|
|
34
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
35
|
+
"@vue/eslint-config-prettier": "^10.1.0",
|
|
36
|
+
"eslint": "^9.14.0",
|
|
37
|
+
"eslint-plugin-vue": "^9.30.0",
|
|
38
|
+
"prettier": "^3.3.3",
|
|
39
|
+
"sass": "^1.66.1",
|
|
40
|
+
"vite": "^6.0.5",
|
|
41
|
+
"vite-plugin-vue-devtools": "^7.6.8"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { useCssVars as V, computed as d, ref as B, createElementBlock as m, openBlock as u, normalizeStyle as i, createBlock as A, createCommentVNode as R, mergeProps as S, withCtx as D, createElementVNode as a, toDisplayString as c, createVNode as E, unref as T, Fragment as M, renderList as N, normalizeClass as F } from "vue";
|
|
2
|
-
import { m as z, E as p, z as H, A as L } from "./CardBase-DJPEW7xu-DvigOSsN.js";
|
|
3
|
-
import { N as W } from "./Shield-aiuYwUJa-sBSEvsAv.js";
|
|
4
|
-
const $ = { class: "card-content" }, j = { class: "content-wrapper" }, q = { class: "main-content" }, G = { class: "title-separator" }, J = { class: "footer-text" }, K = ["innerHTML"], Q = { class: "seasons-sidebar" }, U = { class: "seasons-list" }, X = "1px 54px", Y = {
|
|
5
|
-
__name: "CardPromTournament",
|
|
6
|
-
props: {
|
|
7
|
-
height: {
|
|
8
|
-
type: String,
|
|
9
|
-
default: "568px"
|
|
10
|
-
},
|
|
11
|
-
width: {
|
|
12
|
-
type: String,
|
|
13
|
-
default: "319px"
|
|
14
|
-
},
|
|
15
|
-
showVideos: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: !0
|
|
18
|
-
},
|
|
19
|
-
idAux: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: ""
|
|
22
|
-
},
|
|
23
|
-
data: {
|
|
24
|
-
type: Object,
|
|
25
|
-
default: () => null
|
|
26
|
-
},
|
|
27
|
-
descriptionType: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 0
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
setup(r) {
|
|
33
|
-
V((l) => {
|
|
34
|
-
var t;
|
|
35
|
-
return {
|
|
36
|
-
d9678364: r.data.thumbnails.colors.background_color,
|
|
37
|
-
"04caf132": ((t = e.data) == null ? void 0 : t.thumbnails.colors.font_color_stats) || "#4CAF50"
|
|
38
|
-
};
|
|
39
|
-
});
|
|
40
|
-
const e = r, O = d(() => ({
|
|
41
|
-
"--height": e.height,
|
|
42
|
-
"--width": e.width,
|
|
43
|
-
"--footer-background-color": e.data.thumbnails.colors.background_color || "#000000"
|
|
44
|
-
})), P = B({
|
|
45
|
-
width: "50px",
|
|
46
|
-
height: "50px",
|
|
47
|
-
bottom: "34px",
|
|
48
|
-
right: "-8px",
|
|
49
|
-
innerImageWidth: "39px",
|
|
50
|
-
innerImageHeight: "39px"
|
|
51
|
-
}), h = d(() => {
|
|
52
|
-
var l, t, o, n;
|
|
53
|
-
return !e.data || !e.data.thumbnails ? null : {
|
|
54
|
-
backgroundOverlayColor: e.data.thumbnails.colors.background_color || "#000000",
|
|
55
|
-
backgroundImageSrc: (n = (o = (t = (l = e.data) == null ? void 0 : l.thumbnails) == null ? void 0 : t.images) == null ? void 0 : o.background_player_in_action) != null && n[0] ? p(e.data.thumbnails.images.background_player_in_action[0]) : p(e.data.thumbnails.images.background_team),
|
|
56
|
-
isPlayButtonVisible: e.showVideos
|
|
57
|
-
};
|
|
58
|
-
}), g = d(() => {
|
|
59
|
-
var l, t, o;
|
|
60
|
-
if (!((l = e.data) != null && l.title)) return { mainTitle: "", sidebarTitle: "PROMEDIO POR PARTIDO" };
|
|
61
|
-
const n = e.data.title.split("*").filter(Boolean);
|
|
62
|
-
return {
|
|
63
|
-
mainTitle: ((t = n[0]) == null ? void 0 : t.trim()) || "",
|
|
64
|
-
sidebarTitle: ((o = n[1]) == null ? void 0 : o.trim()) || "PROMEDIO POR PARTIDO"
|
|
65
|
-
};
|
|
66
|
-
}), C = d(() => {
|
|
67
|
-
var l;
|
|
68
|
-
return (l = e.data) != null && l.averages ? Math.max(...e.data.averages.map((t) => parseFloat(t.average))) : 0;
|
|
69
|
-
});
|
|
70
|
-
return (l, t) => (u(), m("div", {
|
|
71
|
-
class: "card-general",
|
|
72
|
-
style: i(O.value)
|
|
73
|
-
}, [
|
|
74
|
-
h.value ? (u(), A(H, S({ key: 0 }, h.value, {
|
|
75
|
-
width: r.width,
|
|
76
|
-
"show-videos": r.showVideos,
|
|
77
|
-
"id-aux": r.idAux
|
|
78
|
-
}), {
|
|
79
|
-
default: D(() => {
|
|
80
|
-
var o, n, f, b, v, _, y, w;
|
|
81
|
-
return [
|
|
82
|
-
a("div", $, [
|
|
83
|
-
a("div", j, [
|
|
84
|
-
a("div", q, [
|
|
85
|
-
a("h1", {
|
|
86
|
-
class: "main-title",
|
|
87
|
-
style: i({ color: ((o = e.data) == null ? void 0 : o.thumbnails.colors.font_color_header) || "white" })
|
|
88
|
-
}, c(g.value.mainTitle), 5),
|
|
89
|
-
a("div", G, [
|
|
90
|
-
E(W, {
|
|
91
|
-
"team-logo-src": "https://golstatsimages.blob.core.windows.net/teams-80/" + e.data.team_id + ".png",
|
|
92
|
-
width: 105,
|
|
93
|
-
color: e.data.thumbnails.colors.graphic_color,
|
|
94
|
-
"inner-image-src": (v = (b = (f = (n = e.data) == null ? void 0 : n.thumbnails) == null ? void 0 : f.images) == null ? void 0 : b.background_player_in_action) != null && v[0] ? T(p)(e.data.thumbnails.images.player_in_action[0]) : "https://golstatsimages.blob.core.windows.net/players-profile/" + e.data.player_id + ".png",
|
|
95
|
-
"team-logo-circle-props": P.value,
|
|
96
|
-
"inner-image-translate": X
|
|
97
|
-
}, null, 8, ["team-logo-src", "color", "inner-image-src", "team-logo-circle-props"])
|
|
98
|
-
]),
|
|
99
|
-
a("div", J, [
|
|
100
|
-
a("p", {
|
|
101
|
-
innerHTML: T(L)({ data: e.data, descriptionType: e.descriptionType }).replace(/\*([^*]+)\*/g, "<span style='font-family: Poppins-Bold; font-weight: 700;'>$1</span>"),
|
|
102
|
-
class: "card-description",
|
|
103
|
-
style: i({ color: ((_ = e.data) == null ? void 0 : _.thumbnails.colors.font_color_description) || "white" })
|
|
104
|
-
}, null, 12, K)
|
|
105
|
-
])
|
|
106
|
-
]),
|
|
107
|
-
a("div", Q, [
|
|
108
|
-
a("div", {
|
|
109
|
-
class: "sidebar-header",
|
|
110
|
-
style: i({ color: ((y = e.data) == null ? void 0 : y.thumbnails.colors.font_color_description) || "white" })
|
|
111
|
-
}, c(g.value.sidebarTitle), 5),
|
|
112
|
-
a("div", U, [
|
|
113
|
-
(u(!0), m(M, null, N((w = e.data) == null ? void 0 : w.averages, (s, I) => {
|
|
114
|
-
var x, k;
|
|
115
|
-
return u(), m("div", {
|
|
116
|
-
key: I,
|
|
117
|
-
class: F(["season-row", {
|
|
118
|
-
highlighted: s.highlighted,
|
|
119
|
-
"max-value": parseFloat(s.average) === C.value
|
|
120
|
-
}])
|
|
121
|
-
}, [
|
|
122
|
-
a("div", {
|
|
123
|
-
class: "season-value-box",
|
|
124
|
-
style: i({ color: ((x = e.data) == null ? void 0 : x.thumbnails.colors.font_color_stats) || "white" })
|
|
125
|
-
}, c(s.average), 5),
|
|
126
|
-
a("div", {
|
|
127
|
-
class: "season-label",
|
|
128
|
-
style: i({ color: ((k = e.data) == null ? void 0 : k.thumbnails.colors.font_color_stats) || "white" })
|
|
129
|
-
}, c(s.season), 5)
|
|
130
|
-
], 2);
|
|
131
|
-
}), 128))
|
|
132
|
-
])
|
|
133
|
-
])
|
|
134
|
-
])
|
|
135
|
-
])
|
|
136
|
-
];
|
|
137
|
-
}),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 16, ["width", "show-videos", "id-aux"])) : R("", !0)
|
|
140
|
-
], 4));
|
|
141
|
-
}
|
|
142
|
-
}, te = /* @__PURE__ */ z(Y, [["__scopeId", "data-v-8c746128"]]);
|
|
143
|
-
export {
|
|
144
|
-
te as default
|
|
145
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { computed as s, createElementBlock as _, openBlock as f, createVNode as c, mergeProps as y, withCtx as b, createElementVNode as m, normalizeStyle as v, toDisplayString as F } from "vue";
|
|
2
|
-
import { d as x } from "./CardBaseAllIndividual-CJY0KdrJ-D3GoC5YQ.js";
|
|
3
|
-
import { N as k } from "./Shield-aiuYwUJa-sBSEvsAv.js";
|
|
4
|
-
import { m as w, P as S, E as p, A as C, $ as A, V as B, O as T } from "./CardBase-DJPEW7xu-DvigOSsN.js";
|
|
5
|
-
const V = { class: "productive" }, D = { class: "productive__body__title" }, I = {
|
|
6
|
-
__name: "CardTheMostProductive",
|
|
7
|
-
props: {
|
|
8
|
-
height: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: "445px"
|
|
11
|
-
},
|
|
12
|
-
width: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "319px"
|
|
15
|
-
},
|
|
16
|
-
data: {
|
|
17
|
-
type: Object,
|
|
18
|
-
default: () => null
|
|
19
|
-
},
|
|
20
|
-
descriptionType: {
|
|
21
|
-
type: Number,
|
|
22
|
-
default: 4
|
|
23
|
-
},
|
|
24
|
-
showVideos: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !0
|
|
27
|
-
},
|
|
28
|
-
idAux: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: ""
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
setup(d) {
|
|
34
|
-
const e = d, g = s(() => {
|
|
35
|
-
var t, a, o, l, r, n, u;
|
|
36
|
-
return {
|
|
37
|
-
height: e.height,
|
|
38
|
-
width: e.width,
|
|
39
|
-
footerHeight: "112px",
|
|
40
|
-
cardColor: (e.data.thumbnails.colors.background_color || "#000000").trim(),
|
|
41
|
-
backgroundImageSrc: p((l = (o = (a = (t = e.data) == null ? void 0 : t.thumbnails) == null ? void 0 : a.images) == null ? void 0 : o.background_player_in_action) != null && l[0] ? e.data.thumbnails.images.background_player_in_action[0] : (u = (n = (r = e.data) == null ? void 0 : r.thumbnails) == null ? void 0 : n.images) != null && u.background_team ? e.data.thumbnails.images.background_team : ""),
|
|
42
|
-
footerBodyData: {
|
|
43
|
-
description: S(C({ data: e.data, descriptionType: e.descriptionType })),
|
|
44
|
-
textColor: (e.data.thumbnails.colors.font_color_description || "#FFFFFF").trim()
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}), i = s(() => {
|
|
48
|
-
var t, a, o, l;
|
|
49
|
-
const r = !!((l = (o = (a = (t = e.data) == null ? void 0 : t.thumbnails) == null ? void 0 : a.images) == null ? void 0 : o.player_in_action) != null && l[0]), { title: n, subtitle: u } = A(e.data.title);
|
|
50
|
-
return {
|
|
51
|
-
title: n,
|
|
52
|
-
teamLogoUrl: T(e.data.team_id || ""),
|
|
53
|
-
playerInActionSrc: r ? p(e.data.thumbnails.images.player_in_action[0]) : B(e.data.player_id || ""),
|
|
54
|
-
shieldColor: (e.data.thumbnails.colors.graphic_color || "#5DACFF").trim(),
|
|
55
|
-
translate: r ? "0 8px" : "0 -16px"
|
|
56
|
-
};
|
|
57
|
-
}), h = s(() => ({
|
|
58
|
-
"--title-color": (e.data.thumbnails.colors.font_color_header || "#FFFFFF").trim()
|
|
59
|
-
}));
|
|
60
|
-
return (t, a) => (f(), _("div", V, [
|
|
61
|
-
c(x, y(g.value, {
|
|
62
|
-
"show-videos": d.showVideos,
|
|
63
|
-
"id-aux": d.idAux
|
|
64
|
-
}), {
|
|
65
|
-
body: b(() => [
|
|
66
|
-
m("div", {
|
|
67
|
-
class: "productive__body",
|
|
68
|
-
style: v(h.value)
|
|
69
|
-
}, [
|
|
70
|
-
m("div", D, F(i.value.title), 1),
|
|
71
|
-
c(k, {
|
|
72
|
-
id: e.data.id,
|
|
73
|
-
"team-logo-src": i.value.teamLogoUrl,
|
|
74
|
-
"inner-image-src": i.value.playerInActionSrc,
|
|
75
|
-
color: i.value.shieldColor,
|
|
76
|
-
"inner-image-translate": i.value.translate
|
|
77
|
-
}, null, 8, ["id", "team-logo-src", "inner-image-src", "color", "inner-image-translate"])
|
|
78
|
-
], 4)
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 16, ["show-videos", "id-aux"])
|
|
82
|
-
]));
|
|
83
|
-
}
|
|
84
|
-
}, L = /* @__PURE__ */ w(I, [["__scopeId", "data-v-26719ec7"]]);
|
|
85
|
-
export {
|
|
86
|
-
L as default
|
|
87
|
-
};
|