@datapos/datapos-shared 0.3.403 → 0.3.405

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,5 +1,5 @@
1
- import { DEFAULT_LOCALE_CODE as a } from "./datapos-shared.es.js";
2
- import { componentConfigSchema as d } from "./datapos-shared.es.js";
1
+ import { D as a } from "./index-5UsJyepS.js";
2
+ import { c as s } from "./index-5UsJyepS.js";
3
3
  const n = [
4
4
  { id: "alpha", color: "red", labels: { "en-gb": "alpha" } },
5
5
  { id: "beta", color: "amber", labels: { "en-gb": "beta" } },
@@ -20,6 +20,6 @@ function b(l, r = a) {
20
20
  return { id: l, color: "other", label: l };
21
21
  }
22
22
  export {
23
- d as componentConfigSchema,
23
+ s as componentConfigSchema,
24
24
  b as getComponentStatus
25
25
  };
@@ -1,27 +1,55 @@
1
- import { DEFAULT_LOCALE_CODE as a } from "./datapos-shared.es.js";
2
- import { connectorConfigSchema as g } from "./datapos-shared.es.js";
3
- const n = (t) => {
4
- const o = Object.entries(t).filter((e) => typeof e[1] == "string");
5
- return new Map(o);
6
- }, i = [
7
- { id: "application", labels: n({ "en-gb": "Application" }) },
8
- { id: "curatedDataset", labels: n({ "en-gb": "Curated Dataset" }) },
9
- { id: "database", labels: n({ "en-gb": "Database" }) },
10
- { id: "fileStore", labels: n({ "en-gb": "File Store" }) }
11
- ], l = (t, o, e = a) => {
12
- const r = t.get(o);
13
- if (r !== void 0) return r;
14
- if (e !== o)
15
- return t.get(e);
16
- }, c = (t, o = a) => {
17
- const e = i.find((r) => r.id === t);
18
- if (e) {
19
- const r = l(e.labels, o);
20
- return { id: e.id, label: r ?? e.id };
1
+ import { l as n, o as i, n as a, a as d, r as b, b as g, m as u, s as e, d as o, e as s, f as p, g as C, D as l } from "./index-5UsJyepS.js";
2
+ const h = n(["apiKey", "disabled", "oAuth2", "none"]), S = i({
3
+ authMethodId: h,
4
+ activeConnectionCount: o(s()),
5
+ canDescribe: o(C()),
6
+ id: o(e()),
7
+ label: o(p),
8
+ maxConnectionCount: o(s()),
9
+ params: o(d(b(e(), e())))
10
+ }), f = n(["application", "curatedDataset", "database", "fileStore"]), y = n([
11
+ "abortOperation",
12
+ "authenticateConnection",
13
+ "createObject",
14
+ "describeConnection",
15
+ "dropObject",
16
+ "findObjectFolderPath",
17
+ "getReadableStream",
18
+ "getRecord",
19
+ "listNodes",
20
+ "previewObject",
21
+ "removeRecords",
22
+ "retrieveChunks",
23
+ "retrieveRecords",
24
+ "upsertRecords"
25
+ ]), D = n(["bidirectional", "destination", "source", "unknown"]), v = i({
26
+ id: e(),
27
+ label: e()
28
+ }), R = i({
29
+ ...u,
30
+ typeId: g("connector"),
31
+ category: a(v),
32
+ categoryId: f,
33
+ implementations: b(e(), S),
34
+ operations: d(y),
35
+ usageId: D,
36
+ vendorAccountURL: a(e()),
37
+ vendorDocumentationURL: a(e()),
38
+ vendorHomeURL: a(e())
39
+ }), I = [
40
+ { id: "application", labels: { "en-gb": "Application" } },
41
+ { id: "curatedDataset", labels: { "en-gb": "Curated Dataset" } },
42
+ { id: "database", labels: { "en-gb": "Database" } },
43
+ { id: "fileStore", labels: { "en-gb": "File Store" } }
44
+ ], A = (c, m = l) => {
45
+ const t = I.find((r) => r.id === c);
46
+ if (t) {
47
+ const r = t.labels[m] ?? t.labels[l] ?? t.id;
48
+ return { id: t.id, label: r };
21
49
  }
22
- return { id: t, label: t };
50
+ return { id: c, label: c };
23
51
  };
24
52
  export {
25
- g as connectorConfigSchema,
26
- c as getConnectorCategory
53
+ R as connectorConfigSchema,
54
+ A as getConnectorCategory
27
55
  };
@@ -1,577 +1,11 @@
1
- let D;
2
- // @__NO_SIDE_EFFECTS__
3
- function F(n) {
4
- return {
5
- lang: n?.lang ?? D?.lang,
6
- message: n?.message,
7
- abortEarly: n?.abortEarly ?? D?.abortEarly,
8
- abortPipeEarly: n?.abortPipeEarly ?? D?.abortPipeEarly
9
- };
10
- }
11
- let U;
12
- // @__NO_SIDE_EFFECTS__
13
- function G(n) {
14
- return U?.get(n);
15
- }
16
- let N;
17
- // @__NO_SIDE_EFFECTS__
18
- function T(n) {
19
- return N?.get(n);
20
- }
21
- let V;
22
- // @__NO_SIDE_EFFECTS__
23
- function z(n, t) {
24
- return V?.get(n)?.get(t);
25
- }
26
- // @__NO_SIDE_EFFECTS__
27
- function L(n) {
28
- const t = typeof n;
29
- return t === "string" ? `"${n}"` : t === "number" || t === "bigint" || t === "boolean" ? `${n}` : t === "object" || t === "function" ? (n && Object.getPrototypeOf(n)?.constructor?.name) ?? "null" : t;
30
- }
31
- function h(n, t, e, s, o) {
32
- const r = o && "input" in o ? o.input : e.value, i = o?.expected ?? n.expects ?? null, c = o?.received ?? /* @__PURE__ */ L(r), l = {
33
- kind: n.kind,
34
- type: n.type,
35
- input: r,
36
- expected: i,
37
- received: c,
38
- message: `Invalid ${t}: ${i ? `Expected ${i} but r` : "R"}eceived ${c}`,
39
- requirement: n.requirement,
40
- path: o?.path,
41
- issues: o?.issues,
42
- lang: s.lang,
43
- abortEarly: s.abortEarly,
44
- abortPipeEarly: s.abortPipeEarly
45
- }, p = n.kind === "schema", f = o?.message ?? n.message ?? /* @__PURE__ */ z(n.reference, l.lang) ?? (p ? /* @__PURE__ */ T(l.lang) : null) ?? s.message ?? /* @__PURE__ */ G(l.lang);
46
- f !== void 0 && (l.message = typeof f == "function" ? f(l) : f), p && (e.typed = !1), e.issues ? e.issues.push(l) : e.issues = [l];
47
- }
48
- // @__NO_SIDE_EFFECTS__
49
- function m(n) {
50
- return {
51
- version: 1,
52
- vendor: "valibot",
53
- validate(t) {
54
- return n["~run"]({ value: t }, /* @__PURE__ */ F());
55
- }
56
- };
57
- }
58
- // @__NO_SIDE_EFFECTS__
59
- function X(n, t) {
60
- return Object.hasOwn(n, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
61
- }
62
- // @__NO_SIDE_EFFECTS__
63
- function K(n, t) {
64
- const e = [...new Set(n)];
65
- return e.length > 1 ? `(${e.join(` ${t} `)})` : e[0] ?? "never";
66
- }
67
- // @__NO_SIDE_EFFECTS__
68
- function q(n, t, e) {
69
- return typeof n.fallback == "function" ? n.fallback(t, e) : n.fallback;
70
- }
71
- // @__NO_SIDE_EFFECTS__
72
- function M(n, t, e) {
73
- return typeof n.default == "function" ? n.default(t, e) : n.default;
74
- }
75
- // @__NO_SIDE_EFFECTS__
76
- function v(n, t) {
77
- return {
78
- kind: "schema",
79
- type: "array",
80
- reference: v,
81
- expects: "Array",
82
- async: !1,
83
- item: n,
84
- message: t,
85
- get "~standard"() {
86
- return /* @__PURE__ */ m(this);
87
- },
88
- "~run"(e, s) {
89
- const o = e.value;
90
- if (Array.isArray(o)) {
91
- e.typed = !0, e.value = [];
92
- for (let r = 0; r < o.length; r++) {
93
- const i = o[r], c = this.item["~run"]({ value: i }, s);
94
- if (c.issues) {
95
- const l = {
96
- type: "array",
97
- origin: "value",
98
- input: o,
99
- key: r,
100
- value: i
101
- };
102
- for (const p of c.issues)
103
- p.path ? p.path.unshift(l) : p.path = [l], e.issues?.push(p);
104
- if (e.issues || (e.issues = c.issues), s.abortEarly) {
105
- e.typed = !1;
106
- break;
107
- }
108
- }
109
- c.typed || (e.typed = !1), e.value.push(c.value);
110
- }
111
- } else h(this, "type", e, s);
112
- return e;
113
- }
114
- };
115
- }
116
- // @__NO_SIDE_EFFECTS__
117
- function _(n) {
118
- return {
119
- kind: "schema",
120
- type: "boolean",
121
- reference: _,
122
- expects: "boolean",
123
- async: !1,
124
- message: n,
125
- get "~standard"() {
126
- return /* @__PURE__ */ m(this);
127
- },
128
- "~run"(t, e) {
129
- return typeof t.value == "boolean" ? t.typed = !0 : h(this, "type", t, e), t;
130
- }
131
- };
132
- }
133
- // @__NO_SIDE_EFFECTS__
134
- function k(n, t) {
135
- return {
136
- kind: "schema",
137
- type: "literal",
138
- reference: k,
139
- expects: /* @__PURE__ */ L(n),
140
- async: !1,
141
- literal: n,
142
- message: t,
143
- get "~standard"() {
144
- return /* @__PURE__ */ m(this);
145
- },
146
- "~run"(e, s) {
147
- return e.value === this.literal ? e.typed = !0 : h(this, "type", e, s), e;
148
- }
149
- };
150
- }
151
- // @__NO_SIDE_EFFECTS__
152
- function b(n, t) {
153
- return {
154
- kind: "schema",
155
- type: "nullable",
156
- reference: b,
157
- expects: `(${n.expects} | null)`,
158
- async: !1,
159
- wrapped: n,
160
- default: t,
161
- get "~standard"() {
162
- return /* @__PURE__ */ m(this);
163
- },
164
- "~run"(e, s) {
165
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ M(this, e, s)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
166
- }
167
- };
168
- }
169
- // @__NO_SIDE_EFFECTS__
170
- function S(n) {
171
- return {
172
- kind: "schema",
173
- type: "number",
174
- reference: S,
175
- expects: "number",
176
- async: !1,
177
- message: n,
178
- get "~standard"() {
179
- return /* @__PURE__ */ m(this);
180
- },
181
- "~run"(t, e) {
182
- return typeof t.value == "number" && !isNaN(t.value) ? t.typed = !0 : h(this, "type", t, e), t;
183
- }
184
- };
185
- }
186
- // @__NO_SIDE_EFFECTS__
187
- function y(n, t) {
188
- return {
189
- kind: "schema",
190
- type: "object",
191
- reference: y,
192
- expects: "Object",
193
- async: !1,
194
- entries: n,
195
- message: t,
196
- get "~standard"() {
197
- return /* @__PURE__ */ m(this);
198
- },
199
- "~run"(e, s) {
200
- const o = e.value;
201
- if (o && typeof o == "object") {
202
- e.typed = !0, e.value = {};
203
- for (const r in this.entries) {
204
- const i = this.entries[r];
205
- if (r in o || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
206
- const c = r in o ? o[r] : /* @__PURE__ */ M(i), l = i["~run"]({ value: c }, s);
207
- if (l.issues) {
208
- const p = {
209
- type: "object",
210
- origin: "value",
211
- input: o,
212
- key: r,
213
- value: c
214
- };
215
- for (const f of l.issues)
216
- f.path ? f.path.unshift(p) : f.path = [p], e.issues?.push(f);
217
- if (e.issues || (e.issues = l.issues), s.abortEarly) {
218
- e.typed = !1;
219
- break;
220
- }
221
- }
222
- l.typed || (e.typed = !1), e.value[r] = l.value;
223
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ q(i);
224
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (h(this, "key", e, s, {
225
- input: void 0,
226
- expected: `"${r}"`,
227
- path: [{
228
- type: "object",
229
- origin: "key",
230
- input: o,
231
- key: r,
232
- value: o[r]
233
- }]
234
- }), s.abortEarly))
235
- break;
236
- }
237
- } else h(this, "type", e, s);
238
- return e;
239
- }
240
- };
241
- }
242
- // @__NO_SIDE_EFFECTS__
243
- function d(n, t) {
244
- return {
245
- kind: "schema",
246
- type: "optional",
247
- reference: d,
248
- expects: `(${n.expects} | undefined)`,
249
- async: !1,
250
- wrapped: n,
251
- default: t,
252
- get "~standard"() {
253
- return /* @__PURE__ */ m(this);
254
- },
255
- "~run"(e, s) {
256
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ M(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
257
- }
258
- };
259
- }
260
- // @__NO_SIDE_EFFECTS__
261
- function j(n, t, e) {
262
- return {
263
- kind: "schema",
264
- type: "record",
265
- reference: j,
266
- expects: "Object",
267
- async: !1,
268
- key: n,
269
- value: t,
270
- message: e,
271
- get "~standard"() {
272
- return /* @__PURE__ */ m(this);
273
- },
274
- "~run"(s, o) {
275
- const r = s.value;
276
- if (r && typeof r == "object") {
277
- s.typed = !0, s.value = {};
278
- for (const i in r) if (/* @__PURE__ */ X(r, i)) {
279
- const c = r[i], l = this.key["~run"]({ value: i }, o);
280
- if (l.issues) {
281
- const f = {
282
- type: "object",
283
- origin: "key",
284
- input: r,
285
- key: i,
286
- value: c
287
- };
288
- for (const x of l.issues)
289
- x.path = [f], s.issues?.push(x);
290
- if (s.issues || (s.issues = l.issues), o.abortEarly) {
291
- s.typed = !1;
292
- break;
293
- }
294
- }
295
- const p = this.value["~run"]({ value: c }, o);
296
- if (p.issues) {
297
- const f = {
298
- type: "object",
299
- origin: "value",
300
- input: r,
301
- key: i,
302
- value: c
303
- };
304
- for (const x of p.issues)
305
- x.path ? x.path.unshift(f) : x.path = [f], s.issues?.push(x);
306
- if (s.issues || (s.issues = p.issues), o.abortEarly) {
307
- s.typed = !1;
308
- break;
309
- }
310
- }
311
- (!l.typed || !p.typed) && (s.typed = !1), l.typed && (s.value[l.value] = p.value);
312
- }
313
- } else h(this, "type", s, o);
314
- return s;
315
- }
316
- };
317
- }
318
- // @__NO_SIDE_EFFECTS__
319
- function a(n) {
320
- return {
321
- kind: "schema",
322
- type: "string",
323
- reference: a,
324
- expects: "string",
325
- async: !1,
326
- message: n,
327
- get "~standard"() {
328
- return /* @__PURE__ */ m(this);
329
- },
330
- "~run"(t, e) {
331
- return typeof t.value == "string" ? t.typed = !0 : h(this, "type", t, e), t;
332
- }
333
- };
334
- }
335
- // @__NO_SIDE_EFFECTS__
336
- function A(n) {
337
- let t;
338
- if (n) for (const e of n) t ? t.push(...e.issues) : t = e.issues;
339
- return t;
340
- }
341
- // @__NO_SIDE_EFFECTS__
342
- function P(n, t) {
343
- return {
344
- kind: "schema",
345
- type: "union",
346
- reference: P,
347
- expects: /* @__PURE__ */ K(n.map((e) => e.expects), "|"),
348
- async: !1,
349
- options: n,
350
- message: t,
351
- get "~standard"() {
352
- return /* @__PURE__ */ m(this);
353
- },
354
- "~run"(e, s) {
355
- let o, r, i;
356
- for (const c of this.options) {
357
- const l = c["~run"]({ value: e.value }, s);
358
- if (l.typed) if (l.issues) r ? r.push(l) : r = [l];
359
- else {
360
- o = l;
361
- break;
362
- }
363
- else i ? i.push(l) : i = [l];
364
- }
365
- if (o) return o;
366
- if (r) {
367
- if (r.length === 1) return r[0];
368
- h(this, "type", e, s, { issues: /* @__PURE__ */ A(r) }), e.typed = !0;
369
- } else {
370
- if (i?.length === 1) return i[0];
371
- h(this, "type", e, s, { issues: /* @__PURE__ */ A(i) });
372
- }
373
- return e;
374
- }
375
- };
376
- }
377
- const g = (n) => /* @__PURE__ */ P(n.map((t) => /* @__PURE__ */ k(t))), H = /* @__PURE__ */ y({
378
- "en-au": /* @__PURE__ */ a(),
379
- "en-gb": /* @__PURE__ */ a(),
380
- "en-us": /* @__PURE__ */ a(),
381
- "es-es": /* @__PURE__ */ a()
382
- }), C = /* @__PURE__ */ y({
383
- "en-au": /* @__PURE__ */ d(/* @__PURE__ */ a()),
384
- "en-gb": /* @__PURE__ */ d(/* @__PURE__ */ a()),
385
- "en-us": /* @__PURE__ */ d(/* @__PURE__ */ a()),
386
- "es-es": /* @__PURE__ */ d(/* @__PURE__ */ a())
387
- }), J = g(["amber", "green", "red", "other"]), B = g([
388
- "alpha",
389
- "beta",
390
- "generalAvailability",
391
- "notApplicable",
392
- "preAlpha",
393
- "proposed",
394
- "releaseCandidate",
395
- "unavailable",
396
- "underReview"
397
- ]), Q = g([
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
- ]), W = /* @__PURE__ */ y({
422
- id: /* @__PURE__ */ a(),
423
- color: J,
424
- label: /* @__PURE__ */ a()
425
- }), I = {
426
- id: /* @__PURE__ */ a(),
427
- label: C,
428
- description: C,
429
- firstCreatedAt: /* @__PURE__ */ d(/* @__PURE__ */ S()),
430
- icon: /* @__PURE__ */ b(/* @__PURE__ */ a()),
431
- iconDark: /* @__PURE__ */ b(/* @__PURE__ */ a()),
432
- lastUpdatedAt: /* @__PURE__ */ b(/* @__PURE__ */ S()),
433
- status: /* @__PURE__ */ b(W),
434
- statusId: B
435
- }, ce = /* @__PURE__ */ y({
436
- ...I,
437
- typeId: Q
438
- }), w = /* @__PURE__ */ y({
439
- id: /* @__PURE__ */ a(),
440
- label: C,
441
- description: C,
442
- icon: /* @__PURE__ */ b(/* @__PURE__ */ a()),
443
- iconDark: /* @__PURE__ */ b(/* @__PURE__ */ a()),
444
- order: /* @__PURE__ */ S(),
445
- path: /* @__PURE__ */ a()
446
- });
447
- g(["app", "engine", "connector", "context", "presenter", "tool"]);
448
- const O = {
449
- ...I,
450
- version: /* @__PURE__ */ a()
451
- }, Y = g(["apiKey", "disabled", "oAuth2", "none"]), Z = /* @__PURE__ */ y({
452
- authMethodId: Y,
453
- activeConnectionCount: /* @__PURE__ */ d(/* @__PURE__ */ S()),
454
- canDescribe: /* @__PURE__ */ d(/* @__PURE__ */ _()),
455
- id: /* @__PURE__ */ d(/* @__PURE__ */ a()),
456
- label: /* @__PURE__ */ d(H),
457
- maxConnectionCount: /* @__PURE__ */ d(/* @__PURE__ */ S()),
458
- params: /* @__PURE__ */ d(/* @__PURE__ */ v(/* @__PURE__ */ j(/* @__PURE__ */ a(), /* @__PURE__ */ a())))
459
- }), $ = g(["application", "curatedDataset", "database", "fileStore"]), ee = g([
460
- "abortOperation",
461
- "authenticateConnection",
462
- "createObject",
463
- "describeConnection",
464
- "dropObject",
465
- "findObjectFolderPath",
466
- "getReadableStream",
467
- "getRecord",
468
- "listNodes",
469
- "previewObject",
470
- "removeRecords",
471
- "retrieveChunks",
472
- "retrieveRecords",
473
- "upsertRecords"
474
- ]), ne = g(["bidirectional", "destination", "source", "unknown"]), pe = /* @__PURE__ */ y({
475
- ...O,
476
- typeId: /* @__PURE__ */ k("connector"),
477
- category: /* @__PURE__ */ b(/* @__PURE__ */ y({ id: /* @__PURE__ */ a(), label: /* @__PURE__ */ a() })),
478
- categoryId: $,
479
- implementations: /* @__PURE__ */ j(/* @__PURE__ */ a(), Z),
480
- operations: /* @__PURE__ */ v(ee),
481
- usageId: ne,
482
- vendorAccountURL: /* @__PURE__ */ b(/* @__PURE__ */ a()),
483
- vendorDocumentationURL: /* @__PURE__ */ b(/* @__PURE__ */ a()),
484
- vendorHomeURL: /* @__PURE__ */ b(/* @__PURE__ */ a())
485
- }), te = g(["list"]), se = /* @__PURE__ */ y({
486
- ...I,
487
- typeId: /* @__PURE__ */ k("contextModelGroup"),
488
- modelRefs: /* @__PURE__ */ v(w),
489
- order: /* @__PURE__ */ S()
490
- }), fe = /* @__PURE__ */ y({
491
- ...O,
492
- typeId: /* @__PURE__ */ k("context"),
493
- models: /* @__PURE__ */ v(se),
494
- operations: /* @__PURE__ */ v(te)
495
- }), re = g(["list", "render", "setColorMode"]), de = /* @__PURE__ */ y({
496
- ...O,
497
- typeId: /* @__PURE__ */ k("presenter"),
498
- presentations: /* @__PURE__ */ v(w),
499
- operations: /* @__PURE__ */ v(re)
500
- });
501
- function ye() {
502
- return { render: oe };
503
- }
504
- function oe(n, t, e) {
505
- e.textContent = "Cytoscape.js diagram goes here...";
506
- }
507
- function be() {
508
- return { render: ie };
509
- }
510
- function ie(n, t) {
511
- console.log(1111, n), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
512
- }
513
- const u = (n) => new Map(Object.entries(n)), R = (n, t, e = E) => {
514
- const s = n.get(t);
515
- if (s !== void 0) return s;
516
- if (e !== t)
517
- return n.get(e);
518
- }, le = [
519
- { id: "dtv", labels: u({ "en-gb": "Delimited Text" }) },
520
- { id: "e/e", labels: u({ "en-gb": "Entity/Event" }) },
521
- { id: "jsonArray", labels: u({ "en-gb": "JSON Array" }) },
522
- { id: "spss", labels: u({ "en-gb": "SPSS" }) },
523
- { id: "xls", labels: u({ "en-gb": "XLS" }) },
524
- { id: "xlsx", labels: u({ "en-gb": "XLSX" }) },
525
- { id: "xml", labels: u({ "en-gb": "XML" }) }
526
- ], he = (n = E) => {
527
- const t = [];
528
- for (const e of le) {
529
- const s = R(e.labels, n);
530
- t.push({ id: e.id, label: s ?? e.id });
531
- }
532
- return t;
533
- }, ae = [
534
- { id: `
535
- `, labels: u({ "en-gb": "Newline" }) },
536
- { id: "\r", labels: u({ "en-gb": "Carriage Return" }) },
537
- { id: `\r
538
- `, labels: u({ "en-gb": "Carriage Return/Newline" }) }
539
- ], me = (n = E) => {
540
- const t = [];
541
- for (const e of ae) {
542
- const s = R(e.labels, n);
543
- t.push({ id: e.id, label: s ?? e.id });
544
- }
545
- return t;
546
- }, ue = [
547
- { id: ":", labels: u({ "en-gb": "Colon" }) },
548
- { id: ",", labels: u({ "en-gb": "Comma" }) },
549
- { id: "!", labels: u({ "en-gb": "Exclamation Mark" }) },
550
- // { 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 ''?
551
- { id: "0x1E", labels: u({ "en-gb": "Record Separator" }) },
552
- { id: ";", labels: u({ "en-gb": "Semicolon" }) },
553
- { id: " ", labels: u({ "en-gb": "Space" }) },
554
- { id: " ", labels: u({ "en-gb": "Tab" }) },
555
- { id: "_", labels: u({ "en-gb": "Underscore" }) },
556
- { id: "0x1F", labels: u({ "en-gb": "Unit Separator" }) },
557
- { id: "|", labels: u({ "en-gb": "Vertical Bar" }) }
558
- ], ge = (n = E) => {
559
- const t = [];
560
- for (const e of ue) {
561
- const s = R(e.labels, n);
562
- t.push({ id: e.id, label: s ?? e.id });
563
- }
564
- return t;
565
- }, E = "en-gb";
1
+ import { D as s, h as t, j as o, k as r, q as i, p as D, u as m, i as c } from "./index-5UsJyepS.js";
566
2
  export {
567
- E as DEFAULT_LOCALE_CODE,
568
- ce as componentConfigSchema,
569
- pe as connectorConfigSchema,
570
- fe as contextConfigSchema,
571
- he as getDataFormats,
572
- me as getRecordDelimiters,
573
- ge as getValueDelimiters,
574
- de as presenterConfigSchema,
575
- ye as useCytoscapeJS,
576
- be as useDataTable
3
+ s as DEFAULT_LOCALE_CODE,
4
+ t as contextConfigSchema,
5
+ o as getDataFormats,
6
+ r as getRecordDelimiters,
7
+ i as getValueDelimiters,
8
+ D as presenterConfigSchema,
9
+ m as useCytoscapeJS,
10
+ c as useDataTable
577
11
  };