@mjsz-vbr-elements/core 2.2.4 → 2.2.6
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-NpkyVKB_.js → AdditionalStandingsText-KDfNU6wm.js} +456 -442
- package/dist/columns.js +1 -1
- package/dist/components.js +3 -3
- package/dist/composables.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{convert-rWfB71vI.js → convert-E2kZRWM3.js} +65 -61
- package/dist/datetime--bMmvxSM.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 +58 -57
- package/dist/useAdditionalText-EldMke4U.js +1 -1
- package/dist/utils.js +29 -28
- 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.2.
|
|
3
|
+
* version: v2.2.6 - 22/02/2024, 22:41:04
|
|
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, c as
|
|
8
|
+
import { m as p, c as m, b as f, d as N, 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 U } from "./AdditionalStandingsText-KDfNU6wm.js";
|
|
9
9
|
import { c as D, i as x, h as F, u as G, b as h, a as b, d as B, e as Y, f as w, g as k, v as V } from "./useAdditionalText-EldMke4U.js";
|
|
10
|
-
import { fetchVBRData as z, usePage as K, useScrollToGameDate as X, useServices as Z, useVisibilityChange as
|
|
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
|
|
14
|
-
import { externalGameLinkResolver as
|
|
15
|
-
import { COLUMNS_FIELD_PLAYERS as
|
|
16
|
-
import { AVAILABLE_TIMEZONES_BY_COUNTRY as
|
|
12
|
+
import { I as J, U as q, W as Q, j as $, c as ee, e as ae, f as te, h as se, g as re, a as oe, l as ne, p as ie, r as le, s as Se, i as _e, t as Te, b as Ee, d as Le, u as Ae } from "./convert-E2kZRWM3.js";
|
|
13
|
+
import { b as pe, c as me, a as fe, f as Ne, g as ue, d as Re, e as de, i as ge, o as Ce, h as Ie, t as Me, y as Oe } from "./datetime--bMmvxSM.js";
|
|
14
|
+
import { externalGameLinkResolver as Pe, externalPlayerLinkResolver as Ue, externalTeamLinkResolver as ve, flagResolver as De, scrollToTop as xe } from "./utils.js";
|
|
15
|
+
import { COLUMNS_FIELD_PLAYERS as Ge, COLUMNS_FIELD_PLAYERS_PENALTY as he, COLUMNS_GOALIES as be, COLUMNS_SCHEDULE as Be, COLUMNS_SCORING_EFFICIENCY as Ye, COLUMNS_STANDINGS_P_2 as we, COLUMNS_STANDINGS_P_3 as ke, COLUMNS_TEAMS_FAIRPLAY as Ve, COLUMNS_TEAMS_PENALTY_KILLING as We, COLUMNS_TEAMS_POWERPLAY as ze, COLUMNS_TEAM_ATTENDANCE as Ke } from "./columns.js";
|
|
16
|
+
import { AVAILABLE_TIMEZONES_BY_COUNTRY as Ze, DEFAULT_EXTERNAL_GAME_URL as je, DEFAULT_EXTERNAL_PLAYER_URL as He, DEFAULT_EXTERNAL_TEAM_URL as Je, DEFAULT_PORTRAIT_IMAGE_URL as qe, FLAG_BASE_URL as Qe, LAZY_LOADING_STATE_DELAY as $e, LOCALE_FOR_LANG as ea, REFRESH_DELAY as aa, SORT_STATE_ASCEND as ta, SORT_STATE_DESCEND as sa, SORT_STATE_ORIGINAL as ra, VBR_API_BASE_URL as oa } from "./constants.js";
|
|
17
17
|
const S = {
|
|
18
18
|
locale: {
|
|
19
19
|
type: String,
|
|
@@ -88,88 +88,89 @@ const S = {
|
|
|
88
88
|
install: (a, t = {}) => i({ app: a, ...t })
|
|
89
89
|
};
|
|
90
90
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
Ze as AVAILABLE_TIMEZONES_BY_COUNTRY,
|
|
92
|
+
p as AdditionalStandingsText,
|
|
93
|
+
m as BaseSelect,
|
|
94
|
+
Ge as COLUMNS_FIELD_PLAYERS,
|
|
95
|
+
he as COLUMNS_FIELD_PLAYERS_PENALTY,
|
|
96
|
+
be as COLUMNS_GOALIES,
|
|
97
|
+
Be as COLUMNS_SCHEDULE,
|
|
98
|
+
Ye as COLUMNS_SCORING_EFFICIENCY,
|
|
99
|
+
we as COLUMNS_STANDINGS_P_2,
|
|
100
|
+
ke as COLUMNS_STANDINGS_P_3,
|
|
101
|
+
Ve as COLUMNS_TEAMS_FAIRPLAY,
|
|
102
|
+
We as COLUMNS_TEAMS_PENALTY_KILLING,
|
|
103
|
+
ze as COLUMNS_TEAMS_POWERPLAY,
|
|
104
|
+
Ke as COLUMNS_TEAM_ATTENDANCE,
|
|
105
|
+
je as DEFAULT_EXTERNAL_GAME_URL,
|
|
106
106
|
He as DEFAULT_EXTERNAL_PLAYER_URL,
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
Je as DEFAULT_EXTERNAL_TEAM_URL,
|
|
108
|
+
qe as DEFAULT_PORTRAIT_IMAGE_URL,
|
|
109
109
|
f as DataTable,
|
|
110
110
|
N as ErrorNotice,
|
|
111
111
|
u as ErrorProvider,
|
|
112
|
-
|
|
112
|
+
Qe 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
|
+
$e as LAZY_LOADING_STATE_DELAY,
|
|
118
|
+
ea as LOCALE_FOR_LANG,
|
|
119
119
|
C as LoadingIndicator,
|
|
120
120
|
I as Paginator,
|
|
121
|
-
|
|
121
|
+
aa as REFRESH_DELAY,
|
|
122
122
|
M as ResponsiveTable,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
ta as SORT_STATE_ASCEND,
|
|
124
|
+
sa as SORT_STATE_DESCEND,
|
|
125
|
+
ra as SORT_STATE_ORIGINAL,
|
|
126
|
+
O as ScheduleTable,
|
|
127
|
+
y as SeasonSelector,
|
|
128
128
|
P as StatisticsTable,
|
|
129
129
|
U as TimezoneSelector,
|
|
130
130
|
q as UndefinedColumn,
|
|
131
|
-
|
|
131
|
+
oa 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
|
me as convertMinToSec,
|
|
138
|
-
|
|
138
|
+
fe as convertSecToMin,
|
|
139
139
|
ae as convertTimes,
|
|
140
140
|
te as convertTimesMinToMinSec,
|
|
141
141
|
se as convertTimesSecToMin,
|
|
142
142
|
i as createConfig,
|
|
143
143
|
D as createI18n,
|
|
144
144
|
L as default,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
Pe as externalGameLinkResolver,
|
|
146
|
+
Ue as externalPlayerLinkResolver,
|
|
147
|
+
ve as externalTeamLinkResolver,
|
|
148
148
|
z as fetchVBRData,
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
De as flagResolver,
|
|
150
|
+
Ne as format,
|
|
151
151
|
re as gameDateTime,
|
|
152
152
|
E as gameProps,
|
|
153
153
|
oe as gameResult,
|
|
154
|
-
|
|
154
|
+
ue as getLocalTimezone,
|
|
155
155
|
x as i18n,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
Re as isBetween,
|
|
157
|
+
de as isSame,
|
|
158
|
+
ge as isSameOrBefore,
|
|
159
159
|
ne as localeSort,
|
|
160
|
-
|
|
160
|
+
Ce as offsetName,
|
|
161
161
|
ie as playerName,
|
|
162
162
|
T as playerStatsProps,
|
|
163
163
|
le as rawConvert,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
_e as
|
|
167
|
-
Te as
|
|
168
|
-
Ee as
|
|
164
|
+
Se as scheduleOptionalRowClass,
|
|
165
|
+
xe as scrollToTop,
|
|
166
|
+
_e as sortGames,
|
|
167
|
+
Te as teamName,
|
|
168
|
+
Ee as teamOpponent,
|
|
169
|
+
Le as teamResultType,
|
|
169
170
|
_ as teamStatsProps,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
Ie as templateReplacer,
|
|
172
|
+
Me as toKebabCase,
|
|
173
|
+
Ae as upperCase,
|
|
173
174
|
F as useAdditionalText,
|
|
174
175
|
G as useColumns,
|
|
175
176
|
h as useError,
|
|
@@ -181,7 +182,7 @@ export {
|
|
|
181
182
|
X as useScrollToGameDate,
|
|
182
183
|
Z as useServices,
|
|
183
184
|
k as useSort,
|
|
184
|
-
|
|
185
|
+
j as useVisibilityChange,
|
|
185
186
|
V as validateColumnsName,
|
|
186
|
-
|
|
187
|
+
Oe as yearToNow
|
|
187
188
|
};
|
package/dist/utils.js
CHANGED
|
@@ -1,63 +1,64 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.6 - 22/02/2024, 22:41:04
|
|
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
|
|
9
|
-
import { h as
|
|
10
|
-
import { b as k, c as
|
|
11
|
-
import { DEFAULT_EXTERNAL_GAME_URL as
|
|
12
|
-
const
|
|
13
|
-
const o =
|
|
14
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
8
|
+
import { I as p, U as L, W as E, j as U, c as g, e as S, f as A, h as M, g as y, a as I, l as w, p as N, r as x, s as b, i as C, t as D, b as G, d as B, u as F } from "./convert-E2kZRWM3.js";
|
|
9
|
+
import { h as s } from "./datetime--bMmvxSM.js";
|
|
10
|
+
import { b as k, c as O, a as W, f as X, g as $, d as P, e as V, i as j, o as z, t as J, y as K } from "./datetime--bMmvxSM.js";
|
|
11
|
+
import { DEFAULT_EXTERNAL_GAME_URL as t, DEFAULT_EXTERNAL_TEAM_URL as a, DEFAULT_EXTERNAL_PLAYER_URL as i, FLAG_BASE_URL as c } from "./constants.js";
|
|
12
|
+
const f = (n, e = {}) => {
|
|
13
|
+
const o = r("gameResolver") || n;
|
|
14
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? s(o, e) : s(t, e));
|
|
15
15
|
}, T = (n, e = {}) => {
|
|
16
|
-
const o =
|
|
17
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
16
|
+
const o = r("teamResolver") || n;
|
|
17
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? s(o, e) : s(a, e));
|
|
18
18
|
}, m = (n, e = {}) => {
|
|
19
|
-
const o =
|
|
20
|
-
return typeof o == "function" ? o(e) : encodeURI(o ?
|
|
21
|
-
}, v = (n, e = "1x1") => `${c}/flag:${n}-${e}.svg`,
|
|
19
|
+
const o = r("playerResolver") || n;
|
|
20
|
+
return typeof o == "function" ? o(e) : encodeURI(o ? s(o, e) : s(i, e));
|
|
21
|
+
}, v = (n, e = "1x1") => `${c}/flag:${n}-${e}.svg`, r = (n = "") => {
|
|
22
22
|
var e;
|
|
23
23
|
return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[n];
|
|
24
24
|
}, u = () => {
|
|
25
25
|
window.scrollTo(0, 0);
|
|
26
26
|
};
|
|
27
27
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
p as InvalidSeasonName,
|
|
29
|
+
L as UndefinedColumn,
|
|
30
30
|
E as WidgetError,
|
|
31
31
|
U as appendTo,
|
|
32
32
|
g as convert,
|
|
33
33
|
k as convertMinToMinSec,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
O as convertMinToSec,
|
|
35
|
+
W as convertSecToMin,
|
|
36
36
|
S as convertTimes,
|
|
37
37
|
A as convertTimesMinToMinSec,
|
|
38
38
|
M as convertTimesSecToMin,
|
|
39
|
-
|
|
39
|
+
f as externalGameLinkResolver,
|
|
40
40
|
m as externalPlayerLinkResolver,
|
|
41
41
|
T as externalTeamLinkResolver,
|
|
42
42
|
v as flagResolver,
|
|
43
|
-
|
|
43
|
+
X as format,
|
|
44
44
|
y as gameDateTime,
|
|
45
45
|
I as gameResult,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
$ as getLocalTimezone,
|
|
47
|
+
P as isBetween,
|
|
48
|
+
V as isSame,
|
|
49
|
+
j as isSameOrBefore,
|
|
50
|
+
w as localeSort,
|
|
51
51
|
z as offsetName,
|
|
52
|
-
|
|
52
|
+
N as playerName,
|
|
53
53
|
x as rawConvert,
|
|
54
|
+
b as scheduleOptionalRowClass,
|
|
54
55
|
u as scrollToTop,
|
|
55
|
-
|
|
56
|
+
C as sortGames,
|
|
56
57
|
D as teamName,
|
|
57
58
|
G as teamOpponent,
|
|
58
59
|
B as teamResultType,
|
|
59
|
-
|
|
60
|
+
s as templateReplacer,
|
|
60
61
|
J as toKebabCase,
|
|
61
|
-
|
|
62
|
+
F as upperCase,
|
|
62
63
|
K as yearToNow
|
|
63
64
|
};
|
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.2.
|
|
6
|
+
"version": "2.2.6",
|
|
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.4.3",
|
|
41
|
-
"@mjsz-vbr-elements/shared": "^2.2.
|
|
41
|
+
"@mjsz-vbr-elements/shared": "^2.2.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@vitejs/plugin-vue": "^5.0.2",
|