@piveau/dpi 0.2.0-alpha.19 → 0.2.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +62 -56
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +58 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +65 -53
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +60 -56
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +67 -79
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +17 -17
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +411 -318
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +1 -1
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +88 -60
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +143 -126
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +64 -48
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +46 -41
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +227 -208
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +124 -106
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +113 -108
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +370 -360
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +464 -182
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +31 -26
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +2 -2
  36. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +95 -89
  37. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +139 -122
  38. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +618 -525
  39. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +56 -55
  40. package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +94 -89
  41. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +247 -238
  42. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +4 -4
  43. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +16 -17
  44. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +122 -104
  45. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
  46. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +332 -305
  47. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +89 -55
  48. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +243 -199
  49. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +24 -11
  50. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +14 -12
  51. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +317 -288
  52. package/package.json +2 -2
@@ -1,72 +1,78 @@
1
- import { ref as v, createElementBlock as y, openBlock as n, Fragment as b, createElementVNode as t, createBlock as r, createCommentVNode as l, createVNode as j, toDisplayString as s, normalizeClass as f, withCtx as w, renderSlot as I, createTextVNode as P } from "vue";
2
- import { useRuntimeEnv as S } from "../../composables/useRuntimeEnv.js";
3
- import _ from "../components/TheErrorDialog.vue.js";
4
- import { useTwinbyUser as D } from "../composables/useTwinbyUser.js";
5
- import C from "./AboutProject.vue.js";
6
- import F from "./HomeTable.vue.js";
7
- import H from "./Organisation.vue.js";
8
- import V from "./ProjectTable.vue.js";
1
+ import { ref as j, createElementBlock as w, openBlock as n, Fragment as I, createElementVNode as t, createBlock as r, createCommentVNode as l, createVNode as P, toDisplayString as s, normalizeClass as h, unref as D, withCtx as S, renderSlot as _, createTextVNode as C } from "vue";
2
+ import { useRuntimeEnv as F } from "../../composables/useRuntimeEnv.js";
3
+ import H from "../components/TheErrorDialog.vue.js";
4
+ import { useTwinbyUser as V } from "../composables/useTwinbyUser.js";
5
+ import $ from "./AboutProject.vue.js";
6
+ import z from "./HomeTable.vue.js";
7
+ import T from "./Organisation.vue.js";
8
+ import B from "./ProjectTable.vue.js";
9
9
  /* empty css */
