@datapos/datapos-shared 0.3.204 → 0.3.207

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.
@@ -19,14 +19,14 @@ function K() {
19
19
  const l = [];
20
20
  for (const c of s.data.measures)
21
21
  l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
22
- const g = {
22
+ const p = {
23
23
  chart: { type: n.options.highchartsType },
24
24
  plotOptions: { series: { borderColor: "#333" } },
25
25
  series: l,
26
26
  title: { text: s.title.text },
27
27
  xAxis: { categories: s.data.categoryLabels },
28
28
  yAxis: { title: { text: s.data.name } }
29
- }, u = b.chart(m, g, h);
29
+ }, u = b.chart(m, p, h);
30
30
  return { chart: u, resize: () => u.reflow(), vendorId: x };
31
31
  }
32
32
  async function a(n, s, m, h) {
@@ -34,22 +34,22 @@ function K() {
34
34
  const l = [];
35
35
  for (const c of s.data.measures)
36
36
  l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
37
- const g = {
37
+ const p = {
38
38
  chart: { polar: !0 },
39
39
  plotOptions: { series: { borderColor: "#333" } },
40
40
  series: l,
41
41
  title: { text: s.title.text },
42
42
  xAxis: { categories: s.data.categoryLabels },
43
43
  yAxis: { title: { text: s.data.name } }
44
- }, u = b.chart(m, g, h);
44
+ }, u = b.chart(m, p, h);
45
45
  return { chart: u, resize: () => u.reflow(), vendorId: x };
46
46
  }
47
47
  async function r(n, s, m, h) {
48
48
  await Promise.all([t(), o()]);
49
- const l = [], g = [];
49
+ const l = [], p = [];
50
50
  for (let f = 0; f < s.data.measures[0].data.length; f++)
51
- g.push([s.data.measures[0].data[f][0], s.data.measures[1].data[f][0]]);
52
- l.push({ type: n.options.highchartsType, name: "Unknown", data: g });
51
+ p.push([s.data.measures[0].data[f][0], s.data.measures[1].data[f][0]]);
52
+ l.push({ type: n.options.highchartsType, name: "Unknown", data: p });
53
53
  const u = {
54
54
  chart: { type: n.options.highchartsType, inverted: n.options.inverted },
55
55
  plotOptions: { series: { borderColor: "#333" } },
@@ -112,9 +112,9 @@ function J() {
112
112
  j
113
113
  )
114
114
  ]);
115
- console.log(t), console.log(t[1]), I = t[0].micromark, T = t[1].gfm, D = t[1].gfmHtml, O = t[2].math, v = t[2].mathHtml;
115
+ I = t[0].micromark, T = t[1].gfm, D = t[1].gfmHtml, O = t[2].math, v = t[2].mathHtml;
116
116
  }
117
- return { getStuff: e, render: a };
117
+ return { getTools: e, render: a };
118
118
  }
119
119
  const q = 0, Q = (e) => e, Y = () => Date.now(), Z = {
120
120
  cartesian_areaLine: { categoryId: "cartesian", typeId: "areaLine", label: { "en-gb": "Area Line" }, options: { highchartsType: "area" } },
@@ -141,40 +141,40 @@ class N extends Error {
141
141
  super(a, t), this.name = "DataPosError", this.locator = r, Error.captureStackTrace?.(this, new.target);
142
142
  }
143
143
  }
