@piveau/dpi 0.1.0-beta.8 → 0.1.0-beta.83

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