@dpuse/dpuse-shared 1.0.129 → 1.0.131
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
CHANGED
|
@@ -241,14 +241,14 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
241
241
|
|
|
242
242
|
| Chunk/Module/File | Composition |
|
|
243
243
|
| :-------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------- |
|
|
244
|
-
| **dist/dpuse-shared.es.js** | 37.
|
|
245
|
-
| src → index.ts + 9 more | `█████████████░░░░░░░` 66.
|
|
246
|
-
| ↳ index.ts | `▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░` 56.
|
|
244
|
+
| **dist/dpuse-shared.es.js** | 37.3 kB · gzip 9.9 kB · 100.0% of the build |
|
|
245
|
+
| src → index.ts + 9 more | `█████████████░░░░░░░` 66.5% · 24.8 kB |
|
|
246
|
+
| ↳ index.ts | `▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░` 56.9% · 21.2 kB |
|
|
247
247
|
| ↳ connectorConfig.schema.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.3% · 1.2 kB |
|
|
248
248
|
| ↳ componentConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 2.5% · 936 B |
|
|
249
249
|
| ↳ 7 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 3.8% · 1.4 kB |
|
|
250
|
-
| valibot → dist/index.mjs | `████░░░░░░░░░░░░░░░░`
|
|
251
|
-
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 14.
|
|
250
|
+
| valibot → dist/index.mjs | `████░░░░░░░░░░░░░░░░` 18.8% · 7.0 kB |
|
|
251
|
+
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 14.7% · 5.5 kB |
|
|
252
252
|
|
|
253
253
|
Bars show each row's share of its output file. ↳ rows are part of the row above.
|
|
254
254
|
|
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -479,7 +479,7 @@ function ce(e, t = "en") {
|
|
|
479
479
|
}
|
|
480
480
|
//#endregion
|
|
481
481
|
//#region src/component/dataView/index.ts
|
|
482
|
-
n({ en: "Data Positioning Events" }), n({ en: "Delimited Text" }), n({ en: "JSON" }), n({ en: "Markdown" }), n({ en: "SPSS" }), n({ en: "Plain Text" }), n({ en: "XLSX" }), n({ en: "XML" });
|
|
482
|
+
n({ en: "Data Positioning Events" }), n({ en: "Delimited Text" }), n({ en: "JSON" }), n({ en: "JSON Lines" }), n({ en: "Markdown" }), n({ en: "SPSS" }), n({ en: "Plain Text" }), n({ en: "XLSX" }), n({ en: "XML" });
|
|
483
483
|
var le = [
|
|
484
484
|
",",
|
|
485
485
|
";",
|
|
@@ -763,7 +763,7 @@ async function Me(e, t, n) {
|
|
|
763
763
|
} catch (e) {
|
|
764
764
|
a = `<body unavailable: ${B(e).message}>`;
|
|
765
765
|
}
|
|
766
|
-
return new z(i, n, { body:
|
|
766
|
+
return new z(i, n, { body: Be(a) });
|
|
767
767
|
}
|
|
768
768
|
function Ne(e) {
|
|
769
769
|
return e.map((e) => e.message).join(" ");
|
|
@@ -789,7 +789,7 @@ function Fe(e) {
|
|
|
789
789
|
let t = /* @__PURE__ */ new Set(), n = [], r = B(e);
|
|
790
790
|
for (; r != null && !t.has(r);) {
|
|
791
791
|
t.add(r);
|
|
792
|
-
let [e, i] =
|
|
792
|
+
let [e, i] = Ve(r), a = ze(e);
|
|
793
793
|
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
794
794
|
}
|
|
795
795
|
return n;
|
|
@@ -826,27 +826,27 @@ function Re(e, t) {
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function ze(e) {
|
|
830
830
|
let { data: t, message: n, stack: r } = e;
|
|
831
831
|
return {
|
|
832
832
|
...e,
|
|
833
|
-
data: t === void 0 ? void 0 :
|
|
834
|
-
message:
|
|
835
|
-
stack: r === void 0 ? void 0 :
|
|
833
|
+
data: t === void 0 ? void 0 : H(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
834
|
+
message: V(n),
|
|
835
|
+
stack: r === void 0 ? void 0 : V(r)
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function V(e) {
|
|
839
839
|
let t = e;
|
|
840
840
|
for (let [e, n] of je) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
841
841
|
return t;
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
return typeof e == "string" ?
|
|
843
|
+
function H(e, t, n) {
|
|
844
|
+
return typeof e == "string" ? V(e) : typeof e != "object" || !e ? e : n >= Ae ? 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)])));
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Be(e) {
|
|
847
847
|
if (e != null && e !== "") return e.length > j ? `${e.slice(0, j)}... [truncated]` : e;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function Ve(e) {
|
|
850
850
|
let t = e.cause == null ? null : B(e.cause);
|
|
851
851
|
if (e instanceof P) return [{
|
|
852
852
|
data: e.data,
|
|
@@ -872,18 +872,18 @@ function Be(e) {
|
|
|
872
872
|
}
|
|
873
873
|
//#endregion
|
|
874
874
|
//#region src/component/module/presenter/presenterConfig.schema.ts
|
|
875
|
-
var
|
|
875
|
+
var He = T([
|
|
876
876
|
"list",
|
|
877
877
|
"render",
|
|
878
878
|
"setColorMode"
|
|
879
|
-
]),
|
|
879
|
+
]), Ue = /* @__PURE__ */ b({
|
|
880
880
|
...k,
|
|
881
881
|
typeId: /* @__PURE__ */ h("presenter"),
|
|
882
|
-
actionNames: /* @__PURE__ */ p(
|
|
882
|
+
actionNames: /* @__PURE__ */ p(He),
|
|
883
883
|
presentations: /* @__PURE__ */ p(D)
|
|
884
|
-
}),
|
|
885
|
-
async function
|
|
886
|
-
let i = e.id, a = `${
|
|
884
|
+
}), We = "https://engine-eu.dpuse.app/presenters";
|
|
885
|
+
async function Ge(e, t, n, r) {
|
|
886
|
+
let i = e.id, a = `${We}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
887
887
|
try {
|
|
888
888
|
return new (await (import(
|
|
889
889
|
/* @vite-ignore */
|
|
@@ -900,8 +900,8 @@ async function We(e, t, n, r) {
|
|
|
900
900
|
}
|
|
901
901
|
//#endregion
|
|
902
902
|
//#region src/component/module/tool/index.ts
|
|
903
|
-
var
|
|
904
|
-
async function
|
|
903
|
+
var Ke = "https://engine-eu.dpuse.app/tools";
|
|
904
|
+
async function qe(e, t) {
|
|
905
905
|
let n = `dpuse-tool-${t}`, r = e.find((e) => e.id === n);
|
|
906
906
|
if (!r) {
|
|
907
907
|
let r = {
|
|
@@ -910,7 +910,7 @@ async function Ke(e, t) {
|
|
|
910
910
|
};
|
|
911
911
|
throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
912
912
|
}
|
|
913
|
-
let i = `${
|
|
913
|
+
let i = `${Ke}/${t}_v${r.version}/${n}.es.js`;
|
|
914
914
|
try {
|
|
915
915
|
return new (await (import(
|
|
916
916
|
/* @vite-ignore */
|
|
@@ -927,7 +927,7 @@ async function Ke(e, t) {
|
|
|
927
927
|
}
|
|
928
928
|
//#endregion
|
|
929
929
|
//#region src/encoding/index.ts
|
|
930
|
-
var
|
|
930
|
+
var Je = {
|
|
931
931
|
arabic: {
|
|
932
932
|
id: "arabic",
|
|
933
933
|
label: {
|
|
@@ -1075,7 +1075,7 @@ var qe = {
|
|
|
1075
1075
|
es: "Occidental"
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
|
-
},
|
|
1078
|
+
}, Ye = {
|
|
1079
1079
|
ascii: {
|
|
1080
1080
|
id: "ascii",
|
|
1081
1081
|
groupId: null,
|
|
@@ -1506,16 +1506,16 @@ var qe = {
|
|
|
1506
1506
|
groupId: "baltic",
|
|
1507
1507
|
decoderId: "windows-1257"
|
|
1508
1508
|
}
|
|
1509
|
-
},
|
|
1510
|
-
function
|
|
1511
|
-
return Object.hasOwn(
|
|
1509
|
+
}, U = Je, W = Ye;
|
|
1510
|
+
function G(e) {
|
|
1511
|
+
return Object.hasOwn(W, e);
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return
|
|
1513
|
+
function Xe(e) {
|
|
1514
|
+
return G(e) ? W[e].decoderId ?? e : e;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return Array.from(Object.values(
|
|
1518
|
-
let i = n == null ? "" :
|
|
1516
|
+
function Ze(e = "en") {
|
|
1517
|
+
return Array.from(Object.values(W), ({ decoderId: t, groupId: n, id: r }) => {
|
|
1518
|
+
let i = n == null ? "" : Qe(n, e);
|
|
1519
1519
|
return {
|
|
1520
1520
|
id: r,
|
|
1521
1521
|
groupLabel: i,
|
|
@@ -1525,13 +1525,13 @@ function Xe(e = "en") {
|
|
|
1525
1525
|
};
|
|
1526
1526
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
let n =
|
|
1528
|
+
function Qe(e, t) {
|
|
1529
|
+
let n = U[e].label;
|
|
1530
1530
|
return n[t] ?? n.en ?? e;
|
|
1531
1531
|
}
|
|
1532
1532
|
//#endregion
|
|
1533
1533
|
//#region src/locale/index.ts
|
|
1534
|
-
function
|
|
1534
|
+
function $e(e, t) {
|
|
1535
1535
|
return {
|
|
1536
1536
|
...e,
|
|
1537
1537
|
label: e.label[t] ?? e.id,
|
|
@@ -1539,7 +1539,7 @@ function Qe(e, t) {
|
|
|
1539
1539
|
verb: e.verb?.[t] ?? void 0
|
|
1540
1540
|
};
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function et(e, t, n = !1) {
|
|
1543
1543
|
let r = e.map((e) => ({
|
|
1544
1544
|
...e,
|
|
1545
1545
|
label: e.label[t] ?? e.id,
|
|
@@ -1548,7 +1548,7 @@ function $e(e, t, n = !1) {
|
|
|
1548
1548
|
}));
|
|
1549
1549
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function tt(e, t) {
|
|
1552
1552
|
return {
|
|
1553
1553
|
...e,
|
|
1554
1554
|
label: e.label[t] ?? e.id,
|
|
@@ -1557,7 +1557,7 @@ function et(e, t) {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
//#endregion
|
|
1559
1559
|
//#region src/utilities/index.ts
|
|
1560
|
-
var
|
|
1560
|
+
var nt = new Set(Object.values({
|
|
1561
1561
|
archives: [
|
|
1562
1562
|
"7z",
|
|
1563
1563
|
"bz2",
|
|
@@ -1637,13 +1637,25 @@ var tt = new Set(Object.values({
|
|
|
1637
1637
|
"webm",
|
|
1638
1638
|
"wmv"
|
|
1639
1639
|
]
|
|
1640
|
-
}).flat()),
|
|
1640
|
+
}).flat()), K = /* @__PURE__ */ new Map([
|
|
1641
|
+
["bin", "application/octet-stream"],
|
|
1642
|
+
["csv", "text/csv"],
|
|
1643
|
+
["json", "application/json"],
|
|
1644
|
+
["md", "text/markdown"],
|
|
1645
|
+
["spss", "application/octet-stream"],
|
|
1646
|
+
["tab", "text/tab-separated-values"],
|
|
1647
|
+
["tsv", "text/tab-separated-values"],
|
|
1648
|
+
["txt", "text/plain"],
|
|
1649
|
+
["xls", "application/vnd.ms-excel"],
|
|
1650
|
+
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
1651
|
+
["xml", "application/xml"]
|
|
1652
|
+
]), q = "en", J = [
|
|
1641
1653
|
["day", 864e5],
|
|
1642
1654
|
["hour", 36e5],
|
|
1643
1655
|
["minute", 6e4],
|
|
1644
1656
|
["second", 1e3],
|
|
1645
1657
|
["millisecond", 1]
|
|
1646
|
-
],
|
|
1658
|
+
], rt = [
|
|
1647
1659
|
["byte", 1],
|
|
1648
1660
|
["kilobyte", 1024],
|
|
1649
1661
|
["megabyte", 1048576],
|
|
@@ -1660,18 +1672,18 @@ function Z(e, t = 2, n = t, r = q) {
|
|
|
1660
1672
|
useGrouping: !0
|
|
1661
1673
|
}).format(e);
|
|
1662
1674
|
}
|
|
1663
|
-
function
|
|
1675
|
+
function it(e, t = q) {
|
|
1664
1676
|
return Z(e, 0, 0, t);
|
|
1665
1677
|
}
|
|
1666
|
-
function
|
|
1678
|
+
function at(e, t = 1, n = q) {
|
|
1667
1679
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
1668
1680
|
maximumFractionDigits: t,
|
|
1669
1681
|
notation: "compact"
|
|
1670
1682
|
}).format(e);
|
|
1671
1683
|
}
|
|
1672
|
-
function
|
|
1684
|
+
function ot(e, t = 1, n = q) {
|
|
1673
1685
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1674
|
-
let [r, i] =
|
|
1686
|
+
let [r, i] = rt.find(([, n]) => ht(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
1675
1687
|
return $(n, {
|
|
1676
1688
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
1677
1689
|
style: "unit",
|
|
@@ -1679,7 +1691,7 @@ function at(e, t = 1, n = q) {
|
|
|
1679
1691
|
unitDisplay: i === 1 ? "long" : "short"
|
|
1680
1692
|
}).format(e / i);
|
|
1681
1693
|
}
|
|
1682
|
-
function
|
|
1694
|
+
function st(e, t = "millisecond", n = q) {
|
|
1683
1695
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1684
1696
|
let r = Math.round(Math.abs(e)), i = J.findIndex(([, e]) => r >= e), a = i === -1 ? J.length - 1 : i, o = J.findIndex(([e]) => e === t), s = J.slice(a, Math.max(o, a) + 1), c = [];
|
|
1685
1697
|
for (let [t, i] of s) {
|
|
@@ -1693,32 +1705,28 @@ function ot(e, t = "millisecond", n = q) {
|
|
|
1693
1705
|
unitDisplay: "short"
|
|
1694
1706
|
}).format(o));
|
|
1695
1707
|
}
|
|
1696
|
-
return
|
|
1708
|
+
return mt(n).format(c);
|
|
1697
1709
|
}
|
|
1698
|
-
function
|
|
1710
|
+
function ct(e) {
|
|
1699
1711
|
if (!e) return;
|
|
1700
1712
|
let t = Q(e);
|
|
1701
1713
|
return t === void 0 ? e : e.slice(0, t);
|
|
1702
1714
|
}
|
|
1703
|
-
function
|
|
1715
|
+
function lt(e) {
|
|
1704
1716
|
if (!e) return;
|
|
1705
1717
|
let t = Q(e);
|
|
1706
1718
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
1707
1719
|
}
|
|
1708
|
-
function lt(e) {
|
|
1709
|
-
return e != null && tt.has(e.toLowerCase());
|
|
1710
|
-
}
|
|
1711
1720
|
function ut(e) {
|
|
1712
|
-
|
|
1713
|
-
case "csv": return "text/csv";
|
|
1714
|
-
case "tab":
|
|
1715
|
-
case "tsv": return "text/tab-separated-values";
|
|
1716
|
-
case "xls": return "application/vnd.ms-excel";
|
|
1717
|
-
case "xlsx": return "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
1718
|
-
default: return "application/octet-stream";
|
|
1719
|
-
}
|
|
1721
|
+
return e != null && nt.has(e.toLowerCase());
|
|
1720
1722
|
}
|
|
1721
1723
|
function dt(e) {
|
|
1724
|
+
return e != null && K.has(e.toLowerCase());
|
|
1725
|
+
}
|
|
1726
|
+
function ft(e) {
|
|
1727
|
+
return (e == null ? void 0 : K.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
1728
|
+
}
|
|
1729
|
+
function pt(e) {
|
|
1722
1730
|
switch (e) {
|
|
1723
1731
|
case "Edm.Boolean": return "boolean";
|
|
1724
1732
|
case "Edm.Byte":
|
|
@@ -1743,7 +1751,7 @@ function Q(e) {
|
|
|
1743
1751
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1744
1752
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
1745
1753
|
}
|
|
1746
|
-
function
|
|
1754
|
+
function mt(e) {
|
|
1747
1755
|
let t = Y.get(e);
|
|
1748
1756
|
return t || (t = new Intl.ListFormat(e, {
|
|
1749
1757
|
style: "narrow",
|
|
@@ -1754,9 +1762,9 @@ function $(e, t) {
|
|
|
1754
1762
|
let n = `${e}|${JSON.stringify(t)}`, r = X.get(n);
|
|
1755
1763
|
return r || (r = new Intl.NumberFormat(e, t), X.set(n, r)), r;
|
|
1756
1764
|
}
|
|
1757
|
-
function
|
|
1765
|
+
function ht(e, t) {
|
|
1758
1766
|
let n = 10 ** t;
|
|
1759
1767
|
return Math.round(e * n) / n;
|
|
1760
1768
|
}
|
|
1761
1769
|
//#endregion
|
|
1762
|
-
export { I as APIError, F as AppError, R as ConnectorError, e as DEFAULT_LOCALE_ID,
|
|
1770
|
+
export { I as APIError, F as AppError, R as ConnectorError, e as DEFAULT_LOCALE_ID, U as ENCODING_GROUP_CONFIG_MAP, W as ENCODING_TYPE_CONFIG_MAP, L as EngineError, z as FetchError, le as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, Me as buildFetchError, oe as componentInstanceConfigSchema, Ne as concatenateSerialisedErrorMessages, _e as connectorConfigSchema, we as constructConnectorCategoryConfig, Te as constructConnectorItemTypeConfig, Ee as constructConnectorUsageConfig, pt as convertODataTypeIdToUsageTypeId, ke as cookbookConfigSchema, n as createLabelMap, Ce as determineConnectorUsageId, lt as extractExtensionFromPath, ct as extractPathWithoutExtension, Z as formatNumberAsDecimalNumber, st as formatNumberAsDuration, at as formatNumberAsSize, ot as formatNumberAsStorageSize, it as formatNumberAsWholeNumber, ce as getComponentStatus, De as getConnectorActionsTable, Ze as getEncodingTypeConfigs, dt as hasMimeTypeForExtension, Pe as ignoreErrors, G as isEncodingTypeId, ut as isUnsupportedFileExtension, Ge as loadPresenter, qe as loadTool, $e as localiseConfig, et as localiseConfigs, tt as localiseReference, ft as lookupMimeTypeForExtension, B as normalizeToError, Ue as presenterConfigSchema, Xe as resolveDecoderId, r as resolveLabel, Fe as serialiseError, Ie as unserialiseError };
|