@mjsz-vbr-elements/core 2.3.8 → 2.4.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/{AdditionalStandingsText-DbEQVH0C.js → AdditionalStandingsText-Cj3Q7dcW.js} +611 -506
- package/dist/columns.js +1 -1
- package/dist/components.js +13 -12
- package/dist/composables.js +29 -35
- package/dist/constants.js +1 -1
- package/dist/{convert-BEp1U263.js → convert-PUna7fen.js} +134 -128
- package/dist/datetime-BzdN4htO.js +1272 -0
- 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 +104 -94
- package/dist/{useAdditionalText-B4_ntvb_.js → useAdditionalText-D1LaWU-i.js} +214 -227
- package/dist/utils.js +60 -48
- package/package.json +10 -9
- package/dist/datetime-C3O51pdW.js +0 -1224
package/dist/columns.js
CHANGED
package/dist/components.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.4.1 - 10/08/2024, 13:04:39
|
|
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 {
|
|
8
|
+
import { n as s, c as r, b as o, d as t, e as i, m as l, g as n, I as c, _ as d, k as S, a as b, j as g, f as T, h as m, i as v, l as I } from "./AdditionalStandingsText-Cj3Q7dcW.js";
|
|
9
9
|
export {
|
|
10
10
|
s as AdditionalStandingsText,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
l as
|
|
16
|
-
n as
|
|
11
|
+
r as BaseSelect,
|
|
12
|
+
o as DataTable,
|
|
13
|
+
t as ErrorNotice,
|
|
14
|
+
i as ErrorProvider,
|
|
15
|
+
l as FetchMoreObserver,
|
|
16
|
+
n as FloatingPanel,
|
|
17
|
+
c as I18NProvider,
|
|
17
18
|
d as Image,
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
S as LoadingIndicator,
|
|
20
|
+
b as Paginator,
|
|
20
21
|
g as ResponsiveTable,
|
|
21
22
|
T as ScheduleTable,
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
m as SeasonSelector,
|
|
24
|
+
v as StatisticsTable,
|
|
24
25
|
I as TimezoneSelector
|
|
25
26
|
};
|
package/dist/composables.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.4.1 - 10/08/2024, 13:04:39
|
|
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 { k as S, l as D, n as h, m as I, p as
|
|
9
|
-
import { c as
|
|
10
|
-
import { unref as u, ref as
|
|
8
|
+
import { k as S, l as D, n as h, m as I, p as T, q as b } from "./useAdditionalText-D1LaWU-i.js";
|
|
9
|
+
import { c as H, 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-D1LaWU-i.js";
|
|
10
|
+
import { unref as u, ref as E, watch as P, nextTick as B } from "vue";
|
|
11
11
|
import { VBR_API_BASE_URL as C } from "./constants.js";
|
|
12
|
-
import {
|
|
13
|
-
var
|
|
12
|
+
import { Q as x, T as y, C as g, S as _, J as V, I as A, i as v, f as M } from "./datetime-BzdN4htO.js";
|
|
13
|
+
var O = /* @__PURE__ */ function() {
|
|
14
14
|
function e(t, n) {
|
|
15
15
|
this.xf = n, this.f = t, this.found = !1;
|
|
16
16
|
}
|
|
@@ -20,12 +20,12 @@ var M = /* @__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 R(e) {
|
|
24
24
|
return function(t) {
|
|
25
|
-
return new
|
|
25
|
+
return new O(e, t);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var F = /* @__PURE__ */ g(/* @__PURE__ */ _(["find"], R, function(t, n) {
|
|
29
29
|
for (var r = 0, i = n.length; r < i; ) {
|
|
30
30
|
if (t(n[r]))
|
|
31
31
|
return n[r];
|
|
@@ -67,8 +67,7 @@ const K = async (e, t, n) => {
|
|
|
67
67
|
"X-API-KEY": $(t)
|
|
68
68
|
}
|
|
69
69
|
}).then((s) => s.json()).then((s) => {
|
|
70
|
-
if (s.error)
|
|
71
|
-
return o(s);
|
|
70
|
+
if (s.error) return o(s);
|
|
72
71
|
i(s.data);
|
|
73
72
|
}).catch((s) => {
|
|
74
73
|
o(s);
|
|
@@ -77,11 +76,10 @@ const K = async (e, t, n) => {
|
|
|
77
76
|
}, L = (e) => Object.keys(e).map((t) => t + "=" + e[t]).join("&"), $ = (e) => {
|
|
78
77
|
var t;
|
|
79
78
|
return e || ((t = window.__MJSZ_VBR_WIDGET__) != null && t.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
|
|
80
|
-
},
|
|
81
|
-
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o =
|
|
79
|
+
}, Q = (e = {}) => {
|
|
80
|
+
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = E(u(t)), s = (a) => v(a, "day");
|
|
82
81
|
return S(n, () => {
|
|
83
|
-
if (!i)
|
|
84
|
-
return;
|
|
82
|
+
if (!i) return;
|
|
85
83
|
const a = G(w(s, "gameDate"))(u(n));
|
|
86
84
|
o.value = a === -1 ? 1 : Math.floor(a / r) + 1;
|
|
87
85
|
}), {
|
|
@@ -90,7 +88,7 @@ const K = async (e, t, n) => {
|
|
|
90
88
|
o.value = a;
|
|
91
89
|
}
|
|
92
90
|
};
|
|
93
|
-
},
|
|
91
|
+
}, W = ({ options: e = {}, transform: t = (i) => i, onError: n = h, onSuccess: r = h }) => {
|
|
94
92
|
const { path: i, apiKey: o, params: s, resetOnExecute: d = !1, immediate: c = !1 } = e, {
|
|
95
93
|
state: a,
|
|
96
94
|
error: f,
|
|
@@ -109,30 +107,26 @@ const K = async (e, t, n) => {
|
|
|
109
107
|
execute: m
|
|
110
108
|
};
|
|
111
109
|
};
|
|
112
|
-
function
|
|
110
|
+
function Z(e = !1, t = h, n = h) {
|
|
113
111
|
const r = I();
|
|
114
|
-
|
|
112
|
+
P(r, (i) => {
|
|
115
113
|
if (u(e)) {
|
|
116
|
-
if (i === "visible")
|
|
117
|
-
return t();
|
|
114
|
+
if (i === "visible") return t();
|
|
118
115
|
n();
|
|
119
116
|
}
|
|
120
117
|
});
|
|
121
118
|
}
|
|
122
|
-
const
|
|
119
|
+
const z = (e = {}) => {
|
|
123
120
|
const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, o = (c) => v(c, "day"), s = () => {
|
|
124
121
|
var p;
|
|
125
|
-
if (d(), !u(i))
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
const a = F(c.gameDate, "YYYY-MM-DD"), f = E(n).querySelector(`div[data-gamedate="${a}"]`);
|
|
131
|
-
if (!f)
|
|
132
|
-
return;
|
|
122
|
+
if (d(), !u(i)) return;
|
|
123
|
+
const c = F(w(o, "gameDate"))(u(t));
|
|
124
|
+
if (!c) return;
|
|
125
|
+
const a = M(c.gameDate, "YYYY-MM-DD"), f = b(n).querySelector(`div[data-gamedate="${a}"]`);
|
|
126
|
+
if (!f) return;
|
|
133
127
|
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);
|
|
134
128
|
window.scrollTo(0, m);
|
|
135
|
-
}, { stop: d } =
|
|
129
|
+
}, { stop: d } = T(
|
|
136
130
|
() => ({
|
|
137
131
|
items: u(t),
|
|
138
132
|
element: u(n)
|
|
@@ -143,7 +137,7 @@ const H = (e = {}) => {
|
|
|
143
137
|
);
|
|
144
138
|
};
|
|
145
139
|
export {
|
|
146
|
-
|
|
140
|
+
H as createI18n,
|
|
147
141
|
K as fetchVBRData,
|
|
148
142
|
tt as i18n,
|
|
149
143
|
et as useAdditionalText,
|
|
@@ -153,10 +147,10 @@ export {
|
|
|
153
147
|
st as useI18n,
|
|
154
148
|
at as useLazyLoadingState,
|
|
155
149
|
ot as useMainClass,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
150
|
+
Q as usePage,
|
|
151
|
+
z as useScrollToGameDate,
|
|
152
|
+
W as useServices,
|
|
159
153
|
ut as useSort,
|
|
160
|
-
|
|
154
|
+
Z as useVisibilityChange,
|
|
161
155
|
ct as validateColumnsName
|
|
162
156
|
};
|
package/dist/constants.js
CHANGED