@piveau/dpi 0.2.0-alpha.5 → 0.2.0-alpha.7
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/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +18 -21
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +49 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue2.js +30 -24
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +5 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +63 -61
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +47 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +33 -29
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +8 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +65 -37
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +21 -22
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue.js +31 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +72 -62
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +38 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +76 -69
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +78 -91
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +27 -42
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +10 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/ProjektPhasenOverviewStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +16 -16
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +13 -13
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +934 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +75 -63
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +42 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +249 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/fixtures.js +287 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +281 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +244 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +330 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/shared.js +37 -0
- package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +114 -0
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +387 -328
- package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +3 -3
- package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +6 -6
- package/package.json +5 -2
|
@@ -21,7 +21,7 @@ const z = { class: "dpiV3_page V3-typography" }, k = { class: "funny-section" },
|
|
|
21
21
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
|
|
22
22
|
label: "Beschreibung",
|
|
23
23
|
type: r(_),
|
|
24
|
-
name: "
|
|
24
|
+
name: "projectDescription",
|
|
25
25
|
"text-label": "Name",
|
|
26
26
|
placeholder: "Geben Sie Ihrem Projekt einen Namen.",
|
|
27
27
|
validation: "required|length:0,500",
|
|
@@ -59,7 +59,7 @@ const z = { class: "dpiV3_page V3-typography" }, k = { class: "funny-section" },
|
|
|
59
59
|
])
|
|
60
60
|
]));
|
|
61
61
|
}
|
|
62
|
-
}, F = /* @__PURE__ */ b(P, [["__scopeId", "data-v-
|
|
62
|
+
}, F = /* @__PURE__ */ b(P, [["__scopeId", "data-v-9f4e9fc8"]]);
|
|
63
63
|
export {
|
|
64
64
|
F as default
|
|
65
65
|
};
|
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { ref as r, createElementBlock as i, openBlock as a, createElementVNode as e, createVNode as o, unref as s } from "vue";
|
|
2
|
+
import { FormKit as l } from "@formkit/vue";
|
|
3
|
+
import c from "../../../components/StepActionsSection.vue.js";
|
|
4
|
+
import p from "../ListBox/ListBoxDefinition.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import u from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const d = { class: "dpiV3_page V3-typography" }, f = { class: "funny-section" }, m = { class: "funny-flex" }, _ = { class: "funny-section" }, h = {
|
|
8
8
|
__name: "ProjectStatusStep",
|
|
9
|
-
setup(
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
setup(S) {
|
|
10
|
+
const n = r(["Offen", "In Arbeit", "Abgeschlossen"]);
|
|
11
|
+
return (b, t) => (a(), i("div", d, [
|
|
12
|
+
e("section", f, [
|
|
12
13
|
e("div", m, [
|
|
13
14
|
t[0] || (t[0] = e("h4", null, " Legen Sie den Status Ihres Projekts fest ", -1)),
|
|
14
15
|
t[1] || (t[1] = e("span", { class: "copy-large-regular" }, "Ist Ihr Projekt noch in Planung, in Arbeit oder bereits abgeschlossen?", -1)),
|
|
15
|
-
o(s(
|
|
16
|
-
type: s(
|
|
16
|
+
o(s(l), {
|
|
17
|
+
type: s(p),
|
|
17
18
|
name: "projectName",
|
|
18
19
|
label: "Projektstatus",
|
|
19
20
|
placeholder: "Wählen Sie den Projektstatus.",
|
|
20
|
-
options:
|
|
21
|
-
{ id: "open", name: "Offen" },
|
|
22
|
-
{ id: "in_progress", name: "In Arbeit" },
|
|
23
|
-
{ id: "done", name: "Abgeschlossen" }
|
|
24
|
-
],
|
|
21
|
+
options: n.value,
|
|
25
22
|
validation: "required",
|
|
26
23
|
"validation-label": "Projektstatus"
|
|
27
|
-
}, null, 8, ["type"])
|
|
24
|
+
}, null, 8, ["type", "options"])
|
|
28
25
|
])
|
|
29
26
|
]),
|
|
30
|
-
e("section",
|
|
31
|
-
o(
|
|
27
|
+
e("section", _, [
|
|
28
|
+
o(c)
|
|
32
29
|
])
|
|
33
30
|
]));
|
|
34
31
|
}
|
|
35
|
-
},
|
|
32
|
+
}, x = /* @__PURE__ */ u(h, [["__scopeId", "data-v-4e2fe302"]]);
|
|
36
33
|
export {
|
|
37
|
-
|
|
34
|
+
x as default
|
|
38
35
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { useAttrs as C, ref as
|
|
2
|
-
import { PhMagnifyingGlass as m, PhX as
|
|
1
|
+
import { useAttrs as C, ref as f, computed as S, createElementBlock as F, createCommentVNode as c, openBlock as n, normalizeClass as M, createBlock as d, resolveDynamicComponent as P, mergeProps as D, withModifiers as T, unref as r, withCtx as W, createElementVNode as w, toDisplayString as N } from "vue";
|
|
2
|
+
import { PhMagnifyingGlass as m, PhX as V } from "@phosphor-icons/vue";
|
|
3
|
+
import { useVModel as j } from "@vueuse/core";
|
|
3
4
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
5
|
+
import q from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const A = ["title"], E = { class: "dpiV3_chipBody-text" }, G = {
|
|
6
7
|
__name: "Chip",
|
|
7
8
|
props: {
|
|
8
9
|
text: {
|
|
@@ -20,45 +21,52 @@ const q = ["title"], A = { class: "dpiV3_chipBody-text" }, E = {
|
|
|
20
21
|
as: {
|
|
21
22
|
type: String,
|
|
22
23
|
default: "button"
|
|
24
|
+
},
|
|
25
|
+
selectValue: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
23
28
|
}
|
|
24
29
|
},
|
|
25
|
-
emits: ["click", "selection-change"],
|
|
26
|
-
setup(e, { emit:
|
|
27
|
-
const
|
|
28
|
-
|
|
30
|
+
emits: ["click", "selection-change", "update:selectValue"],
|
|
31
|
+
setup(e, { emit: b }) {
|
|
32
|
+
const t = e, h = b, v = C(), u = f(), i = j(t, "selectValue", h, {
|
|
33
|
+
defaultValue: t.setup["@selected"],
|
|
34
|
+
passive: !0
|
|
35
|
+
}), y = f(), o = f("16px");
|
|
36
|
+
function k(s) {
|
|
29
37
|
}
|
|
30
|
-
function x(
|
|
31
|
-
if (
|
|
32
|
-
selected:
|
|
33
|
-
data:
|
|
34
|
-
}),
|
|
35
|
-
for (let
|
|
36
|
-
|
|
38
|
+
function x(s, l) {
|
|
39
|
+
if (s != "disabled" && s != "default" && s != "static" && (u.value.children[0].classList.toggle("dpiV3_chipSelected"), i.value = !i.value, h("click", t.data), h("selection-change", {
|
|
40
|
+
selected: i.value,
|
|
41
|
+
data: t.data
|
|
42
|
+
}), i.value))
|
|
43
|
+
for (let a = 0; a < u.value.children[0].children.length; a++)
|
|
44
|
+
u.value.children[0].children[a].tagName === "IMG" && !y.value && (i.value ? u.value.children[0].children[a].src = X : u.value.children[0].children[a].src = XB);
|
|
37
45
|
}
|
|
38
|
-
|
|
39
|
-
const p =
|
|
40
|
-
function g(
|
|
46
|
+
t.setup["@type"] === "selected" && (i.value = !0), t.setup["@search"] && (y.value = !0);
|
|
47
|
+
const p = f(!1);
|
|
48
|
+
function g(s) {
|
|
41
49
|
p.value = !0;
|
|
42
50
|
}
|
|
43
|
-
function
|
|
51
|
+
function B() {
|
|
44
52
|
p.value = !1;
|
|
45
53
|
}
|
|
46
|
-
const
|
|
54
|
+
const z = S(() => t.as === "button" ? {
|
|
47
55
|
type: "button",
|
|
48
56
|
...v
|
|
49
57
|
} : v);
|
|
50
|
-
return (
|
|
58
|
+
return (s, l) => typeof e.text < "u" ? (n(), F("div", {
|
|
51
59
|
key: 0,
|
|
52
60
|
ref_key: "chipWrap",
|
|
53
|
-
ref:
|
|
54
|
-
class:
|
|
61
|
+
ref: u,
|
|
62
|
+
class: M(["dpiV3_chipBorder", { dpiV3_focusBorder: p.value, dpiV3_inTableWrap: e.setup["@inTable"], dpiV3_inRaPFindability_outer: e.setup["@rapfindability"] }]),
|
|
55
63
|
title: e.text,
|
|
56
64
|
onClick: k
|
|
57
65
|
}, [
|
|
58
|
-
(
|
|
66
|
+
(n(), d(P(e.as), D(z.value, {
|
|
59
67
|
class: ["dpiV3_chipBody", {
|
|
60
68
|
dpiV3_chipUnselected: e.setup["@type"] === "select",
|
|
61
|
-
dpiV3_chipSelected:
|
|
69
|
+
dpiV3_chipSelected: r(i),
|
|
62
70
|
dpiV3_chipDefault: e.setup["@type"] === "default",
|
|
63
71
|
dpiV3_chipDisabled: e.setup["@type"] === "disabled",
|
|
64
72
|
dpiV3_specialFocus: p.value,
|
|
@@ -68,36 +76,36 @@ const q = ["title"], A = { class: "dpiV3_chipBody-text" }, E = {
|
|
|
68
76
|
dpiV3_inRaPFindability: e.setup["@rapfindability"]
|
|
69
77
|
}],
|
|
70
78
|
disabled: e.setup["@type"] === "disabled" || e.setup["@type"] === "static",
|
|
71
|
-
onClick:
|
|
72
|
-
onMousedown:
|
|
79
|
+
onClick: l[0] || (l[0] = (a) => x(e.setup["@type"])),
|
|
80
|
+
onMousedown: l[1] || (l[1] = T(() => {
|
|
73
81
|
}, ["prevent"])),
|
|
74
|
-
onFocus:
|
|
75
|
-
onBlur:
|
|
82
|
+
onFocus: l[2] || (l[2] = (a) => g()),
|
|
83
|
+
onBlur: B
|
|
76
84
|
}), {
|
|
77
85
|
default: W(() => [
|
|
78
|
-
e.setup["@search"] && e.setup["@icon"] === "prefix" ? (
|
|
86
|
+
e.setup["@search"] && e.setup["@icon"] === "prefix" ? (n(), d(r(m), {
|
|
79
87
|
key: 0,
|
|
80
88
|
size: o.value
|
|
81
|
-
}, null, 8, ["size"])) :
|
|
82
|
-
!e.setup["@search"] && e.setup["@icon"] === "prefix" ? (
|
|
89
|
+
}, null, 8, ["size"])) : c("", !0),
|
|
90
|
+
!e.setup["@search"] && e.setup["@icon"] === "prefix" ? (n(), d(r(V), {
|
|
83
91
|
key: 1,
|
|
84
92
|
size: o.value
|
|
85
|
-
}, null, 8, ["size"])) :
|
|
86
|
-
w("span",
|
|
87
|
-
!e.setup["@search"] && e.setup["@icon"] === "suffix" ? (
|
|
93
|
+
}, null, 8, ["size"])) : c("", !0),
|
|
94
|
+
w("span", E, N(e.text), 1),
|
|
95
|
+
!e.setup["@search"] && e.setup["@icon"] === "suffix" ? (n(), d(r(V), {
|
|
88
96
|
key: 2,
|
|
89
97
|
size: o.value
|
|
90
|
-
}, null, 8, ["size"])) :
|
|
91
|
-
e.setup["@search"] && e.setup["@icon"] === "suffix" ? (
|
|
98
|
+
}, null, 8, ["size"])) : c("", !0),
|
|
99
|
+
e.setup["@search"] && e.setup["@icon"] === "suffix" ? (n(), d(r(m), {
|
|
92
100
|
key: 3,
|
|
93
101
|
size: o.value
|
|
94
|
-
}, null, 8, ["size"])) :
|
|
102
|
+
}, null, 8, ["size"])) : c("", !0)
|
|
95
103
|
]),
|
|
96
104
|
_: 1
|
|
97
105
|
}, 16, ["class", "disabled"]))
|
|
98
|
-
], 10,
|
|
106
|
+
], 10, A)) : c("", !0);
|
|
99
107
|
}
|
|
100
|
-
},
|
|
108
|
+
}, U = /* @__PURE__ */ q(G, [["__scopeId", "data-v-c0f41940"]]);
|
|
101
109
|
export {
|
|
102
|
-
|
|
110
|
+
U as default
|
|
103
111
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ChipToggleList.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc5c88ab"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { looseIndexOf as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as v, mergeModels as f, useModel as h, computed as x, createElementBlock as s, openBlock as c, Fragment as k, renderList as C, withDirectives as V, createElementVNode as u, vModelCheckbox as _, createVNode as b } from "vue";
|
|
2
|
+
import { looseIndexOf as n } from "@vue/shared";
|
|
3
|
+
import g from "../Chip.vue.js";
|
|
4
|
+
const y = { class: "chip-toggle-list" }, I = ["id", "value"], M = ["for", "onClick"], B = /* @__PURE__ */ v({
|
|
5
5
|
__name: "ChipToggleList",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ f({
|
|
7
7
|
options: {}
|
|
8
8
|
}, {
|
|
9
9
|
modelValue: {
|
|
@@ -12,51 +12,57 @@ const b = { class: "chip-toggle-list" }, g = ["id", "value"], V = ["for", "onCli
|
|
|
12
12
|
modelModifiers: {}
|
|
13
13
|
}),
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
function
|
|
18
|
-
return
|
|
15
|
+
setup(i) {
|
|
16
|
+
const r = i, t = h(i, "modelValue");
|
|
17
|
+
function o(l) {
|
|
18
|
+
return n(t.value, l) !== -1;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
20
|
+
function m(l) {
|
|
21
|
+
n(t.value, l.id) !== -1 ? t.value = t.value.filter((e) => e !== l.id) : t.value = [...t.value, l.id];
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const p = x(() => r.options.map((l) => ({
|
|
24
|
+
...l,
|
|
25
|
+
selected: o(l.id)
|
|
26
|
+
})));
|
|
27
|
+
return (l, a) => (c(), s("div", y, [
|
|
28
|
+
(c(!0), s(k, null, C(p.value, (e) => (c(), s("div", {
|
|
25
29
|
key: e.id,
|
|
26
30
|
class: "chip-item"
|
|
27
31
|
}, [
|
|
28
|
-
|
|
32
|
+
V(u("input", {
|
|
29
33
|
id: `chip-${e.id}`,
|
|
30
|
-
"onUpdate:modelValue":
|
|
34
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => t.value = d),
|
|
31
35
|
class: "chip-checkbox",
|
|
32
36
|
type: "checkbox",
|
|
33
37
|
value: e.id
|
|
34
|
-
}, null, 8,
|
|
35
|
-
[
|
|
38
|
+
}, null, 8, I), [
|
|
39
|
+
[_, t.value]
|
|
36
40
|
]),
|
|
37
41
|
u("label", {
|
|
38
42
|
class: "chip-label",
|
|
39
43
|
for: `chip-${e.id}`,
|
|
40
|
-
onClick: (
|
|
44
|
+
onClick: (d) => m(e)
|
|
41
45
|
}, [
|
|
42
|
-
|
|
46
|
+
b(g, {
|
|
47
|
+
"select-value": e.selected,
|
|
48
|
+
"onUpdate:selectValue": (d) => e.selected = d,
|
|
43
49
|
text: e.name,
|
|
44
50
|
data: {
|
|
45
51
|
"@value": e.id,
|
|
46
|
-
URI:
|
|
52
|
+
URI: "https://example.com/default"
|
|
47
53
|
},
|
|
48
54
|
setup: {
|
|
49
55
|
"@type": "select",
|
|
50
56
|
"@inTable": !1,
|
|
51
57
|
"@findability": !0,
|
|
52
|
-
"@selected":
|
|
58
|
+
"@selected": e.selected
|
|
53
59
|
}
|
|
54
|
-
}, null, 8, ["text", "data", "setup"])
|
|
55
|
-
], 8,
|
|
60
|
+
}, null, 8, ["select-value", "onUpdate:selectValue", "text", "data", "setup"])
|
|
61
|
+
], 8, M)
|
|
56
62
|
]))), 128))
|
|
57
63
|
]));
|
|
58
64
|
}
|
|
59
65
|
});
|
|
60
66
|
export {
|
|
61
|
-
|
|
67
|
+
B as default
|
|
62
68
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./BasicInformationStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24d68bfc"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -16,7 +16,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
|
|
|
16
16
|
}, E = { class: "partner-cards-container" }, K = { class: "action-container" }, T = { class: "funny-section" }, U = { class: "funny-section" }, j = 500, te = /* @__PURE__ */ S({
|
|
17
17
|
__name: "BasicInformationStep",
|
|
18
18
|
setup(O) {
|
|
19
|
-
const f = y(""), z = y([]), w = y([]),
|
|
19
|
+
const f = y(""), z = y([]), w = y([]), x = I(() => {
|
|
20
20
|
var h;
|
|
21
21
|
return ((h = f.value) == null ? void 0 : h.length) || 0;
|
|
22
22
|
});
|
|
@@ -33,7 +33,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
|
|
|
33
33
|
modelValue: f.value,
|
|
34
34
|
"onUpdate:modelValue": e[0] || (e[0] = (i) => f.value = i),
|
|
35
35
|
class: "budgetArea",
|
|
36
|
-
label: "
|
|
36
|
+
label: "description",
|
|
37
37
|
type: r(D),
|
|
38
38
|
name: "description",
|
|
39
39
|
"text-label": "Beschreibung",
|
|
@@ -41,7 +41,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
|
|
|
41
41
|
validation: "length:0,1000",
|
|
42
42
|
"validation-visibility": "live",
|
|
43
43
|
hint: "true",
|
|
44
|
-
help: `${
|
|
44
|
+
help: `${x.value} von ${j} Zeichen`,
|
|
45
45
|
"count-hint": !0
|
|
46
46
|
}, null, 8, ["modelValue", "type", "help"])
|
|
47
47
|
]),
|
|
@@ -88,7 +88,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
|
|
|
88
88
|
size: "small",
|
|
89
89
|
variant: "tertiary",
|
|
90
90
|
"icon-start": "trash",
|
|
91
|
-
onClick: () => o.input(l.filter((
|
|
91
|
+
onClick: () => o.input(l.filter((B, g) => g !== u))
|
|
92
92
|
}, null, 8, ["onClick"])
|
|
93
93
|
]),
|
|
94
94
|
_: 2
|
|
@@ -157,7 +157,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
|
|
|
157
157
|
size: "small",
|
|
158
158
|
variant: "tertiary",
|
|
159
159
|
"icon-start": "trash",
|
|
160
|
-
onClick: () => o.input(l.filter((
|
|
160
|
+
onClick: () => o.input(l.filter((B, g) => g !== u))
|
|
161
161
|
}, null, 8, ["onClick"])
|
|
162
162
|
]),
|
|
163
163
|
_: 2
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ApplicationsStep.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-341c16e4"]]);
|
|
5
5
|
export {
|
|
6
6
|
c as default
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
1
|
+
import { defineComponent as C, ref as v, computed as b, createElementBlock as d, openBlock as p, createElementVNode as t, createVNode as l, createCommentVNode as A, unref as m, Fragment as U, renderList as z, withDirectives as I, vModelCheckbox as P, withCtx as o, createTextVNode as g } from "vue";
|
|
2
|
+
import { FormKit as D } from "@formkit/vue";
|
|
3
3
|
import { PhLightbulb as _ } from "@phosphor-icons/vue";
|
|
4
|
-
import { defineHubSearch as
|
|
5
|
-
import
|
|
4
|
+
import { defineHubSearch as j } from "@piveau/sdk-vue";
|
|
5
|
+
import $ from "zod";
|
|
6
6
|
import B from "../../../components/StepActionsSection.vue.js";
|
|
7
7
|
import E from "../Autocomplete/AutocompleteVocab.vue.js";
|
|
8
8
|
import L from "../ButtonV3.vue.js";
|
|
@@ -11,70 +11,71 @@ import N from "../Chip.vue.js";
|
|
|
11
11
|
const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" }, W = { class: "funny-flex" }, M = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "d-flex selected-applications"
|
|
14
|
-
}, Z = ["id", "value"],
|
|
14
|
+
}, Z = ["id", "value"], q = { class: "ml-auto" }, F = { class: "funny-section action-section" }, K = { class: "action-section" }, T = { class: "action-section" }, V = "data-theme", se = /* @__PURE__ */ C({
|
|
15
15
|
__name: "ApplicationsStep",
|
|
16
16
|
setup(G) {
|
|
17
|
-
const s =
|
|
17
|
+
const s = v([]), c = v(""), { useResources: k } = j({
|
|
18
18
|
baseUrl: "https://staging.bydata.de/api/hub/search",
|
|
19
19
|
index: "vocabulary",
|
|
20
20
|
indexDetails: "vocabularies",
|
|
21
|
-
schema:
|
|
22
|
-
}, (
|
|
23
|
-
var
|
|
24
|
-
const e = String((
|
|
21
|
+
schema: $.any()
|
|
22
|
+
}, (n) => {
|
|
23
|
+
var a, u;
|
|
24
|
+
const e = String((n == null ? void 0 : n.id) || ""), i = String(((a = n == null ? void 0 : n.pref_label) == null ? void 0 : a.de) || ((u = n == null ? void 0 : n.pref_label) == null ? void 0 : u.en) || "");
|
|
25
25
|
return {
|
|
26
26
|
id: e,
|
|
27
|
-
name: i
|
|
27
|
+
name: i,
|
|
28
|
+
resource: n == null ? void 0 : n.resource
|
|
28
29
|
};
|
|
29
|
-
}), y =
|
|
30
|
+
}), y = b(() => s.value.map((n) => ({
|
|
30
31
|
resourceId: `${V}/vocable`,
|
|
31
32
|
params: {
|
|
32
33
|
additionalParams: {
|
|
33
|
-
resource:
|
|
34
|
+
resource: n
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
}))),
|
|
37
|
-
const e =
|
|
37
|
+
}))), f = k(y), h = b(() => f.value.every((n) => n.isSuccess) ? f.value.map((n) => {
|
|
38
|
+
const e = n.resultEnhanced;
|
|
38
39
|
return (e == null ? void 0 : e.name) || "";
|
|
39
40
|
}) : []);
|
|
40
|
-
function
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
const e =
|
|
44
|
-
s.value.includes(e) || s.value.push(e),
|
|
41
|
+
function S() {
|
|
42
|
+
const n = c.value;
|
|
43
|
+
if (n && n.trim()) {
|
|
44
|
+
const e = n.trim();
|
|
45
|
+
s.value.includes(e) || s.value.push(e), c.value = "";
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
return (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
e[3] || (e[3] =
|
|
51
|
-
e[4] || (e[4] =
|
|
52
|
-
l(
|
|
48
|
+
return (n, e) => (p(), d("div", H, [
|
|
49
|
+
t("section", R, [
|
|
50
|
+
t("div", W, [
|
|
51
|
+
e[3] || (e[3] = t("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
|
|
52
|
+
e[4] || (e[4] = t("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese hier entweder aus der Liste oder geben Sie sie manuell an. ", -1)),
|
|
53
|
+
l(m(D), {
|
|
53
54
|
modelValue: s.value,
|
|
54
55
|
"onUpdate:modelValue": e[0] || (e[0] = (i) => s.value = i),
|
|
55
56
|
name: "applications",
|
|
56
57
|
type: "list",
|
|
57
58
|
hidden: ""
|
|
58
59
|
}, null, 8, ["modelValue"]),
|
|
59
|
-
|
|
60
|
-
(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
id: `application-${i}`,
|
|
66
|
-
"onUpdate:modelValue": e[1] || (e[1] = (m) => s.value = m),
|
|
67
|
-
class: "label-chip__input",
|
|
68
|
-
type: "checkbox",
|
|
69
|
-
value: i
|
|
70
|
-
}, null, 8, Z), [
|
|
71
|
-
[I, s.value]
|
|
72
|
-
]),
|
|
73
|
-
n("label", {
|
|
74
|
-
class: "label-chip__label",
|
|
75
|
-
for: `application-${i}`
|
|
60
|
+
h.value.length > 0 ? (p(), d("div", M, [
|
|
61
|
+
(p(!0), d(U, null, z(h.value, (i, r) => {
|
|
62
|
+
var a, u;
|
|
63
|
+
return p(), d("div", {
|
|
64
|
+
key: `application-${i}@${r}`,
|
|
65
|
+
class: "label-chip"
|
|
76
66
|
}, [
|
|
67
|
+
I(t("input", {
|
|
68
|
+
id: `application-${i}@${r}`,
|
|
69
|
+
"onUpdate:modelValue": e[1] || (e[1] = (x) => s.value = x),
|
|
70
|
+
class: "label-chip__input",
|
|
71
|
+
type: "checkbox",
|
|
72
|
+
value: (u = (a = m(f)[r]) == null ? void 0 : a.resultEnhanced) == null ? void 0 : u.resource
|
|
73
|
+
}, null, 8, Z), [
|
|
74
|
+
[P, s.value]
|
|
75
|
+
]),
|
|
77
76
|
l(N, {
|
|
77
|
+
as: "label",
|
|
78
|
+
for: `application-${i}@${r}`,
|
|
78
79
|
class: "label-chip__inner",
|
|
79
80
|
text: i,
|
|
80
81
|
data: {
|
|
@@ -84,15 +85,16 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
|
|
|
84
85
|
setup: {
|
|
85
86
|
"@type": "selected",
|
|
86
87
|
"@icon": "suffix",
|
|
87
|
-
"@inTable": !1
|
|
88
|
+
"@inTable": !1,
|
|
89
|
+
"@selected": !0
|
|
88
90
|
}
|
|
89
|
-
}, null, 8, ["text", "data"])
|
|
90
|
-
]
|
|
91
|
-
|
|
92
|
-
])) :
|
|
91
|
+
}, null, 8, ["for", "text", "data"])
|
|
92
|
+
]);
|
|
93
|
+
}), 128))
|
|
94
|
+
])) : A("", !0),
|
|
93
95
|
l(E, {
|
|
94
|
-
modelValue:
|
|
95
|
-
"onUpdate:modelValue": e[2] || (e[2] = (i) =>
|
|
96
|
+
modelValue: c.value,
|
|
97
|
+
"onUpdate:modelValue": e[2] || (e[2] = (i) => c.value = i),
|
|
96
98
|
vocabulary: V,
|
|
97
99
|
name: "projectName",
|
|
98
100
|
label: "Wählen Sie Vorschläge aus der Liste",
|
|
@@ -100,24 +102,24 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
|
|
|
100
102
|
validation: "required",
|
|
101
103
|
"validation-label": "Projektstatus"
|
|
102
104
|
}, null, 8, ["modelValue"]),
|
|
103
|
-
|
|
105
|
+
t("div", q, [
|
|
104
106
|
l(L, {
|
|
105
107
|
"button-text": "Anwendungsbereich hinzufügen",
|
|
106
108
|
size: "medium",
|
|
107
109
|
variant: "tertiary",
|
|
108
110
|
"icon-start": "plus",
|
|
109
|
-
onClick:
|
|
111
|
+
onClick: S
|
|
110
112
|
})
|
|
111
113
|
])
|
|
112
114
|
])
|
|
113
115
|
]),
|
|
114
|
-
|
|
116
|
+
t("section", F, [
|
|
115
117
|
l(B, { "hide-cancel": "" })
|
|
116
118
|
]),
|
|
117
|
-
|
|
119
|
+
t("section", K, [
|
|
118
120
|
l(w, { variant: "default" }, {
|
|
119
121
|
icon: o(() => [
|
|
120
|
-
l(
|
|
122
|
+
l(m(_), {
|
|
121
123
|
size: 32,
|
|
122
124
|
color: "#009fe3"
|
|
123
125
|
})
|
|
@@ -126,18 +128,18 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
|
|
|
126
128
|
g(" Information ", -1)
|
|
127
129
|
])),
|
|
128
130
|
default: o(() => [
|
|
129
|
-
e[6] || (e[6] =
|
|
130
|
-
|
|
131
|
+
e[6] || (e[6] = t("div", { class: "application-information" }, [
|
|
132
|
+
t("p", null, " Ein Projekt beschreibt einen Use Case, der mithilfe eines Digitalen Zwillings umgesetzt wurde – nicht den gesamten Digitalen Zwilling. Ein Use Case kann unterschiedliche kommunale Anwendungsbereiche betreffen, die Sie für Ihr Projekt im Verlauf der Anlage benennen können. ")
|
|
131
133
|
], -1))
|
|
132
134
|
]),
|
|
133
135
|
_: 1,
|
|
134
136
|
__: [6]
|
|
135
137
|
})
|
|
136
138
|
]),
|
|
137
|
-
|
|
139
|
+
t("section", T, [
|
|
138
140
|
l(w, { variant: "default" }, {
|
|
139
141
|
icon: o(() => [
|
|
140
|
-
l(
|
|
142
|
+
l(m(_), {
|
|
141
143
|
size: 32,
|
|
142
144
|
color: "#009fe3"
|
|
143
145
|
})
|
|
@@ -146,8 +148,8 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
|
|
|
146
148
|
g(" Beispiel ", -1)
|
|
147
149
|
])),
|
|
148
150
|
default: o(() => [
|
|
149
|
-
e[8] || (e[8] =
|
|
150
|
-
|
|
151
|
+
e[8] || (e[8] = t("div", { class: "application-information" }, [
|
|
152
|
+
t("p", null, " In Ihrem Projekt „Hochwasserschutzprogramm mit Prognosen“ wird mit Hilfe eines Digitalen Zwillings des lokalen Wassersystems die Hochwasserlage überwacht und vorhergesagt. Dieser Use Case betrifft mehrere Anwendungsbereiche wie Katastrophenschutz, Stadtplanung, Umwelt, Infrastrukturschutz und Bürgerinformation. ")
|
|
151
153
|
], -1))
|
|
152
154
|
]),
|
|
153
155
|
_: 1,
|