@mjsz-vbr-elements/core 2.11.2 → 2.12.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/columns.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.11.2 - 15/01/2025, 11:33:02
3
+ * version: v2.12.0 - 19/01/2025, 23:11:29
4
4
  * (c) 2025
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.11.2 - 15/01/2025, 11:33:02
3
+ * version: v2.12.0 - 19/01/2025, 23:11:29
4
4
  * (c) 2025
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 r, b as o, c as t, d as i, e as l, f as n, I as c, g as d, h as S, i as b, j as g, k as T, l as m, m as v, n as I } from "./TimezoneSelector-pJzOJFd2.js";
8
+ import { _ as s, a as r, b as o, c as t, d as i, e as l, f as n, I as c, g as d, h as S, i as b, j as g, k as T, l as m, m as v, n as I } from "./TimezoneSelector-CZSwXNuA.js";
9
9
  export {
10
10
  s as AdditionalStandingsText,
11
11
  r as BaseSelect,
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.11.2 - 15/01/2025, 11:33:02
3
+ * version: v2.12.0 - 19/01/2025, 23:11:29
4
4
  * (c) 2025
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, m as E, p as b, q as I, n as p, r as T } from "./useSort-fVNzrwPD.js";
9
- import { d as tt, i as et, u as nt, a as rt, c as it, b as at, e as st, f as ot, g as ut, h as ft, v as ct } from "./useSort-fVNzrwPD.js";
8
+ import { j as S, k as D, l as E, p as b, q as I, n as p, r as T } from "./useSort-D29iq9K6.js";
9
+ import { d as tt, i as et, u as nt, a as rt, c as it, b as at, e as st, f as ot, g as ut, v as ft } from "./useSort-D29iq9K6.js";
10
10
  import { unref as u, ref as P, nextTick as B, watch as C } from "vue";
11
11
  import { VBR_API_BASE_URL as V } from "./constants.js";
