@mjsz-vbr-elements/core 2.40.5 → 2.41.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.40.5 - 24/01/2026, 09:20:19
3
+ * version: v2.41.0 - 14/02/2026, 07:52:33
4
4
  * (c) 2026
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -10,7 +10,7 @@ import { n as We, e as Q, u as Ke, o as qe, h as Je, f as Ue, b as Ye, m as Ze,
10
10
  import { SORT_STATE_ASCEND as Kt, SORT_STATE_DESCEND as qt, SORT_STATE_ORIGINAL as $t, LAZY_LOADING_STATE_DELAY as oo, DEFAULT_PORTRAIT_IMAGE_URL as no, AVAILABLE_TIMEZONES_BY_COUNTRY as so } from "./constants.js";
11
11
  import { D as ro, o as wt, g as io } from "./datetime-B_IKGlWy.js";
12
12
  import { COLUMNS_SCHEDULE as ao } from "./columns.js";
13
- import { T as lo, W as re, V as xt } from "./errors-C61Kgyqj.js";
13
+ import { U as lo, W as re, X as xt } from "./errors-AyJoolyE.js";
14
14
  function co(t) {
15
15
  return Ge() ? (Ee(t), !0) : !1;
16
16
  }
package/dist/columns.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.40.5 - 24/01/2026, 09:20:19
3
+ * version: v2.41.0 - 14/02/2026, 07:52:33
4
4
  * (c) 2026
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,11 +1,11 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.40.5 - 24/01/2026, 09:20:19
3
+ * version: v2.41.0 - 14/02/2026, 07:52:33
4
4
  * (c) 2026
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 o, b as r, c as i, d as t, e as l, f as n, g as d, I as c, h as S, i as b, j as g, k as T, l as m, m as v, n as F, o as I } from "./TimezoneSelector-BQ7NcyVM.js";
8
+ import { _ as s, a as o, b as r, c as i, d as t, e as l, f as n, g as d, I as c, h as S, i as b, j as g, k as T, l as m, m as v, n as F, o as I } from "./TimezoneSelector-Cftyj2uC.js";
9
9
  export {
10
10
  s as AdditionalStandingsText,
11
11
  o as BaseSelect,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.40.5 - 24/01/2026, 09:20:19
3
+ * version: v2.41.0 - 14/02/2026, 07:52:33
4
4
  * (c) 2026
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.40.5 - 24/01/2026, 09:20:19
3
+ * version: v2.41.0 - 14/02/2026, 07:52:33
4
4
  * (c) 2026
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.40.5 - 24/01/2026, 09:20:19
3
+ * version: v2.41.0 - 14/02/2026, 07:52:33
4
4
  * (c) 2026
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.40.5 - 24/01/2026, 09:20:19
3
+ * version: v2.41.0 - 14/02/2026, 07:52:33
4
4
  * (c) 2026
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -535,7 +535,18 @@ function Lt(t) {
535
535
  periodResults: t.result?.match(/\(.*?\)/)?.[0] ?? ""
536
536
  };
537
537
  }
538
- const dt = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), Gt = D([dt, _(u("id")), _(u("gameId"))]), yt = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), X = W(yt("name"));
538
+ function Gt(t) {
539
+ const e = [
540
+ t.championshipName,
541
+ ...t.championshipName !== t.sectionName ? [t.sectionName] : [],
542
+ t.divisionName
543
+ ];
544
+ return {
545
+ ...t,
546
+ gameNames: e.join(" - ")
547
+ };
548
+ }
549
+ const dt = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), Mt = D([dt, _(u("id")), _(u("gameId"))]), yt = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), X = W(yt("name"));
539
550
  function vt(t) {
540
551
  return [t.isHomeGame ? null : "@", t.opponent?.shortName].join(" ");
541
552
  }
@@ -547,7 +558,7 @@ function Nt(t) {
547
558
  const e = t.gameResult.split(":"), r = e[0] > e[1], n = e[0] < e[1];
548
559
  return r && t.isOvertime ? "OTW" : r && t.isShootout ? "SOW" : r ? "W" : n && t.isOvertime ? "OTL" : n && t.isShootout ? "SOL" : n ? "L" : "D";
549
560
  }
