@piveau/dpi 0.2.0-alpha.47 → 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.
Files changed (52) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +38 -30
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +59 -55
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +148 -135
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +5 -5
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +317 -296
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +77 -0
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +58 -56
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +97 -90
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +35 -35
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +86 -86
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +9 -8
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +55 -50
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +8 -8
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +92 -91
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +49 -48
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +122 -117
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +289 -293
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +32 -30
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -29
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +264 -221
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +41 -35
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +63 -65
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -35
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  34. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +49 -49
  35. package/dist/packages/dpi/src/data-provider-interface/components/DiscoverabilityPage.vue.js +1 -1
  36. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +102 -100
  37. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +657 -600
  38. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +41 -42
  39. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +272 -239
  40. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +3 -3
  41. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +94 -82
  42. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +81 -81
  43. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +138 -141
  44. package/dist/packages/dpi/src/data-provider-interface/components/TitelPage.vue.js +4 -4
  45. package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +2 -1
  46. package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +1 -1
  47. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +255 -242
  48. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +80 -84
  49. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +2 -2
  50. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +1 -3
  51. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +226 -250
  52. package/package.json +2 -2
@@ -1,154 +1,136 @@
1
- import { ref as F, getCurrentInstance as Ve, reactive as we, watch as Ue, computed as ue, resolveComponent as K, createElementBlock as h, openBlock as s, Fragment as j, createVNode as g, createCommentVNode as c, withCtx as q, createTextVNode as Re, toDisplayString as S, createBlock as d, renderList as Y, createElementVNode as T, unref as b, isRef as te } from "vue";
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 B from "../InputField.vue.js";
4
- import se from "../TextAreaV3.vue.js";
5
- import ie from "../Dropdown.vue.js";
6
- import { PhWarning as E } from "@phosphor-icons/vue";
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 Te } from "../../services/dpiV3_apis.js";
9
- import { useFormValues as Ie } from "../../../composables/useDpiFormValues.js";
10
- import Le from "../TextButtonSmall.vue.js";
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 Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
12
+ const Ie = { class: "dpiV3_LinkAndMetadata" }, Ce = {
13
13
  key: 2,
14
14
  class: "dpiV3_errorMessage"
15
- }, Ae = { class: "copy-mini-regular" }, Ce = {
15
+ }, Ae = { class: "copy-mini-regular" }, Fe = {
16
16
  key: 4,
17
17
  class: "dpiV3_errorMessage"
18
- }, Fe = { class: "copy-mini-regular" }, Ee = {
18
+ }, Ee = { class: "copy-mini-regular" }, Oe = {
19
19
  key: 6,
20
20
  class: "dpiV3_errorMessage"
21
- }, Oe = { class: "copy-mini-regular" }, ze = {
21
+ }, Pe = { class: "copy-mini-regular" }, ze = {
22
22
  key: 1,
23
23
  class: "dpiV3_errorMessage"
24
- }, He = { class: "copy-mini-regular" }, Pe = { class: "dpiV3_LinkAndMetadata" }, Me = {
24
+ }, He = { class: "copy-mini-regular" }, Me = { class: "dpiV3_LinkAndMetadata" }, Ne = {
25
25
  key: 1,
26
26
  class: "dpiV3_errorMessage"
27
- }, Ne = { class: "copy-mini-regular" }, We = {
27
+ }, We = { class: "copy-mini-regular" }, je = {
28
28
  key: 3,
29
29
  class: "dpiV3_errorMessage"
30
- }, je = { class: "copy-mini-regular" }, qe = {
30
+ }, qe = { class: "copy-mini-regular" }, Ge = {
31
31
  key: 6,
32
32
  class: "dpiV3_errorMessage"
33
- }, Ge = { class: "copy-mini-regular" }, Ze = {
33
+ }, Ze = { class: "copy-mini-regular" }, Je = {
34
34
  key: 0,
35
35
  class: "dpiV3_tempAddMore"
36
- }, Je = { class: "dpiV3_actionButtonWrap" }, at = {
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: me }) {
43
- const ae = me;
44
- let G = F([{}]), z = F([]), Z = F(!1), p = F(), ce = Ve().appContext.app.config.globalProperties.$env;
45
- const { formValues: Q } = Ie(), i = we({}), r = F([]), A = e;
46
- Ue(
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 = Q.value.Additionals) == null ? void 0 : t[A.item.name];
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
- const fe = ue(() => r.value.length === 0 ? [{}] : r.value), X = (t) => t ? Object.entries(t).some(([n, u]) => typeof u == "string" ? u.trim() !== "" : typeof u == "object" && u !== null ? X(u) : !1) : !1, k = (t) => !t || t.trim() === "" ? !1 : /^(https?|ftp):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s]*)?$/.test(t.trim()), J = (t, n = null) => {
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 a = n !== null ? `${u}-${n}` : u;
59
- if (i[a] = null, console.log(u), !X(t))
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 f = t["@id"] || "";
64
- if (!f.trim())
65
- return i[a] = "URL ist erforderlich", !1;
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 $ = t["@id"] || "";
71
- if (!$.trim())
72
- return i[a] = "URL ist erforderlich", !1;
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 y = t["@id"] || "";
78
- if (!y.trim())
79
- return i[a] = "URL ist erforderlich", !1;
80
- if (!k(y))
81
- return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
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 i[a] = "URL ist erforderlich", !1;
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 l = t["@id"] || "";
92
- if (!l.trim())
93
- return i[a] = "URL ist erforderlich", !1;
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 v = t["@id"] || "";
98
- if (!v.trim())
99
- return i[a] = "URL ist erforderlich", !1;
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 V = t["@id"] || "";
104
- if (!V.trim())
105
- return i[a] = "URL ist erforderlich", !1;
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 w = t["@id"] || "";
110
- if (!w.trim())
111
- return i[a] = "URL ist erforderlich", !1;
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 R = t["@id"] || "";
116
- if (!R.trim())
117
- return i[a] = "URL ist erforderlich", !1;
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 I = t["@id"] || "";
123
- if (!I.trim())
124
- return i[a] = "URL ist erforderlich", !1;
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 C = t["@id"] || "";
130
- if (!C.trim())
131
- return i[a] = "URL ist erforderlich", !1;
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 H = t["@id"] || "";
137
- if (!H.trim())
138
- return i[a] = "URL ist erforderlich", !1;
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 P = t["@id"] || "";
144
- if (!P.trim())
145
- return i[a] = "URL ist erforderlich", !1;
146
- if (!k(P))
147
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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
- a = "temporalResolution-0";
151
- const M = Object.assign({}, ...r.value), N = [
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 (N.some((W) => {
160
- const L = M[W];
141
+ if (q.some((G) => {
142
+ const L = j[G];
161
143
  return L && typeof L == "string" && L.trim() !== "";
162
144
  })) {
163
- if (N.filter((L) => {
164
- const O = M[L];
165
- return !O || typeof O == "string" && O.trim() === "";
145
+ if (q.filter((L) => {
146
+ const z = j[L];
147
+ return !z || typeof z == "string" && z.trim() === "";
166
148
  }).length > 0)
167
- return i[a] = "Alle Zeiteinheiten sind erforderlich", !1;
168
- i[a] = null;
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 i[a] = "Name ist erforderlich", !1;
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 i[a] = "Name ist erforderlich", !1;
159
+ return a[l] = "Name ist erforderlich", !1;
178
160
  break;
179
161
  }
180
162
  return !0;
181
- }, de = () => {
163
+ }, ge = () => {
182
164
  let t = !0;
183
- Object.keys(i).forEach((a) => {
184
- i[a] = null;
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
- ].includes(n) && r.value.forEach((a, f) => {
193
- J(a, f) || (t = !1);
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
- }, ve = (t) => {
189
+ }, he = (t) => {
196
190
  r.value.push({});
197
- }, he = () => {
198
- ae("goBack", !1);
199
- }, ge = (t, n) => {
200
- r.value.splice(n, 1), delete i[`${A.item.identifier}-${n}`];
201
- }, re = ue(() => {
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 (i[n])
199
+ if (a[n])
206
200
  return {
207
201
  key: n,
208
- message: i[n]
202
+ message: a[n]
209
203
  };
210
204
  }
211
205
  return null;
212
- }), be = (t, n, u) => {
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
- J(r.value[n], n);
208
+ Y(r.value[n], n);
215
209
  }, 0);
216
- }, U = (t, n, u, a) => {
217
- var $;
218
- const f = typeof t == "string" ? t : (($ = t == null ? void 0 : t.target) == null ? void 0 : $.value) ?? "";
219
- r.value[u] || (r.value[u] = {}), n === "dct:issued" ? r.value[u][a] = ke(f) : r.value[u][a] = f, f != "" && (G.value[0][n] = f), a === "@id" && f != "" && (G.value[0][n] = "https://" + f), setTimeout(() => {
220
- J(r.value[u], u);
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 ke(t) {
224
- const [n, u, a] = t.split("-");
225
- return `${a}.${u}.${n}`;
217
+ function $e(t) {
218
+ const [n, u, l] = t.split("-");
219
+ return `${l}.${u}.${n}`;
226
220
  }
227
- const ye = (t, n, u, a) => {
228
- r.value[u] || (r.value[u] = {}), r.value[u][a] = t, setTimeout(() => {
229
- J(r.value[u], u);
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
- }, $e = (t) => (p.value = t.pref_label.de, G.value = [
225
+ }, Ue = (t) => (P.value = t.pref_label.de, K.value = [
232
226
  { "@value": t.pref_label.de, uri: t.resource }
233
- ], t), D = async (t, n, u) => {
234
- if (u === "select") {
235
- let a = F([]);
236
- if (t.forEach((f) => {
237
- a.value.push({ "@value": f, selected: !1 });
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
- z.value = a.value;
241
- } catch (f) {
242
- console.log(f);
237
+ B.value = l.value;
238
+ } catch (m) {
239
+ console.log(m);
243
240
  }
244
241
  }
245
- if (u === "auto") {
246
- let a = F(await Te(n, ce.api.baseUrl, t));
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 f = {
250
- label: a.value.filter(($) => {
251
- const y = $.pref_label.de || $.pref_label.en;
252
- return y && n.trim() && (y == null ? void 0 : y.toLowerCase().startsWith(n.trim().toLowerCase()));
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
- f.uri = a.value.filter(($) => $.resource), z.value = f.label;
256
- } catch (f) {
257
- console.log(f);
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
- }, pe = () => {
261
- if (!de())
257
+ }, Ve = () => {
258
+ if (!ge())
262
259
  return;
263
260
  const t = r.value.filter(
264
- (n) => X(n)
261
+ (n) => x(n)
265
262
  );
266
- t.length > 0 && (Q.value.Additionals[A.item.name] = t), Z.value && (Q.value.Additionals[A.item.name] = G.value), ae("sst", "close");
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 = K("additionalText"), a = K("itemWrapperAdditionals"), f = K("activeItem"), $ = K("interaction");
270
- return s(), h(j, null, [
271
- g(u, null, {
272
- default: q(() => [
273
- Re(S(e.item.help), 1)
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
- g(f, null, {
278
- default: q(() => [
279
- e.item.$formkit === "repeatable" ? (s(!0), h(j, { key: 0 }, Y(fe.value, (y, o) => (s(), h("div", {
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), h(j, { key: 0 }, Y(e.item.children[0].children.filter(
284
- (l) => l.$formkit !== "group"
285
- ), (l, v) => (s(), d(a, { key: v }, {
286
- default: q(() => {
287
- var V, w, R, I, C, H, P, M, N, x, _, ee, W, L, O, ne, oe;
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
- T("div", Se, [
290
- l.$formkit === "url" && e.item.name === "@id" ? (s(), d(B, {
286
+ R("div", Ie, [
287
+ i.$formkit === "url" && e.item.name === "@id" ? (s(), g(I, {
291
288
  key: 0,
292
- label: l.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": !!i[`${e.item.identifier}-${o}`],
298
- onInput: (m) => U(m, e.item.name, o, "@id"),
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": (V = r.value[o]) == null ? void 0 : V["@id"],
301
- "v-model": (w = r.value[o]) == null ? void 0 : w["@id"]
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
- l.$formkit === "url" && e.item.name != "@id" ? (s(), d(B, {
300
+ i.$formkit === "url" && e.item.name != "@id" ? (s(), g(I, {
304
301
  key: 1,
305
- label: l.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: (m) => U(m, e.item.name, o, l.name),
308
+ onInput: (f) => V(f, e.item.name, o, i.name),
312
309
  initialHintText: !1,
313
- "model-value": (R = r.value[o]) == null ? void 0 : R[l.name],
314
- "v-model": (I = r.value[o]) == null ? void 0 : I[l.name]
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
- l.$formkit === "url" && l.label != "Homepage" && l.label != "Contributor Homepage" && e.item.name != "@id" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Be, [
317
- g(b(E), {
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
- T("span", Ae, S(i[`${e.item.identifier}-${o}`]), 1)
318
+ R("span", Ae, T(a[`${e.item.identifier}-${o}`]), 1)
322
319
  ])) : c("", !0),
323
- l.$formkit === "text" && e.item.name === "@value" ? (s(), d(B, {
320
+ i.$formkit === "text" && e.item.name === "@value" ? (s(), g(I, {
324
321
  key: 3,
325
- label: l.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": !!i[`${e.item.identifier}-${o}`],
331
- onInput: (m) => U(m, e.item.name, o, "@value"),
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": (C = r.value[o]) == null ? void 0 : C["@value"],
334
- "v-model": (H = r.value[o]) == null ? void 0 : H["@value"]
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
- l.$formkit === "text" && e.item.name === "@value" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Ce, [
337
- g(b(E), {
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
- T("span", Fe, S(i[`${e.item.identifier}-${o}`]), 1)
338
+ R("span", Ee, T(a[`${e.item.identifier}-${o}`]), 1)
342
339
  ])) : c("", !0),
343
- l.$formkit === "text" && e.item.name != "@value" ? (s(), d(B, {
340
+ i.$formkit === "text" && e.item.name != "@value" ? (s(), g(I, {
344
341
  key: 5,
345
- label: l.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": l.name === "foaf:name" && !!i[`${e.item.identifier}-${o}`],
351
- onInput: (m) => U(m, e.item.name, o, l.name),
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": (P = r.value[o]) == null ? void 0 : P[l.name],
354
- "v-model": (M = r.value[o]) == null ? void 0 : M[l.name]
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
- l.$formkit === "text" && l.name === "foaf:name" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Ee, [
357
- g(b(E), {
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
- T("span", Oe, S(i[`${e.item.identifier}-${o}`]), 1)
358
+ R("span", Pe, T(a[`${e.item.identifier}-${o}`]), 1)
362
359
  ])) : c("", !0),
363
- l.$formkit === "select" && l.identifier !== "language" ? (s(), d(ie, {
360
+ i.$formkit === "select" && i.identifier !== "language" ? (s(), g(ae, {
364
361
  key: 7,
365
362
  dropdownWidth: "large",
366
363
  type: "inputField",
367
- onClick: (m) => D(
368
- Object.values(l.options),
369
- m,
370
- l.$formkit
364
+ onClick: (f) => H(
365
+ Object.values(i.options),
366
+ f,
367
+ i.$formkit
371
368
  ),
372
- "v-model": (N = r.value[o]) == null ? void 0 : N[l.name],
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: l.label,
376
+ label: i.label,
380
377
  dropdown_dpiV3: !0,
381
- placeholder: ((x = r.value[o]) == null ? void 0 : x[l.name]) || l.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 : _[l.name],
385
- showError: e.item.identifier === "temporalResolution" && !!i[`${e.item.identifier}-${o}`]
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": (m) => ye(m, e.item.name, o, l.name),
388
- data: b(z),
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
- l.$formkit === "auto" ? (s(), d(ie, {
387
+ i.$formkit === "auto" ? (s(), g(ae, {
392
388
  key: 8,
393
389
  dropdownWidth: "large",
394
390
  type: "inputField",
395
- onInput: (m) => D(e.item.voc, m, l.$formkit),
396
- modelValue: b(p),
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: b(p),
403
+ modelValue: (te = r.value[o]) == null ? void 0 : te["@value"],
410
404
  showError: !1
411
405
  },
412
- onChosenVocItem: (m) => be(m, o, e.item.name),
413
- data: b(z),
414
- autocomplete: !0
415
- }, null, 8, ["onInput", "modelValue", "inputFieldProps", "onChosenVocItem", "data"])) : c("", !0),
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: l.label,
419
- placeholder: ((W = r.value[o]) == null ? void 0 : W[l.name]) || e.item.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: (m) => U(m, e.item.name, o, "@value"),
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
- l.$formkit === "textarea" && e.item.name != "@value" ? (s(), d(se, {
420
+ i.$formkit === "textarea" && e.item.name != "@value" ? (s(), g(ce, {
428
421
  key: 10,
429
- label: l.label,
430
- placeholder: ((O = r.value[o]) == null ? void 0 : O[l.name]) || e.item.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: (m) => U(m, e.item.name, o, l.name),
427
+ onInput: (f) => V(f, e.item.name, o, i.name),
435
428
  initialHintText: !1,
436
- "model-value": (ne = r.value[o]) == null ? void 0 : ne[l.name]
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
- l.$formkit === "email" ? (s(), d(B, {
431
+ i.$formkit === "email" ? (s(), g(I, {
439
432
  key: 11,
440
- label: l.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: (m) => U(m, e.item.name, o, "@value"),
440
+ onInput: (f) => V(f, e.item.name, o, "@value"),
448
441
  initialHintText: !1,
449
- "model-value": (oe = r.value[o]) == null ? void 0 : oe["@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" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", ze, [
457
- g(b(E), {
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
- T("span", He, S(i[`${e.item.identifier}-${o}`]), 1)
454
+ R("span", He, T(a[`${e.item.identifier}-${o}`]), 1)
462
455
  ])) : c("", !0),
463
- g(Le, {
464
- "button-text": "löschen",
456
+ y(Te, {
457
+ "button-text": "Löschen",
458
+ "icon-start": "trash",
465
459
  class: "rightAlign",
466
- onClick: (l) => ge(e.item.name, o)
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(), d(a, { key: 1 }, {
470
- default: q(() => {
471
- var y, o;
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
- T("div", Pe, [
474
- e.item.$formkit === "simpleInput" ? (s(), d(B, {
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": !!i[e.item.identifier],
482
- onInput: n[1] || (n[1] = (l) => U(l, e.item.name, 0, "@value")),
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": (y = r.value[0]) == null ? void 0 : y["@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" && i[e.item.identifier] ? (s(), h("div", Me, [
487
- g(b(E), {
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
- T("span", Ne, S(i[e.item.identifier]), 1)
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), h(j, { key: 2 }, Y(e.item.children, (l, v) => {
494
- var V, w;
495
- return s(), d(B, {
496
- key: v,
497
- label: l.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": !!i[e.item.identifier],
503
- onInput: (R) => U(R, e.item.name, v, l.name),
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": (V = r.value[v]) == null ? void 0 : V[l.name],
506
- "v-model": (w = r.value[v]) == null ? void 0 : w[l.name]
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
- re.value ? (s(), h("div", We, [
510
- g(b(E), {
503
+ oe.value ? (s(), k("div", je, [
504
+ y($(O), {
511
505
  size: 16,
512
506
  weight: "fill"
513
507
  }),
514
- T("span", je, S(re.value.message), 1)
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), h(j, { key: 4 }, Y(e.item.children, (l, v) => {
517
- var V, w, R, I;
518
- return s(), d(B, {
519
- key: v,
520
- label: l.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: (C) => U(C, e.item.name, v, l.name),
522
+ onInput: (F) => V(F, e.item.name, b, i.name),
529
523
  initialHintText: !1,
530
- "model-value": (w = (V = r.value[v]) == null ? void 0 : V[l.name]) == null ? void 0 : w["@value"],
531
- "v-model": (I = (R = r.value[v]) == null ? void 0 : R[l.name]) == null ? void 0 : I["@value"]
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(), d(ie, {
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] = (l) => {
539
- D(e.item.voc, l, e.item.$formkit), te(Z) ? Z.value = !0 : Z = !0;
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: b(p),
542
- "onUpdate:modelValue": n[3] || (n[3] = (l) => te(p) ? p.value = l : p = l),
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: b(p),
555
- showError: !!i[e.item.identifier]
551
+ modelValue: $(P),
552
+ showError: !!a[e.item.identifier]
556
553
  },
557
- onChosenVocItem: $e,
558
- data: b(z),
559
- autocomplete: !0
554
+ onChosenVocItem: Ue,
555
+ data: $(B)
560
556
  }, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
561
- i[e.item.identifier] ? (s(), h("div", qe, [
562
- g(b(E), {
557
+ a[e.item.identifier] ? (s(), k("div", Ge, [
558
+ y($(O), {
563
559
  size: 16,
564
560
  weight: "fill"
565
561
  }),
566
- T("span", Ge, S(i[e.item.identifier]), 1)
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(), h("div", Ze, [
577
- g(le, {
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[4] || (n[4] = (y) => ve(e.item))
579
+ onClick: n[5] || (n[5] = (d) => he(e.item))
584
580
  })
585
581
  ])) : c("", !0),
586
- g($, { class: "dpiV3_interactionWrap" }, {
587
- default: q(() => [
588
- T("div", Je, [
589
- g(le, {
590
- onClick: he,
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
- g(le, {
597
- onClick: pe,
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
- at as default
606
+ nt as default
611
607
  };