@mjsz-vbr-elements/gamecenter 2.29.1 → 2.29.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.
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/gamecenter
3
- * version: v2.29.1 - 23/09/2025, 08:19:29
3
+ * version: v2.29.3 - 01/10/2025, 20:13:16
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1499,7 +1499,7 @@ const vn = "Gól", pn = "Kiállítás", bn = "Kapus", fn = "Idő", Rt = "Büntet
1499
1499
  "stroke-linejoin": "round"
1500
1500
  };
1501
1501
  function wn(e, t) {
1502
- return c(), u("svg", yn, t[0] || (t[0] = [
1502
+ return c(), u("svg", yn, [...t[0] || (t[0] = [
1503
1503
  s("path", { d: "M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" }, null, -1),
1504
1504
  s("rect", {
1505
1505
  x: "8",
@@ -1509,7 +1509,7 @@ function wn(e, t) {
1509
1509
  rx: "1",
1510
1510
  ry: "1"
1511
1511
  }, null, -1)
1512
- ]));
1512
+ ])]);
1513
1513
  }
1514
1514
  const Ce = { render: wn }, kn = {
1515
1515
  xmlns: "http://www.w3.org/2000/svg",
@@ -1521,10 +1521,10 @@ const Ce = { render: wn }, kn = {
1521
1521
  "stroke-linejoin": "round"
1522
1522
  };
1523
1523
  function xn(e, t) {
1524
- return c(), u("svg", kn, t[0] || (t[0] = [
1524
+ return c(), u("svg", kn, [...t[0] || (t[0] = [
1525
1525
  s("path", { d: "M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z" }, null, -1),
1526
1526
  s("polygon", { points: "9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02" }, null, -1)
1527
- ]));
1527
+ ])]);
1528
1528
  }
1529
1529
  const ja = { render: xn };
1530
1530
  function Na(e, t) {
@@ -1800,7 +1800,7 @@ const Dn = { class: "gamecenter-timeline-game-data" }, Gn = { class: "is-title-c
1800
1800
  }
1801
1801
  },
1802
1802
  setup(e) {
1803
- const t = e, { gameData: a, websocketUrl: i } = ct(t), { t: n } = M(), o = f(() => En(t.gameData.periodResults)), l = f(() => qt(t.gameEvents, t.gameData.homeTeam.id)), d = f(() => qt(t.gameEvents, t.gameData.awayTeam.id)), { visitorsLabel: g, isVisible: v } = Na(i, a), p = f(() => a.value.gameStatus <= 1 ? g.value : n("gameData.attendance", [a.value?.attendance ?? 0]));
1803
+ const t = e, { gameData: a, websocketUrl: i } = ct(t), { t: n } = M(), o = f(() => En(t.gameData.periodResults)), l = f(() => qt(t.gameEvents, t.gameData.homeTeam?.id)), d = f(() => qt(t.gameEvents, t.gameData.awayTeam?.id)), { visitorsLabel: g, isVisible: v } = Na(i, a), p = f(() => a.value.gameStatus <= 1 ? g.value : n("gameData.attendance", [a.value?.attendance ?? 0]));
1804
1804
  return (S, y) => (c(), u("div", Dn, [
1805
1805
  s("div", Gn, [
1806
1806
  y[0] || (R(-1, !0), (y[0] = s("div", { class: "is-title" }, [
@@ -1838,11 +1838,11 @@ const Dn = { class: "gamecenter-timeline-game-data" }, Gn = { class: "is-title-c
1838
1838
  s("div", Un, [
1839
1839
  s("div", null, [
1840
1840
  y[1] || (R(-1, !0), (y[1] = b(r(te), {
1841
- src: r(a).homeTeam.logo,
1841
+ src: r(a).homeTeam?.logo,
1842
1842
  class: "is-team-logo",
1843
1843
  "default-src": r(Ue)
1844
1844
  }, null, 8, ["src", "default-src"])).cacheIndex = 1, R(1), y[1]),
1845
- s("h1", qn, m(r(a).homeTeam.longName), 1),
1845
+ s("h1", qn, m(r(a).homeTeam?.longName), 1),
1846
1846
  s("ul", Wn, [
1847
1847
  (c(!0), u(k, null, N(l.value, (z) => (c(), u("li", {
1848
1848
  key: z.id
@@ -1872,24 +1872,24 @@ const Dn = { class: "gamecenter-timeline-game-data" }, Gn = { class: "is-title-c
1872
1872
  class: q(["is-game-result", [{ "is-game-status-live": r(a).gameStatus === 1 }]])
1873
1873
  }, [
1874
1874
  r(a).gameStatus === 0 ? (c(), u("span", ao, "-")) : (c(), u("span", ro, m(r(a).homeTeamScore), 1)),
1875
- y[3] || (y[3] = w(":")),
1875
+ y[3] || (y[3] = w(":", -1)),
1876
1876
  r(a).gameStatus === 0 ? (c(), u("span", io, "-")) : (c(), u("span", no, m(r(a).awayTeamScore), 1))
1877
1877
  ], 2),
1878
1878
  r(v) || r(a)?.attendance ? (c(), u("p", oo, m(p.value), 1)) : h("", !0),
1879
1879
  r(a).gameStatus > 0 ? (c(), x(_n, {
1880
1880
  key: 6,
1881
1881
  results: o.value,
1882
- "home-team-name": r(a).homeTeam.shortName,
1883
- "away-team-name": r(a).awayTeam.shortName
1882
+ "home-team-name": r(a).homeTeam?.shortName,
1883
+ "away-team-name": r(a).awayTeam?.shortName
1884
1884
  }, null, 8, ["results", "home-team-name", "away-team-name"])) : h("", !0)
1885
1885
  ]),
1886
1886
  s("div", null, [
1887
1887
  y[2] || (R(-1, !0), (y[2] = b(r(te), {
1888
- src: r(a).awayTeam.logo,
1888
+ src: r(a).awayTeam?.logo,
1889
1889
  "default-src": r(qe),
1890
1890
  class: "is-team-logo"
1891
1891
  }, null, 8, ["src", "default-src"])).cacheIndex = 2, R(1), y[2]),
1892
- s("h1", so, m(r(a).awayTeam.longName), 1),
1892
+ s("h1", so, m(r(a).awayTeam?.longName), 1),
1893
1893
  s("ul", lo, [
1894
1894
  (c(!0), u(k, null, N(d.value, (z) => (c(), u("li", {
1895
1895
  key: z.id
@@ -1908,12 +1908,12 @@ const Dn = { class: "gamecenter-timeline-game-data" }, Gn = { class: "is-title-c
1908
1908
  viewBox: "0 0 32 32"
1909
1909
  };
1910
1910
  function mo(e, t) {
1911
- return c(), u("svg", go, t[0] || (t[0] = [
1911
+ return c(), u("svg", go, [...t[0] || (t[0] = [
1912
1912
  s("path", {
1913
1913
  fill: "currentColor",
1914
1914
  d: "M16 7C9.043 7 2 8.718 2 12v8c0 3.282 7.043 5 14 5s14-1.718 14-5v-8c0-3.282-7.043-5-14-5zm0 2c7.444 0 12 1.942 12 3c0 .926-3.489 2.528-9.348 2.914A40.34 40.34 0 0 1 16 15c-7.444 0-12-1.942-12-3s4.556-3 12-3zM4 14.707c.06.035.134.064.195.098a9.77 9.77 0 0 0 1.014.486c.346.144.706.282 1.094.408c.813.265 1.725.48 2.681.664c.289.055.587.1.885.147c.85.137 1.726.247 2.633.324c1.15.098 2.319.166 3.498.166c1.18 0 2.349-.068 3.498-.166a35.139 35.139 0 0 0 2.633-.324c.298-.047.596-.092.885-.147c.956-.184 1.868-.4 2.681-.664a14.457 14.457 0 0 0 1.395-.539a9.77 9.77 0 0 0 .713-.355c.061-.034.136-.063.195-.098V20c0 1.058-4.556 3-12 3S4 21.058 4 20v-5.293z"
1915
1915
  }, null, -1)
1916
- ]));
1916
+ ])]);
1917
1917
  }
1918
1918
  const Te = { render: mo }, uo = ["data-team"], vo = { class: "is-details-title" }, po = { class: "is-team-logo" }, bo = { class: "is-event-type-icon" }, fo = { class: "is-timestamp" }, Se = {
1919
1919
  __name: "GameEventLayout",
@@ -2140,24 +2140,24 @@ const Te = { render: mo }, uo = ["data-team"], vo = { class: "is-details-title"
2140
2140
  viewBox: "0 0 24 24"
2141
2141
  };
2142
2142
  function Oo(e, t) {
2143
- return c(), u("svg", Eo, t[0] || (t[0] = [
2143
+ return c(), u("svg", Eo, [...t[0] || (t[0] = [
2144
2144
  s("path", {
2145
2145
  fill: "currentColor",
2146
2146
  d: "M8.12 9.29 12 13.17l3.88-3.88a.996.996 0 1 1 1.41 1.41l-4.59 4.59a.996.996 0 0 1-1.41 0L6.7 10.7a.996.996 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"
2147
2147
  }, null, -1)
2148
- ]));
2148
+ ])]);
2149
2149
  }
2150
2150
  const Oa = { render: Oo }, Io = {
2151
2151
  xmlns: "http://www.w3.org/2000/svg",
2152
2152
  viewBox: "0 0 24 24"
2153
2153
  };
2154
2154
  function Ao(e, t) {
2155
- return c(), u("svg", Io, t[0] || (t[0] = [
2155
+ return c(), u("svg", Io, [...t[0] || (t[0] = [
2156
2156
  s("path", {
2157
2157
  fill: "currentColor",
2158
2158
  d: "M8.12 14.71L12 10.83l3.88 3.88a.996.996 0 1 0 1.41-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3a.996.996 0 0 0 0 1.41c.39.38 1.03.39 1.42 0"
2159
2159
  }, null, -1)
2160
- ]));
2160
+ ])]);
2161
2161
  }
2162
2162
  const lt = { render: Ao }, Mo = {
2163
2163
  xmlns: "http://www.w3.org/2000/svg",
@@ -2165,12 +2165,12 @@ const lt = { render: Ao }, Mo = {
2165
2165
  viewBox: "0 0 24 24"
2166
2166
  };
2167
2167
  function Lo(e, t) {
2168
- return c(), u("svg", Mo, t[0] || (t[0] = [
2168
+ return c(), u("svg", Mo, [...t[0] || (t[0] = [
2169
2169
  s("path", {
2170
2170
  fill: "#000",
2171
2171
  d: "m7.712 13.208 3.88 3.88 3.88-3.88a.997.997 0 1 1 1.41 1.41l-4.59 4.59a.997.997 0 0 1-1.41 0l-4.59-4.59a.997.997 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0ZM7.712 10.792l3.88-3.88 3.88 3.88a.997.997 0 1 0 1.41-1.41l-4.59-4.59a.996.996 0 0 0-1.41 0l-4.59 4.59a.996.996 0 0 0 0 1.41c.39.38 1.03.39 1.42 0Z"
2172
2172
  }, null, -1)
2173
- ]));
2173
+ ])]);
2174
2174
  }
2175
2175
  const Co = { render: Lo }, Do = { class: "is-details-list" }, Go = { class: "is-evented-person" }, Bo = { class: "is-player-number" }, Ho = {
2176
2176
  __name: "Goalies",
@@ -2236,12 +2236,12 @@ const Co = { render: Lo }, Do = { class: "is-details-list" }, Go = { class: "is-
2236
2236
  }
2237
2237
  }, Ro = { viewBox: "0 0 24 24" };
2238
2238
  function Fo(e, t) {
2239
- return c(), u("svg", Ro, t[0] || (t[0] = [
2239
+ return c(), u("svg", Ro, [...t[0] || (t[0] = [
2240
2240
  s("path", {
2241
2241
  fill: "currentColor",
2242
2242
  d: "M3.76 3.7L2.14 4.88L4.43 8a8.23 8.23 0 0 1 1.92-.72M11 9v2h7v.29l-5 1.42v2.79A4.5 4.5 0 1 1 8.5 11H9V9h-.5a6.5 6.5 0 1 0 6.5 6.5v-1.59L22 12V9m-5.76-5.3L13.85 7h2.47l1.54-2.12M9 2v5h2V2Z"
2243
2243
  }, null, -1)
2244
- ]));
2244
+ ])]);
2245
2245
  }
2246
2246
  const Ia = { render: Fo }, Ko = { class: "is-details-list" }, Vo = { class: "is-evented-person" }, Uo = { key: 0 }, qo = { class: "is-player-number" }, Wo = { class: "is-details-sub-title" }, Yo = {
2247
2247
  __name: "Penalty",
@@ -2359,12 +2359,12 @@ const Ia = { render: Fo }, Ko = { class: "is-details-list" }, Vo = { class: "is-
2359
2359
  viewBox: "0 0 24 24"
2360
2360
  };
2361
2361
  function ts(e, t) {
2362
- return c(), u("svg", es, t[0] || (t[0] = [
2362
+ return c(), u("svg", es, [...t[0] || (t[0] = [
2363
2363
  s("path", {
2364
2364
  fill: "currentColor",
2365
2365
  d: "M12 20a7 7 0 0 1-7-7a7 7 0 0 1 7-7a7 7 0 0 1 7 7a7 7 0 0 1-7 7m7.03-12.61l1.42-1.42c-.45-.51-.9-.97-1.41-1.41L17.62 6c-1.55-1.26-3.5-2-5.62-2a9 9 0 0 0-9 9a9 9 0 0 0 9 9c5 0 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M11 14h2V8h-2m4-7H9v2h6V1Z"
2366
2366
  }, null, -1)
2367
- ]));
2367
+ ])]);
2368
2368
  }
2369
2369
  const _t = { render: ts }, as = { class: "is-period-header" }, rs = {
2370
2370
  __name: "Period",
@@ -2378,7 +2378,7 @@ const _t = { render: ts }, as = { class: "is-period-header" }, rs = {
2378
2378
  const { t } = M();
2379
2379
  return (a, i) => (c(), u("div", as, [
2380
2380
  i[0] || (i[0] = s("div", null, null, -1)),
2381
- s("p", null, m(e.event.eventPeriod === "pre" ? "-15:00" : e.event.eventTime), 1),
2381
+ s("p", null, m(e.event.eventPeriod === "pre" ? "-20:00" : e.event.eventTime), 1),
2382
2382
  s("span", null, [
2383
2383
  b(r(_t)),
2384
2384
  w(" " + m(r(t)(`periods.${e.event.eventPeriod}`)), 1)
@@ -2572,7 +2572,7 @@ const bs = {
2572
2572
  viewBox: "0 0 24 24"
2573
2573
  };
2574
2574
  function fs(e, t) {
2575
- return c(), u("svg", bs, t[0] || (t[0] = [
2575
+ return c(), u("svg", bs, [...t[0] || (t[0] = [
2576
2576
  s("path", {
2577
2577
  fill: "currentColor",
2578
2578
  d: "m12 15.4-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z",
@@ -2582,7 +2582,7 @@ function fs(e, t) {
2582
2582
  fill: "currentColor",
2583
2583
  d: "m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"
2584
2584
  }, null, -1)
2585
- ]));
2585
+ ])]);
2586
2586
  }
2587
2587
  const hs = { render: fs }, ys = ["onMouseenter", "onMouseleave", "onFocus", "onBlur"], V = {
2588
2588
  __name: "GameDataTable",
@@ -2649,8 +2649,8 @@ const hs = { render: fs }, ys = ["onMouseenter", "onMouseleave", "onFocus", "onB
2649
2649
  w(" A ")
2650
2650
  ], 64)) : h("", !0)
2651
2651
  ]),
2652
- _: 2
2653
- }, 1032, ["columns", "rows", "append-to", "sort"])
2652
+ _: 1
2653
+ }, 8, ["columns", "rows", "append-to", "sort"])
2654
2654
  ]),
2655
2655
  _: 1
2656
2656
  }),
@@ -3231,11 +3231,11 @@ const hs = { render: fs }, ys = ["onMouseenter", "onMouseleave", "onFocus", "onB
3231
3231
  s("div", vl, [
3232
3232
  g[3] || (R(-1, !0), (g[3] = s("div", null, [
3233
3233
  b(r(te), {
3234
- src: r(a).homeTeam.logo,
3234
+ src: r(a).homeTeam?.logo,
3235
3235
  class: "is-team-logo",
3236
3236
  "default-src": r(Ue)
3237
3237
  }, null, 8, ["src", "default-src"]),
3238
- s("h1", pl, m(r(a).homeTeam.longName), 1)
3238
+ s("h1", pl, m(r(a).homeTeam?.longName), 1)
3239
3239
  ])).cacheIndex = 3, R(1), g[3]),
3240
3240
  s("div", null, [
3241
3241
  r(a).gameStatus > 1 ? (c(), u("p", bl, m(r(n)(`gameStatus.status-${r(a).gameStatus}`)), 1)) : h("", !0),
@@ -3257,18 +3257,18 @@ const hs = { render: fs }, ys = ["onMouseenter", "onMouseleave", "onFocus", "onB
3257
3257
  class: q(["is-game-result", [{ "is-game-status-live": r(a).gameStatus === 1 }]])
3258
3258
  }, [
3259
3259
  r(a).gameStatus === 0 ? (c(), u("span", Tl, "-")) : (c(), u("span", Sl, m(r(a).homeTeamScore), 1)),
3260
- g[5] || (g[5] = w(":")),
3260
+ g[5] || (g[5] = w(":", -1)),
3261
3261
  r(a).gameStatus === 0 ? (c(), u("span", zl, "-")) : (c(), u("span", _l, m(r(a).awayTeamScore), 1))
3262
3262
  ], 2),
3263
3263
  s("p", Pl, m(r(a).periodResults), 1)
3264
3264
  ]),
3265
3265
  g[4] || (R(-1, !0), (g[4] = s("div", null, [
3266
3266
  b(r(te), {
3267
- src: r(a).awayTeam.logo,
3267
+ src: r(a).awayTeam?.logo,
3268
3268
  "default-src": r(qe),
3269
3269
  class: "is-team-logo"
3270
3270
  }, null, 8, ["src", "default-src"]),
3271
- s("h1", $l, m(r(a).awayTeam.longName), 1)
3271
+ s("h1", $l, m(r(a).awayTeam?.longName), 1)
3272
3272
  ])).cacheIndex = 4, R(1), g[4])
3273
3273
  ])
3274
3274
  ]));
@@ -3877,7 +3877,7 @@ const hs = { render: fs }, ys = ["onMouseenter", "onMouseleave", "onFocus", "onB
3877
3877
  "stroke-linejoin": "round"
3878
3878
  };
3879
3879
  function Ac(e, t) {
3880
- return c(), u("svg", Ic, t[0] || (t[0] = [
3880
+ return c(), u("svg", Ic, [...t[0] || (t[0] = [
3881
3881
  s("circle", {
3882
3882
  cx: "12",
3883
3883
  cy: "12",
@@ -3893,7 +3893,7 @@ function Ac(e, t) {
3893
3893
  cy: "19",
3894
3894
  r: "1"
3895
3895
  }, null, -1)
3896
- ]));
3896
+ ])]);
3897
3897
  }
3898
3898
  const Mc = { render: Ac }, Lc = { class: "gamecenter-game-stats" }, Cc = { class: "gamecenter-game-stats-container-wrapper" }, Dc = ["onClick", "onFocus", "onBlur"], Gc = { class: "is-popover-content" }, Bc = {
3899
3899
  __name: "GameStats",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mjsz-vbr-elements/gamecenter",
3
3
  "type": "module",
4
- "version": "2.29.1",
4
+ "version": "2.29.3",
5
5
  "private": false,
6
6
  "description": "Data visualization for MJSZ VBR",
7
7
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@vueuse/core": "^13.4.0",
22
22
  "ramda": "^0.31.3",
23
- "vue": "^3.5.17",
24
- "@mjsz-vbr-elements/shared": "^2.29.1",
25
- "@mjsz-vbr-elements/core": "^2.29.1"
23
+ "vue": "^3.5.22",
24
+ "@mjsz-vbr-elements/core": "^2.29.3",
25
+ "@mjsz-vbr-elements/shared": "^2.29.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@vitejs/plugin-vue": "^6.0.0",