@piveau/dpi 0.1.0-beta.41 → 0.1.0-beta.43
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/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +20 -19
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +82 -82
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +245 -245
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +208 -199
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +163 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +49 -43
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +19 -6
- package/dist/data-provider-interface/views/InputPage.vue.js +95 -96
- package/package.json +1 -1
package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as d, getCurrentInstance as _, onMounted as P, computed as S, watch as z, createElementBlock as g, openBlock as c, Fragment as
|
|
1
|
+
import { ref as d, getCurrentInstance as _, onMounted as P, computed as S, watch as z, createElementBlock as g, openBlock as c, Fragment as h, createCommentVNode as w, renderList as W, unref as r, normalizeClass as $, createVNode as V, createBlock as A } from "vue";
|
|
2
2
|
import { getLanguages as N } from "../../services/dpiV3_apis.js";
|
|
3
3
|
import U from "../Dropdown.vue.js";
|
|
4
4
|
import q from "../ButtonV3.vue.js";
|
|
@@ -19,68 +19,68 @@ const Q = {
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["addLanguage", "deleteButtonClicked"],
|
|
21
21
|
setup(v, { emit: C }) {
|
|
22
|
-
const
|
|
22
|
+
const n = v;
|
|
23
23
|
let l = d([{ label: "", "@value": "", uri: "" }]), u = {};
|
|
24
24
|
const { formValues: k } = H(), { t: f } = E(), y = () => {
|
|
25
25
|
l.value.push({});
|
|
26
26
|
}, b = _(), B = b.appContext.app.config.globalProperties.$env, I = b.appContext.app.config.globalProperties.$i18n.locale;
|
|
27
27
|
let p = d([]);
|
|
28
28
|
u = k.value.DistributionSimple["dcat:distribution"].find(
|
|
29
|
-
(e) => e.id ===
|
|
29
|
+
(e) => e.id === n.distributionId
|
|
30
30
|
) || {}, P(async () => {
|
|
31
|
-
var e
|
|
32
|
-
|
|
31
|
+
var e;
|
|
32
|
+
u["dct:language"].length > 0 && (l.value = u["dct:language"]), p.value = (e = u["dct:language"]) == null ? void 0 : e.map((a) => a.label);
|
|
33
33
|
try {
|
|
34
|
-
const
|
|
35
|
-
s.value =
|
|
36
|
-
"@value":
|
|
37
|
-
label:
|
|
38
|
-
uri:
|
|
34
|
+
const a = await N(B.api.baseUrl, I);
|
|
35
|
+
s.value = a.map((t) => ({
|
|
36
|
+
"@value": t.label,
|
|
37
|
+
label: t.label,
|
|
38
|
+
uri: t.uri
|
|
39
39
|
}));
|
|
40
|
-
} catch (
|
|
41
|
-
console.error("Failed to load language data",
|
|
40
|
+
} catch (a) {
|
|
41
|
+
console.error("Failed to load language data", a);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
const s = d([]);
|
|
45
45
|
let L = d(p);
|
|
46
46
|
console.log("Titelliste", L);
|
|
47
|
-
const O = C, F = (e,
|
|
48
|
-
l.value.length > 1 ? (l.value[
|
|
47
|
+
const O = C, F = (e, a) => {
|
|
48
|
+
l.value.length > 1 ? (l.value[a] = {
|
|
49
49
|
label: e,
|
|
50
|
-
uri: s.value.find((
|
|
50
|
+
uri: s.value.find((t) => t["@value"] === e).uri || ""
|
|
51
51
|
}, u["dct:language"] = l.value) : (l.value[0] = {
|
|
52
52
|
"@value": e,
|
|
53
|
-
uri: s.value.find((
|
|
54
|
-
}, u["dct:language"][0] = l.value[0], s.value.find((
|
|
53
|
+
uri: s.value.find((t) => t["@value"] === e).uri || ""
|
|
54
|
+
}, u["dct:language"][0] = l.value[0], s.value.find((t) => t["@value"] === e).uri);
|
|
55
55
|
}, m = d(""), x = (e) => {
|
|
56
56
|
m.value = e, console.log(m);
|
|
57
57
|
}, T = S(() => s.value.filter(
|
|
58
58
|
(e) => {
|
|
59
|
-
var
|
|
60
|
-
return (
|
|
59
|
+
var a, t, o, i;
|
|
60
|
+
return (i = (a = e["@value"]) == null ? void 0 : a.toLowerCase()) == null ? void 0 : i.trim().startsWith((o = (t = m.value) == null ? void 0 : t.toLowerCase()) == null ? void 0 : o.trim());
|
|
61
61
|
}
|
|
62
62
|
));
|
|
63
63
|
z(
|
|
64
|
-
() =>
|
|
64
|
+
() => n.languageText,
|
|
65
65
|
(e) => {
|
|
66
66
|
p.value = e;
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
const D = () => {
|
|
70
|
-
console.log("delete clicked"), O("deleteButtonClicked",
|
|
70
|
+
console.log("delete clicked"), O("deleteButtonClicked", n.distributionId);
|
|
71
71
|
};
|
|
72
|
-
return (e,
|
|
73
|
-
(c(!0), g(
|
|
72
|
+
return (e, a) => (c(), g(h, null, [
|
|
73
|
+
(c(!0), g(h, null, W(r(l), (t, o) => (c(), g("div", {
|
|
74
74
|
class: $([{
|
|
75
|
-
repeatableOuter: !
|
|
76
|
-
dpiV3AutoCompleteWrap: !
|
|
75
|
+
repeatableOuter: !n.inOverview,
|
|
76
|
+
dpiV3AutoCompleteWrap: !n.inOverview
|
|
77
77
|
}, "langDropdown"])
|
|
78
78
|
}, [
|
|
79
79
|
V(U, {
|
|
80
|
-
"onUpdate:modelValue": [(
|
|
80
|
+
"onUpdate:modelValue": [(i) => F(i, o), (i) => r(l)[o].label = i],
|
|
81
81
|
dropdownWidth: "large",
|
|
82
82
|
type: "inputField",
|
|
83
|
-
modelValue: r(l)[
|
|
83
|
+
modelValue: r(l)[o].label,
|
|
84
84
|
inputFieldProps: {
|
|
85
85
|
addOnText: !1,
|
|
86
86
|
initialHintText: !1,
|
|
@@ -95,28 +95,28 @@ const Q = {
|
|
|
95
95
|
"message.dataupload.datasets.dcat:distribution.advanced.language-placeholder"
|
|
96
96
|
),
|
|
97
97
|
inputFieldSize: "large",
|
|
98
|
-
modelValue: r(p)[
|
|
98
|
+
modelValue: r(p)[o],
|
|
99
99
|
defaultInput: !v.showDeleteButton
|
|
100
100
|
},
|
|
101
101
|
data: T.value,
|
|
102
102
|
onDeleteDropdownField: D,
|
|
103
103
|
onInput: x
|
|
104
104
|
}, null, 8, ["onUpdate:modelValue", "modelValue", "inputFieldProps", "data"]),
|
|
105
|
-
|
|
105
|
+
n.inOverview ? w("", !0) : (c(), A(M, {
|
|
106
106
|
key: 0,
|
|
107
107
|
"button-text": "löschen",
|
|
108
108
|
class: "rightAlign",
|
|
109
|
-
onClick: (
|
|
109
|
+
onClick: (i) => r(l).splice(o, 1)
|
|
110
110
|
}, null, 8, ["onClick"]))
|
|
111
111
|
], 2))), 256)),
|
|
112
|
-
|
|
112
|
+
n.inOverview ? w("", !0) : (c(), g("div", Q, [
|
|
113
113
|
V(q, {
|
|
114
114
|
buttonText: "Weitere hinzufügen",
|
|
115
115
|
size: "large",
|
|
116
116
|
iconStart: "plus",
|
|
117
117
|
variant: "tertiary",
|
|
118
118
|
class: "mt-3",
|
|
119
|
-
onClick:
|
|
119
|
+
onClick: a[0] || (a[0] = (t) => y())
|
|
120
120
|
})
|
|
121
121
|
]))
|
|
122
122
|
], 64));
|
package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as d, onMounted as f, getCurrentInstance as v, watch as m, createBlock as S, openBlock as b } from "vue";
|
|
2
|
-
import { getDatasetStatus as
|
|
3
|
-
import
|
|
2
|
+
import { getDatasetStatus as g } from "../../services/dpiV3_apis.js";
|
|
3
|
+
import x from "../Dropdown.vue.js";
|
|
4
4
|
const T = {
|
|
5
5
|
__name: "StatusV3",
|
|
6
6
|
props: {
|
|
@@ -9,41 +9,42 @@ const T = {
|
|
|
9
9
|
statusText: { type: String, default: "" }
|
|
10
10
|
},
|
|
11
11
|
emits: ["addStatus", "deleteButtonClicked"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(u, { emit: i }) {
|
|
13
|
+
const l = d([]);
|
|
14
14
|
f(async () => {
|
|
15
15
|
const t = v().appContext.app.config.globalProperties.$env;
|
|
16
16
|
try {
|
|
17
|
-
const e = await
|
|
18
|
-
console.log(e),
|
|
19
|
-
"@value":
|
|
20
|
-
|
|
17
|
+
const e = await g(t.api.baseUrl);
|
|
18
|
+
console.log(e), l.value = e.flatMap((o) => o.value === "OP_DATPRO" ? [] : o.value === "DEVELOP" ? [] : o.value === "DISCONT" ? [] : [{
|
|
19
|
+
"@value": o.label,
|
|
20
|
+
uri: o.resource,
|
|
21
21
|
selected: !1
|
|
22
22
|
}]);
|
|
23
23
|
} catch (e) {
|
|
24
24
|
console.error("Failed to load dataset status data:", e);
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const n = u, s = d(n.statusText), r = i, p = (a) => {
|
|
28
|
+
const t = l.value.find((e) => e["@value"] === a);
|
|
29
|
+
console.log(t, l), r("addStatus", t, n.distributionId);
|
|
29
30
|
};
|
|
30
31
|
m(
|
|
31
|
-
() =>
|
|
32
|
+
() => n.statusText,
|
|
32
33
|
(a) => {
|
|
33
|
-
|
|
34
|
+
s.value = a;
|
|
34
35
|
}
|
|
35
36
|
);
|
|
36
37
|
const c = () => {
|
|
37
|
-
r("deleteButtonClicked",
|
|
38
|
+
r("deleteButtonClicked", n.distributionId);
|
|
38
39
|
};
|
|
39
|
-
return (a, t) => (b(), S(
|
|
40
|
+
return (a, t) => (b(), S(x, {
|
|
40
41
|
"onUpdate:modelValue": [
|
|
41
42
|
t[0] || (t[0] = (e) => p(e)),
|
|
42
|
-
t[1] || (t[1] = (e) =>
|
|
43
|
+
t[1] || (t[1] = (e) => s.value = e)
|
|
43
44
|
],
|
|
44
45
|
dropdownWidth: "large",
|
|
45
46
|
type: "inputField",
|
|
46
|
-
modelValue:
|
|
47
|
+
modelValue: s.value,
|
|
47
48
|
inputFieldProps: {
|
|
48
49
|
addOnText: !1,
|
|
49
50
|
initialHintText: !1,
|
|
@@ -54,10 +55,10 @@ const T = {
|
|
|
54
55
|
dropdown_dpiV3: !0,
|
|
55
56
|
placeholder: "Geben Sie den Status ein...",
|
|
56
57
|
inputFieldSize: "large",
|
|
57
|
-
modelValue:
|
|
58
|
-
defaultInput: !
|
|
58
|
+
modelValue: s.value,
|
|
59
|
+
defaultInput: !u.showDeleteButton
|
|
59
60
|
},
|
|
60
|
-
data:
|
|
61
|
+
data: l.value,
|
|
61
62
|
onDeleteDropdownField: c
|
|
62
63
|
}, null, 8, ["modelValue", "inputFieldProps", "data"]));
|
|
63
64
|
}
|
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { ref as H, getCurrentInstance as we, reactive as Ve, watch as Te, computed as re, resolveComponent as W, createElementBlock as v, openBlock as m, Fragment as P, createVNode as h, createCommentVNode as s, withCtx as R, createTextVNode as Ie, toDisplayString as T, createBlock as d, renderList as B, createElementVNode as I, unref as k, isRef as G } from "vue";
|
|
2
|
+
import J from "../ButtonV3.vue.js";
|
|
3
|
+
import F from "../InputField.vue.js";
|
|
4
4
|
import ue from "../TextAreaV3.vue.js";
|
|
5
|
-
import
|
|
6
|
-
import { PhWarning as
|
|
5
|
+
import K from "../Dropdown.vue.js";
|
|
6
|
+
import { PhWarning as A } from "@phosphor-icons/vue";
|
|
7
7
|
import "@formkit/core";
|
|
8
|
-
import { getOptionalURIs as
|
|
9
|
-
import { useFormValues as
|
|
10
|
-
import
|
|
8
|
+
import { getOptionalURIs as Fe } from "../../services/dpiV3_apis.js";
|
|
9
|
+
import { useFormValues as Ce } from "../../../composables/useDpiFormValues.js";
|
|
10
|
+
import Ee from "../TextButtonSmall.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
const
|
|
12
|
+
const He = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "dpiV3_errorMessage"
|
|
15
|
-
},
|
|
15
|
+
}, Ae = { class: "copy-mini-regular" }, Oe = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "dpiV3_errorMessage"
|
|
18
|
-
},
|
|
18
|
+
}, ze = { class: "copy-mini-regular" }, Pe = {
|
|
19
19
|
key: 6,
|
|
20
20
|
class: "dpiV3_errorMessage"
|
|
21
21
|
}, Re = { class: "copy-mini-regular" }, Ne = {
|
|
@@ -27,39 +27,39 @@ const Ce = {
|
|
|
27
27
|
}, Ue = { class: "copy-mini-regular" }, We = {
|
|
28
28
|
key: 3,
|
|
29
29
|
class: "dpiV3_errorMessage"
|
|
30
|
-
},
|
|
30
|
+
}, Be = { class: "copy-mini-regular" }, Le = {
|
|
31
31
|
key: 6,
|
|
32
32
|
class: "dpiV3_errorMessage"
|
|
33
|
-
},
|
|
33
|
+
}, je = { class: "copy-mini-regular" }, qe = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "dpiV3_tempAddMore"
|
|
36
|
-
},
|
|
36
|
+
}, Ge = { class: "dpiV3_actionButtonWrap" }, lt = {
|
|
37
37
|
__name: "AdditionalsSubModal",
|
|
38
38
|
props: {
|
|
39
39
|
context: Object,
|
|
40
40
|
item: Object
|
|
41
41
|
},
|
|
42
42
|
setup(e, { emit: me }) {
|
|
43
|
-
const
|
|
44
|
-
let N =
|
|
45
|
-
const { formValues:
|
|
43
|
+
const Z = me;
|
|
44
|
+
let N = H([{}]), O = H([]), S = H(!1), $ = H(), ce = we().appContext.app.config.globalProperties.$env;
|
|
45
|
+
const { formValues: L } = Ce(), n = Ve({}), a = H([]), C = e;
|
|
46
46
|
Te(() => {
|
|
47
47
|
var l;
|
|
48
|
-
return (l =
|
|
48
|
+
return (l = L.value.Additionals) == null ? void 0 : l[C.item.name];
|
|
49
49
|
}, (l) => {
|
|
50
50
|
l && l.length > 0 && (a.value = JSON.parse(JSON.stringify(l)));
|
|
51
51
|
}, { immediate: !0 });
|
|
52
|
-
const se = re(() => a.value.length === 0 ? [{}] : a.value),
|
|
52
|
+
const se = re(() => a.value.length === 0 ? [{}] : a.value), j = (l) => l ? Object.entries(l).some(([i, r]) => typeof r == "string" ? r.trim() !== "" : typeof r == "object" && r !== null ? j(r) : !1) : !1, fe = (l) => {
|
|
53
53
|
if (!l || l.trim() === "") return !1;
|
|
54
54
|
try {
|
|
55
55
|
return new URL(l.trim()), !0;
|
|
56
56
|
} catch {
|
|
57
|
-
return /^
|
|
57
|
+
return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(l.trim());
|
|
58
58
|
}
|
|
59
59
|
}, M = (l, i = null) => {
|
|
60
|
-
const r =
|
|
60
|
+
const r = C.item.identifier;
|
|
61
61
|
let u = i !== null ? `${r}-${i}` : r;
|
|
62
|
-
if (n[u] = null, !
|
|
62
|
+
if (n[u] = null, !j(l))
|
|
63
63
|
return !0;
|
|
64
64
|
switch (r) {
|
|
65
65
|
case "conformsTo":
|
|
@@ -94,18 +94,18 @@ const Ce = {
|
|
|
94
94
|
Object.keys(n).forEach((u) => {
|
|
95
95
|
n[u] = null;
|
|
96
96
|
});
|
|
97
|
-
const i =
|
|
97
|
+
const i = C.item.identifier;
|
|
98
98
|
return ["conformsTo", "temporalResolution", "creator", "contributor"].includes(i) && a.value.forEach((u, f) => {
|
|
99
99
|
M(u, f) || (l = !1);
|
|
100
100
|
}), l;
|
|
101
101
|
}, ve = (l) => {
|
|
102
102
|
a.value.push({});
|
|
103
103
|
}, he = () => {
|
|
104
|
-
|
|
104
|
+
Z("goBack", !1);
|
|
105
105
|
}, ke = (l, i) => {
|
|
106
|
-
a.value.splice(i, 1), delete n[`${
|
|
106
|
+
a.value.splice(i, 1), delete n[`${C.item.identifier}-${i}`];
|
|
107
107
|
}, Y = re(() => {
|
|
108
|
-
if (
|
|
108
|
+
if (C.item.identifier !== "temporalResolution") return null;
|
|
109
109
|
for (let l = 0; l < a.value.length; l++) {
|
|
110
110
|
const i = `temporalResolution-${l}`;
|
|
111
111
|
if (n[i])
|
|
@@ -136,20 +136,20 @@ const Ce = {
|
|
|
136
136
|
}, 0);
|
|
137
137
|
}, ye = (l) => ($.value = l.pref_label.de, N.value = [
|
|
138
138
|
{ "@value": l.pref_label.de, uri: l.resource }
|
|
139
|
-
], l),
|
|
139
|
+
], l), q = async (l, i, r) => {
|
|
140
140
|
if (r === "select") {
|
|
141
|
-
let u =
|
|
141
|
+
let u = H([]);
|
|
142
142
|
if (l.forEach((f) => {
|
|
143
143
|
u.value.push({ "@value": f, selected: !1 });
|
|
144
144
|
}), i !== "")
|
|
145
145
|
try {
|
|
146
|
-
|
|
146
|
+
O.value = u.value;
|
|
147
147
|
} catch (f) {
|
|
148
148
|
console.log(f);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
if (r === "auto") {
|
|
152
|
-
let u =
|
|
152
|
+
let u = H(await Fe(i, ce.api.baseUrl, l));
|
|
153
153
|
if (i !== "")
|
|
154
154
|
try {
|
|
155
155
|
const f = {
|
|
@@ -158,7 +158,7 @@ const Ce = {
|
|
|
158
158
|
return p && i.trim() && (p == null ? void 0 : p.toLowerCase().startsWith(i.trim().toLowerCase()));
|
|
159
159
|
})
|
|
160
160
|
};
|
|
161
|
-
f.uri = u.value.filter((y) => y.resource),
|
|
161
|
+
f.uri = u.value.filter((y) => y.resource), O.value = f.label;
|
|
162
162
|
} catch (f) {
|
|
163
163
|
console.log(f);
|
|
164
164
|
}
|
|
@@ -166,8 +166,8 @@ const Ce = {
|
|
|
166
166
|
}, pe = () => {
|
|
167
167
|
if (!de())
|
|
168
168
|
return;
|
|
169
|
-
const l = a.value.filter((i) =>
|
|
170
|
-
l.length > 0 && (
|
|
169
|
+
const l = a.value.filter((i) => j(i));
|
|
170
|
+
l.length > 0 && (L.value.Additionals[C.item.name] = l), S.value && (L.value.Additionals[C.item.name] = N.value), Z("sst", "close");
|
|
171
171
|
};
|
|
172
172
|
return (l, i) => {
|
|
173
173
|
const r = W("additionalText"), u = W("itemWrapperAdditionals"), f = W("activeItem"), y = W("interaction");
|
|
@@ -180,17 +180,17 @@ const Ce = {
|
|
|
180
180
|
}),
|
|
181
181
|
h(f, null, {
|
|
182
182
|
default: R(() => [
|
|
183
|
-
e.item.$formkit === "repeatable" ? (m(!0), v(P, { key: 0 },
|
|
183
|
+
e.item.$formkit === "repeatable" ? (m(!0), v(P, { key: 0 }, B(se.value, (p, o) => (m(), v("div", {
|
|
184
184
|
class: "repeatableOuter dpiV3AutoCompleteWrap",
|
|
185
185
|
key: o
|
|
186
186
|
}, [
|
|
187
|
-
e.item.$formkit === "repeatable" ? (m(!0), v(P, { key: 0 },
|
|
187
|
+
e.item.$formkit === "repeatable" ? (m(!0), v(P, { key: 0 }, B(e.item.children[0].children.filter(
|
|
188
188
|
(t) => t.$formkit !== "group"
|
|
189
189
|
), (t, b) => (m(), d(u, { key: b }, {
|
|
190
190
|
default: R(() => {
|
|
191
|
-
var V, g,
|
|
191
|
+
var V, g, E, z, U, Q, X, D, x, _, ee, te, le, ae, ie, oe, ne;
|
|
192
192
|
return [
|
|
193
|
-
t.$formkit === "url" && e.item.name === "@id" ? (m(), d(
|
|
193
|
+
t.$formkit === "url" && e.item.name === "@id" ? (m(), d(F, {
|
|
194
194
|
key: 0,
|
|
195
195
|
label: t.label,
|
|
196
196
|
placeholder: e.item.placeholder,
|
|
@@ -203,7 +203,7 @@ const Ce = {
|
|
|
203
203
|
"model-value": (V = a.value[o]) == null ? void 0 : V["@id"],
|
|
204
204
|
"v-model": (g = a.value[o]) == null ? void 0 : g["@id"]
|
|
205
205
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : s("", !0),
|
|
206
|
-
t.$formkit === "url" && e.item.name != "@id" ? (m(), d(
|
|
206
|
+
t.$formkit === "url" && e.item.name != "@id" ? (m(), d(F, {
|
|
207
207
|
key: 1,
|
|
208
208
|
label: t.label,
|
|
209
209
|
placeholder: e.item.placeholder,
|
|
@@ -213,17 +213,17 @@ const Ce = {
|
|
|
213
213
|
"show-error": !1,
|
|
214
214
|
onInput: (c) => w(c, e.item.name, o, t.name),
|
|
215
215
|
initialHintText: !1,
|
|
216
|
-
"model-value": (
|
|
217
|
-
"v-model": (
|
|
216
|
+
"model-value": (E = a.value[o]) == null ? void 0 : E[t.name],
|
|
217
|
+
"v-model": (z = a.value[o]) == null ? void 0 : z[t.name]
|
|
218
218
|
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"])) : s("", !0),
|
|
219
|
-
t.$formkit === "url" && t.label != "Homepage" && t.label != "Contributor Homepage" && e.item.name != "@id" && n[`${e.item.identifier}-${o}`] ? (m(), v("div",
|
|
220
|
-
h(k(
|
|
219
|
+
t.$formkit === "url" && t.label != "Homepage" && t.label != "Contributor Homepage" && e.item.name != "@id" && n[`${e.item.identifier}-${o}`] ? (m(), v("div", He, [
|
|
220
|
+
h(k(A), {
|
|
221
221
|
size: 16,
|
|
222
222
|
weight: "fill"
|
|
223
223
|
}),
|
|
224
|
-
I("span",
|
|
224
|
+
I("span", Ae, T(n[`${e.item.identifier}-${o}`]), 1)
|
|
225
225
|
])) : s("", !0),
|
|
226
|
-
t.$formkit === "text" && e.item.name === "@value" ? (m(), d(
|
|
226
|
+
t.$formkit === "text" && e.item.name === "@value" ? (m(), d(F, {
|
|
227
227
|
key: 3,
|
|
228
228
|
label: t.label,
|
|
229
229
|
placeholder: e.item.placeholder,
|
|
@@ -236,14 +236,14 @@ const Ce = {
|
|
|
236
236
|
"model-value": (U = a.value[o]) == null ? void 0 : U["@value"],
|
|
237
237
|
"v-model": (Q = a.value[o]) == null ? void 0 : Q["@value"]
|
|
238
238
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : s("", !0),
|
|
239
|
-
t.$formkit === "text" && e.item.name === "@value" && n[`${e.item.identifier}-${o}`] ? (m(), v("div",
|
|
240
|
-
h(k(
|
|
239
|
+
t.$formkit === "text" && e.item.name === "@value" && n[`${e.item.identifier}-${o}`] ? (m(), v("div", Oe, [
|
|
240
|
+
h(k(A), {
|
|
241
241
|
size: 16,
|
|
242
242
|
weight: "fill"
|
|
243
243
|
}),
|
|
244
|
-
I("span",
|
|
244
|
+
I("span", ze, T(n[`${e.item.identifier}-${o}`]), 1)
|
|
245
245
|
])) : s("", !0),
|
|
246
|
-
t.$formkit === "text" && e.item.name != "@value" ? (m(), d(
|
|
246
|
+
t.$formkit === "text" && e.item.name != "@value" ? (m(), d(F, {
|
|
247
247
|
key: 5,
|
|
248
248
|
label: t.label,
|
|
249
249
|
placeholder: e.item.placeholder,
|
|
@@ -257,17 +257,17 @@ const Ce = {
|
|
|
257
257
|
"v-model": (D = a.value[o]) == null ? void 0 : D[t.name]
|
|
258
258
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : s("", !0),
|
|
259
259
|
t.$formkit === "text" && t.name === "foaf:name" && n[`${e.item.identifier}-${o}`] ? (m(), v("div", Pe, [
|
|
260
|
-
h(k(
|
|
260
|
+
h(k(A), {
|
|
261
261
|
size: 16,
|
|
262
262
|
weight: "fill"
|
|
263
263
|
}),
|
|
264
264
|
I("span", Re, T(n[`${e.item.identifier}-${o}`]), 1)
|
|
265
265
|
])) : s("", !0),
|
|
266
|
-
t.$formkit === "select" && t.identifier !== "language" ? (m(), d(
|
|
266
|
+
t.$formkit === "select" && t.identifier !== "language" ? (m(), d(K, {
|
|
267
267
|
key: 7,
|
|
268
268
|
dropdownWidth: "large",
|
|
269
269
|
type: "inputField",
|
|
270
|
-
onClick: (c) =>
|
|
270
|
+
onClick: (c) => q(
|
|
271
271
|
Object.values(t.options),
|
|
272
272
|
c,
|
|
273
273
|
t.$formkit
|
|
@@ -288,16 +288,16 @@ const Ce = {
|
|
|
288
288
|
showError: e.item.identifier === "temporalResolution" && !!n[`${e.item.identifier}-${o}`]
|
|
289
289
|
},
|
|
290
290
|
"onUpdate:modelValue": (c) => $e(c, e.item.name, o, t.name),
|
|
291
|
-
data: k(
|
|
291
|
+
data: k(O),
|
|
292
292
|
autocomplete: !1
|
|
293
293
|
}, null, 8, ["onClick", "v-model", "inputFieldProps", "onUpdate:modelValue", "data"])) : s("", !0),
|
|
294
|
-
t.$formkit === "auto" ? (m(), d(
|
|
294
|
+
t.$formkit === "auto" ? (m(), d(K, {
|
|
295
295
|
key: 8,
|
|
296
296
|
dropdownWidth: "large",
|
|
297
297
|
type: "inputField",
|
|
298
|
-
onInput: (c) =>
|
|
298
|
+
onInput: (c) => q(e.item.voc, c, t.$formkit),
|
|
299
299
|
modelValue: k($),
|
|
300
|
-
"onUpdate:modelValue": i[0] || (i[0] = (c) =>
|
|
300
|
+
"onUpdate:modelValue": i[0] || (i[0] = (c) => G($) ? $.value = c : $ = c),
|
|
301
301
|
inputFieldProps: {
|
|
302
302
|
addOnText: !1,
|
|
303
303
|
initialHintText: !1,
|
|
@@ -313,7 +313,7 @@ const Ce = {
|
|
|
313
313
|
showError: !1
|
|
314
314
|
},
|
|
315
315
|
onChosenVocItem: (c) => be(c, o, e.item.name),
|
|
316
|
-
data: k(
|
|
316
|
+
data: k(O),
|
|
317
317
|
autocomplete: !0
|
|
318
318
|
}, null, 8, ["onInput", "modelValue", "inputFieldProps", "onChosenVocItem", "data"])) : s("", !0),
|
|
319
319
|
t.$formkit === "textarea" && e.item.name === "@value" ? (m(), d(ue, {
|
|
@@ -338,7 +338,7 @@ const Ce = {
|
|
|
338
338
|
initialHintText: !1,
|
|
339
339
|
"model-value": (oe = a.value[o]) == null ? void 0 : oe[t.name]
|
|
340
340
|
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : s("", !0),
|
|
341
|
-
t.$formkit === "email" ? (m(), d(
|
|
341
|
+
t.$formkit === "email" ? (m(), d(F, {
|
|
342
342
|
key: 11,
|
|
343
343
|
label: t.label,
|
|
344
344
|
placeholder: e.item.placeholder,
|
|
@@ -356,13 +356,13 @@ const Ce = {
|
|
|
356
356
|
_: 2
|
|
357
357
|
}, 1024))), 128)) : s("", !0),
|
|
358
358
|
e.item.identifier === "temporalResolution" && n[`${e.item.identifier}-${o}`] ? (m(), v("div", Ne, [
|
|
359
|
-
h(k(
|
|
359
|
+
h(k(A), {
|
|
360
360
|
size: 16,
|
|
361
361
|
weight: "fill"
|
|
362
362
|
}),
|
|
363
363
|
I("span", Se, T(n[`${e.item.identifier}-${o}`]), 1)
|
|
364
364
|
])) : s("", !0),
|
|
365
|
-
h(
|
|
365
|
+
h(Ee, {
|
|
366
366
|
"button-text": "löschen",
|
|
367
367
|
class: "rightAlign",
|
|
368
368
|
onClick: (t) => ke(e.item.name, o)
|
|
@@ -372,7 +372,7 @@ const Ce = {
|
|
|
372
372
|
default: R(() => {
|
|
373
373
|
var p, o;
|
|
374
374
|
return [
|
|
375
|
-
e.item.$formkit === "simpleInput" ? (m(), d(
|
|
375
|
+
e.item.$formkit === "simpleInput" ? (m(), d(F, {
|
|
376
376
|
key: 0,
|
|
377
377
|
label: e.item.label,
|
|
378
378
|
placeholder: e.item.placeholder,
|
|
@@ -385,15 +385,15 @@ const Ce = {
|
|
|
385
385
|
"model-value": (p = a.value[0]) == null ? void 0 : p["@value"]
|
|
386
386
|
}, null, 8, ["label", "placeholder", "show-error", "model-value"])) : s("", !0),
|
|
387
387
|
e.item.$formkit === "simpleInput" && n[e.item.identifier] ? (m(), v("div", Me, [
|
|
388
|
-
h(k(
|
|
388
|
+
h(k(A), {
|
|
389
389
|
size: 16,
|
|
390
390
|
weight: "fill"
|
|
391
391
|
}),
|
|
392
392
|
I("span", Ue, T(n[e.item.identifier]), 1)
|
|
393
393
|
])) : s("", !0),
|
|
394
|
-
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (m(!0), v(P, { key: 2 },
|
|
394
|
+
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (m(!0), v(P, { key: 2 }, B(e.item.children, (t, b) => {
|
|
395
395
|
var V, g;
|
|
396
|
-
return m(), d(
|
|
396
|
+
return m(), d(F, {
|
|
397
397
|
key: b,
|
|
398
398
|
label: t.label,
|
|
399
399
|
placeholder: e.item.placeholder,
|
|
@@ -401,22 +401,22 @@ const Ce = {
|
|
|
401
401
|
preIcon: !1,
|
|
402
402
|
showEndIcon: !1,
|
|
403
403
|
"show-error": !!n[e.item.identifier],
|
|
404
|
-
onInput: (
|
|
404
|
+
onInput: (E) => w(E, e.item.name, b, t.name),
|
|
405
405
|
initialHintText: !1,
|
|
406
406
|
"model-value": (V = a.value[b]) == null ? void 0 : V[t.name],
|
|
407
407
|
"v-model": (g = a.value[b]) == null ? void 0 : g[t.name]
|
|
408
408
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"]);
|
|
409
409
|
}), 128)) : s("", !0),
|
|
410
410
|
Y.value ? (m(), v("div", We, [
|
|
411
|
-
h(k(
|
|
411
|
+
h(k(A), {
|
|
412
412
|
size: 16,
|
|
413
413
|
weight: "fill"
|
|
414
414
|
}),
|
|
415
|
-
I("span",
|
|
415
|
+
I("span", Be, T(Y.value.message), 1)
|
|
416
416
|
])) : s("", !0),
|
|
417
|
-
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (m(!0), v(P, { key: 4 },
|
|
418
|
-
var V, g,
|
|
419
|
-
return m(), d(
|
|
417
|
+
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (m(!0), v(P, { key: 4 }, B(e.item.children, (t, b) => {
|
|
418
|
+
var V, g, E, z;
|
|
419
|
+
return m(), d(F, {
|
|
420
420
|
key: b,
|
|
421
421
|
label: t.label,
|
|
422
422
|
placeholder: e.item.placeholder,
|
|
@@ -429,18 +429,18 @@ const Ce = {
|
|
|
429
429
|
onInput: (U) => w(U, e.item.name, b, t.name),
|
|
430
430
|
initialHintText: !1,
|
|
431
431
|
"model-value": (g = (V = a.value[b]) == null ? void 0 : V[t.name]) == null ? void 0 : g["@value"],
|
|
432
|
-
"v-model": (
|
|
432
|
+
"v-model": (z = (E = a.value[b]) == null ? void 0 : E[t.name]) == null ? void 0 : z["@value"]
|
|
433
433
|
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"]);
|
|
434
434
|
}), 128)) : s("", !0),
|
|
435
|
-
e.item.$formkit === "auto" ? (m(), d(
|
|
435
|
+
e.item.$formkit === "auto" ? (m(), d(K, {
|
|
436
436
|
key: 5,
|
|
437
437
|
dropdownWidth: "large",
|
|
438
438
|
type: "inputField",
|
|
439
439
|
onInput: i[2] || (i[2] = (t) => {
|
|
440
|
-
|
|
440
|
+
q(e.item.voc, t, e.item.$formkit), G(S) ? S.value = !0 : S = !0;
|
|
441
441
|
}),
|
|
442
442
|
modelValue: k($),
|
|
443
|
-
"onUpdate:modelValue": i[3] || (i[3] = (t) =>
|
|
443
|
+
"onUpdate:modelValue": i[3] || (i[3] = (t) => G($) ? $.value = t : $ = t),
|
|
444
444
|
inputFieldProps: {
|
|
445
445
|
addOnText: !1,
|
|
446
446
|
initialHintText: !1,
|
|
@@ -456,15 +456,15 @@ const Ce = {
|
|
|
456
456
|
showError: !!n[e.item.identifier]
|
|
457
457
|
},
|
|
458
458
|
onChosenVocItem: ye,
|
|
459
|
-
data: k(
|
|
459
|
+
data: k(O),
|
|
460
460
|
autocomplete: !0
|
|
461
461
|
}, null, 8, ["modelValue", "inputFieldProps", "data"])) : s("", !0),
|
|
462
|
-
n[e.item.identifier] ? (m(), v("div",
|
|
463
|
-
h(k(
|
|
462
|
+
n[e.item.identifier] ? (m(), v("div", Le, [
|
|
463
|
+
h(k(A), {
|
|
464
464
|
size: 16,
|
|
465
465
|
weight: "fill"
|
|
466
466
|
}),
|
|
467
|
-
I("span",
|
|
467
|
+
I("span", je, T(n[e.item.identifier]), 1)
|
|
468
468
|
])) : s("", !0)
|
|
469
469
|
];
|
|
470
470
|
}),
|
|
@@ -473,8 +473,8 @@ const Ce = {
|
|
|
473
473
|
]),
|
|
474
474
|
_: 1
|
|
475
475
|
}),
|
|
476
|
-
e.item.$formkit === "repeatable" ? (m(), v("div",
|
|
477
|
-
h(
|
|
476
|
+
e.item.$formkit === "repeatable" ? (m(), v("div", qe, [
|
|
477
|
+
h(J, {
|
|
478
478
|
buttonText: "Weitere hinzufügen",
|
|
479
479
|
size: "large",
|
|
480
480
|
iconStart: "plus",
|
|
@@ -485,15 +485,15 @@ const Ce = {
|
|
|
485
485
|
])) : s("", !0),
|
|
486
486
|
h(y, { class: "dpiV3_interactionWrap" }, {
|
|
487
487
|
default: R(() => [
|
|
488
|
-
I("div",
|
|
489
|
-
h(
|
|
488
|
+
I("div", Ge, [
|
|
489
|
+
h(J, {
|
|
490
490
|
onClick: he,
|
|
491
491
|
buttonText: "Zurück",
|
|
492
492
|
size: "large",
|
|
493
493
|
iconStart: "CaretLeft",
|
|
494
494
|
variant: "tertiary"
|
|
495
495
|
}),
|
|
496
|
-
h(
|
|
496
|
+
h(J, {
|
|
497
497
|
onClick: pe,
|
|
498
498
|
buttonText: "Speichern",
|
|
499
499
|
size: "large"
|