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