@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.51

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