@piveau/dpi 0.1.0-beta.8 → 0.1.0-beta.80

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