@mjsz-vbr-elements/core 2.3.7 → 2.4.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/{AdditionalStandingsText-BcHECtG0.js → AdditionalStandingsText-DlP-tdH1.js} +881 -778
- package/dist/columns.js +1 -1
- package/dist/components.js +13 -12
- package/dist/composables.js +37 -41
- package/dist/constants.js +1 -1
- package/dist/{convert-HKQt4kO3.js → convert-BUiKPu9l.js} +186 -203
- package/dist/datetime-Df9jKQTx.js +1303 -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 +101 -88
- package/dist/{useAdditionalText-Ta-GUW7T.js → useAdditionalText-Bi2CUi4-.js} +232 -228
- package/dist/utils.js +60 -48
- package/package.json +9 -8
- package/dist/datetime-BD_lSSC2.js +0 -1230
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.0 - 06/06/2024, 12:35:57
|
|
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-DlP-tdH1.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.0 - 06/06/2024, 12:35:57
|
|
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-Bi2CUi4-.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-Bi2CUi4-.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-Df9jKQTx.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,20 +20,18 @@ 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
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})
|
|
36
|
-
), X = /* @__PURE__ */ function() {
|
|
28
|
+
var F = /* @__PURE__ */ g(/* @__PURE__ */ _(["find"], R, function(t, n) {
|
|
29
|
+
for (var r = 0, i = n.length; r < i; ) {
|
|
30
|
+
if (t(n[r]))
|
|
31
|
+
return n[r];
|
|
32
|
+
r += 1;
|
|
33
|
+
}
|
|
34
|
+
})), X = /* @__PURE__ */ function() {
|
|
37
35
|
function e(t, n) {
|
|
38
36
|
this.xf = n, this.f = t, this.idx = -1, this.found = !1;
|
|
39
37
|
}
|
|
@@ -48,16 +46,14 @@ function Y(e) {
|
|
|
48
46
|
return new X(e, t);
|
|
49
47
|
};
|
|
50
48
|
}
|
|
51
|
-
var G = /* @__PURE__ */ g(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
})
|
|
60
|
-
), w = /* @__PURE__ */ V(function(t, n, r) {
|
|
49
|
+
var G = /* @__PURE__ */ g(/* @__PURE__ */ _([], Y, function(t, n) {
|
|
50
|
+
for (var r = 0, i = n.length; r < i; ) {
|
|
51
|
+
if (t(n[r]))
|
|
52
|
+
return r;
|
|
53
|
+
r += 1;
|
|
54
|
+
}
|
|
55
|
+
return -1;
|
|
56
|
+
})), w = /* @__PURE__ */ V(function(t, n, r) {
|
|
61
57
|
return t(A(n, r));
|
|
62
58
|
});
|
|
63
59
|
const K = async (e, t, n) => {
|
|
@@ -81,8 +77,8 @@ const K = async (e, t, n) => {
|
|
|
81
77
|
}, L = (e) => Object.keys(e).map((t) => t + "=" + e[t]).join("&"), $ = (e) => {
|
|
82
78
|
var t;
|
|
83
79
|
return e || ((t = window.__MJSZ_VBR_WIDGET__) != null && t.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
|
|
84
|
-
},
|
|
85
|
-
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o =
|
|
80
|
+
}, Q = (e = {}) => {
|
|
81
|
+
const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = E(u(t)), s = (a) => v(a, "day");
|
|
86
82
|
return S(n, () => {
|
|
87
83
|
if (!i)
|
|
88
84
|
return;
|
|
@@ -94,7 +90,7 @@ const K = async (e, t, n) => {
|
|
|
94
90
|
o.value = a;
|
|
95
91
|
}
|
|
96
92
|
};
|
|
97
|
-
},
|
|
93
|
+
}, W = ({ options: e = {}, transform: t = (i) => i, onError: n = h, onSuccess: r = h }) => {
|
|
98
94
|
const { path: i, apiKey: o, params: s, resetOnExecute: d = !1, immediate: c = !1 } = e, {
|
|
99
95
|
state: a,
|
|
100
96
|
error: f,
|
|
@@ -113,9 +109,9 @@ const K = async (e, t, n) => {
|
|
|
113
109
|
execute: m
|
|
114
110
|
};
|
|
115
111
|
};
|
|
116
|
-
function
|
|
112
|
+
function Z(e = !1, t = h, n = h) {
|
|
117
113
|
const r = I();
|
|
118
|
-
|
|
114
|
+
P(r, (i) => {
|
|
119
115
|
if (u(e)) {
|
|
120
116
|
if (i === "visible")
|
|
121
117
|
return t();
|
|
@@ -123,20 +119,20 @@ function z(e = !1, t = h, n = h) {
|
|
|
123
119
|
}
|
|
124
120
|
});
|
|
125
121
|
}
|
|
126
|
-
const
|
|
122
|
+
const z = (e = {}) => {
|
|
127
123
|
const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, o = (c) => v(c, "day"), s = () => {
|
|
128
124
|
var p;
|
|
129
125
|
if (d(), !u(i))
|
|
130
126
|
return;
|
|
131
|
-
const c =
|
|
127
|
+
const c = F(w(o, "gameDate"))(u(t));
|
|
132
128
|
if (!c)
|
|
133
129
|
return;
|
|
134
|
-
const a =
|
|
130
|
+
const a = M(c.gameDate, "YYYY-MM-DD"), f = b(n).querySelector(`div[data-gamedate="${a}"]`);
|
|
135
131
|
if (!f)
|
|
136
132
|
return;
|
|
137
133
|
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
134
|
window.scrollTo(0, m);
|
|
139
|
-
}, { stop: d } =
|
|
135
|
+
}, { stop: d } = T(
|
|
140
136
|
() => ({
|
|
141
137
|
items: u(t),
|
|
142
138
|
element: u(n)
|
|
@@ -147,7 +143,7 @@ const H = (e = {}) => {
|
|
|
147
143
|
);
|
|
148
144
|
};
|
|
149
145
|
export {
|
|
150
|
-
|
|
146
|
+
H as createI18n,
|
|
151
147
|
K as fetchVBRData,
|
|
152
148
|
tt as i18n,
|
|
153
149
|
et as useAdditionalText,
|
|
@@ -157,10 +153,10 @@ export {
|
|
|
157
153
|
st as useI18n,
|
|
158
154
|
at as useLazyLoadingState,
|
|
159
155
|
ot as useMainClass,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
Q as usePage,
|
|
157
|
+
z as useScrollToGameDate,
|
|
158
|
+
W as useServices,
|
|
163
159
|
ut as useSort,
|
|
164
|
-
|
|
160
|
+
Z as useVisibilityChange,
|
|
165
161
|
ct as validateColumnsName
|
|
166
162
|
};
|
package/dist/constants.js
CHANGED