@mjsz-vbr-elements/core 2.20.1 → 2.21.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-BKF4HTHI.js → TimezoneSelector-C9LgL7ma.js} +326 -315
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +3 -3
- package/dist/constants.js +9 -8
- package/dist/datetime-K_d-hEsO.js +1 -1
- package/dist/{errors-DBdI9YRN.js → errors-CONPaUL0.js} +65 -59
- 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 +76 -74
- package/dist/{useSort-C4-l1qY2.js → useSort-Day5AwW-.js} +5 -4
- package/dist/utils.js +67 -63
- 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.21.1 - 12/03/2025, 07:49:08
|
|
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
|
|
9
|
-
import { _ as
|
|
10
|
-
import { d as
|
|
8
|
+
import { COLUMNS_FIELD_PLAYERS as N, COLUMNS_FIELD_PLAYERS_PENALTY as m, COLUMNS_FIELD_PLAYERS_TOI as f, COLUMNS_GOALIES as R, COLUMNS_PLAYERS_NATIONAL as d, COLUMNS_SCHEDULE as p, COLUMNS_SCORING_EFFICIENCY as u, COLUMNS_STANDINGS_P_2 as I, COLUMNS_STANDINGS_P_3 as O, COLUMNS_STANDINGS_SHORT as C, COLUMNS_TEAMS_FAIRPLAY as g, 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 X, m as j, n as z } from "./TimezoneSelector-C9LgL7ma.js";
|
|
10
|
+
import { d as K, 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-Day5AwW-.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,
|
|
14
|
-
import { I as ge, U as
|
|
15
|
-
import { n as
|
|
16
|
-
import { externalGameLinkResolver 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 ce, DEFAULT_PORTRAIT_IMAGE_URL as Ne, FLAG_BASE_URL as me, LAZY_LOADING_STATE_DELAY as fe, LOCALE_FOR_LANG as Re, REFRESH_DELAY as de, SORT_STATE_ASCEND as pe, SORT_STATE_DESCEND as ue, SORT_STATE_ORIGINAL as Ie, VBR_API_BASE_URL as Oe } from "./constants.js";
|
|
14
|
+
import { I as ge, 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 Xe, b as je, d as ze, u as He } from "./errors-CONPaUL0.js";
|
|
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 ca, u as Na, y as ma } from "./datetime-K_d-hEsO.js";
|
|
16
|
+
import { externalGameLinkResolver as Ra, externalPlayerLinkResolver as da, externalStatisticLinkResolver as pa, externalTeamLinkResolver as ua, flagResolver as Ia, scrollToTop as Oa } from "./utils.js";
|
|
17
17
|
const S = {
|
|
18
18
|
locale: {
|
|
19
19
|
type: String,
|
|
@@ -91,105 +91,107 @@ const E = {
|
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
93
93
|
Te as AVAILABLE_TIMEZONES_BY_COUNTRY,
|
|
94
|
-
|
|
94
|
+
P as AdditionalStandingsText,
|
|
95
95
|
D as BaseSelect,
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
N as COLUMNS_FIELD_PLAYERS,
|
|
97
|
+
m as COLUMNS_FIELD_PLAYERS_PENALTY,
|
|
98
98
|
f as COLUMNS_FIELD_PLAYERS_TOI,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
R as COLUMNS_GOALIES,
|
|
100
|
+
d as COLUMNS_PLAYERS_NATIONAL,
|
|
101
|
+
p as COLUMNS_SCHEDULE,
|
|
102
|
+
u as COLUMNS_SCORING_EFFICIENCY,
|
|
103
|
+
I as COLUMNS_STANDINGS_P_2,
|
|
104
|
+
O as COLUMNS_STANDINGS_P_3,
|
|
105
|
+
C as COLUMNS_STANDINGS_SHORT,
|
|
106
|
+
g 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
|
-
Ae as
|
|
113
|
-
ce as
|
|
112
|
+
Ae as DEFAULT_EXTERNAL_STATISTIC_URL,
|
|
113
|
+
ce as DEFAULT_EXTERNAL_TEAM_URL,
|
|
114
|
+
Ne as DEFAULT_PORTRAIT_IMAGE_URL,
|
|
114
115
|
x as DataTable,
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
F as ErrorNotice,
|
|
117
|
+
h as ErrorProvider,
|
|
117
118
|
me as FLAG_BASE_URL,
|
|
118
119
|
G as FetchMoreObserver,
|
|
119
120
|
b as FloatingPanel,
|
|
120
121
|
B as I18NProvider,
|
|
121
122
|
Y as Image,
|
|
122
123
|
ge as InvalidSeasonName,
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
fe as LAZY_LOADING_STATE_DELAY,
|
|
125
|
+
Re as LOCALE_FOR_LANG,
|
|
125
126
|
k as LoadingIndicator,
|
|
126
127
|
w as Paginator,
|
|
127
128
|
de as REFRESH_DELAY,
|
|
128
129
|
W as ResponsiveTable,
|
|
129
130
|
pe as SORT_STATE_ASCEND,
|
|
130
131
|
ue as SORT_STATE_DESCEND,
|
|
131
|
-
|
|
132
|
+
Ie as SORT_STATE_ORIGINAL,
|
|
132
133
|
V as ScheduleTable,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
X as SeasonSelector,
|
|
135
|
+
j as StatisticsTable,
|
|
136
|
+
z as TimezoneSelector,
|
|
137
|
+
Me as UndefinedColumn,
|
|
137
138
|
Oe as VBR_API_BASE_URL,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
ye as WidgetError,
|
|
140
|
+
Ze as addDays,
|
|
141
|
+
Ue as appendTo,
|
|
141
142
|
S as baseProps,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
143
|
+
ve as convert,
|
|
144
|
+
Pe as convertGamePeriodResults,
|
|
145
|
+
qe as convertMinToMinSec,
|
|
146
|
+
Je as convertMinToSec,
|
|
147
|
+
De as convertPhaseName,
|
|
148
|
+
Qe as convertSecToMin,
|
|
149
|
+
xe as convertTimes,
|
|
150
|
+
Fe as convertTimesMinToMinSec,
|
|
150
151
|
he as convertTimesSecToMin,
|
|
151
152
|
i as createConfig,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
K as createI18n,
|
|
154
|
+
$e as currentWeek,
|
|
155
|
+
ea as currentWeekStartEnd,
|
|
155
156
|
E as default,
|
|
156
|
-
|
|
157
|
-
|
|
157
|
+
aa as endOfMonth,
|
|
158
|
+
Ra as externalGameLinkResolver,
|
|
158
159
|
da as externalPlayerLinkResolver,
|
|
159
|
-
pa as
|
|
160
|
+
pa as externalStatisticLinkResolver,
|
|
161
|
+
ua as externalTeamLinkResolver,
|
|
160
162
|
oe as fetchVBRData,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
163
|
+
Ia as flagResolver,
|
|
164
|
+
sa as format,
|
|
165
|
+
Ge as gameDateTime,
|
|
164
166
|
L as gameProps,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
+
be as gameResult,
|
|
168
|
+
ta as getLocalTimezone,
|
|
167
169
|
Z as i18n,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
170
|
+
ra as isAfter,
|
|
171
|
+
oa as isBefore,
|
|
172
|
+
na as isBetween,
|
|
173
|
+
ia as isSame,
|
|
174
|
+
la as isSameOrBefore,
|
|
175
|
+
Sa as isToday,
|
|
176
|
+
Be as localeSort,
|
|
177
|
+
_a as max,
|
|
178
|
+
Ta as min,
|
|
179
|
+
La as offsetName,
|
|
180
|
+
Ye as playerName,
|
|
179
181
|
T as playerStatsProps,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
182
|
+
ke as rawConvert,
|
|
183
|
+
we as scheduleOptionalRowClass,
|
|
184
|
+
Oa as scrollToTop,
|
|
185
|
+
We as sortByDomNode,
|
|
186
|
+
Ve as sortGames,
|
|
187
|
+
Ea as startOfMonth,
|
|
188
|
+
Aa as subtractDays,
|
|
189
|
+
Xe as teamName,
|
|
188
190
|
je as teamOpponent,
|
|
189
191
|
ze as teamResultType,
|
|
190
192
|
_ as teamStatsProps,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
+
ca as templateReplacer,
|
|
194
|
+
Na as toKebabCase,
|
|
193
195
|
He as upperCase,
|
|
194
196
|
q as useAdditionalText,
|
|
195
197
|
J as useColumns,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.21.1 - 12/03/2025, 07:49:08
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
@@ -187,12 +187,12 @@ function jt() {
|
|
|
187
187
|
key: o.key || Ge(o.message),
|
|
188
188
|
cause: o.cause
|
|
189
189
|
};
|
|
190
|
+
}, n = () => {
|
|
191
|
+
e.value = "", t.value = {};
|
|
190
192
|
};
|
|
191
193
|
return me(Te, {
|
|
192
194
|
onError: r,
|
|
193
|
-
reset:
|
|
194
|
-
e.value = "", t.value = {};
|
|
195
|
-
}
|
|
195
|
+
reset: n
|
|
196
196
|
}), window.onerror = (o) => {
|
|
197
197
|
console.error("WINDOW_ONERROR:", o);
|
|
198
198
|
}, Le((o, u, a) => {
|
|
@@ -201,6 +201,7 @@ function jt() {
|
|
|
201
201
|
hasError: C(() => e.value.length > 0),
|
|
202
202
|
message: e,
|
|
203
203
|
error: t,
|
|
204
|
+
reset: n,
|
|
204
205
|
onError: r
|
|
205
206
|
};
|
|
206
207
|
}
|
package/dist/utils.js
CHANGED
|
@@ -1,85 +1,89 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.21.1 - 12/03/2025, 07:49:08
|
|
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 { DEFAULT_EXTERNAL_GAME_URL as r, DEFAULT_EXTERNAL_TEAM_URL as
|
|
12
|
-
const
|
|
8
|
+
import { I as E, U as S, W as A, m as p, c as y, i as I, k as g, e as M, f as x, h as N, g as D, a as k, l as w, p as G, r as b, s as h, n as B, j as C, t as F, b as O, d as W, u as P } from "./errors-CONPaUL0.js";
|
|
9
|
+
import { v as t } from "./datetime-K_d-hEsO.js";
|
|
10
|
+
import { n as $, b as j, c as V, a as q, l as z, m as J, q as K, f as Y, g as Z, j as H, h as Q, d as ee, e as ne, i as oe, k as te, t as ae, r as re, o as se, p as ie, s as ce, u as le, y as fe } from "./datetime-K_d-hEsO.js";
|
|
11
|
+
import { DEFAULT_EXTERNAL_GAME_URL as r, DEFAULT_EXTERNAL_TEAM_URL as s, DEFAULT_EXTERNAL_PLAYER_URL as i, DEFAULT_EXTERNAL_STATISTIC_URL as c, FLAG_BASE_URL as l } from "./constants.js";
|
|
12
|
+
const a = (n = "") => {
|
|
13
13
|
var e;
|
|
14
|
-
return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[
|
|
14
|
+
return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[n];
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function R(n, e = {}) {
|
|
17
17
|
if (e.externalGameUrl)
|
|
18
18
|
return e.externalGameUrl;
|
|
19
|
-
const o =
|
|
20
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
19
|
+
const o = a("gameResolver") || n;
|
|
20
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? t(o, e) : t(r, e));
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const o =
|
|
24
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
22
|
+
function T(n, e = {}) {
|
|
23
|
+
const o = a("teamResolver") || n;
|
|
24
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? t(o, e) : t(s, e));
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
const o =
|
|
28
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
26
|
+
function m(n, e = {}) {
|
|
27
|
+
const o = a("playerResolver") || n;
|
|
28
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? t(o, e) : t(i, e));
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
function
|
|
30
|
+
function d(n, e = {}) {
|
|
31
|
+
return typeof n == "function" ? n(e) : encodeURI(n ? t(n, e) : t(c, e));
|
|
32
|
+
}
|
|
33
|
+
const v = (n, e = "1x1") => `${l}/flag:${n}-${e}.svg`;
|
|
34
|
+
function U() {
|
|
32
35
|
window.scrollTo(0, 0);
|
|
33
36
|
}
|
|
34
37
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
E as InvalidSeasonName,
|
|
39
|
+
S as UndefinedColumn,
|
|
40
|
+
A as WidgetError,
|
|
41
|
+
$ as addDays,
|
|
39
42
|
p as appendTo,
|
|
40
43
|
y as convert,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
I as convertGamePeriodResults,
|
|
45
|
+
j as convertMinToMinSec,
|
|
46
|
+
V as convertMinToSec,
|
|
44
47
|
g as convertPhaseName,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
T as
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
oe as
|
|
48
|
+
q as convertSecToMin,
|
|
49
|
+
M as convertTimes,
|
|
50
|
+
x as convertTimesMinToMinSec,
|
|
51
|
+
N as convertTimesSecToMin,
|
|
52
|
+
z as currentWeek,
|
|
53
|
+
J as currentWeekStartEnd,
|
|
54
|
+
K as endOfMonth,
|
|
55
|
+
R as externalGameLinkResolver,
|
|
56
|
+
m as externalPlayerLinkResolver,
|
|
57
|
+
d as externalStatisticLinkResolver,
|
|
58
|
+
T as externalTeamLinkResolver,
|
|
59
|
+
v as flagResolver,
|
|
60
|
+
Y as format,
|
|
61
|
+
D as gameDateTime,
|
|
62
|
+
k as gameResult,
|
|
63
|
+
Z as getLocalTimezone,
|
|
64
|
+
H as isAfter,
|
|
65
|
+
Q as isBefore,
|
|
66
|
+
ee as isBetween,
|
|
67
|
+
ne as isSame,
|
|
68
|
+
oe as isSameOrBefore,
|
|
69
|
+
te as isToday,
|
|
66
70
|
w as localeSort,
|
|
67
71
|
ae as max,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
72
|
+
re as min,
|
|
73
|
+
se as offsetName,
|
|
74
|
+
G as playerName,
|
|
75
|
+
b as rawConvert,
|
|
76
|
+
h as scheduleOptionalRowClass,
|
|
77
|
+
U as scrollToTop,
|
|
78
|
+
B as sortByDomNode,
|
|
79
|
+
C as sortGames,
|
|
80
|
+
ie as startOfMonth,
|
|
81
|
+
ce as subtractDays,
|
|
82
|
+
F as teamName,
|
|
83
|
+
O as teamOpponent,
|
|
84
|
+
W as teamResultType,
|
|
85
|
+
t as templateReplacer,
|
|
86
|
+
le as toKebabCase,
|
|
87
|
+
P as upperCase,
|
|
88
|
+
fe as yearToNow
|
|
85
89
|
};
|
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.21.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Data visualization for MJSZ VBR",
|
|
7
7
|
"author": "Ákos Stegner <akos.stegner@gmail.com>",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dayjs": "^1.11.13",
|
|
40
40
|
"ramda": "^0.30.1",
|
|
41
41
|
"vue": "^3.5.13",
|
|
42
|
-
"@mjsz-vbr-elements/shared": "^2.
|
|
42
|
+
"@mjsz-vbr-elements/shared": "^2.21.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vitejs/plugin-vue": "^5.2.1",
|