@mjsz-vbr-elements/core 2.11.2 → 2.11.3
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-pJzOJFd2.js → TimezoneSelector-CNpTsLPu.js} +653 -670
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +29 -29
- package/dist/constants.js +1 -1
- package/dist/{datetime-DTVWbsTz.js → datetime-K_d-hEsO.js} +10 -10
- package/dist/{errors-1KEdp4yb.js → errors-DBdI9YRN.js} +12 -12
- 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 +5 -5
- package/dist/{useSort-fVNzrwPD.js → useSort-CmtczEGw.js} +212 -195
- package/dist/utils.js +4 -4
- package/package.json +2 -2
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.11.
|
|
3
|
+
* version: v2.11.3 - 15/01/2025, 13:04:28
|
|
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-CNpTsLPu.js";
|
|
9
9
|
export {
|
|
10
10
|
s as AdditionalStandingsText,
|
|
11
11
|
r as BaseSelect,
|
package/dist/composables.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.11.
|
|
3
|
+
* version: v2.11.3 - 15/01/2025, 13:04:28
|
|
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 { k as S, l as D,
|
|
9
|
-
import { d as tt, i as et, u as nt, a as rt, c as it, b as
|
|
8
|
+
import { k as S, l as D, p as E, q as b, r as I, n as p, s as T } from "./useSort-CmtczEGw.js";
|
|
9
|
+
import { d as tt, i as et, u as nt, a as rt, c as it, b as st, e as at, f as ot, g as ut, h as ft, v as ct } from "./useSort-CmtczEGw.js";
|
|
10
10
|
import { unref as u, ref as P, nextTick as B, watch as C } from "vue";
|
|
11
11
|
import { VBR_API_BASE_URL as V } from "./constants.js";
|
|
12
|
-
import { Q as m, T as x,
|
|
12
|
+
import { Q as m, T as x, E as y, S as g, C as $, G as A, i as _, f as M } from "./datetime-K_d-hEsO.js";
|
|
13
13
|
var O = /* @__PURE__ */ function() {
|
|
14
14
|
function e(t, n) {
|
|
15
15
|
this.xf = n, this.f = t, this.found = !1;
|
|
@@ -31,7 +31,7 @@ var F = /* @__PURE__ */ y(/* @__PURE__ */ g(["find"], R, function(t, n) {
|
|
|
31
31
|
return n[r];
|
|
32
32
|
r += 1;
|
|
33
33
|
}
|
|
34
|
-
})),
|
|
34
|
+
})), G = /* @__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 F = /* @__PURE__ */ y(/* @__PURE__ */ g(["find"], R, 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 X(e) {
|
|
45
45
|
return function(t) {
|
|
46
|
-
return new
|
|
46
|
+
return new G(e, t);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var Y = /* @__PURE__ */ y(/* @__PURE__ */ g([], X, function(t, n) {
|
|
50
50
|
for (var r = 0, i = n.length; r < i; ) {
|
|
51
51
|
if (t(n[r]))
|
|
52
52
|
return r;
|
|
@@ -66,12 +66,12 @@ async function K(e, t, n) {
|
|
|
66
66
|
"Content-Type": "application/json",
|
|
67
67
|
"X-API-KEY": j(t)
|
|
68
68
|
}
|
|
69
|
-
}).then((
|
|
70
|
-
if (
|
|
71
|
-
return o(
|
|
72
|
-
i(
|
|
73
|
-
}).catch((
|
|
74
|
-
o(
|
|
69
|
+
}).then((s) => s.json()).then((s) => {
|
|
70
|
+
if (s.error)
|
|
71
|
+
return o(s);
|
|
72
|
+
i(s.data);
|
|
73
|
+
}).catch((s) => {
|
|
74
|
+
o(s);
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
}
|
|
@@ -83,31 +83,31 @@ function j(e) {
|
|
|
83
83
|
return e || ((t = window.__MJSZ_VBR_WIDGET__) != null && t.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
|
|
84
84
|
}
|
|
85
85
|
function Q(e = {}) {
|
|
86
|
-
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = P(u(t)),
|
|
86
|
+
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = P(u(t)), s = (a) => _(a, "day");
|
|
87
87
|
return D(n, () => {
|
|
88
88
|
if (!i)
|
|
89
89
|
return;
|
|
90
|
-
const
|
|
91
|
-
o.value =
|
|
90
|
+
const a = Y(v(s, "gameDate"))(u(n));
|
|
91
|
+
o.value = a === -1 ? 1 : Math.floor(a / r) + 1;
|
|
92
92
|
}), {
|
|
93
93
|
page: o,
|
|
94
|
-
change: (
|
|
95
|
-
o.value =
|
|
94
|
+
change: (a) => {
|
|
95
|
+
o.value = a;
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
function W(e = {}) {
|
|
100
|
-
const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, o = (f) => _(f, "day"),
|
|
100
|
+
const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, o = (f) => _(f, "day"), s = () => {
|
|
101
101
|
var d;
|
|
102
102
|
if (!u(i))
|
|
103
103
|
return;
|
|
104
104
|
const f = F(v(o, "gameDate"))(u(t));
|
|
105
105
|
if (!f)
|
|
106
106
|
return;
|
|
107
|
-
const c = M(f.gameDate, "YYYY-MM-DD"),
|
|
108
|
-
if (!
|
|
107
|
+
const c = M(f.gameDate, "YYYY-MM-DD"), a = b(n).querySelector(`div[data-gamedate="${c}"]`);
|
|
108
|
+
if (!a)
|
|
109
109
|
return;
|
|
110
|
-
const h = getComputedStyle(
|
|
110
|
+
const h = getComputedStyle(a).getPropertyValue("--vbr-widget-sticky-top-offset") || 0, l = (((d = a.getBoundingClientRect()) == null ? void 0 : d.top) ?? 0) - u(r) - Number.parseFloat(h);
|
|
111
111
|
window.scrollTo(0, l);
|
|
112
112
|
};
|
|
113
113
|
E(
|
|
@@ -116,13 +116,13 @@ function W(e = {}) {
|
|
|
116
116
|
element: u(n)
|
|
117
117
|
}),
|
|
118
118
|
async ({ items: f, element: c }) => {
|
|
119
|
-
f.length === 0 || !c || (await B(),
|
|
119
|
+
f.length === 0 || !c || (await B(), s());
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
123
|
function Z({ options: e = {}, transform: t = (i) => i, onError: n = p, onSuccess: r = p }) {
|
|
124
|
-
const { path: i, apiKey: o, params:
|
|
125
|
-
() => K(i, o, u(
|
|
124
|
+
const { path: i, apiKey: o, params: s, resetOnExecute: f = !1, immediate: c = !1 } = e, { state: a, error: h, isLoading: l, execute: d } = I(
|
|
125
|
+
() => K(i, o, u(s)).then((w) => t(w)),
|
|
126
126
|
[],
|
|
127
127
|
{
|
|
128
128
|
immediate: c,
|
|
@@ -132,7 +132,7 @@ function Z({ options: e = {}, transform: t = (i) => i, onError: n = p, onSuccess
|
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
134
|
return {
|
|
135
|
-
state:
|
|
135
|
+
state: a,
|
|
136
136
|
error: h,
|
|
137
137
|
isLoading: l,
|
|
138
138
|
execute: d
|
|
@@ -155,8 +155,8 @@ export {
|
|
|
155
155
|
nt as useAdditionalText,
|
|
156
156
|
rt as useColumns,
|
|
157
157
|
it as useError,
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
st as useErrorProvider,
|
|
159
|
+
at as useI18n,
|
|
160
160
|
ot as useLazyLoadingState,
|
|
161
161
|
ut as useMainClass,
|
|
162
162
|
Q as usePage,
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.11.
|
|
3
|
+
* version: v2.11.3 - 15/01/2025, 13:04:28
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
@@ -1297,15 +1297,15 @@ function Hr(t) {
|
|
|
1297
1297
|
export {
|
|
1298
1298
|
te as A,
|
|
1299
1299
|
ne as B,
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1300
|
+
vr as C,
|
|
1301
|
+
vt as D,
|
|
1302
|
+
H as E,
|
|
1303
|
+
he as F,
|
|
1304
|
+
$r as G,
|
|
1305
|
+
yr as H,
|
|
1306
|
+
_e as I,
|
|
1307
|
+
Se as J,
|
|
1308
|
+
X as K,
|
|
1309
1309
|
pe as L,
|
|
1310
1310
|
Nt as M,
|
|
1311
1311
|
Ut as N,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.11.
|
|
3
|
+
* version: v2.11.3 - 15/01/2025, 13:04:28
|
|
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 { SORT_STATE_ORIGINAL as F, SORT_STATE_ASCEND as
|
|
9
|
-
import {
|
|
8
|
+
import { SORT_STATE_ORIGINAL as F, SORT_STATE_ASCEND as G } from "./constants.js";
|
|
9
|
+
import { E as f, L as S, H as v, G as m, _ as p, w as g, x as R, M as b, C as c, N, O as M, D as T, P as U, Q as j, R as k, S as H, T as X, U as q, V as Y, B as D, J as K, F as J, f as h, c as $, b as Q, a as V } from "./datetime-K_d-hEsO.js";
|
|
10
10
|
var Z = /* @__PURE__ */ f(function(e, r) {
|
|
11
11
|
if (e === r)
|
|
12
12
|
return r;
|
|
@@ -147,7 +147,7 @@ function L(t, e, r) {
|
|
|
147
147
|
Object.prototype.hasOwnProperty.call(t, i) && (u[i] = t[i]);
|
|
148
148
|
return u;
|
|
149
149
|
};
|
|
150
|
-
switch (
|
|
150
|
+
switch (U(t)) {
|
|
151
151
|
case "Object":
|
|
152
152
|
return n(Object.create(Object.getPrototypeOf(t)));
|
|
153
153
|
case "Array":
|
|
@@ -241,7 +241,7 @@ var Ne = /* @__PURE__ */ function() {
|
|
|
241
241
|
function t(e, r, n, a) {
|
|
242
242
|
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = a, this.inputs = {};
|
|
243
243
|
}
|
|
244
|
-
return t.prototype["@@transducer/init"] =
|
|
244
|
+
return t.prototype["@@transducer/init"] = j.init, t.prototype["@@transducer/result"] = function(e) {
|
|
245
245
|
var r;
|
|
246
246
|
for (r in this.inputs)
|
|
247
247
|
if (T(r, this.inputs) && (e = this.xf["@@transducer/step"](e, this.inputs[r]), e["@@transducer/reduced"])) {
|
|
@@ -316,7 +316,7 @@ function Fe(t, e = "body") {
|
|
|
316
316
|
const r = document.querySelector(e);
|
|
317
317
|
r == null || r.append(t);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Ge(t, e = () => ({})) {
|
|
320
320
|
return t.slice().sort((r, n) => {
|
|
321
321
|
const a = e(r), u = e(n);
|
|
322
322
|
if (a === null || u === null)
|
|
@@ -325,7 +325,7 @@ function Ue(t, e = () => ({})) {
|
|
|
325
325
|
return s & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : s & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function Ue(t = []) {
|
|
329
329
|
return {
|
|
330
330
|
result: [...t],
|
|
331
331
|
filteredRowsLength: 0,
|
|
@@ -351,7 +351,7 @@ function je(t = []) {
|
|
|
351
351
|
return this;
|
|
352
352
|
if (e.orders[0].direction === F)
|
|
353
353
|
return this;
|
|
354
|
-
const r = Oe(D(
|
|
354
|
+
const r = Oe(D(G), I(y), I(Se));
|
|
355
355
|
return this.result = W(e.orders.map((n) => x(r(n.direction), m)(n.target)))(this.result), this;
|
|
356
356
|
},
|
|
357
357
|
addIndex(e = null) {
|
|
@@ -407,7 +407,7 @@ function je(t = []) {
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
const
|
|
410
|
+
const je = (t, ...e) => v(x(...e))(t);
|
|
411
411
|
function ke(t) {
|
|
412
412
|
var e, r, n, a;
|
|
413
413
|
return {
|
|
@@ -539,7 +539,7 @@ export {
|
|
|
539
539
|
nt as W,
|
|
540
540
|
qe as a,
|
|
541
541
|
Ye as b,
|
|
542
|
-
|
|
542
|
+
Ue as c,
|
|
543
543
|
Ke as d,
|
|
544
544
|
Ve as e,
|
|
545
545
|
Ze as f,
|
|
@@ -550,9 +550,9 @@ export {
|
|
|
550
550
|
rt as k,
|
|
551
551
|
tt as l,
|
|
552
552
|
Fe as m,
|
|
553
|
-
|
|
553
|
+
Ge as n,
|
|
554
554
|
ke as p,
|
|
555
|
-
|
|
555
|
+
je as r,
|
|
556
556
|
Je as s,
|
|
557
557
|
He as t,
|
|
558
558
|
Qe as u
|