@mjsz-vbr-elements/core 2.2.4 → 2.2.6

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.2.4 - 08/02/2024, 22:26:26
3
+ * version: v2.2.6 - 22/02/2024, 22:41:04
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.4 - 08/02/2024, 22:26:26
3
+ * version: v2.2.6 - 22/02/2024, 22:41:04
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 n, c as m, b as d, d as c, e as p, g as S, I as g, _ as T, k as b, a as I, j as P, f as v, h as f, i as h, l as x } from "./AdditionalStandingsText-NpkyVKB_.js";
8
+ import { m as n, c as m, b as d, d as c, e as p, g as S, I as g, _ as T, k as b, a as I, j as P, f as v, h as f, i as h, l as x } from "./AdditionalStandingsText-KDfNU6wm.js";
9
9
  import "vue";
10
10
  import "./useAdditionalText-EldMke4U.js";
11
11
  import "./datetime--bMmvxSM.js";
12
12
  import "./constants.js";
13
- import "./convert-rWfB71vI.js";
13
+ import "./convert-E2kZRWM3.js";
14
14
  import "./columns.js";
15
15
  export {
16
16
  n as AdditionalStandingsText,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.4 - 08/02/2024, 22:26:26
3
+ * version: v2.2.6 - 22/02/2024, 22:41:04
4
4
  * (c) 2024
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.2.4 - 08/02/2024, 22:26:26
3
+ * version: v2.2.6 - 22/02/2024, 22:41:04
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.4 - 08/02/2024, 22:26:26
3
+ * version: v2.2.6 - 22/02/2024, 22:41:04
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
8
  import { SORT_STATE_ORIGINAL as P, SORT_STATE_ASCEND as j } from "./constants.js";
9
- import { p as f, A as D, q as g, w as h, _ as p, j as v, k as $, B as b, x as c, C as _, D as M, z as T, E as G, F as U, G as H, H as k, I as q, J as X, K, n as S, r as Y, v as J, f as m, c as E, b as Q, a as V } from "./datetime--bMmvxSM.js";
9
+ import { p as f, A as D, q as g, w as h, _ as p, j as v, k as $, B as b, x as c, C as _, D as M, z as T, E as G, F as U, G as H, H as k, I as q, J as X, K, n as S, r as Y, v as J, f as m, c as C, b as Q, a as V } from "./datetime--bMmvxSM.js";
10
10
  var Z = /* @__PURE__ */ f(function(e, r) {
11
11
  if (e === r)
12
12
  return r;
@@ -20,27 +20,27 @@ var Z = /* @__PURE__ */ f(function(e, r) {
20
20
  var a = n(typeof e, typeof r);
21
21
  if (a !== void 0)
22
22
  return a === typeof e ? e : r;
23
- var u = D(e), i = n(u, D(r));
24
- return i !== void 0 && i === u ? e : r;
23
+ var i = D(e), u = n(i, D(r));
24
+ return u !== void 0 && u === i ? e : r;
25
25
  }), z = /* @__PURE__ */ f(function(e, r) {
26
26
  return g(h(e), r);
27
27
  }), w = /* @__PURE__ */ p(function(e) {
28
28
  return v(e) ? !0 : !e || typeof e != "object" || $(e) ? !1 : e.length === 0 ? !0 : e.length > 0 ? e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1) : !1;
29
- }), I = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
29
+ }), R = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
30
30
  function ee(t, e, r) {
31
- return function(s, a, u) {
32
- if (w(u))
33
- return t(s, a, u);
34
- if (u == null)
31
+ return function(s, a, i) {
32
+ if (w(i))
33
+ return t(s, a, i);
34
+ if (i == null)
35
35
  return a;
36
- if (typeof u["fantasy-land/reduce"] == "function")
37
- return e(s, a, u, "fantasy-land/reduce");
38
- if (u[I] != null)
39
- return r(s, a, u[I]());
40
- if (typeof u.next == "function")
41
- return r(s, a, u);
42
- if (typeof u.reduce == "function")
43
- return e(s, a, u, "reduce");
36
+ if (typeof i["fantasy-land/reduce"] == "function")
37
+ return e(s, a, i, "fantasy-land/reduce");
38
+ if (i[R] != null)
39
+ return r(s, a, i[R]());
40
+ if (typeof i.next == "function")
41
+ return r(s, a, i);
42
+ if (typeof i.reduce == "function")
43
+ return e(s, a, i, "reduce");
44
44
  throw new TypeError("reduce: list must be array or iterable");
45
45
  };
46
46
  }
@@ -72,7 +72,7 @@ function ne(t, e, r) {
72
72
  function se(t, e, r, n) {
73
73
  return t["@@transducer/result"](r[n](re(t["@@transducer/step"], t), e));
74
74
  }
75
- var x = /* @__PURE__ */ ee(te, se, ne), ae = /* @__PURE__ */ function() {
75
+ var E = /* @__PURE__ */ ee(te, se, ne), ae = /* @__PURE__ */ function() {
76
76
  function t(e) {
77
77
  this.f = e;
78
78
  }
@@ -84,18 +84,18 @@ var x = /* @__PURE__ */ ee(te, se, ne), ae = /* @__PURE__ */ function() {
84
84
  return this.f(e, r);
85
85
  }, t;
86
86
  }();
87
- function C(t) {
87
+ function x(t) {
88
88
  return new ae(t);
89
89
  }
90
- var ue = /* @__PURE__ */ c(function(t, e, r) {
91
- return x(typeof t == "function" ? C(t) : t, e, r);
90
+ var ie = /* @__PURE__ */ c(function(t, e, r) {
91
+ return E(typeof t == "function" ? x(t) : t, e, r);
92
92
  });
93
- const B = ue;
94
- var R = /* @__PURE__ */ p(function(e) {
93
+ const B = ie;
94
+ var I = /* @__PURE__ */ p(function(e) {
95
95
  return function() {
96
96
  return e;
97
97
  };
98
- }), ie = /* @__PURE__ */ p(function(e) {
98
+ }), ue = /* @__PURE__ */ p(function(e) {
99
99
  return _(B(Z, 0, z("length", e)), function() {
100
100
  for (var r = 0, n = e.length; r < n; ) {
101
101
  if (e[r].apply(this, arguments))
@@ -139,12 +139,12 @@ function A(t, e, r) {
139
139
  if (r || (r = new me()), he(t))
140
140
  return t;
141
141
  var n = function(a) {
142
- var u = r.get(t);
143
- if (u)
144
- return u;
142
+ var i = r.get(t);
143
+ if (i)
144
+ return i;
145
145
  r.set(t, a);
146
- for (var i in t)
147
- Object.prototype.hasOwnProperty.call(t, i) && (a[i] = e ? A(t[i], !0, r) : t[i]);
146
+ for (var u in t)
147
+ Object.prototype.hasOwnProperty.call(t, u) && (a[u] = e ? A(t[u], !0, r) : t[u]);
148
148
  return a;
149
149
  };
150
150
  switch (G(t)) {
@@ -193,10 +193,10 @@ var me = /* @__PURE__ */ function() {
193
193
  if (this.length <= 180) {
194
194
  for (const s in this.map) {
195
195
  const a = this.map[s];
196
- for (let u = 0; u < a.length; u += 1) {
197
- const i = a[u];
198
- if (i[0] === e)
199
- return i[1];
196
+ for (let i = 0; i < a.length; i += 1) {
197
+ const u = a[i];
198
+ if (u[0] === e)
199
+ return u[1];
200
200
  }
201
201
  }
202
202
  return;
@@ -277,17 +277,17 @@ var Se = /* @__PURE__ */ H(
277
277
  4,
278
278
  [],
279
279
  /* @__PURE__ */ k([], De, function(e, r, n, s) {
280
- var a = C(function(u, i) {
281
- var o = n(i), l = e(T(o, u) ? u[o] : A(r, !1), i);
282
- return l && l["@@transducer/reduced"] ? q(u) : (u[o] = l, u);
280
+ var a = x(function(i, u) {
281
+ var o = n(u), l = e(T(o, i) ? i[o] : A(r, !1), u);
282
+ return l && l["@@transducer/reduced"] ? q(i) : (i[o] = l, i);
283
283
  });
284
- return x(a, {}, s);
284
+ return E(a, {}, s);
285
285
  })
286
- ), Ie = /* @__PURE__ */ c(function(e, r, n) {
286
+ ), Re = /* @__PURE__ */ c(function(e, r, n) {
287
287
  var s = e(r), a = e(n);
288
288
  return s > a ? -1 : s < a ? 1 : 0;
289
289
  });
290
- const Re = Ie;
290
+ const Ie = Re;
291
291
  var Oe = /* @__PURE__ */ f(
292
292
  /* @__PURE__ */ N(
293
293
  "groupBy",
@@ -301,7 +301,7 @@ var Oe = /* @__PURE__ */ f(
301
301
  });
302
302
  });
303
303
  const be = $e;
304
- var Me = /* @__PURE__ */ f(X), Ee = /* @__PURE__ */ f(function(e, r) {
304
+ var Me = /* @__PURE__ */ f(X), Ce = /* @__PURE__ */ f(function(e, r) {
305
305
  return function(n) {
306
306
  return function(s) {
307
307
  return g(function(a) {
@@ -309,8 +309,8 @@ var Me = /* @__PURE__ */ f(X), Ee = /* @__PURE__ */ f(function(e, r) {
309
309
  }, n(e(s)));
310
310
  };
311
311
  };
312
- }), xe = /* @__PURE__ */ p(function(e) {
313
- return Ee(h(e), fe(e));
312
+ }), Ee = /* @__PURE__ */ p(function(e) {
313
+ return Ce(h(e), fe(e));
314
314
  }), W = function(t) {
315
315
  return {
316
316
  value: t,
@@ -318,7 +318,7 @@ var Me = /* @__PURE__ */ f(X), Ee = /* @__PURE__ */ f(function(e, r) {
318
318
  return W(e(t));
319
319
  }
320
320
  };
321
- }, Ce = /* @__PURE__ */ c(function(e, r, n) {
321
+ }, xe = /* @__PURE__ */ c(function(e, r, n) {
322
322
  return e(function(s) {
323
323
  return W(r(s));
324
324
  })(n).value;
@@ -328,8 +328,8 @@ var Me = /* @__PURE__ */ f(X), Ee = /* @__PURE__ */ f(function(e, r) {
328
328
  return Array.prototype.slice.call(r, 0).sort(e);
329
329
  }), We = /* @__PURE__ */ f(function(e, r) {
330
330
  return Array.prototype.slice.call(r, 0).sort(function(n, s) {
331
- for (var a = 0, u = 0; a === 0 && u < e.length; )
332
- a = e[u](n, s), u += 1;
331
+ for (var a = 0, i = 0; a === 0 && i < e.length; )
332
+ a = e[i](n, s), i += 1;
333
333
  return a;
334
334
  });
335
335
  });
@@ -377,9 +377,9 @@ const Ke = {
377
377
  filter(e, r = [], n = !1) {
378
378
  if (e) {
379
379
  const s = r.map(
380
- (i) => n ? d(Y(i), S(e)) : d(h(i), O, Me(O(e)))
381
- ), a = Ae((i) => i.name ? Ce(xe("name"), Be(",", ""), i) : i), u = J(d(a, ie([...s])), this.result);
382
- this.isFiltered = !0, this.filteredRowsLength = u.length, this.result = u;
380
+ (u) => n ? d(Y(u), S(e)) : d(h(u), O, Me(O(e)))
381
+ ), a = Ae((u) => u.name ? xe(Ee("name"), Be(",", ""), u) : u), i = J(d(a, ue([...s])), this.result);
382
+ this.isFiltered = !0, this.filteredRowsLength = i.length, this.result = i;
383
383
  }
384
384
  return this;
385
385
  },
@@ -388,13 +388,13 @@ const Ke = {
388
388
  return this;
389
389
  if (e.orders[0].direction === P)
390
390
  return this;
391
- const r = be(S(j), R(y), R(Re));
391
+ const r = be(S(j), I(y), I(Ie));
392
392
  return this.result = F(e.orders.map((n) => L(r(n.direction), h)(n.target)))(this.result), this;
393
393
  },
394
394
  addIndex(e = null) {
395
395
  return this.result.reduce((r, n, s) => {
396
- const a = r[r.length - 1] || [], u = e && a[e] === n[e];
397
- return n.index = u ? a.index : s + 1, n.indexClass = u ? "is-duplicated" : null, r.push(n), r;
396
+ const a = r[r.length - 1] || [], i = e && a[e] === n[e];
397
+ return n.index = i ? a.index : s + 1, n.indexClass = i ? "is-duplicated" : null, r.push(n), r;
398
398
  }, []), this;
399
399
  },
400
400
  addContinuousIndex() {
@@ -434,7 +434,7 @@ const Ke = {
434
434
  return e === null ? this : (this.result = this.result.filter((r) => new Date(r.gameDate).getMonth() == e), this);
435
435
  },
436
436
  convertTimes(e = []) {
437
- return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = E(r[n]) : r), r)), this;
437
+ return this.result = this.result.map((r) => (e.map((n) => r[n] ? r[`${n}Sec`] = C(r[n]) : r), r)), this;
438
438
  },
439
439
  groupByDays() {
440
440
  return this.result = Oe((e) => m(e.gameDate, "YYYY-MM-DD"))(this.result), this;
@@ -468,13 +468,16 @@ const Ke = {
468
468
  }), tt = (t) => ({
469
469
  ...t,
470
470
  resultType: Ue(t)
471
- }), rt = (t = []) => (e) => {
471
+ }), rt = (t) => ({
472
+ ...t,
473
+ rowClasses: t.optional ? "is-optional" : ""
474
+ }), nt = (t = []) => (e) => {
472
475
  var r;
473
476
  return {
474
477
  ...e,
475
478
  [t]: (r = e[t]) == null ? void 0 : r.toUpperCase()
476
479
  };
477
- }, nt = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = E(e[r]) : e), e), st = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Min`] = Q(e[r]) : e), e), at = (t = []) => (e) => (t.map((r) => e[`${r}Min`] = V(e[r])), e), Fe = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), ut = F([Fe, y(h("id")), y(h("gameId"))]), Pe = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), it = Le(Pe("name"));
480
+ }, st = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Sec`] = C(e[r]) : e), e), at = (t = []) => (e) => (t.map((r) => e[r] ? e[`${r}Min`] = Q(e[r]) : e), e), it = (t = []) => (e) => (t.map((r) => e[`${r}Min`] = V(e[r])), e), Fe = (t, e) => new Date(t.gameDate).getTime() - new Date(e.gameDate).getTime(), ut = F([Fe, y(h("id")), y(h("gameId"))]), Pe = (t) => (e, r) => e[t].localeCompare(r[t], "hu"), ct = Le(Pe("name"));
478
481
  function je(t) {
479
482
  var e;
480
483
  return [t.isHomeGame ? null : "@", (e = t.opponent) == null ? void 0 : e.shortName].join(" ");
@@ -495,15 +498,16 @@ export {
495
498
  et as b,
496
499
  Je as c,
497
500
  tt as d,
498
- nt as e,
499
- st as f,
501
+ st as e,
502
+ at as f,
500
503
  ze as g,
501
- at as h,
502
- qe as i,
503
- it as l,
504
+ it as h,
505
+ ut as i,
506
+ qe as j,
507
+ ct as l,
504
508
  Ve as p,
505
509
  Qe as r,
506
- ut as s,
510
+ rt as s,
507
511
  Ze as t,
508
- rt as u
512
+ nt as u
509
513
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.2.4 - 08/02/2024, 22:26:26
3
+ * version: v2.2.6 - 22/02/2024, 22:41:04
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>