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

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 (29) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DataProviderInterface.vue2.js +45 -40
  3. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +15 -15
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +15 -14
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +73 -32
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +26 -24
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +23 -22
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +88 -85
  9. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +382 -382
  10. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +183 -174
  11. package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
  12. package/dist/data-provider-interface/composables/useDpiEditMode.js +15 -13
  13. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +7 -7
  14. package/dist/data-provider-interface/store/index.js +32 -0
  15. package/dist/data-provider-interface/store/modules/authStore.js +301 -0
  16. package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
  17. package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
  18. package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
  19. package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
  20. package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
  21. package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
  22. package/dist/data-provider-interface/views/InputPage.vue.js +100 -99
  23. package/dist/index.js +4 -4
  24. package/dist/utils/draftApi.js +33 -0
  25. package/dist/utils/helpers.js +36 -22
  26. package/dist/utils/identifiersApi.js +16 -0
  27. package/dist/utils/jwt.js +7 -0
  28. package/package.json +6 -4
  29. package/dist/data-provider-interface/store/modules/formSchemaStore.js +0 -94
@@ -4,7 +4,7 @@ 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";
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
8
  import { useI18n as ie } from "vue-i18n";
9
9
  import { mapActions as H, mapGetters as W } from "vuex";
10
10
  import se from "../components/InputPageStep.vue.js";
@@ -21,8 +21,8 @@ import ue from "../HappyFlowComponents/img/Selected2_2.svg.js";
21
21
  import he from "../HappyFlowComponents/img/Selected3.svg.js";
22
22
  import me from "../HappyFlowComponents/img/Selected3_2.svg.js";
23
23
  import ge from "../HappyFlowComponents/img/Selected4.svg.js";
24
- import ve from "../HappyFlowComponents/img/Selected4_2.svg.js";
25
- import fe from "../HappyFlowComponents/img/Selected5.svg.js";
24
+ import fe from "../HappyFlowComponents/img/Selected4_2.svg.js";
25
+ import ve from "../HappyFlowComponents/img/Selected5.svg.js";
26
26
  import be from "../HappyFlowComponents/img/Selected5_2.svg.js";
27
27
  import { eventBus as Se } from "../HappyFlowComponents/services/eventBus.js";
28
28
  import ye from "../HappyFlowComponents/ui/ButtonV3.vue.js";
