@piveau/dpi 0.1.0-beta.48 → 0.1.0-beta.49
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/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +138 -132
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +8 -8
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +230 -215
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +9 -9
- package/dist/data-provider-interface/components/DistLicense.vue.js +58 -58
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +5 -2
- package/dist/data-provider-interface/components/TempResPage.vue.js +81 -81
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +75 -68
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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
2
|
import Xe from "./TextButtonSmall.vue.js";
|
|
3
|
-
import
|
|
3
|
+
import L from "./ButtonV3.vue.js";
|
|
4
4
|
import ne from "./CrossOutButton.vue.js";
|
|
5
5
|
import Ye from "./CloseOpenButtonV3.vue.js";
|
|
6
6
|
import { getPlannedAvailability as et, getLanguages as tt } from "../services/dpiV3_apis.js";
|
|
@@ -24,71 +24,65 @@ const vt = {
|
|
|
24
24
|
class: "dpiV3_modalBackground"
|
|
25
25
|
}, yt = { class: "dpiV3_modalHeaderWrap" }, ht = { class: "dpiV3_modalText" }, kt = {
|
|
26
26
|
key: 0,
|
|
27
|
-
class: "
|
|
28
|
-
}, gt = { class: "dpiV3_LinkInfos" }, bt = {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "dpiV3_title"
|
|
31
|
-
}, Tt = {
|
|
32
|
-
key: 1,
|
|
33
|
-
class: "dpiV3_title"
|
|
34
|
-
}, Vt = {
|
|
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 = {
|
|
35
29
|
key: 2,
|
|
36
30
|
class: "dpiV3_File-Format copy-small-regular"
|
|
37
|
-
},
|
|
31
|
+
}, xt = {
|
|
38
32
|
key: 0,
|
|
39
33
|
class: "dpiV3_modalButtonWrap"
|
|
40
|
-
},
|
|
34
|
+
}, Dt = {
|
|
41
35
|
key: 1,
|
|
42
36
|
class: "dpiV3_optionalInfoContent"
|
|
43
|
-
},
|
|
37
|
+
}, Lt = { class: "dpiV3_ListMetaData" }, Ct = { class: "dpiV3_title-description" }, wt = { class: "dpiV3_group-title" }, Ut = { class: "dpiV3_caret" }, Ft = ["onClick"], At = {
|
|
44
38
|
key: 1,
|
|
45
39
|
class: "dpiV3_sectionDivider"
|
|
46
|
-
},
|
|
40
|
+
}, St = {
|
|
47
41
|
key: 1,
|
|
48
42
|
class: "dpiV3_modalBackground"
|
|
49
|
-
},
|
|
43
|
+
}, Rt = { class: "dpiV3_modalHeaderWrap" }, qt = {
|
|
50
44
|
key: 0,
|
|
51
45
|
class: "dpiV3_modalContent"
|
|
52
|
-
},
|
|
46
|
+
}, Bt = {
|
|
53
47
|
key: 1,
|
|
54
48
|
class: "dpiV3_modalContent"
|
|
55
|
-
},
|
|
49
|
+
}, zt = {
|
|
56
50
|
key: 2,
|
|
57
51
|
class: "dpiV3_modalContent"
|
|
58
|
-
},
|
|
52
|
+
}, Mt = {
|
|
59
53
|
key: 3,
|
|
60
54
|
class: "dpiV3_modified"
|
|
61
|
-
},
|
|
55
|
+
}, Pt = {
|
|
62
56
|
key: 4,
|
|
63
57
|
class: "dpiV3_modified"
|
|
64
|
-
},
|
|
58
|
+
}, $t = {
|
|
65
59
|
key: 5,
|
|
66
60
|
class: "dpiV3_modified"
|
|
67
|
-
},
|
|
61
|
+
}, Wt = {
|
|
68
62
|
key: 6,
|
|
69
63
|
class: "dpiV3_DocumentationV3_Wrap"
|
|
70
|
-
},
|
|
64
|
+
}, Et = {
|
|
71
65
|
key: 7,
|
|
72
66
|
class: "dpiV3_DocumentationV3_Wrap"
|
|
73
|
-
},
|
|
67
|
+
}, Ot = {
|
|
74
68
|
key: 11,
|
|
75
69
|
class: "dpiV3_DocumentationV3_Wrap"
|
|
76
|
-
},
|
|
70
|
+
}, Ht = {
|
|
77
71
|
key: 12,
|
|
78
72
|
class: "dpiV3_DocumentationV3_Wrap"
|
|
79
|
-
},
|
|
73
|
+
}, Nt = { class: "dpiV3_modalButtonWrap" }, jt = {
|
|
80
74
|
key: 2,
|
|
81
75
|
class: "dpiV3_modalBackground"
|
|
82
|
-
},
|
|
76
|
+
}, Zt = { class: "dpiV3_modalWrap dpiV3_confirmationDialog" }, Gt = { class: "dpiV3_modalHeaderWrap" }, Jt = { class: "dpiV3AutoCompleteWrap copy-large-semi-bold" }, Kt = { class: "dpiV3_LinkInfos" }, Qt = {
|
|
83
77
|
key: 0,
|
|
84
78
|
class: "dpiV3_title"
|
|
85
|
-
},
|
|
79
|
+
}, Xt = {
|
|
86
80
|
key: 1,
|
|
87
81
|
class: "dpiV3_title"
|
|
88
|
-
},
|
|
82
|
+
}, Yt = {
|
|
89
83
|
key: 2,
|
|
90
84
|
class: "dpiV3_title"
|
|
91
|
-
},
|
|
85
|
+
}, ea = { class: "dpiV3_modalButtonWrap" }, Va = {
|
|
92
86
|
__name: "ModalV3",
|
|
93
87
|
props: {
|
|
94
88
|
headerText: { type: String, required: !0 },
|
|
@@ -148,20 +142,20 @@ const vt = {
|
|
|
148
142
|
"addChecksum",
|
|
149
143
|
"addChangeLicense"
|
|
150
144
|
],
|
|
151
|
-
setup(f, { emit:
|
|
152
|
-
const e = f, R = i(null), q = i(null), B = i(null), z = i(null), M = i(null), P = i(null), v =
|
|
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);
|
|
153
147
|
i(!1);
|
|
154
|
-
const ue = i(!1), Z = i(!1), G = i(!1), J = i(!1), K = i(!1), Q = i(!1), X = i(!1), Y = i(!1), ee = i(!1), te = i(!1),
|
|
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);
|
|
155
149
|
i([...e.fileTypes]);
|
|
156
150
|
const xe = i([]), De = i([]);
|
|
157
151
|
i(null);
|
|
158
|
-
const
|
|
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);
|
|
159
153
|
i(!0);
|
|
160
154
|
const Ue = (a, t) => {
|
|
161
155
|
se.value = !1, n.value = {
|
|
162
156
|
key: e.sections[a].keys[t],
|
|
163
157
|
text: e.sections[a].items[t]
|
|
164
|
-
}, b.value[e.distributionId] || (b.value[e.distributionId] = []), T.value[e.distributionId] || (T.value[e.distributionId] = []), V.value[e.distributionId] || (V.value[e.distributionId] = []),
|
|
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] = []);
|
|
165
159
|
}, oe = () => {
|
|
166
160
|
se.value = !0, n.value = { key: "", text: "" };
|
|
167
161
|
}, Fe = () => {
|
|
@@ -173,24 +167,24 @@ const vt = {
|
|
|
173
167
|
if (E.value) {
|
|
174
168
|
const t = V.value[e.distributionId] || [];
|
|
175
169
|
if (t.some((l) => {
|
|
176
|
-
const s = l["dct:title"] && l["dct:title"].trim() !== "",
|
|
177
|
-
return !!(s && (!
|
|
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));
|
|
178
172
|
})) {
|
|
179
173
|
R.value && R.value.validateAllItems();
|
|
180
174
|
return;
|
|
181
175
|
}
|
|
182
|
-
const
|
|
183
|
-
const s = l["dct:title"] && l["dct:title"].trim() !== "",
|
|
184
|
-
return s ||
|
|
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;
|
|
185
179
|
});
|
|
186
|
-
|
|
180
|
+
m.length > 0 && v(
|
|
187
181
|
"addConformsToItems",
|
|
188
182
|
e.distributionId,
|
|
189
|
-
|
|
183
|
+
m
|
|
190
184
|
), E.value = !1;
|
|
191
185
|
}
|
|
192
186
|
if (O.value) {
|
|
193
|
-
const t =
|
|
187
|
+
const t = _.value[e.distributionId] || [];
|
|
194
188
|
if (t.some((l) => {
|
|
195
189
|
const s = l["dcat:downloadURL"] ? l["dcat:downloadURL"].trim() : "";
|
|
196
190
|
return !!(s && !a(s));
|
|
@@ -198,24 +192,24 @@ const vt = {
|
|
|
198
192
|
P.value && P.value.validateAllItems();
|
|
199
193
|
return;
|
|
200
194
|
}
|
|
201
|
-
const
|
|
202
|
-
|
|
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;
|
|
203
197
|
}
|
|
204
198
|
if ($.value) {
|
|
205
199
|
const t = b.value[e.distributionId] || [], r = (s) => {
|
|
206
|
-
const
|
|
207
|
-
return
|
|
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;
|
|
208
202
|
};
|
|
209
203
|
if (t.some((s) => {
|
|
210
|
-
const
|
|
211
|
-
return !!(r(s) && (!
|
|
204
|
+
const p = s["dcat:accessURL"] ? s["dcat:accessURL"].trim() : "";
|
|
205
|
+
return !!(r(s) && (!p || !a(p)) || p && !a(p));
|
|
212
206
|
})) {
|
|
213
207
|
q.value && q.value.validateAllItems();
|
|
214
208
|
return;
|
|
215
209
|
}
|
|
216
210
|
const l = t.filter((s) => {
|
|
217
|
-
const
|
|
218
|
-
return
|
|
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;
|
|
219
213
|
});
|
|
220
214
|
l.length > 0 && v(
|
|
221
215
|
"addDocumentations",
|
|
@@ -225,19 +219,19 @@ const vt = {
|
|
|
225
219
|
}
|
|
226
220
|
if (W.value) {
|
|
227
221
|
const t = T.value[e.distributionId] || [], r = (s) => {
|
|
228
|
-
const
|
|
229
|
-
return
|
|
222
|
+
const p = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "";
|
|
223
|
+
return p || k;
|
|
230
224
|
};
|
|
231
225
|
if (t.some((s) => {
|
|
232
|
-
const
|
|
233
|
-
return !!(r(s) && (!
|
|
226
|
+
const p = s["dcat:downloadURL"] ? s["dcat:downloadURL"].trim() : "";
|
|
227
|
+
return !!(r(s) && (!p || !a(p)) || p && !a(p));
|
|
234
228
|
})) {
|
|
235
229
|
B.value && B.value.validateAllItems();
|
|
236
230
|
return;
|
|
237
231
|
}
|
|
238
232
|
const l = t.filter((s) => {
|
|
239
|
-
const
|
|
240
|
-
return
|
|
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;
|
|
241
235
|
});
|
|
242
236
|
l.length > 0 && v(
|
|
243
237
|
"addAccessServices",
|
|
@@ -245,7 +239,7 @@ const vt = {
|
|
|
245
239
|
l
|
|
246
240
|
), W.value = !1;
|
|
247
241
|
}
|
|
248
|
-
if (H.value && (v("addModifiedDate", ce.value, e.distributionId), H.value = !1), N.value && (v("addIssuedDate", me.value, e.distributionId), N.value = !1), j.value && (v("addDescription", pe.value, e.distributionId), j.value = !1), ue.value && (v("addAccessRights",
|
|
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) {
|
|
249
243
|
const t = w.value && w.value.trim() !== "", r = U.value && U.value.trim() !== "";
|
|
250
244
|
if ((t || r) && (!t || !r)) {
|
|
251
245
|
z.value && z.value.validateAllItems();
|
|
@@ -293,38 +287,38 @@ const vt = {
|
|
|
293
287
|
Je(
|
|
294
288
|
() => e.sections,
|
|
295
289
|
(a) => {
|
|
296
|
-
Array.isArray(a) && a.length > 0 && (
|
|
290
|
+
Array.isArray(a) && a.length > 0 && (I.value = a.map((t, r) => r === 0));
|
|
297
291
|
},
|
|
298
292
|
{ immediate: !0 }
|
|
299
293
|
);
|
|
300
294
|
const Ae = (a) => {
|
|
301
|
-
|
|
295
|
+
I.value[a] = !I.value[a];
|
|
302
296
|
}, le = () => {
|
|
303
297
|
v("close");
|
|
304
298
|
}, Se = () => {
|
|
305
299
|
v("actionHandling", e.action), le();
|
|
306
300
|
};
|
|
307
301
|
Ke(async () => {
|
|
308
|
-
b.value[e.distributionId] = e.documentations, T.value[e.distributionId] = e.accessServices, V.value[e.distributionId] = e.conformsToItems,
|
|
302
|
+
b.value[e.distributionId] = e.documentations, T.value[e.distributionId] = e.accessServices, V.value[e.distributionId] = e.conformsToItems, _.value[e.distributionId] = e.policyItems;
|
|
309
303
|
const a = Qe(), t = a.appContext.app.config.globalProperties.$env;
|
|
310
304
|
try {
|
|
311
|
-
const
|
|
312
|
-
xe.value =
|
|
305
|
+
const m = await et(t.api.baseUrl);
|
|
306
|
+
xe.value = m.map((l) => ({
|
|
313
307
|
"@value": l.value,
|
|
314
308
|
label: l.label
|
|
315
309
|
}));
|
|
316
|
-
} catch (
|
|
317
|
-
console.error("Failed to load planned availability data",
|
|
310
|
+
} catch (m) {
|
|
311
|
+
console.error("Failed to load planned availability data", m);
|
|
318
312
|
}
|
|
319
313
|
const r = a.appContext.app.config.globalProperties.$i18n.locale;
|
|
320
314
|
try {
|
|
321
|
-
const
|
|
322
|
-
De.value =
|
|
315
|
+
const m = await tt(t.api.baseUrl, r);
|
|
316
|
+
De.value = m.map((l) => ({
|
|
323
317
|
"@value": l.label,
|
|
324
318
|
label: l.label
|
|
325
319
|
}));
|
|
326
|
-
} catch (
|
|
327
|
-
console.error("Failed to load language data",
|
|
320
|
+
} catch (m) {
|
|
321
|
+
console.error("Failed to load language data", m);
|
|
328
322
|
}
|
|
329
323
|
});
|
|
330
324
|
const Re = (a, t) => {
|
|
@@ -334,7 +328,7 @@ const vt = {
|
|
|
334
328
|
}, Be = (a, t) => {
|
|
335
329
|
V.value[a] = t, E.value = !0;
|
|
336
330
|
}, ze = (a, t) => {
|
|
337
|
-
|
|
331
|
+
_.value[a] = t, O.value = !0;
|
|
338
332
|
}, Me = (a) => {
|
|
339
333
|
ce.value = a, H.value = !0;
|
|
340
334
|
}, Pe = (a) => {
|
|
@@ -347,8 +341,8 @@ const vt = {
|
|
|
347
341
|
ve.value = a, Y.value = !0;
|
|
348
342
|
}, Oe = (a, t) => {
|
|
349
343
|
console.log(e.checksumURI), ee.value = !0, U.value = t, w.value = a;
|
|
350
|
-
}, He = (a, t, r,
|
|
351
|
-
console.log(a, t, r,
|
|
344
|
+
}, He = (a, t, r, m) => {
|
|
345
|
+
console.log(a, t, r, m), te.value = !0, A.value = t, F.value = a;
|
|
352
346
|
}, Ne = (a) => {
|
|
353
347
|
ye.value = a, G.value = !0;
|
|
354
348
|
}, de = (a, t) => {
|
|
@@ -366,22 +360,22 @@ const vt = {
|
|
|
366
360
|
}, je = (a) => {
|
|
367
361
|
he.value = a, J.value = !0;
|
|
368
362
|
}, Te = () => {
|
|
369
|
-
ae.value = !1,
|
|
363
|
+
ae.value = !1, Ie.value = null;
|
|
370
364
|
}, Ze = () => {
|
|
371
|
-
ae.value = !1,
|
|
365
|
+
ae.value = !1, Le.value = !1;
|
|
372
366
|
};
|
|
373
367
|
return (a, t) => (o(), u(D, null, [
|
|
374
368
|
se.value ? (o(), u("div", vt, [
|
|
375
|
-
|
|
369
|
+
c("div", {
|
|
376
370
|
class: S(["dpiV3_modalWrap", {
|
|
377
371
|
dpiV3_optionalInfo: e.optionalInfoView || n.value.key === "foaf:page"
|
|
378
372
|
}])
|
|
379
373
|
}, [
|
|
380
|
-
|
|
374
|
+
c("div", {
|
|
381
375
|
class: S(["dpiV3_modalMainWrap", { dpiV3_modalLine: e.optionalInfoView }])
|
|
382
376
|
}, [
|
|
383
|
-
|
|
384
|
-
|
|
377
|
+
c("div", yt, [
|
|
378
|
+
c("h2", {
|
|
385
379
|
class: S({ dpiV3_optionalInfoHeader: e.optionalInfoView })
|
|
386
380
|
}, h(e.headerText), 3),
|
|
387
381
|
y(ne, {
|
|
@@ -389,97 +383,109 @@ const vt = {
|
|
|
389
383
|
onClick: le
|
|
390
384
|
})
|
|
391
385
|
]),
|
|
392
|
-
|
|
386
|
+
c("span", ht, h(e.text), 1),
|
|
393
387
|
!e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (o(), u("div", kt, [
|
|
394
|
-
|
|
395
|
-
e.title ? (o(), u("
|
|
396
|
-
|
|
397
|
-
|
|
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)
|
|
398
404
|
])
|
|
399
405
|
])) : d("", !0)
|
|
400
406
|
], 2),
|
|
401
|
-
e.showButtons ? (o(), u("div",
|
|
407
|
+
e.showButtons ? (o(), u("div", xt, [
|
|
402
408
|
y(Xe, {
|
|
403
409
|
buttonText: a.$t("message.dataupload.datasets.dcat:distribution.modal.cancel"),
|
|
404
410
|
class: "dpiv3_modalCancelButton",
|
|
405
411
|
onClick: le,
|
|
406
412
|
ref: "accActive"
|
|
407
413
|
}, null, 8, ["buttonText"]),
|
|
408
|
-
y(
|
|
414
|
+
y(L, {
|
|
409
415
|
onClick: Se,
|
|
410
416
|
buttonText: e.buttons,
|
|
411
417
|
size: "large"
|
|
412
418
|
}, null, 8, ["buttonText"])
|
|
413
419
|
])) : d("", !0),
|
|
414
|
-
e.optionalInfoView ? (o(), u("div",
|
|
415
|
-
|
|
416
|
-
(o(!0), u(D, null, Ve(f.sections, (r,
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
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, [
|
|
421
427
|
y(Ye, {
|
|
422
|
-
onClick: (l) => Ae(
|
|
423
|
-
expanded: !
|
|
428
|
+
onClick: (l) => Ae(m),
|
|
429
|
+
expanded: !I.value[m]
|
|
424
430
|
}, null, 8, ["onClick", "expanded"])
|
|
425
431
|
])
|
|
426
432
|
])
|
|
427
433
|
]),
|
|
428
|
-
|
|
429
|
-
t[4] || (t[4] =
|
|
430
|
-
|
|
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", {
|
|
431
437
|
class: "dpiV3_itemOptional",
|
|
432
|
-
onClick: (
|
|
433
|
-
}, h(l), 9,
|
|
438
|
+
onClick: (p) => Ue(m, s)
|
|
439
|
+
}, h(l), 9, Ft)
|
|
434
440
|
], 64))), 128)) : d("", !0),
|
|
435
|
-
|
|
441
|
+
m < f.sections.length - 1 ? (o(), u("div", At)) : d("", !0)
|
|
436
442
|
], 64))), 128))
|
|
437
443
|
])
|
|
438
444
|
])) : d("", !0)
|
|
439
445
|
], 2)
|
|
440
446
|
])) : d("", !0),
|
|
441
|
-
n.value.key ? (o(), u("div",
|
|
442
|
-
|
|
447
|
+
n.value.key ? (o(), u("div", St, [
|
|
448
|
+
c("div", {
|
|
443
449
|
class: S(["dpiV3_modalWrap", {
|
|
444
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"
|
|
445
451
|
}])
|
|
446
452
|
}, [
|
|
447
|
-
|
|
448
|
-
|
|
453
|
+
c("div", Rt, [
|
|
454
|
+
c("h2", null, h(n.value.text) + " " + h(a.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
|
|
449
455
|
y(ne, {
|
|
450
456
|
class: "dpiv3_modalCrossout",
|
|
451
457
|
onClick: oe
|
|
452
458
|
})
|
|
453
459
|
]),
|
|
454
|
-
n.value.key === "dcatap:availability" ? (o(), u("p",
|
|
460
|
+
n.value.key === "dcatap:availability" ? (o(), u("p", qt, h(a.$t(
|
|
455
461
|
"message.dataupload.datasets.dcat:distribution.modal.availability_paragraph"
|
|
456
462
|
)), 1)) : d("", !0),
|
|
457
|
-
n.value.key === "dcat:byteSize" ? (o(), u("p",
|
|
463
|
+
n.value.key === "dcat:byteSize" ? (o(), u("p", Bt, h(a.$t(
|
|
458
464
|
"message.dataupload.datasets.dcat:distribution.modal.byte-size-paragraph"
|
|
459
465
|
)), 1)) : d("", !0),
|
|
460
|
-
n.value.key === "foaf:page" ? (o(), u("p",
|
|
466
|
+
n.value.key === "foaf:page" ? (o(), u("p", zt, h(a.$t(
|
|
461
467
|
"message.dataupload.datasets.dcat:distribution.modal.documentation-paragraph"
|
|
462
468
|
)), 1)) : d("", !0),
|
|
463
|
-
n.value.key === "dct:modified" ? (o(), u("div",
|
|
469
|
+
n.value.key === "dct:modified" ? (o(), u("div", Mt, [
|
|
464
470
|
y(it, {
|
|
465
471
|
modelValue: f.modifiedDate,
|
|
466
472
|
onAddModifiedDate: Me
|
|
467
473
|
}, null, 8, ["modelValue"])
|
|
468
474
|
])) : d("", !0),
|
|
469
|
-
n.value.key === "dct:issued" ? (o(), u("div",
|
|
475
|
+
n.value.key === "dct:issued" ? (o(), u("div", Pt, [
|
|
470
476
|
y(dt, {
|
|
471
477
|
modelValue: f.issuedDate,
|
|
472
478
|
labelText: n.value.text + " (optional)",
|
|
473
479
|
onAddIssuedDate: Pe
|
|
474
480
|
}, null, 8, ["modelValue", "labelText"])
|
|
475
481
|
])) : d("", !0),
|
|
476
|
-
n.value.key === "dct:description" ? (o(), u("div",
|
|
482
|
+
n.value.key === "dct:description" ? (o(), u("div", $t, [
|
|
477
483
|
y(st, {
|
|
478
484
|
onAddDescription: $e,
|
|
479
485
|
descriptionText: f.descriptionText
|
|
480
486
|
}, null, 8, ["descriptionText"])
|
|
481
487
|
])) : d("", !0),
|
|
482
|
-
n.value.key === "foaf:page" ? (o(), u("div",
|
|
488
|
+
n.value.key === "foaf:page" ? (o(), u("div", Wt, [
|
|
483
489
|
y(at, {
|
|
484
490
|
ref_key: "documentationsV3Ref",
|
|
485
491
|
ref: q,
|
|
@@ -489,7 +495,7 @@ const vt = {
|
|
|
489
495
|
distributionId: e.distributionId
|
|
490
496
|
}, null, 8, ["documentations", "fileTypes", "distributionId"])
|
|
491
497
|
])) : d("", !0),
|
|
492
|
-
n.value.key === "dcat:accessService" ? (o(), u("div",
|
|
498
|
+
n.value.key === "dcat:accessService" ? (o(), u("div", Et, [
|
|
493
499
|
y(pt, {
|
|
494
500
|
ref_key: "accessServiceV3Ref",
|
|
495
501
|
ref: B,
|
|
@@ -514,7 +520,7 @@ const vt = {
|
|
|
514
520
|
distributionId: f.distributionId,
|
|
515
521
|
onAddLanguage: Ne
|
|
516
522
|
}, null, 8, ["languageText", "distributionId"])) : d("", !0),
|
|
517
|
-
n.value.key === "dct:conformsTo" ? (o(), u("div",
|
|
523
|
+
n.value.key === "dct:conformsTo" ? (o(), u("div", Ot, [
|
|
518
524
|
y(ct, {
|
|
519
525
|
ref_key: "conformsToV3Ref",
|
|
520
526
|
ref: R,
|
|
@@ -524,11 +530,11 @@ const vt = {
|
|
|
524
530
|
distributionId: e.distributionId
|
|
525
531
|
}, null, 8, ["conformsToItems", "distributionId"])
|
|
526
532
|
])) : d("", !0),
|
|
527
|
-
n.value.key === "odrl:hasPolicy" ? (o(), u("div",
|
|
533
|
+
n.value.key === "odrl:hasPolicy" ? (o(), u("div", Ht, [
|
|
528
534
|
y(mt, {
|
|
529
535
|
ref_key: "policyV3Ref",
|
|
530
536
|
ref: P,
|
|
531
|
-
policyItems:
|
|
537
|
+
policyItems: _.value[e.distributionId] || [],
|
|
532
538
|
onUpdate: t[3] || (t[3] = (r) => ze(e.distributionId, r)),
|
|
533
539
|
asCard: !1,
|
|
534
540
|
distributionId: e.distributionId
|
|
@@ -576,15 +582,15 @@ const vt = {
|
|
|
576
582
|
changeLicenseText: f.changeLicenseText,
|
|
577
583
|
changeLicenseDropdownText: f.changeLicenseDropdownText
|
|
578
584
|
}, null, 8, ["changeLicenseText", "changeLicenseDropdownText"])) : d("", !0),
|
|
579
|
-
|
|
580
|
-
y(
|
|
585
|
+
c("div", Nt, [
|
|
586
|
+
y(L, {
|
|
581
587
|
onClick: oe,
|
|
582
588
|
buttonText: "Zurück",
|
|
583
589
|
size: "large",
|
|
584
590
|
iconStart: "CaretLeft",
|
|
585
591
|
variant: "tertiary"
|
|
586
592
|
}),
|
|
587
|
-
y(
|
|
593
|
+
y(L, {
|
|
588
594
|
onClick: Fe,
|
|
589
595
|
buttonText: "Hinzufügen",
|
|
590
596
|
size: "large"
|
|
@@ -592,33 +598,33 @@ const vt = {
|
|
|
592
598
|
])
|
|
593
599
|
], 2)
|
|
594
600
|
])) : d("", !0),
|
|
595
|
-
ae.value ? (o(), u("div",
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
t[5] || (t[5] =
|
|
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)),
|
|
599
605
|
y(ne, {
|
|
600
606
|
class: "dpiv3_modalCrossout",
|
|
601
607
|
onClick: Te
|
|
602
608
|
})
|
|
603
609
|
]),
|
|
604
|
-
t[6] || (t[6] =
|
|
605
|
-
|
|
610
|
+
t[6] || (t[6] = c("div", { class: "dpiV3_modalContent" }, [
|
|
611
|
+
c("p", null, "Möchten Sie diese Dokumentation wirklich löschen?")
|
|
606
612
|
], -1)),
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
ie.value &&
|
|
611
|
-
ie.value === "" &&
|
|
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)
|
|
612
618
|
])
|
|
613
619
|
]),
|
|
614
|
-
|
|
615
|
-
y(
|
|
620
|
+
c("div", ea, [
|
|
621
|
+
y(L, {
|
|
616
622
|
onClick: Te,
|
|
617
623
|
buttonText: "Abbrechen",
|
|
618
624
|
size: "large",
|
|
619
625
|
variant: "tertiary"
|
|
620
626
|
}),
|
|
621
|
-
y(
|
|
627
|
+
y(L, {
|
|
622
628
|
onClick: Ze,
|
|
623
629
|
buttonText: "Löschen",
|
|
624
630
|
size: "large"
|
|
@@ -630,5 +636,5 @@ const vt = {
|
|
|
630
636
|
}
|
|
631
637
|
};
|
|
632
638
|
export {
|
|
633
|
-
|
|
639
|
+
Va as default
|
|
634
640
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as g, computed as k, resolveComponent as
|
|
1
|
+
import { ref as g, computed as k, resolveComponent as b, createElementBlock as f, openBlock as o, createElementVNode as m, createBlock as S, createCommentVNode as d, toDisplayString as P, createVNode as s, withCtx as V, unref as M, Fragment as Z, renderList as G } from "vue";
|
|
2
2
|
import { useI18n as Q } from "vue-i18n";
|
|
3
3
|
import { PhWarning as X } from "@phosphor-icons/vue";
|
|
4
4
|
import Y from "./CrossOutButton.vue.js";
|
|
@@ -22,7 +22,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
22
22
|
}, ge = {
|
|
23
23
|
key: 6,
|
|
24
24
|
class: "dpiV3_errormsgWrapper"
|
|
25
|
-
}, he = { class: "validation-messages" },
|
|
25
|
+
}, he = { class: "validation-messages" }, ye = { class: "dpiV3_actionButtonWrap" }, be = {
|
|
26
26
|
__name: "RapModal",
|
|
27
27
|
props: {
|
|
28
28
|
isVisible: {
|
|
@@ -36,7 +36,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
36
36
|
setup(u, { emit: O }) {
|
|
37
37
|
const { t: $ } = Q(), t = u;
|
|
38
38
|
let C = g();
|
|
39
|
-
const { formValues: h } = se(), R = O, A = g(null), p = g(null),
|
|
39
|
+
const { formValues: h } = se(), R = O, A = g(null), p = g(null), y = g(null), l = g(!1), L = {
|
|
40
40
|
findabilityHvd: "message.dataupload.datasets.rap.findability.title",
|
|
41
41
|
essentials: "message.dataupload.datasets.rap.essentials.title",
|
|
42
42
|
coverage: "message.dataupload.datasets.rap.coverage.title",
|
|
@@ -51,7 +51,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
51
51
|
var i, r;
|
|
52
52
|
const e = (r = (i = h.value) == null ? void 0 : i.Discoverability) == null ? void 0 : r.discoverabilityPage;
|
|
53
53
|
return !e || !Array.isArray(e) ? !1 : e.filter((v) => v.id && v.label).length > 0;
|
|
54
|
-
}), D = () => t.activeSection === "findabilityHvd" && !E.value ? (l.value = !0, !1) : (l.value = !1, !0), J = () => t.activeSection === "essentials" && p.value && !p.value.isValid ? (l.value = !0, !1) : (l.value = !1, !0), K = () => t.activeSection === "coverage" &&
|
|
54
|
+
}), D = () => t.activeSection === "findabilityHvd" && !E.value ? (l.value = !0, !1) : (l.value = !1, !0), J = () => t.activeSection === "essentials" && p.value && !p.value.isValid ? (l.value = !0, !1) : (l.value = !1, !0), K = () => t.activeSection === "coverage" && y.value && y.value.validateAllItems() ? (l.value = !0, !1) : (l.value = !1, !0), I = () => t.activeSection === "findabilityHvd" ? D() : t.activeSection === "essentials" ? J() : t.activeSection === "coverage" ? K() : (l.value = !1, !0), F = k(() => t.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : t.activeSection === "essentials" && p.value && !p.value.isValid ? p.value.getValidationErrorMessages() : t.activeSection === "coverage" && y.value && y.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), H = () => {
|
|
55
55
|
I() && T();
|
|
56
56
|
}, T = () => {
|
|
57
57
|
l.value = !1, R("close");
|
|
@@ -93,7 +93,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
93
93
|
}], e["dct:modified"] = [{ "@value": n.value.modified }], h.value.BasicInfos = e, R("close");
|
|
94
94
|
};
|
|
95
95
|
return (e, a) => {
|
|
96
|
-
const i =
|
|
96
|
+
const i = b("findability"), r = b("coverage"), v = b("distributionRap"), B = b("additionals"), U = b("interaction");
|
|
97
97
|
return o(), f("div", ce, [
|
|
98
98
|
m("div", re, [
|
|
99
99
|
m("div", de, [
|
|
@@ -139,7 +139,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
139
139
|
context: u.context,
|
|
140
140
|
newValues: M(C),
|
|
141
141
|
ref_key: "coverageModalRef",
|
|
142
|
-
ref:
|
|
142
|
+
ref: y
|
|
143
143
|
}, null, 8, ["context", "newValues"])
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
@@ -181,7 +181,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
181
181
|
class: "dpiV3_interactionWrap"
|
|
182
182
|
}, {
|
|
183
183
|
default: V(() => [
|
|
184
|
-
m("div",
|
|
184
|
+
m("div", ye, [
|
|
185
185
|
s(z, {
|
|
186
186
|
onClick: H,
|
|
187
187
|
buttonText: "Zurück",
|
|
@@ -202,7 +202,7 @@ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOu
|
|
|
202
202
|
]);
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
}, Ne = /* @__PURE__ */ le(
|
|
205
|
+
}, Ne = /* @__PURE__ */ le(be, [["__scopeId", "data-v-cc6239a1"]]);
|
|
206
206
|
export {
|
|
207
207
|
Ne as default
|
|
208
208
|
};
|