@piveau/dpi 0.1.0-beta.7 → 0.1.0-beta.71
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/data-provider-interface/DPIMenu.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +88 -68
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +11 -11
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +444 -355
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +110 -52
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +566 -207
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +43 -89
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -26
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -38
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +181 -107
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
- package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +950 -833
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
- package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
- package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +314 -260
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +477 -96
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +9 -2
- package/dist/data-provider-interface/store/modules/authStore.js +11 -11
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +384 -758
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/package.json +28 -19
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
|
@@ -1,53 +1,84 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getHvdCategories as
|
|
5
|
-
import "
|
|
6
|
-
import { useFormValues as C } from "../../../composables/useDpiFormValues.js";
|
|
1
|
+
import { ref as s, onMounted as V, createElementBlock as _, openBlock as p, Fragment as y, createElementVNode as f, createVNode as D, createBlock as w, toDisplayString as S, getCurrentInstance as C } from "vue";
|
|
2
|
+
import k from "../SwitchV3.vue.js";
|
|
3
|
+
import F from "../Dropdown.vue.js";
|
|
4
|
+
import { getHvdCategories as H } from "../../services/dpiV3_apis.js";
|
|
5
|
+
import { useFormValues as x } from "../../../composables/useDpiFormValues.js";
|
|
7
6
|
/* empty css */
|
|
8
|
-
const
|
|
7
|
+
const I = { class: "dpiV3_findabilitySwitchWrapper" }, P = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, W = {
|
|
9
8
|
__name: "HVDSwitch",
|
|
10
9
|
props: {
|
|
11
10
|
context: Object
|
|
12
11
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const { formValues:
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
setup(T) {
|
|
13
|
+
const { formValues: o } = x(), r = s(!1), u = s(0), d = s("");
|
|
14
|
+
s([{ isValid: !0 }]);
|
|
15
|
+
const i = s([]), v = s([]), b = (e) => {
|
|
16
|
+
if (r.value = e, !e) {
|
|
17
|
+
d.value = "";
|
|
18
|
+
const l = o.value.Discoverability;
|
|
19
|
+
l[Object.keys(l)[1]] = [{ isValid: !1 }], i.value.forEach((a) => a.selected = !1);
|
|
20
|
+
}
|
|
21
|
+
}, h = async () => {
|
|
19
22
|
try {
|
|
20
|
-
const e =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const e = C().appContext.app.config.globalProperties.$env, a = (await H(e.api.baseUrl)).sort(
|
|
24
|
+
(t, n) => t.pref_label.de.localeCompare(n.pref_label.de, "de")
|
|
25
|
+
);
|
|
26
|
+
v.value = a, i.value = a.map((t) => ({
|
|
27
|
+
label: t.pref_label.de,
|
|
28
|
+
uri: t.resource,
|
|
29
|
+
"@value": t.pref_label.de,
|
|
25
30
|
selected: !1
|
|
26
|
-
|
|
27
|
-
}));
|
|
31
|
+
})), m();
|
|
28
32
|
} catch (e) {
|
|
29
|
-
console.error("Error in component:", e)
|
|
33
|
+
console.error("Error in component:", e);
|
|
34
|
+
}
|
|
35
|
+
}, m = () => {
|
|
36
|
+
var l, a, t;
|
|
37
|
+
const e = (t = (a = (l = o.value) == null ? void 0 : l.Discoverability) == null ? void 0 : a.hvdPage) == null ? void 0 : t[0];
|
|
38
|
+
if (e && e.isValid && e.label) {
|
|
39
|
+
r.value = !0;
|
|
40
|
+
const n = i.value.find(
|
|
41
|
+
(c) => c.label === e.label || c.uri === e.uri
|
|
42
|
+
);
|
|
43
|
+
n && (i.value.forEach((c) => c.selected = !1), n.selected = !0, d.value = n.label), u.value++;
|
|
44
|
+
}
|
|
45
|
+
}, g = (e) => {
|
|
46
|
+
const l = i.value.find(
|
|
47
|
+
(a) => a.label === e.target.innerHTML
|
|
48
|
+
);
|
|
49
|
+
if (l) {
|
|
50
|
+
o.value.DistributionSimple.hvdNotation === void 0 && (o.value.DistributionSimple.hvdNotation = {}), o.value.DistributionSimple.hvdNotation = {
|
|
51
|
+
hvdUri: l.uri
|
|
52
|
+
}, d.value = l.label;
|
|
53
|
+
const a = o.value.Discoverability;
|
|
54
|
+
a[Object.keys(a)[1]] = [
|
|
55
|
+
{
|
|
56
|
+
isValid: !0,
|
|
57
|
+
label: l.label,
|
|
58
|
+
uri: l.uri
|
|
59
|
+
}
|
|
60
|
+
];
|
|
30
61
|
}
|
|
31
|
-
}, m = (e) => {
|
|
32
|
-
const t = r.value.find((v) => v.label === e.target.innerHTML), a = c.value.Discoverability;
|
|
33
|
-
a[Object.keys(a)[1]] = [{ isValid: !0, label: t.label, uri: t.uri }];
|
|
34
62
|
};
|
|
35
|
-
return
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
63
|
+
return V(() => {
|
|
64
|
+
h();
|
|
65
|
+
}), (e, l) => (p(), _(y, null, [
|
|
66
|
+
f("div", I, [
|
|
67
|
+
(p(), w(k, {
|
|
68
|
+
onSwitchToggled: b,
|
|
39
69
|
hasIcon: !1,
|
|
40
|
-
defaultChecked:
|
|
41
|
-
disabled: !1
|
|
42
|
-
|
|
43
|
-
|
|
70
|
+
defaultChecked: r.value,
|
|
71
|
+
disabled: !1,
|
|
72
|
+
key: u.value
|
|
73
|
+
}, null, 8, ["defaultChecked"])),
|
|
74
|
+
f("div", P, S(e.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
|
|
44
75
|
]),
|
|
45
|
-
|
|
76
|
+
D(F, {
|
|
46
77
|
dropdownWidth: "large",
|
|
47
|
-
isDisabled: !
|
|
78
|
+
isDisabled: !r.value,
|
|
48
79
|
type: "inputField",
|
|
49
80
|
inputFieldProps: {
|
|
50
|
-
isDisabled: !
|
|
81
|
+
isDisabled: !r.value,
|
|
51
82
|
addOnText: !1,
|
|
52
83
|
initialHintText: !1,
|
|
53
84
|
datePicker: !1,
|
|
@@ -58,9 +89,10 @@ const D = { class: "dpiV3_findabilitySwitchWrapper" }, k = { class: "dpiV3_Switc
|
|
|
58
89
|
placeholder: "Wählen Sie eine HVD-Kategorie",
|
|
59
90
|
inputFieldSize: "large"
|
|
60
91
|
},
|
|
61
|
-
data:
|
|
62
|
-
|
|
63
|
-
|
|
92
|
+
data: i.value,
|
|
93
|
+
modelValue: d.value,
|
|
94
|
+
onClick: l[0] || (l[0] = (a) => g(a))
|
|
95
|
+
}, null, 8, ["isDisabled", "inputFieldProps", "data", "modelValue"])
|
|
64
96
|
], 64));
|
|
65
97
|
}
|
|
66
98
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { useStore as
|
|
7
|
-
import { useRouter as
|
|
8
|
-
import { useDpiUtils as
|
|
1
|
+
import { ref as d, computed as M, watch as Q, createElementBlock as X, openBlock as p, Fragment as Y, createElementVNode as f, createBlock as h, createCommentVNode as x, withKeys as b, normalizeClass as Z, withModifiers as m, unref as o, toDisplayString as ee, isRef as A } from "vue";
|
|
2
|
+
import E from "./StateTag.vue.js";
|
|
3
|
+
import te from "./Dropdown.vue.js";
|
|
4
|
+
import ae from "./ModalSimpleV3.vue.js";
|
|
5
|
+
import ne from "./Toast.vue.js";
|
|
6
|
+
import { useStore as se } from "vuex";
|
|
7
|
+
import { useRouter as le } from "vue-router";
|
|
8
|
+
import { useDpiUtils as oe } from "../../composables/useDpiUtils.js";
|
|
9
|
+
import re from "axios";
|
|
10
|
+
import { useRuntimeEnv as ie } from "../../../composables/useRuntimeEnv.js";
|
|
9
11
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import { useDpiContext as
|
|
12
|
-
const
|
|
12
|
+
import ue from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
13
|
+
import { useDpiContext as U } from "../../composables/useDpiContext.js";
|
|
14
|
+
const ce = { class: "dpiV3_tableRowInner" }, de = { class: "dpiV3_TableRowDescContainer" }, fe = { class: "dpiV3_dsDesc" }, ve = { class: "dpiV3_TableRowStatus" }, pe = { class: "dpiV3_TableRowButtonWrap" }, ge = {
|
|
13
15
|
__name: "TableRowV3",
|
|
14
16
|
props: {
|
|
15
17
|
text: {
|
|
@@ -28,31 +30,84 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
|
|
|
28
30
|
catalogue: String,
|
|
29
31
|
dataset: Object
|
|
30
32
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
S()
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
setup(L) {
|
|
34
|
+
const D = se(), w = le();
|
|
35
|
+
let u = d(!1), s = d(!1), r = d(!1), c = d({}), i = d({}), V = d({ edit: { fromDraft: !1 } }), l = d(!1);
|
|
36
|
+
U() && (V = U());
|
|
37
|
+
const z = ie(), S = M(() => D.getters["auth/getUserData"]), K = M(() => S.value && S.value.rtpToken), t = L, { toEditMode: N } = oe(), H = () => {
|
|
38
|
+
const n = t.draft, e = t.catalogue, a = t.id || t.dataset.id || t.catalogue.id;
|
|
39
|
+
N({ id: a, catalogId: e, isDraft: n, locale: "de" });
|
|
40
|
+
}, J = () => {
|
|
41
|
+
switch (i.value.action) {
|
|
42
|
+
case "goToDataset":
|
|
43
|
+
l.value = !0;
|
|
44
|
+
const n = t.id || t.dataset.id, e = new URL(z.api.baseUrl).origin + "/";
|
|
45
|
+
r.value = !1, s.value = !1, setTimeout(() => {
|
|
46
|
+
window.location.href = e + "datasets/" + n + "?locale=de";
|
|
47
|
+
}, 500);
|
|
48
|
+
break;
|
|
49
|
+
case "revertDeletion":
|
|
50
|
+
l.value = !0, k(), setTimeout(() => {
|
|
51
|
+
l.value = !1;
|
|
52
|
+
}, 200);
|
|
53
|
+
break;
|
|
54
|
+
case "revertToDraft":
|
|
55
|
+
l.value = !0, k(), setTimeout(() => {
|
|
56
|
+
l.value = !1;
|
|
57
|
+
}, 200);
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
}, P = (n, e, a, v) => {
|
|
61
|
+
const y = async () => {
|
|
62
|
+
await D.dispatch("auth/putDatasetToDraft", {
|
|
63
|
+
id: n,
|
|
64
|
+
catalog: e,
|
|
65
|
+
title: a,
|
|
66
|
+
description: v
|
|
67
|
+
}), w.go();
|
|
68
|
+
}, T = setInterval(() => {
|
|
69
|
+
if (console.log(
|
|
70
|
+
!s.value,
|
|
71
|
+
!r.value,
|
|
72
|
+
!l.value
|
|
73
|
+
), l.value) {
|
|
74
|
+
clearInterval(T);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
!s.value && !r.value && !l.value && (clearInterval(T), y());
|
|
78
|
+
}, 100);
|
|
79
|
+
}, j = (n, e) => {
|
|
80
|
+
const a = async () => {
|
|
81
|
+
await D.dispatch("auth/publishUserDraftById", { id: n, catalog: e }), l.value || w.go();
|
|
82
|
+
}, v = setInterval(() => {
|
|
83
|
+
(l.value || !s.value && !r.value) && (clearInterval(v), a());
|
|
84
|
+
}, 100);
|
|
85
|
+
}, I = (n, e) => {
|
|
86
|
+
const a = n || t.dataset && t.dataset.id || t.catalogue && t.catalogue.id, v = e || t.catalogue, y = z.api.hubUrl, O = !!t.draft ? `drafts/datasets/${a}?catalogue=${v}` : `datasets/${a}?useNormalizedId=true&catalogue=${v}`, W = `${y}${O}`, G = async () => {
|
|
87
|
+
await re.delete(W, {
|
|
88
|
+
headers: {
|
|
89
|
+
"Content-Type": "text/turtle",
|
|
90
|
+
Authorization: `Bearer ${K.value}`
|
|
91
|
+
}
|
|
92
|
+
}), w.go();
|
|
93
|
+
}, $ = setInterval(() => {
|
|
94
|
+
if (l.value) {
|
|
95
|
+
clearInterval($);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
!s.value && !r.value && !l.value && (clearInterval($), G());
|
|
99
|
+
}, 100);
|
|
100
|
+
}, k = () => {
|
|
101
|
+
r.value = !1, setTimeout(() => {
|
|
102
|
+
s.value = !1;
|
|
48
103
|
}, 2e3);
|
|
49
104
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
105
|
+
Q(s, (n) => {
|
|
106
|
+
n && setTimeout(() => {
|
|
107
|
+
r.value || (s.value = !1);
|
|
53
108
|
}, 2e3);
|
|
54
109
|
});
|
|
55
|
-
const
|
|
110
|
+
const q = () => t.draft ? [
|
|
56
111
|
{ "@value": "Bearbeiten", selected: !1 },
|
|
57
112
|
{ "@value": "Veröffentlichen", selected: !1 },
|
|
58
113
|
{ "@value": "Löschen", selected: !1 }
|
|
@@ -60,10 +115,10 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
|
|
|
60
115
|
{ "@value": "Bearbeiten", selected: !1 },
|
|
61
116
|
{ "@value": "Veröffentlichung aufheben", selected: !1 },
|
|
62
117
|
{ "@value": "Löschen", selected: !1 }
|
|
63
|
-
],
|
|
64
|
-
switch (
|
|
118
|
+
], F = (n) => {
|
|
119
|
+
switch (n) {
|
|
65
120
|
case "publishDataset":
|
|
66
|
-
|
|
121
|
+
j(t.id, t.catalogue), console.log("Datensatz wird veröffentlicht"), s.value = !0, i.value = {
|
|
67
122
|
type: "success",
|
|
68
123
|
text: "Der Datensatz wurde veröffentlicht",
|
|
69
124
|
button: "Ansehen",
|
|
@@ -71,140 +126,159 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
|
|
|
71
126
|
};
|
|
72
127
|
break;
|
|
73
128
|
case "deleteDataset":
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
129
|
+
(async () => {
|
|
130
|
+
try {
|
|
131
|
+
t.draft ? await I(t.id, t.catalogue) : await I(t.dataset.id, t.dataset.catalog.id), s.value = !0, i.value = {
|
|
132
|
+
type: "success",
|
|
133
|
+
text: "Der Datensatz wurde erfolgreich gelöscht",
|
|
134
|
+
button: "Rückgängig machen",
|
|
135
|
+
action: "revertDeletion"
|
|
136
|
+
};
|
|
137
|
+
} catch (e) {
|
|
138
|
+
s.value = !0, i.value = {
|
|
139
|
+
type: "error",
|
|
140
|
+
text: "Das Löschen des Datensatzes ist fehlgeschlagen",
|
|
141
|
+
button: "Schließen"
|
|
142
|
+
}, console.error(e);
|
|
143
|
+
}
|
|
144
|
+
})();
|
|
80
145
|
break;
|
|
81
146
|
case "setToDraft":
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
),
|
|
147
|
+
P(
|
|
148
|
+
t.dataset.id,
|
|
149
|
+
t.dataset.catalog.id,
|
|
150
|
+
t.dataset.title,
|
|
151
|
+
t.dataset.description
|
|
152
|
+
), s.value = !0, i.value = {
|
|
88
153
|
type: "success",
|
|
89
154
|
text: "Der Datensatz wurde erfolgreich zu einem Entwurf zurückgesetzt",
|
|
90
155
|
button: "Rückgängig machen",
|
|
91
156
|
action: "revertToDraft"
|
|
92
157
|
};
|
|
93
158
|
}
|
|
94
|
-
},
|
|
159
|
+
}, B = (n) => {
|
|
95
160
|
let e = "";
|
|
96
|
-
switch (typeof
|
|
161
|
+
switch (typeof n == "string" ? e = n : e = n.target.innerText, console.log(e), e) {
|
|
97
162
|
case "Bearbeiten":
|
|
98
|
-
|
|
163
|
+
H();
|
|
99
164
|
break;
|
|
100
165
|
case "Veröffentlichen":
|
|
101
|
-
|
|
166
|
+
c.value = {
|
|
102
167
|
button: "Veröffentlichen",
|
|
103
168
|
header: "Datensatz veröffentlichen",
|
|
104
169
|
text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
|
|
105
170
|
action: "publishDataset"
|
|
106
|
-
},
|
|
171
|
+
}, u.value = !0;
|
|
107
172
|
break;
|
|
108
173
|
case "Löschen":
|
|
109
|
-
|
|
174
|
+
c.value = {
|
|
110
175
|
button: "Ja, löschen",
|
|
111
176
|
header: "Datensatz endgültig löschen",
|
|
112
177
|
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.",
|
|
113
178
|
action: "deleteDataset"
|
|
114
|
-
},
|
|
179
|
+
}, u.value = !0;
|
|
180
|
+
break;
|
|
181
|
+
case "LöschenPublished":
|
|
182
|
+
c.value = {
|
|
183
|
+
button: "Ja, löschen",
|
|
184
|
+
header: "Datensatz endgültig löschen",
|
|
185
|
+
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.",
|
|
186
|
+
action: "deletePublishedDataset"
|
|
187
|
+
}, u.value = !0;
|
|
115
188
|
break;
|
|
116
189
|
case "Veröffentlichung aufheben":
|
|
117
|
-
|
|
190
|
+
c.value = {
|
|
118
191
|
button: "Ja",
|
|
119
192
|
header: "Veröffentlichung aufheben",
|
|
120
193
|
text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
|
|
121
194
|
action: "setToDraft"
|
|
122
|
-
},
|
|
195
|
+
}, u.value = !0;
|
|
123
196
|
break;
|
|
124
197
|
}
|
|
125
198
|
};
|
|
126
|
-
let
|
|
127
|
-
const
|
|
128
|
-
e ?
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
199
|
+
let g = d(!1);
|
|
200
|
+
const R = (n, e) => {
|
|
201
|
+
e ? g.value = !0 : g.value = !1;
|
|
202
|
+
}, C = (n) => {
|
|
203
|
+
n.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !0);
|
|
204
|
+
}, _ = (n) => {
|
|
205
|
+
n.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !1);
|
|
133
206
|
};
|
|
134
|
-
return (
|
|
135
|
-
|
|
136
|
-
class:
|
|
137
|
-
dpiV3_pressedTableRow:
|
|
138
|
-
tRowInDraft:
|
|
207
|
+
return (n, e) => (p(), X(Y, null, [
|
|
208
|
+
f("button", {
|
|
209
|
+
class: Z(["dpiV3_tableRowWrapper", {
|
|
210
|
+
dpiV3_pressedTableRow: o(g),
|
|
211
|
+
tRowInDraft: t.fromDraft
|
|
139
212
|
}]),
|
|
140
213
|
onKeydown: [
|
|
141
|
-
e[3] || (e[3] =
|
|
142
|
-
e[4] || (e[4] =
|
|
214
|
+
e[3] || (e[3] = b(m((a) => C(a), ["prevent"]), ["space"])),
|
|
215
|
+
e[4] || (e[4] = b(m((a) => C(a), ["prevent"]), ["enter"]))
|
|
143
216
|
],
|
|
144
217
|
onKeyup: [
|
|
145
|
-
e[5] || (e[5] =
|
|
146
|
-
e[6] || (e[6] =
|
|
218
|
+
e[5] || (e[5] = b((a) => _(a), ["space"])),
|
|
219
|
+
e[6] || (e[6] = b((a) => _(a), ["enter"]))
|
|
147
220
|
]
|
|
148
221
|
}, [
|
|
149
|
-
|
|
150
|
-
|
|
222
|
+
f("div", ce, [
|
|
223
|
+
f("div", {
|
|
151
224
|
class: "dpiV3_tableRowContent",
|
|
152
|
-
onMousedown: e[0] || (e[0] =
|
|
153
|
-
onMouseup: e[1] || (e[1] =
|
|
154
|
-
onClick: e[2] || (e[2] = (a) =>
|
|
225
|
+
onMousedown: e[0] || (e[0] = m((a) => R(a, !0), ["prevent"])),
|
|
226
|
+
onMouseup: e[1] || (e[1] = m((a) => R(a, !1), ["prevent"])),
|
|
227
|
+
onClick: e[2] || (e[2] = (a) => B("Bearbeiten"))
|
|
155
228
|
}, [
|
|
156
|
-
|
|
157
|
-
|
|
229
|
+
f("div", de, [
|
|
230
|
+
f("span", fe, ee(t.text), 1)
|
|
158
231
|
]),
|
|
159
|
-
|
|
160
|
-
|
|
232
|
+
f("div", ve, [
|
|
233
|
+
t.draft ? (p(), h(E, {
|
|
161
234
|
key: 1,
|
|
162
235
|
label: "Entwurf",
|
|
163
236
|
state: "draft"
|
|
164
|
-
})) : (
|
|
237
|
+
})) : (p(), h(E, {
|
|
165
238
|
key: 0,
|
|
166
239
|
label: "Veröffentlicht",
|
|
167
240
|
state: "published"
|
|
168
|
-
}))
|
|
169
|
-
o("span", Z, " Updated am: " + x(s.date), 1)
|
|
241
|
+
}))
|
|
170
242
|
])
|
|
171
243
|
], 32),
|
|
172
|
-
|
|
173
|
-
|
|
244
|
+
f("div", pe, [
|
|
245
|
+
o(V).edit.enabled ? x("", !0) : (p(), h(te, {
|
|
174
246
|
key: 0,
|
|
175
|
-
onClick:
|
|
247
|
+
onClick: B,
|
|
176
248
|
type: "moreButton",
|
|
249
|
+
notDraft: !t.draft,
|
|
177
250
|
alignment: "right",
|
|
178
251
|
text: {
|
|
179
252
|
support: "This is a supporting message"
|
|
180
253
|
},
|
|
181
|
-
data:
|
|
182
|
-
}, null, 8, ["data"]))
|
|
254
|
+
data: q()
|
|
255
|
+
}, null, 8, ["notDraft", "data"]))
|
|
183
256
|
])
|
|
184
257
|
])
|
|
185
258
|
], 34),
|
|
186
|
-
|
|
259
|
+
o(u) ? (p(), h(ae, {
|
|
187
260
|
key: 0,
|
|
188
|
-
buttons:
|
|
189
|
-
headerText:
|
|
190
|
-
text:
|
|
191
|
-
onClose: e[7] || (e[7] = (a) =>
|
|
192
|
-
action:
|
|
193
|
-
onActionHandling: e[8] || (e[8] = (a) =>
|
|
194
|
-
}, null, 8, ["buttons", "headerText", "text", "action"])) :
|
|
195
|
-
|
|
261
|
+
buttons: o(c).button,
|
|
262
|
+
headerText: o(c).header,
|
|
263
|
+
text: o(c).text,
|
|
264
|
+
onClose: e[7] || (e[7] = (a) => A(u) ? u.value = !1 : u = !1),
|
|
265
|
+
action: o(c).action,
|
|
266
|
+
onActionHandling: e[8] || (e[8] = (a) => F(a))
|
|
267
|
+
}, null, 8, ["buttons", "headerText", "text", "action"])) : x("", !0),
|
|
268
|
+
o(s) ? (p(), h(ne, {
|
|
196
269
|
key: 1,
|
|
197
|
-
type:
|
|
198
|
-
text:
|
|
270
|
+
type: o(i).type,
|
|
271
|
+
text: o(i).text,
|
|
199
272
|
class: "dpiV3_tableToast",
|
|
200
|
-
button:
|
|
201
|
-
action:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
273
|
+
button: o(i).button,
|
|
274
|
+
action: o(i).action,
|
|
275
|
+
onButtonClicked: e[9] || (e[9] = (a) => J()),
|
|
276
|
+
onMouseenter: e[10] || (e[10] = (a) => A(r) ? r.value = !0 : r = !0),
|
|
277
|
+
onMouseleave: k
|
|
278
|
+
}, null, 8, ["type", "text", "button", "action"])) : x("", !0)
|
|
205
279
|
], 64));
|
|
206
280
|
}
|
|
207
|
-
},
|
|
281
|
+
}, Be = /* @__PURE__ */ ue(ge, [["__scopeId", "data-v-0fa9244e"]]);
|
|
208
282
|
export {
|
|
209
|
-
|
|
283
|
+
Be as default
|
|
210
284
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as l, watch as h, createElementBlock as x, openBlock as c, createElementVNode as a, createCommentVNode as
|
|
1
|
+
import { ref as l, watch as h, createElementBlock as x, openBlock as c, createElementVNode as a, createCommentVNode as m, createBlock as M, toDisplayString as T, normalizeStyle as C, normalizeClass as b, unref as s, withDirectives as S, vModelText as A } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import L from "./TextButtonSmall.vue.js";
|
|
@@ -19,6 +19,10 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
|
|
|
19
19
|
type: Boolean,
|
|
20
20
|
default: !1
|
|
21
21
|
},
|
|
22
|
+
isDescription: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
22
26
|
showError: {
|
|
23
27
|
type: Boolean,
|
|
24
28
|
default: !1
|
|
@@ -47,13 +51,13 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
|
|
|
47
51
|
f("deleteClicked");
|
|
48
52
|
}, B = () => {
|
|
49
53
|
y.value = !1, n.value = !0, o.value = !0, t.value = "0 0 0 2px var(--blue-70, #009FE3)";
|
|
50
|
-
},
|
|
54
|
+
}, D = () => {
|
|
51
55
|
n.value = !1, o.value = !1, t.value = "inset 0 0 0 1px var(--neutral-30, #687178)";
|
|
52
|
-
},
|
|
56
|
+
}, E = () => {
|
|
53
57
|
v.value = !0, t.value = "inset 0 0 0 1px var(--neutral-60, #687178)", n.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
|
|
54
|
-
},
|
|
58
|
+
}, I = () => {
|
|
55
59
|
v.value = !1, t.value = "inset 0 0 0 1px var(--neutral-30, #687178)", n.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
|
|
56
|
-
},
|
|
60
|
+
}, F = () => {
|
|
57
61
|
o.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
|
|
58
62
|
}, g = () => {
|
|
59
63
|
t.value = "inset 0 0 0 2px var(--Focused)";
|
|
@@ -69,19 +73,20 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
|
|
|
69
73
|
buttonText: "löschen",
|
|
70
74
|
onClick: w,
|
|
71
75
|
tabindex: "0"
|
|
72
|
-
})) :
|
|
76
|
+
})) : m("", !0)
|
|
73
77
|
])
|
|
74
78
|
]),
|
|
75
79
|
a("div", {
|
|
76
|
-
class:
|
|
80
|
+
class: b(["dpiV3_Input", {
|
|
81
|
+
isDescription: e.isDescription,
|
|
77
82
|
dpiV3_disabled: e.isDisabled,
|
|
78
83
|
"error-state": e.showError && !s(o) && !s(p),
|
|
79
84
|
"focused-error-state": e.showError && s(o),
|
|
80
85
|
"filled-error-state": e.showError && s(p)
|
|
81
86
|
}]),
|
|
82
|
-
onMouseenter:
|
|
83
|
-
onMouseleave:
|
|
84
|
-
onMousedown:
|
|
87
|
+
onMouseenter: E,
|
|
88
|
+
onMouseleave: I,
|
|
89
|
+
onMousedown: F,
|
|
85
90
|
style: C({ "box-shadow": s(t) })
|
|
86
91
|
}, [
|
|
87
92
|
S(a("textarea", {
|
|
@@ -89,14 +94,14 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
|
|
|
89
94
|
ref: _,
|
|
90
95
|
"onUpdate:modelValue": r[0] || (r[0] = (k) => u.value = k),
|
|
91
96
|
type: "text",
|
|
92
|
-
class:
|
|
97
|
+
class: b(["dpiV3_textArea copy-large-regular", {
|
|
93
98
|
"error-state": e.showError,
|
|
94
99
|
dpiV3_input_disabled: e.isDisabled
|
|
95
100
|
}]),
|
|
96
101
|
disabled: e.isDisabled,
|
|
97
102
|
placeholder: e.placeholder,
|
|
98
103
|
onFocus: B,
|
|
99
|
-
onBlur:
|
|
104
|
+
onBlur: D,
|
|
100
105
|
onMousedown: g
|
|
101
106
|
}, null, 42, q), [
|
|
102
107
|
[A, u.value]
|
|
@@ -105,11 +110,11 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
|
|
|
105
110
|
]),
|
|
106
111
|
e.hint && !e.showError ? (c(), x("div", G, r[1] || (r[1] = [
|
|
107
112
|
a("span", null, "This is a supporting message.", -1)
|
|
108
|
-
]))) :
|
|
113
|
+
]))) : m("", !0)
|
|
109
114
|
])
|
|
110
115
|
]));
|
|
111
116
|
}
|
|
112
|
-
}, Z = /* @__PURE__ */ z(H, [["__scopeId", "data-v-
|
|
117
|
+
}, Z = /* @__PURE__ */ z(H, [["__scopeId", "data-v-0ea4816f"]]);
|
|
113
118
|
export {
|
|
114
119
|
Z as default
|
|
115
120
|
};
|
|
@@ -119,7 +119,7 @@ function K(e, s, T, V, v, z) {
|
|
|
119
119
|
])) : r("", !0)
|
|
120
120
|
], 16, k);
|
|
121
121
|
}
|
|
122
|
-
const L = /* @__PURE__ */ c(h, [["render", K], ["__scopeId", "data-v-
|
|
122
|
+
const L = /* @__PURE__ */ c(h, [["render", K], ["__scopeId", "data-v-cfbe885e"]]);
|
|
123
123
|
export {
|
|
124
124
|
L as default
|
|
125
125
|
};
|