@piveau/dpi 0.2.0-alpha.24 → 0.2.0-alpha.26

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 (33) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +43 -38
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +23 -22
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +3 -3
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +44 -40
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue.js +7 -0
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js +206 -0
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +76 -62
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +2 -2
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +1 -1
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +7 -7
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +97 -128
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue.js +1 -1
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +1 -1
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +35 -28
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +3 -3
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +114 -111
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +59 -52
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +44 -33
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +7 -7
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +83 -75
  28. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +14 -14
  29. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +86 -73
  30. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +320 -317
  31. package/package.json +1 -1
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +0 -7
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +0 -143
@@ -1,32 +1,31 @@
1
- import { ref as j, createElementBlock as w, openBlock as n, Fragment as I, createElementVNode as t, createBlock as r, createCommentVNode as l, createVNode as P, toDisplayString as s, normalizeClass as h, unref as D, withCtx as S, renderSlot as _, createTextVNode as C } from "vue";
2
- import { useRuntimeEnv as F } from "../../composables/useRuntimeEnv.js";
3
- import H from "../components/TheErrorDialog.vue.js";
4
- import { useTwinbyUser as V } from "../composables/useTwinbyUser.js";
5
- import $ from "./AboutProject.vue.js";
6
- import z from "./HomeTable.vue.js";
7
- import T from "./Organisation.vue.js";
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" }, x = { class: "copy-small-regular dpi_home-subtitle" }, A = { class: "header_sections" }, O = {
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(K) {
14
- var p, u, c, d;
15
- const a = F(), k = {
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
- }, o = j("project");
19
- function m(i) {
20
- o.value = i;
17
+ }, i = w("project");
18
+ function p(n) {
19
+ i.value = n;
21
20
  }
22
- const { startFetchPermissions: v, organizationDetails: y } = V({
23
- keycloak: ((u = (p = a.authentication) == null ? void 0 : p.keycloak) == null ? void 0 : u.url) || "https://keycloak.twin.bydata.de",
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 v(), (i, e) => {
26
+ return y(), (n, e) => {
28
27
  var f, g;
29
- return n(), w(I, null, [
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", x, s(k[o.value]), 1),
46
- t("div", A, [
44
+ t("p", T, s(v[i.value]), 1),
45
+ t("div", x, [
47
46
  t("button", {
48
- class: h({ active: o.value === "project" }),
49
- onClick: e[0] || (e[0] = (b) => m("project"))
50
- }, s(i.$t("projectFacility.projectFacility")), 3),
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: o.value === "dpi" }),
53
- onClick: e[1] || (e[1] = (b) => m("dpi"))
54
- }, s(i.$t("projectFacility.dpiHome")), 3)
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
- o.value === "project" ? (n(), r($, { key: 0 })) : l("", !0),
57
- o.value === "dpi" ? (n(), r(B, { key: 1 })) : l("", !0),
58
- o.value === "dpi" ? (n(), r(z, { key: 2 })) : l("", !0),
59
- o.value === "dpi" ? (n(), r(T, {
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 = D(y).resultEnhanced) == null ? void 0 : f.value) == null ? void 0 : g.title
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(H, null, {
64
- title: S(() => [
65
- _(i.$slots, "title", {}, () => [
66
- e[2] || (e[2] = C(" Fehlermeldung ", -1))
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
- }, X = /* @__PURE__ */ E(O, [["__scopeId", "data-v-09536d5f"]]);
80
+ }, M = /* @__PURE__ */ E(A, [["__scopeId", "data-v-99e6ddef"]]);
76
81
  export {
77
- X as default
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 f, resolveDynamicComponent as F, unref as r, withCtx as K, createVNode as S, createStaticVNode as $, Fragment as I, renderList as T } from "vue";
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 h = M();
34
+ const b = M();
35
35
  v({
36
36
  loading: !1,
37
37
  message: "",
38
38
  confirm: () => null
39
39
  });
40
- const c = l(() => s.getters["auth/getUserDrafts"].sort((t, i) => (t.id ?? "").localeCompare(i.id ?? "", "de", { sensitivity: "base", numeric: !0 })));
41
- console.log(c);
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: b, isFetching: N } = B({
49
+ })), { getSearchResultsEnhanced: L, query: g, isFetching: N } = B({
50
50
  queryParams: {
51
- limit: 100
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
- }), d = l(() => b.error.value);
58
- q(d, () => {
59
- console.error(d), H({
60
- message: d.value.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)), b.refetch(), u.value = !1;
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: g } = X({
84
- keycloak: ((k = (_ = h.authentication) == null ? void 0 : _.keycloak) == null ? void 0 : k.url) || "https://keycloak.twin.bydata.de",
85
- realm: ((w = (y = h.authentication) == null ? void 0 : y.keycloak) == null ? void 0 : w.realm) || "piveau",
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 && c.value.length === 0 ? (o(), a("p", ie, i[0] || (i[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(), f(F(r(g) ? "RouterLink" : "span"), { to: { name: "DataProviderInterface-Input", query: { locale: "de", edit: !1 }, params: { property: "datasets" } } }, {
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(g),
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 || c.value.length > 0 ? (o(), a("div", le, [
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-943cefbc><div class="dpiV3_thWrap" data-v-943cefbc><div scope="col" data-v-943cefbc><span data-v-943cefbc>Datensätze</span></div><div scope="col" class="dpiV3_statusHead" data-v-943cefbc><span data-v-943cefbc>Status</span></div></div><div class="dpiV3_blankCell" data-v-943cefbc></div></div>', 1)),
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(c.value, (e) => (o(), f(C, {
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(), f(C, {
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-943cefbc"]]);
154
+ }, Ve = /* @__PURE__ */ Z(re, [["__scopeId", "data-v-ebde287c"]]);
154
155
  export {
155
156
  Ve as default
156
157
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Organisation.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ a(o, [["__scopeId", "data-v-6aa77f8e"]]);
3
+ import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5566683a"]]);
5
5
  export {
6
- i as default
6
+ m as default
7
7
  };
@@ -1,51 +1,55 @@
1
- import { defineComponent as f, ref as V, onMounted as I, createElementBlock as O, openBlock as k, createElementVNode as t, toDisplayString as i } from "vue";
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 D = { class: "dpiV3_organisation" }, y = { class: "dpiV3_organisationInfo" }, S = { class: "dpiV3_organisationData" }, w = { class: "dpiV3_organisationTitle" }, x = ["src"], A = { class: "dpiV3_organisationAddress" }, B = { class: "dpiV3_organisationTitle" }, T = /* @__PURE__ */ f({
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 m = h, n = V({});
10
- async function v() {
11
- const e = {
12
- title: m.title || "Stadt Haar",
13
- logo: "https://placehold.co/600x400",
14
- address: {
15
- street: "Bahnhofstraße 7",
16
- postalCode: "85540",
17
- city: "Haar"
18
- },
19
- contact: {
20
- phoneNumber: "089 46002-0",
21
- email: "info@stadt-haar.de"
22
- }
23
- };
24
- n.value = e;
25
- }
26
- return I(() => {
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(n.value.title), 1),
35
- t("div", S, [
36
- t("div", w, [
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: n.value.logo,
35
+ src: i.value.logo,
39
36
  alt: ""
40
- }, null, 8, x)
41
- ]),
42
- t("div", A, [
43
- t("p", null, i((s = (o = n.value) == null ? void 0 : o.address) == null ? void 0 : s.street), 1),
44
- t("p", null, i((l = (r = n.value) == null ? void 0 : r.address) == null ? void 0 : l.postalCode) + " " + i((c = (d = n.value) == null ? void 0 : d.address) == null ? void 0 : c.city), 1)
45
- ]),
46
- t("div", B, [
47
- t("p", null, i((u = (p = n.value) == null ? void 0 : p.contact) == null ? void 0 : u.phoneNumber), 1),
48
- t("p", null, i((g = (_ = n.value) == null ? void 0 : _.contact) == null ? void 0 : g.email), 1)
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
- T as default
61
+ B as default
58
62
  };
@@ -0,0 +1,7 @@
1
+ import o from "./ResourceTable.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-78f51d39"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -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 i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1f36a3b"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-79516ef1"]]);
5
5
  export {
6
- i as default
6
+ f as default
7
7
  };