@piveau/dpi 0.2.0-alpha.13 → 0.2.0-alpha.15
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/DataProviderInterface.vue2.js +48 -47
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +46 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +101 -79
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +4 -94
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +128 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
- 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 +64 -52
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +9 -6
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +26 -27
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
- 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 +19 -19
- 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 +38 -39
- 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 +72 -67
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
- 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 +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
- 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 +18 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +35 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
- 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 +190 -156
- 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 +44 -38
- 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 +73 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +4 -4
- 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 +128 -123
- 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 +133 -131
- 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 +50 -45
- 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 +85 -83
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
- 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 +341 -341
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +205 -143
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
- 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 +111 -91
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +24 -19
- package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +137 -94
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +152 -135
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +202 -167
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiContext.js +9 -10
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +89 -65
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +287 -281
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +82 -82
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiUtils.js +18 -9
- package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +95 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +83 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +48 -45
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +405 -409
- package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
- package/dist/packages/dpi/src/utils/schema/schemaProject.js +210 -0
- package/dist/packages/dpi/src/utils/schema/shared.js +23 -0
- package/package.json +5 -5
- package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +0 -281
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, mergeModels as
|
|
1
|
+
import { defineComponent as se, mergeModels as W, useModel as re, unref as i, watch as R, ref as ue, computed as y, createElementBlock as c, openBlock as a, createElementVNode as o, createCommentVNode as g, createVNode as u, Fragment as A, mergeProps as w, isRef as k, withCtx as ae, renderList as ce, withDirectives as de, vModelCheckbox as fe, createBlock as me } from "vue";
|
|
2
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
3
|
import { useForm as T, useFieldArray as pe } from "vee-validate";
|
|
4
4
|
import * as l from "zod";
|
|
@@ -8,15 +8,18 @@ import Se from "../Chip.vue.js";
|
|
|
8
8
|
import be from "../InputField.vue.js";
|
|
9
9
|
import ve from "../ListBox/Listbox.vue.js";
|
|
10
10
|
import ye from "./RichOption.vue.js";
|
|
11
|
-
const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "step-section" },
|
|
11
|
+
const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "step-section" }, ke = { class: "step-section-actions" }, Fe = {
|
|
12
|
+
href: "https://form.typeform.com/to/r9b1mAZL#token=xxxxx&account=xxxxx",
|
|
13
|
+
target: "_blank"
|
|
14
|
+
}, Ve = { class: "step-section" }, Ie = {
|
|
12
15
|
key: 0,
|
|
13
16
|
class: "functionalities-container"
|
|
14
|
-
},
|
|
17
|
+
}, xe = ["id", "value"], Ae = { class: "step-section-actions" }, ze = { class: "step-section-actions" }, Ce = {
|
|
15
18
|
key: 0,
|
|
16
19
|
class: "button-row"
|
|
17
|
-
},
|
|
20
|
+
}, Z = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", je = /* @__PURE__ */ se({
|
|
18
21
|
__name: "SoftwareForm",
|
|
19
|
-
props: /* @__PURE__ */
|
|
22
|
+
props: /* @__PURE__ */ W({
|
|
20
23
|
modelValue: {},
|
|
21
24
|
functionalities: {},
|
|
22
25
|
exclude: { default: () => [] }
|
|
@@ -26,9 +29,9 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
26
29
|
},
|
|
27
30
|
modelModifiers: {}
|
|
28
31
|
}),
|
|
29
|
-
emits: /* @__PURE__ */
|
|
30
|
-
setup(
|
|
31
|
-
const m =
|
|
32
|
+
emits: /* @__PURE__ */ W(["submit", "patch", "close"], ["update:modelValue"]),
|
|
33
|
+
setup(z, { emit: j }) {
|
|
34
|
+
const m = z, F = j, O = re(z, "modelValue"), S = !!m.modelValue, G = i(m.modelValue) || "", K = l.object({
|
|
32
35
|
lat: l.string().min(1, "Geben Sie einen Wert für die Breite ein"),
|
|
33
36
|
lng: l.string().min(1, "Geben Sie einen Wert für die Länge ein")
|
|
34
37
|
}), q = l.array(K), Q = l.object({
|
|
@@ -39,7 +42,7 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
39
42
|
defineField: C,
|
|
40
43
|
handleSubmit: Y,
|
|
41
44
|
resetForm: $,
|
|
42
|
-
errors:
|
|
45
|
+
errors: Be
|
|
43
46
|
} = T({
|
|
44
47
|
validationSchema: P(Q),
|
|
45
48
|
initialValues: {
|
|
@@ -49,18 +52,18 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
49
52
|
},
|
|
50
53
|
name: "softwareForm"
|
|
51
54
|
}), [d, H] = C("id"), [r, J] = C("functionalities"), {
|
|
52
|
-
remove:
|
|
55
|
+
remove: _e,
|
|
53
56
|
push: De,
|
|
54
|
-
fields:
|
|
57
|
+
fields: Le
|
|
55
58
|
} = pe("locations");
|
|
56
59
|
R(d, (n) => {
|
|
57
|
-
|
|
60
|
+
O.value = n || "";
|
|
58
61
|
}, { immediate: !0 });
|
|
59
62
|
const B = ue(null);
|
|
60
63
|
function X(n) {
|
|
61
64
|
B.value = n;
|
|
62
65
|
}
|
|
63
|
-
const p = y(() => !!d.value),
|
|
66
|
+
const p = y(() => !!d.value), _ = y(() => {
|
|
64
67
|
var n;
|
|
65
68
|
return (((n = r.value) == null ? void 0 : n.length) ?? 0) > 0;
|
|
66
69
|
}), ee = y(() => {
|
|
@@ -73,15 +76,15 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
73
76
|
const e = n.functionalitySelect && n.functionalitySelect.trim().length > 0, s = n.functionalityInput && n.functionalityInput.trim().length > 0;
|
|
74
77
|
!e && !s && (t.addIssue({
|
|
75
78
|
code: l.ZodIssueCode.custom,
|
|
76
|
-
message:
|
|
79
|
+
message: Z,
|
|
77
80
|
path: ["functionalitySelect"]
|
|
78
81
|
}), t.addIssue({
|
|
79
82
|
code: l.ZodIssueCode.custom,
|
|
80
|
-
message:
|
|
83
|
+
message: Z,
|
|
81
84
|
path: ["functionalityInput"]
|
|
82
85
|
}));
|
|
83
86
|
}), {
|
|
84
|
-
defineField:
|
|
87
|
+
defineField: D,
|
|
85
88
|
handleSubmit: ne,
|
|
86
89
|
errors: b,
|
|
87
90
|
resetForm: V
|
|
@@ -95,14 +98,14 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
95
98
|
R(d, (n, t) => {
|
|
96
99
|
!!t && !!n && n !== t && (V(), r.value = []);
|
|
97
100
|
});
|
|
98
|
-
const [I, ie] =
|
|
99
|
-
S ?
|
|
101
|
+
const [I, ie] = D("functionalitySelect"), [x, oe] = D("functionalityInput"), L = y(() => Array.from(r.value || [])), E = Y((n) => {
|
|
102
|
+
S ? F("patch", {
|
|
100
103
|
id: G,
|
|
101
104
|
software: {
|
|
102
105
|
id: n.id,
|
|
103
106
|
functionalities: Array.from(r.value || []).filter(Boolean)
|
|
104
107
|
}
|
|
105
|
-
}) :
|
|
108
|
+
}) : F("submit", {
|
|
106
109
|
id: n.id,
|
|
107
110
|
functionalities: Array.from(r.value || []).filter(Boolean)
|
|
108
111
|
}), V(), $();
|
|
@@ -113,13 +116,13 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
113
116
|
});
|
|
114
117
|
return (n, t) => (a(), c("div", ge, [
|
|
115
118
|
o("section", we, [
|
|
116
|
-
S ? g("", !0) : (a(), c(
|
|
119
|
+
S ? g("", !0) : (a(), c(A, { key: 0 }, [
|
|
117
120
|
t[6] || (t[6] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
|
|
118
121
|
t[7] || (t[7] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
|
|
119
122
|
], 64)),
|
|
120
123
|
u(he, w({
|
|
121
124
|
modelValue: i(d),
|
|
122
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
125
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => k(d) ? d.value = e : null)
|
|
123
126
|
}, i(H), {
|
|
124
127
|
"base-url": "https://twin.bydata.de/api/hub/search",
|
|
125
128
|
resource: "software",
|
|
@@ -127,14 +130,14 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
127
130
|
placeholder: "Software...",
|
|
128
131
|
name: "software",
|
|
129
132
|
"setup-fn": (e) => {
|
|
130
|
-
var s, f, v, N, U
|
|
133
|
+
var s, f, v, M, N, U;
|
|
131
134
|
return {
|
|
132
135
|
id: e == null ? void 0 : e.id,
|
|
133
136
|
name: ((s = e == null ? void 0 : e.name) == null ? void 0 : s.de) || ((f = e == null ? void 0 : e.name) == null ? void 0 : f.en),
|
|
134
137
|
functionalities: (e == null ? void 0 : e.functionalities) || [],
|
|
135
138
|
unavailable: m.exclude.includes(e == null ? void 0 : e.id),
|
|
136
|
-
manufacturer: (
|
|
137
|
-
description: ((
|
|
139
|
+
manufacturer: (M = (v = e == null ? void 0 : e.manufacturer) == null ? void 0 : v[0]) == null ? void 0 : M.label,
|
|
140
|
+
description: ((N = e == null ? void 0 : e.description) == null ? void 0 : N.de) || ((U = e == null ? void 0 : e.description) == null ? void 0 : U.en),
|
|
138
141
|
version: e == null ? void 0 : e.version
|
|
139
142
|
};
|
|
140
143
|
},
|
|
@@ -152,34 +155,36 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
152
155
|
]),
|
|
153
156
|
_: 1
|
|
154
157
|
}, 16, ["modelValue", "setup-fn"]),
|
|
155
|
-
S ? g("", !0) : (a(), c(
|
|
158
|
+
S ? g("", !0) : (a(), c(A, { key: 1 }, [
|
|
156
159
|
t[8] || (t[8] = o("h5", null, "oder", -1)),
|
|
157
160
|
t[9] || (t[9] = o("p", null, " Sollte die verwendete Software noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Software in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Software-Datensatz ersetzen. ", -1)),
|
|
158
|
-
o("div",
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
o("div", ke, [
|
|
162
|
+
o("a", Fe, [
|
|
163
|
+
u(h, {
|
|
164
|
+
"button-text": "Zur Softwarebeantragung",
|
|
165
|
+
size: "medium",
|
|
166
|
+
variant: "secondary"
|
|
167
|
+
})
|
|
168
|
+
])
|
|
164
169
|
])
|
|
165
170
|
], 64))
|
|
166
171
|
]),
|
|
167
|
-
o("section",
|
|
172
|
+
o("section", Ve, [
|
|
168
173
|
t[10] || (t[10] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
|
|
169
174
|
t[11] || (t[11] = o("p", null, " Beschreiben Sie, wie Sie die angegebene Software verwendet haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
|
|
170
|
-
L.value.length > 0 ? (a(), c("div",
|
|
171
|
-
(a(!0), c(
|
|
175
|
+
L.value.length > 0 ? (a(), c("div", Ie, [
|
|
176
|
+
(a(!0), c(A, null, ce(L.value, (e, s) => (a(), c("div", {
|
|
172
177
|
key: s,
|
|
173
178
|
class: "functionalities"
|
|
174
179
|
}, [
|
|
175
180
|
de(o("input", w({
|
|
176
181
|
id: e,
|
|
177
|
-
"onUpdate:modelValue": t[1] || (t[1] = (f) =>
|
|
182
|
+
"onUpdate:modelValue": t[1] || (t[1] = (f) => k(r) ? r.value = f : null),
|
|
178
183
|
hidden: "",
|
|
179
184
|
value: e,
|
|
180
185
|
name: "selectedFunctionalities",
|
|
181
186
|
type: "checkbox"
|
|
182
|
-
}, { ref_for: !0 }, i(J)), null, 16,
|
|
187
|
+
}, { ref_for: !0 }, i(J)), null, 16, xe), [
|
|
183
188
|
[fe, i(r)]
|
|
184
189
|
]),
|
|
185
190
|
u(Se, {
|
|
@@ -200,7 +205,7 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
200
205
|
])) : g("", !0),
|
|
201
206
|
u(ve, w({
|
|
202
207
|
modelValue: i(I),
|
|
203
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
208
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => k(I) ? I.value = e : null),
|
|
204
209
|
options: ee.value,
|
|
205
210
|
"error-message": i(b).functionalitySelect,
|
|
206
211
|
label: "Funktionalitäten auswählen",
|
|
@@ -210,7 +215,7 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
210
215
|
t[12] || (t[12] = o("h5", null, " oder ", -1)),
|
|
211
216
|
u(be, w({
|
|
212
217
|
modelValue: i(x),
|
|
213
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) =>
|
|
218
|
+
"onUpdate:modelValue": t[3] || (t[3] = (e) => k(x) ? x.value = e : null),
|
|
214
219
|
"initial-hint-text": !!i(b).functionalityInput,
|
|
215
220
|
error_message: i(b).functionalityInput,
|
|
216
221
|
"show-error": !!i(b).functionalityInput,
|
|
@@ -223,7 +228,7 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
223
228
|
label: "Funktionalitäten nennen",
|
|
224
229
|
placeholder: "Nennen Sie eine Funktionalität"
|
|
225
230
|
}, i(oe)), null, 16, ["modelValue", "initial-hint-text", "error_message", "show-error", "is-disabled"]),
|
|
226
|
-
o("div",
|
|
231
|
+
o("div", Ae, [
|
|
227
232
|
u(h, {
|
|
228
233
|
"button-text": "Funktionalität hinzufügen",
|
|
229
234
|
size: "medium",
|
|
@@ -236,23 +241,23 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
|
|
|
236
241
|
]),
|
|
237
242
|
g("", !0),
|
|
238
243
|
o("section", ze, [
|
|
239
|
-
S ? (a(), c("div",
|
|
244
|
+
S ? (a(), c("div", Ce, [
|
|
240
245
|
u(h, {
|
|
241
246
|
"button-text": "Abbrechen",
|
|
242
247
|
variant: "tertiary",
|
|
243
|
-
onClick: t[5] || (t[5] = (e) =>
|
|
248
|
+
onClick: t[5] || (t[5] = (e) => F("close"))
|
|
244
249
|
}),
|
|
245
250
|
u(h, {
|
|
246
251
|
"button-text": "Speichern",
|
|
247
|
-
disabled: !p.value || !
|
|
248
|
-
onClick: i(
|
|
252
|
+
disabled: !p.value || !_.value,
|
|
253
|
+
onClick: i(E)
|
|
249
254
|
}, null, 8, ["disabled", "onClick"])
|
|
250
255
|
])) : (a(), me(h, {
|
|
251
256
|
key: 1,
|
|
252
257
|
"icon-start": "PlusSquare",
|
|
253
258
|
"button-text": "Software hinzufügen",
|
|
254
|
-
disabled: !p.value || !
|
|
255
|
-
onClick: i(
|
|
259
|
+
disabled: !p.value || !_.value,
|
|
260
|
+
onClick: i(E)
|
|
256
261
|
}, null, 8, ["disabled", "onClick"]))
|
|
257
262
|
])
|
|
258
263
|
]));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SoftwareStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8bdca471"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -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 A, ref as v, computed as m, watch as M, toRef as W, createBlock as f, openBlock as i, withCtx as d, createVNode as c, createElementBlock as S, createElementVNode as h, unref as p, 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 C } from "@formkit/vue";
|
|
3
|
+
import { defineHubSearch as q } from "@piveau/sdk-vue";
|
|
4
|
+
import J from "zod";
|
|
5
|
+
import Q from "../../../components/StepActionsSection.vue.js";
|
|
6
|
+
import X from "../ActionCard.vue.js";
|
|
7
|
+
import Y from "../Card.vue.js";
|
|
8
|
+
import Z from "../Chip.vue.js";
|
|
9
|
+
import ee from "../DpiModalBase.vue.js";
|
|
10
|
+
import te from "../SummaryBox.vue.js";
|
|
11
|
+
import ne from "./AreYouSureToSkipCard.vue.js";
|
|
12
|
+
import oe 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, ensureHasOneResource as ie } 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
|
+
}, ue = { class: "functionalities" }, se = { class: "" }, ge = /* @__PURE__ */ A({
|
|
23
23
|
__name: "SoftwareStep",
|
|
24
24
|
props: {
|
|
25
25
|
stepGroup: {},
|
|
@@ -27,78 +27,79 @@ const le = {
|
|
|
27
27
|
hideCloseBtn: { type: Boolean },
|
|
28
28
|
title: {}
|
|
29
29
|
},
|
|
30
|
-
setup(
|
|
31
|
-
const x =
|
|
30
|
+
setup(R) {
|
|
31
|
+
const x = R, a = v(!1), o = v([]), { useResources: z } = q({
|
|
32
32
|
baseUrl: "https://twin.bydata.de/api/hub/search",
|
|
33
33
|
index: "resource",
|
|
34
34
|
indexDetails: "resources/software",
|
|
35
|
-
schema:
|
|
35
|
+
schema: J.any()
|
|
36
36
|
}, (e) => {
|
|
37
|
-
var
|
|
38
|
-
const t = String((e == null ? void 0 : e.id) || ""),
|
|
37
|
+
var u, s;
|
|
38
|
+
const t = String((e == null ? void 0 : e.id) || ""), r = String(((u = e == null ? void 0 : e.name) == null ? void 0 : u.de) || ((s = e == null ? void 0 : e.name) == null ? void 0 : s.en) || "");
|
|
39
39
|
return {
|
|
40
40
|
...e,
|
|
41
41
|
id: t,
|
|
42
|
-
name:
|
|
42
|
+
name: r
|
|
43
43
|
};
|
|
44
|
-
}),
|
|
44
|
+
}), T = z(m(() => o.value.map((e) => ({
|
|
45
45
|
resourceId: e.id
|
|
46
|
-
})))),
|
|
47
|
-
|
|
46
|
+
})))), b = m(() => o.value.map((e, t) => {
|
|
47
|
+
var n, u;
|
|
48
|
+
const r = (u = (n = T.value) == null ? void 0 : n[t]) == null ? void 0 : u.resultEnhanced;
|
|
48
49
|
return {
|
|
49
|
-
id:
|
|
50
|
-
name: (
|
|
51
|
-
functionalities:
|
|
50
|
+
id: e.id || (r == null ? void 0 : r.id),
|
|
51
|
+
name: (r == null ? void 0 : r.name) || e.id,
|
|
52
|
+
functionalities: e.functionalities
|
|
52
53
|
};
|
|
53
|
-
})
|
|
54
|
+
})), l = v(""), E = m(() => {
|
|
54
55
|
var e;
|
|
55
56
|
return [...((e = o.value.find((t) => t.id === l.value)) == null ? void 0 : e.functionalities) || []];
|
|
56
57
|
}), w = v(0);
|
|
57
|
-
|
|
58
|
+
M(a, (e, t) => {
|
|
58
59
|
!e && t && w.value++;
|
|
59
60
|
});
|
|
60
|
-
function
|
|
61
|
+
function F(e) {
|
|
61
62
|
return o.value.find((t) => t.id === e);
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function _(e) {
|
|
64
65
|
return o.value.findIndex((t) => t.id === e);
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
const t =
|
|
67
|
+
function H(e) {
|
|
68
|
+
const t = _(e);
|
|
68
69
|
t !== -1 && o.value.splice(t, 1);
|
|
69
70
|
}
|
|
70
|
-
async function
|
|
71
|
-
|
|
71
|
+
async function N(e) {
|
|
72
|
+
F(e) && (l.value = e, w.value++, await j(), a.value = !0);
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function V(e) {
|
|
74
75
|
o.value.push(e), a.value = !1, l.value = "";
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
-
const t =
|
|
77
|
+
function U(e) {
|
|
78
|
+
const t = _(e.id);
|
|
78
79
|
t !== -1 && (o.value.splice(t, 1), o.value.splice(t, 0, e.software), l.value = "", a.value = !1);
|
|
79
80
|
}
|
|
80
81
|
function G() {
|
|
81
82
|
a.value = !1;
|
|
82
83
|
}
|
|
83
|
-
const O =
|
|
84
|
-
return (e, t) => (
|
|
84
|
+
const O = m(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), P = m(() => o.value.length > 0 ? "primary" : "secondary"), { count: y, realCount: $ } = re(x.stepGroup || "", W(x.edit));
|
|
85
|
+
return (e, t) => (i(), f(oe, {
|
|
85
86
|
title: "Geben Sie Informationen zur verwendeten Software an",
|
|
86
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."
|
|
87
88
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
|
|
90
|
-
modelValue:
|
|
91
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) =>
|
|
89
|
+
default: d(({ confirm: r }) => [
|
|
90
|
+
c(p(C), {
|
|
91
|
+
modelValue: p(y),
|
|
92
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => K(y) ? y.value = n : null),
|
|
92
93
|
type: "hidden",
|
|
93
94
|
name: "__resourceCount",
|
|
94
95
|
hidden: "",
|
|
95
96
|
"aria-hidden": "",
|
|
96
|
-
"validation-rules": { ensureHasOneResource:
|
|
97
|
+
"validation-rules": { ensureHasOneResource: p(ie) },
|
|
97
98
|
validation: "+ensureHasOneResource",
|
|
98
99
|
"validation-visibility": "live",
|
|
99
100
|
"validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
|
|
100
101
|
}, null, 8, ["modelValue", "validation-rules"]),
|
|
101
|
-
|
|
102
|
+
c(p(C), {
|
|
102
103
|
modelValue: o.value,
|
|
103
104
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => o.value = n),
|
|
104
105
|
name: "selected",
|
|
@@ -106,26 +107,26 @@ const le = {
|
|
|
106
107
|
hidden: "",
|
|
107
108
|
"aria-hidden": ""
|
|
108
109
|
}, null, 8, ["modelValue"]),
|
|
109
|
-
|
|
110
|
-
(
|
|
111
|
-
key:
|
|
110
|
+
b.value.length ? (i(), S("section", le, [
|
|
111
|
+
(i(!0), S(k, null, g(b.value, (n, u) => (i(), f(X, {
|
|
112
|
+
key: u,
|
|
112
113
|
class: "software-card",
|
|
113
|
-
onEdit: (
|
|
114
|
-
onDelete: (
|
|
114
|
+
onEdit: (s) => N(n.id),
|
|
115
|
+
onDelete: (s) => r({ id: n.id, resourceType: "Software", resource: n.name, callback: H })
|
|
115
116
|
}, {
|
|
116
|
-
"sub-title":
|
|
117
|
-
|
|
117
|
+
"sub-title": d(() => t[5] || (t[5] = [
|
|
118
|
+
B(" Name ", -1)
|
|
118
119
|
])),
|
|
119
|
-
title:
|
|
120
|
-
|
|
120
|
+
title: d(() => [
|
|
121
|
+
B(L(n.name), 1)
|
|
121
122
|
]),
|
|
122
|
-
default:
|
|
123
|
-
|
|
124
|
-
default:
|
|
125
|
-
|
|
126
|
-
(
|
|
127
|
-
key:
|
|
128
|
-
text:
|
|
123
|
+
default: d(() => [
|
|
124
|
+
c(te, { title: "Genutzte Funktionalitäten" }, {
|
|
125
|
+
default: d(() => [
|
|
126
|
+
h("div", ue, [
|
|
127
|
+
(i(!0), S(k, null, g(n.functionalities, (s) => (i(), f(Z, {
|
|
128
|
+
key: s,
|
|
129
|
+
text: s,
|
|
129
130
|
data: { "@value": "", URI: "" },
|
|
130
131
|
setup: { "@type": "selected", "@search": !1, "@inTable": !1, "@findability": !0, "@static": !0 }
|
|
131
132
|
}, null, 8, ["text"]))), 128))
|
|
@@ -136,50 +137,51 @@ const le = {
|
|
|
136
137
|
]),
|
|
137
138
|
_: 2
|
|
138
139
|
}, 1032, ["onEdit", "onDelete"]))), 128))
|
|
139
|
-
])) : (
|
|
140
|
-
|
|
140
|
+
])) : (i(), S("section", ae, [
|
|
141
|
+
c(Y, {
|
|
141
142
|
small: "",
|
|
142
143
|
class: "empty-card"
|
|
143
144
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
145
|
+
default: d(() => t[4] || (t[4] = [
|
|
146
|
+
h("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keine Software im Prozessschritt hinterlegt. ", -1)
|
|
146
147
|
])),
|
|
147
148
|
_: 1,
|
|
148
149
|
__: [4]
|
|
149
150
|
})
|
|
150
151
|
])),
|
|
151
|
-
|
|
152
|
+
c(I, {
|
|
152
153
|
exclude: o.value.map((n) => n.id),
|
|
153
|
-
onSubmit:
|
|
154
|
+
onSubmit: V
|
|
154
155
|
}, null, 8, ["exclude"]),
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
h("section", se, [
|
|
157
|
+
c(Q, {
|
|
157
158
|
"next-text": O.value,
|
|
158
|
-
"next-variant": P.value
|
|
159
|
+
"next-variant": P.value,
|
|
160
|
+
"show-detailed-error-summary": ""
|
|
159
161
|
}, null, 8, ["next-text", "next-variant"]),
|
|
160
|
-
|
|
162
|
+
p($) === 0 ? (i(), f(ne, {
|
|
161
163
|
key: 0,
|
|
162
164
|
"resource-label": "Software"
|
|
163
|
-
})) :
|
|
165
|
+
})) : D("", !0)
|
|
164
166
|
]),
|
|
165
|
-
|
|
167
|
+
c(ee, {
|
|
166
168
|
modelValue: a.value,
|
|
167
169
|
"onUpdate:modelValue": t[3] || (t[3] = (n) => a.value = n),
|
|
168
170
|
"hide-close-btn": !0,
|
|
169
171
|
"compact-layout": !0,
|
|
170
172
|
title: "Software"
|
|
171
173
|
}, {
|
|
172
|
-
default:
|
|
173
|
-
l.value ? (
|
|
174
|
+
default: d(() => [
|
|
175
|
+
l.value ? (i(), f(I, {
|
|
174
176
|
key: w.value,
|
|
175
177
|
modelValue: l.value,
|
|
176
178
|
"onUpdate:modelValue": t[2] || (t[2] = (n) => l.value = n),
|
|
177
|
-
functionalities:
|
|
179
|
+
functionalities: E.value,
|
|
178
180
|
exclude: o.value.map((n) => n.id),
|
|
179
|
-
onSubmit:
|
|
180
|
-
onPatch:
|
|
181
|
+
onSubmit: V,
|
|
182
|
+
onPatch: U,
|
|
181
183
|
onClose: G
|
|
182
|
-
}, null, 8, ["modelValue", "functionalities", "exclude"])) :
|
|
184
|
+
}, null, 8, ["modelValue", "functionalities", "exclude"])) : D("", !0)
|
|
183
185
|
]),
|
|
184
186
|
_: 1
|
|
185
187
|
}, 8, ["modelValue"])
|
|
@@ -189,5 +191,5 @@ const le = {
|
|
|
189
191
|
}
|
|
190
192
|
});
|
|
191
193
|
export {
|
|
192
|
-
|
|
194
|
+
ge as default
|
|
193
195
|
};
|
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { useFormKitNodeById as
|
|
2
|
-
import { computed as o, toValue as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
1
|
+
import { useFormKitNodeById as a } from "@formkit/vue";
|
|
2
|
+
import { computed as o, toValue as y } from "vue";
|
|
3
|
+
const g = 999;
|
|
4
|
+
function w(e) {
|
|
5
5
|
if (e != null && !(Array.isArray(e) && e.length === 0) && !(typeof e == "object" && Object.keys(e).length === 0) && !(typeof e == "string" && e.trim() === ""))
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
8
|
+
function A(e, d) {
|
|
9
|
+
const i = a(`${e}/Software`), l = a(`${e}/Datensätze`), f = a(`${e}/Hardware`), n = (t) => Array.isArray(t) ? t.length : 0, s = o(() => {
|
|
10
10
|
var t, r;
|
|
11
|
-
return n((r = (t =
|
|
11
|
+
return n((r = (t = i.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
|
|
12
12
|
}), c = o(() => {
|
|
13
13
|
var t, r;
|
|
14
|
-
return n((r = (t =
|
|
15
|
-
}),
|
|
14
|
+
return n((r = (t = l.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
|
|
15
|
+
}), u = o(() => {
|
|
16
16
|
var t, r;
|
|
17
17
|
return n((r = (t = f.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
|
|
18
18
|
}), v = o({
|
|
19
19
|
get() {
|
|
20
|
-
return !
|
|
20
|
+
return !y(d) ? String(g) : String(s.value + c.value + u.value);
|
|
21
21
|
},
|
|
22
22
|
set() {
|
|
23
23
|
}
|
|
24
|
-
}), S = o(() => s.value + c.value +
|
|
25
|
-
return { count: v, softwareSelected: s, datasetsSelected: c, hardwareSelected:
|
|
24
|
+
}), S = o(() => s.value + c.value + u.value);
|
|
25
|
+
return { count: v, softwareSelected: s, datasetsSelected: c, hardwareSelected: u, realCount: S };
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function N(e) {
|
|
28
|
+
return !0;
|
|
29
29
|
}
|
|
30
30
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
N as ensureHasOneResource,
|
|
32
|
+
w as looseRenderable,
|
|
33
|
+
A as useProcessStepResources
|
|
34
34
|
};
|
|
@@ -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 r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6d00c4cc"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
r as default
|
|
7
7
|
};
|