@piveau/dpi 0.2.0-alpha.24 → 0.2.0-alpha.27
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 +43 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +23 -22
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +44 -40
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js +206 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +76 -62
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +7 -7
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +106 -135
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +35 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +114 -111
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +59 -52
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +44 -33
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +465 -452
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +83 -75
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +33 -33
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +37 -21
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +14 -14
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +86 -73
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +197 -170
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +320 -317
- package/package.json +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +0 -7
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +0 -143
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useRuntimeEnv as
|
|
3
|
-
import
|
|
4
|
-
import { useTwinbyUser as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import B from "./ProjectTable.vue.js";
|
|
1
|
+
import { ref as w, createElementBlock as I, openBlock as o, Fragment as D, createElementVNode as t, createBlock as r, createCommentVNode as l, createVNode as P, toDisplayString as s, normalizeClass as h, unref as S, withCtx as _, renderSlot as C, createTextVNode as F } from "vue";
|
|
2
|
+
import { useRuntimeEnv as V } from "../../composables/useRuntimeEnv.js";
|
|
3
|
+
import $ from "../components/TheErrorDialog.vue.js";
|
|
4
|
+
import { useTwinbyUser as z } from "../composables/useTwinbyUser.js";
|
|
5
|
+
import H from "./AboutProject.vue.js";
|
|
6
|
+
import B from "./Organisation.vue.js";
|
|
7
|
+
import k from "./ResourceTable.vue.js";
|
|
9
8
|
/* empty css */
|
|
10
9
|
import E from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
-
const N = { class: "dpi_home" },
|
|
10
|
+
const N = { class: "dpi_home" }, T = { class: "copy-small-regular dpi_home-subtitle" }, x = { class: "header_sections" }, A = {
|
|
12
11
|
__name: "DPIHome",
|
|
13
|
-
setup(
|
|
14
|
-
var
|
|
15
|
-
const a =
|
|
12
|
+
setup(O) {
|
|
13
|
+
var u, m, c, d;
|
|
14
|
+
const a = V(), v = {
|
|
16
15
|
dpi: "Schön, dass Sie Ihre Vorgehensweise beim Aufbau eines Digitalen Zwillings mit anderen Kommunen teilen.",
|
|
17
16
|
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
|
-
},
|
|
19
|
-
function
|
|
20
|
-
|
|
17
|
+
}, i = w("project");
|
|
18
|
+
function p(n) {
|
|
19
|
+
i.value = n;
|
|
21
20
|
}
|
|
22
|
-
const { startFetchPermissions:
|
|
23
|
-
keycloak: ((
|
|
21
|
+
const { startFetchPermissions: y, organizationDetails: b } = z({
|
|
22
|
+
keycloak: ((m = (u = a.authentication) == null ? void 0 : u.keycloak) == null ? void 0 : m.url) || "https://keycloak.twin.bydata.de",
|
|
24
23
|
realm: ((d = (c = a.authentication) == null ? void 0 : c.keycloak) == null ? void 0 : d.realm) || "piveau",
|
|
25
24
|
audience: "piveau-hub-repo"
|
|
26
25
|
});
|
|
27
|
-
return
|
|
26
|
+
return y(), (n, e) => {
|
|
28
27
|
var f, g;
|
|
29
|
-
return
|
|
28
|
+
return o(), I(D, null, [
|
|
30
29
|
e[4] || (e[4] = t("link", {
|
|
31
30
|
rel: "preconnect",
|
|
32
31
|
href: "https://fonts.googleapis.com"
|
|
@@ -42,28 +41,34 @@ const N = { class: "dpi_home" }, x = { class: "copy-small-regular dpi_home-subti
|
|
|
42
41
|
}, null, -1)),
|
|
43
42
|
t("div", N, [
|
|
44
43
|
e[3] || (e[3] = t("h1", { class: "dpi_home-title" }, " Willkommen ", -1)),
|
|
45
|
-
t("p",
|
|
46
|
-
t("div",
|
|
44
|
+
t("p", T, s(v[i.value]), 1),
|
|
45
|
+
t("div", x, [
|
|
47
46
|
t("button", {
|
|
48
|
-
class: h({ active:
|
|
49
|
-
onClick: e[0] || (e[0] = (
|
|
50
|
-
}, s(
|
|
47
|
+
class: h({ active: i.value === "project" }),
|
|
48
|
+
onClick: e[0] || (e[0] = (j) => p("project"))
|
|
49
|
+
}, s(n.$t("projectFacility.projectFacility")), 3),
|
|
51
50
|
t("button", {
|
|
52
|
-
class: h({ active:
|
|
53
|
-
onClick: e[1] || (e[1] = (
|
|
54
|
-
}, s(
|
|
51
|
+
class: h({ active: i.value === "dpi" }),
|
|
52
|
+
onClick: e[1] || (e[1] = (j) => p("dpi"))
|
|
53
|
+
}, s(n.$t("projectFacility.dpiHome")), 3)
|
|
55
54
|
]),
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
i.value === "project" ? (o(), r(H, { key: 0 })) : l("", !0),
|
|
56
|
+
i.value === "dpi" ? (o(), r(k, {
|
|
57
|
+
key: 1,
|
|
58
|
+
type: "projects"
|
|
59
|
+
})) : l("", !0),
|
|
60
|
+
i.value === "dpi" ? (o(), r(k, {
|
|
61
|
+
key: 2,
|
|
62
|
+
type: "datasets"
|
|
63
|
+
})) : l("", !0),
|
|
64
|
+
i.value === "dpi" ? (o(), r(B, {
|
|
60
65
|
key: 3,
|
|
61
|
-
title: (g = (f =
|
|
66
|
+
title: (g = (f = S(b).resultEnhanced) == null ? void 0 : f.value) == null ? void 0 : g.title
|
|
62
67
|
}, null, 8, ["title"])) : l("", !0),
|
|
63
|
-
P(
|
|
64
|
-
title:
|
|
65
|
-
|
|
66
|
-
e[2] || (e[2] =
|
|
68
|
+
P($, null, {
|
|
69
|
+
title: _(() => [
|
|
70
|
+
C(n.$slots, "title", {}, () => [
|
|
71
|
+
e[2] || (e[2] = F(" Fehlermeldung ", -1))
|
|
67
72
|
], !0)
|
|
68
73
|
]),
|
|
69
74
|
_: 3
|
|
@@ -72,7 +77,7 @@ const N = { class: "dpi_home" }, x = { class: "copy-small-regular dpi_home-subti
|
|
|
72
77
|
], 64);
|
|
73
78
|
};
|
|
74
79
|
}
|
|
75
|
-
},
|
|
80
|
+
}, M = /* @__PURE__ */ E(A, [["__scopeId", "data-v-99e6ddef"]]);
|
|
76
81
|
export {
|
|
77
|
-
|
|
82
|
+
M as default
|
|
78
83
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as v, computed as l, watch as q, createElementBlock as a, openBlock as o, createElementVNode as n, createCommentVNode as D, createTextVNode as V, createBlock as
|
|
1
|
+
import { ref as v, computed as l, watch as q, createElementBlock as a, openBlock as o, createElementVNode as n, createCommentVNode as D, createTextVNode as V, createBlock as h, resolveDynamicComponent as F, unref as r, withCtx as K, createVNode as S, createStaticVNode as $, Fragment as I, renderList as T } from "vue";
|
|
2
2
|
import { PhCircleNotch as j } from "@phosphor-icons/vue";
|
|
3
3
|
import "@vueuse/core";
|
|
4
4
|
import "jquery";
|
|
@@ -31,14 +31,14 @@ const ee = { class: "dpiV3_dpiHome V3-typography" }, te = { class: "dpiV3_homeHe
|
|
|
31
31
|
var _, k, y, w;
|
|
32
32
|
const s = J();
|
|
33
33
|
G(), localStorage.getItem("dpi_duplicate"), v("");
|
|
34
|
-
const
|
|
34
|
+
const b = M();
|
|
35
35
|
v({
|
|
36
36
|
loading: !1,
|
|
37
37
|
message: "",
|
|
38
38
|
confirm: () => null
|
|
39
39
|
});
|
|
40
|
-
const
|
|
41
|
-
console.log(
|
|
40
|
+
const d = l(() => s.getters["auth/getUserDrafts"].sort((t, i) => (t.id ?? "").localeCompare(i.id ?? "", "de", { sensitivity: "base", numeric: !0 })));
|
|
41
|
+
console.log(d);
|
|
42
42
|
const P = l(() => s.getters["auth/getUserData"]);
|
|
43
43
|
l(() => P.value.rtpToken);
|
|
44
44
|
const H = (t) => s.dispatch("snackbar/showSnackbar", t), z = l(() => {
|
|
@@ -46,24 +46,25 @@ const ee = { class: "dpiV3_dpiHome V3-typography" }, te = { class: "dpiV3_homeHe
|
|
|
46
46
|
return (i = (t = s.getters) == null ? void 0 : t["auth/getUserData"]) == null ? void 0 : i.authToken;
|
|
47
47
|
}), { useSearch: B } = Q("https://twin.bydata.de/api/hub/search"), E = l(() => ({
|
|
48
48
|
Authorization: `Bearer ${z.value}`
|
|
49
|
-
})), { getSearchResultsEnhanced: L, query:
|
|
49
|
+
})), { getSearchResultsEnhanced: L, query: g, isFetching: N } = B({
|
|
50
50
|
queryParams: {
|
|
51
|
-
limit:
|
|
51
|
+
limit: 200,
|
|
52
|
+
sort: "modified+desc"
|
|
52
53
|
},
|
|
53
54
|
additionalParams: {
|
|
54
55
|
accessControlPermissions: "edit,publish,delete"
|
|
55
56
|
},
|
|
56
57
|
headers: E
|
|
57
|
-
}),
|
|
58
|
-
q(
|
|
59
|
-
console.error(
|
|
60
|
-
message:
|
|
58
|
+
}), c = l(() => g.error.value);
|
|
59
|
+
q(c, () => {
|
|
60
|
+
console.error(c), H({
|
|
61
|
+
message: c.value.message,
|
|
61
62
|
color: "error"
|
|
62
63
|
});
|
|
63
64
|
});
|
|
64
65
|
const { isLoading: U } = O(N), u = v(!1);
|
|
65
66
|
async function p() {
|
|
66
|
-
await new Promise((t) => setTimeout(t, 2100)),
|
|
67
|
+
await new Promise((t) => setTimeout(t, 2100)), g.refetch(), u.value = !1;
|
|
67
68
|
}
|
|
68
69
|
function R() {
|
|
69
70
|
u.value = !0, p();
|
|
@@ -80,9 +81,9 @@ const ee = { class: "dpiV3_dpiHome V3-typography" }, te = { class: "dpiV3_homeHe
|
|
|
80
81
|
allowEdit: t.allowEdit,
|
|
81
82
|
allowPublish: t.allowPublish,
|
|
82
83
|
allowDelete: t.allowDelete
|
|
83
|
-
}))), { allowedToCreate:
|
|
84
|
-
keycloak: ((k = (_ =
|
|
85
|
-
realm: ((w = (y =
|
|
84
|
+
}))), { allowedToCreate: f } = X({
|
|
85
|
+
keycloak: ((k = (_ = b.authentication) == null ? void 0 : _.keycloak) == null ? void 0 : k.url) || "https://keycloak.twin.bydata.de",
|
|
86
|
+
realm: ((w = (y = b.authentication) == null ? void 0 : y.keycloak) == null ? void 0 : w.realm) || "piveau",
|
|
86
87
|
audience: "piveau-hub-repo"
|
|
87
88
|
});
|
|
88
89
|
return (t, i) => (o(), a("div", ee, [
|
|
@@ -91,16 +92,16 @@ const ee = { class: "dpiV3_dpiHome V3-typography" }, te = { class: "dpiV3_homeHe
|
|
|
91
92
|
i[2] || (i[2] = n("div", { class: "dpiV3_dataset-information" }, [
|
|
92
93
|
n("p", null, "Hier sehen Sie alle Datensätze, die Sie bearbeiten oder veröffentlichen können.")
|
|
93
94
|
], -1)),
|
|
94
|
-
m.value.length === 0 &&
|
|
95
|
+
m.value.length === 0 && d.value.length === 0 ? (o(), a("p", ie, i[0] || (i[0] = [
|
|
95
96
|
V(" Willkommen im Data Provider Interface ✨ ", -1),
|
|
96
97
|
n("br", null, null, -1),
|
|
97
98
|
V("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
|
|
98
99
|
]))) : D("", !0),
|
|
99
100
|
n("div", oe, [
|
|
100
|
-
(o(),
|
|
101
|
+
(o(), h(F(r(f) ? "RouterLink" : "span"), { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
|
|
101
102
|
default: K(() => [
|
|
102
103
|
S(Y, {
|
|
103
|
-
disabled: !r(
|
|
104
|
+
disabled: !r(f),
|
|
104
105
|
"button-text": "Neuen Datensatz erstellen",
|
|
105
106
|
size: "large"
|
|
106
107
|
}, null, 8, ["disabled"])
|
|
@@ -109,7 +110,7 @@ const ee = { class: "dpiV3_dpiHome V3-typography" }, te = { class: "dpiV3_homeHe
|
|
|
109
110
|
}))
|
|
110
111
|
])
|
|
111
112
|
]),
|
|
112
|
-
m.value.length > 0 ||
|
|
113
|
+
m.value.length > 0 || d.value.length > 0 ? (o(), a("div", le, [
|
|
113
114
|
A.value ? (o(), a("div", ae, [
|
|
114
115
|
S(r(j), {
|
|
115
116
|
size: 48,
|
|
@@ -117,9 +118,9 @@ const ee = { class: "dpiV3_dpiHome V3-typography" }, te = { class: "dpiV3_homeHe
|
|
|
117
118
|
class: "dpiV3_spinningIcon"
|
|
118
119
|
})
|
|
119
120
|
])) : (o(), a("div", ne, [
|
|
120
|
-
i[3] || (i[3] = $('<div class="dpiV3_tableHeadWrap" data-v-
|
|
121
|
+
i[3] || (i[3] = $('<div class="dpiV3_tableHeadWrap" data-v-ebde287c><div class="dpiV3_thWrap" data-v-ebde287c><div scope="col" data-v-ebde287c><span data-v-ebde287c>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-ebde287c><span data-v-ebde287c>Status</span></div></div><div class="dpiV3_blankCell" data-v-ebde287c></div></div>', 1)),
|
|
121
122
|
n("div", null, [
|
|
122
|
-
(o(!0), a(I, null, T(
|
|
123
|
+
(o(!0), a(I, null, T(d.value, (e) => (o(), h(C, {
|
|
123
124
|
id: e.id,
|
|
124
125
|
key: e.id,
|
|
125
126
|
"data-cy": e,
|
|
@@ -130,7 +131,7 @@ const ee = { class: "dpiV3_dpiHome V3-typography" }, te = { class: "dpiV3_homeHe
|
|
|
130
131
|
dataset: e,
|
|
131
132
|
onActionCompleted: p
|
|
132
133
|
}, null, 8, ["id", "data-cy", "catalogue", "text", "date", "dataset"]))), 128)),
|
|
133
|
-
(o(!0), a(I, null, T(m.value, (e, W) => (o(),
|
|
134
|
+
(o(!0), a(I, null, T(m.value, (e, W) => (o(), h(C, {
|
|
134
135
|
id: e.id,
|
|
135
136
|
key: e.id ?? W,
|
|
136
137
|
text: e.title || "Kein Titel in englisch oder deutsch vohanden",
|
|
@@ -150,7 +151,7 @@ const ee = { class: "dpiV3_dpiHome V3-typography" }, te = { class: "dpiV3_homeHe
|
|
|
150
151
|
])) : D("", !0)
|
|
151
152
|
]));
|
|
152
153
|
}
|
|
153
|
-
}, Ve = /* @__PURE__ */ Z(re, [["__scopeId", "data-v-
|
|
154
|
+
}, Ve = /* @__PURE__ */ Z(re, [["__scopeId", "data-v-ebde287c"]]);
|
|
154
155
|
export {
|
|
155
156
|
Ve as default
|
|
156
157
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Organisation.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5566683a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js
CHANGED
|
@@ -1,51 +1,55 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as V, computed as b, createElementBlock as s, openBlock as a, createElementVNode as t, toDisplayString as e } from "vue";
|
|
2
2
|
import "axios";
|
|
3
|
-
const
|
|
3
|
+
const k = { class: "dpiV3_organisation" }, y = { class: "dpiV3_organisationInfo" }, I = { class: "dpiV3_organisationData" }, w = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "dpiV3_organisationTitle"
|
|
6
|
+
}, D = ["src"], O = { key: 1 }, x = { class: "info-wrapper" }, T = { class: "dpiV3_organisationTitle" }, A = { class: "dpiV3_organisationTitle" }, o = "-", B = /* @__PURE__ */ V({
|
|
4
7
|
__name: "Organisation",
|
|
5
8
|
props: {
|
|
6
9
|
title: {}
|
|
7
10
|
},
|
|
8
11
|
setup(h) {
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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)),
|
|
12
|
+
const f = h, i = b(() => ({
|
|
13
|
+
title: f.title || "",
|
|
14
|
+
logo: "",
|
|
15
|
+
address: {
|
|
16
|
+
street: "",
|
|
17
|
+
postalCode: "",
|
|
18
|
+
city: ""
|
|
19
|
+
},
|
|
20
|
+
contact: {
|
|
21
|
+
phoneNumber: "",
|
|
22
|
+
email: ""
|
|
23
|
+
}
|
|
24
|
+
}));
|
|
25
|
+
return (C, n) => {
|
|
26
|
+
var l, r, d, p, c, u, g, _, v, m;
|
|
27
|
+
return a(), s("div", k, [
|
|
28
|
+
n[2] || (n[2] = t("h3", { class: "dpiV3_organisationTitle" }, " Ihre Organisation ", -1)),
|
|
29
|
+
n[3] || (n[3] = 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
30
|
t("div", y, [
|
|
34
|
-
t("p", null, i
|
|
35
|
-
t("div",
|
|
36
|
-
|
|
31
|
+
t("p", null, e(i.value.title), 1),
|
|
32
|
+
t("div", I, [
|
|
33
|
+
i.value.logo ? (a(), s("div", w, [
|
|
37
34
|
t("img", {
|
|
38
|
-
src:
|
|
35
|
+
src: i.value.logo,
|
|
39
36
|
alt: ""
|
|
40
|
-
}, null, 8,
|
|
41
|
-
]),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
}, null, 8, D)
|
|
38
|
+
])) : (a(), s("div", O, n[0] || (n[0] = [
|
|
39
|
+
t("div", { class: "avatar-circle" }, null, -1)
|
|
40
|
+
]))),
|
|
41
|
+
t("div", x, [
|
|
42
|
+
t("div", T, [
|
|
43
|
+
t("p", null, e(((r = (l = i.value) == null ? void 0 : l.address) == null ? void 0 : r.street) || o), 1),
|
|
44
|
+
t("p", null, e(((p = (d = i.value) == null ? void 0 : d.address) == null ? void 0 : p.postalCode) || o) + " " + e(((u = (c = i.value) == null ? void 0 : c.address) == null ? void 0 : u.city) || o), 1)
|
|
45
|
+
]),
|
|
46
|
+
t("div", A, [
|
|
47
|
+
t("p", null, e(((_ = (g = i.value) == null ? void 0 : g.contact) == null ? void 0 : _.phoneNumber) || o), 1),
|
|
48
|
+
t("p", null, e(((m = (v = i.value) == null ? void 0 : v.contact) == null ? void 0 : m.email) || o), 1)
|
|
49
|
+
]),
|
|
50
|
+
n[1] || (n[1] = t("div", { style: { position: "absolute", top: "0", left: "0", width: "320px", height: "100%", "background-color": "var(--blue-30)", "border-radius": "24px", display: "grid", "place-content": "center" } }, [
|
|
51
|
+
t("p", null, "Keine Daten verfügbar")
|
|
52
|
+
], -1))
|
|
49
53
|
])
|
|
50
54
|
])
|
|
51
55
|
])
|
|
@@ -54,5 +58,5 @@ const D = { class: "dpiV3_organisation" }, y = { class: "dpiV3_organisationInfo"
|
|
|
54
58
|
}
|
|
55
59
|
});
|
|
56
60
|
export {
|
|
57
|
-
|
|
61
|
+
B as default
|
|
58
62
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { defineComponent as M, computed as l, ref as D, watch as G, createElementBlock as n, openBlock as o, createElementVNode as a, createCommentVNode as f, toDisplayString as y, createTextVNode as C, createBlock as E, resolveDynamicComponent as Q, unref as r, withCtx as X, createVNode as L, Fragment as Y, renderList as Z } from "vue";
|
|
2
|
+
import { PhCircleNotch as ee } from "@phosphor-icons/vue";
|
|
3
|
+
import { whenever as te } from "@vueuse/core";
|
|
4
|
+
import { useStore as ie } from "vuex";
|
|
5
|
+
import { useRuntimeEnv as ae } from "../../composables/useRuntimeEnv.js";
|
|
6
|
+
import { useDebouncedLoading as le } from "../composables/useDebouncedLoading.js";
|
|
7
|
+
import { useErrorDialog as oe } from "../composables/useErrorDialog.js";
|
|
8
|
+
import { useProjectSearch as se, useDatasetSearch as ne } from "../composables/useTwinbyHome.js";
|
|
9
|
+
import { useTwinbyUser as re } from "../composables/useTwinbyUser.js";
|
|
10
|
+
import { formatDate as de } from "../utils/formatDate.js";
|
|
11
|
+
import ue from "./ui/ButtonV3.vue.js";
|
|
12
|
+
import ce from "./ui/TableRowV3.vue.js";
|
|
13
|
+
const pe = { class: "dpiV3_dpiHome V3-typography" }, me = { class: "dpiV3_homeHeadWrap" }, he = { class: "dpiV3_tableHeader" }, be = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "copy-large-semi-bold landingText"
|
|
16
|
+
}, ve = { class: "interactionButtonsDPIHome" }, fe = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "dpiV3_table"
|
|
19
|
+
}, ye = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "dpiV3_loadingSkeleton"
|
|
22
|
+
}, ge = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "dpiV3_innerTable"
|
|
25
|
+
}, we = { class: "dpiV3_tableHeadWrap" }, _e = { class: "dpiV3_thWrap" }, ke = { scope: "col" }, Se = {
|
|
26
|
+
key: 0,
|
|
27
|
+
scope: "col",
|
|
28
|
+
class: "dpiV3_statusHead"
|
|
29
|
+
}, He = /* @__PURE__ */ M({
|
|
30
|
+
__name: "ResourceTable",
|
|
31
|
+
props: {
|
|
32
|
+
type: {}
|
|
33
|
+
},
|
|
34
|
+
setup(I) {
|
|
35
|
+
var k, S, P, V;
|
|
36
|
+
const N = I, d = ae(), T = ie(), { allowedToCreate: u, organization: j } = re({
|
|
37
|
+
keycloak: ((S = (k = d.authentication) == null ? void 0 : k.keycloak) == null ? void 0 : S.url) || "https://keycloak.twin.bydata.de",
|
|
38
|
+
realm: ((V = (P = d.authentication) == null ? void 0 : P.keycloak) == null ? void 0 : V.realm) || "piveau",
|
|
39
|
+
audience: "piveau-hub-repo"
|
|
40
|
+
}), x = l(() => {
|
|
41
|
+
var t, e;
|
|
42
|
+
return (e = (t = T.getters) == null ? void 0 : t["auth/getUserData"]) == null ? void 0 : e.authToken;
|
|
43
|
+
}), c = l(() => ({
|
|
44
|
+
Authorization: `Bearer ${x.value}`
|
|
45
|
+
})), p = l(() => N.type === "projects"), { useSearch: z } = se(d.api.baseUrl), { useSearch: H } = ne(d.api.baseUrl), m = D([]);
|
|
46
|
+
G(j, (t) => {
|
|
47
|
+
m.value = [t];
|
|
48
|
+
}, {
|
|
49
|
+
immediate: !0
|
|
50
|
+
});
|
|
51
|
+
const B = z({
|
|
52
|
+
queryParams: {
|
|
53
|
+
limit: 200,
|
|
54
|
+
sort: "modified+desc"
|
|
55
|
+
},
|
|
56
|
+
selectedFacets: {
|
|
57
|
+
superCatalog: m
|
|
58
|
+
},
|
|
59
|
+
additionalParams: {
|
|
60
|
+
resource: "project",
|
|
61
|
+
accessControlPermissions: "view,edit,publish,delete"
|
|
62
|
+
},
|
|
63
|
+
headers: c
|
|
64
|
+
}), F = H({
|
|
65
|
+
queryParams: {
|
|
66
|
+
limit: 200,
|
|
67
|
+
sort: "modified+desc"
|
|
68
|
+
},
|
|
69
|
+
selectedFacets: {
|
|
70
|
+
superCatalog: m
|
|
71
|
+
},
|
|
72
|
+
additionalParams: {
|
|
73
|
+
accessControlPermissions: "view,edit,publish,delete"
|
|
74
|
+
},
|
|
75
|
+
headers: c
|
|
76
|
+
}), { getSearchResultsEnhanced: R, query: g, isFetching: q } = l(() => p.value ? B : F).value, h = l(() => g.error.value), { openErrorDialog: U } = oe();
|
|
77
|
+
te(h, () => {
|
|
78
|
+
if (!h.value)
|
|
79
|
+
return;
|
|
80
|
+
const t = p.value ? "Fehler beim Laden der Projekte" : "Fehler beim Laden der Datensätze", e = new Error(`${JSON.stringify(h.value)}
|
|
81
|
+
|
|
82
|
+
${JSON.stringify(c.value)}`);
|
|
83
|
+
U(e, t);
|
|
84
|
+
});
|
|
85
|
+
const b = l(() => {
|
|
86
|
+
var t;
|
|
87
|
+
return (t = R.value) == null ? void 0 : t.map((e) => ({
|
|
88
|
+
id: e.id,
|
|
89
|
+
title: e.title,
|
|
90
|
+
modified: e.modified,
|
|
91
|
+
publicationStatus: e.publicationStatus,
|
|
92
|
+
visibility: e.accessLevel,
|
|
93
|
+
catalogId: e.catalogId,
|
|
94
|
+
allowEdit: e.allowEdit,
|
|
95
|
+
allowPublish: e.allowPublish,
|
|
96
|
+
allowDelete: e.allowDelete
|
|
97
|
+
}));
|
|
98
|
+
}), { isLoading: W } = le(q), v = D(!1);
|
|
99
|
+
async function w() {
|
|
100
|
+
await new Promise((t) => setTimeout(t, 2100)), g.refetch(), v.value = !1;
|
|
101
|
+
}
|
|
102
|
+
function A() {
|
|
103
|
+
v.value = !0, w();
|
|
104
|
+
}
|
|
105
|
+
const $ = l(() => W.value || v.value), s = l(() => p.value ? {
|
|
106
|
+
title: "Ihre Projekte",
|
|
107
|
+
description: "Hier sehen Sie alle Projekte, die Sie bearbeiten oder veröffentlichen können.",
|
|
108
|
+
buttonText: "Neues Projekt erstellen",
|
|
109
|
+
routeName: "DataProviderInterface-InputProject",
|
|
110
|
+
columnLabel: "Name",
|
|
111
|
+
showVisibilityColumn: !0,
|
|
112
|
+
showEmptyState: !1
|
|
113
|
+
} : {
|
|
114
|
+
title: "Ihre Datensätze",
|
|
115
|
+
description: "Hier sehen Sie alle Datensätze, die Sie bearbeiten oder veröffentlichen können.",
|
|
116
|
+
buttonText: "Neuen Datensatz erstellen",
|
|
117
|
+
routeName: "DataProviderInterface-Input",
|
|
118
|
+
columnLabel: "Name",
|
|
119
|
+
showVisibilityColumn: !0,
|
|
120
|
+
showEmptyState: !0
|
|
121
|
+
}), J = {
|
|
122
|
+
public: "Öffentlich",
|
|
123
|
+
restricted: "Eingeschränkt",
|
|
124
|
+
internal: "Intern"
|
|
125
|
+
};
|
|
126
|
+
function O(t) {
|
|
127
|
+
return J[t] || t;
|
|
128
|
+
}
|
|
129
|
+
const _ = l(() => s.value.showEmptyState && (!b.value || b.value.length === 0));
|
|
130
|
+
return (t, e) => (o(), n("div", pe, [
|
|
131
|
+
a("div", me, [
|
|
132
|
+
a("h2", he, y(s.value.title), 1),
|
|
133
|
+
a("p", null, y(s.value.description), 1),
|
|
134
|
+
_.value ? (o(), n("p", be, e[0] || (e[0] = [
|
|
135
|
+
C(" Willkommen im Data Provider Interface ✨ ", -1),
|
|
136
|
+
a("br", null, null, -1),
|
|
137
|
+
C("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
|
|
138
|
+
]))) : f("", !0),
|
|
139
|
+
a("div", ve, [
|
|
140
|
+
(o(), E(Q(r(u) ? "RouterLink" : "span"), {
|
|
141
|
+
disabled: !r(u),
|
|
142
|
+
to: { name: s.value.routeName, query: { locale: "de", edit: !1 }, params: { property: "datasets" } }
|
|
143
|
+
}, {
|
|
144
|
+
default: X(() => [
|
|
145
|
+
L(ue, {
|
|
146
|
+
disabled: !r(u),
|
|
147
|
+
"button-text": s.value.buttonText,
|
|
148
|
+
size: "large"
|
|
149
|
+
}, null, 8, ["disabled", "button-text"])
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["disabled", "to"]))
|
|
153
|
+
])
|
|
154
|
+
]),
|
|
155
|
+
_.value ? f("", !0) : (o(), n("div", fe, [
|
|
156
|
+
$.value ? (o(), n("div", ye, [
|
|
157
|
+
L(r(ee), {
|
|
158
|
+
size: 48,
|
|
159
|
+
weight: "bold",
|
|
160
|
+
class: "dpiV3_spinningIcon"
|
|
161
|
+
})
|
|
162
|
+
])) : (o(), n("div", ge, [
|
|
163
|
+
a("div", we, [
|
|
164
|
+
a("div", _e, [
|
|
165
|
+
a("div", ke, [
|
|
166
|
+
a("span", null, y(s.value.columnLabel), 1)
|
|
167
|
+
]),
|
|
168
|
+
e[2] || (e[2] = a("div", {
|
|
169
|
+
scope: "col",
|
|
170
|
+
class: "dpiV3_statusHead"
|
|
171
|
+
}, [
|
|
172
|
+
a("span", null, "Status")
|
|
173
|
+
], -1)),
|
|
174
|
+
s.value.showVisibilityColumn ? (o(), n("div", Se, e[1] || (e[1] = [
|
|
175
|
+
a("span", null, "Sichtbarkeit", -1)
|
|
176
|
+
]))) : f("", !0)
|
|
177
|
+
]),
|
|
178
|
+
e[3] || (e[3] = a("div", { class: "dpiV3_blankCell" }, null, -1))
|
|
179
|
+
]),
|
|
180
|
+
a("div", null, [
|
|
181
|
+
(o(!0), n(Y, null, Z(b.value, (i, K) => (o(), E(ce, {
|
|
182
|
+
id: i.id,
|
|
183
|
+
key: i.id ?? K,
|
|
184
|
+
type: t.type,
|
|
185
|
+
text: i.title || "Kein Titel in englisch oder deutsch vohanden",
|
|
186
|
+
date: i.modified ? r(de)(i.modified) : "-",
|
|
187
|
+
dataset: i,
|
|
188
|
+
visibility: O(i.visibility || "public"),
|
|
189
|
+
"visibility-state": i.visibility,
|
|
190
|
+
draft: i.publicationStatus === "draft",
|
|
191
|
+
catalogue: i.catalogId,
|
|
192
|
+
"allow-edit": i.allowEdit && i.publicationStatus === "draft",
|
|
193
|
+
"allow-publish": i.allowPublish,
|
|
194
|
+
"allow-delete": i.allowDelete,
|
|
195
|
+
onComplete: w,
|
|
196
|
+
onStart: A
|
|
197
|
+
}, null, 8, ["id", "type", "text", "date", "dataset", "visibility", "visibility-state", "draft", "catalogue", "allow-edit", "allow-publish", "allow-delete"]))), 128))
|
|
198
|
+
])
|
|
199
|
+
]))
|
|
200
|
+
]))
|
|
201
|
+
]));
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
export {
|
|
205
|
+
He as default
|
|
206
|
+
};
|
|
@@ -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
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-79516ef1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|