@piveau/dpi 0.2.0-alpha.50 → 0.2.0-alpha.52
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/ResourceTable.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js +30 -30
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +71 -68
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +42 -42
- package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +18 -21
- package/package.json +1 -1
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 f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-59f796bd"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ResourceTable.vue2.js
CHANGED
|
@@ -10,42 +10,42 @@ import { useTwinbyUser as ne } from "../composables/useTwinbyUser.js";
|
|
|
10
10
|
import { formatDate as re } from "../utils/formatDate.js";
|
|
11
11
|
import de from "./ui/ButtonV3.vue.js";
|
|
12
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" },
|
|
13
|
+
const ce = { class: "dpiV3_dpiHome V3-typography" }, pe = { class: "dpiV3_homeHeadWrap" }, me = { class: "dpiV3_tableHeader" }, he = { class: "interactionButtonsDPIHome" }, ve = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "dpiV3_table"
|
|
16
|
-
},
|
|
16
|
+
}, be = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "dpiV3_loadingSkeleton"
|
|
19
19
|
}, fe = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "dpiV3_innerTable"
|
|
22
|
-
}, ye = { class: "dpiV3_tableHeadWrap" }, we = { class: "dpiV3_thWrap" },
|
|
22
|
+
}, ye = { class: "dpiV3_tableHeadWrap" }, we = { class: "dpiV3_thWrap" }, ge = { scope: "col" }, _e = {
|
|
23
23
|
key: 0,
|
|
24
24
|
scope: "col",
|
|
25
25
|
class: "dpiV3_statusHead"
|
|
26
|
-
},
|
|
26
|
+
}, He = /* @__PURE__ */ K({
|
|
27
27
|
__name: "ResourceTable",
|
|
28
28
|
props: {
|
|
29
29
|
type: {}
|
|
30
30
|
},
|
|
31
31
|
setup(E) {
|
|
32
|
-
var
|
|
33
|
-
const L = E, d = ie(), N = te(), { allowedToCreate: u, organization:
|
|
34
|
-
keycloak: ((k = (
|
|
32
|
+
var _, k, S, P;
|
|
33
|
+
const L = E, d = ie(), N = te(), { allowedToCreate: u, organization: j } = ne({
|
|
34
|
+
keycloak: ((k = (_ = d.authentication) == null ? void 0 : _.keycloak) == null ? void 0 : k.url) || "https://keycloak.twin.bydata.de",
|
|
35
35
|
realm: ((P = (S = d.authentication) == null ? void 0 : S.keycloak) == null ? void 0 : P.realm) || "piveau",
|
|
36
36
|
audience: "piveau-hub-repo"
|
|
37
|
-
}),
|
|
37
|
+
}), I = o(() => {
|
|
38
38
|
var t, e;
|
|
39
39
|
return (e = (t = N.getters) == null ? void 0 : t["auth/getUserData"]) == null ? void 0 : e.authToken;
|
|
40
40
|
}), c = o(() => ({
|
|
41
|
-
Authorization: `Bearer ${
|
|
42
|
-
})), p = o(() => L.type === "projects"), { useSearch:
|
|
43
|
-
M(
|
|
41
|
+
Authorization: `Bearer ${I.value}`
|
|
42
|
+
})), p = o(() => L.type === "projects"), { useSearch: T } = le(d.api.baseUrl), { useSearch: H } = se(d.api.baseUrl), m = V([]);
|
|
43
|
+
M(j, (t) => {
|
|
44
44
|
m.value = [t];
|
|
45
45
|
}, {
|
|
46
46
|
immediate: !0
|
|
47
47
|
});
|
|
48
|
-
const
|
|
48
|
+
const x = T({
|
|
49
49
|
queryParams: {
|
|
50
50
|
limit: 200,
|
|
51
51
|
sort: "modified+desc"
|
|
@@ -58,10 +58,10 @@ const ce = { class: "dpiV3_dpiHome V3-typography" }, pe = { class: "dpiV3_homeHe
|
|
|
58
58
|
accessControlPermissions: "view,edit,publish,delete"
|
|
59
59
|
},
|
|
60
60
|
headers: c
|
|
61
|
-
}), z =
|
|
61
|
+
}), z = H({
|
|
62
62
|
queryParams: {
|
|
63
63
|
limit: 200,
|
|
64
|
-
sort: "modified+desc"
|
|
64
|
+
sort: "title.de+asc,title.en+asc,modified+desc"
|
|
65
65
|
},
|
|
66
66
|
selectedFacets: {
|
|
67
67
|
superCatalog: m
|
|
@@ -70,7 +70,7 @@ const ce = { class: "dpiV3_dpiHome V3-typography" }, pe = { class: "dpiV3_homeHe
|
|
|
70
70
|
accessControlPermissions: "view,edit,publish,delete"
|
|
71
71
|
},
|
|
72
72
|
headers: c
|
|
73
|
-
}), { getSearchResultsEnhanced: B, query: w, isFetching: F } = o(() => p.value ?
|
|
73
|
+
}), { getSearchResultsEnhanced: B, query: w, isFetching: F } = o(() => p.value ? x : z).value, h = o(() => w.error.value), { openErrorDialog: R } = oe();
|
|
74
74
|
ee(h, () => {
|
|
75
75
|
if (!h.value)
|
|
76
76
|
return;
|
|
@@ -79,7 +79,7 @@ const ce = { class: "dpiV3_dpiHome V3-typography" }, pe = { class: "dpiV3_homeHe
|
|
|
79
79
|
${JSON.stringify(c.value)}`);
|
|
80
80
|
R(e, t);
|
|
81
81
|
});
|
|
82
|
-
const
|
|
82
|
+
const v = o(() => {
|
|
83
83
|
var t;
|
|
84
84
|
return (t = B.value) == null ? void 0 : t.map((e) => ({
|
|
85
85
|
id: e.id,
|
|
@@ -92,14 +92,14 @@ ${JSON.stringify(c.value)}`);
|
|
|
92
92
|
allowPublish: e.allowPublish,
|
|
93
93
|
allowDelete: e.allowDelete
|
|
94
94
|
}));
|
|
95
|
-
}), { isLoading: q } = ae(F),
|
|
96
|
-
async function
|
|
97
|
-
await new Promise((t) => setTimeout(t, 2100)), w.refetch(),
|
|
95
|
+
}), { isLoading: q } = ae(F), b = V(!1);
|
|
96
|
+
async function g() {
|
|
97
|
+
await new Promise((t) => setTimeout(t, 2100)), w.refetch(), b.value = !1;
|
|
98
98
|
}
|
|
99
99
|
function U() {
|
|
100
|
-
|
|
100
|
+
b.value = !0, g();
|
|
101
101
|
}
|
|
102
|
-
const A = o(() => q.value ||
|
|
102
|
+
const A = o(() => q.value || b.value), s = o(() => p.value ? {
|
|
103
103
|
title: "Ihre Projekte",
|
|
104
104
|
description: "Hier sehen Sie alle Projekte, die Sie bearbeiten oder veröffentlichen können.",
|
|
105
105
|
buttonText: "Neues Projekt erstellen",
|
|
@@ -123,7 +123,7 @@ ${JSON.stringify(c.value)}`);
|
|
|
123
123
|
function $(t) {
|
|
124
124
|
return W[t] || t;
|
|
125
125
|
}
|
|
126
|
-
const J = o(() => s.value.showEmptyState && (!
|
|
126
|
+
const J = o(() => s.value.showEmptyState && (!v.value || v.value.length === 0));
|
|
127
127
|
return (t, e) => (l(), n("div", ce, [
|
|
128
128
|
a("div", pe, [
|
|
129
129
|
a("h2", me, y(s.value.title), 1),
|
|
@@ -145,8 +145,8 @@ ${JSON.stringify(c.value)}`);
|
|
|
145
145
|
}, 8, ["disabled", "to"]))
|
|
146
146
|
])
|
|
147
147
|
]),
|
|
148
|
-
J.value ? f("", !0) : (l(), n("div",
|
|
149
|
-
A.value ? (l(), n("div",
|
|
148
|
+
J.value ? f("", !0) : (l(), n("div", ve, [
|
|
149
|
+
A.value ? (l(), n("div", be, [
|
|
150
150
|
C(r(Z), {
|
|
151
151
|
size: 48,
|
|
152
152
|
weight: "bold",
|
|
@@ -155,7 +155,7 @@ ${JSON.stringify(c.value)}`);
|
|
|
155
155
|
])) : (l(), n("div", fe, [
|
|
156
156
|
a("div", ye, [
|
|
157
157
|
a("div", we, [
|
|
158
|
-
a("div",
|
|
158
|
+
a("div", ge, [
|
|
159
159
|
a("span", null, y(s.value.columnLabel), 1)
|
|
160
160
|
]),
|
|
161
161
|
e[2] || (e[2] = a("div", {
|
|
@@ -164,19 +164,19 @@ ${JSON.stringify(c.value)}`);
|
|
|
164
164
|
}, [
|
|
165
165
|
a("span", null, "Status")
|
|
166
166
|
], -1)),
|
|
167
|
-
s.value.showVisibilityColumn ? (l(), n("div",
|
|
167
|
+
s.value.showVisibilityColumn ? (l(), n("div", _e, e[1] || (e[1] = [
|
|
168
168
|
a("span", null, "Sichtbarkeit", -1)
|
|
169
169
|
]))) : f("", !0)
|
|
170
170
|
]),
|
|
171
171
|
e[3] || (e[3] = a("div", { class: "dpiV3_blankCell" }, null, -1))
|
|
172
172
|
]),
|
|
173
173
|
a("div", null, [
|
|
174
|
-
(l(!0), n(X, null, Y(
|
|
174
|
+
(l(!0), n(X, null, Y(v.value, (i, O) => (l(), D(ue, {
|
|
175
175
|
id: i.id,
|
|
176
176
|
key: i.id ?? O,
|
|
177
177
|
type: t.type,
|
|
178
178
|
text: i.title || "Kein Titel in englisch oder deutsch vohanden",
|
|
179
|
-
date: i.modified ? r(re)(i.modified) : "-",
|
|
179
|
+
date: t.type === "projects" ? i.modified ? r(re)(i.modified) : "-" : void 0,
|
|
180
180
|
dataset: i,
|
|
181
181
|
visibility: $(i.visibility || "public"),
|
|
182
182
|
"visibility-state": i.visibility,
|
|
@@ -185,7 +185,7 @@ ${JSON.stringify(c.value)}`);
|
|
|
185
185
|
"allow-edit": i.allowEdit && i.publicationStatus === "draft",
|
|
186
186
|
"allow-publish": i.allowPublish,
|
|
187
187
|
"allow-delete": i.allowDelete,
|
|
188
|
-
onComplete:
|
|
188
|
+
onComplete: g,
|
|
189
189
|
onStart: U
|
|
190
190
|
}, null, 8, ["id", "type", "text", "date", "dataset", "visibility", "visibility-state", "draft", "catalogue", "allow-edit", "allow-publish", "allow-delete"]))), 128))
|
|
191
191
|
])
|
|
@@ -195,5 +195,5 @@ ${JSON.stringify(c.value)}`);
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
export {
|
|
198
|
-
|
|
198
|
+
He as default
|
|
199
199
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { ref as p, computed as x, watch as
|
|
2
|
-
import { setResourcePublicationStatus as
|
|
1
|
+
import { ref as p, computed as x, watch as q, createElementBlock as z, openBlock as o, Fragment as F, createElementVNode as s, createBlock as b, createCommentVNode as h, withKeys as m, normalizeClass as H, withModifiers as y, unref as n, toDisplayString as B, isRef as j } from "vue";
|
|
2
|
+
import { setResourcePublicationStatus as I, setDatasetPublicationStatus as C, deleteResource as O, deleteDataset as W } from "@piveau/sdk-core/hubRepo";
|
|
3
3
|
import { useRouter as Z, useRoute as G } from "vue-router";
|
|
4
4
|
import { useStore as J } from "vuex";
|
|
5
5
|
import { useRuntimeEnv as Q } from "../../../composables/useRuntimeEnv.js";
|
|
6
6
|
import { useDpiUtils as X } from "../../composables/useDpiUtils.js";
|
|
7
7
|
import Y from "./Dropdown.vue.js";
|
|
8
8
|
import ee from "./ModalSimpleV3.vue.js";
|
|
9
|
-
import
|
|
9
|
+
import D from "./StateTag.vue.js";
|
|
10
10
|
import te from "./Toast.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import ae from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
13
|
-
const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescContainer" }, oe = { class: "dpiV3_dsDesc" }, se = { class: "dpiV3_TableRowStatus" }, ie = {
|
|
13
|
+
const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescContainer" }, oe = { class: "dpiV3_dsDesc" }, se = { class: "dpiV3_TableRowStatus" }, ie = {
|
|
14
|
+
key: 2,
|
|
15
|
+
class: "dpiV3_TableRowUpdated"
|
|
16
|
+
}, re = { class: "dpiV3_TableRowStatus" }, ue = { class: "dpiV3_TableRowButtonWrap" }, de = {
|
|
14
17
|
__name: "TableRowV3",
|
|
15
18
|
props: {
|
|
16
19
|
text: {
|
|
@@ -57,21 +60,21 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
57
60
|
}
|
|
58
61
|
},
|
|
59
62
|
emits: ["complete", "start"],
|
|
60
|
-
setup(w, { emit:
|
|
61
|
-
const t = w,
|
|
63
|
+
setup(w, { emit: U }) {
|
|
64
|
+
const t = w, E = U, _ = J();
|
|
62
65
|
Z();
|
|
63
|
-
const
|
|
64
|
-
let
|
|
65
|
-
const
|
|
66
|
+
const $ = G(), c = Q().api.hubUrl;
|
|
67
|
+
let i = p(!1), r = p(!1), v = p(!1), u = p({}), d = p({});
|
|
68
|
+
const k = x(() => {
|
|
66
69
|
var a;
|
|
67
|
-
return !!((a =
|
|
70
|
+
return !!((a = $.query) != null && a.fromDraft);
|
|
68
71
|
}), f = x(() => {
|
|
69
72
|
var a, e;
|
|
70
|
-
return (e = (a =
|
|
71
|
-
}), { toEditMode:
|
|
72
|
-
function
|
|
73
|
-
const a = t.draft ||
|
|
74
|
-
|
|
73
|
+
return (e = (a = _.getters) == null ? void 0 : a["auth/getUserData"]) == null ? void 0 : e.authToken;
|
|
74
|
+
}), { toEditMode: A } = X();
|
|
75
|
+
function P() {
|
|
76
|
+
const a = t.draft || k.value, e = t.catalogue, l = t.id || t.dataset.id || t.catalogue.id;
|
|
77
|
+
A({
|
|
75
78
|
routeName: t.type === "projects" ? "DataProviderInterface-InputProject" : "DataProviderInterface-Input",
|
|
76
79
|
id: l,
|
|
77
80
|
catalogId: e,
|
|
@@ -82,17 +85,17 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
82
85
|
}
|
|
83
86
|
});
|
|
84
87
|
}
|
|
85
|
-
function
|
|
88
|
+
function M() {
|
|
86
89
|
v.value = !1, setTimeout(() => {
|
|
87
|
-
|
|
90
|
+
r.value = !1;
|
|
88
91
|
}, 2e3);
|
|
89
92
|
}
|
|
90
|
-
|
|
93
|
+
q(r, (a) => {
|
|
91
94
|
a && setTimeout(() => {
|
|
92
|
-
v.value || (
|
|
95
|
+
v.value || (r.value = !1);
|
|
93
96
|
}, 2e3);
|
|
94
97
|
});
|
|
95
|
-
function
|
|
98
|
+
function K() {
|
|
96
99
|
return t.draft ? [
|
|
97
100
|
{ "@value": "Ansehen", selected: !1, disabled: !1 },
|
|
98
101
|
{ "@value": "Bearbeiten", selected: !1, disabled: !t.allowEdit },
|
|
@@ -105,14 +108,14 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
105
108
|
{ "@value": "Löschen", selected: !1, disabled: !t.allowDelete }
|
|
106
109
|
];
|
|
107
110
|
}
|
|
108
|
-
async function
|
|
111
|
+
async function N(a, e) {
|
|
109
112
|
switch (a) {
|
|
110
113
|
case "goToDataset":
|
|
111
114
|
window.open(`/${t.type === "projects" ? "projects" : t.type}/${t.id}`, "_blank");
|
|
112
115
|
break;
|
|
113
116
|
case "publishDataset":
|
|
114
117
|
if (e("start"), t.type === "projects") {
|
|
115
|
-
|
|
118
|
+
I({
|
|
116
119
|
baseUrl: c,
|
|
117
120
|
id: t.id,
|
|
118
121
|
type: "project",
|
|
@@ -124,13 +127,13 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
124
127
|
});
|
|
125
128
|
break;
|
|
126
129
|
}
|
|
127
|
-
await
|
|
130
|
+
await C({
|
|
128
131
|
baseUrl: c,
|
|
129
132
|
id: t.id,
|
|
130
133
|
catalogueId: t.catalogue,
|
|
131
134
|
publicationStatus: "published",
|
|
132
135
|
authToken: f.value
|
|
133
|
-
}), console.log("Datensatz wird veröffentlicht"),
|
|
136
|
+
}), console.log("Datensatz wird veröffentlicht"), r.value = !0, d.value = {
|
|
134
137
|
type: "success",
|
|
135
138
|
text: "Der Datensatz wurde veröffentlicht",
|
|
136
139
|
button: "Ansehen",
|
|
@@ -153,7 +156,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
153
156
|
id: t.id,
|
|
154
157
|
catalogId: t.catalogue,
|
|
155
158
|
authToken: f.value
|
|
156
|
-
}),
|
|
159
|
+
}), r.value = !0, d.value = {
|
|
157
160
|
type: "success",
|
|
158
161
|
text: "Der Datensatz wurde erfolgreich gelöscht",
|
|
159
162
|
button: "Rückgängig machen",
|
|
@@ -162,7 +165,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
162
165
|
break;
|
|
163
166
|
case "setToDraft":
|
|
164
167
|
if (e("start"), t.type === "projects") {
|
|
165
|
-
|
|
168
|
+
I({
|
|
166
169
|
baseUrl: c,
|
|
167
170
|
id: t.id,
|
|
168
171
|
type: "project",
|
|
@@ -174,13 +177,13 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
174
177
|
});
|
|
175
178
|
break;
|
|
176
179
|
}
|
|
177
|
-
await
|
|
180
|
+
await C({
|
|
178
181
|
baseUrl: c,
|
|
179
182
|
id: t.id,
|
|
180
183
|
catalogueId: t.catalogue,
|
|
181
184
|
publicationStatus: "draft",
|
|
182
185
|
authToken: f.value
|
|
183
|
-
}),
|
|
186
|
+
}), r.value = !0, d.value = {
|
|
184
187
|
type: "success",
|
|
185
188
|
text: "Der Datensatz wurde erfolgreich zu einem Entwurf zurückgesetzt",
|
|
186
189
|
button: "Rückgängig machen",
|
|
@@ -188,41 +191,41 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
188
191
|
}, e("complete");
|
|
189
192
|
}
|
|
190
193
|
}
|
|
191
|
-
function
|
|
194
|
+
function L(a, e) {
|
|
192
195
|
return `/${a === "projects" ? "projects" : a}/${e}`;
|
|
193
196
|
}
|
|
194
197
|
function S(a) {
|
|
195
198
|
let e = "";
|
|
196
199
|
switch (typeof a == "string" ? e = a : e = a.target.innerText, e) {
|
|
197
200
|
case "Ansehen":
|
|
198
|
-
window.open(
|
|
201
|
+
window.open(L(t.type, t.id), "_blank");
|
|
199
202
|
break;
|
|
200
203
|
case "Bearbeiten":
|
|
201
|
-
|
|
204
|
+
P();
|
|
202
205
|
break;
|
|
203
206
|
case "Veröffentlichen":
|
|
204
|
-
|
|
207
|
+
u.value = {
|
|
205
208
|
button: "Veröffentlichen",
|
|
206
209
|
header: "Datensatz veröffentlichen",
|
|
207
210
|
text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
|
|
208
211
|
action: "publishDataset"
|
|
209
|
-
},
|
|
212
|
+
}, i.value = !0;
|
|
210
213
|
break;
|
|
211
214
|
case "Löschen":
|
|
212
|
-
|
|
215
|
+
u.value = {
|
|
213
216
|
button: "Löschen",
|
|
214
217
|
header: "Datensatz endgültig löschen",
|
|
215
218
|
text: "Möchten Sie diesen Datensatz wirklich endgültig löschen? Diese Aktion kann nicht rückgängig gemacht werden. Alle damit verbundenen Daten werden entfernt.",
|
|
216
219
|
action: "deleteDataset"
|
|
217
|
-
},
|
|
220
|
+
}, i.value = !0;
|
|
218
221
|
break;
|
|
219
222
|
case "Veröffentlichung aufheben":
|
|
220
|
-
|
|
223
|
+
u.value = {
|
|
221
224
|
button: "Zurücksetzen",
|
|
222
225
|
header: "Veröffentlichung aufheben",
|
|
223
226
|
text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
|
|
224
227
|
action: "setToDraft"
|
|
225
|
-
},
|
|
228
|
+
}, i.value = !0;
|
|
226
229
|
break;
|
|
227
230
|
}
|
|
228
231
|
}
|
|
@@ -236,8 +239,8 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
236
239
|
function R(a) {
|
|
237
240
|
a.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !1);
|
|
238
241
|
}
|
|
239
|
-
return (a, e) => (
|
|
240
|
-
|
|
242
|
+
return (a, e) => (o(), z(F, null, [
|
|
243
|
+
s("button", {
|
|
241
244
|
class: H(["dpiV3_tableRowWrapper", {
|
|
242
245
|
dpiV3_pressedTableRow: n(g),
|
|
243
246
|
tRowInDraft: t.fromDraft
|
|
@@ -251,30 +254,30 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
251
254
|
e[6] || (e[6] = m((l) => R(l), ["enter"]))
|
|
252
255
|
]
|
|
253
256
|
}, [
|
|
254
|
-
|
|
255
|
-
|
|
257
|
+
s("div", le, [
|
|
258
|
+
s("div", {
|
|
256
259
|
class: "dpiV3_tableRowContent",
|
|
257
260
|
onMousedown: e[0] || (e[0] = y((l) => T(l, !0), ["prevent"])),
|
|
258
261
|
onMouseup: e[1] || (e[1] = y((l) => T(l, !1), ["prevent"])),
|
|
259
262
|
onClick: e[2] || (e[2] = (l) => S("Ansehen"))
|
|
260
263
|
}, [
|
|
261
|
-
|
|
262
|
-
|
|
264
|
+
s("div", ne, [
|
|
265
|
+
s("span", oe, B(t.text), 1)
|
|
263
266
|
]),
|
|
264
|
-
|
|
265
|
-
t.draft ? (
|
|
267
|
+
s("div", se, [
|
|
268
|
+
t.draft ? (o(), b(D, {
|
|
266
269
|
key: 1,
|
|
267
270
|
label: "Entwurf",
|
|
268
271
|
state: "draft"
|
|
269
|
-
})) : (
|
|
272
|
+
})) : (o(), b(D, {
|
|
270
273
|
key: 0,
|
|
271
274
|
label: "Freigegeben",
|
|
272
275
|
state: "published"
|
|
273
276
|
})),
|
|
274
|
-
o("span", ie, " Bearbeitet am: " +
|
|
277
|
+
t.date ? (o(), z("span", ie, " Bearbeitet am: " + B(t.date), 1)) : h("", !0)
|
|
275
278
|
]),
|
|
276
|
-
|
|
277
|
-
w.visibility ? (
|
|
279
|
+
s("div", re, [
|
|
280
|
+
w.visibility ? (o(), b(D, {
|
|
278
281
|
key: 0,
|
|
279
282
|
label: w.visibility,
|
|
280
283
|
state: t.draft ? "visibility-draft" : "visibility-published",
|
|
@@ -282,44 +285,44 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
282
285
|
}, null, 8, ["label", "state"])) : h("", !0)
|
|
283
286
|
])
|
|
284
287
|
], 32),
|
|
285
|
-
|
|
286
|
-
|
|
288
|
+
s("div", ue, [
|
|
289
|
+
k.value ? h("", !0) : (o(), b(Y, {
|
|
287
290
|
key: 0,
|
|
288
291
|
type: "moreButton",
|
|
289
|
-
"not-draft": !
|
|
292
|
+
"not-draft": !k.value,
|
|
290
293
|
alignment: "right",
|
|
291
294
|
text: {
|
|
292
295
|
support: "This is a supporting message"
|
|
293
296
|
},
|
|
294
|
-
data:
|
|
297
|
+
data: K(),
|
|
295
298
|
onClick: S
|
|
296
299
|
}, null, 8, ["not-draft", "data"]))
|
|
297
300
|
])
|
|
298
301
|
])
|
|
299
302
|
], 34),
|
|
300
|
-
n(
|
|
303
|
+
n(i) ? (o(), b(ee, {
|
|
301
304
|
key: 0,
|
|
302
|
-
buttons: n(
|
|
303
|
-
"header-text": n(
|
|
304
|
-
text: n(
|
|
305
|
-
action: n(
|
|
306
|
-
onClose: e[7] || (e[7] = (l) =>
|
|
307
|
-
onActionHandling: e[8] || (e[8] = (l) =>
|
|
305
|
+
buttons: n(u).button,
|
|
306
|
+
"header-text": n(u).header,
|
|
307
|
+
text: n(u).text,
|
|
308
|
+
action: n(u).action,
|
|
309
|
+
onClose: e[7] || (e[7] = (l) => j(i) ? i.value = !1 : i = !1),
|
|
310
|
+
onActionHandling: e[8] || (e[8] = (l) => N(l, E))
|
|
308
311
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : h("", !0),
|
|
309
|
-
n(
|
|
312
|
+
n(r) ? (o(), b(te, {
|
|
310
313
|
key: 1,
|
|
311
|
-
type: n(
|
|
312
|
-
text: n(
|
|
314
|
+
type: n(d).type,
|
|
315
|
+
text: n(d).text,
|
|
313
316
|
class: "dpiV3_tableToast",
|
|
314
|
-
button: n(
|
|
315
|
-
action: n(
|
|
317
|
+
button: n(d).button,
|
|
318
|
+
action: n(d).action,
|
|
316
319
|
onButtonClicked: e[9] || (e[9] = (l) => a.handleToastClick()),
|
|
317
|
-
onMouseenter: e[10] || (e[10] = (l) =>
|
|
318
|
-
onMouseleave:
|
|
320
|
+
onMouseenter: e[10] || (e[10] = (l) => j(v) ? v.value = !0 : v = !0),
|
|
321
|
+
onMouseleave: M
|
|
319
322
|
}, null, 8, ["type", "text", "button", "action"])) : h("", !0)
|
|
320
323
|
], 64));
|
|
321
324
|
}
|
|
322
|
-
}, Te = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-
|
|
325
|
+
}, Te = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-ab921a3f"]]);
|
|
323
326
|
export {
|
|
324
327
|
Te as default
|
|
325
328
|
};
|