@piveau/dpi 0.1.0-beta.39 → 0.1.0-beta.40

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