@datapos/datapos-shared 0.3.210 → 0.3.214
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.
|
@@ -1,122 +1,17 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
function e(a, r
|
|
4
|
-
|
|
1
|
+
const E = ["createObject", "dropObject", "removeRecords", "upsertRecords"], I = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
|
|
2
|
+
function x() {
|
|
3
|
+
function e(t, a, r) {
|
|
4
|
+
r.textContent = "Cytoscape.js diagram goes here...";
|
|
5
5
|
}
|
|
6
6
|
return { render: e };
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
function e(a, r
|
|
10
|
-
|
|
8
|
+
function T() {
|
|
9
|
+
function e(t, a, r) {
|
|
10
|
+
r.textContent = "values table goes here...";
|
|
11
11
|
}
|
|
12
12
|
return { render: e };
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
let b, w = !1;
|
|
16
|
-
function K() {
|
|
17
|
-
async function e(n, s, m, h) {
|
|
18
|
-
await t();
|
|
19
|
-
const l = [];
|
|
20
|
-
for (const c of s.data.measures)
|
|
21
|
-
l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
|
|
22
|
-
const p = {
|
|
23
|
-
chart: { type: n.options.highchartsType },
|
|
24
|
-
plotOptions: { series: { borderColor: "#333" } },
|
|
25
|
-
series: l,
|
|
26
|
-
title: { text: s.title.text },
|
|
27
|
-
xAxis: { categories: s.data.categoryLabels },
|
|
28
|
-
yAxis: { title: { text: s.data.name } }
|
|
29
|
-
}, u = b.chart(m, p, h);
|
|
30
|
-
return { chart: u, resize: () => u.reflow(), vendorId: x };
|
|
31
|
-
}
|
|
32
|
-
async function a(n, s, m, h) {
|
|
33
|
-
await Promise.all([t(), o()]);
|
|
34
|
-
const l = [];
|
|
35
|
-
for (const c of s.data.measures)
|
|
36
|
-
l.push({ type: n.options.highchartsType, name: c.name, data: c.data });
|
|
37
|
-
const p = {
|
|
38
|
-
chart: { polar: !0 },
|
|
39
|
-
plotOptions: { series: { borderColor: "#333" } },
|
|
40
|
-
series: l,
|
|
41
|
-
title: { text: s.title.text },
|
|
42
|
-
xAxis: { categories: s.data.categoryLabels },
|
|
43
|
-
yAxis: { title: { text: s.data.name } }
|
|
44
|
-
}, u = b.chart(m, p, h);
|
|
45
|
-
return { chart: u, resize: () => u.reflow(), vendorId: x };
|
|
46
|
-
}
|
|
47
|
-
async function r(n, s, m, h) {
|
|
48
|
-
await Promise.all([t(), o()]);
|
|
49
|
-
const l = [], p = [];
|
|
50
|
-
for (let f = 0; f < s.data.measures[0].data.length; f++)
|
|
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
|
-
const u = {
|
|
54
|
-
chart: { type: n.options.highchartsType, inverted: n.options.inverted },
|
|
55
|
-
plotOptions: { series: { borderColor: "#333" } },
|
|
56
|
-
series: l,
|
|
57
|
-
title: { text: s.title.text },
|
|
58
|
-
xAxis: { categories: s.data.categoryLabels },
|
|
59
|
-
yAxis: { title: { text: s.data.name } }
|
|
60
|
-
}, c = b.chart(m, u, h);
|
|
61
|
-
return { chart: c, resize: () => c.reflow(), vendorId: x };
|
|
62
|
-
}
|
|
63
|
-
async function t() {
|
|
64
|
-
if (b) return;
|
|
65
|
-
const n = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", s = `${n}highcharts.src.js`, m = `${n}modules/accessibility.src.js`;
|
|
66
|
-
b = (await import(
|
|
67
|
-
/* @vite-ignore */
|
|
68
|
-
s
|
|
69
|
-
)).default, await import(
|
|
70
|
-
/* @vite-ignore */
|
|
71
|
-
m
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
async function o() {
|
|
75
|
-
if (w) return;
|
|
76
|
-
await import(`${_}highcharts-more.src.js`), w = !0;
|
|
77
|
-
}
|
|
78
|
-
return { renderCartesianChart: e, renderPolarChart: a, renderRangeChart: r };
|
|
79
|
-
}
|
|
80
|
-
const A = 4, C = `https://cdn.jsdelivr.net/npm/micromark@${A}/+esm`, L = 3, $ = `https://cdn.jsdelivr.net/npm/micromark-extension-gfm@${L}/+esm`, F = 3, M = `https://cdn.jsdelivr.net/npm/micromark-extension-math@${F}/+esm`, k = 1, j = `https://cdn.jsdelivr.net/npm/prismjs@${k}/+esm`;
|
|
81
|
-
let I, T, D, O, v;
|
|
82
|
-
function J() {
|
|
83
|
-
async function e() {
|
|
84
|
-
return await r(), {
|
|
85
|
-
gfmExtension: T,
|
|
86
|
-
gfmHtmlExtension: D,
|
|
87
|
-
mathExtension: O,
|
|
88
|
-
mathHtmlExtension: v,
|
|
89
|
-
micromark: I
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
async function a() {
|
|
93
|
-
await r();
|
|
94
|
-
}
|
|
95
|
-
async function r() {
|
|
96
|
-
if (I && T) return;
|
|
97
|
-
const t = await Promise.all([
|
|
98
|
-
import(
|
|
99
|
-
/* @vite-ignore */
|
|
100
|
-
C
|
|
101
|
-
),
|
|
102
|
-
import(
|
|
103
|
-
/* @vite-ignore */
|
|
104
|
-
$
|
|
105
|
-
),
|
|
106
|
-
import(
|
|
107
|
-
/* @vite-ignore */
|
|
108
|
-
M
|
|
109
|
-
),
|
|
110
|
-
import(
|
|
111
|
-
/* @vite-ignore */
|
|
112
|
-
j
|
|
113
|
-
)
|
|
114
|
-
]);
|
|
115
|
-
I = t[0].micromark, T = t[1].gfm, D = t[1].gfmHtml, O = t[2].math, v = t[2].mathHtml;
|
|
116
|
-
}
|
|
117
|
-
return { getTools: e, render: a };
|
|
118
|
-
}
|
|
119
|
-
const q = 0, Q = (e) => e, Y = () => Date.now(), Z = {
|
|
14
|
+
const S = 0, N = (e) => e, w = () => Date.now(), D = {
|
|
120
15
|
cartesian_areaLine: { categoryId: "cartesian", typeId: "areaLine", label: { "en-gb": "Area Line" }, options: { highchartsType: "area" } },
|
|
121
16
|
cartesian_areaSpline: { categoryId: "cartesian", typeId: "areaSpline", label: { "en-gb": "Area Spline" }, options: { highchartsType: "area" } },
|
|
122
17
|
cartesian_bar: { categoryId: "cartesian", typeId: "bar", label: { "en-gb": "Bar" }, options: { highchartsType: "bar" } },
|
|
@@ -135,92 +30,92 @@ const q = 0, Q = (e) => e, Y = () => Date.now(), Z = {
|
|
|
135
30
|
streamgraph: { categoryId: "streamgraph", label: { "en-gb": "Streamgraph" }, options: {} },
|
|
136
31
|
values: { categoryId: "values", label: { "en-gb": "Values" }, options: {} }
|
|
137
32
|
};
|
|
138
|
-
class
|
|
33
|
+
class g extends Error {
|
|
139
34
|
locator;
|
|
140
|
-
constructor(a, r
|
|
141
|
-
super(
|
|
35
|
+
constructor(t, a, r) {
|
|
36
|
+
super(t, r), this.name = "DataPosError", this.locator = a, Error.captureStackTrace?.(this, new.target);
|
|
142
37
|
}
|
|
143
38
|
}
|
|
144
|
-
class
|
|
145
|
-
constructor(a, r
|
|
146
|
-
super(a, r
|
|
39
|
+
class l extends g {
|
|
40
|
+
constructor(t, a, r) {
|
|
41
|
+
super(t, a, r), this.name = "ApplicationError";
|
|
147
42
|
}
|
|
148
43
|
}
|
|
149
|
-
class
|
|
150
|
-
constructor(a, r
|
|
151
|
-
super(a, r
|
|
44
|
+
class v extends l {
|
|
45
|
+
constructor(t, a, r) {
|
|
46
|
+
super(t, a, r), this.name = "APIError";
|
|
152
47
|
}
|
|
153
48
|
}
|
|
154
|
-
class
|
|
155
|
-
constructor(a, r
|
|
156
|
-
super(a, r
|
|
49
|
+
class C extends l {
|
|
50
|
+
constructor(t, a, r) {
|
|
51
|
+
super(t, a, r), this.name = "EngineError";
|
|
157
52
|
}
|
|
158
53
|
}
|
|
159
|
-
class
|
|
54
|
+
class u extends l {
|
|
160
55
|
body;
|
|
161
|
-
constructor(a, r,
|
|
162
|
-
super(
|
|
56
|
+
constructor(t, a, r, n) {
|
|
57
|
+
super(t, a, n), this.name = "FetchError", this.body = r;
|
|
163
58
|
}
|
|
164
59
|
}
|
|
165
|
-
class
|
|
60
|
+
class p extends l {
|
|
166
61
|
componentName;
|
|
167
62
|
info;
|
|
168
|
-
constructor(a, r,
|
|
169
|
-
super(
|
|
63
|
+
constructor(t, a, r, n, s) {
|
|
64
|
+
super(t, a, s), this.name = "VueHandledError", this.info = r, this.componentName = n;
|
|
170
65
|
}
|
|
171
66
|
}
|
|
172
|
-
class
|
|
173
|
-
constructor(a, r
|
|
174
|
-
super(a, r
|
|
67
|
+
class O extends l {
|
|
68
|
+
constructor(t, a, r) {
|
|
69
|
+
super(t, a, r), this.name = "WindowHandledRuntimeError";
|
|
175
70
|
}
|
|
176
71
|
}
|
|
177
|
-
class
|
|
178
|
-
constructor(a, r
|
|
179
|
-
super(a, r
|
|
72
|
+
class R extends l {
|
|
73
|
+
constructor(t, a, r) {
|
|
74
|
+
super(t, a, r), this.name = "WindowHandledPromiseRejectionError";
|
|
180
75
|
}
|
|
181
76
|
}
|
|
182
|
-
class
|
|
183
|
-
constructor(a, r
|
|
184
|
-
super(a, r
|
|
77
|
+
class $ extends g {
|
|
78
|
+
constructor(t, a, r) {
|
|
79
|
+
super(t, a, r), this.name = "OperationalError";
|
|
185
80
|
}
|
|
186
81
|
}
|
|
187
|
-
async function
|
|
188
|
-
const
|
|
189
|
-
return new
|
|
82
|
+
async function A(e, t, a) {
|
|
83
|
+
const r = `${t} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, n = await e.text();
|
|
84
|
+
return new u(r, a, n);
|
|
190
85
|
}
|
|
191
|
-
function
|
|
192
|
-
return e.map((
|
|
86
|
+
function _(e) {
|
|
87
|
+
return e.map((t) => t.message).join(" ");
|
|
193
88
|
}
|
|
194
|
-
function
|
|
89
|
+
function F(e, t = "Unknown error.") {
|
|
195
90
|
if (e instanceof Error) return e;
|
|
196
91
|
if (typeof e == "string") return new Error(e);
|
|
197
92
|
try {
|
|
198
|
-
return new Error(JSON.stringify(e ??
|
|
93
|
+
return new Error(JSON.stringify(e ?? t));
|
|
199
94
|
} catch {
|
|
200
|
-
return new Error(
|
|
95
|
+
return new Error(t);
|
|
201
96
|
}
|
|
202
97
|
}
|
|
203
|
-
function
|
|
204
|
-
const
|
|
205
|
-
let
|
|
206
|
-
for (;
|
|
207
|
-
|
|
208
|
-
let
|
|
209
|
-
if (
|
|
210
|
-
|
|
211
|
-
else if (
|
|
212
|
-
|
|
213
|
-
else if (
|
|
214
|
-
|
|
215
|
-
else if (
|
|
216
|
-
const
|
|
217
|
-
|
|
218
|
-
} else
|
|
219
|
-
/(?:\.{3}|[.!?])$/.test(
|
|
98
|
+
function k(e) {
|
|
99
|
+
const t = /* @__PURE__ */ new Set(), a = [];
|
|
100
|
+
let r = e;
|
|
101
|
+
for (; r && !t.has(r); ) {
|
|
102
|
+
t.add(r);
|
|
103
|
+
let n;
|
|
104
|
+
if (r instanceof u)
|
|
105
|
+
n = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
106
|
+
else if (r instanceof p)
|
|
107
|
+
n = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
108
|
+
else if (r instanceof g)
|
|
109
|
+
n = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
110
|
+
else if (r instanceof Error) {
|
|
111
|
+
const s = r;
|
|
112
|
+
n = { locator: "", message: s.message, name: s.name, stack: s.stack }, r = s.cause;
|
|
113
|
+
} else r ? (n = { locator: "", message: String(r), name: "Error" }, r = void 0) : (n = { locator: "", message: "Unknown error.", name: "Error" }, r = void 0);
|
|
114
|
+
/(?:\.{3}|[.!?])$/.test(n.message) || (n.message += "."), a.push(n);
|
|
220
115
|
}
|
|
221
|
-
return
|
|
116
|
+
return a;
|
|
222
117
|
}
|
|
223
|
-
const
|
|
118
|
+
const m = "en-US", c = {}, B = (e) => {
|
|
224
119
|
switch (e) {
|
|
225
120
|
case "Edm.Binary":
|
|
226
121
|
return "unknown";
|
|
@@ -259,41 +154,41 @@ const S = "en-US", y = {}, ce = (e) => {
|
|
|
259
154
|
default:
|
|
260
155
|
return "unknown";
|
|
261
156
|
}
|
|
262
|
-
},
|
|
157
|
+
}, L = (e) => {
|
|
263
158
|
if (e) {
|
|
264
|
-
const
|
|
265
|
-
return
|
|
159
|
+
const t = e.lastIndexOf("/"), a = e.lastIndexOf(".", t > -1 ? t : e.length);
|
|
160
|
+
return a > -1 ? e.substring(0, a) : e;
|
|
266
161
|
}
|
|
267
|
-
},
|
|
162
|
+
}, M = (e) => {
|
|
268
163
|
if (e) {
|
|
269
|
-
const
|
|
270
|
-
if (
|
|
164
|
+
const t = e.lastIndexOf(".");
|
|
165
|
+
if (t > -1) return e.substring(t + 1);
|
|
271
166
|
}
|
|
272
|
-
},
|
|
167
|
+
}, o = (e, t = 2, a = t, r = m) => {
|
|
273
168
|
if (e == null) return "";
|
|
274
|
-
const
|
|
275
|
-
let
|
|
276
|
-
return
|
|
169
|
+
const n = `${r}decimal${t}.${a}`;
|
|
170
|
+
let s = c[n];
|
|
171
|
+
return s || (s = new Intl.NumberFormat(r, {
|
|
277
172
|
localeMatcher: "best fit",
|
|
278
|
-
maximumFractionDigits:
|
|
279
|
-
minimumFractionDigits:
|
|
173
|
+
maximumFractionDigits: t,
|
|
174
|
+
minimumFractionDigits: a,
|
|
280
175
|
minimumIntegerDigits: 1,
|
|
281
176
|
style: "decimal",
|
|
282
177
|
useGrouping: !0
|
|
283
|
-
}),
|
|
284
|
-
},
|
|
178
|
+
}), c[n] = s), s.format(e);
|
|
179
|
+
}, j = (e) => e == null ? "" : e < 1e3 ? d(e) : e < 1e6 ? `${o(e / 1e3, 2, 0)}K` : e < 1e9 ? `${o(e / 1e6, 2, 0)}M` : e < 1e12 ? `${o(e / 1e9, 2, 0)}B` : `${o(e / 1e12, 2, 0)}T`, U = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${d(e)} bytes` : e < 1048576 ? `${o(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${o(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${o(e / 1073741824, 2, 0)} GB` : `${o(e / 1099511627776, 2, 0)} TB`, V = (e) => e == null ? "" : e < 1e3 ? `${d(e)} ms` : e === 1e3 ? `${d(e)} sec` : e < 6e4 ? `${o(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${o(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${o(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${o(e / 864e5, 2, 0)} days`, d = (e, t = m) => {
|
|
285
180
|
if (e == null) return "";
|
|
286
|
-
const
|
|
287
|
-
let
|
|
288
|
-
return
|
|
181
|
+
const a = `${t}decimal0.0`;
|
|
182
|
+
let r = c[a];
|
|
183
|
+
return r || (r = new Intl.NumberFormat(t, {
|
|
289
184
|
localeMatcher: "best fit",
|
|
290
185
|
maximumFractionDigits: 0,
|
|
291
186
|
minimumFractionDigits: 0,
|
|
292
187
|
minimumIntegerDigits: 1,
|
|
293
188
|
style: "decimal",
|
|
294
189
|
useGrouping: !0
|
|
295
|
-
}),
|
|
296
|
-
},
|
|
190
|
+
}), c[a] = r), r.format(e);
|
|
191
|
+
}, W = (e) => {
|
|
297
192
|
switch (e) {
|
|
298
193
|
case "csv":
|
|
299
194
|
return "text/csv";
|
|
@@ -307,7 +202,7 @@ const S = "en-US", y = {}, ce = (e) => {
|
|
|
307
202
|
default:
|
|
308
203
|
return "application/octet-stream";
|
|
309
204
|
}
|
|
310
|
-
},
|
|
205
|
+
}, b = [
|
|
311
206
|
{ id: "dtv", label: { "en-gb": "Delimited Text" } },
|
|
312
207
|
{ id: "e/e", label: { "en-gb": "Entity/Event" } },
|
|
313
208
|
{ id: "jsonArray", label: { "en-gb": "JSON Array" } },
|
|
@@ -315,22 +210,22 @@ const S = "en-US", y = {}, ce = (e) => {
|
|
|
315
210
|
{ id: "xls", label: { "en-gb": "XLS" } },
|
|
316
211
|
{ id: "xlsx", label: { "en-gb": "XLSX" } },
|
|
317
212
|
{ id: "xml", label: { "en-gb": "XML" } }
|
|
318
|
-
],
|
|
319
|
-
const
|
|
320
|
-
for (const
|
|
321
|
-
return
|
|
322
|
-
},
|
|
213
|
+
], G = (e = i) => {
|
|
214
|
+
const t = [];
|
|
215
|
+
for (const a of b) t.push({ ...a, label: a.label[e] || a.label[i] || a.id });
|
|
216
|
+
return t;
|
|
217
|
+
}, h = [
|
|
323
218
|
{ id: `
|
|
324
219
|
`, label: { "en-gb": "Newline" } },
|
|
325
220
|
{ id: "\r", label: { "en-gb": "Carriage Return" } },
|
|
326
221
|
{ id: `\r
|
|
327
222
|
`, label: { "en-gb": "Carriage Return/Newline" } }
|
|
328
|
-
],
|
|
329
|
-
const
|
|
330
|
-
for (const
|
|
331
|
-
|
|
332
|
-
return
|
|
333
|
-
},
|
|
223
|
+
], X = (e = i) => {
|
|
224
|
+
const t = [];
|
|
225
|
+
for (const a of h)
|
|
226
|
+
t.push({ ...a, label: a.label[e] || a.label[i] || a.id });
|
|
227
|
+
return t;
|
|
228
|
+
}, f = [
|
|
334
229
|
{ id: ":", label: { "en-gb": "Colon" } },
|
|
335
230
|
{ id: ",", label: { "en-gb": "Comma" } },
|
|
336
231
|
{ id: "!", label: { "en-gb": "Exclamation Mark" } },
|
|
@@ -342,12 +237,12 @@ const S = "en-US", y = {}, ce = (e) => {
|
|
|
342
237
|
{ id: "_", label: { "en-gb": "Underscore" } },
|
|
343
238
|
{ id: "0x1F", label: { "en-gb": "Unit Separator" } },
|
|
344
239
|
{ id: "|", label: { "en-gb": "Vertical Bar" } }
|
|
345
|
-
],
|
|
346
|
-
const
|
|
347
|
-
for (const
|
|
348
|
-
|
|
349
|
-
return
|
|
350
|
-
},
|
|
240
|
+
], z = (e = i) => {
|
|
241
|
+
const t = [];
|
|
242
|
+
for (const a of f)
|
|
243
|
+
t.push({ ...a, label: a.label[e] || a.label[i] || a.id });
|
|
244
|
+
return t;
|
|
245
|
+
}, y = [
|
|
351
246
|
{ id: "alpha", color: "red", label: { "en-gb": "alpha" } },
|
|
352
247
|
{ id: "beta", color: "amber", label: { "en-gb": "beta" } },
|
|
353
248
|
{ id: "generalAvailability", color: "green", label: { "en-gb": "" } },
|
|
@@ -357,45 +252,43 @@ const S = "en-US", y = {}, ce = (e) => {
|
|
|
357
252
|
{ id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
|
|
358
253
|
{ id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
|
|
359
254
|
{ id: "underReview", color: "other", label: { "en-gb": "under-review" } }
|
|
360
|
-
],
|
|
361
|
-
const
|
|
362
|
-
return
|
|
363
|
-
},
|
|
255
|
+
], H = (e, t = i) => {
|
|
256
|
+
const a = y.find((r) => r.id === e);
|
|
257
|
+
return a ? { ...a, label: a.label[t] || a.label[i] || e } : { id: e, color: "other", label: e };
|
|
258
|
+
}, i = "en-gb";
|
|
364
259
|
export {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
K as useHighcharts,
|
|
400
|
-
J as useMicromark
|
|
260
|
+
v as APIError,
|
|
261
|
+
l as ApplicationError,
|
|
262
|
+
E as CONNECTOR_DESTINATION_OPERATIONS,
|
|
263
|
+
I as CONNECTOR_SOURCE_OPERATIONS,
|
|
264
|
+
i as DEFAULT_LOCALE_CODE,
|
|
265
|
+
S as DefaultTimestamp,
|
|
266
|
+
C as EngineError,
|
|
267
|
+
u as FetchError,
|
|
268
|
+
$ as OperationalError,
|
|
269
|
+
p as VueError,
|
|
270
|
+
R as WindowPromiseRejectionError,
|
|
271
|
+
O as WindowRuntimeError,
|
|
272
|
+
A as buildFetchError,
|
|
273
|
+
_ as concatenateSerialisedErrorMessages,
|
|
274
|
+
N as convertMillisecondsToTimestamp,
|
|
275
|
+
B as convertODataTypeIdToUsageTypeId,
|
|
276
|
+
M as extractExtensionFromPath,
|
|
277
|
+
L as extractNameFromPath,
|
|
278
|
+
o as formatNumberAsDecimalNumber,
|
|
279
|
+
V as formatNumberAsDuration,
|
|
280
|
+
j as formatNumberAsSize,
|
|
281
|
+
U as formatNumberAsStorageSize,
|
|
282
|
+
d as formatNumberAsWholeNumber,
|
|
283
|
+
H as getComponentStatus,
|
|
284
|
+
w as getCurrentTimestamp,
|
|
285
|
+
G as getDataFormats,
|
|
286
|
+
X as getRecordDelimiters,
|
|
287
|
+
z as getValueDelimiters,
|
|
288
|
+
W as lookupMimeTypeForExtension,
|
|
289
|
+
F as normalizeToError,
|
|
290
|
+
D as presentationViewTypeMap,
|
|
291
|
+
k as serialiseError,
|
|
292
|
+
x as useCytoscapeJS,
|
|
293
|
+
T as useDataTable
|
|
401
294
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { micromark } from 'micromark';
|
|
2
|
-
import { gfm, gfmHtml } from 'micromark-extension-gfm';
|
|
3
|
-
import { math, mathHtml } from 'micromark-extension-math';
|
|
4
1
|
import { Module } from '../../module';
|
|
5
2
|
import { Component, ComponentConfig, ComponentRef } from '..';
|
|
6
3
|
export interface Presenter extends Module, Component {
|
|
7
4
|
readonly config: PresenterConfig;
|
|
8
|
-
readonly tools: PresenterTools;
|
|
9
5
|
list(): ComponentRef[];
|
|
10
6
|
render(presentationPath: string, renderTo: HTMLElement, data?: unknown): Promise<void>;
|
|
11
7
|
}
|
|
@@ -17,10 +13,3 @@ export type PresenterLocalisedConfig = Omit<PresenterConfig, 'label' | 'descript
|
|
|
17
13
|
label: string;
|
|
18
14
|
description: string;
|
|
19
15
|
};
|
|
20
|
-
export type PresenterTools = {
|
|
21
|
-
gfmExtension: typeof gfm;
|
|
22
|
-
gfmHtmlExtension: typeof gfmHtml;
|
|
23
|
-
mathExtension: typeof math;
|
|
24
|
-
mathHtmlExtension: typeof mathHtml;
|
|
25
|
-
micromark: typeof micromark;
|
|
26
|
-
};
|
|
@@ -11,6 +11,7 @@ export type { ContextModuleConfig, ContextModuleOperation } from './module';
|
|
|
11
11
|
export type { EngineModuleConfig } from './module';
|
|
12
12
|
export type { InformerModuleConfig, InformerModuleOperation } from './module';
|
|
13
13
|
export type { PresenterModuleConfig, PresenterModuleOperation } from './module';
|
|
14
|
+
export type { ToolModuleConfig } from './module';
|
|
14
15
|
export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './module';
|
|
15
16
|
export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId, ComponentTypeId } from './component';
|
|
16
17
|
export type { AuditContentResult, AuditContentSettings } from './component/connector';
|
|
@@ -42,7 +43,7 @@ export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineWo
|
|
|
42
43
|
export type { SerialisedError } from './errors';
|
|
43
44
|
export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
|
|
44
45
|
export type { Informer, InformerConfig, InformerLocalisedConfig, InformerTools } from './component/informer';
|
|
45
|
-
export type { Presenter, PresenterConfig, PresenterLocalisedConfig
|
|
46
|
+
export type { Presenter, PresenterConfig, PresenterLocalisedConfig } from './component/presenter';
|
|
46
47
|
export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
|
|
47
48
|
export type { PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPolarViewConfig, PresentationVisualRangeViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamgraphViewConfig, PresentationVisualValuesViewConfig } from './component/presenter/presentation';
|
|
48
49
|
export type { PresentationVisualViewType, PresentationVisualCartesianViewType, PresentationVisualChordViewType, PresentationVisualPolarViewType, PresentationVisualRangeViewType, PresentationVisualSankeyDiagramViewType, PresentationVisualStreamgraphViewType, PresentationVisualValuesViewType } from './component/presenter/presentation';
|
|
@@ -54,8 +55,6 @@ export interface ContextOperationSettings {
|
|
|
54
55
|
export type { Timestamp } from './timestamp';
|
|
55
56
|
export { type CytoscapeJSView, useCytoscapeJS } from './composables/useCytoscapeJS';
|
|
56
57
|
export { useDataTable } from './composables/useDataTable';
|
|
57
|
-
export { type HighchartsView, useHighcharts } from './composables/useHighcharts';
|
|
58
|
-
export { useMicromark } from './composables/useMicromark';
|
|
59
58
|
export declare const DEFAULT_LOCALE_CODE: LocaleCode;
|
|
60
59
|
export { DefaultTimestamp } from './timestamp';
|
|
61
60
|
export { presentationViewTypeMap } from './component/presenter/presentation';
|
|
@@ -10,7 +10,7 @@ export interface ModuleConfig {
|
|
|
10
10
|
typeId: ModuleTypeId;
|
|
11
11
|
version: string;
|
|
12
12
|
}
|
|
13
|
-
type ModuleTypeId = 'app' | 'engine' | 'connector' | 'context' | 'informer' | 'presenter';
|
|
13
|
+
type ModuleTypeId = 'app' | 'engine' | 'connector' | 'context' | 'informer' | 'presenter' | 'tool';
|
|
14
14
|
export interface AppModuleConfig extends ModuleConfig {
|
|
15
15
|
typeId: 'app';
|
|
16
16
|
}
|
|
@@ -50,4 +50,7 @@ export interface PresenterModuleConfig extends ModuleConfig {
|
|
|
50
50
|
typeId: 'presenter';
|
|
51
51
|
}
|
|
52
52
|
export type PresenterModuleOperation = 'list' | 'render';
|
|
53
|
+
export interface ToolModuleConfig extends ModuleConfig {
|
|
54
|
+
typeId: 'tool';
|
|
55
|
+
}
|
|
53
56
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.214",
|
|
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,
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"csv-parse": "^6.1.0",
|
|
29
29
|
"date-fns": "^4.1.0",
|
|
30
|
-
"highcharts": "^12.4.0",
|
|
31
|
-
"micromark": "^4.0.2",
|
|
32
|
-
"micromark-extension-gfm": "^3.0.0",
|
|
33
|
-
"micromark-extension-math": "^3.1.0",
|
|
34
30
|
"nanoid": "^5.1.6",
|
|
35
31
|
"zod": "^4.1.12"
|
|
36
32
|
},
|
|
37
33
|
"devDependencies": {
|
|
34
|
+
"highcharts": "^12.4.0",
|
|
35
|
+
"micromark": "^4.0.2",
|
|
36
|
+
"micromark-extension-gfm": "^3.0.0",
|
|
37
|
+
"micromark-extension-math": "^3.1.0",
|
|
38
38
|
"@datapos/datapos-development": "^0.3.84",
|
|
39
39
|
"@types/node": "^24.10.1",
|
|
40
40
|
"@types/prismjs": "^1.26.5",
|