@mjsz-vbr-elements/core 2.2.0-beta.0 → 2.2.1
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-DJM6EjtK.js → SeasonSelector-hqWIAEq6.js} +2 -2
- package/dist/columns.js +1 -1
- package/dist/components.js +3 -3
- package/dist/composables.js +85 -84
- package/dist/constants.js +1 -1
- package/dist/convert-PMHuZhPy.js +1 -1
- package/dist/datetime-EyEBo0-h.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 +25 -24
- package/dist/{useSort-M_AqLbLK.js → useSort-WcJ_BIws.js} +2 -2
- package/dist/utils.js +1 -1
- 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,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.1 - 04/01/2024, 22:10:50
|
|
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 { c, b as
|
|
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-
|
|
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
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
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
|
|
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
14
|
import { externalGameLinkResolver as Me, externalPlayerLinkResolver as ye, externalTeamLinkResolver as Oe, flagResolver as Pe, scrollToTop as Ue } from "./utils.js";
|
|
15
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
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";
|
|
@@ -74,21 +74,22 @@ const S = {
|
|
|
74
74
|
type: Boolean,
|
|
75
75
|
default: !1
|
|
76
76
|
}
|
|
77
|
-
}, i = ({ app:
|
|
78
|
-
if (window.__MJSZ_VBR_WIDGET__ = { apiKey: s, gameResolver: r, teamResolver: o, playerResolver: n },
|
|
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
|
-
|
|
81
|
-
if (
|
|
82
|
-
return
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
80
|
+
t.forEach((e) => {
|
|
81
|
+
if (a)
|
|
82
|
+
return a.use(e);
|
|
83
|
+
if (e.register)
|
|
84
|
+
return e.register();
|
|
85
|
+
e == null || e.install();
|
|
85
86
|
});
|
|
86
87
|
}, L = {
|
|
87
|
-
install: (
|
|
88
|
+
install: (a, t = {}) => i({ app: a, ...t })
|
|
88
89
|
};
|
|
89
90
|
export {
|
|
90
91
|
ze as AVAILABLE_TIMEZONES_BY_COUNTRY,
|
|
91
|
-
|
|
92
|
+
p as BaseSelect,
|
|
92
93
|
De as COLUMNS_FIELD_PLAYERS,
|
|
93
94
|
xe as COLUMNS_FIELD_PLAYERS_PENALTY,
|
|
94
95
|
Fe as COLUMNS_GOALIES,
|
|
@@ -104,11 +105,11 @@ export {
|
|
|
104
105
|
Xe as DEFAULT_EXTERNAL_PLAYER_URL,
|
|
105
106
|
Ze as DEFAULT_EXTERNAL_TEAM_URL,
|
|
106
107
|
He as DEFAULT_PORTRAIT_IMAGE_URL,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
m as DataTable,
|
|
109
|
+
f as ErrorNotice,
|
|
110
|
+
N as ErrorProvider,
|
|
110
111
|
je as FLAG_BASE_URL,
|
|
111
|
-
|
|
112
|
+
u as FloatingPanel,
|
|
112
113
|
R as I18NProvider,
|
|
113
114
|
d as Image,
|
|
114
115
|
H as InvalidSeasonName,
|
|
@@ -132,8 +133,8 @@ export {
|
|
|
132
133
|
S as baseProps,
|
|
133
134
|
Q as convert,
|
|
134
135
|
Le as convertMinToMinSec,
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
Ae as convertMinToSec,
|
|
137
|
+
ce as convertSecToMin,
|
|
137
138
|
$ as convertTimes,
|
|
138
139
|
ee as convertTimesMinToMinSec,
|
|
139
140
|
ae as convertTimesSecToMin,
|
|
@@ -145,15 +146,15 @@ export {
|
|
|
145
146
|
Oe as externalTeamLinkResolver,
|
|
146
147
|
V as fetchVBRData,
|
|
147
148
|
Pe as flagResolver,
|
|
148
|
-
|
|
149
|
+
pe as format,
|
|
149
150
|
te as gameDateTime,
|
|
150
151
|
E as gameProps,
|
|
151
152
|
se as gameResult,
|
|
152
|
-
|
|
153
|
+
me as getLocalTimezone,
|
|
153
154
|
D as i18n,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
fe as isBetween,
|
|
156
|
+
Ne as isSame,
|
|
157
|
+
ue as isSameOrBefore,
|
|
157
158
|
re as localeSort,
|
|
158
159
|
Re as offsetName,
|
|
159
160
|
oe as playerName,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.1 - 04/01/2024, 22:10:50
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { ref as O, readonly as ve, watch as A, nextTick as Ce, getCurrentScope as xe, onScopeDispose as De, unref as I, isRef as Le, shallowRef as te, computed as S, reactive as me, defineComponent as Ne, h as Fe, provide as ye, inject as ge, onErrorCaptured as Be } from "vue";
|
|
9
9
|
import { _ as F, j as ke, k as Ve, l as Ue, m as We, n as Me, p as ze, q as j, s as C, r as qe, t as Ke, u as Ge } from "./datetime-EyEBo0-h.js";
|
|
10
10
|
import { SORT_STATE_ORIGINAL as D, SORT_STATE_DESCEND as z, SORT_STATE_ASCEND as L } from "./constants.js";
|
|
11
|
-
var He = { VITE_VBR_API_URL: "https://api.icehockey.hu/vbr", VITE_VBR_API_KEY: "
|
|
11
|
+
var He = { VITE_VBR_API_URL: "https://api.icehockey.hu/vbr", VITE_VBR_API_KEY: "", VITE_USER_NODE_ENV: "production", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
12
12
|
const qt = (e) => (He.VITE_CSS_CLASS_PREFIX || "mjsz-vbr-") + e;
|
|
13
13
|
function _e(e) {
|
|
14
14
|
return xe() ? (De(e), !0) : !1;
|
package/dist/utils.js
CHANGED
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.1",
|
|
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.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@vitejs/plugin-vue": "^5.0.2",
|