@datapos/datapos-shared 0.3.312 → 0.3.314
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/dist/datapos-shared.es.js +357 -186
- package/dist/types/src/component/componentConfig.schema.d.ts +2 -2
- package/dist/types/src/component/connector/index.d.ts +5 -5
- package/dist/types/src/component/context/contextConfig.schema.d.ts +2 -2
- package/dist/types/src/component/context/index.d.ts +5 -5
- package/dist/types/src/component/index.d.ts +5 -5
- package/dist/types/src/component/presenter/presentation.d.ts +5 -1
- package/dist/types/src/component/presenter/presenterConfig.schema.d.ts +2 -2
- package/dist/types/src/index.d.ts +4 -1
- package/package.json +7 -1
|
@@ -1,138 +1,200 @@
|
|
|
1
|
-
let
|
|
1
|
+
let O;
|
|
2
2
|
// @__NO_SIDE_EFFECTS__
|
|
3
|
-
function
|
|
3
|
+
function L(e) {
|
|
4
4
|
return {
|
|
5
|
-
lang: e?.lang ??
|
|
5
|
+
lang: e?.lang ?? O?.lang,
|
|
6
6
|
message: e?.message,
|
|
7
|
-
abortEarly: e?.abortEarly ??
|
|
8
|
-
abortPipeEarly: e?.abortPipeEarly ??
|
|
7
|
+
abortEarly: e?.abortEarly ?? O?.abortEarly,
|
|
8
|
+
abortPipeEarly: e?.abortPipeEarly ?? O?.abortPipeEarly
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
let
|
|
11
|
+
let P;
|
|
12
12
|
// @__NO_SIDE_EFFECTS__
|
|
13
|
-
function
|
|
14
|
-
return
|
|
13
|
+
function V(e) {
|
|
14
|
+
return P?.get(e);
|
|
15
15
|
}
|
|
16
|
-
let
|
|
16
|
+
let H;
|
|
17
17
|
// @__NO_SIDE_EFFECTS__
|
|
18
|
-
function
|
|
19
|
-
return
|
|
18
|
+
function K(e) {
|
|
19
|
+
return H?.get(e);
|
|
20
20
|
}
|
|
21
|
-
let
|
|
21
|
+
let W;
|
|
22
22
|
// @__NO_SIDE_EFFECTS__
|
|
23
|
-
function
|
|
24
|
-
return
|
|
23
|
+
function X(e, r) {
|
|
24
|
+
return W?.get(e)?.get(r);
|
|
25
25
|
}
|
|
26
26
|
// @__NO_SIDE_EFFECTS__
|
|
27
|
-
function
|
|
27
|
+
function F(e) {
|
|
28
28
|
const r = typeof e;
|
|
29
29
|
return r === "string" ? `"${e}"` : r === "number" || r === "bigint" || r === "boolean" ? `${e}` : r === "object" || r === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : r;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
const s = o && "input" in o ? o.input : t.value, i = o?.expected ?? e.expects ?? null,
|
|
31
|
+
function y(e, r, t, n, o) {
|
|
32
|
+
const s = o && "input" in o ? o.input : t.value, i = o?.expected ?? e.expects ?? null, c = o?.received ?? /* @__PURE__ */ F(s), a = {
|
|
33
33
|
kind: e.kind,
|
|
34
34
|
type: e.type,
|
|
35
35
|
input: s,
|
|
36
36
|
expected: i,
|
|
37
|
-
received:
|
|
38
|
-
message: `Invalid ${r}: ${i ? `Expected ${i} but r` : "R"}eceived ${
|
|
37
|
+
received: c,
|
|
38
|
+
message: `Invalid ${r}: ${i ? `Expected ${i} but r` : "R"}eceived ${c}`,
|
|
39
39
|
requirement: e.requirement,
|
|
40
40
|
path: o?.path,
|
|
41
41
|
issues: o?.issues,
|
|
42
42
|
lang: n.lang,
|
|
43
43
|
abortEarly: n.abortEarly,
|
|
44
44
|
abortPipeEarly: n.abortPipeEarly
|
|
45
|
-
},
|
|
46
|
-
|
|
45
|
+
}, u = e.kind === "schema", p = o?.message ?? e.message ?? /* @__PURE__ */ X(e.reference, a.lang) ?? (u ? /* @__PURE__ */ K(a.lang) : null) ?? n.message ?? /* @__PURE__ */ V(a.lang);
|
|
46
|
+
p !== void 0 && (a.message = typeof p == "function" ? p(a) : p), u && (t.typed = !1), t.issues ? t.issues.push(a) : t.issues = [a];
|
|
47
47
|
}
|
|
48
48
|
// @__NO_SIDE_EFFECTS__
|
|
49
|
-
function
|
|
49
|
+
function g(e) {
|
|
50
50
|
return {
|
|
51
51
|
version: 1,
|
|
52
52
|
vendor: "valibot",
|
|
53
53
|
validate(r) {
|
|
54
|
-
return e["~run"]({ value: r }, /* @__PURE__ */
|
|
54
|
+
return e["~run"]({ value: r }, /* @__PURE__ */ L());
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
// @__NO_SIDE_EFFECTS__
|
|
59
|
-
function
|
|
59
|
+
function z(e, r) {
|
|
60
|
+
return Object.hasOwn(e, r) && r !== "__proto__" && r !== "prototype" && r !== "constructor";
|
|
61
|
+
}
|
|
62
|
+
// @__NO_SIDE_EFFECTS__
|
|
63
|
+
function J(e, r) {
|
|
60
64
|
const t = [...new Set(e)];
|
|
61
65
|
return t.length > 1 ? `(${t.join(` ${r} `)})` : t[0] ?? "never";
|
|
62
66
|
}
|
|
63
67
|
// @__NO_SIDE_EFFECTS__
|
|
64
|
-
function
|
|
68
|
+
function q(e, r, t) {
|
|
65
69
|
return typeof e.fallback == "function" ? e.fallback(r, t) : e.fallback;
|
|
66
70
|
}
|
|
67
71
|
// @__NO_SIDE_EFFECTS__
|
|
68
|
-
function
|
|
72
|
+
function N(e, r, t) {
|
|
69
73
|
return typeof e.default == "function" ? e.default(r, t) : e.default;
|
|
70
74
|
}
|
|
71
75
|
// @__NO_SIDE_EFFECTS__
|
|
72
|
-
function
|
|
76
|
+
function v(e, r) {
|
|
77
|
+
return {
|
|
78
|
+
kind: "schema",
|
|
79
|
+
type: "array",
|
|
80
|
+
reference: v,
|
|
81
|
+
expects: "Array",
|
|
82
|
+
async: !1,
|
|
83
|
+
item: e,
|
|
84
|
+
message: r,
|
|
85
|
+
get "~standard"() {
|
|
86
|
+
return /* @__PURE__ */ g(this);
|
|
87
|
+
},
|
|
88
|
+
"~run"(t, n) {
|
|
89
|
+
const o = t.value;
|
|
90
|
+
if (Array.isArray(o)) {
|
|
91
|
+
t.typed = !0, t.value = [];
|
|
92
|
+
for (let s = 0; s < o.length; s++) {
|
|
93
|
+
const i = o[s], c = this.item["~run"]({ value: i }, n);
|
|
94
|
+
if (c.issues) {
|
|
95
|
+
const a = {
|
|
96
|
+
type: "array",
|
|
97
|
+
origin: "value",
|
|
98
|
+
input: o,
|
|
99
|
+
key: s,
|
|
100
|
+
value: i
|
|
101
|
+
};
|
|
102
|
+
for (const u of c.issues)
|
|
103
|
+
u.path ? u.path.unshift(a) : u.path = [a], t.issues?.push(u);
|
|
104
|
+
if (t.issues || (t.issues = c.issues), n.abortEarly) {
|
|
105
|
+
t.typed = !1;
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
c.typed || (t.typed = !1), t.value.push(c.value);
|
|
110
|
+
}
|
|
111
|
+
} else y(this, "type", t, n);
|
|
112
|
+
return t;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
// @__NO_SIDE_EFFECTS__
|
|
117
|
+
function $(e) {
|
|
118
|
+
return {
|
|
119
|
+
kind: "schema",
|
|
120
|
+
type: "boolean",
|
|
121
|
+
reference: $,
|
|
122
|
+
expects: "boolean",
|
|
123
|
+
async: !1,
|
|
124
|
+
message: e,
|
|
125
|
+
get "~standard"() {
|
|
126
|
+
return /* @__PURE__ */ g(this);
|
|
127
|
+
},
|
|
128
|
+
"~run"(r, t) {
|
|
129
|
+
return typeof r.value == "boolean" ? r.typed = !0 : y(this, "type", r, t), r;
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
// @__NO_SIDE_EFFECTS__
|
|
134
|
+
function k(e, r) {
|
|
73
135
|
return {
|
|
74
136
|
kind: "schema",
|
|
75
137
|
type: "literal",
|
|
76
|
-
reference:
|
|
77
|
-
expects: /* @__PURE__ */
|
|
138
|
+
reference: k,
|
|
139
|
+
expects: /* @__PURE__ */ F(e),
|
|
78
140
|
async: !1,
|
|
79
141
|
literal: e,
|
|
80
142
|
message: r,
|
|
81
143
|
get "~standard"() {
|
|
82
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ g(this);
|
|
83
145
|
},
|
|
84
146
|
"~run"(t, n) {
|
|
85
|
-
return t.value === this.literal ? t.typed = !0 :
|
|
147
|
+
return t.value === this.literal ? t.typed = !0 : y(this, "type", t, n), t;
|
|
86
148
|
}
|
|
87
149
|
};
|
|
88
150
|
}
|
|
89
151
|
// @__NO_SIDE_EFFECTS__
|
|
90
|
-
function
|
|
152
|
+
function b(e, r) {
|
|
91
153
|
return {
|
|
92
154
|
kind: "schema",
|
|
93
155
|
type: "nullable",
|
|
94
|
-
reference:
|
|
156
|
+
reference: b,
|
|
95
157
|
expects: `(${e.expects} | null)`,
|
|
96
158
|
async: !1,
|
|
97
159
|
wrapped: e,
|
|
98
160
|
default: r,
|
|
99
161
|
get "~standard"() {
|
|
100
|
-
return /* @__PURE__ */
|
|
162
|
+
return /* @__PURE__ */ g(this);
|
|
101
163
|
},
|
|
102
164
|
"~run"(t, n) {
|
|
103
|
-
return t.value === null && (this.default !== void 0 && (t.value = /* @__PURE__ */
|
|
165
|
+
return t.value === null && (this.default !== void 0 && (t.value = /* @__PURE__ */ N(this, t, n)), t.value === null) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
|
|
104
166
|
}
|
|
105
167
|
};
|
|
106
168
|
}
|
|
107
169
|
// @__NO_SIDE_EFFECTS__
|
|
108
|
-
function
|
|
170
|
+
function S(e) {
|
|
109
171
|
return {
|
|
110
172
|
kind: "schema",
|
|
111
173
|
type: "number",
|
|
112
|
-
reference:
|
|
174
|
+
reference: S,
|
|
113
175
|
expects: "number",
|
|
114
176
|
async: !1,
|
|
115
177
|
message: e,
|
|
116
178
|
get "~standard"() {
|
|
117
|
-
return /* @__PURE__ */
|
|
179
|
+
return /* @__PURE__ */ g(this);
|
|
118
180
|
},
|
|
119
181
|
"~run"(r, t) {
|
|
120
|
-
return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 :
|
|
182
|
+
return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 : y(this, "type", r, t), r;
|
|
121
183
|
}
|
|
122
184
|
};
|
|
123
185
|
}
|
|
124
186
|
// @__NO_SIDE_EFFECTS__
|
|
125
|
-
function
|
|
187
|
+
function m(e, r) {
|
|
126
188
|
return {
|
|
127
189
|
kind: "schema",
|
|
128
190
|
type: "object",
|
|
129
|
-
reference:
|
|
191
|
+
reference: m,
|
|
130
192
|
expects: "Object",
|
|
131
193
|
async: !1,
|
|
132
194
|
entries: e,
|
|
133
195
|
message: r,
|
|
134
196
|
get "~standard"() {
|
|
135
|
-
return /* @__PURE__ */
|
|
197
|
+
return /* @__PURE__ */ g(this);
|
|
136
198
|
},
|
|
137
199
|
"~run"(t, n) {
|
|
138
200
|
const o = t.value;
|
|
@@ -141,25 +203,25 @@ function S(e, r) {
|
|
|
141
203
|
for (const s in this.entries) {
|
|
142
204
|
const i = this.entries[s];
|
|
143
205
|
if (s in o || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
144
|
-
const
|
|
206
|
+
const c = s in o ? o[s] : /* @__PURE__ */ N(i), a = i["~run"]({ value: c }, n);
|
|
145
207
|
if (a.issues) {
|
|
146
|
-
const
|
|
208
|
+
const u = {
|
|
147
209
|
type: "object",
|
|
148
210
|
origin: "value",
|
|
149
211
|
input: o,
|
|
150
212
|
key: s,
|
|
151
|
-
value:
|
|
213
|
+
value: c
|
|
152
214
|
};
|
|
153
|
-
for (const
|
|
154
|
-
|
|
215
|
+
for (const p of a.issues)
|
|
216
|
+
p.path ? p.path.unshift(u) : p.path = [u], t.issues?.push(p);
|
|
155
217
|
if (t.issues || (t.issues = a.issues), n.abortEarly) {
|
|
156
218
|
t.typed = !1;
|
|
157
219
|
break;
|
|
158
220
|
}
|
|
159
221
|
}
|
|
160
222
|
a.typed || (t.typed = !1), t.value[s] = a.value;
|
|
161
|
-
} else if (i.fallback !== void 0) t.value[s] = /* @__PURE__ */
|
|
162
|
-
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (
|
|
223
|
+
} else if (i.fallback !== void 0) t.value[s] = /* @__PURE__ */ q(i);
|
|
224
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (y(this, "key", t, n, {
|
|
163
225
|
input: void 0,
|
|
164
226
|
expected: `"${s}"`,
|
|
165
227
|
path: [{
|
|
@@ -172,69 +234,127 @@ function S(e, r) {
|
|
|
172
234
|
}), n.abortEarly))
|
|
173
235
|
break;
|
|
174
236
|
}
|
|
175
|
-
} else
|
|
237
|
+
} else y(this, "type", t, n);
|
|
176
238
|
return t;
|
|
177
239
|
}
|
|
178
240
|
};
|
|
179
241
|
}
|
|
180
242
|
// @__NO_SIDE_EFFECTS__
|
|
181
|
-
function
|
|
243
|
+
function f(e, r) {
|
|
182
244
|
return {
|
|
183
245
|
kind: "schema",
|
|
184
246
|
type: "optional",
|
|
185
|
-
reference:
|
|
247
|
+
reference: f,
|
|
186
248
|
expects: `(${e.expects} | undefined)`,
|
|
187
249
|
async: !1,
|
|
188
250
|
wrapped: e,
|
|
189
251
|
default: r,
|
|
190
252
|
get "~standard"() {
|
|
191
|
-
return /* @__PURE__ */
|
|
253
|
+
return /* @__PURE__ */ g(this);
|
|
192
254
|
},
|
|
193
255
|
"~run"(t, n) {
|
|
194
|
-
return t.value === void 0 && (this.default !== void 0 && (t.value = /* @__PURE__ */
|
|
256
|
+
return t.value === void 0 && (this.default !== void 0 && (t.value = /* @__PURE__ */ N(this, t, n)), t.value === void 0) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
|
|
195
257
|
}
|
|
196
258
|
};
|
|
197
259
|
}
|
|
198
260
|
// @__NO_SIDE_EFFECTS__
|
|
199
|
-
function
|
|
261
|
+
function M(e, r, t) {
|
|
262
|
+
return {
|
|
263
|
+
kind: "schema",
|
|
264
|
+
type: "record",
|
|
265
|
+
reference: M,
|
|
266
|
+
expects: "Object",
|
|
267
|
+
async: !1,
|
|
268
|
+
key: e,
|
|
269
|
+
value: r,
|
|
270
|
+
message: t,
|
|
271
|
+
get "~standard"() {
|
|
272
|
+
return /* @__PURE__ */ g(this);
|
|
273
|
+
},
|
|
274
|
+
"~run"(n, o) {
|
|
275
|
+
const s = n.value;
|
|
276
|
+
if (s && typeof s == "object") {
|
|
277
|
+
n.typed = !0, n.value = {};
|
|
278
|
+
for (const i in s) if (/* @__PURE__ */ z(s, i)) {
|
|
279
|
+
const c = s[i], a = this.key["~run"]({ value: i }, o);
|
|
280
|
+
if (a.issues) {
|
|
281
|
+
const p = {
|
|
282
|
+
type: "object",
|
|
283
|
+
origin: "key",
|
|
284
|
+
input: s,
|
|
285
|
+
key: i,
|
|
286
|
+
value: c
|
|
287
|
+
};
|
|
288
|
+
for (const x of a.issues)
|
|
289
|
+
x.path = [p], n.issues?.push(x);
|
|
290
|
+
if (n.issues || (n.issues = a.issues), o.abortEarly) {
|
|
291
|
+
n.typed = !1;
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const u = this.value["~run"]({ value: c }, o);
|
|
296
|
+
if (u.issues) {
|
|
297
|
+
const p = {
|
|
298
|
+
type: "object",
|
|
299
|
+
origin: "value",
|
|
300
|
+
input: s,
|
|
301
|
+
key: i,
|
|
302
|
+
value: c
|
|
303
|
+
};
|
|
304
|
+
for (const x of u.issues)
|
|
305
|
+
x.path ? x.path.unshift(p) : x.path = [p], n.issues?.push(x);
|
|
306
|
+
if (n.issues || (n.issues = u.issues), o.abortEarly) {
|
|
307
|
+
n.typed = !1;
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
(!a.typed || !u.typed) && (n.typed = !1), a.typed && (n.value[a.value] = u.value);
|
|
312
|
+
}
|
|
313
|
+
} else y(this, "type", n, o);
|
|
314
|
+
return n;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
// @__NO_SIDE_EFFECTS__
|
|
319
|
+
function l(e) {
|
|
200
320
|
return {
|
|
201
321
|
kind: "schema",
|
|
202
322
|
type: "string",
|
|
203
|
-
reference:
|
|
323
|
+
reference: l,
|
|
204
324
|
expects: "string",
|
|
205
325
|
async: !1,
|
|
206
326
|
message: e,
|
|
207
327
|
get "~standard"() {
|
|
208
|
-
return /* @__PURE__ */
|
|
328
|
+
return /* @__PURE__ */ g(this);
|
|
209
329
|
},
|
|
210
330
|
"~run"(r, t) {
|
|
211
|
-
return typeof r.value == "string" ? r.typed = !0 :
|
|
331
|
+
return typeof r.value == "string" ? r.typed = !0 : y(this, "type", r, t), r;
|
|
212
332
|
}
|
|
213
333
|
};
|
|
214
334
|
}
|
|
215
335
|
// @__NO_SIDE_EFFECTS__
|
|
216
|
-
function
|
|
336
|
+
function T(e) {
|
|
217
337
|
let r;
|
|
218
338
|
if (e) for (const t of e) r ? r.push(...t.issues) : r = t.issues;
|
|
219
339
|
return r;
|
|
220
340
|
}
|
|
221
341
|
// @__NO_SIDE_EFFECTS__
|
|
222
|
-
function
|
|
342
|
+
function _(e, r) {
|
|
223
343
|
return {
|
|
224
344
|
kind: "schema",
|
|
225
345
|
type: "union",
|
|
226
|
-
reference:
|
|
227
|
-
expects: /* @__PURE__ */
|
|
346
|
+
reference: _,
|
|
347
|
+
expects: /* @__PURE__ */ J(e.map((t) => t.expects), "|"),
|
|
228
348
|
async: !1,
|
|
229
349
|
options: e,
|
|
230
350
|
message: r,
|
|
231
351
|
get "~standard"() {
|
|
232
|
-
return /* @__PURE__ */
|
|
352
|
+
return /* @__PURE__ */ g(this);
|
|
233
353
|
},
|
|
234
354
|
"~run"(t, n) {
|
|
235
355
|
let o, s, i;
|
|
236
|
-
for (const
|
|
237
|
-
const a =
|
|
356
|
+
for (const c of this.options) {
|
|
357
|
+
const a = c["~run"]({ value: t.value }, n);
|
|
238
358
|
if (a.typed) if (a.issues) s ? s.push(a) : s = [a];
|
|
239
359
|
else {
|
|
240
360
|
o = a;
|
|
@@ -245,21 +365,26 @@ function M(e, r) {
|
|
|
245
365
|
if (o) return o;
|
|
246
366
|
if (s) {
|
|
247
367
|
if (s.length === 1) return s[0];
|
|
248
|
-
|
|
368
|
+
y(this, "type", t, n, { issues: /* @__PURE__ */ T(s) }), t.typed = !0;
|
|
249
369
|
} else {
|
|
250
370
|
if (i?.length === 1) return i[0];
|
|
251
|
-
|
|
371
|
+
y(this, "type", t, n, { issues: /* @__PURE__ */ T(i) });
|
|
252
372
|
}
|
|
253
373
|
return t;
|
|
254
374
|
}
|
|
255
375
|
};
|
|
256
376
|
}
|
|
257
|
-
const
|
|
258
|
-
"en-au": /* @__PURE__ */
|
|
259
|
-
"en-gb": /* @__PURE__ */
|
|
260
|
-
"en-us": /* @__PURE__ */
|
|
261
|
-
"es-es": /* @__PURE__ */
|
|
262
|
-
}),
|
|
377
|
+
const h = (e) => /* @__PURE__ */ _(e.map((r) => /* @__PURE__ */ k(r))), Q = /* @__PURE__ */ m({
|
|
378
|
+
"en-au": /* @__PURE__ */ l(),
|
|
379
|
+
"en-gb": /* @__PURE__ */ l(),
|
|
380
|
+
"en-us": /* @__PURE__ */ l(),
|
|
381
|
+
"es-es": /* @__PURE__ */ l()
|
|
382
|
+
}), D = /* @__PURE__ */ m({
|
|
383
|
+
"en-au": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
384
|
+
"en-gb": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
385
|
+
"en-us": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
386
|
+
"es-es": /* @__PURE__ */ f(/* @__PURE__ */ l())
|
|
387
|
+
}), Y = h(["amber", "green", "red", "other"]), Z = h([
|
|
263
388
|
"alpha",
|
|
264
389
|
"beta",
|
|
265
390
|
"generalAvailability",
|
|
@@ -269,7 +394,7 @@ const f = (e) => /* @__PURE__ */ M(e.map((r) => /* @__PURE__ */ C(r))), O = /* @
|
|
|
269
394
|
"releaseCandidate",
|
|
270
395
|
"unavailable",
|
|
271
396
|
"underReview"
|
|
272
|
-
]),
|
|
397
|
+
]), ee = h([
|
|
273
398
|
"app",
|
|
274
399
|
"connector",
|
|
275
400
|
"connectorConnection",
|
|
@@ -294,25 +419,36 @@ const f = (e) => /* @__PURE__ */ M(e.map((r) => /* @__PURE__ */ C(r))), O = /* @
|
|
|
294
419
|
"presenterPresentation",
|
|
295
420
|
"tool"
|
|
296
421
|
]);
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
id: /* @__PURE__ */
|
|
300
|
-
color:
|
|
301
|
-
label: /* @__PURE__ */
|
|
302
|
-
}),
|
|
303
|
-
id: /* @__PURE__ */
|
|
304
|
-
label:
|
|
305
|
-
description:
|
|
306
|
-
firstCreatedAt: /* @__PURE__ */
|
|
307
|
-
icon: /* @__PURE__ */
|
|
308
|
-
iconDark: /* @__PURE__ */
|
|
309
|
-
lastUpdatedAt: /* @__PURE__ */
|
|
310
|
-
status: /* @__PURE__ */
|
|
311
|
-
statusId:
|
|
312
|
-
},
|
|
313
|
-
...
|
|
314
|
-
typeId:
|
|
315
|
-
}),
|
|
422
|
+
h(["app", "engine", "connector", "context", "presenter", "tool"]);
|
|
423
|
+
const te = /* @__PURE__ */ m({
|
|
424
|
+
id: /* @__PURE__ */ l(),
|
|
425
|
+
color: Y,
|
|
426
|
+
label: /* @__PURE__ */ l()
|
|
427
|
+
}), j = {
|
|
428
|
+
id: /* @__PURE__ */ l(),
|
|
429
|
+
label: D,
|
|
430
|
+
description: D,
|
|
431
|
+
firstCreatedAt: /* @__PURE__ */ f(/* @__PURE__ */ S()),
|
|
432
|
+
icon: /* @__PURE__ */ b(/* @__PURE__ */ l()),
|
|
433
|
+
iconDark: /* @__PURE__ */ b(/* @__PURE__ */ l()),
|
|
434
|
+
lastUpdatedAt: /* @__PURE__ */ b(/* @__PURE__ */ S()),
|
|
435
|
+
status: /* @__PURE__ */ b(te),
|
|
436
|
+
statusId: Z
|
|
437
|
+
}, ye = /* @__PURE__ */ m({
|
|
438
|
+
...j,
|
|
439
|
+
typeId: ee
|
|
440
|
+
}), A = {
|
|
441
|
+
...j,
|
|
442
|
+
version: /* @__PURE__ */ l()
|
|
443
|
+
}, U = /* @__PURE__ */ m({
|
|
444
|
+
id: /* @__PURE__ */ l(),
|
|
445
|
+
label: D,
|
|
446
|
+
description: D,
|
|
447
|
+
icon: /* @__PURE__ */ b(/* @__PURE__ */ l()),
|
|
448
|
+
iconDark: /* @__PURE__ */ b(/* @__PURE__ */ l()),
|
|
449
|
+
order: /* @__PURE__ */ S(),
|
|
450
|
+
path: /* @__PURE__ */ l()
|
|
451
|
+
}), re = [
|
|
316
452
|
{ id: "alpha", color: "red", label: { "en-gb": "alpha" } },
|
|
317
453
|
{ id: "beta", color: "amber", label: { "en-gb": "beta" } },
|
|
318
454
|
{ id: "generalAvailability", color: "green", label: { "en-gb": "" } },
|
|
@@ -322,12 +458,10 @@ const X = /* @__PURE__ */ S({
|
|
|
322
458
|
{ id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
|
|
323
459
|
{ id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
|
|
324
460
|
{ id: "underReview", color: "other", label: { "en-gb": "under-review" } }
|
|
325
|
-
],
|
|
326
|
-
const t =
|
|
327
|
-
return t ? { ...t, label: t.label[r] || t.label[
|
|
328
|
-
}
|
|
329
|
-
f(["application", "curatedDataset", "database", "fileStore"]);
|
|
330
|
-
f([
|
|
461
|
+
], ge = (e, r = E) => {
|
|
462
|
+
const t = re.find((n) => n.id === e);
|
|
463
|
+
return t ? { ...t, label: t.label[r] || t.label[E] || e } : { id: e, color: "other", label: e };
|
|
464
|
+
}, ne = h(["application", "curatedDataset", "database", "fileStore"]), oe = h([
|
|
331
465
|
"abortOperation",
|
|
332
466
|
"authenticateConnection",
|
|
333
467
|
"createObject",
|
|
@@ -340,80 +474,114 @@ f([
|
|
|
340
474
|
"removeRecords",
|
|
341
475
|
"retrieveRecords",
|
|
342
476
|
"upsertRecords"
|
|
343
|
-
])
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
477
|
+
]), se = h(["bidirectional", "destination", "source", "unknown"]), ie = h(["apiKey", "disabled", "oAuth2", "none"]), ae = /* @__PURE__ */ m({
|
|
478
|
+
id: /* @__PURE__ */ l(),
|
|
479
|
+
label: /* @__PURE__ */ l()
|
|
480
|
+
}), le = /* @__PURE__ */ m({
|
|
481
|
+
authMethodId: ie,
|
|
482
|
+
activeConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ S()),
|
|
483
|
+
canDescribe: /* @__PURE__ */ f(/* @__PURE__ */ $()),
|
|
484
|
+
id: /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
485
|
+
label: /* @__PURE__ */ f(Q),
|
|
486
|
+
maxConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ S()),
|
|
487
|
+
params: /* @__PURE__ */ f(/* @__PURE__ */ v(/* @__PURE__ */ M(/* @__PURE__ */ l(), /* @__PURE__ */ l())))
|
|
488
|
+
}), he = /* @__PURE__ */ m({
|
|
489
|
+
...A,
|
|
490
|
+
typeId: /* @__PURE__ */ k("connector"),
|
|
491
|
+
category: /* @__PURE__ */ b(ae),
|
|
492
|
+
categoryId: ne,
|
|
493
|
+
implementations: /* @__PURE__ */ M(/* @__PURE__ */ l(), le),
|
|
494
|
+
operations: /* @__PURE__ */ v(oe),
|
|
495
|
+
usageId: se,
|
|
496
|
+
vendorAccountURL: /* @__PURE__ */ b(/* @__PURE__ */ l()),
|
|
497
|
+
vendorDocumentationURL: /* @__PURE__ */ b(/* @__PURE__ */ l()),
|
|
498
|
+
vendorHomeURL: /* @__PURE__ */ b(/* @__PURE__ */ l())
|
|
499
|
+
}), ve = ["createObject", "dropObject", "removeRecords", "upsertRecords"], Ee = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], ce = h(["list"]), ue = /* @__PURE__ */ m({
|
|
500
|
+
...j,
|
|
501
|
+
typeId: /* @__PURE__ */ k("contextModelGroup"),
|
|
502
|
+
modelRefs: /* @__PURE__ */ v(U),
|
|
503
|
+
order: /* @__PURE__ */ S()
|
|
504
|
+
}), xe = /* @__PURE__ */ m({
|
|
505
|
+
...A,
|
|
506
|
+
typeId: /* @__PURE__ */ k("context"),
|
|
507
|
+
models: /* @__PURE__ */ v(ue),
|
|
508
|
+
operations: /* @__PURE__ */ v(ce)
|
|
509
|
+
}), pe = h(["list", "render", "setColorMode"]), Se = /* @__PURE__ */ m({
|
|
510
|
+
...A,
|
|
511
|
+
typeId: /* @__PURE__ */ k("presenter"),
|
|
512
|
+
presentations: /* @__PURE__ */ v(U),
|
|
513
|
+
operations: /* @__PURE__ */ v(pe)
|
|
514
|
+
});
|
|
515
|
+
function ke() {
|
|
348
516
|
function e(r, t, n) {
|
|
349
517
|
n.textContent = "Cytoscape.js diagram goes here...";
|
|
350
518
|
}
|
|
351
519
|
return { render: e };
|
|
352
520
|
}
|
|
353
|
-
function
|
|
521
|
+
function Ie() {
|
|
354
522
|
function e(r, t) {
|
|
355
523
|
console.log(1111, r), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
|
|
356
524
|
}
|
|
357
525
|
return { render: e };
|
|
358
526
|
}
|
|
359
|
-
const
|
|
360
|
-
class
|
|
527
|
+
const De = 0, we = (e) => e, Ce = () => Date.now();
|
|
528
|
+
class R extends Error {
|
|
361
529
|
locator;
|
|
362
530
|
constructor(r, t, n) {
|
|
363
531
|
super(r, n), this.name = "DataPosError", this.locator = t, Error.captureStackTrace?.(this, new.target);
|
|
364
532
|
}
|
|
365
533
|
}
|
|
366
|
-
class
|
|
534
|
+
class I extends R {
|
|
367
535
|
constructor(r, t, n) {
|
|
368
536
|
super(r, t, n), this.name = "ApplicationError";
|
|
369
537
|
}
|
|
370
538
|
}
|
|
371
|
-
class
|
|
539
|
+
class Oe extends I {
|
|
372
540
|
constructor(r, t, n) {
|
|
373
541
|
super(r, t, n), this.name = "APIError";
|
|
374
542
|
}
|
|
375
543
|
}
|
|
376
|
-
class
|
|
544
|
+
class Ne extends I {
|
|
377
545
|
constructor(r, t, n) {
|
|
378
546
|
super(r, t, n), this.name = "EngineError";
|
|
379
547
|
}
|
|
380
548
|
}
|
|
381
|
-
class
|
|
549
|
+
class G extends I {
|
|
382
550
|
body;
|
|
383
551
|
constructor(r, t, n, o) {
|
|
384
552
|
super(r, t, o), this.name = "FetchError", this.body = n;
|
|
385
553
|
}
|
|
386
554
|
}
|
|
387
|
-
class
|
|
555
|
+
class fe extends I {
|
|
388
556
|
componentName;
|
|
389
557
|
info;
|
|
390
558
|
constructor(r, t, n, o, s) {
|
|
391
559
|
super(r, t, s), this.name = "VueHandledError", this.info = n, this.componentName = o;
|
|
392
560
|
}
|
|
393
561
|
}
|
|
394
|
-
class
|
|
562
|
+
class Me extends I {
|
|
395
563
|
constructor(r, t, n) {
|
|
396
564
|
super(r, t, n), this.name = "WindowHandledRuntimeError";
|
|
397
565
|
}
|
|
398
566
|
}
|
|
399
|
-
class
|
|
567
|
+
class je extends I {
|
|
400
568
|
constructor(r, t, n) {
|
|
401
569
|
super(r, t, n), this.name = "WindowHandledPromiseRejectionError";
|
|
402
570
|
}
|
|
403
571
|
}
|
|
404
|
-
class
|
|
572
|
+
class Ae extends R {
|
|
405
573
|
constructor(r, t, n) {
|
|
406
574
|
super(r, t, n), this.name = "OperationalError";
|
|
407
575
|
}
|
|
408
576
|
}
|
|
409
|
-
async function
|
|
577
|
+
async function Re(e, r, t) {
|
|
410
578
|
const n = `${r} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
|
|
411
|
-
return new
|
|
579
|
+
return new G(n, t, o);
|
|
412
580
|
}
|
|
413
|
-
function
|
|
581
|
+
function Te(e) {
|
|
414
582
|
return e.map((r) => r.message).join(" ");
|
|
415
583
|
}
|
|
416
|
-
function
|
|
584
|
+
function Fe(e) {
|
|
417
585
|
if (e instanceof Error) return e;
|
|
418
586
|
if (typeof e == "string") return new Error(e);
|
|
419
587
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return new Error(String(e));
|
|
@@ -426,17 +594,17 @@ function be(e) {
|
|
|
426
594
|
}
|
|
427
595
|
return new Error("Unknown error");
|
|
428
596
|
}
|
|
429
|
-
function
|
|
597
|
+
function $e(e) {
|
|
430
598
|
const r = /* @__PURE__ */ new Set(), t = [];
|
|
431
599
|
let n = e;
|
|
432
600
|
for (; n && !r.has(n); ) {
|
|
433
601
|
r.add(n);
|
|
434
602
|
let o;
|
|
435
|
-
if (n instanceof
|
|
603
|
+
if (n instanceof G)
|
|
436
604
|
o = { body: n.body, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
437
|
-
else if (n instanceof
|
|
605
|
+
else if (n instanceof fe)
|
|
438
606
|
o = { componentName: n.componentName, info: n.info, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
439
|
-
else if (n instanceof
|
|
607
|
+
else if (n instanceof R)
|
|
440
608
|
o = { locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
441
609
|
else if (n instanceof Error) {
|
|
442
610
|
const s = n;
|
|
@@ -446,8 +614,8 @@ function ge(e) {
|
|
|
446
614
|
}
|
|
447
615
|
return t;
|
|
448
616
|
}
|
|
449
|
-
const
|
|
450
|
-
function
|
|
617
|
+
const B = "en-US", w = {};
|
|
618
|
+
function _e(e) {
|
|
451
619
|
switch (e) {
|
|
452
620
|
case "Edm.Binary":
|
|
453
621
|
return "unknown";
|
|
@@ -487,22 +655,22 @@ function ye(e) {
|
|
|
487
655
|
return "unknown";
|
|
488
656
|
}
|
|
489
657
|
}
|
|
490
|
-
function
|
|
658
|
+
function Ue(e) {
|
|
491
659
|
if (e) {
|
|
492
660
|
const r = e.lastIndexOf("/"), t = e.lastIndexOf(".", r > -1 ? r : e.length);
|
|
493
661
|
return t > -1 ? e.substring(0, t) : e;
|
|
494
662
|
}
|
|
495
663
|
}
|
|
496
|
-
function
|
|
664
|
+
function Ge(e) {
|
|
497
665
|
if (e) {
|
|
498
666
|
const r = e.lastIndexOf(".");
|
|
499
667
|
if (r > -1) return e.substring(r + 1);
|
|
500
668
|
}
|
|
501
669
|
}
|
|
502
|
-
function
|
|
670
|
+
function d(e, r = 2, t = r, n = B) {
|
|
503
671
|
if (e == null) return "";
|
|
504
672
|
const o = `${n}decimal${r}.${t}`;
|
|
505
|
-
let s =
|
|
673
|
+
let s = w[o];
|
|
506
674
|
return s || (s = new Intl.NumberFormat(n, {
|
|
507
675
|
localeMatcher: "best fit",
|
|
508
676
|
maximumFractionDigits: r,
|
|
@@ -510,21 +678,21 @@ function l(e, r = 2, t = r, n = A) {
|
|
|
510
678
|
minimumIntegerDigits: 1,
|
|
511
679
|
style: "decimal",
|
|
512
680
|
useGrouping: !0
|
|
513
|
-
}),
|
|
681
|
+
}), w[o] = s), s.format(e);
|
|
514
682
|
}
|
|
515
|
-
function
|
|
516
|
-
return e == null ? "" : e < 1e3 ?
|
|
683
|
+
function Be(e) {
|
|
684
|
+
return e == null ? "" : e < 1e3 ? C(e) : e < 1e6 ? `${d(e / 1e3, 2, 0)}K` : e < 1e9 ? `${d(e / 1e6, 2, 0)}M` : e < 1e12 ? `${d(e / 1e9, 2, 0)}B` : `${d(e / 1e12, 2, 0)}T`;
|
|
517
685
|
}
|
|
518
|
-
function
|
|
519
|
-
return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${
|
|
686
|
+
function Le(e) {
|
|
687
|
+
return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${C(e)} bytes` : e < 1048576 ? `${d(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${d(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${d(e / 1073741824, 2, 0)} GB` : `${d(e / 1099511627776, 2, 0)} TB`;
|
|
520
688
|
}
|
|
521
|
-
function
|
|
522
|
-
return e == null ? "" : e < 1e3 ? `${
|
|
689
|
+
function Pe(e) {
|
|
690
|
+
return e == null ? "" : e < 1e3 ? `${C(e)} ms` : e === 1e3 ? `${C(e)} sec` : e < 6e4 ? `${d(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${d(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${d(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${d(e / 864e5, 2, 0)} days`;
|
|
523
691
|
}
|
|
524
|
-
function
|
|
692
|
+
function C(e, r = B) {
|
|
525
693
|
if (e == null) return "";
|
|
526
694
|
const t = `${r}decimal0.0`;
|
|
527
|
-
let n =
|
|
695
|
+
let n = w[t];
|
|
528
696
|
return n || (n = new Intl.NumberFormat(r, {
|
|
529
697
|
localeMatcher: "best fit",
|
|
530
698
|
maximumFractionDigits: 0,
|
|
@@ -532,9 +700,9 @@ function x(e, r = A) {
|
|
|
532
700
|
minimumIntegerDigits: 1,
|
|
533
701
|
style: "decimal",
|
|
534
702
|
useGrouping: !0
|
|
535
|
-
}),
|
|
703
|
+
}), w[t] = n), n.format(e);
|
|
536
704
|
}
|
|
537
|
-
function
|
|
705
|
+
function Ve(e) {
|
|
538
706
|
switch (e) {
|
|
539
707
|
case "csv":
|
|
540
708
|
return "text/csv";
|
|
@@ -549,7 +717,7 @@ function we(e) {
|
|
|
549
717
|
return "application/octet-stream";
|
|
550
718
|
}
|
|
551
719
|
}
|
|
552
|
-
const
|
|
720
|
+
const de = [
|
|
553
721
|
{ id: "dtv", label: { "en-gb": "Delimited Text" } },
|
|
554
722
|
{ id: "e/e", label: { "en-gb": "Entity/Event" } },
|
|
555
723
|
{ id: "jsonArray", label: { "en-gb": "JSON Array" } },
|
|
@@ -557,22 +725,22 @@ const q = [
|
|
|
557
725
|
{ id: "xls", label: { "en-gb": "XLS" } },
|
|
558
726
|
{ id: "xlsx", label: { "en-gb": "XLSX" } },
|
|
559
727
|
{ id: "xml", label: { "en-gb": "XML" } }
|
|
560
|
-
],
|
|
728
|
+
], He = (e = E) => {
|
|
561
729
|
const r = [];
|
|
562
|
-
for (const t of
|
|
730
|
+
for (const t of de) r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
|
|
563
731
|
return r;
|
|
564
|
-
},
|
|
732
|
+
}, me = [
|
|
565
733
|
{ id: `
|
|
566
734
|
`, label: { "en-gb": "Newline" } },
|
|
567
735
|
{ id: "\r", label: { "en-gb": "Carriage Return" } },
|
|
568
736
|
{ id: `\r
|
|
569
737
|
`, label: { "en-gb": "Carriage Return/Newline" } }
|
|
570
|
-
],
|
|
738
|
+
], Ke = (e = E) => {
|
|
571
739
|
const r = [];
|
|
572
|
-
for (const t of
|
|
573
|
-
r.push({ ...t, label: t.label[e] || t.label[
|
|
740
|
+
for (const t of me)
|
|
741
|
+
r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
|
|
574
742
|
return r;
|
|
575
|
-
},
|
|
743
|
+
}, be = [
|
|
576
744
|
{ id: ":", label: { "en-gb": "Colon" } },
|
|
577
745
|
{ id: ",", label: { "en-gb": "Comma" } },
|
|
578
746
|
{ id: "!", label: { "en-gb": "Exclamation Mark" } },
|
|
@@ -584,45 +752,48 @@ const q = [
|
|
|
584
752
|
{ id: "_", label: { "en-gb": "Underscore" } },
|
|
585
753
|
{ id: "0x1F", label: { "en-gb": "Unit Separator" } },
|
|
586
754
|
{ id: "|", label: { "en-gb": "Vertical Bar" } }
|
|
587
|
-
],
|
|
755
|
+
], We = (e = E) => {
|
|
588
756
|
const r = [];
|
|
589
|
-
for (const t of
|
|
590
|
-
r.push({ ...t, label: t.label[e] || t.label[
|
|
757
|
+
for (const t of be)
|
|
758
|
+
r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
|
|
591
759
|
return r;
|
|
592
|
-
},
|
|
760
|
+
}, E = "en-gb";
|
|
593
761
|
export {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
762
|
+
Oe as APIError,
|
|
763
|
+
I as ApplicationError,
|
|
764
|
+
ve as CONNECTOR_DESTINATION_OPERATIONS,
|
|
765
|
+
Ee as CONNECTOR_SOURCE_OPERATIONS,
|
|
766
|
+
E as DEFAULT_LOCALE_CODE,
|
|
767
|
+
De as DefaultTimestamp,
|
|
768
|
+
Ne as EngineError,
|
|
769
|
+
G as FetchError,
|
|
770
|
+
Ae as OperationalError,
|
|
771
|
+
fe as VueError,
|
|
772
|
+
je as WindowPromiseRejectionError,
|
|
773
|
+
Me as WindowRuntimeError,
|
|
774
|
+
Re as buildFetchError,
|
|
775
|
+
ye as componentConfigSchema,
|
|
776
|
+
Te as concatenateSerialisedErrorMessages,
|
|
777
|
+
he as connectorConfigSchema,
|
|
778
|
+
xe as contextConfigSchema,
|
|
779
|
+
we as convertMillisecondsToTimestamp,
|
|
780
|
+
_e as convertODataTypeIdToUsageTypeId,
|
|
781
|
+
Ge as extractExtensionFromPath,
|
|
782
|
+
Ue as extractNameFromPath,
|
|
783
|
+
d as formatNumberAsDecimalNumber,
|
|
784
|
+
Pe as formatNumberAsDuration,
|
|
785
|
+
Be as formatNumberAsSize,
|
|
786
|
+
Le as formatNumberAsStorageSize,
|
|
787
|
+
C as formatNumberAsWholeNumber,
|
|
788
|
+
ge as getComponentStatus,
|
|
789
|
+
Ce as getCurrentTimestamp,
|
|
790
|
+
He as getDataFormats,
|
|
791
|
+
Ke as getRecordDelimiters,
|
|
792
|
+
We as getValueDelimiters,
|
|
793
|
+
Ve as lookupMimeTypeForExtension,
|
|
794
|
+
Fe as normalizeToError,
|
|
795
|
+
Se as presenterConfigSchema,
|
|
796
|
+
$e as serialiseError,
|
|
797
|
+
ke as useCytoscapeJS,
|
|
798
|
+
Ie as useDataTable
|
|
628
799
|
};
|
|
@@ -138,8 +138,8 @@ export declare const componentRefSchema: import('valibot').ObjectSchema<{
|
|
|
138
138
|
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
139
139
|
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
140
140
|
}, undefined>;
|
|
141
|
-
readonly icon: import('valibot').
|
|
142
|
-
readonly iconDark: import('valibot').
|
|
141
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
142
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
143
143
|
readonly order: import('valibot').NumberSchema<undefined>;
|
|
144
144
|
readonly path: import('valibot').StringSchema<undefined>;
|
|
145
145
|
}, undefined>;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { parse as csvParse } from 'csv-parse/browser/esm';
|
|
2
2
|
import { parse as dateFnsParse } from 'date-fns';
|
|
3
|
+
import { InferInput } from 'valibot';
|
|
3
4
|
import { nanoid } from 'nanoid';
|
|
5
|
+
import { connectorConfigSchema } from './connectorConfig.schema';
|
|
4
6
|
import { buildFetchError, OperationalError } from '../../errors';
|
|
5
7
|
import { Component, ModuleConfig } from '..';
|
|
6
8
|
import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
7
9
|
import { convertMillisecondsToTimestamp, LocalisedString } from '../../index';
|
|
8
10
|
import { DataViewContentAuditConfig, ValueDelimiterId } from '../dataView';
|
|
9
11
|
import { extractExtensionFromPath, extractNameFromPath, lookupMimeTypeForExtension } from '../../utilities';
|
|
10
|
-
/**
|
|
11
|
-
* Connector composables, constants, errors, types/interfaces and utilities.
|
|
12
|
-
*/
|
|
13
|
-
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
14
12
|
type ConnectorModuleCategoryId = 'application' | 'curatedDataset' | 'database' | 'fileStore';
|
|
15
13
|
export type ConnectorOperation = 'abortOperation' | 'authenticateConnection' | 'createObject' | 'describeConnection' | 'dropObject' | 'findObject' | 'getRecord' | 'listNodes' | 'previewObject' | 'removeRecords' | 'retrieveRecords' | 'upsertRecords';
|
|
16
14
|
export type ConnectorUsageId = 'bidirectional' | 'destination' | 'source' | 'unknown';
|
|
@@ -34,7 +32,9 @@ export interface Connector extends Component {
|
|
|
34
32
|
retrieveRecords?(connector: Connector, settings: RetrieveSettings, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveSummary) => void): Promise<void>;
|
|
35
33
|
upsertRecords?(connector: Connector, settings: UpsertSettings): Promise<void>;
|
|
36
34
|
}
|
|
37
|
-
export
|
|
35
|
+
export { connectorConfigSchema };
|
|
36
|
+
export type ConnectorConfig = InferInput<typeof connectorConfigSchema>;
|
|
37
|
+
export interface ConnectorConfig1 extends ModuleConfig {
|
|
38
38
|
category: ConnectorCategory | null;
|
|
39
39
|
categoryId: ConnectorModuleCategoryId;
|
|
40
40
|
implementations: Record<string, ConnectorImplementation>;
|
|
@@ -16,8 +16,8 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
|
16
16
|
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
17
17
|
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
18
|
}, undefined>;
|
|
19
|
-
readonly icon: import('valibot').
|
|
20
|
-
readonly iconDark: import('valibot').
|
|
19
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
21
21
|
readonly order: import('valibot').NumberSchema<undefined>;
|
|
22
22
|
readonly path: import('valibot').StringSchema<undefined>;
|
|
23
23
|
}, undefined>, undefined>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import { InferInput } from 'valibot';
|
|
2
|
+
import { contextConfigSchema } from './contextConfig.schema';
|
|
1
3
|
import { LocalisedString } from '../../index';
|
|
2
4
|
import { Component, ComponentConfig, ComponentRef, ModuleConfig } from '..';
|
|
3
|
-
/**
|
|
4
|
-
* Context composables, constants, errors, types/interfaces and utilities.
|
|
5
|
-
*/
|
|
6
|
-
export { contextConfigSchema } from './contextConfig.schema';
|
|
7
5
|
export interface Context extends Component {
|
|
8
6
|
readonly config: ContextConfig;
|
|
9
7
|
list(settings?: ContextListSettings): Promise<ContextListResult>;
|
|
@@ -17,7 +15,9 @@ export type ContextCallbackData = {
|
|
|
17
15
|
typeId: string;
|
|
18
16
|
properties: Record<string, unknown>;
|
|
19
17
|
};
|
|
20
|
-
export
|
|
18
|
+
export { contextConfigSchema };
|
|
19
|
+
export type ContextConfig = InferInput<typeof contextConfigSchema>;
|
|
20
|
+
export interface ContextConfig1 extends ModuleConfig {
|
|
21
21
|
models: ContextModelGroupConfig[];
|
|
22
22
|
operations: ContextOperation[];
|
|
23
23
|
typeId: 'context';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { InferInput } from 'valibot';
|
|
2
2
|
import { componentConfigSchema } from './componentConfig.schema';
|
|
3
3
|
import { LocaleCode, LocalisedString, StatusColorId } from '../index';
|
|
4
|
-
export { componentConfigSchema };
|
|
5
|
-
export type ComponentConfig2 = InferInput<typeof componentConfigSchema>;
|
|
6
4
|
export interface Component {
|
|
7
5
|
readonly config: ComponentConfig;
|
|
8
6
|
}
|
|
9
|
-
export
|
|
7
|
+
export { componentConfigSchema };
|
|
8
|
+
export type ComponentConfig = InferInput<typeof componentConfigSchema>;
|
|
9
|
+
export interface ComponentConfig1 {
|
|
10
10
|
id: string;
|
|
11
11
|
label: Partial<LocalisedString>;
|
|
12
12
|
description: Partial<LocalisedString>;
|
|
@@ -22,8 +22,8 @@ export type ComponentRef = {
|
|
|
22
22
|
id: string;
|
|
23
23
|
label: Partial<LocalisedString>;
|
|
24
24
|
description: Partial<LocalisedString>;
|
|
25
|
-
icon
|
|
26
|
-
iconDark
|
|
25
|
+
icon: string | null;
|
|
26
|
+
iconDark: string | null;
|
|
27
27
|
order: number;
|
|
28
28
|
path: string;
|
|
29
29
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
import { InferInput } from 'valibot';
|
|
1
2
|
import { ComponentConfig } from '..';
|
|
2
|
-
|
|
3
|
+
import { presenterConfigSchema } from './presenterConfig.schema';
|
|
4
|
+
export { presenterConfigSchema };
|
|
5
|
+
export type PresentationConfig = InferInput<typeof presenterConfigSchema>;
|
|
6
|
+
export interface PresentationConfig1 extends ComponentConfig {
|
|
3
7
|
content: string;
|
|
4
8
|
order: number;
|
|
5
9
|
}
|
|
@@ -14,8 +14,8 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
|
|
|
14
14
|
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
15
15
|
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
16
16
|
}, undefined>;
|
|
17
|
-
readonly icon: import('valibot').
|
|
18
|
-
readonly iconDark: import('valibot').
|
|
17
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
19
19
|
readonly order: import('valibot').NumberSchema<undefined>;
|
|
20
20
|
readonly path: import('valibot').StringSchema<undefined>;
|
|
21
21
|
}, undefined>, undefined>;
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
|
|
5
5
|
export type LocalisedString = Record<LocaleCode, string>;
|
|
6
6
|
export type StatusColorId = 'amber' | 'green' | 'red' | 'other';
|
|
7
|
+
export { componentConfigSchema } from './component';
|
|
7
8
|
export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId, ComponentTypeId, ModuleConfig, ModuleTypeId } from './component';
|
|
8
|
-
export {
|
|
9
|
+
export { connectorConfigSchema } from './component/connector';
|
|
9
10
|
export type { ConnectorOperation, ConnectorUsageId } from './component/connector';
|
|
10
11
|
export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './component/connector';
|
|
11
12
|
export type { AuditContentResult, AuditContentSettings } from './component/connector';
|
|
@@ -22,6 +23,7 @@ export type { RetrieveResult, RetrieveSettings, RetrieveSummary } from './compon
|
|
|
22
23
|
export type { UpsertSettings } from './component/connector';
|
|
23
24
|
export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './component/connector/connection';
|
|
24
25
|
export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './component/connector/connection';
|
|
26
|
+
export { contextConfigSchema } from './component/context';
|
|
25
27
|
export type { Context, ContextConfig, ContextLocalisedConfig, ContextListSettings, ContextListResult, ContextOperation, ContextCallbackData } from './component/context';
|
|
26
28
|
export type { ContextModelGroupConfig, ContextModelGroupLocalisedConfig, ContextModelConfig, ContextModelLocalisedConfig } from './component/context';
|
|
27
29
|
export type { ContextModelDimensionGroupConfig, ContextModelDimensionGroupLocalisedConfig, ContextModelDimensionConfig, ContextModelDimensionLocalisedConfig, ContextModelDimensionHierarchyConfig, ContextModelDimensionHierarchyLocalisedConfig } from './component/context';
|
|
@@ -36,6 +38,7 @@ export type { DimensionConfig, DimensionLocalisedConfig } from './component/dime
|
|
|
36
38
|
export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineConfig, EngineWorker, TestSettings } from './engine';
|
|
37
39
|
export type { SerialisedError } from './errors';
|
|
38
40
|
export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
|
|
41
|
+
export { presenterConfigSchema } from './component/presenter';
|
|
39
42
|
export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterOperation } from './component/presenter';
|
|
40
43
|
export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
|
|
41
44
|
export type { PresentationCategoryId, PresentationCartesianTypeId, PresentationPolarTypeId, PresentationRangeTypeId, PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianChartViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPeriodFlowBoundariesChartViewConfig, PresentationVisualPolarChartViewConfig, PresentationVisualRangeChartViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamGraphViewConfig, PresentationVisualValueTableViewConfig } from './component/presenter/presentation';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.314",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
@@ -34,11 +34,16 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@datapos/datapos-development": "^0.3.389",
|
|
37
|
+
"@datapos/eslint-config-datapos": "^1.0.18",
|
|
37
38
|
"@types/node": "^25.0.3",
|
|
38
39
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
39
40
|
"@typescript-eslint/parser": "^8.50.0",
|
|
40
41
|
"eslint": "^9.39.2",
|
|
42
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
41
43
|
"eslint-plugin-import": "^2.32.0",
|
|
44
|
+
"eslint-plugin-security": "^3.0.1",
|
|
45
|
+
"eslint-plugin-sonarjs": "^3.0.5",
|
|
46
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
42
47
|
"jiti": "^2.6.1",
|
|
43
48
|
"license-downloader": "^1.3.3",
|
|
44
49
|
"license-report": "^6.8.1",
|
|
@@ -49,6 +54,7 @@
|
|
|
49
54
|
"owasp-dependency-check": "^1.0.0",
|
|
50
55
|
"prettier": "^3.7.4",
|
|
51
56
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
57
|
+
"sonda": "^0.10.1",
|
|
52
58
|
"typescript": "^5.9.3",
|
|
53
59
|
"valibot": "^1.2.0",
|
|
54
60
|
"vite": "^7.3.0",
|