@piveau/dpi 0.2.0-alpha.47 → 0.2.0-alpha.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +38 -30
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +59 -55
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +148 -135
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +5 -5
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +317 -296
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +77 -0
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +58 -56
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +97 -90
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +35 -35
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +86 -86
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +9 -8
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +55 -50
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +8 -8
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +92 -91
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +49 -48
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +122 -117
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +289 -293
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +32 -30
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -29
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +264 -221
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +41 -35
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +63 -65
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -35
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  34. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +49 -49
  35. package/dist/packages/dpi/src/data-provider-interface/components/DiscoverabilityPage.vue.js +1 -1
  36. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +102 -100
  37. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +657 -600
  38. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +41 -42
  39. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +272 -239
  40. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +3 -3
  41. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +94 -82
  42. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +81 -81
  43. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +138 -141
  44. package/dist/packages/dpi/src/data-provider-interface/components/TitelPage.vue.js +4 -4
  45. package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +2 -1
  46. package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +1 -1
  47. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +255 -242
  48. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +80 -84
  49. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +2 -2
  50. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +1 -3
  51. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +226 -250
  52. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { ref as h, reactive as L, computed as N, onMounted as P, createElementBlock as u, openBlock as r, normalizeClass as S, createCommentVNode as b, createBlock as q, Fragment as W, renderList as H, createElementVNode as R, createVNode as f, unref as l, isRef as O } from "vue";
1
+ import { ref as h, reactive as L, computed as N, onMounted as P, createElementBlock as u, openBlock as r, normalizeClass as x, createCommentVNode as b, createBlock as q, Fragment as W, renderList as H, createElementVNode as R, createVNode as f, unref as l, isRef as O } from "vue";
2
2
  import I from "../ButtonV3.vue.js";
3
3
  import j from "../ModalSimpleV3.vue.js";
4
4
  import w from "../InputField.vue.js";
@@ -25,9 +25,9 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
25
25
  emits: ["update", "validationChange"],
