@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,7 +1,7 @@
1
1
  import t from "./OptionalDataStep.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ce7812db"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6f7ed213"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -16,7 +16,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
16
16
  class: "funny-section"
17
17
  }, R = { class: "partner-cards-container" }, H = { class: "action-container" }, J = { class: "funny-section" }, Q = { class: "start-and-end" }, X = { class: "funny-section" }, Y = { class: "funny-section required-skills" }, ee = {
18
18
  key: 0,
19
- class: "d-flex"
19
+ style: { display: "flex", "flex-wrap": "wrap" }
20
20
  }, te = ["id", "value"], ne = ["for"], ie = { class: "action-container" }, le = {
21
21
  id: "partners-section",
22
22
  class: "funny-section"
@@ -1,17 +1,21 @@
1
- import { ref as m, onMounted as C, createElementBlock as c, openBlock as s, normalizeClass as S, createCommentVNode as h, createBlock as U, Fragment as k, renderList as L, createElementVNode as y, createVNode as u, unref as d, isRef as T } from "vue";
2
- import D from "../TextAreaV3.vue.js";
3
- import b from "../ButtonV3.vue.js";
4
- import R from "../ModalSimpleV3.vue.js";
5
- import I from "../InputField.vue.js";
1
+ import { ref as h, reactive as T, onMounted as z, createElementBlock as c, openBlock as r, normalizeClass as b, createCommentVNode as g, createBlock as D, Fragment as M, renderList as E, createElementVNode as L, createVNode as u, unref as d, toDisplayString as N, isRef as P } from "vue";
2
+ import q from "../TextAreaV3.vue.js";
3
+ import S from "../ButtonV3.vue.js";
4
+ import W from "../ModalSimpleV3.vue.js";
5
+ import w from "../InputField.vue.js";
6
+ import { PhWarning as $ } from "@phosphor-icons/vue";
6
7
  /* empty css */
7
- import M from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
- const z = { class: "dpiV3_LinkAndMetadata" }, E = {
8
+ import H from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
9
+ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
9
10
  key: 0,
11
+ class: "dpiV3_errorMessage"
12
+ }, j = { class: "copy-mini-regular" }, G = {
13
+ key: 1,
10
14
  class: "copy-mini-regular dpiV3_text_error"
11
- }, N = {
15
+ }, J = {
12
16
  key: 0,
13
17
  class: "dpiV3_tempAddMore"
14
- }, q = {
18
+ }, K = {
15
19
  __name: "AccessServiceV3",
16
20
  props: {
17
21
  accessServices: { type: Array, required: !0 },
@@ -20,12 +24,12 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
20
24
  showDeleteButton: { type: Boolean, required: !1, default: !1 }
21
25
  },
22
26
  emits: ["update"],
23
- setup(a, { emit: x }) {
24
- let l = m({});
25
- const i = a, p = x, g = m(!1), V = m(null);
26
- let r = m(!1);
27
- C(() => {
28
- console.log("Component Mounted: accessServices received for distributionId:", i.distributionId), console.log("accessServices:", i.accessServices), i.accessServices.length === 0 && (console.log("No accessServices found, initializing first service."), p("update", [
27
+ setup(a, { expose: _, emit: A }) {
28
+ let s = h({});
29
+ const o = a, m = A, R = h(!1), V = h(null), l = T({});
30
+ let p = h(!1);
31
+ z(() => {
32
+ console.log("Component Mounted: accessServices received for distributionId:", o.distributionId), console.log("accessServices:", o.accessServices), o.accessServices.length === 0 && (console.log("No accessServices found, initializing first service."), m("update", [
29
33
  {
30
34
  id: 1,
31
35
  "dcat:downloadURL": "",
@@ -34,54 +38,75 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
34
38
  }
35
39
  ]));
36
40
  });
37
- const A = (n) => {
38
- switch (n) {
41
+ const f = (t) => {
42
+ if (!t || t.trim() === "") return !1;
43
+ const i = t.trim();
44
+ return /\.[a-zA-Z]{2,}$/.test(i);
45
+ }, v = (t) => {
46
+ const i = t["dct:title"] && t["dct:title"].trim() !== "", e = t["dct:description"] && t["dct:description"].trim() !== "";
47
+ return i || e;
48
+ }, I = (t) => {
49
+ const i = o.accessServices.find((e) => e.id === t);
50
+ if (i) {
51
+ const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
52
+ v(i) ? e ? f(e) ? l[t] = null : l[t] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)" : l[t] = "Bitte geben Sie eine gültige URL ein." : e && !f(e) ? l[t] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)" : l[t] = null;
53
+ }
54
+ }, x = () => {
55
+ let t = !1;
56
+ return o.accessServices.forEach((i) => {
57
+ const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
58
+ v(i) ? e ? f(e) || (l[i.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", t = !0) : (l[i.id] = "URL ist erforderlich", t = !0) : e && !f(e) && (l[i.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", t = !0);
59
+ }), t;
60
+ }, k = (t) => {
61
+ switch (t) {
39
62
  case "delete":
40
- _();
63
+ F();
41
64
  break;
42
65
  }
43
- }, B = () => {
44
- const o = {
45
- id: (i.accessServices.length ? Math.max(...i.accessServices.map((e) => e.id)) : 0) + 1,
66
+ }, y = () => {
67
+ if (x())
68
+ return;
69
+ const i = {
70
+ id: (o.accessServices.length ? Math.max(...o.accessServices.map((e) => e.id)) : 0) + 1,
46
71
  "dcat:downloadURL": "",
47
72
  "dct:title": "",
48
73
  "dct:description": ""
49
74
  };
50
- p("update", [...i.accessServices, o]);
51
- }, f = (n, o, e) => {
52
- const t = i.accessServices.map(
53
- (v) => v.id === e ? { ...v, [o]: n.target.value } : v
75
+ m("update", [...o.accessServices, i]);
76
+ }, U = (t, i, e) => {
77
+ const n = o.accessServices.map(
78
+ (B) => B.id === e ? { ...B, [i]: t.target.value } : B
54
79
  );
55
- p("update", t);
56
- }, w = (n) => {
57
- l.value = {
80
+ m("update", n), setTimeout(() => {
81
+ I(e);
82
+ }, 0);
83
+ }, C = (t) => {
84
+ s.value = {
58
85
  button: "Löschen",
59
86
  header: "Datenservice löschen",
60
87
  text: "Sind Sie sicher, dass Sie den Service löschen wollen?",
61
88
  action: "delete",
62
- optionalString_1: n["dct:title"],
63
- optionalString_2: n["dcat:downloadURL"]
64
- }, r.value = !0, V.value = n;
65
- }, _ = () => {
66
- if (i.accessServices.length === 1) {
67
- g.value = !0;
68
- return;
69
- }
70
- const n = i.accessServices.filter(
71
- (o) => o.id !== V.value.id
89
+ optionalString_1: t["dct:title"],
90
+ optionalString_2: t["dcat:downloadURL"]
91
+ }, p.value = !0, V.value = t;
92
+ }, F = () => {
93
+ const t = o.accessServices.filter(
94
+ (i) => i.id !== V.value.id
72
95
  );
73
- p("update", n);
96
+ delete l[V.value.id], m("update", t);
74
97
  };
75
- return (n, o) => (s(), c("div", {
76
- class: S(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: a.asCard }])
98
+ return _({
99
+ validateAllItems: x
100
+ }), (t, i) => (r(), c("div", {
101
+ class: b(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: a.asCard }])
77
102
  }, [
78
- (s(!0), c(k, null, L(a.accessServices, (e) => (s(), c("div", {
103
+ (r(!0), c(M, null, E(a.accessServices, (e) => (r(), c("div", {
79
104
  key: e.id,
80
- class: S(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: a.asCard }])
105
+ class: b(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: a.asCard }])
81
106
  }, [
82
- y("div", z, [
83
- u(I, {
84
- onInput: (t) => f(t, "dcat:downloadURL", e.id),
107
+ L("div", O, [
108
+ u(w, {
109
+ onInput: (n) => U(n, "dcat:downloadURL", e.id),
85
110
  addOnText: !1,
86
111
  datePicker: !1,
87
112
  infoIcon: !1,
@@ -92,10 +117,17 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
92
117
  label: "URL",
93
118
  showEndIcon: !1,
94
119
  modelValue: e["dcat:downloadURL"],
95
- "onUpdate:modelValue": (t) => e["dcat:downloadURL"] = t
120
+ "onUpdate:modelValue": (n) => e["dcat:downloadURL"] = n
96
121
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
97
- u(I, {
98
- onInput: (t) => f(t, "dct:title", e.id),
122
+ l[e.id] ? (r(), c("div", Z, [
123
+ u(d($), {
124
+ size: 16,
125
+ weight: "fill"
126
+ }),
127
+ L("span", j, N(l[e.id]), 1)
128
+ ])) : g("", !0),
129
+ u(w, {
130
+ onInput: (n) => U(n, "dct:title", e.id),
99
131
  addOnText: !1,
100
132
  datePicker: !1,
101
133
  infoIcon: !1,
@@ -106,52 +138,52 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
106
138
  label: "Titel (optional)",
107
139
  showEndIcon: !1,
108
140
  modelValue: e["dct:title"],
109
- "onUpdate:modelValue": (t) => e["dct:title"] = t,
141
+ "onUpdate:modelValue": (n) => e["dct:title"] = n,
110
142
  defaultInput: !a.showDeleteButton
111
143
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "defaultInput"]),
112
- u(D, {
113
- onInput: (t) => f(t, "dct:description", e.id),
144
+ u(q, {
145
+ onInput: (n) => U(n, "dct:description", e.id),
114
146
  hint: !1,
115
147
  label: "Beschreibung (optional)",
116
148
  placeholder: "Bitte Beschreibung eingeben...",
117
149
  modelValue: e["dct:description"],
118
- "onUpdate:modelValue": (t) => e["dct:description"] = t,
150
+ "onUpdate:modelValue": (n) => e["dct:description"] = n,
119
151
  showDeleteButton: a.showDeleteButton
120
152
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showDeleteButton"]),
121
- g.value && a.accessServices.length === 1 ? (s(), c("p", E, " Mindestens eine URL muss vorhanden sein. ")) : h("", !0)
153
+ R.value && a.accessServices.length === 1 ? (r(), c("p", G, " Mindestens eine URL muss vorhanden sein. ")) : g("", !0)
122
154
  ]),
123
- u(b, {
155
+ u(S, {
124
156
  class: "dpiV3_tempAddMore",
125
157
  buttonText: "Löschen",
126
158
  size: "small",
127
159
  iconStart: "trash",
128
160
  variant: "tertiary",
129
- onClick: (t) => w(e)
161
+ onClick: (n) => C(e)
130
162
  }, null, 8, ["onClick"])
131
163
  ], 2))), 128)),
132
- a.asCard ? h("", !0) : (s(), c("div", N, [
133
- u(b, {
164
+ a.asCard ? g("", !0) : (r(), c("div", J, [
165
+ u(S, {
134
166
  buttonText: "Weiteren Service hinzufügen",
135
167
  size: "small",
136
168
  iconStart: "plus",
137
169
  variant: "tertiary",
138
- onClick: B
170
+ onClick: y
139
171
  })
140
172
  ])),
141
- d(r) ? (s(), U(R, {
173
+ d(p) ? (r(), D(W, {
142
174
  key: 1,
143
- buttons: d(l).button,
144
- headerText: d(l).header,
145
- text: d(l).text,
146
- onClose: o[0] || (o[0] = (e) => T(r) ? r.value = !1 : r = !1),
147
- action: d(l).action,
148
- onActionHandling: o[1] || (o[1] = (e) => A(e)),
149
- optionalString_1: d(l).optionalString_1,
150
- optionalString_2: d(l).optionalString_2
151
- }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : h("", !0)
175
+ buttons: d(s).button,
176
+ headerText: d(s).header,
177
+ text: d(s).text,
178
+ onClose: i[0] || (i[0] = (e) => P(p) ? p.value = !1 : p = !1),
179
+ action: d(s).action,
180
+ onActionHandling: i[1] || (i[1] = (e) => k(e)),
181
+ optionalString_1: d(s).optionalString_1,
182
+ optionalString_2: d(s).optionalString_2
183
+ }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : g("", !0)
152
184
  ], 2));
153
185
  }
154
- }, G = /* @__PURE__ */ M(q, [["__scopeId", "data-v-5b5b9169"]]);
186
+ }, oe = /* @__PURE__ */ H(K, [["__scopeId", "data-v-9f224f36"]]);
155
187
  export {
156
- G as default
188
+ oe as default
157
189
  };
@@ -1,10 +1,17 @@
1
- import { ref as s, onMounted as b, getCurrentInstance as x, watch as c, createElementBlock as p, openBlock as f, Fragment as z, createCommentVNode as I, createVNode as g, normalizeClass as D, unref as C } from "vue";
2
- import { getLicenses as V } from "../../services/dpiV3_apis.js";
3
- import T from "../Dropdown.vue.js";
4
- import B from "../InputField.vue.js";
1
+ import { ref as s, onMounted as _, getCurrentInstance as N, watch as y, createElementBlock as f, openBlock as d, Fragment as S, createCommentVNode as g, createElementVNode as b, createVNode as w, createBlock as E, normalizeClass as M, unref as m, toDisplayString as x } from "vue";
2
+ import { getLicenses as P } from "../../services/dpiV3_apis.js";
3
+ import O from "../Dropdown.vue.js";
4
+ import U from "../InputField.vue.js";
5
+ import { PhWarning as D } from "@phosphor-icons/vue";
5
6
  /* empty css */
6
- import F from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
7
- const k = { key: 0 }, y = {
7
+ import A from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
+ const H = { key: 0 }, W = { class: "dpiV3_LinkAndMetadata" }, q = {
9
+ key: 0,
10
+ class: "dpiV3_errorMessage"
11
+ }, j = { class: "copy-mini-regular" }, G = {
12
+ key: 2,
13
+ class: "dpiV3_errorMessage"
14
+ }, J = { class: "copy-mini-regular" }, $ = {
8
15
  __name: "ChangeLicenseV3",
9
16
  props: {
10
17
  distributionId: { type: Number, required: !1 },
@@ -14,100 +21,146 @@ const k = { key: 0 }, y = {
14
21
  asCard: { type: Boolean, default: !1 }
15
22
  },
16
23
  emits: ["addChangeLicense", "deleteButtonClicked"],
17
- setup(o, { emit: m }) {
18
- let d = s([]);
19
- b(async () => {
20
- const n = x().appContext.app.config.globalProperties.$env;
24
+ setup(r, { expose: T, emit: V }) {
25
+ let h = s([]);
26
+ const c = s(null), p = s(null);
27
+ _(async () => {
28
+ const t = N().appContext.app.config.globalProperties.$env;
21
29
  try {
22
- const e = await V(n.api.baseUrl);
23
- d.value = e.map((u) => ({
24
- "@value": u.value,
25
- label: u.label
30
+ a.changeLicenseText !== "" && (v.value = !0);
31
+ const e = await P(t.api.baseUrl);
32
+ h.value = e.map((o) => ({
33
+ uri: o.uri,
34
+ "@value": o.value,
35
+ label: o.label
26
36
  }));
27
37
  } catch (e) {
28
38
  console.error("Failed to load licenses", e);
29
39
  }
30
40
  });
31
- const i = o, l = s(i.changeLicenseText);
41
+ const a = r;
42
+ let v = s(!1);
43
+ const l = s(a.changeLicenseText);
32
44
  s([]);
33
- const a = s(i.changeLicenseDropdownText), r = m, h = (t) => {
34
- l.value = t.target.value, r(
45
+ const i = s(a.changeLicenseDropdownText), z = V, u = (n, t) => {
46
+ const e = typeof i.value == "string" ? i.value.trim() : "", o = typeof l.value == "string" ? l.value.trim() : "";
47
+ let L = !1;
48
+ if (t) {
49
+ const F = n !== "" && (n.includes("cc-by") || n.includes("dl-by-de"));
50
+ v.value = F;
51
+ }
52
+ return c.value = null, p.value = null, e && (e.toLowerCase().includes("cc-by") || e.toLowerCase().includes("cc by")) && (o || (p.value = "Nennung des Datenbereitstellers ist erforderlich für diese Lizenz", L = !0)), o && !e && (c.value = "Lizenz ist erforderlich wenn Nennung des Datenbereitstellers ausgefüllt ist", L = !0), L;
53
+ }, I = (n) => {
54
+ var e;
55
+ const t = typeof n == "string" ? n : ((e = n == null ? void 0 : n.target) == null ? void 0 : e.value) ?? "";
56
+ l.value = t, z(
35
57
  "addChangeLicense",
36
58
  l.value,
37
- a.value,
38
- i.distributionId
59
+ i.value,
60
+ a.distributionId
61
+ ), setTimeout(() => {
62
+ u(n, !1);
63
+ }, 0);
64
+ }, C = (n) => {
65
+ let t = h.value.find(
66
+ (e) => e["@value"] === n
39
67
  );
40
- }, v = (t) => {
41
- a.value = t, r(
68
+ i.value = n, l.value = "", z(
42
69
  "addChangeLicense",
43
70
  l.value,
44
- a.value,
45
- i.distributionId
46
- );
71
+ i.value,
72
+ a.distributionId,
73
+ t.uri
74
+ ), setTimeout(() => {
75
+ u(n, !0);
76
+ }, 0);
47
77
  };
48
- c(
49
- () => i.changeLicenseDropdownText,
50
- (t) => {
51
- a.value = t;
78
+ y(
79
+ () => a.changeLicenseDropdownText,
80
+ (n) => {
81
+ i.value = n;
52
82
  }
53
- ), c(
54
- () => i.changeLicenseText,
55
- (t) => {
56
- l.value = t;
83
+ ), y(
84
+ () => a.changeLicenseText,
85
+ (n) => {
86
+ l.value = n;
57
87
  }
58
88
  );
59
- const L = () => {
60
- a.value = "";
61
- }, w = () => {
62
- l.value = "";
89
+ const k = () => {
90
+ i.value = "", setTimeout(() => {
91
+ u();
92
+ }, 0);
93
+ }, B = () => {
94
+ l.value = "", setTimeout(() => {
95
+ u();
96
+ }, 0);
63
97
  };
64
- return (t, n) => (f(), p(z, null, [
65
- o.asCard ? I("", !0) : (f(), p("p", k, " Die von Ihnen gewählte Lizenz bestimmt, wie andere Ihre Daten verwenden und teilen können. Je einfacher die Lizenz, desto besser. Um eine Wiederverwendung zu erleichtern, ist die Auswahl eines bereits verbreiteten Lizenzstandards zu empfehlen. ")),
66
- g(T, {
67
- "onUpdate:modelValue": [
68
- n[0] || (n[0] = (e) => v(e)),
69
- n[1] || (n[1] = (e) => a.value = e)
70
- ],
71
- dropdownWidth: "large",
72
- type: "inputField",
73
- modelValue: a.value,
74
- inputFieldProps: {
98
+ return T({
99
+ validate: u
100
+ }), (n, t) => (d(), f(S, null, [
101
+ r.asCard ? g("", !0) : (d(), f("p", H, " Die von Ihnen gewählte Lizenz bestimmt, wie andere Ihre Daten verwenden und teilen können. Je einfacher die Lizenz, desto besser. Um eine Wiederverwendung zu erleichtern, ist die Auswahl eines bereits verbreiteten Lizenzstandards zu empfehlen. ")),
102
+ b("div", W, [
103
+ w(O, {
104
+ "onUpdate:modelValue": [
105
+ t[0] || (t[0] = (e) => C(e)),
106
+ t[1] || (t[1] = (e) => i.value = e)
107
+ ],
108
+ dropdownWidth: "large",
109
+ type: "inputField",
110
+ modelValue: i.value,
111
+ inputFieldProps: {
112
+ addOnText: !1,
113
+ initialHintText: !1,
114
+ datePicker: !1,
115
+ infoIcon: !1,
116
+ preIcon: !1,
117
+ label: "Lizenz nur für diesen Link",
118
+ dropdown_dpiV3: !0,
119
+ placeholder: "Geben Sie die Lizenz ein...",
120
+ inputFieldSize: "large",
121
+ modelValue: i.value,
122
+ defaultInput: !r.showDeleteButton
123
+ },
124
+ data: m(h),
125
+ onDeleteDropdownField: k,
126
+ class: M({ dpiV3_Space3: r.showDeleteButton })
127
+ }, null, 8, ["modelValue", "inputFieldProps", "data", "class"]),
128
+ c.value ? (d(), f("div", q, [
129
+ w(m(D), {
130
+ size: 16,
131
+ weight: "fill"
132
+ }),
133
+ b("span", j, x(c.value), 1)
134
+ ])) : g("", !0),
135
+ m(v) ? (d(), E(U, {
136
+ key: 1,
137
+ onInput: t[2] || (t[2] = (e) => I(e)),
138
+ modelValue: l.value,
139
+ "onUpdate:modelValue": t[3] || (t[3] = (e) => l.value = e),
75
140
  addOnText: !1,
76
- initialHintText: !1,
77
141
  datePicker: !1,
78
142
  infoIcon: !1,
143
+ placeholder: "Bitte Namensnennungstext eingeben...",
79
144
  preIcon: !1,
80
- label: "Lizenz nur für diesen Link",
81
- dropdown_dpiV3: !0,
82
- placeholder: "Geben Sie die Lizenz ein...",
83
145
  inputFieldSize: "large",
84
- modelValue: a.value,
85
- defaultInput: !o.showDeleteButton
86
- },
87
- data: C(d),
88
- onDeleteDropdownField: L,
89
- class: D({ dpiV3_Space3: o.showDeleteButton })
90
- }, null, 8, ["modelValue", "inputFieldProps", "data", "class"]),
91
- g(B, {
92
- onInput: n[2] || (n[2] = (e) => h(e)),
93
- modelValue: l.value,
94
- "onUpdate:modelValue": n[3] || (n[3] = (e) => l.value = e),
95
- addOnText: !1,
96
- datePicker: !1,
97
- infoIcon: !1,
98
- placeholder: "Bitte Namensnennungstext eingeben...",
99
- preIcon: !1,
100
- inputFieldSize: "large",
101
- initialHintText: !0,
102
- label: "Nennung des Datenbereitstellers",
103
- showEndIcon: !1,
104
- defaultInput: !o.showDeleteButton,
105
- onDeleteButtonClicked: w,
106
- supportingHintMessage: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden."
107
- }, null, 8, ["modelValue", "defaultInput"])
146
+ initialHintText: !0,
147
+ label: "Nennung des Datenbereitstellers",
148
+ showEndIcon: !1,
149
+ defaultInput: !r.showDeleteButton,
150
+ onDeleteButtonClicked: B,
151
+ supportingHintMessage: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden."
152
+ }, null, 8, ["modelValue", "defaultInput"])) : g("", !0),
153
+ p.value ? (d(), f("div", G, [
154
+ w(m(D), {
155
+ size: 16,
156
+ weight: "fill"
157
+ }),
158
+ b("span", J, x(p.value), 1)
159
+ ])) : g("", !0)
160
+ ])
108
161
  ], 64));
109
162
  }
110
- }, O = /* @__PURE__ */ F(y, [["__scopeId", "data-v-1896a82d"]]);
163
+ }, ne = /* @__PURE__ */ A($, [["__scopeId", "data-v-65faf32f"]]);
111
164
  export {
112
- O as default
165
+ ne as default
113
166
  };