@piveau/dpi 0.2.0-alpha.19 → 0.2.0-alpha.20
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/DPIHome.vue.js +62 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +58 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +65 -53
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +60 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +67 -79
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +411 -318
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +88 -60
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +143 -126
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +64 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +46 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +227 -208
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +124 -106
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +113 -108
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +370 -360
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +464 -182
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +31 -26
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +95 -89
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +139 -122
- package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +618 -525
- package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +56 -55
- package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +94 -89
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +247 -238
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +16 -17
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +122 -104
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +332 -305
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +89 -55
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +243 -199
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +24 -11
- package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +14 -12
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +317 -288
- package/package.json +2 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { getNode as pe } from "@formkit/core";
|
|
2
2
|
import "@formkit/vue";
|
|
3
3
|
import { PhNumberCircleFive as ue, PhCheckCircle as he, PhLightbulb as me } from "@phosphor-icons/vue";
|
|
4
|
-
import { putDataset as
|
|
5
|
-
import { useWindowScroll as
|
|
4
|
+
import { putDataset as ve } from "@piveau/sdk-core/hubRepo";
|
|
5
|
+
import { useWindowScroll as ge } from "@vueuse/core";
|
|
6
6
|
import fe from "jquery";
|
|
7
|
-
import { has as
|
|
8
|
-
import { defineComponent as be, resolveComponent as
|
|
7
|
+
import { has as w, isNil as x } from "lodash-es";
|
|
8
|
+
import { defineComponent as be, resolveComponent as v, createElementBlock as a, openBlock as s, createCommentVNode as p, createElementVNode as i, createVNode as h, createBlock as S, withModifiers as Se, withCtx as ee, Fragment as V, renderList as _, withDirectives as te, normalizeClass as C, toDisplayString as d, vShow as ie, createTextVNode as k, ref as se, markRaw as ye, getCurrentInstance as Ce } from "vue";
|
|
9
9
|
import { useI18n as Ve } from "vue-i18n";
|
|
10
|
-
import { useRoute as
|
|
10
|
+
import { useRoute as _e } from "vue-router";
|
|
11
11
|
import { mapActions as ae, mapGetters as oe } from "vuex";
|
|
12
|
-
import { useRuntimeEnv as
|
|
12
|
+
import { useRuntimeEnv as ke } from "../../composables/useRuntimeEnv.js";
|
|
13
13
|
import De from "../components/InputPageStep.vue.js";
|
|
14
14
|
import Ie from "../components/Navigation.vue.js";
|
|
15
15
|
import { useFormValues as Te } from "../composables/useDpiFormValues.js";
|
|
16
16
|
import { useDpiStepper as Pe } from "../composables/useDpiStepper.js";
|
|
17
17
|
import { useTwinbyUser as Le } from "../composables/useTwinbyUser.js";
|
|
18
|
-
import
|
|
18
|
+
import z from "../config/dcatapdeHappyFlow/converter.js";
|
|
19
19
|
import we from "../HappyFlowComponents/img/Circle.svg.js";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
20
|
+
import $e from "../HappyFlowComponents/img/CircleFill.svg.js";
|
|
21
|
+
import Ae from "../HappyFlowComponents/img/Selected1.svg.js";
|
|
22
22
|
import Re from "../HappyFlowComponents/img/Selected1_2.svg.js";
|
|
23
23
|
import Ee from "../HappyFlowComponents/img/Selected2.svg.js";
|
|
24
24
|
import Ue from "../HappyFlowComponents/img/Selected2_2.svg.js";
|
|
@@ -57,8 +57,8 @@ const tt = be({
|
|
|
57
57
|
},
|
|
58
58
|
data() {
|
|
59
59
|
return {
|
|
60
|
-
circles: [we,
|
|
61
|
-
images: [
|
|
60
|
+
circles: [we, $e],
|
|
61
|
+
images: [Ae, Ee, Be, Oe, Me],
|
|
62
62
|
selectedImages: [
|
|
63
63
|
Re,
|
|
64
64
|
Ue,
|
|
@@ -66,7 +66,6 @@ const tt = be({
|
|
|
66
66
|
ze,
|
|
67
67
|
je
|
|
68
68
|
],
|
|
69
|
-
instance: Ce(),
|
|
70
69
|
heightActiveSec: "10vh",
|
|
71
70
|
// formValues: {},
|
|
72
71
|
offsetTopStepper: "60px",
|
|
@@ -110,7 +109,7 @@ const tt = be({
|
|
|
110
109
|
...oe("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
|
|
111
110
|
getTitleStep() {
|
|
112
111
|
return Object.keys(this.formValues).filter(
|
|
113
|
-
(e) =>
|
|
112
|
+
(e) => w(this.formValues[e], "dct:title")
|
|
114
113
|
)[0];
|
|
115
114
|
},
|
|
116
115
|
createIDFromTitle() {
|
|
@@ -121,7 +120,7 @@ const tt = be({
|
|
|
121
120
|
getFirstTitleFromForm() {
|
|
122
121
|
try {
|
|
123
122
|
const e = this.formValues[this.getTitleStep];
|
|
124
|
-
return
|
|
123
|
+
return w(e, "dct:title") && e["dct:title"].length > 0 && w(e["dct:title"][0], "@value") && !x(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
125
124
|
} catch {
|
|
126
125
|
}
|
|
127
126
|
},
|
|
@@ -552,6 +551,10 @@ const tt = be({
|
|
|
552
551
|
getCircles(e) {
|
|
553
552
|
return e === this.substepCounter ? this.circles[1] : this.circles[0];
|
|
554
553
|
},
|
|
554
|
+
validateStep() {
|
|
555
|
+
var e, t, o, l, r;
|
|
556
|
+
((o = (t = (e = this.formValues[this.activeStep]) == null ? void 0 : e[this.activeSubStep]) == null ? void 0 : t[0]) == null ? void 0 : o.isValid) === !0 || ((l = this.formValues[this.activeStep][this.activeSubStep]) == null ? void 0 : l.isValid) === !0 ? this.navTrigger("next") : ((r = this.formValues[this.activeStep][this.activeSubStep]) != null && r[0] ? this.formValues[this.activeStep][this.activeSubStep][0].isValid = !1 : this.formValues[this.activeStep][this.activeSubStep].isValid = !1, this.handleDistributionsValidation(this.activeSubStep));
|
|
557
|
+
},
|
|
555
558
|
handleDistributionsValidation(e) {
|
|
556
559
|
He.emit("nextClicked", e);
|
|
557
560
|
},
|
|
@@ -562,42 +565,64 @@ const tt = be({
|
|
|
562
565
|
},
|
|
563
566
|
navTrigger(e, t) {
|
|
564
567
|
try {
|
|
565
|
-
let
|
|
566
|
-
if (Object.keys(this.steps).forEach((
|
|
567
|
-
let
|
|
568
|
-
step:
|
|
569
|
-
substeps: this.subSteps[
|
|
570
|
-
substepCount: Object.keys(this.subSteps[
|
|
568
|
+
let o = [];
|
|
569
|
+
if (Object.keys(this.steps).forEach((l, r) => {
|
|
570
|
+
let g = {
|
|
571
|
+
step: l,
|
|
572
|
+
substeps: this.subSteps[r],
|
|
573
|
+
substepCount: Object.keys(this.subSteps[r]).length
|
|
571
574
|
};
|
|
572
|
-
|
|
573
|
-
}), e === "next" && (
|
|
574
|
-
|
|
575
|
+
o.push(g);
|
|
576
|
+
}), e === "next" && (o[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === o[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = o[this.stepCounter].step, this.activeSubStep = Object.keys(
|
|
577
|
+
o[this.stepCounter].substeps
|
|
575
578
|
)[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
|
|
576
|
-
|
|
577
|
-
)[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [{ isValid: !0 }])) : this.stepCounter !=
|
|
578
|
-
|
|
579
|
-
)[0], this.activeStep =
|
|
580
|
-
|
|
581
|
-
)[this.substepCounter]) : (this.stepCounter--, this.activeStep =
|
|
582
|
-
|
|
583
|
-
)[this.substepCounter]) : (this.substepCounter = Object.keys(
|
|
584
|
-
|
|
585
|
-
)[this.substepCounter], this.activeStep =
|
|
586
|
-
let
|
|
587
|
-
|
|
579
|
+
o[this.stepCounter].substeps
|
|
580
|
+
)[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [{ isValid: !0 }])) : this.stepCounter != o.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
|
|
581
|
+
o[this.stepCounter].substeps
|
|
582
|
+
)[0], this.activeStep = o[this.stepCounter].step)), e === "prev" && (o[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
|
|
583
|
+
o[this.stepCounter].substeps
|
|
584
|
+
)[this.substepCounter]) : (this.stepCounter--, this.activeStep = o[this.stepCounter].step, this.substepCounter = Object.keys(o[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
|
|
585
|
+
o[this.stepCounter].substeps
|
|
586
|
+
)[this.substepCounter]) : (this.substepCounter = Object.keys(o[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
|
|
587
|
+
o[this.stepCounter].substeps
|
|
588
|
+
)[this.substepCounter], this.activeStep = o[this.stepCounter].step)), e === "publish") {
|
|
589
|
+
let l = "auth/createDataset";
|
|
590
|
+
z(
|
|
588
591
|
this.formValues,
|
|
589
592
|
this.dpiContext,
|
|
590
593
|
this.getUserData,
|
|
591
594
|
this.$env.api.hubUrl
|
|
592
|
-
).then((
|
|
595
|
+
).then((r) => {
|
|
593
596
|
this.dispatchDataToDPI(
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
+
r.body,
|
|
598
|
+
l,
|
|
599
|
+
r.actionParams,
|
|
597
600
|
"publish"
|
|
598
601
|
);
|
|
599
|
-
}).catch((
|
|
600
|
-
console.error("Fehler beim Senden der Daten:",
|
|
602
|
+
}).catch((r) => {
|
|
603
|
+
console.error("Fehler beim Senden der Daten:", r);
|
|
604
|
+
}), setTimeout(() => {
|
|
605
|
+
window.location.href = this.$router.resolve({
|
|
606
|
+
name: "DPI-Home-HappyFlow"
|
|
607
|
+
}).href;
|
|
608
|
+
}, 1e3);
|
|
609
|
+
}
|
|
610
|
+
if (e === "depublish") {
|
|
611
|
+
let l = "auth/depublishById";
|
|
612
|
+
z(
|
|
613
|
+
this.formValues,
|
|
614
|
+
this.dpiContext,
|
|
615
|
+
this.getUserData,
|
|
616
|
+
this.$env.api.hubUrl
|
|
617
|
+
).then((r) => {
|
|
618
|
+
this.dispatchDataToDPI(
|
|
619
|
+
r.body,
|
|
620
|
+
l,
|
|
621
|
+
r.actionParams,
|
|
622
|
+
"depublish"
|
|
623
|
+
);
|
|
624
|
+
}).catch((r) => {
|
|
625
|
+
console.error("Fehler beim Senden der Daten:", r);
|
|
601
626
|
}), setTimeout(() => {
|
|
602
627
|
window.location.href = this.$router.resolve({
|
|
603
628
|
name: "DPI-Home-HappyFlow"
|
|
@@ -605,36 +630,36 @@ const tt = be({
|
|
|
605
630
|
}, 1e3);
|
|
606
631
|
}
|
|
607
632
|
if (e === "draft") {
|
|
608
|
-
let
|
|
609
|
-
|
|
633
|
+
let l = "auth/createUserDraft";
|
|
634
|
+
z(
|
|
610
635
|
this.formValues,
|
|
611
636
|
this.dpiContext,
|
|
612
637
|
this.getUserData,
|
|
613
638
|
this.$env.api.hubUrl
|
|
614
|
-
).then((
|
|
639
|
+
).then((r) => {
|
|
615
640
|
this.dispatchDataToDPI(
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
641
|
+
r.body,
|
|
642
|
+
l,
|
|
643
|
+
r.actionParams,
|
|
619
644
|
"draft"
|
|
620
645
|
);
|
|
621
|
-
}).catch((
|
|
622
|
-
console.error("Fehler beim Senden der Daten:",
|
|
646
|
+
}).catch((r) => {
|
|
647
|
+
console.error("Fehler beim Senden der Daten:", r);
|
|
623
648
|
}), setTimeout(() => {
|
|
624
649
|
window.location.href = this.$router.resolve({
|
|
625
650
|
name: "DPI-Home-HappyFlow"
|
|
626
651
|
}).href;
|
|
627
652
|
}, 1e3);
|
|
628
653
|
}
|
|
629
|
-
} catch (
|
|
630
|
-
console.log(
|
|
654
|
+
} catch (o) {
|
|
655
|
+
console.log(o);
|
|
631
656
|
}
|
|
632
657
|
},
|
|
633
658
|
dropdownCLick() {
|
|
634
659
|
const e = document.querySelectorAll(".formkitProperty h4");
|
|
635
|
-
this.expandall && e.forEach((t,
|
|
660
|
+
this.expandall && e.forEach((t, o) => {
|
|
636
661
|
t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
|
|
637
|
-
}), this.expandall || e.forEach((t,
|
|
662
|
+
}), this.expandall || e.forEach((t, o) => {
|
|
638
663
|
t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
|
|
639
664
|
});
|
|
640
665
|
},
|
|
@@ -645,29 +670,33 @@ const tt = be({
|
|
|
645
670
|
window.scrollTo(0, 0);
|
|
646
671
|
},
|
|
647
672
|
initInputPage() {
|
|
648
|
-
this.activeSubStep = this.activeSubStep || "Landing";
|
|
649
|
-
const
|
|
650
|
-
(
|
|
673
|
+
this.activeSubStep = this.activeSubStep || "Landing", Ce().appContext.app.config.globalProperties.$env;
|
|
674
|
+
const t = this.getSchema(this.property).value, o = Object.keys(t).find(
|
|
675
|
+
(l) => t[l].map((r) => r.name).includes("dct:issued") || t[l].map((r) => r.name).includes("dct:modified")
|
|
651
676
|
);
|
|
652
|
-
this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" &&
|
|
653
|
-
(
|
|
677
|
+
this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && o != null && t[o].forEach((l) => {
|
|
678
|
+
(l.identifier === "issued" || l.identifier === "modified") && (l.children[1].props.else.validation = "", l.children[1].props.else["validation-visibility"] = "", l.children[1].props.then.validation = "", l.children[1].props.then["validation-visibility"] = "", l.children[1].props.then.validation = "", l.children[1].props.then["validation-visibility"] = "");
|
|
654
679
|
}), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.$nextTick(() => {
|
|
655
680
|
fe('[data-bs-toggle="tooltip"]').tooltip({
|
|
656
681
|
container: "body"
|
|
657
682
|
}), setTimeout(() => {
|
|
658
|
-
document.querySelectorAll(".formkitProperty h4").forEach((
|
|
659
|
-
|
|
683
|
+
document.querySelectorAll(".formkitProperty h4").forEach((r, g) => {
|
|
684
|
+
r.parentElement.parentElement.classList.contains(
|
|
660
685
|
"formkitWrapRepeatable"
|
|
661
|
-
) || (
|
|
662
|
-
|
|
686
|
+
) || (g != 0 && g != 1 && g != 2 && g != 3 && r.nextElementSibling.classList.toggle("d-none"), r.addEventListener("click", () => {
|
|
687
|
+
r.classList.toggle("dpiChevUp"), r.nextElementSibling.classList.toggle("d-none");
|
|
663
688
|
}));
|
|
664
689
|
}), document.querySelectorAll(".formkitProperty");
|
|
665
690
|
});
|
|
666
691
|
});
|
|
667
692
|
},
|
|
693
|
+
handlePublishedRoute() {
|
|
694
|
+
const e = this.formValues[this.getTitleStep].datasetID, t = `${new URL(this.$env.api.baseUrl).origin}/`;
|
|
695
|
+
window.location.href = `${t}datasets/${e}?locale=de`;
|
|
696
|
+
},
|
|
668
697
|
createDatasetID() {
|
|
669
698
|
const e = this.formValues[this.getTitleStep];
|
|
670
|
-
|
|
699
|
+
!w(e, "datasetID") || x(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);
|
|
671
700
|
},
|
|
672
701
|
generateandTranslateSchema(e) {
|
|
673
702
|
for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
|
|
@@ -709,50 +738,50 @@ const tt = be({
|
|
|
709
738
|
}
|
|
710
739
|
}
|
|
711
740
|
},
|
|
712
|
-
beforeRouteEnter(e, t,
|
|
713
|
-
|
|
714
|
-
t.name && !t.name.startsWith("DataProviderInterface") &&
|
|
741
|
+
beforeRouteEnter(e, t, o) {
|
|
742
|
+
o((l) => {
|
|
743
|
+
t.name && !t.name.startsWith("DataProviderInterface") && l.clearAll();
|
|
715
744
|
});
|
|
716
745
|
},
|
|
717
746
|
setup() {
|
|
718
747
|
var j, H, W, q;
|
|
719
|
-
const e = Qe(), { isEditMode: t } = xe(),
|
|
720
|
-
steps:
|
|
721
|
-
activeStep:
|
|
722
|
-
subSteps:
|
|
723
|
-
visitedSteps:
|
|
748
|
+
const e = Qe(), { isEditMode: t } = xe(), o = ke(), {
|
|
749
|
+
steps: l,
|
|
750
|
+
activeStep: r,
|
|
751
|
+
subSteps: g,
|
|
752
|
+
visitedSteps: D,
|
|
724
753
|
previousStep: m,
|
|
725
|
-
nextStep:
|
|
726
|
-
stepPlugin:
|
|
727
|
-
goToNextStep:
|
|
728
|
-
goToPreviousStep:
|
|
729
|
-
} = Pe(), { formValues:
|
|
730
|
-
t:
|
|
731
|
-
te:
|
|
732
|
-
}),
|
|
733
|
-
let { x:
|
|
734
|
-
|
|
735
|
-
},
|
|
736
|
-
t.value && (
|
|
737
|
-
const { organization:
|
|
738
|
-
keycloak: ((H = (j =
|
|
739
|
-
realm: ((q = (W =
|
|
754
|
+
nextStep: I,
|
|
755
|
+
stepPlugin: $,
|
|
756
|
+
goToNextStep: T,
|
|
757
|
+
goToPreviousStep: A
|
|
758
|
+
} = Pe(), { formValues: P } = Te(), { t: L, te: R } = Ve(), E = se(!1), { translateSchema: U, createSchema: B, getSchema: n } = et({
|
|
759
|
+
t: L,
|
|
760
|
+
te: R
|
|
761
|
+
}), u = () => {
|
|
762
|
+
let { x: y, y: F } = ge({ behavior: "smooth" });
|
|
763
|
+
F.value = 0;
|
|
764
|
+
}, c = (y) => (l[y].errorCount > 0 || l[y].blockingCount > 0) && D.value.includes(y), f = ye({ OverviewPage: Ne }), b = se("");
|
|
765
|
+
t.value && (r.value = "ReviewAndPublish", b.value = "reviewAndPublishPage");
|
|
766
|
+
const { organization: re, catalogDataset: M, startFetchPermissions: le, authToken: ne } = Le({
|
|
767
|
+
keycloak: ((H = (j = o.authentication) == null ? void 0 : j.keycloak) == null ? void 0 : H.url) || "https://keycloak.twin.bydata.de",
|
|
768
|
+
realm: ((q = (W = o.authentication) == null ? void 0 : W.keycloak) == null ? void 0 : q.realm) || "piveau",
|
|
740
769
|
audience: "piveau-hub-repo"
|
|
741
770
|
});
|
|
742
771
|
le();
|
|
743
|
-
const
|
|
744
|
-
async function ce(
|
|
772
|
+
const de = _e();
|
|
773
|
+
async function ce(y, F, O, K) {
|
|
745
774
|
var Z, G, X, N, Y, J;
|
|
746
|
-
console.log("body:",
|
|
775
|
+
console.log("body:", y, F, "params:", O, K);
|
|
747
776
|
try {
|
|
748
|
-
await
|
|
749
|
-
baseUrl:
|
|
750
|
-
id:
|
|
751
|
-
catalogId:
|
|
752
|
-
data:
|
|
753
|
-
authToken:
|
|
777
|
+
await ve({
|
|
778
|
+
baseUrl: o.api.hubUrl,
|
|
779
|
+
id: O.id,
|
|
780
|
+
catalogId: M.value || O.catalog || "",
|
|
781
|
+
data: y,
|
|
782
|
+
authToken: ne.value,
|
|
754
783
|
publicationStatus: K === "publish" ? "published" : "draft",
|
|
755
|
-
accessLevel: ((N = (X = (G = (Z =
|
|
784
|
+
accessLevel: ((N = (X = (G = (Z = P.value) == null ? void 0 : Z.Discoverability) == null ? void 0 : G.visibilityPage) == null ? void 0 : X[0]) == null ? void 0 : N.visibility) || de.query.visibility || "public",
|
|
756
785
|
type: "dataset"
|
|
757
786
|
}), (Y = this.$Progress) == null || Y.finish(), this.clearAll();
|
|
758
787
|
} catch (Q) {
|
|
@@ -760,28 +789,28 @@ const tt = be({
|
|
|
760
789
|
}
|
|
761
790
|
}
|
|
762
791
|
return {
|
|
763
|
-
steps:
|
|
764
|
-
visitedSteps:
|
|
765
|
-
activeStep:
|
|
766
|
-
activeSubStep:
|
|
767
|
-
subSteps:
|
|
792
|
+
steps: l,
|
|
793
|
+
visitedSteps: D,
|
|
794
|
+
activeStep: r,
|
|
795
|
+
activeSubStep: b,
|
|
796
|
+
subSteps: g,
|
|
768
797
|
previousStep: m,
|
|
769
|
-
nextStep:
|
|
770
|
-
stepPlugin:
|
|
771
|
-
checkStepValidity:
|
|
772
|
-
goToNextStep:
|
|
773
|
-
goToPreviousStep:
|
|
774
|
-
scrollToTop:
|
|
775
|
-
library:
|
|
798
|
+
nextStep: I,
|
|
799
|
+
stepPlugin: $,
|
|
800
|
+
checkStepValidity: c,
|
|
801
|
+
goToNextStep: T,
|
|
802
|
+
goToPreviousStep: A,
|
|
803
|
+
scrollToTop: u,
|
|
804
|
+
library: f,
|
|
776
805
|
isEditMode: t,
|
|
777
|
-
translateSchema:
|
|
778
|
-
createSchema:
|
|
779
|
-
getSchema:
|
|
806
|
+
translateSchema: U,
|
|
807
|
+
createSchema: B,
|
|
808
|
+
getSchema: n,
|
|
780
809
|
dpiContext: e,
|
|
781
|
-
formValues:
|
|
782
|
-
activeSimpleModal:
|
|
783
|
-
organization:
|
|
784
|
-
catalogDataset:
|
|
810
|
+
formValues: P,
|
|
811
|
+
activeSimpleModal: E,
|
|
812
|
+
organization: re,
|
|
813
|
+
catalogDataset: M,
|
|
785
814
|
dispatchDataToDPI: ce
|
|
786
815
|
};
|
|
787
816
|
}
|
|
@@ -792,13 +821,13 @@ const tt = be({
|
|
|
792
821
|
}, at = { class: "formContainer formkit" }, ot = { key: 0 }, rt = { class: "dpiV3_stepper draftStepper" }, lt = {
|
|
793
822
|
key: 0,
|
|
794
823
|
class: "draftCTA"
|
|
795
|
-
},
|
|
824
|
+
}, nt = {
|
|
796
825
|
key: 1,
|
|
797
826
|
class: "draftCTA"
|
|
798
|
-
},
|
|
827
|
+
}, dt = { key: 1 }, ct = {
|
|
799
828
|
key: 0,
|
|
800
829
|
class: "dpiV3_stepper"
|
|
801
|
-
}, pt = { class: "dpiV3_steps" }, ut = ["data-step-active", "data-step-valid"], ht = { class: "dpiV3_stepBubbleWrap" }, mt = ["src"],
|
|
830
|
+
}, pt = { class: "dpiV3_steps" }, ut = ["data-step-active", "data-step-valid"], ht = { class: "dpiV3_stepBubbleWrap" }, mt = ["src"], vt = ["src"], gt = ["textContent"], ft = { style: { "vertical-align": "middle" } }, bt = { class: "dpiV3_subStepWrapper" }, St = {
|
|
802
831
|
key: 0,
|
|
803
832
|
class: "dpiV3_seperatorHorizontalStepper"
|
|
804
833
|
}, yt = {
|
|
@@ -807,7 +836,7 @@ const tt = be({
|
|
|
807
836
|
}, Ct = {
|
|
808
837
|
key: 2,
|
|
809
838
|
class: "dpiV3_subStep"
|
|
810
|
-
}, Vt = { class: "dpiV3_subStepInner" },
|
|
839
|
+
}, Vt = { class: "dpiV3_subStepInner" }, _t = { class: "dpiV3_subStepCircleWrap" }, kt = ["src"], Dt = { style: { height: "20px", display: "flex", "align-items": "center" } }, It = {
|
|
811
840
|
key: 0,
|
|
812
841
|
class: "dpiV3_step dpiV3_inactiveStep"
|
|
813
842
|
}, Tt = {
|
|
@@ -816,7 +845,7 @@ const tt = be({
|
|
|
816
845
|
}, Pt = { class: "dpiV3_bydata_logo_wordmark" }, Lt = { class: "dpiV3_Illustration-Start" }, wt = {
|
|
817
846
|
key: 2,
|
|
818
847
|
class: "steps"
|
|
819
|
-
},
|
|
848
|
+
}, $t = ["data-step-active", "data-step-valid", "onClick"], At = { class: "stepBubbleWrap" }, Rt = { class: "circle stepCircle" }, Et = ["textContent"], Ut = {
|
|
820
849
|
key: 0,
|
|
821
850
|
class: "seperatorHorizontalStepper"
|
|
822
851
|
}, Bt = {
|
|
@@ -834,253 +863,256 @@ const tt = be({
|
|
|
834
863
|
}, Wt = { class: "dpiV3_Card_Tips" }, qt = { class: "dpiV3_Icon_Title" }, Kt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Zt = { class: "dpiV3_CT-Content" }, Gt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, Xt = { class: "dpiV3_hvd_frame3846" }, Nt = { class: "dpiV3_copy_large_semi_bold" }, Yt = { class: "dpiV3_copy_large_regular" }, Jt = { class: "dpiV3_hvd_frame3846" }, Qt = { class: "dpiV3_copy_large_semi_bold" }, xt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, ei = { class: "dpiV3_hvd_frame3846" }, ti = { class: "dpiV3_copy_large_semi_bold" }, ii = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, si = { class: "dpiV3_hvd_frame3846" }, ai = { class: "dpiV3_copy_large_semi_bold" }, oi = { class: "dpiV3_copy_large_regular" }, ri = {
|
|
835
864
|
key: 4,
|
|
836
865
|
class: "dpiV3_Content_InputPage"
|
|
837
|
-
}, li = { class: "dpiV3_Card_Tips" },
|
|
866
|
+
}, li = { class: "dpiV3_Card_Tips" }, ni = { class: "dpiV3_Icon_Title" }, di = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, ci = { class: "dpiV3_CT-Content" }, pi = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, ui = { class: "dpiV3_Info-Text" }, hi = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, mi = { class: "dpiV3_Info-Text" }, vi = {
|
|
838
867
|
key: 6,
|
|
839
868
|
class: "p-1"
|
|
840
869
|
};
|
|
841
|
-
function
|
|
842
|
-
const
|
|
843
|
-
return s(),
|
|
844
|
-
e.isInput ? (s(),
|
|
870
|
+
function gi(e, t, o, l, r, g) {
|
|
871
|
+
const D = v("TextButtonSmall"), m = v("ButtonV3"), I = v("LogoV3"), $ = v("PhNumberCircleFive"), T = v("PhCheckCircle"), A = v("Illustration"), P = v("FormKitSchema"), L = v("PhLightbulb"), R = v("DistributionInputPage"), E = v("InputPageStep"), U = v("FormKit"), B = v("ModalSimpleV3");
|
|
872
|
+
return s(), a("div", it, [
|
|
873
|
+
e.isInput ? (s(), a("div", st, [
|
|
845
874
|
i("div", at, [
|
|
846
|
-
h(
|
|
875
|
+
h(U, {
|
|
847
876
|
id: "dpiForm",
|
|
848
877
|
modelValue: e.formValues,
|
|
849
|
-
"onUpdate:modelValue": t[
|
|
878
|
+
"onUpdate:modelValue": t[10] || (t[10] = (n) => e.formValues = n),
|
|
850
879
|
type: "form",
|
|
851
880
|
actions: !1,
|
|
852
881
|
plugins: [e.stepPlugin],
|
|
853
882
|
class: "d-flex",
|
|
854
|
-
onSubmit: t[
|
|
883
|
+
onSubmit: t[11] || (t[11] = Se(() => {
|
|
855
884
|
}, ["prevent"]))
|
|
856
885
|
}, {
|
|
857
886
|
default: ee(() => [
|
|
858
|
-
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(),
|
|
887
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), a("div", ot, [
|
|
859
888
|
i("div", rt, [
|
|
860
|
-
h(
|
|
889
|
+
h(D, {
|
|
861
890
|
"button-text": "Übersicht",
|
|
862
891
|
"icon-start": "CaretLeft",
|
|
863
892
|
"icon-name": "caretLeft",
|
|
864
893
|
onClick: e.gotToHome
|
|
865
894
|
}, null, 8, ["onClick"]),
|
|
866
895
|
i("div", null, [
|
|
867
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(),
|
|
896
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), a("div", lt, [
|
|
868
897
|
h(m, {
|
|
869
898
|
"button-text": "Veröffentlichung aufheben",
|
|
870
899
|
size: "large",
|
|
871
|
-
onClick: e.
|
|
872
|
-
}
|
|
900
|
+
onClick: t[0] || (t[0] = (n) => e.navTrigger("depublish"))
|
|
901
|
+
}),
|
|
873
902
|
h(m, {
|
|
874
903
|
"button-text": "Veröffentlicht ansehen",
|
|
875
904
|
variant: "secondary",
|
|
876
905
|
size: "large",
|
|
877
906
|
"icon-end": "Out",
|
|
878
|
-
onClick: e.
|
|
879
|
-
}
|
|
880
|
-
])) : (s(),
|
|
907
|
+
onClick: t[1] || (t[1] = (n) => e.handlePublishedRoute())
|
|
908
|
+
})
|
|
909
|
+
])) : (s(), a("div", nt, [
|
|
881
910
|
h(m, {
|
|
882
911
|
"button-text": "Veröffentlichen",
|
|
883
912
|
size: "large",
|
|
884
|
-
onClick: t[
|
|
913
|
+
onClick: t[2] || (t[2] = (n) => e.navTrigger("publish"))
|
|
885
914
|
})
|
|
886
915
|
]))
|
|
887
916
|
])
|
|
888
917
|
])
|
|
889
|
-
])) : (s(),
|
|
890
|
-
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(),
|
|
891
|
-
h(
|
|
918
|
+
])) : (s(), a("div", dt, [
|
|
919
|
+
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), a("div", ct, [
|
|
920
|
+
h(I),
|
|
892
921
|
i("ul", pt, [
|
|
893
|
-
(s(!0),
|
|
894
|
-
key:
|
|
895
|
-
class:
|
|
896
|
-
dpiV3_activeItem: e.activeStep ===
|
|
897
|
-
inactiveStep:
|
|
898
|
-
"has-errors": e.checkStepValidity(
|
|
922
|
+
(s(!0), a(V, null, _(e.steps, (n, u, c) => te((s(), a("li", {
|
|
923
|
+
key: n,
|
|
924
|
+
class: C(["dpiV3_step", {
|
|
925
|
+
dpiV3_activeItem: e.activeStep === u,
|
|
926
|
+
inactiveStep: u != e.activeStep,
|
|
927
|
+
"has-errors": e.checkStepValidity(u)
|
|
899
928
|
}]),
|
|
900
|
-
"data-step-active": e.activeStep ===
|
|
901
|
-
"data-step-valid":
|
|
929
|
+
"data-step-active": e.activeStep === u,
|
|
930
|
+
"data-step-valid": n.valid && n.errorCount === 0
|
|
902
931
|
}, [
|
|
903
932
|
i("div", ht, [
|
|
904
933
|
i("div", {
|
|
905
|
-
class:
|
|
906
|
-
dpiV3_activeStepName:
|
|
907
|
-
formerlyVisitedStep: e.stepCounter >
|
|
908
|
-
"copy-small-regular": e.stepCounter >
|
|
934
|
+
class: C(["firstRowWrapper", {
|
|
935
|
+
dpiV3_activeStepName: u === e.activeStep,
|
|
936
|
+
formerlyVisitedStep: e.stepCounter > c,
|
|
937
|
+
"copy-small-regular": e.stepCounter > c
|
|
909
938
|
}])
|
|
910
939
|
}, [
|
|
911
|
-
e.activeStep ===
|
|
940
|
+
e.activeStep === u && c < 5 ? (s(), a("img", {
|
|
912
941
|
key: 0,
|
|
913
942
|
class: "dpiV3_circle dpiV3_stepCircle",
|
|
914
|
-
src: e.selectedImages[
|
|
943
|
+
src: e.selectedImages[c - 1],
|
|
915
944
|
alt: "Selected Icon"
|
|
916
|
-
}, null, 8, mt)) :
|
|
917
|
-
e.activeStep ===
|
|
945
|
+
}, null, 8, mt)) : p("", !0),
|
|
946
|
+
e.activeStep === u && c === 5 ? (s(), S($, {
|
|
918
947
|
key: 1,
|
|
919
948
|
size: 28,
|
|
920
949
|
color: "#009FE3",
|
|
921
950
|
weight: "fill"
|
|
922
|
-
})) :
|
|
923
|
-
|
|
951
|
+
})) : p("", !0),
|
|
952
|
+
c < e.stepCounter ? (s(), S(T, {
|
|
924
953
|
key: 2,
|
|
925
954
|
size: 28,
|
|
926
955
|
color: "#70CC44",
|
|
927
956
|
weight: "fill"
|
|
928
|
-
})) :
|
|
929
|
-
|
|
957
|
+
})) : p("", !0),
|
|
958
|
+
c > e.stepCounter ? (s(), a("img", {
|
|
930
959
|
key: 3,
|
|
931
960
|
class: "dpiV3_circle dpiV3_stepCircle",
|
|
932
|
-
src: e.images[
|
|
961
|
+
src: e.images[c - 1],
|
|
933
962
|
alt: "Selected Icon"
|
|
934
|
-
}, null, 8,
|
|
935
|
-
e.checkStepValidity(
|
|
963
|
+
}, null, 8, vt)) : p("", !0),
|
|
964
|
+
e.checkStepValidity(u) ? (s(), a("span", {
|
|
936
965
|
key: 4,
|
|
937
966
|
class: "dpiV3_step--errors",
|
|
938
|
-
textContent:
|
|
939
|
-
}, null, 8,
|
|
940
|
-
i("span", ft,
|
|
967
|
+
textContent: d(n.errorCount + n.blockingCount)
|
|
968
|
+
}, null, 8, gt)) : p("", !0),
|
|
969
|
+
i("span", ft, d(e.$t(`message.dataupload.steps.${u}Step`)), 1)
|
|
941
970
|
], 2),
|
|
942
971
|
i("div", bt, [
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
e.activeStep ===
|
|
946
|
-
e.stepCounter < 5 ? (s(!0),
|
|
947
|
-
e.subSteps[
|
|
948
|
-
), (
|
|
949
|
-
i("div",
|
|
950
|
-
e.substepCounter >
|
|
972
|
+
c + 1 != Object.keys(e.steps).length - 1 && c >= e.stepCounter ? (s(), a("div", St)) : p("", !0),
|
|
973
|
+
c + 1 != Object.keys(e.steps).length - 1 && c < e.stepCounter ? (s(), a("div", yt)) : p("", !0),
|
|
974
|
+
e.activeStep === u ? (s(), a("div", Ct, [
|
|
975
|
+
e.stepCounter < 5 ? (s(!0), a(V, { key: 0 }, _(Object.keys(
|
|
976
|
+
e.subSteps[c]
|
|
977
|
+
), (f, b) => (s(), a("div", Vt, [
|
|
978
|
+
i("div", _t, [
|
|
979
|
+
e.substepCounter > b ? (s(), S(T, {
|
|
951
980
|
key: 0,
|
|
952
981
|
size: 20,
|
|
953
982
|
color: "#009FE3"
|
|
954
|
-
})) : (s(),
|
|
983
|
+
})) : (s(), a("img", {
|
|
955
984
|
key: 1,
|
|
956
|
-
src: e.getCircles(
|
|
985
|
+
src: e.getCircles(b),
|
|
957
986
|
alt: "circle"
|
|
958
|
-
}, null, 8,
|
|
959
|
-
|
|
987
|
+
}, null, 8, kt)),
|
|
988
|
+
b != Object.keys(e.subSteps[c]).length - 1 ? (s(), a("div", {
|
|
960
989
|
key: 2,
|
|
961
|
-
class:
|
|
962
|
-
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter >
|
|
990
|
+
class: C(["dpiV3_seperatorHorizontalStepperInner", {
|
|
991
|
+
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > b
|
|
963
992
|
}])
|
|
964
|
-
}, null, 2)) :
|
|
993
|
+
}, null, 2)) : p("", !0)
|
|
965
994
|
]),
|
|
966
995
|
i("div", Dt, [
|
|
967
996
|
i("span", {
|
|
968
|
-
class:
|
|
969
|
-
dpiV3_activeStepDesc:
|
|
970
|
-
formerlyVisitedStep: e.substepCounter >
|
|
997
|
+
class: C(["large-regular dpiV3_substepText", {
|
|
998
|
+
dpiV3_activeStepDesc: f === e.activeSubStep,
|
|
999
|
+
formerlyVisitedStep: e.substepCounter > b
|
|
971
1000
|
}])
|
|
972
|
-
},
|
|
973
|
-
`message.dataupload.steps.${
|
|
1001
|
+
}, d(e.$t(
|
|
1002
|
+
`message.dataupload.steps.${f.replace(
|
|
1003
|
+
/_\d+$/,
|
|
1004
|
+
""
|
|
1005
|
+
)}`
|
|
974
1006
|
)), 3)
|
|
975
1007
|
])
|
|
976
|
-
]))), 256)) :
|
|
977
|
-
])) :
|
|
1008
|
+
]))), 256)) : p("", !0)
|
|
1009
|
+
])) : p("", !0)
|
|
978
1010
|
])
|
|
979
1011
|
])
|
|
980
1012
|
], 10, ut)), [
|
|
981
|
-
[ie,
|
|
1013
|
+
[ie, u !== "Landing" && u !== "Additionals"]
|
|
982
1014
|
])), 128)),
|
|
983
|
-
e.activeStep === "Overview" ? (s(),
|
|
1015
|
+
e.activeStep === "Overview" ? (s(), a("li", It, t[14] || (t[14] = [
|
|
984
1016
|
i("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
|
|
985
|
-
]))) :
|
|
1017
|
+
]))) : p("", !0)
|
|
986
1018
|
])
|
|
987
|
-
])) : (s(),
|
|
1019
|
+
])) : (s(), a("div", Tt, [
|
|
988
1020
|
i("div", Pt, [
|
|
989
|
-
h(
|
|
1021
|
+
h(I)
|
|
990
1022
|
]),
|
|
991
1023
|
i("div", Lt, [
|
|
992
|
-
h(
|
|
1024
|
+
h(A, { "illustration-name": "start" })
|
|
993
1025
|
])
|
|
994
1026
|
]))
|
|
995
1027
|
])),
|
|
996
|
-
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(),
|
|
997
|
-
(s(!0),
|
|
998
|
-
key:
|
|
999
|
-
class:
|
|
1000
|
-
activeItem: e.activeStep ===
|
|
1001
|
-
inactiveStep:
|
|
1002
|
-
"has-errors": e.checkStepValidity(
|
|
1028
|
+
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), a("ul", wt, [
|
|
1029
|
+
(s(!0), a(V, null, _(e.steps, (n, u, c) => (s(), a("li", {
|
|
1030
|
+
key: n,
|
|
1031
|
+
class: C(["step", {
|
|
1032
|
+
activeItem: e.activeStep === u,
|
|
1033
|
+
inactiveStep: u != e.activeStep,
|
|
1034
|
+
"has-errors": e.checkStepValidity(u)
|
|
1003
1035
|
}]),
|
|
1004
|
-
"data-step-active": e.activeStep ===
|
|
1005
|
-
"data-step-valid":
|
|
1006
|
-
onClick: (
|
|
1007
|
-
e.activeStep =
|
|
1036
|
+
"data-step-active": e.activeStep === u,
|
|
1037
|
+
"data-step-valid": n.valid && n.errorCount === 0,
|
|
1038
|
+
onClick: (f) => {
|
|
1039
|
+
e.activeStep = u, e.update(), e.scrollToTop();
|
|
1008
1040
|
}
|
|
1009
1041
|
}, [
|
|
1010
|
-
i("div",
|
|
1011
|
-
i("div", Rt,
|
|
1012
|
-
e.checkStepValidity(
|
|
1042
|
+
i("div", At, [
|
|
1043
|
+
i("div", Rt, d(c + 1), 1),
|
|
1044
|
+
e.checkStepValidity(u) ? (s(), a("span", {
|
|
1013
1045
|
key: 0,
|
|
1014
1046
|
class: "step--errors",
|
|
1015
|
-
textContent:
|
|
1016
|
-
}, null, 8, Et)) :
|
|
1017
|
-
|
|
1047
|
+
textContent: d(n.errorCount + n.blockingCount)
|
|
1048
|
+
}, null, 8, Et)) : p("", !0),
|
|
1049
|
+
k(d(e.$t(`message.dataupload.steps.${u}Step`)), 1)
|
|
1018
1050
|
]),
|
|
1019
|
-
|
|
1020
|
-
], 10,
|
|
1021
|
-
e.activeStep === "Overview" ? (s(),
|
|
1051
|
+
c != Object.keys(e.steps).length ? (s(), a("div", Ut)) : p("", !0)
|
|
1052
|
+
], 10, $t))), 128)),
|
|
1053
|
+
e.activeStep === "Overview" ? (s(), a("li", Bt, t[15] || (t[15] = [
|
|
1022
1054
|
i("div", { class: "circle stepCircle" }, null, -1)
|
|
1023
|
-
]))) :
|
|
1024
|
-
])) :
|
|
1025
|
-
(s(!0),
|
|
1055
|
+
]))) : p("", !0)
|
|
1056
|
+
])) : p("", !0),
|
|
1057
|
+
(s(!0), a(V, null, _(e.getNavSteps(
|
|
1026
1058
|
e.$env.content.dataProviderInterface.specification
|
|
1027
|
-
)[e.property], (
|
|
1028
|
-
key:
|
|
1029
|
-
name:
|
|
1059
|
+
)[e.property], (n, u) => (s(), S(E, {
|
|
1060
|
+
key: u,
|
|
1061
|
+
name: n
|
|
1030
1062
|
}, {
|
|
1031
1063
|
default: ee(() => [
|
|
1032
|
-
(s(!0),
|
|
1033
|
-
e.getSchema(e.property).value[
|
|
1034
|
-
).length, (
|
|
1035
|
-
|
|
1064
|
+
(s(!0), a(V, null, _(Object.keys(
|
|
1065
|
+
e.getSchema(e.property).value[n]
|
|
1066
|
+
).length, (c, f) => te((s(), a("div", Ft, [
|
|
1067
|
+
n !== "Distributions" && n !== "Additionals" ? (s(), S(P, {
|
|
1036
1068
|
key: 0,
|
|
1037
|
-
schema: e.getSchema(e.property).value[
|
|
1069
|
+
schema: e.getSchema(e.property).value[n][f],
|
|
1038
1070
|
library: e.library,
|
|
1039
1071
|
"final-values": e.formValues,
|
|
1040
1072
|
onHandleNav: () => {
|
|
1041
1073
|
}
|
|
1042
|
-
}, null, 8, ["schema", "library", "final-values"])) :
|
|
1074
|
+
}, null, 8, ["schema", "library", "final-values"])) : p("", !0)
|
|
1043
1075
|
], 512)), [
|
|
1044
1076
|
[
|
|
1045
1077
|
ie,
|
|
1046
1078
|
Object.values(
|
|
1047
|
-
e.getSchema(e.property).value[
|
|
1048
|
-
)[0] === e.activeSubStep.replace(/_\d+$/, "") ||
|
|
1079
|
+
e.getSchema(e.property).value[n][f]
|
|
1080
|
+
)[0] === e.activeSubStep.replace(/_\d+$/, "") || n === "Landing"
|
|
1049
1081
|
]
|
|
1050
1082
|
])), 256)),
|
|
1051
|
-
e.activeStep === "Landing" ? (s(),
|
|
1083
|
+
e.activeStep === "Landing" ? (s(), a("div", Ot, [
|
|
1052
1084
|
h(m, {
|
|
1053
1085
|
"button-text": "Abbrechen",
|
|
1054
1086
|
size: "large",
|
|
1055
1087
|
variant: "tertiary",
|
|
1056
|
-
onClick: t[
|
|
1088
|
+
onClick: t[3] || (t[3] = (c) => {
|
|
1057
1089
|
e.activeSimpleModal = !0, console.log(e.activeSimpleModal);
|
|
1058
1090
|
})
|
|
1059
1091
|
}),
|
|
1060
1092
|
h(m, {
|
|
1061
1093
|
"button-text": "Datenbereitstellung starten",
|
|
1062
1094
|
size: "large",
|
|
1063
|
-
onClick: t[
|
|
1095
|
+
onClick: t[4] || (t[4] = (c) => e.navTrigger("next"))
|
|
1064
1096
|
})
|
|
1065
|
-
])) :
|
|
1066
|
-
e.activeStep === "ReviewAndPublish" ? (s(),
|
|
1097
|
+
])) : p("", !0),
|
|
1098
|
+
e.activeStep === "ReviewAndPublish" ? (s(), a("div", zt, [
|
|
1067
1099
|
i("div", Mt, [
|
|
1068
1100
|
h(m, {
|
|
1069
1101
|
"button-text": "Als Entwurf speichern",
|
|
1070
1102
|
size: "large",
|
|
1071
1103
|
variant: "secondary",
|
|
1072
|
-
onClick: t[
|
|
1104
|
+
onClick: t[5] || (t[5] = (c) => e.navTrigger("draft"))
|
|
1073
1105
|
}),
|
|
1074
1106
|
h(m, {
|
|
1075
1107
|
"button-text": "Veröffentlichen",
|
|
1076
1108
|
size: "large",
|
|
1077
|
-
onClick: t[
|
|
1109
|
+
onClick: t[6] || (t[6] = (c) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
|
|
1078
1110
|
})
|
|
1079
1111
|
])
|
|
1080
|
-
])) :
|
|
1081
|
-
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(),
|
|
1112
|
+
])) : p("", !0),
|
|
1113
|
+
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), a("div", {
|
|
1082
1114
|
key: 2,
|
|
1083
|
-
class:
|
|
1115
|
+
class: C(["dpiV3_CTA", {
|
|
1084
1116
|
dpiV3_activeInfobox: ["hvdPage", "visibilityPage"].includes(e.activeSubStep)
|
|
1085
1117
|
}])
|
|
1086
1118
|
}, [
|
|
@@ -1088,136 +1120,133 @@ function vi(e, t, a, p, u, D) {
|
|
|
1088
1120
|
"button-text": "Abbrechen",
|
|
1089
1121
|
size: "large",
|
|
1090
1122
|
variant: "tertiary",
|
|
1091
|
-
onClick: t[
|
|
1123
|
+
onClick: t[7] || (t[7] = (c) => e.activeSimpleModal = !0)
|
|
1092
1124
|
}),
|
|
1093
1125
|
i("div", jt, [
|
|
1094
|
-
e.activeStep !== "Landing" ? (s(),
|
|
1126
|
+
e.activeStep !== "Landing" ? (s(), S(m, {
|
|
1095
1127
|
key: 0,
|
|
1096
1128
|
"icon-start": "CaretLeft",
|
|
1097
1129
|
"button-text": "Zurück",
|
|
1098
1130
|
size: "large",
|
|
1099
1131
|
variant: "secondary",
|
|
1100
|
-
onClick: t[
|
|
1101
|
-
})) :
|
|
1132
|
+
onClick: t[8] || (t[8] = (c) => e.navTrigger("prev"))
|
|
1133
|
+
})) : p("", !0),
|
|
1102
1134
|
h(m, {
|
|
1103
1135
|
"icon-end": "CaretRight",
|
|
1104
1136
|
"button-text": "Weiter",
|
|
1105
1137
|
size: "large",
|
|
1106
|
-
onClick: t[
|
|
1107
|
-
var v, f, A, C;
|
|
1108
|
-
return ((A = (f = (v = e.formValues[e.activeStep]) == null ? void 0 : v[e.activeSubStep]) == null ? void 0 : f[0]) == null ? void 0 : A.isValid) === !0 || ((C = e.formValues[e.activeStep][e.activeSubStep]) == null ? void 0 : C.isValid) === !0 ? e.navTrigger("next") : (e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1, e.handleDistributionsValidation(e.activeSubStep));
|
|
1109
|
-
})
|
|
1138
|
+
onClick: t[9] || (t[9] = (c) => e.validateStep())
|
|
1110
1139
|
})
|
|
1111
1140
|
])
|
|
1112
|
-
], 2)) :
|
|
1113
|
-
e.activeSubStep.includes("hvdPage") ? (s(),
|
|
1141
|
+
], 2)) : p("", !0),
|
|
1142
|
+
e.activeSubStep.includes("hvdPage") ? (s(), a("div", Ht, [
|
|
1114
1143
|
i("div", Wt, [
|
|
1115
1144
|
i("div", qt, [
|
|
1116
|
-
h(
|
|
1145
|
+
h(L, {
|
|
1117
1146
|
size: 32,
|
|
1118
1147
|
color: "#009fe3"
|
|
1119
1148
|
}),
|
|
1120
|
-
i("div", Kt,
|
|
1149
|
+
i("div", Kt, d(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
|
|
1121
1150
|
]),
|
|
1122
1151
|
i("div", Zt, [
|
|
1123
|
-
i("div", Gt,
|
|
1152
|
+
i("div", Gt, d(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
|
|
1124
1153
|
i("div", Xt, [
|
|
1125
|
-
i("div", Nt, " 1. " +
|
|
1154
|
+
i("div", Nt, " 1. " + d(e.$t(
|
|
1126
1155
|
"message.dataupload.datasets.hvdPage.tips-question-1"
|
|
1127
1156
|
)), 1),
|
|
1128
1157
|
i("ul", Yt, [
|
|
1129
|
-
i("li", null,
|
|
1158
|
+
i("li", null, d(e.$t(
|
|
1130
1159
|
"message.dataupload.datasets.hvdPage.hvd-category-1"
|
|
1131
1160
|
)), 1),
|
|
1132
|
-
i("li", null,
|
|
1161
|
+
i("li", null, d(e.$t(
|
|
1133
1162
|
"message.dataupload.datasets.hvdPage.hvd-category-2"
|
|
1134
1163
|
)), 1),
|
|
1135
|
-
i("li", null,
|
|
1164
|
+
i("li", null, d(e.$t(
|
|
1136
1165
|
"message.dataupload.datasets.hvdPage.hvd-category-3"
|
|
1137
1166
|
)), 1),
|
|
1138
|
-
i("li", null,
|
|
1167
|
+
i("li", null, d(e.$t(
|
|
1139
1168
|
"message.dataupload.datasets.hvdPage.hvd-category-4"
|
|
1140
1169
|
)), 1),
|
|
1141
|
-
i("li", null,
|
|
1170
|
+
i("li", null, d(e.$t(
|
|
1142
1171
|
"message.dataupload.datasets.hvdPage.hvd-category-5"
|
|
1143
1172
|
)), 1),
|
|
1144
|
-
i("li", null,
|
|
1173
|
+
i("li", null, d(e.$t(
|
|
1145
1174
|
"message.dataupload.datasets.hvdPage.hvd-category-6"
|
|
1146
1175
|
)), 1)
|
|
1147
1176
|
])
|
|
1148
1177
|
]),
|
|
1149
1178
|
i("div", Jt, [
|
|
1150
|
-
i("div", Qt, " 2. " +
|
|
1179
|
+
i("div", Qt, " 2. " + d(e.$t(
|
|
1151
1180
|
"message.dataupload.datasets.hvdPage.tips-question-2"
|
|
1152
1181
|
)), 1),
|
|
1153
|
-
i("p", xt,
|
|
1182
|
+
i("p", xt, d(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
|
|
1154
1183
|
]),
|
|
1155
1184
|
i("div", ei, [
|
|
1156
|
-
i("div", ti, " 3. " +
|
|
1185
|
+
i("div", ti, " 3. " + d(e.$t(
|
|
1157
1186
|
"message.dataupload.datasets.hvdPage.tips-question-3"
|
|
1158
1187
|
)), 1),
|
|
1159
|
-
i("p", ii,
|
|
1188
|
+
i("p", ii, d(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
|
|
1160
1189
|
]),
|
|
1161
1190
|
i("div", si, [
|
|
1162
|
-
i("div", ai, " 4. " +
|
|
1191
|
+
i("div", ai, " 4. " + d(e.$t(
|
|
1163
1192
|
"message.dataupload.datasets.hvdPage.tips-question-4"
|
|
1164
1193
|
)), 1),
|
|
1165
|
-
i("p", oi,
|
|
1194
|
+
i("p", oi, d(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
|
|
1166
1195
|
])
|
|
1167
1196
|
])
|
|
1168
1197
|
])
|
|
1169
|
-
])) :
|
|
1170
|
-
e.activeSubStep.includes("visibilityPage") ? (s(),
|
|
1198
|
+
])) : p("", !0),
|
|
1199
|
+
e.activeSubStep.includes("visibilityPage") ? (s(), a("div", ri, [
|
|
1171
1200
|
i("div", li, [
|
|
1172
|
-
i("div",
|
|
1173
|
-
h(
|
|
1201
|
+
i("div", ni, [
|
|
1202
|
+
h(L, {
|
|
1174
1203
|
size: 32,
|
|
1175
1204
|
color: "#009fe3"
|
|
1176
1205
|
}),
|
|
1177
|
-
i("div",
|
|
1206
|
+
i("div", di, d(e.$t("message.dataupload.datasets.visibilityPage.info-title")), 1)
|
|
1178
1207
|
]),
|
|
1179
1208
|
i("div", ci, [
|
|
1180
1209
|
i("p", pi, [
|
|
1181
|
-
i("span", ui,
|
|
1182
|
-
|
|
1210
|
+
i("span", ui, d(e.$t("message.dataupload.datasets.visibilityPage.metadata-label")), 1),
|
|
1211
|
+
k(" " + d(e.$t("message.dataupload.datasets.visibilityPage.metadata-explanation")), 1)
|
|
1183
1212
|
]),
|
|
1184
1213
|
i("p", hi, [
|
|
1185
|
-
|
|
1186
|
-
i("span", mi,
|
|
1187
|
-
|
|
1214
|
+
k(d(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-prefix")) + " ", 1),
|
|
1215
|
+
i("span", mi, d(e.$t("message.dataupload.datasets.visibilityPage.distribution-label")), 1),
|
|
1216
|
+
k(" " + d(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-suffix")), 1)
|
|
1188
1217
|
])
|
|
1189
1218
|
])
|
|
1190
1219
|
])
|
|
1191
|
-
])) :
|
|
1192
|
-
|
|
1220
|
+
])) : p("", !0),
|
|
1221
|
+
n === "Distributions" ? (s(), S(R, {
|
|
1193
1222
|
key: 5,
|
|
1194
1223
|
schema: e.getSchema("distributions"),
|
|
1195
1224
|
values: e.formValues
|
|
1196
|
-
}, null, 8, ["schema", "values"])) :
|
|
1197
|
-
|
|
1198
|
-
t[
|
|
1199
|
-
|
|
1200
|
-
])) :
|
|
1225
|
+
}, null, 8, ["schema", "values"])) : p("", !0),
|
|
1226
|
+
n === "Mandatory" ? (s(), a("p", vi, [
|
|
1227
|
+
t[16] || (t[16] = i("b", null, "*", -1)),
|
|
1228
|
+
k(" " + d(e.$t("message.dataupload.info.mandatory")), 1)
|
|
1229
|
+
])) : p("", !0)
|
|
1201
1230
|
]),
|
|
1202
1231
|
_: 2
|
|
1203
1232
|
}, 1032, ["name"]))), 128))
|
|
1204
1233
|
]),
|
|
1205
1234
|
_: 1
|
|
1206
1235
|
}, 8, ["modelValue", "plugins"]),
|
|
1207
|
-
e.activeSimpleModal ? (s(),
|
|
1236
|
+
e.activeSimpleModal ? (s(), S(B, {
|
|
1208
1237
|
key: 0,
|
|
1209
1238
|
buttons: e.modalSimpleConf.button,
|
|
1210
1239
|
"header-text": e.modalSimpleConf.header,
|
|
1211
1240
|
text: e.modalSimpleConf.text,
|
|
1212
1241
|
action: e.modalSimpleConf.action,
|
|
1213
|
-
onClose: t[
|
|
1214
|
-
onActionHandling: t[
|
|
1215
|
-
}, null, 8, ["buttons", "header-text", "text", "action"])) :
|
|
1242
|
+
onClose: t[12] || (t[12] = (n) => e.activeSimpleModal = !1),
|
|
1243
|
+
onActionHandling: t[13] || (t[13] = (n) => e.gotToHome())
|
|
1244
|
+
}, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
|
|
1216
1245
|
])
|
|
1217
|
-
], 512)) :
|
|
1246
|
+
], 512)) : p("", !0)
|
|
1218
1247
|
]);
|
|
1219
1248
|
}
|
|
1220
|
-
const
|
|
1249
|
+
const ds = /* @__PURE__ */ Je(tt, [["render", gi]]);
|
|
1221
1250
|
export {
|
|
1222
|
-
|
|
1251
|
+
ds as default
|
|
1223
1252
|
};
|