@mjsz-vbr-elements/core 2.4.0 → 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-DlP-tdH1.js → AdditionalStandingsText-Cj3Q7dcW.js} +303 -288
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +10 -16
- package/dist/constants.js +1 -1
- package/dist/{convert-BUiKPu9l.js → convert-PUna7fen.js} +29 -33
- package/dist/{datetime-Df9jKQTx.js → datetime-BzdN4htO.js} +318 -349
- 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 +8 -11
- package/dist/{useAdditionalText-Bi2CUi4-.js → useAdditionalText-D1LaWU-i.js} +216 -229
- package/dist/utils.js +4 -4
- package/package.json +10 -10
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.4.
|
|
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 { 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-
|
|
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
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.4.
|
|
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 T, q as b } from "./useAdditionalText-
|
|
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-
|
|
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
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 { 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-
|
|
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
13
|
var O = /* @__PURE__ */ function() {
|
|
14
14
|
function e(t, n) {
|
|
15
15
|
this.xf = n, this.f = t, this.found = !1;
|
|
@@ -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);
|
|
@@ -80,8 +79,7 @@ const K = async (e, t, n) => {
|
|
|
80
79
|
}, Q = (e = {}) => {
|
|
81
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
|
}), {
|
|
@@ -113,8 +111,7 @@ 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
|
});
|
|
@@ -122,14 +119,11 @@ function Z(e = !1, t = h, n = h) {
|
|
|
122
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
|
-
return;
|
|
122
|
+
if (d(), !u(i)) return;
|
|
127
123
|
const c = F(w(o, "gameDate"))(u(t));
|
|
128
|
-
if (!c)
|
|
129
|
-
return;
|
|
124
|
+
if (!c) return;
|
|
130
125
|
const a = M(c.gameDate, "YYYY-MM-DD"), f = b(n).querySelector(`div[data-gamedate="${a}"]`);
|
|
131
|
-
if (!f)
|
|
132
|
-
return;
|
|
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
129
|
}, { stop: d } = T(
|
package/dist/constants.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.4.
|
|
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
8
|
import { SORT_STATE_ORIGINAL as j, SORT_STATE_ASCEND as F } from "./constants.js";
|
|
9
|
-
import { C as p, L as S, D as v, I as h, _ as f, w as g, x as R, M as O, J as c, N as T, O as M, K as N, P as U, Q as G, R as k, S as H, T as X, U as q, V as K, B as A, F as Y, H as J, f as m, c as C, b as Q, a as V } from "./datetime-
|
|
9
|
+
import { C as p, L as S, D as v, I as h, _ as f, w as g, x as R, M as O, J as c, N as T, O as M, K as N, P as U, Q as G, R as k, S as H, T as X, U as q, V as K, B as A, F as Y, H as J, f as m, c as C, b as Q, a as V } from "./datetime-BzdN4htO.js";
|
|
10
10
|
var Z = /* @__PURE__ */ p(function(e, r) {
|
|
11
11
|
if (e === r)
|
|
12
12
|
return r;
|
|
@@ -105,8 +105,10 @@ var $ = /* @__PURE__ */ c(function(t, e, r) {
|
|
|
105
105
|
}), y = /* @__PURE__ */ c(function(e, r, n) {
|
|
106
106
|
var s = e(r), u = e(n);
|
|
107
107
|
return s < u ? -1 : s > u ? 1 : 0;
|
|
108
|
+
}), ie = /* @__PURE__ */ f(function(e) {
|
|
109
|
+
return T(e.length, e);
|
|
108
110
|
});
|
|
109
|
-
function
|
|
111
|
+
function ce(t, e, r) {
|
|
110
112
|
if (M(t) && g(r)) {
|
|
111
113
|
var n = [].concat(r);
|
|
112
114
|
return n[t] = e, n;
|
|
@@ -116,25 +118,25 @@ function ie(t, e, r) {
|
|
|
116
118
|
s[u] = r[u];
|
|
117
119
|
return s[t] = e, s;
|
|
118
120
|
}
|
|
119
|
-
var
|
|
121
|
+
var oe = /* @__PURE__ */ f(function(e) {
|
|
120
122
|
return e == null;
|
|
121
|
-
}),
|
|
123
|
+
}), le = /* @__PURE__ */ c(function t(e, r, n) {
|
|
122
124
|
if (e.length === 0)
|
|
123
125
|
return r;
|
|
124
126
|
var s = e[0];
|
|
125
127
|
if (e.length > 1) {
|
|
126
|
-
var u = !
|
|
128
|
+
var u = !oe(n) && N(s, n) && typeof n[s] == "object" ? n[s] : M(e[1]) ? [] : {};
|
|
127
129
|
r = t(Array.prototype.slice.call(e, 1), r, u);
|
|
128
130
|
}
|
|
129
|
-
return
|
|
130
|
-
}),
|
|
131
|
-
return
|
|
131
|
+
return ce(s, r, n);
|
|
132
|
+
}), pe = /* @__PURE__ */ c(function(e, r, n) {
|
|
133
|
+
return le([e], r, n);
|
|
132
134
|
});
|
|
133
|
-
function
|
|
135
|
+
function fe(t) {
|
|
134
136
|
return new RegExp(t.source, t.flags ? t.flags : (t.global ? "g" : "") + (t.ignoreCase ? "i" : "") + (t.multiline ? "m" : "") + (t.sticky ? "y" : "") + (t.unicode ? "u" : "") + (t.dotAll ? "s" : ""));
|
|
135
137
|
}
|
|
136
138
|
function B(t, e, r) {
|
|
137
|
-
if (r || (r = new
|
|
139
|
+
if (r || (r = new me()), he(t))
|
|
138
140
|
return t;
|
|
139
141
|
var n = function(u) {
|
|
140
142
|
var a = r.get(t);
|
|
@@ -153,7 +155,7 @@ function B(t, e, r) {
|
|
|
153
155
|
case "Date":
|
|
154
156
|
return new Date(t.valueOf());
|
|
155
157
|
case "RegExp":
|
|
156
|
-
return
|
|
158
|
+
return fe(t);
|
|
157
159
|
case "Int8Array":
|
|
158
160
|
case "Uint8Array":
|
|
159
161
|
case "Uint8ClampedArray":
|
|
@@ -170,11 +172,11 @@ function B(t, e, r) {
|
|
|
170
172
|
return t;
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
|
-
function
|
|
175
|
+
function he(t) {
|
|
174
176
|
var e = typeof t;
|
|
175
177
|
return t == null || e != "object" && e != "function";
|
|
176
178
|
}
|
|
177
|
-
var
|
|
179
|
+
var me = /* @__PURE__ */ function() {
|
|
178
180
|
function t() {
|
|
179
181
|
this.map = {}, this.length = 0;
|
|
180
182
|
}
|
|
@@ -205,7 +207,7 @@ var he = /* @__PURE__ */ function() {
|
|
|
205
207
|
}
|
|
206
208
|
}, t;
|
|
207
209
|
}();
|
|
208
|
-
function
|
|
210
|
+
function de(t, e) {
|
|
209
211
|
return function() {
|
|
210
212
|
return e.call(this, t.apply(this, arguments));
|
|
211
213
|
};
|
|
@@ -219,25 +221,23 @@ function _(t, e) {
|
|
|
219
221
|
return g(n) || typeof n[t] != "function" ? e.apply(this, arguments) : n[t].apply(n, Array.prototype.slice.call(arguments, 0, r - 1));
|
|
220
222
|
};
|
|
221
223
|
}
|
|
222
|
-
var
|
|
224
|
+
var ye = /* @__PURE__ */ c(/* @__PURE__ */ _("slice", function(e, r, n) {
|
|
223
225
|
return Array.prototype.slice.call(n, e, r);
|
|
224
|
-
})),
|
|
226
|
+
})), ve = /* @__PURE__ */ f(/* @__PURE__ */ _("tail", /* @__PURE__ */ ye(1, 1 / 0)));
|
|
225
227
|
function d() {
|
|
226
228
|
if (arguments.length === 0)
|
|
227
229
|
throw new Error("pipe requires at least one argument");
|
|
228
|
-
return O(arguments[0].length, $(
|
|
230
|
+
return O(arguments[0].length, $(de, arguments[0], ve(arguments)));
|
|
229
231
|
}
|
|
230
|
-
var
|
|
232
|
+
var ge = /* @__PURE__ */ f(function(e) {
|
|
231
233
|
return R(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
232
234
|
});
|
|
233
235
|
function L() {
|
|
234
236
|
if (arguments.length === 0)
|
|
235
237
|
throw new Error("compose requires at least one argument");
|
|
236
|
-
return d.apply(this,
|
|
238
|
+
return d.apply(this, ge(arguments));
|
|
237
239
|
}
|
|
238
|
-
var
|
|
239
|
-
return T(e.length, e);
|
|
240
|
-
}), Te = /* @__PURE__ */ function() {
|
|
240
|
+
var Te = /* @__PURE__ */ function() {
|
|
241
241
|
function t(e, r, n, s) {
|
|
242
242
|
this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = s, this.inputs = {};
|
|
243
243
|
}
|
|
@@ -283,7 +283,7 @@ var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Ne, function(e, r, n, s)
|
|
|
283
283
|
};
|
|
284
284
|
};
|
|
285
285
|
}), Re = /* @__PURE__ */ f(function(e) {
|
|
286
|
-
return be(h(e),
|
|
286
|
+
return be(h(e), pe(e));
|
|
287
287
|
}), P = function(t) {
|
|
288
288
|
return {
|
|
289
289
|
value: t,
|
|
@@ -307,8 +307,7 @@ var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Ne, function(e, r, n, s)
|
|
|
307
307
|
});
|
|
308
308
|
}), b = /* @__PURE__ */ K(0, "toLowerCase");
|
|
309
309
|
const je = (t, e = "body") => {
|
|
310
|
-
if (!t)
|
|
311
|
-
return;
|
|
310
|
+
if (!t) return;
|
|
312
311
|
if (typeof e != "string") {
|
|
313
312
|
e == null || e.append(t);
|
|
314
313
|
return;
|
|
@@ -349,16 +348,14 @@ const Ue = {
|
|
|
349
348
|
if (e) {
|
|
350
349
|
const s = r.map(
|
|
351
350
|
(i) => n ? d(Y(i), A(e)) : d(h(i), b, Ie(b(e)))
|
|
352
|
-
), u =
|
|
351
|
+
), u = ie((i) => i.name ? Oe(Re("name"), Me(",", ""), i) : i), a = J(d(u, ue([...s])), this.result);
|
|
353
352
|
this.isFiltered = !0, this.filteredRowsLength = a.length, this.result = a;
|
|
354
353
|
}
|
|
355
354
|
return this;
|
|
356
355
|
},
|
|
357
356
|
sorted(e) {
|
|
358
|
-
if (!e.sortTarget)
|
|
359
|
-
|
|
360
|
-
if (e.orders[0].direction === j)
|
|
361
|
-
return this;
|
|
357
|
+
if (!e.sortTarget) return this;
|
|
358
|
+
if (e.orders[0].direction === j) return this;
|
|
362
359
|
const r = De(A(F), I(y), I(Se));
|
|
363
360
|
return this.result = W(e.orders.map((n) => L(r(n.direction), h)(n.target)))(this.result), this;
|
|
364
361
|
},
|
|
@@ -375,8 +372,7 @@ const Ue = {
|
|
|
375
372
|
})), this;
|
|
376
373
|
},
|
|
377
374
|
pagination(e, r) {
|
|
378
|
-
if (!r)
|
|
379
|
-
return this;
|
|
375
|
+
if (!r) return this;
|
|
380
376
|
e = Number(e), r = Number(r);
|
|
381
377
|
const n = (e - 1) * r, s = n + r;
|
|
382
378
|
return this.result = this.result.slice(n, s), this;
|