@dpuse/dpuse-shared 1.0.149 → 1.0.150
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
|
@@ -448,20 +448,20 @@ var T = /* @__PURE__ */ x({
|
|
|
448
448
|
]), oe = /* @__PURE__ */ x({
|
|
449
449
|
color: ie,
|
|
450
450
|
label: /* @__PURE__ */ S()
|
|
451
|
-
}),
|
|
451
|
+
}), se = {
|
|
452
452
|
...ne,
|
|
453
453
|
typeId: re
|
|
454
|
-
},
|
|
455
|
-
...
|
|
454
|
+
}, D = /* @__PURE__ */ x({
|
|
455
|
+
...se,
|
|
456
456
|
order: /* @__PURE__ */ v(),
|
|
457
457
|
path: /* @__PURE__ */ S()
|
|
458
|
-
}),
|
|
459
|
-
...
|
|
458
|
+
}), O = {
|
|
459
|
+
...se,
|
|
460
460
|
firstCreatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
|
|
461
461
|
lastUpdatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
|
|
462
462
|
status: /* @__PURE__ */ _(oe),
|
|
463
463
|
statusId: /* @__PURE__ */ _(ae)
|
|
464
|
-
},
|
|
464
|
+
}, ce = /* @__PURE__ */ x({ ...O }), le = [
|
|
465
465
|
{
|
|
466
466
|
id: "alpha",
|
|
467
467
|
color: "danger",
|
|
@@ -495,8 +495,8 @@ var T = /* @__PURE__ */ x({
|
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
];
|
|
498
|
-
function
|
|
499
|
-
let n =
|
|
498
|
+
function ue(e, t = "en") {
|
|
499
|
+
let n = le.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 le(e, t = "en") {
|
|
|
511
511
|
}
|
|
512
512
|
//#endregion
|
|
513
513
|
//#region src/component/dataView/dataFormatIcons.ts
|
|
514
|
-
var
|
|
514
|
+
var de = {
|
|
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>"
|
|
@@ -564,7 +564,7 @@ var ue = {
|
|
|
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 fe = [
|
|
568
568
|
",",
|
|
569
569
|
";",
|
|
570
570
|
" ",
|
|
@@ -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 k = {
|
|
590
|
+
...O,
|
|
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
|
+
({ ...k });
|
|
597
597
|
//#endregion
|
|
598
598
|
//#region src/component/module/connector/connectorConfig.schema.ts
|
|
599
|
-
var
|
|
599
|
+
var pe = E([
|
|
600
600
|
"abortOperation",
|
|
601
601
|
"auditObjectContent",
|
|
602
602
|
"createObject",
|
|
@@ -612,21 +612,21 @@ var fe = E([
|
|
|
612
612
|
"retrieveChunks",
|
|
613
613
|
"retrieveRecords",
|
|
614
614
|
"upsertRecords"
|
|
615
|
-
]),
|
|
615
|
+
]), me = E([
|
|
616
616
|
"application",
|
|
617
617
|
"curatedDataset",
|
|
618
618
|
"database",
|
|
619
619
|
"fileStore"
|
|
620
|
-
]),
|
|
620
|
+
]), he = /* @__PURE__ */ x({ label: T }), ge = E([
|
|
621
621
|
"apiEndpoint",
|
|
622
622
|
"file",
|
|
623
623
|
"table"
|
|
624
|
-
]),
|
|
624
|
+
]), _e = E([
|
|
625
625
|
"bidirectional",
|
|
626
626
|
"destination",
|
|
627
627
|
"source",
|
|
628
628
|
"unknown"
|
|
629
|
-
]),
|
|
629
|
+
]), ve = /* @__PURE__ */ x({ label: T }), ye = /* @__PURE__ */ x({
|
|
630
630
|
authMethodId: E([
|
|
631
631
|
"apiKey",
|
|
632
632
|
"disabled",
|
|
@@ -639,17 +639,17 @@ var fe = E([
|
|
|
639
639
|
label: /* @__PURE__ */ y(T),
|
|
640
640
|
maxConnectionCount: /* @__PURE__ */ _(/* @__PURE__ */ v()),
|
|
641
641
|
params: /* @__PURE__ */ y(/* @__PURE__ */ m(/* @__PURE__ */ b(/* @__PURE__ */ S(), /* @__PURE__ */ S())))
|
|
642
|
-
}),
|
|
643
|
-
...
|
|
642
|
+
}), be = /* @__PURE__ */ x({
|
|
643
|
+
...k,
|
|
644
644
|
typeId: /* @__PURE__ */ g("connector"),
|
|
645
|
-
actionNames: /* @__PURE__ */ m(
|
|
646
|
-
category: /* @__PURE__ */ _(
|
|
647
|
-
categoryId:
|
|
648
|
-
implementations: /* @__PURE__ */ b(/* @__PURE__ */ S(),
|
|
649
|
-
itemTypeId:
|
|
650
|
-
usage: /* @__PURE__ */ _(
|
|
651
|
-
usageId: /* @__PURE__ */ _(
|
|
652
|
-
}),
|
|
645
|
+
actionNames: /* @__PURE__ */ m(pe),
|
|
646
|
+
category: /* @__PURE__ */ _(he),
|
|
647
|
+
categoryId: me,
|
|
648
|
+
implementations: /* @__PURE__ */ b(/* @__PURE__ */ S(), ye),
|
|
649
|
+
itemTypeId: ge,
|
|
650
|
+
usage: /* @__PURE__ */ _(ve),
|
|
651
|
+
usageId: /* @__PURE__ */ _(_e)
|
|
652
|
+
}), xe = [
|
|
653
653
|
{
|
|
654
654
|
id: "application",
|
|
655
655
|
label: {
|
|
@@ -678,7 +678,7 @@ var fe = E([
|
|
|
678
678
|
es: "Almacén de Archivos"
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
],
|
|
681
|
+
], Se = [
|
|
682
682
|
{
|
|
683
683
|
id: "apiEndpoint",
|
|
684
684
|
label: {
|
|
@@ -700,7 +700,7 @@ var fe = E([
|
|
|
700
700
|
es: "Tabla"
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
],
|
|
703
|
+
], A = {
|
|
704
704
|
abortOperation: "Abort Operation",
|
|
705
705
|
auditObjectContent: "Audit Object Content",
|
|
706
706
|
createObject: "Create Object",
|
|
@@ -716,7 +716,7 @@ var fe = E([
|
|
|
716
716
|
retrieveChunks: "Retrieve Chunks",
|
|
717
717
|
retrieveRecords: "Retrieve Records",
|
|
718
718
|
upsertRecords: "Upsert Records"
|
|
719
|
-
},
|
|
719
|
+
}, Ce = [
|
|
720
720
|
{
|
|
721
721
|
id: "bidirectional",
|
|
722
722
|
label: {
|
|
@@ -745,12 +745,12 @@ var fe = E([
|
|
|
745
745
|
es: "Desconocido"
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
|
-
],
|
|
748
|
+
], we = /* @__PURE__ */ new Set([
|
|
749
749
|
"createObject",
|
|
750
750
|
"dropObject",
|
|
751
751
|
"removeRecords",
|
|
752
752
|
"upsertRecords"
|
|
753
|
-
]),
|
|
753
|
+
]), Te = /* @__PURE__ */ new Set([
|
|
754
754
|
"auditObjectContent",
|
|
755
755
|
"findObject",
|
|
756
756
|
"getInfo",
|
|
@@ -761,13 +761,13 @@ var fe = E([
|
|
|
761
761
|
"retrieveChunks",
|
|
762
762
|
"retrieveRecords"
|
|
763
763
|
]);
|
|
764
|
-
function
|
|
764
|
+
function Ee(e) {
|
|
765
765
|
let t = !1, n = !1;
|
|
766
|
-
for (let r of e)
|
|
766
|
+
for (let r of e) Te.has(r) && (t = !0), we.has(r) && (n = !0);
|
|
767
767
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
768
768
|
}
|
|
769
|
-
var
|
|
770
|
-
let i =
|
|
769
|
+
var De = (e, t = "en") => {
|
|
770
|
+
let i = xe.find((t) => t.id === e);
|
|
771
771
|
return i ? {
|
|
772
772
|
label: r(n(i.label), t) ?? i.id,
|
|
773
773
|
description: ""
|
|
@@ -775,8 +775,8 @@ var Ee = (e, t = "en") => {
|
|
|
775
775
|
label: e,
|
|
776
776
|
description: ""
|
|
777
777
|
};
|
|
778
|
-
},
|
|
779
|
-
let i =
|
|
778
|
+
}, Oe = (e, t = "en") => {
|
|
779
|
+
let i = Se.find((t) => t.id === e);
|
|
780
780
|
return i ? {
|
|
781
781
|
label: r(n(i.label), t) ?? i.id,
|
|
782
782
|
description: ""
|
|
@@ -784,8 +784,8 @@ var Ee = (e, t = "en") => {
|
|
|
784
784
|
label: e,
|
|
785
785
|
description: ""
|
|
786
786
|
};
|
|
787
|
-
},
|
|
788
|
-
let i =
|
|
787
|
+
}, ke = (e, t = "en") => {
|
|
788
|
+
let i = Ce.find((t) => t.id === e);
|
|
789
789
|
return i ? {
|
|
790
790
|
label: r(n(i.label), t) ?? i.id,
|
|
791
791
|
description: ""
|
|
@@ -794,70 +794,70 @@ var Ee = (e, t = "en") => {
|
|
|
794
794
|
description: ""
|
|
795
795
|
};
|
|
796
796
|
};
|
|
797
|
-
function
|
|
797
|
+
function Ae(e) {
|
|
798
798
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
799
799
|
n += "|:----|:-------:|\n";
|
|
800
|
-
for (let e of Object.keys(
|
|
800
|
+
for (let e of Object.keys(A)) n += `| ${A[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
801
801
|
return n;
|
|
802
802
|
}
|
|
803
803
|
//#endregion
|
|
804
804
|
//#region src/component/module/cookbook/cookbookConfig.schema.ts
|
|
805
|
-
var
|
|
806
|
-
...
|
|
805
|
+
var je = E(["list"]), Me = /* @__PURE__ */ x({
|
|
806
|
+
...k,
|
|
807
807
|
typeId: /* @__PURE__ */ g("cookbook"),
|
|
808
|
-
actionNames: /* @__PURE__ */ m(
|
|
809
|
-
recipes: /* @__PURE__ */ m(
|
|
810
|
-
}),
|
|
811
|
-
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${
|
|
812
|
-
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) =>
|
|
813
|
-
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () =>
|
|
814
|
-
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () =>
|
|
815
|
-
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () =>
|
|
816
|
-
],
|
|
808
|
+
actionNames: /* @__PURE__ */ m(je),
|
|
809
|
+
recipes: /* @__PURE__ */ m(D)
|
|
810
|
+
}), j = 2048, M = "[REDACTED]", Ne = 10, N = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Pe = [
|
|
811
|
+
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${M}`],
|
|
812
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => N.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${M}` : e],
|
|
813
|
+
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => M],
|
|
814
|
+
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => M],
|
|
815
|
+
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => M]
|
|
816
|
+
], P = class extends Error {
|
|
817
817
|
data;
|
|
818
818
|
locator;
|
|
819
819
|
constructor(e, t, n, r) {
|
|
820
820
|
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
821
821
|
}
|
|
822
|
-
},
|
|
822
|
+
}, F = class extends P {
|
|
823
823
|
constructor(e, t, n, r) {
|
|
824
824
|
super(e, t, n, r), this.name = "AppError";
|
|
825
825
|
}
|
|
826
|
-
},
|
|
826
|
+
}, I = class extends P {
|
|
827
827
|
constructor(e, t, n, r) {
|
|
828
828
|
super(e, t, n, r), this.name = "APIError";
|
|
829
829
|
}
|
|
830
|
-
},
|
|
830
|
+
}, L = class extends P {
|
|
831
831
|
constructor(e, t, n, r) {
|
|
832
832
|
super(e, t, n, r), this.name = "EngineError";
|
|
833
833
|
}
|
|
834
|
-
},
|
|
834
|
+
}, R = class extends P {
|
|
835
835
|
constructor(e, t, n, r) {
|
|
836
836
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
837
837
|
}
|
|
838
|
-
},
|
|
838
|
+
}, z = class extends P {
|
|
839
839
|
constructor(e, t, n, r) {
|
|
840
840
|
super(e, t, n, r), this.name = "FetchError";
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
|
-
async function
|
|
843
|
+
async function Fe(e, t, n) {
|
|
844
844
|
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
845
845
|
try {
|
|
846
846
|
a = await e.text();
|
|
847
847
|
} catch (e) {
|
|
848
|
-
a = `<body unavailable: ${
|
|
848
|
+
a = `<body unavailable: ${B(e).message}>`;
|
|
849
849
|
}
|
|
850
|
-
return new
|
|
850
|
+
return new z(i, n, { body: Ue(a) });
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function Ie(e) {
|
|
853
853
|
return e.map((e) => e.message).join(" ");
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function Le(e) {
|
|
856
856
|
try {
|
|
857
857
|
e();
|
|
858
858
|
} catch {}
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function B(e) {
|
|
861
861
|
if (e instanceof Error) return e;
|
|
862
862
|
if (typeof e == "string") return Error(e);
|
|
863
863
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
@@ -869,24 +869,24 @@ function V(e) {
|
|
|
869
869
|
}
|
|
870
870
|
return /* @__PURE__ */ Error("Unknown error");
|
|
871
871
|
}
|
|
872
|
-
function
|
|
873
|
-
let t = /* @__PURE__ */ new Set(), n = [], r =
|
|
872
|
+
function Re(e) {
|
|
873
|
+
let t = /* @__PURE__ */ new Set(), n = [], r = B(e);
|
|
874
874
|
for (; r != null && !t.has(r);) {
|
|
875
875
|
t.add(r);
|
|
876
|
-
let [e, i] =
|
|
876
|
+
let [e, i] = We(r), a = He(e);
|
|
877
877
|
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
878
878
|
}
|
|
879
879
|
return n;
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function ze(e) {
|
|
882
882
|
let t;
|
|
883
883
|
for (let n of e.toReversed()) {
|
|
884
|
-
let e =
|
|
884
|
+
let e = Ve(n, t);
|
|
885
885
|
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
886
886
|
}
|
|
887
887
|
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Be(e) {
|
|
890
890
|
let t;
|
|
891
891
|
try {
|
|
892
892
|
t = JSON.stringify(e);
|
|
@@ -895,13 +895,13 @@ function ze(e) {
|
|
|
895
895
|
}
|
|
896
896
|
return t === "" && (t = "Unknown error"), t;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Ve(e, t) {
|
|
899
899
|
switch (e.name) {
|
|
900
|
-
case "APIError": return new
|
|
901
|
-
case "AppError": return new
|
|
902
|
-
case "ConnectorError": return new
|
|
903
|
-
case "EngineError": return new
|
|
904
|
-
case "FetchError": return new
|
|
900
|
+
case "APIError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
901
|
+
case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
|
|
902
|
+
case "ConnectorError": return new R(e.message, e.locator, e.data, { cause: t });
|
|
903
|
+
case "EngineError": return new L(e.message, e.locator, e.data, { cause: t });
|
|
904
|
+
case "FetchError": return new z(e.message, e.locator, e.data, { cause: t });
|
|
905
905
|
default: {
|
|
906
906
|
let n = e.name;
|
|
907
907
|
return new class extends Error {
|
|
@@ -910,29 +910,29 @@ function Be(e, t) {
|
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function He(e) {
|
|
914
914
|
let { data: t, message: n, stack: r } = e;
|
|
915
915
|
return {
|
|
916
916
|
...e,
|
|
917
|
-
data: t === void 0 ? void 0 :
|
|
918
|
-
message:
|
|
919
|
-
stack: r === void 0 ? void 0 :
|
|
917
|
+
data: t === void 0 ? void 0 : H(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
918
|
+
message: V(n),
|
|
919
|
+
stack: r === void 0 ? void 0 : V(r)
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function V(e) {
|
|
923
923
|
let t = e;
|
|
924
|
-
for (let [e, n] of
|
|
924
|
+
for (let [e, n] of Pe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
925
925
|
return t;
|
|
926
926
|
}
|
|
927
|
-
function
|
|
928
|
-
return typeof e == "string" ?
|
|
929
|
-
}
|
|
930
|
-
function He(e) {
|
|
931
|
-
if (e != null && e !== "") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;
|
|
927
|
+
function H(e, t, n) {
|
|
928
|
+
return typeof e == "string" ? V(e) : typeof e != "object" || !e ? e : n >= Ne ? M : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => H(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && N.test(e) ? M : H(r, t, n + 1)])));
|
|
932
929
|
}
|
|
933
930
|
function Ue(e) {
|
|
934
|
-
|
|
935
|
-
|
|
931
|
+
if (e != null && e !== "") return e.length > j ? `${e.slice(0, j)}... [truncated]` : e;
|
|
932
|
+
}
|
|
933
|
+
function We(e) {
|
|
934
|
+
let t = e.cause == null ? null : B(e.cause);
|
|
935
|
+
if (e instanceof P) return [{
|
|
936
936
|
data: e.data,
|
|
937
937
|
locator: e.locator,
|
|
938
938
|
message: e.message,
|
|
@@ -949,25 +949,25 @@ function Ue(e) {
|
|
|
949
949
|
}, t] : [{
|
|
950
950
|
data: n,
|
|
951
951
|
locator: "",
|
|
952
|
-
message:
|
|
952
|
+
message: Be(e),
|
|
953
953
|
name: "Error",
|
|
954
954
|
stack: void 0
|
|
955
955
|
}, null];
|
|
956
956
|
}
|
|
957
957
|
//#endregion
|
|
958
958
|
//#region src/component/module/presenter/presenterConfig.schema.ts
|
|
959
|
-
var
|
|
959
|
+
var Ge = E([
|
|
960
960
|
"list",
|
|
961
961
|
"render",
|
|
962
962
|
"setColorMode"
|
|
963
|
-
]),
|
|
964
|
-
...
|
|
963
|
+
]), Ke = /* @__PURE__ */ x({
|
|
964
|
+
...k,
|
|
965
965
|
typeId: /* @__PURE__ */ g("presenter"),
|
|
966
|
-
actionNames: /* @__PURE__ */ m(
|
|
967
|
-
presentations: /* @__PURE__ */ m(
|
|
968
|
-
}),
|
|
969
|
-
async function
|
|
970
|
-
let i = e.id, a = `${
|
|
966
|
+
actionNames: /* @__PURE__ */ m(Ge),
|
|
967
|
+
presentations: /* @__PURE__ */ m(D)
|
|
968
|
+
}), qe = "https://engine-eu.dpuse.app/presenters";
|
|
969
|
+
async function Je(e, t, n, r) {
|
|
970
|
+
let i = e.id, a = `${qe}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
971
971
|
try {
|
|
972
972
|
return new (await (import(
|
|
973
973
|
/* @vite-ignore */
|
|
@@ -979,10 +979,10 @@ async function qe(e, t, n, r) {
|
|
|
979
979
|
url: a,
|
|
980
980
|
version: e.version
|
|
981
981
|
};
|
|
982
|
-
throw new
|
|
982
|
+
throw new F(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
var
|
|
985
|
+
var Ye = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ m(E([
|
|
986
986
|
"arrow",
|
|
987
987
|
"avro",
|
|
988
988
|
"dtv",
|
|
@@ -995,22 +995,36 @@ var Je = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ m
|
|
|
995
995
|
"sqlite",
|
|
996
996
|
"xlsx",
|
|
997
997
|
"xml"
|
|
998
|
-
])), /* @__PURE__ */ f(1)) }),
|
|
999
|
-
...
|
|
998
|
+
])), /* @__PURE__ */ f(1)) }), Xe = /* @__PURE__ */ m(/* @__PURE__ */ S()), Ze = /* @__PURE__ */ x({
|
|
999
|
+
...k,
|
|
1000
1000
|
typeId: /* @__PURE__ */ g("tool"),
|
|
1001
|
-
actionNames: /* @__PURE__ */ y(
|
|
1002
|
-
parser: /* @__PURE__ */ y(
|
|
1003
|
-
}),
|
|
1004
|
-
|
|
1001
|
+
actionNames: /* @__PURE__ */ y(Xe),
|
|
1002
|
+
parser: /* @__PURE__ */ y(Ye)
|
|
1003
|
+
}), Qe = "https://engine-eu.dpuse.app/tools";
|
|
1004
|
+
function U(e, t) {
|
|
1005
|
+
return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
|
|
1006
|
+
}
|
|
1007
|
+
function $e(e, t, n) {
|
|
1008
|
+
let r = U(e, t), [i] = r;
|
|
1009
|
+
if (i === void 0) {
|
|
1010
|
+
let n = {
|
|
1011
|
+
availableToolIds: e.map((e) => e.id),
|
|
1012
|
+
dataFormatId: t
|
|
1013
|
+
};
|
|
1014
|
+
throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
1015
|
+
}
|
|
1016
|
+
return r.find((e) => e.id === n) ?? i;
|
|
1017
|
+
}
|
|
1018
|
+
async function et(e, t) {
|
|
1005
1019
|
let n = `dpuse-tool-${t}`, r = e.find((e) => e.id === n);
|
|
1006
1020
|
if (!r) {
|
|
1007
1021
|
let r = {
|
|
1008
1022
|
availableToolIds: e.map((e) => e.id),
|
|
1009
1023
|
toolName: n
|
|
1010
1024
|
};
|
|
1011
|
-
throw new
|
|
1025
|
+
throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
1012
1026
|
}
|
|
1013
|
-
let i = `${
|
|
1027
|
+
let i = `${Qe}/${t}_v${r.version}/${n}.es.js`;
|
|
1014
1028
|
try {
|
|
1015
1029
|
return new (await (import(
|
|
1016
1030
|
/* @vite-ignore */
|
|
@@ -1022,12 +1036,12 @@ async function Qe(e, t) {
|
|
|
1022
1036
|
url: i,
|
|
1023
1037
|
version: r.version
|
|
1024
1038
|
};
|
|
1025
|
-
throw new
|
|
1039
|
+
throw new F(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
1026
1040
|
}
|
|
1027
1041
|
}
|
|
1028
1042
|
//#endregion
|
|
1029
1043
|
//#region src/encoding/index.ts
|
|
1030
|
-
var
|
|
1044
|
+
var tt = {
|
|
1031
1045
|
arabic: {
|
|
1032
1046
|
id: "arabic",
|
|
1033
1047
|
label: {
|
|
@@ -1175,7 +1189,7 @@ var $e = {
|
|
|
1175
1189
|
es: "Occidental"
|
|
1176
1190
|
}
|
|
1177
1191
|
}
|
|
1178
|
-
},
|
|
1192
|
+
}, nt = {
|
|
1179
1193
|
ascii: {
|
|
1180
1194
|
id: "ascii",
|
|
1181
1195
|
groupId: null,
|
|
@@ -1606,16 +1620,16 @@ var $e = {
|
|
|
1606
1620
|
groupId: "baltic",
|
|
1607
1621
|
decoderId: "windows-1257"
|
|
1608
1622
|
}
|
|
1609
|
-
}, W =
|
|
1623
|
+
}, W = tt, G = nt;
|
|
1610
1624
|
function K(e) {
|
|
1611
1625
|
return Object.hasOwn(G, e);
|
|
1612
1626
|
}
|
|
1613
|
-
function
|
|
1627
|
+
function rt(e) {
|
|
1614
1628
|
return K(e) ? G[e].decoderId ?? e : e;
|
|
1615
1629
|
}
|
|
1616
|
-
function
|
|
1630
|
+
function it(e = "en") {
|
|
1617
1631
|
return Array.from(Object.values(G), ({ decoderId: t, groupId: n, id: r }) => {
|
|
1618
|
-
let i = n == null ? "" :
|
|
1632
|
+
let i = n == null ? "" : at(n, e);
|
|
1619
1633
|
return {
|
|
1620
1634
|
id: r,
|
|
1621
1635
|
groupLabel: i,
|
|
@@ -1625,13 +1639,13 @@ function nt(e = "en") {
|
|
|
1625
1639
|
};
|
|
1626
1640
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
|
|
1627
1641
|
}
|
|
1628
|
-
function
|
|
1642
|
+
function at(e, t) {
|
|
1629
1643
|
let n = W[e].label;
|
|
1630
1644
|
return n[t] ?? n.en ?? e;
|
|
1631
1645
|
}
|
|
1632
1646
|
//#endregion
|
|
1633
1647
|
//#region src/locale/index.ts
|
|
1634
|
-
function
|
|
1648
|
+
function ot(e, t) {
|
|
1635
1649
|
return {
|
|
1636
1650
|
...e,
|
|
1637
1651
|
label: e.label[t] ?? e.id,
|
|
@@ -1639,7 +1653,7 @@ function it(e, t) {
|
|
|
1639
1653
|
verb: e.verb?.[t] ?? void 0
|
|
1640
1654
|
};
|
|
1641
1655
|
}
|
|
1642
|
-
function
|
|
1656
|
+
function st(e, t, n = !1) {
|
|
1643
1657
|
let r = e.map((e) => ({
|
|
1644
1658
|
...e,
|
|
1645
1659
|
label: e.label[t] ?? e.id,
|
|
@@ -1648,7 +1662,7 @@ function at(e, t, n = !1) {
|
|
|
1648
1662
|
}));
|
|
1649
1663
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
1650
1664
|
}
|
|
1651
|
-
function
|
|
1665
|
+
function ct(e, t) {
|
|
1652
1666
|
return {
|
|
1653
1667
|
...e,
|
|
1654
1668
|
label: e.label[t] ?? e.id,
|
|
@@ -1684,14 +1698,14 @@ var q = /* @__PURE__ */ new Map([
|
|
|
1684
1698
|
["minute", 6e4],
|
|
1685
1699
|
["second", 1e3],
|
|
1686
1700
|
["millisecond", 1]
|
|
1687
|
-
],
|
|
1701
|
+
], lt = [
|
|
1688
1702
|
["byte", 1],
|
|
1689
1703
|
["kilobyte", 1024],
|
|
1690
1704
|
["megabyte", 1048576],
|
|
1691
1705
|
["gigabyte", 1073741824],
|
|
1692
1706
|
["terabyte", 1099511627776]
|
|
1693
1707
|
], X = /* @__PURE__ */ new Map(), Z = /* @__PURE__ */ new Map();
|
|
1694
|
-
function
|
|
1708
|
+
function ut(e, t = 2, n = t, r = J) {
|
|
1695
1709
|
return e == null ? "" : $(r, {
|
|
1696
1710
|
localeMatcher: "best fit",
|
|
1697
1711
|
maximumFractionDigits: t,
|
|
@@ -1701,18 +1715,18 @@ function Q(e, t = 2, n = t, r = J) {
|
|
|
1701
1715
|
useGrouping: !0
|
|
1702
1716
|
}).format(e);
|
|
1703
1717
|
}
|
|
1704
|
-
function
|
|
1705
|
-
return
|
|
1718
|
+
function dt(e, t = J) {
|
|
1719
|
+
return ut(e, 0, 0, t);
|
|
1706
1720
|
}
|
|
1707
|
-
function
|
|
1721
|
+
function ft(e, t = 1, n = J) {
|
|
1708
1722
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
1709
1723
|
maximumFractionDigits: t,
|
|
1710
1724
|
notation: "compact"
|
|
1711
1725
|
}).format(e);
|
|
1712
1726
|
}
|
|
1713
|
-
function
|
|
1727
|
+
function pt(e, t = 1, n = J) {
|
|
1714
1728
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1715
|
-
let [r, i] =
|
|
1729
|
+
let [r, i] = lt.find(([, n]) => xt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
1716
1730
|
return $(n, {
|
|
1717
1731
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
1718
1732
|
style: "unit",
|
|
@@ -1720,7 +1734,7 @@ function ut(e, t = 1, n = J) {
|
|
|
1720
1734
|
unitDisplay: i === 1 ? "long" : "short"
|
|
1721
1735
|
}).format(e / i);
|
|
1722
1736
|
}
|
|
1723
|
-
function
|
|
1737
|
+
function mt(e, t = "millisecond", n = J) {
|
|
1724
1738
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1725
1739
|
let r = Math.round(Math.abs(e)), i = Y.findIndex(([, e]) => r >= e), a = i === -1 ? Y.length - 1 : i, o = Y.findIndex(([e]) => e === t), s = Y.slice(a, Math.max(o, a) + 1), c = [];
|
|
1726
1740
|
for (let [t, i] of s) {
|
|
@@ -1734,25 +1748,25 @@ function dt(e, t = "millisecond", n = J) {
|
|
|
1734
1748
|
unitDisplay: "short"
|
|
1735
1749
|
}).format(o));
|
|
1736
1750
|
}
|
|
1737
|
-
return
|
|
1751
|
+
return bt(n).format(c);
|
|
1738
1752
|
}
|
|
1739
|
-
function
|
|
1753
|
+
function ht(e) {
|
|
1740
1754
|
if (!e) return;
|
|
1741
|
-
let t =
|
|
1755
|
+
let t = Q(e);
|
|
1742
1756
|
return t === void 0 ? e : e.slice(0, t);
|
|
1743
1757
|
}
|
|
1744
|
-
function
|
|
1758
|
+
function gt(e) {
|
|
1745
1759
|
if (!e) return;
|
|
1746
|
-
let t =
|
|
1760
|
+
let t = Q(e);
|
|
1747
1761
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
1748
1762
|
}
|
|
1749
|
-
function
|
|
1763
|
+
function _t(e) {
|
|
1750
1764
|
return e != null && q.has(e.toLowerCase());
|
|
1751
1765
|
}
|
|
1752
|
-
function
|
|
1766
|
+
function vt(e) {
|
|
1753
1767
|
return (e == null ? void 0 : q.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
1754
1768
|
}
|
|
1755
|
-
function
|
|
1769
|
+
function yt(e) {
|
|
1756
1770
|
switch (e) {
|
|
1757
1771
|
case "Edm.Boolean": return "boolean";
|
|
1758
1772
|
case "Edm.Byte":
|
|
@@ -1773,11 +1787,11 @@ function gt(e) {
|
|
|
1773
1787
|
default: return "unknown";
|
|
1774
1788
|
}
|
|
1775
1789
|
}
|
|
1776
|
-
function
|
|
1790
|
+
function Q(e) {
|
|
1777
1791
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1778
1792
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
1779
1793
|
}
|
|
1780
|
-
function
|
|
1794
|
+
function bt(e) {
|
|
1781
1795
|
let t = X.get(e);
|
|
1782
1796
|
return t || (t = new Intl.ListFormat(e, {
|
|
1783
1797
|
style: "narrow",
|
|
@@ -1788,9 +1802,9 @@ function $(e, t) {
|
|
|
1788
1802
|
let n = `${e}|${JSON.stringify(t)}`, r = Z.get(n);
|
|
1789
1803
|
return r || (r = new Intl.NumberFormat(e, t), Z.set(n, r)), r;
|
|
1790
1804
|
}
|
|
1791
|
-
function
|
|
1805
|
+
function xt(e, t) {
|
|
1792
1806
|
let n = 10 ** t;
|
|
1793
1807
|
return Math.round(e * n) / n;
|
|
1794
1808
|
}
|
|
1795
1809
|
//#endregion
|
|
1796
|
-
export {
|
|
1810
|
+
export { I as APIError, F as AppError, R as ConnectorError, de as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, W as ENCODING_GROUP_CONFIG_MAP, G as ENCODING_TYPE_CONFIG_MAP, L as EngineError, z as FetchError, fe as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, Fe as buildFetchError, ce as componentInstanceConfigSchema, Ie as concatenateSerialisedErrorMessages, be as connectorConfigSchema, De as constructConnectorCategoryConfig, Oe as constructConnectorItemTypeConfig, ke as constructConnectorUsageConfig, yt as convertODataTypeIdToUsageTypeId, Me as cookbookConfigSchema, n as createLabelMap, Ee as determineConnectorUsageId, gt as extractExtensionFromPath, ht as extractPathWithoutExtension, ut as formatNumberAsDecimalNumber, mt as formatNumberAsDuration, ft as formatNumberAsSize, pt as formatNumberAsStorageSize, dt as formatNumberAsWholeNumber, ue as getComponentStatus, Ae as getConnectorActionsTable, it as getEncodingTypeConfigs, _t as hasMimeTypeForExtension, Le as ignoreErrors, K as isEncodingTypeId, U as listParserToolConfigs, Je as loadPresenter, et as loadTool, ot as localiseConfig, st as localiseConfigs, ct as localiseReference, vt as lookupMimeTypeForExtension, B as normalizeToError, Ke as presenterConfigSchema, rt as resolveDecoderId, r as resolveLabel, $e as resolveParserToolConfig, Re as serialiseError, Ze as toolConfigSchema, ze as unserialiseError };
|