@mjsz-vbr-elements/core 2.2.1 → 2.2.2
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 → AdditionalStandingsText-nuhfGhAD.js} +505 -460
- package/dist/columns.js +1 -1
- package/dist/components.js +18 -17
- package/dist/composables.js +39 -38
- package/dist/constants.js +1 -1
- package/dist/{convert-PMHuZhPy.js → convert-rWfB71vI.js} +2 -2
- package/dist/{datetime-EyEBo0-h.js → datetime--bMmvxSM.js} +16 -16
- 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 +98 -96
- package/dist/{useSort-WcJ_BIws.js → useAdditionalText-hj0kZWr7.js} +246 -225
- package/dist/utils.js +4 -4
- package/package.json +2 -2
package/dist/columns.js
CHANGED
package/dist/components.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.2 - 08/01/2024, 11:28:47
|
|
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 as m, b as
|
|
8
|
+
import { m as n, c as m, b as d, d as c, e as p, g as S, I as g, _ as T, k as b, a as I, j as P, f as v, h as f, i as h, l as x } from "./AdditionalStandingsText-nuhfGhAD.js";
|
|
9
9
|
import "vue";
|
|
10
|
-
import "./
|
|
11
|
-
import "./datetime
|
|
10
|
+
import "./useAdditionalText-hj0kZWr7.js";
|
|
11
|
+
import "./datetime--bMmvxSM.js";
|
|
12
12
|
import "./constants.js";
|
|
13
|
-
import "./convert-
|
|
13
|
+
import "./convert-rWfB71vI.js";
|
|
14
14
|
import "./columns.js";
|
|
15
15
|
export {
|
|
16
|
+
n as AdditionalStandingsText,
|
|
16
17
|
m as BaseSelect,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
d as DataTable,
|
|
19
|
+
c as ErrorNotice,
|
|
19
20
|
p as ErrorProvider,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
S as FloatingPanel,
|
|
22
|
+
g as I18NProvider,
|
|
23
|
+
T as Image,
|
|
24
|
+
b as LoadingIndicator,
|
|
25
|
+
I as Paginator,
|
|
26
|
+
P as ResponsiveTable,
|
|
27
|
+
v as ScheduleTable,
|
|
28
|
+
f as SeasonSelector,
|
|
29
|
+
h as StatisticsTable,
|
|
30
|
+
x as TimezoneSelector
|
|
30
31
|
};
|
package/dist/composables.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.2 - 08/01/2024, 11:28:47
|
|
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 U, i as tt,
|
|
8
|
+
import { k as S, l as D, n as h, m as I, p as b, q as E } from "./useAdditionalText-hj0kZWr7.js";
|
|
9
|
+
import { c as U, i as tt, h as et, u as nt, b as rt, a as it, d as st, e as at, f as ot, g as ut, v as ct } from "./useAdditionalText-hj0kZWr7.js";
|
|
10
10
|
import { unref as u, ref as P, watch as T, nextTick as B } from "vue";
|
|
11
11
|
import { VBR_API_BASE_URL as C } from "./constants.js";
|
|
12
|
-
import {
|
|
13
|
-
var
|
|
12
|
+
import { F as x, I as y, p as g, H as _, x as V, w as A, i as v, f as F } from "./datetime--bMmvxSM.js";
|
|
13
|
+
var M = /* @__PURE__ */ function() {
|
|
14
14
|
function e(t, n) {
|
|
15
15
|
this.xf = n, this.f = t, this.found = !1;
|
|
16
16
|
}
|
|
@@ -20,20 +20,20 @@ var R = /* @__PURE__ */ function() {
|
|
|
20
20
|
return this.f(n) && (this.found = !0, t = y(this.xf["@@transducer/step"](t, n))), t;
|
|
21
21
|
}, e;
|
|
22
22
|
}();
|
|
23
|
-
function
|
|
23
|
+
function O(e) {
|
|
24
24
|
return function(t) {
|
|
25
|
-
return new
|
|
25
|
+
return new M(e, t);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
/* @__PURE__ */
|
|
28
|
+
var R = /* @__PURE__ */ g(
|
|
29
|
+
/* @__PURE__ */ _(["find"], O, function(t, n) {
|
|
30
30
|
for (var r = 0, i = n.length; r < i; ) {
|
|
31
31
|
if (t(n[r]))
|
|
32
32
|
return n[r];
|
|
33
33
|
r += 1;
|
|
34
34
|
}
|
|
35
35
|
})
|
|
36
|
-
),
|
|
36
|
+
), X = /* @__PURE__ */ function() {
|
|
37
37
|
function e(t, n) {
|
|
38
38
|
this.xf = n, this.f = t, this.idx = -1, this.found = !1;
|
|
39
39
|
}
|
|
@@ -43,13 +43,13 @@ var F = /* @__PURE__ */ g(
|
|
|
43
43
|
return this.idx += 1, this.f(n) && (this.found = !0, t = y(this.xf["@@transducer/step"](t, this.idx))), t;
|
|
44
44
|
}, e;
|
|
45
45
|
}();
|
|
46
|
-
function
|
|
46
|
+
function Y(e) {
|
|
47
47
|
return function(t) {
|
|
48
|
-
return new
|
|
48
|
+
return new X(e, t);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
/* @__PURE__ */
|
|
51
|
+
var G = /* @__PURE__ */ g(
|
|
52
|
+
/* @__PURE__ */ _([], Y, function(t, n) {
|
|
53
53
|
for (var r = 0, i = n.length; r < i; ) {
|
|
54
54
|
if (t(n[r]))
|
|
55
55
|
return r;
|
|
@@ -58,17 +58,17 @@ var Y = /* @__PURE__ */ g(
|
|
|
58
58
|
return -1;
|
|
59
59
|
})
|
|
60
60
|
), w = /* @__PURE__ */ V(function(t, n, r) {
|
|
61
|
-
return t(
|
|
61
|
+
return t(A(n, r));
|
|
62
62
|
});
|
|
63
|
-
const
|
|
64
|
-
const r = `${C}${u(e)}?${
|
|
63
|
+
const K = async (e, t, n) => {
|
|
64
|
+
const r = `${C}${u(e)}?${L(n)}`;
|
|
65
65
|
return new Promise((i, o) => {
|
|
66
66
|
fetch(r, {
|
|
67
67
|
method: "GET",
|
|
68
68
|
cache: "no-cache",
|
|
69
69
|
headers: {
|
|
70
70
|
"Content-Type": "application/json",
|
|
71
|
-
"X-API-KEY":
|
|
71
|
+
"X-API-KEY": $(t)
|
|
72
72
|
}
|
|
73
73
|
}).then((s) => s.json()).then((s) => {
|
|
74
74
|
if (s.error)
|
|
@@ -78,15 +78,15 @@ const j = async (e, t, n) => {
|
|
|
78
78
|
o(s);
|
|
79
79
|
});
|
|
80
80
|
});
|
|
81
|
-
},
|
|
81
|
+
}, L = (e) => Object.keys(e).map((t) => t + "=" + e[t]).join("&"), $ = (e) => {
|
|
82
82
|
var t;
|
|
83
83
|
return e || ((t = window.__MJSZ_VBR_WIDGET__) != null && t.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
|
|
84
84
|
}, W = (e = {}) => {
|
|
85
|
-
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = P(u(t)), s = (a) =>
|
|
85
|
+
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = P(u(t)), s = (a) => v(a, "day");
|
|
86
86
|
return S(n, () => {
|
|
87
87
|
if (!i)
|
|
88
88
|
return;
|
|
89
|
-
const a =
|
|
89
|
+
const a = G(w(s, "gameDate"))(u(n));
|
|
90
90
|
o.value = a === -1 ? 1 : Math.floor(a / r) + 1;
|
|
91
91
|
}), {
|
|
92
92
|
page: o,
|
|
@@ -100,7 +100,7 @@ const j = async (e, t, n) => {
|
|
|
100
100
|
error: f,
|
|
101
101
|
isLoading: l,
|
|
102
102
|
execute: m
|
|
103
|
-
} = D(() =>
|
|
103
|
+
} = D(() => K(i, o, u(s)).then((p) => t(p)), [], {
|
|
104
104
|
immediate: c,
|
|
105
105
|
resetOnExecute: d,
|
|
106
106
|
onError: n,
|
|
@@ -113,8 +113,8 @@ const j = async (e, t, n) => {
|
|
|
113
113
|
execute: m
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
-
function
|
|
117
|
-
const r =
|
|
116
|
+
function z(e = !1, t = h, n = h) {
|
|
117
|
+
const r = I();
|
|
118
118
|
T(r, (i) => {
|
|
119
119
|
if (u(e)) {
|
|
120
120
|
if (i === "visible")
|
|
@@ -124,19 +124,19 @@ function q(e = !1, t = h, n = h) {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
const H = (e = {}) => {
|
|
127
|
-
const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, o = (c) =>
|
|
127
|
+
const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, o = (c) => v(c, "day"), s = () => {
|
|
128
128
|
var p;
|
|
129
129
|
if (d(), !u(i))
|
|
130
130
|
return;
|
|
131
|
-
const c =
|
|
131
|
+
const c = R(w(o, "gameDate"))(u(t));
|
|
132
132
|
if (!c)
|
|
133
133
|
return;
|
|
134
|
-
const a =
|
|
134
|
+
const a = F(c.gameDate, "YYYY-MM-DD"), f = E(n).querySelector(`div[data-gamedate="${a}"]`);
|
|
135
135
|
if (!f)
|
|
136
136
|
return;
|
|
137
137
|
const l = getComputedStyle(f).getPropertyValue("--vbr-widget-sticky-top-offset") || 0, m = (((p = f.getBoundingClientRect()) == null ? void 0 : p.top) ?? 0) - u(r) - parseFloat(l);
|
|
138
138
|
window.scrollTo(0, m);
|
|
139
|
-
}, { stop: d } =
|
|
139
|
+
}, { stop: d } = b(
|
|
140
140
|
() => ({
|
|
141
141
|
items: u(t),
|
|
142
142
|
element: u(n)
|
|
@@ -148,18 +148,19 @@ const H = (e = {}) => {
|
|
|
148
148
|
};
|
|
149
149
|
export {
|
|
150
150
|
U as createI18n,
|
|
151
|
-
|
|
151
|
+
K as fetchVBRData,
|
|
152
152
|
tt as i18n,
|
|
153
|
-
et as
|
|
154
|
-
nt as
|
|
155
|
-
rt as
|
|
156
|
-
it as
|
|
157
|
-
st as
|
|
158
|
-
at as
|
|
153
|
+
et as useAdditionalText,
|
|
154
|
+
nt as useColumns,
|
|
155
|
+
rt as useError,
|
|
156
|
+
it as useErrorProvider,
|
|
157
|
+
st as useI18n,
|
|
158
|
+
at as useLazyLoadingState,
|
|
159
|
+
ot as useMainClass,
|
|
159
160
|
W as usePage,
|
|
160
161
|
H as useScrollToGameDate,
|
|
161
162
|
Z as useServices,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
ut as useSort,
|
|
164
|
+
z as useVisibilityChange,
|
|
165
|
+
ct as validateColumnsName
|
|
165
166
|
};
|
package/dist/constants.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.2 - 08/01/2024, 11:28:47
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
8
|
import { SORT_STATE_ORIGINAL as P, SORT_STATE_ASCEND as j } from "./constants.js";
|
|
9
|
-
import { p as f,
|
|
9
|
+
import { p as f, A as D, q as g, w as h, _ as p, j as v, k as $, B as b, x as c, C as _, D as M, z as T, E as G, F as U, G as H, H as k, I as q, J as X, K, n as S, r as Y, v as J, f as m, c as E, b as Q, a as V } from "./datetime--bMmvxSM.js";
|
|
10
10
|
var Z = /* @__PURE__ */ f(function(e, r) {
|
|
11
11
|
if (e === r)
|
|
12
12
|
return r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.2.
|
|
3
|
+
* version: v2.2.2 - 08/01/2024, 11:28:47
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
@@ -1102,17 +1102,17 @@ const ze = () => I.tz.guess(), Le = (e = "", t = "", r = "", n = "hu") => (r = r
|
|
|
1102
1102
|
return [t.toString().padStart(2, "0"), r.toString().padStart(2, "0")].join(":");
|
|
1103
1103
|
}, Fe = (e, t = "day") => I().isSameOrBefore(I(e), t), He = (e, t, r) => I(e).isBetween(t, I(r)), Ne = (e, t, r = "month") => I(e).isSame(t, r), Ue = (e, t = "hu") => I(e).locale(t).toNow(!0);
|
|
1104
1104
|
export {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1105
|
+
Qt as A,
|
|
1106
|
+
gt as B,
|
|
1107
|
+
yt as C,
|
|
1108
|
+
_t as D,
|
|
1109
|
+
dt as E,
|
|
1110
|
+
rt as F,
|
|
1111
|
+
vt as G,
|
|
1112
|
+
$t as H,
|
|
1113
|
+
je as I,
|
|
1114
|
+
qt as J,
|
|
1115
|
+
ue as K,
|
|
1116
1116
|
E as _,
|
|
1117
1117
|
Ie as a,
|
|
1118
1118
|
ke as b,
|
|
@@ -1135,9 +1135,9 @@ export {
|
|
|
1135
1135
|
se as s,
|
|
1136
1136
|
xe as t,
|
|
1137
1137
|
J as u,
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1138
|
+
Jt as v,
|
|
1139
|
+
Te as w,
|
|
1140
|
+
De as x,
|
|
1141
1141
|
Ue as y,
|
|
1142
|
-
|
|
1142
|
+
nt as z
|
|
1143
1143
|
};
|