550
- function Mt(t) {
561
+ function xt(t) {
551
562
  return t.map((e) => ({
552
563
  phaseId: e.phaseId,
553
564
  phaseName: Object.values({
@@ -562,42 +573,42 @@ function Mt(t) {
562
573
  function Tt(t) {
563
574
  return t.player ? t.player.nationality.includes("hu") ? `${t.player.lastName} ${t.player.firstName}` : `${t.player.lastName}, ${t.player.firstName}` : `${t.lastName} ${t.firstName}`;
564
575
  }
565
- const xt = o(
576
+ const Ft = o(
566
577
  W(y(u("seasonName"))),
567
578
  l(pe(["championshipId", "seasonName"]))
568
- ), Ft = (t) => W(_(u("teamName")), t), Wt = o(v(u("sectionId")), g(o(Pe, u("phases")))), Ut = o(u("sectionId"), se), kt = o(u("phaseName"), se), qt = v(u("phaseId")), Ht = o(v(u("name")), l(o(b, me))), Xt = o(u("phaseName"), et), Yt = o(ft, C("_", "-")), Jt = o(g(lt(/-:-/)), j(",")), zt = o(l(j(":")), l(Ce), j(","), C(/^\(|\)$/g, "")), Kt = D([y(u("startingFive"))]), Qt = o(
579
+ ), Wt = (t) => W(_(u("teamName")), t), Ut = o(v(u("sectionId")), g(o(Pe, u("phases")))), kt = o(u("sectionId"), se), qt = o(u("phaseName"), se), Ht = v(u("phaseId")), Xt = o(v(u("name")), l(o(b, me))), Yt = o(u("phaseName"), et), Jt = o(ft, C("_", "-")), zt = o(g(lt(/-:-/)), j(",")), Kt = o(l(j(":")), l(Ce), j(","), C(/^\(|\)$/g, "")), Qt = D([y(u("startingFive"))]), Vt = o(
569
580
  ue(", "),
570
581
  l((t) => `${t.lastName} ${t.firstName}`),
571
582
  g((t) => !t)
572
- ), Vt = o(I(u("eventPeriod")), E, g(P("Period", "type"))), Zt = I(u("row")), wt = (t, e) => R(Ue([fe(e, ["team", "id"]), P("Gól", "type")]), E(t)), er = o(l(b), pe(["headCoach", "secondCoach"])), tr = o(E, l((t) => ({ ...t, eventId: t.eventId ? t.eventId : mt() }))), rr = (t) => v(u("eventTimeSec"), Object.values(t));
573
- function nr(t, e) {
583
+ ), Zt = o(I(u("eventPeriod")), E, g(P("Period", "type"))), wt = I(u("row")), er = (t, e) => R(Ue([fe(e, ["team", "id"]), P("Gól", "type")]), E(t)), tr = o(l(b), pe(["headCoach", "secondCoach"])), rr = o(E, l((t) => ({ ...t, eventId: t.eventId ? t.eventId : mt() }))), nr = (t) => v(u("eventTimeSec"), Object.values(t));
584
+ function ar(t, e) {
574
585
  const r = (a) => {
575
586
  const s = ["first_referee", "second_referee", "first_line_judge", "second_line_judge"].indexOf(a.role);
576
587
  return s > -1 ? s : 4;
577
588
  }, n = (a) => ({ ...b(a), role: e(`role.${a.role}`) });
578
589
  return I(u("type"), l(n, v(r, Object.values(t))));
579
590
  }
580
- const ar = D([
591
+ const sr = D([
581
592
  y(u("points")),
582
593
  _(u("gamesPlayed")),
583
594
  y(u("w")),
584
595
  y(u("gd")),
585
596
  y(u("gf"))
586
- ]), sr = (t, e) => g(P(t, "championshipId"), e), ir = (t, e) => R(P(t, "championshipId"), e), ur = o(g((t) => ["Rájátszás", "Újrajátszandó"].includes(t.phaseName)), S([0, "phases"])), or = o(
597
+ ]), ir = (t, e) => g(P(t, "championshipId"), e), ur = (t, e) => R(P(t, "championshipId"), e), or = o(g((t) => ["Rájátszás", "Újrajátszandó"].includes(t.phaseName)), S([0, "phases"])), cr = o(
587
598
  I(St),
588
599
  v((t) => ["ld", "rd", "d"].includes(t.position?.toLowerCase()) ? 1 : ["lw", "rw", "c"].includes(t.position?.toLowerCase()) ? 2 : 0),
589
600
  v(_t),
590
601
  l(o(b, me, ht(["position"])))
591
602
  );
592
- function cr({ goalieStats: t, fieldPlayers: e, playersPenalty: r }) {
603
+ function lr({ goalieStats: t, fieldPlayers: e, playersPenalty: r }) {
593
604
  const n = l(S(["player", "playerId"]))(t), s = g((p) => n.includes(p.player.playerId), r), i = nt((p, he) => p.player.playerId === he, r, n), c = Y(e, s), d = Y(t, i);
594
605
  return {
595
606
  fieldPlayers: X(c),
596
607
  goalies: X(d)
597
608
  };
598
609
  }
599
- const lr = ne((t, e) => T(R(fe(e, ["team", "id"])), l(b))(t));
600
- function fr(t) {
610
+ const fr = ne((t, e) => T(R(fe(e, ["team", "id"])), l(b))(t));
611
+ function pr(t) {
601
612
  const e = t.city ? le(oe("city"), C(/$/, ",")) : () => ({});
602
613
  return o(ue(" "), re, e, je(["type"]))(t);
603
614
  }
@@ -610,7 +621,7 @@ function _t(t) {
610
621
  function Y(t, e) {
611
622
  return re(ot(ut, q(S(["player", "playerId"]), t), q(S(["player", "playerId"]), e)));
612
623
  }
613
- function pr(t, e = "body") {
624
+ function mr(t, e = "body") {
614
625
  if (!t)
615
626
  return;
616
627
  if (typeof e != "string") {
@@ -619,7 +630,7 @@ function pr(t, e = "body") {
619
630
  }
620
631
  document.querySelector(e)?.append(t);
621
632
  }
622
- function mr(t, e = () => ({})) {
633
+ function hr(t, e = () => ({})) {
623
634
  return t.slice().sort((r, n) => {
624
635
  const a = e(r), s = e(n);
625
636
  if (a === null || s === null)
@@ -628,19 +639,19 @@ function mr(t, e = () => ({})) {
628
639
  return i & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : i & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
629
640
  });
630
641
  }
631
- class hr extends Error {
642
+ class dr extends Error {
632
643
  constructor(e, r = {}) {
633
644
  const { key: n, cause: a } = r;
634
645
  super(e), this.name = "WidgetError", this.key = n, this.cause = a;
635
646
  }
636
647
  }
637
- const dr = {
648
+ const yr = {
638
649
  message: "Undefined Column name Message",
639
650
  options: {
640
651
  key: "undefined-column",
641
652
  cause: {}
642
653
  }
643
- }, yr = {
654
+ }, vr = {
644
655
  message: "Invalid season name",
645
656
  options: {
646
657
  key: "invalid-season-name",
@@ -648,7 +659,7 @@ const dr = {
648
659
  }
649
660
  };
650
661
  export {
651
- pe as $,
662
+ ut as $,
652
663
  Jt as A,
653
664
  zt as B,
654
665
  Kt as C,
@@ -670,19 +681,20 @@ export {
670
681
  fr as S,
671
682
  pr as T,
672
683
  mr as U,
673
- dr as V,
674
- hr as W,
684
+ hr as V,
685
+ dr as W,
675
686
  yr as X,
676
- se as Y,
677
- et as Z,
678
- ut as _,
687
+ vr as Y,
688
+ se as Z,
689
+ et as _,
679
690
  Et as a,
680
- T as a0,
681
- P as a1,
682
- E as a2,
683
- v as a3,
684
- x as a4,
685
- M as a5,
691
+ pe as a0,
692
+ T as a1,
693
+ P as a2,
694
+ E as a3,
695
+ v as a4,
696
+ x as a5,
697
+ M as a6,
686
698
  Pt as b,
687
699
  Ot as c,
688
700
  Ct as d,