@datapos/datapos-shared 0.3.412 → 0.3.414
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-component.es.js +2 -2
- package/dist/datapos-shared-connector.es.js +24 -23
- package/dist/datapos-shared.es.js +90 -9
- package/dist/locale-CPeRw0Am.js +464 -0
- package/dist/moduleConfig.schema-ElDY1bZx.js +9 -0
- package/dist/types/src/component/connector/connectorConfig.schema.d.ts +18 -27
- package/dist/types/src/component/connector/index.d.ts +63 -64
- package/dist/types/src/component/context/index.d.ts +1 -1
- package/dist/types/src/component/dataView/index.d.ts +6 -6
- package/dist/types/src/component/index.d.ts +4 -3
- package/dist/types/src/errors/index.d.ts +1 -1
- package/dist/types/src/index.d.ts +0 -3
- package/dist/types/src/locale.d.ts +12 -0
- package/package.json +1 -1
- package/dist/index-5UsJyepS.js +0 -554
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as a } from "./
|
|
2
|
-
import { c as s } from "./
|
|
1
|
+
import { D as a } from "./locale-CPeRw0Am.js";
|
|
2
|
+
import { c as s } from "./locale-CPeRw0Am.js";
|
|
3
3
|
const n = [
|
|
4
4
|
{ id: "alpha", color: "red", labels: { "en-gb": "alpha" } },
|
|
5
5
|
{ id: "beta", color: "amber", labels: { "en-gb": "beta" } },
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { l as n, o as i, n as a,
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { l as n, o as i, n as a, b as d, r as b, d as C, s as e, e as o, f as s, g as p, h as g, p as u, D as l } from "./locale-CPeRw0Am.js";
|
|
2
|
+
import { m as h } from "./moduleConfig.schema-ElDY1bZx.js";
|
|
3
|
+
const S = n(["apiKey", "disabled", "oAuth2", "none"]), f = i({
|
|
4
|
+
authMethodId: S,
|
|
4
5
|
activeConnectionCount: o(s()),
|
|
5
|
-
canDescribe: o(
|
|
6
|
+
canDescribe: o(g()),
|
|
6
7
|
id: o(e()),
|
|
7
8
|
label: o(p),
|
|
8
9
|
maxConnectionCount: o(s()),
|
|
9
10
|
params: o(d(b(e(), e())))
|
|
10
|
-
}),
|
|
11
|
+
}), O = n(["application", "curatedDataset", "database", "fileStore"]), R = n([
|
|
11
12
|
"abortOperation",
|
|
12
13
|
"authenticateConnection",
|
|
13
14
|
"createObject",
|
|
@@ -22,34 +23,34 @@ const h = n(["apiKey", "disabled", "oAuth2", "none"]), S = i({
|
|
|
22
23
|
"retrieveChunks",
|
|
23
24
|
"retrieveRecords",
|
|
24
25
|
"upsertRecords"
|
|
25
|
-
]),
|
|
26
|
+
]), y = n(["bidirectional", "destination", "source", "unknown"]), D = i({
|
|
26
27
|
id: e(),
|
|
27
|
-
label:
|
|
28
|
-
}),
|
|
29
|
-
...
|
|
30
|
-
typeId:
|
|
31
|
-
category: a(
|
|
32
|
-
categoryId:
|
|
33
|
-
implementations: b(e(),
|
|
34
|
-
operations: d(
|
|
35
|
-
usageId:
|
|
28
|
+
label: u
|
|
29
|
+
}), L = i({
|
|
30
|
+
...h,
|
|
31
|
+
typeId: C("connector"),
|
|
32
|
+
category: a(D),
|
|
33
|
+
categoryId: O,
|
|
34
|
+
implementations: b(e(), f),
|
|
35
|
+
operations: d(R),
|
|
36
|
+
usageId: y,
|
|
36
37
|
vendorAccountURL: a(e()),
|
|
37
38
|
vendorDocumentationURL: a(e()),
|
|
38
39
|
vendorHomeURL: a(e())
|
|
39
40
|
}), I = [
|
|
40
|
-
{ id: "application",
|
|
41
|
-
{ id: "curatedDataset",
|
|
42
|
-
{ id: "database",
|
|
43
|
-
{ id: "fileStore",
|
|
44
|
-
],
|
|
41
|
+
{ id: "application", label: { "en-gb": "Application" } },
|
|
42
|
+
{ id: "curatedDataset", label: { "en-gb": "Curated Dataset" } },
|
|
43
|
+
{ id: "database", label: { "en-gb": "Database" } },
|
|
44
|
+
{ id: "fileStore", label: { "en-gb": "File Store" } }
|
|
45
|
+
], U = (c, m = l) => {
|
|
45
46
|
const t = I.find((r) => r.id === c);
|
|
46
47
|
if (t) {
|
|
47
|
-
const r = t.
|
|
48
|
+
const r = t.label[m] ?? t.label[l] ?? t.id;
|
|
48
49
|
return { id: t.id, label: r };
|
|
49
50
|
}
|
|
50
51
|
return { id: c, label: c };
|
|
51
52
|
};
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
L as connectorConfigSchema,
|
|
55
|
+
U as constructConnectorCategoryConfig
|
|
55
56
|
};
|
|
@@ -1,11 +1,92 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as d, o as a, b as s, d as i, f as m, a as p, i as b, D as r } from "./locale-CPeRw0Am.js";
|
|
2
|
+
import { m as g } from "./moduleConfig.schema-ElDY1bZx.js";
|
|
3
|
+
const u = d(["list"]), f = a({
|
|
4
|
+
...p,
|
|
5
|
+
typeId: i("contextModelGroup"),
|
|
6
|
+
modelRefs: s(b),
|
|
7
|
+
order: m()
|
|
8
|
+
}), E = a({
|
|
9
|
+
...g,
|
|
10
|
+
typeId: i("context"),
|
|
11
|
+
models: s(f),
|
|
12
|
+
operations: s(u)
|
|
13
|
+
}), C = d(["list", "render", "setColorMode"]), F = a({
|
|
14
|
+
...g,
|
|
15
|
+
typeId: i("presenter"),
|
|
16
|
+
presentations: s(b),
|
|
17
|
+
operations: s(C)
|
|
18
|
+
});
|
|
19
|
+
function M() {
|
|
20
|
+
return { render: S };
|
|
21
|
+
}
|
|
22
|
+
function S(t, o, n) {
|
|
23
|
+
n.textContent = "Cytoscape.js diagram goes here...";
|
|
24
|
+
}
|
|
25
|
+
function O() {
|
|
26
|
+
return { render: x };
|
|
27
|
+
}
|
|
28
|
+
function x(t, o) {
|
|
29
|
+
console.log(1111, t), console.log(2222, o), console.log(3333, o.childNodes), console.log(4444, o.children);
|
|
30
|
+
}
|
|
31
|
+
const e = (t) => new Map(Object.entries(t)), c = (t, o, n = r) => {
|
|
32
|
+
const l = t.get(o);
|
|
33
|
+
if (l !== void 0) return l;
|
|
34
|
+
if (n !== o)
|
|
35
|
+
return t.get(n);
|
|
36
|
+
}, h = [
|
|
37
|
+
{ id: "dtv", labels: e({ "en-gb": "Delimited Text" }) },
|
|
38
|
+
{ id: "e/e", labels: e({ "en-gb": "Entity/Event" }) },
|
|
39
|
+
{ id: "jsonArray", labels: e({ "en-gb": "JSON Array" }) },
|
|
40
|
+
{ id: "spss", labels: e({ "en-gb": "SPSS" }) },
|
|
41
|
+
{ id: "xls", labels: e({ "en-gb": "XLS" }) },
|
|
42
|
+
{ id: "xlsx", labels: e({ "en-gb": "XLSX" }) },
|
|
43
|
+
{ id: "xml", labels: e({ "en-gb": "XML" }) }
|
|
44
|
+
], R = (t = r) => {
|
|
45
|
+
const o = [];
|
|
46
|
+
for (const n of h) {
|
|
47
|
+
const l = c(n.labels, t);
|
|
48
|
+
o.push({ id: n.id, label: l ?? n.id });
|
|
49
|
+
}
|
|
50
|
+
return o;
|
|
51
|
+
}, D = [
|
|
52
|
+
{ id: `
|
|
53
|
+
`, labels: e({ "en-gb": "Newline" }) },
|
|
54
|
+
{ id: "\r", labels: e({ "en-gb": "Carriage Return" }) },
|
|
55
|
+
{ id: `\r
|
|
56
|
+
`, labels: e({ "en-gb": "Carriage Return/Newline" }) }
|
|
57
|
+
], T = (t = r) => {
|
|
58
|
+
const o = [];
|
|
59
|
+
for (const n of D) {
|
|
60
|
+
const l = c(n.labels, t);
|
|
61
|
+
o.push({ id: n.id, label: l ?? n.id });
|
|
62
|
+
}
|
|
63
|
+
return o;
|
|
64
|
+
}, L = [
|
|
65
|
+
{ id: ":", labels: e({ "en-gb": "Colon" }) },
|
|
66
|
+
{ id: ",", labels: e({ "en-gb": "Comma" }) },
|
|
67
|
+
{ id: "!", labels: e({ "en-gb": "Exclamation Mark" }) },
|
|
68
|
+
// { id: '', label: { 'en-gb': 'Other' } }, // TODO: Maybe set this to a 'not printing' or special ascii character when there is a user supplied delimited, rather than ''?
|
|
69
|
+
{ id: "0x1E", labels: e({ "en-gb": "Record Separator" }) },
|
|
70
|
+
{ id: ";", labels: e({ "en-gb": "Semicolon" }) },
|
|
71
|
+
{ id: " ", labels: e({ "en-gb": "Space" }) },
|
|
72
|
+
{ id: " ", labels: e({ "en-gb": "Tab" }) },
|
|
73
|
+
{ id: "_", labels: e({ "en-gb": "Underscore" }) },
|
|
74
|
+
{ id: "0x1F", labels: e({ "en-gb": "Unit Separator" }) },
|
|
75
|
+
{ id: "|", labels: e({ "en-gb": "Vertical Bar" }) }
|
|
76
|
+
], j = (t = r) => {
|
|
77
|
+
const o = [];
|
|
78
|
+
for (const n of L) {
|
|
79
|
+
const l = c(n.labels, t);
|
|
80
|
+
o.push({ id: n.id, label: l ?? n.id });
|
|
81
|
+
}
|
|
82
|
+
return o;
|
|
83
|
+
};
|
|
2
84
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
c as useDataTable
|
|
85
|
+
E as contextConfigSchema,
|
|
86
|
+
R as getDataFormats,
|
|
87
|
+
T as getRecordDelimiters,
|
|
88
|
+
j as getValueDelimiters,
|
|
89
|
+
F as presenterConfigSchema,
|
|
90
|
+
M as useCytoscapeJS,
|
|
91
|
+
O as useDataTable
|
|
11
92
|
};
|
|
@@ -0,0 +1,464 @@
|
|
|
1
|
+
let k;
|
|
2
|
+
// @__NO_SIDE_EFFECTS__
|
|
3
|
+
function I(n) {
|
|
4
|
+
return {
|
|
5
|
+
lang: n?.lang ?? k?.lang,
|
|
6
|
+
message: n?.message,
|
|
7
|
+
abortEarly: n?.abortEarly ?? k?.abortEarly,
|
|
8
|
+
abortPipeEarly: n?.abortPipeEarly ?? k?.abortPipeEarly
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
let _;
|
|
12
|
+
// @__NO_SIDE_EFFECTS__
|
|
13
|
+
function A(n) {
|
|
14
|
+
return _?.get(n);
|
|
15
|
+
}
|
|
16
|
+
let C;
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function O(n) {
|
|
19
|
+
return C?.get(n);
|
|
20
|
+
}
|
|
21
|
+
let P;
|
|
22
|
+
// @__NO_SIDE_EFFECTS__
|
|
23
|
+
function G(n, t) {
|
|
24
|
+
return P?.get(n)?.get(t);
|
|
25
|
+
}
|
|
26
|
+
// @__NO_SIDE_EFFECTS__
|
|
27
|
+
function D(n) {
|
|
28
|
+
const t = typeof n;
|
|
29
|
+
return t === "string" ? `"${n}"` : t === "number" || t === "bigint" || t === "boolean" ? `${n}` : t === "object" || t === "function" ? (n && Object.getPrototypeOf(n)?.constructor?.name) ?? "null" : t;
|
|
30
|
+
}
|
|
31
|
+
function f(n, t, e, s, i) {
|
|
32
|
+
const r = i && "input" in i ? i.input : e.value, u = i?.expected ?? n.expects ?? null, a = i?.received ?? /* @__PURE__ */ D(r), l = {
|
|
33
|
+
kind: n.kind,
|
|
34
|
+
type: n.type,
|
|
35
|
+
input: r,
|
|
36
|
+
expected: u,
|
|
37
|
+
received: a,
|
|
38
|
+
message: `Invalid ${t}: ${u ? `Expected ${u} but r` : "R"}eceived ${a}`,
|
|
39
|
+
requirement: n.requirement,
|
|
40
|
+
path: i?.path,
|
|
41
|
+
issues: i?.issues,
|
|
42
|
+
lang: s.lang,
|
|
43
|
+
abortEarly: s.abortEarly,
|
|
44
|
+
abortPipeEarly: s.abortPipeEarly
|
|
45
|
+
}, c = n.kind === "schema", p = i?.message ?? n.message ?? /* @__PURE__ */ G(n.reference, l.lang) ?? (c ? /* @__PURE__ */ O(l.lang) : null) ?? s.message ?? /* @__PURE__ */ A(l.lang);
|
|
46
|
+
p !== void 0 && (l.message = typeof p == "function" ? p(l) : p), c && (e.typed = !1), e.issues ? e.issues.push(l) : e.issues = [l];
|
|
47
|
+
}
|
|
48
|
+
// @__NO_SIDE_EFFECTS__
|
|
49
|
+
function y(n) {
|
|
50
|
+
return {
|
|
51
|
+
version: 1,
|
|
52
|
+
vendor: "valibot",
|
|
53
|
+
validate(t) {
|
|
54
|
+
return n["~run"]({ value: t }, /* @__PURE__ */ I());
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
// @__NO_SIDE_EFFECTS__
|
|
59
|
+
function w(n, t) {
|
|
60
|
+
return Object.hasOwn(n, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
61
|
+
}
|
|
62
|
+
// @__NO_SIDE_EFFECTS__
|
|
63
|
+
function L(n, t) {
|
|
64
|
+
const e = [...new Set(n)];
|
|
65
|
+
return e.length > 1 ? `(${e.join(` ${t} `)})` : e[0] ?? "never";
|
|
66
|
+
}
|
|
67
|
+
// @__NO_SIDE_EFFECTS__
|
|
68
|
+
function F(n, t, e) {
|
|
69
|
+
return typeof n.fallback == "function" ? n.fallback(t, e) : n.fallback;
|
|
70
|
+
}
|
|
71
|
+
// @__NO_SIDE_EFFECTS__
|
|
72
|
+
function x(n, t, e) {
|
|
73
|
+
return typeof n.default == "function" ? n.default(t, e) : n.default;
|
|
74
|
+
}
|
|
75
|
+
// @__NO_SIDE_EFFECTS__
|
|
76
|
+
function R(n, t) {
|
|
77
|
+
return {
|
|
78
|
+
kind: "schema",
|
|
79
|
+
type: "array",
|
|
80
|
+
reference: R,
|
|
81
|
+
expects: "Array",
|
|
82
|
+
async: !1,
|
|
83
|
+
item: n,
|
|
84
|
+
message: t,
|
|
85
|
+
get "~standard"() {
|
|
86
|
+
return /* @__PURE__ */ y(this);
|
|
87
|
+
},
|
|
88
|
+
"~run"(e, s) {
|
|
89
|
+
const i = e.value;
|
|
90
|
+
if (Array.isArray(i)) {
|
|
91
|
+
e.typed = !0, e.value = [];
|
|
92
|
+
for (let r = 0; r < i.length; r++) {
|
|
93
|
+
const u = i[r], a = this.item["~run"]({ value: u }, s);
|
|
94
|
+
if (a.issues) {
|
|
95
|
+
const l = {
|
|
96
|
+
type: "array",
|
|
97
|
+
origin: "value",
|
|
98
|
+
input: i,
|
|
99
|
+
key: r,
|
|
100
|
+
value: u
|
|
101
|
+
};
|
|
102
|
+
for (const c of a.issues)
|
|
103
|
+
c.path ? c.path.unshift(l) : c.path = [l], e.issues?.push(c);
|
|
104
|
+
if (e.issues || (e.issues = a.issues), s.abortEarly) {
|
|
105
|
+
e.typed = !1;
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
a.typed || (e.typed = !1), e.value.push(a.value);
|
|
110
|
+
}
|
|
111
|
+
} else f(this, "type", e, s);
|
|
112
|
+
return e;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
// @__NO_SIDE_EFFECTS__
|
|
117
|
+
function U(n) {
|
|
118
|
+
return {
|
|
119
|
+
kind: "schema",
|
|
120
|
+
type: "boolean",
|
|
121
|
+
reference: U,
|
|
122
|
+
expects: "boolean",
|
|
123
|
+
async: !1,
|
|
124
|
+
message: n,
|
|
125
|
+
get "~standard"() {
|
|
126
|
+
return /* @__PURE__ */ y(this);
|
|
127
|
+
},
|
|
128
|
+
"~run"(t, e) {
|
|
129
|
+
return typeof t.value == "boolean" ? t.typed = !0 : f(this, "type", t, e), t;
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
// @__NO_SIDE_EFFECTS__
|
|
134
|
+
function M(n, t) {
|
|
135
|
+
return {
|
|
136
|
+
kind: "schema",
|
|
137
|
+
type: "literal",
|
|
138
|
+
reference: M,
|
|
139
|
+
expects: /* @__PURE__ */ D(n),
|
|
140
|
+
async: !1,
|
|
141
|
+
literal: n,
|
|
142
|
+
message: t,
|
|
143
|
+
get "~standard"() {
|
|
144
|
+
return /* @__PURE__ */ y(this);
|
|
145
|
+
},
|
|
146
|
+
"~run"(e, s) {
|
|
147
|
+
return e.value === this.literal ? e.typed = !0 : f(this, "type", e, s), e;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
// @__NO_SIDE_EFFECTS__
|
|
152
|
+
function v(n, t) {
|
|
153
|
+
return {
|
|
154
|
+
kind: "schema",
|
|
155
|
+
type: "nullable",
|
|
156
|
+
reference: v,
|
|
157
|
+
expects: `(${n.expects} | null)`,
|
|
158
|
+
async: !1,
|
|
159
|
+
wrapped: n,
|
|
160
|
+
default: t,
|
|
161
|
+
get "~standard"() {
|
|
162
|
+
return /* @__PURE__ */ y(this);
|
|
163
|
+
},
|
|
164
|
+
"~run"(e, s) {
|
|
165
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ x(this, e, s)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
// @__NO_SIDE_EFFECTS__
|
|
170
|
+
function m(n) {
|
|
171
|
+
return {
|
|
172
|
+
kind: "schema",
|
|
173
|
+
type: "number",
|
|
174
|
+
reference: m,
|
|
175
|
+
expects: "number",
|
|
176
|
+
async: !1,
|
|
177
|
+
message: n,
|
|
178
|
+
get "~standard"() {
|
|
179
|
+
return /* @__PURE__ */ y(this);
|
|
180
|
+
},
|
|
181
|
+
"~run"(t, e) {
|
|
182
|
+
return typeof t.value == "number" && !isNaN(t.value) ? t.typed = !0 : f(this, "type", t, e), t;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
// @__NO_SIDE_EFFECTS__
|
|
187
|
+
function d(n, t) {
|
|
188
|
+
return {
|
|
189
|
+
kind: "schema",
|
|
190
|
+
type: "object",
|
|
191
|
+
reference: d,
|
|
192
|
+
expects: "Object",
|
|
193
|
+
async: !1,
|
|
194
|
+
entries: n,
|
|
195
|
+
message: t,
|
|
196
|
+
get "~standard"() {
|
|
197
|
+
return /* @__PURE__ */ y(this);
|
|
198
|
+
},
|
|
199
|
+
"~run"(e, s) {
|
|
200
|
+
const i = e.value;
|
|
201
|
+
if (i && typeof i == "object") {
|
|
202
|
+
e.typed = !0, e.value = {};
|
|
203
|
+
for (const r in this.entries) {
|
|
204
|
+
const u = this.entries[r];
|
|
205
|
+
if (r in i || (u.type === "exact_optional" || u.type === "optional" || u.type === "nullish") && u.default !== void 0) {
|
|
206
|
+
const a = r in i ? i[r] : /* @__PURE__ */ x(u), l = u["~run"]({ value: a }, s);
|
|
207
|
+
if (l.issues) {
|
|
208
|
+
const c = {
|
|
209
|
+
type: "object",
|
|
210
|
+
origin: "value",
|
|
211
|
+
input: i,
|
|
212
|
+
key: r,
|
|
213
|
+
value: a
|
|
214
|
+
};
|
|
215
|
+
for (const p of l.issues)
|
|
216
|
+
p.path ? p.path.unshift(c) : p.path = [c], e.issues?.push(p);
|
|
217
|
+
if (e.issues || (e.issues = l.issues), s.abortEarly) {
|
|
218
|
+
e.typed = !1;
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
l.typed || (e.typed = !1), e.value[r] = l.value;
|
|
223
|
+
} else if (u.fallback !== void 0) e.value[r] = /* @__PURE__ */ F(u);
|
|
224
|
+
else if (u.type !== "exact_optional" && u.type !== "optional" && u.type !== "nullish" && (f(this, "key", e, s, {
|
|
225
|
+
input: void 0,
|
|
226
|
+
expected: `"${r}"`,
|
|
227
|
+
path: [{
|
|
228
|
+
type: "object",
|
|
229
|
+
origin: "key",
|
|
230
|
+
input: i,
|
|
231
|
+
key: r,
|
|
232
|
+
value: i[r]
|
|
233
|
+
}]
|
|
234
|
+
}), s.abortEarly))
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
} else f(this, "type", e, s);
|
|
238
|
+
return e;
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
// @__NO_SIDE_EFFECTS__
|
|
243
|
+
function b(n, t) {
|
|
244
|
+
return {
|
|
245
|
+
kind: "schema",
|
|
246
|
+
type: "optional",
|
|
247
|
+
reference: b,
|
|
248
|
+
expects: `(${n.expects} | undefined)`,
|
|
249
|
+
async: !1,
|
|
250
|
+
wrapped: n,
|
|
251
|
+
default: t,
|
|
252
|
+
get "~standard"() {
|
|
253
|
+
return /* @__PURE__ */ y(this);
|
|
254
|
+
},
|
|
255
|
+
"~run"(e, s) {
|
|
256
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ x(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
// @__NO_SIDE_EFFECTS__
|
|
261
|
+
function V(n, t, e) {
|
|
262
|
+
return {
|
|
263
|
+
kind: "schema",
|
|
264
|
+
type: "record",
|
|
265
|
+
reference: V,
|
|
266
|
+
expects: "Object",
|
|
267
|
+
async: !1,
|
|
268
|
+
key: n,
|
|
269
|
+
value: t,
|
|
270
|
+
message: e,
|
|
271
|
+
get "~standard"() {
|
|
272
|
+
return /* @__PURE__ */ y(this);
|
|
273
|
+
},
|
|
274
|
+
"~run"(s, i) {
|
|
275
|
+
const r = s.value;
|
|
276
|
+
if (r && typeof r == "object") {
|
|
277
|
+
s.typed = !0, s.value = {};
|
|
278
|
+
for (const u in r) if (/* @__PURE__ */ w(r, u)) {
|
|
279
|
+
const a = r[u], l = this.key["~run"]({ value: u }, i);
|
|
280
|
+
if (l.issues) {
|
|
281
|
+
const p = {
|
|
282
|
+
type: "object",
|
|
283
|
+
origin: "key",
|
|
284
|
+
input: r,
|
|
285
|
+
key: u,
|
|
286
|
+
value: a
|
|
287
|
+
};
|
|
288
|
+
for (const h of l.issues)
|
|
289
|
+
h.path = [p], s.issues?.push(h);
|
|
290
|
+
if (s.issues || (s.issues = l.issues), i.abortEarly) {
|
|
291
|
+
s.typed = !1;
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const c = this.value["~run"]({ value: a }, i);
|
|
296
|
+
if (c.issues) {
|
|
297
|
+
const p = {
|
|
298
|
+
type: "object",
|
|
299
|
+
origin: "value",
|
|
300
|
+
input: r,
|
|
301
|
+
key: u,
|
|
302
|
+
value: a
|
|
303
|
+
};
|
|
304
|
+
for (const h of c.issues)
|
|
305
|
+
h.path ? h.path.unshift(p) : h.path = [p], s.issues?.push(h);
|
|
306
|
+
if (s.issues || (s.issues = c.issues), i.abortEarly) {
|
|
307
|
+
s.typed = !1;
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
(!l.typed || !c.typed) && (s.typed = !1), l.typed && (s.value[l.value] = c.value);
|
|
312
|
+
}
|
|
313
|
+
} else f(this, "type", s, i);
|
|
314
|
+
return s;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
// @__NO_SIDE_EFFECTS__
|
|
319
|
+
function o(n) {
|
|
320
|
+
return {
|
|
321
|
+
kind: "schema",
|
|
322
|
+
type: "string",
|
|
323
|
+
reference: o,
|
|
324
|
+
expects: "string",
|
|
325
|
+
async: !1,
|
|
326
|
+
message: n,
|
|
327
|
+
get "~standard"() {
|
|
328
|
+
return /* @__PURE__ */ y(this);
|
|
329
|
+
},
|
|
330
|
+
"~run"(t, e) {
|
|
331
|
+
return typeof t.value == "string" ? t.typed = !0 : f(this, "type", t, e), t;
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
// @__NO_SIDE_EFFECTS__
|
|
336
|
+
function S(n) {
|
|
337
|
+
let t;
|
|
338
|
+
if (n) for (const e of n) t ? t.push(...e.issues) : t = e.issues;
|
|
339
|
+
return t;
|
|
340
|
+
}
|
|
341
|
+
// @__NO_SIDE_EFFECTS__
|
|
342
|
+
function j(n, t) {
|
|
343
|
+
return {
|
|
344
|
+
kind: "schema",
|
|
345
|
+
type: "union",
|
|
346
|
+
reference: j,
|
|
347
|
+
expects: /* @__PURE__ */ L(n.map((e) => e.expects), "|"),
|
|
348
|
+
async: !1,
|
|
349
|
+
options: n,
|
|
350
|
+
message: t,
|
|
351
|
+
get "~standard"() {
|
|
352
|
+
return /* @__PURE__ */ y(this);
|
|
353
|
+
},
|
|
354
|
+
"~run"(e, s) {
|
|
355
|
+
let i, r, u;
|
|
356
|
+
for (const a of this.options) {
|
|
357
|
+
const l = a["~run"]({ value: e.value }, s);
|
|
358
|
+
if (l.typed) if (l.issues) r ? r.push(l) : r = [l];
|
|
359
|
+
else {
|
|
360
|
+
i = l;
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
else u ? u.push(l) : u = [l];
|
|
364
|
+
}
|
|
365
|
+
if (i) return i;
|
|
366
|
+
if (r) {
|
|
367
|
+
if (r.length === 1) return r[0];
|
|
368
|
+
f(this, "type", e, s, { issues: /* @__PURE__ */ S(r) }), e.typed = !0;
|
|
369
|
+
} else {
|
|
370
|
+
if (u?.length === 1) return u[0];
|
|
371
|
+
f(this, "type", e, s, { issues: /* @__PURE__ */ S(u) });
|
|
372
|
+
}
|
|
373
|
+
return e;
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
const E = (n) => /* @__PURE__ */ j(n.map((t) => /* @__PURE__ */ M(t))), Q = /* @__PURE__ */ d({
|
|
378
|
+
"en-au": /* @__PURE__ */ o(),
|
|
379
|
+
"en-gb": /* @__PURE__ */ o(),
|
|
380
|
+
"en-us": /* @__PURE__ */ o(),
|
|
381
|
+
"es-es": /* @__PURE__ */ o()
|
|
382
|
+
}), g = /* @__PURE__ */ d({
|
|
383
|
+
"en-au": /* @__PURE__ */ b(/* @__PURE__ */ o()),
|
|
384
|
+
"en-gb": /* @__PURE__ */ b(/* @__PURE__ */ o()),
|
|
385
|
+
"en-us": /* @__PURE__ */ b(/* @__PURE__ */ o()),
|
|
386
|
+
"es-es": /* @__PURE__ */ b(/* @__PURE__ */ o())
|
|
387
|
+
}), q = E(["amber", "green", "red", "other"]), K = E([
|
|
388
|
+
"alpha",
|
|
389
|
+
"beta",
|
|
390
|
+
"generalAvailability",
|
|
391
|
+
"notApplicable",
|
|
392
|
+
"preAlpha",
|
|
393
|
+
"proposed",
|
|
394
|
+
"releaseCandidate",
|
|
395
|
+
"unavailable",
|
|
396
|
+
"underReview"
|
|
397
|
+
]), N = E([
|
|
398
|
+
"app",
|
|
399
|
+
"connector",
|
|
400
|
+
"connectorConnection",
|
|
401
|
+
"context",
|
|
402
|
+
"contextModelGroup",
|
|
403
|
+
"contextModel",
|
|
404
|
+
"contextModelDimensionGroup",
|
|
405
|
+
"contextModelDimension",
|
|
406
|
+
"contextModelDimensionHierarchy",
|
|
407
|
+
"contextModelEntityGroup",
|
|
408
|
+
"contextModelEntity",
|
|
409
|
+
"contextModelEntityDataItem",
|
|
410
|
+
"contextModelEntityEvent",
|
|
411
|
+
"contextModelEntityPrimaryMeasure",
|
|
412
|
+
"contextModelSecondaryMeasureGroup",
|
|
413
|
+
"contextModelSecondaryMeasure",
|
|
414
|
+
"dataView",
|
|
415
|
+
"dimension",
|
|
416
|
+
"engine",
|
|
417
|
+
"eventQuery",
|
|
418
|
+
"presenter",
|
|
419
|
+
"presenterPresentation",
|
|
420
|
+
"tool"
|
|
421
|
+
]), T = /* @__PURE__ */ d({
|
|
422
|
+
id: /* @__PURE__ */ o(),
|
|
423
|
+
color: q,
|
|
424
|
+
label: /* @__PURE__ */ o()
|
|
425
|
+
}), H = {
|
|
426
|
+
id: /* @__PURE__ */ o(),
|
|
427
|
+
label: g,
|
|
428
|
+
description: g,
|
|
429
|
+
firstCreatedAt: /* @__PURE__ */ b(/* @__PURE__ */ m()),
|
|
430
|
+
icon: /* @__PURE__ */ v(/* @__PURE__ */ o()),
|
|
431
|
+
iconDark: /* @__PURE__ */ v(/* @__PURE__ */ o()),
|
|
432
|
+
lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ m()),
|
|
433
|
+
status: /* @__PURE__ */ v(T),
|
|
434
|
+
statusId: K
|
|
435
|
+
}, z = /* @__PURE__ */ d({
|
|
436
|
+
...H,
|
|
437
|
+
typeId: N
|
|
438
|
+
}), B = /* @__PURE__ */ d({
|
|
439
|
+
id: /* @__PURE__ */ o(),
|
|
440
|
+
label: g,
|
|
441
|
+
description: g,
|
|
442
|
+
icon: /* @__PURE__ */ v(/* @__PURE__ */ o()),
|
|
443
|
+
iconDark: /* @__PURE__ */ v(/* @__PURE__ */ o()),
|
|
444
|
+
order: /* @__PURE__ */ m(),
|
|
445
|
+
path: /* @__PURE__ */ o()
|
|
446
|
+
}), J = "en-gb";
|
|
447
|
+
export {
|
|
448
|
+
J as D,
|
|
449
|
+
H as a,
|
|
450
|
+
R as b,
|
|
451
|
+
z as c,
|
|
452
|
+
M as d,
|
|
453
|
+
b as e,
|
|
454
|
+
m as f,
|
|
455
|
+
Q as g,
|
|
456
|
+
U as h,
|
|
457
|
+
B as i,
|
|
458
|
+
E as l,
|
|
459
|
+
v as n,
|
|
460
|
+
d as o,
|
|
461
|
+
g as p,
|
|
462
|
+
V as r,
|
|
463
|
+
o as s
|
|
464
|
+
};
|