@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.
Files changed (52) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +62 -56
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +58 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +65 -53
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +60 -56
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +67 -79
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +17 -17
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +411 -318
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +1 -1
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +88 -60
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +143 -126
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +64 -48
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +46 -41
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +227 -208
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +124 -106
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +113 -108
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +370 -360
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +464 -182
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +31 -26
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +2 -2
  36. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +95 -89
  37. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +139 -122
  38. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +618 -525
  39. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +56 -55
  40. package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +94 -89
  41. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +247 -238
  42. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +4 -4
  43. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +16 -17
  44. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +122 -104
  45. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
  46. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +332 -305
  47. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +89 -55
  48. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +243 -199
  49. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +24 -11
  50. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +14 -12
  51. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +317 -288
  52. 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 ge } from "@piveau/sdk-core/hubRepo";
5
- import { useWindowScroll as ve } from "@vueuse/core";
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 $, isNil as x } from "lodash-es";
8
- import { defineComponent as be, resolveComponent as g, createElementBlock as o, openBlock as s, createCommentVNode as n, createElementVNode as i, createVNode as h, createBlock as b, withModifiers as Se, withCtx as ee, Fragment as V, renderList as k, withDirectives as te, normalizeClass as y, toDisplayString as l, vShow as ie, createTextVNode as _, ref as se, markRaw as ye, getCurrentInstance as Ce } from "vue";
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 ke } from "vue-router";
10
+ import { useRoute as _e } from "vue-router";
11
11
  import { mapActions as ae, mapGetters as oe } from "vuex";
12
- import { useRuntimeEnv as _e } from "../../composables/useRuntimeEnv.js";
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 re from "../config/dcatapdeHappyFlow/converter.js";
18
+ import z from "../config/dcatapdeHappyFlow/converter.js";
19
19
  import we from "../HappyFlowComponents/img/Circle.svg.js";
