@datapos/datapos-shared 0.3.98 → 0.3.99

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.
@@ -20,40 +20,40 @@ class I extends Error {
20
20
  super(t, r), this.name = "DataPosError", this.locator = a, Error.captureStackTrace?.(this, new.target);
21
21
  }
22
22
  }
23
- class p extends I {
23
+ class h extends I {
24
24
  constructor(t, a, r) {
25
25
  super(t, a, r), this.name = "ApplicationError";
26
26
  }
27
27
  }
28
- class O extends p {
28
+ class O extends h {
29
29
  constructor(t, a, r) {
30
30
  super(t, a, r), this.name = "APIError";
31
31
  }
32
32
  }
33
- class _ extends p {
33
+ class _ extends h {
34
34
  constructor(t, a, r) {
35
35
  super(t, a, r), this.name = "EngineError";
36
36
  }
37
37
  }
38
- class D extends p {
38
+ class D extends h {
39
39
  body;
40
40
  constructor(t, a, r, n) {
41
41
  super(t, a, n), this.name = "FetchError", this.body = r;
42
42
  }
43
43
  }
44
- class v extends p {
44
+ class v extends h {
45
45
  componentName;
46
46
  info;
47
47
  constructor(t, a, r, n, o) {
48
48
  super(t, a, o), this.name = "VueHandledError", this.info = r, this.componentName = n;
49
49
  }
50
50
  }
51
- class M extends p {
51
+ class M extends h {
52
52
  constructor(t, a, r) {
53
53
  super(t, a, r), this.name = "WindowHandledRuntimeError";
54
54
  }
55
55
  }
56
- class U extends p {
56
+ class U extends h {
57
57
  constructor(t, a, r) {
58
58
  super(t, a, r), this.name = "WindowHandledPromiseRejectionError";
59
59
  }
@@ -112,9 +112,9 @@ function X() {
112
112
  return { render: e };
113
113
  }
114
114
  const S = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", E = "highcharts";
115
- let b, w = !1;
115
+ let f, w = !1;
116
116
  function G() {
117
- async function e(o, s, u, h) {
117
+ async function e(o, s, u, b) {
118
118
  await r();
119
119
  const l = [];
120
120
  for (const c of s.data.measures)
@@ -126,10 +126,10 @@ function G() {
126
126
  title: { text: s.title.text },
127
127
  xAxis: { categories: s.data.categoryLabels },
128
128
  yAxis: { title: { text: s.data.name } }
129
- }, g = b.chart(u, m, h);
129
+ }, g = f.chart(u, m, b);
130
130
  return { chart: g, resize: () => g.reflow(), vendorId: E };
131
131
  }
132
- async function t(o, s, u, h) {
132
+ async function t(o, s, u, b) {
133
133
  await Promise.all([r(), n()]);
134
134
  const l = [];
135
135
  for (const c of s.data.measures)
@@ -141,15 +141,16 @@ function G() {
141
141
  title: { text: s.title.text },
142
142
  xAxis: { categories: s.data.categoryLabels },
143
143
  yAxis: { title: { text: s.data.name } }
144
- }, g = b.chart(u, m, h);
144
+ }, g = f.chart(u, m, b);
145
145
  return { chart: g, resize: () => g.reflow(), vendorId: E };
146
146
  }
147
- async function a(o, s, u, h) {
147
+ async function a(o, s, u, b) {
148
148
  await Promise.all([r(), n()]);
149
149
  const l = [], m = [];
150
- for (let f = 0; f++; f < s.data.measures[0].data.length)
151
- m.push([s.data.measures[0].data[f][0], s.data.measures[1].data[f][0]]);
152
- console.log(1111, s.data.measures, m), l.push({ type: o.options.highchartsType, name: "Unknown", data: m });
150
+ console.log(1111, s.data.measures[0].data.length);
151
+ for (let p = 0; p++; p < s.data.measures[0].data.length)
152
+ console.log(2222, s.data.measures[0].data[p], s.data.measures[1].data[p]), m.push([s.data.measures[0].data[p][0], s.data.measures[1].data[p][0]]);
153
+ console.log(3333, s.data.measures, m), l.push({ type: o.options.highchartsType, name: "Unknown", data: m });
153
154
  const g = {
154
155
  chart: { type: o.options.highchartsType, inverted: o.options.inverted },
155
156
  plotOptions: { series: { borderColor: "#333" } },
@@ -157,13 +158,13 @@ function G() {
157
158
  title: { text: s.title.text },
158
159
  xAxis: { categories: s.data.categoryLabels },
159
160
  yAxis: { title: { text: s.data.name } }
160
- }, c = b.chart(u, g, h);
161
+ }, c = f.chart(u, g, b);
161
162
  return { chart: c, resize: () => c.reflow(), vendorId: E };
162
163
  }
163
164
  async function r() {
164
- if (b) return;
165
+ if (f) return;
165
166
  const o = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", s = `${o}highcharts.src.js`, u = `${o}modules/accessibility.src.js`;
166
- b = (await import(
167
+ f = (await import(
167
168
  /* @vite-ignore */
168
169
  s
169
170
  )).default, await import(
@@ -320,7 +321,7 @@ const T = "en-US", y = {}, P = (e) => {
320
321
  }, d = "en-gb";
321
322
  export {
322
323
  O as APIError,
323
- p as ApplicationError,
324
+ h as ApplicationError,
324
325
  d as DEFAULT_LOCALE_CODE,
325
326
  R as DefaultTimestamp,
326
327
  _ as EngineError,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datapos/datapos-shared",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "0.3.98",
5
+ "version": "0.3.99",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"