@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,94 +1,94 @@
1
- import { ref as t, watch as We, onMounted as Pe, getCurrentInstance as Re, createElementBlock as l, openBlock as i, Fragment as I, createCommentVNode as o, createElementVNode as n, normalizeClass as x, createVNode as c, toDisplayString as v, renderList as me, createBlock as f } from "vue";
2
- import Oe from "./TextButtonSmall.vue.js";
3
- import _ from "./ButtonV3.vue.js";
4
- import G from "./CrossOutButton.vue.js";
5
- import He from "./CloseOpenButtonV3.vue.js";
6
- import { getPlannedAvailability as Ee, getLanguages as Ne } from "../services/dpiV3_apis.js";
7
- import je from "./OptionalInformation/DocumentationsV3.vue.js";
8
- import Ze from "./OptionalInformation/ModifiedDateV3.vue.js";
9
- import Ge from "./OptionalInformation/DescriptionV3.vue.js";
10
- import Je from "./OptionalInformation/AvailabilityV3.vue.js";
11
- import Ke from "./OptionalInformation/ByteSizeV3.vue.js";
12
- import Qe from "./OptionalInformation/IssuedDateV3.vue.js";
13
- import Xe from "./OptionalInformation/LanguageV3.vue.js";
14
- import J from "./OptionalInformation/FileFormatV3.vue.js";
15
- import Ye from "./OptionalInformation/StatusV3.vue.js";
16
- import et from "./OptionalInformation/ChecksumV3.vue.js";
17
- import tt from "./OptionalInformation/ConformsToV3.vue.js";
18
- import at from "./OptionalInformation/PolicyV3.vue.js";
19
- import it from "./OptionalInformation/AccessServiceV3.vue.js";
20
- import st from "./OptionalInformation/ChangeLicenseV3.vue.js";
1
+ import { ref as i, watch as Je, onMounted as Ke, getCurrentInstance as Qe, createElementBlock as u, openBlock as o, Fragment as D, createCommentVNode as d, createElementVNode as p, normalizeClass as S, createVNode as y, toDisplayString as h, renderList as Ve, createBlock as g } from "vue";
2
+ import Xe from "./TextButtonSmall.vue.js";
3
+ import C from "./ButtonV3.vue.js";
4
+ import ne from "./CrossOutButton.vue.js";
5
+ import Ye from "./CloseOpenButtonV3.vue.js";
6
+ import { getPlannedAvailability as et, getLanguages as tt } from "../services/dpiV3_apis.js";
7
+ import at from "./OptionalInformation/DocumentationsV3.vue.js";
8
+ import it from "./OptionalInformation/ModifiedDateV3.vue.js";
9
+ import st from "./OptionalInformation/DescriptionV3.vue.js";
10
+ import ot from "./OptionalInformation/AvailabilityV3.vue.js";
11
+ import lt from "./OptionalInformation/ByteSizeV3.vue.js";
12
+ import dt from "./OptionalInformation/IssuedDateV3.vue.js";
13
+ import nt from "./OptionalInformation/LanguageV3.vue.js";
14
+ import re from "./OptionalInformation/FileFormatV3.vue.js";
15
+ import rt from "./OptionalInformation/StatusV3.vue.js";
16
+ import ut from "./OptionalInformation/ChecksumV3.vue.js";
17
+ import ct from "./OptionalInformation/ConformsToV3.vue.js";
18
+ import mt from "./OptionalInformation/PolicyV3.vue.js";
19
+ import pt from "./OptionalInformation/AccessServiceV3.vue.js";
20
+ import ft from "./OptionalInformation/ChangeLicenseV3.vue.js";
21
21
  /* empty css */