@@ -53,12 +53,12 @@ const Ae = N({
53
53
  data() {
54
54
  return {
55
55
  circles: [le, de],
56
- images: [ne, pe, he, ge, fe],
56
+ images: [ne, pe, he, ge, ve],
57
57
  selectedImages: [
58
58
  ce,
59
59
  ue,
60
60
  me,
61
- ve,
61
+ fe,
62
62
  be
63
63
  ],
64
64
  instance: te(),
@@ -738,12 +738,12 @@ const Ae = N({
738
738
  }, r = (m) => (t[m].errorCount > 0 || t[m].blockingCount > 0) && c.value.includes(m), p = x({ OverviewPage: _e }), l = ee(() => {
739
739
  var m;
740
740
  return !!((m = e.value.edit) != null && m.enabled);
741
- }), f = j("");
742
- return l.value && (i.value = "ReviewAndPublish", f.value = "reviewAndPublishPage"), {
741
+ }), v = j("");
742
+ return l.value && (i.value = "ReviewAndPublish", v.value = "reviewAndPublishPage"), {
743
743
  steps: t,
744
744
  visitedSteps: c,
745
745
  activeStep: i,
746
- activeSubStep: f,
746
+ activeSubStep: v,
747
747
  subSteps: n,
748
748
  previousStep: S,
749
749
  nextStep: y,
@@ -805,7 +805,7 @@ const Ae = N({
805
805
  }, gt = {
806
806
  key: 1,
807
807
  class: "dpiV3_CTA_RaP"
808
- }, vt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" }, bt = {
808
+ }, ft = { class: "dpiV3_CTANav" }, vt = { class: "dpiV3_CTANav" }, bt = {
809
809
  key: 3,
810
810
  class: "dpiV3_Content_InputPage"
811
811
  }, 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 = {
@@ -813,10 +813,11 @@ const Ae = N({
813
813
  class: "p-1"
814
814
  };
815
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");
817
- return s(), o("div", $e, [
818
- e.isInput ? (s(), o("div", Re, [
819
- a("div", Ee, [
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),
820
821
  h(R, {
821
822
  id: "dpiForm",
822
823
  modelValue: e.formValues,
@@ -841,16 +842,16 @@ function Ut(e, t, i, n, c, S) {
841
842
  }, ["prevent"]))
842
843
  }, {
843
844
  default: U(() => [
844
- e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), o("div", Be, [
845
- a("div", Fe, [
845
+ e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (a(), o("div", Be, [
846
+ s("div", Fe, [
846
847
  h(y, {
847
848
  "button-text": "Übersicht",
848
849
  "icon-start": "CaretLeft",
849
850
  "icon-name": "caretLeft",
850
851
  onClick: e.gotToHome
851
852
  }, null, 8, ["onClick"]),
852
- a("div", null, [
853
- e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), o("div", Ue, [
853
+ s("div", null, [
854
+ e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (a(), o("div", Ue, [
854
855
  h(g, {
855
856
  "button-text": "Veröffentlichung aufheben",
856
857
  size: "large",
@@ -863,7 +864,7 @@ function Ut(e, t, i, n, c, S) {
863
864
  "icon-end": "Out",
864
865
  onClick: e.todoHandler
865
866
  }, null, 8, ["onClick"])
866
- ])) : (s(), o("div", Oe, [
867
+ ])) : (a(), o("div", Oe, [
867
868
  h(g, {
868
869
  "button-text": "Veröffentlichen",
869
870
  size: "large",
@@ -872,11 +873,11 @@ function Ut(e, t, i, n, c, S) {
872
873
  ]))
873
874
  ])
874
875
  ])
875
- ])) : (s(), o("div", ze, [
876
- e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), o("div", Me, [
876
+ ])) : (a(), o("div", ze, [
877
+ e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (a(), o("div", Me, [
877
878
  h(D),
878
- a("ul", je, [
879
- (s(!0), o(V, null, k(e.steps, (r, p, l) => O((s(), o("li", {
879
+ s("ul", je, [
880
+ (a(!0), o(V, null, k(e.steps, (r, p, l) => O((a(), o("li", {
880
881
  key: r,
881
882
  class: C(["dpiV3_step", {
882
883
  dpiV3_activeItem: e.activeStep === p,
@@ -886,77 +887,77 @@ function Ut(e, t, i, n, c, S) {
886
887
  "data-step-active": e.activeStep === p,
887
888
  "data-step-valid": r.valid && r.errorCount === 0
888
889
  }, [
889
- a("div", We, [
890
- a("div", {
890
+ s("div", We, [
891
+ s("div", {
891
892
  class: C({
892
893
  dpiV3_activeStepName: p === e.activeStep,
893
894
  formerlyVisitedStep: e.stepCounter > l,
894
895
  "copy-small-regular": e.stepCounter > l
895
896
  })
896
897
  }, [
897
- e.activeStep === p && l < 5 ? (s(), o("img", {
898
+ e.activeStep === p && l < 5 ? (a(), o("img", {
898
899
  key: 0,
899
900
  class: "dpiV3_circle dpiV3_stepCircle",
900
901
  src: e.selectedImages[l - 1],
901
902
  alt: "Selected Icon"
902
903
  }, null, 8, qe)) : d("", !0),
903
- e.activeStep === p && l === 5 ? (s(), b(T, {
904
+ e.activeStep === p && l === 5 ? (a(), b(T, {
904
905
  key: 1,
905
906
  size: 28,
906
907
  color: "#009FE3",
907
908
  weight: "fill"
908
909
  })) : d("", !0),
909
- l < e.stepCounter ? (s(), b(I, {
910
+ l < e.stepCounter ? (a(), b(I, {
910
911
  key: 2,
911
912
  size: 28,
912
913
  color: "#70CC44",
913
914
  weight: "fill"
914
915
  })) : d("", !0),
915
- l > e.stepCounter ? (s(), o("img", {
916
+ l > e.stepCounter ? (a(), o("img", {
916
917
  key: 3,
917
918
  class: "dpiV3_circle dpiV3_stepCircle",
918
919
  src: e.images[l - 1],
919
920
  alt: "Selected Icon"
920
921
  }, null, 8, Ke)) : d("", !0),
921
- e.checkStepValidity(p) ? (s(), o("span", {
922
+ e.checkStepValidity(p) ? (a(), o("span", {
922
923
  key: 4,
923
924
  class: "dpiV3_step--errors",
924
925
  textContent: u(r.errorCount + r.blockingCount)
925
926
  }, null, 8, Ze)) : d("", !0),
926
- a("span", Ge, u(e.$t(`message.dataupload.steps.${p}Step`)), 1)
927
+ s("span", Ge, u(e.$t(`message.dataupload.steps.${p}Step`)), 1)
927
928
  ], 2),
928
- 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, [
932
- e.stepCounter < 5 ? (s(!0), o(V, { key: 0 }, k(Object.keys(
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(
933
934
  e.subSteps[l]
934
- ), (f, m) => (s(), o("div", Qe, [
935
- a("div", xe, [
936
- e.substepCounter > m ? (s(), b(I, {
935
+ ), (v, m) => (a(), o("div", Qe, [
936
+ s("div", xe, [
937
+ e.substepCounter > m ? (a(), b(I, {
937
938
  key: 0,
938
939
  size: 20,
939
940
  color: "#009FE3"
940
- })) : (s(), o("img", {
941
+ })) : (a(), o("img", {
941
942
  key: 1,
942
943
  src: e.getCircles(m),
943
944
  alt: "circle"
944
945
  }, null, 8, et)),
945
- m != Object.keys(e.subSteps[l]).length - 1 ? (s(), o("div", {
946
+ m != Object.keys(e.subSteps[l]).length - 1 ? (a(), o("div", {
946
947
  key: 2,
947
948
  class: C(["dpiV3_seperatorHorizontalStepperInner", {
948
949
  dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > m
949
950
  }])
950
951
  }, null, 2)) : d("", !0)
951
952
  ]),
952
- a("div", tt, [
953
- a("span", {
953
+ s("div", tt, [
954
+ s("span", {
954
955
  class: C(["large-regular dpiV3_substepText", {
955
- dpiV3_activeStepDesc: f === e.activeSubStep,
956
+ dpiV3_activeStepDesc: v === e.activeSubStep,
956
957
  formerlyVisitedStep: e.substepCounter > m
957
958
  }])
958
959
  }, u(e.$t(
959
- `message.dataupload.steps.${f.replace(/_\d+$/, "")}`
960
+ `message.dataupload.steps.${v.replace(/_\d+$/, "")}`
960
961
  )), 3)
961
962
  ])
962
963
  ]))), 256)) : d("", !0)
@@ -966,21 +967,21 @@ function Ut(e, t, i, n, c, S) {
966
967
  ], 10, He)), [
967
968
  [z, p !== "Landing" && p !== "Additionals"]
968
969
  ])), 128)),
969
- e.activeStep === "Overview" ? (s(), o("li", it, t[13] || (t[13] = [
970
- a("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
970
+ e.activeStep === "Overview" ? (a(), o("li", it, t[13] || (t[13] = [
971
+ s("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
971
972
  ]))) : d("", !0)
972
973
  ])
973
- ])) : (s(), o("div", st, [
974
- a("div", at, [
974
+ ])) : (a(), o("div", st, [
975
+ s("div", at, [
975
976
  h(D)
976
977
  ]),
977
- a("div", ot, [
978
+ s("div", ot, [
978
979
  h(L, { "illustration-name": "start" })
979
980
  ])
980
981
  ]))
981
982
  ])),
982
- 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", {
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", {
984
985
  key: r,
985
986
  class: C(["step", {
986
987
  activeItem: e.activeStep === p,
@@ -989,38 +990,38 @@ function Ut(e, t, i, n, c, S) {
989
990
  }]),
990
991
  "data-step-active": e.activeStep === p,
991
992
  "data-step-valid": r.valid && r.errorCount === 0,
992
- onClick: (f) => {
993
+ onClick: (v) => {
993
994
  e.activeStep = p, e.update(), e.scrollToTop();
994
995
  }
995
996
  }, [
996
- a("div", dt, [
997
- a("div", nt, u(l + 1), 1),
998
- e.checkStepValidity(p) ? (s(), o("span", {
997
+ s("div", dt, [
998
+ s("div", nt, u(l + 1), 1),
999
+ e.checkStepValidity(p) ? (a(), o("span", {
999
1000
  key: 0,
1000
1001
  class: "step--errors",
1001
1002
  textContent: u(r.errorCount + r.blockingCount)
1002
1003
  }, null, 8, ct)) : d("", !0),
1003
1004
  M(u(e.$t(`message.dataupload.steps.${p}Step`)), 1)
1004
1005
  ]),
1005
- l != Object.keys(e.steps).length ? (s(), o("div", pt)) : d("", !0)
1006
+ l != Object.keys(e.steps).length ? (a(), o("div", pt)) : d("", !0)
1006
1007
  ], 10, lt))), 128)),
1007
- e.activeStep === "Overview" ? (s(), o("li", ut, t[14] || (t[14] = [
1008
- a("div", { class: "circle stepCircle" }, null, -1)
1008
+ e.activeStep === "Overview" ? (a(), o("li", ut, t[14] || (t[14] = [
1009
+ s("div", { class: "circle stepCircle" }, null, -1)
1009
1010
  ]))) : d("", !0)
1010
1011
  ])) : d("", !0),
1011
- (s(!0), o(V, null, k(e.getNavSteps(
1012
+ (a(!0), o(V, null, k(e.getNavSteps(
1012
1013
  e.$env.content.dataProviderInterface.specification
1013
- )[e.property], (r, p) => (s(), b($, {
1014
+ )[e.property], (r, p) => (a(), b($, {
1014
1015
  key: p,
1015
1016
  name: r
1016
1017
  }, {
1017
1018
  default: U(() => [
1018
- (s(!0), o(V, null, k(Object.keys(
1019
+ (a(!0), o(V, null, k(Object.keys(
1019
1020
  e.getSchema(e.property).value[r]
1020
- ).length, (l, f) => O((s(), o("div", ht, [
1021
- r !== "Distributions" && r !== "Additionals" ? (s(), b(P, {
1021
+ ).length, (l, v) => O((a(), o("div", ht, [
1022
+ r !== "Distributions" && r !== "Additionals" ? (a(), b(P, {
1022
1023
  key: 0,
1023
- schema: e.getSchema(e.property).value[r][f],
1024
+ schema: e.getSchema(e.property).value[r][v],
1024
1025
  library: e.library,
1025
1026
  "final-values": e.formValues,
1026
1027
  onHandleNav: () => {
@@ -1030,11 +1031,11 @@ function Ut(e, t, i, n, c, S) {
1030
1031
  [
1031
1032
  z,
1032
1033
  Object.values(
1033
- e.getSchema(e.property).value[r][f]
1034
+ e.getSchema(e.property).value[r][v]
1034
1035
  )[0] === e.activeSubStep.replace(/_\d+$/, "") || r === "Landing"
1035
1036
  ]
1036
1037
  ])), 256)),
1037
- e.activeStep === "Landing" ? (s(), o("div", mt, [
1038
+ e.activeStep === "Landing" ? (a(), o("div", mt, [
1038
1039
  h(g, {
1039
1040
  "button-text": "Abbrechen",
1040
1041
  size: "large",
@@ -1047,8 +1048,8 @@ function Ut(e, t, i, n, c, S) {
1047
1048
  onClick: t[2] || (t[2] = (l) => e.navTrigger("next"))
1048
1049
  })
1049
1050
  ])) : d("", !0),
1050
- e.activeStep === "ReviewAndPublish" ? (s(), o("div", gt, [
1051
- a("div", vt, [
1051
+ e.activeStep === "ReviewAndPublish" ? (a(), o("div", gt, [
1052
+ s("div", ft, [
1052
1053
  h(g, {
1053
1054
  "button-text": "Als Entwurf speichern",
1054
1055
  size: "large",
@@ -1062,7 +1063,7 @@ function Ut(e, t, i, n, c, S) {
1062
1063
  })
1063
1064
  ])
1064
1065
  ])) : d("", !0),
1065
- e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), o("div", {
1066
+ e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (a(), o("div", {
1066
1067
  key: 2,
1067
1068
  class: C(["dpiV3_CTA", {
1068
1069
  dpiV3_activeInfobox: e.activeSubStep.includes("hvdPage")
@@ -1074,8 +1075,8 @@ function Ut(e, t, i, n, c, S) {
1074
1075
  variant: "tertiary",
1075
1076
  onClick: e.cancelWizard
1076
1077
  }, null, 8, ["onClick"]),
1077
- a("div", ft, [
1078
- e.activeStep !== "Landing" ? (s(), b(g, {
1078
+ s("div", vt, [
1079
+ e.activeStep !== "Landing" ? (a(), b(g, {
1079
1080
  key: 0,
1080
1081
  "icon-start": "CaretLeft",
1081
1082
  "button-text": "Zurück",
@@ -1091,70 +1092,70 @@ function Ut(e, t, i, n, c, S) {
1091
1092
  })
1092
1093
  ])
1093
1094
  ], 2)) : d("", !0),
1094
- e.activeSubStep.includes("hvdPage") ? (s(), o("div", bt, [
1095
- a("div", St, [
1096
- a("div", yt, [
1095
+ e.activeSubStep.includes("hvdPage") ? (a(), o("div", bt, [
1096
+ s("div", St, [
1097
+ s("div", yt, [
1097
1098
  h(w, {
1098
1099
  size: 32,
1099
1100
  color: "#009fe3"
1100
1101
  }),
1101
- a("div", Ct, u(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
1102
+ s("div", Ct, u(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
1102
1103
  ]),
1103
- a("div", Vt, [
1104
- a("div", kt, u(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1105
- a("div", Dt, [
1106
- a("div", It, " 1. " + u(e.$t(
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(
1107
1108
  "message.dataupload.datasets.hvdPage.tips-question-1"
1108
1109
  )), 1),
1109
- a("ul", _t, [
1110
- a("li", null, u(e.$t(
1110
+ s("ul", _t, [
1111
+ s("li", null, u(e.$t(
1111
1112
  "message.dataupload.datasets.hvdPage.hvd-category-1"
1112
1113
  )), 1),
1113
- a("li", null, u(e.$t(
1114
+ s("li", null, u(e.$t(
1114
1115
  "message.dataupload.datasets.hvdPage.hvd-category-2"
1115
1116
  )), 1),
1116
- a("li", null, u(e.$t(
1117
+ s("li", null, u(e.$t(
1117
1118
  "message.dataupload.datasets.hvdPage.hvd-category-3"
1118
1119
  )), 1),
1119
- a("li", null, u(e.$t(
1120
+ s("li", null, u(e.$t(
1120
1121
  "message.dataupload.datasets.hvdPage.hvd-category-4"
1121
1122
  )), 1),
1122
- a("li", null, u(e.$t(
1123
+ s("li", null, u(e.$t(
1123
1124
  "message.dataupload.datasets.hvdPage.hvd-category-5"
1124
1125
  )), 1),
1125
- a("li", null, u(e.$t(
1126
+ s("li", null, u(e.$t(
1126
1127
  "message.dataupload.datasets.hvdPage.hvd-category-6"
1127
1128
  )), 1)
1128
1129
  ])
1129
1130
  ]),
1130
- a("div", Tt, [
1131
- a("div", Lt, " 2. " + u(e.$t(
1131
+ s("div", Tt, [
1132
+ s("div", Lt, " 2. " + u(e.$t(
1132
1133
  "message.dataupload.datasets.hvdPage.tips-question-2"
1133
1134
  )), 1),
1134
- a("p", Pt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1135
+ s("p", Pt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1135
1136
  ]),
1136
- a("div", wt, [
1137
- a("div", At, " 3. " + u(e.$t(
1137
+ s("div", wt, [
1138
+ s("div", At, " 3. " + u(e.$t(
1138
1139
  "message.dataupload.datasets.hvdPage.tips-question-3"
1139
1140
  )), 1),
1140
- a("p", $t, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
1141
+ s("p", $t, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
1141
1142
  ]),
1142
- a("div", Rt, [
1143
- a("div", Et, " 4. " + u(e.$t(
1143
+ s("div", Rt, [
1144
+ s("div", Et, " 4. " + u(e.$t(
1144
1145
  "message.dataupload.datasets.hvdPage.tips-question-4"
1145
1146
  )), 1),
1146
- a("p", Bt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1147
+ s("p", Bt, u(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1147
1148
  ])
1148
1149
  ])
1149
1150
  ])
1150
1151
  ])) : d("", !0),
1151
- r === "Distributions" ? (s(), b(A, {
1152
+ r === "Distributions" ? (a(), b(A, {
1152
1153
  key: 4,
1153
1154
  schema: e.getSchema("distributions"),
1154
1155
  values: e.formValues
1155
1156
  }, null, 8, ["schema", "values"])) : d("", !0),
1156
- r === "Mandatory" ? (s(), o("p", Ft, [
1157
- t[15] || (t[15] = a("b", null, "*", -1)),
1157
+ r === "Mandatory" ? (a(), o("p", Ft, [
1158
+ t[15] || (t[15] = s("b", null, "*", -1)),
1158
1159
  M(" " + u(e.$t("message.dataupload.info.mandatory")), 1)
1159
1160
  ])) : d("", !0)
1160
1161
  ]),
@@ -1163,7 +1164,7 @@ function Ut(e, t, i, n, c, S) {
1163
1164
  ]),
1164
1165
  _: 1
1165
1166
  }, 8, ["modelValue", "plugins"]),
1166
- e.activeSimpleModal ? (s(), b(E, {
1167
+ e.activeSimpleModal ? (a(), b(E, {
1167
1168
  key: 0,
1168
1169
  buttons: e.modalSimpleConf.button,
1169
1170
  "header-text": e.modalSimpleConf.header,
package/dist/index.js CHANGED
@@ -13,7 +13,6 @@ import s from "./data-provider-interface/DataProviderInterface.vue.js";
13
13
  import u from "./data-provider-interface/DPIMenu.vue.js";
14
14
  import { default as wo } from "./data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js";
15
15
  import { default as Oo } from "./data-provider-interface/HappyFlowComponents/DPIHome.vue.js";
16
- import { default as Mo } from "./data-provider-interface/store/dpiStore.js";
17
16
  import x from "./data-provider-interface/views/DistributionOverview.vue.js";
18
17
  import c from "./data-provider-interface/views/DraftsPage.vue.js";
19
18
  import l from "./data-provider-interface/views/InputPage.vue.js";
@@ -25,7 +24,8 @@ import C from "./data-provider-interface/views/OverviewPage/DistributionOverview
25
24
  import P from "./data-provider-interface/views/OverviewPage/PropertyEntry.vue.js";
26
25
  import I from "./data-provider-interface/views/UserCataloguesPage.vue.js";
27
26
  import w from "./data-provider-interface/views/UserProfilePage.vue.js";
28
- import { config as ho } from "./data-provider-interface/config/dpi-spec-config.js";
27
+ import { config as Mo } from "./data-provider-interface/config/dpi-spec-config.js";
28
+ import { default as ho } from "./data-provider-interface/store/index.js";
29
29
  import { injectionKey as Bo, userConfigShimPlugin as Lo } from "./data-provider-interface/plugins/userConfigShimPlugin.js";
30
30
  import { dpiContextKey as Fo, setupDpiContext as To, useDpiContext as _o } from "./data-provider-interface/composables/useDpiContext.js";
31
31
  import { useDpiStepper as Ao } from "./data-provider-interface/composables/useDpiStepper.js";
@@ -108,12 +108,12 @@ export {
108
108
  I as UserCataloguesPage,
109
109
  w as UserProfilePage,
110
110
  Fo as dpiContextKey,
111
- ho as dpiSpecConfig,
111
+ Mo as dpiSpecConfig,
112
112
  Bo as injectionKeyRuntimeConfig,
113
113
  vo as inputDefinitions,
114
114
  lo as registerComponents,
115
115
  To as setupDpiContext,
116
- Mo as store,
116
+ ho as store,
117
117
  _o as useDpiContext,
118
118
  ko as useDpiEditMode,
119
119
  Ao as useDpiStepper,
@@ -0,0 +1,33 @@
1
+ import p from "axios";
2
+ const $ = ({ baseURL: n, authToken: D }) => {
3
+ const o = n.endsWith("/") ? "" : "/", s = p.create({
4
+ baseURL: `${n}${o}drafts`,
5
+ headers: {
6
+ "Content-Type": "text/turtle",
7
+ Authorization: `Bearer ${D}`
8
+ }
9
+ });
10
+ return {
11
+ createDatasetDraft: ({ id: t, catalogue: a, body: e }) => s.put(`/datasets/${t}`, e, {
12
+ headers: { "Content-Type": "application/json" },
13
+ params: { catalogue: a }
14
+ }),
15
+ getAllDatasetDrafts: () => s.get("/datasets"),
16
+ getDatasetDrafts: ({ id: t = "", catalogue: a = "", filterByProvider: e = !1 }) => {
17
+ const r = t ? `/${t}` : "";
18
+ return s.get(`/datasets${r}`, { params: { catalogue: a, filterByProvider: e } });
19
+ },
20
+ deleteDatasetDraft: ({ id: t, catalogue: a }) => s.delete(`/datasets/${t}`, { params: { catalogue: a } }),
21
+ publishDatasetDraft: ({ id: t, catalogue: a, body: e }) => {
22
+ const r = t ? `/${t}` : "";
23
+ return s.put(`/datasets/publish${r}`, e, { params: { catalogue: a } });
24
+ },
25
+ putDatasetToDraft: ({ id: t, catalogue: a }) => {
26
+ const e = t ? `/${t}` : "";
27
+ return s.put(`/datasets/hide${e}`, null, { params: { catalogue: a } });
28
+ }
29
+ };
30
+ };
31
+ export {
32
+ $ as default
33
+ };
@@ -1,32 +1,46 @@
1
- import { isNil as c, isObject as o, isString as u, has as s, isArray as d } from "lodash-es";
2
- function g(n, i, e) {
3
- if (!n || c(n) || !o(n) && !u(n))
1
+ import { isNil as g, isObject as y, isString as o, has as f, isArray as c } from "lodash-es";
2
+ function a(n, t, r) {
3
+ if (!n || g(n) || !y(n) && !o(n))
4
4
  return;
5
- if (u(n))
5
+ if (o(n))
6
6
  return n;
7
- if (s(n, i))
8
- return i;
9
- if (e && d(e)) {
10
- const f = e.find((r) => r && u(r) && s(n, r.toLowerCase()));
11
- if (f)
12
- return f;
13
- }
14
- const t = Object.keys(n)[0];
15
- if (t)
7
+ if (f(n, t))
16
8
  return t;
9
+ if (r && c(r)) {
10
+ const i = r.find((u) => u && o(u) && f(n, u.toLowerCase()));
11
+ if (i)
12
+ return i;
13
+ }
14
+ const e = Object.keys(n)[0];
15
+ if (e)
16
+ return e;
17
17
  }
18
- function y(n, i, e) {
19
- const t = g(n, i, e);
20
- return t ? n[t] : void 0;
18
+ function O(n, t, r) {
19
+ const e = a(n, t, r);
20
+ return e ? n[e] : void 0;
21
21
  }
22
- function O(n, i, e) {
22
+ function R(n, t, r) {
23
23
  if (!n)
24
24
  return "";
25
- const t = n.substring(0, i);
26
- return e || n.length <= i ? t : `${t}...`;
25
+ const e = n.substring(0, t);
26
+ return r || n.length <= t ? e : `${e}...`;
27
+ }
28
+ function T(n, t) {
29
+ const r = c(t) ? t : [t];
30
+ return (e) => new Proxy({
31
+ // Add preliminary dstProps to object so lodash _.has won't return false
32
+ ...e,
33
+ ...r.reduce((i, u) => (i[u] = e[n], i), {})
34
+ }, {
35
+ get(i, u, s) {
36
+ const d = r.includes(n) ? n : u;
37
+ return Reflect.get(i, d, s);
38
+ }
39
+ });
27
40
  }
28
41
  export {
29
- g as getRepresentativeLocaleOf,
30
- y as getTranslationFor,
31
- O as truncate
42
+ a as getRepresentativeLocaleOf,
43
+ O as getTranslationFor,
44
+ T as mirrorPropertyFn,
45
+ R as truncate
32
46
  };
@@ -0,0 +1,16 @@
1
+ import o from "axios";
2
+ const p = ({ baseURL: e, authToken: t }) => {
3
+ const r = e.endsWith("/") ? "" : "/", i = o.create({
4
+ baseURL: `${e}${r}identifiers`,
5
+ headers: {
6
+ "Content-Type": "text/turtle",
7
+ Authorization: `Bearer ${t}`
8
+ }
9
+ });
10
+ return {
11
+ createPersistentIdentifier: ({ id: a, catalogue: s, type: n = "mock" }) => i.put(`/datasets/${a}`, null, { params: { catalogue: s, type: n } })
12
+ };
13
+ };
14
+ export {
15
+ p as default
16
+ };
@@ -0,0 +1,7 @@
1
+ function t(e) {
2
+ const o = e.split(".")[1];
3
+ return JSON.parse(window.atob(o));
4
+ }
5
+ export {
6
+ t as decode
7
+ };