@piveau/dpi 0.2.0-alpha.46 → 0.2.0-alpha.48
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/services/dpiV3_apis.js +38 -30
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +59 -55
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +148 -135
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +5 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +317 -296
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +77 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +58 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +97 -90
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +35 -35
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +86 -86
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +9 -8
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +55 -50
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +8 -8
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +92 -91
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +49 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +122 -117
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +289 -293
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +32 -30
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -29
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +264 -221
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +41 -35
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +63 -65
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -35
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +49 -49
- package/dist/packages/dpi/src/data-provider-interface/components/DiscoverabilityPage.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +102 -100
- package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +657 -600
- package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +41 -42
- package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue2.js +61 -54
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +272 -239
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +94 -82
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +81 -81
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +138 -141
- package/dist/packages/dpi/src/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +2 -1
- package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/icons/PhCircleInCircle.vue.js +26 -0
- package/dist/packages/dpi/src/data-provider-interface/components/icons/PhCircleInCircle.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +255 -242
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +80 -84
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +1 -3
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +226 -250
- package/package.json +2 -2
|
@@ -1,154 +1,136 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as E, getCurrentInstance as we, 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
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { PhWarning as
|
|
3
|
+
import I from "../InputField.vue.js";
|
|
4
|
+
import ce from "../TextAreaV3.vue.js";
|
|
5
|
+
import ae from "../Dropdown.vue.js";
|
|
6
|
+
import { PhWarning as O } 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 Le } from "../../../composables/useDpiFormValues.js";
|
|
10
|
+
import Te from "../TextButtonSmall.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
const
|
|
12
|
+
const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "dpiV3_errorMessage"
|
|
15
|
-
}, Ae = { class: "copy-mini-regular" },
|
|
15
|
+
}, Ae = { class: "copy-mini-regular" }, Fe = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "dpiV3_errorMessage"
|
|
18
|
-
},
|
|
18
|
+
}, Ee = { class: "copy-mini-regular" }, Oe = {
|
|
19
19
|
key: 6,
|
|
20
20
|
class: "dpiV3_errorMessage"
|
|
21
|
-
},
|
|
21
|
+
}, Pe = { class: "copy-mini-regular" }, ze = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "dpiV3_errorMessage"
|
|
24
|
-
}, He = { class: "copy-mini-regular" },
|
|
24
|
+
}, He = { class: "copy-mini-regular" }, Me = { class: "dpiV3_LinkAndMetadata" }, Ne = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "dpiV3_errorMessage"
|
|
27
|
-
},
|
|
27
|
+
}, We = { class: "copy-mini-regular" }, je = {
|
|
28
28
|
key: 3,
|
|
29
29
|
class: "dpiV3_errorMessage"
|
|
30
|
-
},
|
|
30
|
+
}, qe = { class: "copy-mini-regular" }, Ge = {
|
|
31
31
|
key: 6,
|
|
32
32
|
class: "dpiV3_errorMessage"
|
|
33
|
-
},
|
|
33
|
+
}, Ze = { class: "copy-mini-regular" }, Je = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "dpiV3_tempAddMore"
|
|
36
|
-
},
|
|
36
|
+
}, Ke = { class: "dpiV3_actionButtonWrap" }, nt = {
|
|
37
37
|
__name: "AdditionalsSubModal",
|
|
38
38
|
props: {
|
|
39
39
|
context: Object,
|
|
40
40
|
item: Object
|
|
41
41
|
},
|
|
42
|
-
setup(e, { emit:
|
|
43
|
-
const
|
|
44
|
-
let
|
|
45
|
-
const { formValues:
|
|
46
|
-
|
|
42
|
+
setup(e, { emit: de }) {
|
|
43
|
+
const ne = de;
|
|
44
|
+
let K = E([{}]), B = E([]), C = E(!1), P = E(), re = we().appContext.app.config.globalProperties.$env;
|
|
45
|
+
const { formValues: D } = Le(), a = Re({}), r = E([]), A = e;
|
|
46
|
+
Be(
|
|
47
47
|
() => {
|
|
48
48
|
var t;
|
|
49
|
-
return (t =
|
|
49
|
+
return (t = D.value.Additionals) == null ? void 0 : t[A.item.name];
|
|
50
50
|
},
|
|
51
51
|
(t) => {
|
|
52
52
|
t && t.length > 0 && (r.value = JSON.parse(JSON.stringify(t)));
|
|
53
53
|
},
|
|
54
54
|
{ immediate: !0 }
|
|
55
55
|
);
|
|
56
|
-
|
|
56
|
+
let ve = me(() => r.value.length === 0 ? [{}] : r.value);
|
|
57
|
+
const x = (t) => t ? Object.entries(t).some(([n, u]) => typeof u == "string" ? u.trim() !== "" : typeof u == "object" && u !== null ? x(u) : !1) : !1, h = (t) => !t || t.trim() === "" ? !1 : /^(https?|ftp):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s]*)?$/.test(t.trim()), Y = (t, n = null) => {
|
|
57
58
|
const u = A.item.identifier;
|
|
58
|
-
let
|
|
59
|
-
if (
|
|
59
|
+
let l = n !== null ? `${u}-${n}` : u;
|
|
60
|
+
if (a[l] = null, console.log(u), !x(t))
|
|
60
61
|
return !0;
|
|
61
62
|
switch (u) {
|
|
62
63
|
case "conformsTo":
|
|
63
|
-
const
|
|
64
|
-
if (!
|
|
65
|
-
return
|
|
66
|
-
if (!k(f))
|
|
67
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
64
|
+
const m = t["@id"] || "";
|
|
65
|
+
if (!m.trim() || !h(m))
|
|
66
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
68
67
|
break;
|
|
69
68
|
case "admsIdentifier":
|
|
70
|
-
const
|
|
71
|
-
if (
|
|
72
|
-
return
|
|
73
|
-
if (!k($))
|
|
74
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
69
|
+
const v = t["@id"] || "";
|
|
70
|
+
if (!v.trim() || !h(v))
|
|
71
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
75
72
|
break;
|
|
76
73
|
case "spatial":
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
79
|
-
return
|
|
80
|
-
if (!
|
|
81
|
-
return
|
|
74
|
+
const d = t["@id"] || "";
|
|
75
|
+
if (!d.trim())
|
|
76
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
77
|
+
if (!h(d))
|
|
78
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
82
79
|
break;
|
|
83
80
|
case "relation":
|
|
84
81
|
const o = t["@id"] || "";
|
|
85
|
-
if (!o.trim())
|
|
86
|
-
return
|
|
87
|
-
if (!k(o))
|
|
88
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
82
|
+
if (!o.trim() || !h(o))
|
|
83
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
89
84
|
break;
|
|
90
85
|
case "qualifiedRelation":
|
|
91
|
-
const
|
|
92
|
-
if (!
|
|
93
|
-
return
|
|
94
|
-
if (!k(l))
|
|
95
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
86
|
+
const i = t["@id"] || "";
|
|
87
|
+
if (!i.trim() || !h(i))
|
|
88
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
96
89
|
case "qualifiedAttribution":
|
|
97
|
-
const
|
|
98
|
-
if (!
|
|
99
|
-
return
|
|
100
|
-
if (!k(v))
|
|
101
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
90
|
+
const b = t["@id"] || "";
|
|
91
|
+
if (!b.trim() || !h(b))
|
|
92
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
102
93
|
case "source":
|
|
103
|
-
const
|
|
104
|
-
if (!
|
|
105
|
-
return
|
|
106
|
-
if (!k(V))
|
|
107
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
94
|
+
const p = t["@id"] || "";
|
|
95
|
+
if (!p.trim() || !h(p))
|
|
96
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
108
97
|
case "hasVersion":
|
|
109
|
-
const
|
|
110
|
-
if (!
|
|
111
|
-
return
|
|
112
|
-
if (!k(w))
|
|
113
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
98
|
+
const U = t["@id"] || "";
|
|
99
|
+
if (!U.trim() || !h(U))
|
|
100
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
114
101
|
case "isVersionOf":
|
|
115
|
-
const
|
|
116
|
-
if (!
|
|
117
|
-
return
|
|
118
|
-
if (!k(R))
|
|
119
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
102
|
+
const w = t["@id"] || "";
|
|
103
|
+
if (!w.trim() || !h(w))
|
|
104
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
120
105
|
break;
|
|
121
106
|
case "isReferencedBy":
|
|
122
|
-
const
|
|
123
|
-
if (!
|
|
124
|
-
return
|
|
125
|
-
if (!k(I))
|
|
126
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
107
|
+
const S = t["@id"] || "";
|
|
108
|
+
if (!S.trim() || !h(S))
|
|
109
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
127
110
|
break;
|
|
128
111
|
case "references":
|
|
129
|
-
const
|
|
130
|
-
if (!
|
|
131
|
-
return
|
|
132
|
-
if (!k(C))
|
|
133
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
112
|
+
const F = t["@id"] || "";
|
|
113
|
+
if (!F.trim() || !h(F))
|
|
114
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
134
115
|
break;
|
|
135
116
|
case "wasGeneratedBy":
|
|
136
|
-
const
|
|
137
|
-
if (!
|
|
138
|
-
return
|
|
139
|
-
if (!k(H))
|
|
140
|
-
return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
117
|
+
const M = t["@id"] || "";
|
|
118
|
+
if (!M.trim() || !h(M))
|
|
119
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
141
120
|
break;
|
|
142
121
|
case "landingPage":
|
|
143
|
-
const
|
|
144
|
-
if (!
|
|
145
|
-
return
|
|
146
|
-
|
|
147
|
-
|
|
122
|
+
const N = t["@id"] || "";
|
|
123
|
+
if (!N.trim() || !h(N))
|
|
124
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
125
|
+
break;
|
|
126
|
+
case "page":
|
|
127
|
+
const W = t["foaf:homepage"] || "";
|
|
128
|
+
if (!W.trim() || !h(W))
|
|
129
|
+
return a[l] = "Bitte geben Sie eine gültige URL ein.", !1;
|
|
148
130
|
break;
|
|
149
131
|
case "temporalResolution":
|
|
150
|
-
|
|
151
|
-
const
|
|
132
|
+
l = "temporalResolution-0";
|
|
133
|
+
const j = Object.assign({}, ...r.value), q = [
|
|
152
134
|
"Year",
|
|
153
135
|
"Month",
|
|
154
136
|
"Day",
|
|
@@ -156,368 +138,380 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
|
|
|
156
138
|
"Minute",
|
|
157
139
|
"Second"
|
|
158
140
|
];
|
|
159
|
-
if (
|
|
160
|
-
const L =
|
|
141
|
+
if (q.some((G) => {
|
|
142
|
+
const L = j[G];
|
|
161
143
|
return L && typeof L == "string" && L.trim() !== "";
|
|
162
144
|
})) {
|
|
163
|
-
if (
|
|
164
|
-
const
|
|
165
|
-
return !
|
|
145
|
+
if (q.filter((L) => {
|
|
146
|
+
const z = j[L];
|
|
147
|
+
return !z || typeof z == "string" && z.trim() === "";
|
|
166
148
|
}).length > 0)
|
|
167
|
-
return
|
|
168
|
-
|
|
149
|
+
return a[l] = "Alle Zeiteinheiten sind erforderlich", !1;
|
|
150
|
+
a[l] = null;
|
|
169
151
|
}
|
|
170
152
|
break;
|
|
171
153
|
case "creator":
|
|
172
154
|
if (!(t["foaf:name"] || t["@value"] || "").trim())
|
|
173
|
-
return
|
|
155
|
+
return a[l] = "Name ist erforderlich", !1;
|
|
174
156
|
break;
|
|
175
157
|
case "contributor":
|
|
176
158
|
if (!(t["foaf:name"] || t["@value"] || "").trim())
|
|
177
|
-
return
|
|
159
|
+
return a[l] = "Name ist erforderlich", !1;
|
|
178
160
|
break;
|
|
179
161
|
}
|
|
180
162
|
return !0;
|
|
181
|
-
},
|
|
163
|
+
}, ge = () => {
|
|
182
164
|
let t = !0;
|
|
183
|
-
Object.keys(
|
|
184
|
-
|
|
165
|
+
Object.keys(a).forEach((l) => {
|
|
166
|
+
a[l] = null;
|
|
185
167
|
});
|
|
186
168
|
const n = A.item.identifier;
|
|
187
169
|
return [
|
|
188
170
|
"conformsTo",
|
|
189
171
|
"temporalResolution",
|
|
190
172
|
"creator",
|
|
191
|
-
"contributor"
|
|
192
|
-
|
|
193
|
-
|
|
173
|
+
"contributor",
|
|
174
|
+
"page",
|
|
175
|
+
"landingPage",
|
|
176
|
+
"admsIdentifier",
|
|
177
|
+
"spatial",
|
|
178
|
+
"relation",
|
|
179
|
+
"qualifiedRelation",
|
|
180
|
+
"qualifiedAttribution",
|
|
181
|
+
"source",
|
|
182
|
+
"hasVersion",
|
|
183
|
+
"isVersionOf",
|
|
184
|
+
"isReferencedBy",
|
|
185
|
+
"references"
|
|
186
|
+
].includes(n) && r.value.forEach((l, m) => {
|
|
187
|
+
Y(l, m) || (t = !1);
|
|
194
188
|
}), t;
|
|
195
|
-
},
|
|
189
|
+
}, he = (t) => {
|
|
196
190
|
r.value.push({});
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
r.value.splice(n, 1), delete
|
|
201
|
-
},
|
|
191
|
+
}, be = () => {
|
|
192
|
+
ne("goBack", !1);
|
|
193
|
+
}, ke = (t, n) => {
|
|
194
|
+
r.value.splice(n, 1), delete a[`${A.item.identifier}-${n}`];
|
|
195
|
+
}, oe = me(() => {
|
|
202
196
|
if (A.item.identifier !== "temporalResolution") return null;
|
|
203
197
|
for (let t = 0; t < r.value.length; t++) {
|
|
204
198
|
const n = `temporalResolution-${t}`;
|
|
205
|
-
if (
|
|
199
|
+
if (a[n])
|
|
206
200
|
return {
|
|
207
201
|
key: n,
|
|
208
|
-
message:
|
|
202
|
+
message: a[n]
|
|
209
203
|
};
|
|
210
204
|
}
|
|
211
205
|
return null;
|
|
212
|
-
}),
|
|
206
|
+
}), ye = (t, n, u) => {
|
|
213
207
|
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(() => {
|
|
214
|
-
|
|
208
|
+
Y(r.value[n], n);
|
|
215
209
|
}, 0);
|
|
216
|
-
},
|
|
217
|
-
var
|
|
218
|
-
const
|
|
219
|
-
r.value[u] || (r.value[u] = {}), n === "dct:issued" ? r.value[u][
|
|
220
|
-
|
|
210
|
+
}, V = (t, n, u, l) => {
|
|
211
|
+
var v;
|
|
212
|
+
const m = typeof t == "string" ? t : ((v = t == null ? void 0 : t.target) == null ? void 0 : v.value) ?? "";
|
|
213
|
+
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(() => {
|
|
214
|
+
Y(r.value[u], u);
|
|
221
215
|
}, 0);
|
|
222
216
|
};
|
|
223
|
-
function
|
|
224
|
-
const [n, u,
|
|
225
|
-
return `${
|
|
217
|
+
function $e(t) {
|
|
218
|
+
const [n, u, l] = t.split("-");
|
|
219
|
+
return `${l}.${u}.${n}`;
|
|
226
220
|
}
|
|
227
|
-
const
|
|
228
|
-
r.value[u] || (r.value[u] = {}), r.value[u][
|
|
229
|
-
|
|
221
|
+
const pe = (t, n, u, l) => {
|
|
222
|
+
r.value[u] || (r.value[u] = {}), r.value[u][l] = t, setTimeout(() => {
|
|
223
|
+
Y(r.value[u], u);
|
|
230
224
|
}, 0);
|
|
231
|
-
},
|
|
225
|
+
}, Ue = (t) => (P.value = t.pref_label.de, K.value = [
|
|
232
226
|
{ "@value": t.pref_label.de, uri: t.resource }
|
|
233
|
-
], t),
|
|
234
|
-
if (
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
227
|
+
], t), H = async (t, n, u) => {
|
|
228
|
+
if (n === "prefill" && (B.value = await fe(n, re.api.baseUrl, t), console.log(B.value), B.value.sort((l, m) => {
|
|
229
|
+
var v, d;
|
|
230
|
+
return (v = l.pref_label) != null && v.de ? (d = m.pref_label) != null && d.de ? l.pref_label.de.localeCompare(m.pref_label.de) : -1 : 1;
|
|
231
|
+
})), u === "select") {
|
|
232
|
+
let l = E([]);
|
|
233
|
+
if (t.forEach((m) => {
|
|
234
|
+
l.value.push({ "@value": m, selected: !1 });
|
|
238
235
|
}), n !== "")
|
|
239
236
|
try {
|
|
240
|
-
|
|
241
|
-
} catch (
|
|
242
|
-
console.log(
|
|
237
|
+
B.value = l.value;
|
|
238
|
+
} catch (m) {
|
|
239
|
+
console.log(m);
|
|
243
240
|
}
|
|
244
241
|
}
|
|
245
|
-
if (u === "auto") {
|
|
246
|
-
let
|
|
242
|
+
if (u === "auto" && n !== "prefill") {
|
|
243
|
+
let l = E(await fe(n, re.api.baseUrl, t));
|
|
247
244
|
if (n !== "")
|
|
248
245
|
try {
|
|
249
|
-
const
|
|
250
|
-
label:
|
|
251
|
-
const
|
|
252
|
-
return
|
|
246
|
+
const m = {
|
|
247
|
+
label: l.value.filter((v) => {
|
|
248
|
+
const d = v.pref_label.de || v.pref_label.en;
|
|
249
|
+
return d && n.trim() && (d == null ? void 0 : d.toLowerCase().startsWith(n.trim().toLowerCase()));
|
|
253
250
|
})
|
|
254
251
|
};
|
|
255
|
-
|
|
256
|
-
} catch (
|
|
257
|
-
console.log(
|
|
252
|
+
m.uri = l.value.filter((v) => v.resource), B.value = m.label;
|
|
253
|
+
} catch (m) {
|
|
254
|
+
console.log(m);
|
|
258
255
|
}
|
|
259
256
|
}
|
|
260
|
-
},
|
|
261
|
-
if (!
|
|
257
|
+
}, Ve = () => {
|
|
258
|
+
if (!ge())
|
|
262
259
|
return;
|
|
263
260
|
const t = r.value.filter(
|
|
264
|
-
(n) =>
|
|
261
|
+
(n) => x(n)
|
|
265
262
|
);
|
|
266
|
-
t.length > 0 && (
|
|
263
|
+
t.length > 0 && (D.value.Additionals[A.item.name] = t), C.value && (D.value.Additionals[A.item.name] = K.value), ne("sst", "close");
|
|
267
264
|
};
|
|
268
265
|
return (t, n) => {
|
|
269
|
-
const u =
|
|
270
|
-
return s(),
|
|
271
|
-
|
|
272
|
-
default:
|
|
273
|
-
|
|
266
|
+
const u = Q("additionalText"), l = Q("itemWrapperAdditionals"), m = Q("activeItem"), v = Q("interaction");
|
|
267
|
+
return s(), k(Z, null, [
|
|
268
|
+
y(u, null, {
|
|
269
|
+
default: J(() => [
|
|
270
|
+
Se(T(e.item.help), 1)
|
|
274
271
|
]),
|
|
275
272
|
_: 1
|
|
276
273
|
}),
|
|
277
|
-
|
|
278
|
-
default:
|
|
279
|
-
e.item.$formkit === "repeatable" ? (s(!0),
|
|
274
|
+
y(m, null, {
|
|
275
|
+
default: J(() => [
|
|
276
|
+
e.item.$formkit === "repeatable" ? (s(!0), k(Z, { key: 0 }, X($(ve), (d, o) => (s(), k("div", {
|
|
280
277
|
class: "repeatableOuter dpiV3AutoCompleteWrap",
|
|
281
278
|
key: o
|
|
282
279
|
}, [
|
|
283
|
-
e.item.$formkit === "repeatable" ? (s(!0),
|
|
284
|
-
(
|
|
285
|
-
), (
|
|
286
|
-
default:
|
|
287
|
-
var
|
|
280
|
+
e.item.$formkit === "repeatable" ? (s(!0), k(Z, { key: 0 }, X(e.item.children[0].children.filter(
|
|
281
|
+
(i) => i.$formkit !== "group"
|
|
282
|
+
), (i, b) => (s(), g(l, { key: b }, {
|
|
283
|
+
default: J(() => {
|
|
284
|
+
var p, U, w, S, F, M, N, W, j, q, _, ee, te, G, L, z, ue, se;
|
|
288
285
|
return [
|
|
289
|
-
|
|
290
|
-
|
|
286
|
+
R("div", Ie, [
|
|
287
|
+
i.$formkit === "url" && e.item.name === "@id" ? (s(), g(I, {
|
|
291
288
|
key: 0,
|
|
292
|
-
label:
|
|
289
|
+
label: i.label,
|
|
293
290
|
placeholder: e.item.placeholder,
|
|
294
291
|
infoIcon: !1,
|
|
295
292
|
preIcon: !1,
|
|
296
293
|
showEndIcon: !1,
|
|
297
|
-
"show-error": !!
|
|
298
|
-
onInput: (
|
|
294
|
+
"show-error": !!a[`${e.item.identifier}-${o}`],
|
|
295
|
+
onInput: (f) => V(f, e.item.name, o, "@id"),
|
|
299
296
|
initialHintText: !1,
|
|
300
|
-
"model-value": (
|
|
301
|
-
"v-model": (
|
|
297
|
+
"model-value": (p = r.value[o]) == null ? void 0 : p["@id"],
|
|
298
|
+
"v-model": (U = r.value[o]) == null ? void 0 : U["@id"]
|
|
302
299
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
303
|
-
|
|
300
|
+
i.$formkit === "url" && e.item.name != "@id" ? (s(), g(I, {
|
|
304
301
|
key: 1,
|
|
305
|
-
label:
|
|
302
|
+
label: i.label,
|
|
306
303
|
placeholder: e.item.placeholder,
|
|
307
304
|
infoIcon: !1,
|
|
308
305
|
preIcon: !1,
|
|
309
306
|
showEndIcon: !1,
|
|
310
307
|
"show-error": !1,
|
|
311
|
-
onInput: (
|
|
308
|
+
onInput: (f) => V(f, e.item.name, o, i.name),
|
|
312
309
|
initialHintText: !1,
|
|
313
|
-
"model-value": (
|
|
314
|
-
"v-model": (
|
|
310
|
+
"model-value": (w = r.value[o]) == null ? void 0 : w[i.name],
|
|
311
|
+
"v-model": (S = r.value[o]) == null ? void 0 : S[i.name]
|
|
315
312
|
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
316
|
-
|
|
317
|
-
|
|
313
|
+
i.$formkit === "url" && i.label != "Homepage" && i.label != "Contributor Homepage" && e.item.name != "@id" && a[`${e.item.identifier}-${o}`] ? (s(), k("div", Ce, [
|
|
314
|
+
y($(O), {
|
|
318
315
|
size: 16,
|
|
319
316
|
weight: "fill"
|
|
320
317
|
}),
|
|
321
|
-
|
|
318
|
+
R("span", Ae, T(a[`${e.item.identifier}-${o}`]), 1)
|
|
322
319
|
])) : c("", !0),
|
|
323
|
-
|
|
320
|
+
i.$formkit === "text" && e.item.name === "@value" ? (s(), g(I, {
|
|
324
321
|
key: 3,
|
|
325
|
-
label:
|
|
322
|
+
label: i.label,
|
|
326
323
|
placeholder: e.item.placeholder,
|
|
327
324
|
infoIcon: !1,
|
|
328
325
|
preIcon: !1,
|
|
329
326
|
showEndIcon: !1,
|
|
330
|
-
"show-error": !!
|
|
331
|
-
onInput: (
|
|
327
|
+
"show-error": !!a[`${e.item.identifier}-${o}`],
|
|
328
|
+
onInput: (f) => V(f, e.item.name, o, "@value"),
|
|
332
329
|
initialHintText: !1,
|
|
333
|
-
"model-value": (
|
|
334
|
-
"v-model": (
|
|
330
|
+
"model-value": (F = r.value[o]) == null ? void 0 : F["@value"],
|
|
331
|
+
"v-model": (M = r.value[o]) == null ? void 0 : M["@value"]
|
|
335
332
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
336
|
-
|
|
337
|
-
|
|
333
|
+
i.$formkit === "text" && e.item.name === "@value" && a[`${e.item.identifier}-${o}`] ? (s(), k("div", Fe, [
|
|
334
|
+
y($(O), {
|
|
338
335
|
size: 16,
|
|
339
336
|
weight: "fill"
|
|
340
337
|
}),
|
|
341
|
-
|
|
338
|
+
R("span", Ee, T(a[`${e.item.identifier}-${o}`]), 1)
|
|
342
339
|
])) : c("", !0),
|
|
343
|
-
|
|
340
|
+
i.$formkit === "text" && e.item.name != "@value" ? (s(), g(I, {
|
|
344
341
|
key: 5,
|
|
345
|
-
label:
|
|
342
|
+
label: i.label,
|
|
346
343
|
placeholder: e.item.placeholder,
|
|
347
344
|
infoIcon: !1,
|
|
348
345
|
preIcon: !1,
|
|
349
346
|
showEndIcon: !1,
|
|
350
|
-
"show-error":
|
|
351
|
-
onInput: (
|
|
347
|
+
"show-error": i.name === "foaf:name" && !!a[`${e.item.identifier}-${o}`],
|
|
348
|
+
onInput: (f) => V(f, e.item.name, o, i.name),
|
|
352
349
|
initialHintText: !1,
|
|
353
|
-
"model-value": (
|
|
354
|
-
"v-model": (
|
|
350
|
+
"model-value": (N = r.value[o]) == null ? void 0 : N[i.name],
|
|
351
|
+
"v-model": (W = r.value[o]) == null ? void 0 : W[i.name]
|
|
355
352
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
356
|
-
|
|
357
|
-
|
|
353
|
+
i.$formkit === "text" && i.name === "foaf:name" && a[`${e.item.identifier}-${o}`] ? (s(), k("div", Oe, [
|
|
354
|
+
y($(O), {
|
|
358
355
|
size: 16,
|
|
359
356
|
weight: "fill"
|
|
360
357
|
}),
|
|
361
|
-
|
|
358
|
+
R("span", Pe, T(a[`${e.item.identifier}-${o}`]), 1)
|
|
362
359
|
])) : c("", !0),
|
|
363
|
-
|
|
360
|
+
i.$formkit === "select" && i.identifier !== "language" ? (s(), g(ae, {
|
|
364
361
|
key: 7,
|
|
365
362
|
dropdownWidth: "large",
|
|
366
363
|
type: "inputField",
|
|
367
|
-
onClick: (
|
|
368
|
-
Object.values(
|
|
369
|
-
|
|
370
|
-
|
|
364
|
+
onClick: (f) => H(
|
|
365
|
+
Object.values(i.options),
|
|
366
|
+
f,
|
|
367
|
+
i.$formkit
|
|
371
368
|
),
|
|
372
|
-
"v-model": (
|
|
369
|
+
"v-model": (j = r.value[o]) == null ? void 0 : j[i.name],
|
|
373
370
|
inputFieldProps: {
|
|
374
371
|
addOnText: !1,
|
|
375
372
|
initialHintText: !1,
|
|
376
373
|
datePicker: !1,
|
|
377
374
|
infoIcon: !1,
|
|
378
375
|
preIcon: !1,
|
|
379
|
-
label:
|
|
376
|
+
label: i.label,
|
|
380
377
|
dropdown_dpiV3: !0,
|
|
381
|
-
placeholder: ((
|
|
378
|
+
placeholder: ((q = r.value[o]) == null ? void 0 : q[i.name]) || i.placeholder,
|
|
382
379
|
inputFieldSize: "large",
|
|
383
380
|
autocomplete: "true",
|
|
384
|
-
modelValue: (_ = r.value[o]) == null ? void 0 : _[
|
|
385
|
-
showError: e.item.identifier === "temporalResolution" && !!
|
|
381
|
+
modelValue: (_ = r.value[o]) == null ? void 0 : _[i.name],
|
|
382
|
+
showError: e.item.identifier === "temporalResolution" && !!a[`${e.item.identifier}-${o}`]
|
|
386
383
|
},
|
|
387
|
-
"onUpdate:modelValue": (
|
|
388
|
-
data:
|
|
389
|
-
autocomplete: !1
|
|
384
|
+
"onUpdate:modelValue": (f) => pe(f, e.item.name, o, i.name),
|
|
385
|
+
data: $(B)
|
|
390
386
|
}, null, 8, ["onClick", "v-model", "inputFieldProps", "onUpdate:modelValue", "data"])) : c("", !0),
|
|
391
|
-
|
|
387
|
+
i.$formkit === "auto" ? (s(), g(ae, {
|
|
392
388
|
key: 8,
|
|
393
389
|
dropdownWidth: "large",
|
|
394
390
|
type: "inputField",
|
|
395
|
-
onInput: (
|
|
396
|
-
|
|
397
|
-
"onUpdate:modelValue": n[0] || (n[0] = (m) => te(p) ? p.value = m : p = m),
|
|
391
|
+
onInput: (f) => H(e.item.voc, f, i.$formkit),
|
|
392
|
+
onClick: n[0] || (n[0] = (f) => H(e.item.voc, "prefill", e.item.$formkit)),
|
|
398
393
|
inputFieldProps: {
|
|
399
394
|
addOnText: !1,
|
|
400
395
|
initialHintText: !1,
|
|
401
396
|
datePicker: !1,
|
|
402
397
|
infoIcon: !1,
|
|
403
398
|
preIcon: !1,
|
|
404
|
-
label: l.label,
|
|
405
399
|
dropdown_dpiV3: !0,
|
|
406
400
|
placeholder: ((ee = r.value[o]) == null ? void 0 : ee["@value"]) || e.item.placeholder,
|
|
407
401
|
inputFieldSize: "large",
|
|
408
402
|
autocomplete: "true",
|
|
409
|
-
modelValue:
|
|
403
|
+
modelValue: (te = r.value[o]) == null ? void 0 : te["@value"],
|
|
410
404
|
showError: !1
|
|
411
405
|
},
|
|
412
|
-
onChosenVocItem: (
|
|
413
|
-
data:
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
l.$formkit === "textarea" && e.item.name === "@value" ? (s(), d(se, {
|
|
406
|
+
onChosenVocItem: (f) => ye(f, o, e.item.name),
|
|
407
|
+
data: $(B)
|
|
408
|
+
}, null, 8, ["onInput", "inputFieldProps", "onChosenVocItem", "data"])) : c("", !0),
|
|
409
|
+
i.$formkit === "textarea" && e.item.name === "@value" ? (s(), g(ce, {
|
|
417
410
|
key: 9,
|
|
418
|
-
label:
|
|
419
|
-
placeholder: ((
|
|
411
|
+
label: i.label,
|
|
412
|
+
placeholder: ((G = r.value[o]) == null ? void 0 : G[i.name]) || e.item.placeholder,
|
|
420
413
|
infoIcon: !1,
|
|
421
414
|
preIcon: !1,
|
|
422
415
|
showEndIcon: !1,
|
|
423
|
-
onInput: (
|
|
416
|
+
onInput: (f) => V(f, e.item.name, o, "@value"),
|
|
424
417
|
initialHintText: !1,
|
|
425
418
|
"model-value": (L = r.value[o]) == null ? void 0 : L["@value"]
|
|
426
419
|
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
|
|
427
|
-
|
|
420
|
+
i.$formkit === "textarea" && e.item.name != "@value" ? (s(), g(ce, {
|
|
428
421
|
key: 10,
|
|
429
|
-
label:
|
|
430
|
-
placeholder: ((
|
|
422
|
+
label: i.label,
|
|
423
|
+
placeholder: ((z = r.value[o]) == null ? void 0 : z[i.name]) || e.item.placeholder,
|
|
431
424
|
infoIcon: !1,
|
|
432
425
|
preIcon: !1,
|
|
433
426
|
showEndIcon: !1,
|
|
434
|
-
onInput: (
|
|
427
|
+
onInput: (f) => V(f, e.item.name, o, i.name),
|
|
435
428
|
initialHintText: !1,
|
|
436
|
-
"model-value": (
|
|
429
|
+
"model-value": (ue = r.value[o]) == null ? void 0 : ue[i.name]
|
|
437
430
|
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
|
|
438
|
-
|
|
431
|
+
i.$formkit === "email" ? (s(), g(I, {
|
|
439
432
|
key: 11,
|
|
440
|
-
label:
|
|
433
|
+
label: i.label,
|
|
441
434
|
placeholder: e.item.placeholder,
|
|
442
435
|
addOnText: !1,
|
|
443
436
|
infoIcon: !1,
|
|
444
437
|
preIcon: !1,
|
|
445
438
|
showEndIcon: !1,
|
|
446
439
|
"show-error": !1,
|
|
447
|
-
onInput: (
|
|
440
|
+
onInput: (f) => V(f, e.item.name, o, "@value"),
|
|
448
441
|
initialHintText: !1,
|
|
449
|
-
"model-value": (
|
|
442
|
+
"model-value": (se = r.value[o]) == null ? void 0 : se["@value"]
|
|
450
443
|
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0)
|
|
451
444
|
])
|
|
452
445
|
];
|
|
453
446
|
}),
|
|
454
447
|
_: 2
|
|
455
448
|
}, 1024))), 128)) : c("", !0),
|
|
456
|
-
e.item.identifier === "temporalResolution" &&
|
|
457
|
-
|
|
449
|
+
e.item.identifier === "temporalResolution" && a[`${e.item.identifier}-${o}`] ? (s(), k("div", ze, [
|
|
450
|
+
y($(O), {
|
|
458
451
|
size: 16,
|
|
459
452
|
weight: "fill"
|
|
460
453
|
}),
|
|
461
|
-
|
|
454
|
+
R("span", He, T(a[`${e.item.identifier}-${o}`]), 1)
|
|
462
455
|
])) : c("", !0),
|
|
463
|
-
|
|
464
|
-
"button-text": "
|
|
456
|
+
y(Te, {
|
|
457
|
+
"button-text": "Löschen",
|
|
458
|
+
"icon-start": "trash",
|
|
465
459
|
class: "rightAlign",
|
|
466
|
-
onClick: (
|
|
460
|
+
onClick: (i) => ke(e.item.name, o)
|
|
467
461
|
}, null, 8, ["onClick"])
|
|
468
462
|
]))), 128)) : c("", !0),
|
|
469
|
-
e.item.$formkit != "repeatable" || e.item.$formkit != "group" ? (s(),
|
|
470
|
-
default:
|
|
471
|
-
var
|
|
463
|
+
e.item.$formkit != "repeatable" || e.item.$formkit != "group" ? (s(), g(l, { key: 1 }, {
|
|
464
|
+
default: J(() => {
|
|
465
|
+
var d, o;
|
|
472
466
|
return [
|
|
473
|
-
|
|
474
|
-
e.item.$formkit === "simpleInput" ? (s(),
|
|
467
|
+
R("div", Me, [
|
|
468
|
+
e.item.$formkit === "simpleInput" ? (s(), g(I, {
|
|
475
469
|
key: 0,
|
|
476
470
|
label: e.item.label,
|
|
477
471
|
placeholder: e.item.placeholder,
|
|
478
472
|
infoIcon: !1,
|
|
479
473
|
preIcon: !1,
|
|
480
474
|
showEndIcon: !1,
|
|
481
|
-
"show-error": !!
|
|
482
|
-
onInput: n[1] || (n[1] = (
|
|
475
|
+
"show-error": !!a[e.item.identifier],
|
|
476
|
+
onInput: n[1] || (n[1] = (i) => V(i, e.item.name, 0, "@value")),
|
|
483
477
|
initialHintText: !1,
|
|
484
|
-
"model-value": (
|
|
478
|
+
"model-value": (d = r.value[0]) == null ? void 0 : d["@value"]
|
|
485
479
|
}, null, 8, ["label", "placeholder", "show-error", "model-value"])) : c("", !0),
|
|
486
|
-
e.item.$formkit === "simpleInput" &&
|
|
487
|
-
|
|
480
|
+
e.item.$formkit === "simpleInput" && a[e.item.identifier] ? (s(), k("div", Ne, [
|
|
481
|
+
y($(O), {
|
|
488
482
|
size: 16,
|
|
489
483
|
weight: "fill"
|
|
490
484
|
}),
|
|
491
|
-
|
|
485
|
+
R("span", We, T(a[e.item.identifier]), 1)
|
|
492
486
|
])) : c("", !0),
|
|
493
|
-
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (s(!0),
|
|
494
|
-
var
|
|
495
|
-
return s(),
|
|
496
|
-
key:
|
|
497
|
-
label:
|
|
487
|
+
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (s(!0), k(Z, { key: 2 }, X(e.item.children, (i, b) => {
|
|
488
|
+
var p, U;
|
|
489
|
+
return s(), g(I, {
|
|
490
|
+
key: b,
|
|
491
|
+
label: i.label,
|
|
498
492
|
placeholder: e.item.placeholder,
|
|
499
493
|
infoIcon: !1,
|
|
500
494
|
preIcon: !1,
|
|
501
495
|
showEndIcon: !1,
|
|
502
|
-
"show-error": !!
|
|
503
|
-
onInput: (
|
|
496
|
+
"show-error": !!a[e.item.identifier],
|
|
497
|
+
onInput: (w) => V(w, e.item.name, b, i.name),
|
|
504
498
|
initialHintText: !1,
|
|
505
|
-
"model-value": (
|
|
506
|
-
"v-model": (
|
|
499
|
+
"model-value": (p = r.value[b]) == null ? void 0 : p[i.name],
|
|
500
|
+
"v-model": (U = r.value[b]) == null ? void 0 : U[i.name]
|
|
507
501
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"]);
|
|
508
502
|
}), 128)) : c("", !0),
|
|
509
|
-
|
|
510
|
-
|
|
503
|
+
oe.value ? (s(), k("div", je, [
|
|
504
|
+
y($(O), {
|
|
511
505
|
size: 16,
|
|
512
506
|
weight: "fill"
|
|
513
507
|
}),
|
|
514
|
-
|
|
508
|
+
R("span", qe, T(oe.value.message), 1)
|
|
515
509
|
])) : c("", !0),
|
|
516
|
-
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (s(!0),
|
|
517
|
-
var
|
|
518
|
-
return s(),
|
|
519
|
-
key:
|
|
520
|
-
label:
|
|
510
|
+
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, w, S;
|
|
512
|
+
return s(), g(I, {
|
|
513
|
+
key: b,
|
|
514
|
+
label: i.label,
|
|
521
515
|
placeholder: e.item.placeholder,
|
|
522
516
|
infoIcon: !1,
|
|
523
517
|
preIcon: !1,
|
|
@@ -525,21 +519,24 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
|
|
|
525
519
|
inputType: "date",
|
|
526
520
|
showEndIcon: !1,
|
|
527
521
|
"show-error": !1,
|
|
528
|
-
onInput: (
|
|
522
|
+
onInput: (F) => V(F, e.item.name, b, i.name),
|
|
529
523
|
initialHintText: !1,
|
|
530
|
-
"model-value": (
|
|
531
|
-
"v-model": (
|
|
524
|
+
"model-value": (U = (p = r.value[b]) == null ? void 0 : p[i.name]) == null ? void 0 : U["@value"],
|
|
525
|
+
"v-model": (S = (w = r.value[b]) == null ? void 0 : w[i.name]) == null ? void 0 : S["@value"]
|
|
532
526
|
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"]);
|
|
533
527
|
}), 128)) : c("", !0),
|
|
534
|
-
e.item.$formkit === "auto" ? (s(),
|
|
528
|
+
e.item.$formkit === "auto" ? (s(), g(ae, {
|
|
535
529
|
key: 5,
|
|
536
530
|
dropdownWidth: "large",
|
|
537
531
|
type: "inputField",
|
|
538
|
-
onInput: n[2] || (n[2] = (
|
|
539
|
-
|
|
532
|
+
onInput: n[2] || (n[2] = (i) => {
|
|
533
|
+
H(e.item.voc, i, e.item.$formkit), ie(C) ? C.value = !0 : C = !0;
|
|
534
|
+
}),
|
|
535
|
+
onClick: n[3] || (n[3] = (i) => {
|
|
536
|
+
H(e.item.voc, "prefill", e.item.$formkit), ie(C) ? C.value = !0 : C = !0;
|
|
540
537
|
}),
|
|
541
|
-
modelValue:
|
|
542
|
-
"onUpdate:modelValue": n[
|
|
538
|
+
modelValue: $(P),
|
|
539
|
+
"onUpdate:modelValue": n[4] || (n[4] = (i) => ie(P) ? P.value = i : P = i),
|
|
543
540
|
inputFieldProps: {
|
|
544
541
|
addOnText: !1,
|
|
545
542
|
initialHintText: !1,
|
|
@@ -551,19 +548,18 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
|
|
|
551
548
|
placeholder: ((o = r.value[0]) == null ? void 0 : o["@value"]) || e.item.placeholder,
|
|
552
549
|
inputFieldSize: "large",
|
|
553
550
|
autocomplete: "true",
|
|
554
|
-
modelValue:
|
|
555
|
-
showError: !!
|
|
551
|
+
modelValue: $(P),
|
|
552
|
+
showError: !!a[e.item.identifier]
|
|
556
553
|
},
|
|
557
|
-
onChosenVocItem:
|
|
558
|
-
data:
|
|
559
|
-
autocomplete: !0
|
|
554
|
+
onChosenVocItem: Ue,
|
|
555
|
+
data: $(B)
|
|
560
556
|
}, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
|
|
561
|
-
|
|
562
|
-
|
|
557
|
+
a[e.item.identifier] ? (s(), k("div", Ge, [
|
|
558
|
+
y($(O), {
|
|
563
559
|
size: 16,
|
|
564
560
|
weight: "fill"
|
|
565
561
|
}),
|
|
566
|
-
|
|
562
|
+
R("span", Ze, T(a[e.item.identifier]), 1)
|
|
567
563
|
])) : c("", !0)
|
|
568
564
|
])
|
|
569
565
|
];
|
|
@@ -573,28 +569,28 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
|
|
|
573
569
|
]),
|
|
574
570
|
_: 1
|
|
575
571
|
}),
|
|
576
|
-
e.item.$formkit === "repeatable" ? (s(),
|
|
577
|
-
|
|
572
|
+
e.item.$formkit === "repeatable" ? (s(), k("div", Je, [
|
|
573
|
+
y(le, {
|
|
578
574
|
buttonText: "Weitere hinzufügen",
|
|
579
575
|
size: "large",
|
|
580
576
|
iconStart: "plus",
|
|
581
577
|
variant: "tertiary",
|
|
582
578
|
class: "mt-3",
|
|
583
|
-
onClick: n[
|
|
579
|
+
onClick: n[5] || (n[5] = (d) => he(e.item))
|
|
584
580
|
})
|
|
585
581
|
])) : c("", !0),
|
|
586
|
-
|
|
587
|
-
default:
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
onClick:
|
|
582
|
+
y(v, { class: "dpiV3_interactionWrap" }, {
|
|
583
|
+
default: J(() => [
|
|
584
|
+
R("div", Ke, [
|
|
585
|
+
y(le, {
|
|
586
|
+
onClick: be,
|
|
591
587
|
buttonText: "Zurück",
|
|
592
588
|
size: "large",
|
|
593
589
|
iconStart: "CaretLeft",
|
|
594
590
|
variant: "tertiary"
|
|
595
591
|
}),
|
|
596
|
-
|
|
597
|
-
onClick:
|
|
592
|
+
y(le, {
|
|
593
|
+
onClick: Ve,
|
|
598
594
|
buttonText: "Speichern",
|
|
599
595
|
size: "large"
|
|
600
596
|
})
|
|
@@ -607,5 +603,5 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
|
|
|
607
603
|
}
|
|
608
604
|
};
|
|
609
605
|
export {
|
|
610
|
-
|
|
606
|
+
nt as default
|
|
611
607
|
};
|