@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.50
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/DataProviderInterface.vue2.js +45 -40
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +100 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- 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 +91 -61
- 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/LanguageV3.vue.js +109 -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 +153 -102
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -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 +34 -56
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -39
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
- 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 +153 -105
- 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 +856 -790
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +105 -82
- 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 +111 -81
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +302 -251
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
- 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/useDpiContext.js +5 -7
- package/dist/data-provider-interface/composables/useDpiEditMode.js +15 -13
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +478 -91
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
- package/dist/data-provider-interface/store/index.js +32 -0
- package/dist/data-provider-interface/store/modules/authStore.js +301 -0
- package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
- package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
- package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
- package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
- package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
- package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +378 -752
- package/dist/index.js +4 -4
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/dist/utils/draftApi.js +33 -0
- package/dist/utils/helpers.js +36 -22
- package/dist/utils/identifiersApi.js +16 -0
- package/dist/utils/jwt.js +7 -0
- package/package.json +12 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
- package/dist/data-provider-interface/store/modules/formSchemaStore.js +0 -94
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { whenever as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useRoute as
|
|
4
|
-
import { mapActions as
|
|
5
|
-
import { useRuntimeEnv as
|
|
6
|
-
import
|
|
7
|
-
import { autocompleteKey as
|
|
8
|
-
import { setupDpiContext as
|
|
9
|
-
import { useDpiEditMode as
|
|
10
|
-
import { useFormValues as
|
|
11
|
-
import { useErrorDialog as
|
|
12
|
-
import { config as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
1
|
+
import { whenever as V } from "@vueuse/core";
|
|
2
|
+
import { defineComponent as q, defineAsyncComponent as P, toRef as _, computed as i, toValue as B, provide as O, watchEffect as v, ref as u, nextTick as D } from "vue";
|
|
3
|
+
import { useRoute as j } from "vue-router";
|
|
4
|
+
import { mapActions as w, mapGetters as z, useStore as F } from "vuex";
|
|
5
|
+
import { useRuntimeEnv as T } from "../composables/useRuntimeEnv.js";
|
|
6
|
+
import J from "./components/TheErrorDialog.vue.js";
|
|
7
|
+
import { autocompleteKey as G, defaultAutocompleteAdapter as K } from "./composables/aucotomplete.js";
|
|
8
|
+
import { setupDpiContext as H } from "./composables/useDpiContext.js";
|
|
9
|
+
import { useDpiEditMode as Q } from "./composables/useDpiEditMode.js";
|
|
10
|
+
import { useFormValues as U } from "./composables/useDpiFormValues.js";
|
|
11
|
+
import { useErrorDialog as W } from "./composables/useErrorDialog.js";
|
|
12
|
+
import { config as X } from "./config/dpi-spec-config.js";
|
|
13
|
+
import Y from "./HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
14
|
+
import Z from "./HappyFlowComponents/ui/DpiModalBase.vue.js";
|
|
15
|
+
const fe = q({
|
|
16
16
|
name: "DataProviderInterface",
|
|
17
17
|
components: {
|
|
18
|
-
ButtonV3:
|
|
19
|
-
InputPage:
|
|
20
|
-
DpiModalBase:
|
|
21
|
-
TheErrorDialog:
|
|
18
|
+
ButtonV3: Y,
|
|
19
|
+
InputPage: P(() => import("./views/InputPage.vue.js")),
|
|
20
|
+
DpiModalBase: Z,
|
|
21
|
+
TheErrorDialog: J
|
|
22
22
|
},
|
|
23
23
|
props: {
|
|
24
24
|
name: {
|
|
@@ -53,7 +53,7 @@ const ue = M({
|
|
|
53
53
|
};
|
|
54
54
|
},
|
|
55
55
|
computed: {
|
|
56
|
-
...
|
|
56
|
+
...z("auth", [
|
|
57
57
|
"getIsEditMode"
|
|
58
58
|
]),
|
|
59
59
|
mode() {
|
|
@@ -61,10 +61,10 @@ const ue = M({
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
methods: {
|
|
64
|
-
...
|
|
64
|
+
...w("dpiStore", [
|
|
65
65
|
"saveLocalstorageValues"
|
|
66
66
|
]),
|
|
67
|
-
...
|
|
67
|
+
...w("auth", [
|
|
68
68
|
"populateDraftAndEdit"
|
|
69
69
|
]),
|
|
70
70
|
getClearPath() {
|
|
@@ -88,10 +88,10 @@ const ue = M({
|
|
|
88
88
|
window.removeEventListener("scroll", this.handleScroll);
|
|
89
89
|
},
|
|
90
90
|
setup(o) {
|
|
91
|
-
const e =
|
|
92
|
-
const a =
|
|
91
|
+
const e = j(), r = F(), c = T(), h = c.content.dataProviderInterface.specification, S = X[h], b = _(o, "dpiContext"), { formValues: g } = U(), { openErrorDialog: y } = W(), t = i(() => {
|
|
92
|
+
const a = B(b);
|
|
93
93
|
return {
|
|
94
|
-
specification:
|
|
94
|
+
specification: S,
|
|
95
95
|
specificationName: h,
|
|
96
96
|
edit: {
|
|
97
97
|
enabled: e.query.edit === "true",
|
|
@@ -101,26 +101,26 @@ const ue = M({
|
|
|
101
101
|
},
|
|
102
102
|
...a
|
|
103
103
|
};
|
|
104
|
-
}),
|
|
105
|
-
|
|
106
|
-
const
|
|
104
|
+
}), A = i(() => t.value.specification), E = i(() => t.value.specificationName);
|
|
105
|
+
H(t);
|
|
106
|
+
const C = K({
|
|
107
107
|
envs: c,
|
|
108
108
|
dpiContext: t
|
|
109
109
|
});
|
|
110
|
-
|
|
111
|
-
r.dispatch("dpiStore/setSpecification",
|
|
110
|
+
O(G, o.autocomplete || C.adapter), v(() => {
|
|
111
|
+
r.dispatch("dpiStore/setSpecification", A.value), r.dispatch("dpiStore/setSpecificationname", E.value);
|
|
112
112
|
});
|
|
113
|
-
const
|
|
113
|
+
const I = i(() => `${e.query.key}@${E.value}`), { isReady: p, result: m, inEditModeAndRptAvailable: $, parsingErrors: s, fetchError: n, isSimpleLoaderReady: x, isMaterialized: R, isLoading: L, jsonld: M } = Q(t), f = u(!1);
|
|
114
114
|
v(async () => {
|
|
115
|
-
f.value ||
|
|
115
|
+
f.value || $.value && p.value && (await D(), await D(), g.value = m.value, console.log("resultus", m.value), f.value = !0);
|
|
116
116
|
});
|
|
117
|
-
const
|
|
117
|
+
const k = i(() => {
|
|
118
118
|
var a;
|
|
119
119
|
return (a = t.value.edit) != null && a.enabled ? p.value && f.value : p.value;
|
|
120
|
-
}), d = u(!1), l = u(null),
|
|
120
|
+
}), d = u(!1), l = u(null), N = u(!0);
|
|
121
121
|
return v(() => {
|
|
122
122
|
s.value && s.value.length > 0 ? (l.value = s.value[0], d.value = !0, y(new Error(s.value[0].message))) : (d.value = !1, l.value = null);
|
|
123
|
-
}),
|
|
123
|
+
}), V(n, () => {
|
|
124
124
|
var a;
|
|
125
125
|
l.value = {
|
|
126
126
|
code: "fetch_failed",
|
|
@@ -129,16 +129,21 @@ const ue = M({
|
|
|
129
129
|
}, { immediate: !0 }), {
|
|
130
130
|
result: m,
|
|
131
131
|
resolvedDpiContext: t,
|
|
132
|
-
key:
|
|
133
|
-
isReady:
|
|
132
|
+
key: I,
|
|
133
|
+
isReady: k,
|
|
134
134
|
formValues: g,
|
|
135
135
|
showErrorModal: d,
|
|
136
136
|
currentError: l,
|
|
137
|
-
isDevelopment:
|
|
138
|
-
fetchError: n
|
|
137
|
+
isDevelopment: N,
|
|
138
|
+
fetchError: n,
|
|
139
|
+
isSimpleLoaderReady: x,
|
|
140
|
+
isMaterialized: R,
|
|
141
|
+
isLoading: L,
|
|
142
|
+
jsonld: M,
|
|
143
|
+
inEditModeAndRptAvailable: $
|
|
139
144
|
};
|
|
140
145
|
}
|
|
141
146
|
});
|
|
142
147
|
export {
|
|
143
|
-
|
|
148
|
+
fe as default
|
|
144
149
|
};
|
|
@@ -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 b, unref as u, createTextVNode as _, createVNode as h, 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 n = c(() => l.getters["auth/getUserDrafts"].sort((a, t) => (a.id ?? "").localeCompare(t.id ?? "", "de", { sensitivity: "base", numeric: !0 })));
|
|
37
|
+
console.log(n);
|
|
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, d) => (i.id ?? "").localeCompare(d.id ?? "", "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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
]))) :
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
default:
|
|
67
|
-
|
|
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 && n.value.length === 0 ? (s(), o("p", M, t[0] || (t[0] = [
|
|
65
|
+
_(" Willkommen im Data Provider Interface ✨ ", -1),
|
|
66
|
+
r("br", null, null, -1),
|
|
67
|
+
_("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
|
|
68
|
+
]))) : b("", !0),
|
|
69
|
+
r("div", j, [
|
|
70
|
+
h(A, { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
|
|
71
|
+
default: B(() => [
|
|
72
|
+
h($, {
|
|
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 || n.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-2cb4e971><div class="dpiV3_thWrap" data-v-2cb4e971><div scope="col" data-v-2cb4e971><span data-v-2cb4e971>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-2cb4e971><span data-v-2cb4e971>Status</span></div></div><div class="dpiV3_blankCell" data-v-2cb4e971></div></div>', 1)),
|
|
86
|
+
r("div", null, [
|
|
87
|
+
(s(!0), o(D, null, y(n.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, d;
|
|
99
|
+
return s(), k(V, {
|
|
95
100
|
key: e.id,
|
|
96
|
-
text: ((
|
|
101
|
+
text: ((i = e.title) == null ? void 0 : i.de) || ((d = e.title) == null ? void 0 : d.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
|
+
])) : b("", !0)
|
|
104
109
|
]));
|
|
105
110
|
}
|
|
106
|
-
}, ce = /* @__PURE__ */ q(Q, [["__scopeId", "data-v-
|
|
111
|
+
}, ce = /* @__PURE__ */ q(Q, [["__scopeId", "data-v-2cb4e971"]]);
|
|
107
112
|
export {
|
|
108
113
|
ce as default
|
|
109
114
|
};
|
|
@@ -14,6 +14,15 @@ const u = async (a) => {
|
|
|
14
14
|
throw console.error("Error fetching Dataset categories:", e), e;
|
|
15
15
|
}
|
|
16
16
|
}, d = 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
28
|
return (await c.get(e, {
|
|
@@ -30,106 +39,109 @@ const u = async (a) => {
|
|
|
30
39
|
"municipality-key",
|
|
31
40
|
"regional-key",
|
|
32
41
|
"state-key"
|
|
33
|
-
],
|
|
42
|
+
], r = [], o = [];
|
|
34
43
|
try {
|
|
35
|
-
let
|
|
36
|
-
const
|
|
37
|
-
for (let
|
|
38
|
-
|
|
44
|
+
let l = `${a}vocabularies/political-geocoding-level`;
|
|
45
|
+
const t = await c.get(l);
|
|
46
|
+
for (let s = 0; s < t.data.result.results.length; s++)
|
|
47
|
+
o.push(
|
|
39
48
|
await c.get(
|
|
40
|
-
`${a}vocabularies/political-geocoding-` + e[
|
|
49
|
+
`${a}vocabularies/political-geocoding-` + e[s]
|
|
41
50
|
)
|
|
42
|
-
),
|
|
43
|
-
headers: e[
|
|
44
|
-
list:
|
|
51
|
+
), r.push({
|
|
52
|
+
headers: e[s],
|
|
53
|
+
list: o[s].data.result.results
|
|
45
54
|
});
|
|
46
|
-
return
|
|
47
|
-
} catch (
|
|
48
|
-
throw console.error("Error fetching Dataset categories:",
|
|
55
|
+
return r;
|
|
56
|
+
} catch (l) {
|
|
57
|
+
throw console.error("Error fetching Dataset categories:", l), l;
|
|
49
58
|
}
|
|
50
|
-
},
|
|
51
|
-
const
|
|
52
|
-
(
|
|
59
|
+
}, p = async (a, e) => (await n(e)).map((l) => {
|
|
60
|
+
const t = l.list.filter(
|
|
61
|
+
(s) => s.alt_label && s.alt_label.de && s.alt_label.de.includes(a)
|
|
53
62
|
);
|
|
54
|
-
return { ...
|
|
55
|
-
}).filter((
|
|
56
|
-
let
|
|
63
|
+
return { ...l, list: t };
|
|
64
|
+
}).filter((l) => l.list.length > 0), y = async (a, e, r) => {
|
|
65
|
+
let o = [];
|
|
57
66
|
try {
|
|
58
|
-
let
|
|
59
|
-
return
|
|
60
|
-
} catch (
|
|
61
|
-
throw console.error("Error fetching Dataset categories:",
|
|
67
|
+
let l = `${e}vocabularies/${r}`;
|
|
68
|
+
return o = (await c.get(l)).data.result.results, o;
|
|
69
|
+
} catch (l) {
|
|
70
|
+
throw console.error("Error fetching Dataset categories:", l), l;
|
|
62
71
|
}
|
|
63
|
-
},
|
|
72
|
+
}, f = async (a) => {
|
|
64
73
|
try {
|
|
65
74
|
let e = `${a}vocabularies/planned-availability`;
|
|
66
|
-
return (await c.get(e)).data.result.results.map((
|
|
67
|
-
value:
|
|
68
|
-
label:
|
|
69
|
-
uri:
|
|
75
|
+
return (await c.get(e)).data.result.results.map((o) => ({
|
|
76
|
+
value: o.id,
|
|
77
|
+
label: o.pref_label.de,
|
|
78
|
+
uri: o.resource
|
|
70
79
|
}));
|
|
71
80
|
} catch (e) {
|
|
72
81
|
throw console.error("Error fetching planned availability:", e), e;
|
|
73
82
|
}
|
|
74
83
|
}, b = async (a, e = "de") => {
|
|
75
84
|
try {
|
|
76
|
-
let
|
|
77
|
-
value:
|
|
78
|
-
label: `${
|
|
79
|
-
uri:
|
|
85
|
+
let r = `${a}vocabularies/language`, l = (await c.get(r)).data.result.results.map((t) => ({
|
|
86
|
+
value: t.id,
|
|
87
|
+
label: `${t.pref_label[e] || t.pref_label.en || t.id} (${t.id})`,
|
|
88
|
+
uri: t.resource
|
|
80
89
|
}));
|
|
81
|
-
return
|
|
82
|
-
} catch (
|
|
83
|
-
throw console.error("Error fetching languages:",
|
|
90
|
+
return l.sort((t, s) => t.label.localeCompare(s.label, e)), l;
|
|
91
|
+
} catch (r) {
|
|
92
|
+
throw console.error("Error fetching languages:", r), r;
|
|
84
93
|
}
|
|
85
|
-
},
|
|
94
|
+
}, v = async (a, e = "de") => {
|
|
86
95
|
try {
|
|
87
|
-
let
|
|
88
|
-
return (await c.get(
|
|
89
|
-
var
|
|
96
|
+
let r = `${a}vocabularies/licence`;
|
|
97
|
+
return (await c.get(r)).data.result.results.map((t) => {
|
|
98
|
+
var s;
|
|
90
99
|
return {
|
|
91
|
-
value:
|
|
92
|
-
label:
|
|
93
|
-
homepage: ((
|
|
94
|
-
uri:
|
|
100
|
+
value: t.id,
|
|
101
|
+
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
102
|
+
homepage: ((s = t.extensions) == null ? void 0 : s.foaf_homepage) || null,
|
|
103
|
+
uri: t.resource
|
|
95
104
|
};
|
|
96
105
|
});
|
|
97
|
-
} catch (
|
|
98
|
-
throw console.error("Error fetching licenses:",
|
|
106
|
+
} catch (r) {
|
|
107
|
+
throw console.error("Error fetching licenses:", r), r;
|
|
99
108
|
}
|
|
100
|
-
},
|
|
109
|
+
}, w = async (a, e = "de") => {
|
|
101
110
|
try {
|
|
102
|
-
let
|
|
103
|
-
return (await c.get(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
111
|
+
let r = `${a}vocabularies/adms`;
|
|
112
|
+
return (await c.get(r)).data.result.results.filter(
|
|
113
|
+
(s) => s.in_scheme === "http://purl.org/adms/status/1.0" && s.resource !== "http://purl.org/adms/status/UnderDevelopment"
|
|
114
|
+
).map((s) => ({
|
|
115
|
+
value: s.id,
|
|
116
|
+
label: s.pref_label[e] || s.pref_label.en || s.id,
|
|
117
|
+
resource: s.resource || null
|
|
107
118
|
}));
|
|
108
|
-
} catch (
|
|
109
|
-
throw console.error("Error fetching dataset status:",
|
|
119
|
+
} catch (r) {
|
|
120
|
+
throw console.error("Error fetching dataset status:", r), r;
|
|
110
121
|
}
|
|
111
|
-
},
|
|
122
|
+
}, $ = async (a, e = "en") => {
|
|
112
123
|
try {
|
|
113
|
-
let
|
|
114
|
-
return (await c.get(
|
|
115
|
-
value:
|
|
116
|
-
label:
|
|
117
|
-
resource:
|
|
124
|
+
let r = `${a}vocabularies/spdx-checksum-algorithm`;
|
|
125
|
+
return (await c.get(r)).data.result.results.map((t) => ({
|
|
126
|
+
value: t.id,
|
|
127
|
+
label: t.pref_label[e] || t.pref_label.en || t.id,
|
|
128
|
+
resource: t.resource || null
|
|
118
129
|
}));
|
|
119
|
-
} catch (
|
|
120
|
-
throw console.error("Error fetching checksum algorithms:",
|
|
130
|
+
} catch (r) {
|
|
131
|
+
throw console.error("Error fetching checksum algorithms:", r), r;
|
|
121
132
|
}
|
|
122
133
|
};
|
|
123
134
|
export {
|
|
124
|
-
|
|
125
|
-
|
|
135
|
+
p as filterGeocodingURIs,
|
|
136
|
+
$ as getChecksumAlgorithms,
|
|
126
137
|
g as getDatasetCategories,
|
|
127
|
-
|
|
138
|
+
w as getDatasetStatus,
|
|
128
139
|
d as getFileTypes,
|
|
140
|
+
h as getFormatTypes,
|
|
129
141
|
n as getGeocodingURIs,
|
|
130
142
|
u as getHvdCategories,
|
|
131
143
|
b as getLanguages,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
144
|
+
v as getLicenses,
|
|
145
|
+
y as getOptionalURIs,
|
|
146
|
+
f as getPlannedAvailability
|
|
135
147
|
};
|
|
@@ -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
|
};
|