@piveau/dpi 0.1.0-beta.6 → 0.1.0-beta.8

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