@mjsz-vbr-elements/core 2.11.3 → 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.
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.11.3 - 15/01/2025, 13:04:28
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 { COLUMNS_FIELD_PLAYERS as m, COLUMNS_FIELD_PLAYERS_PENALTY as N, COLUMNS_FIELD_PLAYERS_TOI as f, COLUMNS_GOALIES as u, COLUMNS_PLAYERS_NATIONAL as d, COLUMNS_SCHEDULE as p, COLUMNS_SCORING_EFFICIENCY as R, COLUMNS_STANDINGS_P_2 as O, COLUMNS_STANDINGS_P_3 as g, COLUMNS_TEAMS_FAIRPLAY as C, COLUMNS_TEAMS_PENALTY_KILLING as I, COLUMNS_TEAMS_POWERPLAY as M, COLUMNS_TEAM_ATTENDANCE as y } from "./columns.js";
9
- import { _ as v, a as U, b as D, c as h, d as x, e as F, f as G, I as b, g as B, h as Y, i as k, j as w, k as W, l as V, m as j, n as z } from "./TimezoneSelector-CNpTsLPu.js";
10
- import { d as X, i as Z, u as H, a as q, c as J, b as Q, e as $, f as ee, g as ae, h as se, v as te } from "./useSort-CmtczEGw.js";
11
- import { fetchVBRData as oe, usePage as ne, useScrollToGameDate as ie, useServices as le, useVisibilityChange as Se } from "./composables.js";
8
+ import { COLUMNS_FIELD_PLAYERS as m, COLUMNS_FIELD_PLAYERS_PENALTY as N, COLUMNS_FIELD_PLAYERS_TOI as f, COLUMNS_GOALIES as d, COLUMNS_PLAYERS_NATIONAL as p, COLUMNS_SCHEDULE as u, COLUMNS_SCORING_EFFICIENCY as R, COLUMNS_STANDINGS_P_2 as O, COLUMNS_STANDINGS_P_3 as g, COLUMNS_TEAMS_FAIRPLAY as I, COLUMNS_TEAMS_PENALTY_KILLING as C, COLUMNS_TEAMS_POWERPLAY as M, COLUMNS_TEAM_ATTENDANCE as y } from "./columns.js";
9
+ import { _ as v, a as U, b as D, c as x, d as h, e as F, f as G, I as b, g as B, h as Y, i as k, j as w, k as W, l as V, m as j, n as z } from "./TimezoneSelector-CZSwXNuA.js";
10
+ import { d as X, i as Z, u as H, a as q, c as J, b as Q, e as $, f as ee, g as ae, v as se } from "./useSort-D29iq9K6.js";
11
+ import { fetchVBRData as re, usePage as oe, useScrollToGameDate as ne, useServices as ie, useVisibilityChange as le } from "./composables.js";
12
12
  import "vue";
