@piveau/dpi 0.2.0-alpha.67 → 0.2.0-alpha.71
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/composables/useRuntimeEnv.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js +80 -73
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +39 -39
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +15 -10
- 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 +90 -86
- 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 +51 -49
- 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 +549 -542
- 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 +69 -67
- 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 +152 -145
- 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 -60
- 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 +559 -522
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +69 -65
- package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +29 -29
- package/dist/packages/dpi/src/data-provider-interface/plugins/userConfigShimPlugin.js +2 -3
- package/package.json +5 -1
|
@@ -1,25 +1,26 @@
|
|
|
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 q, ref as p, computed as f, watch as K, toRef as L, createBlock as m, openBlock as r, withCtx as d, createVNode as c, createElementBlock as v, createElementVNode as h, unref as w, isRef as j, Fragment as g, renderList as B, createTextVNode as R, toDisplayString as J, createCommentVNode as D, nextTick as Q } from "vue";
|
|
2
|
+
import { FormKit as I } from "@formkit/vue";
|
|
3
|
+
import { defineHubSearch as X } from "@piveau/sdk-vue";
|
|
4
|
+
import Y from "zod";
|
|
5
|
+
import { useRuntimeEnv as Z } from "../../../../composables/useRuntimeEnv.js";
|
|
6
|
+
import ee from "../../../components/StepActionsSection.vue.js";
|
|
7
|
+
import te from "../ActionCard.vue.js";
|
|
8
|
+
import ne from "../Card.vue.js";
|
|
9
|
+
import oe from "../Chip.vue.js";
|
|
10
|
+
import ie from "../DpiModalBase.vue.js";
|
|
11
|
+
import re from "../SummaryBox.vue.js";
|
|
12
|
+
import ae from "./AreYouSureToSkipCard.vue.js";
|
|
13
|
+
import le from "./ProcessStepBase.vue.js";
|
|
13
14
|
/* empty css */
|
|
14
|
-
import
|
|
15
|
-
import { useProcessStepResources as
|
|
16
|
-
const
|
|
15
|
+
import z from "./SoftwareForm.vue.js";
|
|
16
|
+
import { useProcessStepResources as se } from "./utils.js";
|
|
17
|
+
const ue = {
|
|
17
18
|
key: 0,
|
|
18
19
|
class: "software-step__card-list--empty"
|
|
19
|
-
},
|
|
20
|
+
}, de = {
|
|
20
21
|
key: 1,
|
|
21
22
|
class: "software-step__card-list"
|
|
22
|
-
},
|
|
23
|
+
}, ce = { class: "functionalities" }, fe = { class: "" }, Ie = /* @__PURE__ */ q({
|
|
23
24
|
__name: "SoftwareStep",
|
|
24
25
|
props: {
|
|
25
26
|
stepGroup: {},
|
|
@@ -27,12 +28,13 @@ const ae = {
|
|
|
27
28
|
hideCloseBtn: { type: Boolean },
|
|
28
29
|
title: {}
|
|
29
30
|
},
|
|
30
|
-
setup(
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
setup(C) {
|
|
32
|
+
var k;
|
|
33
|
+
const b = C, a = p(!1), o = p([]), T = Z(), { useResources: E } = X({
|
|
34
|
+
baseUrl: ((k = T.api) == null ? void 0 : k.baseUrl) ?? "https://twin.bydata.de/api/hub/search",
|
|
33
35
|
index: "resource",
|
|
34
36
|
indexDetails: "resources/software",
|
|
35
|
-
schema:
|
|
37
|
+
schema: Y.any()
|
|
36
38
|
}, (e) => {
|
|
37
39
|
var s, u;
|
|
38
40
|
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) || "");
|
|
@@ -41,66 +43,66 @@ const ae = {
|
|
|
41
43
|
id: t,
|
|
42
44
|
name: i
|
|
43
45
|
};
|
|
44
|
-
}),
|
|
46
|
+
}), U = E(f(() => o.value.map((e) => ({
|
|
45
47
|
resourceId: e.id
|
|
46
48
|
})))), S = f(() => o.value.map((e, t) => {
|
|
47
49
|
var n, s;
|
|
48
|
-
const i = (s = (n =
|
|
50
|
+
const i = (s = (n = U.value) == null ? void 0 : n[t]) == null ? void 0 : s.resultEnhanced;
|
|
49
51
|
return {
|
|
50
52
|
id: e.id || (i == null ? void 0 : i.id),
|
|
51
53
|
name: e.id === "--software-in-request--" && !(i != null && i.name) ? "Software in Beantragung" : (i == null ? void 0 : i.name) || e.id,
|
|
52
54
|
functionalities: e.functionalities
|
|
53
55
|
};
|
|
54
|
-
})), l = p(""),
|
|
56
|
+
})), l = p(""), F = f(() => {
|
|
55
57
|
var e;
|
|
56
58
|
return [...((e = o.value.find((t) => t.id === l.value)) == null ? void 0 : e.functionalities) || []];
|
|
57
59
|
}), y = p(0);
|
|
58
|
-
|
|
60
|
+
K(a, (e, t) => {
|
|
59
61
|
!e && t && y.value++;
|
|
60
62
|
});
|
|
61
|
-
function
|
|
63
|
+
function H(e) {
|
|
62
64
|
return o.value.find((t) => t.id === e);
|
|
63
65
|
}
|
|
64
66
|
function _(e) {
|
|
65
67
|
return o.value.findIndex((t) => t.id === e);
|
|
66
68
|
}
|
|
67
|
-
function
|
|
69
|
+
function N(e) {
|
|
68
70
|
const t = _(e);
|
|
69
71
|
t !== -1 && o.value.splice(t, 1);
|
|
70
72
|
}
|
|
71
|
-
async function
|
|
72
|
-
|
|
73
|
+
async function G(e) {
|
|
74
|
+
H(e) && (l.value = e, y.value++, await Q(), a.value = !0);
|
|
73
75
|
}
|
|
74
76
|
function V(e) {
|
|
75
77
|
o.value.push(e), a.value = !1, l.value = "";
|
|
76
78
|
}
|
|
77
|
-
function
|
|
79
|
+
function O(e) {
|
|
78
80
|
const t = _(e.id);
|
|
79
81
|
t !== -1 && (o.value.splice(t, 1), o.value.splice(t, 0, e.software), l.value = "", a.value = !1);
|
|
80
82
|
}
|
|
81
|
-
function
|
|
83
|
+
function P() {
|
|
82
84
|
a.value = !1;
|
|
83
85
|
}
|
|
84
|
-
const
|
|
85
|
-
return (e, t) => (r(), m(
|
|
86
|
+
const $ = f(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), A = f(() => "primary"), M = L(b, "edit"), { count: x, ensureHasOneResource: W } = se(b.stepGroup || "", M);
|
|
87
|
+
return (e, t) => (r(), m(le, {
|
|
86
88
|
title: "Geben Sie Informationen zur verwendeten Software an",
|
|
87
89
|
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
90
|
}, {
|
|
89
91
|
default: d(({ confirm: i }) => [
|
|
90
|
-
c(w(
|
|
92
|
+
c(w(I), {
|
|
91
93
|
modelValue: w(x),
|
|
92
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) =>
|
|
94
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => j(x) ? x.value = n : null),
|
|
93
95
|
sync: "",
|
|
94
96
|
type: "hidden",
|
|
95
97
|
name: "__resourceCount",
|
|
96
98
|
hidden: "",
|
|
97
99
|
"aria-hidden": "",
|
|
98
|
-
"validation-rules": { ensureHasOneResource: w(
|
|
100
|
+
"validation-rules": { ensureHasOneResource: w(W) },
|
|
99
101
|
validation: "+ensureHasOneResource",
|
|
100
102
|
"validation-visibility": "live",
|
|
101
103
|
"validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
|
|
102
104
|
}, null, 8, ["modelValue", "validation-rules"]),
|
|
103
|
-
c(w(
|
|
105
|
+
c(w(I), {
|
|
104
106
|
modelValue: o.value,
|
|
105
107
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => o.value = n),
|
|
106
108
|
name: "selected",
|
|
@@ -108,25 +110,25 @@ const ae = {
|
|
|
108
110
|
hidden: "",
|
|
109
111
|
"aria-hidden": ""
|
|
110
112
|
}, null, 8, ["modelValue"]),
|
|
111
|
-
S.value.length ? (r(), v("section",
|
|
112
|
-
(r(!0), v(
|
|
113
|
+
S.value.length ? (r(), v("section", de, [
|
|
114
|
+
(r(!0), v(g, null, B(S.value, (n, s) => (r(), m(te, {
|
|
113
115
|
key: s,
|
|
114
116
|
spaced: "",
|
|
115
117
|
class: "software-card",
|
|
116
|
-
onEdit: (u) =>
|
|
117
|
-
onDelete: (u) => i({ id: n.id, resourceType: "Software", resource: n.name, callback:
|
|
118
|
+
onEdit: (u) => G(n.id),
|
|
119
|
+
onDelete: (u) => i({ id: n.id, resourceType: "Software", resource: n.name, callback: N })
|
|
118
120
|
}, {
|
|
119
121
|
"sub-title": d(() => t[5] || (t[5] = [
|
|
120
|
-
|
|
122
|
+
R(" Name ", -1)
|
|
121
123
|
])),
|
|
122
124
|
title: d(() => [
|
|
123
|
-
|
|
125
|
+
R(J(n.name), 1)
|
|
124
126
|
]),
|
|
125
127
|
default: d(() => [
|
|
126
|
-
c(
|
|
128
|
+
c(re, { title: "Genutzte Funktionalitäten" }, {
|
|
127
129
|
default: d(() => [
|
|
128
|
-
h("div",
|
|
129
|
-
(r(!0), v(
|
|
130
|
+
h("div", ce, [
|
|
131
|
+
(r(!0), v(g, null, B(n.functionalities, (u) => (r(), m(oe, {
|
|
130
132
|
key: u,
|
|
131
133
|
"no-border": "",
|
|
132
134
|
text: u,
|
|
@@ -140,8 +142,8 @@ const ae = {
|
|
|
140
142
|
]),
|
|
141
143
|
_: 2
|
|
142
144
|
}, 1032, ["onEdit", "onDelete"]))), 128))
|
|
143
|
-
])) : (r(), v("section",
|
|
144
|
-
c(
|
|
145
|
+
])) : (r(), v("section", ue, [
|
|
146
|
+
c(ne, {
|
|
145
147
|
small: "",
|
|
146
148
|
class: "empty-card"
|
|
147
149
|
}, {
|
|
@@ -152,23 +154,23 @@ const ae = {
|
|
|
152
154
|
__: [4]
|
|
153
155
|
})
|
|
154
156
|
])),
|
|
155
|
-
c(
|
|
157
|
+
c(z, {
|
|
156
158
|
exclude: o.value.map((n) => n.id),
|
|
157
159
|
onSubmit: V
|
|
158
160
|
}, null, 8, ["exclude"]),
|
|
159
|
-
h("section",
|
|
160
|
-
c(
|
|
161
|
+
h("section", fe, [
|
|
162
|
+
c(ee, {
|
|
161
163
|
class: "software-step-actions",
|
|
162
|
-
"next-text":
|
|
163
|
-
"next-variant":
|
|
164
|
+
"next-text": $.value,
|
|
165
|
+
"next-variant": A.value,
|
|
164
166
|
"show-detailed-error-summary": ""
|
|
165
167
|
}, null, 8, ["next-text", "next-variant"]),
|
|
166
|
-
S.value.length === 0 ? (r(), m(
|
|
168
|
+
S.value.length === 0 ? (r(), m(ae, {
|
|
167
169
|
key: 0,
|
|
168
170
|
"resource-label": "Software"
|
|
169
171
|
})) : D("", !0)
|
|
170
172
|
]),
|
|
171
|
-
c(
|
|
173
|
+
c(ie, {
|
|
172
174
|
modelValue: a.value,
|
|
173
175
|
"onUpdate:modelValue": t[3] || (t[3] = (n) => a.value = n),
|
|
174
176
|
"hide-close-btn": !0,
|
|
@@ -176,15 +178,15 @@ const ae = {
|
|
|
176
178
|
title: "Software"
|
|
177
179
|
}, {
|
|
178
180
|
default: d(() => [
|
|
179
|
-
l.value ? (r(), m(
|
|
181
|
+
l.value ? (r(), m(z, {
|
|
180
182
|
key: y.value,
|
|
181
183
|
modelValue: l.value,
|
|
182
184
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => l.value = n),
|
|
183
|
-
functionalities:
|
|
185
|
+
functionalities: F.value,
|
|
184
186
|
exclude: o.value.map((n) => n.id),
|
|
185
187
|
onSubmit: V,
|
|
186
|
-
onPatch:
|
|
187
|
-
onClose:
|
|
188
|
+
onPatch: O,
|
|
189
|
+
onClose: P
|
|
188
190
|
}, null, 8, ["modelValue", "functionalities", "exclude"])) : D("", !0)
|
|
189
191
|
]),
|
|
190
192
|
_: 1
|
|
@@ -195,5 +197,5 @@ const ae = {
|
|
|
195
197
|
}
|
|
196
198
|
});
|
|
197
199
|
export {
|
|
198
|
-
|
|
200
|
+
Ie as default
|
|
199
201
|
};
|
|
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0c62bc51"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|