@piveau/dpi 0.1.0-beta.77 → 0.1.0-beta.79
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/HappyFlowComponents/HomeTable.vue.js +17 -17
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +144 -138
- package/dist/data-provider-interface/components/PublisherPage.vue.js +35 -35
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +14 -13
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +96 -90
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +18 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as v, computed as c, watch as f, createElementBlock as o, openBlock as s, createElementVNode as r, createCommentVNode as
|
|
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
2
|
import { useAsyncState as N, useDebounce as U } from "@vueuse/core";
|
|
3
3
|
import z from "axios";
|
|
4
4
|
import "jquery";
|
|
@@ -33,14 +33,14 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
|
|
|
33
33
|
message: "",
|
|
34
34
|
confirm: () => null
|
|
35
35
|
});
|
|
36
|
-
const
|
|
37
|
-
console.log(
|
|
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
38
|
const I = c(() => l.getters["auth/getUserData"]);
|
|
39
39
|
c(() => I.value.rtpToken);
|
|
40
40
|
const S = (a) => l.dispatch("snackbar/showSnackbar", a);
|
|
41
41
|
async function w(a) {
|
|
42
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,
|
|
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 }));
|
|
44
44
|
}
|
|
45
45
|
const {
|
|
46
46
|
state: p,
|
|
@@ -61,15 +61,15 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
|
|
|
61
61
|
return (a, t) => (s(), o("div", F, [
|
|
62
62
|
r("div", K, [
|
|
63
63
|
t[1] || (t[1] = r("h2", { class: "dpiV3_tableHeader" }, " Ihre Datensätze ", -1)),
|
|
64
|
-
u(p).length === 0 &&
|
|
65
|
-
|
|
64
|
+
u(p).length === 0 && d.value.length === 0 ? (s(), o("p", M, t[0] || (t[0] = [
|
|
65
|
+
h(" Willkommen im Data Provider Interface ✨ ", -1),
|
|
66
66
|
r("br", null, null, -1),
|
|
67
|
-
|
|
68
|
-
]))) :
|
|
67
|
+
h("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
|
|
68
|
+
]))) : _("", !0),
|
|
69
69
|
r("div", j, [
|
|
70
|
-
|
|
70
|
+
b(A, { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
|
|
71
71
|
default: B(() => [
|
|
72
|
-
|
|
72
|
+
b($, {
|
|
73
73
|
"button-text": "Neuen Datensatz erstellen",
|
|
74
74
|
size: "large"
|
|
75
75
|
})
|
|
@@ -78,13 +78,13 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
|
|
|
78
78
|
})
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
|
-
u(p).length > 0 ||
|
|
81
|
+
u(p).length > 0 || d.value.length > 0 ? (s(), o("div", G, [
|
|
82
82
|
u(C) ? (s(), o("div", J, t[2] || (t[2] = [
|
|
83
83
|
r("p", null, "Lädt Daten...", -1)
|
|
84
84
|
]))) : (s(), o("div", O, [
|
|
85
|
-
t[3] || (t[3] = L('<div class="dpiV3_tableHeadWrap" data-v-
|
|
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
86
|
r("div", null, [
|
|
87
|
-
(s(!0), o(D, null, y(
|
|
87
|
+
(s(!0), o(D, null, y(d.value, (e) => (s(), k(V, {
|
|
88
88
|
id: e.id,
|
|
89
89
|
key: e.id,
|
|
90
90
|
"data-cy": e,
|
|
@@ -95,20 +95,20 @@ const F = { class: "dpiV3_dpiHome V3-typography" }, K = { class: "dpiV3_homeHead
|
|
|
95
95
|
dataset: e
|
|
96
96
|
}, null, 8, ["id", "data-cy", "catalogue", "text", "date", "dataset"]))), 128)),
|
|
97
97
|
(s(!0), o(D, null, y(u(p), (e, P) => {
|
|
98
|
-
var i,
|
|
98
|
+
var i, n;
|
|
99
99
|
return s(), k(V, {
|
|
100
100
|
key: e.id,
|
|
101
|
-
text: ((i = e.title) == null ? void 0 : i.de) || ((
|
|
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",
|
|
102
102
|
date: e.modified ? new Date(e.modified).toDateString() : "-",
|
|
103
103
|
dataset: e
|
|
104
104
|
}, null, 8, ["text", "date", "dataset"]);
|
|
105
105
|
}), 128))
|
|
106
106
|
])
|
|
107
107
|
]))
|
|
108
|
-
])) :
|
|
108
|
+
])) : _("", !0)
|
|
109
109
|
]));
|
|
110
110
|
}
|
|
111
|
-
}, ce = /* @__PURE__ */ q(Q, [["__scopeId", "data-v-
|
|
111
|
+
}, ce = /* @__PURE__ */ q(Q, [["__scopeId", "data-v-73d6a7a0"]]);
|
|
112
112
|
export {
|
|
113
113
|
ce as default
|
|
114
114
|
};
|