@piveau/dpi 0.2.0-alpha.11 → 0.2.0-alpha.13

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 (41) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +1 -1
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +7 -0
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +180 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +7 -0
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +215 -0
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +37 -29
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +27 -27
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +4 -4
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +8 -8
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +127 -118
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +64 -57
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +21 -23
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js +12 -12
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +105 -96
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +89 -80
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +6 -5
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +4 -3
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +6 -5
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +6 -5
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +388 -375
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js +4 -3
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue.js +35 -31
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +43 -35
  32. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +224 -133
  33. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  34. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +11 -11
  35. package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +106 -0
  36. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +4 -0
  37. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +1 -1
  38. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +276 -251
  39. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +131 -124
  40. package/dist/packages/dpi/src/form/inputDefinitions.js +15 -10
  41. package/package.json +1 -1
@@ -1,137 +1,219 @@
1
- import { ref as f, watch as N, onMounted as q, getCurrentInstance as x, onUnmounted as O, createElementBlock as z, openBlock as y, createElementVNode as l, createVNode as V, createCommentVNode as T, toDisplayString as o, unref as v, isRef as W, createBlock as U, createTextVNode as k } from "vue";
2
- import j from "../HappyFlowComponents/ui/InputField.vue.js";
3
- import H from "../HappyFlowComponents/ui/Dropdown.vue.js";
4
- import { PhWarning as B, PhLightbulb as R, PhArrowSquareOut as G } from "@phosphor-icons/vue";
5
- import { getLicenses as J } from "../HappyFlowComponents/services/dpiV3_apis.js";
6
- import { useEditModeInfo as K } from "../composables/useDpiEditMode.js";
1
+ import { ref as v, computed as R, watch as C, onMounted as G, getCurrentInstance as J, onUnmounted as K, createElementBlock as k, openBlock as y, createElementVNode as a, createVNode as h, createCommentVNode as T, toDisplayString as r, unref as o, isRef as F, createBlock as Q, createTextVNode as S } from "vue";
2
+ import X from "../HappyFlowComponents/ui/InputField.vue.js";
3
+ import P from "../HappyFlowComponents/ui/Dropdown.vue.js";
4
+ import { PhWarning as A, PhLightbulb as Y, PhArrowSquareOut as Z } from "@phosphor-icons/vue";
5
+ import { getLicenses as ee } from "../HappyFlowComponents/services/dpiV3_apis.js";
6
+ import { useEditModeInfo as te } from "../composables/useDpiEditMode.js";
7
7
  /* empty css */
