@mjsz-vbr-elements/core 2.25.3 → 2.26.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.
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.25.3 - 29/08/2025, 21:10:57
3
+ * version: v2.26.1 - 04/09/2025, 08:32:34
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 c, COLUMNS_FIELD_PLAYERS_PENALTY as N, COLUMNS_FIELD_PLAYERS_TOI as d, COLUMNS_GOALIES as u, COLUMNS_PLAYERS_NATIONAL as f, COLUMNS_SCHEDULE as R, COLUMNS_SCORING_EFFICIENCY as p, COLUMNS_STANDINGS_P_2 as I, COLUMNS_STANDINGS_P_3 as O, COLUMNS_STANDINGS_SHORT as C, COLUMNS_TEAMS_FAIRPLAY as g, COLUMNS_TEAMS_PENALTY_KILLING as M, COLUMNS_TEAMS_POWERPLAY as y, COLUMNS_TEAM_ATTENDANCE as U } from "./columns.js";
9
- import { _ as P, a as D, b as x, c as F, d as h, e as G, f as b, I as B, g as Y, h as k, i as w, j as W, k as V, l as X, m as j, n as z } from "./TimezoneSelector-CRy1AyTX.js";
10
- import { d as K, i as Z, u as q, a as J, c as Q, b as $, e as ee, f as ae, g as se, v as te } from "./useSort-D-BBQTSZ.js";
8
+ import { COLUMNS_FIELD_PLAYERS as c, COLUMNS_FIELD_PLAYERS_PENALTY as N, COLUMNS_FIELD_PLAYERS_TOI as d, COLUMNS_GOALIES as u, COLUMNS_PLAYERS_NATIONAL as R, COLUMNS_SCHEDULE as f, COLUMNS_SCORING_EFFICIENCY as p, COLUMNS_STANDINGS_P_2 as I, COLUMNS_STANDINGS_P_3 as O, COLUMNS_STANDINGS_SHORT as g, COLUMNS_TEAMS_FAIRPLAY as C, COLUMNS_TEAMS_PENALTY_KILLING as M, COLUMNS_TEAMS_POWERPLAY as y, COLUMNS_TEAM_ATTENDANCE as U } from "./columns.js";
9
+ import { _ as P, a as D, b as x, c as F, d as h, e as G, f as b, I as B, g as Y, h as k, i as w, j as W, k as V, l as K, m as X, n as j } from "./TimezoneSelector-CRy1AyTX.js";
10
+ import { d as H, i as Z, u as q, a as J, c as Q, b as $, e as ee, f as ae, g as se, v as te } from "./useSort-D-BBQTSZ.js";
11
11
  import { fetchVBRData as oe, usePage as ne, useScrollToGameDate as ie, useServices as le, useVisibilityChange as Se } 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_STATISTIC_URL as Ae, DEFAULT_EXTERNAL_TEAM_URL as me, DEFAULT_PORTRAIT_IMAGE_URL as ce, FLAG_BASE_URL as Ne, LAZY_LOADING_STATE_DELAY as de, LOCALE_FOR_LANG as ue, REFRESH_DELAY as fe, SORT_STATE_ASCEND as Re, SORT_STATE_DESCEND as pe, SORT_STATE_ORIGINAL as Ie, VBR_API_BASE_URL as Oe } from "./constants.js";
