@piveau/dpi 0.2.0-alpha.7 → 0.2.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +20 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +45 -44
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue2.js +24 -22
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +106 -134
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +180 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -11
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +25 -25
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +96 -93
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js +12 -12
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +31 -26
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +32 -26
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/ProjektPhasenOverviewStep.vue.js +7 -7
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +30 -25
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +29 -24
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +5 -932
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +1053 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +17 -13
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue2.js +14 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +84 -73
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +16 -16
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +22 -22
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +158 -156
- package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +1 -1
- package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +10 -9
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +21 -16
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +8 -6
- package/package.json +1 -1
- package/dist/packages/dpi/src/stories/components/MethodsCard.vue.js +0 -7
- package/dist/packages/dpi/src/stories/components/MethodsCard.vue2.js +0 -45
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { createElementBlock as e, openBlock as s, normalizeClass as o, createCommentVNode as a, createElementVNode as i, toDisplayString as c } from "vue";
|
|
4
4
|
import l from "../img/Ellipse2Published.svg.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import n from "../img/Ellipse2Warning.svg.js";
|
|
6
|
+
import m from "../img/Ellipse2Error.svg.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import _ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
9
|
const d = {
|
|
@@ -22,6 +22,10 @@ const d = {
|
|
|
22
22
|
type: String,
|
|
23
23
|
default: "table"
|
|
24
24
|
// "table", "page", or other custom sizes
|
|
25
|
+
},
|
|
26
|
+
hasDotIcon: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
25
29
|
}
|
|
26
30
|
},
|
|
27
31
|
computed: {
|
|
@@ -32,33 +36,33 @@ const d = {
|
|
|
32
36
|
return `state-tag--${this.size}`;
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
|
-
},
|
|
39
|
+
}, u = {
|
|
36
40
|
key: 0,
|
|
37
41
|
class: "dot",
|
|
38
42
|
src: l,
|
|
39
43
|
alt: ""
|
|
40
|
-
},
|
|
44
|
+
}, f = {
|
|
41
45
|
key: 1,
|
|
42
46
|
class: "dot",
|
|
43
|
-
src:
|
|
47
|
+
src: n,
|
|
44
48
|
alt: ""
|
|
45
|
-
},
|
|
49
|
+
}, p = {
|
|
46
50
|
key: 2,
|
|
47
51
|
class: "dot",
|
|
48
|
-
src:
|
|
52
|
+
src: m,
|
|
49
53
|
alt: ""
|
|
50
54
|
}, g = { class: "label" };
|
|
51
|
-
function h(y,
|
|
55
|
+
function h(y, b, t, C, S, r) {
|
|
52
56
|
return s(), e("div", {
|
|
53
57
|
class: o(["state-tag", [r.stateClass, r.sizeClass]])
|
|
54
58
|
}, [
|
|
55
|
-
t.state === "published" ? (s(), e("img",
|
|
56
|
-
t.state === "draft" ? (s(), e("img",
|
|
57
|
-
t.state === "error" ? (s(), e("img",
|
|
59
|
+
t.state === "published" && t.hasDotIcon ? (s(), e("img", u)) : a("", !0),
|
|
60
|
+
t.state === "draft" && t.hasDotIcon ? (s(), e("img", f)) : a("", !0),
|
|
61
|
+
t.state === "error" && t.hasDotIcon ? (s(), e("img", p)) : a("", !0),
|
|
58
62
|
i("span", g, c(t.label), 1)
|
|
59
63
|
], 2);
|
|
60
64
|
}
|
|
61
|
-
const
|
|
65
|
+
const E = /* @__PURE__ */ _(d, [["render", h], ["__scopeId", "data-v-65fb0446"]]);
|
|
62
66
|
export {
|
|
63
|
-
|
|
67
|
+
E as default
|
|
64
68
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SummaryBox.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import m from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ m(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ m(o, [["__scopeId", "data-v-36d0d28b"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue2.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as i, createElementBlock as o, openBlock as s, renderSlot as t, createCommentVNode as p, createTextVNode as r, toDisplayString as l, createElementVNode as d } from "vue";
|
|
2
|
+
const c = { class: "summary-box" }, m = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "copy-large-regular"
|
|
5
|
+
}, u = { class: "headline-5" }, y = /* @__PURE__ */ i({
|
|
3
6
|
__name: "SummaryBox",
|
|
4
7
|
props: {
|
|
5
8
|
title: {},
|
|
6
9
|
text: {}
|
|
7
10
|
},
|
|
8
|
-
setup(
|
|
9
|
-
|
|
11
|
+
setup(a) {
|
|
12
|
+
const n = a;
|
|
13
|
+
return (e, f) => (s(), o("div", c, [
|
|
10
14
|
t(e.$slots, "title-wrapper", {}, () => [
|
|
11
|
-
o("div",
|
|
15
|
+
e.$slots.title || n.title ? (s(), o("div", m, [
|
|
12
16
|
t(e.$slots, "title", {}, () => [
|
|
13
|
-
r(
|
|
17
|
+
r(l(e.title), 1)
|
|
14
18
|
], !0)
|
|
15
|
-
])
|
|
19
|
+
])) : p("", !0)
|
|
16
20
|
], !0),
|
|
17
21
|
t(e.$slots, "content-wrapper", {}, () => [
|
|
18
|
-
|
|
22
|
+
d("div", u, [
|
|
19
23
|
t(e.$slots, "default", {}, () => [
|
|
20
|
-
r(
|
|
24
|
+
r(l(e.text), 1)
|
|
21
25
|
], !0)
|
|
22
26
|
])
|
|
23
27
|
], !0)
|
|
@@ -25,5 +29,5 @@ const i = { class: "summary-box" }, p = { class: "copy-large-regular" }, d = { c
|
|
|
25
29
|
}
|
|
26
30
|
});
|
|
27
31
|
export {
|
|
28
|
-
|
|
32
|
+
y as default
|
|
29
33
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as u, watch as $, createElementBlock as N, openBlock as c, Fragment as F, createElementVNode as o, createBlock as
|
|
2
|
-
import
|
|
1
|
+
import { ref as u, watch as $, createElementBlock as N, openBlock as c, Fragment as F, createElementVNode as o, createBlock as f, createCommentVNode as b, withKeys as h, normalizeClass as H, withModifiers as m, unref as n, toDisplayString as S, isRef as _ } from "vue";
|
|
2
|
+
import w from "./StateTag.vue.js";
|
|
3
3
|
import L from "./Dropdown.vue.js";
|
|
4
4
|
import j from "./ModalSimpleV3.vue.js";
|
|
5
5
|
import q from "./Toast.vue.js";
|
|
@@ -8,8 +8,8 @@ import { useRouter as O } from "vue-router";
|
|
|
8
8
|
import { useDpiUtils as W } from "../../composables/useDpiUtils.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import G from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
-
import { useDpiContext as
|
|
12
|
-
const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescContainer" }, X = { class: "dpiV3_dsDesc" }, Y = { class: "dpiV3_TableRowStatus" }, Z = { class: "dpiV3_TableRowUpdated" }, ee = { class: "
|
|
11
|
+
import { useDpiContext as z } from "../../composables/useDpiContext.js";
|
|
12
|
+
const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescContainer" }, X = { class: "dpiV3_dsDesc" }, Y = { class: "dpiV3_TableRowStatus" }, Z = { class: "dpiV3_TableRowUpdated" }, ee = { class: "dpiV3_TableRowStatus" }, te = { class: "dpiV3_TableRowButtonWrap" }, ae = {
|
|
13
13
|
__name: "TableRowV3",
|
|
14
14
|
props: {
|
|
15
15
|
text: {
|
|
@@ -19,6 +19,9 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
|
|
|
19
19
|
draft: {
|
|
20
20
|
type: Boolean
|
|
21
21
|
},
|
|
22
|
+
visibility: {
|
|
23
|
+
type: String
|
|
24
|
+
},
|
|
22
25
|
date: {
|
|
23
26
|
type: Object,
|
|
24
27
|
required: !0
|
|
@@ -28,31 +31,31 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
|
|
|
28
31
|
catalogue: String,
|
|
29
32
|
dataset: Object
|
|
30
33
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
34
|
+
setup(g) {
|
|
35
|
+
const D = J();
|
|
33
36
|
O();
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
const t =
|
|
38
|
-
R({ id:
|
|
39
|
-
}, C = (t, e,
|
|
40
|
-
console.log(
|
|
37
|
+
let l = u(!1), i = u(!1), p = u(!1), r = u({}), d = u({}), y = u({ edit: { fromDraft: !1 } });
|
|
38
|
+
z() && (y = z());
|
|
39
|
+
const a = g, { toEditMode: R } = W(), B = () => {
|
|
40
|
+
const t = a.draft, e = a.catalogue, s = a.id || a.dataset.id || a.catalogue.id;
|
|
41
|
+
R({ id: s, catalogId: e, isDraft: t, locale: "de" });
|
|
42
|
+
}, C = (t, e, s, U) => {
|
|
43
|
+
console.log(a.dataset), D.dispatch("auth/putDatasetToDraft", { id: t, catalog: e, title: s, description: U });
|
|
41
44
|
}, M = (t, e) => {
|
|
42
|
-
|
|
45
|
+
D.dispatch("auth/deleteUserDraftById", { id: t, catalog: e });
|
|
43
46
|
}, A = (t, e) => {
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
D.dispatch("auth/publishUserDraftById", { id: t, catalog: e });
|
|
48
|
+
}, I = () => {
|
|
49
|
+
p.value = !1, setTimeout(() => {
|
|
50
|
+
i.value = !1;
|
|
48
51
|
}, 2e3);
|
|
49
52
|
};
|
|
50
|
-
$(
|
|
53
|
+
$(i, (t) => {
|
|
51
54
|
t && setTimeout(() => {
|
|
52
|
-
|
|
55
|
+
p.value || (i.value = !1);
|
|
53
56
|
}, 2e3);
|
|
54
57
|
});
|
|
55
|
-
const
|
|
58
|
+
const E = () => a.draft ? [
|
|
56
59
|
{ "@value": "Ansehen", selected: !1 },
|
|
57
60
|
{ "@value": "Bearbeiten", selected: !1 },
|
|
58
61
|
{ "@value": "Veröffentlichen", selected: !1 },
|
|
@@ -65,7 +68,7 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
|
|
|
65
68
|
], K = (t) => {
|
|
66
69
|
switch (t) {
|
|
67
70
|
case "publishDataset":
|
|
68
|
-
A(
|
|
71
|
+
A(a.id, a.catalogue), console.log("Datensatz wird veröffentlicht"), i.value = !0, d.value = {
|
|
69
72
|
type: "success",
|
|
70
73
|
text: "Der Datensatz wurde veröffentlicht",
|
|
71
74
|
button: "Ansehen",
|
|
@@ -73,7 +76,7 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
|
|
|
73
76
|
};
|
|
74
77
|
break;
|
|
75
78
|
case "deleteDataset":
|
|
76
|
-
M(
|
|
79
|
+
M(a.id, a.catalogue), i.value = !0, d.value = {
|
|
77
80
|
type: "success",
|
|
78
81
|
text: "Der Datensatz wurde erfolgreich gelöscht",
|
|
79
82
|
button: "Rückgängig machen",
|
|
@@ -82,131 +85,139 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
|
|
|
82
85
|
break;
|
|
83
86
|
case "setToDraft":
|
|
84
87
|
C(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
),
|
|
88
|
+
a.dataset.id,
|
|
89
|
+
a.dataset.catalog.id,
|
|
90
|
+
a.dataset.title,
|
|
91
|
+
a.dataset.description
|
|
92
|
+
), i.value = !0, d.value = {
|
|
90
93
|
type: "success",
|
|
91
94
|
text: "Der Datensatz wurde erfolgreich zu einem Entwurf zurückgesetzt",
|
|
92
95
|
button: "Rückgängig machen",
|
|
93
96
|
action: "revertToDraft"
|
|
94
97
|
};
|
|
95
98
|
}
|
|
96
|
-
},
|
|
99
|
+
}, k = (t) => {
|
|
97
100
|
let e = "";
|
|
98
101
|
switch (typeof t == "string" ? e = t : e = t.target.innerText, e) {
|
|
99
102
|
case "Bearbeiten":
|
|
100
103
|
B();
|
|
101
104
|
break;
|
|
102
105
|
case "Veröffentlichen":
|
|
103
|
-
|
|
106
|
+
r.value = {
|
|
104
107
|
button: "Veröffentlichen",
|
|
105
108
|
header: "Datensatz veröffentlichen",
|
|
106
109
|
text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
|
|
107
110
|
action: "publishDataset"
|
|
108
|
-
},
|
|
111
|
+
}, l.value = !0;
|
|
109
112
|
break;
|
|
110
113
|
case "Löschen":
|
|
111
|
-
|
|
114
|
+
r.value = {
|
|
112
115
|
button: "Ja, löschen",
|
|
113
116
|
header: "Datensatz endgültig löschen",
|
|
114
117
|
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.",
|
|
115
118
|
action: "deleteDataset"
|
|
116
|
-
},
|
|
119
|
+
}, l.value = !0;
|
|
117
120
|
break;
|
|
118
121
|
case "Veröffentlichung aufheben":
|
|
119
|
-
|
|
122
|
+
r.value = {
|
|
120
123
|
button: "Ja",
|
|
121
124
|
header: "Veröffentlichung aufheben",
|
|
122
125
|
text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
|
|
123
126
|
action: "setToDraft"
|
|
124
|
-
},
|
|
127
|
+
}, l.value = !0;
|
|
125
128
|
break;
|
|
126
129
|
}
|
|
127
130
|
};
|
|
128
|
-
let
|
|
129
|
-
const
|
|
130
|
-
e ?
|
|
131
|
-
},
|
|
132
|
-
t.target.className != "dpiV3_more-button dpiV3_activeState" && (
|
|
133
|
-
},
|
|
134
|
-
t.target.className != "dpiV3_more-button dpiV3_activeState" && (
|
|
131
|
+
let v = u(!1);
|
|
132
|
+
const V = (t, e) => {
|
|
133
|
+
e ? v.value = !0 : v.value = !1;
|
|
134
|
+
}, T = (t) => {
|
|
135
|
+
t.target.className != "dpiV3_more-button dpiV3_activeState" && (v.value = !0);
|
|
136
|
+
}, x = (t) => {
|
|
137
|
+
t.target.className != "dpiV3_more-button dpiV3_activeState" && (v.value = !1);
|
|
135
138
|
};
|
|
136
139
|
return (t, e) => (c(), N(F, null, [
|
|
137
140
|
o("button", {
|
|
138
141
|
class: H(["dpiV3_tableRowWrapper", {
|
|
139
|
-
dpiV3_pressedTableRow: n(
|
|
140
|
-
tRowInDraft:
|
|
142
|
+
dpiV3_pressedTableRow: n(v),
|
|
143
|
+
tRowInDraft: a.fromDraft
|
|
141
144
|
}]),
|
|
142
145
|
onKeydown: [
|
|
143
|
-
e[3] || (e[3] = m(
|
|
144
|
-
e[4] || (e[4] = m(
|
|
146
|
+
e[3] || (e[3] = h(m((s) => T(s), ["prevent"]), ["space"])),
|
|
147
|
+
e[4] || (e[4] = h(m((s) => T(s), ["prevent"]), ["enter"]))
|
|
145
148
|
],
|
|
146
149
|
onKeyup: [
|
|
147
|
-
e[5] || (e[5] =
|
|
148
|
-
e[6] || (e[6] =
|
|
150
|
+
e[5] || (e[5] = h((s) => x(s), ["space"])),
|
|
151
|
+
e[6] || (e[6] = h((s) => x(s), ["enter"]))
|
|
149
152
|
]
|
|
150
153
|
}, [
|
|
151
154
|
o("div", P, [
|
|
152
155
|
o("div", {
|
|
153
156
|
class: "dpiV3_tableRowContent",
|
|
154
|
-
onMousedown: e[0] || (e[0] =
|
|
155
|
-
onMouseup: e[1] || (e[1] =
|
|
156
|
-
onClick: e[2] || (e[2] = (
|
|
157
|
+
onMousedown: e[0] || (e[0] = m((s) => V(s, !0), ["prevent"])),
|
|
158
|
+
onMouseup: e[1] || (e[1] = m((s) => V(s, !1), ["prevent"])),
|
|
159
|
+
onClick: e[2] || (e[2] = (s) => k("Bearbeiten"))
|
|
157
160
|
}, [
|
|
158
161
|
o("div", Q, [
|
|
159
|
-
o("span", X,
|
|
162
|
+
o("span", X, S(a.text), 1)
|
|
160
163
|
]),
|
|
161
164
|
o("div", Y, [
|
|
162
|
-
|
|
165
|
+
a.draft ? (c(), f(w, {
|
|
163
166
|
key: 1,
|
|
164
167
|
label: "Entwurf",
|
|
165
168
|
state: "draft"
|
|
166
|
-
})) : (c(),
|
|
169
|
+
})) : (c(), f(w, {
|
|
167
170
|
key: 0,
|
|
168
171
|
label: "Freigegeben",
|
|
169
172
|
state: "published"
|
|
170
173
|
})),
|
|
171
|
-
o("span", Z, " Updated am: " +
|
|
174
|
+
o("span", Z, " Updated am: " + S(a.date), 1)
|
|
175
|
+
]),
|
|
176
|
+
o("div", ee, [
|
|
177
|
+
g.visibility ? (c(), f(w, {
|
|
178
|
+
key: 0,
|
|
179
|
+
label: g.visibility,
|
|
180
|
+
state: a.draft ? "draft" : "published",
|
|
181
|
+
hasDotIcon: !1
|
|
182
|
+
}, null, 8, ["label", "state"])) : b("", !0)
|
|
172
183
|
])
|
|
173
184
|
], 32),
|
|
174
|
-
o("div",
|
|
175
|
-
n(
|
|
185
|
+
o("div", te, [
|
|
186
|
+
n(y).edit.fromDraft ? b("", !0) : (c(), f(L, {
|
|
176
187
|
key: 0,
|
|
177
|
-
onClick:
|
|
188
|
+
onClick: k,
|
|
178
189
|
type: "moreButton",
|
|
179
190
|
alignment: "right",
|
|
180
191
|
text: {
|
|
181
192
|
support: "This is a supporting message"
|
|
182
193
|
},
|
|
183
|
-
data:
|
|
194
|
+
data: E()
|
|
184
195
|
}, null, 8, ["data"]))
|
|
185
196
|
])
|
|
186
197
|
])
|
|
187
198
|
], 34),
|
|
188
|
-
n(
|
|
199
|
+
n(l) ? (c(), f(j, {
|
|
189
200
|
key: 0,
|
|
190
|
-
buttons: n(
|
|
191
|
-
headerText: n(
|
|
192
|
-
text: n(
|
|
193
|
-
onClose: e[7] || (e[7] = (
|
|
194
|
-
action: n(
|
|
195
|
-
onActionHandling: e[8] || (e[8] = (
|
|
196
|
-
}, null, 8, ["buttons", "headerText", "text", "action"])) :
|
|
197
|
-
n(
|
|
201
|
+
buttons: n(r).button,
|
|
202
|
+
headerText: n(r).header,
|
|
203
|
+
text: n(r).text,
|
|
204
|
+
onClose: e[7] || (e[7] = (s) => _(l) ? l.value = !1 : l = !1),
|
|
205
|
+
action: n(r).action,
|
|
206
|
+
onActionHandling: e[8] || (e[8] = (s) => K(s))
|
|
207
|
+
}, null, 8, ["buttons", "headerText", "text", "action"])) : b("", !0),
|
|
208
|
+
n(i) ? (c(), f(q, {
|
|
198
209
|
key: 1,
|
|
199
210
|
type: n(d).type,
|
|
200
211
|
text: n(d).text,
|
|
201
212
|
class: "dpiV3_tableToast",
|
|
202
213
|
button: n(d).button,
|
|
203
214
|
action: n(d).action,
|
|
204
|
-
onMouseenter: e[9] || (e[9] = (
|
|
205
|
-
onMouseleave:
|
|
206
|
-
}, null, 8, ["type", "text", "button", "action"])) :
|
|
215
|
+
onMouseenter: e[9] || (e[9] = (s) => _(p) ? p.value = !0 : p = !0),
|
|
216
|
+
onMouseleave: I
|
|
217
|
+
}, null, 8, ["type", "text", "button", "action"])) : b("", !0)
|
|
207
218
|
], 64));
|
|
208
219
|
}
|
|
209
|
-
},
|
|
220
|
+
}, ve = /* @__PURE__ */ G(ae, [["__scopeId", "data-v-9f89e274"]]);
|
|
210
221
|
export {
|
|
211
|
-
|
|
222
|
+
ve as default
|
|
212
223
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js
CHANGED
|
@@ -87,7 +87,7 @@ const R = { class: "dpiV3_input-field V3-typography" }, j = { class: "dpiV3_Inpu
|
|
|
87
87
|
}
|
|
88
88
|
function D() {
|
|
89
89
|
const a = m.value;
|
|
90
|
-
a.style.height = "
|
|
90
|
+
a.style.height = "268px", a.style.height = `${Math.min(a.scrollHeight, 372)}px`;
|
|
91
91
|
}
|
|
92
92
|
return (a, y) => (d(), c("div", R, [
|
|
93
93
|
l("div", j, [
|
|
@@ -148,7 +148,7 @@ const R = { class: "dpiV3_input-field V3-typography" }, j = { class: "dpiV3_Inpu
|
|
|
148
148
|
])
|
|
149
149
|
]));
|
|
150
150
|
}
|
|
151
|
-
}, Z = /* @__PURE__ */ L(G, [["__scopeId", "data-v-
|
|
151
|
+
}, Z = /* @__PURE__ */ L(G, [["__scopeId", "data-v-609d64d4"]]);
|
|
152
152
|
export {
|
|
153
153
|
Z as default
|
|
154
154
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./StepActionsSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a83f996d"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as E, inject as z, ref as d, watch as D, toRef as M, computed as A, createElementBlock as f, openBlock as r, createElementVNode as v, createBlock as F, createCommentVNode as I, createVNode as i, renderSlot as x, normalizeStyle as L, withDirectives as y, vShow as C, withCtx as m, Fragment as R, renderList as K, toDisplayString as _, createTextVNode as $, unref as j, nextTick as U } from "vue";
|
|
2
2
|
import { getNode as W, isNode as Z } from "@formkit/core";
|
|
3
3
|
import { getValidationMessages as q } from "@formkit/validation";
|
|
4
4
|
import { PhExclamationMark as G } from "@phosphor-icons/vue";
|
|
@@ -6,7 +6,7 @@ import h from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
|
6
6
|
import H from "../HappyFlowComponents/ui/Card.vue.js";
|
|
7
7
|
import { dpiStepperKey as J } from "../utils/injectionKeys.js";
|
|
8
8
|
import O from "./TheCancelConfirmationDialog.vue.js";
|
|
9
|
-
const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y = { class: "step-actions__prev-and-next" }, ee = { class: "validation-errors" }, ce = /* @__PURE__ */
|
|
9
|
+
const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y = { class: "step-actions__prev-and-next" }, ee = { class: "validation-errors" }, ce = /* @__PURE__ */ E({
|
|
10
10
|
__name: "StepActionsSection",
|
|
11
11
|
props: {
|
|
12
12
|
hideCancel: { type: Boolean, default: !1 },
|
|
@@ -20,7 +20,7 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["submit"],
|
|
22
22
|
setup(te, { emit: V }) {
|
|
23
|
-
const S = V, e =
|
|
23
|
+
const S = V, e = z(J);
|
|
24
24
|
e || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
|
|
25
25
|
function T(t) {
|
|
26
26
|
return t !== void 0;
|
|
@@ -29,17 +29,17 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
|
|
|
29
29
|
function N(t) {
|
|
30
30
|
if (!t)
|
|
31
31
|
return;
|
|
32
|
-
const
|
|
33
|
-
!
|
|
32
|
+
const n = q(t);
|
|
33
|
+
!n || n.size === 0 || (a.value = [...n.entries()].flatMap(([o, B]) => B.map((P) => String(P.value))));
|
|
34
34
|
}
|
|
35
35
|
e && D(e.activeStep, () => {
|
|
36
36
|
a.value.splice(0, a.value.length), s.value = !1;
|
|
37
37
|
});
|
|
38
38
|
const b = M(e == null ? void 0 : e.steps);
|
|
39
39
|
function p(t) {
|
|
40
|
-
var
|
|
41
|
-
const
|
|
42
|
-
return
|
|
40
|
+
var o;
|
|
41
|
+
const n = (o = b.value) == null ? void 0 : o[t];
|
|
42
|
+
return n ? n.valid : !1;
|
|
43
43
|
}
|
|
44
44
|
function k() {
|
|
45
45
|
p((e == null ? void 0 : e.activeStep.value) || "") && (e == null || e.goToNextStep());
|
|
@@ -50,12 +50,12 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
|
|
|
50
50
|
function u() {
|
|
51
51
|
e == null || e.goToPreviousStep();
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const w = A(() => e != null && e.activeStep.value ? W(e == null ? void 0 : e.activeStep.value) : null);
|
|
54
54
|
async function c() {
|
|
55
55
|
if (!T(e))
|
|
56
56
|
return;
|
|
57
57
|
e.triggerValidationCurrentStep(), await U();
|
|
58
|
-
const t =
|
|
58
|
+
const t = w.value;
|
|
59
59
|
if (t ? !p((e == null ? void 0 : e.activeStep.value) || "") : !1) {
|
|
60
60
|
if (!Z(t)) {
|
|
61
61
|
console.error("Current step node is not a FormKitNode", t);
|
|
@@ -65,7 +65,7 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
|
|
|
65
65
|
}
|
|
66
66
|
e != null && e.isLast.value ? S("submit") : k();
|
|
67
67
|
}
|
|
68
|
-
return (t,
|
|
68
|
+
return (t, n) => (r(), f("div", Q, [
|
|
69
69
|
v("div", X, [
|
|
70
70
|
x(t.$slots, "default", {
|
|
71
71
|
handleCancel: g,
|
|
@@ -104,9 +104,9 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
|
|
|
104
104
|
variant: t.nextVariant,
|
|
105
105
|
type: "button",
|
|
106
106
|
"button-text": t.nextText,
|
|
107
|
-
"icon-end": "CaretRight",
|
|
107
|
+
"icon-end": t.nextText === "Als Entwurf Speichern" ? null : "CaretRight",
|
|
108
108
|
onClick: c
|
|
109
|
-
}, null, 8, ["variant", "button-text"]), [
|
|
109
|
+
}, null, 8, ["variant", "button-text", "icon-end"]), [
|
|
110
110
|
[C, !t.hideNext]
|
|
111
111
|
])
|
|
112
112
|
], !0)
|
|
@@ -123,19 +123,19 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
|
|
|
123
123
|
color: "currentColor"
|
|
124
124
|
})
|
|
125
125
|
]),
|
|
126
|
-
title: m(() =>
|
|
126
|
+
title: m(() => n[1] || (n[1] = [
|
|
127
127
|
$(" Bitte korrigieren Sie die folgenden Fehler ", -1)
|
|
128
128
|
])),
|
|
129
129
|
default: m(() => [
|
|
130
130
|
v("ul", ee, [
|
|
131
|
-
(r(!0), f(R, null,
|
|
131
|
+
(r(!0), f(R, null, K(a.value, (o) => (r(), f("li", { key: o }, _(o), 1))), 128))
|
|
132
132
|
])
|
|
133
133
|
]),
|
|
134
134
|
_: 1
|
|
135
135
|
})) : I("", !0),
|
|
136
136
|
i(O, {
|
|
137
137
|
modelValue: l.value,
|
|
138
|
-
"onUpdate:modelValue":
|
|
138
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => l.value = o)
|
|
139
139
|
}, null, 8, ["modelValue"])
|
|
140
140
|
]));
|
|
141
141
|
}
|
package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TheCancelConfirmationDialog.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import a from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-22b07a20"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as s, mergeModels as m, useModel as p, createBlock as f, openBlock as v, withCtx as o, createElementVNode as l, createVNode as i } from "vue";
|
|
2
|
+
import a from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
3
|
+
import g from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
|
|
4
|
+
const B = /* @__PURE__ */ s({
|
|
5
5
|
__name: "TheCancelConfirmationDialog",
|
|
6
6
|
props: {
|
|
7
7
|
modelValue: { type: Boolean },
|
|
8
8
|
modelModifiers: {}
|
|
9
9
|
},
|
|
10
|
-
emits: /* @__PURE__ */
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
return (
|
|
14
|
-
modelValue:
|
|
15
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
10
|
+
emits: /* @__PURE__ */ m(["closeWithoutSaving", "closeWithSaving"], ["update:modelValue"]),
|
|
11
|
+
setup(u, { emit: d }) {
|
|
12
|
+
const n = d, r = p(u, "modelValue");
|
|
13
|
+
return (V, e) => (v(), f(g, {
|
|
14
|
+
modelValue: r.value,
|
|
15
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => r.value = t)
|
|
16
16
|
}, {
|
|
17
|
-
header:
|
|
18
|
-
|
|
17
|
+
header: o(() => e[3] || (e[3] = [
|
|
18
|
+
l("h4", null, "Projektanlage später fortführen", -1)
|
|
19
19
|
])),
|
|
20
|
-
footer:
|
|
21
|
-
a
|
|
22
|
-
"button-text": "
|
|
20
|
+
footer: o(() => [
|
|
21
|
+
i(a, {
|
|
22
|
+
"button-text": "Bearbeitung verwerfen",
|
|
23
23
|
variant: "secondary",
|
|
24
|
-
onClick: e[0] || (e[0] = (
|
|
24
|
+
onClick: e[0] || (e[0] = (t) => n("closeWithoutSaving"))
|
|
25
25
|
}),
|
|
26
|
-
a
|
|
27
|
-
"button-text": "
|
|
26
|
+
i(a, {
|
|
27
|
+
"button-text": "Projekt als Entwurf speichern",
|
|
28
28
|
variant: "primary",
|
|
29
|
-
onClick: e[1] || (e[1] = (
|
|
29
|
+
onClick: e[1] || (e[1] = (t) => n("closeWithSaving"))
|
|
30
30
|
})
|
|
31
31
|
]),
|
|
32
|
-
default:
|
|
33
|
-
e[4] || (e[4] =
|
|
32
|
+
default: o(() => [
|
|
33
|
+
e[4] || (e[4] = l("div", null, " Sie können die Projektanlage später fortführen und Ihren bisherigen Fortschritt entweder verwerfen oder als Entwurf speichern. ", -1))
|
|
34
34
|
]),
|
|
35
35
|
_: 1,
|
|
36
36
|
__: [4]
|
|
@@ -38,5 +38,5 @@ const k = /* @__PURE__ */ u({
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
B as default
|
|
42
42
|
};
|