@mjsz-vbr-elements/core 2.7.2 → 2.8.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-QBTNWUHG.js → AdditionalStandingsText-Cyb6wiJD.js} +86 -78
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/{convert-DkesPGp4.js → convert-DeSqjxv8.js} +16 -13
- package/dist/datetime-BzdN4htO.js +1 -1
- 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 +3 -3
- package/dist/useAdditionalText-D1LaWU-i.js +1 -1
- package/dist/utils.js +2 -2
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.8.0 - 11/12/2024, 21:34:58
|
|
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, O as
|
|
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, O as $, K as T, 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 M, 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;
|
|
@@ -72,7 +72,7 @@ function ne(t, e, r) {
|
|
|
72
72
|
function ae(t, e, r, n) {
|
|
73
73
|
return t["@@transducer/result"](r[n](re(t["@@transducer/step"], t), e));
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var C = /* @__PURE__ */ ee(te, ae, ne), se = /* @__PURE__ */ function() {
|
|
76
76
|
function t(e) {
|
|
77
77
|
this.f = e;
|
|
78
78
|
}
|
|
@@ -88,7 +88,7 @@ function x(t) {
|
|
|
88
88
|
return new se(t);
|
|
89
89
|
}
|
|
90
90
|
var E = /* @__PURE__ */ c(function(t, e, r) {
|
|
91
|
-
return
|
|
91
|
+
return C(typeof t == "function" ? x(t) : t, e, r);
|
|
92
92
|
}), I = /* @__PURE__ */ f(function(e) {
|
|
93
93
|
return function() {
|
|
94
94
|
return e;
|
|
@@ -109,7 +109,7 @@ var E = /* @__PURE__ */ c(function(t, e, r) {
|
|
|
109
109
|
return N(e.length, e);
|
|
110
110
|
});
|
|
111
111
|
function ce(t, e, r) {
|
|
112
|
-
if (
|
|
112
|
+
if ($(t) && g(r)) {
|
|
113
113
|
var n = [].concat(r);
|
|
114
114
|
return n[t] = e, n;
|
|
115
115
|
}
|
|
@@ -125,7 +125,7 @@ var oe = /* @__PURE__ */ f(function(e) {
|
|
|
125
125
|
return r;
|
|
126
126
|
var a = e[0];
|
|
127
127
|
if (e.length > 1) {
|
|
128
|
-
var u = !oe(n) && T(a, n) && typeof n[a] == "object" ? n[a] :
|
|
128
|
+
var u = !oe(n) && T(a, n) && typeof n[a] == "object" ? n[a] : $(e[1]) ? [] : {};
|
|
129
129
|
r = t(Array.prototype.slice.call(e, 1), r, u);
|
|
130
130
|
}
|
|
131
131
|
return ce(a, r, n);
|
|
@@ -264,7 +264,7 @@ var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Te, function(e, r, n, a)
|
|
|
264
264
|
var o = n(i), l = e(T(o, s) ? s[o] : B(r), i);
|
|
265
265
|
return l && l["@@transducer/reduced"] ? X(s) : (s[o] = l, s);
|
|
266
266
|
});
|
|
267
|
-
return
|
|
267
|
+
return C(u, {}, a);
|
|
268
268
|
})), Se = /* @__PURE__ */ c(function(e, r, n) {
|
|
269
269
|
var a = e(r), u = e(n);
|
|
270
270
|
return a > u ? -1 : a < u ? 1 : 0;
|
|
@@ -295,9 +295,9 @@ var _e = /* @__PURE__ */ k(4, [], /* @__PURE__ */ H([], Te, function(e, r, n, a)
|
|
|
295
295
|
return e(function(a) {
|
|
296
296
|
return P(r(a));
|
|
297
297
|
})(n).value;
|
|
298
|
-
}),
|
|
298
|
+
}), $e = /* @__PURE__ */ c(function(e, r, n) {
|
|
299
299
|
return n.replace(e, r);
|
|
300
|
-
}),
|
|
300
|
+
}), Me = /* @__PURE__ */ p(function(e, r) {
|
|
301
301
|
return Array.prototype.slice.call(r, 0).sort(e);
|
|
302
302
|
}), W = /* @__PURE__ */ p(function(e, r) {
|
|
303
303
|
return Array.prototype.slice.call(r, 0).sort(function(n, a) {
|
|
@@ -348,7 +348,7 @@ const Ue = {
|
|
|
348
348
|
if (e) {
|
|
349
349
|
const a = r.map(
|
|
350
350
|
(i) => n ? d(Y(i), A(e)) : d(h(i), b, Ie(b(e)))
|
|
351
|
-
), u = ie((i) => i.name ? Oe(Re("name"),
|
|
351
|
+
), u = ie((i) => i.name ? Oe(Re("name"), $e(",", ""), i) : i), s = J(d(u, ue([...a])), this.result);
|
|
352
352
|
this.isFiltered = !0, this.filteredRowsLength = s.length, this.result = s;
|
|
353
353
|
}
|
|
354
354
|
return this;
|
|
@@ -404,7 +404,7 @@ const Ue = {
|
|
|
404
404
|
return e === null ? this : (this.result = this.result.filter((r) => new Date(r.gameDate).getMonth() == e), this);
|
|
405
405
|
},
|
|
406
406
|
convertTimes(e = []) {
|
|
407
|
-
return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] =
|
|
407
|
+
return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = M(r[n]) : r), r)), this;
|
|
408
408
|
},
|
|
409
409
|
groupByDays() {
|
|
410
410
|
return this.currentItems = this.result.length, this.result = Ae((e) => m(e.gameDate, "YYYY-MM-DD"))(this.result), this;
|
|
@@ -418,6 +418,9 @@ const Ue = {
|
|
|
418
418
|
...((r = t.player) == null ? void 0 : r.id) && { name: `${t.player.lastName} ${t.player.firstName}` },
|
|
419
419
|
...((n = t.player) == null ? void 0 : n.nationality) && {
|
|
420
420
|
name: (a = t.player) != null && a.nationality.includes("hu") ? `${t.player.lastName} ${t.player.firstName}` : `${t.player.lastName}, ${t.player.firstName}`
|
|
421
|
+
},
|
|
422
|
+
...t.nationality && {
|
|
423
|
+
name: t.nationality.includes("hu") ? `${t.lastName} ${t.firstName}` : `${t.lastName}, ${t.firstName}`
|
|
421
424
|
}
|
|
422
425
|
};
|
|
423
426
|
}, qe = (t) => {
|
|
@@ -448,13 +451,13 @@ const Ue = {
|
|
|
448
451
|
...e,
|
|
449
452
|
[t]: (r = e[t]) == null ? void 0 : r.toUpperCase()
|
|
450
453
|
};
|
|
451
|
-
}, ze = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] =
|
|
454
|
+
}, ze = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = M(e[r]) : e), e), we = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Min`] = Q(e[r]) : e), e), et = (t = []) => (e) => (t.map((r) => e[`${r}Min`] = V(e[r])), e), tt = (t) => {
|
|
452
455
|
var e, r;
|
|
453
456
|
return {
|
|
454
457
|
...t,
|
|
455
458
|
periodResults: ((r = (e = t.result) == null ? void 0 : e.match(/\(.*?\)/)) == null ? void 0 : r[0]) ?? ""
|
|
456
459
|
};
|
|
457
|
-
},
|
|
460
|
+
}, Ce = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), rt = W([Ce, y(h("id")), y(h("gameId"))]), xe = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), nt = Me(xe("name"));
|
|
458
461
|
function Ee(t) {
|
|
459
462
|
var e;
|
|
460
463
|
return [t.isHomeGame ? null : "@", (e = t.opponent) == null ? void 0 : e.shortName].join(" ");
|