@piveau/dpi 0.2.0-alpha.26 → 0.2.0-alpha.28
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/AboutProject.vue.js +4 -97
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js +107 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +46 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js +67 -74
- 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 +18 -21
- 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/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/views/InputPage.vue.js +197 -170
- package/package.json +1 -1
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js
CHANGED
|
@@ -1,100 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useRouter as x, RouterLink as g } from "vue-router";
|
|
3
|
-
import F from "./img/DataProcessingSteps.svg.js";
|
|
4
|
-
import y from "./ui/ButtonV3.vue.js";
|
|
1
|
+
import o from "./AboutProject.vue2.js";
|
|
5
2
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "about-project-step-buttons"
|
|
10
|
-
}, N = { class: "new-project" }, A = {
|
|
11
|
-
__name: "AboutProject",
|
|
12
|
-
setup(q) {
|
|
13
|
-
const _ = x(), f = [
|
|
14
|
-
{
|
|
15
|
-
text: "projectFacility.projectDocumentationProcessStepsResources",
|
|
16
|
-
image: F,
|
|
17
|
-
buttons: null
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
text: "projectFacility.searchProjectResourcesStep3",
|
|
21
|
-
image: null,
|
|
22
|
-
buttons: [
|
|
23
|
-
{ title: "projectFacility.searchSoftware", type: "secondary", attrs: { href: "https://twin.bydata.de/softwares", target: "_blank", rel: "noopener noreferrer" } },
|
|
24
|
-
{ title: "projectFacility.searchRecords", type: "secondary", attrs: { href: "https://twin.bydata.de/datasets", target: "_blank", rel: "noopener noreferrer" } },
|
|
25
|
-
{ title: "projectFacility.findHardware", type: "secondary", attrs: { href: "https://twin.bydata.de/hardwares", target: "_blank", rel: "noopener noreferrer" } }
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
text: "projectFacility.requestInclusionOrCreateDataset",
|
|
30
|
-
image: null,
|
|
31
|
-
buttons: [
|
|
32
|
-
{ title: "projectFacility.applyForSoftware", type: "primary", attrs: { href: "https://form.typeform.com/to/r9b1mAZL#token=xxxxx&account=xxxxx", target: "_blank", rel: "noopener noreferrer" } },
|
|
33
|
-
{ title: "projectFacility.createDatasets", type: "primary", attrs: { onClick: () => _.push({ name: "DataProviderInterface-Input", params: { property: "datasets" } }) } },
|
|
34
|
-
{ title: "projectFacility.applyForHardware", type: "primary", attrs: { href: "https://form.typeform.com/to/ayL37uiV#token=xxxxx&account=xxxxx", target: "_blank", rel: "noopener noreferrer" } }
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
text: "projectFacility.startCreatingProject",
|
|
39
|
-
image: null,
|
|
40
|
-
buttons: null
|
|
41
|
-
}
|
|
42
|
-
];
|
|
43
|
-
return (o, z) => (e(), s("div", v, [
|
|
44
|
-
t("div", w, [
|
|
45
|
-
t("h4", P, c(o.$t("projectFacility.projectFacilityTitle")), 1),
|
|
46
|
-
t("p", D, c(o.$t("projectFacility.projectFacilitySubtitle")), 1)
|
|
47
|
-
]),
|
|
48
|
-
t("div", I, [
|
|
49
|
-
(e(), s(l, null, n(f, (a, i) => t("div", {
|
|
50
|
-
key: i,
|
|
51
|
-
class: "about-project-step-heading"
|
|
52
|
-
}, [
|
|
53
|
-
t("div", S, [
|
|
54
|
-
t("div", C, [
|
|
55
|
-
t("img", {
|
|
56
|
-
src: `/src/assets/icon/selected${i + 1}.svg`,
|
|
57
|
-
alt: ""
|
|
58
|
-
}, null, 8, $)
|
|
59
|
-
]),
|
|
60
|
-
t("div", R, [
|
|
61
|
-
t("p", V, c(o.$t(a.text)), 1),
|
|
62
|
-
a.image ? (e(), s("img", {
|
|
63
|
-
key: 0,
|
|
64
|
-
src: a.image,
|
|
65
|
-
alt: ""
|
|
66
|
-
}, null, 8, B)) : p("", !0)
|
|
67
|
-
])
|
|
68
|
-
]),
|
|
69
|
-
a.buttons ? (e(), s("div", L, [
|
|
70
|
-
(e(!0), s(l, null, n(a.buttons, (r) => (e(), u(h(r.attrs.href ? "a" : r.attrs.to ? "router-link" : "div"), j({ ref_for: !0 }, r.attrs), {
|
|
71
|
-
default: d(() => [
|
|
72
|
-
(e(), u(y, {
|
|
73
|
-
key: r.title,
|
|
74
|
-
"button-text": o.$t(r.title),
|
|
75
|
-
variant: r.type,
|
|
76
|
-
size: "small"
|
|
77
|
-
}, null, 8, ["button-text", "variant"]))
|
|
78
|
-
]),
|
|
79
|
-
_: 2
|
|
80
|
-
}, 1040))), 256))
|
|
81
|
-
])) : p("", !0)
|
|
82
|
-
])), 64))
|
|
83
|
-
]),
|
|
84
|
-
t("div", N, [
|
|
85
|
-
m(b(g), { to: { name: "DataProviderInterface-InputProject", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
|
|
86
|
-
default: d(() => [
|
|
87
|
-
m(y, {
|
|
88
|
-
size: "large",
|
|
89
|
-
"button-text": o.$t("projectFacility.createNewProject")
|
|
90
|
-
}, null, 8, ["button-text"])
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
})
|
|
94
|
-
])
|
|
95
|
-
]));
|
|
96
|
-
}
|
|
97
|
-
}, J = /* @__PURE__ */ k(A, [["__scopeId", "data-v-913c644d"]]);
|
|
3
|
+
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5dc6b64b"]]);
|
|
98
5
|
export {
|
|
99
|
-
|
|
6
|
+
p as default
|
|
100
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent as b, computed as g, createElementBlock as o, openBlock as e, createElementVNode as t, toDisplayString as l, Fragment as p, renderList as d, createCommentVNode as u, createBlock as n, resolveDynamicComponent as m, mergeProps as k, withCtx as y, createVNode as F } from "vue";
|
|
2
|
+
import { useRouter as v } from "vue-router";
|
|
3
|
+
import w from "./img/DataProcessingSteps.svg.js";
|
|
4
|
+
import h from "./ui/ButtonV3.vue.js";
|
|
5
|
+
const C = { class: "about-project" }, P = { class: "about-project-header" }, $ = { class: "about-project-title" }, D = { class: "copy-small-regular about-project-description" }, T = { class: "about-project-steps" }, S = { class: "about-project-step-header" }, I = { class: "circle" }, B = ["src"], R = { class: "about-project-step" }, V = { class: "copy-small-regular" }, L = ["src"], N = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "about-project-step-buttons"
|
|
8
|
+
}, x = { class: "new-project" }, O = /* @__PURE__ */ b({
|
|
9
|
+
__name: "AboutProject",
|
|
10
|
+
props: {
|
|
11
|
+
allowedToCreate: { type: Boolean },
|
|
12
|
+
authToken: {},
|
|
13
|
+
username: {}
|
|
14
|
+
},
|
|
15
|
+
setup(f) {
|
|
16
|
+
const c = f, _ = v(), j = g(() => [
|
|
17
|
+
{
|
|
18
|
+
text: "projectFacility.projectDocumentationProcessStepsResources",
|
|
19
|
+
image: w,
|
|
20
|
+
buttons: null
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
text: "projectFacility.searchProjectResourcesStep3",
|
|
24
|
+
image: null,
|
|
25
|
+
buttons: [
|
|
26
|
+
{ title: "projectFacility.searchSoftware", type: "secondary", attrs: { href: "https://twin.bydata.de/softwares", target: "_blank", rel: "noopener noreferrer" } },
|
|
27
|
+
{ title: "projectFacility.searchRecords", type: "secondary", attrs: { href: "https://twin.bydata.de/datasets", target: "_blank", rel: "noopener noreferrer" } },
|
|
28
|
+
{ title: "projectFacility.findHardware", type: "secondary", attrs: { href: "https://twin.bydata.de/hardwares", target: "_blank", rel: "noopener noreferrer" } }
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
text: "projectFacility.requestInclusionOrCreateDataset",
|
|
33
|
+
image: null,
|
|
34
|
+
buttons: [
|
|
35
|
+
{ title: "projectFacility.applyForSoftware", type: "primary", attrs: { href: `https://form.typeform.com/to/r9b1mAZL#token=${c.authToken}&account=${c.username}`, target: "_blank", rel: "noopener noreferrer" } },
|
|
36
|
+
{ title: "projectFacility.createDatasets", type: "primary", attrs: { onClick: () => _.push({ name: "DataProviderInterface-Input", params: { property: "datasets" } }) } },
|
|
37
|
+
{ title: "projectFacility.applyForHardware", type: "primary", attrs: { href: `https://form.typeform.com/to/ayL37uiV#token=${c.authToken}&account=${c.username}`, target: "_blank", rel: "noopener noreferrer" } }
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
text: "projectFacility.startCreatingProject",
|
|
42
|
+
image: null,
|
|
43
|
+
buttons: null
|
|
44
|
+
}
|
|
45
|
+
]);
|
|
46
|
+
return (r, q) => (e(), o("div", C, [
|
|
47
|
+
t("div", P, [
|
|
48
|
+
t("h4", $, l(r.$t("projectFacility.projectFacilityTitle")), 1),
|
|
49
|
+
t("p", D, l(r.$t("projectFacility.projectFacilitySubtitle")), 1)
|
|
50
|
+
]),
|
|
51
|
+
t("div", T, [
|
|
52
|
+
(e(!0), o(p, null, d(j.value, (s, i) => (e(), o("div", {
|
|
53
|
+
key: i,
|
|
54
|
+
class: "about-project-step-heading"
|
|
55
|
+
}, [
|
|
56
|
+
t("div", S, [
|
|
57
|
+
t("div", I, [
|
|
58
|
+
t("img", {
|
|
59
|
+
src: `/src/assets/icon/selected${i + 1}.svg`,
|
|
60
|
+
alt: ""
|
|
61
|
+
}, null, 8, B)
|
|
62
|
+
]),
|
|
63
|
+
t("div", R, [
|
|
64
|
+
t("p", V, l(r.$t(s.text)), 1),
|
|
65
|
+
s.image ? (e(), o("img", {
|
|
66
|
+
key: 0,
|
|
67
|
+
src: s.image,
|
|
68
|
+
alt: ""
|
|
69
|
+
}, null, 8, L)) : u("", !0)
|
|
70
|
+
])
|
|
71
|
+
]),
|
|
72
|
+
s.buttons ? (e(), o("div", N, [
|
|
73
|
+
(e(!0), o(p, null, d(s.buttons, (a) => (e(), n(m(a.attrs.href ? "a" : a.attrs.to ? "router-link" : "div"), k({ ref_for: !0 }, a.attrs), {
|
|
74
|
+
default: y(() => [
|
|
75
|
+
(e(), n(h, {
|
|
76
|
+
key: a.title,
|
|
77
|
+
"button-text": r.$t(a.title),
|
|
78
|
+
variant: a.type,
|
|
79
|
+
size: "small"
|
|
80
|
+
}, null, 8, ["button-text", "variant"]))
|
|
81
|
+
]),
|
|
82
|
+
_: 2
|
|
83
|
+
}, 1040))), 256))
|
|
84
|
+
])) : u("", !0)
|
|
85
|
+
]))), 128))
|
|
86
|
+
]),
|
|
87
|
+
t("div", x, [
|
|
88
|
+
(e(), n(m(r.allowedToCreate ? "RouterLink" : "span"), {
|
|
89
|
+
disabled: !r.allowedToCreate,
|
|
90
|
+
to: { name: "DataProviderInterface-InputProject", query: { locale: "de", edit: !1 }, params: { property: "datasets" } }
|
|
91
|
+
}, {
|
|
92
|
+
default: y(() => [
|
|
93
|
+
F(h, {
|
|
94
|
+
disabled: !r.allowedToCreate,
|
|
95
|
+
size: "large",
|
|
96
|
+
"button-text": r.$t("projectFacility.createNewProject")
|
|
97
|
+
}, null, 8, ["disabled", "button-text"])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}, 8, ["disabled"]))
|
|
101
|
+
])
|
|
102
|
+
]));
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export {
|
|
106
|
+
O as default
|
|
107
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useRuntimeEnv as
|
|
3
|
-
import
|
|
4
|
-
import { useTwinbyUser as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { ref as S, createElementBlock as _, openBlock as i, Fragment as C, createElementVNode as t, createBlock as r, createCommentVNode as l, createVNode as F, toDisplayString as a, normalizeClass as g, unref as s, withCtx as T, renderSlot as V, createTextVNode as $ } from "vue";
|
|
2
|
+
import { useRuntimeEnv as z } from "../../composables/useRuntimeEnv.js";
|
|
3
|
+
import H from "../components/TheErrorDialog.vue.js";
|
|
4
|
+
import { useTwinbyUser as B } from "../composables/useTwinbyUser.js";
|
|
5
|
+
import E from "./AboutProject.vue.js";
|
|
6
|
+
import N from "./Organisation.vue.js";
|
|
7
|
+
import v from "./ResourceTable.vue.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import x from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const A = { class: "dpi_home" }, O = { class: "copy-small-regular dpi_home-subtitle" }, K = { class: "header_sections" }, R = {
|
|
11
11
|
__name: "DPIHome",
|
|
12
|
-
setup(
|
|
13
|
-
var
|
|
14
|
-
const
|
|
12
|
+
setup(Z) {
|
|
13
|
+
var p, c, d, f;
|
|
14
|
+
const u = z(), y = {
|
|
15
15
|
dpi: "Schön, dass Sie Ihre Vorgehensweise beim Aufbau eines Digitalen Zwillings mit anderen Kommunen teilen.",
|
|
16
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".'
|
|
17
|
-
},
|
|
18
|
-
function
|
|
19
|
-
|
|
17
|
+
}, o = S("project");
|
|
18
|
+
function m(n) {
|
|
19
|
+
o.value = n;
|
|
20
20
|
}
|
|
21
|
-
const { startFetchPermissions:
|
|
22
|
-
keycloak: ((
|
|
23
|
-
realm: ((
|
|
21
|
+
const { startFetchPermissions: b, organizationDetails: w, allowedToCreate: j, authToken: I, username: D } = B({
|
|
22
|
+
keycloak: ((c = (p = u.authentication) == null ? void 0 : p.keycloak) == null ? void 0 : c.url) || "https://keycloak.twin.bydata.de",
|
|
23
|
+
realm: ((f = (d = u.authentication) == null ? void 0 : d.keycloak) == null ? void 0 : f.realm) || "piveau",
|
|
24
24
|
audience: "piveau-hub-repo"
|
|
25
25
|
});
|
|
26
|
-
return
|
|
27
|
-
var
|
|
28
|
-
return
|
|
26
|
+
return b(), (n, e) => {
|
|
27
|
+
var h, k;
|
|
28
|
+
return i(), _(C, null, [
|
|
29
29
|
e[4] || (e[4] = t("link", {
|
|
30
30
|
rel: "preconnect",
|
|
31
31
|
href: "https://fonts.googleapis.com"
|
|
@@ -39,36 +39,41 @@ const N = { class: "dpi_home" }, T = { class: "copy-small-regular dpi_home-subti
|
|
|
39
39
|
href: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
|
|
40
40
|
rel: "stylesheet"
|
|
41
41
|
}, null, -1)),
|
|
42
|
-
t("div",
|
|
42
|
+
t("div", A, [
|
|
43
43
|
e[3] || (e[3] = t("h1", { class: "dpi_home-title" }, " Willkommen ", -1)),
|
|
44
|
-
t("p",
|
|
45
|
-
t("div",
|
|
44
|
+
t("p", O, a(y[o.value]), 1),
|
|
45
|
+
t("div", K, [
|
|
46
46
|
t("button", {
|
|
47
|
-
class:
|
|
48
|
-
onClick: e[0] || (e[0] = (
|
|
49
|
-
},
|
|
47
|
+
class: g({ active: o.value === "project" }),
|
|
48
|
+
onClick: e[0] || (e[0] = (P) => m("project"))
|
|
49
|
+
}, a(n.$t("projectFacility.projectFacility")), 3),
|
|
50
50
|
t("button", {
|
|
51
|
-
class:
|
|
52
|
-
onClick: e[1] || (e[1] = (
|
|
53
|
-
},
|
|
51
|
+
class: g({ active: o.value === "dpi" }),
|
|
52
|
+
onClick: e[1] || (e[1] = (P) => m("dpi"))
|
|
53
|
+
}, a(n.$t("projectFacility.dpiHome")), 3)
|
|
54
54
|
]),
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
o.value === "project" ? (i(), r(E, {
|
|
56
|
+
key: 0,
|
|
57
|
+
"allowed-to-create": s(j),
|
|
58
|
+
"auth-token": s(I),
|
|
59
|
+
username: s(D)
|
|
60
|
+
}, null, 8, ["allowed-to-create", "auth-token", "username"])) : l("", !0),
|
|
61
|
+
o.value === "dpi" ? (i(), r(v, {
|
|
57
62
|
key: 1,
|
|
58
63
|
type: "projects"
|
|
59
64
|
})) : l("", !0),
|
|
60
|
-
|
|
65
|
+
o.value === "dpi" ? (i(), r(v, {
|
|
61
66
|
key: 2,
|
|
62
67
|
type: "datasets"
|
|
63
68
|
})) : l("", !0),
|
|
64
|
-
|
|
69
|
+
o.value === "dpi" ? (i(), r(N, {
|
|
65
70
|
key: 3,
|
|
66
|
-
title: (
|
|
71
|
+
title: (k = (h = s(w).resultEnhanced) == null ? void 0 : h.value) == null ? void 0 : k.title
|
|
67
72
|
}, null, 8, ["title"])) : l("", !0),
|
|
68
|
-
|
|
69
|
-
title:
|
|
70
|
-
|
|
71
|
-
e[2] || (e[2] =
|
|
73
|
+
F(H, null, {
|
|
74
|
+
title: T(() => [
|
|
75
|
+
V(n.$slots, "title", {}, () => [
|
|
76
|
+
e[2] || (e[2] = $(" Fehlermeldung ", -1))
|
|
72
77
|
], !0)
|
|
73
78
|
]),
|
|
74
79
|
_: 3
|
|
@@ -77,7 +82,7 @@ const N = { class: "dpi_home" }, T = { class: "copy-small-regular dpi_home-subti
|
|
|
77
82
|
], 64);
|
|
78
83
|
};
|
|
79
84
|
}
|
|
80
|
-
},
|
|
85
|
+
}, Y = /* @__PURE__ */ x(R, [["__scopeId", "data-v-a1cdac00"]]);
|
|
81
86
|
export {
|
|
82
|
-
|
|
87
|
+
Y as default
|
|
83
88
|
};
|
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
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1e334af4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
i as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResourceTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-02618552"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js
CHANGED
|
@@ -1,54 +1,51 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { PhCircleNotch as
|
|
3
|
-
import { whenever as
|
|
4
|
-
import { useStore as
|
|
5
|
-
import { useRuntimeEnv as
|
|
6
|
-
import { useDebouncedLoading as
|
|
1
|
+
import { defineComponent as K, computed as o, ref as V, watch as M, createElementBlock as n, openBlock as l, createElementVNode as a, createCommentVNode as f, toDisplayString as y, createBlock as D, resolveDynamicComponent as G, unref as r, withCtx as Q, createVNode as C, Fragment as X, renderList as Y } from "vue";
|
|
2
|
+
import { PhCircleNotch as Z } from "@phosphor-icons/vue";
|
|
3
|
+
import { whenever as ee } from "@vueuse/core";
|
|
4
|
+
import { useStore as te } from "vuex";
|
|
5
|
+
import { useRuntimeEnv as ie } from "../../composables/useRuntimeEnv.js";
|
|
6
|
+
import { useDebouncedLoading as ae } from "../composables/useDebouncedLoading.js";
|
|
7
7
|
import { useErrorDialog as oe } from "../composables/useErrorDialog.js";
|
|
8
|
-
import { useProjectSearch as
|
|
9
|
-
import { useTwinbyUser as
|
|
10
|
-
import { formatDate as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "copy-large-semi-bold landingText"
|
|
16
|
-
}, ve = { class: "interactionButtonsDPIHome" }, fe = {
|
|
8
|
+
import { useProjectSearch as le, useDatasetSearch as se } from "../composables/useTwinbyHome.js";
|
|
9
|
+
import { useTwinbyUser as ne } from "../composables/useTwinbyUser.js";
|
|
10
|
+
import { formatDate as re } from "../utils/formatDate.js";
|
|
11
|
+
import de from "./ui/ButtonV3.vue.js";
|
|
12
|
+
import ue from "./ui/TableRowV3.vue.js";
|
|
13
|
+
const ce = { class: "dpiV3_dpiHome V3-typography" }, pe = { class: "dpiV3_homeHeadWrap" }, me = { class: "dpiV3_tableHeader" }, he = { class: "interactionButtonsDPIHome" }, be = {
|
|
17
14
|
key: 0,
|
|
18
15
|
class: "dpiV3_table"
|
|
19
|
-
},
|
|
16
|
+
}, ve = {
|
|
20
17
|
key: 0,
|
|
21
18
|
class: "dpiV3_loadingSkeleton"
|
|
22
|
-
},
|
|
19
|
+
}, fe = {
|
|
23
20
|
key: 1,
|
|
24
21
|
class: "dpiV3_innerTable"
|
|
25
|
-
},
|
|
22
|
+
}, ye = { class: "dpiV3_tableHeadWrap" }, we = { class: "dpiV3_thWrap" }, _e = { scope: "col" }, ge = {
|
|
26
23
|
key: 0,
|
|
27
24
|
scope: "col",
|
|
28
25
|
class: "dpiV3_statusHead"
|
|
29
|
-
},
|
|
26
|
+
}, xe = /* @__PURE__ */ K({
|
|
30
27
|
__name: "ResourceTable",
|
|
31
28
|
props: {
|
|
32
29
|
type: {}
|
|
33
30
|
},
|
|
34
|
-
setup(
|
|
35
|
-
var k, S, P
|
|
36
|
-
const
|
|
37
|
-
keycloak: ((
|
|
38
|
-
realm: ((
|
|
31
|
+
setup(E) {
|
|
32
|
+
var g, k, S, P;
|
|
33
|
+
const L = E, d = ie(), N = te(), { allowedToCreate: u, organization: I } = ne({
|
|
34
|
+
keycloak: ((k = (g = d.authentication) == null ? void 0 : g.keycloak) == null ? void 0 : k.url) || "https://keycloak.twin.bydata.de",
|
|
35
|
+
realm: ((P = (S = d.authentication) == null ? void 0 : S.keycloak) == null ? void 0 : P.realm) || "piveau",
|
|
39
36
|
audience: "piveau-hub-repo"
|
|
40
|
-
}),
|
|
37
|
+
}), T = o(() => {
|
|
41
38
|
var t, e;
|
|
42
|
-
return (e = (t =
|
|
43
|
-
}), c =
|
|
44
|
-
Authorization: `Bearer ${
|
|
45
|
-
})), p =
|
|
46
|
-
|
|
39
|
+
return (e = (t = N.getters) == null ? void 0 : t["auth/getUserData"]) == null ? void 0 : e.authToken;
|
|
40
|
+
}), c = o(() => ({
|
|
41
|
+
Authorization: `Bearer ${T.value}`
|
|
42
|
+
})), p = o(() => L.type === "projects"), { useSearch: j } = le(d.api.baseUrl), { useSearch: x } = se(d.api.baseUrl), m = V([]);
|
|
43
|
+
M(I, (t) => {
|
|
47
44
|
m.value = [t];
|
|
48
45
|
}, {
|
|
49
46
|
immediate: !0
|
|
50
47
|
});
|
|
51
|
-
const
|
|
48
|
+
const H = j({
|
|
52
49
|
queryParams: {
|
|
53
50
|
limit: 200,
|
|
54
51
|
sort: "modified+desc"
|
|
@@ -61,7 +58,7 @@ const pe = { class: "dpiV3_dpiHome V3-typography" }, me = { class: "dpiV3_homeHe
|
|
|
61
58
|
accessControlPermissions: "view,edit,publish,delete"
|
|
62
59
|
},
|
|
63
60
|
headers: c
|
|
64
|
-
}),
|
|
61
|
+
}), z = x({
|
|
65
62
|
queryParams: {
|
|
66
63
|
limit: 200,
|
|
67
64
|
sort: "modified+desc"
|
|
@@ -73,18 +70,18 @@ const pe = { class: "dpiV3_dpiHome V3-typography" }, me = { class: "dpiV3_homeHe
|
|
|
73
70
|
accessControlPermissions: "view,edit,publish,delete"
|
|
74
71
|
},
|
|
75
72
|
headers: c
|
|
76
|
-
}), { getSearchResultsEnhanced:
|
|
77
|
-
|
|
73
|
+
}), { getSearchResultsEnhanced: B, query: w, isFetching: F } = o(() => p.value ? H : z).value, h = o(() => w.error.value), { openErrorDialog: R } = oe();
|
|
74
|
+
ee(h, () => {
|
|
78
75
|
if (!h.value)
|
|
79
76
|
return;
|
|
80
77
|
const t = p.value ? "Fehler beim Laden der Projekte" : "Fehler beim Laden der Datensätze", e = new Error(`${JSON.stringify(h.value)}
|
|
81
78
|
|
|
82
79
|
${JSON.stringify(c.value)}`);
|
|
83
|
-
|
|
80
|
+
R(e, t);
|
|
84
81
|
});
|
|
85
|
-
const b =
|
|
82
|
+
const b = o(() => {
|
|
86
83
|
var t;
|
|
87
|
-
return (t =
|
|
84
|
+
return (t = B.value) == null ? void 0 : t.map((e) => ({
|
|
88
85
|
id: e.id,
|
|
89
86
|
title: e.title,
|
|
90
87
|
modified: e.modified,
|
|
@@ -95,14 +92,14 @@ ${JSON.stringify(c.value)}`);
|
|
|
95
92
|
allowPublish: e.allowPublish,
|
|
96
93
|
allowDelete: e.allowDelete
|
|
97
94
|
}));
|
|
98
|
-
}), { isLoading:
|
|
99
|
-
async function
|
|
100
|
-
await new Promise((t) => setTimeout(t, 2100)),
|
|
95
|
+
}), { isLoading: q } = ae(F), v = V(!1);
|
|
96
|
+
async function _() {
|
|
97
|
+
await new Promise((t) => setTimeout(t, 2100)), w.refetch(), v.value = !1;
|
|
101
98
|
}
|
|
102
|
-
function
|
|
103
|
-
v.value = !0,
|
|
99
|
+
function U() {
|
|
100
|
+
v.value = !0, _();
|
|
104
101
|
}
|
|
105
|
-
const
|
|
102
|
+
const A = o(() => q.value || v.value), s = o(() => p.value ? {
|
|
106
103
|
title: "Ihre Projekte",
|
|
107
104
|
description: "Hier sehen Sie alle Projekte, die Sie bearbeiten oder veröffentlichen können.",
|
|
108
105
|
buttonText: "Neues Projekt erstellen",
|
|
@@ -118,31 +115,27 @@ ${JSON.stringify(c.value)}`);
|
|
|
118
115
|
columnLabel: "Name",
|
|
119
116
|
showVisibilityColumn: !0,
|
|
120
117
|
showEmptyState: !0
|
|
121
|
-
}),
|
|
118
|
+
}), W = {
|
|
122
119
|
public: "Öffentlich",
|
|
123
120
|
restricted: "Eingeschränkt",
|
|
124
121
|
internal: "Intern"
|
|
125
122
|
};
|
|
126
|
-
function
|
|
127
|
-
return
|
|
123
|
+
function $(t) {
|
|
124
|
+
return W[t] || t;
|
|
128
125
|
}
|
|
129
|
-
const
|
|
130
|
-
return (t, e) => (
|
|
131
|
-
a("div",
|
|
132
|
-
a("h2",
|
|
126
|
+
const J = o(() => s.value.showEmptyState && (!b.value || b.value.length === 0));
|
|
127
|
+
return (t, e) => (l(), n("div", ce, [
|
|
128
|
+
a("div", pe, [
|
|
129
|
+
a("h2", me, y(s.value.title), 1),
|
|
133
130
|
a("p", null, y(s.value.description), 1),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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"), {
|
|
131
|
+
f("", !0),
|
|
132
|
+
a("div", he, [
|
|
133
|
+
(l(), D(G(r(u) ? "RouterLink" : "span"), {
|
|
141
134
|
disabled: !r(u),
|
|
142
135
|
to: { name: s.value.routeName, query: { locale: "de", edit: !1 }, params: { property: "datasets" } }
|
|
143
136
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
137
|
+
default: Q(() => [
|
|
138
|
+
C(de, {
|
|
146
139
|
disabled: !r(u),
|
|
147
140
|
"button-text": s.value.buttonText,
|
|
148
141
|
size: "large"
|
|
@@ -152,17 +145,17 @@ ${JSON.stringify(c.value)}`);
|
|
|
152
145
|
}, 8, ["disabled", "to"]))
|
|
153
146
|
])
|
|
154
147
|
]),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
148
|
+
J.value ? f("", !0) : (l(), n("div", be, [
|
|
149
|
+
A.value ? (l(), n("div", ve, [
|
|
150
|
+
C(r(Z), {
|
|
158
151
|
size: 48,
|
|
159
152
|
weight: "bold",
|
|
160
153
|
class: "dpiV3_spinningIcon"
|
|
161
154
|
})
|
|
162
|
-
])) : (
|
|
163
|
-
a("div",
|
|
164
|
-
a("div",
|
|
165
|
-
a("div",
|
|
155
|
+
])) : (l(), n("div", fe, [
|
|
156
|
+
a("div", ye, [
|
|
157
|
+
a("div", we, [
|
|
158
|
+
a("div", _e, [
|
|
166
159
|
a("span", null, y(s.value.columnLabel), 1)
|
|
167
160
|
]),
|
|
168
161
|
e[2] || (e[2] = a("div", {
|
|
@@ -171,29 +164,29 @@ ${JSON.stringify(c.value)}`);
|
|
|
171
164
|
}, [
|
|
172
165
|
a("span", null, "Status")
|
|
173
166
|
], -1)),
|
|
174
|
-
s.value.showVisibilityColumn ? (
|
|
167
|
+
s.value.showVisibilityColumn ? (l(), n("div", ge, e[1] || (e[1] = [
|
|
175
168
|
a("span", null, "Sichtbarkeit", -1)
|
|
176
169
|
]))) : f("", !0)
|
|
177
170
|
]),
|
|
178
171
|
e[3] || (e[3] = a("div", { class: "dpiV3_blankCell" }, null, -1))
|
|
179
172
|
]),
|
|
180
173
|
a("div", null, [
|
|
181
|
-
(
|
|
174
|
+
(l(!0), n(X, null, Y(b.value, (i, O) => (l(), D(ue, {
|
|
182
175
|
id: i.id,
|
|
183
|
-
key: i.id ??
|
|
176
|
+
key: i.id ?? O,
|
|
184
177
|
type: t.type,
|
|
185
178
|
text: i.title || "Kein Titel in englisch oder deutsch vohanden",
|
|
186
|
-
date: i.modified ? r(
|
|
179
|
+
date: i.modified ? r(re)(i.modified) : "-",
|
|
187
180
|
dataset: i,
|
|
188
|
-
visibility:
|
|
181
|
+
visibility: $(i.visibility || "public"),
|
|
189
182
|
"visibility-state": i.visibility,
|
|
190
183
|
draft: i.publicationStatus === "draft",
|
|
191
184
|
catalogue: i.catalogId,
|
|
192
185
|
"allow-edit": i.allowEdit && i.publicationStatus === "draft",
|
|
193
186
|
"allow-publish": i.allowPublish,
|
|
194
187
|
"allow-delete": i.allowDelete,
|
|
195
|
-
onComplete:
|
|
196
|
-
onStart:
|
|
188
|
+
onComplete: _,
|
|
189
|
+
onStart: U
|
|
197
190
|
}, null, 8, ["id", "type", "text", "date", "dataset", "visibility", "visibility-state", "draft", "catalogue", "allow-edit", "allow-publish", "allow-delete"]))), 128))
|
|
198
191
|
])
|
|
199
192
|
]))
|
|
@@ -202,5 +195,5 @@ ${JSON.stringify(c.value)}`);
|
|
|
202
195
|
}
|
|
203
196
|
});
|
|
204
197
|
export {
|
|
205
|
-
|
|
198
|
+
xe as default
|
|
206
199
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ApplicationsStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92060eba"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|