@mjsz-vbr-elements/core 2.7.2 → 2.9.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/{AdditionalStandingsText-QBTNWUHG.js → AdditionalStandingsText-BiRMcxjC.js} +88 -80
- package/dist/columns.js +2 -2
- package/dist/components.js +3 -3
- package/dist/composables.js +66 -59
- package/dist/constants.js +2 -2
- package/dist/{convert-DkesPGp4.js → convert-C_k4-oaF.js} +95 -83
- package/dist/datetime-BzdN4htO.js +2 -2
- package/dist/index.iife.js +5 -5
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +96 -94
- package/dist/{useAdditionalText-D1LaWU-i.js → useAdditionalText-BCKSsRDN.js} +8 -7
- package/dist/utils.js +53 -52
- 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.
|
|
4
|
-
* (c)
|
|
3
|
+
* version: v2.9.0 - 09/01/2025, 14:35:52
|
|
4
|
+
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { n as m, c as N, b as
|
|
9
|
-
import { c as h, i as x, h as F, u as G, b, a as B, d as Y, e as k, f as w, g as W, v as V } from "./useAdditionalText-
|
|
10
|
-
import { fetchVBRData as z,
|
|
8
|
+
import { n as m, c as N, b as d, d as u, e as f, m as p, g as R, I, _ as O, k as g, a as C, j as M, f as y, h as P, i as v, l as U } from "./AdditionalStandingsText-BiRMcxjC.js";
|
|
9
|
+
import { c as h, i as x, h as F, u as G, b, a as B, d as Y, e as k, f as w, g as W, v as V } from "./useAdditionalText-BCKSsRDN.js";
|
|
10
|
+
import { fetchVBRData as z, useId as K, usePage as X, useScrollToGameDate as Z, useServices as H, useVisibilityChange as q } from "./composables.js";
|
|
11
11
|
import "vue";
|
|
12
|
-
import { I as
|
|
13
|
-
import { n as pe, b as
|
|
14
|
-
import { externalGameLinkResolver as
|
|
15
|
-
import { COLUMNS_FIELD_PLAYERS as
|
|
16
|
-
import { AVAILABLE_TIMEZONES_BY_COUNTRY as
|
|
12
|
+
import { I as Q, U as $, W as ee, m as ae, c as se, i as te, k as re, e as oe, f as ne, h as ie, g as le, a as Se, l as _e, p as Te, r as Le, s as Ee, n as Ae, j as ce, t as me, b as Ne, d as de, u as ue } from "./convert-C_k4-oaF.js";
|
|
13
|
+
import { n as pe, b as Re, c as Ie, a as Oe, l as ge, m as Ce, q as Me, f as ye, g as Pe, j as ve, h as Ue, d as De, e as he, i as xe, k as Fe, t as Ge, r as be, o as Be, p as Ye, s as ke, v as we, u as We, y as Ve } from "./datetime-BzdN4htO.js";
|
|
14
|
+
import { externalGameLinkResolver as ze, externalPlayerLinkResolver as Ke, externalTeamLinkResolver as Xe, flagResolver as Ze, scrollToTop as He } from "./utils.js";
|
|
15
|
+
import { COLUMNS_FIELD_PLAYERS as Je, COLUMNS_FIELD_PLAYERS_PENALTY as Qe, COLUMNS_FIELD_PLAYERS_TOI as $e, COLUMNS_GOALIES as ea, COLUMNS_PLAYERS_NATIONAL as aa, COLUMNS_SCHEDULE as sa, COLUMNS_SCORING_EFFICIENCY as ta, COLUMNS_STANDINGS_P_2 as ra, COLUMNS_STANDINGS_P_3 as oa, COLUMNS_TEAMS_FAIRPLAY as na, COLUMNS_TEAMS_PENALTY_KILLING as ia, COLUMNS_TEAMS_POWERPLAY as la, COLUMNS_TEAM_ATTENDANCE as Sa } from "./columns.js";
|
|
16
|
+
import { AVAILABLE_TIMEZONES_BY_COUNTRY as Ta, DEFAULT_EXTERNAL_GAME_URL as La, DEFAULT_EXTERNAL_PLAYER_URL as Ea, DEFAULT_EXTERNAL_TEAM_URL as Aa, DEFAULT_PORTRAIT_IMAGE_URL as ca, FLAG_BASE_URL as ma, LAZY_LOADING_STATE_DELAY as Na, LOCALE_FOR_LANG as da, REFRESH_DELAY as ua, SORT_STATE_ASCEND as fa, SORT_STATE_DESCEND as pa, SORT_STATE_ORIGINAL as Ra, VBR_API_BASE_URL as Ia } from "./constants.js";
|
|
17
17
|
const S = {
|
|
18
18
|
locale: {
|
|
19
19
|
type: String,
|
|
@@ -85,117 +85,119 @@ const S = {
|
|
|
85
85
|
install: (a, s = {}) => i({ app: a, ...s })
|
|
86
86
|
};
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
Ta as AVAILABLE_TIMEZONES_BY_COUNTRY,
|
|
89
89
|
m as AdditionalStandingsText,
|
|
90
90
|
N as BaseSelect,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
91
|
+
Je as COLUMNS_FIELD_PLAYERS,
|
|
92
|
+
Qe as COLUMNS_FIELD_PLAYERS_PENALTY,
|
|
93
|
+
$e as COLUMNS_FIELD_PLAYERS_TOI,
|
|
94
|
+
ea as COLUMNS_GOALIES,
|
|
95
|
+
aa as COLUMNS_PLAYERS_NATIONAL,
|
|
96
|
+
sa as COLUMNS_SCHEDULE,
|
|
97
|
+
ta as COLUMNS_SCORING_EFFICIENCY,
|
|
98
|
+
ra as COLUMNS_STANDINGS_P_2,
|
|
99
|
+
oa as COLUMNS_STANDINGS_P_3,
|
|
100
|
+
na as COLUMNS_TEAMS_FAIRPLAY,
|
|
101
|
+
ia as COLUMNS_TEAMS_PENALTY_KILLING,
|
|
102
|
+
la as COLUMNS_TEAMS_POWERPLAY,
|
|
103
|
+
Sa as COLUMNS_TEAM_ATTENDANCE,
|
|
104
|
+
La as DEFAULT_EXTERNAL_GAME_URL,
|
|
105
|
+
Ea as DEFAULT_EXTERNAL_PLAYER_URL,
|
|
106
|
+
Aa as DEFAULT_EXTERNAL_TEAM_URL,
|
|
107
|
+
ca as DEFAULT_PORTRAIT_IMAGE_URL,
|
|
108
|
+
d as DataTable,
|
|
109
|
+
u as ErrorNotice,
|
|
110
|
+
f as ErrorProvider,
|
|
111
|
+
ma as FLAG_BASE_URL,
|
|
112
|
+
p as FetchMoreObserver,
|
|
113
113
|
R as FloatingPanel,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
I as I18NProvider,
|
|
115
|
+
O as Image,
|
|
116
|
+
Q as InvalidSeasonName,
|
|
117
|
+
Na as LAZY_LOADING_STATE_DELAY,
|
|
118
|
+
da as LOCALE_FOR_LANG,
|
|
119
|
+
g as LoadingIndicator,
|
|
120
|
+
C as Paginator,
|
|
121
|
+
ua as REFRESH_DELAY,
|
|
122
122
|
M as ResponsiveTable,
|
|
123
123
|
fa as SORT_STATE_ASCEND,
|
|
124
124
|
pa as SORT_STATE_DESCEND,
|
|
125
|
-
|
|
125
|
+
Ra as SORT_STATE_ORIGINAL,
|
|
126
126
|
y as ScheduleTable,
|
|
127
127
|
P as SeasonSelector,
|
|
128
128
|
v as StatisticsTable,
|
|
129
129
|
U as TimezoneSelector,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
$ as UndefinedColumn,
|
|
131
|
+
Ia as VBR_API_BASE_URL,
|
|
132
|
+
ee as WidgetError,
|
|
133
133
|
pe as addDays,
|
|
134
|
-
|
|
134
|
+
ae as appendTo,
|
|
135
135
|
S as baseProps,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
136
|
+
se as convert,
|
|
137
|
+
te as convertGamePeriodResults,
|
|
138
|
+
Re as convertMinToMinSec,
|
|
139
|
+
Ie as convertMinToSec,
|
|
140
|
+
re as convertPhaseName,
|
|
141
|
+
Oe as convertSecToMin,
|
|
142
|
+
oe as convertTimes,
|
|
143
|
+
ne as convertTimesMinToMinSec,
|
|
144
|
+
ie as convertTimesSecToMin,
|
|
145
145
|
i as createConfig,
|
|
146
146
|
h as createI18n,
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
ge as currentWeek,
|
|
148
|
+
Ce as currentWeekStartEnd,
|
|
149
149
|
E as default,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
Me as endOfMonth,
|
|
151
|
+
ze as externalGameLinkResolver,
|
|
152
|
+
Ke as externalPlayerLinkResolver,
|
|
153
|
+
Xe as externalTeamLinkResolver,
|
|
154
154
|
z as fetchVBRData,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
Ze as flagResolver,
|
|
156
|
+
ye as format,
|
|
157
|
+
le as gameDateTime,
|
|
158
158
|
L as gameProps,
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
Se as gameResult,
|
|
160
|
+
Pe as getLocalTimezone,
|
|
161
161
|
x as i18n,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
ve as isAfter,
|
|
163
|
+
Ue as isBefore,
|
|
164
|
+
De as isBetween,
|
|
165
|
+
he as isSame,
|
|
166
|
+
xe as isSameOrBefore,
|
|
167
|
+
Fe as isToday,
|
|
168
|
+
_e as localeSort,
|
|
169
|
+
Ge as max,
|
|
170
|
+
be as min,
|
|
171
|
+
Be as offsetName,
|
|
172
|
+
Te as playerName,
|
|
173
173
|
T as playerStatsProps,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
174
|
+
Le as rawConvert,
|
|
175
|
+
Ee as scheduleOptionalRowClass,
|
|
176
|
+
He as scrollToTop,
|
|
177
|
+
Ae as sortByDomNode,
|
|
178
|
+
ce as sortGames,
|
|
179
|
+
Ye as startOfMonth,
|
|
180
|
+
ke as subtractDays,
|
|
181
|
+
me as teamName,
|
|
182
|
+
Ne as teamOpponent,
|
|
183
|
+
de as teamResultType,
|
|
183
184
|
_ as teamStatsProps,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
we as templateReplacer,
|
|
186
|
+
We as toKebabCase,
|
|
187
|
+
ue as upperCase,
|
|
187
188
|
F as useAdditionalText,
|
|
188
189
|
G as useColumns,
|
|
189
190
|
b as useError,
|
|
190
191
|
B as useErrorProvider,
|
|
191
192
|
Y as useI18n,
|
|
193
|
+
K as useId,
|
|
192
194
|
k as useLazyLoadingState,
|
|
193
195
|
w as useMainClass,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
X as usePage,
|
|
197
|
+
Z as useScrollToGameDate,
|
|
198
|
+
H as useServices,
|
|
197
199
|
W as useSort,
|
|
198
|
-
|
|
200
|
+
q as useVisibilityChange,
|
|
199
201
|
V as validateColumnsName,
|
|
200
|
-
|
|
202
|
+
Ve as yearToNow
|
|
201
203
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
4
|
-
* (c)
|
|
3
|
+
* version: v2.9.0 - 09/01/2025, 14:35:52
|
|
4
|
+
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
@@ -716,13 +716,14 @@ export {
|
|
|
716
716
|
Ne as h,
|
|
717
717
|
Pe as i,
|
|
718
718
|
xe as j,
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
719
|
+
oe as k,
|
|
720
|
+
Yt as l,
|
|
721
|
+
te as m,
|
|
722
722
|
R as n,
|
|
723
723
|
Ie as o,
|
|
724
|
-
|
|
725
|
-
|
|
724
|
+
Oe as p,
|
|
725
|
+
Te as q,
|
|
726
|
+
N as r,
|
|
726
727
|
_e as u,
|
|
727
728
|
de as v,
|
|
728
729
|
Ee as w
|
package/dist/utils.js
CHANGED
|
@@ -1,77 +1,78 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
4
|
-
* (c)
|
|
3
|
+
* version: v2.9.0 - 09/01/2025, 14:35:52
|
|
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 _, U as E, W as L, m as U, c as
|
|
9
|
-
import { v as
|
|
10
|
-
import { n as
|
|
8
|
+
import { I as _, U as E, W as L, m as U, c as y, i as S, k as g, e as A, f as M, h as N, g as I, a as w, l as x, p as D, r as k, s as b, n as h, j as B, t as G, b as C, d as O, u as W } from "./convert-C_k4-oaF.js";
|
|
9
|
+
import { v as a } from "./datetime-BzdN4htO.js";
|
|
10
|
+
import { n as P, b as X, c as $, a as j, l as V, m as q, q as z, f as J, g as K, j as Y, h as Z, d as H, e as Q, i as ee, k as se, t as oe, r as ae, o as te, p as re, s as ne, u as ie, y as ce } from "./datetime-BzdN4htO.js";
|
|
11
11
|
import { DEFAULT_EXTERNAL_GAME_URL as r, DEFAULT_EXTERNAL_TEAM_URL as n, DEFAULT_EXTERNAL_PLAYER_URL as i, FLAG_BASE_URL as c } from "./constants.js";
|
|
12
|
-
const f = (
|
|
13
|
-
const s = t("gameResolver") ||
|
|
14
|
-
return typeof s == "function" ? s(e) : encodeURI(s ?
|
|
15
|
-
}, R = (
|
|
16
|
-
const s = t("teamResolver") ||
|
|
17
|
-
return typeof s == "function" ? s(e) : encodeURI(s ?
|
|
18
|
-
}, T = (
|
|
19
|
-
const s = t("playerResolver") ||
|
|
20
|
-
return typeof s == "function" ? s(e) : encodeURI(s ?
|
|
21
|
-
},
|
|
12
|
+
const f = (o, e = {}) => {
|
|
13
|
+
const s = t("gameResolver") || o;
|
|
14
|
+
return typeof s == "function" ? s(e) : encodeURI(s ? a(s, e) : a(r, e));
|
|
15
|
+
}, R = (o, e = {}) => {
|
|
16
|
+
const s = t("teamResolver") || o;
|
|
17
|
+
return typeof s == "function" ? s(e) : encodeURI(s ? a(s, e) : a(n, e));
|
|
18
|
+
}, T = (o, e = {}) => {
|
|
19
|
+
const s = t("playerResolver") || o;
|
|
20
|
+
return typeof s == "function" ? s(e) : encodeURI(s ? a(s, e) : a(i, e));
|
|
21
|
+
}, d = (o, e = "1x1") => `${c}/flag:${o}-${e}.svg`, t = (o = "") => {
|
|
22
22
|
var e;
|
|
23
|
-
return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[
|
|
24
|
-
},
|
|
23
|
+
return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[o];
|
|
24
|
+
}, u = () => {
|
|
25
25
|
window.scrollTo(0, 0);
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
28
|
_ as InvalidSeasonName,
|
|
29
29
|
E as UndefinedColumn,
|
|
30
30
|
L as WidgetError,
|
|
31
|
-
|
|
31
|
+
P as addDays,
|
|
32
32
|
U as appendTo,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
y as convert,
|
|
34
|
+
S as convertGamePeriodResults,
|
|
35
|
+
X as convertMinToMinSec,
|
|
36
|
+
$ as convertMinToSec,
|
|
37
|
+
g as convertPhaseName,
|
|
38
|
+
j as convertSecToMin,
|
|
39
39
|
A as convertTimes,
|
|
40
40
|
M as convertTimesMinToMinSec,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
N as convertTimesSecToMin,
|
|
42
|
+
V as currentWeek,
|
|
43
|
+
q as currentWeekStartEnd,
|
|
44
|
+
z as endOfMonth,
|
|
45
45
|
f as externalGameLinkResolver,
|
|
46
46
|
T as externalPlayerLinkResolver,
|
|
47
47
|
R as externalTeamLinkResolver,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
d as flagResolver,
|
|
49
|
+
J as format,
|
|
50
|
+
I as gameDateTime,
|
|
51
51
|
w as gameResult,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
K as getLocalTimezone,
|
|
53
|
+
Y as isAfter,
|
|
54
|
+
Z as isBefore,
|
|
55
|
+
H as isBetween,
|
|
56
|
+
Q as isSame,
|
|
57
|
+
ee as isSameOrBefore,
|
|
58
|
+
se as isToday,
|
|
59
59
|
x as localeSort,
|
|
60
|
-
|
|
60
|
+
oe as max,
|
|
61
61
|
ae as min,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
te as offsetName,
|
|
63
|
+
D as playerName,
|
|
64
|
+
k as rawConvert,
|
|
65
65
|
b as scheduleOptionalRowClass,
|
|
66
|
-
|
|
67
|
-
h as
|
|
68
|
-
|
|
69
|
-
re as
|
|
66
|
+
u as scrollToTop,
|
|
67
|
+
h as sortByDomNode,
|
|
68
|
+
B as sortGames,
|
|
69
|
+
re as startOfMonth,
|
|
70
|
+
ne as subtractDays,
|
|
70
71
|
G as teamName,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
C as teamOpponent,
|
|
73
|
+
O as teamResultType,
|
|
74
|
+
a as templateReplacer,
|
|
75
|
+
ie as toKebabCase,
|
|
76
|
+
W as upperCase,
|
|
77
|
+
ce as yearToNow
|
|
77
78
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Data visualization for MJSZ VBR",
|
|
4
4
|
"author": "Ákos Stegner <akos.stegner@gmail.com>",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.9.0",
|
|
7
7
|
"homepage": "https://api.icehockey.hu/widgets/docs/v2/",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dayjs": "^1.11.12",
|
|
40
40
|
"ramda": "^0.30.1",
|
|
41
41
|
"vue": "^3.4.37",
|
|
42
|
-
"@mjsz-vbr-elements/shared": "^2.
|
|
42
|
+
"@mjsz-vbr-elements/shared": "^2.9.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vitejs/plugin-vue": "^5.1.2",
|