@dpuse/dpuse-shared 1.0.210 → 1.0.212
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/README.md +11 -10
- package/dist/dpuse-shared.es.js +265 -210
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/module/connector/connectorConfig.schema.d.ts +2 -2
- package/dist/types/src/component/module/connector/index.d.ts +25 -32
- package/dist/types/src/component/module/connector/objectParsing.d.ts +3 -4
- package/dist/types/src/component/module/connector/storePath.d.ts +4 -0
- package/dist/types/src/component/module/connector/storeValues.d.ts +4 -0
- package/dist/types/src/component/module/connector/webLock.d.ts +1 -0
- package/dist/types/src/component/module/engine/index.d.ts +3 -0
- package/dist/types/src/component/module/tool/index.d.ts +1 -1
- package/dist/types/src/component/module/tool/parser.d.ts +9 -2
- package/package.json +1 -1
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -400,11 +400,11 @@ function T(e) {
|
|
|
400
400
|
return t;
|
|
401
401
|
}
|
|
402
402
|
/* @__NO_SIDE_EFFECTS__ */
|
|
403
|
-
function
|
|
403
|
+
function ee(e, t) {
|
|
404
404
|
return d({
|
|
405
405
|
kind: "schema",
|
|
406
406
|
type: "union",
|
|
407
|
-
reference:
|
|
407
|
+
reference: ee,
|
|
408
408
|
expects: /* @__PURE__ */ u(e.map((e) => e.expects), "|"),
|
|
409
409
|
async: !1,
|
|
410
410
|
options: e,
|
|
@@ -432,7 +432,7 @@ function E(e, t) {
|
|
|
432
432
|
});
|
|
433
433
|
}
|
|
434
434
|
/* @__NO_SIDE_EFFECTS__ */
|
|
435
|
-
function
|
|
435
|
+
function te(...e) {
|
|
436
436
|
return d({
|
|
437
437
|
...e[0],
|
|
438
438
|
pipe: e,
|
|
@@ -449,7 +449,7 @@ function ee(...e) {
|
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
/* @__NO_SIDE_EFFECTS__ */
|
|
452
|
-
function
|
|
452
|
+
function ne(e, t, n) {
|
|
453
453
|
let r = e["~run"]({ value: t }, /* @__PURE__ */ a(n));
|
|
454
454
|
return {
|
|
455
455
|
typed: r.typed,
|
|
@@ -459,10 +459,10 @@ function te(e, t, n) {
|
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
// src/locale/locale.schema.ts
|
|
462
|
-
var
|
|
462
|
+
var E = /* @__PURE__ */ C({
|
|
463
463
|
en: /* @__PURE__ */ w(),
|
|
464
464
|
es: /* @__PURE__ */ w()
|
|
465
|
-
}),
|
|
465
|
+
}), re = {
|
|
466
466
|
id: /* @__PURE__ */ w(),
|
|
467
467
|
label: /* @__PURE__ */ C({
|
|
468
468
|
en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
@@ -474,7 +474,7 @@ var D = /* @__PURE__ */ C({
|
|
|
474
474
|
}),
|
|
475
475
|
icon: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
476
476
|
iconDark: /* @__PURE__ */ y(/* @__PURE__ */ w())
|
|
477
|
-
},
|
|
477
|
+
}, D = (e) => /* @__PURE__ */ ee(e.map((e) => /* @__PURE__ */ _(e))), ie = D([
|
|
478
478
|
"app",
|
|
479
479
|
"connector",
|
|
480
480
|
"connectorConnection",
|
|
@@ -496,32 +496,32 @@ var D = /* @__PURE__ */ C({
|
|
|
496
496
|
"presenter",
|
|
497
497
|
"presenterPresentation",
|
|
498
498
|
"tool"
|
|
499
|
-
]),
|
|
499
|
+
]), ae = D([
|
|
500
500
|
"danger",
|
|
501
501
|
"success",
|
|
502
502
|
"warning"
|
|
503
|
-
]),
|
|
503
|
+
]), oe = D([
|
|
504
504
|
"alpha",
|
|
505
505
|
"beta",
|
|
506
506
|
"releaseCandidate",
|
|
507
507
|
"generalAvailability"
|
|
508
|
-
]),
|
|
509
|
-
color:
|
|
508
|
+
]), se = /* @__PURE__ */ C({
|
|
509
|
+
color: ae,
|
|
510
510
|
label: /* @__PURE__ */ w()
|
|
511
|
-
}),
|
|
512
|
-
...
|
|
513
|
-
typeId:
|
|
514
|
-
},
|
|
515
|
-
...
|
|
511
|
+
}), O = {
|
|
512
|
+
...re,
|
|
513
|
+
typeId: ie
|
|
514
|
+
}, k = /* @__PURE__ */ C({
|
|
515
|
+
...O,
|
|
516
516
|
order: /* @__PURE__ */ b(),
|
|
517
517
|
path: /* @__PURE__ */ w()
|
|
518
|
-
}),
|
|
519
|
-
...
|
|
518
|
+
}), ce = {
|
|
519
|
+
...O,
|
|
520
520
|
firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
521
521
|
lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
522
|
-
status: /* @__PURE__ */ y(
|
|
523
|
-
statusId: /* @__PURE__ */ y(
|
|
524
|
-
},
|
|
522
|
+
status: /* @__PURE__ */ y(se),
|
|
523
|
+
statusId: /* @__PURE__ */ y(oe)
|
|
524
|
+
}, le = /* @__PURE__ */ C({ ...ce }), ue = [
|
|
525
525
|
{
|
|
526
526
|
id: "alpha",
|
|
527
527
|
color: "danger",
|
|
@@ -555,8 +555,8 @@ var D = /* @__PURE__ */ C({
|
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
];
|
|
558
|
-
function
|
|
559
|
-
let n =
|
|
558
|
+
function de(e, t = "en") {
|
|
559
|
+
let n = ue.find((t) => t.id === e);
|
|
560
560
|
if (n) {
|
|
561
561
|
let e = n.labels[t] ?? n.labels.en ?? n.id;
|
|
562
562
|
return {
|
|
@@ -570,7 +570,7 @@ function fe(e, t = "en") {
|
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
572
|
// src/component/dataView/index.ts
|
|
573
|
-
var
|
|
573
|
+
var fe = [
|
|
574
574
|
{
|
|
575
575
|
id: "arrow",
|
|
576
576
|
isTable: !1,
|
|
@@ -649,7 +649,7 @@ var pe = [
|
|
|
649
649
|
isText: !1,
|
|
650
650
|
supportId: "unsupported"
|
|
651
651
|
}
|
|
652
|
-
],
|
|
652
|
+
], A = [
|
|
653
653
|
{
|
|
654
654
|
id: ",",
|
|
655
655
|
character: ","
|
|
@@ -690,7 +690,7 @@ var pe = [
|
|
|
690
690
|
id: "0x1E",
|
|
691
691
|
character: ""
|
|
692
692
|
}
|
|
693
|
-
],
|
|
693
|
+
], pe = [
|
|
694
694
|
{
|
|
695
695
|
id: "string",
|
|
696
696
|
defaultSubtypeId: "plain",
|
|
@@ -747,11 +747,11 @@ var pe = [
|
|
|
747
747
|
isChoosable: !1,
|
|
748
748
|
subtypeIds: []
|
|
749
749
|
}
|
|
750
|
-
],
|
|
751
|
-
function
|
|
752
|
-
return
|
|
750
|
+
], me = [",", "."];
|
|
751
|
+
function he(e) {
|
|
752
|
+
return A.find(({ id: t }) => t === e)?.character ?? e;
|
|
753
753
|
}
|
|
754
|
-
|
|
754
|
+
D([
|
|
755
755
|
"app",
|
|
756
756
|
"engine",
|
|
757
757
|
"connector",
|
|
@@ -760,17 +760,16 @@ O([
|
|
|
760
760
|
"tool"
|
|
761
761
|
]);
|
|
762
762
|
// src/component/module/moduleConfig.schema.ts
|
|
763
|
-
var
|
|
764
|
-
...
|
|
763
|
+
var j = {
|
|
764
|
+
...ce,
|
|
765
765
|
vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
766
766
|
vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
767
767
|
vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
768
768
|
version: /* @__PURE__ */ w()
|
|
769
769
|
};
|
|
770
|
-
({ ...
|
|
770
|
+
({ ...j });
|
|
771
771
|
// src/component/module/connector/connectorConfig.schema.ts
|
|
772
|
-
var
|
|
773
|
-
"abortOperation",
|
|
772
|
+
var ge = D([
|
|
774
773
|
"auditObjectContent",
|
|
775
774
|
"closeStore",
|
|
776
775
|
"createObject",
|
|
@@ -786,25 +785,24 @@ var _e = O([
|
|
|
786
785
|
"previewObject",
|
|
787
786
|
"queryRecords",
|
|
788
787
|
"removeRecords",
|
|
789
|
-
"retrieveChunks",
|
|
790
788
|
"retrieveRecords",
|
|
791
789
|
"upsertRecords"
|
|
792
|
-
]),
|
|
790
|
+
]), _e = D([
|
|
793
791
|
"application",
|
|
794
792
|
"curatedDataset",
|
|
795
793
|
"database",
|
|
796
794
|
"fileStore"
|
|
797
|
-
]),
|
|
795
|
+
]), ve = /* @__PURE__ */ C({ label: E }), ye = D([
|
|
798
796
|
"apiEndpoint",
|
|
799
797
|
"file",
|
|
800
798
|
"table"
|
|
801
|
-
]),
|
|
799
|
+
]), be = D([
|
|
802
800
|
"bidirectional",
|
|
803
801
|
"destination",
|
|
804
802
|
"source",
|
|
805
803
|
"unknown"
|
|
806
|
-
]),
|
|
807
|
-
authMethodId:
|
|
804
|
+
]), xe = /* @__PURE__ */ C({ label: E }), Se = /* @__PURE__ */ C({
|
|
805
|
+
authMethodId: D([
|
|
808
806
|
"apiKey",
|
|
809
807
|
"disabled",
|
|
810
808
|
"oAuth2",
|
|
@@ -813,20 +811,20 @@ var _e = O([
|
|
|
813
811
|
activeConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ b()),
|
|
814
812
|
canDescribe: /* @__PURE__ */ x(/* @__PURE__ */ g()),
|
|
815
813
|
id: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
816
|
-
label: /* @__PURE__ */ x(
|
|
814
|
+
label: /* @__PURE__ */ x(E),
|
|
817
815
|
maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
818
816
|
params: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
|
|
819
|
-
}),
|
|
820
|
-
...
|
|
817
|
+
}), Ce = /* @__PURE__ */ C({
|
|
818
|
+
...j,
|
|
821
819
|
typeId: /* @__PURE__ */ _("connector"),
|
|
822
|
-
actionNames: /* @__PURE__ */ h(
|
|
823
|
-
category: /* @__PURE__ */ y(
|
|
824
|
-
categoryId:
|
|
825
|
-
implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(),
|
|
826
|
-
itemTypeId:
|
|
827
|
-
usage: /* @__PURE__ */ y(
|
|
828
|
-
usageId: /* @__PURE__ */ y(
|
|
829
|
-
}),
|
|
820
|
+
actionNames: /* @__PURE__ */ h(ge),
|
|
821
|
+
category: /* @__PURE__ */ y(ve),
|
|
822
|
+
categoryId: _e,
|
|
823
|
+
implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), Se),
|
|
824
|
+
itemTypeId: ye,
|
|
825
|
+
usage: /* @__PURE__ */ y(xe),
|
|
826
|
+
usageId: /* @__PURE__ */ y(be)
|
|
827
|
+
}), we = {
|
|
830
828
|
arabic: {
|
|
831
829
|
id: "arabic",
|
|
832
830
|
label: {
|
|
@@ -981,7 +979,7 @@ var _e = O([
|
|
|
981
979
|
es: "Occidental"
|
|
982
980
|
}
|
|
983
981
|
}
|
|
984
|
-
},
|
|
982
|
+
}, Te = {
|
|
985
983
|
"armscii-8": {
|
|
986
984
|
id: "armscii-8",
|
|
987
985
|
groupId: "armenian",
|
|
@@ -1773,16 +1771,16 @@ var _e = O([
|
|
|
1773
1771
|
textDecoderId: "windows-1257",
|
|
1774
1772
|
iconvLiteDecoderId: "windows1257"
|
|
1775
1773
|
}
|
|
1776
|
-
},
|
|
1777
|
-
function
|
|
1774
|
+
}, Ee = we, M = Te;
|
|
1775
|
+
function De(e) {
|
|
1778
1776
|
return Object.hasOwn(M, e);
|
|
1779
1777
|
}
|
|
1780
|
-
function
|
|
1781
|
-
return
|
|
1778
|
+
function Oe(e) {
|
|
1779
|
+
return De(e) ? M[e].textDecoderId ?? e : e;
|
|
1782
1780
|
}
|
|
1783
|
-
function
|
|
1781
|
+
function ke(e = "en") {
|
|
1784
1782
|
return Array.from(Object.values(M), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {
|
|
1785
|
-
let o = t == null ? "" :
|
|
1783
|
+
let o = t == null ? "" : Ae(t, e);
|
|
1786
1784
|
return {
|
|
1787
1785
|
id: r,
|
|
1788
1786
|
groupLabel: o,
|
|
@@ -1794,40 +1792,40 @@ function De(e = "en") {
|
|
|
1794
1792
|
};
|
|
1795
1793
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));
|
|
1796
1794
|
}
|
|
1797
|
-
function
|
|
1798
|
-
let n =
|
|
1795
|
+
function Ae(e, t) {
|
|
1796
|
+
let n = Ee[e].label;
|
|
1799
1797
|
return n[t] ?? n.en ?? e;
|
|
1800
1798
|
}
|
|
1801
1799
|
// src/errors/index.ts
|
|
1802
|
-
var
|
|
1803
|
-
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${
|
|
1804
|
-
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) =>
|
|
1805
|
-
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () =>
|
|
1806
|
-
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () =>
|
|
1807
|
-
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () =>
|
|
1808
|
-
],
|
|
1800
|
+
var je = 2048, N = "[REDACTED]", Me = 10, Ne = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Pe = [
|
|
1801
|
+
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
|
|
1802
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => Ne.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
|
|
1803
|
+
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
|
|
1804
|
+
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
|
|
1805
|
+
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
|
|
1806
|
+
], P = class extends Error {
|
|
1809
1807
|
data;
|
|
1810
1808
|
locator;
|
|
1811
1809
|
constructor(e, t, n, r) {
|
|
1812
1810
|
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
1813
1811
|
}
|
|
1814
|
-
},
|
|
1812
|
+
}, F = class extends P {
|
|
1815
1813
|
constructor(e, t, n, r) {
|
|
1816
1814
|
super(e, t, n, r), this.name = "AppError";
|
|
1817
1815
|
}
|
|
1818
|
-
},
|
|
1816
|
+
}, I = class extends P {
|
|
1819
1817
|
constructor(e, t, n, r) {
|
|
1820
1818
|
super(e, t, n, r), this.name = "APIError";
|
|
1821
1819
|
}
|
|
1822
|
-
},
|
|
1820
|
+
}, L = class extends P {
|
|
1823
1821
|
constructor(e, t, n, r) {
|
|
1824
1822
|
super(e, t, n, r), this.name = "EngineError";
|
|
1825
1823
|
}
|
|
1826
|
-
}, Fe = class extends
|
|
1824
|
+
}, Fe = class extends P {
|
|
1827
1825
|
constructor(e, t, n, r) {
|
|
1828
1826
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
1829
1827
|
}
|
|
1830
|
-
}, R = class extends
|
|
1828
|
+
}, R = class extends P {
|
|
1831
1829
|
constructor(e, t, n, r) {
|
|
1832
1830
|
super(e, t, n, r), this.name = "FetchError";
|
|
1833
1831
|
}
|
|
@@ -1889,10 +1887,10 @@ function Ve(e) {
|
|
|
1889
1887
|
}
|
|
1890
1888
|
function He(e, t) {
|
|
1891
1889
|
switch (e.name) {
|
|
1892
|
-
case "APIError": return new
|
|
1893
|
-
case "AppError": return new
|
|
1890
|
+
case "APIError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
1891
|
+
case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
|
|
1894
1892
|
case "ConnectorError": return new Fe(e.message, e.locator, e.data, { cause: t });
|
|
1895
|
-
case "EngineError": return new
|
|
1893
|
+
case "EngineError": return new L(e.message, e.locator, e.data, { cause: t });
|
|
1896
1894
|
case "FetchError": return new R(e.message, e.locator, e.data, { cause: t });
|
|
1897
1895
|
default: {
|
|
1898
1896
|
let n = e.name;
|
|
@@ -1913,18 +1911,18 @@ function Ue(e) {
|
|
|
1913
1911
|
}
|
|
1914
1912
|
function B(e) {
|
|
1915
1913
|
let t = e;
|
|
1916
|
-
for (let [e, n] of
|
|
1914
|
+
for (let [e, n] of Pe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
1917
1915
|
return t;
|
|
1918
1916
|
}
|
|
1919
1917
|
function V(e, t, n) {
|
|
1920
|
-
return typeof e == "string" ? B(e) : typeof e != "object" || !e ? e : n >=
|
|
1918
|
+
return typeof e == "string" ? B(e) : typeof e != "object" || !e ? e : n >= Me ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => V(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && Ne.test(e) ? N : V(r, t, n + 1)])));
|
|
1921
1919
|
}
|
|
1922
1920
|
function We(e) {
|
|
1923
|
-
if (e != null && e !== "") return e.length >
|
|
1921
|
+
if (e != null && e !== "") return e.length > je ? `${e.slice(0, je)}... [truncated]` : e;
|
|
1924
1922
|
}
|
|
1925
1923
|
function Ge(e) {
|
|
1926
1924
|
let t = e.cause == null ? null : z(e.cause);
|
|
1927
|
-
if (e instanceof
|
|
1925
|
+
if (e instanceof P) return [{
|
|
1928
1926
|
data: e.data,
|
|
1929
1927
|
locator: e.locator,
|
|
1930
1928
|
message: e.message,
|
|
@@ -1946,7 +1944,7 @@ function Ge(e) {
|
|
|
1946
1944
|
stack: void 0
|
|
1947
1945
|
}, null];
|
|
1948
1946
|
}
|
|
1949
|
-
var Ke = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */
|
|
1947
|
+
var Ke = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(D([
|
|
1950
1948
|
"arrow",
|
|
1951
1949
|
"avro",
|
|
1952
1950
|
"dtv",
|
|
@@ -1960,7 +1958,7 @@ var Ke = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ ee(/* @__PURE__ */ h
|
|
|
1960
1958
|
"xlsx",
|
|
1961
1959
|
"xml"
|
|
1962
1960
|
])), /* @__PURE__ */ f(1)) }), qe = /* @__PURE__ */ h(/* @__PURE__ */ w()), Je = /* @__PURE__ */ C({
|
|
1963
|
-
...
|
|
1961
|
+
...j,
|
|
1964
1962
|
typeId: /* @__PURE__ */ _("tool"),
|
|
1965
1963
|
actionNames: /* @__PURE__ */ x(qe),
|
|
1966
1964
|
parser: /* @__PURE__ */ x(Ke)
|
|
@@ -2038,19 +2036,19 @@ function G(e, t, n) {
|
|
|
2038
2036
|
availableToolIds: e.map((e) => e.id),
|
|
2039
2037
|
dataFormatId: t
|
|
2040
2038
|
};
|
|
2041
|
-
throw new
|
|
2039
|
+
throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
2042
2040
|
}
|
|
2043
2041
|
let a = tt[t];
|
|
2044
2042
|
return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
|
|
2045
2043
|
}
|
|
2046
|
-
async function
|
|
2044
|
+
async function K(e, t) {
|
|
2047
2045
|
let n = `${U}${t}`, r = e.find((e) => e.id === n);
|
|
2048
2046
|
if (!r) {
|
|
2049
2047
|
let r = {
|
|
2050
2048
|
availableToolIds: e.map((e) => e.id),
|
|
2051
2049
|
toolName: n
|
|
2052
2050
|
};
|
|
2053
|
-
throw new
|
|
2051
|
+
throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
2054
2052
|
}
|
|
2055
2053
|
let i = `${et}/${t}_v${r.version}/${n}.es.js`;
|
|
2056
2054
|
try {
|
|
@@ -2064,12 +2062,12 @@ async function nt(e, t) {
|
|
|
2064
2062
|
url: i,
|
|
2065
2063
|
version: r.version
|
|
2066
2064
|
};
|
|
2067
|
-
throw new
|
|
2065
|
+
throw new F(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
2068
2066
|
}
|
|
2069
2067
|
}
|
|
2070
2068
|
// src/component/module/connector/objectParsing.ts
|
|
2071
|
-
var
|
|
2072
|
-
async function
|
|
2069
|
+
var nt = "\n", q = ",", rt = 13, J = 10, it = 34, Y = 1048576;
|
|
2070
|
+
async function at(e) {
|
|
2073
2071
|
let { asAt: t, declaredColumnConfigs: n, declaredReadingConfig: r, filePreview: i, inferDataTypes: a, readingChoiceConfig: o, startedAt: s, toolConfigs: c } = e, { isComplete: l, text: u } = i, d = r != null, f = i.bytes.length, p = {
|
|
2074
2072
|
decodedEncodingId: i.decodedEncodingId,
|
|
2075
2073
|
replacementCharacterCount: i.replacementCharacterCount
|
|
@@ -2103,10 +2101,10 @@ async function ot(e) {
|
|
|
2103
2101
|
hasHeaders: !1,
|
|
2104
2102
|
parsedRecords: [],
|
|
2105
2103
|
parserId: void 0,
|
|
2106
|
-
recordDelimiterId:
|
|
2104
|
+
recordDelimiterId: nt,
|
|
2107
2105
|
size: 0,
|
|
2108
2106
|
text: void 0,
|
|
2109
|
-
valueDelimiterId:
|
|
2107
|
+
valueDelimiterId: q
|
|
2110
2108
|
},
|
|
2111
2109
|
readingConfig: {
|
|
2112
2110
|
dataFormatId: "dtv",
|
|
@@ -2116,8 +2114,8 @@ async function ot(e) {
|
|
|
2116
2114
|
hasHeaders: !1,
|
|
2117
2115
|
isDeclared: d,
|
|
2118
2116
|
parserId: void 0,
|
|
2119
|
-
recordDelimiterId:
|
|
2120
|
-
valueDelimiterId:
|
|
2117
|
+
recordDelimiterId: nt,
|
|
2118
|
+
valueDelimiterId: q
|
|
2121
2119
|
},
|
|
2122
2120
|
encodingCandidates: m
|
|
2123
2121
|
};
|
|
@@ -2171,41 +2169,59 @@ async function ot(e) {
|
|
|
2171
2169
|
encodingCandidates: m
|
|
2172
2170
|
};
|
|
2173
2171
|
}
|
|
2172
|
+
async function* ot(e) {
|
|
2173
|
+
let { options: t, signal: n, stream: r, toolConfigs: i } = e, { encodingId: a, valueDelimiterId: o } = ct(t), { parser: s } = await X(i, t.dataFormatId, t.parserId), { recordCount: c } = yield* s.parseStream(r, {
|
|
2174
|
+
abortSignal: n,
|
|
2175
|
+
chunkSize: t.chunkSize,
|
|
2176
|
+
dataFormatId: t.dataFormatId,
|
|
2177
|
+
encodingId: a,
|
|
2178
|
+
valueDelimiterId: o
|
|
2179
|
+
});
|
|
2180
|
+
return { recordCount: c };
|
|
2181
|
+
}
|
|
2174
2182
|
async function st(e) {
|
|
2175
|
-
let {
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
encodingId: n.encodingId,
|
|
2181
|
-
valueDelimiterId: n.valueDelimiterId
|
|
2182
|
-
}, t);
|
|
2183
|
-
}
|
|
2184
|
-
async function ct(e) {
|
|
2185
|
-
let { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, c = Date.now(), l = performance.now(), u = t(i.hasHeaders, n), { parser: d } = await Y(s, i.dataFormatId, i.parserId), f = ft(o), p = ut(f.stream, i), m = await d.parseStream(p.stream, {
|
|
2183
|
+
let { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, { encodingId: c, valueDelimiterId: l } = ct(i), u = Date.now(), d = performance.now(), f = t(i.hasHeaders, n), { parser: p } = await X(s, i.dataFormatId, i.parserId), m = ft(o), h = ut(m.stream, {
|
|
2184
|
+
byteLimit: i.byteLimit,
|
|
2185
|
+
encodingId: c,
|
|
2186
|
+
stopSignal: i.stopSignal
|
|
2187
|
+
}), g = p.parseStream(h.stream, {
|
|
2186
2188
|
abortSignal: a,
|
|
2187
2189
|
chunkSize: i.chunkSize,
|
|
2188
2190
|
dataFormatId: i.dataFormatId,
|
|
2189
|
-
encodingId:
|
|
2190
|
-
valueDelimiterId:
|
|
2191
|
-
},
|
|
2192
|
-
|
|
2193
|
-
|
|
2191
|
+
encodingId: c,
|
|
2192
|
+
valueDelimiterId: l
|
|
2193
|
+
}), _ = await g.next();
|
|
2194
|
+
for (; _.done !== !0;) {
|
|
2195
|
+
try {
|
|
2196
|
+
f.auditRecords(_.value.records), r(_.value.records.length, h.byteCount());
|
|
2197
|
+
} catch (e) {
|
|
2198
|
+
throw await g.throw(e), e;
|
|
2199
|
+
}
|
|
2200
|
+
_ = await g.next();
|
|
2201
|
+
}
|
|
2202
|
+
let v = _.value, { columnConfigs: y, hasHeaders: b } = f.completeAudit();
|
|
2194
2203
|
return {
|
|
2195
2204
|
contentAuditConfig: {
|
|
2196
|
-
asAt:
|
|
2197
|
-
byteCount:
|
|
2198
|
-
columns:
|
|
2199
|
-
commentLineCount:
|
|
2200
|
-
duration: performance.now() -
|
|
2201
|
-
emptyLineCount:
|
|
2202
|
-
invalidFieldLengthCount:
|
|
2203
|
-
isComplete:
|
|
2204
|
-
lineCount:
|
|
2205
|
-
recordCount: Math.max(0,
|
|
2206
|
-
sourceWaitDuration:
|
|
2205
|
+
asAt: u,
|
|
2206
|
+
byteCount: h.byteCount(),
|
|
2207
|
+
columns: y,
|
|
2208
|
+
commentLineCount: v.commentLineCount,
|
|
2209
|
+
duration: performance.now() - d,
|
|
2210
|
+
emptyLineCount: v.emptyLineCount,
|
|
2211
|
+
invalidFieldLengthCount: v.nonUniformRecordCount,
|
|
2212
|
+
isComplete: h.isComplete(),
|
|
2213
|
+
lineCount: v.lineCount,
|
|
2214
|
+
recordCount: Math.max(0, v.recordCount - +!!b),
|
|
2215
|
+
sourceWaitDuration: m.waitDuration()
|
|
2207
2216
|
},
|
|
2208
|
-
hasHeaders:
|
|
2217
|
+
hasHeaders: b
|
|
2218
|
+
};
|
|
2219
|
+
}
|
|
2220
|
+
function ct(e) {
|
|
2221
|
+
if (e.encodingId == null || e.valueDelimiterId == null) throw Error(`'${e.path}' has no encoding or value delimiter, which a parser needs to read it.`);
|
|
2222
|
+
return {
|
|
2223
|
+
encodingId: e.encodingId,
|
|
2224
|
+
valueDelimiterId: e.valueDelimiterId
|
|
2209
2225
|
};
|
|
2210
2226
|
}
|
|
2211
2227
|
function lt(e) {
|
|
@@ -2240,8 +2256,8 @@ function ut(e, t) {
|
|
|
2240
2256
|
}
|
|
2241
2257
|
s = t.value;
|
|
2242
2258
|
}
|
|
2243
|
-
let c = s.subarray(0,
|
|
2244
|
-
o = s.length >
|
|
2259
|
+
let c = s.subarray(0, Y);
|
|
2260
|
+
o = s.length > Y ? s.subarray(Y) : void 0;
|
|
2245
2261
|
let l = t.stopSignal?.aborted === !0 ? i : t.byteLimit ?? Infinity, u = r(c, i, l - i);
|
|
2246
2262
|
u == null ? (i += c.length, e.enqueue(c)) : (i += u, o = void 0, e.enqueue(c.subarray(0, u)), e.close(), await n.cancel());
|
|
2247
2263
|
},
|
|
@@ -2252,13 +2268,13 @@ function ut(e, t) {
|
|
|
2252
2268
|
};
|
|
2253
2269
|
}
|
|
2254
2270
|
function dt(e) {
|
|
2255
|
-
let t =
|
|
2271
|
+
let t = Oe(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
|
|
2256
2272
|
return (e, t, o) => {
|
|
2257
2273
|
for (let s = 0; s < e.length; s++) {
|
|
2258
2274
|
let c = e[s];
|
|
2259
|
-
if ((c ===
|
|
2260
|
-
if (c ===
|
|
2261
|
-
else if (!a && s >= o && (c ===
|
|
2275
|
+
if ((c === it || c === J || c === rt) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
|
|
2276
|
+
if (c === it) a = !a;
|
|
2277
|
+
else if (!a && s >= o && (c === J || e[s + r] !== J)) return s + r - i;
|
|
2262
2278
|
}
|
|
2263
2279
|
}
|
|
2264
2280
|
};
|
|
@@ -2281,38 +2297,74 @@ function ft(e) {
|
|
|
2281
2297
|
async function pt(e) {
|
|
2282
2298
|
let { dataFormatId: t, isComplete: n, parserId: r, text: i, toolConfigs: a, valueDelimiterId: o } = e;
|
|
2283
2299
|
if (t == null || i == null || W(a, t).length === 0) return;
|
|
2284
|
-
let { parser: s, parserId: c } = await
|
|
2300
|
+
let { parser: s, parserId: c } = await X(a, t, r), l = o == null ? A.map(({ id: e }) => e) : [o], u = await s.parseText(i, {
|
|
2285
2301
|
dataFormatId: t,
|
|
2286
2302
|
isComplete: n,
|
|
2287
2303
|
valueDelimiterIds: l
|
|
2288
2304
|
}), d = t === "dtv", f = d && o == null && u.valueDelimiterId == null ? await s.parseText(i, {
|
|
2289
2305
|
dataFormatId: t,
|
|
2290
2306
|
isComplete: n,
|
|
2291
|
-
valueDelimiterIds: [
|
|
2307
|
+
valueDelimiterIds: [q]
|
|
2292
2308
|
}) : u;
|
|
2293
2309
|
return {
|
|
2294
2310
|
parserId: c,
|
|
2295
2311
|
parseTextResult: f,
|
|
2296
|
-
valueDelimiterId: d ? o ?? f.valueDelimiterId ??
|
|
2312
|
+
valueDelimiterId: d ? o ?? f.valueDelimiterId ?? q : f.valueDelimiterId
|
|
2297
2313
|
};
|
|
2298
2314
|
}
|
|
2299
|
-
async function
|
|
2315
|
+
async function X(e, t, n) {
|
|
2300
2316
|
let r = G(e, t, n);
|
|
2301
2317
|
return {
|
|
2302
|
-
parser: await
|
|
2318
|
+
parser: await K(e, r.id.slice(U.length)),
|
|
2303
2319
|
parserId: r.id
|
|
2304
2320
|
};
|
|
2305
2321
|
}
|
|
2306
|
-
|
|
2322
|
+
// src/component/module/connector/storePath.ts
|
|
2323
|
+
var mt = /^[\w-]+$/u;
|
|
2324
|
+
function ht(e) {
|
|
2325
|
+
if (!e.startsWith("/")) return {
|
|
2326
|
+
databaseName: void 0,
|
|
2327
|
+
tableName: e
|
|
2328
|
+
};
|
|
2329
|
+
let [, t, n, ...r] = e.split("/");
|
|
2330
|
+
if (t == null || n == null || n === "" || r.length > 0 || !mt.test(t)) throw Error(`Encountered invalid store path '${e}'.`);
|
|
2331
|
+
return {
|
|
2332
|
+
databaseName: t,
|
|
2333
|
+
tableName: n
|
|
2334
|
+
};
|
|
2335
|
+
}
|
|
2336
|
+
// src/component/module/connector/storeValues.ts
|
|
2337
|
+
function gt(e) {
|
|
2338
|
+
return e.map((e) => ({
|
|
2339
|
+
value: _t(e),
|
|
2340
|
+
valueWasQuoted: !1
|
|
2341
|
+
}));
|
|
2342
|
+
}
|
|
2343
|
+
function _t(e) {
|
|
2344
|
+
return e == null ? null : e instanceof Date ? e.toISOString() : String(e);
|
|
2345
|
+
}
|
|
2346
|
+
// src/component/module/connector/webLock.ts
|
|
2347
|
+
async function vt(e) {
|
|
2348
|
+
let t = Promise.withResolvers(), n = navigator.locks.request(e, { ifAvailable: !0 }, (e) => {
|
|
2349
|
+
if (e == null) t.resolve(void 0);
|
|
2350
|
+
else return new Promise((e) => {
|
|
2351
|
+
t.resolve(e);
|
|
2352
|
+
});
|
|
2353
|
+
}), r = (async () => {
|
|
2354
|
+
await n;
|
|
2355
|
+
})();
|
|
2356
|
+
return await Promise.race([t.promise, r]);
|
|
2357
|
+
}
|
|
2358
|
+
var yt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
|
|
2307
2359
|
format: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2308
2360
|
name: /* @__PURE__ */ w(),
|
|
2309
2361
|
title: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2310
2362
|
type: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
2311
|
-
})) }),
|
|
2363
|
+
})) }), bt = /* @__PURE__ */ v({
|
|
2312
2364
|
delimiter: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2313
2365
|
header: /* @__PURE__ */ x(/* @__PURE__ */ g()),
|
|
2314
2366
|
headerRows: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ b()))
|
|
2315
|
-
}),
|
|
2367
|
+
}), xt = {
|
|
2316
2368
|
boolean: {
|
|
2317
2369
|
dataSubtypeId: void 0,
|
|
2318
2370
|
dataTypeId: "boolean"
|
|
@@ -2345,18 +2397,18 @@ var mt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
|
|
|
2345
2397
|
dataSubtypeId: "integer",
|
|
2346
2398
|
dataTypeId: "numeric"
|
|
2347
2399
|
}
|
|
2348
|
-
},
|
|
2400
|
+
}, St = {
|
|
2349
2401
|
email: "email",
|
|
2350
2402
|
uri: "url",
|
|
2351
2403
|
uuid: "uuid"
|
|
2352
2404
|
};
|
|
2353
|
-
function
|
|
2354
|
-
let t = /* @__PURE__ */
|
|
2355
|
-
if (!t.success) throw new
|
|
2356
|
-
let n = /* @__PURE__ */
|
|
2357
|
-
if (!n.success) throw new
|
|
2405
|
+
function Ct(e) {
|
|
2406
|
+
let t = /* @__PURE__ */ ne(yt, e.schema);
|
|
2407
|
+
if (!t.success) throw new F("The table schema is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2408
|
+
let n = /* @__PURE__ */ ne(bt, e.dialect ?? {});
|
|
2409
|
+
if (!n.success) throw new F("The table dialect is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2358
2410
|
let r = t.output.fields.map((e) => {
|
|
2359
|
-
let t =
|
|
2411
|
+
let t = wt(e.type, e.format);
|
|
2360
2412
|
return {
|
|
2361
2413
|
name: e.name,
|
|
2362
2414
|
label: e.title,
|
|
@@ -2370,22 +2422,22 @@ function vt(e) {
|
|
|
2370
2422
|
dataFormatId: "dtv",
|
|
2371
2423
|
encodingId: e.encoding?.toLowerCase(),
|
|
2372
2424
|
hasHeaders: a && o.length > 0,
|
|
2373
|
-
valueDelimiterId:
|
|
2425
|
+
valueDelimiterId: A.find(({ character: e }) => e === i)?.id
|
|
2374
2426
|
}
|
|
2375
2427
|
};
|
|
2376
2428
|
}
|
|
2377
|
-
function
|
|
2378
|
-
let n = e == null ? void 0 :
|
|
2429
|
+
function wt(e, t) {
|
|
2430
|
+
let n = e == null ? void 0 : xt[e];
|
|
2379
2431
|
return n == null ? {
|
|
2380
2432
|
dataSubtypeId: void 0,
|
|
2381
2433
|
dataTypeId: void 0
|
|
2382
2434
|
} : t == null || n.dataTypeId !== "string" ? n : {
|
|
2383
|
-
dataSubtypeId:
|
|
2435
|
+
dataSubtypeId: St[t] ?? "plain",
|
|
2384
2436
|
dataTypeId: "string"
|
|
2385
2437
|
};
|
|
2386
2438
|
}
|
|
2387
2439
|
// src/component/module/connector/index.ts
|
|
2388
|
-
var
|
|
2440
|
+
var Tt = [
|
|
2389
2441
|
{
|
|
2390
2442
|
id: "application",
|
|
2391
2443
|
label: {
|
|
@@ -2414,7 +2466,7 @@ var bt = [
|
|
|
2414
2466
|
es: "Almacén de Archivos"
|
|
2415
2467
|
}
|
|
2416
2468
|
}
|
|
2417
|
-
],
|
|
2469
|
+
], Et = [
|
|
2418
2470
|
{
|
|
2419
2471
|
id: "apiEndpoint",
|
|
2420
2472
|
label: {
|
|
@@ -2436,8 +2488,7 @@ var bt = [
|
|
|
2436
2488
|
es: "Tabla"
|
|
2437
2489
|
}
|
|
2438
2490
|
}
|
|
2439
|
-
],
|
|
2440
|
-
abortOperation: "Abort Operation",
|
|
2491
|
+
], Dt = {
|
|
2441
2492
|
auditObjectContent: "Audit Object Content",
|
|
2442
2493
|
closeStore: "Close Store",
|
|
2443
2494
|
createObject: "Create Object",
|
|
@@ -2453,10 +2504,9 @@ var bt = [
|
|
|
2453
2504
|
previewObject: "Preview Object",
|
|
2454
2505
|
queryRecords: "Query Records",
|
|
2455
2506
|
removeRecords: "Remove Records",
|
|
2456
|
-
retrieveChunks: "Retrieve Chunks",
|
|
2457
2507
|
retrieveRecords: "Retrieve Records",
|
|
2458
2508
|
upsertRecords: "Upsert Records"
|
|
2459
|
-
},
|
|
2509
|
+
}, Ot = [
|
|
2460
2510
|
{
|
|
2461
2511
|
id: "bidirectional",
|
|
2462
2512
|
label: {
|
|
@@ -2485,13 +2535,13 @@ var bt = [
|
|
|
2485
2535
|
es: "Desconocido"
|
|
2486
2536
|
}
|
|
2487
2537
|
}
|
|
2488
|
-
],
|
|
2538
|
+
], kt = /* @__PURE__ */ new Set([
|
|
2489
2539
|
"createObject",
|
|
2490
2540
|
"dropObject",
|
|
2491
2541
|
"loadObjectRecords",
|
|
2492
2542
|
"removeRecords",
|
|
2493
2543
|
"upsertRecords"
|
|
2494
|
-
]),
|
|
2544
|
+
]), At = /* @__PURE__ */ new Set([
|
|
2495
2545
|
"auditObjectContent",
|
|
2496
2546
|
"findObject",
|
|
2497
2547
|
"getInfo",
|
|
@@ -2500,16 +2550,15 @@ var bt = [
|
|
|
2500
2550
|
"listNodes",
|
|
2501
2551
|
"previewObject",
|
|
2502
2552
|
"queryRecords",
|
|
2503
|
-
"retrieveChunks",
|
|
2504
2553
|
"retrieveRecords"
|
|
2505
2554
|
]);
|
|
2506
|
-
function
|
|
2555
|
+
function jt(e) {
|
|
2507
2556
|
let t = !1, n = !1;
|
|
2508
|
-
for (let r of e)
|
|
2557
|
+
for (let r of e) At.has(r) && (t = !0), kt.has(r) && (n = !0);
|
|
2509
2558
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
2510
2559
|
}
|
|
2511
|
-
var
|
|
2512
|
-
let i =
|
|
2560
|
+
var Mt = (e, t = "en") => {
|
|
2561
|
+
let i = Tt.find((t) => t.id === e);
|
|
2513
2562
|
return i ? {
|
|
2514
2563
|
label: r(n(i.label), t) ?? i.id,
|
|
2515
2564
|
description: ""
|
|
@@ -2517,8 +2566,8 @@ var Dt = (e, t = "en") => {
|
|
|
2517
2566
|
label: e,
|
|
2518
2567
|
description: ""
|
|
2519
2568
|
};
|
|
2520
|
-
},
|
|
2521
|
-
let i =
|
|
2569
|
+
}, Nt = (e, t = "en") => {
|
|
2570
|
+
let i = Et.find((t) => t.id === e);
|
|
2522
2571
|
return i ? {
|
|
2523
2572
|
label: r(n(i.label), t) ?? i.id,
|
|
2524
2573
|
description: ""
|
|
@@ -2526,8 +2575,8 @@ var Dt = (e, t = "en") => {
|
|
|
2526
2575
|
label: e,
|
|
2527
2576
|
description: ""
|
|
2528
2577
|
};
|
|
2529
|
-
},
|
|
2530
|
-
let i =
|
|
2578
|
+
}, Pt = (e, t = "en") => {
|
|
2579
|
+
let i = Ot.find((t) => t.id === e);
|
|
2531
2580
|
return i ? {
|
|
2532
2581
|
label: r(n(i.label), t) ?? i.id,
|
|
2533
2582
|
description: ""
|
|
@@ -2536,30 +2585,36 @@ var Dt = (e, t = "en") => {
|
|
|
2536
2585
|
description: ""
|
|
2537
2586
|
};
|
|
2538
2587
|
};
|
|
2539
|
-
function
|
|
2588
|
+
function Ft(e) {
|
|
2540
2589
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
2541
2590
|
n += "|:----|:-------:|\n";
|
|
2542
|
-
for (let e of Object.keys(
|
|
2591
|
+
for (let e of Object.keys(Dt)) n += `| ${Dt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
2543
2592
|
return n;
|
|
2544
2593
|
}
|
|
2545
2594
|
// src/component/module/cookbook/cookbookConfig.schema.ts
|
|
2546
|
-
var
|
|
2547
|
-
...
|
|
2595
|
+
var It = D(["list"]), Lt = /* @__PURE__ */ C({
|
|
2596
|
+
...j,
|
|
2548
2597
|
typeId: /* @__PURE__ */ _("cookbook"),
|
|
2549
|
-
actionNames: /* @__PURE__ */ h(
|
|
2550
|
-
recipes: /* @__PURE__ */ h(
|
|
2551
|
-
})
|
|
2598
|
+
actionNames: /* @__PURE__ */ h(It),
|
|
2599
|
+
recipes: /* @__PURE__ */ h(k)
|
|
2600
|
+
});
|
|
2601
|
+
// src/component/module/engine/index.ts
|
|
2602
|
+
function Rt(e) {
|
|
2603
|
+
return e.signal ?? new AbortController().signal;
|
|
2604
|
+
}
|
|
2605
|
+
// src/component/module/presenter/presenterConfig.schema.ts
|
|
2606
|
+
var zt = D([
|
|
2552
2607
|
"list",
|
|
2553
2608
|
"render",
|
|
2554
2609
|
"setColorMode"
|
|
2555
|
-
]),
|
|
2556
|
-
...
|
|
2610
|
+
]), Bt = /* @__PURE__ */ C({
|
|
2611
|
+
...j,
|
|
2557
2612
|
typeId: /* @__PURE__ */ _("presenter"),
|
|
2558
|
-
actionNames: /* @__PURE__ */ h(
|
|
2559
|
-
presentations: /* @__PURE__ */ h(
|
|
2560
|
-
}),
|
|
2561
|
-
async function
|
|
2562
|
-
let i = e.id, a = `${
|
|
2613
|
+
actionNames: /* @__PURE__ */ h(zt),
|
|
2614
|
+
presentations: /* @__PURE__ */ h(k)
|
|
2615
|
+
}), Vt = "https://engine-eu.dpuse.app/presenters";
|
|
2616
|
+
async function Ht(e, t, n, r) {
|
|
2617
|
+
let i = e.id, a = `${Vt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
2563
2618
|
try {
|
|
2564
2619
|
return new (await (import(
|
|
2565
2620
|
/* @vite-ignore */
|
|
@@ -2571,11 +2626,11 @@ async function It(e, t, n, r) {
|
|
|
2571
2626
|
url: a,
|
|
2572
2627
|
version: e.version
|
|
2573
2628
|
};
|
|
2574
|
-
throw new
|
|
2629
|
+
throw new F(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
|
|
2575
2630
|
}
|
|
2576
2631
|
}
|
|
2577
2632
|
// src/locale/index.ts
|
|
2578
|
-
function
|
|
2633
|
+
function Ut(e, t) {
|
|
2579
2634
|
return {
|
|
2580
2635
|
...e,
|
|
2581
2636
|
label: e.label[t] ?? e.id,
|
|
@@ -2583,7 +2638,7 @@ function Lt(e, t) {
|
|
|
2583
2638
|
verb: e.verb?.[t] ?? void 0
|
|
2584
2639
|
};
|
|
2585
2640
|
}
|
|
2586
|
-
function
|
|
2641
|
+
function Wt(e, t, n = !1) {
|
|
2587
2642
|
let r = e.map((e) => ({
|
|
2588
2643
|
...e,
|
|
2589
2644
|
label: e.label[t] ?? e.id,
|
|
@@ -2592,7 +2647,7 @@ function Rt(e, t, n = !1) {
|
|
|
2592
2647
|
}));
|
|
2593
2648
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
2594
2649
|
}
|
|
2595
|
-
function
|
|
2650
|
+
function Gt(e, t) {
|
|
2596
2651
|
return {
|
|
2597
2652
|
...e,
|
|
2598
2653
|
label: e.label[t] ?? e.id,
|
|
@@ -2600,7 +2655,7 @@ function zt(e, t) {
|
|
|
2600
2655
|
};
|
|
2601
2656
|
}
|
|
2602
2657
|
// src/utilities/index.ts
|
|
2603
|
-
var
|
|
2658
|
+
var Kt = /* @__PURE__ */ new Map([
|
|
2604
2659
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
2605
2660
|
["avro", "application/vnd.apache.avro"],
|
|
2606
2661
|
["bin", "application/octet-stream"],
|
|
@@ -2621,20 +2676,20 @@ var Bt = /* @__PURE__ */ new Map([
|
|
|
2621
2676
|
["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
|
|
2622
2677
|
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
2623
2678
|
["xml", "application/xml"]
|
|
2624
|
-
]),
|
|
2679
|
+
]), Z = "en", Q = [
|
|
2625
2680
|
["day", 864e5],
|
|
2626
2681
|
["hour", 36e5],
|
|
2627
2682
|
["minute", 6e4],
|
|
2628
2683
|
["second", 1e3],
|
|
2629
2684
|
["millisecond", 1]
|
|
2630
|
-
],
|
|
2685
|
+
], qt = [
|
|
2631
2686
|
["byte", 1],
|
|
2632
2687
|
["kilobyte", 1024],
|
|
2633
2688
|
["megabyte", 1048576],
|
|
2634
2689
|
["gigabyte", 1073741824],
|
|
2635
2690
|
["terabyte", 1099511627776]
|
|
2636
|
-
],
|
|
2637
|
-
function
|
|
2691
|
+
], Jt = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new Map();
|
|
2692
|
+
function Xt(e, t = 2, n = t, r = Z) {
|
|
2638
2693
|
return e == null ? "" : $(r, {
|
|
2639
2694
|
localeMatcher: "best fit",
|
|
2640
2695
|
maximumFractionDigits: t,
|
|
@@ -2644,18 +2699,18 @@ function Ut(e, t = 2, n = t, r = X) {
|
|
|
2644
2699
|
useGrouping: !0
|
|
2645
2700
|
}).format(e);
|
|
2646
2701
|
}
|
|
2647
|
-
function
|
|
2648
|
-
return
|
|
2702
|
+
function Zt(e, t = Z) {
|
|
2703
|
+
return Xt(e, 0, 0, t);
|
|
2649
2704
|
}
|
|
2650
|
-
function
|
|
2705
|
+
function Qt(e, t = 1, n = Z) {
|
|
2651
2706
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
2652
2707
|
maximumFractionDigits: t,
|
|
2653
2708
|
notation: "compact"
|
|
2654
2709
|
}).format(e);
|
|
2655
2710
|
}
|
|
2656
|
-
function
|
|
2711
|
+
function $t(e, t = 1, n = Z) {
|
|
2657
2712
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2658
|
-
let [r, i] =
|
|
2713
|
+
let [r, i] = qt.find(([, n]) => ln(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
2659
2714
|
return $(n, {
|
|
2660
2715
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
2661
2716
|
style: "unit",
|
|
@@ -2663,9 +2718,9 @@ function Kt(e, t = 1, n = X) {
|
|
|
2663
2718
|
unitDisplay: i === 1 ? "long" : "short"
|
|
2664
2719
|
}).format(e / i);
|
|
2665
2720
|
}
|
|
2666
|
-
function
|
|
2721
|
+
function en(e, t = "millisecond", n = Z) {
|
|
2667
2722
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2668
|
-
let r = Math.round(Math.abs(e)), i =
|
|
2723
|
+
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 = [];
|
|
2669
2724
|
for (let [t, i] of s) {
|
|
2670
2725
|
let a = Math.floor(r / i);
|
|
2671
2726
|
if (a === 0 && c.length > 0) continue;
|
|
@@ -2677,25 +2732,25 @@ function qt(e, t = "millisecond", n = X) {
|
|
|
2677
2732
|
unitDisplay: "short"
|
|
2678
2733
|
}).format(o));
|
|
2679
2734
|
}
|
|
2680
|
-
return
|
|
2735
|
+
return cn(n).format(c);
|
|
2681
2736
|
}
|
|
2682
|
-
function
|
|
2737
|
+
function tn(e) {
|
|
2683
2738
|
if (!e) return;
|
|
2684
|
-
let t =
|
|
2739
|
+
let t = sn(e);
|
|
2685
2740
|
return t === void 0 ? e : e.slice(0, t);
|
|
2686
2741
|
}
|
|
2687
|
-
function
|
|
2742
|
+
function nn(e) {
|
|
2688
2743
|
if (!e) return;
|
|
2689
|
-
let t =
|
|
2744
|
+
let t = sn(e);
|
|
2690
2745
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
2691
2746
|
}
|
|
2692
|
-
function
|
|
2693
|
-
return e != null &&
|
|
2747
|
+
function rn(e) {
|
|
2748
|
+
return e != null && Kt.has(e.toLowerCase());
|
|
2694
2749
|
}
|
|
2695
|
-
function
|
|
2696
|
-
return (e == null ? void 0 :
|
|
2750
|
+
function an(e) {
|
|
2751
|
+
return (e == null ? void 0 : Kt.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
2697
2752
|
}
|
|
2698
|
-
function
|
|
2753
|
+
function on(e) {
|
|
2699
2754
|
switch (e) {
|
|
2700
2755
|
case "Edm.Boolean": return "boolean";
|
|
2701
2756
|
case "Edm.Byte":
|
|
@@ -2716,23 +2771,23 @@ function Qt(e) {
|
|
|
2716
2771
|
default: return "unknown";
|
|
2717
2772
|
}
|
|
2718
2773
|
}
|
|
2719
|
-
function
|
|
2774
|
+
function sn(e) {
|
|
2720
2775
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
2721
2776
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
2722
2777
|
}
|
|
2723
|
-
function
|
|
2724
|
-
let t =
|
|
2778
|
+
function cn(e) {
|
|
2779
|
+
let t = Jt.get(e);
|
|
2725
2780
|
return t || (t = new Intl.ListFormat(e, {
|
|
2726
2781
|
style: "narrow",
|
|
2727
2782
|
type: "unit"
|
|
2728
|
-
}),
|
|
2783
|
+
}), Jt.set(e, t)), t;
|
|
2729
2784
|
}
|
|
2730
2785
|
function $(e, t) {
|
|
2731
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
2732
|
-
return r || (r = new Intl.NumberFormat(e, t),
|
|
2786
|
+
let n = `${e}|${JSON.stringify(t)}`, r = Yt.get(n);
|
|
2787
|
+
return r || (r = new Intl.NumberFormat(e, t), Yt.set(n, r)), r;
|
|
2733
2788
|
}
|
|
2734
|
-
function
|
|
2789
|
+
function ln(e, t) {
|
|
2735
2790
|
let n = 10 ** t;
|
|
2736
2791
|
return Math.round(e * n) / n;
|
|
2737
2792
|
}
|
|
2738
|
-
export {
|
|
2793
|
+
export { I as APIError, F as AppError, Fe as ConnectorError, fe as DATA_FORMAT_CONFIGS, pe as DATA_TYPE_CONFIGS, me as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, Ee as ENCODING_GROUP_CONFIG_MAP, M as ENCODING_TYPE_CONFIG_MAP, L as EngineError, R as FetchError, t as SUPPORTED_LANGUAGES, U as TOOL_NAME_PREFIX, A as VALUE_DELIMITER_CONFIGS, vt as acquireWebLock, st as auditObjectContentWithParser, Ie as buildFetchError, at as buildPreviewObjectResult, le as componentInstanceConfigSchema, Le as concatenateSerialisedErrorMessages, Ce as connectorConfigSchema, Mt as constructConnectorCategoryConfig, Nt as constructConnectorItemTypeConfig, Pt as constructConnectorUsageConfig, on as convertODataTypeIdToUsageTypeId, gt as convertStoreRecordToParsedRecord, _t as convertStoreValueToText, Lt as cookbookConfigSchema, n as createLabelMap, jt as determineConnectorUsageId, nn as extractExtensionFromPath, tn as extractPathWithoutExtension, Xt as formatNumberAsDecimalNumber, en as formatNumberAsDuration, Qt as formatNumberAsSize, $t as formatNumberAsStorageSize, Zt as formatNumberAsWholeNumber, de as getComponentStatus, Ft as getConnectorActionsTable, ke as getEncodingTypeConfigs, he as getValueDelimiterCharacter, rn as hasMimeTypeForExtension, Re as ignoreErrors, De as isEncodingTypeId, W as listParserToolConfigs, Ht as loadPresenter, K as loadTool, Ut as localiseConfig, Wt as localiseConfigs, Gt as localiseReference, an as lookupMimeTypeForExtension, z as normalizeToError, Ye as parseDelimitedText, Bt as presenterConfigSchema, Ct as readTableSchema, Oe as resolveDecoderId, r as resolveLabel, G as resolveParserToolConfig, Rt as resolveRequestSignal, ht as resolveStorePath, ot as retrieveRecordsWithParser, ze as serialiseError, Je as toolConfigSchema, Be as unserialiseError };
|