8
- import Q from "../../../../../_virtual/_plugin-vue_export-helper.js";
9
- const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular" }, Z = {
8
+ import le from "../../../../../_virtual/_plugin-vue_export-helper.js";
9
+ const se = { class: "dpiV3InnerComponentWrap" }, ie = { class: "copy-large-regular" }, ae = {
10
10
  key: 0,
11
+ class: "info-message"
12
+ }, ne = {
13
+ key: 1,
11
14
  class: "validation-error"
12
- }, ee = { class: "copy-mini-regular" }, te = { class: "input-container" }, se = {
15
+ }, oe = { class: "copy-mini-regular" }, de = { class: "input-container" }, re = {
13
16
  key: 1,
14
17
  class: "dpiV3_errormsgWrapper"
15
- }, ie = { class: "copy-mini-regular" }, ae = { class: "dpiV3_Content_InputPage" }, le = { class: "dpiV3_Card_Tips" }, ne = { class: "dpiV3_Icon_Title" }, oe = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, de = { class: "dpiV3_CT-Content" }, re = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, ue = { class: "dpiV3_hvd_frame3846" }, ce = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, pe = { class: "dpiV3_normal" }, ve = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, fe = { class: "dpiV3_normal" }, me = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, _e = { class: "dpiV3_normal" }, he = {
18
+ }, ue = { class: "copy-mini-regular" }, ce = { class: "dpiV3_Content_InputPage" }, pe = { class: "dpiV3_Card_Tips" }, ve = { class: "dpiV3_Icon_Title" }, fe = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, me = { class: "dpiV3_CT-Content" }, ge = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, he = { class: "dpiV3_hvd_frame3846" }, _e = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, be = { class: "dpiV3_normal" }, Ve = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ye = { class: "dpiV3_normal" }, ze = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, Le = { class: "dpiV3_normal" }, we = {
16
19
  href: "https://oc.bydata.de/sharing/articles/licenses",
17
20
  target: "_blank",
18
21
  rel: "noopener noreferrer",
19
22
  class: "dpiV3_link"
20
- }, ge = { class: "end_container" }, Ve = {
23
+ }, ke = { class: "end_container" }, Te = {
21
24
  key: 0,
22
25
  class: "form-error-message"
23
- }, be = {
26
+ }, Ne = {
24
27
  __name: "DistLicense",
25
28
  props: {
26
29
  context: Object,
27
30
  changeLicenseText: { type: String, default: "" },
28
31
  changeLicenseDropdownText: { type: String, default: "" }
29
32
  },
30
- setup(S) {
31
- const { isEditMode: D } = K();
32
- let I = f(!1), r = f([]), g = f(""), _ = f(null);
33
- const u = f(""), L = S;
34
- let d = f({ 1: "unset", 2: "unset" });
35
- const i = f([
33
+ setup(D) {
34
+ const { isEditMode: E } = te();
35
+ let N = v(!1), z = v([]), _ = v(""), b = v(null), u = v("");
36
+ const c = v(""), L = D, M = {
37
+ "freie Nutzung": [
38
+ "dl-zero-de/2.0",
39
+ "dl-by-de/2.0",
40
+ "cc-by/4.0",
41
+ "apache",
42
+ "bsd",
43
+ "cc-by",
44
+ "cc-by-de/3.0",
45
+ "cc-by-sa",
46
+ "cc-by-sa-de/3.0",
47
+ "cc-by-sa/4.0",
48
+ "ccpdm/1.0",
49
+ "cc-zero",
50
+ "dl-by-de/1.0",
51
+ "geonutz/20130319",
52
+ "geoNutz/20131001",
53
+ "gfdl",
54
+ "gpl/3.0",
55
+ "mozilla",
56
+ "odbl",
57
+ "odby",
58
+ "odcpddl",
59
+ "officialWork",
60
+ "other-open",
61
+ "other-opensource"
62
+ ],
63
+ "eingeschränkte Nutzung": [
64
+ // Note: These licenses don't appear in the current API response
65
+ // They may need to be added to the backend vocabulary
66
+ "cc-by-nc",
67
+ "cc-by-nc/3.0",
68
+ "cc-by-nc/4.0",
69
+ "cc-by-nd",
70
+ "cc-by-nd/3.0",
71
+ "cc-by-nd/4.0",
72
+ "dl-by-nc-de/1.0",
73
+ "other-closed",
74
+ "other-commercial",
75
+ "other-freeware"
76
+ ]
77
+ }, $ = v([
78
+ { "@value": "freie Nutzung", label: "freie Nutzung" },
79
+ { "@value": "eingeschränkte Nutzung", label: "eingeschränkte Nutzung" }
80
+ ]);
81
+ let d = v({ 1: "unset", 2: "unset" });
82
+ const s = v([
36
83
  { isValid: "unset", "dcterms:license": "", attribution: "", uri: "" }
37
- ]), c = f({
84
+ ]), p = v({
38
85
  2: { show: !1, message: "Namensnennungstext ist für diese Lizenz erforderlich" }
39
86
  });
40
- D.value || L.context.node.input(i);
41
- const $ = (e, t, s) => {
42
- w(e, t, s);
43
- }, A = (e) => {
87
+ E.value || L.context.node.input(s);
88
+ const m = R(() => {
89
+ if (!u.value)
90
+ return [];
91
+ const e = M[u.value] || [];
92
+ console.log("Selected license type:", u.value), console.log("Allowed licenses for this type:", e), console.log("All available license options:", z.value.map((l) => l["@value"]));
93
+ const t = z.value.filter(
94
+ (l) => e.includes(l["@value"])
95
+ );
96
+ return console.log("Filtered licenses:", t.map((l) => l["@value"])), t;
97
+ }), x = (e) => {
98
+ u.value = e, _.value = "", c.value = "", N.value = !1, d.value[1] = "unset", d.value[2] = "unset", s.value[0].isValid = "unset", p.value[2].show = !1, s.value = s.value.map((t) => ({ ...t, "dcterms:license": "", uri: "", title: "", attribution: "" })), L.context.node.input(s.value);
99
+ }, O = (e, t, l) => {
100
+ I(e, t, l);
101
+ }, W = (e) => {
44
102
  const t = typeof e == "object" && e.target ? e.target.value : e;
45
- _.value && clearTimeout(_.value), E(t, "dcterms:license", 1), _.value = setTimeout(() => {
46
- C(t, "dcterms:license", 1);
103
+ b.value && clearTimeout(b.value), q(t, "dcterms:license", 1), b.value = setTimeout(() => {
104
+ B(t, "dcterms:license", 1);
47
105
  }, 800);
48
- }, E = (e, t, s) => {
49
- u.value = "";
50
- const a = r.value.find((n) => n["@value"] === e);
51
- a ? w(e, t, s, a.uri) : e === "" ? (d.value[s] = !1, i.value[0].isValid = "unset", I.value = !1, c.value[2].show = !1, i.value = i.value.map((n) => t in n ? { ...n, [t]: "", uri: "", title: "" } : n), L.context.node.input(i.value)) : (d.value[s] = "unset", i.value[0].isValid = "unset");
52
- }, C = (e, t, s) => {
106
+ }, q = (e, t, l) => {
107
+ c.value = "";
108
+ const i = m.value.find((n) => n["@value"] === e);
109
+ i ? I(e, t, l, i.uri) : e === "" ? (d.value[l] = !1, s.value[0].isValid = "unset", N.value = !1, p.value[2].show = !1, s.value = s.value.map((n) => t in n ? { ...n, [t]: "", uri: "", title: "" } : n), L.context.node.input(s.value)) : (d.value[l] = "unset", s.value[0].isValid = "unset");
110
+ }, B = (e, t, l) => {
53
111
  if (e === "") {
54
- u.value = "";
112
+ c.value = "";
55
113
  return;
56
114
  }
57
- const a = r.value.find((n) => n["@value"] === e);
58
- a ? w(e, t, s, a.uri) : (u.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[s] = !1, i.value[0].isValid = "unset");
59
- }, M = (e) => {
60
- _.value && clearTimeout(_.value);
115
+ const i = m.value.find((n) => n["@value"] === e);
116
+ i ? I(e, t, l, i.uri) : (c.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[l] = !1, s.value[0].isValid = "unset");
117
+ }, U = (e) => {
118
+ b.value && clearTimeout(b.value);
61
119
  const t = e.target.value;
62
- C(t, "dcterms:license", 1);
63
- }, P = (e, t, s) => {
64
- var a;
65
- i.value = i.value.map((n) => t in n ? { ...n, [t]: e } : n);
120
+ B(t, "dcterms:license", 1);
121
+ }, H = (e, t, l) => {
122
+ var i;
123
+ s.value = s.value.map((n) => t in n ? { ...n, [t]: e } : n);
66
124
  {
67
- const n = ((a = i.value[0]) == null ? void 0 : a["dcterms:license"]) || "";
125
+ const n = ((i = s.value[0]) == null ? void 0 : i["dcterms:license"]) || "";
68
126
  if (n !== "" && (n.includes("cc-by") || n.includes("dl-by-de"))) {
69
- const m = e && e.trim() !== "";
70
- c.value[2].show = !m, d.value[2] = m, d.value[1] === !0 && m ? i.value[0].isValid = !0 : i.value[0].isValid = "unset";
127
+ const g = e && e.trim() !== "";
128
+ p.value[2].show = !g, d.value[2] = g, d.value[1] === !0 && g ? s.value[0].isValid = !0 : s.value[0].isValid = "unset";
71
129
  } else
72
- c.value[2].show = !1, d.value[2] = "unset";
130
+ p.value[2].show = !1, d.value[2] = "unset";
73
131
  }
74
- L.context.node.input(i.value);
75
- }, w = (e, t, s, a) => {
76
- var m;
77
- const n = e === "" || r.value.some((p) => p["@value"] === e);
78
- let b = f();
79
- if (r.value.some((p) => p["@value"] === e) && (b.value = r.value.find(
80
- (p) => p["@value"] === e
132
+ L.context.node.input(s.value);
133
+ }, I = (e, t, l, i) => {
134
+ var g;
135
+ const n = e === "" || m.value.some((f) => f["@value"] === e);
136
+ let w = v();
137
+ if (m.value.some((f) => f["@value"] === e) && (w.value = m.value.find(
138
+ (f) => f["@value"] === e
81
139
  ).label), !n && e !== "")
82
- u.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[s] = !1, i.value[0].isValid = "unset";
140
+ c.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[l] = !1, s.value[0].isValid = "unset";
83
141
  else {
84
- u.value = "";
85
- const p = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de"));
86
- if (I.value = p, e !== "") {
87
- d.value[s] = !0;
88
- const h = ((m = i.value[0]) == null ? void 0 : m.attribution) || "", F = !p || p && h.trim() !== "";
89
- i.value[0].isValid = F ? !0 : "unset", p ? (c.value[2].show = h.trim() === "", d.value[2] = h.trim() !== "") : (c.value[2].show = !1, d.value[2] = "unset");
142
+ c.value = "";
143
+ const f = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de"));
144
+ if (N.value = f, e !== "") {
145
+ d.value[l] = !0;
146
+ const V = ((g = s.value[0]) == null ? void 0 : g.attribution) || "", j = !f || f && V.trim() !== "";
147
+ s.value[0].isValid = j ? !0 : "unset", f ? (p.value[2].show = V.trim() === "", d.value[2] = V.trim() !== "") : (p.value[2].show = !1, d.value[2] = "unset");
90
148
  } else
91
- d.value[s] = !1, i.value[0].isValid = "unset", c.value[2].show = !1;
92
- i.value = i.value.map((h) => t in h ? { ...h, [t]: e, uri: a, title: b } : h);
149
+ d.value[l] = !1, s.value[0].isValid = "unset", p.value[2].show = !1;
150
+ s.value = s.value.map((V) => t in V ? { ...V, [t]: e, uri: i, title: w } : V);
93
151
  }
94
- L.context.node.input(i.value);
152
+ L.context.node.input(s.value);
95
153
  };
96
- return N(g, (e) => {
97
- var s;
98
- let t = (s = r.value.find(
99
- (a) => a["@value"] === e
100
- )) == null ? void 0 : s.uri;
101
- e !== void 0 && w(e, "dcterms:license", 1, t);
102
- }), N(() => i.value[0].isValid, (e) => {
103
- var t, s;
154
+ return C(_, (e) => {
155
+ var l;
156
+ let t = (l = m.value.find(
157
+ (i) => i["@value"] === e
158
+ )) == null ? void 0 : l.uri;
159
+ e !== void 0 && I(e, "dcterms:license", 1, t);
160
+ }), C(() => s.value[0].isValid, (e) => {
161
+ var t, l;
104
162
  if (console.log("License validity changed:", e), e === !1) {
105
- const a = ((t = i.value[0]) == null ? void 0 : t["dcterms:license"]) || "";
106
- a === "" ? u.value = "Bitte wählen Sie eine Lizenz aus." : r.value.find((m) => m["@value"] === a) || (u.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste"), a !== "" && (a.includes("cc-by") || a.includes("dl-by-de")) && (((s = i.value[0]) == null ? void 0 : s.attribution) || "").trim() === "" && (c.value[2].show = !0);
163
+ const i = ((t = s.value[0]) == null ? void 0 : t["dcterms:license"]) || "";
164
+ i === "" ? c.value = "Bitte wählen Sie eine Lizenz aus." : m.value.find((g) => g["@value"] === i) || (c.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste"), i !== "" && (i.includes("cc-by") || i.includes("dl-by-de")) && (((l = s.value[0]) == null ? void 0 : l.attribution) || "").trim() === "" && (p.value[2].show = !0);
107
165
  }
108
- }), q(async () => {
109
- const t = x().appContext.app.config.globalProperties.$env;
166
+ }), G(async () => {
167
+ const t = J().appContext.app.config.globalProperties.$env;
110
168
  try {
111
- const s = await J(t.api.baseUrl);
112
- r.value = s.map((a) => ({
113
- "@value": a.value,
114
- label: a.label,
115
- uri: a.uri
116
- })), r.value.sort((a, n) => a["@value"].localeCompare(n["@value"])), console.log(r.value);
117
- } catch (s) {
118
- console.error("Failed to load licenses", s);
169
+ const l = await ee(t.api.baseUrl);
170
+ z.value = l.map((i) => ({
171
+ "@value": i.value,
172
+ label: i.label,
173
+ uri: i.uri
174
+ })), z.value.sort((i, n) => i["@value"].localeCompare(n["@value"])), console.log(z.value);
175
+ } catch (l) {
176
+ console.error("Failed to load licenses", l);
119
177
  }
120
- }), O(() => {
121
- _.value && clearTimeout(_.value);
122
- }), (e, t) => (y(), z("div", X, [
123
- l("h4", null, o(e.$t("message.dataupload.datasets.dct:license.title")), 1),
124
- l("div", Y, o(e.$t("message.dataupload.datasets.dct:license.description")), 1),
125
- V(H, {
178
+ }), K(() => {
179
+ b.value && clearTimeout(b.value);
180
+ }), (e, t) => (y(), k("div", se, [
181
+ a("h4", null, r(e.$t("message.dataupload.datasets.dct:license.title")), 1),
182
+ a("div", ie, r(e.$t("message.dataupload.datasets.dct:license.description")), 1),
183
+ h(P, {
184
+ "onUpdate:modelValue": [
185
+ x,
186
+ t[0] || (t[0] = (l) => F(u) ? u.value = l : u = l)
187
+ ],
188
+ dropdownWidth: "large",
189
+ type: "inputField",
190
+ modelValue: o(u),
191
+ inputFieldProps: {
192
+ addOnText: !1,
193
+ initialHintText: !1,
194
+ datePicker: !1,
195
+ infoIcon: !1,
196
+ preIcon: !1,
197
+ label: "Art der Lizenz",
198
+ dropdown_dpiV3: !0,
199
+ placeholder: "Art der Lizenz wählen...",
200
+ inputFieldSize: "large",
201
+ modelValue: o(u),
202
+ defaultInput: !0,
203
+ showError: !1
204
+ },
205
+ data: $.value
206
+ }, null, 8, ["modelValue", "inputFieldProps", "data"]),
207
+ h(P, {
126
208
  "onUpdate:modelValue": [
127
- t[0] || (t[0] = (s) => $(s, "dcterms:license", 1)),
128
- t[1] || (t[1] = (s) => W(g) ? g.value = s : g = s)
209
+ t[1] || (t[1] = (l) => O(l, "dcterms:license", 1)),
210
+ t[2] || (t[2] = (l) => F(_) ? _.value = l : _ = l)
129
211
  ],
130
- onInput: A,
131
- onBlur: M,
212
+ onInput: W,
213
+ onBlur: U,
132
214
  dropdownWidth: "large",
133
215
  type: "inputField",
134
- modelValue: v(g),
216
+ modelValue: o(_),
135
217
  inputFieldProps: {
136
218
  addOnText: !1,
137
219
  initialHintText: !1,
@@ -140,27 +222,36 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
140
222
  preIcon: !1,
141
223
  label: "Lizenz",
142
224
  dropdown_dpiV3: !0,
143
- placeholder: "Lizenz wählen...",
225
+ placeholder: o(u) ? "Lizenz wählen..." : "Bitte wählen Sie zuerst eine Art der Lizenz",
144
226
  inputFieldSize: "large",
145
- modelValue: v(g),
227
+ modelValue: o(_),
146
228
  defaultInput: !0,
147
- showError: u.value !== "" || i.value[0].isValid === "unset" && v(d)[1] === !1
229
+ showError: c.value !== "" || s.value[0].isValid === "unset" && o(d)[1] === !1,
230
+ disabled: !o(u)
148
231
  },
149
- data: v(r),
232
+ data: m.value,
150
233
  onDeleteButtonClicked: e.deleteModifiedField
151
234
  }, null, 8, ["modelValue", "inputFieldProps", "data", "onDeleteButtonClicked"]),
152
- u.value ? (y(), z("div", Z, [
153
- V(v(B), {
235
+ o(u) && m.value.length === 0 ? (y(), k("div", ae, [
236
+ h(o(A), {
237
+ size: 16,
238
+ weight: "fill",
239
+ color: "#e67700"
240
+ }),
241
+ t[4] || (t[4] = a("span", { class: "copy-mini-regular" }, "Für diese Lizenzkategorie sind derzeit keine Lizenzen verfügbar.", -1))
242
+ ])) : T("", !0),
243
+ c.value ? (y(), k("div", ne, [
244
+ h(o(A), {
154
245
  size: 16,
155
246
  weight: "fill"
156
247
  }),
157
- l("span", ee, o(u.value), 1)
248
+ a("span", oe, r(c.value), 1)
158
249
  ])) : T("", !0),
159
- l("div", te, [
160
- v(I) ? (y(), U(j, {
250
+ a("div", de, [
251
+ o(N) ? (y(), Q(X, {
161
252
  key: 0,
162
- modelValue: i.value[0].attribution,
163
- "onUpdate:modelValue": t[2] || (t[2] = (s) => P(s, "attribution")),
253
+ modelValue: s.value[0].attribution,
254
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => H(l, "attribution")),
164
255
  addOnText: !1,
165
256
  datePicker: !1,
166
257
  infoIcon: !1,
@@ -173,56 +264,56 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
173
264
  ),
174
265
  showEndIcon: !1,
175
266
  defaultInput: !0,
176
- showError: i.value[0].isValid == !1 && c.value[2].show,
267
+ showError: s.value[0].isValid == !1 && p.value[2].show,
177
268
  onDeleteButtonClicked: e.deleteModifiedField
178
269
  }, null, 8, ["modelValue", "label", "showError", "onDeleteButtonClicked"])) : T("", !0),
179
- i.value[0].isValid == !1 && c.value[2].show ? (y(), z("div", se, [
180
- V(v(B), {
270
+ s.value[0].isValid == !1 && p.value[2].show ? (y(), k("div", re, [
271
+ h(o(A), {
181
272
  size: 16,
182
273
  weight: "fill"
183
274
  }),
184
- l("span", ie, o(c.value[2].message), 1)
275
+ a("span", ue, r(p.value[2].message), 1)
185
276
  ])) : T("", !0)
186
277
  ]),
187
- l("div", ae, [
188
- l("div", le, [
189
- l("div", ne, [
190
- V(v(R), {
278
+ a("div", ce, [
279
+ a("div", pe, [
280
+ a("div", ve, [
281
+ h(o(Y), {
191
282
  size: 32,
192
283
  color: "#009fe3"
193
284
  }),
194
- l("div", oe, o(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
285
+ a("div", fe, r(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
195
286
  ]),
196
- l("div", de, [
197
- l("div", re, o(e.$t("message.dataupload.datasets.dct:license.advices.description")), 1),
198
- l("div", ue, [
199
- l("div", ce, [
200
- k(o(e.$t(
287
+ a("div", me, [
288
+ a("div", ge, r(e.$t("message.dataupload.datasets.dct:license.advices.description")), 1),
289
+ a("div", he, [
290
+ a("div", _e, [
291
+ S(r(e.$t(
201
292
  "message.dataupload.datasets.dct:license.advices.licenseName1"
202
293
  )) + " ", 1),
203
- l("span", pe, o(e.$t(
294
+ a("span", be, r(e.$t(
204
295
  "message.dataupload.datasets.dct:license.advices.licenseName1_desc"
205
296
  )), 1)
206
297
  ]),
207
- l("div", ve, [
208
- k(o(e.$t(
298
+ a("div", Ve, [
299
+ S(r(e.$t(
209
300
  "message.dataupload.datasets.dct:license.advices.licenseName2"
210
301
  )) + " ", 1),
211
- l("span", fe, o(e.$t(
302
+ a("span", ye, r(e.$t(
212
303
  "message.dataupload.datasets.dct:license.advices.licenseName2_desc"
213
304
  )), 1)
214
305
  ]),
215
- l("div", me, [
216
- k(o(e.$t(
306
+ a("div", ze, [
307
+ S(r(e.$t(
217
308
  "message.dataupload.datasets.dct:license.advices.licenseName3"
218
309
  )) + " ", 1),
219
- l("span", _e, o(e.$t(
310
+ a("span", Le, r(e.$t(
220
311
  "message.dataupload.datasets.dct:license.advices.licenseName3_desc"
221
312
  )), 1)
222
313
  ]),
223
- l("a", he, [
224
- V(v(G), { size: 24 }),
225
- k(" " + o(e.$t(
314
+ a("a", we, [
315
+ h(o(Z), { size: 24 }),
316
+ S(" " + r(e.$t(
226
317
  "message.dataupload.datasets.dct:license.advices.linkToLicenses"
227
318
  )), 1)
228
319
  ])
@@ -230,19 +321,19 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
230
321
  ])
231
322
  ])
232
323
  ]),
233
- l("div", ge, [
234
- t[4] || (t[4] = l("span", { class: "copy-large-regular" }, " Die Wahl der Lizenz spielt eine wichtige Rolle für den korrekten Umgang mit Ihrem Datensatz. ", -1)),
235
- i.value.find((s) => s.isValid === !1) ? (y(), z("div", Ve, [
236
- V(v(B), {
324
+ a("div", ke, [
325
+ t[6] || (t[6] = a("span", { class: "copy-large-regular" }, " Die Wahl der Lizenz spielt eine wichtige Rolle für den korrekten Umgang mit Ihrem Datensatz. ", -1)),
326
+ s.value.find((l) => l.isValid === !1) ? (y(), k("div", Te, [
327
+ h(o(A), {
237
328
  size: 16,
238
329
  weight: "fill"
239
330
  }),
240
- t[3] || (t[3] = l("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
331
+ t[5] || (t[5] = a("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
241
332
  ])) : T("", !0)
242
333
  ])
243
334
  ]));
244
335
  }
245
- }, Ce = /* @__PURE__ */ Q(be, [["__scopeId", "data-v-20f46dd6"]]);
336
+ }, Ee = /* @__PURE__ */ le(Ne, [["__scopeId", "data-v-c0f980e2"]]);
246
337
  export {
247
- Ce as default
338
+ Ee as default
248
339
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./StepActionsSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a96dc312"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-05c23cd6"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, inject as E, ref as d, watch as D, toRef as L, computed as M, createElementBlock as f, openBlock as r, normalizeClass as A, createElementVNode as v, createBlock as F, createCommentVNode as I, createVNode as i, renderSlot as x, normalizeStyle as R, withDirectives as C, vShow as y, withCtx as m, Fragment as K, renderList as $, toDisplayString as j, createTextVNode as U, unref as W, nextTick as Z } from "vue";
1
+ import { defineComponent as z, inject as E, ref as d, watch as D, toRef as L, computed as M, createElementBlock as f, openBlock as r, normalizeClass as A, createElementVNode as v, createBlock as F, createCommentVNode as I, createVNode as i, renderSlot as x, normalizeStyle as R, withDirectives as C, vShow as y, withCtx as m, Fragment as j, renderList as K, toDisplayString as $, createTextVNode as U, unref as W, nextTick as Z } from "vue";
2
2
  import { getNode as q, isNode as G } from "@formkit/core";
3
3
  import { getValidationMessages as H } from "@formkit/validation";
4
4
  import { PhExclamationMark as J } from "@phosphor-icons/vue";
@@ -20,10 +20,10 @@ const Y = { class: "step-actions" }, _ = { class: "step-actions__prev-and-next"
20
20
  classList: {}
21
21
  },
22
22
  emits: ["submit"],
23
- setup(te, { emit: V }) {
24
- const S = V, e = E(Q);
23
+ setup(te, { emit: T }) {
24
+ const V = T, e = E(Q);
25
25
  e || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
26
- function T(t) {
26
+ function S(t) {
27
27
  return t !== void 0;
28
28
  }
29
29
  const l = d(!1), s = d(!1), a = d([]);
@@ -31,7 +31,7 @@ const Y = { class: "step-actions" }, _ = { class: "step-actions__prev-and-next"
31
31
  if (!t)
32
32
  return;
33
33
  const n = H(t);
34
- !n || n.size === 0 || (a.value = [...n.entries()].flatMap(([o, B]) => B.map((P) => String(P.value))));
34
+ !n || n.size === 0 || (a.value = [...n.entries()].flatMap(([o, w]) => w.map((B) => String(B.value))));
35
35
  }
36
36
  e && D(e.activeStep, () => {
37
37
  a.value.splice(0, a.value.length), s.value = !1;
@@ -51,12 +51,12 @@ const Y = { class: "step-actions" }, _ = { class: "step-actions__prev-and-next"
51
51
  function u() {
52
52
  e == null || e.goToPreviousStep();
53
53
  }
54
- const w = M(() => e != null && e.activeStep.value ? q(e == null ? void 0 : e.activeStep.value) : null);
54
+ const P = M(() => e != null && e.activeStep.value ? q(e == null ? void 0 : e.activeStep.value) : null);
55
55
  async function c() {
56
- if (!T(e))
56
+ if (!S(e))
57
57
  return;
58
58
  e.triggerValidationCurrentStep(), await Z();
59
- const t = w.value;
59
+ const t = P.value;
60
60
  if (t ? !p((e == null ? void 0 : e.activeStep.value) || "") : !1) {
61
61
  if (!G(t)) {
62
62
  console.error("Current step node is not a FormKitNode", t);
@@ -64,7 +64,7 @@ const Y = { class: "step-actions" }, _ = { class: "step-actions__prev-and-next"
64
64
  }
65
65
  N(t), s.value = !0;
66
66
  }
67
- e != null && e.isLast.value ? S("submit") : k();
67
+ e != null && e.isLast.value ? V("submit") : k();
68
68
  }
69
69
  return (t, n) => (r(), f("div", {
70
70
  class: A([t.classList, "step-actions-container"])
@@ -107,7 +107,7 @@ const Y = { class: "step-actions" }, _ = { class: "step-actions__prev-and-next"
107
107
  variant: t.nextVariant,
108
108
  type: "button",
109
109
  "button-text": t.nextText,
110
- "icon-end": t.nextText === "Als Entwurf Speichern" ? null : "CaretRight",
110
+ "icon-end": t.nextText === "Als Entwurf Speichern" || t.nextText === "Projektanlage starten" ? null : "CaretRight",
111
111
  onClick: c
112
112
  }, null, 8, ["variant", "button-text", "icon-end"]), [
113
113
  [y, !t.hideNext]
@@ -131,7 +131,7 @@ const Y = { class: "step-actions" }, _ = { class: "step-actions__prev-and-next"
131
131
  ])),
132
132
  default: m(() => [
133
133
  v("ul", ee, [
134
- (r(!0), f(K, null, $(a.value, (o) => (r(), f("li", { key: o }, j(o), 1))), 128))
134
+ (r(!0), f(j, null, K(a.value, (o) => (r(), f("li", { key: o }, $(o), 1))), 128))
135
135
  ])
136
136
  ]),
137
137
  _: 1