@piveau/dpi 0.1.0-beta.51 → 0.1.0-beta.58
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.
|
@@ -5,7 +5,7 @@ function rt(t) {
|
|
|
5
5
|
return t.replace(/[^a-z0-9\s]/gi, "").replace(/\s+/g, "-").toLowerCase();
|
|
6
6
|
}
|
|
7
7
|
async function At(t, g, l, b) {
|
|
8
|
-
var h, v, f, D, k, O, j, R,
|
|
8
|
+
var h, v, f, D, k, O, j, R, w, S, I, x, L, B, U, P, C, T, M, G, q, X, z, F, $, N, E, H, W, Y, _, J, K, Q, Z, m, V, tt, it, dt, et, at, nt, ot;
|
|
9
9
|
const u = g.specification.prefixes;
|
|
10
10
|
let p = [];
|
|
11
11
|
const c = Object.keys(t);
|
|
@@ -35,7 +35,7 @@ async function At(t, g, l, b) {
|
|
|
35
35
|
for (let i = 0; i < Object.keys(t.BasicInfos).length; i++)
|
|
36
36
|
Object.keys(t.BasicInfos)[i] === "dct:title" && (d.dataset["dct:title"] = t.BasicInfos["dct:title"][0] || "", y = rt(
|
|
37
37
|
t.BasicInfos["dct:title"][0]["@value"]
|
|
38
|
-
), lt === "true" && (y = t.BasicInfos.datasetID)), Object.keys(t.BasicInfos)[i] === "dct:description" && (d.dataset["dct:description"] = t.BasicInfos["dct:description"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:modified" && (d.dataset["dct:modified"] = t.BasicInfos["dct:modified"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:publisher" && (d.dataset["dct:publisher"] = t.BasicInfos["dct:publisher"][0] || "", d.dataset["dct:publisher"]["@type"] = "foaf:Agent"), Object.keys(t.BasicInfos)[i] === "dcat:contactPoint" && (d.dataset["dcat:contactPoint"] = t.BasicInfos["dcat:contactPoint"][0] || "", d.dataset["dcat:contactPoint"]["@type"] = "vcard:Organization"), d.dataset["@type"] = "dcat:Dataset", d.meta["dcat:catalog"] = l.permissions[0].rsname, d.meta["@type"] = "dcat:CatalogRecord";
|
|
38
|
+
), lt === "true" && (y = t.BasicInfos.datasetID)), Object.keys(t.BasicInfos)[i] === "dct:description" && (d.dataset["dct:description"] = t.BasicInfos["dct:description"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:modified" && (d.dataset["dct:modified"] = t.BasicInfos["dct:modified"][0] || "", d.dataset["dct:modified"]["@type"] = "http://www.w3.org/2001/XMLSchema#date"), Object.keys(t.BasicInfos)[i] === "dct:publisher" && (d.dataset["dct:publisher"] = t.BasicInfos["dct:publisher"][0] || "", d.dataset["dct:publisher"]["@type"] = "foaf:Agent"), Object.keys(t.BasicInfos)[i] === "dcat:contactPoint" && (d.dataset["dcat:contactPoint"] = t.BasicInfos["dcat:contactPoint"][0] || "", d.dataset["dcat:contactPoint"]["@type"] = "vcard:Organization"), d.dataset["@type"] = "dcat:Dataset", d.meta["dcat:catalog"] = l.permissions[0].rsname, d.meta["@type"] = "dcat:CatalogRecord";
|
|
39
39
|
}
|
|
40
40
|
if (c[o] === "Covering" && Object.keys(t.Covering).length > 1)
|
|
41
41
|
for (let i = 0; i < Object.keys(t.Covering).length; i++) {
|
|
@@ -65,9 +65,9 @@ async function At(t, g, l, b) {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
Object.keys(t.Covering)[i] === "dcatde:politicalGeocodingURI" && ((j = (O = t.Covering) == null ? void 0 : O["dcatde:politicalGeocodingURI"]) == null ? void 0 : j.uri) != null && (console.log("hallo?"), d.dataset["dcatde:politicalGeocodingURI"] = {
|
|
68
|
-
"@id": ((
|
|
68
|
+
"@id": ((w = (R = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : R[0]) == null ? void 0 : w.uri) || ""
|
|
69
69
|
}, d.dataset["dct:spatial"] === void 0 && (d.dataset["dct:spatial"] = []), d.dataset["dct:spatial"].push({
|
|
70
|
-
"@id": ((I = (
|
|
70
|
+
"@id": ((I = (S = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : S[0]) == null ? void 0 : I.uri) || ""
|
|
71
71
|
}));
|
|
72
72
|
}
|
|
73
73
|
if (c[o] === "DistributionSimple")
|
|
@@ -105,10 +105,10 @@ async function At(t, g, l, b) {
|
|
|
105
105
|
"@language": "de",
|
|
106
106
|
"@value": t.DistributionSimple["dcat:distribution"][i]["dct:license"].title
|
|
107
107
|
}));
|
|
108
|
-
const e = (
|
|
108
|
+
const e = (M = (T = (C = t.DistributionSimple) == null ? void 0 : C["dcat:distribution"]) == null ? void 0 : T[i]) == null ? void 0 : M["dct:format"];
|
|
109
109
|
e && (d.distribution[i]["dct:format"] = {
|
|
110
110
|
"@id": (e == null ? void 0 : e.uri) || ""
|
|
111
|
-
}), ((X = (q = (
|
|
111
|
+
}), ((X = (q = (G = t.DistributionSimple) == null ? void 0 : G["dcat:distribution"]) == null ? void 0 : q[i]) == null ? void 0 : X["dcatap:applicableLegislation"]) != null && (d.distribution[i]["dct:format"] = ($ = (F = (z = t.DistributionSimple) == null ? void 0 : z["dcat:distribution"]) == null ? void 0 : F[i]) == null ? void 0 : $["dcatap:applicableLegislation"]["@id"]);
|
|
112
112
|
const s = ((H = (E = (N = t.DistributionSimple) == null ? void 0 : N["dcat:distribution"]) == null ? void 0 : E[i]) == null ? void 0 : H.conformsToItems) || [];
|
|
113
113
|
if (s.length !== 0 && (d.distribution[i]["dct:conformsTo"] = st(
|
|
114
114
|
s
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getNode as K } from "@formkit/core";
|
|
2
2
|
import "@formkit/vue";
|
|
3
|
-
import { PhNumberCircleFive as
|
|
3
|
+
import { PhNumberCircleFive as Z, PhCheckCircle as G, PhLightbulb as J } from "@phosphor-icons/vue";
|
|
4
4
|
import { useWindowScroll as Q } from "@vueuse/core";
|
|
5
5
|
import X from "jquery";
|
|
6
|
-
import { has as I, isNil as
|
|
7
|
-
import { defineComponent as Y, resolveComponent as g, createElementBlock as r, openBlock as s, createCommentVNode as p, createElementVNode as o, createVNode as h, createBlock as
|
|
6
|
+
import { has as I, isNil as U } from "lodash-es";
|
|
7
|
+
import { defineComponent as Y, resolveComponent as g, createElementBlock as r, openBlock as s, createCommentVNode as p, createElementVNode as o, createVNode as h, createBlock as b, withModifiers as N, withCtx as j, Fragment as V, renderList as _, withDirectives as z, normalizeClass as y, toDisplayString as c, vShow as H, createTextVNode as M, ref as R, markRaw as x, getCurrentInstance as ee } from "vue";
|
|
8
8
|
import { useI18n as te } from "vue-i18n";
|
|
9
9
|
import { mapActions as B, mapGetters as W } from "vuex";
|
|
10
10
|
import ie from "../components/InputPageStep.vue.js";
|
|
@@ -24,13 +24,13 @@ import ve from "../HappyFlowComponents/img/Selected4.svg.js";
|
|
|
24
24
|
import me from "../HappyFlowComponents/img/Selected4_2.svg.js";
|
|
25
25
|
import ge from "../HappyFlowComponents/img/Selected5.svg.js";
|
|
26
26
|
import fe from "../HappyFlowComponents/img/Selected5_2.svg.js";
|
|
27
|
-
import { eventBus as
|
|
28
|
-
import
|
|
27
|
+
import { eventBus as be } from "../HappyFlowComponents/services/eventBus.js";
|
|
28
|
+
import Se from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
29
29
|
import Ce from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
30
30
|
import ye from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
31
31
|
import Ve from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
32
|
+
import _e from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
33
|
+
import ke from "./DistributionInputPage.vue.js";
|
|
34
34
|
import $e from "./OverviewPage.vue.js";
|
|
35
35
|
import Ie from "./PropertyChooser.vue.js";
|
|
36
36
|
/* empty css */
|
|
@@ -84,16 +84,16 @@ const Fe = Y({
|
|
|
84
84
|
},
|
|
85
85
|
components: {
|
|
86
86
|
InputPageStep: ie,
|
|
87
|
-
DistributionInputPage:
|
|
87
|
+
DistributionInputPage: ke,
|
|
88
88
|
PropertyChooser: Ie,
|
|
89
89
|
Navigation: se,
|
|
90
90
|
LogoV3: ye,
|
|
91
|
-
ButtonV3:
|
|
92
|
-
TextButtonSmall:
|
|
91
|
+
ButtonV3: Se,
|
|
92
|
+
TextButtonSmall: _e,
|
|
93
93
|
Illustration: Ce,
|
|
94
|
-
PhLightbulb:
|
|
95
|
-
PhCheckCircle:
|
|
96
|
-
PhNumberCircleFive:
|
|
94
|
+
PhLightbulb: J,
|
|
95
|
+
PhCheckCircle: G,
|
|
96
|
+
PhNumberCircleFive: Z,
|
|
97
97
|
ModalSimpleV3: Ve
|
|
98
98
|
},
|
|
99
99
|
computed: {
|
|
@@ -116,7 +116,7 @@ const Fe = Y({
|
|
|
116
116
|
getFirstTitleFromForm() {
|
|
117
117
|
try {
|
|
118
118
|
const e = this.formValues[this.getTitleStep];
|
|
119
|
-
return I(e, "dct:title") && e["dct:title"].length > 0 && I(e["dct:title"][0], "@value") && !
|
|
119
|
+
return I(e, "dct:title") && e["dct:title"].length > 0 && I(e["dct:title"][0], "@value") && !U(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
120
120
|
} catch {
|
|
121
121
|
}
|
|
122
122
|
},
|
|
@@ -146,7 +146,7 @@ const Fe = Y({
|
|
|
146
146
|
((i = (t = (e = this.formValues[this.activeStep]) == null ? void 0 : e[this.activeSubStep]) == null ? void 0 : t[0]) == null ? void 0 : i.isValid) === !0 || ((n = this.formValues[this.activeStep][this.activeSubStep]) == null ? void 0 : n.isValid) === !0 ? this.navTrigger("next") : ((a = this.formValues[this.activeStep][this.activeSubStep]) != null && a[0] ? this.formValues[this.activeStep][this.activeSubStep][0].isValid = !1 : this.formValues[this.activeStep][this.activeSubStep].isValid = !1, this.handleDistributionsValidation(this.activeSubStep));
|
|
147
147
|
},
|
|
148
148
|
handleDistributionsValidation(e) {
|
|
149
|
-
|
|
149
|
+
be.emit("nextClicked", e);
|
|
150
150
|
},
|
|
151
151
|
gotToHome() {
|
|
152
152
|
window.location.href = this.$router.resolve({
|
|
@@ -237,7 +237,11 @@ const Fe = Y({
|
|
|
237
237
|
);
|
|
238
238
|
}).catch((a) => {
|
|
239
239
|
console.error("Fehler beim Senden der Daten:", a);
|
|
240
|
-
})
|
|
240
|
+
}), setTimeout(() => {
|
|
241
|
+
window.location.href = this.$router.resolve({
|
|
242
|
+
name: "DPI-Home-HappyFlow"
|
|
243
|
+
}).href;
|
|
244
|
+
}, 1e3);
|
|
241
245
|
}
|
|
242
246
|
} catch (i) {
|
|
243
247
|
console.log(i);
|
|
@@ -246,7 +250,14 @@ const Fe = Y({
|
|
|
246
250
|
async dispatchDataToDPI(e, t, i, n) {
|
|
247
251
|
var a, v;
|
|
248
252
|
try {
|
|
249
|
-
|
|
253
|
+
if (n === "publish") {
|
|
254
|
+
if (i.token = this.getUserData.rtpToken, localStorage.getItem(localStorage.getItem("dpi_editmode"))) {
|
|
255
|
+
debugger;
|
|
256
|
+
i.url = `${this.$env.api.hubUrl}drafts/datasets/publish/${i.id}?catalogue=${i.catalog}`;
|
|
257
|
+
} else i.url = `${this.$env.api.hubUrl}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`;
|
|
258
|
+
await this.$store.dispatch(t, i);
|
|
259
|
+
}
|
|
260
|
+
n === "draft" && await this.$store.dispatch(t, i), n === "depublish" && await this.$store.dispatch("auth/putDatasetToDraft", {
|
|
250
261
|
id: i.id,
|
|
251
262
|
catalog: i.catalog,
|
|
252
263
|
title: i.title,
|
|
@@ -297,7 +308,7 @@ const Fe = Y({
|
|
|
297
308
|
},
|
|
298
309
|
createDatasetID() {
|
|
299
310
|
const e = this.formValues[this.getTitleStep];
|
|
300
|
-
!I(e, "datasetID") ||
|
|
311
|
+
!I(e, "datasetID") || U(e.datasetID) ? this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle : (this.createIDFromTitle.startsWith(e.datasetID) || e.datasetID.startsWith(this.createIDFromTitle)) && (this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle);
|
|
301
312
|
},
|
|
302
313
|
generateandTranslateSchema(e) {
|
|
303
314
|
for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
|
|
@@ -352,7 +363,7 @@ const Fe = Y({
|
|
|
352
363
|
visitedSteps: v,
|
|
353
364
|
previousStep: C,
|
|
354
365
|
nextStep: m,
|
|
355
|
-
stepPlugin:
|
|
366
|
+
stepPlugin: k,
|
|
356
367
|
goToNextStep: T,
|
|
357
368
|
goToPreviousStep: $
|
|
358
369
|
} = ae(), { formValues: P } = oe(), { t: D, te: w } = te(), F = R(!1), { translateSchema: A, createSchema: L, getSchema: O } = we({
|
|
@@ -361,16 +372,16 @@ const Fe = Y({
|
|
|
361
372
|
}), l = () => {
|
|
362
373
|
let { x: f, y: q } = Q({ behavior: "smooth" });
|
|
363
374
|
q.value = 0;
|
|
364
|
-
}, u = (f) => (i[f].errorCount > 0 || i[f].blockingCount > 0) && v.value.includes(f), d = x({ OverviewPage: $e }),
|
|
365
|
-
return t.value && (n.value = "ReviewAndPublish",
|
|
375
|
+
}, u = (f) => (i[f].errorCount > 0 || i[f].blockingCount > 0) && v.value.includes(f), d = x({ OverviewPage: $e }), S = R("");
|
|
376
|
+
return t.value && (n.value = "ReviewAndPublish", S.value = "reviewAndPublishPage"), {
|
|
366
377
|
steps: i,
|
|
367
378
|
visitedSteps: v,
|
|
368
379
|
activeStep: n,
|
|
369
|
-
activeSubStep:
|
|
380
|
+
activeSubStep: S,
|
|
370
381
|
subSteps: a,
|
|
371
382
|
previousStep: C,
|
|
372
383
|
nextStep: m,
|
|
373
|
-
stepPlugin:
|
|
384
|
+
stepPlugin: k,
|
|
374
385
|
checkStepValidity: u,
|
|
375
386
|
goToNextStep: T,
|
|
376
387
|
goToPreviousStep: $,
|
|
@@ -389,16 +400,16 @@ const Fe = Y({
|
|
|
389
400
|
key: 0,
|
|
390
401
|
ref: "fkInputContainer",
|
|
391
402
|
class: "inputContainer"
|
|
392
|
-
}, Oe = { class: "formContainer formkit" }, Ee = { key: 0 },
|
|
403
|
+
}, Oe = { class: "formContainer formkit" }, Ee = { key: 0 }, Ue = { class: "dpiV3_stepper draftStepper" }, je = {
|
|
393
404
|
key: 0,
|
|
394
405
|
class: "draftCTA"
|
|
395
|
-
},
|
|
406
|
+
}, ze = {
|
|
396
407
|
key: 1,
|
|
397
408
|
class: "draftCTA"
|
|
398
409
|
}, He = { key: 1 }, Me = {
|
|
399
410
|
key: 0,
|
|
400
411
|
class: "dpiV3_stepper"
|
|
401
|
-
}, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"],
|
|
412
|
+
}, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"], Ze = ["textContent"], Ge = { style: { "vertical-align": "middle" } }, Je = { class: "dpiV3_subStepWrapper" }, Qe = {
|
|
402
413
|
key: 0,
|
|
403
414
|
class: "dpiV3_seperatorHorizontalStepper"
|
|
404
415
|
}, Xe = {
|
|
@@ -428,21 +439,18 @@ const Fe = Y({
|
|
|
428
439
|
}, mt = {
|
|
429
440
|
key: 1,
|
|
430
441
|
class: "dpiV3_CTA_RaP"
|
|
431
|
-
}, gt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" },
|
|
442
|
+
}, gt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" }, bt = {
|
|
432
443
|
key: 3,
|
|
433
444
|
class: "dpiV3_Content_InputPage"
|
|
434
|
-
},
|
|
445
|
+
}, St = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, yt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" }, _t = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, kt = { class: "dpiV3_hvd_frame3846" }, $t = { class: "dpiV3_copy_large_semi_bold" }, It = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Pt = { class: "dpiV3_copy_large_semi_bold" }, Dt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, wt = { class: "dpiV3_hvd_frame3846" }, Ft = { class: "dpiV3_copy_large_semi_bold" }, At = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Lt = { class: "dpiV3_hvd_frame3846" }, Ot = { class: "dpiV3_copy_large_semi_bold" }, Et = { class: "dpiV3_copy_large_regular" }, Ut = {
|
|
435
446
|
key: 5,
|
|
436
447
|
class: "p-1"
|
|
437
448
|
};
|
|
438
|
-
function
|
|
439
|
-
const C = g("TextButtonSmall"), m = g("ButtonV3"),
|
|
449
|
+
function jt(e, t, i, n, a, v) {
|
|
450
|
+
const C = g("TextButtonSmall"), m = g("ButtonV3"), k = g("LogoV3"), T = g("PhNumberCircleFive"), $ = g("PhCheckCircle"), P = g("Illustration"), D = g("FormKitSchema"), w = g("PhLightbulb"), F = g("DistributionInputPage"), A = g("InputPageStep"), L = g("FormKit"), O = g("ModalSimpleV3");
|
|
440
451
|
return s(), r("div", Ae, [
|
|
441
452
|
e.isInput ? (s(), r("div", Le, [
|
|
442
453
|
o("div", Oe, [
|
|
443
|
-
o("details", null, [
|
|
444
|
-
o("pre", null, c(JSON.stringify(e.formValues, null, 2)), 1)
|
|
445
|
-
]),
|
|
446
454
|
h(L, {
|
|
447
455
|
id: "dpiForm",
|
|
448
456
|
modelValue: e.formValues,
|
|
@@ -454,9 +462,9 @@ function zt(e, t, i, n, a, v) {
|
|
|
454
462
|
onSubmit: t[12] || (t[12] = N(() => {
|
|
455
463
|
}, ["prevent"]))
|
|
456
464
|
}, {
|
|
457
|
-
default:
|
|
465
|
+
default: j(() => [
|
|
458
466
|
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div", Ee, [
|
|
459
|
-
o("div",
|
|
467
|
+
o("div", Ue, [
|
|
460
468
|
h(C, {
|
|
461
469
|
"button-text": "Übersicht",
|
|
462
470
|
"icon-start": "CaretLeft",
|
|
@@ -464,7 +472,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
464
472
|
onClick: e.gotToHome
|
|
465
473
|
}, null, 8, ["onClick"]),
|
|
466
474
|
o("div", null, [
|
|
467
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), r("div",
|
|
475
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), r("div", je, [
|
|
468
476
|
h(m, {
|
|
469
477
|
"button-text": "Veröffentlichung aufheben",
|
|
470
478
|
size: "large",
|
|
@@ -477,7 +485,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
477
485
|
"icon-end": "Out",
|
|
478
486
|
onClick: t[1] || (t[1] = (l) => e.handlePublishedRoute())
|
|
479
487
|
})
|
|
480
|
-
])) : (s(), r("div",
|
|
488
|
+
])) : (s(), r("div", ze, [
|
|
481
489
|
h(m, {
|
|
482
490
|
"button-text": "Veröffentlichen",
|
|
483
491
|
size: "large",
|
|
@@ -488,9 +496,9 @@ function zt(e, t, i, n, a, v) {
|
|
|
488
496
|
])
|
|
489
497
|
])) : (s(), r("div", He, [
|
|
490
498
|
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), r("div", Me, [
|
|
491
|
-
h(
|
|
499
|
+
h(k),
|
|
492
500
|
o("ul", Re, [
|
|
493
|
-
(s(!0), r(V, null,
|
|
501
|
+
(s(!0), r(V, null, _(e.steps, (l, u, d) => z((s(), r("li", {
|
|
494
502
|
key: l,
|
|
495
503
|
class: y(["dpiV3_step", {
|
|
496
504
|
dpiV3_activeItem: e.activeStep === u,
|
|
@@ -514,13 +522,13 @@ function zt(e, t, i, n, a, v) {
|
|
|
514
522
|
src: e.selectedImages[d - 1],
|
|
515
523
|
alt: "Selected Icon"
|
|
516
524
|
}, null, 8, qe)) : p("", !0),
|
|
517
|
-
e.activeStep === u && d === 5 ? (s(),
|
|
525
|
+
e.activeStep === u && d === 5 ? (s(), b(T, {
|
|
518
526
|
key: 1,
|
|
519
527
|
size: 28,
|
|
520
528
|
color: "#009FE3",
|
|
521
529
|
weight: "fill"
|
|
522
530
|
})) : p("", !0),
|
|
523
|
-
d < e.stepCounter ? (s(),
|
|
531
|
+
d < e.stepCounter ? (s(), b($, {
|
|
524
532
|
key: 2,
|
|
525
533
|
size: 28,
|
|
526
534
|
color: "#70CC44",
|
|
@@ -536,18 +544,18 @@ function zt(e, t, i, n, a, v) {
|
|
|
536
544
|
key: 4,
|
|
537
545
|
class: "dpiV3_step--errors",
|
|
538
546
|
textContent: c(l.errorCount + l.blockingCount)
|
|
539
|
-
}, null, 8,
|
|
540
|
-
o("span",
|
|
547
|
+
}, null, 8, Ze)) : p("", !0),
|
|
548
|
+
o("span", Ge, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
|
|
541
549
|
], 2),
|
|
542
|
-
o("div",
|
|
550
|
+
o("div", Je, [
|
|
543
551
|
d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), r("div", Qe)) : p("", !0),
|
|
544
552
|
d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), r("div", Xe)) : p("", !0),
|
|
545
553
|
e.activeStep === u ? (s(), r("div", Ye, [
|
|
546
|
-
e.stepCounter < 5 ? (s(!0), r(V, { key: 0 },
|
|
554
|
+
e.stepCounter < 5 ? (s(!0), r(V, { key: 0 }, _(Object.keys(
|
|
547
555
|
e.subSteps[d]
|
|
548
|
-
), (
|
|
556
|
+
), (S, f) => (s(), r("div", Ne, [
|
|
549
557
|
o("div", xe, [
|
|
550
|
-
e.substepCounter > f ? (s(),
|
|
558
|
+
e.substepCounter > f ? (s(), b($, {
|
|
551
559
|
key: 0,
|
|
552
560
|
size: 20,
|
|
553
561
|
color: "#009FE3"
|
|
@@ -566,11 +574,11 @@ function zt(e, t, i, n, a, v) {
|
|
|
566
574
|
o("div", tt, [
|
|
567
575
|
o("span", {
|
|
568
576
|
class: y(["large-regular dpiV3_substepText", {
|
|
569
|
-
dpiV3_activeStepDesc:
|
|
577
|
+
dpiV3_activeStepDesc: S === e.activeSubStep,
|
|
570
578
|
formerlyVisitedStep: e.substepCounter > f
|
|
571
579
|
}])
|
|
572
580
|
}, c(e.$t(
|
|
573
|
-
`message.dataupload.steps.${
|
|
581
|
+
`message.dataupload.steps.${S.replace(
|
|
574
582
|
/_\d+$/,
|
|
575
583
|
""
|
|
576
584
|
)}`
|
|
@@ -589,7 +597,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
589
597
|
])
|
|
590
598
|
])) : (s(), r("div", st, [
|
|
591
599
|
o("div", ot, [
|
|
592
|
-
h(
|
|
600
|
+
h(k)
|
|
593
601
|
]),
|
|
594
602
|
o("div", at, [
|
|
595
603
|
h(P, { "illustration-name": "start" })
|
|
@@ -597,7 +605,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
597
605
|
]))
|
|
598
606
|
])),
|
|
599
607
|
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), r("ul", rt, [
|
|
600
|
-
(s(!0), r(V, null,
|
|
608
|
+
(s(!0), r(V, null, _(e.steps, (l, u, d) => (s(), r("li", {
|
|
601
609
|
key: l,
|
|
602
610
|
class: y(["step", {
|
|
603
611
|
activeItem: e.activeStep === u,
|
|
@@ -606,7 +614,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
606
614
|
}]),
|
|
607
615
|
"data-step-active": e.activeStep === u,
|
|
608
616
|
"data-step-valid": l.valid && l.errorCount === 0,
|
|
609
|
-
onClick: (
|
|
617
|
+
onClick: (S) => {
|
|
610
618
|
e.activeStep = u, e.update(), e.scrollToTop();
|
|
611
619
|
}
|
|
612
620
|
}, [
|
|
@@ -625,19 +633,19 @@ function zt(e, t, i, n, a, v) {
|
|
|
625
633
|
o("div", { class: "circle stepCircle" }, null, -1)
|
|
626
634
|
]))) : p("", !0)
|
|
627
635
|
])) : p("", !0),
|
|
628
|
-
(s(!0), r(V, null,
|
|
636
|
+
(s(!0), r(V, null, _(e.getNavSteps(
|
|
629
637
|
e.$env.content.dataProviderInterface.specification
|
|
630
|
-
)[e.property], (l, u) => (s(),
|
|
638
|
+
)[e.property], (l, u) => (s(), b(A, {
|
|
631
639
|
key: u,
|
|
632
640
|
name: l
|
|
633
641
|
}, {
|
|
634
|
-
default:
|
|
635
|
-
(s(!0), r(V, null,
|
|
642
|
+
default: j(() => [
|
|
643
|
+
(s(!0), r(V, null, _(Object.keys(
|
|
636
644
|
e.getSchema(e.property).value[l]
|
|
637
|
-
).length, (d,
|
|
638
|
-
l !== "Distributions" && l !== "Additionals" ? (s(),
|
|
645
|
+
).length, (d, S) => z((s(), r("div", ht, [
|
|
646
|
+
l !== "Distributions" && l !== "Additionals" ? (s(), b(D, {
|
|
639
647
|
key: 0,
|
|
640
|
-
schema: e.getSchema(e.property).value[l][
|
|
648
|
+
schema: e.getSchema(e.property).value[l][S],
|
|
641
649
|
library: e.library,
|
|
642
650
|
"final-values": e.formValues,
|
|
643
651
|
onHandleNav: () => {
|
|
@@ -647,7 +655,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
647
655
|
[
|
|
648
656
|
H,
|
|
649
657
|
Object.values(
|
|
650
|
-
e.getSchema(e.property).value[l][
|
|
658
|
+
e.getSchema(e.property).value[l][S]
|
|
651
659
|
)[0] === e.activeSubStep.replace(/_\d+$/, "") || l === "Landing"
|
|
652
660
|
]
|
|
653
661
|
])), 256)),
|
|
@@ -668,13 +676,13 @@ function zt(e, t, i, n, a, v) {
|
|
|
668
676
|
])) : p("", !0),
|
|
669
677
|
e.activeStep === "ReviewAndPublish" ? (s(), r("div", mt, [
|
|
670
678
|
o("div", gt, [
|
|
671
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(),
|
|
679
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), b(m, {
|
|
672
680
|
key: 0,
|
|
673
681
|
"button-text": "Veröffentlichung aufheben",
|
|
674
682
|
size: "large",
|
|
675
683
|
variant: "secondary",
|
|
676
684
|
onClick: t[5] || (t[5] = (d) => e.navTrigger("depublish"))
|
|
677
|
-
})) : (s(),
|
|
685
|
+
})) : (s(), b(m, {
|
|
678
686
|
key: 1,
|
|
679
687
|
"button-text": "Als Entwurf speichern",
|
|
680
688
|
size: "large",
|
|
@@ -701,7 +709,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
701
709
|
onClick: t[8] || (t[8] = (d) => e.activeSimpleModal = !0)
|
|
702
710
|
}),
|
|
703
711
|
o("div", ft, [
|
|
704
|
-
e.activeStep !== "Landing" ? (s(),
|
|
712
|
+
e.activeStep !== "Landing" ? (s(), b(m, {
|
|
705
713
|
key: 0,
|
|
706
714
|
"icon-start": "CaretLeft",
|
|
707
715
|
"button-text": "Zurück",
|
|
@@ -717,8 +725,8 @@ function zt(e, t, i, n, a, v) {
|
|
|
717
725
|
})
|
|
718
726
|
])
|
|
719
727
|
], 2)) : p("", !0),
|
|
720
|
-
e.activeSubStep.includes("hvdPage") ? (s(), r("div",
|
|
721
|
-
o("div",
|
|
728
|
+
e.activeSubStep.includes("hvdPage") ? (s(), r("div", bt, [
|
|
729
|
+
o("div", St, [
|
|
722
730
|
o("div", Ct, [
|
|
723
731
|
h(w, {
|
|
724
732
|
size: 32,
|
|
@@ -727,8 +735,8 @@ function zt(e, t, i, n, a, v) {
|
|
|
727
735
|
o("div", yt, c(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
|
|
728
736
|
]),
|
|
729
737
|
o("div", Vt, [
|
|
730
|
-
o("div",
|
|
731
|
-
o("div",
|
|
738
|
+
o("div", _t, c(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
|
|
739
|
+
o("div", kt, [
|
|
732
740
|
o("div", $t, " 1. " + c(e.$t(
|
|
733
741
|
"message.dataupload.datasets.hvdPage.tips-question-1"
|
|
734
742
|
)), 1),
|
|
@@ -774,12 +782,12 @@ function zt(e, t, i, n, a, v) {
|
|
|
774
782
|
])
|
|
775
783
|
])
|
|
776
784
|
])) : p("", !0),
|
|
777
|
-
l === "Distributions" ? (s(),
|
|
785
|
+
l === "Distributions" ? (s(), b(F, {
|
|
778
786
|
key: 4,
|
|
779
787
|
schema: e.getSchema("distributions"),
|
|
780
788
|
values: e.formValues
|
|
781
789
|
}, null, 8, ["schema", "values"])) : p("", !0),
|
|
782
|
-
l === "Mandatory" ? (s(), r("p",
|
|
790
|
+
l === "Mandatory" ? (s(), r("p", Ut, [
|
|
783
791
|
t[17] || (t[17] = o("b", null, "*", -1)),
|
|
784
792
|
M(" " + c(e.$t("message.dataupload.info.mandatory")), 1)
|
|
785
793
|
])) : p("", !0)
|
|
@@ -789,7 +797,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
789
797
|
]),
|
|
790
798
|
_: 1
|
|
791
799
|
}, 8, ["modelValue", "plugins"]),
|
|
792
|
-
e.activeSimpleModal ? (s(),
|
|
800
|
+
e.activeSimpleModal ? (s(), b(O, {
|
|
793
801
|
key: 0,
|
|
794
802
|
buttons: e.modalSimpleConf.button,
|
|
795
803
|
"header-text": e.modalSimpleConf.header,
|
|
@@ -802,7 +810,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
802
810
|
], 512)) : p("", !0)
|
|
803
811
|
]);
|
|
804
812
|
}
|
|
805
|
-
const Ii = /* @__PURE__ */ Te(Fe, [["render",
|
|
813
|
+
const Ii = /* @__PURE__ */ Te(Fe, [["render", jt]]);
|
|
806
814
|
export {
|
|
807
815
|
Ii as default
|
|
808
816
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@piveau/dpi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.58",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"*.css",
|
|
@@ -36,6 +36,16 @@
|
|
|
36
36
|
"node": ">=18.18.0",
|
|
37
37
|
"pnpm": ">=10.0.0"
|
|
38
38
|
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"dev": "histoire dev",
|
|
41
|
+
"build": "vite build",
|
|
42
|
+
"preview": "vite preview",
|
|
43
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
44
|
+
"story:dev": "histoire dev",
|
|
45
|
+
"story:build": "histoire build",
|
|
46
|
+
"story:preview": "histoire preview",
|
|
47
|
+
"prepublishOnly": "vite build"
|
|
48
|
+
},
|
|
39
49
|
"devDependencies": {
|
|
40
50
|
"@antfu/eslint-config": "^4.19.0",
|
|
41
51
|
"@formkit/core": "^1.6.9",
|
|
@@ -83,19 +93,15 @@
|
|
|
83
93
|
"name": "node",
|
|
84
94
|
"onFail": "error"
|
|
85
95
|
},
|
|
86
|
-
"packageManager":
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
97
|
-
"story:dev": "histoire dev",
|
|
98
|
-
"story:build": "histoire build",
|
|
99
|
-
"story:preview": "histoire preview"
|
|
96
|
+
"packageManager": [
|
|
97
|
+
{
|
|
98
|
+
"name": "pnpm",
|
|
99
|
+
"version": ">=10.13.1",
|
|
100
|
+
"onFail": "error"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "npm"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
100
106
|
}
|
|
101
|
-
}
|
|
107
|
+
}
|