14
- import { I as ge, U as Me, W as ye, m as Ue, c as ve, i as Pe, k as De, e as xe, f as Fe, h as he, g as Ge, a as be, l as Be, p as Ye, r as ke, s as we, n as We, j as Ve, t as Xe, b as je, d as ze, u as He } from "./errors-B6O6sS7H.js";
13
+ import { AVAILABLE_TIMEZONES_BY_COUNTRY as Te, DEFAULT_EXTERNAL_GAME_URL as Le, DEFAULT_EXTERNAL_PLAYER_URL as Ee, DEFAULT_EXTERNAL_STATISTIC_URL as Ae, DEFAULT_EXTERNAL_TEAM_URL as me, DEFAULT_PORTRAIT_IMAGE_URL as ce, FLAG_BASE_URL as Ne, LAZY_LOADING_STATE_DELAY as de, LOCALE_FOR_LANG as ue, REFRESH_DELAY as Re, SORT_STATE_ASCEND as fe, SORT_STATE_DESCEND as pe, SORT_STATE_ORIGINAL as Ie, VBR_API_BASE_URL as Oe } from "./constants.js";
14
+ import { I as Ce, U as Me, W as ye, m as Ue, c as ve, i as Pe, k as De, e as xe, f as Fe, h as he, g as Ge, a as be, l as Be, p as Ye, r as ke, s as we, n as We, j as Ve, t as Ke, b as Xe, d as je, u as ze } from "./errors-B6O6sS7H.js";
15
15
  import { n as Ze, b as qe, c as Je, a as Qe, l as $e, m as ea, q as aa, f as sa, g as ta, j as ra, h as oa, d as na, e as ia, i as la, k as Sa, t as _a, r as Ta, o as La, p as Ea, s as Aa, v as ma, u as ca, y as Na } from "./datetime-D600LvsU.js";
