@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.
Files changed (74) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
  3. package/dist/data-provider-interface/DataProviderInterface.vue2.js +45 -40
  4. package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  5. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
  6. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +100 -76
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +153 -102
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +34 -56
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -39
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  31. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  32. package/dist/data-provider-interface/components/ContactPage.vue.js +153 -105
  33. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  34. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  35. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +856 -790
  36. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  37. package/dist/data-provider-interface/components/HVDPage.vue.js +105 -82
  38. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  39. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  40. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  41. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +302 -251
  42. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  43. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
  44. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  45. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  46. package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
  47. package/dist/data-provider-interface/composables/useDpiEditMode.js +15 -13
  48. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  49. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  50. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +478 -91
  51. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  52. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
  53. package/dist/data-provider-interface/store/index.js +32 -0
  54. package/dist/data-provider-interface/store/modules/authStore.js +301 -0
  55. package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
  56. package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
  57. package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
  58. package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
  59. package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
  60. package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
  61. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  62. package/dist/data-provider-interface/views/InputPage.vue.js +378 -752
  63. package/dist/index.js +4 -4
  64. package/dist/styles/_dpi.scss +1614 -0
  65. package/dist/styles/_maps.scss +24 -0
  66. package/dist/styles/_variables.scss +973 -0
  67. package/dist/utils/draftApi.js +33 -0
  68. package/dist/utils/helpers.js +36 -22
  69. package/dist/utils/identifiersApi.js +16 -0
  70. package/dist/utils/jwt.js +7 -0
  71. package/package.json +12 -7
  72. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
  73. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
  74. package/dist/data-provider-interface/store/modules/formSchemaStore.js +0 -94
