@mjsz-vbr-elements/core 2.1.10 → 2.2.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/SeasonSelector-hqWIAEq6.js +2470 -0
- package/dist/columns.js +1 -1
- package/dist/components.js +22 -2462
- package/dist/composables.js +55 -59
- package/dist/constants.js +1 -1
- package/dist/{convert-18c8bb80.js → convert-PMHuZhPy.js} +113 -132
- package/dist/{datetime-2fb02df2.js → datetime-EyEBo0-h.js} +288 -294
- 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 +113 -108
- package/dist/useSort-WcJ_BIws.js +742 -0
- package/dist/utils.js +4 -4
- package/package.json +6 -7
- package/dist/useSort-f443338c.js +0 -745
package/dist/index.iife.js.br
CHANGED
|
Binary file
|
package/dist/index.iife.js.gz
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.2.0 - 04/01/2024, 13:03:06
|
|
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 {
|
|
9
|
-
import { c as
|
|
10
|
-
import { fetchVBRData as
|
|
8
|
+
import { c as p, b as m, d as f, e as N, g as u, I as R, _ as d, k as g, a as C, j as I, f as M, h as y, i as O, l as P } from "./SeasonSelector-hqWIAEq6.js";
|
|
9
|
+
import { c as v, i as D, u as x, b as F, a as G, d as b, e as h, f as B, g as Y, v as w } from "./useSort-WcJ_BIws.js";
|
|
10
|
+
import { fetchVBRData as V, usePage as W, useScrollToGameDate as z, useServices as K, useVisibilityChange as X } 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
|
|
17
|
-
const
|
|
12
|
+
import { I as H, U as j, W as J, i as q, c as Q, e as $, f as ee, h as ae, g as te, a as se, l as re, p as oe, r as ne, s as ie, t as le, b as Se, d as _e, u as Te } from "./convert-PMHuZhPy.js";
|
|
13
|
+
import { b as Le, c as Ae, a as ce, f as pe, g as me, d as fe, e as Ne, i as ue, o as Re, h as de, t as ge, y as Ce } from "./datetime-EyEBo0-h.js";
|
|
14
|
+
import { externalGameLinkResolver as Me, externalPlayerLinkResolver as ye, externalTeamLinkResolver as Oe, flagResolver as Pe, scrollToTop as Ue } from "./utils.js";
|
|
15
|
+
import { COLUMNS_FIELD_PLAYERS as De, COLUMNS_FIELD_PLAYERS_PENALTY as xe, COLUMNS_GOALIES as Fe, COLUMNS_SCHEDULE as Ge, COLUMNS_SCORING_EFFICIENCY as be, COLUMNS_STANDINGS_P_2 as he, COLUMNS_STANDINGS_P_3 as Be, COLUMNS_TEAMS_FAIRPLAY as Ye, COLUMNS_TEAMS_PENALTY_KILLING as we, COLUMNS_TEAMS_POWERPLAY as ke, COLUMNS_TEAM_ATTENDANCE as Ve } from "./columns.js";
|
|
16
|
+
import { AVAILABLE_TIMEZONES_BY_COUNTRY as ze, DEFAULT_EXTERNAL_GAME_URL as Ke, DEFAULT_EXTERNAL_PLAYER_URL as Xe, DEFAULT_EXTERNAL_TEAM_URL as Ze, DEFAULT_PORTRAIT_IMAGE_URL as He, FLAG_BASE_URL as je, LAZY_LOADING_STATE_DELAY as Je, LOCALE_FOR_LANG as qe, REFRESH_DELAY as Qe, SORT_STATE_ASCEND as $e, SORT_STATE_DESCEND as ea, SORT_STATE_ORIGINAL as aa, VBR_API_BASE_URL as ta } from "./constants.js";
|
|
17
|
+
const S = {
|
|
18
18
|
locale: {
|
|
19
19
|
type: String,
|
|
20
20
|
default: "hu"
|
|
@@ -39,7 +39,7 @@ const i = {
|
|
|
39
39
|
type: String,
|
|
40
40
|
default: ""
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, _ = {
|
|
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
|
+
}, T = {
|
|
52
52
|
limit: {
|
|
53
53
|
type: Number,
|
|
54
54
|
default: 20
|
|
@@ -65,7 +65,7 @@ const i = {
|
|
|
65
65
|
type: Boolean,
|
|
66
66
|
default: !1
|
|
67
67
|
}
|
|
68
|
-
},
|
|
68
|
+
}, E = {
|
|
69
69
|
externalGameResolver: {
|
|
70
70
|
type: [String, Function],
|
|
71
71
|
default: ""
|
|
@@ -74,107 +74,112 @@ const i = {
|
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: !1
|
|
76
76
|
}
|
|
77
|
-
},
|
|
78
|
-
if (window.__MJSZ_VBR_WIDGET__ = { apiKey:
|
|
77
|
+
}, i = ({ app: a = null, modules: t = [], apiKey: s, gameResolver: r, teamResolver: o, playerResolver: n }) => {
|
|
78
|
+
if (window.__MJSZ_VBR_WIDGET__ = { apiKey: s, gameResolver: r, teamResolver: o, playerResolver: n }, t.length === 0)
|
|
79
79
|
throw new Error("At least one module must be set");
|
|
80
|
-
|
|
80
|
+
t.forEach((e) => {
|
|
81
|
+
if (a)
|
|
82
|
+
return a.use(e);
|
|
81
83
|
if (e.register)
|
|
82
84
|
return e.register();
|
|
83
|
-
e == null || e();
|
|
85
|
+
e == null || e.install();
|
|
84
86
|
});
|
|
87
|
+
}, L = {
|
|
88
|
+
install: (a, t = {}) => i({ app: a, ...t })
|
|
85
89
|
};
|
|
86
90
|
export {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
ze as AVAILABLE_TIMEZONES_BY_COUNTRY,
|
|
92
|
+
p as BaseSelect,
|
|
93
|
+
De as COLUMNS_FIELD_PLAYERS,
|
|
94
|
+
xe as COLUMNS_FIELD_PLAYERS_PENALTY,
|
|
95
|
+
Fe as COLUMNS_GOALIES,
|
|
96
|
+
Ge as COLUMNS_SCHEDULE,
|
|
97
|
+
be as COLUMNS_SCORING_EFFICIENCY,
|
|
98
|
+
he as COLUMNS_STANDINGS_P_2,
|
|
95
99
|
Be as COLUMNS_STANDINGS_P_3,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Ne as
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
F as
|
|
170
|
-
G as
|
|
171
|
-
|
|
100
|
+
Ye as COLUMNS_TEAMS_FAIRPLAY,
|
|
101
|
+
we as COLUMNS_TEAMS_PENALTY_KILLING,
|
|
102
|
+
ke as COLUMNS_TEAMS_POWERPLAY,
|
|
103
|
+
Ve as COLUMNS_TEAM_ATTENDANCE,
|
|
104
|
+
Ke as DEFAULT_EXTERNAL_GAME_URL,
|
|
105
|
+
Xe as DEFAULT_EXTERNAL_PLAYER_URL,
|
|
106
|
+
Ze as DEFAULT_EXTERNAL_TEAM_URL,
|
|
107
|
+
He as DEFAULT_PORTRAIT_IMAGE_URL,
|
|
108
|
+
m as DataTable,
|
|
109
|
+
f as ErrorNotice,
|
|
110
|
+
N as ErrorProvider,
|
|
111
|
+
je as FLAG_BASE_URL,
|
|
112
|
+
u as FloatingPanel,
|
|
113
|
+
R as I18NProvider,
|
|
114
|
+
d as Image,
|
|
115
|
+
H as InvalidSeasonName,
|
|
116
|
+
Je as LAZY_LOADING_STATE_DELAY,
|
|
117
|
+
qe as LOCALE_FOR_LANG,
|
|
118
|
+
g as LoadingIndicator,
|
|
119
|
+
C as Paginator,
|
|
120
|
+
Qe as REFRESH_DELAY,
|
|
121
|
+
I as ResponsiveTable,
|
|
122
|
+
$e as SORT_STATE_ASCEND,
|
|
123
|
+
ea as SORT_STATE_DESCEND,
|
|
124
|
+
aa as SORT_STATE_ORIGINAL,
|
|
125
|
+
M as ScheduleTable,
|
|
126
|
+
y as SeasonSelector,
|
|
127
|
+
O as StatisticsTable,
|
|
128
|
+
P as TimezoneSelector,
|
|
129
|
+
j as UndefinedColumn,
|
|
130
|
+
ta as VBR_API_BASE_URL,
|
|
131
|
+
J as WidgetError,
|
|
132
|
+
q as appendTo,
|
|
133
|
+
S as baseProps,
|
|
134
|
+
Q as convert,
|
|
135
|
+
Le as convertMinToMinSec,
|
|
136
|
+
Ae as convertMinToSec,
|
|
137
|
+
ce as convertSecToMin,
|
|
138
|
+
$ as convertTimes,
|
|
139
|
+
ee as convertTimesMinToMinSec,
|
|
140
|
+
ae as convertTimesSecToMin,
|
|
141
|
+
i as createConfig,
|
|
142
|
+
v as createI18n,
|
|
143
|
+
L as default,
|
|
144
|
+
Me as externalGameLinkResolver,
|
|
145
|
+
ye as externalPlayerLinkResolver,
|
|
146
|
+
Oe as externalTeamLinkResolver,
|
|
147
|
+
V as fetchVBRData,
|
|
148
|
+
Pe as flagResolver,
|
|
149
|
+
pe as format,
|
|
150
|
+
te as gameDateTime,
|
|
151
|
+
E as gameProps,
|
|
152
|
+
se as gameResult,
|
|
153
|
+
me as getLocalTimezone,
|
|
154
|
+
D as i18n,
|
|
155
|
+
fe as isBetween,
|
|
156
|
+
Ne as isSame,
|
|
157
|
+
ue as isSameOrBefore,
|
|
158
|
+
re as localeSort,
|
|
159
|
+
Re as offsetName,
|
|
160
|
+
oe as playerName,
|
|
161
|
+
T as playerStatsProps,
|
|
162
|
+
ne as rawConvert,
|
|
163
|
+
Ue as scrollToTop,
|
|
164
|
+
ie as sortGames,
|
|
165
|
+
le as teamName,
|
|
166
|
+
Se as teamOpponent,
|
|
167
|
+
_e as teamResultType,
|
|
168
|
+
_ as teamStatsProps,
|
|
169
|
+
de as templateReplacer,
|
|
170
|
+
ge as toKebabCase,
|
|
171
|
+
Te as upperCase,
|
|
172
|
+
x as useColumns,
|
|
173
|
+
F as useError,
|
|
174
|
+
G as useErrorProvider,
|
|
175
|
+
b as useI18n,
|
|
176
|
+
h as useLazyLoadingState,
|
|
172
177
|
B as useMainClass,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
W as usePage,
|
|
179
|
+
z as useScrollToGameDate,
|
|
180
|
+
K as useServices,
|
|
181
|
+
Y as useSort,
|
|
182
|
+
X as useVisibilityChange,
|
|
183
|
+
w as validateColumnsName,
|
|
184
|
+
Ce as yearToNow
|
|
180
185
|
};
|