@mjsz-vbr-elements/core 2.1.6 → 2.1.8

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.1.6 - 19/12/2023, 15:00:45
4
- * (c) 2023
3
+ * version: v2.1.8 - 01/01/2024, 19:08:09
4
+ * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { BaseSelect as A, DataTable as p, ErrorNotice as m, ErrorProvider as N, FloatingPanel as c, I18NProvider as f, Image as R, LoadingIndicator as u, Paginator as d, ResponsiveTable as g, ScheduleTable as C, SeasonSelector as I, StatisticsTable as M, TimezoneSelector as y } from "./components.js";
9
- import { c as P, i as U, u as v, b as D, a as F, d as x, e as G, f as B, g as b, v as h } from "./useSort-cf4549f9.js";
10
- import { fetchVBRData as w, usePage as k, useServices as V, useVisibilityChange as W } from "./composables.js";
8
+ import { BaseSelect as A, DataTable as p, ErrorNotice as m, ErrorProvider as c, FloatingPanel as N, I18NProvider as f, Image as R, LoadingIndicator as u, Paginator as d, ResponsiveTable as g, ScheduleTable as C, SeasonSelector as I, StatisticsTable as M, TimezoneSelector as y } from "./components.js";
9
+ import { c as P, i as U, u as v, b as D, a as F, d as G, e as x, f as B, g as b, v as h } from "./useSort-f320269d.js";
10
+ import { fetchVBRData as w, usePage as k, useScrollToGameDate as V, useServices as W, useVisibilityChange as z } from "./composables.js";
11
11
  import "vue";
