@piveau/dpi 0.2.0-alpha.19 → 0.2.0-alpha.20

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/DPIHome.vue.js +62 -56
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +58 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +65 -53
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +60 -56
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +67 -79
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +17 -17
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +411 -318
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +1 -1
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +88 -60
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +143 -126
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +64 -48
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +46 -41
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +227 -208
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +124 -106
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +113 -108
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +370 -360
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +464 -182
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +31 -26
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +2 -2
  36. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +95 -89
  37. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +139 -122
  38. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +618 -525
  39. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +56 -55
  40. package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +94 -89
  41. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +247 -238
  42. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +4 -4
  43. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +16 -17
  44. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +122 -104
  45. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
  46. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +332 -305
  47. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +89 -55
  48. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +243 -199
  49. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +24 -11
  50. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +14 -12
  51. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +317 -288
  52. package/package.json +2 -2
@@ -1,11 +1,18 @@
1
- import { ref as n, onMounted as I, getCurrentInstance as g, watch as p, createElementBlock as V, openBlock as w, Fragment as D, createVNode as f, normalizeClass as T } from "vue";
2
- import { useFormValues as C } from "../../../composables/useDpiFormValues.js";
3
- import { getChecksumAlgorithms as F } from "../../services/dpiV3_apis.js";
4
- import S from "../Dropdown.vue.js";
5
- import B from "../InputField.vue.js";
1
+ import { ref as n, onMounted as P, getCurrentInstance as A, watch as g, createElementBlock as f, openBlock as v, createVNode as d, createCommentVNode as x, normalizeClass as E, createElementVNode as V, unref as b, toDisplayString as I } from "vue";
2
+ import { useFormValues as z } from "../../../composables/useDpiFormValues.js";
3
+ import { getChecksumAlgorithms as M } from "../../services/dpiV3_apis.js";
4
+ import N from "../Dropdown.vue.js";
5
+ import O from "../InputField.vue.js";
6
+ import { PhWarning as w } from "@phosphor-icons/vue";
6
7
  /* empty css */
