@datapos/datapos-shared 0.3.193 → 0.3.194
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.
- package/dist/datapos-shared.es.js +73 -79
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
1
|
+
const M = ["createObject", "dropObject", "removeRecords", "upsertRecords"], F = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
|
|
2
|
+
function j() {
|
|
3
3
|
function e(a, t, r) {
|
|
4
4
|
r.textContent = "Cytoscape.js diagram goes here...";
|
|
5
5
|
}
|
|
6
6
|
return { render: e };
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function U() {
|
|
9
9
|
function e(a, t, r) {
|
|
10
10
|
r.textContent = "values table goes here...";
|
|
11
11
|
}
|
|
@@ -13,7 +13,7 @@ function B() {
|
|
|
13
13
|
}
|
|
14
14
|
const v = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", I = "highcharts";
|
|
15
15
|
let b, D = !1;
|
|
16
|
-
function
|
|
16
|
+
function P() {
|
|
17
17
|
async function e(n, s, m, h) {
|
|
18
18
|
await r();
|
|
19
19
|
const l = [];
|
|
@@ -77,9 +77,9 @@ function W() {
|
|
|
77
77
|
}
|
|
78
78
|
return { renderCartesianChart: e, renderPolarChart: a, renderRangeChart: t };
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const S = 4, O = `https://cdn.jsdelivr.net/npm/micromark@${S}/+esm`, A = 1, N = `https://cdn.jsdelivr.net/npm/prismjs@${A}/+esm`;
|
|
81
81
|
let x;
|
|
82
|
-
function
|
|
82
|
+
function B() {
|
|
83
83
|
async function e() {
|
|
84
84
|
return await t(), { micromark: x };
|
|
85
85
|
}
|
|
@@ -93,17 +93,11 @@ function H() {
|
|
|
93
93
|
), import(
|
|
94
94
|
/* @vite-ignore */
|
|
95
95
|
N
|
|
96
|
-
)]))[0].micromark,
|
|
97
|
-
/* @vite-ignore */
|
|
98
|
-
_
|
|
99
|
-
), import(
|
|
100
|
-
/* @vite-ignore */
|
|
101
|
-
C
|
|
102
|
-
)]);
|
|
96
|
+
)]))[0].micromark, globalThis.Prism);
|
|
103
97
|
}
|
|
104
98
|
return { getStuff: e, render: a };
|
|
105
99
|
}
|
|
106
|
-
const
|
|
100
|
+
const W = 0, H = (e) => e, z = () => Date.now(), V = {
|
|
107
101
|
cartesian_areaLine: { categoryId: "cartesian", typeId: "areaLine", label: { "en-gb": "Area Line" }, options: { highchartsType: "area" } },
|
|
108
102
|
cartesian_areaSpline: { categoryId: "cartesian", typeId: "areaSpline", label: { "en-gb": "Area Spline" }, options: { highchartsType: "area" } },
|
|
109
103
|
cartesian_bar: { categoryId: "cartesian", typeId: "bar", label: { "en-gb": "Bar" }, options: { highchartsType: "bar" } },
|
|
@@ -122,63 +116,63 @@ const V = 0, z = (e) => e, X = () => Date.now(), G = {
|
|
|
122
116
|
streamgraph: { categoryId: "streamgraph", label: { "en-gb": "Streamgraph" }, options: {} },
|
|
123
117
|
values: { categoryId: "values", label: { "en-gb": "Values" }, options: {} }
|
|
124
118
|
};
|
|
125
|
-
class
|
|
119
|
+
class w extends Error {
|
|
126
120
|
locator;
|
|
127
121
|
constructor(a, t, r) {
|
|
128
122
|
super(a, r), this.name = "DataPosError", this.locator = t, Error.captureStackTrace?.(this, new.target);
|
|
129
123
|
}
|
|
130
124
|
}
|
|
131
|
-
class g extends
|
|
125
|
+
class g extends w {
|
|
132
126
|
constructor(a, t, r) {
|
|
133
127
|
super(a, t, r), this.name = "ApplicationError";
|
|
134
128
|
}
|
|
135
129
|
}
|
|
136
|
-
class
|
|
130
|
+
class X extends g {
|
|
137
131
|
constructor(a, t, r) {
|
|
138
132
|
super(a, t, r), this.name = "APIError";
|
|
139
133
|
}
|
|
140
134
|
}
|
|
141
|
-
class
|
|
135
|
+
class G extends g {
|
|
142
136
|
constructor(a, t, r) {
|
|
143
137
|
super(a, t, r), this.name = "EngineError";
|
|
144
138
|
}
|
|
145
139
|
}
|
|
146
|
-
class
|
|
140
|
+
class T extends g {
|
|
147
141
|
body;
|
|
148
142
|
constructor(a, t, r, o) {
|
|
149
143
|
super(a, t, o), this.name = "FetchError", this.body = r;
|
|
150
144
|
}
|
|
151
145
|
}
|
|
152
|
-
class
|
|
146
|
+
class _ extends g {
|
|
153
147
|
componentName;
|
|
154
148
|
info;
|
|
155
149
|
constructor(a, t, r, o, n) {
|
|
156
150
|
super(a, t, n), this.name = "VueHandledError", this.info = r, this.componentName = o;
|
|
157
151
|
}
|
|
158
152
|
}
|
|
159
|
-
class
|
|
153
|
+
class K extends g {
|
|
160
154
|
constructor(a, t, r) {
|
|
161
155
|
super(a, t, r), this.name = "WindowHandledRuntimeError";
|
|
162
156
|
}
|
|
163
157
|
}
|
|
164
|
-
class
|
|
158
|
+
class J extends g {
|
|
165
159
|
constructor(a, t, r) {
|
|
166
160
|
super(a, t, r), this.name = "WindowHandledPromiseRejectionError";
|
|
167
161
|
}
|
|
168
162
|
}
|
|
169
|
-
class
|
|
163
|
+
class q extends w {
|
|
170
164
|
constructor(a, t, r) {
|
|
171
165
|
super(a, t, r), this.name = "OperationalError";
|
|
172
166
|
}
|
|
173
167
|
}
|
|
174
|
-
async function
|
|
168
|
+
async function Q(e, a, t) {
|
|
175
169
|
const r = `${a} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
|
|
176
|
-
return new
|
|
170
|
+
return new T(r, t, o);
|
|
177
171
|
}
|
|
178
|
-
function
|
|
172
|
+
function Y(e) {
|
|
179
173
|
return e.map((a) => a.message).join(" ");
|
|
180
174
|
}
|
|
181
|
-
function
|
|
175
|
+
function Z(e, a = "Unknown error.") {
|
|
182
176
|
if (e instanceof Error) return e;
|
|
183
177
|
if (typeof e == "string") return new Error(e);
|
|
184
178
|
try {
|
|
@@ -187,17 +181,17 @@ function re(e, a = "Unknown error.") {
|
|
|
187
181
|
return new Error(a);
|
|
188
182
|
}
|
|
189
183
|
}
|
|
190
|
-
function
|
|
184
|
+
function ee(e) {
|
|
191
185
|
const a = /* @__PURE__ */ new Set(), t = [];
|
|
192
186
|
let r = e;
|
|
193
187
|
for (; r && !a.has(r); ) {
|
|
194
188
|
a.add(r);
|
|
195
189
|
let o;
|
|
196
|
-
if (r instanceof
|
|
190
|
+
if (r instanceof T)
|
|
197
191
|
o = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
198
|
-
else if (r instanceof
|
|
192
|
+
else if (r instanceof _)
|
|
199
193
|
o = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
200
|
-
else if (r instanceof
|
|
194
|
+
else if (r instanceof w)
|
|
201
195
|
o = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
202
196
|
else if (r instanceof Error) {
|
|
203
197
|
const n = r;
|
|
@@ -207,7 +201,7 @@ function te(e) {
|
|
|
207
201
|
}
|
|
208
202
|
return t;
|
|
209
203
|
}
|
|
210
|
-
const
|
|
204
|
+
const R = "en-US", y = {}, re = (e) => {
|
|
211
205
|
switch (e) {
|
|
212
206
|
case "Edm.Binary":
|
|
213
207
|
return "unknown";
|
|
@@ -246,17 +240,17 @@ const S = "en-US", y = {}, ae = (e) => {
|
|
|
246
240
|
default:
|
|
247
241
|
return "unknown";
|
|
248
242
|
}
|
|
249
|
-
},
|
|
243
|
+
}, te = (e) => {
|
|
250
244
|
if (e) {
|
|
251
245
|
const a = e.lastIndexOf("/"), t = e.lastIndexOf(".", a > -1 ? a : e.length);
|
|
252
246
|
return t > -1 ? e.substring(0, t) : e;
|
|
253
247
|
}
|
|
254
|
-
},
|
|
248
|
+
}, ae = (e) => {
|
|
255
249
|
if (e) {
|
|
256
250
|
const a = e.lastIndexOf(".");
|
|
257
251
|
if (a > -1) return e.substring(a + 1);
|
|
258
252
|
}
|
|
259
|
-
}, i = (e, a = 2, t = a, r =
|
|
253
|
+
}, i = (e, a = 2, t = a, r = R) => {
|
|
260
254
|
if (e == null) return "";
|
|
261
255
|
const o = `${r}decimal${a}.${t}`;
|
|
262
256
|
let n = y[o];
|
|
@@ -268,7 +262,7 @@ const S = "en-US", y = {}, ae = (e) => {
|
|
|
268
262
|
style: "decimal",
|
|
269
263
|
useGrouping: !0
|
|
270
264
|
}), y[o] = n), n.format(e);
|
|
271
|
-
},
|
|
265
|
+
}, ne = (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`, oe = (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`, se = (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 = R) => {
|
|
272
266
|
if (e == null) return "";
|
|
273
267
|
const t = `${a}decimal0.0`;
|
|
274
268
|
let r = y[t];
|
|
@@ -280,7 +274,7 @@ const S = "en-US", y = {}, ae = (e) => {
|
|
|
280
274
|
style: "decimal",
|
|
281
275
|
useGrouping: !0
|
|
282
276
|
}), y[t] = r), r.format(e);
|
|
283
|
-
},
|
|
277
|
+
}, ie = (e) => {
|
|
284
278
|
switch (e) {
|
|
285
279
|
case "csv":
|
|
286
280
|
return "text/csv";
|
|
@@ -294,7 +288,7 @@ const S = "en-US", y = {}, ae = (e) => {
|
|
|
294
288
|
default:
|
|
295
289
|
return "application/octet-stream";
|
|
296
290
|
}
|
|
297
|
-
},
|
|
291
|
+
}, C = [
|
|
298
292
|
{ id: "dtv", label: { "en-gb": "Delimited Text" } },
|
|
299
293
|
{ id: "e/e", label: { "en-gb": "Entity/Event" } },
|
|
300
294
|
{ id: "jsonArray", label: { "en-gb": "JSON Array" } },
|
|
@@ -302,22 +296,22 @@ const S = "en-US", y = {}, ae = (e) => {
|
|
|
302
296
|
{ id: "xls", label: { "en-gb": "XLS" } },
|
|
303
297
|
{ id: "xlsx", label: { "en-gb": "XLSX" } },
|
|
304
298
|
{ id: "xml", label: { "en-gb": "XML" } }
|
|
305
|
-
],
|
|
299
|
+
], le = (e = d) => {
|
|
306
300
|
const a = [];
|
|
307
|
-
for (const t of
|
|
301
|
+
for (const t of C) a.push({ ...t, label: t.label[e] || t.label[d] || t.id });
|
|
308
302
|
return a;
|
|
309
|
-
},
|
|
303
|
+
}, L = [
|
|
310
304
|
{ id: `
|
|
311
305
|
`, label: { "en-gb": "Newline" } },
|
|
312
306
|
{ id: "\r", label: { "en-gb": "Carriage Return" } },
|
|
313
307
|
{ id: `\r
|
|
314
308
|
`, label: { "en-gb": "Carriage Return/Newline" } }
|
|
315
|
-
],
|
|
309
|
+
], ce = (e = d) => {
|
|
316
310
|
const a = [];
|
|
317
|
-
for (const t of
|
|
311
|
+
for (const t of L)
|
|
318
312
|
a.push({ ...t, label: t.label[e] || t.label[d] || t.id });
|
|
319
313
|
return a;
|
|
320
|
-
},
|
|
314
|
+
}, $ = [
|
|
321
315
|
{ id: ":", label: { "en-gb": "Colon" } },
|
|
322
316
|
{ id: ",", label: { "en-gb": "Comma" } },
|
|
323
317
|
{ id: "!", label: { "en-gb": "Exclamation Mark" } },
|
|
@@ -329,9 +323,9 @@ const S = "en-US", y = {}, ae = (e) => {
|
|
|
329
323
|
{ id: "_", label: { "en-gb": "Underscore" } },
|
|
330
324
|
{ id: "0x1F", label: { "en-gb": "Unit Separator" } },
|
|
331
325
|
{ id: "|", label: { "en-gb": "Vertical Bar" } }
|
|
332
|
-
],
|
|
326
|
+
], de = (e = d) => {
|
|
333
327
|
const a = [];
|
|
334
|
-
for (const t of
|
|
328
|
+
for (const t of $)
|
|
335
329
|
a.push({ ...t, label: t.label[e] || t.label[d] || t.id });
|
|
336
330
|
return a;
|
|
337
331
|
}, k = [
|
|
@@ -344,45 +338,45 @@ const S = "en-US", y = {}, ae = (e) => {
|
|
|
344
338
|
{ id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
|
|
345
339
|
{ id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
|
|
346
340
|
{ id: "underReview", color: "other", label: { "en-gb": "under-review" } }
|
|
347
|
-
],
|
|
341
|
+
], me = (e, a = d) => {
|
|
348
342
|
const t = k.find((r) => r.id === e);
|
|
349
343
|
return t ? { ...t, label: t.label[a] || t.label[d] || e } : { id: e, color: "other", label: e };
|
|
350
344
|
}, d = "en-gb";
|
|
351
345
|
export {
|
|
352
|
-
|
|
346
|
+
X as APIError,
|
|
353
347
|
g as ApplicationError,
|
|
354
|
-
|
|
355
|
-
|
|
348
|
+
M as CONNECTOR_DESTINATION_OPERATIONS,
|
|
349
|
+
F as CONNECTOR_SOURCE_OPERATIONS,
|
|
356
350
|
d as DEFAULT_LOCALE_CODE,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
351
|
+
W as DefaultTimestamp,
|
|
352
|
+
G as EngineError,
|
|
353
|
+
T as FetchError,
|
|
354
|
+
q as OperationalError,
|
|
355
|
+
_ as VueError,
|
|
356
|
+
J as WindowPromiseRejectionError,
|
|
357
|
+
K as WindowRuntimeError,
|
|
358
|
+
Q as buildFetchError,
|
|
359
|
+
Y as concatenateSerialisedErrorMessages,
|
|
360
|
+
H as convertMillisecondsToTimestamp,
|
|
361
|
+
re as convertODataTypeIdToUsageTypeId,
|
|
362
|
+
ae as extractExtensionFromPath,
|
|
363
|
+
te as extractNameFromPath,
|
|
370
364
|
i as formatNumberAsDecimalNumber,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
365
|
+
se as formatNumberAsDuration,
|
|
366
|
+
ne as formatNumberAsSize,
|
|
367
|
+
oe as formatNumberAsStorageSize,
|
|
374
368
|
E as formatNumberAsWholeNumber,
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
369
|
+
me as getComponentStatus,
|
|
370
|
+
z as getCurrentTimestamp,
|
|
371
|
+
le as getDataFormats,
|
|
372
|
+
ce as getRecordDelimiters,
|
|
373
|
+
de as getValueDelimiters,
|
|
374
|
+
ie as lookupMimeTypeForExtension,
|
|
375
|
+
Z as normalizeToError,
|
|
376
|
+
V as presentationViewTypeMap,
|
|
377
|
+
ee as serialiseError,
|
|
378
|
+
j as useCytoscapeJS,
|
|
379
|
+
U as useDataTable,
|
|
380
|
+
P as useHighcharts,
|
|
381
|
+
B as useMicromark
|
|
388
382
|
};
|
package/package.json
CHANGED