20
- import Ae from "../HappyFlowComponents/img/CircleFill.svg.js";
21
- import $e from "../HappyFlowComponents/img/Selected1.svg.js";
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, Ae],
61
- images: [$e, Ee, Be, Oe, Me],
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) => $(this.formValues[e], "dct:title")
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 $(e, "dct:title") && e["dct:title"].length > 0 && $(e["dct:title"][0], "@value") && !x(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
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 a = [];
566
- if (Object.keys(this.steps).forEach((p, u) => {
567
- let D = {
568
- step: p,
569
- substeps: this.subSteps[u],
570
- substepCount: Object.keys(this.subSteps[u]).length
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
- a.push(D);
573
- }), e === "next" && (a[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === a[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = a[this.stepCounter].step, this.activeSubStep = Object.keys(
574
- a[this.stepCounter].substeps
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
- a[this.stepCounter].substeps
577
- )[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [{ isValid: !0 }])) : this.stepCounter != a.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
578
- a[this.stepCounter].substeps
579
- )[0], this.activeStep = a[this.stepCounter].step)), e === "prev" && (a[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
580
- a[this.stepCounter].substeps
581
- )[this.substepCounter]) : (this.stepCounter--, this.activeStep = a[this.stepCounter].step, this.substepCounter = Object.keys(a[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
582
- a[this.stepCounter].substeps
583
- )[this.substepCounter]) : (this.substepCounter = Object.keys(a[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
584
- a[this.stepCounter].substeps
585
- )[this.substepCounter], this.activeStep = a[this.stepCounter].step)), e === "publish") {
586
- let p = "auth/createDataset";
587
- re(
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((u) => {
595
+ ).then((r) => {
593
596
  this.dispatchDataToDPI(
594
- u.body,
595
- p,
596
- u.actionParams,
597
+ r.body,
598
+ l,
599
+ r.actionParams,
597
600
  "publish"
598
601
  );
599
- }).catch((u) => {
600
- console.error("Fehler beim Senden der Daten:", u);
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 p = "auth/createUserDraft";
609
- re(
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((u) => {
639
+ ).then((r) => {
615
640
  this.dispatchDataToDPI(
616
- u.body,
617
- p,
618
- u.actionParams,
641
+ r.body,
642
+ l,
643
+ r.actionParams,
619
644
  "draft"
620
645
  );
621
- }).catch((u) => {
622
- console.error("Fehler beim Senden der Daten:", u);
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 (a) {
630
- console.log(a);
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, a) => {
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, a) => {
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 e = this.getSchema(this.property).value, t = Object.keys(e).find(
650
- (a) => e[a].map((p) => p.name).includes("dct:issued") || e[a].map((p) => p.name).includes("dct:modified")
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" && t != null && e[t].forEach((a) => {
653
- (a.identifier === "issued" || a.identifier === "modified") && (a.children[1].props.else.validation = "", a.children[1].props.else["validation-visibility"] = "", a.children[1].props.then.validation = "", a.children[1].props.then["validation-visibility"] = "", a.children[1].props.then.validation = "", a.children[1].props.then["validation-visibility"] = "");
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((p, u) => {
659
- p.parentElement.parentElement.classList.contains(
683
+ document.querySelectorAll(".formkitProperty h4").forEach((r, g) => {
684
+ r.parentElement.parentElement.classList.contains(
660
685
  "formkitWrapRepeatable"
661
- ) || (u != 0 && u != 1 && u != 2 && u != 3 && p.nextElementSibling.classList.toggle("d-none"), p.addEventListener("click", () => {
662
- p.classList.toggle("dpiChevUp"), p.nextElementSibling.classList.toggle("d-none");
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
- !$(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);
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, a) {
713
- a((p) => {
714
- t.name && !t.name.startsWith("DataProviderInterface") && p.clearAll();
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(), a = _e(), {
720
- steps: p,
721
- activeStep: u,
722
- subSteps: D,
723
- visitedSteps: I,
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: T,
726
- stepPlugin: R,
727
- goToNextStep: P,
728
- goToPreviousStep: E
729
- } = Pe(), { formValues: L } = Te(), { t: w, te: U } = Ve(), B = se(!1), { translateSchema: F, createSchema: O, getSchema: r } = et({
730
- t: w,
731
- te: U
732
- }), c = () => {
733
- let { x: S, y: z } = ve({ behavior: "smooth" });
734
- z.value = 0;
735
- }, d = (S) => (p[S].errorCount > 0 || p[S].blockingCount > 0) && I.value.includes(S), v = ye({ OverviewPage: Ne }), f = se("");
736
- t.value && (u.value = "ReviewAndPublish", f.value = "reviewAndPublishPage");
737
- const { organization: A, catalogDataset: C, startFetchPermissions: le, authToken: de } = Le({
738
- keycloak: ((H = (j = a.authentication) == null ? void 0 : j.keycloak) == null ? void 0 : H.url) || "https://keycloak.twin.bydata.de",
739
- realm: ((q = (W = a.authentication) == null ? void 0 : W.keycloak) == null ? void 0 : q.realm) || "piveau",
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 ne = ke();
744
- async function ce(S, z, M, K) {
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:", S, z, "params:", M, K);
775
+ console.log("body:", y, F, "params:", O, K);
747
776
  try {
748
- await ge({
749
- baseUrl: a.api.hubUrl,
750
- id: M.id,
751
- catalogId: C.value || M.catalog || "",
752
- data: S,
753
- authToken: de.value,
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 = L.value) == null ? void 0 : Z.Discoverability) == null ? void 0 : G.visibilityPage) == null ? void 0 : X[0]) == null ? void 0 : N.visibility) || ne.query.visibility || "public",
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: p,
764
- visitedSteps: I,
765
- activeStep: u,
766
- activeSubStep: f,
767
- subSteps: D,
792
+ steps: l,
793
+ visitedSteps: D,
794
+ activeStep: r,
795
+ activeSubStep: b,
796
+ subSteps: g,
768
797
  previousStep: m,
769
- nextStep: T,
770
- stepPlugin: R,
771
- checkStepValidity: d,
772
- goToNextStep: P,
773
- goToPreviousStep: E,
774
- scrollToTop: c,
775
- library: v,
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: F,
778
- createSchema: O,
779
- getSchema: r,
806
+ translateSchema: U,
807
+ createSchema: B,
808
+ getSchema: n,
780
809
  dpiContext: e,
781
- formValues: L,
782
- activeSimpleModal: B,
783
- organization: A,
784
- catalogDataset: C,
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
- }, dt = {
824
+ }, nt = {
796
825
  key: 1,
797
826
  class: "draftCTA"
798
- }, nt = { key: 1 }, ct = {
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"], gt = ["src"], vt = ["textContent"], ft = { style: { "vertical-align": "middle" } }, bt = { class: "dpiV3_subStepWrapper" }, St = {
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" }, kt = { class: "dpiV3_subStepCircleWrap" }, _t = ["src"], Dt = { style: { height: "20px", display: "flex", "align-items": "center" } }, It = {
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
- }, At = ["data-step-active", "data-step-valid", "onClick"], $t = { class: "stepBubbleWrap" }, Rt = { class: "circle stepCircle" }, Et = ["textContent"], Ut = {
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" }, di = { class: "dpiV3_Icon_Title" }, ni = { 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" }, gi = {
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 vi(e, t, a, p, u, D) {
842
- const I = g("TextButtonSmall"), m = g("ButtonV3"), T = g("LogoV3"), R = g("PhNumberCircleFive"), P = g("PhCheckCircle"), E = g("Illustration"), L = g("FormKitSchema"), w = g("PhLightbulb"), U = g("DistributionInputPage"), B = g("InputPageStep"), F = g("FormKit"), O = g("ModalSimpleV3");
843
- return s(), o("div", it, [
844
- e.isInput ? (s(), o("div", st, [
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(F, {
875
+ h(U, {
847
876
  id: "dpiForm",
848
877
  modelValue: e.formValues,
849
- "onUpdate:modelValue": t[8] || (t[8] = (r) => e.formValues = r),
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[9] || (t[9] = Se(() => {
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(), o("div", ot, [
887
+ e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), a("div", ot, [
859
888
  i("div", rt, [
860
- h(I, {
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(), o("div", lt, [
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.todoHandler
872
- }, null, 8, ["onClick"]),
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.todoHandler
879
- }, null, 8, ["onClick"])
880
- ])) : (s(), o("div", dt, [
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[0] || (t[0] = (r) => e.navTrigger("publish"))
913
+ onClick: t[2] || (t[2] = (n) => e.navTrigger("publish"))
885
914
  })
886
915
  ]))
887
916
  ])
888
917
  ])
889
- ])) : (s(), o("div", nt, [
890
- e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), o("div", ct, [
891
- h(T),
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), o(V, null, k(e.steps, (r, c, d) => te((s(), o("li", {
894
- key: r,
895
- class: y(["dpiV3_step", {
896
- dpiV3_activeItem: e.activeStep === c,
897
- inactiveStep: c != e.activeStep,
898
- "has-errors": e.checkStepValidity(c)
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 === c,
901
- "data-step-valid": r.valid && r.errorCount === 0
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: y(["firstRowWrapper", {
906
- dpiV3_activeStepName: c === e.activeStep,
907
- formerlyVisitedStep: e.stepCounter > d,
908
- "copy-small-regular": e.stepCounter > d
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 === c && d < 5 ? (s(), o("img", {
940
+ e.activeStep === u && c < 5 ? (s(), a("img", {
912
941
  key: 0,
913
942
  class: "dpiV3_circle dpiV3_stepCircle",
914
- src: e.selectedImages[d - 1],
943
+ src: e.selectedImages[c - 1],
915
944
  alt: "Selected Icon"
916
- }, null, 8, mt)) : n("", !0),
917
- e.activeStep === c && d === 5 ? (s(), b(R, {
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
- })) : n("", !0),
923
- d < e.stepCounter ? (s(), b(P, {
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
- })) : n("", !0),
929
- d > e.stepCounter ? (s(), o("img", {
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[d - 1],
961
+ src: e.images[c - 1],
933
962
  alt: "Selected Icon"
934
- }, null, 8, gt)) : n("", !0),
935
- e.checkStepValidity(c) ? (s(), o("span", {
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: l(r.errorCount + r.blockingCount)
939
- }, null, 8, vt)) : n("", !0),
940
- i("span", ft, l(e.$t(`message.dataupload.steps.${c}Step`)), 1)
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
- d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), o("div", St)) : n("", !0),
944
- d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), o("div", yt)) : n("", !0),
945
- e.activeStep === c ? (s(), o("div", Ct, [
946
- e.stepCounter < 5 ? (s(!0), o(V, { key: 0 }, k(Object.keys(
947
- e.subSteps[d]
948
- ), (v, f) => (s(), o("div", Vt, [
949
- i("div", kt, [
950
- e.substepCounter > f ? (s(), b(P, {
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(), o("img", {
983
+ })) : (s(), a("img", {
955
984
  key: 1,
956
- src: e.getCircles(f),
985
+ src: e.getCircles(b),
957
986
  alt: "circle"
958
- }, null, 8, _t)),
959
- f != Object.keys(e.subSteps[d]).length - 1 ? (s(), o("div", {
987
+ }, null, 8, kt)),
988
+ b != Object.keys(e.subSteps[c]).length - 1 ? (s(), a("div", {
960
989
  key: 2,
961
- class: y(["dpiV3_seperatorHorizontalStepperInner", {
962
- dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > f
990
+ class: C(["dpiV3_seperatorHorizontalStepperInner", {
991
+ dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > b
963
992
  }])
964
- }, null, 2)) : n("", !0)
993
+ }, null, 2)) : p("", !0)
965
994
  ]),
966
995
  i("div", Dt, [
967
996
  i("span", {
968
- class: y(["large-regular dpiV3_substepText", {
969
- dpiV3_activeStepDesc: v === e.activeSubStep,
970
- formerlyVisitedStep: e.substepCounter > f
997
+ class: C(["large-regular dpiV3_substepText", {
998
+ dpiV3_activeStepDesc: f === e.activeSubStep,
999
+ formerlyVisitedStep: e.substepCounter > b
971
1000
  }])
972
- }, l(e.$t(
973
- `message.dataupload.steps.${v.replace(/_\d+$/, "")}`
1001
+ }, d(e.$t(
1002
+ `message.dataupload.steps.${f.replace(
1003
+ /_\d+$/,
1004
+ ""
1005
+ )}`
974
1006
  )), 3)
975
1007
  ])
976
- ]))), 256)) : n("", !0)
977
- ])) : n("", !0)
1008
+ ]))), 256)) : p("", !0)
1009
+ ])) : p("", !0)
978
1010
  ])
979
1011
  ])
980
1012
  ], 10, ut)), [
981
- [ie, c !== "Landing" && c !== "Additionals"]
1013
+ [ie, u !== "Landing" && u !== "Additionals"]
982
1014
  ])), 128)),
983
- e.activeStep === "Overview" ? (s(), o("li", It, t[12] || (t[12] = [
1015
+ e.activeStep === "Overview" ? (s(), a("li", It, t[14] || (t[14] = [
984
1016
  i("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
985
- ]))) : n("", !0)
1017
+ ]))) : p("", !0)
986
1018
  ])
987
- ])) : (s(), o("div", Tt, [
1019
+ ])) : (s(), a("div", Tt, [
988
1020
  i("div", Pt, [
989
- h(T)
1021
+ h(I)
990
1022
  ]),
991
1023
  i("div", Lt, [
992
- h(E, { "illustration-name": "start" })
1024
+ h(A, { "illustration-name": "start" })
993
1025
  ])
994
1026
  ]))
995
1027
  ])),
996
- e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), o("ul", wt, [
997
- (s(!0), o(V, null, k(e.steps, (r, c, d) => (s(), o("li", {
998
- key: r,
999
- class: y(["step", {
1000
- activeItem: e.activeStep === c,
1001
- inactiveStep: c != e.activeStep,
1002
- "has-errors": e.checkStepValidity(c)
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 === c,
1005
- "data-step-valid": r.valid && r.errorCount === 0,
1006
- onClick: (v) => {
1007
- e.activeStep = c, e.update(), e.scrollToTop();
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", $t, [
1011
- i("div", Rt, l(d + 1), 1),
1012
- e.checkStepValidity(c) ? (s(), o("span", {
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: l(r.errorCount + r.blockingCount)
1016
- }, null, 8, Et)) : n("", !0),
1017
- _(l(e.$t(`message.dataupload.steps.${c}Step`)), 1)
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
- d != Object.keys(e.steps).length ? (s(), o("div", Ut)) : n("", !0)
1020
- ], 10, At))), 128)),
1021
- e.activeStep === "Overview" ? (s(), o("li", Bt, t[13] || (t[13] = [
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
- ]))) : n("", !0)
1024
- ])) : n("", !0),
1025
- (s(!0), o(V, null, k(e.getNavSteps(
1055
+ ]))) : p("", !0)
1056
+ ])) : p("", !0),
1057
+ (s(!0), a(V, null, _(e.getNavSteps(
1026
1058
  e.$env.content.dataProviderInterface.specification
1027
- )[e.property], (r, c) => (s(), b(B, {
1028
- key: c,
1029
- name: r
1059
+ )[e.property], (n, u) => (s(), S(E, {
1060
+ key: u,
1061
+ name: n
1030
1062
  }, {
1031
1063
  default: ee(() => [
1032
- (s(!0), o(V, null, k(Object.keys(
1033
- e.getSchema(e.property).value[r]
1034
- ).length, (d, v) => te((s(), o("div", Ft, [
1035
- r !== "Distributions" && r !== "Additionals" ? (s(), b(L, {
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[r][v],
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"])) : n("", !0)
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[r][v]
1048
- )[0] === e.activeSubStep.replace(/_\d+$/, "") || r === "Landing"
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(), o("div", Ot, [
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[1] || (t[1] = (d) => {
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[2] || (t[2] = (d) => e.navTrigger("next"))
1095
+ onClick: t[4] || (t[4] = (c) => e.navTrigger("next"))
1064
1096
  })
1065
- ])) : n("", !0),
1066
- e.activeStep === "ReviewAndPublish" ? (s(), o("div", zt, [
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[3] || (t[3] = (d) => e.navTrigger("draft"))
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[4] || (t[4] = (d) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
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
- ])) : n("", !0),
1081
- e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), o("div", {
1112
+ ])) : p("", !0),
1113
+ e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), a("div", {
1082
1114
  key: 2,
1083
- class: y(["dpiV3_CTA", {
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[5] || (t[5] = (d) => e.activeSimpleModal = !0)
1123
+ onClick: t[7] || (t[7] = (c) => e.activeSimpleModal = !0)
1092
1124
  }),
1093
1125
  i("div", jt, [
1094
- e.activeStep !== "Landing" ? (s(), b(m, {
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[6] || (t[6] = (d) => e.navTrigger("prev"))
1101
- })) : n("", !0),
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[7] || (t[7] = (d) => {
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)) : n("", !0),
1113
- e.activeSubStep.includes("hvdPage") ? (s(), o("div", Ht, [
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(w, {
1145
+ h(L, {
1117
1146
  size: 32,
1118
1147
  color: "#009fe3"
1119
1148
  }),
1120
- i("div", Kt, l(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
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, l(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1152
+ i("div", Gt, d(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1124
1153
  i("div", Xt, [
1125
- i("div", Nt, " 1. " + l(e.$t(
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, l(e.$t(
1158
+ i("li", null, d(e.$t(
1130
1159
  "message.dataupload.datasets.hvdPage.hvd-category-1"
1131
1160
  )), 1),
1132
- i("li", null, l(e.$t(
1161
+ i("li", null, d(e.$t(
1133
1162
  "message.dataupload.datasets.hvdPage.hvd-category-2"
1134
1163
  )), 1),
1135
- i("li", null, l(e.$t(
1164
+ i("li", null, d(e.$t(
1136
1165
  "message.dataupload.datasets.hvdPage.hvd-category-3"
1137
1166
  )), 1),
1138
- i("li", null, l(e.$t(
1167
+ i("li", null, d(e.$t(
1139
1168
  "message.dataupload.datasets.hvdPage.hvd-category-4"
1140
1169
  )), 1),
1141
- i("li", null, l(e.$t(
1170
+ i("li", null, d(e.$t(
1142
1171
  "message.dataupload.datasets.hvdPage.hvd-category-5"
1143
1172
  )), 1),
1144
- i("li", null, l(e.$t(
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. " + l(e.$t(
1179
+ i("div", Qt, " 2. " + d(e.$t(
1151
1180
  "message.dataupload.datasets.hvdPage.tips-question-2"
1152
1181
  )), 1),
1153
- i("p", xt, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
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. " + l(e.$t(
1185
+ i("div", ti, " 3. " + d(e.$t(
1157
1186
  "message.dataupload.datasets.hvdPage.tips-question-3"
1158
1187
  )), 1),
1159
- i("p", ii, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
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. " + l(e.$t(
1191
+ i("div", ai, " 4. " + d(e.$t(
1163
1192
  "message.dataupload.datasets.hvdPage.tips-question-4"
1164
1193
  )), 1),
1165
- i("p", oi, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1194
+ i("p", oi, d(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1166
1195
  ])
1167
1196
  ])
1168
1197
  ])
1169
- ])) : n("", !0),
1170
- e.activeSubStep.includes("visibilityPage") ? (s(), o("div", ri, [
1198
+ ])) : p("", !0),
1199
+ e.activeSubStep.includes("visibilityPage") ? (s(), a("div", ri, [
1171
1200
  i("div", li, [
1172
- i("div", di, [
1173
- h(w, {
1201
+ i("div", ni, [
1202
+ h(L, {
1174
1203
  size: 32,
1175
1204
  color: "#009fe3"
1176
1205
  }),
1177
- i("div", ni, l(e.$t("message.dataupload.datasets.visibilityPage.info-title")), 1)
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, l(e.$t("message.dataupload.datasets.visibilityPage.metadata-label")), 1),
1182
- _(" " + l(e.$t("message.dataupload.datasets.visibilityPage.metadata-explanation")), 1)
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
- _(l(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-prefix")) + " ", 1),
1186
- i("span", mi, l(e.$t("message.dataupload.datasets.visibilityPage.distribution-label")), 1),
1187
- _(" " + l(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-suffix")), 1)
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
- ])) : n("", !0),
1192
- r === "Distributions" ? (s(), b(U, {
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"])) : n("", !0),
1197
- r === "Mandatory" ? (s(), o("p", gi, [
1198
- t[14] || (t[14] = i("b", null, "*", -1)),
1199
- _(" " + l(e.$t("message.dataupload.info.mandatory")), 1)
1200
- ])) : n("", !0)
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(), b(O, {
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[10] || (t[10] = (r) => e.activeSimpleModal = !1),
1214
- onActionHandling: t[11] || (t[11] = (r) => e.gotToHome())
1215
- }, null, 8, ["buttons", "header-text", "text", "action"])) : n("", !0)
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)) : n("", !0)
1246
+ ], 512)) : p("", !0)
1218
1247
  ]);
1219
1248
  }
1220
- const ns = /* @__PURE__ */ Je(tt, [["render", vi]]);
1249
+ const ds = /* @__PURE__ */ Je(tt, [["render", gi]]);
1221
1250
  export {
1222
- ns as default
1251
+ ds as default
1223
1252
  };