@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.50

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