144
- class p extends N {
144
+ class g extends N {
145
145
  constructor(a, r, t) {
146
146
  super(a, r, t), this.name = "ApplicationError";
147
147
  }
148
148
  }
149
- class ee extends p {
149
+ class ee extends g {
150
150
  constructor(a, r, t) {
151
151
  super(a, r, t), this.name = "APIError";
152
152
  }
153
153
  }
154
- class te extends p {
154
+ class te extends g {
155
155
  constructor(a, r, t) {
156
156
  super(a, r, t), this.name = "EngineError";
157
157
  }
158
158
  }
159
- class R extends p {
159
+ class R extends g {
160
160
  body;
161
161
  constructor(a, r, t, o) {
162
162
  super(a, r, o), this.name = "FetchError", this.body = t;
163
163
  }
164
164
  }
165
- class U extends p {
165
+ class U extends g {
166
166
  componentName;
167
167
  info;
168
168
  constructor(a, r, t, o, n) {
169
169
  super(a, r, n), this.name = "VueHandledError", this.info = t, this.componentName = o;
170
170
  }
171
171
  }
172
- class re extends p {
172
+ class re extends g {
173
173
  constructor(a, r, t) {
174
174
  super(a, r, t), this.name = "WindowHandledRuntimeError";
175
175
  }
176
176
  }
177
- class ae extends p {
177
+ class ae extends g {
178
178
  constructor(a, r, t) {
179
179
  super(a, r, t), this.name = "WindowHandledPromiseRejectionError";
180
180
  }
@@ -281,7 +281,7 @@ const S = "en-US", y = {}, ce = (e) => {
281
281
  style: "decimal",
282
282
  useGrouping: !0
283
283
  }), y[o] = n), n.format(e);
284
- }, ue = (e) => e == null ? "" : e < 1e3 ? E(e) : e < 1e6 ? `${i(e / 1e3, 2, 0)}K` : e < 1e9 ? `${i(e / 1e6, 2, 0)}M` : e < 1e12 ? `${i(e / 1e9, 2, 0)}B` : `${i(e / 1e12, 2, 0)}T`, ge = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${E(e)} bytes` : e < 1048576 ? `${i(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${i(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${i(e / 1073741824, 2, 0)} GB` : `${i(e / 1099511627776, 2, 0)} TB`, pe = (e) => e == null ? "" : e < 1e3 ? `${E(e)} ms` : e === 1e3 ? `${E(e)} sec` : e < 6e4 ? `${i(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${i(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${i(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${i(e / 864e5, 2, 0)} days`, E = (e, a = S) => {
284
+ }, ue = (e) => e == null ? "" : e < 1e3 ? E(e) : e < 1e6 ? `${i(e / 1e3, 2, 0)}K` : e < 1e9 ? `${i(e / 1e6, 2, 0)}M` : e < 1e12 ? `${i(e / 1e9, 2, 0)}B` : `${i(e / 1e12, 2, 0)}T`, pe = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${E(e)} bytes` : e < 1048576 ? `${i(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${i(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${i(e / 1073741824, 2, 0)} GB` : `${i(e / 1099511627776, 2, 0)} TB`, ge = (e) => e == null ? "" : e < 1e3 ? `${E(e)} ms` : e === 1e3 ? `${E(e)} sec` : e < 6e4 ? `${i(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${i(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${i(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${i(e / 864e5, 2, 0)} days`, E = (e, a = S) => {
285
285
  if (e == null) return "";
286
286
  const r = `${a}decimal0.0`;
287
287
  let t = y[r];
@@ -363,7 +363,7 @@ const S = "en-US", y = {}, ce = (e) => {
363
363
  }, d = "en-gb";
364
364
  export {
365
365
  ee as APIError,
366
- p as ApplicationError,
366
+ g as ApplicationError,
367
367
  V as CONNECTOR_DESTINATION_OPERATIONS,
368
368
  X as CONNECTOR_SOURCE_OPERATIONS,
369
369
  d as DEFAULT_LOCALE_CODE,
@@ -381,9 +381,9 @@ export {
381
381
  me as extractExtensionFromPath,
382
382
  de as extractNameFromPath,
383
383
  i as formatNumberAsDecimalNumber,
384
- pe as formatNumberAsDuration,
384
+ ge as formatNumberAsDuration,
385
385
  ue as formatNumberAsSize,
386
- ge as formatNumberAsStorageSize,
386
+ pe as formatNumberAsStorageSize,
387
387
  E as formatNumberAsWholeNumber,
388
388
  Ee as getComponentStatus,
389
389
  Y as getCurrentTimestamp,
@@ -9,7 +9,7 @@ type MicromarkTools = {
9
9
  micromark: typeof micromark;
10
10
  };
11
11
  export declare function useMicromark(): {
12
- getStuff: () => Promise<MicromarkTools>;
12
+ getTools: () => Promise<MicromarkTools>;
13
13
  render: () => Promise<void>;
14
14
  };
15
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.204",
3
+ "version": "0.3.207",
4
4
  "description": "A TypeScript library containing common declarations and utilities used across other Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "private": false,