@piveau/dpi 0.2.0-alpha.52 → 0.2.0-alpha.53
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/Organisation.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +44 -44
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +3 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +7 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +58 -50
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +23 -22
- package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +110 -112
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +2 -1
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +11 -10
- package/package.json +1 -1
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Organisation.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d75553ee"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useOrganizationInfo as
|
|
3
|
-
import { useTwinbyUser as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as h, computed as r, createElementBlock as t, openBlock as s, createElementVNode as a, unref as m, Fragment as f, toDisplayString as l } from "vue";
|
|
2
|
+
import { useOrganizationInfo as k } from "../composables/useOrganizationInfo.js";
|
|
3
|
+
import { useTwinbyUser as y } from "../composables/useTwinbyUser.js";
|
|
4
|
+
const b = { class: "dpiV3_organisation" }, V = { class: "dpiV3_organisationInfo" }, T = { key: 0 }, I = { key: 0 }, O = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "not-available"
|
|
7
|
-
},
|
|
7
|
+
}, E = { class: "dpiV3_organisationData" }, S = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "dpiV3_organisationTitle"
|
|
10
|
-
},
|
|
10
|
+
}, C = ["src"], D = { key: 1 }, F = { class: "info-wrapper" }, L = { class: "dpiV3_organisationTitle" }, w = { key: 0 }, x = {
|
|
11
11
|
key: 1,
|
|
12
12
|
class: "not-available"
|
|
13
|
-
},
|
|
13
|
+
}, z = { key: 2 }, B = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "not-available"
|
|
16
|
-
},
|
|
16
|
+
}, N = { class: "dpiV3_organisationTitle" }, M = { key: 0 }, P = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "not-available"
|
|
19
|
-
},
|
|
19
|
+
}, A = /* @__PURE__ */ h({
|
|
20
20
|
__name: "Organisation",
|
|
21
|
-
setup(
|
|
22
|
-
const { organization:
|
|
23
|
-
|
|
24
|
-
const { resultEnhanced:
|
|
25
|
-
id:
|
|
26
|
-
authToken:
|
|
21
|
+
setup(U) {
|
|
22
|
+
const { organization: p, authToken: v, startFetchPermissions: u } = y();
|
|
23
|
+
u();
|
|
24
|
+
const { resultEnhanced: n, isLoading: g } = k({
|
|
25
|
+
id: p,
|
|
26
|
+
authToken: v
|
|
27
27
|
}), d = r(
|
|
28
28
|
() => {
|
|
29
|
-
var
|
|
30
|
-
return ((
|
|
29
|
+
var i, e;
|
|
30
|
+
return ((i = n.value) == null ? void 0 : i.title) || ((e = n.value) == null ? void 0 : e.id) || "";
|
|
31
31
|
}
|
|
32
32
|
), c = r(
|
|
33
33
|
() => {
|
|
34
|
-
var
|
|
35
|
-
return ((e = (
|
|
34
|
+
var i, e;
|
|
35
|
+
return ((e = (i = n.value) == null ? void 0 : i.catalogueFavIcon) == null ? void 0 : e[0]) || "";
|
|
36
36
|
}
|
|
37
|
-
),
|
|
38
|
-
var
|
|
39
|
-
return ((e = (
|
|
37
|
+
), o = r(() => {
|
|
38
|
+
var i, e;
|
|
39
|
+
return ((e = (i = n.value) == null ? void 0 : i.publisher) == null ? void 0 : e.address) || {};
|
|
40
40
|
}), _ = r(() => {
|
|
41
|
-
var
|
|
42
|
-
return ((
|
|
41
|
+
var i;
|
|
42
|
+
return ((i = n.value) == null ? void 0 : i.publisher) || {};
|
|
43
43
|
});
|
|
44
|
-
return (
|
|
45
|
-
e[2] || (e[2] =
|
|
46
|
-
e[3] || (e[3] =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
d.value ? (s(), t("p",
|
|
50
|
-
|
|
51
|
-
c.value ? (s(), t("div",
|
|
52
|
-
|
|
44
|
+
return (i, e) => (s(), t("div", b, [
|
|
45
|
+
e[2] || (e[2] = a("h3", { class: "dpiV3_organisationTitle" }, " Ihre Organisation ", -1)),
|
|
46
|
+
e[3] || (e[3] = a("p", { class: "dpiV3_organisationDescription" }, " Wenn Sie die Informationen Ihrer Organisation ändern möchten, kontaktieren Sie uns gerne. ", -1)),
|
|
47
|
+
a("div", V, [
|
|
48
|
+
m(g) ? (s(), t("p", T, "Lade Organisationsdaten...")) : (s(), t(f, { key: 1 }, [
|
|
49
|
+
d.value ? (s(), t("p", I, l(d.value), 1)) : (s(), t("p", O, " Name nicht verfügbar ")),
|
|
50
|
+
a("div", E, [
|
|
51
|
+
c.value ? (s(), t("div", S, [
|
|
52
|
+
a("img", {
|
|
53
53
|
src: c.value,
|
|
54
54
|
alt: ""
|
|
55
|
-
}, null, 8,
|
|
56
|
-
])) : (s(), t("div",
|
|
57
|
-
|
|
55
|
+
}, null, 8, C)
|
|
56
|
+
])) : (s(), t("div", D, e[0] || (e[0] = [
|
|
57
|
+
a("div", { class: "avatar-circle" }, null, -1)
|
|
58
58
|
]))),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
a("div", F, [
|
|
60
|
+
a("div", L, [
|
|
61
|
+
o.value.street ? (s(), t("p", w, l(o.value.street), 1)) : (s(), t("p", x, " Straße nicht verfügbar ")),
|
|
62
|
+
o.value.postalCode || o.value.locality ? (s(), t("p", z, l(o.value.postalCode || "") + " " + l(o.value.locality || ""), 1)) : (s(), t("p", B, " Ort nicht verfügbar "))
|
|
63
63
|
]),
|
|
64
|
-
|
|
65
|
-
e[1] || (e[1] =
|
|
66
|
-
_.value.email ? (s(), t("p",
|
|
64
|
+
a("div", N, [
|
|
65
|
+
e[1] || (e[1] = a("p", { class: "not-available" }, " Telefon nicht verfügbar ", -1)),
|
|
66
|
+
_.value.email ? (s(), t("p", M, l(_.value.email), 1)) : (s(), t("p", P, " E-Mail nicht verfügbar "))
|
|
67
67
|
])
|
|
68
68
|
])
|
|
69
69
|
])
|
|
@@ -73,5 +73,5 @@ const T = { class: "dpiV3_organisation" }, I = { class: "dpiV3_organisationInfo"
|
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
export {
|
|
76
|
-
|
|
76
|
+
A as default
|
|
77
77
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t from "./InputFieldFormKit.vue.js";
|
|
2
|
-
const
|
|
2
|
+
const i = {
|
|
3
3
|
type: "input",
|
|
4
4
|
schema: [],
|
|
5
5
|
component: t,
|
|
@@ -7,6 +7,7 @@ const e = {
|
|
|
7
7
|
"inputType",
|
|
8
8
|
"addOnText",
|
|
9
9
|
"datePicker",
|
|
10
|
+
"date-picker",
|
|
10
11
|
"infoIcon",
|
|
11
12
|
"preIcon",
|
|
12
13
|
"showEndIcon",
|
|
@@ -21,5 +22,5 @@ const e = {
|
|
|
21
22
|
]
|
|
22
23
|
};
|
|
23
24
|
export {
|
|
24
|
-
|
|
25
|
+
i as default
|
|
25
26
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js
CHANGED
|
@@ -485,7 +485,7 @@ const le = { class: "dpiV3_input-field" }, ne = {
|
|
|
485
485
|
])) : o("", !0)
|
|
486
486
|
]));
|
|
487
487
|
}
|
|
488
|
-
}, Oe = /* @__PURE__ */ te(Me, [["__scopeId", "data-v-
|
|
488
|
+
}, Oe = /* @__PURE__ */ te(Me, [["__scopeId", "data-v-3dd4351a"]]);
|
|
489
489
|
export {
|
|
490
490
|
Oe as default
|
|
491
491
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "./OptionalDataStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ t(a, [["__scopeId", "data-v-a28ea0fa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, ref as f, computed as L, createElementBlock as h, openBlock as u, createElementVNode as t, createVNode as i, unref as l, withCtx as s, Fragment as
|
|
1
|
+
import { defineComponent as j, ref as f, computed as L, createElementBlock as h, openBlock as u, createElementVNode as t, createVNode as i, unref as l, withCtx as s, Fragment as k, renderList as y, createBlock as S, createTextVNode as U, createCommentVNode as $, withDirectives as A, vModelCheckbox as q } from "vue";
|
|
2
2
|
import { FormKit as o } from "@formkit/vue";
|
|
3
3
|
import { PhLightbulb as N } from "@phosphor-icons/vue";
|
|
4
4
|
import G from "../../../../stories/components/LinkCard.vue.js";
|
|
@@ -65,7 +65,7 @@ const J = { class: "dpiV3_page V3-typography" }, Q = {
|
|
|
65
65
|
dynamic: ""
|
|
66
66
|
}, {
|
|
67
67
|
default: s(({ items: n, node: r, value: m }) => [
|
|
68
|
-
(u(!0), h(
|
|
68
|
+
(u(!0), h(k, null, y(n, (p, c) => (u(), S(l(o), {
|
|
69
69
|
key: p,
|
|
70
70
|
type: "group",
|
|
71
71
|
index: c
|
|
@@ -116,6 +116,7 @@ const J = { class: "dpiV3_page V3-typography" }, Q = {
|
|
|
116
116
|
"pre-icon": !1,
|
|
117
117
|
"show-end-icon": !1,
|
|
118
118
|
"initial-hint-text": !1,
|
|
119
|
+
"date-picker": !0,
|
|
119
120
|
"validation-rules": { requireIfEndDate: I },
|
|
120
121
|
validation: "+requireIfEndDate",
|
|
121
122
|
"validation-visibility": "submit",
|
|
@@ -132,6 +133,7 @@ const J = { class: "dpiV3_page V3-typography" }, Q = {
|
|
|
132
133
|
"add-on-text": !1,
|
|
133
134
|
"info-icon": !1,
|
|
134
135
|
"pre-icon": !1,
|
|
136
|
+
"date-picker": !0,
|
|
135
137
|
"show-end-icon": !1,
|
|
136
138
|
"initial-hint-text": !1
|
|
137
139
|
}, null, 8, ["type"])
|
|
@@ -212,7 +214,7 @@ const J = { class: "dpiV3_page V3-typography" }, Q = {
|
|
|
212
214
|
name: "requiredExpertise"
|
|
213
215
|
}, null, 8, ["modelValue"]),
|
|
214
216
|
d.value.length > 0 ? (u(), h("div", ae, [
|
|
215
|
-
(u(!0), h(
|
|
217
|
+
(u(!0), h(k, null, y(d.value, (n) => (u(), h("div", {
|
|
216
218
|
key: n,
|
|
217
219
|
class: "label-chip"
|
|
218
220
|
}, [
|
|
@@ -280,7 +282,7 @@ const J = { class: "dpiV3_page V3-typography" }, Q = {
|
|
|
280
282
|
dynamic: ""
|
|
281
283
|
}, {
|
|
282
284
|
default: s(({ items: n, node: r, value: m }) => [
|
|
283
|
-
(u(!0), h(
|
|
285
|
+
(u(!0), h(k, null, y(n, (p, c) => (u(), S(l(o), {
|
|
284
286
|
key: p,
|
|
285
287
|
type: "group",
|
|
286
288
|
index: c
|
|
@@ -327,7 +329,7 @@ const J = { class: "dpiV3_page V3-typography" }, Q = {
|
|
|
327
329
|
dynamic: ""
|
|
328
330
|
}, {
|
|
329
331
|
default: s(({ items: n, node: r, value: m }) => [
|
|
330
|
-
(u(!0), h(
|
|
332
|
+
(u(!0), h(k, null, y(n, (p, c) => (u(), S(l(o), {
|
|
331
333
|
key: p,
|
|
332
334
|
type: "group",
|
|
333
335
|
index: c
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as d, getCurrentInstance as
|
|
1
|
+
import { ref as d, getCurrentInstance as _, onMounted as P, computed as z, watch as h, createElementBlock as g, openBlock as c, Fragment as w, createCommentVNode as V, renderList as W, unref as r, normalizeClass as $, createVNode as k, 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";
|
|
@@ -18,69 +18,77 @@ const Q = {
|
|
|
18
18
|
inOverview: { type: Boolean, default: !1 }
|
|
19
19
|
},
|
|
20
20
|
emits: ["addLanguage", "deleteButtonClicked"],
|
|
21
|
-
setup(v, { emit:
|
|
22
|
-
const
|
|
23
|
-
let
|
|
24
|
-
const { formValues:
|
|
25
|
-
|
|
26
|
-
}, b =
|
|
21
|
+
setup(v, { emit: y }) {
|
|
22
|
+
const u = v;
|
|
23
|
+
let t = d([{ label: "", "@value": "", uri: "" }]), o = {};
|
|
24
|
+
const { formValues: C } = H(), { t: f } = E(), B = () => {
|
|
25
|
+
t.value.push({});
|
|
26
|
+
}, b = _(), L = b.appContext.app.config.globalProperties.$env, I = b.appContext.app.config.globalProperties.$i18n.locale;
|
|
27
27
|
let p = d([]);
|
|
28
|
-
|
|
29
|
-
(e) => e.id ===
|
|
30
|
-
) || {},
|
|
28
|
+
o = C.value.DistributionSimple["dcat:distribution"].find(
|
|
29
|
+
(e) => e.id === u.distributionId
|
|
30
|
+
) || {}, P(async () => {
|
|
31
31
|
var e;
|
|
32
|
-
|
|
32
|
+
o["dct:language"].length > 0 && (t.value = o["dct:language"]), p.value = (e = o["dct:language"]) == null ? void 0 : e.map((l) => l.label);
|
|
33
33
|
try {
|
|
34
|
-
const
|
|
35
|
-
s.value =
|
|
36
|
-
"@value":
|
|
37
|
-
label:
|
|
38
|
-
uri:
|
|
34
|
+
const l = await N(L.api.baseUrl, I);
|
|
35
|
+
s.value = l.map((a) => ({
|
|
36
|
+
"@value": a.label,
|
|
37
|
+
label: a.label,
|
|
38
|
+
uri: a.uri
|
|
39
39
|
}));
|
|
40
|
-
} catch (
|
|
41
|
-
console.error("Failed to load language data",
|
|
40
|
+
} catch (l) {
|
|
41
|
+
console.error("Failed to load language data", l);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
const s = d([]);
|
|
45
|
-
let
|
|
46
|
-
console.log("Titelliste",
|
|
47
|
-
const
|
|
48
|
-
|
|
45
|
+
let O = d(p);
|
|
46
|
+
console.log("Titelliste", O);
|
|
47
|
+
const F = y, T = (e, l) => {
|
|
48
|
+
t.value.length > 1 ? (t.value[l] = {
|
|
49
|
+
"@value": e,
|
|
49
50
|
label: e,
|
|
50
|
-
uri: s.value.find((
|
|
51
|
-
},
|
|
51
|
+
uri: s.value.find((a) => a["@value"] === e).uri || ""
|
|
52
|
+
}, console.log(o["dct:language"], t.value), o["dct:language"] = t.value, console.log(o["dct:language"], t.value)) : (t.value[0] = {
|
|
52
53
|
"@value": e,
|
|
53
|
-
uri: s.value.find((
|
|
54
|
-
},
|
|
54
|
+
uri: s.value.find((a) => a["@value"] === e).uri || ""
|
|
55
|
+
}, o["dct:language"][0] = t.value[0], s.value.find((a) => a["@value"] === e).uri);
|
|
55
56
|
}, m = d(""), x = (e) => {
|
|
56
57
|
m.value = e, console.log(m);
|
|
57
|
-
},
|
|
58
|
+
}, D = z(() => s.value.filter(
|
|
58
59
|
(e) => {
|
|
59
|
-
var
|
|
60
|
-
return (i = (
|
|
60
|
+
var l, a, n, i;
|
|
61
|
+
return (i = (l = e["@value"]) == null ? void 0 : l.toLowerCase()) == null ? void 0 : i.trim().startsWith((n = (a = m.value) == null ? void 0 : a.toLowerCase()) == null ? void 0 : n.trim());
|
|
61
62
|
}
|
|
62
63
|
));
|
|
63
|
-
|
|
64
|
-
() =>
|
|
64
|
+
h(
|
|
65
|
+
() => o["dct:language"],
|
|
66
|
+
(e) => {
|
|
67
|
+
t.value = o["dct:language"];
|
|
68
|
+
},
|
|
69
|
+
{ deep: !0 }
|
|
70
|
+
), h(
|
|
71
|
+
() => u.languageText,
|
|
65
72
|
(e) => {
|
|
66
73
|
p.value = e;
|
|
67
74
|
}
|
|
68
75
|
);
|
|
69
|
-
const
|
|
70
|
-
console.log("delete clicked"),
|
|
76
|
+
const S = () => {
|
|
77
|
+
console.log("delete clicked"), F("deleteButtonClicked", u.distributionId);
|
|
71
78
|
};
|
|
72
|
-
return (e,
|
|
73
|
-
(c(!0), g(
|
|
79
|
+
return (e, l) => (c(), g(w, null, [
|
|
80
|
+
(c(!0), g(w, null, W(r(t), (a, n) => (c(), g("div", {
|
|
74
81
|
class: $([{
|
|
75
|
-
repeatableOuter: !
|
|
76
|
-
dpiV3AutoCompleteWrap: !
|
|
77
|
-
}, "langDropdown"])
|
|
82
|
+
repeatableOuter: !u.inOverview,
|
|
83
|
+
dpiV3AutoCompleteWrap: !u.inOverview
|
|
84
|
+
}, "langDropdown"]),
|
|
85
|
+
key: n
|
|
78
86
|
}, [
|
|
79
|
-
|
|
80
|
-
"onUpdate:modelValue": [(i) =>
|
|
87
|
+
k(U, {
|
|
88
|
+
"onUpdate:modelValue": [(i) => T(i, n), (i) => r(t)[n].label = i],
|
|
81
89
|
dropdownWidth: "large",
|
|
82
90
|
type: "inputField",
|
|
83
|
-
modelValue: r(
|
|
91
|
+
modelValue: r(t)[n].label,
|
|
84
92
|
inputFieldProps: {
|
|
85
93
|
addOnText: !1,
|
|
86
94
|
initialHintText: !1,
|
|
@@ -95,29 +103,29 @@ const Q = {
|
|
|
95
103
|
"message.dataupload.datasets.dcat:distribution.advanced.language-placeholder"
|
|
96
104
|
),
|
|
97
105
|
inputFieldSize: "large",
|
|
98
|
-
modelValue: r(p)[
|
|
106
|
+
modelValue: r(p)[n],
|
|
99
107
|
defaultInput: !v.showDeleteButton
|
|
100
108
|
},
|
|
101
|
-
data:
|
|
102
|
-
onDeleteDropdownField:
|
|
109
|
+
data: D.value,
|
|
110
|
+
onDeleteDropdownField: S,
|
|
103
111
|
onInput: x
|
|
104
112
|
}, null, 8, ["onUpdate:modelValue", "modelValue", "inputFieldProps", "data"]),
|
|
105
|
-
|
|
113
|
+
u.inOverview ? V("", !0) : (c(), A(M, {
|
|
106
114
|
key: 0,
|
|
107
115
|
"button-text": "Löschen",
|
|
108
116
|
class: "rightAlign",
|
|
109
117
|
iconStart: "trash",
|
|
110
|
-
onClick: (i) => r(
|
|
118
|
+
onClick: (i) => r(t).splice(n, 1)
|
|
111
119
|
}, null, 8, ["onClick"]))
|
|
112
|
-
], 2))),
|
|
113
|
-
|
|
114
|
-
|
|
120
|
+
], 2))), 128)),
|
|
121
|
+
u.inOverview ? V("", !0) : (c(), g("div", Q, [
|
|
122
|
+
k(q, {
|
|
115
123
|
buttonText: "Weitere hinzufügen",
|
|
116
124
|
size: "large",
|
|
117
125
|
iconStart: "plus",
|
|
118
126
|
variant: "tertiary",
|
|
119
127
|
class: "mt-3",
|
|
120
|
-
onClick:
|
|
128
|
+
onClick: l[0] || (l[0] = (a) => B())
|
|
121
129
|
})
|
|
122
130
|
]))
|
|
123
131
|
], 64));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as E, getCurrentInstance as
|
|
1
|
+
import { ref as E, getCurrentInstance as Ve, reactive as Re, watch as Be, computed as me, resolveComponent as Q, createElementBlock as k, openBlock as s, Fragment as Z, createVNode as y, createCommentVNode as c, withCtx as J, createTextVNode as Se, toDisplayString as T, createBlock as g, renderList as X, unref as $, createElementVNode as R, isRef as ie } from "vue";
|
|
2
2
|
import le from "../ButtonV3.vue.js";
|
|
3
3
|
import I from "../InputField.vue.js";
|
|
4
4
|
import ce from "../TextAreaV3.vue.js";
|
|
@@ -41,7 +41,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
41
41
|
},
|
|
42
42
|
setup(e, { emit: de }) {
|
|
43
43
|
const ne = de;
|
|
44
|
-
let K = E([{}]), B = E([]), C = E(!1), P = E(), re =
|
|
44
|
+
let K = E([{}]), B = E([]), C = E(!1), P = E(), re = Ve().appContext.app.config.globalProperties.$env;
|
|
45
45
|
const { formValues: D } = Le(), a = Re({}), r = E([]), A = e;
|
|
46
46
|
Be(
|
|
47
47
|
() => {
|
|
@@ -99,8 +99,8 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
99
99
|
if (!U.trim() || !h(U))
|
|
100
100
|
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
101
101
|
case "isVersionOf":
|
|
102
|
-
const
|
|
103
|
-
if (!
|
|
102
|
+
const V = t["@id"] || "";
|
|
103
|
+
if (!V.trim() || !h(V))
|
|
104
104
|
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
105
105
|
break;
|
|
106
106
|
case "isReferencedBy":
|
|
@@ -182,7 +182,8 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
182
182
|
"hasVersion",
|
|
183
183
|
"isVersionOf",
|
|
184
184
|
"isReferencedBy",
|
|
185
|
-
"references"
|
|
185
|
+
"references",
|
|
186
|
+
"wasGeneratedBy"
|
|
186
187
|
].includes(n) && r.value.forEach((l, m) => {
|
|
187
188
|
Y(l, m) || (t = !1);
|
|
188
189
|
}), t;
|
|
@@ -207,7 +208,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
207
208
|
r.value[n] || (r.value[n] = {}), r.value[n]["@value"] = t.pref_label.de || t.pref_label.en, r.value[n].uri = t.resource, setTimeout(() => {
|
|
208
209
|
Y(r.value[n], n);
|
|
209
210
|
}, 0);
|
|
210
|
-
},
|
|
211
|
+
}, w = (t, n, u, l) => {
|
|
211
212
|
var v;
|
|
212
213
|
const m = typeof t == "string" ? t : ((v = t == null ? void 0 : t.target) == null ? void 0 : v.value) ?? "";
|
|
213
214
|
r.value[u] || (r.value[u] = {}), n === "dct:issued" ? r.value[u][l] = $e(m) : r.value[u][l] = m, m != "" && (K.value[0][n] = m), l === "@id" && m != "" && (K.value[0][n] = "https://" + m), setTimeout(() => {
|
|
@@ -254,7 +255,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
254
255
|
console.log(m);
|
|
255
256
|
}
|
|
256
257
|
}
|
|
257
|
-
},
|
|
258
|
+
}, we = () => {
|
|
258
259
|
if (!ge())
|
|
259
260
|
return;
|
|
260
261
|
const t = r.value.filter(
|
|
@@ -281,7 +282,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
281
282
|
(i) => i.$formkit !== "group"
|
|
282
283
|
), (i, b) => (s(), g(l, { key: b }, {
|
|
283
284
|
default: J(() => {
|
|
284
|
-
var p, U,
|
|
285
|
+
var p, U, V, S, F, M, N, W, j, q, _, ee, te, G, L, z, ue, se;
|
|
285
286
|
return [
|
|
286
287
|
R("div", Ie, [
|
|
287
288
|
i.$formkit === "url" && e.item.name === "@id" ? (s(), g(I, {
|
|
@@ -292,7 +293,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
292
293
|
preIcon: !1,
|
|
293
294
|
showEndIcon: !1,
|
|
294
295
|
"show-error": !!a[`${e.item.identifier}-${o}`],
|
|
295
|
-
onInput: (f) =>
|
|
296
|
+
onInput: (f) => w(f, e.item.name, o, "@id"),
|
|
296
297
|
initialHintText: !1,
|
|
297
298
|
"model-value": (p = r.value[o]) == null ? void 0 : p["@id"],
|
|
298
299
|
"v-model": (U = r.value[o]) == null ? void 0 : U["@id"]
|
|
@@ -305,9 +306,9 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
305
306
|
preIcon: !1,
|
|
306
307
|
showEndIcon: !1,
|
|
307
308
|
"show-error": !1,
|
|
308
|
-
onInput: (f) =>
|
|
309
|
+
onInput: (f) => w(f, e.item.name, o, i.name),
|
|
309
310
|
initialHintText: !1,
|
|
310
|
-
"model-value": (
|
|
311
|
+
"model-value": (V = r.value[o]) == null ? void 0 : V[i.name],
|
|
311
312
|
"v-model": (S = r.value[o]) == null ? void 0 : S[i.name]
|
|
312
313
|
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
313
314
|
i.$formkit === "url" && i.label != "Homepage" && i.label != "Contributor Homepage" && e.item.name != "@id" && a[`${e.item.identifier}-${o}`] ? (s(), k("div", Ce, [
|
|
@@ -325,7 +326,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
325
326
|
preIcon: !1,
|
|
326
327
|
showEndIcon: !1,
|
|
327
328
|
"show-error": !!a[`${e.item.identifier}-${o}`],
|
|
328
|
-
onInput: (f) =>
|
|
329
|
+
onInput: (f) => w(f, e.item.name, o, "@value"),
|
|
329
330
|
initialHintText: !1,
|
|
330
331
|
"model-value": (F = r.value[o]) == null ? void 0 : F["@value"],
|
|
331
332
|
"v-model": (M = r.value[o]) == null ? void 0 : M["@value"]
|
|
@@ -345,7 +346,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
345
346
|
preIcon: !1,
|
|
346
347
|
showEndIcon: !1,
|
|
347
348
|
"show-error": i.name === "foaf:name" && !!a[`${e.item.identifier}-${o}`],
|
|
348
|
-
onInput: (f) =>
|
|
349
|
+
onInput: (f) => w(f, e.item.name, o, i.name),
|
|
349
350
|
initialHintText: !1,
|
|
350
351
|
"model-value": (N = r.value[o]) == null ? void 0 : N[i.name],
|
|
351
352
|
"v-model": (W = r.value[o]) == null ? void 0 : W[i.name]
|
|
@@ -413,7 +414,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
413
414
|
infoIcon: !1,
|
|
414
415
|
preIcon: !1,
|
|
415
416
|
showEndIcon: !1,
|
|
416
|
-
onInput: (f) =>
|
|
417
|
+
onInput: (f) => w(f, e.item.name, o, "@value"),
|
|
417
418
|
initialHintText: !1,
|
|
418
419
|
"model-value": (L = r.value[o]) == null ? void 0 : L["@value"]
|
|
419
420
|
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
|
|
@@ -424,7 +425,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
424
425
|
infoIcon: !1,
|
|
425
426
|
preIcon: !1,
|
|
426
427
|
showEndIcon: !1,
|
|
427
|
-
onInput: (f) =>
|
|
428
|
+
onInput: (f) => w(f, e.item.name, o, i.name),
|
|
428
429
|
initialHintText: !1,
|
|
429
430
|
"model-value": (ue = r.value[o]) == null ? void 0 : ue[i.name]
|
|
430
431
|
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
|
|
@@ -437,7 +438,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
437
438
|
preIcon: !1,
|
|
438
439
|
showEndIcon: !1,
|
|
439
440
|
"show-error": !1,
|
|
440
|
-
onInput: (f) =>
|
|
441
|
+
onInput: (f) => w(f, e.item.name, o, "@value"),
|
|
441
442
|
initialHintText: !1,
|
|
442
443
|
"model-value": (se = r.value[o]) == null ? void 0 : se["@value"]
|
|
443
444
|
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0)
|
|
@@ -473,7 +474,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
473
474
|
preIcon: !1,
|
|
474
475
|
showEndIcon: !1,
|
|
475
476
|
"show-error": !!a[e.item.identifier],
|
|
476
|
-
onInput: n[1] || (n[1] = (i) =>
|
|
477
|
+
onInput: n[1] || (n[1] = (i) => w(i, e.item.name, 0, "@value")),
|
|
477
478
|
initialHintText: !1,
|
|
478
479
|
"model-value": (d = r.value[0]) == null ? void 0 : d["@value"]
|
|
479
480
|
}, null, 8, ["label", "placeholder", "show-error", "model-value"])) : c("", !0),
|
|
@@ -494,7 +495,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
494
495
|
preIcon: !1,
|
|
495
496
|
showEndIcon: !1,
|
|
496
497
|
"show-error": !!a[e.item.identifier],
|
|
497
|
-
onInput: (
|
|
498
|
+
onInput: (V) => w(V, e.item.name, b, i.name),
|
|
498
499
|
initialHintText: !1,
|
|
499
500
|
"model-value": (p = r.value[b]) == null ? void 0 : p[i.name],
|
|
500
501
|
"v-model": (U = r.value[b]) == null ? void 0 : U[i.name]
|
|
@@ -508,7 +509,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
508
509
|
R("span", qe, T(oe.value.message), 1)
|
|
509
510
|
])) : c("", !0),
|
|
510
511
|
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (s(!0), k(Z, { key: 4 }, X(e.item.children, (i, b) => {
|
|
511
|
-
var p, U,
|
|
512
|
+
var p, U, V, S;
|
|
512
513
|
return s(), g(I, {
|
|
513
514
|
key: b,
|
|
514
515
|
label: i.label,
|
|
@@ -519,10 +520,10 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
519
520
|
inputType: "date",
|
|
520
521
|
showEndIcon: !1,
|
|
521
522
|
"show-error": !1,
|
|
522
|
-
onInput: (F) =>
|
|
523
|
+
onInput: (F) => w(F, e.item.name, b, i.name),
|
|
523
524
|
initialHintText: !1,
|
|
524
525
|
"model-value": (U = (p = r.value[b]) == null ? void 0 : p[i.name]) == null ? void 0 : U["@value"],
|
|
525
|
-
"v-model": (S = (
|
|
526
|
+
"v-model": (S = (V = r.value[b]) == null ? void 0 : V[i.name]) == null ? void 0 : S["@value"]
|
|
526
527
|
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"]);
|
|
527
528
|
}), 128)) : c("", !0),
|
|
528
529
|
e.item.$formkit === "auto" ? (s(), g(ae, {
|
|
@@ -590,7 +591,7 @@ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
|
590
591
|
variant: "tertiary"
|
|
591
592
|
}),
|
|
592
593
|
y(le, {
|
|
593
|
-
onClick:
|
|
594
|
+
onClick: we,
|
|
594
595
|
buttonText: "Speichern",
|
|
595
596
|
size: "large"
|
|
596
597
|
})
|