12
- import { I as K, U as X, W as Z, i as H, c as J, e as j, f as q, h as Q, g as $, a as ee, l as ae, p as te, r as re, s as se, t as oe, b as ne, d as ie, u as Se } from "./convert-18c8bb80.js";
13
- import { b as _e, c as Ee, a as Le, f as Te, g as Ae, d as pe, e as me, i as Ne, o as ce, h as fe, t as Re, y as ue } from "./datetime-2fb02df2.js";
14
- import { externalGameLinkResolver as ge, externalPlayerLinkResolver as Ce, externalTeamLinkResolver as Ie, flagResolver as Me } from "./utils.js";
15
- import { COLUMNS_FIELD_PLAYERS as Oe, COLUMNS_FIELD_PLAYERS_PENALTY as Pe, COLUMNS_GOALIES as Ue, COLUMNS_SCHEDULE as ve, COLUMNS_SCORING_EFFICIENCY as De, COLUMNS_STANDINGS_P_2 as Fe, COLUMNS_STANDINGS_P_3 as xe, COLUMNS_TEAMS_FAIRPLAY as Ge, COLUMNS_TEAMS_PENALTY_KILLING as Be, COLUMNS_TEAMS_POWERPLAY as be, COLUMNS_TEAM_ATTENDANCE as he } from "./columns.js";
16
- import { AVAILABLE_TIMEZONES_BY_COUNTRY as we, DEFAULT_EXTERNAL_GAME_URL as ke, DEFAULT_EXTERNAL_PLAYER_URL as Ve, DEFAULT_EXTERNAL_TEAM_URL as We, DEFAULT_PORTRAIT_IMAGE_URL as ze, FLAG_BASE_URL as Ke, LAZY_LOADING_STATE_DELAY as Xe, LOCALE_FOR_LANG as Ze, REFRESH_DELAY as He, SORT_STATE_ASCEND as Je, SORT_STATE_DESCEND as je, SORT_STATE_ORIGINAL as qe, VBR_API_BASE_URL as Qe } from "./constants.js";
12
+ import { I as X, U as Z, W as H, i as J, c as j, e as q, f as Q, h as $, g as ee, a as ae, l as te, p as re, r as se, s as oe, t as ne, b as ie, d as le, u as Se } from "./convert-18c8bb80.js";
13
+ import { b as Te, c as Ee, a as Le, f as Ae, g as pe, d as me, e as ce, i as Ne, o as fe, h as Re, t as ue, y as de } from "./datetime-2fb02df2.js";
14
+ import { externalGameLinkResolver as Ce, externalPlayerLinkResolver as Ie, externalTeamLinkResolver as Me, flagResolver as ye, scrollToTop as Oe } from "./utils.js";
15
+ import { COLUMNS_FIELD_PLAYERS as Ue, COLUMNS_FIELD_PLAYERS_PENALTY as ve, COLUMNS_GOALIES as De, COLUMNS_SCHEDULE as Fe, COLUMNS_SCORING_EFFICIENCY as Ge, COLUMNS_STANDINGS_P_2 as xe, COLUMNS_STANDINGS_P_3 as Be, COLUMNS_TEAMS_FAIRPLAY as be, COLUMNS_TEAMS_PENALTY_KILLING as he, COLUMNS_TEAMS_POWERPLAY as Ye, COLUMNS_TEAM_ATTENDANCE as we } from "./columns.js";
16
+ import { AVAILABLE_TIMEZONES_BY_COUNTRY as Ve, DEFAULT_EXTERNAL_GAME_URL as We, DEFAULT_EXTERNAL_PLAYER_URL as ze, DEFAULT_EXTERNAL_TEAM_URL as Ke, DEFAULT_PORTRAIT_IMAGE_URL as Xe, FLAG_BASE_URL as Ze, LAZY_LOADING_STATE_DELAY as He, LOCALE_FOR_LANG as Je, REFRESH_DELAY as je, SORT_STATE_ASCEND as qe, SORT_STATE_DESCEND as Qe, SORT_STATE_ORIGINAL as $e, VBR_API_BASE_URL as ea } from "./constants.js";
17
17
  const i = {
18
18
  locale: {
19
19
  type: String,
@@ -39,7 +39,7 @@ const i = {
39
39
  type: String,
40
40
  default: ""
41
41
  }
42
- }, S = {
42
+ }, l = {
43
43
  externalTeamResolver: {
44
44
  type: [String, Function],
45
45
  default: ""
@@ -48,7 +48,7 @@ const i = {
48
48
  type: Boolean,
49
49
  default: !1
50
50
  }
51
- }, l = {
51
+ }, S = {
52
52
  limit: {
53
53
  type: Number,
54
54
  default: 20
@@ -74,7 +74,7 @@ const i = {
74
74
  type: Boolean,
75
75
  default: !1
76
76
  }
77
- }, E = ({ modules: a = [], apiKey: t, gameResolver: r, teamResolver: s, playerResolver: o }) => {
77
+ }, T = ({ modules: a = [], apiKey: t, gameResolver: r, teamResolver: s, playerResolver: o }) => {
78
78
  if (window.__MJSZ_VBR_WIDGET__ = { apiKey: t, gameResolver: r, teamResolver: s, playerResolver: o }, a.length === 0)
79
79
  throw new Error("At least one module must be set");
80
80
  a.forEach((e) => {
@@ -84,95 +84,97 @@ const i = {
84
84
  });
85
85
  };
86
86
  export {
87
- we as AVAILABLE_TIMEZONES_BY_COUNTRY,
87
+ Ve as AVAILABLE_TIMEZONES_BY_COUNTRY,
88
88
  A as BaseSelect,
89
- Oe as COLUMNS_FIELD_PLAYERS,
90
- Pe as COLUMNS_FIELD_PLAYERS_PENALTY,
91
- Ue as COLUMNS_GOALIES,
92
- ve as COLUMNS_SCHEDULE,
93
- De as COLUMNS_SCORING_EFFICIENCY,
94
- Fe as COLUMNS_STANDINGS_P_2,
95
- xe as COLUMNS_STANDINGS_P_3,
96
- Ge as COLUMNS_TEAMS_FAIRPLAY,
97
- Be as COLUMNS_TEAMS_PENALTY_KILLING,
98
- be as COLUMNS_TEAMS_POWERPLAY,
99
- he as COLUMNS_TEAM_ATTENDANCE,
100
- ke as DEFAULT_EXTERNAL_GAME_URL,
101
- Ve as DEFAULT_EXTERNAL_PLAYER_URL,
102
- We as DEFAULT_EXTERNAL_TEAM_URL,
103
- ze as DEFAULT_PORTRAIT_IMAGE_URL,
89
+ Ue as COLUMNS_FIELD_PLAYERS,
90
+ ve as COLUMNS_FIELD_PLAYERS_PENALTY,
91
+ De as COLUMNS_GOALIES,
92
+ Fe as COLUMNS_SCHEDULE,
93
+ Ge as COLUMNS_SCORING_EFFICIENCY,
94
+ xe as COLUMNS_STANDINGS_P_2,
95
+ Be as COLUMNS_STANDINGS_P_3,
96
+ be as COLUMNS_TEAMS_FAIRPLAY,
97
+ he as COLUMNS_TEAMS_PENALTY_KILLING,
98
+ Ye as COLUMNS_TEAMS_POWERPLAY,
99
+ we as COLUMNS_TEAM_ATTENDANCE,
100
+ We as DEFAULT_EXTERNAL_GAME_URL,
101
+ ze as DEFAULT_EXTERNAL_PLAYER_URL,
102
+ Ke as DEFAULT_EXTERNAL_TEAM_URL,
103
+ Xe as DEFAULT_PORTRAIT_IMAGE_URL,
104
104
  p as DataTable,
105
105
  m as ErrorNotice,
106
- N as ErrorProvider,
107
- Ke as FLAG_BASE_URL,
108
- c as FloatingPanel,
106
+ c as ErrorProvider,
107
+ Ze as FLAG_BASE_URL,
108
+ N as FloatingPanel,
109
109
  f as I18NProvider,
110
110
  R as Image,
111
- K as InvalidSeasonName,
112
- Xe as LAZY_LOADING_STATE_DELAY,
113
- Ze as LOCALE_FOR_LANG,
111
+ X as InvalidSeasonName,
112
+ He as LAZY_LOADING_STATE_DELAY,
113
+ Je as LOCALE_FOR_LANG,
114
114
  u as LoadingIndicator,
115
115
  d as Paginator,
116
- He as REFRESH_DELAY,
116
+ je as REFRESH_DELAY,
117
117
  g as ResponsiveTable,
118
- Je as SORT_STATE_ASCEND,
119
- je as SORT_STATE_DESCEND,
120
- qe as SORT_STATE_ORIGINAL,
118
+ qe as SORT_STATE_ASCEND,
119
+ Qe as SORT_STATE_DESCEND,
120
+ $e as SORT_STATE_ORIGINAL,
121
121
  C as ScheduleTable,
122
122
  I as SeasonSelector,
123
123
  M as StatisticsTable,
124
124
  y as TimezoneSelector,
125
- X as UndefinedColumn,
126
- Qe as VBR_API_BASE_URL,
127
- Z as WidgetError,
128
- H as appendTo,
125
+ Z as UndefinedColumn,
126
+ ea as VBR_API_BASE_URL,
127
+ H as WidgetError,
128
+ J as appendTo,
129
129
  i as baseProps,
130
- J as convert,
131
- _e as convertMinToMinSec,
130
+ j as convert,
131
+ Te as convertMinToMinSec,
132
132
  Ee as convertMinToSec,
133
133
  Le as convertSecToMin,
134
- j as convertTimes,
135
- q as convertTimesMinToMinSec,
136
- Q as convertTimesSecToMin,
137
- E as createConfig,
134
+ q as convertTimes,
135
+ Q as convertTimesMinToMinSec,
136
+ $ as convertTimesSecToMin,
137
+ T as createConfig,
138
138
  P as createI18n,
139
- ge as externalGameLinkResolver,
140
- Ce as externalPlayerLinkResolver,
141
- Ie as externalTeamLinkResolver,
139
+ Ce as externalGameLinkResolver,
140
+ Ie as externalPlayerLinkResolver,
141
+ Me as externalTeamLinkResolver,
142
142
  w as fetchVBRData,
143
- Me as flagResolver,
144
- Te as format,
145
- $ as gameDateTime,
143
+ ye as flagResolver,
144
+ Ae as format,
145
+ ee as gameDateTime,
146
146
  _ as gameProps,
147
- ee as gameResult,
148
- Ae as getLocalTimezone,
147
+ ae as gameResult,
148
+ pe as getLocalTimezone,
149
149
  U as i18n,
150
- pe as isBetween,
151
- me as isSame,
150
+ me as isBetween,
151
+ ce as isSame,
152
152
  Ne as isSameOrBefore,
153
- ae as localeSort,
154
- ce as offsetName,
155
- te as playerName,
156
- l as playerStatsProps,
157
- re as rawConvert,
158
- se as sortGames,
159
- oe as teamName,
160
- ne as teamOpponent,
161
- ie as teamResultType,
162
- S as teamStatsProps,
163
- fe as templateReplacer,
164
- Re as toKebabCase,
153
+ te as localeSort,
154
+ fe as offsetName,
155
+ re as playerName,
156
+ S as playerStatsProps,
157
+ se as rawConvert,
158
+ Oe as scrollToTop,
159
+ oe as sortGames,
160
+ ne as teamName,
161
+ ie as teamOpponent,
162
+ le as teamResultType,
163
+ l as teamStatsProps,
164
+ Re as templateReplacer,
165
+ ue as toKebabCase,
165
166
  Se as upperCase,
166
167
  v as useColumns,
167
168
  D as useError,
168
169
  F as useErrorProvider,
169
- x as useI18n,
170
- G as useLazyLoadingState,
170
+ G as useI18n,
171
+ x as useLazyLoadingState,
171
172
  B as useMainClass,
172
173
  k as usePage,
173
- V as useServices,
174
+ V as useScrollToGameDate,
175
+ W as useServices,
174
176
  b as useSort,
175
- W as useVisibilityChange,
177
+ z as useVisibilityChange,
176
178
  h as validateColumnsName,
177
- ue as yearToNow
179
+ de as yearToNow
178
180
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.1.6 - 19/12/2023, 15:00:45
4
- * (c) 2023
3
+ * version: v2.1.8 - 01/01/2024, 19:08:09
4
+ * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
@@ -659,6 +659,7 @@ export {
659
659
  Ct as j,
660
660
  et as k,
661
661
  jt as l,
662
+ x as m,
662
663
  B as n,
663
664
  Rt as o,
664
665
  Ft as u,
package/dist/utils.js CHANGED
@@ -1,60 +1,63 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.1.6 - 19/12/2023, 15:00:45
4
- * (c) 2023
3
+ * version: v2.1.8 - 01/01/2024, 19:08:09
4
+ * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- import { I as L, U as E, W as U, i as d, c as p, e as g, f as S, h as A, g as M, a as y, l as I, p as N, r as x, s as b, t as w, b as D, d as G, u as B } from "./convert-18c8bb80.js";
8
+ import { I as d, U as p, W as E, i as U, c as g, e as S, f as A, h as M, g as y, a as I, l as N, p as w, r as x, s as b, t as D, b as G, d as B, u as C } from "./convert-18c8bb80.js";
9
9
  import { h as r } from "./datetime-2fb02df2.js";
10
- import { b as F, c as k, a as W, f as X, g as $, d as h, e as O, i as P, o as V, t as z, y as J } from "./datetime-2fb02df2.js";
11
- import { DEFAULT_EXTERNAL_GAME_URL as a, DEFAULT_EXTERNAL_TEAM_URL as s, DEFAULT_EXTERNAL_PLAYER_URL as i, FLAG_BASE_URL as c } from "./constants.js";
10
+ import { b as k, c as W, a as X, f as $, g as h, d as O, e as P, i as V, o as z, t as J, y as K } from "./datetime-2fb02df2.js";
11
+ import { DEFAULT_EXTERNAL_GAME_URL as s, DEFAULT_EXTERNAL_TEAM_URL as a, DEFAULT_EXTERNAL_PLAYER_URL as i, FLAG_BASE_URL as c } from "./constants.js";
12
12
  const R = (n, e = {}) => {
13
13
  const o = t("gameResolver") || n;
14
- return typeof o == "function" ? o(e) : encodeURI(o ? r(o, e) : r(a, e));
15
- }, m = (n, e = {}) => {
16
- const o = t("teamResolver") || n;
17
14
  return typeof o == "function" ? o(e) : encodeURI(o ? r(o, e) : r(s, e));
18
15
  }, T = (n, e = {}) => {
16
+ const o = t("teamResolver") || n;
17
+ return typeof o == "function" ? o(e) : encodeURI(o ? r(o, e) : r(a, e));
18
+ }, m = (n, e = {}) => {
19
19
  const o = t("playerResolver") || n;
20
20
  return typeof o == "function" ? o(e) : encodeURI(o ? r(o, e) : r(i, e));
21
21
  }, v = (n, e = "1x1") => `${c}/flag:${n}-${e}.svg`, t = (n = "") => {
22
22
  var e;
23
23
  return (e = window == null ? void 0 : window.__MJSZ_VBR_WIDGET__) == null ? void 0 : e[n];
24
+ }, u = () => {
25
+ window.scrollTo(0, 0);
24
26
  };
25
27
  export {
26
- L as InvalidSeasonName,
27
- E as UndefinedColumn,
28
- U as WidgetError,
29
- d as appendTo,
30
- p as convert,
31
- F as convertMinToMinSec,
32
- k as convertMinToSec,
33
- W as convertSecToMin,
34
- g as convertTimes,
35
- S as convertTimesMinToMinSec,
36
- A as convertTimesSecToMin,
28
+ d as InvalidSeasonName,
29
+ p as UndefinedColumn,
30
+ E as WidgetError,
31
+ U as appendTo,
32
+ g as convert,
33
+ k as convertMinToMinSec,
34
+ W as convertMinToSec,
35
+ X as convertSecToMin,
36
+ S as convertTimes,
37
+ A as convertTimesMinToMinSec,
38
+ M as convertTimesSecToMin,
37
39
  R as externalGameLinkResolver,
38
- T as externalPlayerLinkResolver,
39
- m as externalTeamLinkResolver,
40
+ m as externalPlayerLinkResolver,
41
+ T as externalTeamLinkResolver,
40
42
  v as flagResolver,
41
- X as format,
42
- M as gameDateTime,
43
- y as gameResult,
44
- $ as getLocalTimezone,
45
- h as isBetween,
46
- O as isSame,
47
- P as isSameOrBefore,
48
- I as localeSort,
49
- V as offsetName,
50
- N as playerName,
43
+ $ as format,
44
+ y as gameDateTime,
45
+ I as gameResult,
46
+ h as getLocalTimezone,
47
+ O as isBetween,
48
+ P as isSame,
49
+ V as isSameOrBefore,
50
+ N as localeSort,
51
+ z as offsetName,
52
+ w as playerName,
51
53
  x as rawConvert,
54
+ u as scrollToTop,
52
55
  b as sortGames,
53
- w as teamName,
54
- D as teamOpponent,
55
- G as teamResultType,
56
+ D as teamName,
57
+ G as teamOpponent,
58
+ B as teamResultType,
56
59
  r as templateReplacer,
57
- z as toKebabCase,
58
- B as upperCase,
59
- J as yearToNow
60
+ J as toKebabCase,
61
+ C as upperCase,
62
+ K as yearToNow
60
63
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Data visualization for MJSZ VBR",
4
4
  "author": "Ákos Stegner <akos.stegner@gmail.com>",
5
5
  "private": false,
6
- "version": "2.1.6",
6
+ "version": "2.1.8",
7
7
  "homepage": "https://api.icehockey.hu/widgets/docs/v2/",
8
8
  "type": "module",
9
9
  "files": [
@@ -38,7 +38,7 @@
38
38
  "dayjs": "^1.11.7",
39
39
  "ramda": "^0.29.0",
40
40
  "vue": "^3.3.4",
41
- "@mjsz-vbr-elements/shared": "^2.1.6"
41
+ "@mjsz-vbr-elements/shared": "^2.1.8"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@vitejs/plugin-vue": "^4.2.3",