@piveau/dpi 0.2.0-alpha.14 → 0.2.0-alpha.15
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 +46 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +107 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +86 -62
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +7 -4
- 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 +26 -27
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
- 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 +19 -19
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +38 -39
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +18 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +35 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +189 -155
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +128 -123
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +337 -337
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +157 -141
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +53 -55
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +61 -59
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +185 -180
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +60 -61
- package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +76 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +67 -34
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +314 -307
- package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
- package/package.json +5 -5
- package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +0 -281
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
import { RouterLink as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { createElementBlock as s, openBlock as e, createElementVNode as t, toDisplayString as c, Fragment as l, renderList as n, createCommentVNode as p, createBlock as u, resolveDynamicComponent as h, mergeProps as j, withCtx as d, createVNode as m, unref as b } from "vue";
|
|
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";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import k from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const v = { class: "about-project" }, w = { class: "about-project-header" }, P = { class: "about-project-title" }, D = { class: "copy-small-regular about-project-description" }, I = { class: "about-project-steps" }, S = { class: "about-project-step-header" }, C = { class: "circle" }, $ = ["src"], R = { class: "about-project-step" }, V = { class: "copy-small-regular" }, B = ["src"], L = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "about-project-step-buttons"
|
|
10
|
-
},
|
|
10
|
+
}, N = { class: "new-project" }, A = {
|
|
11
11
|
__name: "AboutProject",
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(q) {
|
|
13
|
+
const _ = x(), f = [
|
|
14
14
|
{
|
|
15
15
|
text: "projectFacility.projectDocumentationProcessStepsResources",
|
|
16
|
-
image:
|
|
16
|
+
image: F,
|
|
17
17
|
buttons: null
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
text: "projectFacility.searchProjectResourcesStep3",
|
|
21
21
|
image: null,
|
|
22
22
|
buttons: [
|
|
23
|
-
{ title: "projectFacility.searchSoftware", type: "secondary",
|
|
24
|
-
{ title: "projectFacility.searchRecords", type: "secondary",
|
|
25
|
-
{ title: "projectFacility.findHardware", type: "secondary",
|
|
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
26
|
]
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
text: "projectFacility.requestInclusionOrCreateDataset",
|
|
30
30
|
image: null,
|
|
31
31
|
buttons: [
|
|
32
|
-
{ title: "projectFacility.applyForSoftware", type: "primary",
|
|
33
|
-
{ title: "projectFacility.createDatasets", type: "primary",
|
|
34
|
-
{ title: "projectFacility.applyForHardware", type: "primary",
|
|
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
35
|
]
|
|
36
36
|
},
|
|
37
37
|
{
|
|
@@ -40,55 +40,53 @@ const F = { class: "about-project" }, f = { class: "about-project-header" }, v =
|
|
|
40
40
|
buttons: null
|
|
41
41
|
}
|
|
42
42
|
];
|
|
43
|
-
return (
|
|
44
|
-
t("div",
|
|
45
|
-
t("h4",
|
|
46
|
-
t("p",
|
|
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
47
|
]),
|
|
48
|
-
t("div",
|
|
49
|
-
(e(),
|
|
48
|
+
t("div", I, [
|
|
49
|
+
(e(), s(l, null, n(f, (a, i) => t("div", {
|
|
50
50
|
key: i,
|
|
51
51
|
class: "about-project-step-heading"
|
|
52
52
|
}, [
|
|
53
|
-
t("div",
|
|
54
|
-
t("div",
|
|
53
|
+
t("div", S, [
|
|
54
|
+
t("div", C, [
|
|
55
55
|
t("img", {
|
|
56
56
|
src: `/src/assets/icon/selected${i + 1}.svg`,
|
|
57
57
|
alt: ""
|
|
58
|
-
}, null, 8,
|
|
58
|
+
}, null, 8, $)
|
|
59
59
|
]),
|
|
60
|
-
t("div",
|
|
61
|
-
t("p",
|
|
62
|
-
|
|
60
|
+
t("div", R, [
|
|
61
|
+
t("p", V, c(o.$t(a.text)), 1),
|
|
62
|
+
a.image ? (e(), s("img", {
|
|
63
63
|
key: 0,
|
|
64
|
-
src:
|
|
64
|
+
src: a.image,
|
|
65
65
|
alt: ""
|
|
66
|
-
}, null, 8,
|
|
66
|
+
}, null, 8, B)) : p("", !0)
|
|
67
67
|
])
|
|
68
68
|
]),
|
|
69
|
-
|
|
70
|
-
(e(!0),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"button-text": r.$t(s.title),
|
|
77
|
-
variant: s.type,
|
|
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,
|
|
78
76
|
size: "small"
|
|
79
77
|
}, null, 8, ["button-text", "variant"]))
|
|
80
78
|
]),
|
|
81
79
|
_: 2
|
|
82
|
-
},
|
|
83
|
-
])) :
|
|
80
|
+
}, 1040))), 256))
|
|
81
|
+
])) : p("", !0)
|
|
84
82
|
])), 64))
|
|
85
83
|
]),
|
|
86
|
-
t("div",
|
|
87
|
-
m(
|
|
88
|
-
default:
|
|
89
|
-
m(
|
|
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, {
|
|
90
88
|
size: "large",
|
|
91
|
-
"button-text":
|
|
89
|
+
"button-text": o.$t("projectFacility.createNewProject")
|
|
92
90
|
}, null, 8, ["button-text"])
|
|
93
91
|
]),
|
|
94
92
|
_: 1
|
|
@@ -96,7 +94,7 @@ const F = { class: "about-project" }, f = { class: "about-project-header" }, v =
|
|
|
96
94
|
])
|
|
97
95
|
]));
|
|
98
96
|
}
|
|
99
|
-
},
|
|
97
|
+
}, J = /* @__PURE__ */ k(A, [["__scopeId", "data-v-913c644d"]]);
|
|
100
98
|
export {
|
|
101
|
-
|
|
99
|
+
J as default
|
|
102
100
|
};
|
|
@@ -1,55 +1,72 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { ref as v, createElementBlock as y, openBlock as n, Fragment as b, createElementVNode as t, createBlock as r, createCommentVNode as l, createVNode as j, toDisplayString as s, normalizeClass as f, withCtx as w, renderSlot as I, createTextVNode as P } from "vue";
|
|
2
|
+
import { useRuntimeEnv as S } from "../../composables/useRuntimeEnv.js";
|
|
3
|
+
import _ from "../components/TheErrorDialog.vue.js";
|
|
4
|
+
import { useTwinbyUser as D } from "../composables/useTwinbyUser.js";
|
|
5
|
+
import C from "./AboutProject.vue.js";
|
|
6
|
+
import F from "./HomeTable.vue.js";
|
|
7
|
+
import H from "./Organisation.vue.js";
|
|
8
|
+
import V from "./ProjectTable.vue.js";
|
|
6
9
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
10
|
+
import $ from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
const T = { class: "dpi_home" }, z = { class: "copy-small-regular dpi_home-subtitle" }, B = { class: "header_sections" }, N = {
|
|
9
12
|
__name: "DPIHome",
|
|
10
|
-
setup(
|
|
11
|
-
|
|
13
|
+
setup(x) {
|
|
14
|
+
var p, u, c, d;
|
|
15
|
+
const a = S(), g = {
|
|
12
16
|
dpi: "Schön, dass Sie Ihre Vorgehensweise beim Aufbau eines Digitalen Zwillings mit anderen Kommunen teilen.",
|
|
13
17
|
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".'
|
|
14
|
-
}, o =
|
|
15
|
-
function
|
|
18
|
+
}, o = v("project");
|
|
19
|
+
function m(i) {
|
|
16
20
|
o.value = i;
|
|
17
21
|
}
|
|
18
|
-
|
|
19
|
-
|
|
22
|
+
const { startFetchPermissions: k } = D({
|
|
23
|
+
keycloak: ((u = (p = a.authentication) == null ? void 0 : p.keycloak) == null ? void 0 : u.url) || "https://keycloak.twin.bydata.de",
|
|
24
|
+
realm: ((d = (c = a.authentication) == null ? void 0 : c.keycloak) == null ? void 0 : d.realm) || "piveau",
|
|
25
|
+
audience: "piveau-hub-repo"
|
|
26
|
+
});
|
|
27
|
+
return k(), (i, e) => (n(), y(b, null, [
|
|
28
|
+
e[4] || (e[4] = t("link", {
|
|
20
29
|
rel: "preconnect",
|
|
21
30
|
href: "https://fonts.googleapis.com"
|
|
22
31
|
}, null, -1)),
|
|
23
|
-
e[
|
|
32
|
+
e[5] || (e[5] = t("link", {
|
|
24
33
|
rel: "preconnect",
|
|
25
34
|
href: "https://fonts.gstatic.com",
|
|
26
35
|
crossorigin: ""
|
|
27
36
|
}, null, -1)),
|
|
28
|
-
e[
|
|
37
|
+
e[6] || (e[6] = t("link", {
|
|
29
38
|
href: "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",
|
|
30
39
|
rel: "stylesheet"
|
|
31
40
|
}, null, -1)),
|
|
32
|
-
t("div",
|
|
33
|
-
e[
|
|
34
|
-
t("p",
|
|
35
|
-
t("div",
|
|
41
|
+
t("div", T, [
|
|
42
|
+
e[3] || (e[3] = t("h1", { class: "dpi_home-title" }, " Willkommen ", -1)),
|
|
43
|
+
t("p", z, s(g[o.value]), 1),
|
|
44
|
+
t("div", B, [
|
|
36
45
|
t("button", {
|
|
37
|
-
class:
|
|
38
|
-
onClick: e[0] || (e[0] = (
|
|
39
|
-
},
|
|
46
|
+
class: f({ active: o.value === "project" }),
|
|
47
|
+
onClick: e[0] || (e[0] = (h) => m("project"))
|
|
48
|
+
}, s(i.$t("projectFacility.projectFacility")), 3),
|
|
40
49
|
t("button", {
|
|
41
|
-
class:
|
|
42
|
-
onClick: e[1] || (e[1] = (
|
|
43
|
-
},
|
|
50
|
+
class: f({ active: o.value === "dpi" }),
|
|
51
|
+
onClick: e[1] || (e[1] = (h) => m("dpi"))
|
|
52
|
+
}, s(i.$t("projectFacility.dpiHome")), 3)
|
|
44
53
|
]),
|
|
45
|
-
o.value === "project" ? (n(), r(
|
|
46
|
-
o.value === "dpi" ? (n(), r(
|
|
47
|
-
o.value === "dpi" ? (n(), r(
|
|
48
|
-
o.value === "dpi" ? (n(), r(
|
|
54
|
+
o.value === "project" ? (n(), r(C, { key: 0 })) : l("", !0),
|
|
55
|
+
o.value === "dpi" ? (n(), r(V, { key: 1 })) : l("", !0),
|
|
56
|
+
o.value === "dpi" ? (n(), r(F, { key: 2 })) : l("", !0),
|
|
57
|
+
o.value === "dpi" ? (n(), r(H, { key: 3 })) : l("", !0),
|
|
58
|
+
j(_, null, {
|
|
59
|
+
title: w(() => [
|
|
60
|
+
I(i.$slots, "title", {}, () => [
|
|
61
|
+
e[2] || (e[2] = P(" Fehlermeldung ", -1))
|
|
62
|
+
], !0)
|
|
63
|
+
]),
|
|
64
|
+
_: 3
|
|
65
|
+
})
|
|
49
66
|
])
|
|
50
67
|
], 64));
|
|
51
68
|
}
|
|
52
|
-
},
|
|
69
|
+
}, J = /* @__PURE__ */ $(N, [["__scopeId", "data-v-069e0b82"]]);
|
|
53
70
|
export {
|
|
54
|
-
|
|
71
|
+
J as default
|
|
55
72
|
};
|
|
@@ -1,121 +1,140 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
3
|
-
import E from "axios";
|
|
1
|
+
import { ref as y, computed as r, watch as U, createElementBlock as a, openBlock as l, createElementVNode as o, createCommentVNode as _, createTextVNode as k, createBlock as p, resolveDynamicComponent as L, unref as n, withCtx as R, createVNode as W, createStaticVNode as q, Fragment as w, renderList as D } from "vue";
|
|
2
|
+
import { useDebounce as A } from "@vueuse/core";
|
|
4
3
|
import "jquery";
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { useStore as
|
|
7
|
-
import { useRuntimeEnv as
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
4
|
+
import { useRouter as F } from "vue-router";
|
|
5
|
+
import { useStore as K } from "vuex";
|
|
6
|
+
import { useRuntimeEnv as $ } from "../../composables/useRuntimeEnv.js";
|
|
7
|
+
import { useDatasetSearch as j } from "../composables/useTwinbyHome.js";
|
|
8
|
+
import { useTwinbyUser as G } from "../composables/useTwinbyUser.js";
|
|
9
|
+
import { formatDate as V } from "../utils/formatDate.js";
|
|
10
|
+
import J from "./ui/ButtonV3.vue.js";
|
|
11
11
|
import S from "./ui/TableRowV3.vue.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import
|
|
14
|
-
const
|
|
13
|
+
import M from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
14
|
+
const O = { class: "dpiV3_dpiHome V3-typography" }, Q = { class: "dpiV3_homeHeadWrap" }, X = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "copy-large-semi-bold landingText"
|
|
17
|
-
},
|
|
17
|
+
}, Y = { class: "interactionButtonsDPIHome" }, Z = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "dpiV3_table"
|
|
20
|
-
},
|
|
20
|
+
}, ee = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "loading-screen"
|
|
23
|
-
},
|
|
23
|
+
}, te = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "dpiV3_innerTable"
|
|
26
|
-
},
|
|
26
|
+
}, ie = {
|
|
27
27
|
__name: "HomeTable",
|
|
28
|
-
setup(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
setup(le) {
|
|
29
|
+
var f, h, g, b;
|
|
30
|
+
const s = K();
|
|
31
|
+
F(), localStorage.getItem("dpi_duplicate"), y("");
|
|
32
|
+
const m = $();
|
|
33
|
+
y({
|
|
33
34
|
loading: !1,
|
|
34
35
|
message: "",
|
|
35
36
|
confirm: () => null
|
|
36
37
|
});
|
|
37
|
-
const d =
|
|
38
|
+
const d = r(() => s.getters["auth/getUserDrafts"].sort((t, i) => (t.id ?? "").localeCompare(i.id ?? "", "de", { sensitivity: "base", numeric: !0 })));
|
|
38
39
|
console.log(d);
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
console.error(
|
|
57
|
-
message:
|
|
40
|
+
const I = r(() => s.getters["auth/getUserData"]);
|
|
41
|
+
r(() => I.value.rtpToken);
|
|
42
|
+
const T = (t) => s.dispatch("snackbar/showSnackbar", t), x = r(() => {
|
|
43
|
+
var t, i;
|
|
44
|
+
return (i = (t = s.getters) == null ? void 0 : t["auth/getUserData"]) == null ? void 0 : i.authToken;
|
|
45
|
+
}), { useSearch: H } = j("https://twin.bydata.de/api/hub/search"), P = r(() => ({
|
|
46
|
+
Authorization: `Bearer ${x.value}`
|
|
47
|
+
})), { getSearchResultsEnhanced: E, isLoading: z, query: B } = H({
|
|
48
|
+
queryParams: {
|
|
49
|
+
limit: 100
|
|
50
|
+
},
|
|
51
|
+
additionalParams: {
|
|
52
|
+
accessControlPermissions: "edit,publish,delete"
|
|
53
|
+
},
|
|
54
|
+
headers: P
|
|
55
|
+
}), c = r(() => B.error.value);
|
|
56
|
+
U(c, () => {
|
|
57
|
+
console.error(c), T({
|
|
58
|
+
message: c.value.message,
|
|
58
59
|
color: "error"
|
|
59
60
|
});
|
|
60
61
|
});
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
const C = A(z, 500), u = r(() => (E.value || []).map((t) => ({
|
|
63
|
+
id: t.id,
|
|
64
|
+
title: t.title,
|
|
65
|
+
description: t.description,
|
|
66
|
+
modified: t.modified,
|
|
67
|
+
publicationStatus: t.publicationStatus,
|
|
68
|
+
visibility: t.accessLevel,
|
|
69
|
+
catalogId: t.catalogId,
|
|
70
|
+
catalog: { id: t.catalogId },
|
|
71
|
+
allowEdit: t.allowEdit,
|
|
72
|
+
allowPublish: t.allowPublish,
|
|
73
|
+
allowDelete: t.allowDelete
|
|
74
|
+
}))), { allowedToCreate: v } = G({
|
|
75
|
+
keycloak: ((h = (f = m.authentication) == null ? void 0 : f.keycloak) == null ? void 0 : h.url) || "https://keycloak.twin.bydata.de",
|
|
76
|
+
realm: ((b = (g = m.authentication) == null ? void 0 : g.keycloak) == null ? void 0 : b.realm) || "piveau",
|
|
77
|
+
audience: "piveau-hub-repo"
|
|
78
|
+
});
|
|
79
|
+
return (t, i) => (l(), a("div", O, [
|
|
80
|
+
o("div", Q, [
|
|
81
|
+
i[1] || (i[1] = o("h2", { class: "dpiV3_tableHeader" }, " Ihre Datensätze ", -1)),
|
|
82
|
+
i[2] || (i[2] = o("div", { class: "dpiV3_dataset-information" }, [
|
|
83
|
+
o("p", null, "Hier sehen Sie alle Datensätze, die Sie bearbeiten oder veröffentlichen können.")
|
|
67
84
|
], -1)),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
]))) :
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
|
|
85
|
+
u.value.length === 0 && d.value.length === 0 ? (l(), a("p", X, i[0] || (i[0] = [
|
|
86
|
+
k(" Willkommen im Data Provider Interface ✨ ", -1),
|
|
87
|
+
o("br", null, null, -1),
|
|
88
|
+
k("Beginnen Sie mit der Erstellung Ihres ersten Datensatzes! ", -1)
|
|
89
|
+
]))) : _("", !0),
|
|
90
|
+
o("div", Y, [
|
|
91
|
+
(l(), p(L(n(v) ? "RouterLink" : "span"), { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
|
|
92
|
+
default: R(() => [
|
|
93
|
+
W(J, {
|
|
94
|
+
disabled: !n(v),
|
|
77
95
|
"button-text": "Neuen Datensatz erstellen",
|
|
78
96
|
size: "large"
|
|
79
|
-
})
|
|
97
|
+
}, null, 8, ["disabled"])
|
|
80
98
|
]),
|
|
81
99
|
_: 1
|
|
82
|
-
})
|
|
100
|
+
}))
|
|
83
101
|
])
|
|
84
102
|
]),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
]))) : (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
103
|
+
u.value.length > 0 || d.value.length > 0 ? (l(), a("div", Z, [
|
|
104
|
+
n(C) ? (l(), a("div", ee, i[3] || (i[3] = [
|
|
105
|
+
o("p", null, "Lädt Daten...", -1)
|
|
106
|
+
]))) : (l(), a("div", te, [
|
|
107
|
+
i[4] || (i[4] = q('<div class="dpiV3_tableHeadWrap" data-v-71c76df7><div class="dpiV3_thWrap" data-v-71c76df7><div scope="col" data-v-71c76df7><span data-v-71c76df7>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-71c76df7><span data-v-71c76df7>Status</span></div></div><div class="dpiV3_blankCell" data-v-71c76df7></div></div>', 1)),
|
|
108
|
+
o("div", null, [
|
|
109
|
+
(l(!0), a(w, null, D(d.value, (e) => (l(), p(S, {
|
|
110
|
+
id: e.id,
|
|
111
|
+
key: e.id,
|
|
112
|
+
"data-cy": e,
|
|
113
|
+
catalogue: e.catalog,
|
|
114
|
+
text: e.title.de || e.title.en,
|
|
115
|
+
date: e != null && e.modified ? n(V)(e == null ? void 0 : e.modified) : "-",
|
|
116
|
+
draft: "true",
|
|
117
|
+
dataset: e
|
|
118
|
+
}, null, 8, ["id", "data-cy", "catalogue", "text", "date", "dataset"]))), 128)),
|
|
119
|
+
(l(!0), a(w, null, D(u.value, (e, N) => (l(), p(S, {
|
|
120
|
+
id: e.id,
|
|
121
|
+
key: e.id ?? N,
|
|
122
|
+
text: e.title || "Kein Titel in englisch oder deutsch vohanden",
|
|
123
|
+
date: e != null && e.modified ? n(V)(e == null ? void 0 : e.modified) : "-",
|
|
124
|
+
dataset: e,
|
|
125
|
+
visibility: e.visibility,
|
|
126
|
+
draft: e.publicationStatus === "draft",
|
|
127
|
+
catalogue: e.catalogId,
|
|
128
|
+
"allow-edit": e.allowEdit,
|
|
129
|
+
"allow-publish": e.allowPublish,
|
|
130
|
+
"allow-delete": e.allowDelete
|
|
131
|
+
}, null, 8, ["id", "text", "date", "dataset", "visibility", "draft", "catalogue", "allow-edit", "allow-publish", "allow-delete"]))), 128))
|
|
113
132
|
])
|
|
114
133
|
]))
|
|
115
|
-
])) :
|
|
134
|
+
])) : _("", !0)
|
|
116
135
|
]));
|
|
117
136
|
}
|
|
118
|
-
},
|
|
137
|
+
}, ge = /* @__PURE__ */ M(ie, [["__scopeId", "data-v-71c76df7"]]);
|
|
119
138
|
export {
|
|
120
|
-
|
|
139
|
+
ge as default
|
|
121
140
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ProjectTable.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1cfd553a"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|