7
- import y from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
- const P = {
8
+ import U from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
9
+ const q = { class: "dpiV3_LinkAndMetadata" }, H = {
10
+ key: 0,
11
+ class: "dpiV3_errorMessage"
12
+ }, W = { class: "copy-mini-regular" }, G = {
13
+ key: 1,
14
+ class: "dpiV3_errorMessage"
15
+ }, L = { class: "copy-mini-regular" }, $ = {
9
16
  __name: "ChecksumV3",
10
17
  props: {
11
18
  distributionId: { type: Number, required: !1 },
@@ -16,63 +23,70 @@ const P = {
16
23
  distIndex: { type: Number, required: !1 }
17
24
  },
18
25
  emits: ["addChecksum", "deleteButtonClicked"],
19
- setup(i, { emit: h }) {
20
- const s = n([]), { formValues: d } = C();
21
- I(async () => {
22
- const e = g().appContext.app.config.globalProperties.$env;
26
+ setup(r, { expose: D, emit: T }) {
27
+ const c = n([]), { formValues: m } = z(), o = n(null), u = n(null);
28
+ P(async () => {
29
+ const t = A().appContext.app.config.globalProperties.$env;
23
30
  try {
24
- const t = await F(e.api.baseUrl);
25
- s.value = t.map((r) => ({
26
- "@value": r.value,
27
- label: r.label,
31
+ const e = await M(t.api.baseUrl);
32
+ c.value = e.map((p) => ({
33
+ "@value": p.value,
34
+ label: p.label,
28
35
  selected: !1,
29
- uri: r.resource
36
+ uri: p.resource
30
37
  }));
31
- } catch (t) {
32
- console.error("Failed to load checksum algorithms:", t);
38
+ } catch (e) {
39
+ console.error("Failed to load checksum algorithms:", e);
33
40
  }
34
41
  });
35
- const o = i, a = n(o.checksumText);
42
+ const s = r, i = n(s.checksumText);
36
43
  n([]);
37
- const u = n(o.checksumDropdownText), c = h;
38
- let m = "";
39
- const k = (l) => {
40
- a.value = l.target.value, c(
44
+ const a = n(s.checksumDropdownText), h = T;
45
+ let k = "";
46
+ const y = () => {
47
+ const l = i.value && i.value.trim() !== "", t = a.value && a.value.trim() !== "";
48
+ let e = !1;
49
+ return l || t ? (l ? u.value = null : (u.value = "Prüfsumme ist erforderlich", e = !0), t ? o.value = null : (o.value = "Algorithmus ist erforderlich", e = !0)) : (u.value = null, o.value = null), !e;
50
+ }, C = () => !y(), F = (l) => {
51
+ i.value = l.target.value, h(
41
52
  "addChecksum",
53
+ i.value,
42
54
  a.value,
43
- u.value,
44
- o.distributionId
55
+ s.distributionId
45
56
  );
46
- }, v = (l) => {
47
- u.value = l, m = s.value.find((e) => e["@value"] === l).uri || "", c(
57
+ }, S = (l) => {
58
+ var t;
59
+ a.value = l, k = ((t = c.value.find((e) => e["@value"] === l)) == null ? void 0 : t.uri) || "", h(
48
60
  "addChecksum",
61
+ i.value,
49
62
  a.value,
50
- u.value,
51
- o.distributionId,
52
- m
63
+ s.distributionId,
64
+ k
53
65
  );
54
66
  };
55
- p(
56
- () => o.checksumDropdownText,
67
+ g(
68
+ () => s.checksumDropdownText,
57
69
  (l) => {
58
- u.value = l;
70
+ a.value = l;
59
71
  }
60
- ), p(
61
- () => o.checksumText,
72
+ ), g(
73
+ () => s.checksumText,
62
74
  (l) => {
63
- a.value = l;
75
+ i.value = l;
64
76
  }
65
77
  );
66
- const x = () => {
67
- d.value.DistributionSimple["dcat:distribution"][o.distIndex].checksum.uri = "", d.value.DistributionSimple["dcat:distribution"][o.distIndex].checksum["spdx:checksum"] = "", u.value = "";
68
- }, b = () => {
69
- d.value.DistributionSimple["dcat:distribution"][o.distIndex].checksum.title = "", a.value = "";
78
+ const _ = () => {
79
+ m.value.DistributionSimple["dcat:distribution"][s.distIndex].checksum.uri = "", m.value.DistributionSimple["dcat:distribution"][s.distIndex].checksum["spdx:checksum"] = "", a.value = "", o.value = null;
80
+ }, B = () => {
81
+ m.value.DistributionSimple["dcat:distribution"][s.distIndex].checksum.title = "", i.value = "", u.value = null;
70
82
  };
71
- return (l, e) => (w(), V(D, null, [
72
- f(B, {
73
- onInput: e[0] || (e[0] = (t) => k(t)),
74
- modelValue: a.value,
75
- "onUpdate:modelValue": e[1] || (e[1] = (t) => a.value = t),
83
+ return D({
84
+ validateAllItems: C
85
+ }), (l, t) => (v(), f("div", q, [
86
+ d(O, {
87
+ onInput: t[0] || (t[0] = (e) => F(e)),
88
+ modelValue: i.value,
89
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => i.value = e),
76
90
  addOnText: !1,
77
91
  datePicker: !1,
78
92
  infoIcon: !1,
@@ -82,18 +96,25 @@ const P = {
82
96
  initialHintText: !1,
83
97
  label: "Prüfsumme",
84
98
  showEndIcon: !1,
85
- defaultInput: !i.showDeleteButton,
86
- onDeleteButtonClicked: b,
87
- class: T({ dpiV3_Space3: i.showDeleteButton })
99
+ defaultInput: !r.showDeleteButton,
100
+ onDeleteButtonClicked: B,
101
+ class: E({ dpiV3_Space3: r.showDeleteButton })
88
102
  }, null, 8, ["modelValue", "defaultInput", "class"]),
89
- f(S, {
103
+ u.value ? (v(), f("div", H, [
104
+ d(b(w), {
105
+ size: 16,
106
+ weight: "fill"
107
+ }),
108
+ V("span", W, I(u.value), 1)
109
+ ])) : x("", !0),
110
+ d(N, {
90
111
  "onUpdate:modelValue": [
91
- e[2] || (e[2] = (t) => v(t)),
92
- e[3] || (e[3] = (t) => u.value = t)
112
+ t[2] || (t[2] = (e) => S(e)),
113
+ t[3] || (t[3] = (e) => a.value = e)
93
114
  ],
94
115
  dropdownWidth: "large",
95
116
  type: "inputField",
96
- modelValue: u.value,
117
+ modelValue: a.value,
97
118
  inputFieldProps: {
98
119
  addOnText: !1,
99
120
  initialHintText: !1,
@@ -104,15 +125,22 @@ const P = {
104
125
  dropdown_dpiV3: !0,
105
126
  placeholder: "Geben Sie den Algorithmus ein...",
106
127
  inputFieldSize: "large",
107
- modelValue: u.value,
108
- defaultInput: !i.showDeleteButton
128
+ modelValue: a.value,
129
+ defaultInput: !r.showDeleteButton
109
130
  },
110
- data: s.value,
111
- onDeleteDropdownField: x
112
- }, null, 8, ["modelValue", "inputFieldProps", "data"])
113
- ], 64));
131
+ data: c.value,
132
+ onDeleteDropdownField: _
133
+ }, null, 8, ["modelValue", "inputFieldProps", "data"]),
134
+ o.value ? (v(), f("div", G, [
135
+ d(b(w), {
136
+ size: 16,
137
+ weight: "fill"
138
+ }),
139
+ V("span", L, I(o.value), 1)
140
+ ])) : x("", !0)
141
+ ]));
114
142
  }
115
- }, H = /* @__PURE__ */ y(P, [["__scopeId", "data-v-82512521"]]);
143
+ }, ee = /* @__PURE__ */ U($, [["__scopeId", "data-v-a8f1bd35"]]);
116
144
  export {
117
- H as default
145
+ ee as default
118
146
  };
@@ -1,16 +1,20 @@
1
- import { ref as m, onMounted as U, createElementBlock as u, openBlock as s, normalizeClass as V, createCommentVNode as I, createBlock as y, Fragment as L, renderList as A, createElementVNode as R, createVNode as p, unref as i, isRef as M } from "vue";
2
- import b from "../ButtonV3.vue.js";
3
- import z from "../ModalSimpleV3.vue.js";
4
- import x from "../InputField.vue.js";
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";
2
+ import I from "../ButtonV3.vue.js";
3
+ import j from "../ModalSimpleV3.vue.js";
4
+ import w from "../InputField.vue.js";
5
+ import { PhWarning as Z } from "@phosphor-icons/vue";
5
6
  /* empty css */
6
- import D from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
7
- const $ = { class: "dpiV3_LinkAndMetadata" }, E = {
7
+ import G from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
+ const J = { class: "dpiV3_LinkAndMetadata" }, K = {
8
9
  key: 0,
10
+ class: "dpiV3_errorMessage"
11
+ }, Q = {
12
+ key: 1,
9
13
  class: "copy-mini-regular dpiV3_text_error"
10
- }, F = {
14
+ }, X = {
11
15
  key: 0,
12
16
  class: "dpiV3_tempAddMore"
13
- }, N = {
17
+ }, Y = {
14
18
  __name: "ConformsToV3",
15
19
  props: {
16
20
  conformsToItems: { type: Array, required: !0 },
@@ -18,12 +22,15 @@ const $ = { class: "dpiV3_LinkAndMetadata" }, E = {
18
22
  asCard: { type: Boolean, required: !1, default: !1 },
19
23
  showDeleteButton: { type: Boolean, required: !1, default: !1 }
20
24
  },
21
- emits: ["update"],
22
- setup(l, { emit: S }) {
23
- let d = m({});
24
- const a = l, c = S, g = m(!1), C = m(null);
25
- let r = m(!1);
26
- U(() => {
25
+ emits: ["update", "validationChange"],
26
+ setup(d, { expose: k, emit: _ }) {
27
+ let s = h({});
28
+ const a = d, c = _, y = h(!1), V = h(null), i = L({}), v = L({});
29
+ let m = h(!1);
30
+ const T = N(() => Object.values(i).some((e) => e === !0)), z = () => {
31
+ c("validationChange", T.value);
32
+ };
33
+ P(() => {
27
34
  console.log(
28
35
  "Component Mounted: conformsToItems received for distributionId:",
29
36
  a.distributionId
@@ -35,57 +42,79 @@ const $ = { class: "dpiV3_LinkAndMetadata" }, E = {
35
42
  }
36
43
  ]));
37
44
  });
38
- const v = (e) => {
45
+ const p = (e) => {
46
+ if (!e || e.trim() === "") return !1;
47
+ const t = e.trim();
48
+ return /\.[a-zA-Z]{2,}$/.test(t);
49
+ }, g = (e) => {
50
+ const t = a.conformsToItems.find((o) => o.id === e);
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;
54
+ }
55
+ }, U = () => {
56
+ let e = !1;
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);
60
+ }), e;
61
+ }, A = (e) => {
39
62
  switch (e) {
40
63
  case "delete":
41
- w();
64
+ D();
42
65
  break;
43
66
  }
44
- }, k = () => {
45
- const n = {
46
- id: (a.conformsToItems.length ? Math.max(...a.conformsToItems.map((t) => t.id)) : 0) + 1,
67
+ }, E = () => {
68
+ if (U())
69
+ return;
70
+ const t = {
71
+ id: (a.conformsToItems.length ? Math.max(...a.conformsToItems.map((o) => o.id)) : 0) + 1,
47
72
  "dcat:downloadURL": "",
48
73
  "dct:title": ""
49
74
  };
50
- c("update", [...a.conformsToItems, n]);
51
- }, T = (e, n, t) => {
52
- var h;
53
- (h = e == null ? void 0 : e.target) == null || h.value;
54
- const o = a.conformsToItems.map(
55
- (f) => f.id === t ? { ...f, [n]: e.target.value } : f
75
+ c("update", [...a.conformsToItems, t]);
76
+ }, M = (e) => {
77
+ v[e] && clearTimeout(v[e]), v[e] = setTimeout(() => {
78
+ g(e);
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
56
85
  );
57
- c("update", o);
58
- }, _ = (e) => {
59
- d.value = {
86
+ c("update", n), M(o);
87
+ }, $ = (e) => {
88
+ s.value = {
60
89
  button: "Löschen",
61
90
  header: "Standard löschen",
62
91
  text: "Sind Sie sicher, dass Sie diesen Standard löschen wollen?",
63
92
  action: "delete",
64
93
  optionalString_1: e["dct:title"],
65
94
  optionalString_2: e["dcat:downloadURL"]
66
- }, r.value = !0, C.value = e;
67
- }, w = () => {
68
- if (a.conformsToItems.length === 1) {
69
- g.value = !0;
70
- return;
71
- }
95
+ }, m.value = !0, V.value = e;
96
+ }, D = () => {
72
97
  const e = a.conformsToItems.filter(
73
- (n) => n.id !== C.value.id
98
+ (t) => t.id !== V.value.id
74
99
  );
75
- c("update", e);
76
- }, B = (e) => {
77
- e["dct:title"] = "";
100
+ delete i[V.value.id], c("update", e), z();
101
+ }, F = (e) => {
102
+ e["dct:title"] = "", g(e.id);
78
103
  };
79
- return (e, n) => (s(), u("div", {
80
- class: V(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: l.asCard }])
104
+ return k({
105
+ validateAllItems: U,
106
+ hasValidationErrors: T
107
+ }), (e, t) => (r(), u("div", {
108
+ class: S(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: d.asCard }])
81
109
  }, [
82
- (s(!0), u(L, null, A(l.conformsToItems, (t) => (s(), u("div", {
83
- key: t.id,
84
- class: V(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: l.asCard }])
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 }])
85
113
  }, [
86
- R("div", $, [
87
- p(x, {
88
- onInput: (o) => T(o, "dcat:downloadURL", t.id),
114
+ R("div", J, [
115
+ f(w, {
116
+ onInput: (n) => B(n, "dcat:downloadURL", o.id),
117
+ onBlur: (n) => g(o.id),
89
118
  addOnText: !1,
90
119
  datePicker: !1,
91
120
  infoIcon: !1,
@@ -95,11 +124,19 @@ const $ = { class: "dpiV3_LinkAndMetadata" }, E = {
95
124
  initialHintText: !1,
96
125
  label: "URL",
97
126
  showEndIcon: !1,
98
- modelValue: t["dcat:downloadURL"],
99
- "onUpdate:modelValue": (o) => t["dcat:downloadURL"] = o
100
- }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
101
- p(x, {
102
- onInput: (o) => T(o, "dct:title", t.id),
127
+ modelValue: o["dcat:downloadURL"],
128
+ "onUpdate:modelValue": (n) => o["dcat:downloadURL"] = n
129
+ }, null, 8, ["onInput", "onBlur", "modelValue", "onUpdate:modelValue"]),
130
+ i[o.id] ? (r(), u("div", K, [
131
+ f(l(Z), {
132
+ size: 16,
133
+ weight: "fill"
134
+ }),
135
+ t[2] || (t[2] = R("span", { class: "copy-mini-regular" }, "Bitte geben Sie eine gültige URL ein.", -1))
136
+ ])) : b("", !0),
137
+ f(w, {
138
+ onInput: (n) => B(n, "dct:title", o.id),
139
+ onBlur: (n) => g(o.id),
103
140
  addOnText: !1,
104
141
  datePicker: !1,
105
142
  infoIcon: !1,
@@ -111,14 +148,14 @@ const $ = { class: "dpiV3_LinkAndMetadata" }, E = {
111
148
  "message.dataupload.datasets.dcat:distribution.distribution-title.label"
112
149
  ),
113
150
  showEndIcon: !1,
114
- modelValue: t["dct:title"],
115
- "onUpdate:modelValue": (o) => t["dct:title"] = o,
116
- defaultInput: !l.showDeleteButton,
117
- onDeleteButtonClicked: (o) => B(t)
118
- }, null, 8, ["onInput", "label", "modelValue", "onUpdate:modelValue", "defaultInput", "onDeleteButtonClicked"]),
119
- g.value && l.conformsToItems.length === 1 ? (s(), u("p", E, " Mindestens eine URL muss vorhanden sein. ")) : I("", !0)
151
+ modelValue: o["dct:title"],
152
+ "onUpdate:modelValue": (n) => o["dct:title"] = n,
153
+ defaultInput: !d.showDeleteButton,
154
+ onDeleteButtonClicked: (n) => F(o)
155
+ }, null, 8, ["onInput", "onBlur", "label", "modelValue", "onUpdate:modelValue", "defaultInput", "onDeleteButtonClicked"]),
156
+ y.value && d.conformsToItems.length === 1 ? (r(), u("p", Q, " Mindestens eine URL muss vorhanden sein. ")) : b("", !0)
120
157
  ]),
121
- p(b, {
158
+ f(I, {
122
159
  class: "dpiV3_tempAddMore",
123
160
  buttonText: e.$t(
124
161
  "message.dataupload.datasets.dcat:distribution.advanced.documentation.delete"
@@ -126,32 +163,32 @@ const $ = { class: "dpiV3_LinkAndMetadata" }, E = {
126
163
  size: "small",
127
164
  iconStart: "trash",
128
165
  variant: "tertiary",
129
- onClick: (o) => _(t)
166
+ onClick: (n) => $(o)
130
167
  }, null, 8, ["buttonText", "onClick"])
131
168
  ], 2))), 128)),
132
- l.asCard ? I("", !0) : (s(), u("div", F, [
133
- p(b, {
169
+ d.asCard ? b("", !0) : (r(), u("div", X, [
170
+ f(I, {
134
171
  buttonText: "Weitere Standards hinzufügen",
135
172
  size: "small",
136
173
  iconStart: "plus",
137
174
  variant: "tertiary",
138
- onClick: k
175
+ onClick: E
139
176
  })
140
177
  ])),
141
- i(r) ? (s(), y(z, {
178
+ l(m) ? (r(), q(j, {
142
179
  key: 1,
143
- buttons: i(d).button,
144
- headerText: i(d).header,
145
- text: i(d).text,
146
- onClose: n[0] || (n[0] = (t) => M(r) ? r.value = !1 : r = !1),
147
- action: i(d).action,
148
- onActionHandling: n[1] || (n[1] = (t) => v(t)),
149
- optionalString_1: i(d).optionalString_1,
150
- optionalString_2: i(d).optionalString_2
151
- }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : I("", !0)
180
+ buttons: l(s).button,
181
+ headerText: l(s).header,
182
+ text: l(s).text,
183
+ onClose: t[0] || (t[0] = (o) => O(m) ? m.value = !1 : m = !1),
184
+ action: l(s).action,
185
+ onActionHandling: t[1] || (t[1] = (o) => A(o)),
186
+ optionalString_1: l(s).optionalString_1,
187
+ optionalString_2: l(s).optionalString_2
188
+ }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : b("", !0)
152
189
  ], 2));
153
190
  }
154
- }, G = /* @__PURE__ */ D(N, [["__scopeId", "data-v-aab2720a"]]);
191
+ }, de = /* @__PURE__ */ G(Y, [["__scopeId", "data-v-501b6eb9"]]);
155
192
  export {
156
- G as default
193
+ de as default
157
194
  };