@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.50
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/DataProviderInterface.vue2.js +45 -40
- 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 +78 -66
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +100 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- 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 +91 -61
- 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/LanguageV3.vue.js +109 -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 +153 -102
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -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 +34 -56
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -39
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
- 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 +153 -105
- 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 +856 -790
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +105 -82
- 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 +302 -251
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
- 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/useDpiContext.js +5 -7
- package/dist/data-provider-interface/composables/useDpiEditMode.js +15 -13
- 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 +478 -91
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
- package/dist/data-provider-interface/store/index.js +32 -0
- package/dist/data-provider-interface/store/modules/authStore.js +301 -0
- package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
- package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
- package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
- package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
- package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
- package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +378 -752
- package/dist/index.js +4 -4
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/dist/utils/draftApi.js +33 -0
- package/dist/utils/helpers.js +36 -22
- package/dist/utils/identifiersApi.js +16 -0
- package/dist/utils/jwt.js +7 -0
- package/package.json +12 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
- package/dist/data-provider-interface/store/modules/formSchemaStore.js +0 -94
|
@@ -1,52 +1,82 @@
|
|
|
1
|
-
import { ref as o, createElementBlock as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { getHvdCategories as
|
|
5
|
-
import {
|
|
1
|
+
import { ref as o, onMounted as V, createElementBlock as y, openBlock as p, Fragment as D, createElementVNode as v, createVNode as w, createBlock as _, toDisplayString as S, getCurrentInstance as k } from "vue";
|
|
2
|
+
import C 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";
|
|
6
6
|
/* empty css */
|
|
7
|
-
const
|
|
7
|
+
const I = { class: "dpiV3_findabilitySwitchWrapper" }, P = { class: "dpiV3_Switch_Label copy-large-semi-bold" }, W = {
|
|
8
8
|
__name: "HVDSwitch",
|
|
9
9
|
props: {
|
|
10
10
|
context: Object
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
setup(T) {
|
|
13
|
+
const { formValues: t } = x(), s = o(!1), c = o(0), r = o("");
|
|
14
|
+
o([{ isValid: !0 }]);
|
|
15
|
+
const i = o([]), f = o([]), b = (a) => {
|
|
16
|
+
if (s.value = a, !a) {
|
|
17
|
+
r.value = "";
|
|
18
|
+
const e = t.value.Discoverability;
|
|
19
|
+
e[Object.keys(e)[1]] = [{ isValid: !1 }], i.value.forEach((l) => l.selected = !1);
|
|
20
|
+
}
|
|
21
|
+
}, h = async () => {
|
|
18
22
|
try {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
label:
|
|
22
|
-
uri:
|
|
23
|
-
"@value":
|
|
23
|
+
const a = k().appContext.app.config.globalProperties.$env, e = await H(a.api.baseUrl);
|
|
24
|
+
f.value = e, i.value = e.map((l) => ({
|
|
25
|
+
label: l.pref_label.de,
|
|
26
|
+
uri: l.resource,
|
|
27
|
+
"@value": l.pref_label.de,
|
|
24
28
|
selected: !1
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
})), m();
|
|
30
|
+
} catch (a) {
|
|
31
|
+
console.error("Error in component:", a);
|
|
32
|
+
}
|
|
33
|
+
}, m = () => {
|
|
34
|
+
var e, l, u;
|
|
35
|
+
const a = (u = (l = (e = t.value) == null ? void 0 : e.Discoverability) == null ? void 0 : l.hvdPage) == null ? void 0 : u[0];
|
|
36
|
+
if (a && a.isValid && a.label) {
|
|
37
|
+
s.value = !0;
|
|
38
|
+
const d = i.value.find(
|
|
39
|
+
(n) => n.label === a.label || n.uri === a.uri
|
|
40
|
+
);
|
|
41
|
+
d && (i.value.forEach((n) => n.selected = !1), d.selected = !0, r.value = d.label), c.value++;
|
|
42
|
+
}
|
|
43
|
+
}, g = (a) => {
|
|
44
|
+
const e = i.value.find(
|
|
45
|
+
(l) => l.label === a.target.innerHTML
|
|
46
|
+
);
|
|
47
|
+
if (e) {
|
|
48
|
+
t.value.DistributionSimple.hvdNotation === void 0 && (t.value.DistributionSimple.hvdNotation = {}), t.value.DistributionSimple.hvdNotation = {
|
|
49
|
+
hvdUri: e.uri
|
|
50
|
+
}, r.value = e.label;
|
|
51
|
+
const l = t.value.Discoverability;
|
|
52
|
+
l[Object.keys(l)[1]] = [
|
|
53
|
+
{
|
|
54
|
+
isValid: !0,
|
|
55
|
+
label: e.label,
|
|
56
|
+
uri: e.uri
|
|
57
|
+
}
|
|
58
|
+
];
|
|
29
59
|
}
|
|
30
|
-
}, f = (e) => {
|
|
31
|
-
const t = r.value.find((g) => g.label === e.target.innerHTML), a = S("Discoverability").value;
|
|
32
|
-
a[Object.keys(a)[1]] = [{ isValid: !0, label: t.label, uri: t.uri }];
|
|
33
60
|
};
|
|
34
|
-
return
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
61
|
+
return V(() => {
|
|
62
|
+
h();
|
|
63
|
+
}), (a, e) => (p(), y(D, null, [
|
|
64
|
+
v("div", I, [
|
|
65
|
+
(p(), _(C, {
|
|
66
|
+
onSwitchToggled: b,
|
|
38
67
|
hasIcon: !1,
|
|
39
|
-
defaultChecked:
|
|
40
|
-
disabled: !1
|
|
41
|
-
|
|
42
|
-
|
|
68
|
+
defaultChecked: s.value,
|
|
69
|
+
disabled: !1,
|
|
70
|
+
key: c.value
|
|
71
|
+
}, null, 8, ["defaultChecked"])),
|
|
72
|
+
v("div", P, S(a.$t("message.dataupload.datasets.hvdPage.switch-label")), 1)
|
|
43
73
|
]),
|
|
44
|
-
|
|
74
|
+
w(F, {
|
|
45
75
|
dropdownWidth: "large",
|
|
46
|
-
isDisabled: !
|
|
76
|
+
isDisabled: !s.value,
|
|
47
77
|
type: "inputField",
|
|
48
78
|
inputFieldProps: {
|
|
49
|
-
isDisabled: !
|
|
79
|
+
isDisabled: !s.value,
|
|
50
80
|
addOnText: !1,
|
|
51
81
|
initialHintText: !1,
|
|
52
82
|
datePicker: !1,
|
|
@@ -57,12 +87,13 @@ const C = { class: "dpiV3_findabilitySwitchWrapper" }, D = { class: "dpiV3_Switc
|
|
|
57
87
|
placeholder: "Wählen Sie eine HVD-Kategorie",
|
|
58
88
|
inputFieldSize: "large"
|
|
59
89
|
},
|
|
60
|
-
data:
|
|
61
|
-
|
|
62
|
-
|
|
90
|
+
data: i.value,
|
|
91
|
+
modelValue: r.value,
|
|
92
|
+
onClick: e[0] || (e[0] = (l) => g(l))
|
|
93
|
+
}, null, 8, ["isDisabled", "inputFieldProps", "data", "modelValue"])
|
|
63
94
|
], 64));
|
|
64
95
|
}
|
|
65
96
|
};
|
|
66
97
|
export {
|
|
67
|
-
|
|
98
|
+
W as default
|
|
68
99
|
};
|
|
@@ -1,14 +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
|
-
|
|
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 = {
|
|
12
15
|
__name: "TableRowV3",
|
|
13
16
|
props: {
|
|
14
17
|
text: {
|
|
@@ -27,30 +30,84 @@ const G = { class: "dpiV3_tableRowInner" }, P = { class: "dpiV3_TableRowDescCont
|
|
|
27
30
|
catalogue: String,
|
|
28
31
|
dataset: Object
|
|
29
32
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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;
|
|
46
103
|
}, 2e3);
|
|
47
104
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
105
|
+
Q(s, (n) => {
|
|
106
|
+
n && setTimeout(() => {
|
|
107
|
+
r.value || (s.value = !1);
|
|
51
108
|
}, 2e3);
|
|
52
109
|
});
|
|
53
|
-
const
|
|
110
|
+
const q = () => t.draft ? [
|
|
54
111
|
{ "@value": "Bearbeiten", selected: !1 },
|
|
55
112
|
{ "@value": "Veröffentlichen", selected: !1 },
|
|
56
113
|
{ "@value": "Löschen", selected: !1 }
|
|
@@ -58,10 +115,10 @@ const G = { class: "dpiV3_tableRowInner" }, P = { class: "dpiV3_TableRowDescCont
|
|
|
58
115
|
{ "@value": "Bearbeiten", selected: !1 },
|
|
59
116
|
{ "@value": "Veröffentlichung aufheben", selected: !1 },
|
|
60
117
|
{ "@value": "Löschen", selected: !1 }
|
|
61
|
-
],
|
|
62
|
-
switch (
|
|
118
|
+
], F = (n) => {
|
|
119
|
+
switch (n) {
|
|
63
120
|
case "publishDataset":
|
|
64
|
-
|
|
121
|
+
j(t.id, t.catalogue), console.log("Datensatz wird veröffentlicht"), s.value = !0, i.value = {
|
|
65
122
|
type: "success",
|
|
66
123
|
text: "Der Datensatz wurde veröffentlicht",
|
|
67
124
|
button: "Ansehen",
|
|
@@ -69,139 +126,159 @@ const G = { class: "dpiV3_tableRowInner" }, P = { class: "dpiV3_TableRowDescCont
|
|
|
69
126
|
};
|
|
70
127
|
break;
|
|
71
128
|
case "deleteDataset":
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
+
})();
|
|
78
145
|
break;
|
|
79
146
|
case "setToDraft":
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
),
|
|
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 = {
|
|
86
153
|
type: "success",
|
|
87
154
|
text: "Der Datensatz wurde erfolgreich zu einem Entwurf zurückgesetzt",
|
|
88
155
|
button: "Rückgängig machen",
|
|
89
156
|
action: "revertToDraft"
|
|
90
157
|
};
|
|
91
158
|
}
|
|
92
|
-
},
|
|
159
|
+
}, B = (n) => {
|
|
93
160
|
let e = "";
|
|
94
|
-
switch (typeof
|
|
161
|
+
switch (typeof n == "string" ? e = n : e = n.target.innerText, console.log(e), e) {
|
|
95
162
|
case "Bearbeiten":
|
|
96
|
-
|
|
163
|
+
H();
|
|
97
164
|
break;
|
|
98
165
|
case "Veröffentlichen":
|
|
99
|
-
|
|
166
|
+
c.value = {
|
|
100
167
|
button: "Veröffentlichen",
|
|
101
168
|
header: "Datensatz veröffentlichen",
|
|
102
169
|
text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
|
|
103
170
|
action: "publishDataset"
|
|
104
|
-
},
|
|
171
|
+
}, u.value = !0;
|
|
105
172
|
break;
|
|
106
173
|
case "Löschen":
|
|
107
|
-
|
|
174
|
+
c.value = {
|
|
108
175
|
button: "Ja, löschen",
|
|
109
176
|
header: "Datensatz endgültig löschen",
|
|
110
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.",
|
|
111
178
|
action: "deleteDataset"
|
|
112
|
-
},
|
|
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;
|
|
113
188
|
break;
|
|
114
189
|
case "Veröffentlichung aufheben":
|
|
115
|
-
|
|
190
|
+
c.value = {
|
|
116
191
|
button: "Ja",
|
|
117
192
|
header: "Veröffentlichung aufheben",
|
|
118
193
|
text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
|
|
119
194
|
action: "setToDraft"
|
|
120
|
-
},
|
|
195
|
+
}, u.value = !0;
|
|
121
196
|
break;
|
|
122
197
|
}
|
|
123
198
|
};
|
|
124
|
-
let
|
|
125
|
-
const
|
|
126
|
-
e ?
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
|
|
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);
|
|
131
206
|
};
|
|
132
|
-
return (
|
|
133
|
-
|
|
134
|
-
class:
|
|
135
|
-
dpiV3_pressedTableRow:
|
|
136
|
-
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
|
|
137
212
|
}]),
|
|
138
213
|
onKeydown: [
|
|
139
|
-
e[3] || (e[3] = b(
|
|
140
|
-
e[4] || (e[4] = b(
|
|
214
|
+
e[3] || (e[3] = b(m((a) => C(a), ["prevent"]), ["space"])),
|
|
215
|
+
e[4] || (e[4] = b(m((a) => C(a), ["prevent"]), ["enter"]))
|
|
141
216
|
],
|
|
142
217
|
onKeyup: [
|
|
143
|
-
e[5] || (e[5] = b((a) =>
|
|
144
|
-
e[6] || (e[6] = b((a) =>
|
|
218
|
+
e[5] || (e[5] = b((a) => _(a), ["space"])),
|
|
219
|
+
e[6] || (e[6] = b((a) => _(a), ["enter"]))
|
|
145
220
|
]
|
|
146
221
|
}, [
|
|
147
|
-
|
|
148
|
-
|
|
222
|
+
f("div", ce, [
|
|
223
|
+
f("div", {
|
|
149
224
|
class: "dpiV3_tableRowContent",
|
|
150
|
-
onMousedown: e[0] || (e[0] =
|
|
151
|
-
onMouseup: e[1] || (e[1] =
|
|
152
|
-
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"))
|
|
153
228
|
}, [
|
|
154
|
-
|
|
155
|
-
|
|
229
|
+
f("div", de, [
|
|
230
|
+
f("span", fe, ee(t.text), 1)
|
|
156
231
|
]),
|
|
157
|
-
|
|
158
|
-
|
|
232
|
+
f("div", ve, [
|
|
233
|
+
t.draft ? (p(), h(E, {
|
|
159
234
|
key: 1,
|
|
160
235
|
label: "Entwurf",
|
|
161
236
|
state: "draft"
|
|
162
|
-
})) : (p(),
|
|
237
|
+
})) : (p(), h(E, {
|
|
163
238
|
key: 0,
|
|
164
239
|
label: "Veröffentlicht",
|
|
165
240
|
state: "published"
|
|
166
|
-
}))
|
|
167
|
-
o("span", Y, " Updated am: " + y(n.date), 1)
|
|
241
|
+
}))
|
|
168
242
|
])
|
|
169
243
|
], 32),
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
244
|
+
f("div", pe, [
|
|
245
|
+
o(V).edit.enabled ? x("", !0) : (p(), h(te, {
|
|
246
|
+
key: 0,
|
|
247
|
+
onClick: B,
|
|
173
248
|
type: "moreButton",
|
|
249
|
+
notDraft: !t.draft,
|
|
174
250
|
alignment: "right",
|
|
175
251
|
text: {
|
|
176
252
|
support: "This is a supporting message"
|
|
177
253
|
},
|
|
178
|
-
data:
|
|
179
|
-
}, null, 8, ["data"])
|
|
254
|
+
data: q()
|
|
255
|
+
}, null, 8, ["notDraft", "data"]))
|
|
180
256
|
])
|
|
181
257
|
])
|
|
182
258
|
], 34),
|
|
183
|
-
|
|
259
|
+
o(u) ? (p(), h(ae, {
|
|
184
260
|
key: 0,
|
|
185
|
-
buttons:
|
|
186
|
-
headerText:
|
|
187
|
-
text:
|
|
188
|
-
onClose: e[7] || (e[7] = (a) =>
|
|
189
|
-
action:
|
|
190
|
-
onActionHandling: e[8] || (e[8] = (a) =>
|
|
191
|
-
}, null, 8, ["buttons", "headerText", "text", "action"])) :
|
|
192
|
-
s
|
|
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, {
|
|
193
269
|
key: 1,
|
|
194
|
-
type:
|
|
195
|
-
text:
|
|
270
|
+
type: o(i).type,
|
|
271
|
+
text: o(i).text,
|
|
196
272
|
class: "dpiV3_tableToast",
|
|
197
|
-
button:
|
|
198
|
-
action:
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
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)
|
|
202
279
|
], 64));
|
|
203
280
|
}
|
|
204
|
-
},
|
|
281
|
+
}, Be = /* @__PURE__ */ ue(ge, [["__scopeId", "data-v-0fa9244e"]]);
|
|
205
282
|
export {
|
|
206
|
-
|
|
283
|
+
Be as default
|
|
207
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
|
};
|