@dpuse/dpuse-shared 1.0.127 → 1.0.129
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** |
|
|
245
|
-
| src → index.ts + 9 more | `█████████████░░░░░░░`
|
|
246
|
-
| ↳ index.ts | `▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░` 56.
|
|
247
|
-
| ↳ connectorConfig.schema.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.
|
|
248
|
-
| ↳ componentConfig.schema.ts |
|
|
249
|
-
| ↳ 7 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 3.
|
|
250
|
-
| valibot → dist/index.mjs | `████░░░░░░░░░░░░░░░░` 19.
|
|
251
|
-
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 14.
|
|
244
|
+
| **dist/dpuse-shared.es.js** | 37.0 kB · gzip 9.8 kB · 100.0% of the build |
|
|
245
|
+
| src → index.ts + 9 more | `█████████████░░░░░░░` 66.3% · 24.5 kB |
|
|
246
|
+
| ↳ index.ts | `▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░` 56.6% · 20.9 kB |
|
|
247
|
+
| ↳ connectorConfig.schema.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.3% · 1.2 kB |
|
|
248
|
+
| ↳ componentConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 2.5% · 936 B |
|
|
249
|
+
| ↳ 7 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 3.8% · 1.4 kB |
|
|
250
|
+
| valibot → dist/index.mjs | `████░░░░░░░░░░░░░░░░` 19.0% · 7.0 kB |
|
|
251
|
+
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 14.8% · 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: "SPSS" }), n({ en: "XLSX" }), n({ en: "XML" });
|
|
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" });
|
|
483
483
|
var le = [
|
|
484
484
|
",",
|
|
485
485
|
";",
|
|
@@ -1557,13 +1557,93 @@ function et(e, t) {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
//#endregion
|
|
1559
1559
|
//#region src/utilities/index.ts
|
|
1560
|
-
var
|
|
1560
|
+
var tt = new Set(Object.values({
|
|
1561
|
+
archives: [
|
|
1562
|
+
"7z",
|
|
1563
|
+
"bz2",
|
|
1564
|
+
"gz",
|
|
1565
|
+
"rar",
|
|
1566
|
+
"tar",
|
|
1567
|
+
"tgz",
|
|
1568
|
+
"xz",
|
|
1569
|
+
"zip"
|
|
1570
|
+
],
|
|
1571
|
+
audio: [
|
|
1572
|
+
"aac",
|
|
1573
|
+
"flac",
|
|
1574
|
+
"m4a",
|
|
1575
|
+
"mp3",
|
|
1576
|
+
"ogg",
|
|
1577
|
+
"wav"
|
|
1578
|
+
],
|
|
1579
|
+
documents: [
|
|
1580
|
+
"doc",
|
|
1581
|
+
"docx",
|
|
1582
|
+
"key",
|
|
1583
|
+
"numbers",
|
|
1584
|
+
"odp",
|
|
1585
|
+
"odt",
|
|
1586
|
+
"pages",
|
|
1587
|
+
"pdf",
|
|
1588
|
+
"ppt",
|
|
1589
|
+
"pptx",
|
|
1590
|
+
"rtf"
|
|
1591
|
+
],
|
|
1592
|
+
images: [
|
|
1593
|
+
"bmp",
|
|
1594
|
+
"gif",
|
|
1595
|
+
"heic",
|
|
1596
|
+
"ico",
|
|
1597
|
+
"jpeg",
|
|
1598
|
+
"jpg",
|
|
1599
|
+
"png",
|
|
1600
|
+
"psd",
|
|
1601
|
+
"svg",
|
|
1602
|
+
"tif",
|
|
1603
|
+
"tiff",
|
|
1604
|
+
"webp"
|
|
1605
|
+
],
|
|
1606
|
+
programs: [
|
|
1607
|
+
"app",
|
|
1608
|
+
"bin",
|
|
1609
|
+
"dll",
|
|
1610
|
+
"dmg",
|
|
1611
|
+
"exe",
|
|
1612
|
+
"iso",
|
|
1613
|
+
"msi",
|
|
1614
|
+
"so"
|
|
1615
|
+
],
|
|
1616
|
+
unreadDataFormats: [
|
|
1617
|
+
"arrow",
|
|
1618
|
+
"avro",
|
|
1619
|
+
"db",
|
|
1620
|
+
"ods",
|
|
1621
|
+
"parquet",
|
|
1622
|
+
"por",
|
|
1623
|
+
"sav",
|
|
1624
|
+
"sqlite",
|
|
1625
|
+
"xls",
|
|
1626
|
+
"xlsm",
|
|
1627
|
+
"xlsx",
|
|
1628
|
+
"xltm",
|
|
1629
|
+
"xltx"
|
|
1630
|
+
],
|
|
1631
|
+
video: [
|
|
1632
|
+
"avi",
|
|
1633
|
+
"m4v",
|
|
1634
|
+
"mkv",
|
|
1635
|
+
"mov",
|
|
1636
|
+
"mp4",
|
|
1637
|
+
"webm",
|
|
1638
|
+
"wmv"
|
|
1639
|
+
]
|
|
1640
|
+
}).flat()), q = "en", J = [
|
|
1561
1641
|
["day", 864e5],
|
|
1562
1642
|
["hour", 36e5],
|
|
1563
1643
|
["minute", 6e4],
|
|
1564
1644
|
["second", 1e3],
|
|
1565
1645
|
["millisecond", 1]
|
|
1566
|
-
],
|
|
1646
|
+
], nt = [
|
|
1567
1647
|
["byte", 1],
|
|
1568
1648
|
["kilobyte", 1024],
|
|
1569
1649
|
["megabyte", 1048576],
|
|
@@ -1580,18 +1660,18 @@ function Z(e, t = 2, n = t, r = q) {
|
|
|
1580
1660
|
useGrouping: !0
|
|
1581
1661
|
}).format(e);
|
|
1582
1662
|
}
|
|
1583
|
-
function
|
|
1663
|
+
function rt(e, t = q) {
|
|
1584
1664
|
return Z(e, 0, 0, t);
|
|
1585
1665
|
}
|
|
1586
|
-
function
|
|
1666
|
+
function it(e, t = 1, n = q) {
|
|
1587
1667
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
1588
1668
|
maximumFractionDigits: t,
|
|
1589
1669
|
notation: "compact"
|
|
1590
1670
|
}).format(e);
|
|
1591
1671
|
}
|
|
1592
|
-
function
|
|
1672
|
+
function at(e, t = 1, n = q) {
|
|
1593
1673
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1594
|
-
let [r, i] =
|
|
1674
|
+
let [r, i] = nt.find(([, n]) => pt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
1595
1675
|
return $(n, {
|
|
1596
1676
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
1597
1677
|
style: "unit",
|
|
@@ -1599,7 +1679,7 @@ function it(e, t = 1, n = q) {
|
|
|
1599
1679
|
unitDisplay: i === 1 ? "long" : "short"
|
|
1600
1680
|
}).format(e / i);
|
|
1601
1681
|
}
|
|
1602
|
-
function
|
|
1682
|
+
function ot(e, t = "millisecond", n = q) {
|
|
1603
1683
|
if (e == null || !Number.isFinite(e)) return "";
|
|
1604
1684
|
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 = [];
|
|
1605
1685
|
for (let [t, i] of s) {
|
|
@@ -1613,19 +1693,22 @@ function at(e, t = "millisecond", n = q) {
|
|
|
1613
1693
|
unitDisplay: "short"
|
|
1614
1694
|
}).format(o));
|
|
1615
1695
|
}
|
|
1616
|
-
return
|
|
1696
|
+
return ft(n).format(c);
|
|
1617
1697
|
}
|
|
1618
|
-
function
|
|
1698
|
+
function st(e) {
|
|
1619
1699
|
if (!e) return;
|
|
1620
1700
|
let t = Q(e);
|
|
1621
1701
|
return t === void 0 ? e : e.slice(0, t);
|
|
1622
1702
|
}
|
|
1623
|
-
function
|
|
1703
|
+
function ct(e) {
|
|
1624
1704
|
if (!e) return;
|
|
1625
1705
|
let t = Q(e);
|
|
1626
1706
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
1627
1707
|
}
|
|
1628
|
-
function
|
|
1708
|
+
function lt(e) {
|
|
1709
|
+
return e != null && tt.has(e.toLowerCase());
|
|
1710
|
+
}
|
|
1711
|
+
function ut(e) {
|
|
1629
1712
|
switch (e?.toLowerCase()) {
|
|
1630
1713
|
case "csv": return "text/csv";
|
|
1631
1714
|
case "tab":
|
|
@@ -1635,7 +1718,7 @@ function ct(e) {
|
|
|
1635
1718
|
default: return "application/octet-stream";
|
|
1636
1719
|
}
|
|
1637
1720
|
}
|
|
1638
|
-
function
|
|
1721
|
+
function dt(e) {
|
|
1639
1722
|
switch (e) {
|
|
1640
1723
|
case "Edm.Boolean": return "boolean";
|
|
1641
1724
|
case "Edm.Byte":
|
|
@@ -1660,7 +1743,7 @@ function Q(e) {
|
|
|
1660
1743
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1661
1744
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
1662
1745
|
}
|
|
1663
|
-
function
|
|
1746
|
+
function ft(e) {
|
|
1664
1747
|
let t = Y.get(e);
|
|
1665
1748
|
return t || (t = new Intl.ListFormat(e, {
|
|
1666
1749
|
style: "narrow",
|
|
@@ -1671,9 +1754,9 @@ function $(e, t) {
|
|
|
1671
1754
|
let n = `${e}|${JSON.stringify(t)}`, r = X.get(n);
|
|
1672
1755
|
return r || (r = new Intl.NumberFormat(e, t), X.set(n, r)), r;
|
|
1673
1756
|
}
|
|
1674
|
-
function
|
|
1757
|
+
function pt(e, t) {
|
|
1675
1758
|
let n = 10 ** t;
|
|
1676
1759
|
return Math.round(e * n) / n;
|
|
1677
1760
|
}
|
|
1678
1761
|
//#endregion
|
|
1679
|
-
export { I as APIError, F as AppError, R as ConnectorError, e as DEFAULT_LOCALE_ID, W as ENCODING_GROUP_CONFIG_MAP, G 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,
|
|
1762
|
+
export { I as APIError, F as AppError, R as ConnectorError, e as DEFAULT_LOCALE_ID, W as ENCODING_GROUP_CONFIG_MAP, G 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, dt as convertODataTypeIdToUsageTypeId, ke as cookbookConfigSchema, n as createLabelMap, Ce as determineConnectorUsageId, ct as extractExtensionFromPath, st as extractPathWithoutExtension, Z as formatNumberAsDecimalNumber, ot as formatNumberAsDuration, it as formatNumberAsSize, at as formatNumberAsStorageSize, rt as formatNumberAsWholeNumber, ce as getComponentStatus, De as getConnectorActionsTable, Xe as getEncodingTypeConfigs, Pe as ignoreErrors, K as isEncodingTypeId, lt as isUnsupportedFileExtension, We as loadPresenter, Ke as loadTool, Qe as localiseConfig, $e as localiseConfigs, et as localiseReference, ut as lookupMimeTypeForExtension, B as normalizeToError, He as presenterConfigSchema, Ye as resolveDecoderId, r as resolveLabel, Fe as serialiseError, Ie as unserialiseError };
|