@dpuse/dpuse-shared 0.3.593
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/LICENSE +21 -0
- package/README.md +137 -0
- package/README.pdf +0 -0
- package/dist/componentConfig.schema-Csigo0y4.js +449 -0
- package/dist/dpuse-shared-component.es.js +68 -0
- package/dist/dpuse-shared-connector.es.js +90 -0
- package/dist/dpuse-shared-dataview.es.js +16 -0
- package/dist/dpuse-shared-encoding.es.js +356 -0
- package/dist/dpuse-shared-engine.es.js +0 -0
- package/dist/dpuse-shared-errors.es.js +181 -0
- package/dist/dpuse-shared-locale.es.js +8 -0
- package/dist/dpuse-shared-tools.es.js +8 -0
- package/dist/dpuse-shared-utilities.es.js +79 -0
- package/dist/dpuse-shared.es.js +25 -0
- package/dist/moduleConfig.schema-WvtAJjAG.js +19 -0
- package/dist/types/src/component/componentConfig.schema.d.ts +129 -0
- package/dist/types/src/component/connector/connection.d.ts +92 -0
- package/dist/types/src/component/connector/connectorConfig.schema.d.ts +80 -0
- package/dist/types/src/component/connector/index.d.ts +219 -0
- package/dist/types/src/component/context/contextConfig.schema.d.ts +77 -0
- package/dist/types/src/component/context/index.d.ts +136 -0
- package/dist/types/src/component/dataView/index.d.ts +215 -0
- package/dist/types/src/component/dimension/index.d.ts +8 -0
- package/dist/types/src/component/eventQuery/index.d.ts +8 -0
- package/dist/types/src/component/index.d.ts +15 -0
- package/dist/types/src/component/module.d.ts +7 -0
- package/dist/types/src/component/moduleConfig.schema.d.ts +67 -0
- package/dist/types/src/component/presenter/index.d.ts +22 -0
- package/dist/types/src/component/presenter/presentation.d.ts +77 -0
- package/dist/types/src/component/presenter/presenterConfig.schema.d.ts +50 -0
- package/dist/types/src/component/tool/index.d.ts +13 -0
- package/dist/types/src/encoding/index.d.ts +26 -0
- package/dist/types/src/engine/index.d.ts +58 -0
- package/dist/types/src/errors/index.d.ts +37 -0
- package/dist/types/src/index.d.ts +34 -0
- package/dist/types/src/locale/index.d.ts +26 -0
- package/dist/types/src/utilities/index.d.ts +12 -0
- package/dist/types/vite.config.d.ts +5 -0
- package/package.json +120 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, o as c, p as l, s as u, u as d } from "./componentConfig.schema-Csigo0y4.js";
|
|
2
|
+
import { t as f } from "./moduleConfig.schema-WvtAJjAG.js";
|
|
3
|
+
import { DEFAULT_LOCALE_CODE as p, createLabelMap as m, resolveLabel as h } from "./dpuse-shared-locale.es.js";
|
|
4
|
+
//#region src/component/connector/connectorConfig.schema.ts
|
|
5
|
+
var g = r({
|
|
6
|
+
authMethodId: a([
|
|
7
|
+
"apiKey",
|
|
8
|
+
"disabled",
|
|
9
|
+
"oAuth2",
|
|
10
|
+
"none"
|
|
11
|
+
]),
|
|
12
|
+
activeConnectionCount: l(n()),
|
|
13
|
+
canDescribe: l(t()),
|
|
14
|
+
id: l(i()),
|
|
15
|
+
label: l(e),
|
|
16
|
+
maxConnectionCount: d(n()),
|
|
17
|
+
params: l(u(s(i(), i())))
|
|
18
|
+
}), _ = a([
|
|
19
|
+
"application",
|
|
20
|
+
"curatedDataset",
|
|
21
|
+
"database",
|
|
22
|
+
"fileStore"
|
|
23
|
+
]), v = a([
|
|
24
|
+
"abortOperation",
|
|
25
|
+
"auditObjectContent",
|
|
26
|
+
"authenticateConnection",
|
|
27
|
+
"createObject",
|
|
28
|
+
"describeConnection",
|
|
29
|
+
"dropObject",
|
|
30
|
+
"findObject",
|
|
31
|
+
"getReadableStream",
|
|
32
|
+
"getRecord",
|
|
33
|
+
"listNodes",
|
|
34
|
+
"previewObject",
|
|
35
|
+
"removeRecords",
|
|
36
|
+
"retrieveChunks",
|
|
37
|
+
"retrieveRecords",
|
|
38
|
+
"upsertRecords"
|
|
39
|
+
]), y = a([
|
|
40
|
+
"bidirectional",
|
|
41
|
+
"destination",
|
|
42
|
+
"source",
|
|
43
|
+
"unknown"
|
|
44
|
+
]), b = r({
|
|
45
|
+
id: i(),
|
|
46
|
+
label: c
|
|
47
|
+
}), x = r({
|
|
48
|
+
...f,
|
|
49
|
+
typeId: o("connector"),
|
|
50
|
+
category: d(b),
|
|
51
|
+
categoryId: _,
|
|
52
|
+
implementations: s(i(), g),
|
|
53
|
+
operations: u(v),
|
|
54
|
+
usageId: y,
|
|
55
|
+
vendorAccountURL: d(i()),
|
|
56
|
+
vendorDocumentationURL: d(i()),
|
|
57
|
+
vendorHomeURL: d(i())
|
|
58
|
+
}), S = [
|
|
59
|
+
{
|
|
60
|
+
id: "application",
|
|
61
|
+
label: { "en-gb": "Application" }
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "curatedDataset",
|
|
65
|
+
label: { "en-gb": "Curated Dataset" }
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "database",
|
|
69
|
+
label: { "en-gb": "Database" }
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "fileStore",
|
|
73
|
+
label: { "en-gb": "File Store" }
|
|
74
|
+
}
|
|
75
|
+
], C = (e, t = p) => {
|
|
76
|
+
let n = S.find((t) => t.id === e);
|
|
77
|
+
if (n) {
|
|
78
|
+
let e = h(m(n.label), t);
|
|
79
|
+
return {
|
|
80
|
+
id: n.id,
|
|
81
|
+
label: e ?? n.id
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
id: e,
|
|
86
|
+
label: e
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
//#endregion
|
|
90
|
+
export { x as connectorConfigSchema, C as constructConnectorCategoryConfig };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createLabelMap as e } from "./dpuse-shared-locale.es.js";
|
|
2
|
+
e({ "en-gb": "Data Positioning Events" }), e({ "en-gb": "Delimited Text" }), e({ "en-gb": "JSON" }), e({ "en-gb": "SPSS" }), e({ "en-gb": "XLSX" }), e({ "en-gb": "XML" }), e({ "en-gb": "Newline" }), e({ "en-gb": "Carriage Return" }), e({ "en-gb": "Carriage Return/Newline" }), e({ "en-gb": "Colon" }), e({ "en-gb": "Comma" }), e({ "en-gb": "Exclamation Mark" }), e({ "en-gb": "Record Separator" }), e({ "en-gb": "Semicolon" }), e({ "en-gb": "Space" }), e({ "en-gb": "Tab" }), e({ "en-gb": "Underscore" }), e({ "en-gb": "Unit Separator" }), e({ "en-gb": "Vertical Bar" });
|
|
3
|
+
var t = [
|
|
4
|
+
",",
|
|
5
|
+
";",
|
|
6
|
+
" ",
|
|
7
|
+
"|",
|
|
8
|
+
" ",
|
|
9
|
+
":",
|
|
10
|
+
"_",
|
|
11
|
+
"!",
|
|
12
|
+
"0x1F",
|
|
13
|
+
"0x1E"
|
|
14
|
+
];
|
|
15
|
+
//#endregion
|
|
16
|
+
export { t as ORDERED_VALUE_DELIMITER_IDS };
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
//#region src/encoding/encodingConfigs.json
|
|
2
|
+
var e = {
|
|
3
|
+
id: "ascii",
|
|
4
|
+
groupLabel: "",
|
|
5
|
+
label: "ascii",
|
|
6
|
+
isDetectable: !1,
|
|
7
|
+
isDecodable: !0
|
|
8
|
+
}, t = {
|
|
9
|
+
id: "big5",
|
|
10
|
+
groupLabel: "Chinese Traditional",
|
|
11
|
+
label: "Chinese Traditional (big5)",
|
|
12
|
+
isDetectable: !0,
|
|
13
|
+
isDecodable: !0
|
|
14
|
+
}, n = {
|
|
15
|
+
id: "gb18030",
|
|
16
|
+
groupLabel: "Chinese Simplified",
|
|
17
|
+
label: "Chinese Simplified (gb18030)",
|
|
18
|
+
isDetectable: !0,
|
|
19
|
+
isDecodable: !0
|
|
20
|
+
}, r = {
|
|
21
|
+
id: "gbk",
|
|
22
|
+
groupLabel: "Chinese Simplified",
|
|
23
|
+
label: "Chinese Simplified (gbk)",
|
|
24
|
+
isDetectable: !1,
|
|
25
|
+
isDecodable: !0
|
|
26
|
+
}, i = {
|
|
27
|
+
id: "ibm866",
|
|
28
|
+
groupLabel: "Cyrillic",
|
|
29
|
+
label: "Cyrillic (ibm866)",
|
|
30
|
+
isDetectable: !1,
|
|
31
|
+
isDecodable: !0
|
|
32
|
+
}, a = {
|
|
33
|
+
id: "latin1",
|
|
34
|
+
groupLabel: "Western",
|
|
35
|
+
label: "Western (latin1)",
|
|
36
|
+
isDetectable: !1,
|
|
37
|
+
isDecodable: !0
|
|
38
|
+
}, o = {
|
|
39
|
+
id: "macintosh",
|
|
40
|
+
groupLabel: "Western",
|
|
41
|
+
label: "Western (macintosh)",
|
|
42
|
+
isDetectable: !1,
|
|
43
|
+
isDecodable: !0
|
|
44
|
+
}, s = {
|
|
45
|
+
id: "shift_jis",
|
|
46
|
+
groupLabel: "Japanese",
|
|
47
|
+
label: "Japanese (shift_jis)",
|
|
48
|
+
isDetectable: !0,
|
|
49
|
+
isDecodable: !0
|
|
50
|
+
}, c = {
|
|
51
|
+
id: "utf16",
|
|
52
|
+
groupLabel: "Unicode 16",
|
|
53
|
+
label: "Unicode 16 (utf16)",
|
|
54
|
+
isDetectable: !1,
|
|
55
|
+
isDecodable: !0
|
|
56
|
+
}, l = {
|
|
57
|
+
id: "utf16be",
|
|
58
|
+
groupLabel: "Unicode 16",
|
|
59
|
+
label: "Unicode 16 (utf16be)",
|
|
60
|
+
isDetectable: !0,
|
|
61
|
+
isDecodable: !0
|
|
62
|
+
}, u = {
|
|
63
|
+
id: "utf16le",
|
|
64
|
+
groupLabel: "Unicode 16",
|
|
65
|
+
label: "Unicode 16 (utf16le)",
|
|
66
|
+
isDetectable: !0,
|
|
67
|
+
isDecodable: !0
|
|
68
|
+
}, d = {
|
|
69
|
+
id: "utf32be",
|
|
70
|
+
groupLabel: "Unicode 32",
|
|
71
|
+
label: "Unicode 32 (utf32be)",
|
|
72
|
+
isDetectable: !0,
|
|
73
|
+
isDecodable: !1
|
|
74
|
+
}, f = {
|
|
75
|
+
id: "utf32le",
|
|
76
|
+
groupLabel: "Unicode 32",
|
|
77
|
+
label: "Unicode 32 (utf32le)",
|
|
78
|
+
isDetectable: !0,
|
|
79
|
+
isDecodable: !1
|
|
80
|
+
}, p = {
|
|
81
|
+
id: "utf8",
|
|
82
|
+
groupLabel: "",
|
|
83
|
+
label: "utf8",
|
|
84
|
+
isDetectable: !0,
|
|
85
|
+
isDecodable: !0
|
|
86
|
+
}, m = {
|
|
87
|
+
ascii: e,
|
|
88
|
+
big5: t,
|
|
89
|
+
"euc-jp": {
|
|
90
|
+
id: "euc-jp",
|
|
91
|
+
groupLabel: "Japanese",
|
|
92
|
+
label: "Japanese (euc-jp)",
|
|
93
|
+
isDetectable: !0,
|
|
94
|
+
isDecodable: !0
|
|
95
|
+
},
|
|
96
|
+
"euc-kr": {
|
|
97
|
+
id: "euc-kr",
|
|
98
|
+
groupLabel: "Korean",
|
|
99
|
+
label: "Korean (euc-kr)",
|
|
100
|
+
isDetectable: !0,
|
|
101
|
+
isDecodable: !0
|
|
102
|
+
},
|
|
103
|
+
gb18030: n,
|
|
104
|
+
gbk: r,
|
|
105
|
+
ibm866: i,
|
|
106
|
+
"iso-2022-cn": {
|
|
107
|
+
id: "iso-2022-cn",
|
|
108
|
+
groupLabel: "Japanese",
|
|
109
|
+
label: "Japanese (iso-2022-cn)",
|
|
110
|
+
isDetectable: !0,
|
|
111
|
+
isDecodable: !1
|
|
112
|
+
},
|
|
113
|
+
"iso-2022-jp": {
|
|
114
|
+
id: "iso-2022-jp",
|
|
115
|
+
groupLabel: "Japanese",
|
|
116
|
+
label: "Japanese (iso-2022-jp)",
|
|
117
|
+
isDetectable: !0,
|
|
118
|
+
isDecodable: !0
|
|
119
|
+
},
|
|
120
|
+
"iso-2022-kr": {
|
|
121
|
+
id: "iso-2022-kr",
|
|
122
|
+
groupLabel: "Korean",
|
|
123
|
+
label: "Korean (iso-2022-kr)",
|
|
124
|
+
isDetectable: !0,
|
|
125
|
+
isDecodable: !1
|
|
126
|
+
},
|
|
127
|
+
"iso-8859-1": {
|
|
128
|
+
id: "iso-8859-1",
|
|
129
|
+
groupLabel: "Western",
|
|
130
|
+
label: "Western (iso-8859-1)",
|
|
131
|
+
isDetectable: !0,
|
|
132
|
+
isDecodable: !0
|
|
133
|
+
},
|
|
134
|
+
"iso-8859-2": {
|
|
135
|
+
id: "iso-8859-2",
|
|
136
|
+
groupLabel: "Central European",
|
|
137
|
+
label: "Central European (iso-8859-2)",
|
|
138
|
+
isDetectable: !0,
|
|
139
|
+
isDecodable: !0
|
|
140
|
+
},
|
|
141
|
+
"iso-8859-3": {
|
|
142
|
+
id: "iso-8859-3",
|
|
143
|
+
groupLabel: "Southern European",
|
|
144
|
+
label: "Southern European (iso-8859-3)",
|
|
145
|
+
isDetectable: !1,
|
|
146
|
+
isDecodable: !0
|
|
147
|
+
},
|
|
148
|
+
"iso-8859-4": {
|
|
149
|
+
id: "iso-8859-4",
|
|
150
|
+
groupLabel: "Baltic",
|
|
151
|
+
label: "Baltic (iso-8859-4)",
|
|
152
|
+
isDetectable: !1,
|
|
153
|
+
isDecodable: !0
|
|
154
|
+
},
|
|
155
|
+
"iso-8859-5": {
|
|
156
|
+
id: "iso-8859-5",
|
|
157
|
+
groupLabel: "Cyrillic",
|
|
158
|
+
label: "Cyrillic (iso-8859-5)",
|
|
159
|
+
isDetectable: !0,
|
|
160
|
+
isDecodable: !0
|
|
161
|
+
},
|
|
162
|
+
"iso-8859-6": {
|
|
163
|
+
id: "iso-8859-6",
|
|
164
|
+
groupLabel: "Arabic",
|
|
165
|
+
label: "Arabic (iso-8859-6)",
|
|
166
|
+
isDetectable: !0,
|
|
167
|
+
isDecodable: !0
|
|
168
|
+
},
|
|
169
|
+
"iso-8859-7": {
|
|
170
|
+
id: "iso-8859-7",
|
|
171
|
+
groupLabel: "Greek",
|
|
172
|
+
label: "Greek (iso-8859-7)",
|
|
173
|
+
isDetectable: !0,
|
|
174
|
+
isDecodable: !0
|
|
175
|
+
},
|
|
176
|
+
"iso-8859-8": {
|
|
177
|
+
id: "iso-8859-8",
|
|
178
|
+
groupLabel: "Hebrew",
|
|
179
|
+
label: "Hebrew (iso-8859-8)",
|
|
180
|
+
isDetectable: !0,
|
|
181
|
+
isDecodable: !0
|
|
182
|
+
},
|
|
183
|
+
"iso-8859-9": {
|
|
184
|
+
id: "iso-8859-9",
|
|
185
|
+
groupLabel: "Turkish",
|
|
186
|
+
label: "Turkish (iso-8859-9)",
|
|
187
|
+
isDetectable: !0,
|
|
188
|
+
isDecodable: !0
|
|
189
|
+
},
|
|
190
|
+
"iso-8859-10": {
|
|
191
|
+
id: "iso-8859-10",
|
|
192
|
+
groupLabel: "Nordic",
|
|
193
|
+
label: "Nordic (iso-8859-10)",
|
|
194
|
+
isDetectable: !1,
|
|
195
|
+
isDecodable: !0
|
|
196
|
+
},
|
|
197
|
+
"iso-8859-11": {
|
|
198
|
+
id: "iso-8859-11",
|
|
199
|
+
groupLabel: "Thai",
|
|
200
|
+
label: "Thai (iso-8859-11)",
|
|
201
|
+
isDetectable: !1,
|
|
202
|
+
isDecodable: !0
|
|
203
|
+
},
|
|
204
|
+
"iso-8859-13": {
|
|
205
|
+
id: "iso-8859-13",
|
|
206
|
+
groupLabel: "Baltic",
|
|
207
|
+
label: "Baltic (iso-8859-13)",
|
|
208
|
+
isDetectable: !1,
|
|
209
|
+
isDecodable: !0
|
|
210
|
+
},
|
|
211
|
+
"iso-8859-14": {
|
|
212
|
+
id: "iso-8859-14",
|
|
213
|
+
groupLabel: "Celtic",
|
|
214
|
+
label: "Celtic (iso-8859-14)",
|
|
215
|
+
isDetectable: !1,
|
|
216
|
+
isDecodable: !0
|
|
217
|
+
},
|
|
218
|
+
"iso-8859-15": {
|
|
219
|
+
id: "iso-8859-15",
|
|
220
|
+
groupLabel: "Western",
|
|
221
|
+
label: "Western (iso-8859-15)",
|
|
222
|
+
isDetectable: !1,
|
|
223
|
+
isDecodable: !0
|
|
224
|
+
},
|
|
225
|
+
"iso-8859-16": {
|
|
226
|
+
id: "iso-8859-16",
|
|
227
|
+
groupLabel: "Romanian",
|
|
228
|
+
label: "Romanian (iso-8859-16)",
|
|
229
|
+
isDetectable: !1,
|
|
230
|
+
isDecodable: !0
|
|
231
|
+
},
|
|
232
|
+
"kOi8-r": {
|
|
233
|
+
id: "koi8-r",
|
|
234
|
+
groupLabel: "Cyrillic",
|
|
235
|
+
label: "Cyrillic (koi8-r)",
|
|
236
|
+
isDetectable: !0,
|
|
237
|
+
isDecodable: !0
|
|
238
|
+
},
|
|
239
|
+
"kOi8-u": {
|
|
240
|
+
id: "koi8-u",
|
|
241
|
+
groupLabel: "Cyrillic",
|
|
242
|
+
label: "Cyrillic (koi8-u)",
|
|
243
|
+
isDetectable: !1,
|
|
244
|
+
isDecodable: !0
|
|
245
|
+
},
|
|
246
|
+
latin1: a,
|
|
247
|
+
macintosh: o,
|
|
248
|
+
shift_jis: s,
|
|
249
|
+
"tis-620": {
|
|
250
|
+
id: "tis-620",
|
|
251
|
+
groupLabel: "Thai",
|
|
252
|
+
label: "Thai (tis-620)",
|
|
253
|
+
isDetectable: !1,
|
|
254
|
+
isDecodable: !0
|
|
255
|
+
},
|
|
256
|
+
utf16: c,
|
|
257
|
+
utf16be: l,
|
|
258
|
+
utf16le: u,
|
|
259
|
+
utf32be: d,
|
|
260
|
+
utf32le: f,
|
|
261
|
+
utf8: p,
|
|
262
|
+
"windows-1250": {
|
|
263
|
+
id: "windows-1250",
|
|
264
|
+
groupLabel: "Central European",
|
|
265
|
+
label: "Central European (windows-1250)",
|
|
266
|
+
isDetectable: !0,
|
|
267
|
+
isDecodable: !0
|
|
268
|
+
},
|
|
269
|
+
"windows-1251": {
|
|
270
|
+
id: "windows-1251",
|
|
271
|
+
groupLabel: "Cyrillic",
|
|
272
|
+
label: "Cyrillic (windows-1251)",
|
|
273
|
+
isDetectable: !0,
|
|
274
|
+
isDecodable: !0
|
|
275
|
+
},
|
|
276
|
+
"windows-1252": {
|
|
277
|
+
id: "windows-1252",
|
|
278
|
+
groupLabel: "Western",
|
|
279
|
+
label: "Western (windows-1252)",
|
|
280
|
+
isDetectable: !0,
|
|
281
|
+
isDecodable: !0
|
|
282
|
+
},
|
|
283
|
+
"windows-1253": {
|
|
284
|
+
id: "windows-1253",
|
|
285
|
+
groupLabel: "Greek",
|
|
286
|
+
label: "Greek (windows-1253)",
|
|
287
|
+
isDetectable: !0,
|
|
288
|
+
isDecodable: !0
|
|
289
|
+
},
|
|
290
|
+
"windows-1254": {
|
|
291
|
+
id: "windows-1254",
|
|
292
|
+
groupLabel: "Turkish",
|
|
293
|
+
label: "Turkish (windows-1254)",
|
|
294
|
+
isDetectable: !0,
|
|
295
|
+
isDecodable: !0
|
|
296
|
+
},
|
|
297
|
+
"windows-1255": {
|
|
298
|
+
id: "windows-1255",
|
|
299
|
+
groupLabel: "Hebrew",
|
|
300
|
+
label: "Hebrew (windows-1255)",
|
|
301
|
+
isDetectable: !0,
|
|
302
|
+
isDecodable: !0
|
|
303
|
+
},
|
|
304
|
+
"windows-1256": {
|
|
305
|
+
id: "windows-1256",
|
|
306
|
+
groupLabel: "Arabic",
|
|
307
|
+
label: "Arabic (windows-1256)",
|
|
308
|
+
isDetectable: !0,
|
|
309
|
+
isDecodable: !0
|
|
310
|
+
},
|
|
311
|
+
"windows-1257": {
|
|
312
|
+
id: "windows-1257",
|
|
313
|
+
groupLabel: "Baltic",
|
|
314
|
+
label: "Baltic (windows-1257)",
|
|
315
|
+
isDetectable: !1,
|
|
316
|
+
isDecodable: !0
|
|
317
|
+
},
|
|
318
|
+
"windows-1258": {
|
|
319
|
+
id: "windows-1258",
|
|
320
|
+
groupLabel: "Vietnamese",
|
|
321
|
+
label: "Vietnamese (windows-1258)",
|
|
322
|
+
isDetectable: !1,
|
|
323
|
+
isDecodable: !0
|
|
324
|
+
},
|
|
325
|
+
"windows-874": {
|
|
326
|
+
id: "windows-874",
|
|
327
|
+
groupLabel: "Thai",
|
|
328
|
+
label: "Thai (windows-874)",
|
|
329
|
+
isDetectable: !1,
|
|
330
|
+
isDecodable: !0
|
|
331
|
+
},
|
|
332
|
+
"x-mac-cyrillic": {
|
|
333
|
+
id: "x-mac-cyrillic",
|
|
334
|
+
groupLabel: "Cyrillic",
|
|
335
|
+
label: "Cyrillic (x-mac-cyrillic)",
|
|
336
|
+
isDetectable: !1,
|
|
337
|
+
isDecodable: !0
|
|
338
|
+
},
|
|
339
|
+
"x-user-defined": {
|
|
340
|
+
id: "x-user-defined",
|
|
341
|
+
groupLabel: "Other",
|
|
342
|
+
label: "Other (x-user-defined)",
|
|
343
|
+
isDetectable: !1,
|
|
344
|
+
isDecodable: !0
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
function h(e = "en") {
|
|
348
|
+
let t = [];
|
|
349
|
+
for (let [, e] of Object.entries(m)) t.push({
|
|
350
|
+
...e,
|
|
351
|
+
label: e.label || e.id
|
|
352
|
+
});
|
|
353
|
+
return t.toSorted((e, t) => e.groupLabel.localeCompare(t.groupLabel) || e.label.localeCompare(t.label));
|
|
354
|
+
}
|
|
355
|
+
//#endregion
|
|
356
|
+
export { m as encodingConfigMap, h as getEncodingTypeConfigs };
|
|
File without changes
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
//#region src/errors/index.ts
|
|
2
|
+
var e = 2048, t = class extends Error {
|
|
3
|
+
data;
|
|
4
|
+
locator;
|
|
5
|
+
constructor(e, t, n, r) {
|
|
6
|
+
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
7
|
+
}
|
|
8
|
+
}, n = class extends t {
|
|
9
|
+
constructor(e, t, n, r) {
|
|
10
|
+
super(e, t, n, r), this.name = "AppError";
|
|
11
|
+
}
|
|
12
|
+
}, r = class extends t {
|
|
13
|
+
constructor(e, t, n, r) {
|
|
14
|
+
super(e, t, n, r), this.name = "APIError";
|
|
15
|
+
}
|
|
16
|
+
}, i = class extends t {
|
|
17
|
+
constructor(e, t, n, r) {
|
|
18
|
+
super(e, t, n, r), this.name = "EngineError";
|
|
19
|
+
}
|
|
20
|
+
}, a = class extends t {
|
|
21
|
+
constructor(e, t, n, r) {
|
|
22
|
+
super(e, t, n, r), this.name = "ConnectorError";
|
|
23
|
+
}
|
|
24
|
+
}, o = class extends t {
|
|
25
|
+
constructor(e, t, n, r) {
|
|
26
|
+
super(e, t, n, r), this.name = "FetchError";
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
async function s(e, t, n) {
|
|
30
|
+
let r = ` - ${e.statusText}`, i = `${t} Response status '${e.status}${e.statusText ? r : ""}' received.`, a;
|
|
31
|
+
try {
|
|
32
|
+
a = await e.text();
|
|
33
|
+
} catch (e) {
|
|
34
|
+
a = `<body unavailable: ${u(e).message}>`;
|
|
35
|
+
}
|
|
36
|
+
return new o(i, n, { body: m(a) });
|
|
37
|
+
}
|
|
38
|
+
function c(e) {
|
|
39
|
+
return e.map((e) => e.message).join(" ");
|
|
40
|
+
}
|
|
41
|
+
function l(e) {
|
|
42
|
+
try {
|
|
43
|
+
e();
|
|
44
|
+
} catch {}
|
|
45
|
+
}
|
|
46
|
+
function u(e) {
|
|
47
|
+
if (e instanceof Error) return e;
|
|
48
|
+
if (typeof e == "string") return Error(e);
|
|
49
|
+
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
50
|
+
if (typeof e == "symbol") return Error(e.description ?? "Unknown error");
|
|
51
|
+
if (typeof e == "object") try {
|
|
52
|
+
return Error(JSON.stringify(e));
|
|
53
|
+
} catch {
|
|
54
|
+
return /* @__PURE__ */ Error("Unknown error");
|
|
55
|
+
}
|
|
56
|
+
return /* @__PURE__ */ Error("Unknown error");
|
|
57
|
+
}
|
|
58
|
+
function d(e) {
|
|
59
|
+
let t = /* @__PURE__ */ new Set(), n = [], r = u(e);
|
|
60
|
+
for (; r != null && !t.has(r);) {
|
|
61
|
+
t.add(r);
|
|
62
|
+
let e;
|
|
63
|
+
switch (r.name) {
|
|
64
|
+
case "APIError": {
|
|
65
|
+
let t = r;
|
|
66
|
+
e = {
|
|
67
|
+
data: t.data,
|
|
68
|
+
locator: t.locator,
|
|
69
|
+
message: r.message,
|
|
70
|
+
name: "APIError",
|
|
71
|
+
stack: r.stack
|
|
72
|
+
}, r = r.cause == null ? null : u(r.cause);
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
case "AppError": {
|
|
76
|
+
let t = r;
|
|
77
|
+
e = {
|
|
78
|
+
data: t.data,
|
|
79
|
+
locator: t.locator,
|
|
80
|
+
message: r.message,
|
|
81
|
+
name: "AppError",
|
|
82
|
+
stack: r.stack
|
|
83
|
+
}, r = r.cause == null ? null : u(r.cause);
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
case "ConnectorError": {
|
|
87
|
+
let t = r;
|
|
88
|
+
e = {
|
|
89
|
+
data: t.data,
|
|
90
|
+
locator: t.locator,
|
|
91
|
+
message: r.message,
|
|
92
|
+
name: "ConnectorError",
|
|
93
|
+
stack: r.stack
|
|
94
|
+
}, r = r.cause == null ? null : u(r.cause);
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
case "EngineError": {
|
|
98
|
+
let t = r;
|
|
99
|
+
e = {
|
|
100
|
+
data: t.data,
|
|
101
|
+
locator: t.locator,
|
|
102
|
+
message: r.message,
|
|
103
|
+
name: "EngineError",
|
|
104
|
+
stack: r.stack
|
|
105
|
+
}, r = r.cause == null ? null : u(r.cause);
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
case "FetchError": {
|
|
109
|
+
let t = r;
|
|
110
|
+
e = {
|
|
111
|
+
data: t.data,
|
|
112
|
+
locator: t.locator,
|
|
113
|
+
message: r.message,
|
|
114
|
+
name: "FetchError",
|
|
115
|
+
stack: r.stack
|
|
116
|
+
}, r = r.cause == null ? null : u(r.cause);
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
default:
|
|
120
|
+
let { cause: t, ...n } = Object.fromEntries(Object.entries(r));
|
|
121
|
+
r.name ? (e = {
|
|
122
|
+
data: n,
|
|
123
|
+
locator: "",
|
|
124
|
+
message: r.message,
|
|
125
|
+
name: r.name,
|
|
126
|
+
stack: r.stack
|
|
127
|
+
}, r = r.cause == null ? null : u(r.cause)) : (e = {
|
|
128
|
+
data: n,
|
|
129
|
+
locator: "",
|
|
130
|
+
message: p(r),
|
|
131
|
+
name: "Error",
|
|
132
|
+
stack: void 0
|
|
133
|
+
}, r = null);
|
|
134
|
+
}
|
|
135
|
+
/(?:\.{3}|[.!?])$/.test(e.message) || (e.message += "."), n.push(e);
|
|
136
|
+
}
|
|
137
|
+
return n;
|
|
138
|
+
}
|
|
139
|
+
function f(e) {
|
|
140
|
+
if (e.length === 0) return;
|
|
141
|
+
let t;
|
|
142
|
+
for (let s of e.toReversed()) {
|
|
143
|
+
let e;
|
|
144
|
+
switch (s.name) {
|
|
145
|
+
case "APIError":
|
|
146
|
+
e = new r(s.message, s.locator, s.data, { cause: t });
|
|
147
|
+
break;
|
|
148
|
+
case "AppError":
|
|
149
|
+
e = new n(s.message, s.locator, s.data, { cause: t });
|
|
150
|
+
break;
|
|
151
|
+
case "ConnectorError":
|
|
152
|
+
e = new a(s.message, s.locator, s.data, { cause: t });
|
|
153
|
+
break;
|
|
154
|
+
case "EngineError":
|
|
155
|
+
e = new i(s.message, s.locator, s.data, { cause: t });
|
|
156
|
+
break;
|
|
157
|
+
case "FetchError":
|
|
158
|
+
e = new o(s.message, s.locator, s.data, { cause: t });
|
|
159
|
+
break;
|
|
160
|
+
default:
|
|
161
|
+
e = Error(s.message, { cause: t }), e.name = s.name;
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
s.stack !== void 0 && (e.stack = s.stack), t = e;
|
|
165
|
+
}
|
|
166
|
+
return t;
|
|
167
|
+
}
|
|
168
|
+
function p(e) {
|
|
169
|
+
let t;
|
|
170
|
+
try {
|
|
171
|
+
t = JSON.stringify(e);
|
|
172
|
+
} catch {
|
|
173
|
+
t = typeof e == "symbol" ? e.description ?? "Unknown error" : typeof e == "bigint" ? e.toString() : "Unknown error";
|
|
174
|
+
}
|
|
175
|
+
return t === "" && (t = "Unknown error"), t;
|
|
176
|
+
}
|
|
177
|
+
function m(t) {
|
|
178
|
+
if (!(t == null || t === "")) return t.length > e ? `${t.slice(0, e)}... [truncated]` : t;
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
export { r as APIError, n as AppError, a as ConnectorError, t as DPUseError, i as EngineError, o as FetchError, s as buildFetchError, c as concatenateSerialisedErrorMessages, l as ignoreErrors, u as normalizeToError, d as serialiseError, f as unserialiseError };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/locale/index.ts
|
|
2
|
+
var e = "en-gb", t = (e) => new Map(Object.entries(e)), n = (t, n, r = e) => {
|
|
3
|
+
let i = t.get(n);
|
|
4
|
+
if (i !== void 0) return i;
|
|
5
|
+
if (r !== n) return t.get(r);
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as DEFAULT_LOCALE_CODE, t as createLabelMap, n as resolveLabel };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/component/tool/index.ts
|
|
2
|
+
async function e(e, t) {
|
|
3
|
+
let n = `dpuse-tool-${t}`, r = e.find((e) => e.id === n);
|
|
4
|
+
if (!r) throw Error(`Connector could not load unknown tool '${t}'.`);
|
|
5
|
+
return new (await (import(`https://engine-eu.dpuse.app/tools/${t}_v${r.version}/${n}.es.js`))).Tool();
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { e as loadTool };
|