@piveau/dpi 0.2.0-alpha.73 → 0.2.0-alpha.74
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.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +155 -155
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +39 -39
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +126 -123
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +55 -40
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as i, computed as Qe, watch as Xe, onMounted as et, getCurrentInstance as tt, createElementBlock as u, openBlock as l, Fragment as D, createCommentVNode as d, createElementVNode as f, normalizeClass as
|
|
1
|
+
import { ref as i, computed as Qe, watch as Xe, onMounted as et, getCurrentInstance as tt, createElementBlock as u, openBlock as l, Fragment as D, createCommentVNode as d, createElementVNode as f, normalizeClass as R, createVNode as y, toDisplayString as h, renderList as Te, createBlock as g } from "vue";
|
|
2
2
|
import { getPlannedAvailability as at, getLanguages as it } from "../services/dpiV3_apis.js";
|
|
3
3
|
import w from "./ButtonV3.vue.js";
|
|
4
4
|
import st from "./CloseOpenButtonV3.vue.js";
|
|
5
|
-
import
|
|
5
|
+
import ue from "./CrossOutButton.vue.js";
|
|
6
6
|
import ot from "./OptionalInformation/AccessRightsV3.vue.js";
|
|
7
7
|
import lt from "./OptionalInformation/AccessServiceV3.vue.js";
|
|
8
8
|
import dt from "./OptionalInformation/AvailabilityV3.vue.js";
|
|
@@ -12,7 +12,7 @@ import ut from "./OptionalInformation/ChecksumV3.vue.js";
|
|
|
12
12
|
import ct from "./OptionalInformation/ConformsToV3.vue.js";
|
|
13
13
|
import ft from "./OptionalInformation/DescriptionV3.vue.js";
|
|
14
14
|
import mt from "./OptionalInformation/DocumentationsV3.vue.js";
|
|
15
|
-
import
|
|
15
|
+
import ce from "./OptionalInformation/FileFormatV3.vue.js";
|
|
16
16
|
import pt from "./OptionalInformation/IssuedDateV3.vue.js";
|
|
17
17
|
import vt from "./OptionalInformation/LanguageV3.vue.js";
|
|
18
18
|
import yt from "./OptionalInformation/ModifiedDateV3.vue.js";
|
|
@@ -149,178 +149,178 @@ const _t = {
|
|
|
149
149
|
"addChangeLicense"
|
|
150
150
|
],
|
|
151
151
|
setup(p, { emit: xe }) {
|
|
152
|
-
const e = p, v = xe,
|
|
152
|
+
const e = p, v = xe, q = i(null), B = i(null), z = i(null), M = i(null), $ = i(null), E = i(null), P = i(!1), W = i(!1), O = i(!1), H = i(!1), N = i(!1), j = i(!1), K = i(!1);
|
|
153
153
|
i(!1);
|
|
154
|
-
const
|
|
154
|
+
const Y = i(!1), Z = i(!1), G = i(!1), J = i(!1), Q = i(!1), X = i(!1), ee = i(!1), te = i(!1), ae = i(!1), ie = i(!1), T = i([]), r = i({ key: "", text: "" }), De = i(null), se = i(!1), C = i(null), oe = i(null);
|
|
155
155
|
i([...e.fileTypes]);
|
|
156
156
|
const we = i([]), Ce = i([]);
|
|
157
157
|
i(null);
|
|
158
|
-
const Le = i(!1),
|
|
158
|
+
const Le = i(!1), fe = i(""), me = i(""), pe = i(""), ve = i(""), b = i({}), _ = i({}), V = i({}), I = i({}), ye = i(""), he = i(""), L = i({ distributionId: "", value: "", uri: "" }), ke = i(0), ge = i(""), be = i(""), _e = i(""), U = i(""), A = i(""), Ue = i(""), S = i(""), F = i(""), le = i(!0);
|
|
159
159
|
i(!0);
|
|
160
|
-
const Ae = ["dcterms:license"], Ve = Qe(() => e.sections ? e.sections.map((
|
|
161
|
-
const
|
|
160
|
+
const Ae = ["dcterms:license"], Ve = Qe(() => e.sections ? e.sections.map((a) => {
|
|
161
|
+
const t = a.keys.map((o, c) => Ae.includes(o) ? -1 : c).filter((o) => o !== -1);
|
|
162
162
|
return {
|
|
163
|
-
...
|
|
164
|
-
items:
|
|
165
|
-
keys:
|
|
163
|
+
...a,
|
|
164
|
+
items: t.map((o) => a.items[o]),
|
|
165
|
+
keys: t.map((o) => a.keys[o])
|
|
166
166
|
};
|
|
167
167
|
}) : []);
|
|
168
|
-
function Se(
|
|
169
|
-
|
|
170
|
-
key: e.sections[
|
|
171
|
-
text: e.sections[
|
|
168
|
+
function Se(a, t) {
|
|
169
|
+
le.value = !1, r.value = {
|
|
170
|
+
key: e.sections[a].keys[t],
|
|
171
|
+
text: e.sections[a].items[t]
|
|
172
172
|
}, b.value[e.distributionId] || (b.value[e.distributionId] = []), _.value[e.distributionId] || (_.value[e.distributionId] = []), V.value[e.distributionId] || (V.value[e.distributionId] = []), I.value[e.distributionId] || (I.value[e.distributionId] = []);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
|
|
174
|
+
function de() {
|
|
175
|
+
le.value = !0, r.value = { key: "", text: "" };
|
|
176
176
|
}
|
|
177
177
|
function Fe() {
|
|
178
|
-
const
|
|
179
|
-
if (!
|
|
178
|
+
const a = (t) => {
|
|
179
|
+
if (!t || t.trim() === "")
|
|
180
180
|
return !1;
|
|
181
|
-
const o =
|
|
181
|
+
const o = t.trim();
|
|
182
182
|
return /\.[a-z]{2,}$/i.test(o);
|
|
183
183
|
};
|
|
184
|
-
if (
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
184
|
+
if (O.value) {
|
|
185
|
+
const t = V.value[e.distributionId] || [];
|
|
186
|
+
if (t.some((n) => {
|
|
187
187
|
const s = n["dct:title"] && n["dct:title"].trim() !== "", m = n["dcat:downloadURL"] ? n["dcat:downloadURL"].trim() : "";
|
|
188
|
-
return !!(s && (!m || !
|
|
188
|
+
return !!(s && (!m || !a(m)) || m && !a(m));
|
|
189
189
|
})) {
|
|
190
|
-
|
|
190
|
+
q.value && q.value.validateAllItems();
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
const c =
|
|
194
|
-
const s = n["dct:title"] && n["dct:title"].trim() !== "", m = n["dcat:downloadURL"] && n["dcat:downloadURL"].trim() !== "" &&
|
|
193
|
+
const c = t.filter((n) => {
|
|
194
|
+
const s = n["dct:title"] && n["dct:title"].trim() !== "", m = n["dcat:downloadURL"] && n["dcat:downloadURL"].trim() !== "" && a(n["dcat:downloadURL"].trim());
|
|
195
195
|
return s || m;
|
|
196
196
|
});
|
|
197
197
|
c.length > 0 && v(
|
|
198
198
|
"addConformsToItems",
|
|
199
199
|
e.distributionId,
|
|
200
200
|
c
|
|
201
|
-
),
|
|
201
|
+
), O.value = !1;
|
|
202
202
|
}
|
|
203
|
-
if (
|
|
204
|
-
const
|
|
205
|
-
if (
|
|
203
|
+
if (H.value) {
|
|
204
|
+
const t = I.value[e.distributionId] || [];
|
|
205
|
+
if (t.some((n) => {
|
|
206
206
|
const s = n["dcat:downloadURL"] ? n["dcat:downloadURL"].trim() : "";
|
|
207
|
-
return !!(s && !
|
|
207
|
+
return !!(s && !a(s));
|
|
208
208
|
})) {
|
|
209
|
-
|
|
209
|
+
E.value && E.value.validateAllItems();
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
212
|
-
const c =
|
|
213
|
-
c.length > 0 && v("addPolicyItems", e.distributionId, c),
|
|
212
|
+
const c = t.filter((n) => n["dcat:downloadURL"] && n["dcat:downloadURL"].trim() !== "" && a(n["dcat:downloadURL"].trim()));
|
|
213
|
+
c.length > 0 && v("addPolicyItems", e.distributionId, c), H.value = !1;
|
|
214
214
|
}
|
|
215
|
-
if (
|
|
216
|
-
const
|
|
215
|
+
if (P.value) {
|
|
216
|
+
const t = b.value[e.distributionId] || [], o = (s) => {
|
|
217
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);
|
|
218
218
|
return m || k || x;
|
|
219
219
|
};
|
|
220
|
-
if (
|
|
220
|
+
if (t.some((s) => {
|
|
221
221
|
const m = s["dcat:accessURL"] ? s["dcat:accessURL"].trim() : "";
|
|
222
|
-
return !!(o(s) && (!m || !
|
|
222
|
+
return !!(o(s) && (!m || !a(m)) || m && !a(m));
|
|
223
223
|
})) {
|
|
224
|
-
|
|
224
|
+
B.value && B.value.validateAllItems();
|
|
225
225
|
return;
|
|
226
226
|
}
|
|
227
|
-
const n =
|
|
228
|
-
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), Je = s["dcat:accessURL"] && s["dcat:accessURL"].trim() !== "" &&
|
|
227
|
+
const n = t.filter((s) => {
|
|
228
|
+
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), Je = s["dcat:accessURL"] && s["dcat:accessURL"].trim() !== "" && a(s["dcat:accessURL"].trim());
|
|
229
229
|
return m || k || x || Je;
|
|
230
230
|
});
|
|
231
231
|
n.length > 0 && v(
|
|
232
232
|
"addDocumentations",
|
|
233
233
|
e.distributionId,
|
|
234
234
|
n
|
|
235
|
-
),
|
|
235
|
+
), P.value = !1;
|
|
236
236
|
}
|
|
237
|
-
if (
|
|
238
|
-
const
|
|
237
|
+
if (W.value) {
|
|
238
|
+
const t = _.value[e.distributionId] || [], o = (s) => {
|
|
239
239
|
const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "";
|
|
240
240
|
return m || k;
|
|
241
241
|
};
|
|
242
|
-
if (
|
|
242
|
+
if (t.some((s) => {
|
|
243
243
|
const m = s["dcat:downloadURL"] ? s["dcat:downloadURL"].trim() : "";
|
|
244
|
-
return !!(o(s) && (!m || !
|
|
244
|
+
return !!(o(s) && (!m || !a(m)) || m && !a(m));
|
|
245
245
|
})) {
|
|
246
|
-
|
|
246
|
+
z.value && z.value.validateAllItems();
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
|
-
const n =
|
|
250
|
-
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() !== "" &&
|
|
249
|
+
const n = t.filter((s) => {
|
|
250
|
+
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());
|
|
251
251
|
return m || k || x;
|
|
252
252
|
});
|
|
253
253
|
n.length > 0 && v(
|
|
254
254
|
"addAccessServices",
|
|
255
255
|
e.distributionId,
|
|
256
256
|
n
|
|
257
|
-
),
|
|
257
|
+
), W.value = !1;
|
|
258
258
|
}
|
|
259
|
-
if (
|
|
260
|
-
const
|
|
261
|
-
if ((
|
|
262
|
-
|
|
259
|
+
if (N.value && (v("addModifiedDate", fe.value, e.distributionId), N.value = !1), j.value && (v("addIssuedDate", me.value, e.distributionId), j.value = !1), K.value && (v("addDescription", pe.value, e.distributionId), K.value = !1), Y.value && (v("addAccessRights", ve.value, e.distributionId, e.uri), Y.value = !1), Z.value && (v("addAvailability", ye.value, e.distributionId, e.uri), Z.value = !1), te.value && (v("addStatus", he.value, e.distributionId), te.value = !1), ae.value) {
|
|
260
|
+
const t = U.value && U.value.trim() !== "", o = A.value && A.value.trim() !== "";
|
|
261
|
+
if ((t || o) && (!t || !o)) {
|
|
262
|
+
M.value && M.value.validateAllItems();
|
|
263
263
|
return;
|
|
264
264
|
}
|
|
265
|
-
|
|
265
|
+
t && o && v(
|
|
266
266
|
"addChecksum",
|
|
267
|
-
L.value,
|
|
268
267
|
U.value,
|
|
268
|
+
A.value,
|
|
269
269
|
e.distributionId,
|
|
270
270
|
Ue.value
|
|
271
|
-
),
|
|
271
|
+
), ae.value = !1;
|
|
272
272
|
}
|
|
273
|
-
if (
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
276
|
-
|
|
273
|
+
if (ie.value) {
|
|
274
|
+
const t = typeof F.value == "string" ? F.value.trim() : "", o = typeof S.value == "string" ? S.value.trim() : "";
|
|
275
|
+
if (t && (t.toLowerCase().includes("cc-by") || t.toLowerCase().includes("cc by")) && !o || o && !t) {
|
|
276
|
+
$.value && $.value.validate();
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
|
-
(
|
|
279
|
+
(t || o) && v(
|
|
280
280
|
"addChangeLicense",
|
|
281
|
-
A.value,
|
|
282
281
|
S.value,
|
|
282
|
+
F.value,
|
|
283
283
|
e.distributionId
|
|
284
|
-
),
|
|
284
|
+
), ie.value = !1;
|
|
285
285
|
}
|
|
286
|
-
|
|
286
|
+
G.value && (v("addLanguage", L.value.value, L.value.distributionId, L.value.uri), G.value = !1), J.value && (v("addByteSize", ke.value, e.distributionId), J.value = !1), Q.value && (v(
|
|
287
287
|
"addMediaType",
|
|
288
288
|
ge.value,
|
|
289
289
|
"dcat:mediaType",
|
|
290
290
|
e.distributionId
|
|
291
|
-
),
|
|
291
|
+
), Q.value = !1), X.value && (v(
|
|
292
292
|
"addCompressFormat",
|
|
293
293
|
be.value,
|
|
294
294
|
"dcat:compressFormat",
|
|
295
295
|
e.distributionId
|
|
296
|
-
),
|
|
296
|
+
), X.value = !1), ee.value && (v(
|
|
297
297
|
"addPackageFormat",
|
|
298
298
|
_e.value,
|
|
299
299
|
"dcat:packageFormat",
|
|
300
300
|
e.distributionId
|
|
301
|
-
),
|
|
301
|
+
), ee.value = !1), de();
|
|
302
302
|
}
|
|
303
303
|
Xe(
|
|
304
304
|
() => e.sections,
|
|
305
|
-
(
|
|
306
|
-
Array.isArray(
|
|
305
|
+
(a) => {
|
|
306
|
+
Array.isArray(a) && a.length > 0 && (T.value = a.map((t, o) => o === 0));
|
|
307
307
|
},
|
|
308
308
|
{ immediate: !0 }
|
|
309
309
|
);
|
|
310
|
-
function Re(
|
|
311
|
-
T.value[
|
|
310
|
+
function Re(a) {
|
|
311
|
+
T.value[a] = !T.value[a];
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function ne() {
|
|
314
314
|
v("close");
|
|
315
315
|
}
|
|
316
316
|
function qe() {
|
|
317
|
-
v("actionHandling", e.action),
|
|
317
|
+
v("actionHandling", e.action), ne();
|
|
318
318
|
}
|
|
319
319
|
et(async () => {
|
|
320
320
|
b.value[e.distributionId] = e.documentations, _.value[e.distributionId] = e.accessServices, V.value[e.distributionId] = e.conformsToItems, I.value[e.distributionId] = e.policyItems;
|
|
321
|
-
const
|
|
321
|
+
const a = tt(), t = a.appContext.app.config.globalProperties.$env;
|
|
322
322
|
try {
|
|
323
|
-
const c = await at(
|
|
323
|
+
const c = await at(t.api.baseUrl);
|
|
324
324
|
we.value = c.map((n) => ({
|
|
325
325
|
"@value": n.value,
|
|
326
326
|
label: n.label
|
|
@@ -328,9 +328,9 @@ const _t = {
|
|
|
328
328
|
} catch (c) {
|
|
329
329
|
console.error("Failed to load planned availability data", c);
|
|
330
330
|
}
|
|
331
|
-
const o =
|
|
331
|
+
const o = a.appContext.app.config.globalProperties.$i18n.locale;
|
|
332
332
|
try {
|
|
333
|
-
const c = await it(
|
|
333
|
+
const c = await it(t.api.baseUrl, o);
|
|
334
334
|
Ce.value = c.map((n) => ({
|
|
335
335
|
"@value": n.label,
|
|
336
336
|
label: n.label
|
|
@@ -339,84 +339,84 @@ const _t = {
|
|
|
339
339
|
console.error("Failed to load language data", c);
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
|
-
function Be(
|
|
343
|
-
console.log(
|
|
342
|
+
function Be(a, t) {
|
|
343
|
+
console.log(t), b.value[a] = t, P.value = !0;
|
|
344
344
|
}
|
|
345
|
-
function ze(
|
|
346
|
-
_.value[
|
|
345
|
+
function ze(a, t) {
|
|
346
|
+
_.value[a] = t, W.value = !0;
|
|
347
347
|
}
|
|
348
|
-
function Me(
|
|
349
|
-
V.value[
|
|
348
|
+
function Me(a, t) {
|
|
349
|
+
V.value[a] = t, O.value = !0;
|
|
350
350
|
}
|
|
351
|
-
function $e(
|
|
352
|
-
I.value[
|
|
351
|
+
function $e(a, t) {
|
|
352
|
+
I.value[a] = t, H.value = !0;
|
|
353
353
|
}
|
|
354
|
-
function Ee(
|
|
355
|
-
|
|
354
|
+
function Ee(a) {
|
|
355
|
+
fe.value = a, N.value = !0;
|
|
356
356
|
}
|
|
357
|
-
function Pe(
|
|
358
|
-
|
|
357
|
+
function Pe(a) {
|
|
358
|
+
me.value = a, j.value = !0;
|
|
359
359
|
}
|
|
360
|
-
function We(
|
|
361
|
-
|
|
360
|
+
function We(a) {
|
|
361
|
+
pe.value = a, K.value = !0;
|
|
362
362
|
}
|
|
363
|
-
function Oe(
|
|
364
|
-
console.log(
|
|
363
|
+
function Oe(a, t) {
|
|
364
|
+
console.log(a, t), ve.value = a, Y.value = !0;
|
|
365
365
|
}
|
|
366
|
-
function He(
|
|
367
|
-
|
|
366
|
+
function He(a) {
|
|
367
|
+
ye.value = a, Z.value = !0;
|
|
368
368
|
}
|
|
369
|
-
function Ne(
|
|
370
|
-
|
|
369
|
+
function Ne(a) {
|
|
370
|
+
he.value = a, te.value = !0;
|
|
371
371
|
}
|
|
372
|
-
function je(
|
|
373
|
-
console.log(e.checksumURI),
|
|
372
|
+
function je(a, t) {
|
|
373
|
+
console.log(e.checksumURI), ae.value = !0, A.value = t, U.value = a;
|
|
374
374
|
}
|
|
375
|
-
function Ke(
|
|
376
|
-
console.log(
|
|
375
|
+
function Ke(a, t, o, c) {
|
|
376
|
+
console.log(a, t, o, c), ie.value = !0, F.value = t, S.value = a;
|
|
377
377
|
}
|
|
378
|
-
function Ye(t) {
|
|
379
|
-
|
|
378
|
+
function Ye(a, t, o) {
|
|
379
|
+
L.value = { value: a, distributionId: t, uri: o }, G.value = !0;
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
switch (
|
|
381
|
+
function re(a, t) {
|
|
382
|
+
switch (t) {
|
|
383
383
|
case "dcat:mediaType":
|
|
384
|
-
|
|
384
|
+
Q.value = !0, ge.value = a;
|
|
385
385
|
break;
|
|
386
386
|
case "dcat:compressFormat":
|
|
387
|
-
|
|
387
|
+
X.value = !0, be.value = a;
|
|
388
388
|
break;
|
|
389
389
|
case "dcat:packageFormat":
|
|
390
|
-
|
|
390
|
+
ee.value = !0, _e.value = a;
|
|
391
391
|
break;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function Ze(
|
|
395
|
-
ke.value =
|
|
394
|
+
function Ze(a) {
|
|
395
|
+
ke.value = a, J.value = !0;
|
|
396
396
|
}
|
|
397
397
|
function Ie() {
|
|
398
|
-
|
|
398
|
+
se.value = !1, De.value = null;
|
|
399
399
|
}
|
|
400
400
|
function Ge() {
|
|
401
|
-
|
|
401
|
+
se.value = !1, Le.value = !1;
|
|
402
402
|
}
|
|
403
|
-
return (
|
|
404
|
-
|
|
403
|
+
return (a, t) => (l(), u(D, null, [
|
|
404
|
+
le.value ? (l(), u("div", _t, [
|
|
405
405
|
f("div", {
|
|
406
|
-
class:
|
|
406
|
+
class: R(["dpiV3_modalWrap", {
|
|
407
407
|
dpiV3_optionalInfo: e.optionalInfoView || r.value.key === "foaf:page"
|
|
408
408
|
}])
|
|
409
409
|
}, [
|
|
410
410
|
f("div", {
|
|
411
|
-
class:
|
|
411
|
+
class: R(["dpiV3_modalMainWrap", { dpiV3_modalLine: e.optionalInfoView }])
|
|
412
412
|
}, [
|
|
413
413
|
f("div", Vt, [
|
|
414
414
|
f("h2", {
|
|
415
|
-
class:
|
|
415
|
+
class: R({ dpiV3_optionalInfoHeader: e.optionalInfoView })
|
|
416
416
|
}, h(e.headerText), 3),
|
|
417
|
-
y(
|
|
417
|
+
y(ue, {
|
|
418
418
|
class: "dpiv3_modalCrossout",
|
|
419
|
-
onClick:
|
|
419
|
+
onClick: ne
|
|
420
420
|
})
|
|
421
421
|
]),
|
|
422
422
|
f("span", It, h(e.text), 1),
|
|
@@ -443,9 +443,9 @@ const _t = {
|
|
|
443
443
|
e.showButtons ? (l(), u("div", At, [
|
|
444
444
|
y(gt, {
|
|
445
445
|
ref: "accActive",
|
|
446
|
-
"button-text":
|
|
446
|
+
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.modal.cancel"),
|
|
447
447
|
class: "dpiv3_modalCancelButton",
|
|
448
|
-
onClick:
|
|
448
|
+
onClick: ne
|
|
449
449
|
}, null, 8, ["button-text"]),
|
|
450
450
|
y(w, {
|
|
451
451
|
"button-text": e.buttons,
|
|
@@ -468,7 +468,7 @@ const _t = {
|
|
|
468
468
|
])
|
|
469
469
|
]),
|
|
470
470
|
T.value[c] ? (l(!0), u(D, { key: 0 }, Te(o.items, (n, s) => (l(), u(D, { key: s }, [
|
|
471
|
-
|
|
471
|
+
t[4] || (t[4] = f("div", { class: "dpiV3_itemDivider" }, null, -1)),
|
|
472
472
|
f("div", {
|
|
473
473
|
class: "dpiV3_itemOptional",
|
|
474
474
|
onClick: (m) => Se(c, s)
|
|
@@ -482,24 +482,24 @@ const _t = {
|
|
|
482
482
|
])) : d("", !0),
|
|
483
483
|
r.value.key ? (l(), u("div", $t, [
|
|
484
484
|
f("div", {
|
|
485
|
-
class:
|
|
485
|
+
class: R(["dpiV3_modalWrap", {
|
|
486
486
|
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"
|
|
487
487
|
}])
|
|
488
488
|
}, [
|
|
489
489
|
f("div", Et, [
|
|
490
|
-
f("h2", null, h(r.value.text) + " " + h(
|
|
491
|
-
y(
|
|
490
|
+
f("h2", null, h(r.value.text) + " " + h(a.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
|
|
491
|
+
y(ue, {
|
|
492
492
|
class: "dpiv3_modalCrossout",
|
|
493
|
-
onClick:
|
|
493
|
+
onClick: de
|
|
494
494
|
})
|
|
495
495
|
]),
|
|
496
|
-
r.value.key === "dcatap:availability" ? (l(), u("p", Pt, h(
|
|
496
|
+
r.value.key === "dcatap:availability" ? (l(), u("p", Pt, h(a.$t(
|
|
497
497
|
"message.dataupload.datasets.dcat:distribution.modal.availability_paragraph"
|
|
498
498
|
)), 1)) : d("", !0),
|
|
499
|
-
r.value.key === "dcat:byteSize" ? (l(), u("p", Wt, h(
|
|
499
|
+
r.value.key === "dcat:byteSize" ? (l(), u("p", Wt, h(a.$t(
|
|
500
500
|
"message.dataupload.datasets.dcat:distribution.modal.byte-size-paragraph"
|
|
501
501
|
)), 1)) : d("", !0),
|
|
502
|
-
r.value.key === "foaf:page" ? (l(), u("p", Ot, h(
|
|
502
|
+
r.value.key === "foaf:page" ? (l(), u("p", Ot, h(a.$t(
|
|
503
503
|
"message.dataupload.datasets.dcat:distribution.modal.documentation-paragraph"
|
|
504
504
|
)), 1)) : d("", !0),
|
|
505
505
|
r.value.key === "dct:modified" ? (l(), u("div", Ht, [
|
|
@@ -530,20 +530,20 @@ const _t = {
|
|
|
530
530
|
r.value.key === "foaf:page" ? (l(), u("div", Yt, [
|
|
531
531
|
y(mt, {
|
|
532
532
|
ref_key: "documentationsV3Ref",
|
|
533
|
-
ref:
|
|
533
|
+
ref: B,
|
|
534
534
|
documentations: b.value[e.distributionId] || [],
|
|
535
535
|
"file-types": p.fileTypes,
|
|
536
536
|
"distribution-id": e.distributionId,
|
|
537
|
-
onUpdate:
|
|
537
|
+
onUpdate: t[0] || (t[0] = (o) => Be(e.distributionId, o))
|
|
538
538
|
}, null, 8, ["documentations", "file-types", "distribution-id"])
|
|
539
539
|
])) : d("", !0),
|
|
540
540
|
r.value.key === "dcat:accessService" ? (l(), u("div", Zt, [
|
|
541
541
|
y(lt, {
|
|
542
542
|
ref_key: "accessServiceV3Ref",
|
|
543
|
-
ref:
|
|
543
|
+
ref: z,
|
|
544
544
|
"access-services": _.value[e.distributionId] || [],
|
|
545
545
|
"distribution-id": e.distributionId,
|
|
546
|
-
onUpdate:
|
|
546
|
+
onUpdate: t[1] || (t[1] = (o) => ze(e.distributionId, o))
|
|
547
547
|
}, null, 8, ["access-services", "distribution-id"])
|
|
548
548
|
])) : d("", !0),
|
|
549
549
|
r.value.key === "dcat:byteSize" ? (l(), g(nt, {
|
|
@@ -565,43 +565,43 @@ const _t = {
|
|
|
565
565
|
r.value.key === "dct:conformsTo" ? (l(), u("div", Gt, [
|
|
566
566
|
y(ct, {
|
|
567
567
|
ref_key: "conformsToV3Ref",
|
|
568
|
-
ref:
|
|
568
|
+
ref: q,
|
|
569
569
|
"conforms-to-items": V.value[e.distributionId] || [],
|
|
570
570
|
"as-card": !1,
|
|
571
571
|
"distribution-id": e.distributionId,
|
|
572
|
-
onUpdate:
|
|
572
|
+
onUpdate: t[2] || (t[2] = (o) => Me(e.distributionId, o))
|
|
573
573
|
}, null, 8, ["conforms-to-items", "distribution-id"])
|
|
574
574
|
])) : d("", !0),
|
|
575
575
|
r.value.key === "odrl:hasPolicy" ? (l(), u("div", Jt, [
|
|
576
576
|
y(ht, {
|
|
577
577
|
ref_key: "policyV3Ref",
|
|
578
|
-
ref:
|
|
578
|
+
ref: E,
|
|
579
579
|
"policy-items": I.value[e.distributionId] || [],
|
|
580
580
|
"as-card": !1,
|
|
581
581
|
"distribution-id": e.distributionId,
|
|
582
|
-
onUpdate:
|
|
582
|
+
onUpdate: t[3] || (t[3] = (o) => $e(e.distributionId, o))
|
|
583
583
|
}, null, 8, ["policy-items", "distribution-id"])
|
|
584
584
|
])) : d("", !0),
|
|
585
|
-
r.value.key === "dcat:mediaType" ? (l(), g(
|
|
585
|
+
r.value.key === "dcat:mediaType" ? (l(), g(ce, {
|
|
586
586
|
key: 14,
|
|
587
587
|
"file-types": p.fileTypes,
|
|
588
588
|
"file-format-type": "dcat:mediaType",
|
|
589
589
|
"file-format-text": p.mediaTypeText,
|
|
590
|
-
onAddMediaType:
|
|
590
|
+
onAddMediaType: re
|
|
591
591
|
}, null, 8, ["file-types", "file-format-text"])) : d("", !0),
|
|
592
|
-
r.value.key === "dcat:compressFormat" ? (l(), g(
|
|
592
|
+
r.value.key === "dcat:compressFormat" ? (l(), g(ce, {
|
|
593
593
|
key: 15,
|
|
594
594
|
"file-types": p.fileTypes,
|
|
595
595
|
"file-format-type": "dcat:compressFormat",
|
|
596
596
|
"compress-format-text": p.compressFormatText,
|
|
597
|
-
onAddCompressFormat:
|
|
597
|
+
onAddCompressFormat: re
|
|
598
598
|
}, null, 8, ["file-types", "compress-format-text"])) : d("", !0),
|
|
599
|
-
r.value.key === "dcat:packageFormat" ? (l(), g(
|
|
599
|
+
r.value.key === "dcat:packageFormat" ? (l(), g(ce, {
|
|
600
600
|
key: 16,
|
|
601
601
|
"file-types": p.fileTypes,
|
|
602
602
|
"file-format-type": "dcat:packageFormat",
|
|
603
603
|
"package-format-text": p.packageFormatText,
|
|
604
|
-
onAddPackageFormat:
|
|
604
|
+
onAddPackageFormat: re
|
|
605
605
|
}, null, 8, ["file-types", "package-format-text"])) : d("", !0),
|
|
606
606
|
r.value.key === "adms:status" ? (l(), g(kt, {
|
|
607
607
|
key: 17,
|
|
@@ -611,7 +611,7 @@ const _t = {
|
|
|
611
611
|
r.value.key === "spdx:checksum" ? (l(), g(ut, {
|
|
612
612
|
key: 18,
|
|
613
613
|
ref_key: "checksumV3Ref",
|
|
614
|
-
ref:
|
|
614
|
+
ref: M,
|
|
615
615
|
"checksum-text": p.checksumText,
|
|
616
616
|
"checksum-dropdown-text": p.checksumDropdownText,
|
|
617
617
|
"as-card": !1,
|
|
@@ -620,7 +620,7 @@ const _t = {
|
|
|
620
620
|
r.value.key === "dcterms:license" ? (l(), g(rt, {
|
|
621
621
|
key: 19,
|
|
622
622
|
ref_key: "changeLicenseV3Ref",
|
|
623
|
-
ref:
|
|
623
|
+
ref: $,
|
|
624
624
|
"change-license-text": p.changeLicenseText,
|
|
625
625
|
"change-license-dropdown-text": p.changeLicenseDropdownText,
|
|
626
626
|
onAddChangeLicense: Ke
|
|
@@ -631,7 +631,7 @@ const _t = {
|
|
|
631
631
|
size: "large",
|
|
632
632
|
"icon-start": "CaretLeft",
|
|
633
633
|
variant: "tertiary",
|
|
634
|
-
onClick:
|
|
634
|
+
onClick: de
|
|
635
635
|
}),
|
|
636
636
|
y(w, {
|
|
637
637
|
"button-text": "Hinzufügen",
|
|
@@ -641,23 +641,23 @@ const _t = {
|
|
|
641
641
|
])
|
|
642
642
|
], 2)
|
|
643
643
|
])) : d("", !0),
|
|
644
|
-
|
|
644
|
+
se.value ? (l(), u("div", Xt, [
|
|
645
645
|
f("div", ea, [
|
|
646
646
|
f("div", ta, [
|
|
647
|
-
|
|
648
|
-
y(
|
|
647
|
+
t[5] || (t[5] = f("h2", null, "Dokumentation löschen", -1)),
|
|
648
|
+
y(ue, {
|
|
649
649
|
class: "dpiv3_modalCrossout",
|
|
650
650
|
onClick: Ie
|
|
651
651
|
})
|
|
652
652
|
]),
|
|
653
|
-
|
|
653
|
+
t[6] || (t[6] = f("div", { class: "dpiV3_modalContent" }, [
|
|
654
654
|
f("p", null, "Möchten Sie diese Dokumentation wirklich löschen?")
|
|
655
655
|
], -1)),
|
|
656
656
|
f("div", aa, [
|
|
657
657
|
f("div", ia, [
|
|
658
658
|
C.value ? (l(), u("div", sa, h(C.value), 1)) : d("", !0),
|
|
659
|
-
|
|
660
|
-
|
|
659
|
+
oe.value && C.value === "" ? (l(), u("div", oa, h(oe.value), 1)) : d("", !0),
|
|
660
|
+
oe.value === "" && C.value === "" ? (l(), u("div", la, " Es wurde keine URL angegeben! ")) : d("", !0)
|
|
661
661
|
])
|
|
662
662
|
]),
|
|
663
663
|
f("div", da, [
|
|
@@ -677,7 +677,7 @@ const _t = {
|
|
|
677
677
|
])) : d("", !0)
|
|
678
678
|
], 64));
|
|
679
679
|
}
|
|
680
|
-
}, Fa = /* @__PURE__ */ bt(na, [["__scopeId", "data-v-
|
|
680
|
+
}, Fa = /* @__PURE__ */ bt(na, [["__scopeId", "data-v-695c3012"]]);
|
|
681
681
|
export {
|
|
682
682
|
Fa as default
|
|
683
683
|
};
|