22
- const ot = {
22
+ const vt = {
23
23
  key: 0,
24
24
  class: "dpiV3_modalBackground"
25
- }, dt = { class: "dpiV3_modalHeaderWrap" }, lt = { class: "dpiV3_modalText" }, nt = {
25
+ }, yt = { class: "dpiV3_modalHeaderWrap" }, ht = { class: "dpiV3_modalText" }, kt = {
26
26
  key: 0,
27
27
  class: "dpiV3AutoCompleteWrap copy-large-semi-bold"
28
- }, ut = { class: "dpiV3_LinkInfos" }, rt = {
28
+ }, gt = { class: "dpiV3_LinkInfos" }, bt = {
29
29
  key: 0,
30
30
  class: "dpiV3_title"
31
- }, ct = {
31
+ }, Tt = {
32
32
  key: 1,
33
33
  class: "dpiV3_title"
34
- }, pt = {
34
+ }, Vt = {
35
35
  key: 2,
36
36
  class: "dpiV3_File-Format copy-small-regular"
37
- }, mt = {
37
+ }, It = {
38
38
  key: 0,
39
39
  class: "dpiV3_modalButtonWrap"
40
- }, vt = {
40
+ }, _t = {
41
41
  key: 1,
42
42
  class: "dpiV3_optionalInfoContent"
43
- }, ft = { class: "dpiV3_ListMetaData" }, yt = { class: "dpiV3_title-description" }, kt = { class: "dpiV3_group-title" }, gt = { class: "dpiV3_caret" }, bt = ["onClick"], Tt = {
43
+ }, xt = { class: "dpiV3_ListMetaData" }, Dt = { class: "dpiV3_title-description" }, Ct = { class: "dpiV3_group-title" }, Lt = { class: "dpiV3_caret" }, wt = ["onClick"], Ut = {
44
44
  key: 1,
45
45
  class: "dpiV3_sectionDivider"
46
- }, ht = {
46
+ }, Ft = {
47
47
  key: 1,
48
48
  class: "dpiV3_modalBackground"
49
- }, It = { class: "dpiV3_modalHeaderWrap" }, _t = {
49
+ }, At = { class: "dpiV3_modalHeaderWrap" }, St = {
50
50
  key: 0,
51
51
  class: "dpiV3_modalContent"
52
- }, Vt = {
52
+ }, Rt = {
53
53
  key: 1,
54
54
  class: "dpiV3_modalContent"
55
- }, xt = {
55
+ }, qt = {
56
56
  key: 2,
57
57
  class: "dpiV3_modalContent"
58
- }, Dt = {
58
+ }, Bt = {
59
59
  key: 3,
60
60
  class: "dpiV3_modified"
61
- }, St = {
61
+ }, zt = {
62
62
  key: 4,
63
63
  class: "dpiV3_modified"
64
- }, Ct = {
64
+ }, Mt = {
65
65
  key: 5,
66
66
  class: "dpiV3_modified"
67
- }, At = {
67
+ }, Pt = {
68
68
  key: 6,
69
69
  class: "dpiV3_DocumentationV3_Wrap"
70
- }, wt = {
70
+ }, $t = {
71
71
  key: 7,
72
72
  class: "dpiV3_DocumentationV3_Wrap"
73
- }, Ft = {
73
+ }, Wt = {
74
74
  key: 11,
75
75
  class: "dpiV3_DocumentationV3_Wrap"
76
- }, Lt = {
76
+ }, Et = {
77
77
  key: 12,
78
78
  class: "dpiV3_DocumentationV3_Wrap"
79
- }, qt = { class: "dpiV3_modalButtonWrap" }, Bt = {
79
+ }, Ot = { class: "dpiV3_modalButtonWrap" }, Ht = {
80
80
  key: 2,
81
81
  class: "dpiV3_modalBackground"
82
- }, Ut = { class: "dpiV3_modalWrap dpiV3_confirmationDialog" }, zt = { class: "dpiV3_modalHeaderWrap" }, Mt = { class: "dpiV3AutoCompleteWrap copy-large-semi-bold" }, $t = { class: "dpiV3_LinkInfos" }, Wt = {
82
+ }, Nt = { class: "dpiV3_modalWrap dpiV3_confirmationDialog" }, jt = { class: "dpiV3_modalHeaderWrap" }, Zt = { class: "dpiV3AutoCompleteWrap copy-large-semi-bold" }, Gt = { class: "dpiV3_LinkInfos" }, Jt = {
83
83
  key: 0,
84
84
  class: "dpiV3_title"
85
- }, Pt = {
85
+ }, Kt = {
86
86
  key: 1,
87
87
  class: "dpiV3_title"
88
- }, Rt = {
88
+ }, Qt = {
89
89
  key: 2,
90
90
  class: "dpiV3_title"
91
- }, Ot = { class: "dpiV3_modalButtonWrap" }, ca = {
91
+ }, Xt = { class: "dpiV3_modalButtonWrap" }, ba = {
92
92
  __name: "ModalV3",
93
93
  props: {
94
94
  headerText: { type: String, required: !0 },
@@ -148,394 +148,487 @@ const ot = {
148
148
  "addChecksum",
149
149
  "addChangeLicense"
150
150
  ],
151
- setup(u, { emit: ve }) {
152
- const e = u, r = ve, D = t(!1), S = t(!1), C = t(!1), A = t(!1), w = t(!1), F = t(!1), L = t(!1);
153
- t(!1);
154
- const K = t(!1), q = t(!1), B = t(!1), U = t(!1), z = t(!1), M = t(!1), $ = t(!1), W = t(!1), P = t(!1), R = t(!1), h = t([]), d = t({ key: "", text: "" }), fe = t(null), O = t(!1), V = t(null), H = t(null);
155
- t([...e.fileTypes]);
156
- const ye = t([]), ke = t([]);
157
- t(null);
158
- const ge = t(!1), Q = t(""), X = t(""), Y = t(""), be = t(""), k = t({}), g = t({}), b = t({}), T = t({}), ee = t(""), te = t(""), ae = t(""), ie = t(0), se = t(""), oe = t(""), de = t(""), le = t(""), ne = t(""), Te = t(""), ue = t(""), re = t(""), E = t(!0);
159
- t(!0);
160
- const he = (a, s) => {
161
- E.value = !1, d.value = {
162
- key: e.sections[a].keys[s],
163
- text: e.sections[a].items[s]
164
- }, k.value[e.distributionId] || (k.value[e.distributionId] = []), g.value[e.distributionId] || (g.value[e.distributionId] = []), b.value[e.distributionId] || (b.value[e.distributionId] = []), T.value[e.distributionId] || (T.value[e.distributionId] = []);
165
- }, N = () => {
166
- E.value = !0, d.value = { key: "", text: "" };
167
- }, Ie = () => {
168
- C.value && (r(
169
- "addConformsToItems",
170
- e.distributionId,
171
- b.value[e.distributionId] || []
172
- ), C.value = !1), A.value && (r(
173
- "addPolicyItems",
174
- e.distributionId,
175
- T.value[e.distributionId] || []
176
- ), A.value = !1), D.value && (r(
177
- "addDocumentations",
178
- e.distributionId,
179
- k.value[e.distributionId] || []
180
- ), D.value = !1), S.value && (r(
181
- "addAccessServices",
182
- e.distributionId,
183
- g.value[e.distributionId] || []
184
- ), S.value = !1), w.value && (r("addModifiedDate", Q.value, e.distributionId), w.value = !1), F.value && (r("addIssuedDate", X.value, e.distributionId), F.value = !1), L.value && (r("addDescription", Y.value, e.distributionId), L.value = !1), K.value && (r("addAccessRights", be.value, e.distributionId), K.value = !1), q.value && (r("addAvailability", ee.value, e.distributionId, e.uri), q.value = !1), W.value && (r("addStatus", te.value, e.distributionId), W.value = !1), P.value && (r(
185
- "addChecksum",
186
- le.value,
187
- ne.value,
188
- e.distributionId,
189
- Te.value
190
- ), P.value = !1), R.value && (r(
191
- "addChangeLicense",
192
- ue.value,
193
- re.value,
194
- e.distributionId
195
- ), R.value = !1), B.value && (r("addLanguage", ae.value, e.distributionId, e.uri), B.value = !1), U.value && (r("addByteSize", ie.value, e.distributionId), U.value = !1), z.value && (r(
151
+ setup(f, { emit: Ie }) {
152
+ const e = f, R = i(null), q = i(null), B = i(null), z = i(null), M = i(null), P = i(null), v = Ie, $ = i(!1), W = i(!1), E = i(!1), O = i(!1), H = i(!1), N = i(!1), j = i(!1);
153
+ i(!1);
154
+ const ue = i(!1), Z = i(!1), G = i(!1), J = i(!1), K = i(!1), Q = i(!1), X = i(!1), Y = i(!1), ee = i(!1), te = i(!1), _ = i([]), n = i({ key: "", text: "" }), _e = i(null), ae = i(!1), L = i(null), ie = i(null);
155
+ i([...e.fileTypes]);
156
+ const xe = i([]), De = i([]);
157
+ i(null);
158
+ const Ce = i(!1), ce = i(""), me = i(""), pe = i(""), Le = i(""), b = i({}), T = i({}), V = i({}), I = i({}), fe = i(""), ve = i(""), ye = i(""), he = i(0), ke = i(""), ge = i(""), be = i(""), w = i(""), U = i(""), we = i(""), F = i(""), A = i(""), se = i(!0);
159
+ i(!0);
160
+ const Ue = (a, t) => {
161
+ se.value = !1, n.value = {
162
+ key: e.sections[a].keys[t],
163
+ text: e.sections[a].items[t]
164
+ }, b.value[e.distributionId] || (b.value[e.distributionId] = []), T.value[e.distributionId] || (T.value[e.distributionId] = []), V.value[e.distributionId] || (V.value[e.distributionId] = []), I.value[e.distributionId] || (I.value[e.distributionId] = []);
165
+ }, oe = () => {
166
+ se.value = !0, n.value = { key: "", text: "" };
167
+ }, Fe = () => {
168
+ const a = (t) => {
169
+ if (!t || t.trim() === "") return !1;
170
+ const r = t.trim();
171
+ return /\.[a-zA-Z]{2,}$/.test(r);
172
+ };
173
+ if (E.value) {
174
+ const t = V.value[e.distributionId] || [];
175
+ if (t.some((l) => {
176
+ const s = l["dct:title"] && l["dct:title"].trim() !== "", m = l["dcat:downloadURL"] ? l["dcat:downloadURL"].trim() : "";
177
+ return !!(s && (!m || !a(m)) || m && !a(m));
178
+ })) {
179
+ R.value && R.value.validateAllItems();
180
+ return;
181
+ }
182
+ const c = t.filter((l) => {
183
+ const s = l["dct:title"] && l["dct:title"].trim() !== "", m = l["dcat:downloadURL"] && l["dcat:downloadURL"].trim() !== "" && a(l["dcat:downloadURL"].trim());
184
+ return s || m;
185
+ });
186
+ c.length > 0 && v(
187
+ "addConformsToItems",
188
+ e.distributionId,
189
+ c
190
+ ), E.value = !1;
191
+ }
192
+ if (O.value) {
193
+ const t = I.value[e.distributionId] || [];
194
+ if (t.some((l) => {
195
+ const s = l["dcat:downloadURL"] ? l["dcat:downloadURL"].trim() : "";
196
+ return !!(s && !a(s));
197
+ })) {
198
+ P.value && P.value.validateAllItems();
199
+ return;
200
+ }
201
+ const c = t.filter((l) => l["dcat:downloadURL"] && l["dcat:downloadURL"].trim() !== "" && a(l["dcat:downloadURL"].trim()));
202
+ c.length > 0 && v("addPolicyItems", e.distributionId, c), O.value = !1;
203
+ }
204
+ if ($.value) {
205
+ const t = b.value[e.distributionId] || [], r = (s) => {
206
+ const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0);
207
+ return m || k || x;
208
+ };
209
+ if (t.some((s) => {
210
+ const m = s["dcat:accessURL"] ? s["dcat:accessURL"].trim() : "";
211
+ return !!(r(s) && (!m || !a(m)) || m && !a(m));
212
+ })) {
213
+ q.value && q.value.validateAllItems();
214
+ return;
215
+ }
216
+ const l = t.filter((s) => {
217
+ const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0), Ge = s["dcat:accessURL"] && s["dcat:accessURL"].trim() !== "" && a(s["dcat:accessURL"].trim());
218
+ return m || k || x || Ge;
219
+ });
220
+ l.length > 0 && v(
221
+ "addDocumentations",
222
+ e.distributionId,
223
+ l
224
+ ), $.value = !1;
225
+ }
226
+ if (W.value) {
227
+ const t = T.value[e.distributionId] || [], r = (s) => {
228
+ const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "";
229
+ return m || k;
230
+ };
231
+ if (t.some((s) => {
232
+ const m = s["dcat:downloadURL"] ? s["dcat:downloadURL"].trim() : "";
233
+ return !!(r(s) && (!m || !a(m)) || m && !a(m));
234
+ })) {
235
+ B.value && B.value.validateAllItems();
236
+ return;
237
+ }
238
+ const l = t.filter((s) => {
239
+ const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dcat:downloadURL"] && s["dcat:downloadURL"].trim() !== "" && a(s["dcat:downloadURL"].trim());
240
+ return m || k || x;
241
+ });
242
+ l.length > 0 && v(
243
+ "addAccessServices",
244
+ e.distributionId,
245
+ l
246
+ ), W.value = !1;
247
+ }
248
+ if (H.value && (v("addModifiedDate", ce.value, e.distributionId), H.value = !1), N.value && (v("addIssuedDate", me.value, e.distributionId), N.value = !1), j.value && (v("addDescription", pe.value, e.distributionId), j.value = !1), ue.value && (v("addAccessRights", Le.value, e.distributionId), ue.value = !1), Z.value && (v("addAvailability", fe.value, e.distributionId, e.uri), Z.value = !1), Y.value && (v("addStatus", ve.value, e.distributionId), Y.value = !1), ee.value) {
249
+ const t = w.value && w.value.trim() !== "", r = U.value && U.value.trim() !== "";
250
+ if ((t || r) && (!t || !r)) {
251
+ z.value && z.value.validateAllItems();
252
+ return;
253
+ }
254
+ t && r && v(
255
+ "addChecksum",
256
+ w.value,
257
+ U.value,
258
+ e.distributionId,
259
+ we.value
260
+ ), ee.value = !1;
261
+ }
262
+ if (te.value) {
263
+ const t = typeof A.value == "string" ? A.value.trim() : "", r = typeof F.value == "string" ? F.value.trim() : "";
264
+ if (t && (t.toLowerCase().includes("cc-by") || t.toLowerCase().includes("cc by")) && !r || // by- license without attribution
265
+ r && !t) {
266
+ M.value && M.value.validate();
267
+ return;
268
+ }
269
+ (t || r) && v(
270
+ "addChangeLicense",
271
+ F.value,
272
+ A.value,
273
+ e.distributionId
274
+ ), te.value = !1;
275
+ }
276
+ G.value && (v("addLanguage", ye.value, e.distributionId, e.uri), G.value = !1), J.value && (v("addByteSize", he.value, e.distributionId), J.value = !1), K.value && (v(
196
277
  "addMediaType",
197
- se.value,
278
+ ke.value,
198
279
  "dcat:mediaType",
199
280
  e.distributionId
200
- ), z.value = !1), M.value && (r(
281
+ ), K.value = !1), Q.value && (v(
201
282
  "addCompressFormat",
202
- oe.value,
283
+ ge.value,
203
284
  "dcat:compressFormat",
204
285
  e.distributionId
205
- ), M.value = !1), $.value && (r(
286
+ ), Q.value = !1), X.value && (v(
206
287
  "addPackageFormat",
207
- de.value,
288
+ be.value,
208
289
  "dcat:packageFormat",
209
290
  e.distributionId
210
- ), $.value = !1), N();
291
+ ), X.value = !1), oe();
211
292
  };
212
- We(
293
+ Je(
213
294
  () => e.sections,
214
295
  (a) => {
215
- Array.isArray(a) && a.length > 0 && (h.value = a.map((s, p) => p === 0));
296
+ Array.isArray(a) && a.length > 0 && (_.value = a.map((t, r) => r === 0));
216
297
  },
217
298
  { immediate: !0 }
218
299
  );
219
- const _e = (a) => {
220
- h.value[a] = !h.value[a];
221
- }, j = () => {
222
- r("close");
223
- }, Ve = () => {
224
- r("actionHandling", e.action), j();
300
+ const Ae = (a) => {
301
+ _.value[a] = !_.value[a];
302
+ }, le = () => {
303
+ v("close");
304
+ }, Se = () => {
305
+ v("actionHandling", e.action), le();
225
306
  };
226
- Pe(async () => {
227
- k.value[e.distributionId] = e.documentations, g.value[e.distributionId] = e.accessServices, b.value[e.distributionId] = e.conformsToItems, T.value[e.distributionId] = e.policyItems;
228
- const a = Re(), s = a.appContext.app.config.globalProperties.$env;
307
+ Ke(async () => {
308
+ b.value[e.distributionId] = e.documentations, T.value[e.distributionId] = e.accessServices, V.value[e.distributionId] = e.conformsToItems, I.value[e.distributionId] = e.policyItems;
309
+ const a = Qe(), t = a.appContext.app.config.globalProperties.$env;
229
310
  try {
230
- const m = await Ee(s.api.baseUrl);
231
- ye.value = m.map((y) => ({
232
- "@value": y.value,
233
- label: y.label
311
+ const c = await et(t.api.baseUrl);
312
+ xe.value = c.map((l) => ({
313
+ "@value": l.value,
314
+ label: l.label
234
315
  }));
235
- } catch (m) {
236
- console.error("Failed to load planned availability data", m);
316
+ } catch (c) {
317
+ console.error("Failed to load planned availability data", c);
237
318
  }
238
- const p = a.appContext.app.config.globalProperties.$i18n.locale;
319
+ const r = a.appContext.app.config.globalProperties.$i18n.locale;
239
320
  try {
240
- const m = await Ne(s.api.baseUrl, p);
241
- ke.value = m.map((y) => ({
242
- "@value": y.label,
243
- label: y.label
321
+ const c = await tt(t.api.baseUrl, r);
322
+ De.value = c.map((l) => ({
323
+ "@value": l.label,
324
+ label: l.label
244
325
  }));
245
- } catch (m) {
246
- console.error("Failed to load language data", m);
326
+ } catch (c) {
327
+ console.error("Failed to load language data", c);
247
328
  }
248
329
  });
249
- const xe = (a, s) => {
250
- console.log(s), k.value[a] = s, D.value = !0;
251
- }, De = (a, s) => {
252
- g.value[a] = s, S.value = !0;
253
- }, Se = (a, s) => {
254
- b.value[a] = s, C.value = !0;
255
- }, Ce = (a, s) => {
256
- T.value[a] = s, A.value = !0;
257
- }, Ae = (a) => {
258
- Q.value = a, w.value = !0;
259
- }, we = (a) => {
260
- X.value = a, F.value = !0;
261
- }, Fe = (a) => {
262
- Y.value = a, L.value = !0;
263
- }, Le = (a) => {
264
- ee.value = a, q.value = !0;
265
- }, qe = (a) => {
266
- te.value = a, W.value = !0;
267
- }, Be = (a, s) => {
268
- console.log(e.checksumURI), P.value = !0, ne.value = s, le.value = a;
269
- }, Ue = (a, s) => {
270
- R.value = !0, re.value = s, ue.value = a;
271
- }, ze = (a) => {
272
- ae.value = a, B.value = !0;
273
- }, Z = (a, s) => {
274
- switch (s) {
330
+ const Re = (a, t) => {
331
+ console.log(t), b.value[a] = t, $.value = !0;
332
+ }, qe = (a, t) => {
333
+ T.value[a] = t, W.value = !0;
334
+ }, Be = (a, t) => {
335
+ V.value[a] = t, E.value = !0;
336
+ }, ze = (a, t) => {
337
+ I.value[a] = t, O.value = !0;
338
+ }, Me = (a) => {
339
+ ce.value = a, H.value = !0;
340
+ }, Pe = (a) => {
341
+ me.value = a, N.value = !0;
342
+ }, $e = (a) => {
343
+ pe.value = a, j.value = !0;
344
+ }, We = (a) => {
345
+ fe.value = a, Z.value = !0;
346
+ }, Ee = (a) => {
347
+ ve.value = a, Y.value = !0;
348
+ }, Oe = (a, t) => {
349
+ console.log(e.checksumURI), ee.value = !0, U.value = t, w.value = a;
350
+ }, He = (a, t, r, c) => {
351
+ console.log(a, t, r, c), te.value = !0, A.value = t, F.value = a;
352
+ }, Ne = (a) => {
353
+ ye.value = a, G.value = !0;
354
+ }, de = (a, t) => {
355
+ switch (t) {
275
356
  case "dcat:mediaType":
276
- z.value = !0, se.value = a;
357
+ K.value = !0, ke.value = a;
277
358
  break;
278
359
  case "dcat:compressFormat":
279
- M.value = !0, oe.value = a;
360
+ Q.value = !0, ge.value = a;
280
361
  break;
281
362
  case "dcat:packageFormat":
282
- $.value = !0, de.value = a;
363
+ X.value = !0, be.value = a;
283
364
  break;
284
365
  }
285
- }, Me = (a) => {
286
- ie.value = a, U.value = !0;
287
- }, ce = () => {
288
- O.value = !1, fe.value = null;
289
- }, $e = () => {
290
- O.value = !1, ge.value = !1;
366
+ }, je = (a) => {
367
+ he.value = a, J.value = !0;
368
+ }, Te = () => {
369
+ ae.value = !1, _e.value = null;
370
+ }, Ze = () => {
371
+ ae.value = !1, Ce.value = !1;
291
372
  };
292
- return (a, s) => (i(), l(I, null, [
293
- E.value ? (i(), l("div", ot, [
294
- n("div", {
295
- class: x(["dpiV3_modalWrap", {
296
- dpiV3_optionalInfo: e.optionalInfoView || d.value.key === "foaf:page"
373
+ return (a, t) => (o(), u(D, null, [
374
+ se.value ? (o(), u("div", vt, [
375
+ p("div", {
376
+ class: S(["dpiV3_modalWrap", {
377
+ dpiV3_optionalInfo: e.optionalInfoView || n.value.key === "foaf:page"
297
378
  }])
298
379
  }, [
299
- n("div", {
300
- class: x(["dpiV3_modalMainWrap", { dpiV3_modalLine: e.optionalInfoView }])
380
+ p("div", {
381
+ class: S(["dpiV3_modalMainWrap", { dpiV3_modalLine: e.optionalInfoView }])
301
382
  }, [
302
- n("div", dt, [
303
- n("h2", {
304
- class: x({ dpiV3_optionalInfoHeader: e.optionalInfoView })
305
- }, v(e.headerText), 3),
306
- c(G, {
383
+ p("div", yt, [
384
+ p("h2", {
385
+ class: S({ dpiV3_optionalInfoHeader: e.optionalInfoView })
386
+ }, h(e.headerText), 3),
387
+ y(ne, {
307
388
  class: "dpiv3_modalCrossout",
308
- onClick: j
389
+ onClick: le
309
390
  })
310
391
  ]),
311
- n("span", lt, v(e.text), 1),
312
- !e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (i(), l("div", nt, [
313
- n("div", ut, [
314
- e.title ? (i(), l("div", rt, v(e.title), 1)) : o("", !0),
315
- e.distributionLink && !e.title ? (i(), l("div", ct, v(e.distributionLink), 1)) : o("", !0),
316
- e.format ? (i(), l("div", pt, v(e.format), 1)) : o("", !0)
392
+ p("span", ht, h(e.text), 1),
393
+ !e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (o(), u("div", kt, [
394
+ p("div", gt, [
395
+ e.title ? (o(), u("div", bt, h(e.title), 1)) : d("", !0),
396
+ e.distributionLink && !e.title ? (o(), u("div", Tt, h(e.distributionLink), 1)) : d("", !0),
397
+ e.format ? (o(), u("div", Vt, h(e.format), 1)) : d("", !0)
317
398
  ])
318
- ])) : o("", !0)
399
+ ])) : d("", !0)
319
400
  ], 2),
320
- e.showButtons ? (i(), l("div", mt, [
321
- c(Oe, {
401
+ e.showButtons ? (o(), u("div", It, [
402
+ y(Xe, {
322
403
  buttonText: a.$t("message.dataupload.datasets.dcat:distribution.modal.cancel"),
323
404
  class: "dpiv3_modalCancelButton",
324
- onClick: j,
405
+ onClick: le,
325
406
  ref: "accActive"
326
407
  }, null, 8, ["buttonText"]),
327
- c(_, {
328
- onClick: Ve,
408
+ y(C, {
409
+ onClick: Se,
329
410
  buttonText: e.buttons,
330
411
  size: "large"
331
412
  }, null, 8, ["buttonText"])
332
- ])) : o("", !0),
333
- e.optionalInfoView ? (i(), l("div", vt, [
334
- n("div", ft, [
335
- (i(!0), l(I, null, me(u.sections, (p, m) => (i(), l(I, { key: m }, [
336
- n("div", yt, [
337
- n("div", kt, [
338
- n("div", null, v(p.title), 1),
339
- n("div", gt, [
340
- c(He, {
341
- onClick: (y) => _e(m),
342
- expanded: !h.value[m]
413
+ ])) : d("", !0),
414
+ e.optionalInfoView ? (o(), u("div", _t, [
415
+ p("div", xt, [
416
+ (o(!0), u(D, null, Ve(f.sections, (r, c) => (o(), u(D, { key: c }, [
417
+ p("div", Dt, [
418
+ p("div", Ct, [
419
+ p("div", null, h(r.title), 1),
420
+ p("div", Lt, [
421
+ y(Ye, {
422
+ onClick: (l) => Ae(c),
423
+ expanded: !_.value[c]
343
424
  }, null, 8, ["onClick", "expanded"])
344
425
  ])
345
426
  ])
346
427
  ]),
347
- h.value[m] ? (i(!0), l(I, { key: 0 }, me(p.items, (y, pe) => (i(), l(I, { key: pe }, [
348
- s[4] || (s[4] = n("div", { class: "dpiV3_itemDivider" }, null, -1)),
349
- n("div", {
428
+ _.value[c] ? (o(!0), u(D, { key: 0 }, Ve(r.items, (l, s) => (o(), u(D, { key: s }, [
429
+ t[4] || (t[4] = p("div", { class: "dpiV3_itemDivider" }, null, -1)),
430
+ p("div", {
350
431
  class: "dpiV3_itemOptional",
351
- onClick: (Ht) => he(m, pe)
352
- }, v(y), 9, bt)
353
- ], 64))), 128)) : o("", !0),
354
- m < u.sections.length - 1 ? (i(), l("div", Tt)) : o("", !0)
432
+ onClick: (m) => Ue(c, s)
433
+ }, h(l), 9, wt)
434
+ ], 64))), 128)) : d("", !0),
435
+ c < f.sections.length - 1 ? (o(), u("div", Ut)) : d("", !0)
355
436
  ], 64))), 128))
356
437
  ])
357
- ])) : o("", !0)
438
+ ])) : d("", !0)
358
439
  ], 2)
359
- ])) : o("", !0),
360
- d.value.key ? (i(), l("div", ht, [
361
- n("div", {
362
- class: x(["dpiV3_modalWrap", {
363
- dpiV3_removeOverflow: d.value.key === "dcatap:availability" || d.value.key === "dct:language" || d.value.key === "dcat:mediaType" || d.value.key === "dcat:compressFormat" || d.value.key === "dcat:packageFormat" || d.value.key === "spdx:checksum" || d.value.key === "adms:status"
440
+ ])) : d("", !0),
441
+ n.value.key ? (o(), u("div", Ft, [
442
+ p("div", {
443
+ class: S(["dpiV3_modalWrap", {
444
+ dpiV3_removeOverflow: n.value.key === "dcatap:availability" || n.value.key === "dct:language" || n.value.key === "dcat:mediaType" || n.value.key === "dcat:compressFormat" || n.value.key === "dcat:packageFormat" || n.value.key === "spdx:checksum" || n.value.key === "adms:status"
364
445
  }])
365
446
  }, [
366
- n("div", It, [
367
- n("h2", null, v(d.value.text) + " " + v(a.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
368
- c(G, {
447
+ p("div", At, [
448
+ p("h2", null, h(n.value.text) + " " + h(a.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
449
+ y(ne, {
369
450
  class: "dpiv3_modalCrossout",
370
- onClick: N
451
+ onClick: oe
371
452
  })
372
453
  ]),
373
- d.value.key === "dcatap:availability" ? (i(), l("p", _t, v(a.$t(
454
+ n.value.key === "dcatap:availability" ? (o(), u("p", St, h(a.$t(
374
455
  "message.dataupload.datasets.dcat:distribution.modal.availability_paragraph"
375
- )), 1)) : o("", !0),
376
- d.value.key === "dcat:byteSize" ? (i(), l("p", Vt, v(a.$t(
456
+ )), 1)) : d("", !0),
457
+ n.value.key === "dcat:byteSize" ? (o(), u("p", Rt, h(a.$t(
377
458
  "message.dataupload.datasets.dcat:distribution.modal.byte-size-paragraph"
378
- )), 1)) : o("", !0),
379
- d.value.key === "foaf:page" ? (i(), l("p", xt, v(a.$t(
459
+ )), 1)) : d("", !0),
460
+ n.value.key === "foaf:page" ? (o(), u("p", qt, h(a.$t(
380
461
  "message.dataupload.datasets.dcat:distribution.modal.documentation-paragraph"
381
- )), 1)) : o("", !0),
382
- d.value.key === "dct:modified" ? (i(), l("div", Dt, [
383
- c(Ze, {
384
- modelValue: u.modifiedDate,
385
- onAddModifiedDate: Ae
462
+ )), 1)) : d("", !0),
463
+ n.value.key === "dct:modified" ? (o(), u("div", Bt, [
464
+ y(it, {
465
+ modelValue: f.modifiedDate,
466
+ onAddModifiedDate: Me
386
467
  }, null, 8, ["modelValue"])
387
- ])) : o("", !0),
388
- d.value.key === "dct:issued" ? (i(), l("div", St, [
389
- c(Qe, {
390
- modelValue: u.issuedDate,
391
- labelText: d.value.text + " (optional)",
392
- onAddIssuedDate: we
468
+ ])) : d("", !0),
469
+ n.value.key === "dct:issued" ? (o(), u("div", zt, [
470
+ y(dt, {
471
+ modelValue: f.issuedDate,
472
+ labelText: n.value.text + " (optional)",
473
+ onAddIssuedDate: Pe
393
474
  }, null, 8, ["modelValue", "labelText"])
394
- ])) : o("", !0),
395
- d.value.key === "dct:description" ? (i(), l("div", Ct, [
396
- c(Ge, {
397
- onAddDescription: Fe,
398
- descriptionText: u.descriptionText
475
+ ])) : d("", !0),
476
+ n.value.key === "dct:description" ? (o(), u("div", Mt, [
477
+ y(st, {
478
+ onAddDescription: $e,
479
+ descriptionText: f.descriptionText
399
480
  }, null, 8, ["descriptionText"])
400
- ])) : o("", !0),
401
- d.value.key === "foaf:page" ? (i(), l("div", At, [
402
- c(je, {
403
- documentations: k.value[e.distributionId] || [],
404
- fileTypes: u.fileTypes,
405
- onUpdate: s[0] || (s[0] = (p) => xe(e.distributionId, p)),
481
+ ])) : d("", !0),
482
+ n.value.key === "foaf:page" ? (o(), u("div", Pt, [
483
+ y(at, {
484
+ ref_key: "documentationsV3Ref",
485
+ ref: q,
486
+ documentations: b.value[e.distributionId] || [],
487
+ fileTypes: f.fileTypes,
488
+ onUpdate: t[0] || (t[0] = (r) => Re(e.distributionId, r)),
406
489
  distributionId: e.distributionId
407
490
  }, null, 8, ["documentations", "fileTypes", "distributionId"])
408
- ])) : o("", !0),
409
- d.value.key === "dcat:accessService" ? (i(), l("div", wt, [
410
- c(it, {
411
- accessServices: g.value[e.distributionId] || [],
412
- onUpdate: s[1] || (s[1] = (p) => De(e.distributionId, p)),
491
+ ])) : d("", !0),
492
+ n.value.key === "dcat:accessService" ? (o(), u("div", $t, [
493
+ y(pt, {
494
+ ref_key: "accessServiceV3Ref",
495
+ ref: B,
496
+ accessServices: T.value[e.distributionId] || [],
497
+ onUpdate: t[1] || (t[1] = (r) => qe(e.distributionId, r)),
413
498
  distributionId: e.distributionId
414
499
  }, null, 8, ["accessServices", "distributionId"])
415
- ])) : o("", !0),
416
- d.value.key === "dcat:byteSize" ? (i(), f(Ke, {
500
+ ])) : d("", !0),
501
+ n.value.key === "dcat:byteSize" ? (o(), g(lt, {
417
502
  key: 8,
418
- byteSizeProp: u.byteSizeText,
419
- onAddByteSize: Me
420
- }, null, 8, ["byteSizeProp"])) : o("", !0),
421
- d.value.key === "dcatap:availability" ? (i(), f(Je, {
503
+ byteSizeProp: f.byteSizeText,
504
+ onAddByteSize: je
505
+ }, null, 8, ["byteSizeProp"])) : d("", !0),
506
+ n.value.key === "dcatap:availability" ? (o(), g(ot, {
422
507
  key: 9,
423
- availabilityText: u.availabilityText,
424
- onAddAvailability: Le
425
- }, null, 8, ["availabilityText"])) : o("", !0),
426
- d.value.key === "dct:language" ? (i(), f(Xe, {
508
+ availabilityText: f.availabilityText,
509
+ onAddAvailability: We
510
+ }, null, 8, ["availabilityText"])) : d("", !0),
511
+ n.value.key === "dct:language" ? (o(), g(nt, {
427
512
  key: 10,
428
- languageText: u.languageText,
429
- distributionId: u.distributionId,
430
- onAddLanguage: ze
431
- }, null, 8, ["languageText", "distributionId"])) : o("", !0),
432
- d.value.key === "dct:conformsTo" ? (i(), l("div", Ft, [
433
- c(tt, {
434
- conformsToItems: b.value[e.distributionId] || [],
435
- onUpdate: s[2] || (s[2] = (p) => Se(e.distributionId, p)),
513
+ languageText: f.languageText,
514
+ distributionId: f.distributionId,
515
+ onAddLanguage: Ne
516
+ }, null, 8, ["languageText", "distributionId"])) : d("", !0),
517
+ n.value.key === "dct:conformsTo" ? (o(), u("div", Wt, [
518
+ y(ct, {
519
+ ref_key: "conformsToV3Ref",
520
+ ref: R,
521
+ conformsToItems: V.value[e.distributionId] || [],
522
+ onUpdate: t[2] || (t[2] = (r) => Be(e.distributionId, r)),
436
523
  asCard: !1,
437
524
  distributionId: e.distributionId
438
525
  }, null, 8, ["conformsToItems", "distributionId"])
439
- ])) : o("", !0),
440
- d.value.key === "odrl:hasPolicy" ? (i(), l("div", Lt, [
441
- c(at, {
442
- policyItems: T.value[e.distributionId] || [],
443
- onUpdate: s[3] || (s[3] = (p) => Ce(e.distributionId, p)),
526
+ ])) : d("", !0),
527
+ n.value.key === "odrl:hasPolicy" ? (o(), u("div", Et, [
528
+ y(mt, {
529
+ ref_key: "policyV3Ref",
530
+ ref: P,
531
+ policyItems: I.value[e.distributionId] || [],
532
+ onUpdate: t[3] || (t[3] = (r) => ze(e.distributionId, r)),
444
533
  asCard: !1,
445
534
  distributionId: e.distributionId
446
535
  }, null, 8, ["policyItems", "distributionId"])
447
- ])) : o("", !0),
448
- d.value.key === "dcat:mediaType" ? (i(), f(J, {
536
+ ])) : d("", !0),
537
+ n.value.key === "dcat:mediaType" ? (o(), g(re, {
449
538
  key: 13,
450
- onAddMediaType: Z,
451
- fileTypes: u.fileTypes,
539
+ onAddMediaType: de,
540
+ fileTypes: f.fileTypes,
452
541
  fileFormatType: "dcat:mediaType",
453
- fileFormatText: u.mediaTypeText
454
- }, null, 8, ["fileTypes", "fileFormatText"])) : o("", !0),
455
- d.value.key === "dcat:compressFormat" ? (i(), f(J, {
542
+ fileFormatText: f.mediaTypeText
543
+ }, null, 8, ["fileTypes", "fileFormatText"])) : d("", !0),
544
+ n.value.key === "dcat:compressFormat" ? (o(), g(re, {
456
545
  key: 14,
457
- onAddCompressFormat: Z,
458
- fileTypes: u.fileTypes,
546
+ onAddCompressFormat: de,
547
+ fileTypes: f.fileTypes,
459
548
  fileFormatType: "dcat:compressFormat",
460
- compressFormatText: u.compressFormatText
461
- }, null, 8, ["fileTypes", "compressFormatText"])) : o("", !0),
462
- d.value.key === "dcat:packageFormat" ? (i(), f(J, {
549
+ compressFormatText: f.compressFormatText
550
+ }, null, 8, ["fileTypes", "compressFormatText"])) : d("", !0),
551
+ n.value.key === "dcat:packageFormat" ? (o(), g(re, {
463
552
  key: 15,
464
- onAddPackageFormat: Z,
465
- fileTypes: u.fileTypes,
553
+ onAddPackageFormat: de,
554
+ fileTypes: f.fileTypes,
466
555
  fileFormatType: "dcat:packageFormat",
467
- packageFormatText: u.packageFormatText
468
- }, null, 8, ["fileTypes", "packageFormatText"])) : o("", !0),
469
- d.value.key === "adms:status" ? (i(), f(Ye, {
556
+ packageFormatText: f.packageFormatText
557
+ }, null, 8, ["fileTypes", "packageFormatText"])) : d("", !0),
558
+ n.value.key === "adms:status" ? (o(), g(rt, {
470
559
  key: 16,
471
- statusText: u.statusText,
472
- onAddStatus: qe
473
- }, null, 8, ["statusText"])) : o("", !0),
474
- d.value.key === "spdx:checksum" ? (i(), f(et, {
560
+ statusText: f.statusText,
561
+ onAddStatus: Ee
562
+ }, null, 8, ["statusText"])) : d("", !0),
563
+ n.value.key === "spdx:checksum" ? (o(), g(ut, {
475
564
  key: 17,
476
- onAddChecksum: Be,
477
- checksumText: u.checksumText,
478
- checksumDropdownText: u.checksumDropdownText
479
- }, null, 8, ["checksumText", "checksumDropdownText"])) : o("", !0),
480
- d.value.key === "dcterms:license" ? (i(), f(st, {
565
+ ref_key: "checksumV3Ref",
566
+ ref: z,
567
+ onAddChecksum: Oe,
568
+ checksumText: f.checksumText,
569
+ checksumDropdownText: f.checksumDropdownText
570
+ }, null, 8, ["checksumText", "checksumDropdownText"])) : d("", !0),
571
+ n.value.key === "dcterms:license" ? (o(), g(ft, {
481
572
  key: 18,
482
- onAddChangeLicense: Ue,
483
- changeLicenseText: u.changeLicenseText,
484
- changeLicenseDropdownText: u.changeLicenseDropdownText
485
- }, null, 8, ["changeLicenseText", "changeLicenseDropdownText"])) : o("", !0),
486
- n("div", qt, [
487
- c(_, {
488
- onClick: N,
573
+ ref_key: "changeLicenseV3Ref",
574
+ ref: M,
575
+ onAddChangeLicense: He,
576
+ changeLicenseText: f.changeLicenseText,
577
+ changeLicenseDropdownText: f.changeLicenseDropdownText
578
+ }, null, 8, ["changeLicenseText", "changeLicenseDropdownText"])) : d("", !0),
579
+ p("div", Ot, [
580
+ y(C, {
581
+ onClick: oe,
489
582
  buttonText: "Zurück",
490
583
  size: "large",
491
584
  iconStart: "CaretLeft",
492
585
  variant: "tertiary"
493
586
  }),
494
- c(_, {
495
- onClick: Ie,
587
+ y(C, {
588
+ onClick: Fe,
496
589
  buttonText: "Hinzufügen",
497
590
  size: "large"
498
591
  })
499
592
  ])
500
593
  ], 2)
501
- ])) : o("", !0),
502
- O.value ? (i(), l("div", Bt, [
503
- n("div", Ut, [
504
- n("div", zt, [
505
- s[5] || (s[5] = n("h2", null, "Dokumentation löschen", -1)),
506
- c(G, {
594
+ ])) : d("", !0),
595
+ ae.value ? (o(), u("div", Ht, [
596
+ p("div", Nt, [
597
+ p("div", jt, [
598
+ t[5] || (t[5] = p("h2", null, "Dokumentation löschen", -1)),
599
+ y(ne, {
507
600
  class: "dpiv3_modalCrossout",
508
- onClick: ce
601
+ onClick: Te
509
602
  })
510
603
  ]),
511
- s[6] || (s[6] = n("div", { class: "dpiV3_modalContent" }, [
512
- n("p", null, "Möchten Sie diese Dokumentation wirklich löschen?")
604
+ t[6] || (t[6] = p("div", { class: "dpiV3_modalContent" }, [
605
+ p("p", null, "Möchten Sie diese Dokumentation wirklich löschen?")
513
606
  ], -1)),
514
- n("div", Mt, [
515
- n("div", $t, [
516
- V.value ? (i(), l("div", Wt, v(V.value), 1)) : o("", !0),
517
- H.value && V.value === "" ? (i(), l("div", Pt, v(H.value), 1)) : o("", !0),
518
- H.value === "" && V.value === "" ? (i(), l("div", Rt, " Es wurde keine URL angegeben! ")) : o("", !0)
607
+ p("div", Zt, [
608
+ p("div", Gt, [
609
+ L.value ? (o(), u("div", Jt, h(L.value), 1)) : d("", !0),
610
+ ie.value && L.value === "" ? (o(), u("div", Kt, h(ie.value), 1)) : d("", !0),
611
+ ie.value === "" && L.value === "" ? (o(), u("div", Qt, " Es wurde keine URL angegeben! ")) : d("", !0)
519
612
  ])
520
613
  ]),
521
- n("div", Ot, [
522
- c(_, {
523
- onClick: ce,
614
+ p("div", Xt, [
615
+ y(C, {
616
+ onClick: Te,
524
617
  buttonText: "Abbrechen",
525
618
  size: "large",
526
619
  variant: "tertiary"
527
620
  }),
528
- c(_, {
529
- onClick: $e,
621
+ y(C, {
622
+ onClick: Ze,
530
623
  buttonText: "Löschen",
531
624
  size: "large"
532
625
  })
533
626
  ])
534
627
  ])
535
- ])) : o("", !0)
628
+ ])) : d("", !0)
536
629
  ], 64));
537
630
  }
538
631
  };
539
632
  export {
540
- ca as default
633
+ ba as default
541
634
  };