@mjsz-vbr-elements/core 2.25.3 → 2.26.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/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 +27 -25
- package/dist/useSort-D-BBQTSZ.js +1 -1
- package/dist/utils.js +80 -72
- 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.
|
|
3
|
+
* version: v2.26.1 - 04/09/2025, 08:32:34
|
|
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
|
|
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
|
|
10
|
-
import { d 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
|
+
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
|
+
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,13 +97,13 @@ 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
|
-
|
|
100
|
+
R as COLUMNS_PLAYERS_NATIONAL,
|
|
101
|
+
f as COLUMNS_SCHEDULE,
|
|
102
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,
|
|
@@ -120,20 +120,20 @@ 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
|
-
|
|
130
|
+
fe as SORT_STATE_ASCEND,
|
|
131
131
|
pe as SORT_STATE_DESCEND,
|
|
132
132
|
Ie as SORT_STATE_ORIGINAL,
|
|
133
133
|
V as ScheduleTable,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
K as SeasonSelector,
|
|
135
|
+
X as StatisticsTable,
|
|
136
|
+
j as TimezoneSelector,
|
|
137
137
|
Me as UndefinedColumn,
|
|
138
138
|
Oe as VBR_API_BASE_URL,
|
|
139
139
|
ye as WidgetError,
|
|
@@ -150,14 +150,14 @@ export {
|
|
|
150
150
|
Fe as convertTimesMinToMinSec,
|
|
151
151
|
he as convertTimesSecToMin,
|
|
152
152
|
i as createConfig,
|
|
153
|
-
|
|
153
|
+
H as createI18n,
|
|
154
154
|
$e as currentWeek,
|
|
155
155
|
ea as currentWeekStartEnd,
|
|
156
156
|
E as default,
|
|
157
157
|
aa as endOfMonth,
|
|
158
158
|
ua as externalGameLinkResolver,
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
Ra as externalPlayerLinkResolver,
|
|
160
|
+
fa as externalStatisticLinkResolver,
|
|
161
161
|
pa as externalTeamLinkResolver,
|
|
162
162
|
oe as fetchVBRData,
|
|
163
163
|
Ia as flagResolver,
|
|
@@ -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,19 +181,20 @@ export {
|
|
|
180
181
|
Ye as playerName,
|
|
181
182
|
T as playerStatsProps,
|
|
182
183
|
ke as rawConvert,
|
|
184
|
+
ga as resolveApiKey,
|
|
183
185
|
we as scheduleOptionalRowClass,
|
|
184
|
-
|
|
186
|
+
Ca as scrollToTop,
|
|
185
187
|
We as sortByDomNode,
|
|
186
188
|
Ve as sortGames,
|
|
187
189
|
Ea as startOfMonth,
|
|
188
190
|
Aa as subtractDays,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
191
|
+
Ke as teamName,
|
|
192
|
+
Xe as teamOpponent,
|
|
193
|
+
je as teamResultType,
|
|
192
194
|
_ as teamStatsProps,
|
|
193
195
|
ma as templateReplacer,
|
|
194
196
|
ca as toKebabCase,
|
|
195
|
-
|
|
197
|
+
ze as upperCase,
|
|
196
198
|
q as useAdditionalText,
|
|
197
199
|
J as useColumns,
|
|
198
200
|
Q as useError,
|
package/dist/useSort-D-BBQTSZ.js
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,86 +1,94 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.26.1 - 04/09/2025, 08:32:34
|
|
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
|
|
9
|
-
import { v as
|
|
10
|
-
import { n as
|
|
11
|
-
import { FLAG_BASE_URL as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (e.externalGameUrl)
|
|
15
|
-
return e.externalGameUrl;
|
|
16
|
-
const o = a("gameResolver") || n;
|
|
17
|
-
return typeof o == "function" ? o(e) : encodeURI(o ? t(o, e) : t(s, e));
|
|
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
|
+
import { v as o } from "./datetime-D600LvsU.js";
|
|
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
|
|
25
|
-
return typeof
|
|
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
|
|
30
|
+
function U(e, n = {}) {
|
|
31
|
+
return typeof e == "function" ? e(n) : encodeURI(e ? o(e, n) : o(f, n));
|
|
32
|
+
}
|
|
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() {
|
|
32
38
|
window.scrollTo(0, 0);
|
|
33
39
|
}
|
|
34
40
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
41
|
+
S as InvalidSeasonName,
|
|
42
|
+
y as UndefinedColumn,
|
|
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,
|
|
54
|
+
D as convertTimesSecToMin,
|
|
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,
|
|
74
|
+
G as localeSort,
|
|
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,
|
|
90
|
+
o as templateReplacer,
|
|
91
|
+
Re as toKebabCase,
|
|
92
|
+
K as upperCase,
|
|
93
|
+
Te as yearToNow
|
|
86
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.
|
|
4
|
+
"version": "2.26.1",
|
|
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.
|
|
43
|
+
"@mjsz-vbr-elements/shared": "^2.26.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@vitejs/plugin-vue": "^6.0.0",
|