@dpuse/dpuse-shared 1.0.161 → 1.0.163
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/dpuse-shared.es.js
CHANGED
|
@@ -342,18 +342,18 @@ function S(e) {
|
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
/* @__NO_SIDE_EFFECTS__ */
|
|
345
|
-
function
|
|
345
|
+
function C(e) {
|
|
346
346
|
let t;
|
|
347
347
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
348
348
|
else t = n.issues;
|
|
349
349
|
return t;
|
|
350
350
|
}
|
|
351
351
|
/* @__NO_SIDE_EFFECTS__ */
|
|
352
|
-
function
|
|
352
|
+
function w(e, t) {
|
|
353
353
|
return d({
|
|
354
354
|
kind: "schema",
|
|
355
355
|
type: "union",
|
|
356
|
-
reference:
|
|
356
|
+
reference: w,
|
|
357
357
|
expects: /* @__PURE__ */ u(e.map((e) => e.expects), "|"),
|
|
358
358
|
async: !1,
|
|
359
359
|
options: e,
|
|
@@ -373,15 +373,15 @@ function C(e, t) {
|
|
|
373
373
|
if (n) return n;
|
|
374
374
|
if (r) {
|
|
375
375
|
if (r.length === 1) return r[0];
|
|
376
|
-
s(this, "type", e, t, { issues: /* @__PURE__ */
|
|
376
|
+
s(this, "type", e, t, { issues: /* @__PURE__ */ C(r) }), e.typed = !0;
|
|
377
377
|
} else if (i?.length === 1) return i[0];
|
|
378
|
-
else s(this, "type", e, t, { issues: /* @__PURE__ */
|
|
378
|
+
else s(this, "type", e, t, { issues: /* @__PURE__ */ C(i) });
|
|
379
379
|
return e;
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
/* @__NO_SIDE_EFFECTS__ */
|
|
384
|
-
function
|
|
384
|
+
function te(...e) {
|
|
385
385
|
return d({
|
|
386
386
|
...e[0],
|
|
387
387
|
pipe: e,
|
|
@@ -399,10 +399,10 @@ function ne(...e) {
|
|
|
399
399
|
}
|
|
400
400
|
//#endregion
|
|
401
401
|
//#region src/locale/locale.schema.ts
|
|
402
|
-
var
|
|
402
|
+
var T = /* @__PURE__ */ x({
|
|
403
403
|
en: /* @__PURE__ */ S(),
|
|
404
404
|
es: /* @__PURE__ */ S()
|
|
405
|
-
}),
|
|
405
|
+
}), ne = {
|
|
406
406
|
id: /* @__PURE__ */ S(),
|
|
407
407
|
label: /* @__PURE__ */ x({
|
|
408
408
|
en: /* @__PURE__ */ y(/* @__PURE__ */ S()),
|
|
@@ -414,7 +414,7 @@ var w = /* @__PURE__ */ x({
|
|
|
414
414
|
}),
|
|
415
415
|
icon: /* @__PURE__ */ _(/* @__PURE__ */ S()),
|
|
416
416
|
iconDark: /* @__PURE__ */ _(/* @__PURE__ */ S())
|
|
417
|
-
},
|
|
417
|
+
}, E = (e) => /* @__PURE__ */ w(e.map((e) => /* @__PURE__ */ g(e))), re = E([
|
|
418
418
|
"app",
|
|
419
419
|
"connector",
|
|
420
420
|
"connectorConnection",
|
|
@@ -436,32 +436,32 @@ var w = /* @__PURE__ */ x({
|
|
|
436
436
|
"presenter",
|
|
437
437
|
"presenterPresentation",
|
|
438
438
|
"tool"
|
|
439
|
-
]),
|
|
439
|
+
]), ie = E([
|
|
440
440
|
"danger",
|
|
441
441
|
"success",
|
|
442
442
|
"warning"
|
|
443
|
-
]),
|
|
443
|
+
]), ae = E([
|
|
444
444
|
"alpha",
|
|
445
445
|
"beta",
|
|
446
446
|
"releaseCandidate",
|
|
447
447
|
"generalAvailability"
|
|
448
|
-
]),
|
|
449
|
-
color:
|
|
448
|
+
]), oe = /* @__PURE__ */ x({
|
|
449
|
+
color: ie,
|
|
450
450
|
label: /* @__PURE__ */ S()
|
|
451
|
-
}),
|
|
452
|
-
...
|
|
453
|
-
typeId:
|
|
454
|
-
},
|
|
455
|
-
...
|
|
451
|
+
}), D = {
|
|
452
|
+
...ne,
|
|
453
|
+
typeId: re
|
|
454
|
+
}, O = /* @__PURE__ */ x({
|
|
455
|
+
...D,
|
|
456
456
|
order: /* @__PURE__ */ v(),
|
|
457
457
|
path: /* @__PURE__ */ S()
|
|
458
|
-
}),
|
|
459
|
-
...
|
|
458
|
+
}), k = {
|
|
459
|
+
...D,
|
|
460
460
|
firstCreatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
|
|
461
461
|
lastUpdatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
|
|
462
|
-
status: /* @__PURE__ */ _(
|
|
463
|
-
statusId: /* @__PURE__ */ _(
|
|
464
|
-
},
|
|
462
|
+
status: /* @__PURE__ */ _(oe),
|
|
463
|
+
statusId: /* @__PURE__ */ _(ae)
|
|
464
|
+
}, se = /* @__PURE__ */ x({ ...k }), ce = [
|
|
465
465
|
{
|
|
466
466
|
id: "alpha",
|
|
467
467
|
color: "danger",
|
|
@@ -495,8 +495,8 @@ var w = /* @__PURE__ */ x({
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
];
|
|
498
|
-
function
|
|
499
|
-
let n =
|
|
498
|
+
function le(e, t = "en") {
|
|
499
|
+
let n = ce.find((t) => t.id === e);
|
|
500
500
|
if (n) {
|
|
501
501
|
let e = n.labels[t] ?? n.labels.en ?? n.id;
|
|
502
502
|
return {
|
|
@@ -511,7 +511,7 @@ function fe(e, t = "en") {
|
|
|
511
511
|
}
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/component/dataView/dataFormatIcons.ts
|
|
514
|
-
var
|
|
514
|
+
var ue = {
|
|
515
515
|
arrow: {
|
|
516
516
|
icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1350 1181.25\"><polygon fill=\"#000\" points=\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\"/><polygon fill=\"#000\" points=\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\"/><polygon fill=\"#000\" points=\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\"/></svg>",
|
|
517
517
|
iconDark: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1350 1181.25\"><polygon fill=\"#fff\" points=\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\"/><polygon fill=\"#fff\" points=\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\"/><polygon fill=\"#fff\" points=\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\"/></svg>"
|
|
@@ -550,7 +550,7 @@ var pe = {
|
|
|
550
550
|
},
|
|
551
551
|
sqlite: {
|
|
552
552
|
icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"><defs><linearGradient id=\"SVGwuIXyeeC\" x1=\"-118.318\" x2=\"-116.751\" y1=\"45.638\" y2=\"45.638\" gradientTransform=\"matrix(0 11.486 11.486 0 -510.889 1363.307)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#97d9f6\"/><stop offset=\".92\" stop-color=\"#0f80cc\"/><stop offset=\"1\" stop-color=\"#0f80cc\"/></linearGradient></defs><path fill=\"#0f80cc\" d=\"M23.192 3.242H5.623a2.147 2.147 0 0 0-2.141 2.141v19.376A2.147 2.147 0 0 0 5.623 26.9h11.572c-.132-5.758 1.835-16.932 5.997-23.658\"/><path fill=\"url(#SVGwuIXyeeC)\" d=\"M22.554 3.867H5.623a1.52 1.52 0 0 0-1.516 1.516v17.962a42 42 0 0 1 13.569-2.684a123.6 123.6 0 0 1 4.878-16.794\"/><path fill=\"#003b57\" d=\"M27.29 2.608c-1.2-1.073-2.66-.642-4.1.634q-.32.286-.638.625A25.4 25.4 0 0 0 17.1 15a10 10 0 0 1 .634 1.822c.036.14.069.272.1.384c.062.265.1.437.1.437s-.022-.083-.113-.346l-.059-.17l-.038-.094c-.16-.373-.6-1.16-.8-1.5c-.167.493-.315.954-.438 1.371a12 12 0 0 1 .908 2.8s-.03-.115-.171-.515a19 19 0 0 0-.9-1.708a4 4 0 0 0-.264 1.724a6 6 0 0 1 .493 1.383c.334 1.283.566 2.846.566 2.846l.02.263a26 26 0 0 0 .065 3.205a11.4 11.4 0 0 0 .584 3.1l.18-.1a13.9 13.9 0 0 1-.478-4.628a35.3 35.3 0 0 1 1.938-9.688c2.01-5.308 4.8-9.568 7.35-11.6c-2.326 2.1-5.474 8.9-6.417 11.418a45.7 45.7 0 0 0-2.254 8A6.2 6.2 0 0 1 21.39 20s1.233-1.521 2.674-3.693a26 26 0 0 0-2.755.733c-.7.294-.889.394-.889.394a24 24 0 0 1 4.215-2.007c2.676-4.215 5.592-10.2 2.656-12.824\"/></svg>",
|
|
553
|
-
iconDark:
|
|
553
|
+
iconDark: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"><defs><linearGradient id=\"SVGwuIXyeeCw\" x1=\"-118.318\" x2=\"-116.751\" y1=\"45.638\" y2=\"45.638\" gradientTransform=\"matrix(0 11.486 11.486 0 -510.889 1363.307)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#97d9f6\"/><stop offset=\".92\" stop-color=\"#0f80cc\"/><stop offset=\"1\" stop-color=\"#0f80cc\"/></linearGradient></defs><path fill=\"#0f80cc\" d=\"M23.192 3.242H5.623a2.147 2.147 0 0 0-2.141 2.141v19.376A2.147 2.147 0 0 0 5.623 26.9h11.572c-.132-5.758 1.835-16.932 5.997-23.658\"/><path fill=\"url(#SVGwuIXyeeCw)\" d=\"M22.554 3.867H5.623a1.52 1.52 0 0 0-1.516 1.516v17.962a42 42 0 0 1 13.569-2.684a123.6 123.6 0 0 1 4.878-16.794\"/><path fill=\"#fff\" d=\"M27.29 2.608c-1.2-1.073-2.66-.642-4.1.634q-.32.286-.638.625A25.4 25.4 0 0 0 17.1 15a10 10 0 0 1 .634 1.822c.036.14.069.272.1.384c.062.265.1.437.1.437s-.022-.083-.113-.346l-.059-.17l-.038-.094c-.16-.373-.6-1.16-.8-1.5c-.167.493-.315.954-.438 1.371a12 12 0 0 1 .908 2.8s-.03-.115-.171-.515a19 19 0 0 0-.9-1.708a4 4 0 0 0-.264 1.724a6 6 0 0 1 .493 1.383c.334 1.283.566 2.846.566 2.846l.02.263a26 26 0 0 0 .065 3.205a11.4 11.4 0 0 0 .584 3.1l.18-.1a13.9 13.9 0 0 1-.478-4.628a35.3 35.3 0 0 1 1.938-9.688c2.01-5.308 4.8-9.568 7.35-11.6c-2.326 2.1-5.474 8.9-6.417 11.418a45.7 45.7 0 0 0-2.254 8A6.2 6.2 0 0 1 21.39 20s1.233-1.521 2.674-3.693a26 26 0 0 0-2.755.733c-.7.294-.889.394-.889.394a24 24 0 0 1 4.215-2.007c2.676-4.215 5.592-10.2 2.656-12.824\"/></svg>"
|
|
554
554
|
},
|
|
555
555
|
xlsx: {
|
|
556
556
|
icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"><defs><linearGradient id=\"SVGSuUii0pt\" x1=\"4.494\" x2=\"13.832\" y1=\"-2092.086\" y2=\"-2075.914\" gradientTransform=\"translate(0 2100)\" gradientUnits=\"userSpaceOnUse\"><stop offset=\"0\" stop-color=\"#18884f\"/><stop offset=\".5\" stop-color=\"#117e43\"/><stop offset=\"1\" stop-color=\"#0b6631\"/></linearGradient></defs><path fill=\"#185c37\" d=\"M19.581 15.35L8.512 13.4v14.409A1.19 1.19 0 0 0 9.705 29h19.1A1.19 1.19 0 0 0 30 27.809V22.5Z\"/><path fill=\"#21a366\" d=\"M19.581 3H9.705a1.19 1.19 0 0 0-1.193 1.191V9.5L19.581 16l5.861 1.95L30 16V9.5Z\"/><path fill=\"#107c41\" d=\"M8.512 9.5h11.069V16H8.512Z\"/><path d=\"M16.434 8.2H8.512v16.25h7.922a1.2 1.2 0 0 0 1.194-1.191V9.391A1.2 1.2 0 0 0 16.434 8.2\" opacity=\".1\"/><path d=\"M15.783 8.85H8.512V25.1h7.271a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191\" opacity=\".2\"/><path d=\"M15.783 8.85H8.512V23.8h7.271a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191\" opacity=\".2\"/><path d=\"M15.132 8.85h-6.62V23.8h6.62a1.2 1.2 0 0 0 1.194-1.191V10.041a1.2 1.2 0 0 0-1.194-1.191\" opacity=\".2\"/><path fill=\"url(#SVGSuUii0pt)\" d=\"M3.194 8.85h11.938a1.193 1.193 0 0 1 1.194 1.191v11.918a1.193 1.193 0 0 1-1.194 1.191H3.194A1.19 1.19 0 0 1 2 21.959V10.041A1.19 1.19 0 0 1 3.194 8.85\"/><path fill=\"#fff\" d=\"m5.7 19.873l2.511-3.884l-2.3-3.862h1.847L9.013 14.6c.116.234.2.408.238.524h.017q.123-.281.26-.546l1.342-2.447h1.7l-2.359 3.84l2.419 3.905h-1.809l-1.45-2.711A2.4 2.4 0 0 1 9.2 16.8h-.024a1.7 1.7 0 0 1-.168.351l-1.493 2.722Z\"/><path fill=\"#33c481\" d=\"M28.806 3h-9.225v6.5H30V4.191A1.19 1.19 0 0 0 28.806 3\"/><path fill=\"#107c41\" d=\"M19.581 16H30v6.5H19.581Z\"/></svg>",
|
|
@@ -564,7 +564,7 @@ var pe = {
|
|
|
564
564
|
//#endregion
|
|
565
565
|
//#region src/component/dataView/index.ts
|
|
566
566
|
n({ en: "Arrow" }), n({ en: "Avro" }), n({ en: "Delimited text (CSV, TSV…)" }), n({ en: "JSON" }), n({ en: "JSON Lines (JSONL)" }), n({ en: "Markdown (MD)" }), n({ en: "OpenDocument spreadsheet (ODS)" }), n({ en: "Parquet" }), n({ en: "SPSS (SAV)" }), n({ en: "SQLite" }), n({ en: "Excel (XLSX, XLSM)" }), n({ en: "XML" });
|
|
567
|
-
var
|
|
567
|
+
var A = [
|
|
568
568
|
",",
|
|
569
569
|
";",
|
|
570
570
|
" ",
|
|
@@ -576,7 +576,7 @@ var D = [
|
|
|
576
576
|
"0x1F",
|
|
577
577
|
"0x1E"
|
|
578
578
|
];
|
|
579
|
-
n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/Newline" }), n({ en: "Colon" }), n({ en: "Comma" }), n({ en: "Exclamation Mark" }), n({ en: "Record Separator" }), n({ en: "Semicolon" }), n({ en: "Space" }), n({ en: "Tab" }), n({ en: "Underscore" }), n({ en: "Unit Separator" }), n({ en: "Vertical Bar" }),
|
|
579
|
+
n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/Newline" }), n({ en: "Colon" }), n({ en: "Comma" }), n({ en: "Exclamation Mark" }), n({ en: "Record Separator" }), n({ en: "Semicolon" }), n({ en: "Space" }), n({ en: "Tab" }), n({ en: "Underscore" }), n({ en: "Unit Separator" }), n({ en: "Vertical Bar" }), E([
|
|
580
580
|
"app",
|
|
581
581
|
"engine",
|
|
582
582
|
"connector",
|
|
@@ -586,17 +586,17 @@ n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/New
|
|
|
586
586
|
]);
|
|
587
587
|
//#endregion
|
|
588
588
|
//#region src/component/module/moduleConfig.schema.ts
|
|
589
|
-
var
|
|
590
|
-
...
|
|
589
|
+
var j = {
|
|
590
|
+
...k,
|
|
591
591
|
vendorAccountURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
|
|
592
592
|
vendorDocumentationURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
|
|
593
593
|
vendorHomeURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
|
|
594
594
|
version: /* @__PURE__ */ S()
|
|
595
595
|
};
|
|
596
|
-
({ ...
|
|
596
|
+
({ ...j });
|
|
597
597
|
//#endregion
|
|
598
598
|
//#region src/component/module/connector/connectorConfig.schema.ts
|
|
599
|
-
var
|
|
599
|
+
var de = E([
|
|
600
600
|
"abortOperation",
|
|
601
601
|
"auditObjectContent",
|
|
602
602
|
"closeStore",
|
|
@@ -616,22 +616,22 @@ var me = T([
|
|
|
616
616
|
"retrieveChunks",
|
|
617
617
|
"retrieveRecords",
|
|
618
618
|
"upsertRecords"
|
|
619
|
-
]),
|
|
619
|
+
]), fe = E([
|
|
620
620
|
"application",
|
|
621
621
|
"curatedDataset",
|
|
622
622
|
"database",
|
|
623
623
|
"fileStore"
|
|
624
|
-
]),
|
|
624
|
+
]), pe = /* @__PURE__ */ x({ label: T }), me = E([
|
|
625
625
|
"apiEndpoint",
|
|
626
626
|
"file",
|
|
627
627
|
"table"
|
|
628
|
-
]),
|
|
628
|
+
]), he = E([
|
|
629
629
|
"bidirectional",
|
|
630
630
|
"destination",
|
|
631
631
|
"source",
|
|
632
632
|
"unknown"
|
|
633
|
-
]),
|
|
634
|
-
authMethodId:
|
|
633
|
+
]), ge = /* @__PURE__ */ x({ label: T }), _e = /* @__PURE__ */ x({
|
|
634
|
+
authMethodId: E([
|
|
635
635
|
"apiKey",
|
|
636
636
|
"disabled",
|
|
637
637
|
"oAuth2",
|
|
@@ -640,70 +640,70 @@ var me = T([
|
|
|
640
640
|
activeConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ v()),
|
|
641
641
|
canDescribe: /* @__PURE__ */ y(/* @__PURE__ */ ee()),
|
|
642
642
|
id: /* @__PURE__ */ y(/* @__PURE__ */ S()),
|
|
643
|
-
label: /* @__PURE__ */ y(
|
|
643
|
+
label: /* @__PURE__ */ y(T),
|
|
644
644
|
maxConnectionCount: /* @__PURE__ */ _(/* @__PURE__ */ v()),
|
|
645
645
|
params: /* @__PURE__ */ y(/* @__PURE__ */ h(/* @__PURE__ */ b(/* @__PURE__ */ S(), /* @__PURE__ */ S())))
|
|
646
|
-
}),
|
|
647
|
-
...
|
|
646
|
+
}), ve = /* @__PURE__ */ x({
|
|
647
|
+
...j,
|
|
648
648
|
typeId: /* @__PURE__ */ g("connector"),
|
|
649
|
-
actionNames: /* @__PURE__ */ h(
|
|
650
|
-
category: /* @__PURE__ */ _(
|
|
651
|
-
categoryId:
|
|
652
|
-
implementations: /* @__PURE__ */ b(/* @__PURE__ */ S(),
|
|
653
|
-
itemTypeId:
|
|
654
|
-
usage: /* @__PURE__ */ _(
|
|
655
|
-
usageId: /* @__PURE__ */ _(
|
|
656
|
-
}),
|
|
657
|
-
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${
|
|
658
|
-
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) =>
|
|
659
|
-
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () =>
|
|
660
|
-
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () =>
|
|
661
|
-
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () =>
|
|
662
|
-
],
|
|
649
|
+
actionNames: /* @__PURE__ */ h(de),
|
|
650
|
+
category: /* @__PURE__ */ _(pe),
|
|
651
|
+
categoryId: fe,
|
|
652
|
+
implementations: /* @__PURE__ */ b(/* @__PURE__ */ S(), _e),
|
|
653
|
+
itemTypeId: me,
|
|
654
|
+
usage: /* @__PURE__ */ _(ge),
|
|
655
|
+
usageId: /* @__PURE__ */ _(he)
|
|
656
|
+
}), M = 2048, N = "[REDACTED]", ye = 10, P = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, be = [
|
|
657
|
+
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
|
|
658
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => P.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
|
|
659
|
+
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
|
|
660
|
+
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
|
|
661
|
+
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
|
|
662
|
+
], F = class extends Error {
|
|
663
663
|
data;
|
|
664
664
|
locator;
|
|
665
665
|
constructor(e, t, n, r) {
|
|
666
666
|
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
667
667
|
}
|
|
668
|
-
},
|
|
668
|
+
}, I = class extends F {
|
|
669
669
|
constructor(e, t, n, r) {
|
|
670
670
|
super(e, t, n, r), this.name = "AppError";
|
|
671
671
|
}
|
|
672
|
-
},
|
|
672
|
+
}, L = class extends F {
|
|
673
673
|
constructor(e, t, n, r) {
|
|
674
674
|
super(e, t, n, r), this.name = "APIError";
|
|
675
675
|
}
|
|
676
|
-
},
|
|
676
|
+
}, R = class extends F {
|
|
677
677
|
constructor(e, t, n, r) {
|
|
678
678
|
super(e, t, n, r), this.name = "EngineError";
|
|
679
679
|
}
|
|
680
|
-
},
|
|
680
|
+
}, z = class extends F {
|
|
681
681
|
constructor(e, t, n, r) {
|
|
682
682
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
683
683
|
}
|
|
684
|
-
},
|
|
684
|
+
}, B = class extends F {
|
|
685
685
|
constructor(e, t, n, r) {
|
|
686
686
|
super(e, t, n, r), this.name = "FetchError";
|
|
687
687
|
}
|
|
688
688
|
};
|
|
689
|
-
async function
|
|
689
|
+
async function xe(e, t, n) {
|
|
690
690
|
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
691
691
|
try {
|
|
692
692
|
a = await e.text();
|
|
693
693
|
} catch (e) {
|
|
694
|
-
a = `<body unavailable: ${
|
|
694
|
+
a = `<body unavailable: ${V(e).message}>`;
|
|
695
695
|
}
|
|
696
|
-
return new
|
|
696
|
+
return new B(i, n, { body: ke(a) });
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Se(e) {
|
|
699
699
|
return e.map((e) => e.message).join(" ");
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function Ce(e) {
|
|
702
702
|
try {
|
|
703
703
|
e();
|
|
704
704
|
} catch {}
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function V(e) {
|
|
707
707
|
if (e instanceof Error) return e;
|
|
708
708
|
if (typeof e == "string") return Error(e);
|
|
709
709
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
@@ -715,24 +715,24 @@ function R(e) {
|
|
|
715
715
|
}
|
|
716
716
|
return /* @__PURE__ */ Error("Unknown error");
|
|
717
717
|
}
|
|
718
|
-
function
|
|
719
|
-
let t = /* @__PURE__ */ new Set(), n = [], r =
|
|
718
|
+
function we(e) {
|
|
719
|
+
let t = /* @__PURE__ */ new Set(), n = [], r = V(e);
|
|
720
720
|
for (; r != null && !t.has(r);) {
|
|
721
721
|
t.add(r);
|
|
722
|
-
let [e, i] =
|
|
722
|
+
let [e, i] = Ae(r), a = Oe(e);
|
|
723
723
|
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
724
724
|
}
|
|
725
725
|
return n;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function Te(e) {
|
|
728
728
|
let t;
|
|
729
729
|
for (let n of e.toReversed()) {
|
|
730
|
-
let e =
|
|
730
|
+
let e = De(n, t);
|
|
731
731
|
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
732
732
|
}
|
|
733
733
|
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Ee(e) {
|
|
736
736
|
let t;
|
|
737
737
|
try {
|
|
738
738
|
t = JSON.stringify(e);
|
|
@@ -741,13 +741,13 @@ function ke(e) {
|
|
|
741
741
|
}
|
|
742
742
|
return t === "" && (t = "Unknown error"), t;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function De(e, t) {
|
|
745
745
|
switch (e.name) {
|
|
746
|
-
case "APIError": return new
|
|
747
|
-
case "AppError": return new
|
|
748
|
-
case "ConnectorError": return new
|
|
749
|
-
case "EngineError": return new
|
|
750
|
-
case "FetchError": return new
|
|
746
|
+
case "APIError": return new L(e.message, e.locator, e.data, { cause: t });
|
|
747
|
+
case "AppError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
748
|
+
case "ConnectorError": return new z(e.message, e.locator, e.data, { cause: t });
|
|
749
|
+
case "EngineError": return new R(e.message, e.locator, e.data, { cause: t });
|
|
750
|
+
case "FetchError": return new B(e.message, e.locator, e.data, { cause: t });
|
|
751
751
|
default: {
|
|
752
752
|
let n = e.name;
|
|
753
753
|
return new class extends Error {
|
|
@@ -756,29 +756,29 @@ function Ae(e, t) {
|
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Oe(e) {
|
|
760
760
|
let { data: t, message: n, stack: r } = e;
|
|
761
761
|
return {
|
|
762
762
|
...e,
|
|
763
|
-
data: t === void 0 ? void 0 :
|
|
764
|
-
message:
|
|
765
|
-
stack: r === void 0 ? void 0 :
|
|
763
|
+
data: t === void 0 ? void 0 : U(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
764
|
+
message: H(n),
|
|
765
|
+
stack: r === void 0 ? void 0 : H(r)
|
|
766
766
|
};
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function H(e) {
|
|
769
769
|
let t = e;
|
|
770
|
-
for (let [e, n] of
|
|
770
|
+
for (let [e, n] of be) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
771
771
|
return t;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
774
|
-
return typeof e == "string" ?
|
|
773
|
+
function U(e, t, n) {
|
|
774
|
+
return typeof e == "string" ? H(e) : typeof e != "object" || !e ? e : n >= ye ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => U(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && P.test(e) ? N : U(r, t, n + 1)])));
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
if (e != null && e !== "") return e.length >
|
|
776
|
+
function ke(e) {
|
|
777
|
+
if (e != null && e !== "") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
let t = e.cause == null ? null :
|
|
781
|
-
if (e instanceof
|
|
779
|
+
function Ae(e) {
|
|
780
|
+
let t = e.cause == null ? null : V(e.cause);
|
|
781
|
+
if (e instanceof F) return [{
|
|
782
782
|
data: e.data,
|
|
783
783
|
locator: e.locator,
|
|
784
784
|
message: e.message,
|
|
@@ -795,12 +795,12 @@ function Ne(e) {
|
|
|
795
795
|
}, t] : [{
|
|
796
796
|
data: n,
|
|
797
797
|
locator: "",
|
|
798
|
-
message:
|
|
798
|
+
message: Ee(e),
|
|
799
799
|
name: "Error",
|
|
800
800
|
stack: void 0
|
|
801
801
|
}, null];
|
|
802
802
|
}
|
|
803
|
-
var
|
|
803
|
+
var je = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(E([
|
|
804
804
|
"arrow",
|
|
805
805
|
"avro",
|
|
806
806
|
"dtv",
|
|
@@ -813,16 +813,16 @@ var Pe = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h
|
|
|
813
813
|
"sqlite",
|
|
814
814
|
"xlsx",
|
|
815
815
|
"xml"
|
|
816
|
-
])), /* @__PURE__ */ f(1)) }),
|
|
817
|
-
...
|
|
816
|
+
])), /* @__PURE__ */ f(1)) }), Me = /* @__PURE__ */ h(/* @__PURE__ */ S()), Ne = /* @__PURE__ */ x({
|
|
817
|
+
...j,
|
|
818
818
|
typeId: /* @__PURE__ */ g("tool"),
|
|
819
|
-
actionNames: /* @__PURE__ */ y(
|
|
820
|
-
parser: /* @__PURE__ */ y(
|
|
819
|
+
actionNames: /* @__PURE__ */ y(Me),
|
|
820
|
+
parser: /* @__PURE__ */ y(je)
|
|
821
821
|
});
|
|
822
822
|
//#endregion
|
|
823
823
|
//#region src/component/module/tool/delimitedText.ts
|
|
824
|
-
async function
|
|
825
|
-
let r =
|
|
824
|
+
async function Pe(e, t, n) {
|
|
825
|
+
let r = Fe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ie(e, t.valueDelimiterIds, t.isComplete, n);
|
|
826
826
|
return {
|
|
827
827
|
issues: i,
|
|
828
828
|
parsedRecords: a,
|
|
@@ -830,16 +830,16 @@ async function Le(e, t, n) {
|
|
|
830
830
|
valueDelimiterId: o
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function Fe(e) {
|
|
834
834
|
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
835
835
|
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
836
836
|
}
|
|
837
|
-
async function
|
|
837
|
+
async function Ie(e, t, n, r) {
|
|
838
838
|
let i, a, o, s = [], c, l = !1;
|
|
839
839
|
for (let u of t) {
|
|
840
840
|
let { issues: t, records: d } = await r(e, u, n);
|
|
841
841
|
if (t.length > 0) {
|
|
842
|
-
c =
|
|
842
|
+
c = Le(c, {
|
|
843
843
|
delimiter: u,
|
|
844
844
|
issues: t,
|
|
845
845
|
records: d
|
|
@@ -847,7 +847,7 @@ async function ze(e, t, n, r) {
|
|
|
847
847
|
continue;
|
|
848
848
|
}
|
|
849
849
|
if (l = !0, d.length === 0) continue;
|
|
850
|
-
let { averageValueCount: f, sumOfValueCountDiffs: p } =
|
|
850
|
+
let { averageValueCount: f, sumOfValueCountDiffs: p } = Re(d);
|
|
851
851
|
(!o || p <= o) && (!a || f > a) && (i = u, a = f, o = p, s = d);
|
|
852
852
|
}
|
|
853
853
|
if (!l && c != null) {
|
|
@@ -855,19 +855,19 @@ async function ze(e, t, n, r) {
|
|
|
855
855
|
return {
|
|
856
856
|
issues: t,
|
|
857
857
|
parsedRecords: n,
|
|
858
|
-
valueDelimiterId:
|
|
858
|
+
valueDelimiterId: W(n) ? e : void 0
|
|
859
859
|
};
|
|
860
860
|
}
|
|
861
861
|
return {
|
|
862
862
|
issues: [],
|
|
863
863
|
parsedRecords: s,
|
|
864
|
-
valueDelimiterId: i != null &&
|
|
864
|
+
valueDelimiterId: i != null && W(s) ? i : void 0
|
|
865
865
|
};
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Le(e, t) {
|
|
868
868
|
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function Re(e) {
|
|
871
871
|
let t = 0, n = 0, r;
|
|
872
872
|
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
873
873
|
return {
|
|
@@ -875,7 +875,7 @@ function Ve(e) {
|
|
|
875
875
|
sumOfValueCountDiffs: n
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function W(e) {
|
|
879
879
|
let t = /* @__PURE__ */ new Map();
|
|
880
880
|
for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
|
|
881
881
|
let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
|
|
@@ -883,31 +883,31 @@ function V(e) {
|
|
|
883
883
|
}
|
|
884
884
|
//#endregion
|
|
885
885
|
//#region src/component/module/tool/index.ts
|
|
886
|
-
var
|
|
887
|
-
function
|
|
886
|
+
var ze = "https://engine-eu.dpuse.app/tools", G = "dpuse-tool-";
|
|
887
|
+
function K(e, t) {
|
|
888
888
|
return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
|
|
889
889
|
}
|
|
890
|
-
function
|
|
891
|
-
let r =
|
|
890
|
+
function q(e, t, n) {
|
|
891
|
+
let r = K(e, t), [i] = r;
|
|
892
892
|
if (i === void 0) {
|
|
893
893
|
let n = {
|
|
894
894
|
availableToolIds: e.map((e) => e.id),
|
|
895
895
|
dataFormatId: t
|
|
896
896
|
};
|
|
897
|
-
throw new
|
|
897
|
+
throw new I(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
898
898
|
}
|
|
899
899
|
return r.find((e) => e.id === n) ?? i;
|
|
900
900
|
}
|
|
901
|
-
async function
|
|
902
|
-
let n = `${
|
|
901
|
+
async function Be(e, t) {
|
|
902
|
+
let n = `${G}${t}`, r = e.find((e) => e.id === n);
|
|
903
903
|
if (!r) {
|
|
904
904
|
let r = {
|
|
905
905
|
availableToolIds: e.map((e) => e.id),
|
|
906
906
|
toolName: n
|
|
907
907
|
};
|
|
908
|
-
throw new
|
|
908
|
+
throw new I(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
909
909
|
}
|
|
910
|
-
let i = `${
|
|
910
|
+
let i = `${ze}/${t}_v${r.version}/${n}.es.js`;
|
|
911
911
|
try {
|
|
912
912
|
return new (await (import(
|
|
913
913
|
/* @vite-ignore */
|
|
@@ -919,13 +919,13 @@ async function G(e, t) {
|
|
|
919
919
|
url: i,
|
|
920
920
|
version: r.version
|
|
921
921
|
};
|
|
922
|
-
throw new
|
|
922
|
+
throw new I(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
//#endregion
|
|
926
926
|
//#region src/component/module/connector/objectParsing.ts
|
|
927
|
-
var
|
|
928
|
-
async function
|
|
927
|
+
var Ve = "\n", J = ",";
|
|
928
|
+
async function He(e) {
|
|
929
929
|
let { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o } = e, { dataFormatId: s, text: c } = n, l = n.bytes.length;
|
|
930
930
|
if (l === 0) return {
|
|
931
931
|
asAt: t,
|
|
@@ -936,7 +936,7 @@ async function We(e) {
|
|
|
936
936
|
encodingConfidenceLevel: void 0,
|
|
937
937
|
fileType: void 0,
|
|
938
938
|
hasHeaders: !1,
|
|
939
|
-
recordDelimiterId:
|
|
939
|
+
recordDelimiterId: Ve,
|
|
940
940
|
parsedRecords: [],
|
|
941
941
|
inferenceRecords: [],
|
|
942
942
|
issues: [{
|
|
@@ -947,9 +947,9 @@ async function We(e) {
|
|
|
947
947
|
}],
|
|
948
948
|
size: 0,
|
|
949
949
|
text: void 0,
|
|
950
|
-
valueDelimiterId:
|
|
950
|
+
valueDelimiterId: J
|
|
951
951
|
};
|
|
952
|
-
if (s == null || c == null ||
|
|
952
|
+
if (s == null || c == null || K(o, s).length === 0) return {
|
|
953
953
|
asAt: t,
|
|
954
954
|
columnConfigs: [],
|
|
955
955
|
dataFormatId: s ?? "unknown",
|
|
@@ -966,14 +966,14 @@ async function We(e) {
|
|
|
966
966
|
text: c,
|
|
967
967
|
valueDelimiterId: void 0
|
|
968
968
|
};
|
|
969
|
-
let { parser: u, parserId: d } = await
|
|
969
|
+
let { parser: u, parserId: d } = await Y(o, s, i), f = await u.parseText(c, {
|
|
970
970
|
dataFormatId: s,
|
|
971
971
|
isComplete: n.isComplete,
|
|
972
|
-
valueDelimiterIds:
|
|
972
|
+
valueDelimiterIds: A
|
|
973
973
|
}), p = s === "dtv", m = p && f.valueDelimiterId == null ? await u.parseText(c, {
|
|
974
974
|
dataFormatId: s,
|
|
975
975
|
isComplete: n.isComplete,
|
|
976
|
-
valueDelimiterIds: [
|
|
976
|
+
valueDelimiterIds: [J]
|
|
977
977
|
}) : f, h = r(m.parsedRecords);
|
|
978
978
|
return {
|
|
979
979
|
asAt: t,
|
|
@@ -991,11 +991,11 @@ async function We(e) {
|
|
|
991
991
|
issues: m.issues,
|
|
992
992
|
size: l,
|
|
993
993
|
text: c,
|
|
994
|
-
valueDelimiterId: p ? m.valueDelimiterId ??
|
|
994
|
+
valueDelimiterId: p ? m.valueDelimiterId ?? J : m.valueDelimiterId
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
async function
|
|
998
|
-
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await
|
|
997
|
+
async function Ue(e) {
|
|
998
|
+
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);
|
|
999
999
|
return await o.parseStream(i, {
|
|
1000
1000
|
abortSignal: r,
|
|
1001
1001
|
chunkSize: n.chunkSize,
|
|
@@ -1004,8 +1004,8 @@ async function Ge(e) {
|
|
|
1004
1004
|
valueDelimiterId: n.valueDelimiterId
|
|
1005
1005
|
}, t);
|
|
1006
1006
|
}
|
|
1007
|
-
async function
|
|
1008
|
-
let { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await
|
|
1007
|
+
async function We(e) {
|
|
1008
|
+
let { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await Y(o, r.dataFormatId, r.parserId), d = Ge(a), f = await u.parseStream(d.stream, {
|
|
1009
1009
|
abortSignal: i,
|
|
1010
1010
|
chunkSize: r.chunkSize,
|
|
1011
1011
|
dataFormatId: r.dataFormatId,
|
|
@@ -1017,24 +1017,40 @@ async function Ke(e) {
|
|
|
1017
1017
|
return {
|
|
1018
1018
|
asAt: s,
|
|
1019
1019
|
columns: l.completeAudit(),
|
|
1020
|
-
commentLineCount:
|
|
1020
|
+
commentLineCount: f.commentLineCount,
|
|
1021
1021
|
duration: performance.now() - c,
|
|
1022
|
-
emptyLineCount:
|
|
1023
|
-
invalidFieldLengthCount:
|
|
1024
|
-
lineCount:
|
|
1025
|
-
recordCount: Math.max(0,
|
|
1022
|
+
emptyLineCount: f.emptyLineCount,
|
|
1023
|
+
invalidFieldLengthCount: f.nonUniformRecordCount,
|
|
1024
|
+
lineCount: f.lineCount,
|
|
1025
|
+
recordCount: Math.max(0, f.recordCount - +!!r.hasHeaders),
|
|
1026
|
+
sourceWaitDuration: d.waitDuration()
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
function Ge(e) {
|
|
1030
|
+
let t = e.getReader(), n = 0;
|
|
1031
|
+
return {
|
|
1032
|
+
stream: new ReadableStream({
|
|
1033
|
+
async pull(e) {
|
|
1034
|
+
let r = performance.now(), i = await t.read();
|
|
1035
|
+
n += performance.now() - r, i.done ? e.close() : e.enqueue(i.value);
|
|
1036
|
+
},
|
|
1037
|
+
cancel(e) {
|
|
1038
|
+
return t.cancel(e);
|
|
1039
|
+
}
|
|
1040
|
+
}, { highWaterMark: 0 }),
|
|
1041
|
+
waitDuration: () => n
|
|
1026
1042
|
};
|
|
1027
1043
|
}
|
|
1028
|
-
async function
|
|
1029
|
-
let r =
|
|
1044
|
+
async function Y(e, t, n) {
|
|
1045
|
+
let r = q(e, t, n);
|
|
1030
1046
|
return {
|
|
1031
|
-
parser: await
|
|
1047
|
+
parser: await Be(e, r.id.slice(G.length)),
|
|
1032
1048
|
parserId: r.id
|
|
1033
1049
|
};
|
|
1034
1050
|
}
|
|
1035
1051
|
//#endregion
|
|
1036
1052
|
//#region src/component/module/connector/index.ts
|
|
1037
|
-
var
|
|
1053
|
+
var Ke = [
|
|
1038
1054
|
{
|
|
1039
1055
|
id: "application",
|
|
1040
1056
|
label: {
|
|
@@ -1063,7 +1079,7 @@ var qe = [
|
|
|
1063
1079
|
es: "Almacén de Archivos"
|
|
1064
1080
|
}
|
|
1065
1081
|
}
|
|
1066
|
-
],
|
|
1082
|
+
], qe = [
|
|
1067
1083
|
{
|
|
1068
1084
|
id: "apiEndpoint",
|
|
1069
1085
|
label: {
|
|
@@ -1085,7 +1101,7 @@ var qe = [
|
|
|
1085
1101
|
es: "Tabla"
|
|
1086
1102
|
}
|
|
1087
1103
|
}
|
|
1088
|
-
],
|
|
1104
|
+
], Je = {
|
|
1089
1105
|
abortOperation: "Abort Operation",
|
|
1090
1106
|
auditObjectContent: "Audit Object Content",
|
|
1091
1107
|
closeStore: "Close Store",
|
|
@@ -1158,7 +1174,7 @@ function Qe(e) {
|
|
|
1158
1174
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
1159
1175
|
}
|
|
1160
1176
|
var $e = (e, t = "en") => {
|
|
1161
|
-
let i =
|
|
1177
|
+
let i = Ke.find((t) => t.id === e);
|
|
1162
1178
|
return i ? {
|
|
1163
1179
|
label: r(n(i.label), t) ?? i.id,
|
|
1164
1180
|
description: ""
|
|
@@ -1167,7 +1183,7 @@ var $e = (e, t = "en") => {
|
|
|
1167
1183
|
description: ""
|
|
1168
1184
|
};
|
|
1169
1185
|
}, et = (e, t = "en") => {
|
|
1170
|
-
let i =
|
|
1186
|
+
let i = qe.find((t) => t.id === e);
|
|
1171
1187
|
return i ? {
|
|
1172
1188
|
label: r(n(i.label), t) ?? i.id,
|
|
1173
1189
|
description: ""
|
|
@@ -1188,25 +1204,25 @@ var $e = (e, t = "en") => {
|
|
|
1188
1204
|
function nt(e) {
|
|
1189
1205
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
1190
1206
|
n += "|:----|:-------:|\n";
|
|
1191
|
-
for (let e of Object.keys(
|
|
1207
|
+
for (let e of Object.keys(Je)) n += `| ${Je[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
1192
1208
|
return n;
|
|
1193
1209
|
}
|
|
1194
1210
|
//#endregion
|
|
1195
1211
|
//#region src/component/module/cookbook/cookbookConfig.schema.ts
|
|
1196
|
-
var rt =
|
|
1197
|
-
...
|
|
1212
|
+
var rt = E(["list"]), it = /* @__PURE__ */ x({
|
|
1213
|
+
...j,
|
|
1198
1214
|
typeId: /* @__PURE__ */ g("cookbook"),
|
|
1199
1215
|
actionNames: /* @__PURE__ */ h(rt),
|
|
1200
|
-
recipes: /* @__PURE__ */ h(
|
|
1201
|
-
}), at =
|
|
1216
|
+
recipes: /* @__PURE__ */ h(O)
|
|
1217
|
+
}), at = E([
|
|
1202
1218
|
"list",
|
|
1203
1219
|
"render",
|
|
1204
1220
|
"setColorMode"
|
|
1205
1221
|
]), ot = /* @__PURE__ */ x({
|
|
1206
|
-
...
|
|
1222
|
+
...j,
|
|
1207
1223
|
typeId: /* @__PURE__ */ g("presenter"),
|
|
1208
1224
|
actionNames: /* @__PURE__ */ h(at),
|
|
1209
|
-
presentations: /* @__PURE__ */ h(
|
|
1225
|
+
presentations: /* @__PURE__ */ h(O)
|
|
1210
1226
|
}), st = "https://engine-eu.dpuse.app/presenters";
|
|
1211
1227
|
async function ct(e, t, n, r) {
|
|
1212
1228
|
let i = e.id, a = `${st}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
@@ -1221,7 +1237,7 @@ async function ct(e, t, n, r) {
|
|
|
1221
1237
|
url: a,
|
|
1222
1238
|
version: e.version
|
|
1223
1239
|
};
|
|
1224
|
-
throw new
|
|
1240
|
+
throw new I(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
|
|
1225
1241
|
}
|
|
1226
1242
|
}
|
|
1227
1243
|
//#endregion
|
|
@@ -1805,16 +1821,16 @@ var lt = {
|
|
|
1805
1821
|
groupId: "baltic",
|
|
1806
1822
|
decoderId: "windows-1257"
|
|
1807
1823
|
}
|
|
1808
|
-
},
|
|
1809
|
-
function
|
|
1824
|
+
}, dt = lt, X = ut;
|
|
1825
|
+
function ft(e) {
|
|
1810
1826
|
return Object.hasOwn(X, e);
|
|
1811
1827
|
}
|
|
1812
|
-
function
|
|
1813
|
-
return
|
|
1828
|
+
function pt(e) {
|
|
1829
|
+
return ft(e) ? X[e].decoderId ?? e : e;
|
|
1814
1830
|
}
|
|
1815
|
-
function
|
|
1831
|
+
function mt(e = "en") {
|
|
1816
1832
|
return Array.from(Object.values(X), ({ decoderId: t, groupId: n, id: r }) => {
|
|
1817
|
-
let i = n == null ? "" :
|
|
1833
|
+
let i = n == null ? "" : ht(n, e);
|
|
1818
1834
|
return {
|
|
1819
1835
|
id: r,
|
|
1820
1836
|
groupLabel: i,
|
|
@@ -1824,13 +1840,13 @@ function pt(e = "en") {
|
|
|
1824
1840
|
};
|
|
1825
1841
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
|
|
1826
1842
|
}
|
|
1827
|
-
function
|
|
1828
|
-
let n =
|
|
1843
|
+
function ht(e, t) {
|
|
1844
|
+
let n = dt[e].label;
|
|
1829
1845
|
return n[t] ?? n.en ?? e;
|
|
1830
1846
|
}
|
|
1831
1847
|
//#endregion
|
|
1832
1848
|
//#region src/locale/index.ts
|
|
1833
|
-
function
|
|
1849
|
+
function gt(e, t) {
|
|
1834
1850
|
return {
|
|
1835
1851
|
...e,
|
|
1836
1852
|
label: e.label[t] ?? e.id,
|
|
@@ -1838,7 +1854,7 @@ function ht(e, t) {
|
|
|
1838
1854
|
verb: e.verb?.[t] ?? void 0
|
|
1839
1855
|
};
|
|
1840
1856
|
}
|
|
1841
|
-
function
|
|
1857
|
+
function _t(e, t, n = !1) {
|
|
1842
1858
|
let r = e.map((e) => ({
|
|
1843
1859
|
...e,
|
|
1844
1860
|
label: e.label[t] ?? e.id,
|
|
@@ -1847,7 +1863,7 @@ function gt(e, t, n = !1) {
|
|
|
1847
1863
|
}));
|
|
1848
1864
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
1849
1865
|
}
|
|
1850
|
-
function
|
|
1866
|
+
function vt(e, t) {
|
|
1851
1867
|
return {
|
|
1852
1868
|
...e,
|
|
1853
1869
|
label: e.label[t] ?? e.id,
|
|
@@ -1856,7 +1872,7 @@ function _t(e, t) {
|
|
|
1856
1872
|
}
|
|
1857
1873
|
//#endregion
|
|
1858
1874
|
//#region src/utilities/index.ts
|
|
1859
|
-
var
|
|
1875
|
+
var yt = /* @__PURE__ */ new Map([
|
|
1860
1876
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
1861
1877
|
["avro", "application/vnd.apache.avro"],
|
|
1862
1878
|
["bin", "application/octet-stream"],
|
|
@@ -1883,14 +1899,14 @@ var vt = /* @__PURE__ */ new Map([
|
|
|
1883
1899
|
["minute", 6e4],
|
|
1884
1900
|
["second", 1e3],
|
|
1885
1901
|
["millisecond", 1]
|
|
1886
|
-
],
|
|
1902
|
+
], bt = [
|
|
1887
1903
|
["byte", 1],
|
|
1888
1904
|
["kilobyte", 1024],
|
|
1889
1905
|
["megabyte", 1048576],
|
|
1890
1906
|
["gigabyte", 1073741824],
|
|
1891
1907
|
["terabyte", 1099511627776]
|
|
1892
|
-
],
|
|
1893
|
-
function
|
|
1908
|
+
], xt = /* @__PURE__ */ new Map(), St = /* @__PURE__ */ new Map();
|
|
1909
|
+
function Ct(e, t = 2, n = t, r = Z) {
|
|
1894
1910
|
return e == null ? "" : $(r, {
|
|
1895
1911
|
localeMatcher: "best fit",
|
|
1896
1912
|
maximumFractionDigits: t,
|
|
@@ -1900,18 +1916,18 @@ function St(e, t = 2, n = t, r = Z) {
|
|
|
1900
1916
|
useGrouping: !0
|
|
1901
1917
|
}).format(e);
|
|
1902
1918
|
}
|
|
1903
|
-
function
|
|
1904
|
-
return
|
|
1919
|
+
function wt(e, t = Z) {
|
|
1920
|
+
return Ct(e, 0, 0, t);
|
|
1905
1921
|
}
|
|
1906
|
-
function
|
|
1922
|
+
function Tt(e, t = 1, n = Z) {
|
|
1907
1923
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
1908
1924
|
maximumFractionDigits: t,
|
|
1909
1925
|
notation: "compact"
|
|
1910
1926
|
}).format(e);
|
|
1911
1927
|
}
|
|
1912
|
-
function
|
|
1928
|
+
function Et(e, t = 1, n = Z) {
|
|
1913
1929
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1914
|
-
let [r, i] =
|
|
1930
|
+
let [r, i] = bt.find(([, n]) => Ft(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
1915
1931
|
return $(n, {
|
|
1916
1932
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
1917
1933
|
style: "unit",
|
|
@@ -1919,7 +1935,7 @@ function Tt(e, t = 1, n = Z) {
|
|
|
1919
1935
|
unitDisplay: i === 1 ? "long" : "short"
|
|
1920
1936
|
}).format(e / i);
|
|
1921
1937
|
}
|
|
1922
|
-
function
|
|
1938
|
+
function Dt(e, t = "millisecond", n = Z) {
|
|
1923
1939
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1924
1940
|
let r = Math.round(Math.abs(e)), i = Q.findIndex(([, e]) => r >= e), a = i === -1 ? Q.length - 1 : i, o = Q.findIndex(([e]) => e === t), s = Q.slice(a, Math.max(o, a) + 1), c = [];
|
|
1925
1941
|
for (let [t, i] of s) {
|
|
@@ -1933,25 +1949,25 @@ function Et(e, t = "millisecond", n = Z) {
|
|
|
1933
1949
|
unitDisplay: "short"
|
|
1934
1950
|
}).format(o));
|
|
1935
1951
|
}
|
|
1936
|
-
return
|
|
1952
|
+
return Pt(n).format(c);
|
|
1937
1953
|
}
|
|
1938
|
-
function
|
|
1954
|
+
function Ot(e) {
|
|
1939
1955
|
if (!e) return;
|
|
1940
|
-
let t =
|
|
1956
|
+
let t = Nt(e);
|
|
1941
1957
|
return t === void 0 ? e : e.slice(0, t);
|
|
1942
1958
|
}
|
|
1943
|
-
function
|
|
1959
|
+
function kt(e) {
|
|
1944
1960
|
if (!e) return;
|
|
1945
|
-
let t =
|
|
1961
|
+
let t = Nt(e);
|
|
1946
1962
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
1947
1963
|
}
|
|
1948
|
-
function kt(e) {
|
|
1949
|
-
return e != null && vt.has(e.toLowerCase());
|
|
1950
|
-
}
|
|
1951
1964
|
function At(e) {
|
|
1952
|
-
return
|
|
1965
|
+
return e != null && yt.has(e.toLowerCase());
|
|
1953
1966
|
}
|
|
1954
1967
|
function jt(e) {
|
|
1968
|
+
return (e == null ? void 0 : yt.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
1969
|
+
}
|
|
1970
|
+
function Mt(e) {
|
|
1955
1971
|
switch (e) {
|
|
1956
1972
|
case "Edm.Boolean": return "boolean";
|
|
1957
1973
|
case "Edm.Byte":
|
|
@@ -1972,24 +1988,24 @@ function jt(e) {
|
|
|
1972
1988
|
default: return "unknown";
|
|
1973
1989
|
}
|
|
1974
1990
|
}
|
|
1975
|
-
function
|
|
1991
|
+
function Nt(e) {
|
|
1976
1992
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1977
1993
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
1978
1994
|
}
|
|
1979
|
-
function
|
|
1980
|
-
let t =
|
|
1995
|
+
function Pt(e) {
|
|
1996
|
+
let t = xt.get(e);
|
|
1981
1997
|
return t || (t = new Intl.ListFormat(e, {
|
|
1982
1998
|
style: "narrow",
|
|
1983
1999
|
type: "unit"
|
|
1984
|
-
}),
|
|
2000
|
+
}), xt.set(e, t)), t;
|
|
1985
2001
|
}
|
|
1986
2002
|
function $(e, t) {
|
|
1987
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
1988
|
-
return r || (r = new Intl.NumberFormat(e, t),
|
|
2003
|
+
let n = `${e}|${JSON.stringify(t)}`, r = St.get(n);
|
|
2004
|
+
return r || (r = new Intl.NumberFormat(e, t), St.set(n, r)), r;
|
|
1989
2005
|
}
|
|
1990
|
-
function
|
|
2006
|
+
function Ft(e, t) {
|
|
1991
2007
|
let n = 10 ** t;
|
|
1992
2008
|
return Math.round(e * n) / n;
|
|
1993
2009
|
}
|
|
1994
2010
|
//#endregion
|
|
1995
|
-
export {
|
|
2011
|
+
export { L as APIError, I as AppError, z as ConnectorError, ue as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, dt as ENCODING_GROUP_CONFIG_MAP, X as ENCODING_TYPE_CONFIG_MAP, R as EngineError, B as FetchError, A as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, G as TOOL_NAME_PREFIX, We as auditObjectContentWithParser, xe as buildFetchError, He as buildPreviewConfig, se as componentInstanceConfigSchema, Se as concatenateSerialisedErrorMessages, ve as connectorConfigSchema, $e as constructConnectorCategoryConfig, et as constructConnectorItemTypeConfig, tt as constructConnectorUsageConfig, Mt as convertODataTypeIdToUsageTypeId, it as cookbookConfigSchema, n as createLabelMap, Qe as determineConnectorUsageId, kt as extractExtensionFromPath, Ot as extractPathWithoutExtension, Ct as formatNumberAsDecimalNumber, Dt as formatNumberAsDuration, Tt as formatNumberAsSize, Et as formatNumberAsStorageSize, wt as formatNumberAsWholeNumber, le as getComponentStatus, nt as getConnectorActionsTable, mt as getEncodingTypeConfigs, At as hasMimeTypeForExtension, Ce as ignoreErrors, ft as isEncodingTypeId, K as listParserToolConfigs, ct as loadPresenter, Be as loadTool, gt as localiseConfig, _t as localiseConfigs, vt as localiseReference, jt as lookupMimeTypeForExtension, V as normalizeToError, Pe as parseDelimitedText, ot as presenterConfigSchema, pt as resolveDecoderId, r as resolveLabel, q as resolveParserToolConfig, Ue as retrieveRecordsWithParser, we as serialiseError, Ne as toolConfigSchema, Te as unserialiseError };
|