@dpuse/dpuse-shared 1.0.211 → 1.0.213
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 +10 -9
- package/dist/dpuse-shared.es.js +101 -71
- 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 +3 -7
- package/dist/types/src/component/module/connector/storePath.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/package.json +1 -1
package/README.md
CHANGED
|
@@ -270,16 +270,17 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
|
|
|
270
270
|
|
|
271
271
|
| Chunk/Module/File | Composition |
|
|
272
272
|
| :-------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------- |
|
|
273
|
-
| **dist/dpuse-shared.es.js** |
|
|
274
|
-
| src → index.ts +
|
|
275
|
-
| ↳ index.ts | `▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░`
|
|
276
|
-
| ↳ objectParsing.ts | `▒▒░░░░░░░░░░░░░░░░░░` 10.
|
|
273
|
+
| **dist/dpuse-shared.es.js** | 63.0 kB · gzip 15.1 kB · 100.0% of the build |
|
|
274
|
+
| src → index.ts + 16 more | `███████████████░░░░░` 72.8% · 45.9 kB |
|
|
275
|
+
| ↳ index.ts | `▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░` 48.8% · 30.7 kB |
|
|
276
|
+
| ↳ objectParsing.ts | `▒▒░░░░░░░░░░░░░░░░░░` 10.8% · 6.8 kB |
|
|
277
277
|
| ↳ tableSchema.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.2% · 2.0 kB |
|
|
278
|
-
| ↳ delimitedText.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.
|
|
279
|
-
| ↳ connectorConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 2.
|
|
280
|
-
| ↳
|
|
281
|
-
|  
|
|
282
|
-
|
|
|
278
|
+
| ↳ delimitedText.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.5% · 1.6 kB |
|
|
279
|
+
| ↳ connectorConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 2.0% · 1.3 kB |
|
|
280
|
+
| ↳ componentConfig.schema.ts | `░░░░░░░░░░░░░░░░░░░░` 1.5% · 938 B |
|
|
281
|
+
| ↳ 11 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 4.1% · 2.6 kB |
|
|
282
|
+
| valibot → dist/index.mjs | `███░░░░░░░░░░░░░░░░░` 14.3% · 9.0 kB |
|
|
283
|
+
| (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 12.9% · 8.1 kB |
|
|
283
284
|
|
|
284
285
|
Bars show each row's share of its output file. ↳ rows are part of the row above.
|
|
285
286
|
|
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -770,7 +770,6 @@ var j = {
|
|
|
770
770
|
({ ...j });
|
|
771
771
|
// src/component/module/connector/connectorConfig.schema.ts
|
|
772
772
|
var ge = D([
|
|
773
|
-
"abortOperation",
|
|
774
773
|
"auditObjectContent",
|
|
775
774
|
"closeStore",
|
|
776
775
|
"createObject",
|
|
@@ -2320,26 +2319,52 @@ async function X(e, t, n) {
|
|
|
2320
2319
|
parserId: r.id
|
|
2321
2320
|
};
|
|
2322
2321
|
}
|
|
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
|
+
}
|
|
2323
2336
|
// src/component/module/connector/storeValues.ts
|
|
2324
|
-
function
|
|
2337
|
+
function gt(e) {
|
|
2325
2338
|
return e.map((e) => ({
|
|
2326
|
-
value:
|
|
2339
|
+
value: _t(e),
|
|
2327
2340
|
valueWasQuoted: !1
|
|
2328
2341
|
}));
|
|
2329
2342
|
}
|
|
2330
|
-
function
|
|
2343
|
+
function _t(e) {
|
|
2331
2344
|
return e == null ? null : e instanceof Date ? e.toISOString() : String(e);
|
|
2332
2345
|
}
|
|
2333
|
-
|
|
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({
|
|
2334
2359
|
format: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2335
2360
|
name: /* @__PURE__ */ w(),
|
|
2336
2361
|
title: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2337
2362
|
type: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
2338
|
-
})) }),
|
|
2363
|
+
})) }), bt = /* @__PURE__ */ v({
|
|
2339
2364
|
delimiter: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2340
2365
|
header: /* @__PURE__ */ x(/* @__PURE__ */ g()),
|
|
2341
2366
|
headerRows: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ b()))
|
|
2342
|
-
}),
|
|
2367
|
+
}), xt = {
|
|
2343
2368
|
boolean: {
|
|
2344
2369
|
dataSubtypeId: void 0,
|
|
2345
2370
|
dataTypeId: "boolean"
|
|
@@ -2372,18 +2397,18 @@ var gt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
|
|
|
2372
2397
|
dataSubtypeId: "integer",
|
|
2373
2398
|
dataTypeId: "numeric"
|
|
2374
2399
|
}
|
|
2375
|
-
},
|
|
2400
|
+
}, St = {
|
|
2376
2401
|
email: "email",
|
|
2377
2402
|
uri: "url",
|
|
2378
2403
|
uuid: "uuid"
|
|
2379
2404
|
};
|
|
2380
|
-
function
|
|
2381
|
-
let t = /* @__PURE__ */ ne(
|
|
2405
|
+
function Ct(e) {
|
|
2406
|
+
let t = /* @__PURE__ */ ne(yt, e.schema);
|
|
2382
2407
|
if (!t.success) throw new F("The table schema is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2383
|
-
let n = /* @__PURE__ */ ne(
|
|
2408
|
+
let n = /* @__PURE__ */ ne(bt, e.dialect ?? {});
|
|
2384
2409
|
if (!n.success) throw new F("The table dialect is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2385
2410
|
let r = t.output.fields.map((e) => {
|
|
2386
|
-
let t =
|
|
2411
|
+
let t = wt(e.type, e.format);
|
|
2387
2412
|
return {
|
|
2388
2413
|
name: e.name,
|
|
2389
2414
|
label: e.title,
|
|
@@ -2401,18 +2426,18 @@ function bt(e) {
|
|
|
2401
2426
|
}
|
|
2402
2427
|
};
|
|
2403
2428
|
}
|
|
2404
|
-
function
|
|
2405
|
-
let n = e == null ? void 0 :
|
|
2429
|
+
function wt(e, t) {
|
|
2430
|
+
let n = e == null ? void 0 : xt[e];
|
|
2406
2431
|
return n == null ? {
|
|
2407
2432
|
dataSubtypeId: void 0,
|
|
2408
2433
|
dataTypeId: void 0
|
|
2409
2434
|
} : t == null || n.dataTypeId !== "string" ? n : {
|
|
2410
|
-
dataSubtypeId:
|
|
2435
|
+
dataSubtypeId: St[t] ?? "plain",
|
|
2411
2436
|
dataTypeId: "string"
|
|
2412
2437
|
};
|
|
2413
2438
|
}
|
|
2414
2439
|
// src/component/module/connector/index.ts
|
|
2415
|
-
var
|
|
2440
|
+
var Tt = [
|
|
2416
2441
|
{
|
|
2417
2442
|
id: "application",
|
|
2418
2443
|
label: {
|
|
@@ -2441,7 +2466,7 @@ var St = [
|
|
|
2441
2466
|
es: "Almacén de Archivos"
|
|
2442
2467
|
}
|
|
2443
2468
|
}
|
|
2444
|
-
],
|
|
2469
|
+
], Et = [
|
|
2445
2470
|
{
|
|
2446
2471
|
id: "apiEndpoint",
|
|
2447
2472
|
label: {
|
|
@@ -2463,8 +2488,7 @@ var St = [
|
|
|
2463
2488
|
es: "Tabla"
|
|
2464
2489
|
}
|
|
2465
2490
|
}
|
|
2466
|
-
],
|
|
2467
|
-
abortOperation: "Abort Operation",
|
|
2491
|
+
], Dt = {
|
|
2468
2492
|
auditObjectContent: "Audit Object Content",
|
|
2469
2493
|
closeStore: "Close Store",
|
|
2470
2494
|
createObject: "Create Object",
|
|
@@ -2482,7 +2506,7 @@ var St = [
|
|
|
2482
2506
|
removeRecords: "Remove Records",
|
|
2483
2507
|
retrieveRecords: "Retrieve Records",
|
|
2484
2508
|
upsertRecords: "Upsert Records"
|
|
2485
|
-
},
|
|
2509
|
+
}, Ot = [
|
|
2486
2510
|
{
|
|
2487
2511
|
id: "bidirectional",
|
|
2488
2512
|
label: {
|
|
@@ -2511,13 +2535,13 @@ var St = [
|
|
|
2511
2535
|
es: "Desconocido"
|
|
2512
2536
|
}
|
|
2513
2537
|
}
|
|
2514
|
-
],
|
|
2538
|
+
], kt = /* @__PURE__ */ new Set([
|
|
2515
2539
|
"createObject",
|
|
2516
2540
|
"dropObject",
|
|
2517
2541
|
"loadObjectRecords",
|
|
2518
2542
|
"removeRecords",
|
|
2519
2543
|
"upsertRecords"
|
|
2520
|
-
]),
|
|
2544
|
+
]), At = /* @__PURE__ */ new Set([
|
|
2521
2545
|
"auditObjectContent",
|
|
2522
2546
|
"findObject",
|
|
2523
2547
|
"getInfo",
|
|
@@ -2528,13 +2552,13 @@ var St = [
|
|
|
2528
2552
|
"queryRecords",
|
|
2529
2553
|
"retrieveRecords"
|
|
2530
2554
|
]);
|
|
2531
|
-
function
|
|
2555
|
+
function jt(e) {
|
|
2532
2556
|
let t = !1, n = !1;
|
|
2533
|
-
for (let r of e)
|
|
2557
|
+
for (let r of e) At.has(r) && (t = !0), kt.has(r) && (n = !0);
|
|
2534
2558
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
2535
2559
|
}
|
|
2536
|
-
var
|
|
2537
|
-
let i =
|
|
2560
|
+
var Mt = (e, t = "en") => {
|
|
2561
|
+
let i = Tt.find((t) => t.id === e);
|
|
2538
2562
|
return i ? {
|
|
2539
2563
|
label: r(n(i.label), t) ?? i.id,
|
|
2540
2564
|
description: ""
|
|
@@ -2542,8 +2566,8 @@ var kt = (e, t = "en") => {
|
|
|
2542
2566
|
label: e,
|
|
2543
2567
|
description: ""
|
|
2544
2568
|
};
|
|
2545
|
-
},
|
|
2546
|
-
let i =
|
|
2569
|
+
}, Nt = (e, t = "en") => {
|
|
2570
|
+
let i = Et.find((t) => t.id === e);
|
|
2547
2571
|
return i ? {
|
|
2548
2572
|
label: r(n(i.label), t) ?? i.id,
|
|
2549
2573
|
description: ""
|
|
@@ -2551,8 +2575,8 @@ var kt = (e, t = "en") => {
|
|
|
2551
2575
|
label: e,
|
|
2552
2576
|
description: ""
|
|
2553
2577
|
};
|
|
2554
|
-
},
|
|
2555
|
-
let i =
|
|
2578
|
+
}, Pt = (e, t = "en") => {
|
|
2579
|
+
let i = Ot.find((t) => t.id === e);
|
|
2556
2580
|
return i ? {
|
|
2557
2581
|
label: r(n(i.label), t) ?? i.id,
|
|
2558
2582
|
description: ""
|
|
@@ -2561,30 +2585,36 @@ var kt = (e, t = "en") => {
|
|
|
2561
2585
|
description: ""
|
|
2562
2586
|
};
|
|
2563
2587
|
};
|
|
2564
|
-
function
|
|
2588
|
+
function Ft(e) {
|
|
2565
2589
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
2566
2590
|
n += "|:----|:-------:|\n";
|
|
2567
|
-
for (let e of Object.keys(
|
|
2591
|
+
for (let e of Object.keys(Dt)) n += `| ${Dt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
2568
2592
|
return n;
|
|
2569
2593
|
}
|
|
2570
2594
|
// src/component/module/cookbook/cookbookConfig.schema.ts
|
|
2571
|
-
var
|
|
2595
|
+
var It = D(["list"]), Lt = /* @__PURE__ */ C({
|
|
2572
2596
|
...j,
|
|
2573
2597
|
typeId: /* @__PURE__ */ _("cookbook"),
|
|
2574
|
-
actionNames: /* @__PURE__ */ h(
|
|
2598
|
+
actionNames: /* @__PURE__ */ h(It),
|
|
2575
2599
|
recipes: /* @__PURE__ */ h(k)
|
|
2576
|
-
})
|
|
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([
|
|
2577
2607
|
"list",
|
|
2578
2608
|
"render",
|
|
2579
2609
|
"setColorMode"
|
|
2580
|
-
]),
|
|
2610
|
+
]), Bt = /* @__PURE__ */ C({
|
|
2581
2611
|
...j,
|
|
2582
2612
|
typeId: /* @__PURE__ */ _("presenter"),
|
|
2583
|
-
actionNames: /* @__PURE__ */ h(
|
|
2613
|
+
actionNames: /* @__PURE__ */ h(zt),
|
|
2584
2614
|
presentations: /* @__PURE__ */ h(k)
|
|
2585
|
-
}),
|
|
2586
|
-
async function
|
|
2587
|
-
let i = e.id, a = `${
|
|
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`;
|
|
2588
2618
|
try {
|
|
2589
2619
|
return new (await (import(
|
|
2590
2620
|
/* @vite-ignore */
|
|
@@ -2600,7 +2630,7 @@ async function Rt(e, t, n, r) {
|
|
|
2600
2630
|
}
|
|
2601
2631
|
}
|
|
2602
2632
|
// src/locale/index.ts
|
|
2603
|
-
function
|
|
2633
|
+
function Ut(e, t) {
|
|
2604
2634
|
return {
|
|
2605
2635
|
...e,
|
|
2606
2636
|
label: e.label[t] ?? e.id,
|
|
@@ -2608,7 +2638,7 @@ function zt(e, t) {
|
|
|
2608
2638
|
verb: e.verb?.[t] ?? void 0
|
|
2609
2639
|
};
|
|
2610
2640
|
}
|
|
2611
|
-
function
|
|
2641
|
+
function Wt(e, t, n = !1) {
|
|
2612
2642
|
let r = e.map((e) => ({
|
|
2613
2643
|
...e,
|
|
2614
2644
|
label: e.label[t] ?? e.id,
|
|
@@ -2617,7 +2647,7 @@ function Bt(e, t, n = !1) {
|
|
|
2617
2647
|
}));
|
|
2618
2648
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
2619
2649
|
}
|
|
2620
|
-
function
|
|
2650
|
+
function Gt(e, t) {
|
|
2621
2651
|
return {
|
|
2622
2652
|
...e,
|
|
2623
2653
|
label: e.label[t] ?? e.id,
|
|
@@ -2625,7 +2655,7 @@ function Vt(e, t) {
|
|
|
2625
2655
|
};
|
|
2626
2656
|
}
|
|
2627
2657
|
// src/utilities/index.ts
|
|
2628
|
-
var
|
|
2658
|
+
var Kt = /* @__PURE__ */ new Map([
|
|
2629
2659
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
2630
2660
|
["avro", "application/vnd.apache.avro"],
|
|
2631
2661
|
["bin", "application/octet-stream"],
|
|
@@ -2652,14 +2682,14 @@ var Ht = /* @__PURE__ */ new Map([
|
|
|
2652
2682
|
["minute", 6e4],
|
|
2653
2683
|
["second", 1e3],
|
|
2654
2684
|
["millisecond", 1]
|
|
2655
|
-
],
|
|
2685
|
+
], qt = [
|
|
2656
2686
|
["byte", 1],
|
|
2657
2687
|
["kilobyte", 1024],
|
|
2658
2688
|
["megabyte", 1048576],
|
|
2659
2689
|
["gigabyte", 1073741824],
|
|
2660
2690
|
["terabyte", 1099511627776]
|
|
2661
|
-
],
|
|
2662
|
-
function
|
|
2691
|
+
], Jt = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new Map();
|
|
2692
|
+
function Xt(e, t = 2, n = t, r = Z) {
|
|
2663
2693
|
return e == null ? "" : $(r, {
|
|
2664
2694
|
localeMatcher: "best fit",
|
|
2665
2695
|
maximumFractionDigits: t,
|
|
@@ -2669,18 +2699,18 @@ function Kt(e, t = 2, n = t, r = Z) {
|
|
|
2669
2699
|
useGrouping: !0
|
|
2670
2700
|
}).format(e);
|
|
2671
2701
|
}
|
|
2672
|
-
function
|
|
2673
|
-
return
|
|
2702
|
+
function Zt(e, t = Z) {
|
|
2703
|
+
return Xt(e, 0, 0, t);
|
|
2674
2704
|
}
|
|
2675
|
-
function
|
|
2705
|
+
function Qt(e, t = 1, n = Z) {
|
|
2676
2706
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
2677
2707
|
maximumFractionDigits: t,
|
|
2678
2708
|
notation: "compact"
|
|
2679
2709
|
}).format(e);
|
|
2680
2710
|
}
|
|
2681
|
-
function
|
|
2711
|
+
function $t(e, t = 1, n = Z) {
|
|
2682
2712
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2683
|
-
let [r, i] =
|
|
2713
|
+
let [r, i] = qt.find(([, n]) => ln(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
2684
2714
|
return $(n, {
|
|
2685
2715
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
2686
2716
|
style: "unit",
|
|
@@ -2688,7 +2718,7 @@ function Yt(e, t = 1, n = Z) {
|
|
|
2688
2718
|
unitDisplay: i === 1 ? "long" : "short"
|
|
2689
2719
|
}).format(e / i);
|
|
2690
2720
|
}
|
|
2691
|
-
function
|
|
2721
|
+
function en(e, t = "millisecond", n = Z) {
|
|
2692
2722
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2693
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 = [];
|
|
2694
2724
|
for (let [t, i] of s) {
|
|
@@ -2702,25 +2732,25 @@ function Xt(e, t = "millisecond", n = Z) {
|
|
|
2702
2732
|
unitDisplay: "short"
|
|
2703
2733
|
}).format(o));
|
|
2704
2734
|
}
|
|
2705
|
-
return
|
|
2735
|
+
return cn(n).format(c);
|
|
2706
2736
|
}
|
|
2707
|
-
function
|
|
2737
|
+
function tn(e) {
|
|
2708
2738
|
if (!e) return;
|
|
2709
|
-
let t =
|
|
2739
|
+
let t = sn(e);
|
|
2710
2740
|
return t === void 0 ? e : e.slice(0, t);
|
|
2711
2741
|
}
|
|
2712
|
-
function
|
|
2742
|
+
function nn(e) {
|
|
2713
2743
|
if (!e) return;
|
|
2714
|
-
let t =
|
|
2744
|
+
let t = sn(e);
|
|
2715
2745
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
2716
2746
|
}
|
|
2717
|
-
function
|
|
2718
|
-
return e != null &&
|
|
2747
|
+
function rn(e) {
|
|
2748
|
+
return e != null && Kt.has(e.toLowerCase());
|
|
2719
2749
|
}
|
|
2720
|
-
function
|
|
2721
|
-
return (e == null ? void 0 :
|
|
2750
|
+
function an(e) {
|
|
2751
|
+
return (e == null ? void 0 : Kt.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
2722
2752
|
}
|
|
2723
|
-
function
|
|
2753
|
+
function on(e) {
|
|
2724
2754
|
switch (e) {
|
|
2725
2755
|
case "Edm.Boolean": return "boolean";
|
|
2726
2756
|
case "Edm.Byte":
|
|
@@ -2741,23 +2771,23 @@ function tn(e) {
|
|
|
2741
2771
|
default: return "unknown";
|
|
2742
2772
|
}
|
|
2743
2773
|
}
|
|
2744
|
-
function
|
|
2774
|
+
function sn(e) {
|
|
2745
2775
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
2746
2776
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
2747
2777
|
}
|
|
2748
|
-
function
|
|
2749
|
-
let t =
|
|
2778
|
+
function cn(e) {
|
|
2779
|
+
let t = Jt.get(e);
|
|
2750
2780
|
return t || (t = new Intl.ListFormat(e, {
|
|
2751
2781
|
style: "narrow",
|
|
2752
2782
|
type: "unit"
|
|
2753
|
-
}),
|
|
2783
|
+
}), Jt.set(e, t)), t;
|
|
2754
2784
|
}
|
|
2755
2785
|
function $(e, t) {
|
|
2756
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
2757
|
-
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;
|
|
2758
2788
|
}
|
|
2759
|
-
function
|
|
2789
|
+
function ln(e, t) {
|
|
2760
2790
|
let n = 10 ** t;
|
|
2761
2791
|
return Math.round(e * n) / n;
|
|
2762
2792
|
}
|
|
2763
|
-
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, st as auditObjectContentWithParser, Ie as buildFetchError, at as buildPreviewObjectResult, le as componentInstanceConfigSchema, Le as concatenateSerialisedErrorMessages, Ce as connectorConfigSchema,
|
|
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 };
|