12
- import { Q as m, T as x, C as y, S as g, J as $, E as A, i as _, f as M } from "./datetime-DTVWbsTz.js";
13
- var O = /* @__PURE__ */ function() {
12
+ import { Q as m, T as x, E as y, S as g, C as $, G as A, i as _, f as O } from "./datetime-K_d-hEsO.js";
13
+ var R = /* @__PURE__ */ function() {
14
14
  function e(t, n) {
15
15
  this.xf = n, this.f = t, this.found = !1;
16
16
  }
@@ -20,18 +20,18 @@ var O = /* @__PURE__ */ function() {
20
20
  return this.f(n) && (this.found = !0, t = x(this.xf["@@transducer/step"](t, n))), t;
21
21
  }, e;
22
22
  }();
23
- function R(e) {
23
+ function F(e) {
24
24
  return function(t) {
25
- return new O(e, t);
25
+ return new R(e, t);
26
26
  };
27
27
  }
28
- var F = /* @__PURE__ */ y(/* @__PURE__ */ g(["find"], R, function(t, n) {
28
+ var G = /* @__PURE__ */ y(/* @__PURE__ */ g(["find"], F, function(t, n) {
29
29
  for (var r = 0, i = n.length; r < i; ) {
30
30
  if (t(n[r]))
31
31
  return n[r];
32
32
  r += 1;
33
33
  }
34
- })), X = /* @__PURE__ */ function() {
34
+ })), M = /* @__PURE__ */ function() {
35
35
  function e(t, n) {
36
36
  this.xf = n, this.f = t, this.idx = -1, this.found = !1;
37
37
  }
@@ -41,12 +41,12 @@ var F = /* @__PURE__ */ y(/* @__PURE__ */ g(["find"], R, function(t, n) {
41
41
  return this.idx += 1, this.f(n) && (this.found = !0, t = x(this.xf["@@transducer/step"](t, this.idx))), t;
42
42
  }, e;
43
43
  }();
44
- function Y(e) {
44
+ function X(e) {
45
45
  return function(t) {
46
- return new X(e, t);
46
+ return new M(e, t);
47
47
  };
48
48
  }
49
- var G = /* @__PURE__ */ y(/* @__PURE__ */ g([], Y, function(t, n) {
49
+ var Y = /* @__PURE__ */ y(/* @__PURE__ */ g([], X, function(t, n) {
50
50
  for (var r = 0, i = n.length; r < i; ) {
51
51
  if (t(n[r]))
52
52
  return r;
@@ -56,15 +56,15 @@ var G = /* @__PURE__ */ y(/* @__PURE__ */ g([], Y, function(t, n) {
56
56
  })), v = /* @__PURE__ */ $(function(t, n, r) {
57
57
  return t(A(n, r));
58
58
  });
59
- async function K(e, t, n) {
60
- const r = `${V}${u(e)}${S(n) ? "" : `?${L(n)}`}`;
59
+ async function j(e, t, n) {
60
+ const r = `${V}${u(e)}${S(n) ? "" : `?${K(n)}`}`;
61
61
  return new Promise((i, o) => {
62
62
  fetch(r, {
63
63
  method: "GET",
64
64
  cache: "no-cache",
65
65
  headers: {
66
66
  "Content-Type": "application/json",
67
- "X-API-KEY": j(t)
67
+ "X-API-KEY": L(t)
68
68
  }
69
69
  }).then((a) => a.json()).then((a) => {
70
70
  if (a.error)
@@ -75,10 +75,10 @@ async function K(e, t, n) {
75
75
  });
76
76
  });
77
77
  }
78
- function L(e) {
78
+ function K(e) {
79
79
  return Object.keys(e).map((t) => `${t}=${e[t]}`).join("&");
80
80
  }
81
- function j(e) {
81
+ function L(e) {
82
82
  var t;
83
83
  return e || ((t = window.__MJSZ_VBR_WIDGET__) != null && t.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
84
84
  }
@@ -87,7 +87,7 @@ function Q(e = {}) {
87
87
  return D(n, () => {
88
88
  if (!i)
89
89
  return;
90
- const s = G(v(a, "gameDate"))(u(n));
90
+ const s = Y(v(a, "gameDate"))(u(n));
91
91
  o.value = s === -1 ? 1 : Math.floor(s / r) + 1;
92
92
  }), {
93
93
  page: o,
@@ -101,10 +101,10 @@ function W(e = {}) {
101
101
  var d;
102
102
  if (!u(i))
103
103
  return;
104
- const f = F(v(o, "gameDate"))(u(t));
104
+ const f = G(v(o, "gameDate"))(u(t));
105
105
  if (!f)
106
106
  return;
107
- const c = M(f.gameDate, "YYYY-MM-DD"), s = b(n).querySelector(`div[data-gamedate="${c}"]`);
107
+ const c = O(f.gameDate, "YYYY-MM-DD"), s = b(n).querySelector(`div[data-gamedate="${c}"]`);
108
108
  if (!s)
109
109
  return;
110
110
  const h = getComputedStyle(s).getPropertyValue("--vbr-widget-sticky-top-offset") || 0, l = (((d = s.getBoundingClientRect()) == null ? void 0 : d.top) ?? 0) - u(r) - Number.parseFloat(h);
@@ -122,7 +122,7 @@ function W(e = {}) {
122
122
  }
123
123
  function Z({ options: e = {}, transform: t = (i) => i, onError: n = p, onSuccess: r = p }) {
124
124
  const { path: i, apiKey: o, params: a, resetOnExecute: f = !1, immediate: c = !1 } = e, { state: s, error: h, isLoading: l, execute: d } = I(
125
- () => K(i, o, u(a)).then((w) => t(w)),
125
+ () => j(i, o, u(a)).then((w) => t(w)),
126
126
  [],
127
127
  {
128
128
  immediate: c,
@@ -150,7 +150,7 @@ function z(e = !1, t = p, n = p) {
150
150
  }
151
151
  export {
152
152
  tt as createI18n,
153
- K as fetchVBRData,
153
+ j as fetchVBRData,
154
154
  et as i18n,
155
155
  nt as useAdditionalText,
156
156
  rt as useColumns,
@@ -158,11 +158,10 @@ export {
158
158
  at as useErrorProvider,
159
159
  st as useI18n,
160
160
  ot as useLazyLoadingState,
161
- ut as useMainClass,
162
161
  Q as usePage,
163
162
  W as useScrollToGameDate,
164
163
  Z as useServices,
165
- ft as useSort,
164
+ ut as useSort,
166
165
  z as useVisibilityChange,
167
- ct as validateColumnsName
166
+ ft as validateColumnsName
168
167
  };
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.11.2 - 15/01/2025, 11:33:02
3
+ * version: v2.12.0 - 19/01/2025, 23:11:29
4
4
  * (c) 2025
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.11.2 - 15/01/2025, 11:33:02
3
+ * version: v2.12.0 - 19/01/2025, 23:11:29
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1297,15 +1297,15 @@ function Hr(t) {
1297
1297
  export {
1298
1298
  te as A,
1299
1299
  ne as B,
1300
- H as C,
1301
- he as D,
1302
- $r as E,
1303
- yr as F,
1304
- _e as G,
1305
- Se as H,
1306
- X as I,
1307
- vr as J,
1308
- vt as K,
1300
+ vr as C,
1301
+ vt as D,
1302
+ H as E,
1303
+ he as F,
1304
+ $r as G,
1305
+ yr as H,
1306
+ _e as I,
1307
+ Se as J,
1308
+ X as K,
1309
1309
  pe as L,
1310
1310
  Nt as M,
1311
1311
  Ut as N,
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.11.2 - 15/01/2025, 11:33:02
3
+ * version: v2.12.0 - 19/01/2025, 23:11:29
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { SORT_STATE_ORIGINAL as F, SORT_STATE_ASCEND as U } from "./constants.js";
9
- import { C as f, L as S, F as v, E as m, _ as p, w as g, x as R, M as b, J as c, N, O as M, K as T, P as j, Q as G, R as k, S as H, T as X, U as q, V as Y, B as D, H as K, D as J, f as h, c as $, b as Q, a as V } from "./datetime-DTVWbsTz.js";
8
+ import { SORT_STATE_ORIGINAL as F, SORT_STATE_ASCEND as G } from "./constants.js";
9
+ import { E as f, L as S, H as v, G as m, _ as p, w as g, x as R, M as b, C as c, N, O as M, D as T, P as U, Q as j, R as k, S as H, T as X, U as q, V as Y, B as D, J as K, F as J, f as h, c as $, b as Q, a as V } from "./datetime-K_d-hEsO.js";
10
10
  var Z = /* @__PURE__ */ f(function(e, r) {
11
11
  if (e === r)
12
12
  return r;
@@ -147,7 +147,7 @@ function L(t, e, r) {
147
147
  Object.prototype.hasOwnProperty.call(t, i) && (u[i] = t[i]);
148
148
  return u;
149
149
  };
150
- switch (j(t)) {
150
+ switch (U(t)) {
151
151
  case "Object":
152
152
  return n(Object.create(Object.getPrototypeOf(t)));
153
153
  case "Array":
@@ -241,7 +241,7 @@ var Ne = /* @__PURE__ */ function() {
241
241
  function t(e, r, n, a) {
242
242
  this.valueFn = e, this.valueAcc = r, this.keyFn = n, this.xf = a, this.inputs = {};
243
243
  }
244
- return t.prototype["@@transducer/init"] = G.init, t.prototype["@@transducer/result"] = function(e) {
244
+ return t.prototype["@@transducer/init"] = j.init, t.prototype["@@transducer/result"] = function(e) {
245
245
  var r;
246
246
  for (r in this.inputs)
247
247
  if (T(r, this.inputs) && (e = this.xf["@@transducer/step"](e, this.inputs[r]), e["@@transducer/reduced"])) {
@@ -316,7 +316,7 @@ function Fe(t, e = "body") {
316
316
  const r = document.querySelector(e);
317
317
  r == null || r.append(t);
318
318
  }
319
- function Ue(t, e = () => ({})) {
319
+ function Ge(t, e = () => ({})) {
320
320
  return t.slice().sort((r, n) => {
321
321
  const a = e(r), u = e(n);
322
322
  if (a === null || u === null)
@@ -325,7 +325,7 @@ function Ue(t, e = () => ({})) {
325
325
  return s & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : s & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
326
326
  });
327
327
  }
328
- function je(t = []) {
328
+ function Ue(t = []) {
329
329
  return {
330
330
  result: [...t],
331
331
  filteredRowsLength: 0,
@@ -351,7 +351,7 @@ function je(t = []) {
351
351
  return this;
352
352
  if (e.orders[0].direction === F)
353
353
  return this;
354
- const r = Oe(D(U), I(y), I(Se));
354
+ const r = Oe(D(G), I(y), I(Se));
355
355
  return this.result = W(e.orders.map((n) => x(r(n.direction), m)(n.target)))(this.result), this;
356
356
  },
357
357
  addIndex(e = null) {
@@ -407,7 +407,7 @@ function je(t = []) {
407
407
  }
408
408
  };
409
409
  }
410
- const Ge = (t, ...e) => v(x(...e))(t);
410
+ const je = (t, ...e) => v(x(...e))(t);
411
411
  function ke(t) {
412
412
  var e, r, n, a;
413
413
  return {
@@ -539,7 +539,7 @@ export {
539
539
  nt as W,
540
540
  qe as a,
541
541
  Ye as b,
542
- je as c,
542
+ Ue as c,
543
543
  Ke as d,
544
544
  Ve as e,
545
545
  Ze as f,
@@ -550,9 +550,9 @@ export {
550
550
  rt as k,
551
551
  tt as l,
552
552
  Fe as m,
553
- Ue as n,
553
+ Ge as n,
554
554
  ke as p,
555
- Ge as r,
555
+ je as r,
556
556
  Je as s,
557
557
  He as t,
558
558
  Qe as u