@@ -1,24 +1,24 @@
1
- import { whenever as k } from "@vueuse/core";
2
- import { defineComponent as M, defineAsyncComponent as N, toRef as V, computed as i, toValue as q, provide as L, watchEffect as v, ref as u, nextTick as $ } from "vue";
3
- import { useRoute as P } from "vue-router";
4
- import { mapActions as D, mapGetters as _, useStore as B } from "vuex";
5
- import { useRuntimeEnv as O } from "../composables/useRuntimeEnv.js";
6
- import F from "./components/TheErrorDialog.vue.js";
7
- import { autocompleteKey as T, defaultAutocompleteAdapter as j } from "./composables/aucotomplete.js";
8
- import { setupDpiContext as z } from "./composables/useDpiContext.js";
9
- import { useDpiEditMode as J } from "./composables/useDpiEditMode.js";
10
- import { useFormValues as G } from "./composables/useDpiFormValues.js";
11
- import { useErrorDialog as K } from "./composables/useErrorDialog.js";
12
- import { config as H } from "./config/dpi-spec-config.js";
13
- import Q from "./HappyFlowComponents/ui/ButtonV3.vue.js";
14
- import U from "./HappyFlowComponents/ui/DpiModalBase.vue.js";
15
- const ue = M({
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: Q,
19
- InputPage: N(() => import("./views/InputPage.vue.js")),
20
- DpiModalBase: U,
21
- TheErrorDialog: F
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
- ..._("auth", [
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
- ...D("dpiStore", [
64
+ ...w("dpiStore", [
65
65
  "saveLocalstorageValues"
66
66
  ]),
67
- ...D("auth", [
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 = P(), r = B(), c = O(), h = c.content.dataProviderInterface.specification, w = H[h], b = V(o, "dpiContext"), { formValues: g } = G(), { openErrorDialog: y } = K(), t = i(() => {
92
- const a = q(b);
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: w,
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
- }), S = i(() => t.value.specification), E = i(() => t.value.specificationName);
105
- z(t);
106
- const A = j({
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
- L(T, o.autocomplete || A.adapter), v(() => {
111
- r.dispatch("dpiStore/setSpecification", S.value), r.dispatch("dpiStore/setSpecificationname", E.value);
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 C = i(() => `${e.query.key}@${E.value}`), { isReady: p, result: m, inEditModeAndRptAvailable: I, parsingErrors: s, fetchError: n } = J(t), f = u(!1);
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 || I.value && p.value && (await $(), await $(), g.value = m.value, console.log("resultus", m.value), f.value = !0);
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 x = i(() => {
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), R = u(!0);
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
- }), k(n, () => {
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: C,
133
- isReady: x,
132
+ key: I,
133
+ isReady: k,
134
134
  formValues: g,
135
135
  showErrorModal: d,
136
136
  currentError: l,
137
- isDevelopment: R,
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
- ue as default
148
+ fe as default
144
149
  };
@@ -327,7 +327,7 @@ function ge(ce, t, xe, Te, we, x) {
327
327
  iconStart: "MagnifyingGlass",
328
328
  variant: "secondary",
329
329
  class: "tooltipToggle",
330
- "data-toggle": "tooltip",
330
+ "data-bs-toggle": "tooltip",
331
331
  title: "Look at me, I'm Mr Tooltip!"
332
332
  })
333
333
  ]),
@@ -1,19 +1,22 @@
1
- import { ref as v, computed as l, watch as _, createElementBlock as r, openBlock as a, createElementVNode as o, createCommentVNode as B, unref as u, createTextVNode as h, createVNode as D, withCtx as L, createStaticVNode as N, Fragment as b, renderList as V, createBlock as k } from "vue";
2
- import { useAsyncState as U, useDebounce as z } from "@vueuse/core";
3
- import C from "axios";
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 E } from "vue-router";
6
- import { useStore as W } from "vuex";
7
- import { useRuntimeEnv as R } from "../../composables/useRuntimeEnv.js";
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 y from "./ui/TableRowV3.vue.js";
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 = { class: "dpiV3_table" }, J = {
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 = R(), i = W();
26
- E(), localStorage.getItem("dpi_duplicate"), v("");
27
- let d = l(() => i.getters["auth/getUserCatalogIds"]);
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 m = l(() => i.getters["auth/getUserDrafts"]), I = l(() => i.getters["auth/getUserData"]);
34
- l(() => I.value.rtpToken);
35
- const S = (s) => i.dispatch("snackbar/showSnackbar", s);
36
- async function w(s) {
37
- const t = s.map((n) => C.get(`${x.api.baseUrl}search?facets={%22catalog%22:[%22${n}%22]}&filters=dataset&includes=title,modified,id,description,catalog`));
38
- return (await Promise.all(t)).flatMap((n) => n.data.result.results);
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: P,
44
- error: c
45
- } = U(async () => w(d.value), [], { immediate: !1 });
46
- _(d, () => {
47
- var s;
48
- ((s = d.value) == null ? void 0 : s.length) > 0 && H();
49
- }, { immediate: !0 }), _(c, () => {
50
- console.error(c), S({
51
- message: c.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 T = z(P, 500);
56
- return (s, t) => (a(), r("div", F, [
57
- o("div", K, [
58
- t[1] || (t[1] = o("h2", { class: "dpiV3_tableHeader" }, " Ihre Datensätze ", -1)),
59
- u(p).length === 0 && m.value.length === 0 ? (a(), r("p", M, t[0] || (t[0] = [
60
- h(" Willkommen im Data Provider Infsdfterface ✨ ", -1),
61
- o("br", null, null, -1),
62
- h("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
63
- ]))) : B("", !0),
64
- o("div", j, [
65
- D(A, { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
66
- default: L(() => [
67
- D($, {
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(T) ? (a(), r("div", J, t[2] || (t[2] = [
78
- o("p", null, "Lädt Daten...", -1)
79
- ]))) : (a(), r("div", O, [
80
- t[3] || (t[3] = N('<div class="dpiV3_tableHeadWrap" data-v-3fec7901><div class="dpiV3_thWrap" data-v-3fec7901><div scope="col" data-v-3fec7901><span data-v-3fec7901>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-3fec7901><span data-v-3fec7901>Status</span></div></div><div class="dpiV3_blankCell" data-v-3fec7901></div></div>', 1)),
81
- o("div", null, [
82
- (a(!0), r(b, null, V(m.value, (e) => (a(), k(y, {
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
- (a(!0), r(b, null, V(u(p), (e, n) => {
93
- var f, g;
94
- return a(), k(y, {
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: ((f = e.title) == null ? void 0 : f.de) || ((g = e.title) == null ? void 0 : g.en) || "Kein Titel in englisch oder deutsch vohanden",
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-3fec7901"]]);
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
- ], t = [], l = [];
42
+ ], r = [], o = [];
34
43
  try {
35
- let s = `${a}vocabularies/political-geocoding-level`;
36
- const r = await c.get(s);
37
- for (let o = 0; o < r.data.result.results.length; o++)
38
- l.push(
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[o]
49
+ `${a}vocabularies/political-geocoding-` + e[s]
41
50
  )
42
- ), t.push({
43
- headers: e[o],
44
- list: l[o].data.result.results
51
+ ), r.push({
52
+ headers: e[s],
53
+ list: o[s].data.result.results
45
54
  });
46
- return t;
47
- } catch (s) {
48
- throw console.error("Error fetching Dataset categories:", s), s;
55
+ return r;
56
+ } catch (l) {
57
+ throw console.error("Error fetching Dataset categories:", l), l;
49
58
  }
50
- }, h = async (a, e) => (await n(e)).map((s) => {
51
- const r = s.list.filter(
52
- (o) => o.alt_label && o.alt_label.de && o.alt_label.de.includes(a)
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 { ...s, list: r };
55
- }).filter((s) => s.list.length > 0), p = async (a, e, t) => {
56
- let l = [];
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 s = `${e}vocabularies/${t}`;
59
- return l = (await c.get(s)).data.result.results, l;
60
- } catch (s) {
61
- throw console.error("Error fetching Dataset categories:", s), s;
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
- }, y = async (a) => {
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((l) => ({
67
- value: l.id,
68
- label: l.pref_label.de,
69
- uri: l.resource
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 t = `${a}vocabularies/language`, s = (await c.get(t)).data.result.results.map((r) => ({
77
- value: r.id,
78
- label: `${r.pref_label[e] || r.pref_label.en || r.id} (${r.id})`,
79
- uri: r.resource
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 s.sort((r, o) => r.label.localeCompare(o.label, e)), s;
82
- } catch (t) {
83
- throw console.error("Error fetching languages:", t), t;
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
- }, f = async (a, e = "de") => {
94
+ }, v = async (a, e = "de") => {
86
95
  try {
87
- let t = `${a}vocabularies/licence`;
88
- return (await c.get(t)).data.result.results.map((r) => {
89
- var o;
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: r.id,
92
- label: r.pref_label[e] || r.pref_label.en || r.id,
93
- homepage: ((o = r.extensions) == null ? void 0 : o.foaf_homepage) || null,
94
- uri: r.resource
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 (t) {
98
- throw console.error("Error fetching licenses:", t), t;
106
+ } catch (r) {
107
+ throw console.error("Error fetching licenses:", r), r;
99
108
  }
100
- }, v = async (a, e = "de") => {
109
+ }, w = async (a, e = "de") => {
101
110
  try {
102
- let t = `${a}vocabularies/dataset-status`;
103
- return (await c.get(t)).data.result.results.map((r) => ({
104
- value: r.id,
105
- label: r.pref_label[e] || r.pref_label.en || r.id,
106
- resource: r.resource || null
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 (t) {
109
- throw console.error("Error fetching dataset status:", t), t;
119
+ } catch (r) {
120
+ throw console.error("Error fetching dataset status:", r), r;
110
121
  }
111
- }, w = async (a, e = "en") => {
122
+ }, $ = async (a, e = "en") => {
112
123
  try {
113
- let t = `${a}vocabularies/spdx-checksum-algorithm`;
114
- return (await c.get(t)).data.result.results.map((r) => ({
115
- value: r.id,
116
- label: r.pref_label[e] || r.pref_label.en || r.id,
117
- resource: r.resource || null
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 (t) {
120
- throw console.error("Error fetching checksum algorithms:", t), t;
130
+ } catch (r) {
131
+ throw console.error("Error fetching checksum algorithms:", r), r;
121
132
  }
122
133
  };
123
134
  export {
124
- h as filterGeocodingURIs,
125
- w as getChecksumAlgorithms,
135
+ p as filterGeocodingURIs,
136
+ $ as getChecksumAlgorithms,
126
137
  g as getDatasetCategories,
127
- v as getDatasetStatus,
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
- f as getLicenses,
133
- p as getOptionalURIs,
134
- y as getPlannedAvailability
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 a } from "@phosphor-icons/vue";
3
- import { resolveComponent as u, createElementBlock as f, openBlock as s, withKeys as r, normalizeClass as C, withModifiers as k, createBlock as p, createCommentVNode as m } from "vue";
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: a,
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 B(i, e, l, F, o, n) {
35
- const d = u("PhCaretDown"), v = u("PhCaretUp");
36
- return s(), f("button", {
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(d, {
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(v, {
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 b = /* @__PURE__ */ w(x, [["render", B], ["__scopeId", "data-v-d10a315d"]]);
65
+ const V = /* @__PURE__ */ w(x, [["render", y], ["__scopeId", "data-v-fb00123e"]]);
65
66
  export {
66
- b as default
67
+ V as default
67
68
  };