@piveau/dpi 0.1.0-beta.7 → 0.1.0-beta.8
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.
|
@@ -4,40 +4,41 @@ import { PhNumberCircleFive as Z, PhCheckCircle as G, PhLightbulb as X } from "@
|
|
|
4
4
|
import { useWindowScroll as Y } from "@vueuse/core";
|
|
5
5
|
import J from "jquery";
|
|
6
6
|
import { has as _, isNil as F } from "lodash-es";
|
|
7
|
-
import { defineComponent as N, resolveComponent as
|
|
8
|
-
import { useI18n as
|
|
7
|
+
import { defineComponent as N, resolveComponent as g, createElementBlock as o, openBlock as s, createCommentVNode as n, createElementVNode as a, createVNode as h, createBlock as S, withModifiers as Q, withCtx as U, Fragment as V, renderList as k, withDirectives as O, normalizeClass as C, toDisplayString as u, vShow as z, createTextVNode as M, ref as j, markRaw as x, getCurrentInstance as ee } from "vue";
|
|
8
|
+
import { useI18n as te } from "vue-i18n";
|
|
9
9
|
import { mapActions as H, mapGetters as W } from "vuex";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useFormValues as
|
|
13
|
-
import { useDpiStepper as
|
|
10
|
+
import ie from "../components/InputPageStep.vue.js";
|
|
11
|
+
import se from "../components/Navigation.vue.js";
|
|
12
|
+
import { useFormValues as ae } from "../composables/useDpiFormValues.js";
|
|
13
|
+
import { useDpiStepper as oe } from "../composables/useDpiStepper.js";
|
|
14
14
|
import q from "../config/dcatapdeHappyFlow/converter.js";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { eventBus as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
15
|
+
import re from "../HappyFlowComponents/img/Circle.svg.js";
|
|
16
|
+
import le from "../HappyFlowComponents/img/CircleFill.svg.js";
|
|
17
|
+
import de from "../HappyFlowComponents/img/Selected1.svg.js";
|
|
18
|
+
import ne from "../HappyFlowComponents/img/Selected1_2.svg.js";
|
|
19
|
+
import ce from "../HappyFlowComponents/img/Selected2.svg.js";
|
|
20
|
+
import pe from "../HappyFlowComponents/img/Selected2_2.svg.js";
|
|
21
|
+
import ue from "../HappyFlowComponents/img/Selected3.svg.js";
|
|
22
|
+
import he from "../HappyFlowComponents/img/Selected3_2.svg.js";
|
|
23
|
+
import me from "../HappyFlowComponents/img/Selected4.svg.js";
|
|
24
|
+
import ge from "../HappyFlowComponents/img/Selected4_2.svg.js";
|
|
25
|
+
import fe from "../HappyFlowComponents/img/Selected5.svg.js";
|
|
26
|
+
import ve from "../HappyFlowComponents/img/Selected5_2.svg.js";
|
|
27
|
+
import { eventBus as be } from "../HappyFlowComponents/services/eventBus.js";
|
|
28
|
+
import Se from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
29
|
+
import ye from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
30
|
+
import Ce from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
31
|
+
import Ve from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
32
|
+
import ke from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
33
|
+
import De from "./DistributionInputPage.vue.js";
|
|
34
|
+
import Ie from "./OverviewPage.vue.js";
|
|
35
|
+
import _e from "./PropertyChooser.vue.js";
|
|
36
36
|
/* empty css */
|
|
37
37
|
/* empty css */
|
|
38
38
|
/* empty css */
|
|
39
|
-
import
|
|
40
|
-
import { useDpiContext as
|
|
39
|
+
import Te from "../../_virtual/_plugin-vue_export-helper.js";
|
|
40
|
+
import { useDpiContext as Le } from "../composables/useDpiContext.js";
|
|
41
|
+
import { useEditModeInfo as Pe } from "../composables/useDpiEditMode.js";
|
|
41
42
|
import { useFormSchema as we } from "../composables/useFormSchema.js";
|
|
42
43
|
const Ae = N({
|
|
43
44
|
props: {
|
|
@@ -52,16 +53,16 @@ const Ae = N({
|
|
|
52
53
|
},
|
|
53
54
|
data() {
|
|
54
55
|
return {
|
|
55
|
-
circles: [
|
|
56
|
-
images: [
|
|
56
|
+
circles: [re, le],
|
|
57
|
+
images: [de, ce, ue, me, fe],
|
|
57
58
|
selectedImages: [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
ne,
|
|
60
|
+
pe,
|
|
61
|
+
he,
|
|
62
|
+
ge,
|
|
63
|
+
ve
|
|
63
64
|
],
|
|
64
|
-
instance:
|
|
65
|
+
instance: ee(),
|
|
65
66
|
heightActiveSec: "10vh",
|
|
66
67
|
// formValues: {},
|
|
67
68
|
offsetTopStepper: "60px",
|
|
@@ -83,18 +84,18 @@ const Ae = N({
|
|
|
83
84
|
};
|
|
84
85
|
},
|
|
85
86
|
components: {
|
|
86
|
-
InputPageStep:
|
|
87
|
-
DistributionInputPage:
|
|
88
|
-
PropertyChooser:
|
|
89
|
-
Navigation:
|
|
90
|
-
LogoV3:
|
|
91
|
-
ButtonV3:
|
|
92
|
-
TextButtonSmall:
|
|
93
|
-
Illustration:
|
|
87
|
+
InputPageStep: ie,
|
|
88
|
+
DistributionInputPage: De,
|
|
89
|
+
PropertyChooser: _e,
|
|
90
|
+
Navigation: se,
|
|
91
|
+
LogoV3: Ce,
|
|
92
|
+
ButtonV3: Se,
|
|
93
|
+
TextButtonSmall: ke,
|
|
94
|
+
Illustration: ye,
|
|
94
95
|
PhLightbulb: X,
|
|
95
96
|
PhCheckCircle: G,
|
|
96
97
|
PhNumberCircleFive: Z,
|
|
97
|
-
ModalSimpleV3:
|
|
98
|
+
ModalSimpleV3: Ve
|
|
98
99
|
},
|
|
99
100
|
computed: {
|
|
100
101
|
...W("auth", [
|
|
@@ -548,7 +549,7 @@ const Ae = N({
|
|
|
548
549
|
return e === this.substepCounter ? this.circles[1] : this.circles[0];
|
|
549
550
|
},
|
|
550
551
|
handleDistributionsValidation(e) {
|
|
551
|
-
|
|
552
|
+
be.emit("nextClicked", e);
|
|
552
553
|
},
|
|
553
554
|
gotToHome() {
|
|
554
555
|
window.location.href = this.$router.resolve({
|
|
@@ -558,13 +559,13 @@ const Ae = N({
|
|
|
558
559
|
navTrigger(e, t) {
|
|
559
560
|
try {
|
|
560
561
|
let i = [];
|
|
561
|
-
if (Object.keys(this.steps).forEach((
|
|
562
|
-
let
|
|
563
|
-
step:
|
|
564
|
-
substeps: this.subSteps[
|
|
565
|
-
substepCount: Object.keys(this.subSteps[
|
|
562
|
+
if (Object.keys(this.steps).forEach((d, p) => {
|
|
563
|
+
let b = {
|
|
564
|
+
step: d,
|
|
565
|
+
substeps: this.subSteps[p],
|
|
566
|
+
substepCount: Object.keys(this.subSteps[p]).length
|
|
566
567
|
};
|
|
567
|
-
i.push(
|
|
568
|
+
i.push(b);
|
|
568
569
|
}), e === "next" && (i[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === i[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = i[this.stepCounter].step, this.activeSubStep = Object.keys(
|
|
569
570
|
i[this.stepCounter].substeps
|
|
570
571
|
)[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
|
|
@@ -578,21 +579,21 @@ const Ae = N({
|
|
|
578
579
|
)[this.substepCounter]) : (this.substepCounter = Object.keys(i[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
|
|
579
580
|
i[this.stepCounter].substeps
|
|
580
581
|
)[this.substepCounter], this.activeStep = i[this.stepCounter].step)), e === "publish") {
|
|
581
|
-
let
|
|
582
|
+
let d = "auth/createDataset";
|
|
582
583
|
q(
|
|
583
584
|
this.formValues,
|
|
584
585
|
this.dpiContext,
|
|
585
586
|
this.getUserData,
|
|
586
587
|
this.$env.api.hubUrl
|
|
587
|
-
).then((
|
|
588
|
+
).then((p) => {
|
|
588
589
|
this.dispatchDataToDPI(
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
590
|
+
p.body,
|
|
591
|
+
d,
|
|
592
|
+
p.actionParams,
|
|
592
593
|
"publish"
|
|
593
594
|
);
|
|
594
|
-
}).catch((
|
|
595
|
-
console.error("Fehler beim Senden der Daten:",
|
|
595
|
+
}).catch((p) => {
|
|
596
|
+
console.error("Fehler beim Senden der Daten:", p);
|
|
596
597
|
}), setTimeout(() => {
|
|
597
598
|
window.location.href = this.$router.resolve({
|
|
598
599
|
name: "DPI-Home-HappyFlow"
|
|
@@ -600,21 +601,21 @@ const Ae = N({
|
|
|
600
601
|
}, 1e3);
|
|
601
602
|
}
|
|
602
603
|
if (e === "draft") {
|
|
603
|
-
let
|
|
604
|
+
let d = "auth/createUserDraft";
|
|
604
605
|
q(
|
|
605
606
|
this.formValues,
|
|
606
607
|
this.dpiContext,
|
|
607
608
|
this.getUserData,
|
|
608
609
|
this.$env.api.hubUrl
|
|
609
|
-
).then((
|
|
610
|
+
).then((p) => {
|
|
610
611
|
this.dispatchDataToDPI(
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
612
|
+
p.body,
|
|
613
|
+
d,
|
|
614
|
+
p.actionParams,
|
|
614
615
|
"draft"
|
|
615
616
|
);
|
|
616
|
-
}).catch((
|
|
617
|
-
console.error("Fehler beim Senden der Daten:",
|
|
617
|
+
}).catch((p) => {
|
|
618
|
+
console.error("Fehler beim Senden der Daten:", p);
|
|
618
619
|
}), setTimeout(() => {
|
|
619
620
|
window.location.href = this.$router.resolve({
|
|
620
621
|
name: "DPI-Home-HappyFlow"
|
|
@@ -625,13 +626,13 @@ const Ae = N({
|
|
|
625
626
|
console.log(i);
|
|
626
627
|
}
|
|
627
628
|
},
|
|
628
|
-
async dispatchDataToDPI(e, t, i,
|
|
629
|
-
var
|
|
630
|
-
console.log("body:", e, t, "params:", i,
|
|
629
|
+
async dispatchDataToDPI(e, t, i, d) {
|
|
630
|
+
var p, b;
|
|
631
|
+
console.log("body:", e, t, "params:", i, d);
|
|
631
632
|
try {
|
|
632
|
-
|
|
633
|
+
d === "publish" && (i.token = this.getUserData.rtpToken, console.log(i.token), i.url = `${this.$env.api.hubUrl}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`, await this.$store.dispatch(t, i)), d === "draft" && await this.$store.dispatch(t, i), (p = this.$Progress) == null || p.finish(), this.clearAll();
|
|
633
634
|
} catch (y) {
|
|
634
|
-
console.error(y), (
|
|
635
|
+
console.error(y), (b = this.$Progress) == null || b.fail();
|
|
635
636
|
}
|
|
636
637
|
},
|
|
637
638
|
dropdownCLick() {
|
|
@@ -651,7 +652,7 @@ const Ae = N({
|
|
|
651
652
|
initInputPage() {
|
|
652
653
|
this.activeSubStep = this.activeSubStep || "Landing";
|
|
653
654
|
const e = this.getSchema(this.property).value, t = Object.keys(e).find(
|
|
654
|
-
(i) => e[i].map((
|
|
655
|
+
(i) => e[i].map((d) => d.name).includes("dct:issued") || e[i].map((d) => d.name).includes("dct:modified")
|
|
655
656
|
);
|
|
656
657
|
this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && t != null && e[t].forEach((i) => {
|
|
657
658
|
(i.identifier === "issued" || i.identifier === "modified") && (i.children[1].props.else.validation = "", i.children[1].props.else["validation-visibility"] = "", i.children[1].props.then.validation = "", i.children[1].props.then["validation-visibility"] = "", i.children[1].props.then.validation = "", i.children[1].props.then["validation-visibility"] = "");
|
|
@@ -659,11 +660,11 @@ const Ae = N({
|
|
|
659
660
|
J('[data-toggle="tooltip"]').tooltip({
|
|
660
661
|
container: "body"
|
|
661
662
|
}), setTimeout(() => {
|
|
662
|
-
document.querySelectorAll(".formkitProperty h4").forEach((
|
|
663
|
-
|
|
663
|
+
document.querySelectorAll(".formkitProperty h4").forEach((d, p) => {
|
|
664
|
+
d.parentElement.parentElement.classList.contains(
|
|
664
665
|
"formkitWrapRepeatable"
|
|
665
|
-
) || (
|
|
666
|
-
|
|
666
|
+
) || (p != 0 && p != 1 && p != 2 && p != 3 && d.nextElementSibling.classList.toggle("d-none"), d.addEventListener("click", () => {
|
|
667
|
+
d.classList.toggle("dpiChevUp"), d.nextElementSibling.classList.toggle("d-none");
|
|
667
668
|
}));
|
|
668
669
|
}), document.querySelectorAll(".formkitProperty");
|
|
669
670
|
});
|
|
@@ -714,52 +715,49 @@ const Ae = N({
|
|
|
714
715
|
}
|
|
715
716
|
},
|
|
716
717
|
beforeRouteEnter(e, t, i) {
|
|
717
|
-
i((
|
|
718
|
-
t.name && !t.name.startsWith("DataProviderInterface") &&
|
|
718
|
+
i((d) => {
|
|
719
|
+
t.name && !t.name.startsWith("DataProviderInterface") && d.clearAll();
|
|
719
720
|
});
|
|
720
721
|
},
|
|
721
722
|
setup() {
|
|
722
|
-
const e = Pe(), {
|
|
723
|
-
steps:
|
|
724
|
-
activeStep:
|
|
725
|
-
subSteps:
|
|
726
|
-
visitedSteps:
|
|
727
|
-
previousStep:
|
|
728
|
-
nextStep:
|
|
729
|
-
stepPlugin:
|
|
730
|
-
goToNextStep:
|
|
731
|
-
goToPreviousStep:
|
|
732
|
-
} =
|
|
733
|
-
t:
|
|
734
|
-
te:
|
|
735
|
-
}),
|
|
736
|
-
let { x:
|
|
723
|
+
const e = Le(), { isEditMode: t } = Pe(), {
|
|
724
|
+
steps: i,
|
|
725
|
+
activeStep: d,
|
|
726
|
+
subSteps: p,
|
|
727
|
+
visitedSteps: b,
|
|
728
|
+
previousStep: y,
|
|
729
|
+
nextStep: m,
|
|
730
|
+
stepPlugin: D,
|
|
731
|
+
goToNextStep: T,
|
|
732
|
+
goToPreviousStep: I
|
|
733
|
+
} = oe(), { formValues: L } = ae(), { t: P, te: w } = te(), A = j(!1), { translateSchema: $, createSchema: R, getSchema: E } = we({
|
|
734
|
+
t: P,
|
|
735
|
+
te: w
|
|
736
|
+
}), r = () => {
|
|
737
|
+
let { x: f, y: K } = Y({ behavior: "smooth" });
|
|
737
738
|
K.value = 0;
|
|
738
|
-
},
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
steps: t,
|
|
744
|
-
visitedSteps: c,
|
|
745
|
-
activeStep: i,
|
|
739
|
+
}, c = (f) => (i[f].errorCount > 0 || i[f].blockingCount > 0) && b.value.includes(f), l = x({ OverviewPage: Ie }), v = j("");
|
|
740
|
+
return t.value && (d.value = "ReviewAndPublish", v.value = "reviewAndPublishPage"), {
|
|
741
|
+
steps: i,
|
|
742
|
+
visitedSteps: b,
|
|
743
|
+
activeStep: d,
|
|
746
744
|
activeSubStep: v,
|
|
747
|
-
subSteps:
|
|
748
|
-
previousStep:
|
|
749
|
-
nextStep:
|
|
750
|
-
stepPlugin:
|
|
751
|
-
checkStepValidity:
|
|
752
|
-
goToNextStep:
|
|
753
|
-
goToPreviousStep:
|
|
754
|
-
scrollToTop:
|
|
755
|
-
library:
|
|
756
|
-
isEditMode:
|
|
757
|
-
translateSchema:
|
|
758
|
-
createSchema:
|
|
759
|
-
getSchema:
|
|
745
|
+
subSteps: p,
|
|
746
|
+
previousStep: y,
|
|
747
|
+
nextStep: m,
|
|
748
|
+
stepPlugin: D,
|
|
749
|
+
checkStepValidity: c,
|
|
750
|
+
goToNextStep: T,
|
|
751
|
+
goToPreviousStep: I,
|
|
752
|
+
scrollToTop: r,
|
|
753
|
+
library: l,
|
|
754
|
+
isEditMode: t,
|
|
755
|
+
translateSchema: $,
|
|
756
|
+
createSchema: R,
|
|
757
|
+
getSchema: E,
|
|
760
758
|
dpiContext: e,
|
|
761
|
-
formValues:
|
|
762
|
-
activeSimpleModal:
|
|
759
|
+
formValues: L,
|
|
760
|
+
activeSimpleModal: A
|
|
763
761
|
};
|
|
764
762
|
}
|
|
765
763
|
}), $e = { class: "form-container V3-typography" }, Re = {
|
|
@@ -812,12 +810,11 @@ const Ae = N({
|
|
|
812
810
|
key: 5,
|
|
813
811
|
class: "p-1"
|
|
814
812
|
};
|
|
815
|
-
function Ut(e, t, i,
|
|
816
|
-
const y =
|
|
817
|
-
return
|
|
818
|
-
e.isInput ? (
|
|
819
|
-
|
|
820
|
-
s("details", null, u(e.formValues), 1),
|
|
813
|
+
function Ut(e, t, i, d, p, b) {
|
|
814
|
+
const y = g("TextButtonSmall"), m = g("ButtonV3"), D = g("LogoV3"), T = g("PhNumberCircleFive"), I = g("PhCheckCircle"), L = g("Illustration"), P = g("FormKitSchema"), w = g("PhLightbulb"), A = g("DistributionInputPage"), $ = g("InputPageStep"), R = g("FormKit"), E = g("ModalSimpleV3");
|
|
815
|
+
return s(), o("div", $e, [
|
|
816
|
+
e.isInput ? (s(), o("div", Re, [
|
|
817
|
+
a("div", Ee, [
|
|
821
818
|
h(R, {
|
|
822
819
|
id: "dpiForm",
|
|
823
820
|
modelValue: e.formValues,
|
|
@@ -842,30 +839,30 @@ function Ut(e, t, i, n, c, S) {
|
|
|
842
839
|
}, ["prevent"]))
|
|
843
840
|
}, {
|
|
844
841
|
default: U(() => [
|
|
845
|
-
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (
|
|
846
|
-
|
|
842
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), o("div", Be, [
|
|
843
|
+
a("div", Fe, [
|
|
847
844
|
h(y, {
|
|
848
845
|
"button-text": "Übersicht",
|
|
849
846
|
"icon-start": "CaretLeft",
|
|
850
847
|
"icon-name": "caretLeft",
|
|
851
848
|
onClick: e.gotToHome
|
|
852
849
|
}, null, 8, ["onClick"]),
|
|
853
|
-
|
|
854
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (
|
|
855
|
-
h(
|
|
850
|
+
a("div", null, [
|
|
851
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), o("div", Ue, [
|
|
852
|
+
h(m, {
|
|
856
853
|
"button-text": "Veröffentlichung aufheben",
|
|
857
854
|
size: "large",
|
|
858
855
|
onClick: e.todoHandler
|
|
859
856
|
}, null, 8, ["onClick"]),
|
|
860
|
-
h(
|
|
857
|
+
h(m, {
|
|
861
858
|
"button-text": "Veröffentlicht ansehen",
|
|
862
859
|
variant: "secondary",
|
|
863
860
|
size: "large",
|
|
864
861
|
"icon-end": "Out",
|
|
865
862
|
onClick: e.todoHandler
|
|
866
863
|
}, null, 8, ["onClick"])
|
|
867
|
-
])) : (
|
|
868
|
-
h(
|
|
864
|
+
])) : (s(), o("div", Oe, [
|
|
865
|
+
h(m, {
|
|
869
866
|
"button-text": "Veröffentlichen",
|
|
870
867
|
size: "large",
|
|
871
868
|
onClick: t[0] || (t[0] = (r) => e.navTrigger("publish"))
|
|
@@ -873,160 +870,160 @@ function Ut(e, t, i, n, c, S) {
|
|
|
873
870
|
]))
|
|
874
871
|
])
|
|
875
872
|
])
|
|
876
|
-
])) : (
|
|
877
|
-
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (
|
|
873
|
+
])) : (s(), o("div", ze, [
|
|
874
|
+
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), o("div", Me, [
|
|
878
875
|
h(D),
|
|
879
|
-
|
|
880
|
-
(
|
|
876
|
+
a("ul", je, [
|
|
877
|
+
(s(!0), o(V, null, k(e.steps, (r, c, l) => O((s(), o("li", {
|
|
881
878
|
key: r,
|
|
882
879
|
class: C(["dpiV3_step", {
|
|
883
|
-
dpiV3_activeItem: e.activeStep ===
|
|
884
|
-
inactiveStep:
|
|
885
|
-
"has-errors": e.checkStepValidity(
|
|
880
|
+
dpiV3_activeItem: e.activeStep === c,
|
|
881
|
+
inactiveStep: c != e.activeStep,
|
|
882
|
+
"has-errors": e.checkStepValidity(c)
|
|
886
883
|
}]),
|
|
887
|
-
"data-step-active": e.activeStep ===
|
|
884
|
+
"data-step-active": e.activeStep === c,
|
|
888
885
|
"data-step-valid": r.valid && r.errorCount === 0
|
|
889
886
|
}, [
|
|
890
|
-
|
|
891
|
-
|
|
887
|
+
a("div", We, [
|
|
888
|
+
a("div", {
|
|
892
889
|
class: C({
|
|
893
|
-
dpiV3_activeStepName:
|
|
890
|
+
dpiV3_activeStepName: c === e.activeStep,
|
|
894
891
|
formerlyVisitedStep: e.stepCounter > l,
|
|
895
892
|
"copy-small-regular": e.stepCounter > l
|
|
896
893
|
})
|
|
897
894
|
}, [
|
|
898
|
-
e.activeStep ===
|
|
895
|
+
e.activeStep === c && l < 5 ? (s(), o("img", {
|
|
899
896
|
key: 0,
|
|
900
897
|
class: "dpiV3_circle dpiV3_stepCircle",
|
|
901
898
|
src: e.selectedImages[l - 1],
|
|
902
899
|
alt: "Selected Icon"
|
|
903
|
-
}, null, 8, qe)) :
|
|
904
|
-
e.activeStep ===
|
|
900
|
+
}, null, 8, qe)) : n("", !0),
|
|
901
|
+
e.activeStep === c && l === 5 ? (s(), S(T, {
|
|
905
902
|
key: 1,
|
|
906
903
|
size: 28,
|
|
907
904
|
color: "#009FE3",
|
|
908
905
|
weight: "fill"
|
|
909
|
-
})) :
|
|
910
|
-
l < e.stepCounter ? (
|
|
906
|
+
})) : n("", !0),
|
|
907
|
+
l < e.stepCounter ? (s(), S(I, {
|
|
911
908
|
key: 2,
|
|
912
909
|
size: 28,
|
|
913
910
|
color: "#70CC44",
|
|
914
911
|
weight: "fill"
|
|
915
|
-
})) :
|
|
916
|
-
l > e.stepCounter ? (
|
|
912
|
+
})) : n("", !0),
|
|
913
|
+
l > e.stepCounter ? (s(), o("img", {
|
|
917
914
|
key: 3,
|
|
918
915
|
class: "dpiV3_circle dpiV3_stepCircle",
|
|
919
916
|
src: e.images[l - 1],
|
|
920
917
|
alt: "Selected Icon"
|
|
921
|
-
}, null, 8, Ke)) :
|
|
922
|
-
e.checkStepValidity(
|
|
918
|
+
}, null, 8, Ke)) : n("", !0),
|
|
919
|
+
e.checkStepValidity(c) ? (s(), o("span", {
|
|
923
920
|
key: 4,
|
|
924
921
|
class: "dpiV3_step--errors",
|
|
925
922
|
textContent: u(r.errorCount + r.blockingCount)
|
|
926
|
-
}, null, 8, Ze)) :
|
|
927
|
-
|
|
923
|
+
}, null, 8, Ze)) : n("", !0),
|
|
924
|
+
a("span", Ge, u(e.$t(`message.dataupload.steps.${c}Step`)), 1)
|
|
928
925
|
], 2),
|
|
929
|
-
|
|
930
|
-
l + 1 != Object.keys(e.steps).length - 1 && l >= e.stepCounter ? (
|
|
931
|
-
l + 1 != Object.keys(e.steps).length - 1 && l < e.stepCounter ? (
|
|
932
|
-
e.activeStep ===
|
|
933
|
-
e.stepCounter < 5 ? (
|
|
926
|
+
a("div", Xe, [
|
|
927
|
+
l + 1 != Object.keys(e.steps).length - 1 && l >= e.stepCounter ? (s(), o("div", Ye)) : n("", !0),
|
|
928
|
+
l + 1 != Object.keys(e.steps).length - 1 && l < e.stepCounter ? (s(), o("div", Je)) : n("", !0),
|
|
929
|
+
e.activeStep === c ? (s(), o("div", Ne, [
|
|
930
|
+
e.stepCounter < 5 ? (s(!0), o(V, { key: 0 }, k(Object.keys(
|
|
934
931
|
e.subSteps[l]
|
|
935
|
-
), (v,
|
|
936
|
-
|
|
937
|
-
e.substepCounter >
|
|
932
|
+
), (v, f) => (s(), o("div", Qe, [
|
|
933
|
+
a("div", xe, [
|
|
934
|
+
e.substepCounter > f ? (s(), S(I, {
|
|
938
935
|
key: 0,
|
|
939
936
|
size: 20,
|
|
940
937
|
color: "#009FE3"
|
|
941
|
-
})) : (
|
|
938
|
+
})) : (s(), o("img", {
|
|
942
939
|
key: 1,
|
|
943
|
-
src: e.getCircles(
|
|
940
|
+
src: e.getCircles(f),
|
|
944
941
|
alt: "circle"
|
|
945
942
|
}, null, 8, et)),
|
|
946
|
-
|
|
943
|
+
f != Object.keys(e.subSteps[l]).length - 1 ? (s(), o("div", {
|
|
947
944
|
key: 2,
|
|
948
945
|
class: C(["dpiV3_seperatorHorizontalStepperInner", {
|
|
949
|
-
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter >
|
|
946
|
+
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > f
|
|
950
947
|
}])
|
|
951
|
-
}, null, 2)) :
|
|
948
|
+
}, null, 2)) : n("", !0)
|
|
952
949
|
]),
|
|
953
|
-
|
|
954
|
-
|
|
950
|
+
a("div", tt, [
|
|
951
|
+
a("span", {
|
|
955
952
|
class: C(["large-regular dpiV3_substepText", {
|
|
956
953
|
dpiV3_activeStepDesc: v === e.activeSubStep,
|
|
957
|
-
formerlyVisitedStep: e.substepCounter >
|
|
954
|
+
formerlyVisitedStep: e.substepCounter > f
|
|
958
955
|
}])
|
|
959
956
|
}, u(e.$t(
|
|
960
957
|
`message.dataupload.steps.${v.replace(/_\d+$/, "")}`
|
|
961
958
|
)), 3)
|
|
962
959
|
])
|
|
963
|
-
]))), 256)) :
|
|
964
|
-
])) :
|
|
960
|
+
]))), 256)) : n("", !0)
|
|
961
|
+
])) : n("", !0)
|
|
965
962
|
])
|
|
966
963
|
])
|
|
967
964
|
], 10, He)), [
|
|
968
|
-
[z,
|
|
965
|
+
[z, c !== "Landing" && c !== "Additionals"]
|
|
969
966
|
])), 128)),
|
|
970
|
-
e.activeStep === "Overview" ? (
|
|
971
|
-
|
|
972
|
-
]))) :
|
|
967
|
+
e.activeStep === "Overview" ? (s(), o("li", it, t[13] || (t[13] = [
|
|
968
|
+
a("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
|
|
969
|
+
]))) : n("", !0)
|
|
973
970
|
])
|
|
974
|
-
])) : (
|
|
975
|
-
|
|
971
|
+
])) : (s(), o("div", st, [
|
|
972
|
+
a("div", at, [
|
|
976
973
|
h(D)
|
|
977
974
|
]),
|
|
978
|
-
|
|
975
|
+
a("div", ot, [
|
|
979
976
|
h(L, { "illustration-name": "start" })
|
|
980
977
|
])
|
|
981
978
|
]))
|
|
982
979
|
])),
|
|
983
|
-
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (
|
|
984
|
-
(
|
|
980
|
+
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), o("ul", rt, [
|
|
981
|
+
(s(!0), o(V, null, k(e.steps, (r, c, l) => (s(), o("li", {
|
|
985
982
|
key: r,
|
|
986
983
|
class: C(["step", {
|
|
987
|
-
activeItem: e.activeStep ===
|
|
988
|
-
inactiveStep:
|
|
989
|
-
"has-errors": e.checkStepValidity(
|
|
984
|
+
activeItem: e.activeStep === c,
|
|
985
|
+
inactiveStep: c != e.activeStep,
|
|
986
|
+
"has-errors": e.checkStepValidity(c)
|
|
990
987
|
}]),
|
|
991
|
-
"data-step-active": e.activeStep ===
|
|
988
|
+
"data-step-active": e.activeStep === c,
|
|
992
989
|
"data-step-valid": r.valid && r.errorCount === 0,
|
|
993
990
|
onClick: (v) => {
|
|
994
|
-
e.activeStep =
|
|
991
|
+
e.activeStep = c, e.update(), e.scrollToTop();
|
|
995
992
|
}
|
|
996
993
|
}, [
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
e.checkStepValidity(
|
|
994
|
+
a("div", dt, [
|
|
995
|
+
a("div", nt, u(l + 1), 1),
|
|
996
|
+
e.checkStepValidity(c) ? (s(), o("span", {
|
|
1000
997
|
key: 0,
|
|
1001
998
|
class: "step--errors",
|
|
1002
999
|
textContent: u(r.errorCount + r.blockingCount)
|
|
1003
|
-
}, null, 8, ct)) :
|
|
1004
|
-
M(u(e.$t(`message.dataupload.steps.${
|
|
1000
|
+
}, null, 8, ct)) : n("", !0),
|
|
1001
|
+
M(u(e.$t(`message.dataupload.steps.${c}Step`)), 1)
|
|
1005
1002
|
]),
|
|
1006
|
-
l != Object.keys(e.steps).length ? (
|
|
1003
|
+
l != Object.keys(e.steps).length ? (s(), o("div", pt)) : n("", !0)
|
|
1007
1004
|
], 10, lt))), 128)),
|
|
1008
|
-
e.activeStep === "Overview" ? (
|
|
1009
|
-
|
|
1010
|
-
]))) :
|
|
1011
|
-
])) :
|
|
1012
|
-
(
|
|
1005
|
+
e.activeStep === "Overview" ? (s(), o("li", ut, t[14] || (t[14] = [
|
|
1006
|
+
a("div", { class: "circle stepCircle" }, null, -1)
|
|
1007
|
+
]))) : n("", !0)
|
|
1008
|
+
])) : n("", !0),
|
|
1009
|
+
(s(!0), o(V, null, k(e.getNavSteps(
|
|
1013
1010
|
e.$env.content.dataProviderInterface.specification
|
|
1014
|
-
)[e.property], (r,
|
|
1015
|
-
key:
|
|
1011
|
+
)[e.property], (r, c) => (s(), S($, {
|
|
1012
|
+
key: c,
|
|
1016
1013
|
name: r
|
|
1017
1014
|
}, {
|
|
1018
1015
|
default: U(() => [
|
|
1019
|
-
(
|
|
1016
|
+
(s(!0), o(V, null, k(Object.keys(
|
|
1020
1017
|
e.getSchema(e.property).value[r]
|
|
1021
|
-
).length, (l, v) => O((
|
|
1022
|
-
r !== "Distributions" && r !== "Additionals" ? (
|
|
1018
|
+
).length, (l, v) => O((s(), o("div", ht, [
|
|
1019
|
+
r !== "Distributions" && r !== "Additionals" ? (s(), S(P, {
|
|
1023
1020
|
key: 0,
|
|
1024
1021
|
schema: e.getSchema(e.property).value[r][v],
|
|
1025
1022
|
library: e.library,
|
|
1026
1023
|
"final-values": e.formValues,
|
|
1027
1024
|
onHandleNav: () => {
|
|
1028
1025
|
}
|
|
1029
|
-
}, null, 8, ["schema", "library", "final-values"])) :
|
|
1026
|
+
}, null, 8, ["schema", "library", "final-values"])) : n("", !0)
|
|
1030
1027
|
], 512)), [
|
|
1031
1028
|
[
|
|
1032
1029
|
z,
|
|
@@ -1035,136 +1032,136 @@ function Ut(e, t, i, n, c, S) {
|
|
|
1035
1032
|
)[0] === e.activeSubStep.replace(/_\d+$/, "") || r === "Landing"
|
|
1036
1033
|
]
|
|
1037
1034
|
])), 256)),
|
|
1038
|
-
e.activeStep === "Landing" ? (
|
|
1039
|
-
h(
|
|
1035
|
+
e.activeStep === "Landing" ? (s(), o("div", mt, [
|
|
1036
|
+
h(m, {
|
|
1040
1037
|
"button-text": "Abbrechen",
|
|
1041
1038
|
size: "large",
|
|
1042
1039
|
variant: "tertiary",
|
|
1043
1040
|
onClick: t[1] || (t[1] = (l) => e.activeSimpleModal = !0)
|
|
1044
1041
|
}),
|
|
1045
|
-
h(
|
|
1042
|
+
h(m, {
|
|
1046
1043
|
"button-text": "Datenbereitstellung starten",
|
|
1047
1044
|
size: "large",
|
|
1048
1045
|
onClick: t[2] || (t[2] = (l) => e.navTrigger("next"))
|
|
1049
1046
|
})
|
|
1050
|
-
])) :
|
|
1051
|
-
e.activeStep === "ReviewAndPublish" ? (
|
|
1052
|
-
|
|
1053
|
-
h(
|
|
1047
|
+
])) : n("", !0),
|
|
1048
|
+
e.activeStep === "ReviewAndPublish" ? (s(), o("div", gt, [
|
|
1049
|
+
a("div", ft, [
|
|
1050
|
+
h(m, {
|
|
1054
1051
|
"button-text": "Als Entwurf speichern",
|
|
1055
1052
|
size: "large",
|
|
1056
1053
|
variant: "secondary",
|
|
1057
1054
|
onClick: t[3] || (t[3] = (l) => e.navTrigger("draft"))
|
|
1058
1055
|
}),
|
|
1059
|
-
h(
|
|
1056
|
+
h(m, {
|
|
1060
1057
|
"button-text": "Veröffentlichen",
|
|
1061
1058
|
size: "large",
|
|
1062
1059
|
onClick: t[4] || (t[4] = (l) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
|
|
1063
1060
|
})
|
|
1064
1061
|
])
|
|
1065
|
-
])) :
|
|
1066
|
-
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (
|
|
1062
|
+
])) : n("", !0),
|
|
1063
|
+
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), o("div", {
|
|
1067
1064
|
key: 2,
|
|
1068
1065
|
class: C(["dpiV3_CTA", {
|
|
1069
1066
|
dpiV3_activeInfobox: e.activeSubStep.includes("hvdPage")
|
|
1070
1067
|
}])
|
|
1071
1068
|
}, [
|
|
1072
|
-
h(
|
|
1069
|
+
h(m, {
|
|
1073
1070
|
"button-text": "Abbrechen",
|
|
1074
1071
|
size: "large",
|
|
1075
1072
|
variant: "tertiary",
|
|
1076
1073
|
onClick: e.cancelWizard
|
|
1077
1074
|
}, null, 8, ["onClick"]),
|
|
1078
|
-
|
|
1079
|
-
e.activeStep !== "Landing" ? (
|
|
1075
|
+
a("div", vt, [
|
|
1076
|
+
e.activeStep !== "Landing" ? (s(), S(m, {
|
|
1080
1077
|
key: 0,
|
|
1081
1078
|
"icon-start": "CaretLeft",
|
|
1082
1079
|
"button-text": "Zurück",
|
|
1083
1080
|
size: "large",
|
|
1084
1081
|
variant: "secondary",
|
|
1085
1082
|
onClick: t[5] || (t[5] = (l) => e.navTrigger("prev"))
|
|
1086
|
-
})) :
|
|
1087
|
-
h(
|
|
1083
|
+
})) : n("", !0),
|
|
1084
|
+
h(m, {
|
|
1088
1085
|
"icon-end": "CaretRight",
|
|
1089
1086
|
"button-text": "Weiter",
|
|
1090
1087
|
size: "large",
|
|
1091
1088
|
onClick: t[6] || (t[6] = (l) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("next") : (e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1, e.handleDistributionsValidation(e.activeSubStep)))
|
|
1092
1089
|
})
|
|
1093
1090
|
])
|
|
1094
|
-
], 2)) :
|
|
1095
|
-
e.activeSubStep.includes("hvdPage") ? (
|
|
1096
|
-
|
|
1097
|
-
|
|
1091
|
+
], 2)) : n("", !0),
|
|
1092
|
+
e.activeSubStep.includes("hvdPage") ? (s(), o("div", bt, [
|
|
1093
|
+
a("div", St, [
|
|
1094
|
+
a("div", yt, [
|
|
1098
1095
|
h(w, {
|
|
1099
1096
|
size: 32,
|
|
1100
1097
|
color: "#009fe3"
|
|
1101
1098
|
}),
|
|
1102
|
-
|
|
1099
|
+
a("div", Ct, u(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
|
|
1103
1100
|
]),
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1101
|
+
a("div", Vt, [
|
|
1102
|
+
a("div", kt, u(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
|
|
1103
|
+
a("div", Dt, [
|
|
1104
|
+
a("div", It, " 1. " + u(e.$t(
|
|
1108
1105
|
"message.dataupload.datasets.hvdPage.tips-question-1"
|
|
1109
1106
|
)), 1),
|
|
1110
|
-
|
|
1111
|
-
|
|
1107
|
+
a("ul", _t, [
|
|
1108
|
+
a("li", null, u(e.$t(
|
|
1112
1109
|
"message.dataupload.datasets.hvdPage.hvd-category-1"
|
|
1113
1110
|
)), 1),
|
|
1114
|
-
|
|
1111
|
+
a("li", null, u(e.$t(
|
|
1115
1112
|
"message.dataupload.datasets.hvdPage.hvd-category-2"
|
|
1116
1113
|
)), 1),
|
|
1117
|
-
|
|
1114
|
+
a("li", null, u(e.$t(
|
|
1118
1115
|
"message.dataupload.datasets.hvdPage.hvd-category-3"
|
|
1119
1116
|
)), 1),
|
|
1120
|
-
|
|
1117
|
+
a("li", null, u(e.$t(
|
|
1121
1118
|
"message.dataupload.datasets.hvdPage.hvd-category-4"
|
|
1122
1119
|
)), 1),
|
|
1123
|
-
|
|
1120
|
+
a("li", null, u(e.$t(
|
|
1124
1121
|
"message.dataupload.datasets.hvdPage.hvd-category-5"
|
|
1125
1122
|
)), 1),
|
|
1126
|
-
|
|
1123
|
+
a("li", null, u(e.$t(
|
|
1127
1124
|
"message.dataupload.datasets.hvdPage.hvd-category-6"
|
|
1128
1125
|
)), 1)
|
|
1129
1126
|
])
|
|
1130
1127
|
]),
|
|
1131
|
-
|
|
1132
|
-
|
|
1128
|
+
a("div", Tt, [
|
|
1129
|
+
a("div", Lt, " 2. " + u(e.$t(
|
|
1133
1130
|
"message.dataupload.datasets.hvdPage.tips-question-2"
|
|
1134
1131
|
)), 1),
|
|
1135
|
-
|
|
1132
|
+
a("p", Pt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
|
|
1136
1133
|
]),
|
|
1137
|
-
|
|
1138
|
-
|
|
1134
|
+
a("div", wt, [
|
|
1135
|
+
a("div", At, " 3. " + u(e.$t(
|
|
1139
1136
|
"message.dataupload.datasets.hvdPage.tips-question-3"
|
|
1140
1137
|
)), 1),
|
|
1141
|
-
|
|
1138
|
+
a("p", $t, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
|
|
1142
1139
|
]),
|
|
1143
|
-
|
|
1144
|
-
|
|
1140
|
+
a("div", Rt, [
|
|
1141
|
+
a("div", Et, " 4. " + u(e.$t(
|
|
1145
1142
|
"message.dataupload.datasets.hvdPage.tips-question-4"
|
|
1146
1143
|
)), 1),
|
|
1147
|
-
|
|
1144
|
+
a("p", Bt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
|
|
1148
1145
|
])
|
|
1149
1146
|
])
|
|
1150
1147
|
])
|
|
1151
|
-
])) :
|
|
1152
|
-
r === "Distributions" ? (
|
|
1148
|
+
])) : n("", !0),
|
|
1149
|
+
r === "Distributions" ? (s(), S(A, {
|
|
1153
1150
|
key: 4,
|
|
1154
1151
|
schema: e.getSchema("distributions"),
|
|
1155
1152
|
values: e.formValues
|
|
1156
|
-
}, null, 8, ["schema", "values"])) :
|
|
1157
|
-
r === "Mandatory" ? (
|
|
1158
|
-
t[15] || (t[15] =
|
|
1153
|
+
}, null, 8, ["schema", "values"])) : n("", !0),
|
|
1154
|
+
r === "Mandatory" ? (s(), o("p", Ft, [
|
|
1155
|
+
t[15] || (t[15] = a("b", null, "*", -1)),
|
|
1159
1156
|
M(" " + u(e.$t("message.dataupload.info.mandatory")), 1)
|
|
1160
|
-
])) :
|
|
1157
|
+
])) : n("", !0)
|
|
1161
1158
|
]),
|
|
1162
1159
|
_: 2
|
|
1163
1160
|
}, 1032, ["name"]))), 128))
|
|
1164
1161
|
]),
|
|
1165
1162
|
_: 1
|
|
1166
1163
|
}, 8, ["modelValue", "plugins"]),
|
|
1167
|
-
e.activeSimpleModal ? (
|
|
1164
|
+
e.activeSimpleModal ? (s(), S(E, {
|
|
1168
1165
|
key: 0,
|
|
1169
1166
|
buttons: e.modalSimpleConf.button,
|
|
1170
1167
|
"header-text": e.modalSimpleConf.header,
|
|
@@ -1172,12 +1169,12 @@ function Ut(e, t, i, n, c, S) {
|
|
|
1172
1169
|
action: e.modalSimpleConf.action,
|
|
1173
1170
|
onClose: t[11] || (t[11] = (r) => e.activeSimpleModal = !1),
|
|
1174
1171
|
onActionHandling: t[12] || (t[12] = (r) => e.gotToHome())
|
|
1175
|
-
}, null, 8, ["buttons", "header-text", "text", "action"])) :
|
|
1172
|
+
}, null, 8, ["buttons", "header-text", "text", "action"])) : n("", !0)
|
|
1176
1173
|
])
|
|
1177
|
-
], 512)) :
|
|
1174
|
+
], 512)) : n("", !0)
|
|
1178
1175
|
]);
|
|
1179
1176
|
}
|
|
1180
|
-
const
|
|
1177
|
+
const _i = /* @__PURE__ */ Te(Ae, [["render", Ut]]);
|
|
1181
1178
|
export {
|
|
1182
|
-
|
|
1179
|
+
_i as default
|
|
1183
1180
|
};
|