@datapos/datapos-shared 0.3.342 → 0.3.348

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,713 +1,16 @@
1
- let M;
2
- // @__NO_SIDE_EFFECTS__
3
- function V(t) {
4
- return {
5
- lang: t?.lang ?? M?.lang,
6
- message: t?.message,
7
- abortEarly: t?.abortEarly ?? M?.abortEarly,
8
- abortPipeEarly: t?.abortPipeEarly ?? M?.abortPipeEarly
9
- };
10
- }
11
- let z;
12
- // @__NO_SIDE_EFFECTS__
13
- function H(t) {
14
- return z?.get(t);
15
- }
16
- let $;
17
- // @__NO_SIDE_EFFECTS__
18
- function W(t) {
19
- return $?.get(t);
20
- }
21
- let X;
22
- // @__NO_SIDE_EFFECTS__
23
- function B(t, n) {
24
- return X?.get(t)?.get(n);
25
- }
26
- // @__NO_SIDE_EFFECTS__
27
- function _(t) {
28
- const n = typeof t;
29
- return n === "string" ? `"${t}"` : n === "number" || n === "bigint" || n === "boolean" ? `${t}` : n === "object" || n === "function" ? (t && Object.getPrototypeOf(t)?.constructor?.name) ?? "null" : n;
30
- }
31
- function y(t, n, e, r, s) {
32
- const o = s && "input" in s ? s.input : e.value, i = s?.expected ?? t.expects ?? null, u = s?.received ?? /* @__PURE__ */ _(o), a = {
33
- kind: t.kind,
34
- type: t.type,
35
- input: o,
36
- expected: i,
37
- received: u,
38
- message: `Invalid ${n}: ${i ? `Expected ${i} but r` : "R"}eceived ${u}`,
39
- requirement: t.requirement,
40
- path: s?.path,
41
- issues: s?.issues,
42
- lang: r.lang,
43
- abortEarly: r.abortEarly,
44
- abortPipeEarly: r.abortPipeEarly
45
- }, p = t.kind === "schema", d = s?.message ?? t.message ?? /* @__PURE__ */ B(t.reference, a.lang) ?? (p ? /* @__PURE__ */ W(a.lang) : null) ?? r.message ?? /* @__PURE__ */ H(a.lang);
46
- d !== void 0 && (a.message = typeof d == "function" ? d(a) : d), p && (e.typed = !1), e.issues ? e.issues.push(a) : e.issues = [a];
47
- }
48
- // @__NO_SIDE_EFFECTS__
49
- function g(t) {
50
- return {
51
- version: 1,
52
- vendor: "valibot",
53
- validate(n) {
54
- return t["~run"]({ value: n }, /* @__PURE__ */ V());
55
- }
56
- };
57
- }
58
- // @__NO_SIDE_EFFECTS__
59
- function J(t, n) {
60
- return Object.hasOwn(t, n) && n !== "__proto__" && n !== "prototype" && n !== "constructor";
61
- }
62
- // @__NO_SIDE_EFFECTS__
63
- function K(t, n) {
64
- const e = [...new Set(t)];
65
- return e.length > 1 ? `(${e.join(` ${n} `)})` : e[0] ?? "never";
66
- }
67
- // @__NO_SIDE_EFFECTS__
68
- function q(t, n, e) {
69
- return typeof t.fallback == "function" ? t.fallback(n, e) : t.fallback;
70
- }
71
- // @__NO_SIDE_EFFECTS__
72
- function w(t, n, e) {
73
- return typeof t.default == "function" ? t.default(n, e) : t.default;
74
- }
75
- // @__NO_SIDE_EFFECTS__
76
- function E(t, n) {
77
- return {
78
- kind: "schema",
79
- type: "array",
80
- reference: E,
81
- expects: "Array",
82
- async: !1,
83
- item: t,
84
- message: n,
85
- get "~standard"() {
86
- return /* @__PURE__ */ g(this);
87
- },
88
- "~run"(e, r) {
89
- const s = e.value;
90
- if (Array.isArray(s)) {
91
- e.typed = !0, e.value = [];
92
- for (let o = 0; o < s.length; o++) {
93
- const i = s[o], u = this.item["~run"]({ value: i }, r);
94
- if (u.issues) {
95
- const a = {
96
- type: "array",
97
- origin: "value",
98
- input: s,
99
- key: o,
100
- value: i
101
- };
102
- for (const p of u.issues)
103
- p.path ? p.path.unshift(a) : p.path = [a], e.issues?.push(p);
104
- if (e.issues || (e.issues = u.issues), r.abortEarly) {
105
- e.typed = !1;
106
- break;
107
- }
108
- }
109
- u.typed || (e.typed = !1), e.value.push(u.value);
110
- }
111
- } else y(this, "type", e, r);
112
- return e;
113
- }
114
- };
115
- }
116
- // @__NO_SIDE_EFFECTS__
117
- function T(t) {
118
- return {
119
- kind: "schema",
120
- type: "boolean",
121
- reference: T,
122
- expects: "boolean",
123
- async: !1,
124
- message: t,
125
- get "~standard"() {
126
- return /* @__PURE__ */ g(this);
127
- },
128
- "~run"(n, e) {
129
- return typeof n.value == "boolean" ? n.typed = !0 : y(this, "type", n, e), n;
130
- }
131
- };
132
- }
133
- // @__NO_SIDE_EFFECTS__
134
- function k(t, n) {
135
- return {
136
- kind: "schema",
137
- type: "literal",
138
- reference: k,
139
- expects: /* @__PURE__ */ _(t),
140
- async: !1,
141
- literal: t,
142
- message: n,
143
- get "~standard"() {
144
- return /* @__PURE__ */ g(this);
145
- },
146
- "~run"(e, r) {
147
- return e.value === this.literal ? e.typed = !0 : y(this, "type", e, r), e;
148
- }
149
- };
150
- }
151
- // @__NO_SIDE_EFFECTS__
152
- function m(t, n) {
153
- return {
154
- kind: "schema",
155
- type: "nullable",
156
- reference: m,
157
- expects: `(${t.expects} | null)`,
158
- async: !1,
159
- wrapped: t,
160
- default: n,
161
- get "~standard"() {
162
- return /* @__PURE__ */ g(this);
163
- },
164
- "~run"(e, r) {
165
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ w(this, e, r)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, r);
166
- }
167
- };
168
- }
169
- // @__NO_SIDE_EFFECTS__
170
- function x(t) {
171
- return {
172
- kind: "schema",
173
- type: "number",
174
- reference: x,
175
- expects: "number",
176
- async: !1,
177
- message: t,
178
- get "~standard"() {
179
- return /* @__PURE__ */ g(this);
180
- },
181
- "~run"(n, e) {
182
- return typeof n.value == "number" && !isNaN(n.value) ? n.typed = !0 : y(this, "type", n, e), n;
183
- }
184
- };
185
- }
186
- // @__NO_SIDE_EFFECTS__
187
- function b(t, n) {
188
- return {
189
- kind: "schema",
190
- type: "object",
191
- reference: b,
192
- expects: "Object",
193
- async: !1,
194
- entries: t,
195
- message: n,
196
- get "~standard"() {
197
- return /* @__PURE__ */ g(this);
198
- },
199
- "~run"(e, r) {
200
- const s = e.value;
201
- if (s && typeof s == "object") {
202
- e.typed = !0, e.value = {};
203
- for (const o in this.entries) {
204
- const i = this.entries[o];
205
- if (o in s || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
206
- const u = o in s ? s[o] : /* @__PURE__ */ w(i), a = i["~run"]({ value: u }, r);
207
- if (a.issues) {
208
- const p = {
209
- type: "object",
210
- origin: "value",
211
- input: s,
212
- key: o,
213
- value: u
214
- };
215
- for (const d of a.issues)
216
- d.path ? d.path.unshift(p) : d.path = [p], e.issues?.push(d);
217
- if (e.issues || (e.issues = a.issues), r.abortEarly) {
218
- e.typed = !1;
219
- break;
220
- }
221
- }
222
- a.typed || (e.typed = !1), e.value[o] = a.value;
223
- } else if (i.fallback !== void 0) e.value[o] = /* @__PURE__ */ q(i);
224
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (y(this, "key", e, r, {
225
- input: void 0,
226
- expected: `"${o}"`,
227
- path: [{
228
- type: "object",
229
- origin: "key",
230
- input: s,
231
- key: o,
232
- value: s[o]
233
- }]
234
- }), r.abortEarly))
235
- break;
236
- }
237
- } else y(this, "type", e, r);
238
- return e;
239
- }
240
- };
241
- }
242
- // @__NO_SIDE_EFFECTS__
243
- function f(t, n) {
244
- return {
245
- kind: "schema",
246
- type: "optional",
247
- reference: f,
248
- expects: `(${t.expects} | undefined)`,
249
- async: !1,
250
- wrapped: t,
251
- default: n,
252
- get "~standard"() {
253
- return /* @__PURE__ */ g(this);
254
- },
255
- "~run"(e, r) {
256
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ w(this, e, r)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, r);
257
- }
258
- };
259
- }
260
- // @__NO_SIDE_EFFECTS__
261
- function R(t, n, e) {
262
- return {
263
- kind: "schema",
264
- type: "record",
265
- reference: R,
266
- expects: "Object",
267
- async: !1,
268
- key: t,
269
- value: n,
270
- message: e,
271
- get "~standard"() {
272
- return /* @__PURE__ */ g(this);
273
- },
274
- "~run"(r, s) {
275
- const o = r.value;
276
- if (o && typeof o == "object") {
277
- r.typed = !0, r.value = {};
278
- for (const i in o) if (/* @__PURE__ */ J(o, i)) {
279
- const u = o[i], a = this.key["~run"]({ value: i }, s);
280
- if (a.issues) {
281
- const d = {
282
- type: "object",
283
- origin: "key",
284
- input: o,
285
- key: i,
286
- value: u
287
- };
288
- for (const S of a.issues)
289
- S.path = [d], r.issues?.push(S);
290
- if (r.issues || (r.issues = a.issues), s.abortEarly) {
291
- r.typed = !1;
292
- break;
293
- }
294
- }
295
- const p = this.value["~run"]({ value: u }, s);
296
- if (p.issues) {
297
- const d = {
298
- type: "object",
299
- origin: "value",
300
- input: o,
301
- key: i,
302
- value: u
303
- };
304
- for (const S of p.issues)
305
- S.path ? S.path.unshift(d) : S.path = [d], r.issues?.push(S);
306
- if (r.issues || (r.issues = p.issues), s.abortEarly) {
307
- r.typed = !1;
308
- break;
309
- }
310
- }
311
- (!a.typed || !p.typed) && (r.typed = !1), a.typed && (r.value[a.value] = p.value);
312
- }
313
- } else y(this, "type", r, s);
314
- return r;
315
- }
316
- };
317
- }
318
- // @__NO_SIDE_EFFECTS__
319
- function l(t) {
320
- return {
321
- kind: "schema",
322
- type: "string",
323
- reference: l,
324
- expects: "string",
325
- async: !1,
326
- message: t,
327
- get "~standard"() {
328
- return /* @__PURE__ */ g(this);
329
- },
330
- "~run"(n, e) {
331
- return typeof n.value == "string" ? n.typed = !0 : y(this, "type", n, e), n;
332
- }
333
- };
334
- }
335
- // @__NO_SIDE_EFFECTS__
336
- function P(t) {
337
- let n;
338
- if (t) for (const e of t) n ? n.push(...e.issues) : n = e.issues;
339
- return n;
340
- }
341
- // @__NO_SIDE_EFFECTS__
342
- function U(t, n) {
343
- return {
344
- kind: "schema",
345
- type: "union",
346
- reference: U,
347
- expects: /* @__PURE__ */ K(t.map((e) => e.expects), "|"),
348
- async: !1,
349
- options: t,
350
- message: n,
351
- get "~standard"() {
352
- return /* @__PURE__ */ g(this);
353
- },
354
- "~run"(e, r) {
355
- let s, o, i;
356
- for (const u of this.options) {
357
- const a = u["~run"]({ value: e.value }, r);
358
- if (a.typed) if (a.issues) o ? o.push(a) : o = [a];
359
- else {
360
- s = a;
361
- break;
362
- }
363
- else i ? i.push(a) : i = [a];
364
- }
365
- if (s) return s;
366
- if (o) {
367
- if (o.length === 1) return o[0];
368
- y(this, "type", e, r, { issues: /* @__PURE__ */ P(o) }), e.typed = !0;
369
- } else {
370
- if (i?.length === 1) return i[0];
371
- y(this, "type", e, r, { issues: /* @__PURE__ */ P(i) });
372
- }
373
- return e;
374
- }
375
- };
376
- }
377
- const h = (t) => /* @__PURE__ */ U(t.map((n) => /* @__PURE__ */ k(n))), Q = /* @__PURE__ */ b({
378
- "en-au": /* @__PURE__ */ l(),
379
- "en-gb": /* @__PURE__ */ l(),
380
- "en-us": /* @__PURE__ */ l(),
381
- "es-es": /* @__PURE__ */ l()
382
- }), j = /* @__PURE__ */ b({
383
- "en-au": /* @__PURE__ */ f(/* @__PURE__ */ l()),
384
- "en-gb": /* @__PURE__ */ f(/* @__PURE__ */ l()),
385
- "en-us": /* @__PURE__ */ f(/* @__PURE__ */ l()),
386
- "es-es": /* @__PURE__ */ f(/* @__PURE__ */ l())
387
- }), Y = h(["amber", "green", "red", "other"]), Z = h([
388
- "alpha",
389
- "beta",
390
- "generalAvailability",
391
- "notApplicable",
392
- "preAlpha",
393
- "proposed",
394
- "releaseCandidate",
395
- "unavailable",
396
- "underReview"
397
- ]), ee = h([
398
- "app",
399
- "connector",
400
- "connectorConnection",
401
- "context",
402
- "contextModelGroup",
403
- "contextModel",
404
- "contextModelDimensionGroup",
405
- "contextModelDimension",
406
- "contextModelDimensionHierarchy",
407
- "contextModelEntityGroup",
408
- "contextModelEntity",
409
- "contextModelEntityDataItem",
410
- "contextModelEntityEvent",
411
- "contextModelEntityPrimaryMeasure",
412
- "contextModelSecondaryMeasureGroup",
413
- "contextModelSecondaryMeasure",
414
- "dataView",
415
- "dimension",
416
- "engine",
417
- "eventQuery",
418
- "presenter",
419
- "presenterPresentation",
420
- "tool"
421
- ]);
422
- h(["app", "engine", "connector", "context", "presenter", "tool"]);
423
- const te = /* @__PURE__ */ b({
424
- id: /* @__PURE__ */ l(),
425
- color: Y,
426
- label: /* @__PURE__ */ l()
427
- }), A = {
428
- id: /* @__PURE__ */ l(),
429
- label: j,
430
- description: j,
431
- firstCreatedAt: /* @__PURE__ */ f(/* @__PURE__ */ x()),
432
- icon: /* @__PURE__ */ m(/* @__PURE__ */ l()),
433
- iconDark: /* @__PURE__ */ m(/* @__PURE__ */ l()),
434
- lastUpdatedAt: /* @__PURE__ */ m(/* @__PURE__ */ x()),
435
- status: /* @__PURE__ */ m(te),
436
- statusId: Z
437
- }, he = /* @__PURE__ */ b({
438
- ...A,
439
- typeId: ee
440
- }), I = {
441
- ...A,
442
- version: /* @__PURE__ */ l()
443
- }, F = /* @__PURE__ */ b({
444
- id: /* @__PURE__ */ l(),
445
- label: j,
446
- description: j,
447
- icon: /* @__PURE__ */ m(/* @__PURE__ */ l()),
448
- iconDark: /* @__PURE__ */ m(/* @__PURE__ */ l()),
449
- order: /* @__PURE__ */ x(),
450
- path: /* @__PURE__ */ l()
451
- }), v = (t) => {
452
- const n = Object.entries(t).filter((e) => typeof e[1] == "string");
453
- return new Map(n);
454
- }, ne = (t, n, e = O) => {
455
- const r = t.get(n);
456
- if (r !== void 0) return r;
457
- if (e !== n)
458
- return t.get(e);
459
- }, re = [
460
- { id: "alpha", color: "red", labels: v({ "en-gb": "alpha" }) },
461
- { id: "beta", color: "amber", labels: v({ "en-gb": "beta" }) },
462
- { id: "generalAvailability", color: "green", labels: v({ "en-gb": "" }) },
463
- { id: "notApplicable", color: "green", labels: v({ "en-gb": "not-applicable" }) },
464
- { id: "preAlpha", color: "red", labels: v({ "en-gb": "pre-alpha" }) },
465
- { id: "proposed", color: "other", labels: v({ "en-gb": "proposed" }) },
466
- { id: "releaseCandidate", color: "green", labels: v({ "en-gb": "release-candidate" }) },
467
- { id: "unavailable", color: "other", labels: v({ "en-gb": "unavailable" }) },
468
- { id: "underReview", color: "other", labels: v({ "en-gb": "under-review" }) }
469
- ], ve = (t, n = O) => {
470
- const e = re.find((r) => r.id === t);
471
- if (e) {
472
- const r = ne(e.labels, n);
473
- return { id: e.id, color: e.color, label: r ?? e.id };
474
- }
475
- return { id: t, color: "other", label: t };
476
- }, se = h(["apiKey", "disabled", "oAuth2", "none"]), oe = h(["application", "curatedDataset", "database", "fileStore"]), ie = h([
477
- "abortOperation",
478
- "authenticateConnection",
479
- "createObject",
480
- "describeConnection",
481
- "dropObject",
482
- "findObject",
483
- "getReadableStream",
484
- "getRecord",
485
- "listNodes",
486
- "previewObject",
487
- "removeRecords",
488
- "retrieveChunks",
489
- "retrieveRecords",
490
- "upsertRecords"
491
- ]), ae = h(["bidirectional", "destination", "source", "unknown"]), le = /* @__PURE__ */ b({
492
- authMethodId: se,
493
- activeConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ x()),
494
- canDescribe: /* @__PURE__ */ f(/* @__PURE__ */ T()),
495
- id: /* @__PURE__ */ f(/* @__PURE__ */ l()),
496
- label: /* @__PURE__ */ f(Q),
497
- maxConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ x()),
498
- params: /* @__PURE__ */ f(/* @__PURE__ */ E(/* @__PURE__ */ R(/* @__PURE__ */ l(), /* @__PURE__ */ l())))
499
- }), Ee = /* @__PURE__ */ b({
500
- ...I,
501
- typeId: /* @__PURE__ */ k("connector"),
502
- category: /* @__PURE__ */ m(/* @__PURE__ */ b({ id: /* @__PURE__ */ l(), label: /* @__PURE__ */ l() })),
503
- categoryId: oe,
504
- implementations: /* @__PURE__ */ R(/* @__PURE__ */ l(), le),
505
- operations: /* @__PURE__ */ E(ie),
506
- usageId: ae,
507
- vendorAccountURL: /* @__PURE__ */ m(/* @__PURE__ */ l()),
508
- vendorDocumentationURL: /* @__PURE__ */ m(/* @__PURE__ */ l()),
509
- vendorHomeURL: /* @__PURE__ */ m(/* @__PURE__ */ l())
510
- }), Se = ["createObject", "dropObject", "removeRecords", "upsertRecords"], xe = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], D = (t) => {
511
- const n = Object.entries(t).filter((e) => typeof e[1] == "string");
512
- return new Map(n);
513
- };
514
- D({ "en-gb": "Application" }), D({ "en-gb": "Curated Dataset" }), D({ "en-gb": "Database" }), D({ "en-gb": "File Store" });
515
- const ce = h(["list"]), ue = /* @__PURE__ */ b({
516
- ...A,
517
- typeId: /* @__PURE__ */ k("contextModelGroup"),
518
- modelRefs: /* @__PURE__ */ E(F),
519
- order: /* @__PURE__ */ x()
520
- }), ke = /* @__PURE__ */ b({
521
- ...I,
522
- typeId: /* @__PURE__ */ k("context"),
523
- models: /* @__PURE__ */ E(ue),
524
- operations: /* @__PURE__ */ E(ce)
525
- });
526
- class L extends Error {
527
- locator;
528
- constructor(n, e, r) {
529
- super(n, r), this.name = "DataPosError", this.locator = e;
530
- }
531
- }
532
- class C extends L {
533
- constructor(n, e, r) {
534
- super(n, e, r), this.name = "ApplicationError";
535
- }
536
- }
537
- class Ce extends C {
538
- constructor(n, e, r) {
539
- super(n, e, r), this.name = "APIError";
540
- }
541
- }
542
- class Oe extends C {
543
- constructor(n, e, r) {
544
- super(n, e, r), this.name = "EngineError";
545
- }
546
- }
547
- class G extends C {
548
- body;
549
- constructor(n, e, r, s) {
550
- super(n, e, s), this.name = "FetchError", this.body = r;
551
- }
552
- }
553
- class pe extends C {
554
- componentName;
555
- info;
556
- constructor(n, e, r, s, o) {
557
- super(n, e, o), this.name = "VueHandledError", this.info = r, this.componentName = s;
558
- }
559
- }
560
- class De extends C {
561
- constructor(n, e, r) {
562
- super(n, e, r), this.name = "WindowHandledRuntimeError";
563
- }
564
- }
565
- class je extends C {
566
- constructor(n, e, r) {
567
- super(n, e, r), this.name = "WindowHandledPromiseRejectionError";
568
- }
569
- }
570
- class Me extends L {
571
- constructor(n, e, r) {
572
- super(n, e, r), this.name = "OperationalError";
573
- }
574
- }
575
- async function we(t, n, e) {
576
- const r = ` - ${t.statusText}`, s = `${n} Response status '${t.status}${t.statusText ? r : ""}' received.`, o = await t.text();
577
- return new G(s, e, o);
578
- }
579
- function Re(t) {
580
- return t.map((n) => n.message).join(" ");
581
- }
582
- function Ae(t) {
583
- if (t instanceof Error) return t;
584
- if (typeof t == "string") return new Error(t);
585
- if (typeof t == "number" || typeof t == "boolean" || typeof t == "bigint") return new Error(String(t));
586
- if (typeof t == "symbol") return new Error(t.description ?? "Unknown error");
587
- if (t && typeof t == "object")
588
- try {
589
- return new Error(JSON.stringify(t));
590
- } catch {
591
- return new Error("Unknown error");
592
- }
593
- return new Error("Unknown error");
594
- }
595
- function Ie(t) {
596
- const n = /* @__PURE__ */ new Set(), e = [];
597
- let r = t;
598
- for (; r && !n.has(r); ) {
599
- n.add(r);
600
- let s;
601
- if (r instanceof G)
602
- s = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
603
- else if (r instanceof pe)
604
- s = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
605
- else if (r instanceof L)
606
- s = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
607
- else if (r instanceof Error) {
608
- const o = r;
609
- s = { locator: "", message: o.message, name: o.name, stack: o.stack }, r = o.cause;
610
- } else
611
- s = { locator: "", message: String(r), name: "Error" }, r = void 0;
612
- /(?:\.{3}|[.!?])$/.test(s.message) || (s.message += "."), e.push(s);
613
- }
614
- return e;
615
- }
616
- const de = h(["list", "render", "setColorMode"]), Le = /* @__PURE__ */ b({
617
- ...I,
618
- typeId: /* @__PURE__ */ k("presenter"),
619
- presentations: /* @__PURE__ */ E(F),
620
- operations: /* @__PURE__ */ E(de)
621
- });
622
- function Ne() {
623
- return { render: fe };
624
- }
625
- function fe(t, n, e) {
626
- e.textContent = "Cytoscape.js diagram goes here...";
627
- }
628
- function Pe() {
629
- return { render: be };
630
- }
631
- function be(t, n) {
632
- console.log(1111, t), console.log(2222, n), console.log(3333, n.childNodes), console.log(4444, n.children);
633
- }
634
- const c = (t) => new Map(Object.entries(t)), N = (t, n, e = O) => {
635
- const r = t.get(n);
636
- if (r !== void 0) return r;
637
- if (e !== n)
638
- return t.get(e);
639
- }, me = [
640
- { id: "dtv", labels: c({ "en-gb": "Delimited Text" }) },
641
- { id: "e/e", labels: c({ "en-gb": "Entity/Event" }) },
642
- { id: "jsonArray", labels: c({ "en-gb": "JSON Array" }) },
643
- { id: "spss", labels: c({ "en-gb": "SPSS" }) },
644
- { id: "xls", labels: c({ "en-gb": "XLS" }) },
645
- { id: "xlsx", labels: c({ "en-gb": "XLSX" }) },
646
- { id: "xml", labels: c({ "en-gb": "XML" }) }
647
- ], _e = (t = O) => {
648
- const n = [];
649
- for (const e of me) {
650
- const r = N(e.labels, t);
651
- n.push({ id: e.id, label: r ?? e.id });
652
- }
653
- return n;
654
- }, ye = [
655
- { id: `
656
- `, labels: c({ "en-gb": "Newline" }) },
657
- { id: "\r", labels: c({ "en-gb": "Carriage Return" }) },
658
- { id: `\r
659
- `, labels: c({ "en-gb": "Carriage Return/Newline" }) }
660
- ], Te = (t = O) => {
661
- const n = [];
662
- for (const e of ye) {
663
- const r = N(e.labels, t);
664
- n.push({ id: e.id, label: r ?? e.id });
665
- }
666
- return n;
667
- }, ge = [
668
- { id: ":", labels: c({ "en-gb": "Colon" }) },
669
- { id: ",", labels: c({ "en-gb": "Comma" }) },
670
- { id: "!", labels: c({ "en-gb": "Exclamation Mark" }) },
671
- // { id: '', label: { 'en-gb': 'Other' } }, // TODO: Maybe set this to a 'not printing' or special ascii character when there is a user supplied delimited, rather than ''?
672
- { id: "0x1E", labels: c({ "en-gb": "Record Separator" }) },
673
- { id: ";", labels: c({ "en-gb": "Semicolon" }) },
674
- { id: " ", labels: c({ "en-gb": "Space" }) },
675
- { id: " ", labels: c({ "en-gb": "Tab" }) },
676
- { id: "_", labels: c({ "en-gb": "Underscore" }) },
677
- { id: "0x1F", labels: c({ "en-gb": "Unit Separator" }) },
678
- { id: "|", labels: c({ "en-gb": "Vertical Bar" }) }
679
- ], Ue = (t = O) => {
680
- const n = [];
681
- for (const e of ge) {
682
- const r = N(e.labels, t);
683
- n.push({ id: e.id, label: r ?? e.id });
684
- }
685
- return n;
686
- }, O = "en-gb";
1
+ import { CONNECTOR_DESTINATION_OPERATIONS as t, CONNECTOR_SOURCE_OPERATIONS as s, D as o, c as C, connectorConfigSchema as n, a as O, f as c, g as m, d as S, e as g, p as r, u as E, b as i } from "./datapos-shared-connector.es.js";
687
2
  export {
688
- Ce as APIError,
689
- C as ApplicationError,
690
- Se as CONNECTOR_DESTINATION_OPERATIONS,
691
- xe as CONNECTOR_SOURCE_OPERATIONS,
692
- O as DEFAULT_LOCALE_CODE,
693
- Oe as EngineError,
694
- G as FetchError,
695
- Me as OperationalError,
696
- pe as VueError,
697
- je as WindowPromiseRejectionError,
698
- De as WindowRuntimeError,
699
- we as buildFetchError,
700
- he as componentConfigSchema,
701
- Re as concatenateSerialisedErrorMessages,
702
- Ee as connectorConfigSchema,
703
- ke as contextConfigSchema,
704
- ve as getComponentStatus,
705
- _e as getDataFormats,
706
- Te as getRecordDelimiters,
707
- Ue as getValueDelimiters,
708
- Ae as normalizeToError,
709
- Le as presenterConfigSchema,
710
- Ie as serialiseError,
711
- Ne as useCytoscapeJS,
712
- Pe as useDataTable
3
+ t as CONNECTOR_DESTINATION_OPERATIONS,
4
+ s as CONNECTOR_SOURCE_OPERATIONS,
5
+ o as DEFAULT_LOCALE_CODE,
6
+ C as componentConfigSchema,
7
+ n as connectorConfigSchema,
8
+ O as contextConfigSchema,
9
+ c as getComponentStatus,
10
+ m as getDataFormats,
11
+ S as getRecordDelimiters,
12
+ g as getValueDelimiters,
13
+ r as presenterConfigSchema,
14
+ E as useCytoscapeJS,
15
+ i as useDataTable
713
16
  };