@piveau/dpi 0.2.0-alpha.40 → 0.2.0-alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +84 -65
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +30 -27
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +18 -13
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +16 -11
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +113 -105
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +45 -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 +103 -103
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js +30 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue2.js +4 -0
- 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 +68 -67
- package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +24 -26
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +15 -19
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +13 -18
- package/dist/packages/dpi/src/utils/twinbyUtils.js +28 -4
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as Ye, mergeModels as ce, useModel as en, unref as l, watch as N, ref as
|
|
1
|
+
import { defineComponent as Ye, mergeModels as ce, useModel as en, unref as l, watch as N, ref as F, computed as b, createElementBlock as m, openBlock as u, createElementVNode as i, createCommentVNode as w, createVNode as r, Fragment as g, mergeProps as E, isRef as Z, withCtx as h, createTextVNode as nn, renderList as B, createBlock as k, withDirectives as tn, vModelCheckbox as ln } from "vue";
|
|
2
2
|
import { PhLightbulb as on } from "@phosphor-icons/vue";
|
|
3
3
|
import { toTypedSchema as me } 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";
|
|
4
4
|
import { useForm as pe, useFieldArray as P } from "vee-validate";
|
|
5
5
|
import * as s from "zod";
|
|
6
|
-
import { generateIsRequiredMsg as
|
|
6
|
+
import { generateIsRequiredMsg as y, generateIsInvalidMsg as fe } from "../../../../utils/twinbyUtils.js";
|
|
7
7
|
import { useTwinbyUser as sn } from "../../../composables/useTwinbyUser.js";
|
|
8
8
|
import rn from "../Autocomplete/AutocompleteVocab.vue.js";
|
|
9
9
|
import p from "../ButtonV3.vue.js";
|
|
10
10
|
import an from "../Card.vue.js";
|
|
11
|
-
import
|
|
11
|
+
import dn from "../Chip.vue.js";
|
|
12
12
|
import V from "../InputField/InputFieldVeeValidate.vue.js";
|
|
13
13
|
import he from "../ListBox/ListboxVeeValidate.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import un from "../TextArea/TextAreaVeeValidate.vue.js";
|
|
15
15
|
import cn from "../TextAreaV3.vue.js";
|
|
16
16
|
import mn from "./FunctionalityForm.vue.js";
|
|
17
|
-
import
|
|
17
|
+
import I from "./ProcessStepInputCard.vue.js";
|
|
18
18
|
import pn from "./RichOption.vue.js";
|
|
19
19
|
const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "step-section" }, vn = { class: "step-section-actions" }, bn = ["href"], wn = { class: "step-section" }, gn = { class: "step-section" }, kn = { class: "step-section step-section--lg" }, yn = { class: "step-section" }, zn = {
|
|
20
20
|
key: 0,
|
|
@@ -22,7 +22,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
22
22
|
}, Sn = { class: "step-section" }, Vn = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "functionalities-container"
|
|
25
|
-
}, Hn = ["id", "value"], Bn = { class: "step-section step-section--lg" }, Pn = { style: { display: "flex", "justify-content": "flex-end" } },
|
|
25
|
+
}, Hn = ["id", "value"], Bn = { class: "step-section step-section--lg" }, Pn = { style: { display: "flex", "justify-content": "flex-end" } }, In = { style: { display: "inline-flex", "justify-content": "flex-end" } }, xn = { class: "step-section-actions" }, Un = { class: "step-section" }, Cn = { class: "step-section-actions" }, $n = { class: "step-section" }, Ln = { class: "step-section-actions" }, Dn = { class: "step-section" }, Fn = { class: "step-section-actions" }, Zn = { class: "step-section-actions" }, An = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "button-row"
|
|
28
28
|
}, A = 500, lt = /* @__PURE__ */ Ye({
|
|
@@ -38,17 +38,17 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
38
38
|
modelModifiers: {}
|
|
39
39
|
}),
|
|
40
40
|
emits: /* @__PURE__ */ ce(["submit", "patch", "close"], ["update:modelValue"]),
|
|
41
|
-
setup(
|
|
41
|
+
setup(O, { emit: ve }) {
|
|
42
42
|
var X, Y, ee, ne, te, ie, le, oe, se, re;
|
|
43
|
-
const c =
|
|
44
|
-
lat: s.string().min(1,
|
|
45
|
-
lng: s.string().min(1,
|
|
43
|
+
const c = O, W = ve, be = en(O, "modelValue"), H = !!c.modelValue, we = l(c.modelValue) || "", ge = s.object({
|
|
44
|
+
lat: s.string().min(1, y("Latitude / Breite")),
|
|
45
|
+
lng: s.string().min(1, y("Longitude / Länge"))
|
|
46
46
|
}), ke = s.array(ge), ye = s.object({
|
|
47
|
-
name: s.string().min(1,
|
|
48
|
-
url: s.string().min(1,
|
|
49
|
-
description: s.string().
|
|
47
|
+
name: s.string().min(1, y("Name")).default(""),
|
|
48
|
+
url: s.string().min(1, y("URL")).url(fe("URL")).default(""),
|
|
49
|
+
description: s.string().default("")
|
|
50
50
|
});
|
|
51
|
-
function
|
|
51
|
+
function T(t) {
|
|
52
52
|
return Array.isArray(t) ? t : t != null ? [t] : [];
|
|
53
53
|
}
|
|
54
54
|
const ze = s.object({
|
|
@@ -57,9 +57,9 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
57
57
|
functionalities: s.array(s.string()).min(1),
|
|
58
58
|
forProperty: s.array(s.string()),
|
|
59
59
|
locations: ke,
|
|
60
|
-
depictions: s.array(s.string().min(1,
|
|
60
|
+
depictions: s.array(s.string().min(1, y("URL")).url(fe("URL"))),
|
|
61
61
|
references: s.array(ye),
|
|
62
|
-
isHostedBy: s.array(s.string().min(1,
|
|
62
|
+
isHostedBy: s.array(s.string().min(1, y("Host-Plattform"))),
|
|
63
63
|
hosts: s.array(s.string())
|
|
64
64
|
}), Se = [
|
|
65
65
|
...[
|
|
@@ -87,30 +87,30 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
87
87
|
locations: ((ne = c.initializeWith) == null ? void 0 : ne.locations) || [],
|
|
88
88
|
depictions: ((te = c.initializeWith) == null ? void 0 : te.depictions) || [],
|
|
89
89
|
references: ((ie = c.initializeWith) == null ? void 0 : ie.references) || [],
|
|
90
|
-
isHostedBy:
|
|
91
|
-
hosts:
|
|
90
|
+
isHostedBy: T((le = c.initializeWith) == null ? void 0 : le.isHostedBy),
|
|
91
|
+
hosts: T((oe = c.initializeWith) == null ? void 0 : oe.hosts)
|
|
92
92
|
},
|
|
93
93
|
name: "hardwareForm"
|
|
94
94
|
}), {
|
|
95
|
-
defineField:
|
|
95
|
+
defineField: x,
|
|
96
96
|
handleSubmit: Ve,
|
|
97
97
|
resetForm: He
|
|
98
|
-
} = v, [z, Be] =
|
|
99
|
-
remove:
|
|
100
|
-
push:
|
|
101
|
-
fields:
|
|
98
|
+
} = v, [z, Be] = x("id"), [S] = x("functionalities"), [f, Pe] = x("forProperty"), [U, Ie] = x("description"), {
|
|
99
|
+
remove: xe,
|
|
100
|
+
push: Ue,
|
|
101
|
+
fields: Ce
|
|
102
102
|
} = P("locations"), {
|
|
103
103
|
remove: $e,
|
|
104
|
-
push:
|
|
105
|
-
fields:
|
|
104
|
+
push: Le,
|
|
105
|
+
fields: De
|
|
106
106
|
} = P("depictions"), {
|
|
107
|
-
remove:
|
|
107
|
+
remove: Fe,
|
|
108
108
|
push: Ze,
|
|
109
109
|
fields: Ae
|
|
110
110
|
} = P("references"), {
|
|
111
111
|
remove: We,
|
|
112
112
|
push: Re,
|
|
113
|
-
fields:
|
|
113
|
+
fields: j
|
|
114
114
|
} = P("isHostedBy"), {
|
|
115
115
|
remove: Wn,
|
|
116
116
|
push: Rn,
|
|
@@ -119,7 +119,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
119
119
|
N(z, (t) => {
|
|
120
120
|
be.value = t || "";
|
|
121
121
|
}, { immediate: !0 });
|
|
122
|
-
const R =
|
|
122
|
+
const R = F(null);
|
|
123
123
|
function _e(t) {
|
|
124
124
|
const n = {
|
|
125
125
|
id: String(t.id || ""),
|
|
@@ -133,16 +133,16 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
133
133
|
};
|
|
134
134
|
R.value = n;
|
|
135
135
|
}
|
|
136
|
-
const a =
|
|
136
|
+
const a = b(() => !!z.value), G = b(() => {
|
|
137
137
|
var t;
|
|
138
138
|
return (((t = S.value) == null ? void 0 : t.length) ?? 0) > 0;
|
|
139
|
-
}), Me =
|
|
139
|
+
}), Me = b(() => {
|
|
140
140
|
var t;
|
|
141
141
|
return ((t = R.value) == null ? void 0 : t.functionalities) ?? [];
|
|
142
|
-
}), Ne =
|
|
142
|
+
}), Ne = b(() => {
|
|
143
143
|
var t;
|
|
144
144
|
return [...((t = R.value) == null ? void 0 : t.forProperty) || []].sort((n, e) => n.localeCompare(e)) ?? [];
|
|
145
|
-
}), K =
|
|
145
|
+
}), K = y("Zweck"), Ee = s.object({
|
|
146
146
|
zweckSelect: s.string().optional(),
|
|
147
147
|
zweckInput: s.string().optional()
|
|
148
148
|
}).superRefine((t, n) => {
|
|
@@ -163,14 +163,14 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
163
163
|
zweckInput: ""
|
|
164
164
|
}
|
|
165
165
|
}), {
|
|
166
|
-
handleSubmit:
|
|
167
|
-
resetForm:
|
|
166
|
+
handleSubmit: Oe,
|
|
167
|
+
resetForm: C
|
|
168
168
|
} = _;
|
|
169
169
|
N(z, (t, n) => {
|
|
170
|
-
!!n && !!t && t !== n && (S.value = [],
|
|
170
|
+
!!n && !!t && t !== n && (S.value = [], C(), f.value = []);
|
|
171
171
|
});
|
|
172
|
-
const M =
|
|
173
|
-
function
|
|
172
|
+
const M = F(""), q = F(""), $ = b(() => f.value && f.value.length > 0), L = F(!!((re = (se = c.initializeWith) == null ? void 0 : se.forProperty) != null && re.length));
|
|
173
|
+
function Te() {
|
|
174
174
|
f.value = [];
|
|
175
175
|
}
|
|
176
176
|
const Q = Ve((t) => {
|
|
@@ -192,9 +192,9 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
192
192
|
H ? W("patch", {
|
|
193
193
|
id: we,
|
|
194
194
|
hardware: n
|
|
195
|
-
}) : W("submit", n),
|
|
195
|
+
}) : W("submit", n), C(), He();
|
|
196
196
|
});
|
|
197
|
-
function
|
|
197
|
+
function je(t) {
|
|
198
198
|
return [
|
|
199
199
|
...t,
|
|
200
200
|
{
|
|
@@ -206,27 +206,27 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
206
206
|
}
|
|
207
207
|
];
|
|
208
208
|
}
|
|
209
|
-
const J =
|
|
209
|
+
const J = Oe((t) => {
|
|
210
210
|
var e, o;
|
|
211
211
|
const n = t.zweckSelect || t.zweckInput;
|
|
212
|
-
n && n.trim().length > 0 && !((e = f.value) != null && e.includes(n)) && ((o = f.value) == null || o.push(n)),
|
|
212
|
+
n && n.trim().length > 0 && !((e = f.value) != null && e.includes(n)) && ((o = f.value) == null || o.push(n)), C();
|
|
213
213
|
});
|
|
214
|
-
function
|
|
215
|
-
|
|
214
|
+
function Ge() {
|
|
215
|
+
C(), L.value = !1;
|
|
216
216
|
}
|
|
217
217
|
N(M, () => J());
|
|
218
|
-
const Ke =
|
|
218
|
+
const Ke = b(() => {
|
|
219
219
|
var t;
|
|
220
|
-
return ((t =
|
|
220
|
+
return ((t = U.value) == null ? void 0 : t.length) || 0;
|
|
221
221
|
});
|
|
222
222
|
function qe(t) {
|
|
223
223
|
var n;
|
|
224
224
|
return ((n = t.value.description) == null ? void 0 : n.length) ?? 0;
|
|
225
225
|
}
|
|
226
|
-
const { authToken: Qe, username: Je } = sn(), Xe =
|
|
227
|
-
return (t, n) => (
|
|
226
|
+
const { authToken: Qe, username: Je } = sn(), Xe = b(() => `https://form.typeform.com/to/ayL37uiV#token=${Qe.value}&account=${Je.value}`);
|
|
227
|
+
return (t, n) => (u(), m("div", fn, [
|
|
228
228
|
i("section", hn, [
|
|
229
|
-
H ?
|
|
229
|
+
H ? w("", !0) : (u(), m(g, { key: 0 }, [
|
|
230
230
|
n[13] || (n[13] = i("h5", null, "Wählen Sie eine bestehende Hardware", -1)),
|
|
231
231
|
n[14] || (n[14] = i("p", null, " Falls die Hardware bereits angelegt wurde, können Sie sie hier auswählen. ", -1))
|
|
232
232
|
], 64)),
|
|
@@ -240,34 +240,34 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
240
240
|
placeholder: "Wählen Sie eine Hardware.",
|
|
241
241
|
name: "hardware",
|
|
242
242
|
"setup-fn": (e) => {
|
|
243
|
-
var o,
|
|
243
|
+
var o, d, D, ae, de, ue;
|
|
244
244
|
return {
|
|
245
245
|
id: e == null ? void 0 : e.id,
|
|
246
|
-
name: ((o = e == null ? void 0 : e.name) == null ? void 0 : o.de) || ((
|
|
246
|
+
name: ((o = e == null ? void 0 : e.name) == null ? void 0 : o.de) || ((d = e == null ? void 0 : e.name) == null ? void 0 : d.en),
|
|
247
247
|
functionalities: (e == null ? void 0 : e.functionalities) || [],
|
|
248
248
|
forProperties: (e == null ? void 0 : e.measured_actuated_properties) || [],
|
|
249
249
|
unavailable: c.exclude.includes(e == null ? void 0 : e.id),
|
|
250
|
-
manufacturer: (ae = (
|
|
251
|
-
description: ((
|
|
250
|
+
manufacturer: (ae = (D = e == null ? void 0 : e.manufacturer) == null ? void 0 : D[0]) == null ? void 0 : ae.label,
|
|
251
|
+
description: ((de = e == null ? void 0 : e.description) == null ? void 0 : de.de) || ((ue = e == null ? void 0 : e.description) == null ? void 0 : ue.en),
|
|
252
252
|
version: e == null ? void 0 : e.version
|
|
253
253
|
};
|
|
254
254
|
},
|
|
255
|
-
"post-process-fn":
|
|
255
|
+
"post-process-fn": je,
|
|
256
256
|
onSelect: _e
|
|
257
257
|
}), {
|
|
258
|
-
option: h(({ option: e, active: o, selected:
|
|
258
|
+
option: h(({ option: e, active: o, selected: d, disabled: D }) => [
|
|
259
259
|
r(pn, {
|
|
260
260
|
name: e.name,
|
|
261
261
|
manufacturer: e.manufacturer,
|
|
262
262
|
description: e.description,
|
|
263
263
|
active: o,
|
|
264
|
-
selected:
|
|
265
|
-
disabled:
|
|
264
|
+
selected: d,
|
|
265
|
+
disabled: D
|
|
266
266
|
}, null, 8, ["name", "manufacturer", "description", "active", "selected", "disabled"])
|
|
267
267
|
]),
|
|
268
268
|
_: 1
|
|
269
269
|
}, 16, ["modelValue", "label", "setup-fn"]),
|
|
270
|
-
H ?
|
|
270
|
+
H ? w("", !0) : (u(), m(g, { key: 1 }, [
|
|
271
271
|
n[15] || (n[15] = i("h5", null, "oder", -1)),
|
|
272
272
|
n[16] || (n[16] = i("p", null, " Sollte die verwendete Hardware 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 „Hardware in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Hardware-Datensatz ersetzen. ", -1)),
|
|
273
273
|
i("div", vn, [
|
|
@@ -298,12 +298,12 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
298
298
|
n[21] || (n[21] = i("h5", null, "Beschreibung der Nutzung (optional)", -1)),
|
|
299
299
|
i("div", kn, [
|
|
300
300
|
r(cn, E({
|
|
301
|
-
modelValue: l(
|
|
302
|
-
"onUpdate:modelValue": n[2] || (n[2] = (e) => Z(
|
|
301
|
+
modelValue: l(U),
|
|
302
|
+
"onUpdate:modelValue": n[2] || (n[2] = (e) => Z(U) ? U.value = e : null),
|
|
303
303
|
label: "",
|
|
304
304
|
placeholder: "Beschreiben Sie in ein paar Sätzen, wie Sie die Hardware eingesetzt haben.",
|
|
305
305
|
"is-disabled": !a.value
|
|
306
|
-
}, l(
|
|
306
|
+
}, l(Ie), {
|
|
307
307
|
max: A,
|
|
308
308
|
validation: "required|length:0,500",
|
|
309
309
|
hint: "true",
|
|
@@ -333,14 +333,14 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
333
333
|
i("section", yn, [
|
|
334
334
|
n[22] || (n[22] = i("h5", null, "Host-Plattform (optional)", -1)),
|
|
335
335
|
n[23] || (n[23] = i("p", null, "Falls die von Ihnen verwendete Hardware Sensoren oder Aktuatoren sind, geben Sie hier die Plattform oder physische Struktur an, welche diese hostet (z.B. Wetterstation, Lichtmast).", -1)),
|
|
336
|
-
(
|
|
336
|
+
(u(!0), m(g, null, B(l(j), (e, o) => (u(), k(I, {
|
|
337
337
|
key: e.key,
|
|
338
|
-
onDelete: (
|
|
338
|
+
onDelete: (d) => l(We)(o)
|
|
339
339
|
}, {
|
|
340
340
|
default: h(() => [
|
|
341
341
|
r(he, {
|
|
342
342
|
modelValue: e.value,
|
|
343
|
-
"onUpdate:modelValue": (
|
|
343
|
+
"onUpdate:modelValue": (d) => e.value = d,
|
|
344
344
|
name: `isHostedBy[${o}]`,
|
|
345
345
|
options: Se,
|
|
346
346
|
label: "Host-Plattform",
|
|
@@ -351,7 +351,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
351
351
|
]),
|
|
352
352
|
_: 2
|
|
353
353
|
}, 1032, ["onDelete"]))), 128)),
|
|
354
|
-
l(
|
|
354
|
+
l(j).length === 0 ? (u(), m("div", zn, [
|
|
355
355
|
r(p, {
|
|
356
356
|
"button-text": "Host-Plattform hinzufügen",
|
|
357
357
|
size: "medium",
|
|
@@ -360,20 +360,20 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
360
360
|
disabled: !a.value,
|
|
361
361
|
onClick: n[3] || (n[3] = (e) => a.value && l(Re)(""))
|
|
362
362
|
}, null, 8, ["disabled"])
|
|
363
|
-
])) :
|
|
363
|
+
])) : w("", !0)
|
|
364
364
|
]),
|
|
365
|
-
|
|
365
|
+
w("", !0),
|
|
366
366
|
i("section", Sn, [
|
|
367
367
|
n[27] || (n[27] = i("h5", null, "Zweck (optional)", -1)),
|
|
368
368
|
n[28] || (n[28] = i("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
|
|
369
|
-
$.value ? (
|
|
370
|
-
(
|
|
369
|
+
$.value ? (u(), m("div", Vn, [
|
|
370
|
+
(u(!0), m(g, null, B(l(f), (e, o) => (u(), m("div", {
|
|
371
371
|
key: `zweck-${o}`,
|
|
372
372
|
class: "functionalities"
|
|
373
373
|
}, [
|
|
374
374
|
tn(i("input", E({
|
|
375
375
|
id: `zweck-${e}`,
|
|
376
|
-
"onUpdate:modelValue": n[5] || (n[5] = (
|
|
376
|
+
"onUpdate:modelValue": n[5] || (n[5] = (d) => Z(f) ? f.value = d : null),
|
|
377
377
|
hidden: "",
|
|
378
378
|
value: e,
|
|
379
379
|
name: "selectedForProperties",
|
|
@@ -381,7 +381,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
381
381
|
}, { ref_for: !0 }, l(Pe)), null, 16, Hn), [
|
|
382
382
|
[ln, l(f)]
|
|
383
383
|
]),
|
|
384
|
-
r(
|
|
384
|
+
r(dn, {
|
|
385
385
|
as: "label",
|
|
386
386
|
for: `zweck-${e}`,
|
|
387
387
|
text: e,
|
|
@@ -396,10 +396,10 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
396
396
|
"select-value": !0
|
|
397
397
|
}, null, 8, ["for", "text", "data"])
|
|
398
398
|
]))), 128))
|
|
399
|
-
])) :
|
|
400
|
-
|
|
399
|
+
])) : w("", !0),
|
|
400
|
+
L.value && !$.value ? (u(), k(I, {
|
|
401
401
|
key: 1,
|
|
402
|
-
onDelete:
|
|
402
|
+
onDelete: Te
|
|
403
403
|
}, {
|
|
404
404
|
actions: h(() => [
|
|
405
405
|
i("div", Bn, [
|
|
@@ -413,13 +413,13 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
413
413
|
onClick: l(J)
|
|
414
414
|
}, null, 8, ["disabled", "onClick"])
|
|
415
415
|
]),
|
|
416
|
-
i("div",
|
|
416
|
+
i("div", In, [
|
|
417
417
|
r(p, {
|
|
418
418
|
"button-text": "Löschen",
|
|
419
419
|
size: "small",
|
|
420
420
|
variant: "tertiary",
|
|
421
421
|
"icon-start": "trash",
|
|
422
|
-
onClick:
|
|
422
|
+
onClick: Ge
|
|
423
423
|
})
|
|
424
424
|
])
|
|
425
425
|
])
|
|
@@ -454,30 +454,30 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
454
454
|
]),
|
|
455
455
|
_: 1,
|
|
456
456
|
__: [26]
|
|
457
|
-
})) :
|
|
458
|
-
i("div",
|
|
459
|
-
|
|
457
|
+
})) : w("", !0),
|
|
458
|
+
i("div", xn, [
|
|
459
|
+
L.value ? w("", !0) : (u(), k(p, {
|
|
460
460
|
key: 0,
|
|
461
461
|
"button-text": "Zweck hinzufügen",
|
|
462
462
|
size: "medium",
|
|
463
463
|
variant: "tertiary",
|
|
464
464
|
"icon-start": "plus",
|
|
465
465
|
disabled: !a.value,
|
|
466
|
-
onClick: n[8] || (n[8] = (e) => a.value && (
|
|
466
|
+
onClick: n[8] || (n[8] = (e) => a.value && (L.value = !0))
|
|
467
467
|
}, null, 8, ["disabled"]))
|
|
468
468
|
])
|
|
469
469
|
]),
|
|
470
|
-
i("section",
|
|
470
|
+
i("section", Un, [
|
|
471
471
|
n[29] || (n[29] = i("h5", null, "Standort (optional)", -1)),
|
|
472
472
|
n[30] || (n[30] = i("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
|
|
473
|
-
(
|
|
473
|
+
(u(!0), m(g, null, B(l(Ce), (e, o) => (u(), k(I, {
|
|
474
474
|
key: e.key,
|
|
475
|
-
onDelete: (
|
|
475
|
+
onDelete: (d) => l(xe)(o)
|
|
476
476
|
}, {
|
|
477
477
|
default: h(() => [
|
|
478
478
|
r(V, {
|
|
479
479
|
modelValue: e.value.lat,
|
|
480
|
-
"onUpdate:modelValue": (
|
|
480
|
+
"onUpdate:modelValue": (d) => e.value.lat = d,
|
|
481
481
|
name: `locations[${o}].lat`,
|
|
482
482
|
"add-on-text": !1,
|
|
483
483
|
"date-picker": !1,
|
|
@@ -491,7 +491,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
491
491
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
492
492
|
r(V, {
|
|
493
493
|
modelValue: e.value.lng,
|
|
494
|
-
"onUpdate:modelValue": (
|
|
494
|
+
"onUpdate:modelValue": (d) => e.value.lng = d,
|
|
495
495
|
name: `locations[${o}].lng`,
|
|
496
496
|
"add-on-text": !1,
|
|
497
497
|
"date-picker": !1,
|
|
@@ -506,28 +506,28 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
506
506
|
]),
|
|
507
507
|
_: 2
|
|
508
508
|
}, 1032, ["onDelete"]))), 128)),
|
|
509
|
-
i("div",
|
|
509
|
+
i("div", Cn, [
|
|
510
510
|
r(p, {
|
|
511
511
|
"button-text": "Standort hinzufügen",
|
|
512
512
|
size: "medium",
|
|
513
513
|
variant: "tertiary",
|
|
514
514
|
"icon-start": "plus",
|
|
515
515
|
disabled: !a.value,
|
|
516
|
-
onClick: n[9] || (n[9] = (e) => a.value && l(
|
|
516
|
+
onClick: n[9] || (n[9] = (e) => a.value && l(Ue)({ lat: "", lng: "" }))
|
|
517
517
|
}, null, 8, ["disabled"])
|
|
518
518
|
])
|
|
519
519
|
]),
|
|
520
520
|
i("section", $n, [
|
|
521
521
|
n[31] || (n[31] = i("h5", null, "Darstellungen (optional)", -1)),
|
|
522
522
|
n[32] || (n[32] = i("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
|
|
523
|
-
(
|
|
523
|
+
(u(!0), m(g, null, B(l(De), (e, o) => (u(), k(I, {
|
|
524
524
|
key: e.key,
|
|
525
|
-
onDelete: (
|
|
525
|
+
onDelete: (d) => l($e)(o)
|
|
526
526
|
}, {
|
|
527
527
|
default: h(() => [
|
|
528
528
|
r(V, {
|
|
529
529
|
modelValue: e.value,
|
|
530
|
-
"onUpdate:modelValue": (
|
|
530
|
+
"onUpdate:modelValue": (d) => e.value = d,
|
|
531
531
|
name: `depictions[${o}]`,
|
|
532
532
|
"add-on-text": !1,
|
|
533
533
|
"date-picker": !1,
|
|
@@ -543,28 +543,28 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
543
543
|
]),
|
|
544
544
|
_: 2
|
|
545
545
|
}, 1032, ["onDelete"]))), 128)),
|
|
546
|
-
i("div",
|
|
546
|
+
i("div", Ln, [
|
|
547
547
|
r(p, {
|
|
548
548
|
"button-text": "Darstellung hinzufügen",
|
|
549
549
|
size: "medium",
|
|
550
550
|
variant: "tertiary",
|
|
551
551
|
"icon-start": "plus",
|
|
552
552
|
disabled: !a.value,
|
|
553
|
-
onClick: n[10] || (n[10] = (e) => a.value && l(
|
|
553
|
+
onClick: n[10] || (n[10] = (e) => a.value && l(Le)(""))
|
|
554
554
|
}, null, 8, ["disabled"])
|
|
555
555
|
])
|
|
556
556
|
]),
|
|
557
|
-
i("section",
|
|
557
|
+
i("section", Dn, [
|
|
558
558
|
n[33] || (n[33] = i("h5", null, "Weiterführende Links (optional)", -1)),
|
|
559
559
|
n[34] || (n[34] = i("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
|
|
560
|
-
(
|
|
560
|
+
(u(!0), m(g, null, B(l(Ae), (e, o) => (u(), k(I, {
|
|
561
561
|
key: e.key,
|
|
562
|
-
onDelete: (
|
|
562
|
+
onDelete: (d) => l(Fe)(o)
|
|
563
563
|
}, {
|
|
564
564
|
default: h(() => [
|
|
565
565
|
r(V, {
|
|
566
566
|
modelValue: e.value.name,
|
|
567
|
-
"onUpdate:modelValue": (
|
|
567
|
+
"onUpdate:modelValue": (d) => e.value.name = d,
|
|
568
568
|
name: `references[${o}].name`,
|
|
569
569
|
"add-on-text": !1,
|
|
570
570
|
"date-picker": !1,
|
|
@@ -578,7 +578,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
578
578
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
579
579
|
r(V, {
|
|
580
580
|
modelValue: e.value.url,
|
|
581
|
-
"onUpdate:modelValue": (
|
|
581
|
+
"onUpdate:modelValue": (d) => e.value.url = d,
|
|
582
582
|
name: `references[${o}].url`,
|
|
583
583
|
"add-on-text": !1,
|
|
584
584
|
"date-picker": !1,
|
|
@@ -591,9 +591,9 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
591
591
|
placeholder: "https://www.url.com",
|
|
592
592
|
form: l(v)
|
|
593
593
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
594
|
-
r(
|
|
594
|
+
r(un, {
|
|
595
595
|
modelValue: e.value.description,
|
|
596
|
-
"onUpdate:modelValue": (
|
|
596
|
+
"onUpdate:modelValue": (d) => e.value.description = d,
|
|
597
597
|
name: `references[${o}].description`,
|
|
598
598
|
label: "Beschreibung (optional)",
|
|
599
599
|
placeholder: "Beschreiben Sie Ihren weiterführenden Link in ein paar Sätzen.",
|
|
@@ -607,7 +607,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
607
607
|
]),
|
|
608
608
|
_: 2
|
|
609
609
|
}, 1032, ["onDelete"]))), 128)),
|
|
610
|
-
i("div",
|
|
610
|
+
i("div", Fn, [
|
|
611
611
|
r(p, {
|
|
612
612
|
"button-text": "Link hinzufügen",
|
|
613
613
|
size: "medium",
|
|
@@ -619,7 +619,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
619
619
|
])
|
|
620
620
|
]),
|
|
621
621
|
i("section", Zn, [
|
|
622
|
-
H ? (
|
|
622
|
+
H ? (u(), m("div", An, [
|
|
623
623
|
r(p, {
|
|
624
624
|
"button-text": "Abbrechen",
|
|
625
625
|
variant: "tertiary",
|
|
@@ -627,14 +627,14 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
|
|
|
627
627
|
}),
|
|
628
628
|
r(p, {
|
|
629
629
|
"button-text": "Speichern",
|
|
630
|
-
disabled: !a.value || !
|
|
630
|
+
disabled: !a.value || !G.value,
|
|
631
631
|
onClick: l(Q)
|
|
632
632
|
}, null, 8, ["disabled", "onClick"])
|
|
633
|
-
])) : (
|
|
633
|
+
])) : (u(), k(p, {
|
|
634
634
|
key: 1,
|
|
635
635
|
"icon-start": "PlusSquare",
|
|
636
636
|
"button-text": "Hardware hinzufügen",
|
|
637
|
-
disabled: !a.value || !
|
|
637
|
+
disabled: !a.value || !G.value,
|
|
638
638
|
onClick: l(Q)
|
|
639
639
|
}, null, 8, ["disabled", "onClick"]))
|
|
640
640
|
])
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { defineComponent as a, createBlock as r, openBlock as o, unref as e } from "vue";
|
|
2
|
+
import { FormKit as l } from "@formkit/vue";
|
|
3
|
+
import { generateIsInvalidMsg as n } from "../../../utils/twinbyUtils.js";
|
|
4
|
+
import m from "./InputField/InputFieldDefinition.js";
|
|
5
|
+
const v = /* @__PURE__ */ a({
|
|
6
|
+
__name: "UrlField",
|
|
7
|
+
props: {
|
|
8
|
+
name: {},
|
|
9
|
+
required: { type: Boolean }
|
|
10
|
+
},
|
|
11
|
+
setup(t) {
|
|
12
|
+
const i = t;
|
|
13
|
+
return (s, p) => (o(), r(e(l), {
|
|
14
|
+
type: e(m),
|
|
15
|
+
name: i.name,
|
|
16
|
+
"text-label": "URL",
|
|
17
|
+
"trailing-text": !1,
|
|
18
|
+
placeholder: "https://www.url.com",
|
|
19
|
+
validation: i.required ? "required|url" : "url",
|
|
20
|
+
"validation-visibility": "submit",
|
|
21
|
+
"validation-label": "URL",
|
|
22
|
+
"validation-messages": {
|
|
23
|
+
url: e(n)("URL")
|
|
24
|
+
}
|
|
25
|
+
}, null, 8, ["type", "name", "validation", "validation-messages"]));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
v as default
|
|
30
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./StepActionsSection.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b1ca11ef"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|