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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,40 +4,41 @@ import { PhNumberCircleFive as Z, PhCheckCircle as G, PhLightbulb as X } from "@
4
4
  import { useWindowScroll as Y } from "@vueuse/core";
5
5
  import J from "jquery";
6
6
  import { has as _, isNil as F } from "lodash-es";
7
- import { defineComponent as N, resolveComponent as f, createElementBlock as o, openBlock as a, createCommentVNode as d, createElementVNode as s, createVNode as h, createBlock as b, toDisplayString as u, withModifiers as Q, withCtx as U, Fragment as V, renderList as k, withDirectives as O, normalizeClass as C, 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 fe from "../HappyFlowComponents/img/Selected4_2.svg.js";
25
- import ve 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";
15
+ import re from "../HappyFlowComponents/img/Circle.svg.js";
16
+ import le from "../HappyFlowComponents/img/CircleFill.svg.js";
17
+ import de from "../HappyFlowComponents/img/Selected1.svg.js";
18
+ import ne from "../HappyFlowComponents/img/Selected1_2.svg.js";
19
+ import ce from "../HappyFlowComponents/img/Selected2.svg.js";
20
+ import pe from "../HappyFlowComponents/img/Selected2_2.svg.js";
21
+ import ue from "../HappyFlowComponents/img/Selected3.svg.js";
22
+ import he from "../HappyFlowComponents/img/Selected3_2.svg.js";
23
+ import me from "../HappyFlowComponents/img/Selected4.svg.js";
24
+ import ge from "../HappyFlowComponents/img/Selected4_2.svg.js";
25
+ import fe from "../HappyFlowComponents/img/Selected5.svg.js";
26
+ import ve from "../HappyFlowComponents/img/Selected5_2.svg.js";
27
+ import { eventBus as be } from "../HappyFlowComponents/services/eventBus.js";
28
+ import Se from "../HappyFlowComponents/ui/ButtonV3.vue.js";
29
+ import ye from "../HappyFlowComponents/ui/Illustration.vue.js";
30
+ import Ce from "../HappyFlowComponents/ui/LogoV3.vue.js";
31
+ import Ve from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
32
+ import ke from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
33
+ import De from "./DistributionInputPage.vue.js";
34
+ import Ie from "./OverviewPage.vue.js";
35
+ import _e from "./PropertyChooser.vue.js";
36
36
  /* empty css */
37
37
  /* empty css */
38
38
  /* empty css */
39
- import 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, ve],
56
+ circles: [re, le],
57
+ images: [de, ce, ue, me, fe],
57
58
  selectedImages: [
58
- ce,
59
- ue,
60
- me,
61
- fe,
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
- }), v = j("");
742
- return l.value && (i.value = "ReviewAndPublish", v.value = "reviewAndPublishPage"), {
743
- steps: t,
744
- visitedSteps: c,
745
- activeStep: i,
739
+ }, c = (f) => (i[f].errorCount > 0 || i[f].blockingCount > 0) && b.value.includes(f), l = x({ OverviewPage: Ie }), v = j("");
740
+ return t.value && (d.value = "ReviewAndPublish", v.value = "reviewAndPublishPage"), {
741
+ steps: i,
742
+ visitedSteps: b,
743
+ activeStep: d,
746
744
  activeSubStep: v,
747
- subSteps: 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,
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 = {
@@ -812,12 +810,11 @@ const Ae = N({
812
810
  key: 5,
813
811
  class: "p-1"
814
812
  };
815
- function Ut(e, t, i, n, c, S) {
816
- const y = f("TextButtonSmall"), g = f("ButtonV3"), D = f("LogoV3"), T = f("PhNumberCircleFive"), I = f("PhCheckCircle"), L = f("Illustration"), P = f("FormKitSchema"), w = f("PhLightbulb"), A = f("DistributionInputPage"), $ = f("InputPageStep"), R = f("FormKit"), E = f("ModalSimpleV3");
817
- return a(), o("div", $e, [
818
- e.isInput ? (a(), o("div", Re, [
819
- s("div", Ee, [
820
- s("details", null, u(e.formValues), 1),
813
+ function Ut(e, t, i, d, p, b) {
814
+ const y = g("TextButtonSmall"), m = g("ButtonV3"), D = g("LogoV3"), T = g("PhNumberCircleFive"), I = g("PhCheckCircle"), L = g("Illustration"), P = g("FormKitSchema"), w = g("PhLightbulb"), A = g("DistributionInputPage"), $ = g("InputPageStep"), R = g("FormKit"), E = g("ModalSimpleV3");
815
+ return s(), o("div", $e, [
816
+ e.isInput ? (s(), o("div", Re, [
817
+ a("div", Ee, [
821
818
  h(R, {
822
819
  id: "dpiForm",
823
820
  modelValue: e.formValues,
@@ -842,30 +839,30 @@ function Ut(e, t, i, n, c, S) {
842
839
  }, ["prevent"]))
843
840
  }, {
844
841
  default: U(() => [
845
- e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (a(), o("div", Be, [
846
- s("div", Fe, [
842
+ e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), o("div", Be, [
843
+ a("div", Fe, [
847
844
  h(y, {
848
845
  "button-text": "Übersicht",
849
846
  "icon-start": "CaretLeft",
850
847
  "icon-name": "caretLeft",
851
848
  onClick: e.gotToHome
852
849
  }, null, 8, ["onClick"]),
853
- s("div", null, [
854
- e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (a(), o("div", Ue, [
855
- h(g, {
850
+ a("div", null, [
851
+ e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), o("div", Ue, [
852
+ h(m, {
856
853
  "button-text": "Veröffentlichung aufheben",
857
854
  size: "large",
858
855
  onClick: e.todoHandler
859
856
  }, null, 8, ["onClick"]),
860
- h(g, {
857
+ h(m, {
861
858
  "button-text": "Veröffentlicht ansehen",
862
859
  variant: "secondary",
863
860
  size: "large",
864
861
  "icon-end": "Out",
865
862
  onClick: e.todoHandler
866
863
  }, null, 8, ["onClick"])
867
- ])) : (a(), o("div", Oe, [
868
- h(g, {
864
+ ])) : (s(), o("div", Oe, [
865
+ h(m, {
869
866
  "button-text": "Veröffentlichen",
870
867
  size: "large",
871
868
  onClick: t[0] || (t[0] = (r) => e.navTrigger("publish"))
@@ -873,160 +870,160 @@ function Ut(e, t, i, n, c, S) {
873
870
  ]))
874
871
  ])
875
872
  ])
876
- ])) : (a(), o("div", ze, [
877
- e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (a(), o("div", Me, [
873
+ ])) : (s(), o("div", ze, [
874
+ e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), o("div", Me, [
878
875
  h(D),
879
- s("ul", je, [
880
- (a(!0), o(V, null, k(e.steps, (r, p, l) => O((a(), o("li", {
876
+ a("ul", je, [
877
+ (s(!0), o(V, null, k(e.steps, (r, c, l) => O((s(), o("li", {
881
878
  key: r,
882
879
  class: C(["dpiV3_step", {
883
- dpiV3_activeItem: e.activeStep === p,
884
- inactiveStep: p != e.activeStep,
885
- "has-errors": e.checkStepValidity(p)
880
+ dpiV3_activeItem: e.activeStep === c,
881
+ inactiveStep: c != e.activeStep,
882
+ "has-errors": e.checkStepValidity(c)
886
883
  }]),
887
- "data-step-active": e.activeStep === p,
884
+ "data-step-active": e.activeStep === c,
888
885
  "data-step-valid": r.valid && r.errorCount === 0
889
886
  }, [
890
- s("div", We, [
891
- s("div", {
887
+ a("div", We, [
888
+ a("div", {
892
889
  class: C({
893
- dpiV3_activeStepName: p === e.activeStep,
890
+ dpiV3_activeStepName: c === e.activeStep,
894
891
  formerlyVisitedStep: e.stepCounter > l,
895
892
  "copy-small-regular": e.stepCounter > l
896
893
  })
897
894
  }, [
898
- e.activeStep === p && l < 5 ? (a(), o("img", {
895
+ e.activeStep === c && l < 5 ? (s(), o("img", {
899
896
  key: 0,
900
897
  class: "dpiV3_circle dpiV3_stepCircle",
901
898
  src: e.selectedImages[l - 1],
902
899
  alt: "Selected Icon"
903
- }, null, 8, qe)) : d("", !0),
904
- e.activeStep === p && l === 5 ? (a(), b(T, {
900
+ }, null, 8, qe)) : n("", !0),
901
+ e.activeStep === c && l === 5 ? (s(), S(T, {
905
902
  key: 1,
906
903
  size: 28,
907
904
  color: "#009FE3",
908
905
  weight: "fill"
909
- })) : d("", !0),
910
- l < e.stepCounter ? (a(), b(I, {
906
+ })) : n("", !0),
907
+ l < e.stepCounter ? (s(), S(I, {
911
908
  key: 2,
912
909
  size: 28,
913
910
  color: "#70CC44",
914
911
  weight: "fill"
915
- })) : d("", !0),
916
- l > e.stepCounter ? (a(), o("img", {
912
+ })) : n("", !0),
913
+ l > e.stepCounter ? (s(), o("img", {
917
914
  key: 3,
918
915
  class: "dpiV3_circle dpiV3_stepCircle",
919
916
  src: e.images[l - 1],
920
917
  alt: "Selected Icon"
921
- }, null, 8, Ke)) : d("", !0),
922
- e.checkStepValidity(p) ? (a(), o("span", {
918
+ }, null, 8, Ke)) : n("", !0),
919
+ e.checkStepValidity(c) ? (s(), o("span", {
923
920
  key: 4,
924
921
  class: "dpiV3_step--errors",
925
922
  textContent: u(r.errorCount + r.blockingCount)
926
- }, null, 8, Ze)) : d("", !0),
927
- s("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)
928
925
  ], 2),
929
- s("div", Xe, [
930
- l + 1 != Object.keys(e.steps).length - 1 && l >= e.stepCounter ? (a(), o("div", Ye)) : d("", !0),
931
- l + 1 != Object.keys(e.steps).length - 1 && l < e.stepCounter ? (a(), o("div", Je)) : d("", !0),
932
- e.activeStep === p ? (a(), o("div", Ne, [
933
- e.stepCounter < 5 ? (a(!0), o(V, { key: 0 }, k(Object.keys(
926
+ a("div", Xe, [
927
+ l + 1 != Object.keys(e.steps).length - 1 && l >= e.stepCounter ? (s(), o("div", Ye)) : n("", !0),
928
+ l + 1 != Object.keys(e.steps).length - 1 && l < e.stepCounter ? (s(), o("div", Je)) : n("", !0),
929
+ e.activeStep === c ? (s(), o("div", Ne, [
930
+ e.stepCounter < 5 ? (s(!0), o(V, { key: 0 }, k(Object.keys(
934
931
  e.subSteps[l]
935
- ), (v, m) => (a(), o("div", Qe, [
936
- s("div", xe, [
937
- e.substepCounter > m ? (a(), b(I, {
932
+ ), (v, f) => (s(), o("div", Qe, [
933
+ a("div", xe, [
934
+ e.substepCounter > f ? (s(), S(I, {
938
935
  key: 0,
939
936
  size: 20,
940
937
  color: "#009FE3"
941
- })) : (a(), o("img", {
938
+ })) : (s(), o("img", {
942
939
  key: 1,
943
- src: e.getCircles(m),
940
+ src: e.getCircles(f),
944
941
  alt: "circle"
945
942
  }, null, 8, et)),
946
- m != Object.keys(e.subSteps[l]).length - 1 ? (a(), o("div", {
943
+ f != Object.keys(e.subSteps[l]).length - 1 ? (s(), o("div", {
947
944
  key: 2,
948
945
  class: C(["dpiV3_seperatorHorizontalStepperInner", {
949
- dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > m
946
+ dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > f
950
947
  }])
951
- }, null, 2)) : d("", !0)
948
+ }, null, 2)) : n("", !0)
952
949
  ]),
953
- s("div", tt, [
954
- s("span", {
950
+ a("div", tt, [
951
+ a("span", {
955
952
  class: C(["large-regular dpiV3_substepText", {
956
953
  dpiV3_activeStepDesc: v === e.activeSubStep,
957
- formerlyVisitedStep: e.substepCounter > m
954
+ formerlyVisitedStep: e.substepCounter > f
958
955
  }])
959
956
  }, u(e.$t(
960
957
  `message.dataupload.steps.${v.replace(/_\d+$/, "")}`
961
958
  )), 3)
962
959
  ])
963
- ]))), 256)) : d("", !0)
964
- ])) : d("", !0)
960
+ ]))), 256)) : n("", !0)
961
+ ])) : n("", !0)
965
962
  ])
966
963
  ])
967
964
  ], 10, He)), [
968
- [z, p !== "Landing" && p !== "Additionals"]
965
+ [z, c !== "Landing" && c !== "Additionals"]
969
966
  ])), 128)),
970
- e.activeStep === "Overview" ? (a(), o("li", it, t[13] || (t[13] = [
971
- s("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
972
- ]))) : d("", !0)
967
+ e.activeStep === "Overview" ? (s(), o("li", it, t[13] || (t[13] = [
968
+ a("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
969
+ ]))) : n("", !0)
973
970
  ])
974
- ])) : (a(), o("div", st, [
975
- s("div", at, [
971
+ ])) : (s(), o("div", st, [
972
+ a("div", at, [
976
973
  h(D)
977
974
  ]),
978
- s("div", ot, [
975
+ a("div", ot, [
979
976
  h(L, { "illustration-name": "start" })
980
977
  ])
981
978
  ]))
982
979
  ])),
983
- e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (a(), o("ul", rt, [
984
- (a(!0), o(V, null, k(e.steps, (r, p, l) => (a(), o("li", {
980
+ e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), o("ul", rt, [
981
+ (s(!0), o(V, null, k(e.steps, (r, c, l) => (s(), o("li", {
985
982
  key: r,
986
983
  class: C(["step", {
987
- activeItem: e.activeStep === p,
988
- inactiveStep: p != e.activeStep,
989
- "has-errors": e.checkStepValidity(p)
984
+ activeItem: e.activeStep === c,
985
+ inactiveStep: c != e.activeStep,
986
+ "has-errors": e.checkStepValidity(c)
990
987
  }]),
991
- "data-step-active": e.activeStep === p,
988
+ "data-step-active": e.activeStep === c,
992
989
  "data-step-valid": r.valid && r.errorCount === 0,
993
990
  onClick: (v) => {
994
- e.activeStep = p, e.update(), e.scrollToTop();
991
+ e.activeStep = c, e.update(), e.scrollToTop();
995
992
  }
996
993
  }, [
997
- s("div", dt, [
998
- s("div", nt, u(l + 1), 1),
999
- e.checkStepValidity(p) ? (a(), o("span", {
994
+ a("div", dt, [
995
+ a("div", nt, u(l + 1), 1),
996
+ e.checkStepValidity(c) ? (s(), o("span", {
1000
997
  key: 0,
1001
998
  class: "step--errors",
1002
999
  textContent: u(r.errorCount + r.blockingCount)
1003
- }, null, 8, ct)) : d("", !0),
1004
- 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)
1005
1002
  ]),
1006
- l != Object.keys(e.steps).length ? (a(), o("div", pt)) : d("", !0)
1003
+ l != Object.keys(e.steps).length ? (s(), o("div", pt)) : n("", !0)
1007
1004
  ], 10, lt))), 128)),
1008
- e.activeStep === "Overview" ? (a(), o("li", ut, t[14] || (t[14] = [
1009
- s("div", { class: "circle stepCircle" }, null, -1)
1010
- ]))) : d("", !0)
1011
- ])) : d("", !0),
1012
- (a(!0), o(V, null, k(e.getNavSteps(
1005
+ e.activeStep === "Overview" ? (s(), o("li", ut, t[14] || (t[14] = [
1006
+ a("div", { class: "circle stepCircle" }, null, -1)
1007
+ ]))) : n("", !0)
1008
+ ])) : n("", !0),
1009
+ (s(!0), o(V, null, k(e.getNavSteps(
1013
1010
  e.$env.content.dataProviderInterface.specification
1014
- )[e.property], (r, p) => (a(), b($, {
1015
- key: p,
1011
+ )[e.property], (r, c) => (s(), S($, {
1012
+ key: c,
1016
1013
  name: r
1017
1014
  }, {
1018
1015
  default: U(() => [
1019
- (a(!0), o(V, null, k(Object.keys(
1016
+ (s(!0), o(V, null, k(Object.keys(
1020
1017
  e.getSchema(e.property).value[r]
1021
- ).length, (l, v) => O((a(), o("div", ht, [
1022
- r !== "Distributions" && r !== "Additionals" ? (a(), b(P, {
1018
+ ).length, (l, v) => O((s(), o("div", ht, [
1019
+ r !== "Distributions" && r !== "Additionals" ? (s(), S(P, {
1023
1020
  key: 0,
1024
1021
  schema: e.getSchema(e.property).value[r][v],
1025
1022
  library: e.library,
1026
1023
  "final-values": e.formValues,
1027
1024
  onHandleNav: () => {
1028
1025
  }
1029
- }, null, 8, ["schema", "library", "final-values"])) : d("", !0)
1026
+ }, null, 8, ["schema", "library", "final-values"])) : n("", !0)
1030
1027
  ], 512)), [
1031
1028
  [
1032
1029
  z,
@@ -1035,136 +1032,136 @@ function Ut(e, t, i, n, c, S) {
1035
1032
  )[0] === e.activeSubStep.replace(/_\d+$/, "") || r === "Landing"
1036
1033
  ]
1037
1034
  ])), 256)),
1038
- e.activeStep === "Landing" ? (a(), o("div", mt, [
1039
- h(g, {
1035
+ e.activeStep === "Landing" ? (s(), o("div", mt, [
1036
+ h(m, {
1040
1037
  "button-text": "Abbrechen",
1041
1038
  size: "large",
1042
1039
  variant: "tertiary",
1043
1040
  onClick: t[1] || (t[1] = (l) => e.activeSimpleModal = !0)
1044
1041
  }),
1045
- h(g, {
1042
+ h(m, {
1046
1043
  "button-text": "Datenbereitstellung starten",
1047
1044
  size: "large",
1048
1045
  onClick: t[2] || (t[2] = (l) => e.navTrigger("next"))
1049
1046
  })
1050
- ])) : d("", !0),
1051
- e.activeStep === "ReviewAndPublish" ? (a(), o("div", gt, [
1052
- s("div", ft, [
1053
- h(g, {
1047
+ ])) : n("", !0),
1048
+ e.activeStep === "ReviewAndPublish" ? (s(), o("div", gt, [
1049
+ a("div", ft, [
1050
+ h(m, {
1054
1051
  "button-text": "Als Entwurf speichern",
1055
1052
  size: "large",
1056
1053
  variant: "secondary",
1057
1054
  onClick: t[3] || (t[3] = (l) => e.navTrigger("draft"))
1058
1055
  }),
1059
- h(g, {
1056
+ h(m, {
1060
1057
  "button-text": "Veröffentlichen",
1061
1058
  size: "large",
1062
1059
  onClick: t[4] || (t[4] = (l) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
1063
1060
  })
1064
1061
  ])
1065
- ])) : d("", !0),
1066
- e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (a(), o("div", {
1062
+ ])) : n("", !0),
1063
+ e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), o("div", {
1067
1064
  key: 2,
1068
1065
  class: C(["dpiV3_CTA", {
1069
1066
  dpiV3_activeInfobox: e.activeSubStep.includes("hvdPage")
1070
1067
  }])
1071
1068
  }, [
1072
- h(g, {
1069
+ h(m, {
1073
1070
  "button-text": "Abbrechen",
1074
1071
  size: "large",
1075
1072
  variant: "tertiary",
1076
1073
  onClick: e.cancelWizard
1077
1074
  }, null, 8, ["onClick"]),
1078
- s("div", vt, [
1079
- e.activeStep !== "Landing" ? (a(), b(g, {
1075
+ a("div", vt, [
1076
+ e.activeStep !== "Landing" ? (s(), S(m, {
1080
1077
  key: 0,
1081
1078
  "icon-start": "CaretLeft",
1082
1079
  "button-text": "Zurück",
1083
1080
  size: "large",
1084
1081
  variant: "secondary",
1085
1082
  onClick: t[5] || (t[5] = (l) => e.navTrigger("prev"))
1086
- })) : d("", !0),
1087
- h(g, {
1083
+ })) : n("", !0),
1084
+ h(m, {
1088
1085
  "icon-end": "CaretRight",
1089
1086
  "button-text": "Weiter",
1090
1087
  size: "large",
1091
1088
  onClick: t[6] || (t[6] = (l) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("next") : (e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1, e.handleDistributionsValidation(e.activeSubStep)))
1092
1089
  })
1093
1090
  ])
1094
- ], 2)) : d("", !0),
1095
- e.activeSubStep.includes("hvdPage") ? (a(), o("div", bt, [
1096
- s("div", St, [
1097
- s("div", yt, [
1091
+ ], 2)) : n("", !0),
1092
+ e.activeSubStep.includes("hvdPage") ? (s(), o("div", bt, [
1093
+ a("div", St, [
1094
+ a("div", yt, [
1098
1095
  h(w, {
1099
1096
  size: 32,
1100
1097
  color: "#009fe3"
1101
1098
  }),
1102
- s("div", Ct, u(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
1099
+ a("div", Ct, u(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
1103
1100
  ]),
1104
- s("div", Vt, [
1105
- s("div", kt, u(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1106
- s("div", Dt, [
1107
- s("div", It, " 1. " + u(e.$t(
1101
+ a("div", Vt, [
1102
+ a("div", kt, u(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1103
+ a("div", Dt, [
1104
+ a("div", It, " 1. " + u(e.$t(
1108
1105
  "message.dataupload.datasets.hvdPage.tips-question-1"
1109
1106
  )), 1),
1110
- s("ul", _t, [
1111
- s("li", null, u(e.$t(
1107
+ a("ul", _t, [
1108
+ a("li", null, u(e.$t(
1112
1109
  "message.dataupload.datasets.hvdPage.hvd-category-1"
1113
1110
  )), 1),
1114
- s("li", null, u(e.$t(
1111
+ a("li", null, u(e.$t(
1115
1112
  "message.dataupload.datasets.hvdPage.hvd-category-2"
1116
1113
  )), 1),
1117
- s("li", null, u(e.$t(
1114
+ a("li", null, u(e.$t(
1118
1115
  "message.dataupload.datasets.hvdPage.hvd-category-3"
1119
1116
  )), 1),
1120
- s("li", null, u(e.$t(
1117
+ a("li", null, u(e.$t(
1121
1118
  "message.dataupload.datasets.hvdPage.hvd-category-4"
1122
1119
  )), 1),
1123
- s("li", null, u(e.$t(
1120
+ a("li", null, u(e.$t(
1124
1121
  "message.dataupload.datasets.hvdPage.hvd-category-5"
1125
1122
  )), 1),
1126
- s("li", null, u(e.$t(
1123
+ a("li", null, u(e.$t(
1127
1124
  "message.dataupload.datasets.hvdPage.hvd-category-6"
1128
1125
  )), 1)
1129
1126
  ])
1130
1127
  ]),
1131
- s("div", Tt, [
1132
- s("div", Lt, " 2. " + u(e.$t(
1128
+ a("div", Tt, [
1129
+ a("div", Lt, " 2. " + u(e.$t(
1133
1130
  "message.dataupload.datasets.hvdPage.tips-question-2"
1134
1131
  )), 1),
1135
- s("p", Pt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1132
+ a("p", Pt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1136
1133
  ]),
1137
- s("div", wt, [
1138
- s("div", At, " 3. " + u(e.$t(
1134
+ a("div", wt, [
1135
+ a("div", At, " 3. " + u(e.$t(
1139
1136
  "message.dataupload.datasets.hvdPage.tips-question-3"
1140
1137
  )), 1),
1141
- s("p", $t, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
1138
+ a("p", $t, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
1142
1139
  ]),
1143
- s("div", Rt, [
1144
- s("div", Et, " 4. " + u(e.$t(
1140
+ a("div", Rt, [
1141
+ a("div", Et, " 4. " + u(e.$t(
1145
1142
  "message.dataupload.datasets.hvdPage.tips-question-4"
1146
1143
  )), 1),
1147
- s("p", Bt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1144
+ a("p", Bt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1148
1145
  ])
1149
1146
  ])
1150
1147
  ])
1151
- ])) : d("", !0),
1152
- r === "Distributions" ? (a(), b(A, {
1148
+ ])) : n("", !0),
1149
+ r === "Distributions" ? (s(), S(A, {
1153
1150
  key: 4,
1154
1151
  schema: e.getSchema("distributions"),
1155
1152
  values: e.formValues
1156
- }, null, 8, ["schema", "values"])) : d("", !0),
1157
- r === "Mandatory" ? (a(), o("p", Ft, [
1158
- t[15] || (t[15] = s("b", null, "*", -1)),
1153
+ }, null, 8, ["schema", "values"])) : n("", !0),
1154
+ r === "Mandatory" ? (s(), o("p", Ft, [
1155
+ t[15] || (t[15] = a("b", null, "*", -1)),
1159
1156
  M(" " + u(e.$t("message.dataupload.info.mandatory")), 1)
1160
- ])) : d("", !0)
1157
+ ])) : n("", !0)
1161
1158
  ]),
1162
1159
  _: 2
1163
1160
  }, 1032, ["name"]))), 128))
1164
1161
  ]),
1165
1162
  _: 1
1166
1163
  }, 8, ["modelValue", "plugins"]),
1167
- e.activeSimpleModal ? (a(), b(E, {
1164
+ e.activeSimpleModal ? (s(), S(E, {
1168
1165
  key: 0,
1169
1166
  buttons: e.modalSimpleConf.button,
1170
1167
  "header-text": e.modalSimpleConf.header,
@@ -1172,12 +1169,12 @@ function Ut(e, t, i, n, c, S) {
1172
1169
  action: e.modalSimpleConf.action,
1173
1170
  onClose: t[11] || (t[11] = (r) => e.activeSimpleModal = !1),
1174
1171
  onActionHandling: t[12] || (t[12] = (r) => e.gotToHome())
1175
- }, null, 8, ["buttons", "header-text", "text", "action"])) : d("", !0)
1172
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : n("", !0)
1176
1173
  ])
1177
- ], 512)) : d("", !0)
1174
+ ], 512)) : n("", !0)
1178
1175
  ]);
1179
1176
  }
1180
- const Ii = /* @__PURE__ */ Le(Ae, [["render", Ut]]);
1177
+ const _i = /* @__PURE__ */ Te(Ae, [["render", Ut]]);
1181
1178
  export {
1182
- Ii as default
1179
+ _i as default
1183
1180
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.7",
4
+ "version": "0.1.0-beta.8",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css"