@piveau/dpi 0.2.0-alpha.17 → 0.2.0-alpha.19
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/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +140 -167
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +463 -487
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +297 -234
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +5 -4
- package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +85 -71
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +67 -67
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +155 -164
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./StepActionsSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-07a97d66"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as W, inject as j, ref as v, watch as F, computed as I, createElementBlock as r, openBlock as o, normalizeClass as $, createElementVNode as m, createBlock as p, createCommentVNode as V, createVNode as s, renderSlot as w, unref as
|
|
1
|
+
import { defineComponent as W, inject as j, ref as v, watch as F, computed as I, createElementBlock as r, openBlock as o, normalizeClass as $, createElementVNode as m, createBlock as p, createCommentVNode as V, createVNode as s, renderSlot as w, unref as E, normalizeStyle as K, withDirectives as h, vShow as y, Fragment as N, withCtx as g, renderList as R, toDisplayString as O, nextTick as U } from "vue";
|
|
2
2
|
import { getNode as Z, isNode as q } from "@formkit/core";
|
|
3
3
|
import { getValidationMessages as G } from "@formkit/validation";
|
|
4
4
|
import { PhExclamationMark as H } from "@phosphor-icons/vue";
|
|
@@ -52,6 +52,7 @@ const _ = { class: "step-actions" }, ee = { class: "step-actions__prev-and-next"
|
|
|
52
52
|
const n = Z(e);
|
|
53
53
|
if (!q(n))
|
|
54
54
|
return console.error("Current step node is not a FormKitNode", n), !1;
|
|
55
|
+
n.clearErrors(!0);
|
|
55
56
|
const a = G(n), D = !!((T = (k = t.steps) == null ? void 0 : k[e]) != null && T.valid);
|
|
56
57
|
return a && a.size > 0 || !D ? (i.value = [...a.entries()].flatMap(([oe, M]) => M.map((A) => String(A.value))), u.value = !0, !1) : (i.value.splice(0, i.value.length), u.value = !1, !0);
|
|
57
58
|
}
|
|
@@ -67,7 +68,7 @@ const _ = { class: "step-actions" }, ee = { class: "step-actions__prev-and-next"
|
|
|
67
68
|
class: $([e.classList, "step-actions-container"])
|
|
68
69
|
}, [
|
|
69
70
|
m("div", _, [
|
|
70
|
-
|
|
71
|
+
E(P) ? (o(), r(N, { key: 1 }, [
|
|
71
72
|
L.value ? h((o(), p(l, {
|
|
72
73
|
key: 1,
|
|
73
74
|
class: "edit-save-button",
|
|
@@ -140,7 +141,7 @@ const _ = { class: "step-actions" }, ee = { class: "step-actions__prev-and-next"
|
|
|
140
141
|
variant: "error"
|
|
141
142
|
}, {
|
|
142
143
|
icon: g(() => [
|
|
143
|
-
s(
|
|
144
|
+
s(E(H), {
|
|
144
145
|
size: 32,
|
|
145
146
|
color: "currentColor"
|
|
146
147
|
})
|
|
@@ -150,7 +151,7 @@ const _ = { class: "step-actions" }, ee = { class: "step-actions__prev-and-next"
|
|
|
150
151
|
])),
|
|
151
152
|
default: g(() => [
|
|
152
153
|
e.showDetailedErrorSummary ? (o(), r("ul", te, [
|
|
153
|
-
(o(!0), r(
|
|
154
|
+
(o(!0), r(N, null, R(i.value, (a) => (o(), r("li", { key: a }, O(a), 1))), 128))
|
|
154
155
|
])) : V("", !0)
|
|
155
156
|
]),
|
|
156
157
|
_: 1
|
|
@@ -1,106 +1,120 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { mergeModels as F, useModel as M, ref as N, watch as O, computed as C, createElementBlock as n, openBlock as r, createElementVNode as t, createCommentVNode as P, createVNode as h, unref as i, Fragment as T, toDisplayString as a, createTextVNode as c } from "vue";
|
|
2
|
+
import { PhWarning as W } from "@phosphor-icons/vue";
|
|
3
|
+
import { useI18n as j } from "vue-i18n";
|
|
4
|
+
import { useEditModeInfo as z } from "../composables/useDpiEditMode.js";
|
|
5
|
+
import { useFormValues as B } from "../composables/useDpiFormValues.js";
|
|
6
|
+
import q from "../HappyFlowComponents/ui/Dropdown.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
const
|
|
8
|
+
import H from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }, G = { class: "copy-large-regular description-text" }, J = { class: "visibility-options-description" }, K = { class: "visibility-option" }, L = { class: "option-title" }, Q = { class: "visibility-option" }, R = { class: "option-title" }, X = { class: "visibility-option" }, Y = { class: "option-title" }, Z = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "dpiV3_errormsgWrapper"
|
|
12
|
-
},
|
|
12
|
+
}, $ = { class: "copy-mini-regular" }, ii = {
|
|
13
13
|
__name: "VisibilityPage",
|
|
14
|
-
props: {
|
|
14
|
+
props: /* @__PURE__ */ F({
|
|
15
15
|
context: Object
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
}, {
|
|
17
|
+
selectedVisibility: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
selectedVisibilityModifiers: {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:selectedVisibility"],
|
|
24
|
+
setup(D, { expose: x }) {
|
|
25
|
+
const o = M(D, "selectedVisibility"), { t: s } = j(), { isEditMode: p } = z(), { formValues: l } = B(), w = N([
|
|
19
26
|
{ "@value": "public", label: "Öffentlich" },
|
|
20
27
|
{ "@value": "restricted", label: "Eingeschränkt" },
|
|
21
28
|
{ "@value": "internal", label: "Intern" }
|
|
22
29
|
]);
|
|
23
|
-
Object.keys(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
p.value || Object.keys(l.value.Discoverability.visibilityPage).length === 0 && (l.value.Discoverability.visibilityPage = [{ isValid: "unset" }]);
|
|
31
|
+
function I(e) {
|
|
32
|
+
o.value = e, u(e);
|
|
33
|
+
}
|
|
34
|
+
function u(e) {
|
|
35
|
+
e && e !== "" ? l.value.Discoverability.visibilityPage = [
|
|
36
|
+
{ isValid: !0, visibility: e }
|
|
37
|
+
] : l.value.Discoverability.visibilityPage = [
|
|
30
38
|
{ isValid: !1, visibility: "" }
|
|
31
|
-
], console.log("Visibility validation state:",
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
39
|
+
], console.log("Visibility validation state:", l.value.Discoverability.visibilityPage);
|
|
40
|
+
}
|
|
41
|
+
O(o, (e) => {
|
|
42
|
+
e !== void 0 && u(e);
|
|
35
43
|
});
|
|
36
|
-
const
|
|
37
|
-
var
|
|
38
|
-
return ((
|
|
44
|
+
const k = C(() => {
|
|
45
|
+
var e, d;
|
|
46
|
+
return ((d = (e = l.value.Discoverability.visibilityPage) == null ? void 0 : e[0]) == null ? void 0 : d.isValid) === !0;
|
|
39
47
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
function E() {
|
|
49
|
+
return o.value !== "" ? (l.value.Discoverability.visibilityPage[0].isValid = !0, !0) : (l.value.Discoverability.visibilityPage = [{ isValid: !1 }], !1);
|
|
50
|
+
}
|
|
51
|
+
return x({
|
|
52
|
+
validateVisibilitySelection: E,
|
|
53
|
+
canProceed: k
|
|
54
|
+
}), (e, d) => {
|
|
55
|
+
var v, b, y, g, m, f, _, V;
|
|
56
|
+
return r(), n("div", U, [
|
|
57
|
+
t("div", A, [
|
|
58
|
+
i(p) ? P("", !0) : (r(), n(T, { key: 0 }, [
|
|
59
|
+
t("h4", null, a(i(s)("message.dataupload.datasets.visibilityPage.title")), 1),
|
|
60
|
+
t("div", G, [
|
|
61
|
+
t("p", null, a(i(s)("message.dataupload.datasets.visibilityPage.intro-text")), 1),
|
|
62
|
+
t("p", null, a(i(s)("message.dataupload.datasets.visibilityPage.recommendation-text")), 1),
|
|
63
|
+
t("ul", J, [
|
|
64
|
+
t("li", K, [
|
|
65
|
+
t("span", L, '"' + a(i(s)("message.dataupload.datasets.visibilityPage.visibility-option-public")) + '":', 1),
|
|
66
|
+
c(" " + a(i(s)("message.dataupload.datasets.visibilityPage.visibility-option-public-desc")), 1)
|
|
67
|
+
]),
|
|
68
|
+
t("li", Q, [
|
|
69
|
+
t("span", R, '"' + a(i(s)("message.dataupload.datasets.visibilityPage.visibility-option-restricted")) + '":', 1),
|
|
70
|
+
c(" " + a(i(s)("message.dataupload.datasets.visibilityPage.visibility-option-restricted-desc")), 1)
|
|
71
|
+
]),
|
|
72
|
+
t("li", X, [
|
|
73
|
+
t("span", Y, '"' + a(i(s)("message.dataupload.datasets.visibilityPage.visibility-option-internal")) + '":', 1),
|
|
74
|
+
c(" " + a(i(s)("message.dataupload.datasets.visibilityPage.visibility-option-internal-desc")), 1)
|
|
75
|
+
])
|
|
59
76
|
]),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
e("p", null, t(i.$t("message.dataupload.datasets.visibilityPage.registration-note")), 1)
|
|
66
|
-
]),
|
|
67
|
-
V(S, {
|
|
77
|
+
t("p", null, a(i(s)("message.dataupload.datasets.visibilityPage.registration-note")), 1)
|
|
78
|
+
])
|
|
79
|
+
], 64)),
|
|
80
|
+
h(q, {
|
|
81
|
+
modelValue: o.value,
|
|
68
82
|
"onUpdate:modelValue": [
|
|
69
|
-
|
|
70
|
-
|
|
83
|
+
d[0] || (d[0] = (S) => o.value = S),
|
|
84
|
+
I
|
|
71
85
|
],
|
|
72
|
-
|
|
86
|
+
"dropdown-width": "large",
|
|
73
87
|
type: "inputField",
|
|
74
|
-
|
|
75
|
-
|
|
88
|
+
class: "visibility-dropdown",
|
|
89
|
+
"input-field-props": {
|
|
76
90
|
addOnText: !1,
|
|
77
91
|
initialHintText: !1,
|
|
78
92
|
datePicker: !1,
|
|
79
93
|
infoIcon: !1,
|
|
80
94
|
preIcon: !1,
|
|
81
|
-
label: i
|
|
95
|
+
label: i(s)("message.dataupload.datasets.visibilityPage.dropdown-label"),
|
|
82
96
|
dropdown_dpiV3: !0,
|
|
83
|
-
placeholder: i
|
|
97
|
+
placeholder: i(s)("message.dataupload.datasets.visibilityPage.dropdown-placeholder"),
|
|
84
98
|
inputFieldSize: "large",
|
|
85
|
-
modelValue:
|
|
99
|
+
modelValue: o.value,
|
|
86
100
|
defaultInput: !0,
|
|
87
|
-
showError: ((
|
|
101
|
+
showError: ((g = (y = (b = (v = i(l)) == null ? void 0 : v.Discoverability) == null ? void 0 : b.visibilityPage) == null ? void 0 : y[0]) == null ? void 0 : g.isValid) === !1,
|
|
88
102
|
required: !0
|
|
89
103
|
},
|
|
90
|
-
data:
|
|
91
|
-
}, null, 8, ["modelValue", "
|
|
104
|
+
data: w.value
|
|
105
|
+
}, null, 8, ["modelValue", "input-field-props", "data"])
|
|
92
106
|
]),
|
|
93
|
-
((
|
|
94
|
-
|
|
107
|
+
((V = (_ = (f = (m = i(l)) == null ? void 0 : m.Discoverability) == null ? void 0 : f.visibilityPage) == null ? void 0 : _[0]) == null ? void 0 : V.isValid) === !1 ? (r(), n("div", Z, [
|
|
108
|
+
h(i(W), {
|
|
95
109
|
size: 16,
|
|
96
110
|
weight: "fill"
|
|
97
111
|
}),
|
|
98
|
-
|
|
99
|
-
])) :
|
|
112
|
+
t("span", $, a(i(s)("message.dataupload.datasets.visibilityPage.error-message")), 1)
|
|
113
|
+
])) : P("", !0)
|
|
100
114
|
]);
|
|
101
115
|
};
|
|
102
116
|
}
|
|
103
|
-
},
|
|
117
|
+
}, ri = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-ab47a431"]]);
|
|
104
118
|
export {
|
|
105
|
-
|
|
119
|
+
ri as default
|
|
106
120
|
};
|
|
@@ -11,18 +11,18 @@ function H(e, r) {
|
|
|
11
11
|
"@type": r
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
function z(e, r) {
|
|
15
|
-
const
|
|
14
|
+
function z(e, r, t) {
|
|
15
|
+
const i = (e ?? "https://twin.bydata.de/api/hub/repo").trim(), o = i.endsWith("/") ? i : `${i}/`, c = r.trim().replace(/^\/+/, ""), a = t ? `${t}/${c}` : c;
|
|
16
16
|
try {
|
|
17
|
-
return new URL(a,
|
|
17
|
+
return new URL(a, o).toString();
|
|
18
18
|
} catch {
|
|
19
|
-
return `${
|
|
19
|
+
return `${o}${a}`;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
function Z(e) {
|
|
23
23
|
return (e ?? []).map((t) => {
|
|
24
|
-
var i,
|
|
25
|
-
return { name: (i = t.name) == null ? void 0 : i.trim(), url: (
|
|
24
|
+
var i, o;
|
|
25
|
+
return { name: (i = t.name) == null ? void 0 : i.trim(), url: (o = t.url) == null ? void 0 : o.trim() };
|
|
26
26
|
}).filter((t) => !!t.name && t.name.length > 0).map((t) => ({
|
|
27
27
|
"foaf:name": t.name,
|
|
28
28
|
...t.url && t.url.length > 0 ? { "foaf:homepage": t.url } : {}
|
|
@@ -40,7 +40,7 @@ function W(e) {
|
|
|
40
40
|
"@id": e
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function U(e) {
|
|
44
44
|
return e != null;
|
|
45
45
|
}
|
|
46
46
|
function ee(e, r = "http://www.w3.org/2001/XMLSchema#string") {
|
|
@@ -70,12 +70,12 @@ function ne(e) {
|
|
|
70
70
|
function te(e) {
|
|
71
71
|
return s(
|
|
72
72
|
n.fromNullable(e),
|
|
73
|
-
n.map((r) => r.map((t) => W(t)).filter(
|
|
73
|
+
n.map((r) => r.map((t) => W(t)).filter(U)),
|
|
74
74
|
n.filter((r) => r.length > 0),
|
|
75
75
|
n.map((r) => [...r])
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function $(e, r) {
|
|
79
79
|
return s(
|
|
80
80
|
m(e),
|
|
81
81
|
n.flatMap((t) => n.fromNullable(r(t)))
|
|
@@ -84,10 +84,10 @@ function C(e, r) {
|
|
|
84
84
|
function re(e) {
|
|
85
85
|
return A(e).flatMap((r) => [...r]);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function C(e, r, t) {
|
|
88
88
|
return s(
|
|
89
89
|
n.fromNullable(e),
|
|
90
|
-
n.map((i) => i.map(r).filter(
|
|
90
|
+
n.map((i) => i.map(r).filter(U)),
|
|
91
91
|
n.filter((i) => i.length > 0),
|
|
92
92
|
n.map((i) => T(i, t)),
|
|
93
93
|
n.filter((i) => i.length > 0),
|
|
@@ -103,13 +103,13 @@ function M(e) {
|
|
|
103
103
|
for (const [t, i] of Object.entries(e)) {
|
|
104
104
|
if (i == null)
|
|
105
105
|
continue;
|
|
106
|
-
const
|
|
107
|
-
|
|
106
|
+
const o = M(i);
|
|
107
|
+
o != null && (r[t] = o);
|
|
108
108
|
}
|
|
109
109
|
return r;
|
|
110
110
|
}
|
|
111
111
|
function A(e) {
|
|
112
|
-
return e.map(n.getOrUndefined).filter(
|
|
112
|
+
return e.map(n.getOrUndefined).filter(U);
|
|
113
113
|
}
|
|
114
114
|
function f(e) {
|
|
115
115
|
const r = e ? [...e] : [];
|
|
@@ -117,17 +117,17 @@ function f(e) {
|
|
|
117
117
|
}
|
|
118
118
|
function ie(e, r) {
|
|
119
119
|
const t = e ?? {}, i = [];
|
|
120
|
-
let
|
|
121
|
-
for (const [c,
|
|
120
|
+
let o = 1;
|
|
121
|
+
for (const [c, a] of Object.entries(r)) {
|
|
122
122
|
const p = s(
|
|
123
123
|
n.fromNullable(t[c]),
|
|
124
124
|
n.map((u) => u.trim()),
|
|
125
125
|
n.filter((u) => u.length > 0),
|
|
126
126
|
n.map((u) => ({
|
|
127
127
|
"@type": "schema:Question",
|
|
128
|
-
"schema:text":
|
|
128
|
+
"schema:text": a,
|
|
129
129
|
"schema:acceptedAnswer": u,
|
|
130
|
-
"schema:position": { "@value": String(
|
|
130
|
+
"schema:position": { "@value": String(o++), "@type": "http://www.w3.org/2001/XMLSchema#integer" }
|
|
131
131
|
})),
|
|
132
132
|
n.getOrUndefined
|
|
133
133
|
);
|
|
@@ -136,20 +136,20 @@ function ie(e, r) {
|
|
|
136
136
|
return i;
|
|
137
137
|
}
|
|
138
138
|
function D(e, r, t, i) {
|
|
139
|
-
const
|
|
140
|
-
return
|
|
139
|
+
const o = ie(e, t);
|
|
140
|
+
return o.length === 0 ? n.none() : n.some({
|
|
141
141
|
"@type": "schema:QAPage",
|
|
142
142
|
"dct:identifier": "__TODO__",
|
|
143
143
|
"dct:type": r,
|
|
144
|
-
"schema:question":
|
|
144
|
+
"schema:question": o,
|
|
145
145
|
"p-plan:isPrecededBy": null,
|
|
146
146
|
"schema:position": { "@value": String(i), "@type": "http://www.w3.org/2001/XMLSchema#integer" }
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function ae(e) {
|
|
150
150
|
return (e ?? []).map((t) => {
|
|
151
|
-
var i,
|
|
152
|
-
return { name: (i = t.name) == null ? void 0 : i.trim(), description: (
|
|
151
|
+
var i, o;
|
|
152
|
+
return { name: (i = t.name) == null ? void 0 : i.trim(), description: (o = t.description) == null ? void 0 : o.trim() };
|
|
153
153
|
}).filter((t) => !!t.name && t.name.length > 0 && !!t.description && t.description.length > 0).map((t) => ({
|
|
154
154
|
"@type": "prov:used",
|
|
155
155
|
"dct:title": t.name,
|
|
@@ -163,14 +163,14 @@ function T(e, r) {
|
|
|
163
163
|
"schema:url": i.url,
|
|
164
164
|
"dct:title": s(
|
|
165
165
|
n.fromNullable(i.name),
|
|
166
|
-
n.map((
|
|
167
|
-
n.filter((
|
|
166
|
+
n.map((o) => o.trim()),
|
|
167
|
+
n.filter((o) => o.length > 0),
|
|
168
168
|
n.getOrElse(() => r)
|
|
169
169
|
),
|
|
170
170
|
"dct:description": s(
|
|
171
171
|
n.fromNullable(i.description),
|
|
172
|
-
n.map((
|
|
173
|
-
n.filter((
|
|
172
|
+
n.map((o) => o.trim()),
|
|
173
|
+
n.filter((o) => o.length > 0),
|
|
174
174
|
n.getOrUndefined
|
|
175
175
|
)
|
|
176
176
|
}));
|
|
@@ -178,64 +178,64 @@ function T(e, r) {
|
|
|
178
178
|
function oe(e, r) {
|
|
179
179
|
return (e ?? []).map((i) => ({
|
|
180
180
|
"@type": "schema:SoftwareApplication",
|
|
181
|
-
"dct:identifier": z(r.baseRepoUrl, i.id),
|
|
182
|
-
"schema:featureList": f((i.functionalities ?? []).map((
|
|
181
|
+
"dct:identifier": z(r.baseRepoUrl, i.id, "resources/software"),
|
|
182
|
+
"schema:featureList": f((i.functionalities ?? []).map((o) => o == null ? void 0 : o.trim()).filter((o) => !!o && o.length > 0))
|
|
183
183
|
}));
|
|
184
184
|
}
|
|
185
185
|
function se(e, r) {
|
|
186
186
|
return (e ?? []).map((i) => ({
|
|
187
187
|
"@type": "dcat:Dataset",
|
|
188
|
-
"dct:identifier": z(r.baseRepoUrl, i.id)
|
|
188
|
+
"dct:identifier": z(r.baseRepoUrl, i.id, "datasets")
|
|
189
189
|
}));
|
|
190
190
|
}
|
|
191
191
|
function le(e, r, t) {
|
|
192
|
-
return (e ?? []).map((
|
|
192
|
+
return (e ?? []).map((o) => {
|
|
193
193
|
var c;
|
|
194
194
|
return {
|
|
195
195
|
"@type": "ssn:System",
|
|
196
|
-
"dct:identifier": z(t.baseRepoUrl,
|
|
196
|
+
"dct:identifier": z(t.baseRepoUrl, o.id, "resources/hardware"),
|
|
197
197
|
"dct:description": s(
|
|
198
|
-
n.fromNullable(
|
|
199
|
-
n.map((
|
|
200
|
-
n.filter((
|
|
201
|
-
n.flatMap((
|
|
198
|
+
n.fromNullable(o.description),
|
|
199
|
+
n.map((a) => a.trim()),
|
|
200
|
+
n.filter((a) => a.length > 0),
|
|
201
|
+
n.flatMap((a) => n.fromNullable(r(a))),
|
|
202
202
|
n.getOrUndefined
|
|
203
203
|
),
|
|
204
|
-
"ssn:deployedSystem": W(
|
|
205
|
-
"ssn:forProperty": f((
|
|
206
|
-
"sosa:hasLocation": f((
|
|
204
|
+
"ssn:deployedSystem": W(o.id),
|
|
205
|
+
"ssn:forProperty": f((o.forProperty ?? []).map((a) => a == null ? void 0 : a.trim()).filter((a) => !!a && a.length > 0)),
|
|
206
|
+
"sosa:hasLocation": f((o.locations ?? []).map((a) => ({
|
|
207
207
|
"@type": "dct:Location",
|
|
208
|
-
"geo:lat":
|
|
209
|
-
"geo:long":
|
|
208
|
+
"geo:lat": a.lat,
|
|
209
|
+
"geo:long": a.lng
|
|
210
210
|
}))),
|
|
211
|
-
"foaf:depiction": f((
|
|
211
|
+
"foaf:depiction": f((o.depictions ?? []).map((a) => W(a)).filter(U)),
|
|
212
212
|
// Corresponds to functionalities of hardware;
|
|
213
213
|
// not to be confused with functionalities of software (schema:featureList)
|
|
214
|
-
"ssn-system:hasSystemCapability": f((
|
|
215
|
-
"dct:references": f(T((c =
|
|
216
|
-
name:
|
|
217
|
-
url:
|
|
218
|
-
description:
|
|
219
|
-
})).filter((
|
|
214
|
+
"ssn-system:hasSystemCapability": f((o.functionalities ?? []).map((a) => a == null ? void 0 : a.trim()).filter((a) => !!a && a.length > 0)),
|
|
215
|
+
"dct:references": f(T((c = o.references) == null ? void 0 : c.map((a) => ({
|
|
216
|
+
name: a.name ?? "",
|
|
217
|
+
url: a.url ?? "",
|
|
218
|
+
description: a.description
|
|
219
|
+
})).filter((a) => a.url.length > 0 && ((a == null ? void 0 : a.name) || "").length > 0), "documentation"))
|
|
220
220
|
};
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function P(e) {
|
|
224
224
|
var w, y, O;
|
|
225
|
-
const { prefixKey: r, activityLabel: t, input: i, toLanged:
|
|
225
|
+
const { prefixKey: r, activityLabel: t, input: i, toLanged: o, context: c } = e, a = `${r}/Grundlegende Informationen`, p = `${r}/Software`, u = `${r}/Datensätze`, x = `${r}/Hardware`, d = i[a], N = d == null ? void 0 : d.description, j = s(
|
|
226
226
|
n.fromNullable(N),
|
|
227
227
|
n.map((h) => h.trim()),
|
|
228
228
|
n.filter((h) => h.length > 0),
|
|
229
229
|
n.getOrUndefined
|
|
230
|
-
), I = d == null ? void 0 : d.methods, L = d == null ? void 0 : d.links,
|
|
231
|
-
...oe(
|
|
230
|
+
), I = d == null ? void 0 : d.methods, L = d == null ? void 0 : d.links, R = (w = i[p]) == null ? void 0 : w.selected, v = (y = i[u]) == null ? void 0 : y.selected, S = (O = i[x]) == null ? void 0 : O.selected, b = [
|
|
231
|
+
...oe(R, c),
|
|
232
232
|
...se(v, c),
|
|
233
|
-
...le(S,
|
|
233
|
+
...le(S, o, c)
|
|
234
234
|
], k = {
|
|
235
235
|
"@type": "p-plan:Step",
|
|
236
236
|
"dct:identifier": "__TODO__",
|
|
237
237
|
"p-plan:Activity": t,
|
|
238
|
-
"dct:description":
|
|
238
|
+
"dct:description": o(j ?? "__EMPTY__"),
|
|
239
239
|
"p-plan:isPrecededBy": null,
|
|
240
240
|
"prov:used": f(ae(I)),
|
|
241
241
|
"dct:references": f(T(L, "documentation")),
|
|
@@ -244,10 +244,10 @@ function U(e) {
|
|
|
244
244
|
return n.some(k);
|
|
245
245
|
}
|
|
246
246
|
function ue(e, r = {}) {
|
|
247
|
-
var v, S, b, k, w, y, O, h,
|
|
247
|
+
var v, S, b, k, w, y, O, h, _, E, K, B, G, V;
|
|
248
248
|
const t = {
|
|
249
249
|
"@type": ["schema:Project", "https://piveau.eu/ns/voc#CustomResource"]
|
|
250
|
-
}, i = (r == null ? void 0 : r.language) ?? "de",
|
|
250
|
+
}, i = (r == null ? void 0 : r.language) ?? "de", o = s(
|
|
251
251
|
m((v = e["Grundlegende Informationen/Name"]) == null ? void 0 : v.projectName),
|
|
252
252
|
n.map((l) => Q(l)),
|
|
253
253
|
n.filter((l) => l.length > 0),
|
|
@@ -256,9 +256,9 @@ function ue(e, r = {}) {
|
|
|
256
256
|
n.fromNullable(r == null ? void 0 : r.identifier),
|
|
257
257
|
n.map((l) => l.trim()),
|
|
258
258
|
n.filter((l) => l.length > 0),
|
|
259
|
-
n.getOrElse(() =>
|
|
260
|
-
),
|
|
261
|
-
t["dct:title"] = s(
|
|
259
|
+
n.getOrElse(() => o ?? "__TODO__")
|
|
260
|
+
), a = J(i);
|
|
261
|
+
t["dct:title"] = s($((S = e["Grundlegende Informationen/Name"]) == null ? void 0 : S.projectName, a), n.getOrThrow), t["dct:description"] = s($((b = e["Grundlegende Informationen/Beschreibung"]) == null ? void 0 : b.projectDescription, a), n.getOrThrow), t["dct:identifier"] = [c], t["dcat:theme"] = s(te((k = e["Auffindbarkeit/Kategorien"]) == null ? void 0 : k.categories), n.getOrThrow), t["schema:application"] = (w = e["Auffindbarkeit/Anwendungsbereiche"]) == null ? void 0 : w.applications, t["schema:status"] = s(m((y = e["Grundlegende Informationen/Projektstatus"]) == null ? void 0 : y.projectName), n.getOrThrow), t["schema:amount"] = s(
|
|
262
262
|
ee((O = e["Optionale Daten"]) == null ? void 0 : O.budget, "http://www.w3.org/2001/XMLSchema#integer"),
|
|
263
263
|
n.map((l) => {
|
|
264
264
|
var g;
|
|
@@ -270,9 +270,9 @@ function ue(e, r = {}) {
|
|
|
270
270
|
};
|
|
271
271
|
}),
|
|
272
272
|
n.getOrUndefined
|
|
273
|
-
), t["schema:skills"] = s(ne((h = e["Optionale Daten"]) == null ? void 0 : h.requiredExpertise), n.getOrUndefined), t["schema:startDate"] = s(m((
|
|
273
|
+
), t["schema:skills"] = s(ne((h = e["Optionale Daten"]) == null ? void 0 : h.requiredExpertise), n.getOrUndefined), t["schema:startDate"] = s(m((_ = e["Optionale Daten"]) == null ? void 0 : _.startDate), n.getOrUndefined), t["schema:endDate"] = s(m((E = e["Optionale Daten"]) == null ? void 0 : E.endDate), n.getOrUndefined);
|
|
274
274
|
const p = [
|
|
275
|
-
|
|
275
|
+
C(
|
|
276
276
|
(K = e["Optionale Daten"]) == null ? void 0 : K.links,
|
|
277
277
|
(l) => {
|
|
278
278
|
const g = s(m(l.url), n.getOrUndefined);
|
|
@@ -285,7 +285,7 @@ function ue(e, r = {}) {
|
|
|
285
285
|
},
|
|
286
286
|
"documentation"
|
|
287
287
|
),
|
|
288
|
-
|
|
288
|
+
C(
|
|
289
289
|
(B = e["Optionale Daten"]) == null ? void 0 : B.references,
|
|
290
290
|
(l) => {
|
|
291
291
|
const g = s(m(l.homepage), n.getOrUndefined);
|
|
@@ -343,10 +343,10 @@ function ue(e, r = {}) {
|
|
|
343
343
|
]);
|
|
344
344
|
t["schema:hasPart"] = f(I);
|
|
345
345
|
const L = A([
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
346
|
+
P({ prefixKey: "1. Datenerfassung", activityLabel: "Datenerfassung", input: e, toLanged: a, context: r }),
|
|
347
|
+
P({ prefixKey: "2. Datenverarbeitung", activityLabel: "Datenverarbeitung", input: e, toLanged: a, context: r }),
|
|
348
|
+
P({ prefixKey: "3. Datensimulation", activityLabel: "Datensimulation", input: e, toLanged: a, context: r }),
|
|
349
|
+
P({ prefixKey: "4. Datenvisualisierung", activityLabel: "Datenvisualisierung", input: e, toLanged: a, context: r })
|
|
350
350
|
]);
|
|
351
351
|
return t["p-plan:hasStep"] = f(L), {
|
|
352
352
|
"@context": {
|
|
@@ -357,7 +357,7 @@ function ue(e, r = {}) {
|
|
|
357
357
|
}
|
|
358
358
|
export {
|
|
359
359
|
ue as encodeProject,
|
|
360
|
-
|
|
360
|
+
U as isNonNullable,
|
|
361
361
|
Q as slugify,
|
|
362
362
|
Y as toLangedValue,
|
|
363
363
|
W as toNodeReference,
|
|
@@ -752,7 +752,7 @@ const tt = be({
|
|
|
752
752
|
data: S,
|
|
753
753
|
authToken: de.value,
|
|
754
754
|
publicationStatus: K === "publish" ? "published" : "draft",
|
|
755
|
-
|
|
755
|
+
accessLevel: ((N = (X = (G = (Z = L.value) == null ? void 0 : Z.Discoverability) == null ? void 0 : G.visibilityPage) == null ? void 0 : X[0]) == null ? void 0 : N.visibility) || ne.query.visibility || "public",
|
|
756
756
|
type: "dataset"
|
|
757
757
|
}), (Y = this.$Progress) == null || Y.finish(), this.clearAll();
|
|
758
758
|
} catch (Q) {
|