@mjsz-vbr-elements/core 2.3.7 → 2.4.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.3.7 - 17/03/2024, 12:25:53
3
+ * version: v2.4.0 - 06/06/2024, 12:35:57
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.7 - 17/03/2024, 12:25:53
3
+ * version: v2.4.0 - 06/06/2024, 12:35:57
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-BcHECtG0.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-DlP-tdH1.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.7 - 17/03/2024, 12:25:53
3
+ * version: v2.4.0 - 06/06/2024, 12:35:57
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-Ta-GUW7T.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-Ta-GUW7T.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-Bi2CUi4-.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-Bi2CUi4-.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-BD_lSSC2.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-Df9jKQTx.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,20 +20,18 @@ 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(
29
- /* @__PURE__ */ _(["find"], O, function(t, n) {
30
- for (var r = 0, i = n.length; r < i; ) {
31
- if (t(n[r]))
32
- return n[r];
33
- r += 1;
34
- }
35
- })
36
- ), X = /* @__PURE__ */ function() {
28
+ var F = /* @__PURE__ */ g(/* @__PURE__ */ _(["find"], R, function(t, n) {
29
+ for (var r = 0, i = n.length; r < i; ) {
30
+ if (t(n[r]))
31
+ return n[r];
32
+ r += 1;
33
+ }
34
+ })), X = /* @__PURE__ */ function() {
37
35
  function e(t, n) {
38
36
  this.xf = n, this.f = t, this.idx = -1, this.found = !1;
39
37
  }
@@ -48,16 +46,14 @@ function Y(e) {
48
46
  return new X(e, t);
49
47
  };
50
48
  }
51
- var G = /* @__PURE__ */ g(
52
- /* @__PURE__ */ _([], Y, function(t, n) {
53
- for (var r = 0, i = n.length; r < i; ) {
54
- if (t(n[r]))
55
- return r;
56
- r += 1;
57
- }
58
- return -1;
59
- })
60
- ), w = /* @__PURE__ */ V(function(t, n, r) {
49
+ var G = /* @__PURE__ */ g(/* @__PURE__ */ _([], Y, function(t, n) {
50
+ for (var r = 0, i = n.length; r < i; ) {
51
+ if (t(n[r]))
52
+ return r;
53
+ r += 1;
54
+ }
55
+ return -1;
56
+ })), w = /* @__PURE__ */ V(function(t, n, r) {
61
57
  return t(A(n, r));
62
58
  });
63
59
  const K = async (e, t, n) => {
@@ -81,8 +77,8 @@ const K = async (e, t, n) => {
81
77
  }, L = (e) => Object.keys(e).map((t) => t + "=" + e[t]).join("&"), $ = (e) => {
82
78
  var t;
83
79
  return e || ((t = window.__MJSZ_VBR_WIDGET__) != null && t.apiKey ? window.__MJSZ_VBR_WIDGET__.apiKey : "");
84
- }, W = (e = {}) => {
85
- const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = P(u(t)), s = (a) => v(a, "day");
80
+ }, Q = (e = {}) => {
81
+ const { initial: t = 1, items: n = [], limit: r, auto: i = !1 } = e, o = E(u(t)), s = (a) => v(a, "day");
86
82
  return S(n, () => {
87
83
  if (!i)
88
84
  return;
@@ -94,7 +90,7 @@ const K = async (e, t, n) => {
94
90
  o.value = a;
95
91
  }
96
92
  };
97
- }, Z = ({ options: e = {}, transform: t = (i) => i, onError: n = h, onSuccess: r = h }) => {
93
+ }, W = ({ options: e = {}, transform: t = (i) => i, onError: n = h, onSuccess: r = h }) => {
98
94
  const { path: i, apiKey: o, params: s, resetOnExecute: d = !1, immediate: c = !1 } = e, {
99
95
  state: a,
100
96
  error: f,
@@ -113,9 +109,9 @@ const K = async (e, t, n) => {
113
109
  execute: m
114
110
  };
115
111
  };
116
- function z(e = !1, t = h, n = h) {
112
+ function Z(e = !1, t = h, n = h) {
117
113
  const r = I();
118
- T(r, (i) => {
114
+ P(r, (i) => {
119
115
  if (u(e)) {
120
116
  if (i === "visible")
121
117
  return t();
@@ -123,20 +119,20 @@ function z(e = !1, t = h, n = h) {
123
119
  }
124
120
  });
125
121
  }
126
- const H = (e = {}) => {
122
+ const z = (e = {}) => {
127
123
  const { items: t = [], element: n, offset: r = 0, enabled: i = !0 } = e, o = (c) => v(c, "day"), s = () => {
128
124
  var p;
129
125
  if (d(), !u(i))
130
126
  return;
131
- const c = R(w(o, "gameDate"))(u(t));
127
+ const c = F(w(o, "gameDate"))(u(t));
132
128
  if (!c)
133
129
  return;
134
- const a = F(c.gameDate, "YYYY-MM-DD"), f = E(n).querySelector(`div[data-gamedate="${a}"]`);
130
+ const a = M(c.gameDate, "YYYY-MM-DD"), f = b(n).querySelector(`div[data-gamedate="${a}"]`);
135
131
  if (!f)
136
132
  return;
137
133
  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);
138
134
  window.scrollTo(0, m);
139
- }, { stop: d } = b(
135
+ }, { stop: d } = T(
140
136
  () => ({
141
137
  items: u(t),
142
138
  element: u(n)
@@ -147,7 +143,7 @@ const H = (e = {}) => {
147
143
  );
148
144
  };
149
145
  export {
150
- U as createI18n,
146
+ H as createI18n,
151
147
  K as fetchVBRData,
152
148
  tt as i18n,
153
149
  et as useAdditionalText,
@@ -157,10 +153,10 @@ export {
157
153
  st as useI18n,
158
154
  at as useLazyLoadingState,
159
155
  ot as useMainClass,
160
- W as usePage,
161
- H as useScrollToGameDate,
162
- Z as useServices,
156
+ Q as usePage,
157
+ z as useScrollToGameDate,
158
+ W as useServices,
163
159
  ut as useSort,
164
- z as useVisibilityChange,
160
+ Z as useVisibilityChange,
165
161
  ct as validateColumnsName
166
162
  };
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.3.7 - 17/03/2024, 12:25:53
3
+ * version: v2.4.0 - 06/06/2024, 12:35:57
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>