@piveau/dpi 0.2.0-alpha.29 → 0.2.0-alpha.30
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/DPIHome.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +19 -19
- 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/Autocomplete/Autocomplete.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +35 -33
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +25 -21
- 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 +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +13 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +16 -15
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +34 -32
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +56 -43
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +56 -54
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +372 -325
- 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 +71 -68
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +45 -36
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/RichOption.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/RichOption.vue2.js +33 -23
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +137 -133
- 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 +62 -59
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +250 -241
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -36
- 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 +61 -57
- package/package.json +1 -1
|
@@ -3,10 +3,10 @@ import { FormKit as b } from "@formkit/vue";
|
|
|
3
3
|
import { PhLightbulb as N, PhExclamationMark as K } from "@phosphor-icons/vue";
|
|
4
4
|
import W from "../../../../stories/components/LinkCard.vue.js";
|
|
5
5
|
import $ from "../../../components/StepActionsSection.vue.js";
|
|
6
|
+
import { dpiStepperKey as I } from "../../../utils/injectionKeys.js";
|
|
6
7
|
import u from "../ButtonV3.vue.js";
|
|
7
8
|
import V from "../Card.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import { dpiStepperKey as R } from "../../../utils/injectionKeys.js";
|
|
9
|
+
import R from "../TextArea/TextAreaDefinition.js";
|
|
10
10
|
const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" }, A = { class: "funny-section" }, T = {
|
|
11
11
|
id: "partners-section",
|
|
12
12
|
class: "funny-section"
|
|
@@ -25,7 +25,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
|
|
|
25
25
|
return ((v = g.value) == null ? void 0 : v.length) || 0;
|
|
26
26
|
});
|
|
27
27
|
F(w, "modelValue");
|
|
28
|
-
const B = P(
|
|
28
|
+
const B = P(I);
|
|
29
29
|
return (v, e) => (s(), C("div", Z, [
|
|
30
30
|
e[9] || (e[9] = t("section", { class: "funny-section" }, [
|
|
31
31
|
t("div", { class: "funny-flex" }, [
|
|
@@ -44,7 +44,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
|
|
|
44
44
|
"onUpdate:modelValue": e[0] || (e[0] = (r) => g.value = r),
|
|
45
45
|
class: "budgetArea",
|
|
46
46
|
label: "Beschreibung",
|
|
47
|
-
type: o(
|
|
47
|
+
type: o(R),
|
|
48
48
|
name: "description",
|
|
49
49
|
"text-label": "Beschreibung",
|
|
50
50
|
placeholder: "Beschreiben Sie kurz Ihr Vorgehen, Ziel und Ergebnis des Prozessschritts.",
|
|
@@ -84,7 +84,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
|
|
|
84
84
|
name: "links",
|
|
85
85
|
dynamic: ""
|
|
86
86
|
}, {
|
|
87
|
-
default: n(({ items: r, node:
|
|
87
|
+
default: n(({ items: r, node: c, value: d }) => [
|
|
88
88
|
(s(!0), C(D, null, M(r, (m, p) => (s(), a(o(b), {
|
|
89
89
|
key: m,
|
|
90
90
|
type: "group",
|
|
@@ -98,7 +98,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
|
|
|
98
98
|
size: "small",
|
|
99
99
|
variant: "tertiary",
|
|
100
100
|
"icon-start": "trash",
|
|
101
|
-
onClick: () =>
|
|
101
|
+
onClick: () => c.input(d.filter((z, l) => l !== p))
|
|
102
102
|
}, null, 8, ["onClick"])
|
|
103
103
|
]),
|
|
104
104
|
_: 2
|
|
@@ -112,7 +112,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
|
|
|
112
112
|
size: "medium",
|
|
113
113
|
variant: "tertiary",
|
|
114
114
|
"icon-start": "plus",
|
|
115
|
-
onClick: (m) =>
|
|
115
|
+
onClick: (m) => c.input(d.concat({}))
|
|
116
116
|
}, null, 8, ["onClick"])
|
|
117
117
|
])
|
|
118
118
|
]),
|
|
@@ -121,13 +121,14 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
|
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
123
|
i($, {
|
|
124
|
+
compact: "",
|
|
124
125
|
"next-text": "Weiter zu Software",
|
|
125
126
|
class: "actions-container"
|
|
126
127
|
}, {
|
|
127
128
|
"prev-and-next": n(({
|
|
128
129
|
hidePrevious: r,
|
|
129
|
-
hideNext:
|
|
130
|
-
previousText:
|
|
130
|
+
hideNext: c,
|
|
131
|
+
previousText: d,
|
|
131
132
|
nextText: m,
|
|
132
133
|
handlePrevious: p,
|
|
133
134
|
handleSubmit: z
|
|
@@ -138,7 +139,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
|
|
|
138
139
|
key: 0,
|
|
139
140
|
variant: "secondary",
|
|
140
141
|
size: "large",
|
|
141
|
-
"button-text":
|
|
142
|
+
"button-text": d,
|
|
142
143
|
"icon-start": "CaretLeft",
|
|
143
144
|
class: "previus-button",
|
|
144
145
|
onClick: p
|
|
@@ -147,16 +148,16 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
|
|
|
147
148
|
key: 1,
|
|
148
149
|
variant: "secondary",
|
|
149
150
|
class: "skip-button",
|
|
151
|
+
size: "large",
|
|
152
|
+
"button-text": "Weiter ohne Datenvisualisierung",
|
|
153
|
+
"icon-end": "CaretRight",
|
|
150
154
|
onClick: e[2] || (e[2] = (l) => {
|
|
151
155
|
var x;
|
|
152
156
|
return (x = o(B)) == null ? void 0 : x.goToStep("Vorschau");
|
|
153
|
-
})
|
|
154
|
-
size: "large",
|
|
155
|
-
"button-text": "Weiter ohne Datenvisualisierung",
|
|
156
|
-
"icon-end": "CaretRight"
|
|
157
|
+
})
|
|
157
158
|
}))
|
|
158
159
|
]),
|
|
159
|
-
|
|
160
|
+
c ? f("", !0) : (s(), a(u, {
|
|
160
161
|
key: 0,
|
|
161
162
|
variant: "primary",
|
|
162
163
|
size: "large",
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DpiModalBase.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import a from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-8d995a5f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import { defineComponent as v, mergeModels as V, useModel as B, computed as k, createBlock as y, openBlock as
|
|
1
|
+
import { defineComponent as v, mergeModels as V, useModel as B, computed as k, createBlock as y, openBlock as r, unref as a, withCtx as i, createVNode as n, createElementVNode as o, createElementBlock as _, createCommentVNode as m, renderSlot as d, toDisplayString as C } from "vue";
|
|
2
2
|
import { TransitionRoot as h, Dialog as b, TransitionChild as c, DialogPanel as M } from "@headlessui/vue";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import R from "./CrossOutButton.vue.js";
|
|
4
|
+
const g = { class: "dpiV3_RapModalContainer" }, $ = { class: "dpiV3_RapModalInner" }, D = { class: "dpiV3_modalHead" }, w = { class: "editModalHeader" }, N = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "dpiV3_closeButtonContainer"
|
|
7
7
|
}, O = { class: "dpiV3_modalBody" }, E = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "dpiV3_interactionWrap"
|
|
10
|
-
},
|
|
10
|
+
}, P = /* @__PURE__ */ v({
|
|
11
11
|
__name: "DpiModalBase",
|
|
12
12
|
props: /* @__PURE__ */ V({
|
|
13
13
|
persistent: { type: Boolean },
|
|
14
14
|
hideCloseBtn: { type: Boolean },
|
|
15
15
|
compactLayout: { type: Boolean },
|
|
16
|
-
title: {}
|
|
16
|
+
title: {},
|
|
17
|
+
initialFocusRef: {}
|
|
17
18
|
}, {
|
|
18
19
|
modelValue: { type: Boolean },
|
|
19
20
|
modelModifiers: {}
|
|
20
21
|
}),
|
|
21
22
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
23
|
+
setup(p) {
|
|
24
|
+
const l = p, u = B(p, "modelValue"), s = k({
|
|
24
25
|
get() {
|
|
25
26
|
return u.value;
|
|
26
27
|
},
|
|
27
28
|
set(e) {
|
|
28
|
-
|
|
29
|
+
l.persistent && !e || (u.value = e);
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
|
-
return (e, t) => (
|
|
32
|
-
show:
|
|
32
|
+
return (e, t) => (r(), y(a(h), {
|
|
33
|
+
show: s.value,
|
|
33
34
|
as: "template",
|
|
34
35
|
unmount: !1
|
|
35
36
|
}, {
|
|
36
|
-
default:
|
|
37
|
-
|
|
37
|
+
default: i(() => [
|
|
38
|
+
n(a(b), {
|
|
38
39
|
style: { position: "relative", "z-index": "10000" },
|
|
39
40
|
unmount: !1,
|
|
40
|
-
|
|
41
|
+
"initial-focus": l.initialFocusRef,
|
|
42
|
+
onClose: t[1] || (t[1] = (f) => s.value = !1)
|
|
41
43
|
}, {
|
|
42
|
-
default:
|
|
43
|
-
|
|
44
|
+
default: i(() => [
|
|
45
|
+
n(a(c), {
|
|
44
46
|
enter: "dpiV3__backdrop-transition--enter",
|
|
45
47
|
leave: "dpiV3__backdrop-transition--leave",
|
|
46
48
|
"enter-from": "dpiV3__backdrop-transition--enter-from",
|
|
@@ -49,14 +51,14 @@ const $ = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalInne
|
|
|
49
51
|
"leave-to": "dpiV3__backdrop-transition--leave-to",
|
|
50
52
|
unmount: !1
|
|
51
53
|
}, {
|
|
52
|
-
default:
|
|
54
|
+
default: i(() => t[2] || (t[2] = [
|
|
53
55
|
o("div", { class: "dpiV3_backdrop" }, null, -1)
|
|
54
56
|
])),
|
|
55
57
|
_: 1,
|
|
56
58
|
__: [2]
|
|
57
59
|
}),
|
|
58
|
-
o("div",
|
|
59
|
-
|
|
60
|
+
o("div", g, [
|
|
61
|
+
n(a(c), {
|
|
60
62
|
enter: "dpiV3__modal-transition--enter",
|
|
61
63
|
leave: "dpiV3__modal-transition--leave",
|
|
62
64
|
"enter-from": "dpiV3__modal-transition--enter-from",
|
|
@@ -65,28 +67,28 @@ const $ = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalInne
|
|
|
65
67
|
"leave-to": "dpiV3__modal-transition--leave-to",
|
|
66
68
|
unmount: !1
|
|
67
69
|
}, {
|
|
68
|
-
default:
|
|
69
|
-
|
|
70
|
-
default:
|
|
71
|
-
o("div",
|
|
72
|
-
o("div",
|
|
73
|
-
|
|
70
|
+
default: i(() => [
|
|
71
|
+
n(a(M), { class: "dpiV3_RapModalOuter" }, {
|
|
72
|
+
default: i(() => [
|
|
73
|
+
o("div", $, [
|
|
74
|
+
o("div", D, [
|
|
75
|
+
d(e.$slots, "header", {}, () => [
|
|
74
76
|
o("h4", w, C(e.title) + " bearbeiten ", 1)
|
|
75
77
|
], !0),
|
|
76
|
-
!
|
|
77
|
-
|
|
78
|
+
!l.persistent && !e.hideCloseBtn ? (r(), _("div", N, [
|
|
79
|
+
n(R, {
|
|
78
80
|
class: "dpiV3_closeButton",
|
|
79
81
|
type: "default",
|
|
80
|
-
onClick: t[0] || (t[0] = (f) =>
|
|
82
|
+
onClick: t[0] || (t[0] = (f) => s.value = !1)
|
|
81
83
|
})
|
|
82
84
|
])) : m("", !0)
|
|
83
85
|
]),
|
|
84
86
|
o("div", O, [
|
|
85
|
-
|
|
87
|
+
d(e.$slots, "default", {}, void 0, !0)
|
|
86
88
|
])
|
|
87
89
|
]),
|
|
88
|
-
e.compactLayout ? m("", !0) : (
|
|
89
|
-
|
|
90
|
+
e.compactLayout ? m("", !0) : (r(), _("div", E, [
|
|
91
|
+
d(e.$slots, "footer", {}, void 0, !0)
|
|
90
92
|
]))
|
|
91
93
|
]),
|
|
92
94
|
_: 3
|
|
@@ -97,12 +99,12 @@ const $ = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalInne
|
|
|
97
99
|
])
|
|
98
100
|
]),
|
|
99
101
|
_: 3
|
|
100
|
-
})
|
|
102
|
+
}, 8, ["initial-focus"])
|
|
101
103
|
]),
|
|
102
104
|
_: 3
|
|
103
105
|
}, 8, ["show"]));
|
|
104
106
|
}
|
|
105
107
|
});
|
|
106
108
|
export {
|
|
107
|
-
|
|
109
|
+
P as default
|
|
108
110
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./DatasetForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8dca9b13"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,85 +1,98 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { toTypedSchema as
|
|
3
|
-
import { useForm as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { defineComponent as B, watch as R, computed as a, createElementBlock as j, openBlock as A, createElementVNode as r, createVNode as l, mergeProps as C, unref as D, isRef as E, withCtx as v, toDisplayString as N } from "vue";
|
|
2
|
+
import { toTypedSchema as P } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
|
|
3
|
+
import { useForm as W } from "vee-validate";
|
|
4
|
+
import { useRouter as H } from "vue-router";
|
|
5
|
+
import * as g from "zod";
|
|
6
|
+
import K from "../Autocomplete/AutocompleteVocab.vue.js";
|
|
7
|
+
import L from "../ButtonV3.vue.js";
|
|
8
|
+
import O from "./RichOption.vue.js";
|
|
9
|
+
const T = { class: "dpi-project-process-step V3-typography" }, U = { class: "step-section" }, Z = { class: "step-section-actions" }, q = ["href"], ee = /* @__PURE__ */ B({
|
|
10
10
|
__name: "DatasetForm",
|
|
11
11
|
props: {
|
|
12
12
|
exclude: { default: () => [] }
|
|
13
13
|
},
|
|
14
14
|
emits: ["submit"],
|
|
15
|
-
setup(
|
|
16
|
-
const z =
|
|
17
|
-
validationSchema:
|
|
15
|
+
setup(S, { emit: y }) {
|
|
16
|
+
const z = S, V = y, w = g.object({ id: g.string() }), { defineField: x } = W({
|
|
17
|
+
validationSchema: P(w),
|
|
18
18
|
initialValues: { id: "" },
|
|
19
19
|
name: "datasetForm"
|
|
20
|
-
}), [
|
|
21
|
-
|
|
20
|
+
}), [s, F] = x("id");
|
|
21
|
+
R(s, (m) => {
|
|
22
22
|
const n = String(m || "").trim();
|
|
23
|
-
n &&
|
|
23
|
+
n && (V("submit", { id: n }), s.value = void 0);
|
|
24
24
|
});
|
|
25
|
-
const
|
|
26
|
-
() =>
|
|
25
|
+
const _ = H(), k = a(
|
|
26
|
+
() => _.resolve({ name: "DataProviderInterface-Input", params: { property: "datasets" } }).href
|
|
27
27
|
);
|
|
28
|
-
return (m, n) => (
|
|
29
|
-
|
|
30
|
-
n[1] || (n[1] =
|
|
31
|
-
n[2] || (n[2] =
|
|
32
|
-
l(
|
|
33
|
-
modelValue:
|
|
34
|
-
"onUpdate:modelValue": n[0] || (n[0] = (e) =>
|
|
35
|
-
},
|
|
28
|
+
return (m, n) => (A(), j("div", T, [
|
|
29
|
+
r("section", U, [
|
|
30
|
+
n[1] || (n[1] = r("h5", null, "Wählen Sie einen bestehenden Datensatz", -1)),
|
|
31
|
+
n[2] || (n[2] = r("p", null, "Falls der Datensatz schon in unserem System existiert, können Sie ihn hier auswählen.", -1)),
|
|
32
|
+
l(K, C({
|
|
33
|
+
modelValue: D(s),
|
|
34
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => E(s) ? s.value = e : null)
|
|
35
|
+
}, D(F), {
|
|
36
36
|
"base-url": "https://twin.bydata.de/api/hub/search",
|
|
37
37
|
resource: "dataset",
|
|
38
38
|
label: "",
|
|
39
39
|
placeholder: "Wählen Sie einen Datensatz.",
|
|
40
40
|
name: "dataset",
|
|
41
41
|
"setup-fn": (e) => {
|
|
42
|
-
var
|
|
42
|
+
var i, o, u, p, c, f, h, b, d;
|
|
43
|
+
let t = (e == null ? void 0 : e.modified) || (e == null ? void 0 : e.issued);
|
|
44
|
+
try {
|
|
45
|
+
t = t ? new Date(t).toLocaleDateString() : "";
|
|
46
|
+
} catch (I) {
|
|
47
|
+
console.error(I), t = "";
|
|
48
|
+
}
|
|
43
49
|
return {
|
|
44
50
|
id: e == null ? void 0 : e.id,
|
|
45
|
-
name: ((
|
|
46
|
-
description: ((
|
|
47
|
-
manufacturer: ((
|
|
48
|
-
unavailable: z.exclude.includes(e == null ? void 0 : e.id)
|
|
51
|
+
name: ((i = e == null ? void 0 : e.title) == null ? void 0 : i.de) || ((o = e == null ? void 0 : e.title) == null ? void 0 : o.en) || (e == null ? void 0 : e.id),
|
|
52
|
+
description: ((u = e == null ? void 0 : e.description) == null ? void 0 : u.de) || ((p = e == null ? void 0 : e.description) == null ? void 0 : p.en),
|
|
53
|
+
manufacturer: ((f = (c = e == null ? void 0 : e.publisher) == null ? void 0 : c.name) == null ? void 0 : f.de) || ((b = (h = e == null ? void 0 : e.publisher) == null ? void 0 : h.name) == null ? void 0 : b.en) || ((d = e == null ? void 0 : e.publisher) == null ? void 0 : d.name),
|
|
54
|
+
unavailable: z.exclude.includes(e == null ? void 0 : e.id),
|
|
55
|
+
date: t
|
|
49
56
|
};
|
|
50
57
|
}
|
|
51
58
|
}), {
|
|
52
|
-
option:
|
|
53
|
-
l(
|
|
59
|
+
option: v(({ option: e, active: t, selected: i, disabled: o }) => [
|
|
60
|
+
l(O, {
|
|
54
61
|
name: e.name,
|
|
55
62
|
manufacturer: e.manufacturer,
|
|
56
63
|
description: e.description,
|
|
57
|
-
active:
|
|
64
|
+
active: t,
|
|
58
65
|
selected: i,
|
|
59
|
-
disabled: o
|
|
60
|
-
|
|
66
|
+
disabled: o,
|
|
67
|
+
date: e.date
|
|
68
|
+
}, {
|
|
69
|
+
meta: v(() => [
|
|
70
|
+
r("p", null, N(e.manufacturer), 1)
|
|
71
|
+
]),
|
|
72
|
+
_: 2
|
|
73
|
+
}, 1032, ["name", "manufacturer", "description", "active", "selected", "disabled", "date"])
|
|
61
74
|
]),
|
|
62
75
|
_: 1
|
|
63
76
|
}, 16, ["modelValue", "setup-fn"]),
|
|
64
|
-
n[3] || (n[3] =
|
|
65
|
-
n[4] || (n[4] =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
href:
|
|
77
|
+
n[3] || (n[3] = r("h5", null, "oder", -1)),
|
|
78
|
+
n[4] || (n[4] = r("p", null, " Sollte der verwendete Datensatz noch nicht im Katalog verfügbar sein, legen Sie einen neuen Datensatz an. Der Datensatz kann zugeordnet werden, sobald er veröffentlicht ist. ", -1)),
|
|
79
|
+
r("div", Z, [
|
|
80
|
+
r("a", {
|
|
81
|
+
href: k.value,
|
|
69
82
|
target: "_blank",
|
|
70
83
|
rel: "noopener noreferrer"
|
|
71
84
|
}, [
|
|
72
|
-
l(
|
|
85
|
+
l(L, {
|
|
73
86
|
"button-text": "Zur Datensatzanlage",
|
|
74
87
|
size: "medium",
|
|
75
88
|
variant: "secondary"
|
|
76
89
|
})
|
|
77
|
-
], 8,
|
|
90
|
+
], 8, q)
|
|
78
91
|
])
|
|
79
92
|
])
|
|
80
93
|
]));
|
|
81
94
|
}
|
|
82
95
|
});
|
|
83
96
|
export {
|
|
84
|
-
|
|
97
|
+
ee as default
|
|
85
98
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./DatasetStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-af6c4f5f"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, ref as H, computed as d, toRef as M, createBlock as l, openBlock as r, withCtx as i, createVNode as o, createElementBlock as v, createElementVNode as D, unref as u, isRef as N, Fragment as T, renderList as $, createCommentVNode as h, createTextVNode as m, toDisplayString as _ } from "vue";
|
|
2
2
|
import { FormKit as S } from "@formkit/vue";
|
|
3
|
-
import { schemaDataset as
|
|
4
|
-
import { defineHubSearch as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
3
|
+
import { schemaDataset as G } from "@piveau/sdk-core";
|
|
4
|
+
import { defineHubSearch as O, dcatApDataset as E } from "@piveau/sdk-vue";
|
|
5
|
+
import F from "../../../components/StepActionsSection.vue.js";
|
|
6
|
+
import P from "../ActionCard.vue.js";
|
|
7
|
+
import U from "../Card.vue.js";
|
|
8
|
+
import x from "../SummaryBox.vue.js";
|
|
9
|
+
import W from "./AreYouSureToSkipCard.vue.js";
|
|
10
|
+
import L from "./DatasetForm.vue.js";
|
|
11
|
+
import K from "./ProcessStepBase.vue.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import { useProcessStepResources as
|
|
14
|
-
const
|
|
13
|
+
import { useProcessStepResources as j, ensureHasOneResource as q } from "./utils.js";
|
|
14
|
+
const J = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "software-step__card-list--empty"
|
|
17
|
-
},
|
|
17
|
+
}, Q = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "software-step__card-list"
|
|
20
|
-
},
|
|
20
|
+
}, X = { class: "step-section step-section--lg" }, Y = { class: "" }, ce = /* @__PURE__ */ C({
|
|
21
21
|
__name: "DatasetStep",
|
|
22
22
|
props: {
|
|
23
23
|
stepGroup: {},
|
|
24
24
|
edit: { type: Boolean }
|
|
25
25
|
},
|
|
26
26
|
setup(b) {
|
|
27
|
-
const
|
|
27
|
+
const y = b, s = H([]), { useResources: k } = O({
|
|
28
28
|
baseUrl: "https://twin.bydata.de/api/hub/search",
|
|
29
29
|
index: "dataset",
|
|
30
30
|
indexDetails: "datasets",
|
|
31
|
-
schema:
|
|
31
|
+
schema: G
|
|
32
32
|
}, (a, t) => {
|
|
33
|
-
const { setup: e } =
|
|
33
|
+
const { setup: e } = E({});
|
|
34
34
|
return e(a, {
|
|
35
35
|
...t,
|
|
36
36
|
currentLocale: "de"
|
|
37
37
|
});
|
|
38
|
-
}), V = k(
|
|
38
|
+
}), V = k(d(() => s.value.map((a) => ({
|
|
39
39
|
resourceId: a.id
|
|
40
|
-
})))),
|
|
40
|
+
})))), c = d(() => s.value.map((a, t) => {
|
|
41
41
|
var z;
|
|
42
|
-
const e = (z = V.value[t]) == null ? void 0 : z.resultEnhanced, n = e == null ? void 0 : e.getPublisher,
|
|
42
|
+
const e = (z = V.value[t]) == null ? void 0 : z.resultEnhanced, n = e == null ? void 0 : e.getPublisher, f = e == null ? void 0 : e.getModified, g = `${n == null ? void 0 : n.name}, ${f}`;
|
|
43
43
|
return {
|
|
44
44
|
// The ones that come from API
|
|
45
45
|
id: (a == null ? void 0 : a.id) || (e == null ? void 0 : e.getId),
|
|
@@ -49,46 +49,47 @@ const Q = {
|
|
|
49
49
|
};
|
|
50
50
|
}));
|
|
51
51
|
function w(a) {
|
|
52
|
-
return
|
|
52
|
+
return s.value.findIndex((t) => t.id === a);
|
|
53
53
|
}
|
|
54
54
|
function R(a) {
|
|
55
55
|
const t = w(a);
|
|
56
|
-
t !== -1 &&
|
|
56
|
+
t !== -1 && s.value.splice(t, 1);
|
|
57
57
|
}
|
|
58
58
|
function B(a) {
|
|
59
|
-
|
|
59
|
+
s.value.push(a);
|
|
60
60
|
}
|
|
61
|
-
const { count:
|
|
62
|
-
return (a, t) => (
|
|
61
|
+
const { count: p } = j(y.stepGroup || "", M(y.edit)), I = d(() => s.value.length > 0 ? "Weiter" : "Weiter ohne Datensätze"), A = d(() => "primary");
|
|
62
|
+
return (a, t) => (r(), l(K, {
|
|
63
63
|
title: "Geben Sie Informationen zu verwendeten Datensätzen an",
|
|
64
64
|
subtitle: "Geben Sie an, welche Datensätze Sie für diesen Prozessschritt verwendet haben. Sie können entweder einen bestehenden Datensatz auswählen oder einen Datensatz neu anlegen. Wenn Sie einen Datensatz neu anlegen, haben Sie die Möglichkeit die Sichtbarkeit des Datensatzes einzuschränken.",
|
|
65
65
|
"remove-dialog-title": "Verwendeten Datensatz löschen?",
|
|
66
66
|
"remove-dialog-pre-text": "Möchten Sie den verwendeten Datensatz"
|
|
67
67
|
}, {
|
|
68
68
|
default: i(({ confirm: e }) => [
|
|
69
|
-
o(
|
|
70
|
-
modelValue:
|
|
71
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) =>
|
|
69
|
+
o(u(S), {
|
|
70
|
+
modelValue: u(p),
|
|
71
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => N(p) ? p.value = n : null),
|
|
72
72
|
type: "hidden",
|
|
73
73
|
name: "__resourceCount",
|
|
74
74
|
hidden: "",
|
|
75
75
|
"aria-hidden": "",
|
|
76
|
-
"validation-rules": { ensureHasOneResource:
|
|
76
|
+
"validation-rules": { ensureHasOneResource: u(q) },
|
|
77
77
|
validation: "+ensureHasOneResource",
|
|
78
78
|
"validation-visibility": "live",
|
|
79
79
|
"validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
|
|
80
80
|
}, null, 8, ["modelValue", "validation-rules"]),
|
|
81
|
-
o(
|
|
82
|
-
modelValue:
|
|
83
|
-
"onUpdate:modelValue": t[1] || (t[1] = (n) =>
|
|
81
|
+
o(u(S), {
|
|
82
|
+
modelValue: s.value,
|
|
83
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => s.value = n),
|
|
84
84
|
name: "selected",
|
|
85
85
|
type: "list",
|
|
86
86
|
hidden: "",
|
|
87
87
|
"aria-hidden": ""
|
|
88
88
|
}, null, 8, ["modelValue"]),
|
|
89
|
-
|
|
90
|
-
(
|
|
91
|
-
key:
|
|
89
|
+
c.value.length ? (r(), v("section", Q, [
|
|
90
|
+
(r(!0), v(T, null, $(c.value, (n, f) => (r(), l(P, {
|
|
91
|
+
key: f,
|
|
92
|
+
spaced: "",
|
|
92
93
|
class: "software-card",
|
|
93
94
|
"no-edit": !0,
|
|
94
95
|
onDelete: (g) => e({
|
|
@@ -102,61 +103,62 @@ const Q = {
|
|
|
102
103
|
m(" Datensatz ", -1)
|
|
103
104
|
])),
|
|
104
105
|
default: i(() => [
|
|
105
|
-
|
|
106
|
-
o(
|
|
106
|
+
D("div", X, [
|
|
107
|
+
o(x, { title: "Name" }, {
|
|
107
108
|
default: i(() => [
|
|
108
|
-
m(
|
|
109
|
+
m(_(n.name), 1)
|
|
109
110
|
]),
|
|
110
111
|
_: 2
|
|
111
112
|
}, 1024),
|
|
112
|
-
n.manufacturer ? (
|
|
113
|
+
n.manufacturer ? (r(), l(x, {
|
|
113
114
|
key: 0,
|
|
114
115
|
title: "Datenbereitsteller, Aktualisiert"
|
|
115
116
|
}, {
|
|
116
117
|
default: i(() => [
|
|
117
|
-
m(
|
|
118
|
+
m(_(n.manufacturer), 1)
|
|
118
119
|
]),
|
|
119
120
|
_: 2
|
|
120
|
-
}, 1024)) :
|
|
121
|
-
n.description ? (
|
|
121
|
+
}, 1024)) : h("", !0),
|
|
122
|
+
n.description ? (r(), l(x, {
|
|
122
123
|
key: 1,
|
|
123
124
|
title: "Beschreibung"
|
|
124
125
|
}, {
|
|
125
126
|
default: i(() => [
|
|
126
|
-
m(
|
|
127
|
+
m(_(n.description), 1)
|
|
127
128
|
]),
|
|
128
129
|
_: 2
|
|
129
|
-
}, 1024)) :
|
|
130
|
+
}, 1024)) : h("", !0)
|
|
130
131
|
])
|
|
131
132
|
]),
|
|
132
133
|
_: 2
|
|
133
134
|
}, 1032, ["onDelete"]))), 128))
|
|
134
|
-
])) : (
|
|
135
|
-
o(
|
|
135
|
+
])) : (r(), v("section", J, [
|
|
136
|
+
o(U, {
|
|
136
137
|
small: "",
|
|
137
138
|
class: "empty-card"
|
|
138
139
|
}, {
|
|
139
140
|
default: i(() => t[2] || (t[2] = [
|
|
140
|
-
|
|
141
|
+
D("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keinen Datensatz im Prozessschritt hinterlegt. ", -1)
|
|
141
142
|
])),
|
|
142
143
|
_: 1,
|
|
143
144
|
__: [2]
|
|
144
145
|
})
|
|
145
146
|
])),
|
|
146
|
-
o(
|
|
147
|
-
exclude:
|
|
147
|
+
o(L, {
|
|
148
|
+
exclude: s.value.map((n) => n.id),
|
|
148
149
|
onSubmit: B
|
|
149
150
|
}, null, 8, ["exclude"]),
|
|
150
|
-
|
|
151
|
-
o(
|
|
151
|
+
D("section", Y, [
|
|
152
|
+
o(F, {
|
|
153
|
+
class: "software-step-actions",
|
|
152
154
|
"next-text": I.value,
|
|
153
155
|
"next-variant": A.value,
|
|
154
156
|
"show-detailed-error-summary": ""
|
|
155
157
|
}, null, 8, ["next-text", "next-variant"]),
|
|
156
|
-
|
|
158
|
+
c.value.length === 0 ? (r(), l(W, {
|
|
157
159
|
key: 0,
|
|
158
160
|
"resource-label": "Datensätze"
|
|
159
|
-
})) :
|
|
161
|
+
})) : h("", !0)
|
|
160
162
|
])
|
|
161
163
|
]),
|
|
162
164
|
_: 1
|
|
@@ -164,5 +166,5 @@ const Q = {
|
|
|
164
166
|
}
|
|
165
167
|
});
|
|
166
168
|
export {
|
|
167
|
-
|
|
169
|
+
ce as default
|
|
168
170
|
};
|