10
- import $ from "../../../../../_virtual/_plugin-vue_export-helper.js";
11
- const T = { class: "dpi_home" }, z = { class: "copy-small-regular dpi_home-subtitle" }, B = { class: "header_sections" }, N = {
10
+ import E from "../../../../../_virtual/_plugin-vue_export-helper.js";
11
+ const N = { class: "dpi_home" }, x = { class: "copy-small-regular dpi_home-subtitle" }, A = { class: "header_sections" }, O = {
12
12
  __name: "DPIHome",
13
- setup(x) {
13
+ setup(K) {
14
14
  var p, u, c, d;
15
- const a = S(), g = {
15
+ const a = F(), k = {
16
16
  dpi: "Schön, dass Sie Ihre Vorgehensweise beim Aufbau eines Digitalen Zwillings mit anderen Kommunen teilen.",
17
17
  project: 'Schön, dass Sie Ihre Vorgehensweise beim Aufbau eines Digitalen Zwillings mit anderen Kommunen teilen. Bevor Sie Ihr erstes Projekt anlegen, empfehlen wir Ihnen, die Hinweise unter "Über die Projektanlage" sorgfältig zu lesen. Ihre bereits angelegten Projekte und Datensätze finden Sie unter "DPI Home".'
18
- }, o = v("project");
18
+ }, o = j("project");
19
19
  function m(i) {
20
20
  o.value = i;
21
21
  }
22
- const { startFetchPermissions: k } = D({
22
+ const { startFetchPermissions: v, organizationDetails: y } = V({
23
23
  keycloak: ((u = (p = a.authentication) == null ? void 0 : p.keycloak) == null ? void 0 : u.url) || "https://keycloak.twin.bydata.de",
24
24
  realm: ((d = (c = a.authentication) == null ? void 0 : c.keycloak) == null ? void 0 : d.realm) || "piveau",
25
25
  audience: "piveau-hub-repo"
26
26
  });
27
- return k(), (i, e) => (n(), y(b, null, [
28
- e[4] || (e[4] = t("link", {
29
- rel: "preconnect",
30
- href: "https://fonts.googleapis.com"
31
- }, null, -1)),
32
- e[5] || (e[5] = t("link", {
33
- rel: "preconnect",
34
- href: "https://fonts.gstatic.com",
35
- crossorigin: ""
36
- }, null, -1)),
37
- e[6] || (e[6] = t("link", {
38
- href: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
39
- rel: "stylesheet"
40
- }, null, -1)),
41
- t("div", T, [
42
- e[3] || (e[3] = t("h1", { class: "dpi_home-title" }, " Willkommen ", -1)),
43
- t("p", z, s(g[o.value]), 1),
44
- t("div", B, [
45
- t("button", {
46
- class: f({ active: o.value === "project" }),
47
- onClick: e[0] || (e[0] = (h) => m("project"))
48
- }, s(i.$t("projectFacility.projectFacility")), 3),
49
- t("button", {
50
- class: f({ active: o.value === "dpi" }),
51
- onClick: e[1] || (e[1] = (h) => m("dpi"))
52
- }, s(i.$t("projectFacility.dpiHome")), 3)
53
- ]),
54
- o.value === "project" ? (n(), r(C, { key: 0 })) : l("", !0),
55
- o.value === "dpi" ? (n(), r(V, { key: 1 })) : l("", !0),
56
- o.value === "dpi" ? (n(), r(F, { key: 2 })) : l("", !0),
57
- o.value === "dpi" ? (n(), r(H, { key: 3 })) : l("", !0),
58
- j(_, null, {
59
- title: w(() => [
60
- I(i.$slots, "title", {}, () => [
61
- e[2] || (e[2] = P(" Fehlermeldung ", -1))
62
- ], !0)
27
+ return v(), (i, e) => {
28
+ var f, g;
29
+ return n(), w(I, null, [
30
+ e[4] || (e[4] = t("link", {
31
+ rel: "preconnect",
32
+ href: "https://fonts.googleapis.com"
33
+ }, null, -1)),
34
+ e[5] || (e[5] = t("link", {
35
+ rel: "preconnect",
36
+ href: "https://fonts.gstatic.com",
37
+ crossorigin: ""
38
+ }, null, -1)),
39
+ e[6] || (e[6] = t("link", {
40
+ href: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
41
+ rel: "stylesheet"
42
+ }, null, -1)),
43
+ t("div", N, [
44
+ e[3] || (e[3] = t("h1", { class: "dpi_home-title" }, " Willkommen ", -1)),
45
+ t("p", x, s(k[o.value]), 1),
46
+ t("div", A, [
47
+ t("button", {
48
+ class: h({ active: o.value === "project" }),
49
+ onClick: e[0] || (e[0] = (b) => m("project"))
50
+ }, s(i.$t("projectFacility.projectFacility")), 3),
51
+ t("button", {
52
+ class: h({ active: o.value === "dpi" }),
53
+ onClick: e[1] || (e[1] = (b) => m("dpi"))
54
+ }, s(i.$t("projectFacility.dpiHome")), 3)
63
55
  ]),
64
- _: 3
65
- })
66
- ])
67
- ], 64));
56
+ o.value === "project" ? (n(), r($, { key: 0 })) : l("", !0),
57
+ o.value === "dpi" ? (n(), r(B, { key: 1 })) : l("", !0),
58
+ o.value === "dpi" ? (n(), r(z, { key: 2 })) : l("", !0),
59
+ o.value === "dpi" ? (n(), r(T, {
60
+ key: 3,
61
+ title: (g = (f = D(y).resultEnhanced) == null ? void 0 : f.value) == null ? void 0 : g.title
62
+ }, null, 8, ["title"])) : l("", !0),
63
+ P(H, null, {
64
+ title: S(() => [
65
+ _(i.$slots, "title", {}, () => [
66
+ e[2] || (e[2] = C(" Fehlermeldung ", -1))
67
+ ], !0)
68
+ ]),
69
+ _: 3
70
+ })
71
+ ])
72
+ ], 64);
73
+ };
68
74
  }
69
- }, J = /* @__PURE__ */ $(N, [["__scopeId", "data-v-069e0b82"]]);
75
+ }, X = /* @__PURE__ */ E(O, [["__scopeId", "data-v-09536d5f"]]);
70
76
  export {
71
- J as default
77
+ X as default
72
78
  };
@@ -1,56 +1,7 @@
1
- import { ref as h, onMounted as v, createElementBlock as f, openBlock as V, createElementVNode as t, toDisplayString as a } from "vue";
2
- import "axios";
1
+ import o from "./Organisation.vue2.js";
3
2
  /* empty css */
4
- import I from "../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const O = { class: "dpiV3_organisation" }, k = { class: "dpiV3_organisationInfo" }, D = { class: "dpiV3_organisationData" }, x = { class: "dpiV3_organisationTitle" }, y = ["src"], S = { class: "dpiV3_organisationAddress" }, b = { class: "dpiV3_organisationTitle" }, w = {
6
- __name: "Organisation",
7
- setup(A) {
8
- const n = h({}), m = async () => {
9
- const s = {
10
- title: "Stadt Haar",
11
- logo: "https://placehold.co/600x400",
12
- address: {
13
- street: "Bahnhofstraße 7",
14
- postalCode: "85540",
15
- city: "Haar"
16
- },
17
- contact: {
18
- phoneNumber: "089 46002-0",
19
- email: "info@stadt-haar.de"
20
- }
21
- };
22
- n.value = s;
23
- };
24
- return v(() => {
25
- m();
26
- }), (s, o) => {
27
- var i, e, r, d, l, c, p, _, g, u;
28
- return V(), f("div", O, [
29
- o[0] || (o[0] = t("h3", { class: "dpiV3_organisationTitle" }, " Ihre Organisation ", -1)),
30
- o[1] || (o[1] = t("p", { class: "dpiV3_organisationDescription" }, " Die Informationen Ihrer Organisation können nur von Ihrem Organisations-Admin geändert werden. Wenn Sie nicht wissen, wer Ihr Organisations-Admin ist, kontaktieren Sie uns gerne. ", -1)),
31
- t("div", k, [
32
- t("p", null, a(n.value.title), 1),
33
- t("div", D, [
34
- t("div", x, [
35
- t("img", {
36
- src: n.value.logo,
37
- alt: ""
38
- }, null, 8, y)
39
- ]),
40
- t("div", S, [
41
- t("p", null, a((e = (i = n.value) == null ? void 0 : i.address) == null ? void 0 : e.street), 1),
42
- t("p", null, a((d = (r = n.value) == null ? void 0 : r.address) == null ? void 0 : d.postalCode) + " " + a((c = (l = n.value) == null ? void 0 : l.address) == null ? void 0 : c.city), 1)
43
- ]),
44
- t("div", b, [
45
- t("p", null, a((_ = (p = n.value) == null ? void 0 : p.contact) == null ? void 0 : _.phoneNumber), 1),
46
- t("p", null, a((u = (g = n.value) == null ? void 0 : g.contact) == null ? void 0 : u.email), 1)
47
- ])
48
- ])
49
- ])
50
- ]);
51
- };
52
- }
53
- }, E = /* @__PURE__ */ I(w, [["__scopeId", "data-v-eaad77b3"]]);
3
+ import a from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ a(o, [["__scopeId", "data-v-6aa77f8e"]]);
54
5
  export {
55
- E as default
6
+ i as default
56
7
  };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as f, ref as V, onMounted as I, createElementBlock as O, openBlock as k, createElementVNode as t, toDisplayString as i } from "vue";
2
+ import "axios";
3
+ const D = { class: "dpiV3_organisation" }, y = { class: "dpiV3_organisationInfo" }, S = { class: "dpiV3_organisationData" }, w = { class: "dpiV3_organisationTitle" }, x = ["src"], A = { class: "dpiV3_organisationAddress" }, B = { class: "dpiV3_organisationTitle" }, T = /* @__PURE__ */ f({
4
+ __name: "Organisation",
5
+ props: {
6
+ title: {}
7
+ },
8
+ setup(h) {
9
+ const m = h, n = V({});
10
+ async function v() {
11
+ const e = {
12
+ title: m.title || "Stadt Haar",
13
+ logo: "https://placehold.co/600x400",
14
+ address: {
15
+ street: "Bahnhofstraße 7",
16
+ postalCode: "85540",
17
+ city: "Haar"
18
+ },
19
+ contact: {
20
+ phoneNumber: "089 46002-0",
21
+ email: "info@stadt-haar.de"
22
+ }
23
+ };
24
+ n.value = e;
25
+ }
26
+ return I(() => {
27
+ v();
28
+ }), (e, a) => {
29
+ var o, s, r, l, d, c, p, u, _, g;
30
+ return k(), O("div", D, [
31
+ a[0] || (a[0] = t("h3", { class: "dpiV3_organisationTitle" }, " Ihre Organisation ", -1)),
32
+ a[1] || (a[1] = t("p", { class: "dpiV3_organisationDescription" }, " Die Informationen Ihrer Organisation können nur von Ihrem Organisations-Admin geändert werden. Wenn Sie nicht wissen, wer Ihr Organisations-Admin ist, kontaktieren Sie uns gerne. ", -1)),
33
+ t("div", y, [
34
+ t("p", null, i(n.value.title), 1),
35
+ t("div", S, [
36
+ t("div", w, [
37
+ t("img", {
38
+ src: n.value.logo,
39
+ alt: ""
40
+ }, null, 8, x)
41
+ ]),
42
+ t("div", A, [
43
+ t("p", null, i((s = (o = n.value) == null ? void 0 : o.address) == null ? void 0 : s.street), 1),
44
+ t("p", null, i((l = (r = n.value) == null ? void 0 : r.address) == null ? void 0 : l.postalCode) + " " + i((c = (d = n.value) == null ? void 0 : d.address) == null ? void 0 : c.city), 1)
45
+ ]),
46
+ t("div", B, [
47
+ t("p", null, i((u = (p = n.value) == null ? void 0 : p.contact) == null ? void 0 : u.phoneNumber), 1),
48
+ t("p", null, i((g = (_ = n.value) == null ? void 0 : _.contact) == null ? void 0 : g.email), 1)
49
+ ])
50
+ ])
51
+ ])
52
+ ]);
53
+ };
54
+ }
55
+ });
56
+ export {
57
+ T as default
58
+ };
@@ -1,103 +1,115 @@
1
- import o from "axios";
1
+ import c from "axios";
2
2
  const u = async (a) => {
3
3
  try {
4
4
  let e = `${a}vocabularies/hvd-category`;
5
- return (await o.get(e)).data.result.results;
5
+ return (await c.get(e)).data.result.results;
6
6
  } catch (e) {
7
7
  throw console.error("Error fetching HVD categories:", e), e;
8
8
  }
9
9
  }, i = async (a) => {
10
10
  try {
11
11
  let e = `${a}vocabularies/data-theme`;
12
- return (await o.get(e)).data.result.results;
12
+ return (await c.get(e)).data.result.results;
13
13
  } catch (e) {
14
14
  throw console.error("Error fetching Dataset categories:", e), e;
15
15
  }
16
16
  }, g = async (a) => {
17
+ try {
18
+ let e = `${a}vocabularies/iana-media-types`;
19
+ return (await c.get(e, {
20
+ headers: { Accept: "application/json" }
21
+ })).data.result;
22
+ } catch (e) {
23
+ throw console.error("Error fetching file types:", e), e;
24
+ }
25
+ }, h = async (a) => {
17
26
  try {
18
27
  let e = `${a}vocabularies/file-type`;
19
- return (await o.get(e, {
28
+ return (await c.get(e, {
20
29
  headers: { Accept: "application/json" }
21
30
  })).data.result;
22
31
  } catch (e) {
23
32
  throw console.error("Error fetching file types:", e), e;
24
33
  }
25
- }, h = async (a, e, t) => {
26
- let s = [];
34
+ }, d = async (a, e, r) => {
35
+ let l = [];
27
36
  try {
28
- let l = `${e}vocabularies/${t}`;
29
- return s = (await o.get(l)).data.result.results, s;
30
- } catch (l) {
31
- throw console.error("Error fetching Dataset categories:", l), l;
37
+ let o = `${e}vocabularies/${r}`;
38
+ return l = (await c.get(o)).data.result.results, l;
39
+ } catch (o) {
40
+ throw console.error("Error fetching Dataset categories:", o), o;
32
41
  }
33
- }, d = async (a) => {
42
+ }, p = async (a) => {
34
43
  try {
35
44
  let e = `${a}vocabularies/planned-availability`;
36
- return (await o.get(e)).data.result.results.map((s) => ({
37
- value: s.id,
38
- label: s.pref_label.de,
39
- uri: s.resource
45
+ return (await c.get(e)).data.result.results.map((l) => ({
46
+ value: l.id,
47
+ label: l.pref_label.de,
48
+ uri: l.resource
40
49
  }));
41
50
  } catch (e) {
42
51
  throw console.error("Error fetching planned availability:", e), e;
43
52
  }
44
- }, p = async (a, e = "de") => {
53
+ }, y = async (a, e = "de") => {
45
54
  try {
46
- let t = `${a}vocabularies/language`, l = (await o.get(t)).data.result.results.map((r) => ({
47
- value: r.id,
48
- label: `${r.pref_label[e] || r.pref_label.en || r.id} (${r.id})`,
49
- uri: r.resource
55
+ let r = `${a}vocabularies/language`, o = (await c.get(r)).data.result.results.map((t) => ({
56
+ value: t.id,
57
+ label: `${t.pref_label[e] || t.pref_label.en || t.id} (${t.id})`,
58
+ uri: t.resource
50
59
  }));
51
- return l.sort((r, c) => r.label.localeCompare(c.label, e)), l;
52
- } catch (t) {
53
- throw console.error("Error fetching languages:", t), t;
60
+ return o.sort((t, s) => t.label.localeCompare(s.label, e)), o;
61
+ } catch (r) {
62
+ throw console.error("Error fetching languages:", r), r;
54
63
  }
55
64
  }, b = async (a, e = "de") => {
56
65
  try {
57
- let t = `${a}vocabularies/licenses`;
58
- return (await o.get(t)).data.result.results.map((r) => {
59
- var c;
66
+ let r = `${a}vocabularies/licenses`;
67
+ return (await c.get(r)).data.result.results.map((t) => {
68
+ var s;
60
69
  return {
61
- value: r.id,
62
- label: r.pref_label[e] || r.pref_label.en || r.id,
63
- homepage: ((c = r.extensions) == null ? void 0 : c.foaf_homepage) || null,
64
- uri: r.resource
70
+ value: t.id,
71
+ label: t.pref_label[e] || t.pref_label.en || t.id,
72
+ homepage: ((s = t.extensions) == null ? void 0 : s.foaf_homepage) || null,
73
+ uri: t.resource
65
74
  };
66
75
  });
67
- } catch (t) {
68
- throw console.error("Error fetching licenses:", t), t;
76
+ } catch (r) {
77
+ throw console.error("Error fetching licenses:", r), r;
69
78
  }
70
- }, y = async (a, e = "de") => {
79
+ }, f = async (a, e = "de") => {
71
80
  try {
72
- let t = `${a}vocabularies/dataset-status`;
73
- return (await o.get(t)).data.result.results.map((r) => ({
74
- value: r.id,
75
- label: r.pref_label[e] || r.pref_label.en || r.id,
76
- resource: r.resource || null
81
+ let r = `${a}vocabularies/adms`;
82
+ return (await c.get(r)).data.result.results.filter(
83
+ (s) => s.in_scheme === "http://purl.org/adms/status/1.0" && s.resource !== "http://purl.org/adms/status/UnderDevelopment"
84
+ ).map((s) => ({
85
+ value: s.id,
86
+ label: s.pref_label[e] || s.pref_label.en || s.id,
87
+ resource: s.resource || null
77
88
  }));
78
- } catch (t) {
79
- throw console.error("Error fetching dataset status:", t), t;
89
+ } catch (r) {
90
+ throw console.error("Error fetching dataset status:", r), r;
80
91
  }
81
- }, f = async (a, e = "en") => {
92
+ }, v = async (a, e = "en") => {
82
93
  try {
83
- let t = `${a}vocabularies/spdx-checksum-algorithm`;
84
- return (await o.get(t)).data.result.results.map((r) => ({
85
- value: r.id,
86
- label: r.pref_label[e] || r.pref_label.en || r.id,
87
- resource: r.resource || null
94
+ let r = `${a}vocabularies/spdx-checksum-algorithm`;
95
+ return (await c.get(r)).data.result.results.map((t) => ({
96
+ value: t.id,
97
+ label: t.pref_label[e] || t.pref_label.en || t.id,
98
+ resource: t.resource || null
88
99
  }));
89
- } catch (t) {
90
- throw console.error("Error fetching checksum algorithms:", t), t;
100
+ } catch (r) {
101
+ throw console.error("Error fetching checksum algorithms:", r), r;
91
102
  }
92
103
  };
93
104
  export {
94
- f as getChecksumAlgorithms,
105
+ v as getChecksumAlgorithms,
95
106
  i as getDatasetCategories,
96
- y as getDatasetStatus,
107
+ f as getDatasetStatus,
97
108
  g as getFileTypes,
109
+ h as getFormatTypes,
98
110
  u as getHvdCategories,
99
- p as getLanguages,
111
+ y as getLanguages,
100
112
  b as getLicenses,
101
- h as getOptionalURIs,
102
- d as getPlannedAvailability
113
+ d as getOptionalURIs,
114
+ p as getPlannedAvailability
103
115
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./AutocompleteVocab.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f258b94"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-36e5f0b6"]]);
5
5
  export {
6
- a as default
6
+ r as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as Q, mergeModels as M, computed as l, ref as B, useModel as G, watch as A, createBlock as D, openBlock as I, unref as m, createSlots as J, withCtx as P, createElementVNode as K, createTextVNode as W, createCommentVNode as X, toDisplayString as Y, renderSlot as Z } from "vue";
2
- import { PhSpinner as w } from "@phosphor-icons/vue";
3
- import { defineHubSearch as ee } from "@piveau/sdk-vue";
4
- import { useDebounce as R } from "@vueuse/core";
5
- import re from "zod";
6
- import oe from "./Autocomplete.vue.js";
7
- const le = { class: "autocomplete-vocab__label" }, de = /* @__PURE__ */ Q({
1
+ import { defineComponent as G, mergeModels as P, computed as l, ref as M, useModel as J, watch as R, createBlock as B, openBlock as F, unref as f, createSlots as K, withCtx as A, createElementVNode as W, createTextVNode as X, createCommentVNode as Y, toDisplayString as Z, renderSlot as w } from "vue";
2
+ import { PhSpinner as ee } from "@phosphor-icons/vue";
3
+ import { defineHubSearch as re } from "@piveau/sdk-vue";
4
+ import { useDebounce as D } from "@vueuse/core";
5
+ import oe from "zod";
6
+ import le from "./Autocomplete.vue.js";
7
+ const te = { class: "autocomplete-vocab__label" }, ve = /* @__PURE__ */ G({
8
8
  __name: "AutocompleteVocab",
9
- props: /* @__PURE__ */ M({
9
+ props: /* @__PURE__ */ P({
10
10
  by: { default: "" },
11
11
  baseUrl: { default: "https://staging.bydata.de/api/hub/search" },
12
12
  vocabulary: {},
@@ -17,29 +17,30 @@ const le = { class: "autocomplete-vocab__label" }, de = /* @__PURE__ */ Q({
17
17
  name: { default: "" },
18
18
  setupFn: {},
19
19
  disabled: { type: Boolean, default: !1 },
20
- isAutocompleteDisabled: { type: Boolean, default: !1 }
20
+ isAutocompleteDisabled: { type: Boolean, default: !1 },
21
+ postProcessFn: {}
21
22
  }, {
22
23
  modelValue: { default: () => "" },
23
24
  modelModifiers: {}
24
25
  }),
25
- emits: /* @__PURE__ */ M(["select"], ["update:modelValue"]),
26
- setup(b, { emit: U }) {
27
- const o = b, k = U, u = l(() => !!o.vocabulary), v = l(() => o.by || u.value ? "vocabulary" : "resource"), E = l(() => o.resource === "dataset" ? "dataset" : u.value ? "vocabulary" : v.value), _ = l(() => o.resource === "dataset" ? "datasets" : u.value ? "vocabularies" : v.value === "resource" ? `resources/${o.resource}` : "vocabularies"), $ = l(() => !o.isAutocompleteDisabled && !!(o.resource || o.vocabulary)), { useSearch: C, useResource: F } = ee({
28
- baseUrl: o.baseUrl,
29
- index: E.value,
30
- indexDetails: _.value,
31
- schema: re.any()
26
+ emits: /* @__PURE__ */ P(["select"], ["update:modelValue"]),
27
+ setup(p, { emit: I }) {
28
+ const r = p, U = I, u = l(() => !!r.vocabulary), v = l(() => r.by || u.value ? "vocabulary" : "resource"), k = l(() => r.resource === "dataset" ? "dataset" : u.value ? "vocabulary" : v.value), E = l(() => r.resource === "dataset" ? "datasets" : u.value ? "vocabularies" : v.value === "resource" ? `resources/${r.resource}` : "vocabularies"), _ = l(() => !r.isAutocompleteDisabled && !!(r.resource || r.vocabulary)), { useSearch: $, useResource: C } = re({
29
+ baseUrl: r.baseUrl,
30
+ index: k.value,
31
+ indexDetails: E.value,
32
+ schema: oe.any()
32
33
  }, (e) => {
33
34
  var d, q, V;
34
- const r = (d = o.setupFn) == null ? void 0 : d.call(o, e), a = String((r == null ? void 0 : r.id) || (e == null ? void 0 : e.resource) || ""), n = String((r == null ? void 0 : r.name) || ((q = e == null ? void 0 : e.pref_label) == null ? void 0 : q.de) || ((V = e == null ? void 0 : e.pref_label) == null ? void 0 : V.en) || "");
35
+ const o = (d = r.setupFn) == null ? void 0 : d.call(r, e), s = String((o == null ? void 0 : o.id) || (e == null ? void 0 : e.resource) || ""), n = String((o == null ? void 0 : o.name) || ((q = e == null ? void 0 : e.pref_label) == null ? void 0 : q.de) || ((V = e == null ? void 0 : e.pref_label) == null ? void 0 : V.en) || "");
35
36
  return {
36
- ...r,
37
- id: a,
37
+ ...o,
38
+ id: s,
38
39
  name: n
39
40
  };
40
- }), f = B(""), L = R(f, 300), N = l(() => o.vocabulary), { getSearchResultsEnhanced: O } = C({
41
+ }), m = M(""), L = D(m, 300), N = l(() => r.vocabulary), { getSearchResultsEnhanced: O } = $({
41
42
  queryOptions: {
42
- enabled: $
43
+ enabled: _
43
44
  },
44
45
  queryParams: {
45
46
  q: L,
@@ -51,77 +52,80 @@ const le = { class: "autocomplete-vocab__label" }, de = /* @__PURE__ */ Q({
51
52
  // resource: computed(() => props.resource || ''),
52
53
  },
53
54
  additionalParams: l(() => ({
54
- resource: v.value === "resource" ? o.resource : ""
55
+ resource: v.value === "resource" ? r.resource : ""
55
56
  }))
56
- }), t = G(b, "modelValue"), p = l(() => !(!t.value || typeof t.value == "string")), x = l(() => typeof t.value == "string");
57
+ }), x = l(() => {
58
+ let e = O.value || [];
59
+ return r.postProcessFn && (e = r.postProcessFn(e)), e;
60
+ }), t = J(p, "modelValue"), b = l(() => !(!t.value || typeof t.value == "string")), z = l(() => typeof t.value == "string");
57
61
  function i(e) {
58
62
  return String(e ?? "").trim();
59
63
  }
60
64
  const c = l(() => {
61
65
  var e;
62
66
  return typeof t.value == "string" ? i(t.value) : i((e = t.value) == null ? void 0 : e.id);
63
- }), y = l(() => x.value && !!c.value), z = l(() => y.value ? u.value ? `${o.vocabulary}/vocable` : c.value : ""), T = l(() => u.value ? { resource: c.value } : {}), {
64
- resultEnhanced: j,
65
- isSuccess: te,
66
- isLoading: H
67
- } = F(z, {
68
- additionalParams: T,
67
+ }), y = l(() => z.value && !!c.value), T = l(() => y.value ? u.value ? `${r.vocabulary}/vocable` : c.value : ""), j = l(() => u.value ? { resource: c.value } : {}), {
68
+ resultEnhanced: H,
69
+ isSuccess: se,
70
+ isLoading: Q
71
+ } = C(T, {
72
+ additionalParams: j,
69
73
  queryOptions: {
70
74
  enabled: y
71
75
  }
72
- }), g = R(H, 350), s = B(), h = l({
76
+ }), g = D(Q, 350), a = M(), h = l({
73
77
  get: () => {
74
- var a, n;
78
+ var s, n;
75
79
  const e = c.value;
76
80
  if (!e)
77
81
  return { id: "", name: "" };
78
- const r = typeof t.value == "object" && t.value !== null ? t.value.name : i((a = s.value) == null ? void 0 : a.id) === e ? ((n = s.value) == null ? void 0 : n.name) ?? "" : "";
79
- return { id: e, name: r };
82
+ const o = typeof t.value == "object" && t.value !== null ? t.value.name : i((s = a.value) == null ? void 0 : s.id) === e ? ((n = a.value) == null ? void 0 : n.name) ?? "" : "";
83
+ return { id: e, name: o };
80
84
  },
81
85
  set: (e) => {
82
86
  if (!e) {
83
- s.value = void 0, t.value = "";
87
+ a.value = void 0, t.value = "";
84
88
  return;
85
89
  }
86
90
  if (typeof e == "string") {
87
- s.value = void 0, t.value = e.trim();
91
+ a.value = void 0, t.value = e.trim();
88
92
  return;
89
93
  }
90
- s.value = e, t.value = i(e.id);
94
+ a.value = e, t.value = i(e.id);
91
95
  }
92
96
  });
93
- return A(j, (e, r) => {
94
- e && (r && r.id === e.id || (s.value = e, p.value && (t.value = e), p.value || (t.value = i(e.id))));
95
- }, { immediate: !0 }), A(s, (e) => {
96
- e && k("select", e);
97
- }, { immediate: !0 }), (e, r) => (I(), D(oe, {
97
+ return R(H, (e, o) => {
98
+ e && (o && o.id === e.id || (a.value = e, b.value && (t.value = e), b.value || (t.value = i(e.id))));
99
+ }, { immediate: !0 }), R(a, (e) => {
100
+ e && U("select", e);
101
+ }, { immediate: !0 }), (e, o) => (F(), B(le, {
98
102
  modelValue: h.value,
99
- "onUpdate:modelValue": r[0] || (r[0] = (a) => h.value = a),
100
- query: f.value,
101
- "onUpdate:query": r[1] || (r[1] = (a) => f.value = a),
102
- options: m(O) || [],
103
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => h.value = s),
104
+ query: m.value,
105
+ "onUpdate:query": o[1] || (o[1] = (s) => m.value = s),
106
+ options: x.value || [],
103
107
  label: e.label,
104
108
  "error-message": e.errorMessage,
105
109
  placeholder: e.placeholder,
106
110
  name: e.name,
107
- disabled: m(g) || o.disabled
108
- }, J({
109
- label: P(() => [
110
- K("div", le, [
111
- W(Y(e.label) + " ", 1),
112
- m(g) ? (I(), D(m(w), {
111
+ disabled: f(g) || r.disabled
112
+ }, K({
113
+ label: A(() => [
114
+ W("div", te, [
115
+ X(Z(e.label) + " ", 1),
116
+ f(g) ? (F(), B(f(ee), {
113
117
  key: 0,
114
118
  class: "animate-spin"
115
- })) : X("", !0)
119
+ })) : Y("", !0)
116
120
  ])
117
121
  ]),
118
122
  _: 2
119
123
  }, [
120
124
  e.$slots.option ? {
121
125
  name: "option",
122
- fn: P(({ option: a, active: n, selected: S, disabled: d }) => [
123
- Z(e.$slots, "option", {
124
- option: a,
126
+ fn: A(({ option: s, active: n, selected: S, disabled: d }) => [
127
+ w(e.$slots, "option", {
128
+ option: s,
125
129
  active: n,
126
130
  selected: S,
127
131
  disabled: d
@@ -133,5 +137,5 @@ const le = { class: "autocomplete-vocab__label" }, de = /* @__PURE__ */ Q({
133
137
  }
134
138
  });
135
139
  export {
136
- de as default
140
+ ve as default
137
141
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ProjectOrganisationStep.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b12cb0a4"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1f36a3b"]]);
5
5
  export {
6
6
  i as default
7
7
  };