@mjsz-vbr-elements/core 2.26.0 → 2.26.2
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-CRy1AyTX.js +1 -1
- package/dist/columns.js +1 -1
- package/dist/components.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/datetime-D600LvsU.js +1 -1
- package/dist/errors-B6O6sS7H.js +1 -1
- 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 +22 -21
- package/dist/useSort-D-BBQTSZ.js +1 -1
- package/dist/utils.js +74 -70
- package/package.json +2 -2
package/dist/index.iife.js.br
CHANGED
|
Binary file
|
package/dist/index.iife.js.gz
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.26.
|
|
3
|
+
* version: v2.26.2 - 04/09/2025, 09:12:39
|
|
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 { COLUMNS_FIELD_PLAYERS as c, COLUMNS_FIELD_PLAYERS_PENALTY as N, COLUMNS_FIELD_PLAYERS_TOI as d, COLUMNS_GOALIES as u, COLUMNS_PLAYERS_NATIONAL as
|
|
8
|
+
import { COLUMNS_FIELD_PLAYERS as c, COLUMNS_FIELD_PLAYERS_PENALTY as N, COLUMNS_FIELD_PLAYERS_TOI as d, COLUMNS_GOALIES as u, COLUMNS_PLAYERS_NATIONAL as R, COLUMNS_SCHEDULE as f, COLUMNS_SCORING_EFFICIENCY as p, COLUMNS_STANDINGS_P_2 as I, COLUMNS_STANDINGS_P_3 as O, COLUMNS_STANDINGS_SHORT as g, COLUMNS_TEAMS_FAIRPLAY as C, COLUMNS_TEAMS_PENALTY_KILLING as M, COLUMNS_TEAMS_POWERPLAY as y, COLUMNS_TEAM_ATTENDANCE as U } from "./columns.js";
|
|
9
9
|
import { _ as P, a as D, b as x, c as F, d as h, e as G, f as b, I as B, g as Y, h as k, i as w, j as W, k as V, l as K, m as X, n as j } from "./TimezoneSelector-CRy1AyTX.js";
|
|
10
10
|
import { d as H, i as Z, u as q, a as J, c as Q, b as $, e as ee, f as ae, g as se, v as te } from "./useSort-D-BBQTSZ.js";
|
|
11
11
|
import { fetchVBRData as oe, usePage as ne, useScrollToGameDate as ie, useServices as le, useVisibilityChange as Se } from "./composables.js";
|
|
12
12
|
import "vue";
|
|
13
|
-
import { AVAILABLE_TIMEZONES_BY_COUNTRY as Te, DEFAULT_EXTERNAL_GAME_URL as Le, DEFAULT_EXTERNAL_PLAYER_URL as Ee, DEFAULT_EXTERNAL_STATISTIC_URL as Ae, DEFAULT_EXTERNAL_TEAM_URL as me, DEFAULT_PORTRAIT_IMAGE_URL as ce, FLAG_BASE_URL as Ne, LAZY_LOADING_STATE_DELAY as de, LOCALE_FOR_LANG as ue, REFRESH_DELAY as
|
|
14
|
-
import { I as
|
|
13
|
+
import { AVAILABLE_TIMEZONES_BY_COUNTRY as Te, DEFAULT_EXTERNAL_GAME_URL as Le, DEFAULT_EXTERNAL_PLAYER_URL as Ee, DEFAULT_EXTERNAL_STATISTIC_URL as Ae, DEFAULT_EXTERNAL_TEAM_URL as me, DEFAULT_PORTRAIT_IMAGE_URL as ce, FLAG_BASE_URL as Ne, LAZY_LOADING_STATE_DELAY as de, LOCALE_FOR_LANG as ue, REFRESH_DELAY as Re, SORT_STATE_ASCEND as fe, SORT_STATE_DESCEND as pe, SORT_STATE_ORIGINAL as Ie, VBR_API_BASE_URL as Oe } from "./constants.js";
|
|
14
|
+
import { I as Ce, U as Me, W as ye, m as Ue, c as ve, i as Pe, k as De, e as xe, f as Fe, h as he, g as Ge, a as be, l as Be, p as Ye, r as ke, s as we, n as We, j as Ve, t as Ke, b as Xe, d as je, u as ze } from "./errors-B6O6sS7H.js";
|
|
15
15
|
import { n as Ze, b as qe, c as Je, a as Qe, l as $e, m as ea, q as aa, f as sa, g as ta, j as ra, h as oa, d as na, e as ia, i as la, k as Sa, t as _a, r as Ta, o as La, p as Ea, s as Aa, v as ma, u as ca, y as Na } from "./datetime-D600LvsU.js";
|
|
16
|
-
import { externalGameLinkResolver as ua, externalPlayerLinkResolver as
|
|
16
|
+
import { externalGameLinkResolver as ua, externalPlayerLinkResolver as Ra, externalStatisticLinkResolver as fa, externalTeamLinkResolver as pa, flagResolver as Ia, getWebsocketURL as Oa, resolveApiKey as ga, scrollToTop as Ca } from "./utils.js";
|
|
17
17
|
const S = {
|
|
18
18
|
locale: {
|
|
19
19
|
type: String,
|
|
@@ -97,16 +97,16 @@ export {
|
|
|
97
97
|
N as COLUMNS_FIELD_PLAYERS_PENALTY,
|
|
98
98
|
d as COLUMNS_FIELD_PLAYERS_TOI,
|
|
99
99
|
u as COLUMNS_GOALIES,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
R as COLUMNS_PLAYERS_NATIONAL,
|
|
101
|
+
f as COLUMNS_SCHEDULE,
|
|
102
|
+
p as COLUMNS_SCORING_EFFICIENCY,
|
|
103
103
|
I as COLUMNS_STANDINGS_P_2,
|
|
104
104
|
O as COLUMNS_STANDINGS_P_3,
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
g as COLUMNS_STANDINGS_SHORT,
|
|
106
|
+
C as COLUMNS_TEAMS_FAIRPLAY,
|
|
107
107
|
M as COLUMNS_TEAMS_PENALTY_KILLING,
|
|
108
108
|
y as COLUMNS_TEAMS_POWERPLAY,
|
|
109
|
-
|
|
109
|
+
U as COLUMNS_TEAM_ATTENDANCE,
|
|
110
110
|
Le as DEFAULT_EXTERNAL_GAME_URL,
|
|
111
111
|
Ee as DEFAULT_EXTERNAL_PLAYER_URL,
|
|
112
112
|
Ae as DEFAULT_EXTERNAL_STATISTIC_URL,
|
|
@@ -120,15 +120,15 @@ export {
|
|
|
120
120
|
b as FloatingPanel,
|
|
121
121
|
B as I18NProvider,
|
|
122
122
|
Y as Image,
|
|
123
|
-
|
|
123
|
+
Ce as InvalidSeasonName,
|
|
124
124
|
de as LAZY_LOADING_STATE_DELAY,
|
|
125
125
|
ue as LOCALE_FOR_LANG,
|
|
126
126
|
k as LoadingIndicator,
|
|
127
127
|
w as Paginator,
|
|
128
|
-
|
|
128
|
+
Re as REFRESH_DELAY,
|
|
129
129
|
W as ResponsiveTable,
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
fe as SORT_STATE_ASCEND,
|
|
131
|
+
pe as SORT_STATE_DESCEND,
|
|
132
132
|
Ie as SORT_STATE_ORIGINAL,
|
|
133
133
|
V as ScheduleTable,
|
|
134
134
|
K as SeasonSelector,
|
|
@@ -138,9 +138,9 @@ export {
|
|
|
138
138
|
Oe as VBR_API_BASE_URL,
|
|
139
139
|
ye as WidgetError,
|
|
140
140
|
Ze as addDays,
|
|
141
|
-
|
|
141
|
+
Ue as appendTo,
|
|
142
142
|
S as baseProps,
|
|
143
|
-
|
|
143
|
+
ve as convert,
|
|
144
144
|
Pe as convertGamePeriodResults,
|
|
145
145
|
qe as convertMinToMinSec,
|
|
146
146
|
Je as convertMinToSec,
|
|
@@ -156,9 +156,9 @@ export {
|
|
|
156
156
|
E as default,
|
|
157
157
|
aa as endOfMonth,
|
|
158
158
|
ua as externalGameLinkResolver,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
Ra as externalPlayerLinkResolver,
|
|
160
|
+
fa as externalStatisticLinkResolver,
|
|
161
|
+
pa as externalTeamLinkResolver,
|
|
162
162
|
oe as fetchVBRData,
|
|
163
163
|
Ia as flagResolver,
|
|
164
164
|
sa as format,
|
|
@@ -166,6 +166,7 @@ export {
|
|
|
166
166
|
L as gameProps,
|
|
167
167
|
be as gameResult,
|
|
168
168
|
ta as getLocalTimezone,
|
|
169
|
+
Oa as getWebsocketURL,
|
|
169
170
|
Z as i18n,
|
|
170
171
|
ra as isAfter,
|
|
171
172
|
oa as isBefore,
|
|
@@ -180,7 +181,7 @@ export {
|
|
|
180
181
|
Ye as playerName,
|
|
181
182
|
T as playerStatsProps,
|
|
182
183
|
ke as rawConvert,
|
|
183
|
-
|
|
184
|
+
ga as resolveApiKey,
|
|
184
185
|
we as scheduleOptionalRowClass,
|
|
185
186
|
Ca as scrollToTop,
|
|
186
187
|
We as sortByDomNode,
|
package/dist/useSort-D-BBQTSZ.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,90 +1,94 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.26.
|
|
3
|
+
* version: v2.26.2 - 04/09/2025, 09:12:39
|
|
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 { I as
|
|
8
|
+
import { I as S, U as y, W as I, m as g, c as M, i as x, k as N, e as k, f as w, h as D, g as b, a as B, l as G, p as h, r as C, s as W, n as F, j as O, t as P, b as $, d as X, u as K } from "./errors-B6O6sS7H.js";
|
|
9
9
|
import { v as o } from "./datetime-D600LvsU.js";
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (e.externalGameUrl)
|
|
15
|
-
return e.externalGameUrl;
|
|
16
|
-
const t = r("gameResolver") || n;
|
|
17
|
-
return typeof t == "function" ? t(e) : encodeURI(t ? o(t, e) : o(s, e));
|
|
10
|
+
import { n as j, b as q, c as z, a as J, l as Y, m as Z, q as H, f as Q, g as ee, j as ne, h as te, d as oe, e as re, i as ae, k as se, t as ie, r as ce, o as le, p as fe, s as ue, u as Re, y as Te } from "./datetime-D600LvsU.js";
|
|
11
|
+
import { VBR_API_BASE_URL as a, FLAG_BASE_URL as s, DEFAULT_EXTERNAL_GAME_URL as i, DEFAULT_EXTERNAL_TEAM_URL as c, DEFAULT_EXTERNAL_PLAYER_URL as l, DEFAULT_EXTERNAL_STATISTIC_URL as f } from "./constants.js";
|
|
12
|
+
function T(e) {
|
|
13
|
+
return `${a.replace("https", "ws").replace("/vbr", "")}${e}`;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
const r = (e = "") => window?.__MJSZ_VBR_WIDGET__?.[e];
|
|
16
|
+
function m(e, n = {}) {
|
|
17
|
+
if (n.externalGameUrl)
|
|
18
|
+
return n.externalGameUrl;
|
|
19
|
+
const t = r("gameResolver") || e;
|
|
20
|
+
return typeof t == "function" ? t(n) : encodeURI(t ? o(t, n) : o(i, n));
|
|
22
21
|
}
|
|
23
|
-
function
|
|
24
|
-
const t = r("
|
|
25
|
-
return typeof t == "function" ? t(
|
|
22
|
+
function d(e, n = {}) {
|
|
23
|
+
const t = r("teamResolver") || e;
|
|
24
|
+
return typeof t == "function" ? t(n) : encodeURI(t ? o(t, n) : o(c, n));
|
|
26
25
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
26
|
+
function v(e, n = {}) {
|
|
27
|
+
const t = r("playerResolver") || e;
|
|
28
|
+
return typeof t == "function" ? t(n) : encodeURI(t ? o(t, n) : o(l, n));
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
function
|
|
32
|
-
return n || (r("apiKey") ? r("apiKey") : "");
|
|
30
|
+
function U(e, n = {}) {
|
|
31
|
+
return typeof e == "function" ? e(n) : encodeURI(e ? o(e, n) : o(f, n));
|
|
33
32
|
}
|
|
34
|
-
|
|
33
|
+
const _ = (e, n = "1x1") => `${s}/flag:${e}-${n}.svg`;
|
|
34
|
+
function L(e) {
|
|
35
|
+
return e || (r("apiKey") ? r("apiKey") : "");
|
|
36
|
+
}
|
|
37
|
+
function E() {
|
|
35
38
|
window.scrollTo(0, 0);
|
|
36
39
|
}
|
|
37
40
|
export {
|
|
38
|
-
|
|
41
|
+
S as InvalidSeasonName,
|
|
39
42
|
y as UndefinedColumn,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
I as WidgetError,
|
|
44
|
+
j as addDays,
|
|
45
|
+
g as appendTo,
|
|
46
|
+
M as convert,
|
|
47
|
+
x as convertGamePeriodResults,
|
|
48
|
+
q as convertMinToMinSec,
|
|
49
|
+
z as convertMinToSec,
|
|
50
|
+
N as convertPhaseName,
|
|
51
|
+
J as convertSecToMin,
|
|
52
|
+
k as convertTimes,
|
|
53
|
+
w as convertTimesMinToMinSec,
|
|
51
54
|
D as convertTimesSecToMin,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
55
|
+
Y as currentWeek,
|
|
56
|
+
Z as currentWeekStartEnd,
|
|
57
|
+
H as endOfMonth,
|
|
58
|
+
m as externalGameLinkResolver,
|
|
59
|
+
v as externalPlayerLinkResolver,
|
|
60
|
+
U as externalStatisticLinkResolver,
|
|
61
|
+
d as externalTeamLinkResolver,
|
|
62
|
+
_ as flagResolver,
|
|
63
|
+
Q as format,
|
|
64
|
+
b as gameDateTime,
|
|
65
|
+
B as gameResult,
|
|
66
|
+
ee as getLocalTimezone,
|
|
67
|
+
T as getWebsocketURL,
|
|
68
|
+
ne as isAfter,
|
|
69
|
+
te as isBefore,
|
|
70
|
+
oe as isBetween,
|
|
71
|
+
re as isSame,
|
|
72
|
+
ae as isSameOrBefore,
|
|
73
|
+
se as isToday,
|
|
70
74
|
G as localeSort,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
75
|
+
ie as max,
|
|
76
|
+
ce as min,
|
|
77
|
+
le as offsetName,
|
|
78
|
+
h as playerName,
|
|
79
|
+
C as rawConvert,
|
|
80
|
+
L as resolveApiKey,
|
|
81
|
+
W as scheduleOptionalRowClass,
|
|
82
|
+
E as scrollToTop,
|
|
83
|
+
F as sortByDomNode,
|
|
84
|
+
O as sortGames,
|
|
85
|
+
fe as startOfMonth,
|
|
86
|
+
ue as subtractDays,
|
|
87
|
+
P as teamName,
|
|
88
|
+
$ as teamOpponent,
|
|
89
|
+
X as teamResultType,
|
|
86
90
|
o as templateReplacer,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
91
|
+
Re as toKebabCase,
|
|
92
|
+
K as upperCase,
|
|
93
|
+
Te as yearToNow
|
|
90
94
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mjsz-vbr-elements/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.26.
|
|
4
|
+
"version": "2.26.2",
|
|
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.17",
|
|
43
|
-
"@mjsz-vbr-elements/shared": "^2.26.
|
|
43
|
+
"@mjsz-vbr-elements/shared": "^2.26.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@vitejs/plugin-vue": "^6.0.0",
|