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