@mjsz-vbr-elements/core 2.30.1 → 2.31.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/{TimezoneSelector-qP6OxXMD.js → TimezoneSelector-T8Y8aFc-.js} +4 -4
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +24 -24
- package/dist/constants.js +1 -1
- package/dist/datetime-bWwGbGlR.js +1395 -0
- package/dist/errors-DHx3LQ6t.js +708 -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 +149 -105
- package/dist/useSort-D5U_wkle.js +912 -0
- package/dist/utils.js +128 -76
- package/package.json +2 -2
- package/dist/datetime-D600LvsU.js +0 -1357
- package/dist/errors-B6O6sS7H.js +0 -554
- package/dist/useSort-BMv5JZAH.js +0 -943
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.31.0 - 27/10/2025, 14:23:29
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
8
|
import { computed as O, ref as _, watch as Gt, unref as p, getCurrentScope as Pe, onScopeDispose as Se, getCurrentInstance as Ae, onMounted as ke, defineComponent as oe, onUnmounted as ze, h as Oe, toRef as _e, createElementBlock as g, createCommentVNode as S, openBlock as h, toDisplayString as b, withDirectives as $e, renderSlot as R, vModelSelect as Ie, createElementVNode as w, isRef as Ce, Fragment as G, normalizeStyle as jt, createVNode as C, Transition as Ge, withCtx as P, normalizeClass as D, createTextVNode as H, toRefs as Lt, renderList as nt, createBlock as E, withKeys as Wt, withModifiers as ct, createSlots as Ee } from "vue";
|
|
9
|
-
import { n as Re, e as Q, u as Ve, o as Le, f as De, b as Ne, m as Me, d as He, h as Be, c as ne, a as se, w as Fe, i as je } from "./useSort-
|
|
9
|
+
import { n as Re, e as Q, u as Ve, o as Le, f as De, b as Ne, m as Me, d as He, h as Be, c as ne, a as se, w as Fe, i as je } from "./useSort-D5U_wkle.js";
|
|
10
10
|
import { SORT_STATE_ASCEND as Kt, SORT_STATE_DESCEND as qt, SORT_STATE_ORIGINAL as _t, LAZY_LOADING_STATE_DELAY as We, DEFAULT_PORTRAIT_IMAGE_URL as Ke, AVAILABLE_TIMEZONES_BY_COUNTRY as qe } from "./constants.js";
|
|
11
|
-
import { o as bt, g as Je } from "./datetime-
|
|
11
|
+
import { o as bt, g as Je } from "./datetime-bWwGbGlR.js";
|
|
12
12
|
import { COLUMNS_SCHEDULE as Ue } from "./columns.js";
|
|
13
|
-
import {
|
|
13
|
+
import { T as Ye, W as re, V as xt } from "./errors-DHx3LQ6t.js";
|
|
14
14
|
function Ze(t) {
|
|
15
15
|
return Pe() ? (Se(t), !0) : !1;
|
|
16
16
|
}
|
package/dist/columns.js
CHANGED
package/dist/components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.31.0 - 27/10/2025, 14:23:29
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { _ as s, a as r, b as o, c as t, d as i, e as l, f as n, I as c, g as d, h as S, i as b, j as g, k as T, l as m, m as v, n as I } from "./TimezoneSelector-
|
|
8
|
+
import { _ as s, a as r, b as o, c as t, d as i, e as l, f as n, I as c, g as d, h as S, i as b, j as g, k as T, l as m, m as v, n as I } from "./TimezoneSelector-T8Y8aFc-.js";
|
|
9
9
|
export {
|
|
10
10
|
s as AdditionalStandingsText,
|
|
11
11
|
r as BaseSelect,
|
package/dist/composables.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.31.0 - 27/10/2025, 14:23:29
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { j as D, k as E, l as b, p as I, q as
|
|
9
|
-
import { d as nt, i as rt, u as it, a as at, c as st, b as ot, e as ut, f as ct, g as ft, v as dt } from "./useSort-
|
|
10
|
-
import { unref as c, watch as h, ref as
|
|
11
|
-
import { VBR_API_BASE_URL as
|
|
12
|
-
import {
|
|
13
|
-
var
|
|
8
|
+
import { j as D, k as E, l as b, p as I, q as P, n as d, r as T } from "./useSort-D5U_wkle.js";
|
|
9
|
+
import { d as nt, i as rt, u as it, a as at, c as st, b as ot, e as ut, f as ct, g as ft, v as dt } from "./useSort-D5U_wkle.js";
|
|
10
|
+
import { unref as c, watch as h, ref as B, nextTick as O } from "vue";
|
|
11
|
+
import { VBR_API_BASE_URL as R } from "./constants.js";
|
|
12
|
+
import { U as m, Y as x, E as y, X as v, _ as V, x as $, u as A, i as g, f as C } from "./datetime-bWwGbGlR.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,18 +20,18 @@ var G = /* @__PURE__ */ function() {
|
|
|
20
20
|
return this.f(n) && (this.found = !0, t = x(this.xf["@@transducer/step"](t, n))), t;
|
|
21
21
|
}, e;
|
|
22
22
|
}();
|
|
23
|
-
function
|
|
23
|
+
function X(e) {
|
|
24
24
|
return function(t) {
|
|
25
|
-
return new
|
|
25
|
+
return new M(e, t);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var Y = /* @__PURE__ */ y(/* @__PURE__ */ v(["find"], X, 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];
|
|
32
32
|
r += 1;
|
|
33
33
|
}
|
|
34
|
-
})),
|
|
34
|
+
})), k = /* @__PURE__ */ function() {
|
|
35
35
|
function e(t, n) {
|
|
36
36
|
this.xf = n, this.f = t, this.idx = -1, this.found = !1;
|
|
37
37
|
}
|
|
@@ -41,12 +41,12 @@ var k = /* @__PURE__ */ y(/* @__PURE__ */ v(["find"], M, function(t, n) {
|
|
|
41
41
|
return this.idx += 1, this.f(n) && (this.found = !0, t = x(this.xf["@@transducer/step"](t, this.idx))), t;
|
|
42
42
|
}, e;
|
|
43
43
|
}();
|
|
44
|
-
function
|
|
44
|
+
function F(e) {
|
|
45
45
|
return function(t) {
|
|
46
|
-
return new
|
|
46
|
+
return new k(e, t);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var G = /* @__PURE__ */ y(/* @__PURE__ */ v([], F, function(t, n) {
|
|
50
50
|
for (var r = 0, i = n.length; r < i; ) {
|
|
51
51
|
if (t(n[r]))
|
|
52
52
|
return r;
|
|
@@ -57,7 +57,7 @@ var Y = /* @__PURE__ */ y(/* @__PURE__ */ v([], X, function(t, n) {
|
|
|
57
57
|
return t($(n, r));
|
|
58
58
|
});
|
|
59
59
|
async function j(e, t, n) {
|
|
60
|
-
const r = `${
|
|
60
|
+
const r = `${R}${c(e)}${A(n) ? "" : `?${K(n)}`}`;
|
|
61
61
|
return new Promise((i, s) => {
|
|
62
62
|
fetch(r, {
|
|
63
63
|
method: "GET",
|
|
@@ -82,7 +82,7 @@ function L(e) {
|
|
|
82
82
|
return e || (window.__MJSZ_VBR_WIDGET__?.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
|
|
83
83
|
}
|
|
84
84
|
function U(e, t) {
|
|
85
|
-
const { open: n, close: r } =
|
|
85
|
+
const { open: n, close: r } = D(c(e), {
|
|
86
86
|
autoReconnect: {
|
|
87
87
|
retries: 3
|
|
88
88
|
},
|
|
@@ -103,11 +103,11 @@ function U(e, t) {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
function Z(e = {}) {
|
|
106
|
-
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, s =
|
|
107
|
-
return
|
|
106
|
+
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, s = B(c(t)), a = (u) => g(u, "day");
|
|
107
|
+
return E(n, () => {
|
|
108
108
|
if (!i)
|
|
109
109
|
return;
|
|
110
|
-
const u =
|
|
110
|
+
const u = G(_(a, "gameDate"))(c(n));
|
|
111
111
|
s.value = u === -1 ? 1 : Math.floor(u / r) + 1;
|
|
112
112
|
}), {
|
|
113
113
|
page: s,
|
|
@@ -120,22 +120,22 @@ function z(e = {}) {
|
|
|
120
120
|
const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, s = (o) => g(o, "day"), a = () => {
|
|
121
121
|
if (!c(i))
|
|
122
122
|
return;
|
|
123
|
-
const o =
|
|
123
|
+
const o = Y(_(s, "gameDate"))(c(t));
|
|
124
124
|
if (!o)
|
|
125
125
|
return;
|
|
126
|
-
const f =
|
|
126
|
+
const f = C(o.gameDate, "YYYY-MM-DD"), u = I(n).querySelector(`div[data-gamedate="${f}"]`);
|
|
127
127
|
if (!u)
|
|
128
128
|
return;
|
|
129
129
|
const p = getComputedStyle(u).getPropertyValue("--vbr-widget-sticky-top-offset") || 0, l = (u.getBoundingClientRect()?.top ?? 0) - c(r) - Number.parseFloat(p);
|
|
130
130
|
window.scrollTo(0, l);
|
|
131
131
|
};
|
|
132
|
-
|
|
132
|
+
b(
|
|
133
133
|
() => ({
|
|
134
134
|
items: c(t),
|
|
135
135
|
element: c(n)
|
|
136
136
|
}),
|
|
137
137
|
async ({ items: o, element: f }) => {
|
|
138
|
-
o.length === 0 || !f || (await
|
|
138
|
+
o.length === 0 || !f || (await O(), a());
|
|
139
139
|
}
|
|
140
140
|
);
|
|
141
141
|
}
|
|
@@ -158,7 +158,7 @@ function Q({ options: e = {}, transform: t = (i) => i, onError: n = d, onSuccess
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
function H(e = !1, t = d, n = d) {
|
|
161
|
-
const r =
|
|
161
|
+
const r = T();
|
|
162
162
|
h(r, (i) => {
|
|
163
163
|
if (c(e)) {
|
|
164
164
|
if (i === "visible")
|
package/dist/constants.js
CHANGED