@mjsz-vbr-elements/core 2.3.3 → 2.3.4
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-B3vGuQ_r.js → AdditionalStandingsText-BcHECtG0.js} +2 -2
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{convert-W8NizgmI.js → convert-HKQt4kO3.js} +96 -82
- package/dist/datetime-BD_lSSC2.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 +70 -69
- package/dist/useAdditionalText-Ta-GUW7T.js +1 -1
- package/dist/utils.js +41 -40
- 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.
|
|
3
|
+
* version: v2.3.4 - 12/03/2024, 09:56:57
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { m
|
|
9
|
-
import { c as D, i as x, h
|
|
8
|
+
import { m, c as p, b as N, d as f, e as u, g as R, I as d, _ as g, k as C, a as I, j as M, f as O, h as y, i as P, l as v } from "./AdditionalStandingsText-BcHECtG0.js";
|
|
9
|
+
import { c as D, i as x, h, u as F, b as G, a as b, d as B, e as Y, f as w, g as k, v as V } from "./useAdditionalText-Ta-GUW7T.js";
|
|
10
10
|
import { fetchVBRData as z, usePage as K, useScrollToGameDate as X, useServices as Z, useVisibilityChange as j } from "./composables.js";
|
|
11
11
|
import "vue";
|
|
12
|
-
import { I as J, U as q, W as Q,
|
|
13
|
-
import { b as pe, c as
|
|
14
|
-
import { externalGameLinkResolver as
|
|
15
|
-
import { COLUMNS_FIELD_PLAYERS as Ge, COLUMNS_FIELD_PLAYERS_PENALTY as
|
|
16
|
-
import { AVAILABLE_TIMEZONES_BY_COUNTRY as
|
|
12
|
+
import { I as J, U as q, W as Q, k as $, c as ee, j as ae, e as se, f as te, h as re, g as oe, a as ne, l as ie, p as le, r as Se, s as _e, i as Te, t as Ee, b as Le, d as Ae, u as ce } from "./convert-HKQt4kO3.js";
|
|
13
|
+
import { b as pe, c as Ne, a as fe, f as ue, g as Re, d as de, e as ge, i as Ce, o as Ie, h as Me, t as Oe, y as ye } from "./datetime-BD_lSSC2.js";
|
|
14
|
+
import { externalGameLinkResolver as ve, externalPlayerLinkResolver as Ue, externalTeamLinkResolver as De, flagResolver as xe, scrollToTop as he } from "./utils.js";
|
|
15
|
+
import { COLUMNS_FIELD_PLAYERS as Ge, COLUMNS_FIELD_PLAYERS_PENALTY as be, COLUMNS_GOALIES as Be, COLUMNS_SCHEDULE as Ye, COLUMNS_SCORING_EFFICIENCY as we, COLUMNS_STANDINGS_P_2 as ke, COLUMNS_STANDINGS_P_3 as Ve, COLUMNS_TEAMS_FAIRPLAY as We, COLUMNS_TEAMS_PENALTY_KILLING as ze, COLUMNS_TEAMS_POWERPLAY as Ke, COLUMNS_TEAM_ATTENDANCE as Xe } from "./columns.js";
|
|
16
|
+
import { AVAILABLE_TIMEZONES_BY_COUNTRY as je, DEFAULT_EXTERNAL_GAME_URL as He, DEFAULT_EXTERNAL_PLAYER_URL as Je, DEFAULT_EXTERNAL_TEAM_URL as qe, DEFAULT_PORTRAIT_IMAGE_URL as Qe, FLAG_BASE_URL as $e, LAZY_LOADING_STATE_DELAY as ea, LOCALE_FOR_LANG as aa, REFRESH_DELAY as sa, SORT_STATE_ASCEND as ta, SORT_STATE_DESCEND as ra, SORT_STATE_ORIGINAL as oa, VBR_API_BASE_URL as na } from "./constants.js";
|
|
17
17
|
const S = {
|
|
18
18
|
locale: {
|
|
19
19
|
type: String,
|
|
@@ -74,10 +74,10 @@ const S = {
|
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: !1
|
|
76
76
|
}
|
|
77
|
-
}, i = ({ app: a = null, modules:
|
|
78
|
-
if (window.__MJSZ_VBR_WIDGET__ = { apiKey:
|
|
77
|
+
}, i = ({ app: a = null, modules: s = [], apiKey: t, gameResolver: r, teamResolver: o, playerResolver: n }) => {
|
|
78
|
+
if (window.__MJSZ_VBR_WIDGET__ = { apiKey: t, gameResolver: r, teamResolver: o, playerResolver: n }, s.length === 0)
|
|
79
79
|
throw new Error("At least one module must be set");
|
|
80
|
-
|
|
80
|
+
s.forEach((e) => {
|
|
81
81
|
if (a)
|
|
82
82
|
return a.use(e);
|
|
83
83
|
if (e.register)
|
|
@@ -85,95 +85,96 @@ const S = {
|
|
|
85
85
|
e == null || e.install();
|
|
86
86
|
});
|
|
87
87
|
}, L = {
|
|
88
|
-
install: (a,
|
|
88
|
+
install: (a, s = {}) => i({ app: a, ...s })
|
|
89
89
|
};
|
|
90
90
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
je as AVAILABLE_TIMEZONES_BY_COUNTRY,
|
|
92
|
+
m as AdditionalStandingsText,
|
|
93
|
+
p as BaseSelect,
|
|
94
94
|
Ge as COLUMNS_FIELD_PLAYERS,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
95
|
+
be as COLUMNS_FIELD_PLAYERS_PENALTY,
|
|
96
|
+
Be as COLUMNS_GOALIES,
|
|
97
|
+
Ye as COLUMNS_SCHEDULE,
|
|
98
|
+
we as COLUMNS_SCORING_EFFICIENCY,
|
|
99
|
+
ke as COLUMNS_STANDINGS_P_2,
|
|
100
|
+
Ve as COLUMNS_STANDINGS_P_3,
|
|
101
|
+
We as COLUMNS_TEAMS_FAIRPLAY,
|
|
102
|
+
ze as COLUMNS_TEAMS_PENALTY_KILLING,
|
|
103
|
+
Ke as COLUMNS_TEAMS_POWERPLAY,
|
|
104
|
+
Xe as COLUMNS_TEAM_ATTENDANCE,
|
|
105
|
+
He as DEFAULT_EXTERNAL_GAME_URL,
|
|
106
|
+
Je as DEFAULT_EXTERNAL_PLAYER_URL,
|
|
107
|
+
qe as DEFAULT_EXTERNAL_TEAM_URL,
|
|
108
|
+
Qe as DEFAULT_PORTRAIT_IMAGE_URL,
|
|
109
|
+
N as DataTable,
|
|
110
|
+
f as ErrorNotice,
|
|
111
111
|
u as ErrorProvider,
|
|
112
|
-
|
|
112
|
+
$e as FLAG_BASE_URL,
|
|
113
113
|
R as FloatingPanel,
|
|
114
114
|
d as I18NProvider,
|
|
115
115
|
g as Image,
|
|
116
116
|
J as InvalidSeasonName,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
ea as LAZY_LOADING_STATE_DELAY,
|
|
118
|
+
aa as LOCALE_FOR_LANG,
|
|
119
119
|
C as LoadingIndicator,
|
|
120
120
|
I as Paginator,
|
|
121
|
-
|
|
121
|
+
sa as REFRESH_DELAY,
|
|
122
122
|
M as ResponsiveTable,
|
|
123
123
|
ta as SORT_STATE_ASCEND,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
ra as SORT_STATE_DESCEND,
|
|
125
|
+
oa as SORT_STATE_ORIGINAL,
|
|
126
126
|
O as ScheduleTable,
|
|
127
127
|
y as SeasonSelector,
|
|
128
128
|
P as StatisticsTable,
|
|
129
|
-
|
|
129
|
+
v as TimezoneSelector,
|
|
130
130
|
q as UndefinedColumn,
|
|
131
|
-
|
|
131
|
+
na as VBR_API_BASE_URL,
|
|
132
132
|
Q as WidgetError,
|
|
133
133
|
$ as appendTo,
|
|
134
134
|
S as baseProps,
|
|
135
135
|
ee as convert,
|
|
136
136
|
pe as convertMinToMinSec,
|
|
137
|
-
|
|
137
|
+
Ne as convertMinToSec,
|
|
138
|
+
ae as convertPhaseName,
|
|
138
139
|
fe as convertSecToMin,
|
|
139
|
-
|
|
140
|
+
se as convertTimes,
|
|
140
141
|
te as convertTimesMinToMinSec,
|
|
141
|
-
|
|
142
|
+
re as convertTimesSecToMin,
|
|
142
143
|
i as createConfig,
|
|
143
144
|
D as createI18n,
|
|
144
145
|
L as default,
|
|
145
|
-
|
|
146
|
+
ve as externalGameLinkResolver,
|
|
146
147
|
Ue as externalPlayerLinkResolver,
|
|
147
|
-
|
|
148
|
+
De as externalTeamLinkResolver,
|
|
148
149
|
z as fetchVBRData,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
xe as flagResolver,
|
|
151
|
+
ue as format,
|
|
152
|
+
oe as gameDateTime,
|
|
152
153
|
E as gameProps,
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
ne as gameResult,
|
|
155
|
+
Re as getLocalTimezone,
|
|
155
156
|
x as i18n,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
de as isBetween,
|
|
158
|
+
ge as isSame,
|
|
159
|
+
Ce as isSameOrBefore,
|
|
160
|
+
ie as localeSort,
|
|
161
|
+
Ie as offsetName,
|
|
162
|
+
le as playerName,
|
|
162
163
|
T as playerStatsProps,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
Se as rawConvert,
|
|
165
|
+
_e as scheduleOptionalRowClass,
|
|
166
|
+
he as scrollToTop,
|
|
167
|
+
Te as sortGames,
|
|
168
|
+
Ee as teamName,
|
|
169
|
+
Le as teamOpponent,
|
|
170
|
+
Ae as teamResultType,
|
|
170
171
|
_ as teamStatsProps,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
172
|
+
Me as templateReplacer,
|
|
173
|
+
Oe as toKebabCase,
|
|
174
|
+
ce as upperCase,
|
|
175
|
+
h as useAdditionalText,
|
|
176
|
+
F as useColumns,
|
|
177
|
+
G as useError,
|
|
177
178
|
b as useErrorProvider,
|
|
178
179
|
B as useI18n,
|
|
179
180
|
Y as useLazyLoadingState,
|
|
@@ -184,5 +185,5 @@ export {
|
|
|
184
185
|
k as useSort,
|
|
185
186
|
j as useVisibilityChange,
|
|
186
187
|
V as validateColumnsName,
|
|
187
|
-
|
|
188
|
+
ye as yearToNow
|
|
188
189
|
};
|
package/dist/utils.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.3.
|
|
3
|
+
* version: v2.3.4 - 12/03/2024, 09:56:57
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { I as p, U as L, W as E,
|
|
9
|
-
import { h as
|
|
10
|
-
import { b as
|
|
11
|
-
import { DEFAULT_EXTERNAL_GAME_URL as
|
|
12
|
-
const f = (
|
|
13
|
-
const o =
|
|
14
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
15
|
-
},
|
|
16
|
-
const o =
|
|
17
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
18
|
-
},
|
|
19
|
-
const o =
|
|
20
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
21
|
-
}, v = (
|
|
8
|
+
import { I as p, U as L, W as E, k as U, c as g, j as S, e as A, f as M, h as y, g as I, a as N, l as w, p as x, r as b, s as C, i as D, t as G, b as h, d as k, u as B } from "./convert-HKQt4kO3.js";
|
|
9
|
+
import { h as a } from "./datetime-BD_lSSC2.js";
|
|
10
|
+
import { b as O, c as P, a as W, f as X, g as $, d as V, e as j, i as z, o as J, t as K, y as Y } from "./datetime-BD_lSSC2.js";
|
|
11
|
+
import { DEFAULT_EXTERNAL_GAME_URL as r, DEFAULT_EXTERNAL_TEAM_URL as t, DEFAULT_EXTERNAL_PLAYER_URL as c, FLAG_BASE_URL as i } from "./constants.js";
|
|
12
|
+
const f = (s, e = {}) => {
|
|
13
|
+
const o = n("gameResolver") || s;
|
|
14
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? a(o, e) : a(r, e));
|
|
15
|
+
}, m = (s, e = {}) => {
|
|
16
|
+
const o = n("teamResolver") || s;
|
|
17
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? a(o, e) : a(t, e));
|
|
18
|
+
}, T = (s, e = {}) => {
|
|
19
|
+
const o = n("playerResolver") || s;
|
|
20
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? a(o, e) : a(c, e));
|
|
21
|
+
}, v = (s, e = "1x1") => `${i}/flag:${s}-${e}.svg`, n = (s = "") => {
|
|
22
22
|
var e;
|
|
23
|
-
return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[
|
|
23
|
+
return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[s];
|
|
24
24
|
}, u = () => {
|
|
25
25
|
window.scrollTo(0, 0);
|
|
26
26
|
};
|
|
@@ -30,35 +30,36 @@ export {
|
|
|
30
30
|
E as WidgetError,
|
|
31
31
|
U as appendTo,
|
|
32
32
|
g as convert,
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
O as convertMinToMinSec,
|
|
34
|
+
P as convertMinToSec,
|
|
35
|
+
S as convertPhaseName,
|
|
35
36
|
W as convertSecToMin,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
A as convertTimes,
|
|
38
|
+
M as convertTimesMinToMinSec,
|
|
39
|
+
y as convertTimesSecToMin,
|
|
39
40
|
f as externalGameLinkResolver,
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
T as externalPlayerLinkResolver,
|
|
42
|
+
m as externalTeamLinkResolver,
|
|
42
43
|
v as flagResolver,
|
|
43
44
|
X as format,
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
I as gameDateTime,
|
|
46
|
+
N as gameResult,
|
|
46
47
|
$ as getLocalTimezone,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
V as isBetween,
|
|
49
|
+
j as isSame,
|
|
50
|
+
z as isSameOrBefore,
|
|
50
51
|
w as localeSort,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
J as offsetName,
|
|
53
|
+
x as playerName,
|
|
54
|
+
b as rawConvert,
|
|
55
|
+
C as scheduleOptionalRowClass,
|
|
55
56
|
u as scrollToTop,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
D as sortGames,
|
|
58
|
+
G as teamName,
|
|
59
|
+
h as teamOpponent,
|
|
60
|
+
k as teamResultType,
|
|
61
|
+
a as templateReplacer,
|
|
62
|
+
K as toKebabCase,
|
|
63
|
+
B as upperCase,
|
|
64
|
+
Y as yearToNow
|
|
64
65
|
};
|
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.3.
|
|
6
|
+
"version": "2.3.4",
|
|
7
7
|
"homepage": "https://api.icehockey.hu/widgets/docs/v2/",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dayjs": "^1.11.10",
|
|
39
39
|
"ramda": "^0.29.1",
|
|
40
40
|
"vue": "^3.4.19",
|
|
41
|
-
"@mjsz-vbr-elements/shared": "^2.3.
|
|
41
|
+
"@mjsz-vbr-elements/shared": "^2.3.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@vitejs/plugin-vue": "^5.0.4",
|