@mjsz-vbr-elements/core 2.3.8 → 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/columns.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.3.8 - 21/05/2024, 10:10:53
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>
@@ -1,25 +1,26 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.3.8 - 21/05/2024, 10:10:53
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 { m as s, c as o, b as r, d as i, e as t, g as l, I as n, _ as d, k as c, a as S, j as g, f as T, h as b, i as m, l as I } from "./AdditionalStandingsText-DbEQVH0C.js";
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
- o as BaseSelect,
12
- r as DataTable,
13
- i as ErrorNotice,
14
- t as ErrorProvider,
15
- l as FloatingPanel,
16
- n as I18NProvider,
11
+ r as BaseSelect,
12
+ o as DataTable,
13
+ t as ErrorNotice,
14
+ i as ErrorProvider,
15
+ l as FetchMoreObserver,
16
+ n as FloatingPanel,
17
+ c as I18NProvider,
17
18
  d as Image,
18
- c as LoadingIndicator,
19
- S as Paginator,
19
+ S as LoadingIndicator,
20
+ b as Paginator,
20
21
  g as ResponsiveTable,
21
22
  T as ScheduleTable,
22
- b as SeasonSelector,
23
- m as StatisticsTable,
23
+ m as SeasonSelector,
24
+ v as StatisticsTable,
24
25
  I as TimezoneSelector
25
26
  };
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.3.8 - 21/05/2024, 10:10:53
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 b, q as E } from "./useAdditionalText-B4_ntvb_.js";
9
- import { c as U, 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-B4_ntvb_.js";
10
- import { unref as u, ref as P, watch as T, nextTick as B } from "vue";
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
+ 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 { F as x, I as y, p as g, H as _, x as V, w as A, i as v, f as F } from "./datetime-C3O51pdW.js";
13
- var M = /* @__PURE__ */ function() {
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
+ var O = /* @__PURE__ */ function() {
14
14
  function e(t, n) {
15
15
  this.xf = n, this.f = t, this.found = !1;
16
16
  }
@@ -20,12 +20,12 @@ var M = /* @__PURE__ */ function() {
20
20
  return this.f(n) && (this.found = !0, t = y(this.xf["@@transducer/step"](t, n))), t;
21
21
  }, e;
22
22
  }();
23
- function O(e) {
23
+ function R(e) {
24
24
  return function(t) {
25
- return new M(e, t);
25
+ return new O(e, t);
26
26
  };
27
27
  }
28
- var R = /* @__PURE__ */ g(/* @__PURE__ */ _(["find"], O, function(t, n) {
28
+ var F = /* @__PURE__ */ g(/* @__PURE__ */ _(["find"], R, 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];
@@ -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);
@@ -77,11 +76,10 @@ const K = async (e, t, n) => {
77
76
  }, L = (e) => Object.keys(e).map((t) => t + "=" + e[t]).join("&"), $ = (e) => {
78
77
  var t;
79
78
  return e || ((t = window.__MJSZ_VBR_WIDGET__) != null && t.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
80
- }, W = (e = {}) => {
81
- const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = P(u(t)), s = (a) => v(a, "day");
79
+ }, Q = (e = {}) => {
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
  }), {
@@ -90,7 +88,7 @@ const K = async (e, t, n) => {
90
88
  o.value = a;
91
89
  }
92
90
  };
93
- }, Z = ({ options: e = {}, transform: t = (i) => i, onError: n = h, onSuccess: r = h }) => {
91
+ }, W = ({ options: e = {}, transform: t = (i) => i, onError: n = h, onSuccess: r = h }) => {
94
92
  const { path: i, apiKey: o, params: s, resetOnExecute: d = !1, immediate: c = !1 } = e, {
95
93
  state: a,
96
94
  error: f,
@@ -109,30 +107,26 @@ const K = async (e, t, n) => {
109
107
  execute: m
110
108
  };
111
109
  };
112
- function z(e = !1, t = h, n = h) {
110
+ function Z(e = !1, t = h, n = h) {
113
111
  const r = I();
114
- T(r, (i) => {
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
  });
121
118
  }
122
- const H = (e = {}) => {
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;
127
- const c = R(w(o, "gameDate"))(u(t));
128
- if (!c)
129
- return;
130
- const a = F(c.gameDate, "YYYY-MM-DD"), f = E(n).querySelector(`div[data-gamedate="${a}"]`);
131
- if (!f)
132
- return;
122
+ if (d(), !u(i)) return;
123
+ const c = F(w(o, "gameDate"))(u(t));
124
+ if (!c) return;
125
+ const a = M(c.gameDate, "YYYY-MM-DD"), f = b(n).querySelector(`div[data-gamedate="${a}"]`);
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
- }, { stop: d } = b(
129
+ }, { stop: d } = T(
136
130
  () => ({
137
131
  items: u(t),
138
132
  element: u(n)
@@ -143,7 +137,7 @@ const H = (e = {}) => {
143
137
  );
144
138
  };
145
139
  export {
146
- U as createI18n,
140
+ H as createI18n,
147
141
  K as fetchVBRData,
148
142
  tt as i18n,
149
143
  et as useAdditionalText,
@@ -153,10 +147,10 @@ export {
153
147
  st as useI18n,
154
148
  at as useLazyLoadingState,
155
149
  ot as useMainClass,
156
- W as usePage,
157
- H as useScrollToGameDate,
158
- Z as useServices,
150
+ Q as usePage,
151
+ z as useScrollToGameDate,
152
+ W as useServices,
159
153
  ut as useSort,
160
- z as useVisibilityChange,
154
+ Z as useVisibilityChange,
161
155
  ct as validateColumnsName
162
156
  };
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.3.8 - 21/05/2024, 10:10:53
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>