26
26
  setup(d, { expose: k, emit: _ }) {
27
27
  let s = h({});
28
- const a = d, c = _, y = h(!1), V = h(null), i = L({}), v = L({});
28
+ const a = d, c = _, y = h(!1), V = h(null), o = L({}), v = L({});
29
29
  let m = h(!1);
30
- const T = N(() => Object.values(i).some((e) => e === !0)), z = () => {
30
+ const T = N(() => Object.values(o).some((e) => e === !0)), A = () => {
31
31
  c("validationChange", T.value);
32
32
  };
33
33
  P(() => {
@@ -47,18 +47,18 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
47
47
  const t = e.trim();
48
48
  return /\.[a-zA-Z]{2,}$/.test(t);
49
49
  }, g = (e) => {
50
- const t = a.conformsToItems.find((o) => o.id === e);
50
+ const t = a.conformsToItems.find((n) => n.id === e);
51
51
  if (t) {
52
- const o = t["dct:title"] && t["dct:title"].trim() !== "", n = t["dcat:downloadURL"] ? t["dcat:downloadURL"].trim() : "";
53
- o ? n ? p(n) ? i[e] = null : i[e] = "Bitte geben Sie eine gültige URL ein (z.B. https://example.com)" : i[e] = "URL ist erforderlich" : n && !p(n) ? i[e] = "Bitte geben Sie eine gültige URL ein (z.B. https://example.com)" : i[e] = null;
52
+ const n = t["dct:title"] && t["dct:title"].trim() !== "", i = t["dcat:downloadURL"] ? t["dcat:downloadURL"].trim() : "";
53
+ n ? i ? p(i) ? o[e] = null : o[e] = "Bitte geben Sie eine gültige URL ein (z.B. https://example.com)" : o[e] = "Bitte geben Sie eine gültige URL ein." : i && !p(i) ? o[e] = "Bitte geben Sie eine gültige URL ein (z.B. https://example.com)" : o[e] = null;
54
54
  }
55
55
  }, U = () => {
56
56
  let e = !1;
57
57
  return a.conformsToItems.forEach((t) => {
58
- const o = t["dct:title"] && t["dct:title"].trim() !== "", n = t["dcat:downloadURL"] ? t["dcat:downloadURL"].trim() : "";
59
- o ? n ? p(n) || (i[t.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", e = !0) : (i[t.id] = "URL ist erforderlich", e = !0) : n && !p(n) && (i[t.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", e = !0);
58
+ const n = t["dct:title"] && t["dct:title"].trim() !== "", i = t["dcat:downloadURL"] ? t["dcat:downloadURL"].trim() : "";
59
+ n ? i && p(i) || (o[t.id] = "Bitte geben Sie eine gültige URL ein.", e = !0) : i && !p(i) && (o[t.id] = "Bitte geben Sie eine gültige URL ein.", e = !0);
60
60
  }), e;
61
- }, A = (e) => {
61
+ }, z = (e) => {
62
62
  switch (e) {
63
63
  case "delete":
64
64
  D();
@@ -68,7 +68,7 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
68
68
  if (U())
69
69
  return;
70
70
  const t = {
71
- id: (a.conformsToItems.length ? Math.max(...a.conformsToItems.map((o) => o.id)) : 0) + 1,
71
+ id: (a.conformsToItems.length ? Math.max(...a.conformsToItems.map((n) => n.id)) : 0) + 1,
72
72
  "dcat:downloadURL": "",
73
73
  "dct:title": ""
74
74
  };
@@ -77,13 +77,13 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
77
77
  v[e] && clearTimeout(v[e]), v[e] = setTimeout(() => {
78
78
  g(e);
79
79
  }, 800);
80
- }, B = (e, t, o) => {
81
- var x;
82
- (x = e == null ? void 0 : e.target) == null || x.value;
83
- const n = a.conformsToItems.map(
84
- (C) => C.id === o ? { ...C, [t]: e.target.value } : C
80
+ }, B = (e, t, n) => {
81
+ var S;
82
+ (S = e == null ? void 0 : e.target) == null || S.value;
83
+ const i = a.conformsToItems.map(
84
+ (C) => C.id === n ? { ...C, [t]: e.target.value } : C
85
85
  );
86
- c("update", n), M(o);
86
+ c("update", i), M(n);
87
87
  }, $ = (e) => {
88
88
  s.value = {
89
89
  button: "Löschen",
@@ -97,7 +97,7 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
97
97
  const e = a.conformsToItems.filter(
98
98
  (t) => t.id !== V.value.id
99
99
  );
100
- delete i[V.value.id], c("update", e), z();
100
+ delete o[V.value.id], c("update", e), A();
101
101
  }, F = (e) => {
102
102
  e["dct:title"] = "", g(e.id);
103
103
  };
@@ -105,16 +105,16 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
105
105
  validateAllItems: U,
106
106
  hasValidationErrors: T
107
107
  }), (e, t) => (r(), u("div", {
108
- class: S(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: d.asCard }])
108
+ class: x(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: d.asCard }])
109
109
  }, [
110
- (r(!0), u(W, null, H(d.conformsToItems, (o) => (r(), u("div", {
111
- key: o.id,
112
- class: S(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: d.asCard }])
110
+ (r(!0), u(W, null, H(d.conformsToItems, (n) => (r(), u("div", {
111
+ key: n.id,
112
+ class: x(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: d.asCard }])
113
113
  }, [
114
114
  R("div", J, [
115
115
  f(w, {
116
- onInput: (n) => B(n, "dcat:downloadURL", o.id),
117
- onBlur: (n) => g(o.id),
116
+ onInput: (i) => B(i, "dcat:downloadURL", n.id),
117
+ onBlur: (i) => g(n.id),
118
118
  addOnText: !1,
119
119
  datePicker: !1,
120
120
  infoIcon: !1,
@@ -124,10 +124,10 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
124
124
  initialHintText: !1,
125
125
  label: "URL",
126
126
  showEndIcon: !1,
127
- modelValue: o["dcat:downloadURL"],
128
- "onUpdate:modelValue": (n) => o["dcat:downloadURL"] = n
127
+ modelValue: n["dcat:downloadURL"],
128
+ "onUpdate:modelValue": (i) => n["dcat:downloadURL"] = i
129
129
  }, null, 8, ["onInput", "onBlur", "modelValue", "onUpdate:modelValue"]),
130
- i[o.id] ? (r(), u("div", K, [
130
+ o[n.id] ? (r(), u("div", K, [
131
131
  f(l(Z), {
132
132
  size: 16,
133
133
  weight: "fill"
@@ -135,8 +135,8 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
135
135
  t[2] || (t[2] = R("span", { class: "copy-mini-regular" }, "Bitte geben Sie eine gültige URL ein.", -1))
136
136
  ])) : b("", !0),
137
137
  f(w, {
138
- onInput: (n) => B(n, "dct:title", o.id),
139
- onBlur: (n) => g(o.id),
138
+ onInput: (i) => B(i, "dct:title", n.id),
139
+ onBlur: (i) => g(n.id),
140
140
  addOnText: !1,
141
141
  datePicker: !1,
142
142
  infoIcon: !1,
@@ -148,10 +148,10 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
148
148
  "message.dataupload.datasets.dcat:distribution.distribution-title.label"
149
149
  ),
150
150
  showEndIcon: !1,
151
- modelValue: o["dct:title"],
152
- "onUpdate:modelValue": (n) => o["dct:title"] = n,
151
+ modelValue: n["dct:title"],
152
+ "onUpdate:modelValue": (i) => n["dct:title"] = i,
153
153
  defaultInput: !d.showDeleteButton,
154
- onDeleteButtonClicked: (n) => F(o)
154
+ onDeleteButtonClicked: (i) => F(n)
155
155
  }, null, 8, ["onInput", "onBlur", "label", "modelValue", "onUpdate:modelValue", "defaultInput", "onDeleteButtonClicked"]),
156
156
  y.value && d.conformsToItems.length === 1 ? (r(), u("p", Q, " Mindestens eine URL muss vorhanden sein. ")) : b("", !0)
157
157
  ]),
@@ -163,7 +163,7 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
163
163
  size: "small",
164
164
  iconStart: "trash",
165
165
  variant: "tertiary",
166
- onClick: (n) => $(o)
166
+ onClick: (i) => $(n)
167
167
  }, null, 8, ["buttonText", "onClick"])
168
168
  ], 2))), 128)),
169
169
  d.asCard ? b("", !0) : (r(), u("div", X, [
@@ -180,15 +180,15 @@ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
180
180
  buttons: l(s).button,
181
181
  headerText: l(s).header,
182
182
  text: l(s).text,
183
- onClose: t[0] || (t[0] = (o) => O(m) ? m.value = !1 : m = !1),
183
+ onClose: t[0] || (t[0] = (n) => O(m) ? m.value = !1 : m = !1),
184
184
  action: l(s).action,
185
- onActionHandling: t[1] || (t[1] = (o) => A(o)),
185
+ onActionHandling: t[1] || (t[1] = (n) => z(n)),
186
186
  optionalString_1: l(s).optionalString_1,
187
187
  optionalString_2: l(s).optionalString_2
188
188
  }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : b("", !0)
189
189
  ], 2));
190
190
  }
191
- }, de = /* @__PURE__ */ G(Y, [["__scopeId", "data-v-501b6eb9"]]);
191
+ }, de = /* @__PURE__ */ G(Y, [["__scopeId", "data-v-2c476ce8"]]);
192
192
  export {
193
193
  de as default
194
194
  };
@@ -1,17 +1,17 @@
1
- import { ref as f, reactive as O, onMounted as Z, createElementBlock as V, openBlock as g, normalizeClass as L, createCommentVNode as k, createBlock as j, Fragment as G, renderList as J, createElementVNode as I, createVNode as h, unref as u, toDisplayString as x, isRef as K } from "vue";
1
+ import { ref as f, reactive as O, onMounted as Z, createElementBlock as V, openBlock as g, normalizeClass as L, createCommentVNode as k, createBlock as j, Fragment as G, renderList as J, createElementVNode as I, createVNode as h, unref as c, toDisplayString as R, isRef as K } from "vue";
2
2
  import Q from "../Dropdown.vue.js";
3
3
  import X from "../TextAreaV3.vue.js";
4
- import R from "../ButtonV3.vue.js";
4
+ import $ from "../ButtonV3.vue.js";
5
5
  import Y from "../ModalSimpleV3.vue.js";
6
- import $ from "../InputField.vue.js";
6
+ import x from "../InputField.vue.js";
7
7
  import { PhWarning as ee } from "@phosphor-icons/vue";
8
8
  import { useFormValues as te } from "../../../composables/useDpiFormValues.js";
9
9
  /* empty css */
10
10
  import ae from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
11
- const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
11
+ const ie = { class: "dpiV3_LinkAndMetadata" }, le = {
12
12
  key: 0,
13
13
  class: "dpiV3_errorMessage"
14
- }, oe = { class: "copy-mini-regular" }, se = {
14
+ }, se = { class: "copy-mini-regular" }, oe = {
15
15
  key: 1,
16
16
  class: "copy-mini-regular dpiV3_text_error"
17
17
  }, de = {
@@ -27,13 +27,13 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
27
27
  showDeleteButton: { type: Boolean, required: !1, default: !1 }
28
28
  },
29
29
  emits: ["update"],
30
- setup(r, { expose: A, emit: z }) {
31
- const { formValues: E } = te();
30
+ setup(r, { expose: A, emit: E }) {
31
+ const { formValues: z } = te();
32
32
  let p = f({});
33
- const i = r, y = z, d = f([...i.fileTypes]), P = f(!1), F = f(null), o = O({});
33
+ const l = r, y = E, d = f([...l.fileTypes]), P = f(!1), F = f(null), s = O({});
34
34
  let U = f(!1);
35
35
  Z(() => {
36
- i.documentations.length === 0 && y("update", [
36
+ l.documentations.length === 0 && y("update", [
37
37
  {
38
38
  id: 1,
39
39
  "dcat:accessURL": "",
@@ -46,22 +46,22 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
46
46
  });
47
47
  const D = (e) => {
48
48
  if (!e || e.trim() === "") return !1;
49
- const l = e.trim();
50
- return /\.[a-zA-Z]{2,}$/.test(l);
51
- }, C = (e) => {
52
- const l = e["dct:title"] && e["dct:title"].trim() !== "", t = e["dct:description"] && e["dct:description"].trim() !== "", a = e["dct:format"] && e["dct:format"].trim !== "" && (typeof e["dct:format"] == "string" ? e["dct:format"].trim() !== "" : !0);
53
- return l || t || a;
49
+ const i = e.trim();
50
+ return /\.[a-zA-Z]{2,}$/.test(i);
54
51
  }, S = (e) => {
55
- const l = i.documentations.find((t) => t.id === e);
56
- if (l) {
57
- const t = l["dcat:accessURL"], a = typeof t == "string" ? t.trim() : "";
58
- C(l) ? a ? D(a) ? o[e] = null : o[e] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)" : o[e] = "Bitte geben Sie eine gültige URL ein." : a && !D(a) ? o[e] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)" : o[e] = null;
52
+ const i = e["dct:title"] && e["dct:title"].trim() !== "", t = e["dct:description"] && e["dct:description"].trim() !== "", a = e["dct:format"] && e["dct:format"].trim !== "" && (typeof e["dct:format"] == "string" ? e["dct:format"].trim() !== "" : !0);
53
+ return i || t || a;
54
+ }, B = (e) => {
55
+ const i = l.documentations.find((t) => t.id === e);
56
+ if (i) {
57
+ const t = i["dcat:accessURL"], a = typeof t == "string" ? t.trim() : "";
58
+ S(i) ? a && D(a) ? s[e] = null : s[e] = "Bitte geben Sie eine gültige URL ein." : a && !D(a) ? s[e] = "Bitte geben Sie eine gültige URL ein." : s[e] = null;
59
59
  }
60
60
  }, w = () => {
61
61
  let e = !1;
62
- return i.documentations.forEach((l) => {
63
- const t = l["dcat:accessURL"], a = typeof t == "string" ? t.trim() : "";
64
- C(l) ? a ? D(a) || (o[l.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", e = !0) : (o[l.id] = "URL ist erforderlich", e = !0) : a && !D(a) && (o[l.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", e = !0);
62
+ return l.documentations.forEach((i) => {
63
+ const t = i["dcat:accessURL"], a = typeof t == "string" ? t.trim() : "";
64
+ S(i) ? a && D(a) || (s[i.id] = "Bitte geben Sie eine gültige URL ein.", e = !0) : a && !D(a) && (s[i.id] = "Bitte geben Sie eine gültige URL ein.", e = !0);
65
65
  }), e;
66
66
  }, M = (e) => {
67
67
  switch (e) {
@@ -69,63 +69,63 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
69
69
  N();
70
70
  break;
71
71
  }
72
- }, _ = (e, l, t = null) => {
73
- var n, s;
74
- d.value = [...i.fileTypes];
75
- const a = typeof e == "string" ? e.trim().toUpperCase() : (s = (n = e == null ? void 0 : e.target) == null ? void 0 : n.value) == null ? void 0 : s.trim().toUpperCase();
76
- a.length > 0 ? d.value = i.fileTypes.filter(
72
+ }, _ = (e, i, t = null) => {
73
+ var n, o;
74
+ d.value = [...l.fileTypes];
75
+ const a = typeof e == "string" ? e.trim().toUpperCase() : (o = (n = e == null ? void 0 : e.target) == null ? void 0 : n.value) == null ? void 0 : o.trim().toUpperCase();
76
+ a.length > 0 ? d.value = l.fileTypes.filter(
77
77
  (T) => T["@value"].toUpperCase().startsWith(a)
78
- ) : d.value = [...i.fileTypes];
78
+ ) : d.value = [...l.fileTypes];
79
79
  }, W = () => {
80
80
  if (w())
81
81
  return;
82
- const l = {
83
- id: (i.documentations.length ? Math.max(...i.documentations.map((t) => t.id)) : 0) + 1,
82
+ const i = {
83
+ id: (l.documentations.length ? Math.max(...l.documentations.map((t) => t.id)) : 0) + 1,
84
84
  "dcat:accessURL": "",
85
85
  "dct:format": "",
86
86
  "dct:title": "",
87
87
  "dct:description": "",
88
88
  "formatUri:": ""
89
89
  };
90
- y("update", [...i.documentations, l]);
91
- }, q = (e, l) => {
92
- d.value = [...i.fileTypes];
90
+ y("update", [...l.documentations, i]);
91
+ }, q = (e, i) => {
92
+ d.value = [...l.fileTypes];
93
93
  const t = d.value.find(
94
- (s) => s["@value"] === e
94
+ (o) => o["@value"] === e
95
95
  ), a = f(
96
- E.value.DistributionSimple["dcat:distribution"].find(
97
- (s) => s.id === i.distributionId
96
+ z.value.DistributionSimple["dcat:distribution"].find(
97
+ (o) => o.id === l.distributionId
98
98
  )
99
99
  ), n = f(
100
- a.value.documentations.find((s) => s.id === l)
100
+ a.value.documentations.find((o) => o.id === i)
101
101
  );
102
- n.value === void 0 || (n.value.formatUri = t.uri), v(e, "dct:format", l);
103
- }, v = (e, l, t) => {
104
- var n, s, T;
102
+ n.value === void 0 || (n.value.formatUri = t.uri), v(e, "dct:format", i);
103
+ }, v = (e, i, t) => {
104
+ var n, o, T;
105
105
  let a = "";
106
- if (l === "dcat:accessURL") {
107
- const c = typeof e == "string" ? e : ((n = e == null ? void 0 : e.target) == null ? void 0 : n.value) ?? "";
108
- a = i.documentations.map(
109
- (b) => b.id === t ? { ...b, [l]: c } : b
106
+ if (i === "dcat:accessURL") {
107
+ const u = typeof e == "string" ? e : ((n = e == null ? void 0 : e.target) == null ? void 0 : n.value) ?? "";
108
+ a = l.documentations.map(
109
+ (b) => b.id === t ? { ...b, [i]: u } : b
110
110
  );
111
- } else if (l === "dct:format") {
112
- d.value = [...i.fileTypes];
113
- const c = typeof e == "string" ? e.trim().toUpperCase() : (T = (s = e == null ? void 0 : e.target) == null ? void 0 : s.value) == null ? void 0 : T.trim().toUpperCase();
114
- c.length > 0 ? d.value = i.fileTypes.filter(
115
- (m) => m["@value"].toUpperCase().startsWith(c)
116
- ) : d.value = [...i.fileTypes];
111
+ } else if (i === "dct:format") {
112
+ d.value = [...l.fileTypes];
113
+ const u = typeof e == "string" ? e.trim().toUpperCase() : (T = (o = e == null ? void 0 : e.target) == null ? void 0 : o.value) == null ? void 0 : T.trim().toUpperCase();
114
+ u.length > 0 ? d.value = l.fileTypes.filter(
115
+ (m) => m["@value"].toUpperCase().startsWith(u)
116
+ ) : d.value = [...l.fileTypes];
117
117
  const b = d.value.find(
118
118
  (m) => m["@value"] === e
119
119
  );
120
- a = i.documentations.map(
121
- (m) => m.id === t ? { ...m, [l]: b["@value"], formatUri: b.uri } : m
120
+ a = l.documentations.map(
121
+ (m) => m.id === t ? { ...m, [i]: b["@value"], formatUri: b.uri } : m
122
122
  );
123
123
  } else
124
- a = i.documentations.map(
125
- (c) => c.id === t ? { ...c, [l]: e.target.value } : c
124
+ a = l.documentations.map(
125
+ (u) => u.id === t ? { ...u, [i]: e.target.value } : u
126
126
  );
127
127
  y("update", a), setTimeout(() => {
128
- S(t);
128
+ B(t);
129
129
  }, 0);
130
130
  }, H = (e) => {
131
131
  p.value = {
@@ -137,37 +137,37 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
137
137
  optionalString_2: e["dcat:accessURL"]
138
138
  }, U.value = !0, F.value = e;
139
139
  }, N = () => {
140
- const e = i.documentations.filter(
141
- (l) => l.id !== F.value.id
140
+ const e = l.documentations.filter(
141
+ (i) => i.id !== F.value.id
142
142
  );
143
- delete o[F.value.id], y("update", e);
144
- }, B = (e, l) => {
143
+ delete s[F.value.id], y("update", e);
144
+ }, C = (e, i) => {
145
145
  switch (e) {
146
146
  case "dct:description":
147
- l["dct:description"] = "";
147
+ i["dct:description"] = "";
148
148
  break;
149
149
  case "dct:title":
150
- l["dct:title"] = "";
150
+ i["dct:title"] = "";
151
151
  break;
152
152
  case "dct:format":
153
- l["dct:format"] = "";
153
+ i["dct:format"] = "";
154
154
  break;
155
155
  }
156
156
  setTimeout(() => {
157
- S(l.id);
157
+ B(i.id);
158
158
  }, 0);
159
159
  };
160
160
  return A({
161
161
  validateAllItems: w
162
- }), (e, l) => (g(), V("div", {
162
+ }), (e, i) => (g(), V("div", {
163
163
  class: L(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: r.asCard }])
164
164
  }, [
165
165
  (g(!0), V(G, null, J(r.documentations, (t) => (g(), V("div", {
166
166
  key: t.id,
167
167
  class: L(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: r.asCard }])
168
168
  }, [
169
- I("div", le, [
170
- h($, {
169
+ I("div", ie, [
170
+ h(x, {
171
171
  onInput: (a) => v(a, "dcat:accessURL", t.id),
172
172
  addOnText: !1,
173
173
  datePicker: !1,
@@ -185,14 +185,14 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
185
185
  modelValue: t["dcat:accessURL"],
186
186
  "onUpdate:modelValue": (a) => t["dcat:accessURL"] = a
187
187
  }, null, 8, ["onInput", "placeholder", "label", "modelValue", "onUpdate:modelValue"]),
188
- o[t.id] ? (g(), V("div", ie, [
189
- h(u(ee), {
188
+ s[t.id] ? (g(), V("div", le, [
189
+ h(c(ee), {
190
190
  size: 16,
191
191
  weight: "fill"
192
192
  }),
193
- I("span", oe, x(o[t.id]), 1)
193
+ I("span", se, R(s[t.id]), 1)
194
194
  ])) : k("", !0),
195
- h($, {
195
+ h(x, {
196
196
  onInput: (a) => v(a, "dct:title", t.id),
197
197
  addOnText: !1,
198
198
  datePicker: !1,
@@ -210,7 +210,7 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
210
210
  modelValue: t["dct:title"],
211
211
  "onUpdate:modelValue": (a) => t["dct:title"] = a,
212
212
  defaultInput: !r.showDeleteButton,
213
- onDeleteButtonClicked: (a) => B("dct:title", t)
213
+ onDeleteButtonClicked: (a) => C("dct:title", t)
214
214
  }, null, 8, ["onInput", "placeholder", "label", "modelValue", "onUpdate:modelValue", "defaultInput", "onDeleteButtonClicked"]),
215
215
  h(X, {
216
216
  onInput: (a) => v(a, "dct:description", t.id),
@@ -224,11 +224,11 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
224
224
  modelValue: t["dct:description"],
225
225
  "onUpdate:modelValue": (a) => t["dct:description"] = a,
226
226
  showDeleteButton: r.showDeleteButton,
227
- onDeleteClicked: (a) => B("dct:description", t)
227
+ onDeleteClicked: (a) => C("dct:description", t)
228
228
  }, null, 8, ["onInput", "label", "placeholder", "modelValue", "onUpdate:modelValue", "showDeleteButton", "onDeleteClicked"]),
229
229
  h(Q, {
230
230
  "onUpdate:modelValue": [(a) => q(a, t.id), (a) => t["dct:format"] = a],
231
- onInput: l[0] || (l[0] = (a) => _(a)),
231
+ onInput: i[0] || (i[0] = (a) => _(a)),
232
232
  dropdownWidth: "large",
233
233
  type: "inputField",
234
234
  modelValue: t["dct:format"],
@@ -251,13 +251,13 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
251
251
  },
252
252
  data: d.value,
253
253
  autocomplete: !0,
254
- onDeleteDropdownField: (a) => B("dct:format", t)
254
+ onDeleteDropdownField: (a) => C("dct:format", t)
255
255
  }, null, 8, ["onUpdate:modelValue", "modelValue", "inputFieldProps", "data", "onDeleteDropdownField"]),
256
- P.value && r.documentations.length === 1 ? (g(), V("p", se, x(e.$t(
256
+ P.value && r.documentations.length === 1 ? (g(), V("p", oe, R(e.$t(
257
257
  "message.dataupload.datasets.dcat:distribution.advanced.documentation.error-message"
258
258
  )), 1)) : k("", !0)
259
259
  ]),
260
- h(R, {
260
+ h($, {
261
261
  class: "dpiV3_tempAddMore",
262
262
  buttonText: e.$t(
263
263
  "message.dataupload.datasets.dcat:distribution.advanced.documentation.delete"
@@ -269,7 +269,7 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
269
269
  }, null, 8, ["buttonText", "onClick"])
270
270
  ], 2))), 128)),
271
271
  r.asCard ? k("", !0) : (g(), V("div", de, [
272
- h(R, {
272
+ h($, {
273
273
  buttonText: e.$t(
274
274
  "message.dataupload.datasets.dcat:distribution.advanced.documentation.add-another"
275
275
  ),
@@ -279,20 +279,20 @@ const le = { class: "dpiV3_LinkAndMetadata" }, ie = {
279
279
  onClick: W
280
280
  }, null, 8, ["buttonText"])
281
281
  ])),
282
- u(U) ? (g(), j(Y, {
282
+ c(U) ? (g(), j(Y, {
283
283
  key: 1,
284
- buttons: u(p).button,
285
- headerText: u(p).header,
286
- text: u(p).text,
287
- onClose: l[1] || (l[1] = (t) => K(U) ? U.value = !1 : U = !1),
288
- action: u(p).action,
289
- onActionHandling: l[2] || (l[2] = (t) => M(t)),
290
- optionalString_1: u(p).optionalString_1,
291
- optionalString_2: u(p).optionalString_2
284
+ buttons: c(p).button,
285
+ headerText: c(p).header,
286
+ text: c(p).text,
287
+ onClose: i[1] || (i[1] = (t) => K(U) ? U.value = !1 : U = !1),
288
+ action: c(p).action,
289
+ onActionHandling: i[2] || (i[2] = (t) => M(t)),
290
+ optionalString_1: c(p).optionalString_1,
291
+ optionalString_2: c(p).optionalString_2
292
292
  }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : k("", !0)
293
293
  ], 2));
294
294
  }
295
- }, Ue = /* @__PURE__ */ ae(ne, [["__scopeId", "data-v-cf202935"]]);
295
+ }, Ue = /* @__PURE__ */ ae(ne, [["__scopeId", "data-v-eb7428a6"]]);
296
296
  export {
297
297
  Ue as default
298
298
  };
@@ -1,4 +1,4 @@
1
- import { ref as u, watch as T, createElementBlock as v, openBlock as s, Fragment as D, createBlock as c, createCommentVNode as y } from "vue";
1
+ import { ref as u, watch as T, createElementBlock as v, openBlock as s, Fragment as D, createBlock as y, createCommentVNode as c } from "vue";
2
2
  import k from "../Dropdown.vue.js";
3
3
  const B = {
4
4
  __name: "FileFormatV3",
@@ -56,7 +56,7 @@ const B = {
56
56
  n.value = a;
57
57
  }
58
58
  ), (a, e) => (s(), v(D, null, [
59
- o.fileFormatType === "dcat:mediaType" ? (s(), c(k, {
59
+ o.fileFormatType === "dcat:mediaType" ? (s(), y(k, {
60
60
  key: 0,
61
61
  onInput: e[0] || (e[0] = (t) => m(t)),
62
62
  "onUpdate:modelValue": [
@@ -81,10 +81,9 @@ const B = {
81
81
  defaultInput: !o.showDeleteButton
82
82
  },
83
83
  data: d.value,
84
- autocomplete: !0,
85
84
  onDeleteDropdownField: e[3] || (e[3] = (t) => F("dcat:mediaType"))
86
- }, null, 8, ["modelValue", "inputFieldProps", "data"])) : y("", !0),
87
- o.fileFormatType === "dcat:compressFormat" ? (s(), c(k, {
85
+ }, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
86
+ o.fileFormatType === "dcat:compressFormat" ? (s(), y(k, {
88
87
  key: 1,
89
88
  onInput: e[4] || (e[4] = (t) => m(t)),
90
89
  "onUpdate:modelValue": [
@@ -109,10 +108,9 @@ const B = {
109
108
  defaultInput: !o.showDeleteButton
110
109
  },
111
110
  data: d.value,
112
- autocomplete: !0,
113
111
  onDeleteDropdownField: e[7] || (e[7] = (t) => F("dcat:compressFormat"))
114
- }, null, 8, ["modelValue", "inputFieldProps", "data"])) : y("", !0),
115
- o.fileFormatType === "dcat:packageFormat" ? (s(), c(k, {
112
+ }, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
113
+ o.fileFormatType === "dcat:packageFormat" ? (s(), y(k, {
116
114
  key: 2,
117
115
  onInput: e[8] || (e[8] = (t) => m(t)),
118
116
  "onUpdate:modelValue": [
@@ -137,9 +135,8 @@ const B = {
137
135
  defaultInput: !o.showDeleteButton
138
136
  },
139
137
  data: d.value,
140
- autocomplete: !0,
141
138
  onDeleteDropdownField: e[11] || (e[11] = (t) => F("dcat:packageFormat"))
142
- }, null, 8, ["modelValue", "inputFieldProps", "data"])) : y("", !0)
139
+ }, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0)
143
140
  ], 64));
144
141
  }
145
142
  };
@@ -1,4 +1,4 @@
1
- import { ref as d, getCurrentInstance as _, onMounted as P, computed as S, watch as z, createElementBlock as g, openBlock as c, Fragment as h, createCommentVNode as w, renderList as W, unref as r, normalizeClass as $, createVNode as V, createBlock as A } from "vue";
1
+ import { ref as d, getCurrentInstance as S, onMounted as _, computed as P, watch as z, createElementBlock as g, openBlock as c, Fragment as h, createCommentVNode as w, renderList as W, unref as r, normalizeClass as $, createVNode as V, createBlock as A } from "vue";
2
2
  import { getLanguages as N } from "../../services/dpiV3_apis.js";
3
3
  import U from "../Dropdown.vue.js";
4
4
  import q from "../ButtonV3.vue.js";
@@ -23,15 +23,15 @@ const Q = {
23
23
  let l = d([{ label: "", "@value": "", uri: "" }]), u = {};
24
24
  const { formValues: k } = H(), { t: f } = E(), y = () => {
25
25
  l.value.push({});
26
- }, b = _(), B = b.appContext.app.config.globalProperties.$env, I = b.appContext.app.config.globalProperties.$i18n.locale;
26
+ }, b = S(), B = b.appContext.app.config.globalProperties.$env, L = b.appContext.app.config.globalProperties.$i18n.locale;
27
27
  let p = d([]);
28
28
  u = k.value.DistributionSimple["dcat:distribution"].find(
29
29
  (e) => e.id === n.distributionId
30
- ) || {}, P(async () => {
30
+ ) || {}, _(async () => {
31
31
  var e;
32
32
  u["dct:language"].length > 0 && (l.value = u["dct:language"]), p.value = (e = u["dct:language"]) == null ? void 0 : e.map((a) => a.label);
33
33
  try {
34
- const a = await N(B.api.baseUrl, I);
34
+ const a = await N(B.api.baseUrl, L);
35
35
  s.value = a.map((t) => ({
36
36
  "@value": t.label,
37
37
  label: t.label,
@@ -42,8 +42,8 @@ const Q = {
42
42
  }
43
43
  });
44
44
  const s = d([]);
45
- let L = d(p);
46
- console.log("Titelliste", L);
45
+ let I = d(p);
46
+ console.log("Titelliste", I);
47
47
  const O = C, F = (e, a) => {
48
48
  l.value.length > 1 ? (l.value[a] = {
49
49
  label: e,
@@ -54,7 +54,7 @@ const Q = {
54
54
  }, u["dct:language"][0] = l.value[0], s.value.find((t) => t["@value"] === e).uri);
55
55
  }, m = d(""), x = (e) => {
56
56
  m.value = e, console.log(m);
57
- }, T = S(() => s.value.filter(
57
+ }, T = P(() => s.value.filter(
58
58
  (e) => {
59
59
  var a, t, o, i;
60
60
  return (i = (a = e["@value"]) == null ? void 0 : a.toLowerCase()) == null ? void 0 : i.trim().startsWith((o = (t = m.value) == null ? void 0 : t.toLowerCase()) == null ? void 0 : o.trim());
@@ -104,8 +104,9 @@ const Q = {
104
104
  }, null, 8, ["onUpdate:modelValue", "modelValue", "inputFieldProps", "data"]),
105
105
  n.inOverview ? w("", !0) : (c(), A(M, {
106
106
  key: 0,
107
- "button-text": "löschen",
107
+ "button-text": "Löschen",
108
108
  class: "rightAlign",
109
+ iconStart: "trash",
109
110
  onClick: (i) => r(l).splice(o, 1)
110
111
  }, null, 8, ["onClick"]))
111
112
  ], 2))), 256)),
@@ -54,7 +54,7 @@ const T = { class: "dpiV3_LinkAndMetadata" }, F = {
54
54
  } });
55
55
  const L = (o, e, t) => {
56
56
  let a = i(_.value.DistributionSimple["dcat:distribution"].find((x) => x.id === t));
57
- a.value.policyItems === void 0 && (a.value.policyItems = [{ "dcat:downloadURL": "" }]), a.value.policyItems[0]["dcat:downloadURL"] = o.target.value;
57
+ a.value.policyItems[0] === void 0 && (a.value.policyItems = [{ "dcat:downloadURL": "" }]), a.value.policyItems[0]["dcat:downloadURL"] = o.target.value;
58
58
  }, b = () => {
59
59
  if (s.policyItems.length === 1) {
60
60
  v.value = !0;
@@ -103,7 +103,7 @@ const T = { class: "dpiV3_LinkAndMetadata" }, F = {
103
103
  }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1"])) : p("", !0)
104
104
  ], 2));
105
105
  }
106
- }, G = /* @__PURE__ */ S(q, [["__scopeId", "data-v-389f6598"]]);
106
+ }, G = /* @__PURE__ */ S(q, [["__scopeId", "data-v-55082169"]]);
107
107
  export {
108
108
  G as default
109
109
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./DatasetForm.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8dca9b13"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2fd1fa41"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };