@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.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +62 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +58 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +65 -53
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +60 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +67 -79
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +411 -318
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +88 -60
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +143 -126
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +64 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +46 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +227 -208
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +124 -106
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +113 -108
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +370 -360
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +464 -182
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +31 -26
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +95 -89
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +139 -122
- package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +618 -525
- package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +56 -55
- package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +94 -89
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +247 -238
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +16 -17
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +122 -104
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +332 -305
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +89 -55
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +243 -199
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +24 -11
- package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +14 -12
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +317 -288
- package/package.json +2 -2
|
@@ -1,72 +1,78 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useRuntimeEnv as
|
|
3
|
-
import
|
|
4
|
-
import { useTwinbyUser as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
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
|
|
11
|
-
const
|
|
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(
|
|
13
|
+
setup(K) {
|
|
14
14
|
var p, u, c, d;
|
|
15
|
-
const a =
|
|
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 =
|
|
18
|
+
}, o = j("project");
|
|
19
19
|
function m(i) {
|
|
20
20
|
o.value = i;
|
|
21
21
|
}
|
|
22
|
-
const { startFetchPermissions:
|
|
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
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
t("
|
|
44
|
-
|
|
45
|
-
t("
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
},
|
|
75
|
+
}, X = /* @__PURE__ */ E(O, [["__scopeId", "data-v-09536d5f"]]);
|
|
70
76
|
export {
|
|
71
|
-
|
|
77
|
+
X as default
|
|
72
78
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js
CHANGED
|
@@ -1,56 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "axios";
|
|
1
|
+
import o from "./Organisation.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
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
|
-
|
|
6
|
+
i as default
|
|
56
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js
ADDED
|
@@ -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
|
+
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js
CHANGED
|
@@ -1,103 +1,115 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
|
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
|
|
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
|
-
},
|
|
26
|
-
let
|
|
34
|
+
}, d = async (a, e, r) => {
|
|
35
|
+
let l = [];
|
|
27
36
|
try {
|
|
28
|
-
let
|
|
29
|
-
return
|
|
30
|
-
} catch (
|
|
31
|
-
throw console.error("Error fetching Dataset categories:",
|
|
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
|
-
},
|
|
42
|
+
}, p = async (a) => {
|
|
34
43
|
try {
|
|
35
44
|
let e = `${a}vocabularies/planned-availability`;
|
|
36
|
-
return (await
|
|
37
|
-
value:
|
|
38
|
-
label:
|
|
39
|
-
uri:
|
|
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
|
-
},
|
|
53
|
+
}, y = async (a, e = "de") => {
|
|
45
54
|
try {
|
|
46
|
-
let
|
|
47
|
-
value:
|
|
48
|
-
label: `${
|
|
49
|
-
uri:
|
|
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
|
|
52
|
-
} catch (
|
|
53
|
-
throw console.error("Error fetching languages:",
|
|
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
|
|
58
|
-
return (await
|
|
59
|
-
var
|
|
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:
|
|
62
|
-
label:
|
|
63
|
-
homepage: ((
|
|
64
|
-
uri:
|
|
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 (
|
|
68
|
-
throw console.error("Error fetching licenses:",
|
|
76
|
+
} catch (r) {
|
|
77
|
+
throw console.error("Error fetching licenses:", r), r;
|
|
69
78
|
}
|
|
70
|
-
},
|
|
79
|
+
}, f = async (a, e = "de") => {
|
|
71
80
|
try {
|
|
72
|
-
let
|
|
73
|
-
return (await
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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 (
|
|
79
|
-
throw console.error("Error fetching dataset status:",
|
|
89
|
+
} catch (r) {
|
|
90
|
+
throw console.error("Error fetching dataset status:", r), r;
|
|
80
91
|
}
|
|
81
|
-
},
|
|
92
|
+
}, v = async (a, e = "en") => {
|
|
82
93
|
try {
|
|
83
|
-
let
|
|
84
|
-
return (await
|
|
85
|
-
value:
|
|
86
|
-
label:
|
|
87
|
-
resource:
|
|
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 (
|
|
90
|
-
throw console.error("Error fetching checksum algorithms:",
|
|
100
|
+
} catch (r) {
|
|
101
|
+
throw console.error("Error fetching checksum algorithms:", r), r;
|
|
91
102
|
}
|
|
92
103
|
};
|
|
93
104
|
export {
|
|
94
|
-
|
|
105
|
+
v as getChecksumAlgorithms,
|
|
95
106
|
i as getDatasetCategories,
|
|
96
|
-
|
|
107
|
+
f as getDatasetStatus,
|
|
97
108
|
g as getFileTypes,
|
|
109
|
+
h as getFormatTypes,
|
|
98
110
|
u as getHvdCategories,
|
|
99
|
-
|
|
111
|
+
y as getLanguages,
|
|
100
112
|
b as getLicenses,
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-36e5f0b6"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { PhSpinner as
|
|
3
|
-
import { defineHubSearch as
|
|
4
|
-
import { useDebounce as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
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__ */
|
|
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__ */
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
baseUrl:
|
|
29
|
-
index:
|
|
30
|
-
indexDetails:
|
|
31
|
-
schema:
|
|
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
|
|
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
|
-
...
|
|
37
|
-
id:
|
|
37
|
+
...o,
|
|
38
|
+
id: s,
|
|
38
39
|
name: n
|
|
39
40
|
};
|
|
40
|
-
}),
|
|
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" ?
|
|
55
|
+
resource: v.value === "resource" ? r.resource : ""
|
|
55
56
|
}))
|
|
56
|
-
}),
|
|
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(() =>
|
|
64
|
-
resultEnhanced:
|
|
65
|
-
isSuccess:
|
|
66
|
-
isLoading:
|
|
67
|
-
} =
|
|
68
|
-
additionalParams:
|
|
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 =
|
|
76
|
+
}), g = D(Q, 350), a = M(), h = l({
|
|
73
77
|
get: () => {
|
|
74
|
-
var
|
|
78
|
+
var s, n;
|
|
75
79
|
const e = c.value;
|
|
76
80
|
if (!e)
|
|
77
81
|
return { id: "", name: "" };
|
|
78
|
-
const
|
|
79
|
-
return { id: e, name:
|
|
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
|
-
|
|
87
|
+
a.value = void 0, t.value = "";
|
|
84
88
|
return;
|
|
85
89
|
}
|
|
86
90
|
if (typeof e == "string") {
|
|
87
|
-
|
|
91
|
+
a.value = void 0, t.value = e.trim();
|
|
88
92
|
return;
|
|
89
93
|
}
|
|
90
|
-
|
|
94
|
+
a.value = e, t.value = i(e.id);
|
|
91
95
|
}
|
|
92
96
|
});
|
|
93
|
-
return
|
|
94
|
-
e && (
|
|
95
|
-
}, { immediate: !0 }),
|
|
96
|
-
e &&
|
|
97
|
-
}, { immediate: !0 }), (e,
|
|
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":
|
|
100
|
-
query:
|
|
101
|
-
"onUpdate:query":
|
|
102
|
-
options:
|
|
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:
|
|
108
|
-
},
|
|
109
|
-
label:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
})) :
|
|
119
|
+
})) : Y("", !0)
|
|
116
120
|
])
|
|
117
121
|
]),
|
|
118
122
|
_: 2
|
|
119
123
|
}, [
|
|
120
124
|
e.$slots.option ? {
|
|
121
125
|
name: "option",
|
|
122
|
-
fn:
|
|
123
|
-
|
|
124
|
-
option:
|
|
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
|
-
|
|
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-
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1f36a3b"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|