16
- import { externalGameLinkResolver as ua, externalPlayerLinkResolver as fa, externalStatisticLinkResolver as Ra, externalTeamLinkResolver as pa, flagResolver as Ia, scrollToTop as Oa } from "./utils.js";
16
+ import { externalGameLinkResolver as ua, externalPlayerLinkResolver as Ra, externalStatisticLinkResolver as fa, externalTeamLinkResolver as pa, flagResolver as Ia, getWebsocketURL as Oa, resolveApiKey as ga, scrollToTop as Ca } from "./utils.js";
17
17
  const S = {
18
18
  locale: {
19
19
  type: String,
@@ -97,13 +97,13 @@ export {
97
97
  N as COLUMNS_FIELD_PLAYERS_PENALTY,
98
98
  d as COLUMNS_FIELD_PLAYERS_TOI,
99
99
  u as COLUMNS_GOALIES,
100
- f as COLUMNS_PLAYERS_NATIONAL,
101
- R as COLUMNS_SCHEDULE,
100
+ R as COLUMNS_PLAYERS_NATIONAL,
101
+ f as COLUMNS_SCHEDULE,
102
102
  p as COLUMNS_SCORING_EFFICIENCY,
103
103
  I as COLUMNS_STANDINGS_P_2,
104
104
  O as COLUMNS_STANDINGS_P_3,
105
- C as COLUMNS_STANDINGS_SHORT,
106
- g as COLUMNS_TEAMS_FAIRPLAY,
105
+ g as COLUMNS_STANDINGS_SHORT,
106
+ C as COLUMNS_TEAMS_FAIRPLAY,
107
107
  M as COLUMNS_TEAMS_PENALTY_KILLING,
108
108
  y as COLUMNS_TEAMS_POWERPLAY,
109
109
  U as COLUMNS_TEAM_ATTENDANCE,
@@ -120,20 +120,20 @@ export {
120
120
  b as FloatingPanel,
121
121
  B as I18NProvider,
122
122
  Y as Image,
123
- ge as InvalidSeasonName,
123
+ Ce as InvalidSeasonName,
124
124
  de as LAZY_LOADING_STATE_DELAY,
125
125
  ue as LOCALE_FOR_LANG,
126
126
  k as LoadingIndicator,
127
127
  w as Paginator,
128
- fe as REFRESH_DELAY,
128
+ Re as REFRESH_DELAY,
129
129
  W as ResponsiveTable,
130
- Re as SORT_STATE_ASCEND,
130
+ fe as SORT_STATE_ASCEND,
131
131
  pe as SORT_STATE_DESCEND,
132
132
  Ie as SORT_STATE_ORIGINAL,
133
133
  V as ScheduleTable,
134
- X as SeasonSelector,
135
- j as StatisticsTable,
136
- z as TimezoneSelector,
134
+ K as SeasonSelector,
135
+ X as StatisticsTable,
136
+ j as TimezoneSelector,
137
137
  Me as UndefinedColumn,
138
138
  Oe as VBR_API_BASE_URL,
139
139
  ye as WidgetError,
@@ -150,14 +150,14 @@ export {
150
150
  Fe as convertTimesMinToMinSec,
151
151
  he as convertTimesSecToMin,
152
152
  i as createConfig,
153
- K as createI18n,
153
+ H as createI18n,
154
154
  $e as currentWeek,
155
155
  ea as currentWeekStartEnd,
156
156
  E as default,
157
157
  aa as endOfMonth,
158
158
  ua as externalGameLinkResolver,
159
- fa as externalPlayerLinkResolver,
160
- Ra as externalStatisticLinkResolver,
159
+ Ra as externalPlayerLinkResolver,
160
+ fa as externalStatisticLinkResolver,
161
161
  pa as externalTeamLinkResolver,
162
162
  oe as fetchVBRData,
163
163
  Ia as flagResolver,
@@ -166,6 +166,7 @@ export {
166
166
  L as gameProps,
167
167
  be as gameResult,
168
168
  ta as getLocalTimezone,
169
+ Oa as getWebsocketURL,
169
170
  Z as i18n,
170
171
  ra as isAfter,
171
172
  oa as isBefore,
@@ -180,19 +181,20 @@ export {
180
181
  Ye as playerName,
181
182
  T as playerStatsProps,
182
183
  ke as rawConvert,
184
+ ga as resolveApiKey,
183
185
  we as scheduleOptionalRowClass,
184
- Oa as scrollToTop,
186
+ Ca as scrollToTop,
185
187
  We as sortByDomNode,
186
188
  Ve as sortGames,
187
189
  Ea as startOfMonth,
188
190
  Aa as subtractDays,
189
- Xe as teamName,
190
- je as teamOpponent,
191
- ze as teamResultType,
191
+ Ke as teamName,
192
+ Xe as teamOpponent,
193
+ je as teamResultType,
192
194
  _ as teamStatsProps,
193
195
  ma as templateReplacer,
194
196
  ca as toKebabCase,
195
- He as upperCase,
197
+ ze as upperCase,
196
198
  q as useAdditionalText,
197
199
  J as useColumns,
198
200
  Q as useError,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.25.3 - 29/08/2025, 21:10:57
3
+ * version: v2.26.1 - 04/09/2025, 08:32:34
4
4
  * (c) 2025
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
package/dist/utils.js CHANGED
@@ -1,86 +1,94 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.25.3 - 29/08/2025, 21:10:57
3
+ * version: v2.26.1 - 04/09/2025, 08:32:34
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 { I as E, U as S, W as A, m as p, c as y, i as I, k as g, e as M, f as x, h as N, g as D, a as k, l as w, p as G, r as b, s as h, n as B, j as C, t as F, b as O, d as W, u as P } from "./errors-B6O6sS7H.js";
9
- import { v as t } from "./datetime-D600LvsU.js";
10
- import { n as $, b as j, c as V, a as q, l as z, m as J, q as K, f as Y, g as Z, j as H, h as Q, d as ee, e as ne, i as oe, k as te, t as ae, r as re, o as se, p as ie, s as ce, u as le, y as fe } from "./datetime-D600LvsU.js";
11
- import { FLAG_BASE_URL as r, DEFAULT_EXTERNAL_GAME_URL as s, DEFAULT_EXTERNAL_TEAM_URL as i, DEFAULT_EXTERNAL_PLAYER_URL as c, DEFAULT_EXTERNAL_STATISTIC_URL as l } from "./constants.js";
12
- const a = (n = "") => window?.__MJSZ_VBR_WIDGET__?.[n];
13
- function R(n, e = {}) {
14
- if (e.externalGameUrl)
15
- return e.externalGameUrl;
16
- const o = a("gameResolver") || n;
17
- return typeof o == "function" ? o(e) : encodeURI(o ? t(o, e) : t(s, e));
8
+ import { I as S, U as y, W as I, m as g, c as M, i as x, k as N, e as k, f as w, h as D, g as b, a as B, l as G, p as h, r as C, s as W, n as F, j as O, t as P, b as $, d as X, u as K } from "./errors-B6O6sS7H.js";
9
+ import { v as o } from "./datetime-D600LvsU.js";
10
+ import { n as j, b as q, c as z, a as J, l as Y, m as Z, q as H, f as Q, g as ee, j as ne, h as te, d as oe, e as re, i as ae, k as se, t as ie, r as ce, o as le, p as fe, s as ue, u as Re, y as Te } from "./datetime-D600LvsU.js";
11
+ import { VBR_API_BASE_URL as a, FLAG_BASE_URL as s, DEFAULT_EXTERNAL_GAME_URL as i, DEFAULT_EXTERNAL_TEAM_URL as c, DEFAULT_EXTERNAL_PLAYER_URL as l, DEFAULT_EXTERNAL_STATISTIC_URL as f } from "./constants.js";
12
+ function T(e) {
13
+ return `${a.replace("https", "ws").replace("/vbr", "")}${e}`;
18
14
  }
19
- function T(n, e = {}) {
20
- const o = a("teamResolver") || n;
21
- return typeof o == "function" ? o(e) : encodeURI(o ? t(o, e) : t(i, e));
15
+ const r = (e = "") => window?.__MJSZ_VBR_WIDGET__?.[e];
16
+ function m(e, n = {}) {
17
+ if (n.externalGameUrl)
18
+ return n.externalGameUrl;
19
+ const t = r("gameResolver") || e;
20
+ return typeof t == "function" ? t(n) : encodeURI(t ? o(t, n) : o(i, n));
22
21
  }
23
- function m(n, e = {}) {
24
- const o = a("playerResolver") || n;
25
- return typeof o == "function" ? o(e) : encodeURI(o ? t(o, e) : t(c, e));
22
+ function d(e, n = {}) {
23
+ const t = r("teamResolver") || e;
24
+ return typeof t == "function" ? t(n) : encodeURI(t ? o(t, n) : o(c, n));
26
25
  }
27
- function d(n, e = {}) {
28
- return typeof n == "function" ? n(e) : encodeURI(n ? t(n, e) : t(l, e));
26
+ function v(e, n = {}) {
27
+ const t = r("playerResolver") || e;
28
+ return typeof t == "function" ? t(n) : encodeURI(t ? o(t, n) : o(l, n));
29
29
  }
30
- const v = (n, e = "1x1") => `${r}/flag:${n}-${e}.svg`;
31
- function U() {
30
+ function U(e, n = {}) {
31
+ return typeof e == "function" ? e(n) : encodeURI(e ? o(e, n) : o(f, n));
32
+ }
33
+ const _ = (e, n = "1x1") => `${s}/flag:${e}-${n}.svg`;
34
+ function L(e) {
35
+ return e || (r("apiKey") ? r("apiKey") : "");
36
+ }
37
+ function E() {
32
38
  window.scrollTo(0, 0);
33
39
  }
34
40
  export {
35
- E as InvalidSeasonName,
36
- S as UndefinedColumn,
37
- A as WidgetError,
38
- $ as addDays,
39
- p as appendTo,
40
- y as convert,
41
- I as convertGamePeriodResults,
42
- j as convertMinToMinSec,
43
- V as convertMinToSec,
44
- g as convertPhaseName,
45
- q as convertSecToMin,
46
- M as convertTimes,
47
- x as convertTimesMinToMinSec,
48
- N as convertTimesSecToMin,
49
- z as currentWeek,
50
- J as currentWeekStartEnd,
51
- K as endOfMonth,
52
- R as externalGameLinkResolver,
53
- m as externalPlayerLinkResolver,
54
- d as externalStatisticLinkResolver,
55
- T as externalTeamLinkResolver,
56
- v as flagResolver,
57
- Y as format,
58
- D as gameDateTime,
59
- k as gameResult,
60
- Z as getLocalTimezone,
61
- H as isAfter,
62
- Q as isBefore,
63
- ee as isBetween,
64
- ne as isSame,
65
- oe as isSameOrBefore,
66
- te as isToday,
67
- w as localeSort,
68
- ae as max,
69
- re as min,
70
- se as offsetName,
71
- G as playerName,
72
- b as rawConvert,
73
- h as scheduleOptionalRowClass,
74
- U as scrollToTop,
75
- B as sortByDomNode,
76
- C as sortGames,
77
- ie as startOfMonth,
78
- ce as subtractDays,
79
- F as teamName,
80
- O as teamOpponent,
81
- W as teamResultType,
82
- t as templateReplacer,
83
- le as toKebabCase,
84
- P as upperCase,
85
- fe as yearToNow
41
+ S as InvalidSeasonName,
42
+ y as UndefinedColumn,
43
+ I as WidgetError,
44
+ j as addDays,
45
+ g as appendTo,
46
+ M as convert,
47
+ x as convertGamePeriodResults,
48
+ q as convertMinToMinSec,
49
+ z as convertMinToSec,
50
+ N as convertPhaseName,
51
+ J as convertSecToMin,
52
+ k as convertTimes,
53
+ w as convertTimesMinToMinSec,
54
+ D as convertTimesSecToMin,
55
+ Y as currentWeek,
56
+ Z as currentWeekStartEnd,
57
+ H as endOfMonth,
58
+ m as externalGameLinkResolver,
59
+ v as externalPlayerLinkResolver,
60
+ U as externalStatisticLinkResolver,
61
+ d as externalTeamLinkResolver,
62
+ _ as flagResolver,
63
+ Q as format,
64
+ b as gameDateTime,
65
+ B as gameResult,
66
+ ee as getLocalTimezone,
67
+ T as getWebsocketURL,
68
+ ne as isAfter,
69
+ te as isBefore,
70
+ oe as isBetween,
71
+ re as isSame,
72
+ ae as isSameOrBefore,
73
+ se as isToday,
74
+ G as localeSort,
75
+ ie as max,
76
+ ce as min,
77
+ le as offsetName,
78
+ h as playerName,
79
+ C as rawConvert,
80
+ L as resolveApiKey,
81
+ W as scheduleOptionalRowClass,
82
+ E as scrollToTop,
83
+ F as sortByDomNode,
84
+ O as sortGames,
85
+ fe as startOfMonth,
86
+ ue as subtractDays,
87
+ P as teamName,
88
+ $ as teamOpponent,
89
+ X as teamResultType,
90
+ o as templateReplacer,
91
+ Re as toKebabCase,
92
+ K as upperCase,
93
+ Te as yearToNow
86
94
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mjsz-vbr-elements/core",
3
3
  "type": "module",
4
- "version": "2.25.3",
4
+ "version": "2.26.1",
5
5
  "private": false,
6
6
  "description": "Data visualization for MJSZ VBR",
7
7
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
@@ -40,7 +40,7 @@
40
40
  "dayjs": "^1.11.13",
41
41
  "ramda": "^0.31.3",
42
42
  "vue": "^3.5.17",
43
- "@mjsz-vbr-elements/shared": "^2.25.3"
43
+ "@mjsz-vbr-elements/shared": "^2.26.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@vitejs/plugin-vue": "^6.0.0",