@piveau/dpi 0.1.0-beta.8 → 0.1.0-beta.83
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/data-provider-interface/DPIMenu.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +56 -51
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +96 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +11 -11
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +441 -353
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +118 -52
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +573 -207
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +43 -89
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -26
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -38
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +181 -107
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
- package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +957 -833
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
- package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
- package/dist/data-provider-interface/components/PublisherPage.vue.js +107 -77
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +315 -260
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +408 -246
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +496 -98
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +9 -2
- package/dist/data-provider-interface/store/modules/authStore.js +11 -11
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +366 -737
- package/dist/msw/handlers.js +107 -0
- package/dist/msw/vocabularies-search/access-right.json.js +7 -0
- package/dist/msw/vocabularies-search/adms.json.js +7 -0
- package/dist/msw/vocabularies-search/continent.json.js +7 -0
- package/dist/msw/vocabularies-search/contributors.json.js +7 -0
- package/dist/msw/vocabularies-search/corporate-body.json.js +7 -0
- package/dist/msw/vocabularies-search/country.json.js +7 -0
- package/dist/msw/vocabularies-search/data-theme.json.js +7 -0
- package/dist/msw/vocabularies-search/dataset-status.json.js +7 -0
- package/dist/msw/vocabularies-search/dataset-type.json.js +7 -0
- package/dist/msw/vocabularies-search/dataset-types.json.js +7 -0
- package/dist/msw/vocabularies-search/distribution-type.json.js +7 -0
- package/dist/msw/vocabularies-search/file-type.json.js +7 -0
- package/dist/msw/vocabularies-search/frequency.json.js +7 -0
- package/dist/msw/vocabularies-search/hash-algorithms.json.js +7 -0
- package/dist/msw/vocabularies-search/hvd-category.json.js +7 -0
- package/dist/msw/vocabularies-search/iana-media-types.json.js +7 -0
- package/dist/msw/vocabularies-search/language.json.js +7 -0
- package/dist/msw/vocabularies-search/licence.json.js +7 -0
- package/dist/msw/vocabularies-search/licenses.json.js +7 -0
- package/dist/msw/vocabularies-search/place.json.js +7 -0
- package/dist/msw/vocabularies-search/planned-availability.json.js +7 -0
- package/dist/msw/vocabularies-search/political-geocoding-district-key.json.js +7 -0
- package/dist/msw/vocabularies-search/political-geocoding-government-district-key.json.js +7 -0
- package/dist/msw/vocabularies-search/political-geocoding-level.json.js +7 -0
- package/dist/msw/vocabularies-search/political-geocoding-municipal-association-key.json.js +7 -0
- package/dist/msw/vocabularies-search/political-geocoding-municipality-key.json.js +7 -0
- package/dist/msw/vocabularies-search/political-geocoding-regional-key.json.js +7 -0
- package/dist/msw/vocabularies-search/political-geocoding-state-key.json.js +7 -0
- package/dist/msw/vocabularies-search/spdx-checksum-algorithm.json.js +7 -0
- package/dist/msw.d.ts +1 -0
- package/dist/msw.js +6 -0
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/package.json +34 -19
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { ref as v, computed as
|
|
2
|
-
import { useAsyncState as
|
|
3
|
-
import
|
|
1
|
+
import { ref as v, computed as c, watch as f, createElementBlock as o, openBlock as s, createElementVNode as r, createCommentVNode as _, unref as u, createTextVNode as h, createVNode as b, withCtx as B, createStaticVNode as L, Fragment as D, renderList as y, createBlock as k } from "vue";
|
|
2
|
+
import { useAsyncState as N, useDebounce as U } from "@vueuse/core";
|
|
3
|
+
import z from "axios";
|
|
4
4
|
import "jquery";
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { useStore as
|
|
7
|
-
import { useRuntimeEnv as
|
|
5
|
+
import { useRouter as R } from "vue-router";
|
|
6
|
+
import { useStore as E } from "vuex";
|
|
7
|
+
import { useRuntimeEnv as W } from "../../composables/useRuntimeEnv.js";
|
|
8
8
|
import A from "../../widgets/AppLink.vue.js";
|
|
9
9
|
import $ from "./ui/ButtonV3.vue.js";
|
|
10
|
-
import
|
|
10
|
+
import V from "./ui/TableRowV3.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import q from "../../_virtual/_plugin-vue_export-helper.js";
|
|
13
13
|
const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHeadWrap" }, M = {
|
|
14
14
|
key: 0,
|
|
15
|
-
class: "copy-large-semi-bold"
|
|
16
|
-
}, j = { class: "interactionButtonsDPIHome" }, G = {
|
|
15
|
+
class: "copy-large-semi-bold landingText"
|
|
16
|
+
}, j = { class: "interactionButtonsDPIHome" }, G = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "dpiV3_table"
|
|
19
|
+
}, J = {
|
|
17
20
|
key: 0,
|
|
18
21
|
class: "loading-screen"
|
|
19
22
|
}, O = {
|
|
@@ -22,49 +25,51 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
|
|
|
22
25
|
}, Q = {
|
|
23
26
|
__name: "HomeTable",
|
|
24
27
|
setup(X) {
|
|
25
|
-
const x =
|
|
26
|
-
|
|
27
|
-
let
|
|
28
|
+
const x = W(), l = E();
|
|
29
|
+
R(), localStorage.getItem("dpi_duplicate"), v("");
|
|
30
|
+
let m = c(() => l.getters["auth/getUserCatalogIds"]);
|
|
28
31
|
v({
|
|
29
32
|
loading: !1,
|
|
30
33
|
message: "",
|
|
31
34
|
confirm: () => null
|
|
32
35
|
});
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
const d = c(() => l.getters["auth/getUserDrafts"].sort((a, t) => (a.title.de ?? "").localeCompare(t.title.de ?? "", "de", { sensitivity: "base", numeric: !0 })));
|
|
37
|
+
console.log(d);
|
|
38
|
+
const I = c(() => l.getters["auth/getUserData"]);
|
|
39
|
+
c(() => I.value.rtpToken);
|
|
40
|
+
const S = (a) => l.dispatch("snackbar/showSnackbar", a);
|
|
41
|
+
async function w(a) {
|
|
42
|
+
const t = a.map((i) => z.get(`${x.api.baseUrl}search?facets={%22catalog%22:[%22${i}%22]}&filters=dataset&includes=title,modified,id,description,catalog&limit=1000`));
|
|
43
|
+
return (await Promise.all(t)).flatMap((i) => i.data.result.results).sort((i, n) => (i.title.de ?? "").localeCompare(n.title.de ?? "", "de", { sensitivity: "base", numeric: !0 }));
|
|
39
44
|
}
|
|
40
45
|
const {
|
|
41
46
|
state: p,
|
|
42
47
|
execute: H,
|
|
43
|
-
isLoading:
|
|
44
|
-
error:
|
|
45
|
-
} =
|
|
46
|
-
|
|
47
|
-
var
|
|
48
|
-
((
|
|
49
|
-
}, { immediate: !0 }),
|
|
50
|
-
console.error(
|
|
51
|
-
message:
|
|
48
|
+
isLoading: T,
|
|
49
|
+
error: g
|
|
50
|
+
} = N(async () => w(m.value), [], { immediate: !1 });
|
|
51
|
+
f(m, () => {
|
|
52
|
+
var a;
|
|
53
|
+
((a = m.value) == null ? void 0 : a.length) > 0 && H();
|
|
54
|
+
}, { immediate: !0 }), f(g, () => {
|
|
55
|
+
console.error(g), S({
|
|
56
|
+
message: g.message,
|
|
52
57
|
color: "error"
|
|
53
58
|
});
|
|
54
59
|
});
|
|
55
|
-
const
|
|
56
|
-
return (
|
|
57
|
-
|
|
58
|
-
t[1] || (t[1] =
|
|
59
|
-
u(p).length === 0 &&
|
|
60
|
+
const C = U(T, 500);
|
|
61
|
+
return (a, t) => (s(), o("div", F, [
|
|
62
|
+
r("div", K, [
|
|
63
|
+
t[1] || (t[1] = r("h2", { class: "dpiV3_tableHeader" }, " Ihre Datensätze ", -1)),
|
|
64
|
+
u(p).length === 0 && d.value.length === 0 ? (s(), o("p", M, t[0] || (t[0] = [
|
|
60
65
|
h(" Willkommen im Data Provider Interface ✨ ", -1),
|
|
61
|
-
|
|
66
|
+
r("br", null, null, -1),
|
|
62
67
|
h("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
|
|
63
|
-
]))) :
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
default:
|
|
67
|
-
|
|
68
|
+
]))) : _("", !0),
|
|
69
|
+
r("div", j, [
|
|
70
|
+
b(A, { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
|
|
71
|
+
default: B(() => [
|
|
72
|
+
b($, {
|
|
68
73
|
"button-text": "Neuen Datensatz erstellen",
|
|
69
74
|
size: "large"
|
|
70
75
|
})
|
|
@@ -73,13 +78,13 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
|
|
|
73
78
|
})
|
|
74
79
|
])
|
|
75
80
|
]),
|
|
76
|
-
o("div", G, [
|
|
77
|
-
u(
|
|
78
|
-
|
|
79
|
-
]))) : (
|
|
80
|
-
t[3] || (t[3] =
|
|
81
|
-
|
|
82
|
-
(
|
|
81
|
+
u(p).length > 0 || d.value.length > 0 ? (s(), o("div", G, [
|
|
82
|
+
u(C) ? (s(), o("div", J, t[2] || (t[2] = [
|
|
83
|
+
r("p", null, "Lädt Daten...", -1)
|
|
84
|
+
]))) : (s(), o("div", O, [
|
|
85
|
+
t[3] || (t[3] = L('<div class="dpiV3_tableHeadWrap" data-v-73d6a7a0><div class="dpiV3_thWrap" data-v-73d6a7a0><div scope="col" data-v-73d6a7a0><span data-v-73d6a7a0>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-73d6a7a0><span data-v-73d6a7a0>Status</span></div></div><div class="dpiV3_blankCell" data-v-73d6a7a0></div></div>', 1)),
|
|
86
|
+
r("div", null, [
|
|
87
|
+
(s(!0), o(D, null, y(d.value, (e) => (s(), k(V, {
|
|
83
88
|
id: e.id,
|
|
84
89
|
key: e.id,
|
|
85
90
|
"data-cy": e,
|
|
@@ -89,21 +94,21 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
|
|
|
89
94
|
draft: "true",
|
|
90
95
|
dataset: e
|
|
91
96
|
}, null, 8, ["id", "data-cy", "catalogue", "text", "date", "dataset"]))), 128)),
|
|
92
|
-
(
|
|
93
|
-
var
|
|
94
|
-
return
|
|
97
|
+
(s(!0), o(D, null, y(u(p), (e, P) => {
|
|
98
|
+
var i, n;
|
|
99
|
+
return s(), k(V, {
|
|
95
100
|
key: e.id,
|
|
96
|
-
text: ((
|
|
101
|
+
text: ((i = e.title) == null ? void 0 : i.de) || ((n = e.title) == null ? void 0 : n.en) || "Kein Titel in englisch oder deutsch vohanden",
|
|
97
102
|
date: e.modified ? new Date(e.modified).toDateString() : "-",
|
|
98
103
|
dataset: e
|
|
99
104
|
}, null, 8, ["text", "date", "dataset"]);
|
|
100
105
|
}), 128))
|
|
101
106
|
])
|
|
102
107
|
]))
|
|
103
|
-
])
|
|
108
|
+
])) : _("", !0)
|
|
104
109
|
]));
|
|
105
110
|
}
|
|
106
|
-
}, ce = /* @__PURE__ */ q(Q, [["__scopeId", "data-v-
|
|
111
|
+
}, ce = /* @__PURE__ */ q(Q, [["__scopeId", "data-v-73d6a7a0"]]);
|
|
107
112
|
export {
|
|
108
113
|
ce as default
|
|
109
114
|
};
|
|
@@ -1,28 +1,44 @@
|
|
|
1
1
|
import c from "axios";
|
|
2
|
-
const u = async (
|
|
2
|
+
const u = async (s) => {
|
|
3
3
|
try {
|
|
4
|
-
let e = `${
|
|
4
|
+
let e = `${s}vocabularies/hvd-category`;
|
|
5
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
|
-
}, g = async (
|
|
9
|
+
}, g = async (s) => {
|
|
10
10
|
try {
|
|
11
|
-
let e = `${
|
|
11
|
+
let e = `${s}vocabularies/data-theme`;
|
|
12
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
|
+
}, h = async (s) => {
|
|
17
17
|
try {
|
|
18
|
-
let e = `${
|
|
18
|
+
let e = `${s}vocabularies/access-right`;
|
|
19
|
+
return (await c.get(e)).data.result.results;
|
|
20
|
+
} catch (e) {
|
|
21
|
+
throw console.error("Error fetching Dataset categories:", e), e;
|
|
22
|
+
}
|
|
23
|
+
}, d = async (s) => {
|
|
24
|
+
try {
|
|
25
|
+
let e = `${s}vocabularies/iana-media-types`;
|
|
26
|
+
return (await c.get(e, {
|
|
27
|
+
headers: { Accept: "application/json" }
|
|
28
|
+
})).data.result;
|
|
29
|
+
} catch (e) {
|
|
30
|
+
throw console.error("Error fetching file types:", e), e;
|
|
31
|
+
}
|
|
32
|
+
}, p = async (s) => {
|
|
33
|
+
try {
|
|
34
|
+
let e = `${s}vocabularies/file-type`;
|
|
19
35
|
return (await c.get(e, {
|
|
20
36
|
headers: { Accept: "application/json" }
|
|
21
37
|
})).data.result;
|
|
22
38
|
} catch (e) {
|
|
23
39
|
throw console.error("Error fetching file types:", e), e;
|
|
24
40
|
}
|
|
25
|
-
}, n = async (
|
|
41
|
+
}, n = async (s) => {
|
|
26
42
|
let e = [
|
|
27
43
|
"district-key",
|
|
28
44
|
"government-district-key",
|
|
@@ -30,106 +46,110 @@ const u = async (a) => {
|
|
|
30
46
|
"municipality-key",
|
|
31
47
|
"regional-key",
|
|
32
48
|
"state-key"
|
|
33
|
-
],
|
|
49
|
+
], r = [], o = [];
|
|
34
50
|
try {
|
|
35
|
-
let
|
|
36
|
-
const
|
|
37
|
-
for (let
|
|
38
|
-
|
|
51
|
+
let l = `${s}vocabularies/political-geocoding-level`;
|
|
52
|
+
const t = await c.get(l);
|
|
53
|
+
for (let a = 0; a < t.data.result.results.length; a++)
|
|
54
|
+
o.push(
|
|
39
55
|
await c.get(
|
|
40
|
-
`${
|
|
56
|
+
`${s}vocabularies/political-geocoding-` + e[a]
|
|
41
57
|
)
|
|
42
|
-
),
|
|
43
|
-
headers: e[
|
|
44
|
-
list:
|
|
58
|
+
), r.push({
|
|
59
|
+
headers: e[a],
|
|
60
|
+
list: o[a].data.result.results
|
|
45
61
|
});
|
|
46
|
-
return
|
|
47
|
-
} catch (
|
|
48
|
-
throw console.error("Error fetching Dataset categories:",
|
|
62
|
+
return r;
|
|
63
|
+
} catch (l) {
|
|
64
|
+
throw console.error("Error fetching Dataset categories:", l), l;
|
|
49
65
|
}
|
|
50
|
-
},
|
|
51
|
-
const
|
|
52
|
-
(
|
|
66
|
+
}, y = async (s, e) => (await n(e)).map((l) => {
|
|
67
|
+
const t = l.list.filter(
|
|
68
|
+
(a) => a.alt_label && a.alt_label.de && a.alt_label.de.includes(s)
|
|
53
69
|
);
|
|
54
|
-
return { ...
|
|
55
|
-
}).filter((
|
|
56
|
-
let
|
|
70
|
+
return { ...l, list: t };
|
|
71
|
+
}).filter((l) => l.list.length > 0), f = async (s, e, r) => {
|
|
72
|
+
let o = [];
|
|
57
73
|
try {
|
|
58
|
-
let
|
|
59
|
-
return
|
|
60
|
-
} catch (
|
|
61
|
-
throw console.error("Error fetching Dataset categories:",
|
|
74
|
+
let l = `${e}vocabularies/${r}`;
|
|
75
|
+
return o = (await c.get(l)).data.result.results, o;
|
|
76
|
+
} catch (l) {
|
|
77
|
+
throw console.error("Error fetching Dataset categories:", l), l;
|
|
62
78
|
}
|
|
63
|
-
},
|
|
79
|
+
}, b = async (s) => {
|
|
64
80
|
try {
|
|
65
|
-
let e = `${
|
|
66
|
-
return (await c.get(e)).data.result.results.map((
|
|
67
|
-
value:
|
|
68
|
-
label:
|
|
69
|
-
uri:
|
|
81
|
+
let e = `${s}vocabularies/planned-availability`;
|
|
82
|
+
return (await c.get(e)).data.result.results.map((o) => ({
|
|
83
|
+
value: o.id,
|
|
84
|
+
label: o.pref_label.de,
|
|
85
|
+
uri: o.resource
|
|
70
86
|
}));
|
|
71
87
|
} catch (e) {
|
|
72
88
|
throw console.error("Error fetching planned availability:", e), e;
|
|
73
89
|
}
|
|
74
|
-
},
|
|
90
|
+
}, v = async (s, e = "de") => {
|
|
75
91
|
try {
|
|
76
|
-
let
|
|
77
|
-
value:
|
|
78
|
-
label: `${
|
|
79
|
-
uri:
|
|
92
|
+
let r = `${s}vocabularies/language`, l = (await c.get(r)).data.result.results.map((t) => ({
|
|
93
|
+
value: t.id,
|
|
94
|
+
label: `${t.pref_label[e] || t.pref_label.en || t.id} (${t.id})`,
|
|
95
|
+
uri: t.resource
|
|
80
96
|
}));
|
|
81
|
-
return
|
|
82
|
-
} catch (
|
|
83
|
-
throw console.error("Error fetching languages:",
|
|
97
|
+
return l.sort((t, a) => t.label.localeCompare(a.label, e)), l;
|
|
98
|
+
} catch (r) {
|
|
99
|
+
throw console.error("Error fetching languages:", r), r;
|
|
84
100
|
}
|
|
85
|
-
},
|
|
101
|
+
}, w = async (s, e = "de") => {
|
|
86
102
|
try {
|
|
87
|
-
let
|
|
88
|
-
return (await c.get(
|
|
89
|
-
var
|
|
103
|
+
let r = `${s}vocabularies/licenses`;
|
|
104
|
+
return (await c.get(r)).data.result.results.map((t) => {
|
|
105
|
+
var a;
|
|
90
106
|
return {
|
|
91
|
-
value:
|
|
92
|
-
label:
|
|
93
|
-
homepage: ((
|
|
94
|
-
uri:
|
|
107
|
+
value: t.id,
|
|
108
|
+
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
109
|
+
homepage: ((a = t.extensions) == null ? void 0 : a.foaf_homepage) || null,
|
|
110
|
+
uri: t.resource
|
|
95
111
|
};
|
|
96
112
|
});
|
|
97
|
-
} catch (
|
|
98
|
-
throw console.error("Error fetching licenses:",
|
|
113
|
+
} catch (r) {
|
|
114
|
+
throw console.error("Error fetching licenses:", r), r;
|
|
99
115
|
}
|
|
100
|
-
},
|
|
116
|
+
}, $ = async (s, e = "de") => {
|
|
101
117
|
try {
|
|
102
|
-
let
|
|
103
|
-
return (await c.get(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
118
|
+
let r = `${s}vocabularies/adms`;
|
|
119
|
+
return (await c.get(r)).data.result.results.filter(
|
|
120
|
+
(a) => a.in_scheme === "http://purl.org/adms/status/1.0" && a.resource !== "http://purl.org/adms/status/UnderDevelopment"
|
|
121
|
+
).map((a) => ({
|
|
122
|
+
value: a.id,
|
|
123
|
+
label: a.pref_label[e] || a.pref_label.en || a.id,
|
|
124
|
+
resource: a.resource || null
|
|
107
125
|
}));
|
|
108
|
-
} catch (
|
|
109
|
-
throw console.error("Error fetching dataset status:",
|
|
126
|
+
} catch (r) {
|
|
127
|
+
throw console.error("Error fetching dataset status:", r), r;
|
|
110
128
|
}
|
|
111
|
-
},
|
|
129
|
+
}, m = async (s, e = "en") => {
|
|
112
130
|
try {
|
|
113
|
-
let
|
|
114
|
-
return (await c.get(
|
|
115
|
-
value:
|
|
116
|
-
label:
|
|
117
|
-
resource:
|
|
131
|
+
let r = `${s}vocabularies/spdx-checksum-algorithm`;
|
|
132
|
+
return (await c.get(r)).data.result.results.map((t) => ({
|
|
133
|
+
value: t.id,
|
|
134
|
+
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
135
|
+
resource: t.resource || null
|
|
118
136
|
}));
|
|
119
|
-
} catch (
|
|
120
|
-
throw console.error("Error fetching checksum algorithms:",
|
|
137
|
+
} catch (r) {
|
|
138
|
+
throw console.error("Error fetching checksum algorithms:", r), r;
|
|
121
139
|
}
|
|
122
140
|
};
|
|
123
141
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
142
|
+
y as filterGeocodingURIs,
|
|
143
|
+
h as getAccessRights,
|
|
144
|
+
m as getChecksumAlgorithms,
|
|
126
145
|
g as getDatasetCategories,
|
|
127
|
-
|
|
146
|
+
$ as getDatasetStatus,
|
|
128
147
|
d as getFileTypes,
|
|
148
|
+
p as getFormatTypes,
|
|
129
149
|
n as getGeocodingURIs,
|
|
130
150
|
u as getHvdCategories,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
151
|
+
v as getLanguages,
|
|
152
|
+
w as getLicenses,
|
|
153
|
+
f as getOptionalURIs,
|
|
154
|
+
b as getPlannedAvailability
|
|
135
155
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { PhCaretUp as c, PhCaretDown as
|
|
3
|
-
import { resolveComponent as u, createElementBlock as
|
|
2
|
+
import { PhCaretUp as c, PhCaretDown as f } from "@phosphor-icons/vue";
|
|
3
|
+
import { resolveComponent as u, createElementBlock as a, openBlock as s, withKeys as r, normalizeClass as C, withModifiers as k, createBlock as p, createCommentVNode as m } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import w from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const x = {
|
|
7
7
|
name: "CloseOpenButtonV3",
|
|
8
8
|
emits: ["click"],
|
|
9
9
|
components: {
|
|
10
|
-
PhCaretDown:
|
|
10
|
+
PhCaretDown: f,
|
|
11
11
|
PhCaretUp: c
|
|
12
12
|
},
|
|
13
13
|
data() {
|
|
@@ -31,9 +31,10 @@ const x = {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
return s(),
|
|
34
|
+
function y(i, e, l, B, o, n) {
|
|
35
|
+
const v = u("PhCaretDown"), d = u("PhCaretUp");
|
|
36
|
+
return s(), a("button", {
|
|
37
|
+
type: "button",
|
|
37
38
|
tabindex: "0",
|
|
38
39
|
onMousedown: e[0] || (e[0] = (...t) => n.removeFocus && n.removeFocus(...t)),
|
|
39
40
|
class: C(["dpiV3_open-close-button", [{ dpiV3_activeState: o.isActive }]]),
|
|
@@ -49,19 +50,19 @@ function B(i, e, l, F, o, n) {
|
|
|
49
50
|
e[7] || (e[7] = r((t) => o.isActive = !1, ["space"]))
|
|
50
51
|
]
|
|
51
52
|
}, [
|
|
52
|
-
l.expanded ? m("", !0) : (s(), p(
|
|
53
|
+
l.expanded ? m("", !0) : (s(), p(v, {
|
|
53
54
|
key: 0,
|
|
54
55
|
color: "var(--neutral-60, #3D4952)",
|
|
55
56
|
size: 32
|
|
56
57
|
})),
|
|
57
|
-
l.expanded ? (s(), p(
|
|
58
|
+
l.expanded ? (s(), p(d, {
|
|
58
59
|
key: 1,
|
|
59
60
|
color: "var(--neutral-60, #3D4952)",
|
|
60
61
|
size: 32
|
|
61
62
|
})) : m("", !0)
|
|
62
63
|
], 34);
|
|
63
64
|
}
|
|
64
|
-
const
|
|
65
|
+
const V = /* @__PURE__ */ w(x, [["render", y], ["__scopeId", "data-v-fb00123e"]]);
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
V as default
|
|
67
68
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DpiModalBase.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7c0bce2d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|