13
- import { AVAILABLE_TIMEZONES_BY_COUNTRY as Te, DEFAULT_EXTERNAL_GAME_URL as Le, DEFAULT_EXTERNAL_PLAYER_URL as Ee, DEFAULT_EXTERNAL_TEAM_URL as Ae, DEFAULT_PORTRAIT_IMAGE_URL as ce, FLAG_BASE_URL as me, LAZY_LOADING_STATE_DELAY as Ne, LOCALE_FOR_LANG as fe, REFRESH_DELAY as ue, SORT_STATE_ASCEND as de, SORT_STATE_DESCEND as pe, SORT_STATE_ORIGINAL as Re, VBR_API_BASE_URL as Oe } from "./constants.js";
14
- import { I as Ce, U as Ie, W as Me, m as ye, c as Pe, i as ve, k as Ue, e as De, f as he, h as xe, g as Fe, a as Ge, l as be, p as Be, r as Ye, s as ke, n as we, j as We, t as Ve, b as je, d as ze, u as Ke } from "./errors-DBdI9YRN.js";
15
- import { n as Ze, b as He, c as qe, a as Je, l as Qe, m as $e, q as ea, f as aa, g as sa, j as ta, h as ra, d as oa, e as na, i as ia, k as la, t as Sa, r as _a, o as Ta, p as La, s as Ea, v as Aa, u as ca, y as ma } from "./datetime-K_d-hEsO.js";
16
- import { externalGameLinkResolver as fa, externalPlayerLinkResolver as ua, externalTeamLinkResolver as da, flagResolver as pa, scrollToTop as Ra } from "./utils.js";
13
+ import { AVAILABLE_TIMEZONES_BY_COUNTRY as _e, DEFAULT_EXTERNAL_GAME_URL as Te, DEFAULT_EXTERNAL_PLAYER_URL as Le, DEFAULT_EXTERNAL_TEAM_URL as Ee, DEFAULT_PORTRAIT_IMAGE_URL as Ae, FLAG_BASE_URL as ce, LAZY_LOADING_STATE_DELAY as me, LOCALE_FOR_LANG as Ne, REFRESH_DELAY as fe, SORT_STATE_ASCEND as de, SORT_STATE_DESCEND as pe, SORT_STATE_ORIGINAL as ue, VBR_API_BASE_URL as Re } from "./constants.js";
14
+ import { I as ge, U as Ie, W as Ce, m as Me, c as ye, i as Pe, k as ve, e as Ue, f as De, h as xe, g as he, a as Fe, l as Ge, p as be, r as Be, s as Ye, n as ke, j as we, t as We, b as Ve, d as je, u as ze } from "./errors-DBdI9YRN.js";
15
+ import { n as Xe, b as Ze, c as He, a as qe, l as Je, m as Qe, q as $e, f as ea, g as aa, j as sa, h as ta, d as ra, e as oa, i as na, k as ia, t as la, r as Sa, o as _a, p as Ta, s as La, v as Ea, u as Aa, y as ca } from "./datetime-K_d-hEsO.js";
16
+ import { externalGameLinkResolver as Na, externalPlayerLinkResolver as fa, externalTeamLinkResolver as da, flagResolver as pa, scrollToTop as ua } from "./utils.js";
17
17
  const S = {
18
18
  locale: {
19
19
  type: String,
@@ -90,118 +90,117 @@ const E = {
90
90
  install: (a, s = {}) => i({ app: a, ...s })
91
91
  };
92
92
  export {
93
- Te as AVAILABLE_TIMEZONES_BY_COUNTRY,
93
+ _e as AVAILABLE_TIMEZONES_BY_COUNTRY,
94
94
  v as AdditionalStandingsText,
95
95
  U as BaseSelect,
96
96
  m as COLUMNS_FIELD_PLAYERS,
97
97
  N as COLUMNS_FIELD_PLAYERS_PENALTY,
98
98
  f as COLUMNS_FIELD_PLAYERS_TOI,
99
- u as COLUMNS_GOALIES,
100
- d as COLUMNS_PLAYERS_NATIONAL,
101
- p as COLUMNS_SCHEDULE,
99
+ d as COLUMNS_GOALIES,
100
+ p as COLUMNS_PLAYERS_NATIONAL,
101
+ u as COLUMNS_SCHEDULE,
102
102
  R as COLUMNS_SCORING_EFFICIENCY,
103
103
  O as COLUMNS_STANDINGS_P_2,
104
104
  g as COLUMNS_STANDINGS_P_3,
105
- C as COLUMNS_TEAMS_FAIRPLAY,
106
- I as COLUMNS_TEAMS_PENALTY_KILLING,
105
+ I as COLUMNS_TEAMS_FAIRPLAY,
106
+ C as COLUMNS_TEAMS_PENALTY_KILLING,
107
107
  M as COLUMNS_TEAMS_POWERPLAY,
108
108
  y as COLUMNS_TEAM_ATTENDANCE,
109
- Le as DEFAULT_EXTERNAL_GAME_URL,
110
- Ee as DEFAULT_EXTERNAL_PLAYER_URL,
111
- Ae as DEFAULT_EXTERNAL_TEAM_URL,
112
- ce as DEFAULT_PORTRAIT_IMAGE_URL,
109
+ Te as DEFAULT_EXTERNAL_GAME_URL,
110
+ Le as DEFAULT_EXTERNAL_PLAYER_URL,
111
+ Ee as DEFAULT_EXTERNAL_TEAM_URL,
112
+ Ae as DEFAULT_PORTRAIT_IMAGE_URL,
113
113
  D as DataTable,
114
- h as ErrorNotice,
115
- x as ErrorProvider,
116
- me as FLAG_BASE_URL,
114
+ x as ErrorNotice,
115
+ h as ErrorProvider,
116
+ ce as FLAG_BASE_URL,
117
117
  F as FetchMoreObserver,
118
118
  G as FloatingPanel,
119
119
  b as I18NProvider,
120
120
  B as Image,
121
- Ce as InvalidSeasonName,
122
- Ne as LAZY_LOADING_STATE_DELAY,
123
- fe as LOCALE_FOR_LANG,
121
+ ge as InvalidSeasonName,
122
+ me as LAZY_LOADING_STATE_DELAY,
123
+ Ne as LOCALE_FOR_LANG,
124
124
  Y as LoadingIndicator,
125
125
  k as Paginator,
126
- ue as REFRESH_DELAY,
126
+ fe as REFRESH_DELAY,
127
127
  w as ResponsiveTable,
128
128
  de as SORT_STATE_ASCEND,
129
129
  pe as SORT_STATE_DESCEND,
130
- Re as SORT_STATE_ORIGINAL,
130
+ ue as SORT_STATE_ORIGINAL,
131
131
  W as ScheduleTable,
132
132
  V as SeasonSelector,
133
133
  j as StatisticsTable,
134
134
  z as TimezoneSelector,
135
135
  Ie as UndefinedColumn,
136
- Oe as VBR_API_BASE_URL,
137
- Me as WidgetError,
138
- Ze as addDays,
139
- ye as appendTo,
136
+ Re as VBR_API_BASE_URL,
137
+ Ce as WidgetError,
138
+ Xe as addDays,
139
+ Me as appendTo,
140
140
  S as baseProps,
141
- Pe as convert,
142
- ve as convertGamePeriodResults,
143
- He as convertMinToMinSec,
144
- qe as convertMinToSec,
145
- Ue as convertPhaseName,
146
- Je as convertSecToMin,
147
- De as convertTimes,
148
- he as convertTimesMinToMinSec,
141
+ ye as convert,
142
+ Pe as convertGamePeriodResults,
143
+ Ze as convertMinToMinSec,
144
+ He as convertMinToSec,
145
+ ve as convertPhaseName,
146
+ qe as convertSecToMin,
147
+ Ue as convertTimes,
148
+ De as convertTimesMinToMinSec,
149
149
  xe as convertTimesSecToMin,
150
150
  i as createConfig,
151
151
  X as createI18n,
152
- Qe as currentWeek,
153
- $e as currentWeekStartEnd,
152
+ Je as currentWeek,
153
+ Qe as currentWeekStartEnd,
154
154
  E as default,
155
- ea as endOfMonth,
156
- fa as externalGameLinkResolver,
157
- ua as externalPlayerLinkResolver,
155
+ $e as endOfMonth,
156
+ Na as externalGameLinkResolver,
157
+ fa as externalPlayerLinkResolver,
158
158
  da as externalTeamLinkResolver,
159
- oe as fetchVBRData,
159
+ re as fetchVBRData,
160
160
  pa as flagResolver,
161
- aa as format,
162
- Fe as gameDateTime,
161
+ ea as format,
162
+ he as gameDateTime,
163
163
  L as gameProps,
164
- Ge as gameResult,
165
- sa as getLocalTimezone,
164
+ Fe as gameResult,
165
+ aa as getLocalTimezone,
166
166
  Z as i18n,
167
- ta as isAfter,
168
- ra as isBefore,
169
- oa as isBetween,
170
- na as isSame,
171
- ia as isSameOrBefore,
172
- la as isToday,
173
- be as localeSort,
174
- Sa as max,
175
- _a as min,
176
- Ta as offsetName,
177
- Be as playerName,
167
+ sa as isAfter,
168
+ ta as isBefore,
169
+ ra as isBetween,
170
+ oa as isSame,
171
+ na as isSameOrBefore,
172
+ ia as isToday,
173
+ Ge as localeSort,
174
+ la as max,
175
+ Sa as min,
176
+ _a as offsetName,
177
+ be as playerName,
178
178
  T as playerStatsProps,
179
- Ye as rawConvert,
180
- ke as scheduleOptionalRowClass,
181
- Ra as scrollToTop,
182
- we as sortByDomNode,
183
- We as sortGames,
184
- La as startOfMonth,
185
- Ea as subtractDays,
186
- Ve as teamName,
187
- je as teamOpponent,
188
- ze as teamResultType,
179
+ Be as rawConvert,
180
+ Ye as scheduleOptionalRowClass,
181
+ ua as scrollToTop,
182
+ ke as sortByDomNode,
183
+ we as sortGames,
184
+ Ta as startOfMonth,
185
+ La as subtractDays,
186
+ We as teamName,
187
+ Ve as teamOpponent,
188
+ je as teamResultType,
189
189
  _ as teamStatsProps,
190
- Aa as templateReplacer,
191
- ca as toKebabCase,
192
- Ke as upperCase,
190
+ Ea as templateReplacer,
191
+ Aa as toKebabCase,
192
+ ze as upperCase,
193
193
  H as useAdditionalText,
194
194
  q as useColumns,
195
195
  J as useError,
196
196
  Q as useErrorProvider,
197
197
  $ as useI18n,
198
198
  ee as useLazyLoadingState,
199
- ae as useMainClass,
200
- ne as usePage,
201
- ie as useScrollToGameDate,
202
- le as useServices,
203
- se as useSort,
204
- Se as useVisibilityChange,
205
- te as validateColumnsName,
206
- ma as yearToNow
199
+ oe as usePage,
200
+ ne as useScrollToGameDate,
201
+ ie as useServices,
202
+ ae as useSort,
203
+ le as useVisibilityChange,
204
+ se as validateColumnsName,
205
+ ca as yearToNow
207
206
  };
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.11.3 - 15/01/2025, 13:04:28
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 { ref as I, readonly as pe, watch as S, nextTick as U, getCurrentScope as je, onScopeDispose as Le, toValue as E, isRef as De, shallowRef as ie, unref as O, reactive as me, defineComponent as ke, h as Ne, computed as _, provide as ye, inject as ve, onErrorCaptured as Fe } from "vue";
9
- import { _ as K, w as Be, x as We, z as X, A as Me, B as $e, C as he, D as B, E as ge, F as ze, G as ae, H as k, I as N, J as Ue, K as Ke, u as Ge } from "./datetime-K_d-hEsO.js";
8
+ import { ref as I, readonly as pe, watch as S, nextTick as z, getCurrentScope as je, onScopeDispose as Le, toValue as E, isRef as De, shallowRef as ie, unref as O, reactive as me, defineComponent as ke, h as Ne, computed as _, provide as ye, inject as he, onErrorCaptured as Fe } from "vue";
9
+ import { _ as K, w as Be, x as We, z as X, A as Me, B as $e, C as ve, D as B, E as ge, F as Ue, G as ae, H as k, I as N, J as ze, K as Ke, u as Ge } from "./datetime-K_d-hEsO.js";
10
10
  import { SORT_STATE_ORIGINAL as W, SORT_STATE_DESCEND as Q, SORT_STATE_ASCEND as $ } from "./constants.js";
11
11
  function we(e) {
12
12
  return je() ? (Le(e), !0) : !1;
@@ -78,13 +78,13 @@ function St(e, t, r = {}) {
78
78
  ), pause: a, resume: s, isActive: c };
79
79
  }
80
80
  function Z(e, t = !1) {
81
- function r(u, { flush: d = "sync", deep: m = !1, timeout: h, throwOnTimeout: l } = {}) {
81
+ function r(u, { flush: d = "sync", deep: m = !1, timeout: v, throwOnTimeout: l } = {}) {
82
82
  let f = null;
83
83
  const w = [new Promise((A) => {
84
84
  f = S(
85
85
  e,
86
86
  (g) => {
87
- u(g) !== t && (f ? f() : U(() => f == null ? void 0 : f()), A(g));
87
+ u(g) !== t && (f ? f() : z(() => f == null ? void 0 : f()), A(g));
88
88
  },
89
89
  {
90
90
  flush: d,
@@ -93,24 +93,24 @@ function Z(e, t = !1) {
93
93
  }
94
94
  );
95
95
  })];
96
- return h != null && w.push(
97
- Y(h, l).then(() => E(e)).finally(() => f == null ? void 0 : f())
96
+ return v != null && w.push(
97
+ Y(v, l).then(() => E(e)).finally(() => f == null ? void 0 : f())
98
98
  ), Promise.race(w);
99
99
  }
100
100
  function n(u, d) {
101
101
  if (!De(u))
102
102
  return r((g) => g === u, d);
103
- const { flush: m = "sync", deep: h = !1, timeout: l, throwOnTimeout: f } = d ?? {};
103
+ const { flush: m = "sync", deep: v = !1, timeout: l, throwOnTimeout: f } = d ?? {};
104
104
  let p = null;
105
105
  const A = [new Promise((g) => {
106
106
  p = S(
107
107
  [e, u],
108
108
  ([j, F]) => {
109
- t !== (j === F) && (p ? p() : U(() => p == null ? void 0 : p()), g(j));
109
+ t !== (j === F) && (p ? p() : z(() => p == null ? void 0 : p()), g(j));
110
110
  },
111
111
  {
112
112
  flush: m,
113
- deep: h,
113
+ deep: v,
114
114
  immediate: !0
115
115
  }
116
116
  );
@@ -133,14 +133,14 @@ function Z(e, t = !1) {
133
133
  }
134
134
  function c(u, d) {
135
135
  return r((m) => {
136
- const h = Array.from(m);
137
- return h.includes(u) || h.includes(E(u));
136
+ const v = Array.from(m);
137
+ return v.includes(u) || v.includes(E(u));
138
138
  }, d);
139
139
  }
140
140
  function y(u) {
141
- return v(1, u);
141
+ return h(1, u);
142
142
  }
143
- function v(u = 1, d) {
143
+ function h(u = 1, d) {
144
144
  let m = -1;
145
145
  return r(() => (m += 1, m >= u), d);
146
146
  }
@@ -148,7 +148,7 @@ function Z(e, t = !1) {
148
148
  toMatch: r,
149
149
  toContains: c,
150
150
  changed: y,
151
- changedTimes: v,
151
+ changedTimes: h,
152
152
  get not() {
153
153
  return Z(e, !t);
154
154
  }
@@ -160,7 +160,7 @@ function Z(e, t = !1) {
160
160
  toBeNaN: s,
161
161
  toBeUndefined: a,
162
162
  changed: y,
163
- changedTimes: v,
163
+ changedTimes: h,
164
164
  get not() {
165
165
  return Z(e, !t);
166
166
  }
@@ -192,14 +192,14 @@ function et(e, t, r = {}) {
192
192
  };
193
193
  }
194
194
  function tt(e, t, r) {
195
- const n = S(e, (...i) => (U(() => n()), t(...i)), r);
195
+ const n = S(e, (...i) => (z(() => n()), t(...i)), r);
196
196
  return n;
197
197
  }
198
198
  function Pt(e, t, r) {
199
199
  const n = S(
200
200
  e,
201
201
  (i, o, a) => {
202
- i && (r != null && r.once && U(() => n()), t(i, o, a));
202
+ i && (r != null && r.once && z(() => n()), t(i, o, a));
203
203
  },
204
204
  {
205
205
  ...r,
@@ -214,21 +214,21 @@ function D(e) {
214
214
  const r = E(e);
215
215
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
216
216
  }
217
- function z(...e) {
217
+ function U(...e) {
218
218
  let t, r, n, i;
219
219
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, i] = e, t = Te) : [t, r, n, i] = e, !t)
220
220
  return R;
221
221
  r = se(r), n = se(n);
222
222
  const o = [], a = () => {
223
- o.forEach((v) => v()), o.length = 0;
224
- }, s = (v, u, d, m) => (v.addEventListener(u, d, m), () => v.removeEventListener(u, d, m)), c = S(
223
+ o.forEach((h) => h()), o.length = 0;
224
+ }, s = (h, u, d, m) => (h.addEventListener(u, d, m), () => h.removeEventListener(u, d, m)), c = S(
225
225
  () => [D(t), E(i)],
226
- ([v, u]) => {
227
- if (a(), !v)
226
+ ([h, u]) => {
227
+ if (a(), !h)
228
228
  return;
229
229
  const d = He(u) ? { ...u } : u;
230
230
  o.push(
231
- ...r.flatMap((m) => n.map((h) => s(v, m, h, d)))
231
+ ...r.flatMap((m) => n.map((v) => s(h, m, v, d)))
232
232
  );
233
233
  },
234
234
  { immediate: !0, flush: "post" }
@@ -256,13 +256,13 @@ function Ct(e, t, r = {}) {
256
256
  const f = E(l);
257
257
  return f && f.$.subTree.shapeFlag === 16;
258
258
  }
259
- function v(l, f) {
259
+ function h(l, f) {
260
260
  const p = E(l), w = p.$.subTree && p.$.subTree.children;
261
261
  return w == null || !Array.isArray(w) ? !1 : w.some((A) => A.el === f.target || f.composedPath().includes(A.el));
262
262
  }
263
263
  const u = (l) => {
264
264
  const f = D(e);
265
- if (l.target != null && !(!(f instanceof Element) && y(e) && v(e, l)) && !(!f || f === l.target || l.composedPath().includes(f))) {
265
+ if (l.target != null && !(!(f instanceof Element) && y(e) && h(e, l)) && !(!f || f === l.target || l.composedPath().includes(f))) {
266
266
  if (l.detail === 0 && (s = !c(l)), !s) {
267
267
  s = !0;
268
268
  return;
@@ -272,16 +272,16 @@ function Ct(e, t, r = {}) {
272
272
  };
273
273
  let d = !1;
274
274
  const m = [
275
- z(n, "click", (l) => {
275
+ U(n, "click", (l) => {
276
276
  d || (d = !0, setTimeout(() => {
277
277
  d = !1;
278
278
  }, 0), u(l));
279
279
  }, { passive: !0, capture: o }),
280
- z(n, "pointerdown", (l) => {
280
+ U(n, "pointerdown", (l) => {
281
281
  const f = D(e);
282
282
  s = !c(l) && !!(f && !l.composedPath().includes(f));
283
283
  }, { passive: !0 }),
284
- a && z(n, "blur", (l) => {
284
+ a && U(n, "blur", (l) => {
285
285
  setTimeout(() => {
286
286
  var f;
287
287
  const p = D(e);
@@ -300,28 +300,28 @@ function rt(e, t, r) {
300
300
  resetOnExecute: s = !0,
301
301
  shallow: c = !0,
302
302
  throwError: y
303
- } = r ?? {}, v = c ? ie(t) : I(t), u = I(!1), d = I(!1), m = ie(void 0);
304
- async function h(p = 0, ...w) {
305
- s && (v.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await Y(p);
303
+ } = r ?? {}, h = c ? ie(t) : I(t), u = I(!1), d = I(!1), m = ie(void 0);
304
+ async function v(p = 0, ...w) {
305
+ s && (h.value = t), m.value = void 0, u.value = !1, d.value = !0, p > 0 && await Y(p);
306
306
  const A = typeof e == "function" ? e(...w) : e;
307
307
  try {
308
308
  const g = await A;
309
- v.value = g, u.value = !0, a(g);
309
+ h.value = g, u.value = !0, a(g);
310
310
  } catch (g) {
311
311
  if (m.value = g, o(g), y)
312
312
  throw g;
313
313
  } finally {
314
314
  d.value = !1;
315
315
  }
316
- return v.value;
316
+ return h.value;
317
317
  }
318
- n && h(i);
318
+ n && v(i);
319
319
  const l = {
320
- state: v,
320
+ state: h,
321
321
  isReady: u,
322
322
  isLoading: d,
323
323
  error: m,
324
- execute: h
324
+ execute: v
325
325
  };
326
326
  function f() {
327
327
  return new Promise((p, w) => {
@@ -340,14 +340,14 @@ function Rt(e = {}) {
340
340
  if (!t)
341
341
  return I("visible");
342
342
  const r = I(t.visibilityState);
343
- return z(t, "visibilitychange", () => {
343
+ return U(t, "visibilitychange", () => {
344
344
  r.value = t.visibilityState;
345
345
  }, { passive: !0 }), r;
346
346
  }
347
347
  async function ot(e) {
348
348
  return new Promise((t, r) => {
349
- const n = new Image(), { src: i, srcset: o, sizes: a, class: s, loading: c, crossorigin: y, referrerPolicy: v, width: u, height: d, decoding: m, fetchPriority: h, ismap: l, usemap: f } = e;
350
- n.src = i, o != null && (n.srcset = o), a != null && (n.sizes = a), s != null && (n.className = s), c != null && (n.loading = c), y != null && (n.crossOrigin = y), v != null && (n.referrerPolicy = v), u != null && (n.width = u), d != null && (n.height = d), m != null && (n.decoding = m), h != null && (n.fetchPriority = h), l != null && (n.isMap = l), f != null && (n.useMap = f), n.onload = () => t(n), n.onerror = r;
349
+ const n = new Image(), { src: i, srcset: o, sizes: a, class: s, loading: c, crossorigin: y, referrerPolicy: h, width: u, height: d, decoding: m, fetchPriority: v, ismap: l, usemap: f } = e;
350
+ n.src = i, o != null && (n.srcset = o), a != null && (n.sizes = a), s != null && (n.className = s), c != null && (n.loading = c), y != null && (n.crossOrigin = y), h != null && (n.referrerPolicy = h), u != null && (n.width = u), d != null && (n.height = d), m != null && (n.decoding = m), v != null && (n.fetchPriority = v), l != null && (n.isMap = l), f != null && (n.useMap = f), n.onload = () => t(n), n.onerror = r;
351
351
  });
352
352
  }
353
353
  function _t(e, t = {}) {
@@ -375,7 +375,7 @@ var at = /* @__PURE__ */ K(function(t) {
375
375
  }() : it(t) ? t.constructor.from("") : void 0;
376
376
  }), st = /* @__PURE__ */ K(function(t) {
377
377
  return t != null && $e(t, at(t));
378
- }), ut = /* @__PURE__ */ he(function(t, r, n) {
378
+ }), ut = /* @__PURE__ */ ve(function(t, r, n) {
379
379
  var i = {}, o;
380
380
  r = r || {}, n = n || {};
381
381
  for (o in r)
@@ -383,7 +383,7 @@ var at = /* @__PURE__ */ K(function(t) {
383
383
  for (o in n)
384
384
  B(o, n) && !B(o, i) && (i[o] = n[o]);
385
385
  return i;
386
- }), ct = /* @__PURE__ */ he(function e(t, r, n) {
386
+ }), ct = /* @__PURE__ */ ve(function e(t, r, n) {
387
387
  return ut(function(i, o, a) {
388
388
  return X(o) && X(a) ? e(t, o, a) : t(i, o, a);
389
389
  }, r, n);
@@ -406,7 +406,7 @@ var at = /* @__PURE__ */ K(function(t) {
406
406
  });
407
407
  function jt(e, t, r, n) {
408
408
  const i = I(""), o = I(!1), a = (s) => {
409
- const c = ze(ae(t), s), y = c.length > 0;
409
+ const c = Ue(ae(t), s), y = c.length > 0;
410
410
  if (o.value = y, !y)
411
411
  return i.value = "";
412
412
  const u = c.map((d) => ({
@@ -435,10 +435,10 @@ const Ae = Symbol("I18nContext"), T = me({
435
435
  function Lt({ messages: e = {}, locale: t = "", fallbackLocale: r = "" }) {
436
436
  T.messages = lt(T.messages, e), T.locale = t, T.fallbackLocale = r;
437
437
  const n = (c, y = {}) => {
438
- const v = !st(y), u = k(G, N(".", c));
438
+ const h = !st(y), u = k(G, N(".", c));
439
439
  return _(() => {
440
440
  const m = Ee(u);
441
- return v ? vt(m, y) : m;
441
+ return h ? ht(m, y) : m;
442
442
  }).value;
443
443
  }, i = (c) => {
444
444
  const y = k(G, N(".", c));
@@ -473,7 +473,7 @@ function mt(e) {
473
473
  };
474
474
  }
475
475
  function yt() {
476
- const e = ve(Ae, null);
476
+ const e = he(Ae, null);
477
477
  if (e === null)
478
478
  throw new Error("Privider is missing a parent component.");
479
479
  return e;
@@ -483,9 +483,9 @@ function Ee(e = []) {
483
483
  return !t && T.fallbackLocale && (t = ee(T.fallbackLocale, e, T.messages)), t || e.join(".");
484
484
  }
485
485
  function ee(e, t, r) {
486
- return Ue([e, ...t], r);
486
+ return ze([e, ...t], r);
487
487
  }
488
- function vt(e, t) {
488
+ function ht(e, t) {
489
489
  return e.replace(/\{(\w+)\}/g, (r, n) => t[n]);
490
490
  }
491
491
  const Dt = ke({
@@ -511,7 +511,7 @@ function kt(e, t = "", r = {}) {
511
511
  const n = I(""), { t: i } = mt(), o = _(() => {
512
512
  if (O(t))
513
513
  try {
514
- const c = ht(O(e), O(t));
514
+ const c = vt(O(e), O(t));
515
515
  return ft(c, O(e));
516
516
  } catch (c) {
517
517
  n.value = c;
@@ -527,7 +527,7 @@ function kt(e, t = "", r = {}) {
527
527
  error: n
528
528
  };
529
529
  }
530
- function ht(e, t = "") {
530
+ function vt(e, t = "") {
531
531
  const r = k(G, N(",", t)), n = Ke(e);
532
532
  if (r[0] === "")
533
533
  return [];
@@ -569,7 +569,7 @@ function Ft() {
569
569
  };
570
570
  }
571
571
  function gt() {
572
- const e = ve(Ie, null);
572
+ const e = he(Ie, null);
573
573
  if (e === null)
574
574
  throw new Error("Privider is missing a parent component.");
575
575
  return e;
@@ -591,9 +591,6 @@ function Bt(e = [], t = {}) {
591
591
  { immediate: !0, deep: !0 }
592
592
  ), n;
593
593
  }
594
- function Wt(e) {
595
- return "mjsz-vbr-" + e;
596
- }
597
594
  /*! *****************************************************************************
598
595
  Copyright (c) Microsoft Corporation.
599
596
 
@@ -665,13 +662,13 @@ function Tt(e, t) {
665
662
  var r = V(de(M(e.states[e.initial].entry).map(function(a) {
666
663
  return le(a, t.actions);
667
664
  }), e.context, wt), 2), n = r[0], i = r[1], o = { config: e, _options: t, initialState: { value: e.initial, actions: n, context: i, matches: te(e.initial) }, transition: function(a, s) {
668
- var c, y, v = typeof a == "string" ? { value: a, context: e.context } : a, u = v.value, d = v.context, m = bt(s), h = e.states[u];
669
- if (h.on) {
670
- var l = M(h.on[m.type]);
671
- "*" in h.on && l.push.apply(l, function(b, x, J) {
665
+ var c, y, h = typeof a == "string" ? { value: a, context: e.context } : a, u = h.value, d = h.context, m = bt(s), v = e.states[u];
666
+ if (v.on) {
667
+ var l = M(v.on[m.type]);
668
+ "*" in v.on && l.push.apply(l, function(b, x, J) {
672
669
  if (arguments.length === 2) for (var P, C = 0, _e = x.length; C < _e; C++) !P && C in x || (P || (P = Array.prototype.slice.call(x, 0, C)), P[C] = x[C]);
673
670
  return b.concat(P || Array.prototype.slice.call(x));
674
- }([], V(M(h.on["*"])), !1));
671
+ }([], V(M(v.on["*"])), !1));
675
672
  try {
676
673
  for (var f = function(b) {
677
674
  var x = typeof Symbol == "function" && Symbol.iterator, J = x && b[x], P = 0;
@@ -687,7 +684,7 @@ function Tt(e, t) {
687
684
  return !0;
688
685
  } : ne, xe = g === void 0, Se = g ?? u, Pe = e.states[Se];
689
686
  if (Oe(d, m)) {
690
- var H = V(de((xe ? M(F) : [].concat(h.exit, F, Pe.entry).filter(function(b) {
687
+ var H = V(de((xe ? M(F) : [].concat(v.exit, F, Pe.entry).filter(function(b) {
691
688
  return b;
692
689
  })).map(function(b) {
693
690
  return le(b, o._options.actions);
@@ -737,7 +734,7 @@ function Et(e, t) {
737
734
  const r = t === $ ? "DIRECTION2" : "DIRECTION1";
738
735
  return At.transition(e, r).value;
739
736
  }
740
- function Mt(e = {}) {
737
+ function Wt(e = {}) {
741
738
  const { sortTarget: t = null, orders: r = [] } = e, n = me({ sortTarget: t, orders: r });
742
739
  return {
743
740
  sort: n,
@@ -762,19 +759,18 @@ export {
762
759
  mt as e,
763
760
  Bt as f,
764
761
  Wt as g,
765
- Mt as h,
762
+ _t as h,
766
763
  Dt as i,
767
- _t as j,
768
- st as k,
769
- tt as l,
764
+ st as j,
765
+ tt as k,
766
+ St as l,
770
767
  lt as m,
771
768
  R as n,
772
769
  Ct as o,
773
- St as p,
774
- D as q,
775
- rt as r,
776
- Rt as s,
770
+ D as p,
771
+ rt as q,
772
+ Rt as r,
777
773
  jt as u,
778
- ht as v,
774
+ vt as v,
779
775
  Pt as w
780
776
  };
package/dist/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.11.3 - 15/01/2025, 13:04:28
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>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mjsz-vbr-elements/core",
3
3
  "type": "module",
4
- "version": "2.11.3",
4
+ "version": "2.12.0",
5
5
  "private": false,
6
6
  "description": "Data visualization for MJSZ VBR",
7
7
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
@@ -39,7 +39,7 @@
39
39
  "dayjs": "^1.11.13",
40
40
  "ramda": "^0.30.1",
41
41
  "vue": "^3.5.13",
42
- "@mjsz-vbr-elements/shared": "^2.11.3"
42
+ "@mjsz-vbr-elements/shared": "^2.12.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@vitejs/plugin-vue": "^5.2.1",
@@ -48,10 +48,8 @@
48
48
  "vite-plugin-compression2": "^1.3.3"
49
49
  },
50
50
  "scripts": {
51
- "dev": "vite",
52
51
  "build": "pnpm run build:esm && pnpm run build:browser",
53
52
  "build:esm": "vite build",
54
- "build:browser": "vite build -c ./build-browser.config.js --emptyOutDir false",
55
- "preview": "vite preview"
53
+ "build:browser": "vite build -c ./build-browser.config.js --emptyOutDir false"
56
54
  }
57
55
  }