@piveau/dpi 0.2.0-alpha.37 → 0.2.0-alpha.40
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/DataVisualisation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +94 -82
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +66 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +43 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +37 -37
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +126 -0
- 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 +362 -463
- 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 +33 -33
- 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 +110 -211
- 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 +50 -49
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +37 -23
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +1000 -983
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue.js +55 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.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 +73 -63
- package/dist/packages/dpi/src/utils/twinbyUtils.js +8 -0
- package/package.json +23 -17
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import { defineHubSearch as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
1
|
+
import { defineComponent as M, ref as p, computed as f, watch as W, toRef as q, createBlock as m, openBlock as r, withCtx as d, createVNode as c, createElementBlock as v, createElementVNode as h, unref as w, isRef as K, Fragment as k, renderList as g, createTextVNode as B, toDisplayString as L, createCommentVNode as D, nextTick as j } from "vue";
|
|
2
|
+
import { FormKit as R } from "@formkit/vue";
|
|
3
|
+
import { defineHubSearch as J } from "@piveau/sdk-vue";
|
|
4
|
+
import Q from "zod";
|
|
5
|
+
import X from "../../../components/StepActionsSection.vue.js";
|
|
6
|
+
import Y from "../ActionCard.vue.js";
|
|
7
|
+
import Z from "../Card.vue.js";
|
|
8
|
+
import ee from "../Chip.vue.js";
|
|
9
|
+
import te from "../DpiModalBase.vue.js";
|
|
10
|
+
import ne from "../SummaryBox.vue.js";
|
|
11
|
+
import oe from "./AreYouSureToSkipCard.vue.js";
|
|
12
|
+
import ie from "./ProcessStepBase.vue.js";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import
|
|
15
|
-
import { useProcessStepResources as
|
|
16
|
-
const
|
|
14
|
+
import I from "./SoftwareForm.vue.js";
|
|
15
|
+
import { useProcessStepResources as re } from "./utils.js";
|
|
16
|
+
const ae = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "software-step__card-list--empty"
|
|
19
|
-
},
|
|
19
|
+
}, le = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "software-step__card-list"
|
|
22
|
-
},
|
|
22
|
+
}, se = { class: "functionalities" }, ue = { class: "" }, ge = /* @__PURE__ */ M({
|
|
23
23
|
__name: "SoftwareStep",
|
|
24
24
|
props: {
|
|
25
25
|
stepGroup: {},
|
|
@@ -28,34 +28,34 @@ const ie = {
|
|
|
28
28
|
title: {}
|
|
29
29
|
},
|
|
30
30
|
setup(z) {
|
|
31
|
-
const b = z, a = p(!1), o = p([]), { useResources: C } =
|
|
31
|
+
const b = z, a = p(!1), o = p([]), { useResources: C } = J({
|
|
32
32
|
baseUrl: "https://twin.bydata.de/api/hub/search",
|
|
33
33
|
index: "resource",
|
|
34
34
|
indexDetails: "resources/software",
|
|
35
|
-
schema:
|
|
35
|
+
schema: Q.any()
|
|
36
36
|
}, (e) => {
|
|
37
37
|
var s, u;
|
|
38
|
-
const t = String((e == null ? void 0 : e.id) || ""),
|
|
38
|
+
const t = String((e == null ? void 0 : e.id) || ""), i = String(((s = e == null ? void 0 : e.name) == null ? void 0 : s.de) || ((u = e == null ? void 0 : e.name) == null ? void 0 : u.en) || "");
|
|
39
39
|
return {
|
|
40
40
|
...e,
|
|
41
41
|
id: t,
|
|
42
|
-
name:
|
|
42
|
+
name: i
|
|
43
43
|
};
|
|
44
44
|
}), T = C(f(() => o.value.map((e) => ({
|
|
45
45
|
resourceId: e.id
|
|
46
46
|
})))), S = f(() => o.value.map((e, t) => {
|
|
47
47
|
var n, s;
|
|
48
|
-
const
|
|
48
|
+
const i = (s = (n = T.value) == null ? void 0 : n[t]) == null ? void 0 : s.resultEnhanced;
|
|
49
49
|
return {
|
|
50
|
-
id: e.id || (
|
|
51
|
-
name: e.id === "--software-in-request--" && !(
|
|
50
|
+
id: e.id || (i == null ? void 0 : i.id),
|
|
51
|
+
name: e.id === "--software-in-request--" && !(i != null && i.name) ? "Software in Beantragung" : (i == null ? void 0 : i.name) || e.id,
|
|
52
52
|
functionalities: e.functionalities
|
|
53
53
|
};
|
|
54
54
|
})), l = p(""), E = f(() => {
|
|
55
55
|
var e;
|
|
56
56
|
return [...((e = o.value.find((t) => t.id === l.value)) == null ? void 0 : e.functionalities) || []];
|
|
57
57
|
}), y = p(0);
|
|
58
|
-
|
|
58
|
+
W(a, (e, t) => {
|
|
59
59
|
!e && t && y.value++;
|
|
60
60
|
});
|
|
61
61
|
function F(e) {
|
|
@@ -69,7 +69,7 @@ const ie = {
|
|
|
69
69
|
t !== -1 && o.value.splice(t, 1);
|
|
70
70
|
}
|
|
71
71
|
async function N(e) {
|
|
72
|
-
F(e) && (l.value = e, y.value++, await
|
|
72
|
+
F(e) && (l.value = e, y.value++, await j(), a.value = !0);
|
|
73
73
|
}
|
|
74
74
|
function V(e) {
|
|
75
75
|
o.value.push(e), a.value = !1, l.value = "";
|
|
@@ -81,25 +81,26 @@ const ie = {
|
|
|
81
81
|
function G() {
|
|
82
82
|
a.value = !1;
|
|
83
83
|
}
|
|
84
|
-
const O = f(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), P = f(() => "primary"), { count: x } =
|
|
85
|
-
return (e, t) => (
|
|
84
|
+
const O = f(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), P = f(() => "primary"), $ = q(b, "edit"), { count: x, ensureHasOneResource: A } = re(b.stepGroup || "", $);
|
|
85
|
+
return (e, t) => (r(), m(ie, {
|
|
86
86
|
title: "Geben Sie Informationen zur verwendeten Software an",
|
|
87
87
|
subtitle: "Die Software wird zentral von uns verwaltet. Sie können in diesem Schritt auswählen, welche Software Sie verwendet haben. Sobald Sie eine Software zugeordnet haben, geben Sie bitte an, welche Funktionalitäten der Software Sie für diesen Schritt benötigt haben."
|
|
88
88
|
}, {
|
|
89
|
-
default: d(({ confirm:
|
|
90
|
-
c(w(
|
|
89
|
+
default: d(({ confirm: i }) => [
|
|
90
|
+
c(w(R), {
|
|
91
91
|
modelValue: w(x),
|
|
92
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) =>
|
|
92
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => K(x) ? x.value = n : null),
|
|
93
|
+
sync: "",
|
|
93
94
|
type: "hidden",
|
|
94
95
|
name: "__resourceCount",
|
|
95
96
|
hidden: "",
|
|
96
97
|
"aria-hidden": "",
|
|
97
|
-
"validation-rules": { ensureHasOneResource: w(
|
|
98
|
+
"validation-rules": { ensureHasOneResource: w(A) },
|
|
98
99
|
validation: "+ensureHasOneResource",
|
|
99
100
|
"validation-visibility": "live",
|
|
100
101
|
"validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
|
|
101
102
|
}, null, 8, ["modelValue", "validation-rules"]),
|
|
102
|
-
c(w(
|
|
103
|
+
c(w(R), {
|
|
103
104
|
modelValue: o.value,
|
|
104
105
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => o.value = n),
|
|
105
106
|
name: "selected",
|
|
@@ -107,25 +108,25 @@ const ie = {
|
|
|
107
108
|
hidden: "",
|
|
108
109
|
"aria-hidden": ""
|
|
109
110
|
}, null, 8, ["modelValue"]),
|
|
110
|
-
S.value.length ? (
|
|
111
|
-
(
|
|
111
|
+
S.value.length ? (r(), v("section", le, [
|
|
112
|
+
(r(!0), v(k, null, g(S.value, (n, s) => (r(), m(Y, {
|
|
112
113
|
key: s,
|
|
113
114
|
spaced: "",
|
|
114
115
|
class: "software-card",
|
|
115
116
|
onEdit: (u) => N(n.id),
|
|
116
|
-
onDelete: (u) =>
|
|
117
|
+
onDelete: (u) => i({ id: n.id, resourceType: "Software", resource: n.name, callback: H })
|
|
117
118
|
}, {
|
|
118
119
|
"sub-title": d(() => t[5] || (t[5] = [
|
|
119
120
|
B(" Name ", -1)
|
|
120
121
|
])),
|
|
121
122
|
title: d(() => [
|
|
122
|
-
B(
|
|
123
|
+
B(L(n.name), 1)
|
|
123
124
|
]),
|
|
124
125
|
default: d(() => [
|
|
125
|
-
c(
|
|
126
|
+
c(ne, { title: "Genutzte Funktionalitäten" }, {
|
|
126
127
|
default: d(() => [
|
|
127
|
-
h("div",
|
|
128
|
-
(
|
|
128
|
+
h("div", se, [
|
|
129
|
+
(r(!0), v(k, null, g(n.functionalities, (u) => (r(), m(ee, {
|
|
129
130
|
key: u,
|
|
130
131
|
"no-border": "",
|
|
131
132
|
text: u,
|
|
@@ -139,8 +140,8 @@ const ie = {
|
|
|
139
140
|
]),
|
|
140
141
|
_: 2
|
|
141
142
|
}, 1032, ["onEdit", "onDelete"]))), 128))
|
|
142
|
-
])) : (
|
|
143
|
-
c(
|
|
143
|
+
])) : (r(), v("section", ae, [
|
|
144
|
+
c(Z, {
|
|
144
145
|
small: "",
|
|
145
146
|
class: "empty-card"
|
|
146
147
|
}, {
|
|
@@ -151,23 +152,23 @@ const ie = {
|
|
|
151
152
|
__: [4]
|
|
152
153
|
})
|
|
153
154
|
])),
|
|
154
|
-
c(
|
|
155
|
+
c(I, {
|
|
155
156
|
exclude: o.value.map((n) => n.id),
|
|
156
157
|
onSubmit: V
|
|
157
158
|
}, null, 8, ["exclude"]),
|
|
158
|
-
h("section",
|
|
159
|
-
c(
|
|
159
|
+
h("section", ue, [
|
|
160
|
+
c(X, {
|
|
160
161
|
class: "software-step-actions",
|
|
161
162
|
"next-text": O.value,
|
|
162
163
|
"next-variant": P.value,
|
|
163
164
|
"show-detailed-error-summary": ""
|
|
164
165
|
}, null, 8, ["next-text", "next-variant"]),
|
|
165
|
-
S.value.length === 0 ? (
|
|
166
|
+
S.value.length === 0 ? (r(), m(oe, {
|
|
166
167
|
key: 0,
|
|
167
168
|
"resource-label": "Software"
|
|
168
169
|
})) : D("", !0)
|
|
169
170
|
]),
|
|
170
|
-
c(
|
|
171
|
+
c(te, {
|
|
171
172
|
modelValue: a.value,
|
|
172
173
|
"onUpdate:modelValue": t[3] || (t[3] = (n) => a.value = n),
|
|
173
174
|
"hide-close-btn": !0,
|
|
@@ -175,7 +176,7 @@ const ie = {
|
|
|
175
176
|
title: "Software"
|
|
176
177
|
}, {
|
|
177
178
|
default: d(() => [
|
|
178
|
-
l.value ? (
|
|
179
|
+
l.value ? (r(), m(I, {
|
|
179
180
|
key: y.value,
|
|
180
181
|
modelValue: l.value,
|
|
181
182
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => l.value = n),
|
|
@@ -194,5 +195,5 @@ const ie = {
|
|
|
194
195
|
}
|
|
195
196
|
});
|
|
196
197
|
export {
|
|
197
|
-
|
|
198
|
+
ge as default
|
|
198
199
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js
CHANGED
|
@@ -1,34 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import "@formkit/core";
|
|
2
|
+
import "@formkit/vue";
|
|
3
|
+
import { controlledComputed as j, whenever as T } from "@vueuse/core";
|
|
4
|
+
import { ref as u, onMounted as k, computed as v, toValue as I } from "vue";
|
|
5
|
+
import { useFormValues as x } from "../../../composables/useDpiFormValues.js";
|
|
6
|
+
const z = 999;
|
|
7
|
+
function q(e) {
|
|
5
8
|
if (e != null && !(Array.isArray(e) && e.length === 0) && !(typeof e == "object" && Object.keys(e).length === 0) && !(typeof e == "string" && e.trim() === ""))
|
|
6
9
|
return e;
|
|
7
10
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return
|
|
18
|
-
}),
|
|
11
|
+
function E(e, o) {
|
|
12
|
+
const a = u(!1);
|
|
13
|
+
k(() => {
|
|
14
|
+
a.value = !0;
|
|
15
|
+
});
|
|
16
|
+
const { formValues: r } = x(), s = u(0), l = u(0), c = u(0), d = u(0), f = u(0), m = u(0), g = u(0), i = (t) => Array.isArray(t) ? t.length : 0, p = v(() => s.value + l.value + c.value), b = v(() => d.value || 0 + f.value || 0 + m.value || 0 + g.value || 0), V = j(b, () => {
|
|
17
|
+
if (!a.value)
|
|
18
|
+
return "0";
|
|
19
|
+
const t = b.value;
|
|
20
|
+
return String(t);
|
|
21
|
+
}), L = v({
|
|
19
22
|
get() {
|
|
20
|
-
|
|
23
|
+
const t = p.value;
|
|
24
|
+
return a.value ? I(o) ? String(t) : String(z + t) : "0";
|
|
21
25
|
},
|
|
22
26
|
set() {
|
|
23
27
|
}
|
|
24
|
-
})
|
|
25
|
-
|
|
28
|
+
});
|
|
29
|
+
T(r, () => {
|
|
30
|
+
var t, n, N, _, C, w, S, D, H, h, y, A, O, R;
|
|
31
|
+
s.value = i((n = (t = r.value) == null ? void 0 : t[`${e}/Software`]) == null ? void 0 : n.selected), l.value = i((_ = (N = r.value) == null ? void 0 : N[`${e}/Datensätze`]) == null ? void 0 : _.selected), c.value = i((w = (C = r.value) == null ? void 0 : C[`${e}/Hardware`]) == null ? void 0 : w.selected), d.value = Number.parseInt((D = (S = r.value) == null ? void 0 : S["1. Datenerfassung/Hardware"]) == null ? void 0 : D.__resourceCount), f.value = Number.parseInt((h = (H = r.value) == null ? void 0 : H["2. Datenverarbeitung/Hardware"]) == null ? void 0 : h.__resourceCount), m.value = Number.parseInt((A = (y = r.value) == null ? void 0 : y["3. Datensimulation/Hardware"]) == null ? void 0 : A.__resourceCount), g.value = Number.parseInt((R = (O = r.value) == null ? void 0 : O["4. Datenvisualisierung/Hardware"]) == null ? void 0 : R.__resourceCount);
|
|
32
|
+
}, {
|
|
33
|
+
deep: !0,
|
|
34
|
+
immediate: !0
|
|
35
|
+
});
|
|
36
|
+
function $(t) {
|
|
37
|
+
return I(o) ? Number((t == null ? void 0 : t._value) ?? 0) > 0 : !0;
|
|
38
|
+
}
|
|
39
|
+
return { count: L, softwareSelected: s, datasetsSelected: l, hardwareSelected: c, realCount: p, globalResourceCount: V, ensureHasOneResource: $ };
|
|
26
40
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
41
|
+
function J(e) {
|
|
42
|
+
return Number((e == null ? void 0 : e._value) ?? 0) > 0;
|
|
29
43
|
}
|
|
30
44
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
J as ensureHasOneResource,
|
|
46
|
+
q as looseRenderable,
|
|
47
|
+
E as useProcessStepResources
|
|
34
48
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ReviewStep.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-9ffa8a3b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|