@mjsz-vbr-elements/core 2.30.1 → 2.31.0
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/dist/{TimezoneSelector-qP6OxXMD.js → TimezoneSelector-T8Y8aFc-.js} +4 -4
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +24 -24
- package/dist/constants.js +1 -1
- package/dist/datetime-bWwGbGlR.js +1395 -0
- package/dist/errors-DHx3LQ6t.js +708 -0
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +149 -105
- package/dist/useSort-D5U_wkle.js +912 -0
- package/dist/utils.js +128 -76
- package/package.json +2 -2
- package/dist/datetime-D600LvsU.js +0 -1357
- package/dist/errors-B6O6sS7H.js +0 -554
- package/dist/useSort-BMv5JZAH.js +0 -943
package/dist/utils.js
CHANGED
|
@@ -1,94 +1,146 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.31.0 - 27/10/2025, 14:23:29
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
import { a4 as n, a5 as i } from "./errors-DHx3LQ6t.js";
|
|
9
|
+
import { X as F, V as G, W as M, T as b, c as k, S as C, E as D, K as O, i as W, z as $, A as X, B as j, k as K, m as V, n as q, e as z, f as J, h as Y, o as Z, G as H, g as Q, a as ee, F as se, Y as ae, D as te, Z as re, l as oe, _ as ne, Q as ie, $ as ce, H as le, a0 as fe, p as me, a1 as ue, r as de, M as ve, O as Re, a2 as Te, s as pe, v as Se, q as ye, y as Ee, a3 as Le, U as _e, J as Ue, w as Ae, C as ge, j as Ne, L as Pe, t as Ie, b as Be, d as he, N as we, I as xe, R as Fe, x as Ge, P as Me, u as be } from "./errors-DHx3LQ6t.js";
|
|
10
|
+
import { E as c, L as o, u as l, B as t } from "./datetime-bWwGbGlR.js";
|
|
11
|
+
import { n as Ce, b as De, c as Oe, a as We, l as $e, m as Xe, q as je, f as Ke, g as Ve, j as qe, h as ze, d as Je, e as Ye, i as Ze, k as He, t as Qe, r as es, o as ss, v as as, w as ts, x as rs, z as os, p as ns, s as is, A as cs, y as ls } from "./datetime-bWwGbGlR.js";
|
|
12
|
+
import { VBR_API_BASE_URL as f, FLAG_BASE_URL as m, DEFAULT_EXTERNAL_GAME_URL as u, DEFAULT_EXTERNAL_TEAM_URL as d, DEFAULT_EXTERNAL_PLAYER_URL as v, DEFAULT_EXTERNAL_STATISTIC_URL as R } from "./constants.js";
|
|
13
|
+
var T = /* @__PURE__ */ c(function(e, a) {
|
|
14
|
+
return Number(e) + Number(a);
|
|
15
|
+
}), E = /* @__PURE__ */ o(function(e) {
|
|
16
|
+
return e != null && typeof e.clone == "function" ? e.clone() : n(e, !0);
|
|
17
|
+
}), L = /* @__PURE__ */ o(function(e) {
|
|
18
|
+
return !l(e);
|
|
19
|
+
}), _ = /* @__PURE__ */ i(T, 0);
|
|
20
|
+
function U(s) {
|
|
21
|
+
return `${f.replace(/^https?/, "wss").replace("/vbr", "/socket/vbr")}${s}`;
|
|
14
22
|
}
|
|
15
|
-
const r = (
|
|
16
|
-
function
|
|
23
|
+
const r = (s = "") => window?.__MJSZ_VBR_WIDGET__?.[s];
|
|
24
|
+
function A(s, e = {}) {
|
|
17
25
|
if (e.externalGameUrl)
|
|
18
26
|
return e.externalGameUrl;
|
|
19
|
-
const
|
|
20
|
-
return typeof
|
|
27
|
+
const a = r("gameResolver") || s;
|
|
28
|
+
return typeof a == "function" ? a(e) : encodeURI(a ? t(a, e) : t(u, e));
|
|
21
29
|
}
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
return typeof
|
|
30
|
+
function g(s, e = {}) {
|
|
31
|
+
const a = r("teamResolver") || s;
|
|
32
|
+
return typeof a == "function" ? a(e) : encodeURI(a ? t(a, e) : t(d, e));
|
|
25
33
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
28
|
-
return typeof
|
|
34
|
+
function N(s, e = {}) {
|
|
35
|
+
const a = r("playerResolver") || s;
|
|
36
|
+
return typeof a == "function" ? a(e) : encodeURI(a ? t(a, e) : t(v, e));
|
|
29
37
|
}
|
|
30
|
-
function
|
|
31
|
-
return typeof
|
|
38
|
+
function P(s, e = {}) {
|
|
39
|
+
return typeof s == "function" ? s(e) : encodeURI(s ? t(s, e) : t(R, e));
|
|
32
40
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
35
|
-
return
|
|
41
|
+
const I = (s, e = "1x1") => `${m}/flag:${s}-${e}.svg`;
|
|
42
|
+
function B(s) {
|
|
43
|
+
return s || (r("apiKey") ? r("apiKey") : "");
|
|
36
44
|
}
|
|
37
|
-
function
|
|
45
|
+
function h() {
|
|
38
46
|
window.scrollTo(0, 0);
|
|
39
47
|
}
|
|
40
48
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
49
|
+
F as InvalidSeasonName,
|
|
50
|
+
G as UndefinedColumn,
|
|
51
|
+
M as WidgetError,
|
|
52
|
+
Ce as addDays,
|
|
53
|
+
b as appendTo,
|
|
54
|
+
E as clone,
|
|
55
|
+
k as convert,
|
|
56
|
+
C as convertAddress,
|
|
57
|
+
D as convertGameEvents,
|
|
58
|
+
O as convertGameOfficials,
|
|
59
|
+
W as convertGamePeriodResults,
|
|
60
|
+
De as convertMinToMinSec,
|
|
61
|
+
Oe as convertMinToSec,
|
|
62
|
+
$ as convertPenaltyCauseName,
|
|
63
|
+
X as convertPeriodResults,
|
|
64
|
+
j as convertPeriodResultsToArray,
|
|
65
|
+
K as convertPhaseName,
|
|
66
|
+
V as convertSeasons,
|
|
67
|
+
We as convertSecToMin,
|
|
68
|
+
q as convertTeams,
|
|
69
|
+
z as convertTimes,
|
|
70
|
+
J as convertTimesMinToMinSec,
|
|
71
|
+
Y as convertTimesSecToMin,
|
|
72
|
+
$e as currentWeek,
|
|
73
|
+
Xe as currentWeekStartEnd,
|
|
74
|
+
je as endOfMonth,
|
|
75
|
+
A as externalGameLinkResolver,
|
|
76
|
+
N as externalPlayerLinkResolver,
|
|
77
|
+
P as externalStatisticLinkResolver,
|
|
78
|
+
g as externalTeamLinkResolver,
|
|
79
|
+
Z as filterAndSortSections,
|
|
80
|
+
H as filterGoalScorersFromEvents,
|
|
81
|
+
I as flagResolver,
|
|
82
|
+
Ke as format,
|
|
83
|
+
Q as gameDateTime,
|
|
84
|
+
ee as gameResult,
|
|
85
|
+
Ve as getLocalTimezone,
|
|
86
|
+
U as getWebsocketURL,
|
|
87
|
+
se as groupLines,
|
|
88
|
+
ae as head,
|
|
89
|
+
qe as isAfter,
|
|
90
|
+
ze as isBefore,
|
|
91
|
+
Je as isBetween,
|
|
92
|
+
l as isEmpty,
|
|
93
|
+
L as isNotEmpty,
|
|
94
|
+
Ye as isSame,
|
|
95
|
+
Ze as isSameOrBefore,
|
|
96
|
+
He as isToday,
|
|
97
|
+
te as joinOfficals,
|
|
98
|
+
re as last,
|
|
99
|
+
oe as localeSort,
|
|
100
|
+
Qe as max,
|
|
101
|
+
ne as mergeLeft,
|
|
102
|
+
ie as mergePlayerStats,
|
|
103
|
+
es as min,
|
|
104
|
+
ss as offsetName,
|
|
105
|
+
as as omit,
|
|
106
|
+
ts as path,
|
|
107
|
+
ce as pick,
|
|
108
|
+
le as pickCoaches,
|
|
109
|
+
fe as pipe,
|
|
110
|
+
me as playerName,
|
|
111
|
+
rs as prop,
|
|
112
|
+
ue as propEq,
|
|
113
|
+
de as rawConvert,
|
|
114
|
+
os as reject,
|
|
115
|
+
ve as removeCurrentFromSeasonStats,
|
|
116
|
+
Re as removeUnneededPhases,
|
|
117
|
+
B as resolveApiKey,
|
|
118
|
+
Te as reverse,
|
|
119
|
+
pe as scheduleOptionalRowClass,
|
|
120
|
+
h as scrollToTop,
|
|
121
|
+
Se as selectFirstPhaseName,
|
|
122
|
+
ye as selectFirstSectionId,
|
|
123
|
+
Ee as selectLastSections,
|
|
124
|
+
Le as sortBy,
|
|
125
|
+
_e as sortByDomNode,
|
|
126
|
+
Ue as sortByEventTimeSec,
|
|
127
|
+
Ae as sortByPhaseId,
|
|
128
|
+
ge as sortByStartingFive,
|
|
129
|
+
Ne as sortGames,
|
|
130
|
+
Pe as standingTableSort,
|
|
131
|
+
ns as startOfMonth,
|
|
132
|
+
is as subtractDays,
|
|
133
|
+
_ as sum,
|
|
134
|
+
Ie as teamName,
|
|
135
|
+
Be as teamOpponent,
|
|
136
|
+
he as teamResultType,
|
|
137
|
+
t as templateReplacer,
|
|
138
|
+
cs as toKebabCase,
|
|
139
|
+
we as transformCurrentSeasonStats,
|
|
140
|
+
xe as transformEventsForGameTimeline,
|
|
141
|
+
Fe as transformFieledPlayersStats,
|
|
142
|
+
Ge as transformPlayers,
|
|
143
|
+
Me as transformRosters,
|
|
144
|
+
be as upperCase,
|
|
145
|
+
ls as yearToNow
|
|
94
146
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mjsz-vbr-elements/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.31.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Data visualization for MJSZ VBR",
|
|
7
7
|
"author": "Ákos Stegner <akos.stegner@gmail.com>",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"dayjs": "^1.11.13",
|
|
41
41
|
"ramda": "^0.31.3",
|
|
42
42
|
"vue": "^3.5.22",
|
|
43
|
-
"@mjsz-vbr-elements/shared": "^2.
|
|
43
|
+
"@mjsz-vbr-elements/shared": "^2.31.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@vitejs/plugin-vue": "^6.0.0",
|