@piveau/dpi 0.2.0-alpha.17 → 0.2.0-alpha.18
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/OptionalDataStep/OptionalDataStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +140 -167
- 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 +463 -487
- 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 +5 -4
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +67 -67
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +155 -164
- package/package.json +1 -1
|
@@ -3,14 +3,14 @@ import { getValidationMessages as L1 } from "@formkit/validation";
|
|
|
3
3
|
import "@formkit/vue";
|
|
4
4
|
import "@phosphor-icons/vue";
|
|
5
5
|
import "@piveau/sdk-core/hubRepo";
|
|
6
|
-
import { whenever as j1, useWindowScroll as
|
|
6
|
+
import { whenever as j1, useWindowScroll as Z1 } from "@vueuse/core";
|
|
7
7
|
import "axios";
|
|
8
8
|
import "jquery";
|
|
9
|
-
import { has as
|
|
10
|
-
import { defineComponent as
|
|
9
|
+
import { has as E, isNil as p1 } from "lodash-es";
|
|
10
|
+
import { defineComponent as $1, resolveComponent as s, createElementBlock as d, openBlock as p, createCommentVNode as h, createElementVNode as i, createBlock as d1, withModifiers as O1, withCtx as n, createVNode as t, Fragment as u1, renderList as m1, normalizeClass as B1, createTextVNode as c1, toDisplayString as P, computed as A, ref as v, markRaw as E1, toRef as A1, watch as C1, nextTick as U1 } from "vue";
|
|
11
11
|
import { useI18n as R1 } from "vue-i18n";
|
|
12
12
|
import { useRouter as N1 } from "vue-router";
|
|
13
|
-
import { mapActions as
|
|
13
|
+
import { mapActions as f1, mapGetters as v1 } from "vuex";
|
|
14
14
|
import { useRuntimeEnv as z1 } from "../../composables/useRuntimeEnv.js";
|
|
15
15
|
import G1 from "../../stories/components/DemoStep.vue.js";
|
|
16
16
|
import W1 from "../../stories/components/ReviewStepDemo.vue.js";
|
|
@@ -34,8 +34,8 @@ import pe from "../HappyFlowComponents/ui/DataCollection/BasicInformationStep.vu
|
|
|
34
34
|
import de from "../HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js";
|
|
35
35
|
import ue from "../HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js";
|
|
36
36
|
import me from "../HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js";
|
|
37
|
-
import
|
|
38
|
-
import
|
|
37
|
+
import ce from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
|
|
38
|
+
import Ce from "../HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js";
|
|
39
39
|
import fe from "../HappyFlowComponents/ui/Findability/CategoriesStep.vue.js";
|
|
40
40
|
import ve from "../HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js";
|
|
41
41
|
import Se from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
@@ -49,22 +49,22 @@ import be from "../HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js";
|
|
|
49
49
|
import ye from "../HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js";
|
|
50
50
|
import ke from "../HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js";
|
|
51
51
|
import Pe from "../HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js";
|
|
52
|
-
import
|
|
53
|
-
import
|
|
52
|
+
import _e from "../HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js";
|
|
53
|
+
import Ie from "../HappyFlowComponents/ui/Projektphasen/ProjektPhasenOverviewStep.vue.js";
|
|
54
54
|
import Me from "../HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js";
|
|
55
55
|
import Fe from "../HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js";
|
|
56
56
|
import Te from "../HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js";
|
|
57
57
|
import Le from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
58
58
|
import je from "../HappyFlowComponents/ui/WipStep.vue.js";
|
|
59
|
-
import
|
|
59
|
+
import Ze from "./OverviewPage.vue.js";
|
|
60
60
|
/* empty css */
|
|
61
61
|
/* empty css */
|
|
62
62
|
/* empty css */
|
|
63
|
-
import
|
|
64
|
-
import { useDpiContext as
|
|
63
|
+
import $e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
64
|
+
import { useDpiContext as Oe } from "../composables/useDpiContext.js";
|
|
65
65
|
import { useEditModeInfo as Be } from "../composables/useDpiEditMode.js";
|
|
66
66
|
import { useFormSchema as Ee } from "../composables/useFormSchema.js";
|
|
67
|
-
const Ae =
|
|
67
|
+
const Ae = $1({
|
|
68
68
|
props: {
|
|
69
69
|
property: {
|
|
70
70
|
required: !0,
|
|
@@ -103,7 +103,7 @@ const Ae = Z1({
|
|
|
103
103
|
StepActionsSection: Q1,
|
|
104
104
|
DiscoverabilityStep: ve,
|
|
105
105
|
CategoriesStep: fe,
|
|
106
|
-
ApplicationsStep:
|
|
106
|
+
ApplicationsStep: Ce,
|
|
107
107
|
ProjectNameStep: ne,
|
|
108
108
|
ProjectDescriptionStep: ie,
|
|
109
109
|
ProjectStatusStep: se,
|
|
@@ -114,7 +114,7 @@ const Ae = Z1({
|
|
|
114
114
|
OptionalDataStep: De,
|
|
115
115
|
InitiierenStep: Pe,
|
|
116
116
|
UmstezenStep: Me,
|
|
117
|
-
PlanenStep:
|
|
117
|
+
PlanenStep: _e,
|
|
118
118
|
WeiterdenkenStep: Fe,
|
|
119
119
|
BasicInformationStep: pe,
|
|
120
120
|
DataProcessingBasicInformationStep: de,
|
|
@@ -122,23 +122,23 @@ const Ae = Z1({
|
|
|
122
122
|
DataSimulationBasicInformationStep: ue,
|
|
123
123
|
ProcessStepsOverviewStep: ye,
|
|
124
124
|
ReviewStep: Te,
|
|
125
|
-
ProjektPhasenOverviewStep:
|
|
125
|
+
ProjektPhasenOverviewStep: Ie,
|
|
126
126
|
Card: le,
|
|
127
127
|
Listbox: ge,
|
|
128
|
-
DpiModalBase:
|
|
128
|
+
DpiModalBase: ce,
|
|
129
129
|
WipStep: je,
|
|
130
130
|
ProjectDpiDevTools: q1
|
|
131
131
|
},
|
|
132
132
|
computed: {
|
|
133
|
-
...
|
|
133
|
+
...v1("auth", [
|
|
134
134
|
"getIsEditMode",
|
|
135
135
|
"getUserCatalogIds",
|
|
136
136
|
"getUserData"
|
|
137
137
|
]),
|
|
138
|
-
...
|
|
138
|
+
...v1("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
|
|
139
139
|
getTitleStep() {
|
|
140
140
|
return Object.keys(this.formValues).filter(
|
|
141
|
-
(e) =>
|
|
141
|
+
(e) => E(this.formValues[e], "dct:title")
|
|
142
142
|
)[0];
|
|
143
143
|
},
|
|
144
144
|
createIDFromTitle() {
|
|
@@ -149,7 +149,7 @@ const Ae = Z1({
|
|
|
149
149
|
getFirstTitleFromForm() {
|
|
150
150
|
try {
|
|
151
151
|
const e = this.formValues[this.getTitleStep];
|
|
152
|
-
return
|
|
152
|
+
return E(e, "dct:title") && e["dct:title"].length > 0 && E(e["dct:title"][0], "@value") && !p1(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
153
153
|
} catch {
|
|
154
154
|
}
|
|
155
155
|
},
|
|
@@ -158,8 +158,8 @@ const Ae = Z1({
|
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
methods: {
|
|
161
|
-
...
|
|
162
|
-
...
|
|
161
|
+
...f1("auth", ["setIsEditMode", "setIsDraft"]),
|
|
162
|
+
...f1("dpiStore", [
|
|
163
163
|
"saveFormValues",
|
|
164
164
|
"saveLocalstorageValues",
|
|
165
165
|
"clearAll"
|
|
@@ -180,12 +180,12 @@ const Ae = Z1({
|
|
|
180
180
|
}).href;
|
|
181
181
|
},
|
|
182
182
|
async dispatchDataToDPI(e, o, u, y) {
|
|
183
|
-
var
|
|
183
|
+
var _, S;
|
|
184
184
|
console.log("body:", e, o, "params:", u, y);
|
|
185
185
|
try {
|
|
186
|
-
y === "publish" && (u.token = this.getUserData.rtpToken, console.log(u.token), u.url = `${this.$env.api.hubUrl}catalogues/${u.catalog}/datasets/origin?originalId=${u.id}`, await this.$store.dispatch(o, u)), y === "draft" && await this.$store.dispatch(o, u), (
|
|
187
|
-
} catch (
|
|
188
|
-
console.error(
|
|
186
|
+
y === "publish" && (u.token = this.getUserData.rtpToken, console.log(u.token), u.url = `${this.$env.api.hubUrl}catalogues/${u.catalog}/datasets/origin?originalId=${u.id}`, await this.$store.dispatch(o, u)), y === "draft" && await this.$store.dispatch(o, u), (_ = this.$Progress) == null || _.finish(), this.clearAll();
|
|
187
|
+
} catch (f) {
|
|
188
|
+
console.error(f), (S = this.$Progress) == null || S.fail();
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
clearForm() {
|
|
@@ -196,7 +196,7 @@ const Ae = Z1({
|
|
|
196
196
|
},
|
|
197
197
|
createDatasetID() {
|
|
198
198
|
const e = this.formValues[this.getTitleStep];
|
|
199
|
-
!
|
|
199
|
+
!E(e, "datasetID") || p1(e.datasetID) ? this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle : (this.createIDFromTitle.startsWith(e.datasetID) || e.datasetID.startsWith(this.createIDFromTitle)) && (this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle);
|
|
200
200
|
},
|
|
201
201
|
generateandTranslateSchema(e) {
|
|
202
202
|
for (let o = 0; o < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; o++)
|
|
@@ -258,56 +258,56 @@ const Ae = Z1({
|
|
|
258
258
|
// })
|
|
259
259
|
// },
|
|
260
260
|
setup() {
|
|
261
|
-
var s1, r1, l1
|
|
262
|
-
const e = z1(), o =
|
|
263
|
-
steps:
|
|
264
|
-
stepList:
|
|
265
|
-
visitedSteps:
|
|
261
|
+
var a1, s1, r1, l1;
|
|
262
|
+
const e = z1(), o = Oe(), { isEditMode: u, editIdQuery: y, editFromDraft: _ } = Be(), S = A(() => !1), f = N1(), {
|
|
263
|
+
steps: I,
|
|
264
|
+
stepList: M,
|
|
265
|
+
visitedSteps: U,
|
|
266
266
|
activeStep: m,
|
|
267
|
-
stepPlugin:
|
|
268
|
-
goToNextStep:
|
|
267
|
+
stepPlugin: R,
|
|
268
|
+
goToNextStep: F,
|
|
269
269
|
goToPreviousStep: a,
|
|
270
|
-
subSteps:
|
|
271
|
-
previousStep:
|
|
272
|
-
nextStep:
|
|
270
|
+
subSteps: N,
|
|
271
|
+
previousStep: z,
|
|
272
|
+
nextStep: G,
|
|
273
273
|
current: g,
|
|
274
|
-
goToStep:
|
|
275
|
-
isLast:
|
|
276
|
-
triggerValidationCurrentStep:
|
|
274
|
+
goToStep: T,
|
|
275
|
+
isLast: W,
|
|
276
|
+
triggerValidationCurrentStep: q
|
|
277
277
|
} = Y1();
|
|
278
278
|
u.value && (m.value = "Vorschau"), j1(S, () => {
|
|
279
279
|
S.value && (m.value = "Vorschau");
|
|
280
280
|
});
|
|
281
|
-
const { formValues:
|
|
281
|
+
const { formValues: L } = X1(), { t: J, te: K } = R1(), Q = v(!1), j = v(!1), V = v([]), X = A(() => m.value ? n1(m.value) : null), Y = (l) => {
|
|
282
282
|
if (!l)
|
|
283
283
|
return;
|
|
284
284
|
const C = L1(l);
|
|
285
285
|
V.value = [], C.forEach((b) => {
|
|
286
286
|
V.value = V.value.concat(
|
|
287
|
-
b.map((
|
|
287
|
+
b.map((B) => B.value)
|
|
288
288
|
);
|
|
289
289
|
});
|
|
290
|
-
}, { translateSchema:
|
|
291
|
-
t:
|
|
292
|
-
te:
|
|
293
|
-
}), { y:
|
|
294
|
-
|
|
295
|
-
},
|
|
290
|
+
}, { translateSchema: H, createSchema: D, getSchema: w } = Ee({
|
|
291
|
+
t: J,
|
|
292
|
+
te: K
|
|
293
|
+
}), { y: x } = Z1({ behavior: "smooth" }), Z = () => {
|
|
294
|
+
x.value = 0;
|
|
295
|
+
}, e1 = E1({ OverviewPage: Ze }), $ = v("");
|
|
296
296
|
S.value && (m.value = "ReviewAndPublish", $.value = "reviewAndPublishPage");
|
|
297
|
-
const
|
|
297
|
+
const t1 = A1(I), k = (l) => {
|
|
298
298
|
var b;
|
|
299
|
-
const C = (b =
|
|
299
|
+
const C = (b = t1.value) == null ? void 0 : b[l];
|
|
300
300
|
return C ? C.valid : !1;
|
|
301
|
-
},
|
|
302
|
-
|
|
303
|
-
l === "review" && (
|
|
304
|
-
}),
|
|
301
|
+
}, r = v(!1), c = v(0);
|
|
302
|
+
C1(m, (l) => {
|
|
303
|
+
l === "review" && (r.value = !0, c.value++);
|
|
304
|
+
}), C1(m, () => {
|
|
305
305
|
Z();
|
|
306
306
|
});
|
|
307
|
-
const
|
|
307
|
+
const O = async () => {
|
|
308
308
|
try {
|
|
309
309
|
const l = "auth/createDataset", C = await te(
|
|
310
|
-
|
|
310
|
+
L.value,
|
|
311
311
|
o,
|
|
312
312
|
// We'll need to access getUserData somehow - for now using a placeholder
|
|
313
313
|
{},
|
|
@@ -321,80 +321,80 @@ const Ae = Z1({
|
|
|
321
321
|
console.error("Fehler beim Veröffentlichen:", l);
|
|
322
322
|
}
|
|
323
323
|
};
|
|
324
|
-
function
|
|
325
|
-
|
|
324
|
+
function o1() {
|
|
325
|
+
k(g.value) && F();
|
|
326
326
|
}
|
|
327
|
-
async function
|
|
328
|
-
|
|
329
|
-
const l =
|
|
330
|
-
C &&
|
|
327
|
+
async function S1() {
|
|
328
|
+
q(), await U1();
|
|
329
|
+
const l = X.value, C = l ? !k(g.value) : !1;
|
|
330
|
+
C && Y(l), j.value = C, W.value ? console.log("Form submitted", values.value) : o1();
|
|
331
331
|
}
|
|
332
|
-
const h1 =
|
|
332
|
+
const h1 = A(() => M.value.map((l) => ({ id: l, name: l }))), g1 = A({
|
|
333
333
|
get() {
|
|
334
334
|
return { id: g.value, name: g.value };
|
|
335
335
|
},
|
|
336
336
|
set(l) {
|
|
337
|
-
|
|
337
|
+
T(l.id);
|
|
338
338
|
}
|
|
339
339
|
}), V1 = v(!1), { organization: H1, catalogProject: D1, startFetchPermissions: w1, userRoles: b1, permissions: y1 } = ee({
|
|
340
|
-
keycloak: ((
|
|
341
|
-
realm: ((
|
|
340
|
+
keycloak: ((s1 = (a1 = e.authentication) == null ? void 0 : a1.keycloak) == null ? void 0 : s1.url) || "https://keycloak.twin.bydata.de",
|
|
341
|
+
realm: ((l1 = (r1 = e.authentication) == null ? void 0 : r1.keycloak) == null ? void 0 : l1.realm) || "piveau",
|
|
342
342
|
audience: "piveau-hub-repo"
|
|
343
343
|
});
|
|
344
344
|
w1();
|
|
345
345
|
const { submitDraft: k1 } = x1({
|
|
346
346
|
onSuccess: () => {
|
|
347
|
-
|
|
347
|
+
f.push({ name: "DPI-Home-HappyFlow" });
|
|
348
348
|
}
|
|
349
349
|
}), P1 = async () => {
|
|
350
350
|
await k1.execute(320);
|
|
351
|
-
},
|
|
351
|
+
}, _1 = v(!1), I1 = v(0);
|
|
352
352
|
function M1(l) {
|
|
353
|
-
|
|
353
|
+
T(l);
|
|
354
354
|
}
|
|
355
355
|
function F1(l) {
|
|
356
356
|
(Array.isArray(l) ? l : [l]).forEach((b) => {
|
|
357
|
-
const
|
|
358
|
-
if (!
|
|
357
|
+
const B = n1("dpiForm");
|
|
358
|
+
if (!B)
|
|
359
359
|
return;
|
|
360
|
-
const i1 =
|
|
360
|
+
const i1 = B.at([b]);
|
|
361
361
|
i1 && (i1._value = {}, T1(i1));
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
return {
|
|
365
|
-
steps:
|
|
366
|
-
visitedSteps:
|
|
365
|
+
steps: I,
|
|
366
|
+
visitedSteps: U,
|
|
367
367
|
activeStep: m,
|
|
368
368
|
activeSubStep: $,
|
|
369
|
-
subSteps:
|
|
370
|
-
previousStep:
|
|
371
|
-
stepList:
|
|
372
|
-
nextStep:
|
|
373
|
-
stepPlugin:
|
|
374
|
-
checkStepValidity:
|
|
375
|
-
goToNextStep:
|
|
376
|
-
goToNextStepIfValid:
|
|
369
|
+
subSteps: N,
|
|
370
|
+
previousStep: z,
|
|
371
|
+
stepList: M,
|
|
372
|
+
nextStep: G,
|
|
373
|
+
stepPlugin: R,
|
|
374
|
+
checkStepValidity: k,
|
|
375
|
+
goToNextStep: F,
|
|
376
|
+
goToNextStepIfValid: o1,
|
|
377
377
|
goToPreviousStep: a,
|
|
378
378
|
scrollToTop: Z,
|
|
379
|
-
library:
|
|
379
|
+
library: e1,
|
|
380
380
|
isEditMode: u,
|
|
381
|
-
translateSchema:
|
|
382
|
-
createSchema:
|
|
383
|
-
getSchema:
|
|
381
|
+
translateSchema: H,
|
|
382
|
+
createSchema: D,
|
|
383
|
+
getSchema: w,
|
|
384
384
|
dpiContext: o,
|
|
385
|
-
formValues:
|
|
386
|
-
activeSimpleModal:
|
|
387
|
-
shouldRenderReviewStep:
|
|
388
|
-
renderViewStepKey:
|
|
389
|
-
handlePublish:
|
|
390
|
-
handleSubmit:
|
|
391
|
-
showErrorSummary:
|
|
385
|
+
formValues: L,
|
|
386
|
+
activeSimpleModal: Q,
|
|
387
|
+
shouldRenderReviewStep: r,
|
|
388
|
+
renderViewStepKey: c,
|
|
389
|
+
handlePublish: O,
|
|
390
|
+
handleSubmit: S1,
|
|
391
|
+
showErrorSummary: j,
|
|
392
392
|
validationMessages: V,
|
|
393
393
|
stepOptions: h1,
|
|
394
394
|
stepSelect: g1,
|
|
395
395
|
hologramOpen: V1,
|
|
396
|
-
devToolsOpen:
|
|
397
|
-
nonce:
|
|
396
|
+
devToolsOpen: _1,
|
|
397
|
+
nonce: I1,
|
|
398
398
|
jumpToStep: M1,
|
|
399
399
|
deleteStep: F1,
|
|
400
400
|
submitDraft: P1,
|
|
@@ -427,29 +427,29 @@ const Ae = Z1({
|
|
|
427
427
|
key: 0,
|
|
428
428
|
class: "dpiV3_Card_Tips--error dpiV3_Card_Tips"
|
|
429
429
|
}, ut = { class: "validation-errors" };
|
|
430
|
-
function mt(e, o, u, y,
|
|
430
|
+
function mt(e, o, u, y, _, S) {
|
|
431
431
|
s("TextButtonSmall");
|
|
432
|
-
const
|
|
432
|
+
const f = s("ButtonV3"), I = s("ProgressSteps"), M = s("Illustration"), U = s("Listbox"), m = s("Card"), R = s("ProjectDpiDevTools"), F = s("LandingProjectStep"), a = s("InputPageStep"), N = s("DiscoverabilityStep"), z = s("CategoriesStep"), G = s("ApplicationsStep"), g = s("ProjectNameStep"), T = s("ProjectDescriptionStep"), W = s("ProjectStatusStep"), q = s("ProjectOrganisationStep"), L = s("OptionalDataStep"), J = s("ProjektPhasenOverviewStep"), K = s("InitiierenStep"), Q = s("PlanenStep"), j = s("UmstezenStep"), V = s("WeiterdenkenStep"), X = s("ProcessStepsOverviewStep"), Y = s("BasicInformationStep"), H = s("SoftwareStep"), D = s("DatasetStep"), w = s("HardwareStep"), x = s("DataProcessingBasicInformationStep"), Z = s("DataSimulationBasicInformationStep"), e1 = s("DataVisualisationBasicInformationStep"), $ = s("ReviewStep"), t1 = s("FormKit"), k = s("ModalSimpleV3");
|
|
433
433
|
return p(), d("div", Ue, [
|
|
434
434
|
e.isInput ? (p(), d("div", Re, [
|
|
435
435
|
i("div", Ne, [
|
|
436
|
-
(p(),
|
|
436
|
+
(p(), d1(t1, {
|
|
437
437
|
id: "dpiForm",
|
|
438
438
|
key: e.nonce,
|
|
439
439
|
modelValue: e.formValues,
|
|
440
|
-
"onUpdate:modelValue": o[
|
|
440
|
+
"onUpdate:modelValue": o[8] || (o[8] = (r) => e.formValues = r),
|
|
441
441
|
name: "dpiForm",
|
|
442
442
|
type: "form",
|
|
443
443
|
actions: !1,
|
|
444
444
|
plugins: [e.stepPlugin],
|
|
445
445
|
class: "d-flex",
|
|
446
|
-
onSubmit: o[
|
|
446
|
+
onSubmit: o[9] || (o[9] = O1(() => {
|
|
447
447
|
}, ["prevent"]))
|
|
448
448
|
}, {
|
|
449
449
|
default: n(() => [
|
|
450
450
|
(p(), d("div", ze, [
|
|
451
451
|
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (p(), d("div", Ge, [
|
|
452
|
-
o[
|
|
452
|
+
o[12] || (o[12] = i("svg", {
|
|
453
453
|
width: "129",
|
|
454
454
|
height: "48",
|
|
455
455
|
viewBox: "0 0 129 48",
|
|
@@ -505,7 +505,7 @@ function mt(e, o, u, y, M, S) {
|
|
|
505
505
|
fill: "#AEDFF8"
|
|
506
506
|
})
|
|
507
507
|
], -1)),
|
|
508
|
-
t(
|
|
508
|
+
t(I, {
|
|
509
509
|
checked: e.visitedSteps,
|
|
510
510
|
"onUpdate:checked": o[0] || (o[0] = (r) => e.visitedSteps = r),
|
|
511
511
|
current: e.activeStep,
|
|
@@ -514,7 +514,7 @@ function mt(e, o, u, y, M, S) {
|
|
|
514
514
|
steps: e.stepList || []
|
|
515
515
|
}, null, 8, ["checked", "current", "steps"])
|
|
516
516
|
])) : (p(), d("div", We, [
|
|
517
|
-
o[
|
|
517
|
+
o[13] || (o[13] = i("div", { class: "dpiV3_bydata_logo_wordmark" }, [
|
|
518
518
|
i("svg", {
|
|
519
519
|
width: "129",
|
|
520
520
|
height: "48",
|
|
@@ -573,65 +573,65 @@ function mt(e, o, u, y, M, S) {
|
|
|
573
573
|
])
|
|
574
574
|
], -1)),
|
|
575
575
|
i("div", qe, [
|
|
576
|
-
t(
|
|
576
|
+
t(M, { "illustration-name": "start" })
|
|
577
577
|
])
|
|
578
578
|
]))
|
|
579
579
|
])),
|
|
580
580
|
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (p(), d("ul", Je, [
|
|
581
|
-
(p(!0), d(
|
|
581
|
+
(p(!0), d(u1, null, m1(e.steps, (r, c, O) => (p(), d("li", {
|
|
582
582
|
key: r,
|
|
583
583
|
class: B1(["step", {
|
|
584
|
-
activeItem: e.activeStep ===
|
|
585
|
-
inactiveStep:
|
|
586
|
-
"has-errors": e.checkStepValidity(
|
|
584
|
+
activeItem: e.activeStep === c,
|
|
585
|
+
inactiveStep: c != e.activeStep,
|
|
586
|
+
"has-errors": e.checkStepValidity(c)
|
|
587
587
|
}]),
|
|
588
|
-
"data-step-active": e.activeStep ===
|
|
588
|
+
"data-step-active": e.activeStep === c,
|
|
589
589
|
"data-step-valid": r.valid && r.errorCount === 0,
|
|
590
|
-
onClick: (
|
|
591
|
-
e.activeStep =
|
|
590
|
+
onClick: (o1) => {
|
|
591
|
+
e.activeStep = c, e.update(), e.scrollToTop();
|
|
592
592
|
}
|
|
593
593
|
}, [
|
|
594
594
|
i("div", Qe, [
|
|
595
|
-
i("div", Xe,
|
|
596
|
-
e.checkStepValidity(
|
|
595
|
+
i("div", Xe, P(O + 1), 1),
|
|
596
|
+
e.checkStepValidity(c) ? (p(), d("span", {
|
|
597
597
|
key: 0,
|
|
598
598
|
class: "step--errors",
|
|
599
|
-
textContent:
|
|
599
|
+
textContent: P(r.errorCount + r.blockingCount)
|
|
600
600
|
}, null, 8, Ye)) : h("", !0),
|
|
601
|
-
c1(
|
|
601
|
+
c1(P(e.$t(`message.dataupload.steps.${c}Step`)), 1)
|
|
602
602
|
]),
|
|
603
|
-
|
|
603
|
+
O != Object.keys(e.steps).length ? (p(), d("div", xe)) : h("", !0)
|
|
604
604
|
], 10, Ke))), 128)),
|
|
605
|
-
e.activeStep === "Overview" ? (p(), d("li", et, o[
|
|
605
|
+
e.activeStep === "Overview" ? (p(), d("li", et, o[14] || (o[14] = [
|
|
606
606
|
i("div", { class: "circle stepCircle" }, null, -1)
|
|
607
607
|
]))) : h("", !0)
|
|
608
608
|
])) : h("", !0),
|
|
609
609
|
i("div", tt, [
|
|
610
610
|
i("div", ot, [
|
|
611
611
|
i("details", it, [
|
|
612
|
-
o[
|
|
613
|
-
i("pre", nt,
|
|
612
|
+
o[15] || (o[15] = i("summary", null, "Form Values", -1)),
|
|
613
|
+
i("pre", nt, P(JSON.stringify(e.formValues, null, 2)), 1)
|
|
614
614
|
]),
|
|
615
615
|
t(m, null, {
|
|
616
|
-
title: n(() => o[
|
|
616
|
+
title: n(() => o[16] || (o[16] = [
|
|
617
617
|
c1(" dev view ", -1)
|
|
618
618
|
])),
|
|
619
619
|
default: n(() => [
|
|
620
620
|
i("div", at, [
|
|
621
621
|
i("div", st, [
|
|
622
|
-
t(
|
|
622
|
+
t(f, {
|
|
623
623
|
type: "button",
|
|
624
624
|
variant: "secondary",
|
|
625
625
|
"button-text": "Open Hologram",
|
|
626
626
|
onClick: o[2] || (o[2] = (r) => e.hologramOpen = !0)
|
|
627
627
|
}),
|
|
628
|
-
t(
|
|
628
|
+
t(f, {
|
|
629
629
|
type: "button",
|
|
630
630
|
variant: "secondary",
|
|
631
631
|
"button-text": "Previous",
|
|
632
632
|
onClick: e.goToPreviousStep
|
|
633
633
|
}, null, 8, ["onClick"]),
|
|
634
|
-
t(
|
|
634
|
+
t(f, {
|
|
635
635
|
type: "button",
|
|
636
636
|
variant: "secondary",
|
|
637
637
|
"button-text": "Next",
|
|
@@ -639,7 +639,7 @@ function mt(e, o, u, y, M, S) {
|
|
|
639
639
|
}, null, 8, ["onClick"])
|
|
640
640
|
]),
|
|
641
641
|
i("div", rt, [
|
|
642
|
-
t(
|
|
642
|
+
t(f, {
|
|
643
643
|
type: "button",
|
|
644
644
|
variant: "secondary",
|
|
645
645
|
"button-text": "Open devtools",
|
|
@@ -647,7 +647,7 @@ function mt(e, o, u, y, M, S) {
|
|
|
647
647
|
})
|
|
648
648
|
]),
|
|
649
649
|
i("div", lt, [
|
|
650
|
-
t(
|
|
650
|
+
t(U, {
|
|
651
651
|
modelValue: e.stepSelect,
|
|
652
652
|
"onUpdate:modelValue": o[4] || (o[4] = (r) => e.stepSelect = r),
|
|
653
653
|
label: "Go to step",
|
|
@@ -659,7 +659,7 @@ function mt(e, o, u, y, M, S) {
|
|
|
659
659
|
_: 1
|
|
660
660
|
})
|
|
661
661
|
]),
|
|
662
|
-
t(
|
|
662
|
+
t(R, {
|
|
663
663
|
modelValue: e.devToolsOpen,
|
|
664
664
|
"onUpdate:modelValue": o[5] || (o[5] = (r) => e.devToolsOpen = r),
|
|
665
665
|
nonce: e.nonce,
|
|
@@ -670,25 +670,25 @@ function mt(e, o, u, y, M, S) {
|
|
|
670
670
|
i("div", null, [
|
|
671
671
|
t(a, { name: "Landing" }, {
|
|
672
672
|
default: n(() => [
|
|
673
|
-
t(
|
|
673
|
+
t(F)
|
|
674
674
|
]),
|
|
675
675
|
_: 1
|
|
676
676
|
}),
|
|
677
677
|
t(a, { name: "Auffindbarkeit/Sichtbarkeit" }, {
|
|
678
678
|
default: n(() => [
|
|
679
|
-
t(
|
|
679
|
+
t(N)
|
|
680
680
|
]),
|
|
681
681
|
_: 1
|
|
682
682
|
}),
|
|
683
683
|
t(a, { name: "Auffindbarkeit/Kategorien" }, {
|
|
684
684
|
default: n(() => [
|
|
685
|
-
t(
|
|
685
|
+
t(z)
|
|
686
686
|
]),
|
|
687
687
|
_: 1
|
|
688
688
|
}),
|
|
689
689
|
t(a, { name: "Auffindbarkeit/Anwendungsbereiche" }, {
|
|
690
690
|
default: n(() => [
|
|
691
|
-
t(
|
|
691
|
+
t(G)
|
|
692
692
|
]),
|
|
693
693
|
_: 1
|
|
694
694
|
}),
|
|
@@ -700,19 +700,19 @@ function mt(e, o, u, y, M, S) {
|
|
|
700
700
|
}),
|
|
701
701
|
t(a, { name: "Grundlegende Informationen/Beschreibung" }, {
|
|
702
702
|
default: n(() => [
|
|
703
|
-
t(
|
|
703
|
+
t(T)
|
|
704
704
|
]),
|
|
705
705
|
_: 1
|
|
706
706
|
}),
|
|
707
707
|
t(a, { name: "Grundlegende Informationen/Projektstatus" }, {
|
|
708
708
|
default: n(() => [
|
|
709
|
-
t(
|
|
709
|
+
t(W)
|
|
710
710
|
]),
|
|
711
711
|
_: 1
|
|
712
712
|
}),
|
|
713
713
|
t(a, { name: "Grundlegende Informationen/Organisation" }, {
|
|
714
714
|
default: n(() => [
|
|
715
|
-
t(
|
|
715
|
+
t(q, {
|
|
716
716
|
"is-wip": "",
|
|
717
717
|
icon: "https://storage.googleapis.com/open-data-public-files-050923/assets/v2/haar/favicon.png",
|
|
718
718
|
address: "Bahnhofstraße 7",
|
|
@@ -726,58 +726,49 @@ function mt(e, o, u, y, M, S) {
|
|
|
726
726
|
}),
|
|
727
727
|
t(a, { name: "Optionale Daten" }, {
|
|
728
728
|
default: n(() => [
|
|
729
|
-
t(
|
|
730
|
-
t(K, {
|
|
731
|
-
modelValue: e.hologramOpen,
|
|
732
|
-
"onUpdate:modelValue": o[7] || (o[7] = (r) => e.hologramOpen = r)
|
|
733
|
-
}, {
|
|
734
|
-
default: n(() => [
|
|
735
|
-
t(k)
|
|
736
|
-
]),
|
|
737
|
-
_: 1
|
|
738
|
-
}, 8, ["modelValue"])
|
|
729
|
+
t(L)
|
|
739
730
|
]),
|
|
740
731
|
_: 1
|
|
741
732
|
}),
|
|
742
733
|
t(a, { name: "Projektphasen (optional)" }, {
|
|
743
734
|
default: n(() => [
|
|
744
|
-
t(
|
|
735
|
+
t(J)
|
|
745
736
|
]),
|
|
746
737
|
_: 1
|
|
747
738
|
}),
|
|
748
739
|
t(a, { name: "Projektphasen (optional)/Initiieren" }, {
|
|
749
740
|
default: n(() => [
|
|
750
|
-
t(
|
|
741
|
+
t(K)
|
|
751
742
|
]),
|
|
752
743
|
_: 1
|
|
753
744
|
}),
|
|
754
745
|
t(a, { name: "Projektphasen (optional)/Planen" }, {
|
|
755
746
|
default: n(() => [
|
|
756
|
-
t(
|
|
747
|
+
t(Q)
|
|
757
748
|
]),
|
|
758
749
|
_: 1
|
|
759
750
|
}),
|
|
760
751
|
t(a, { name: "Projektphasen (optional)/Umsetzen" }, {
|
|
761
752
|
default: n(() => [
|
|
762
|
-
t(
|
|
753
|
+
t(j)
|
|
763
754
|
]),
|
|
764
755
|
_: 1
|
|
765
756
|
}),
|
|
766
757
|
t(a, { name: "Projektphasen (optional)/Weiterdenken" }, {
|
|
767
758
|
default: n(() => [
|
|
768
|
-
t(
|
|
759
|
+
t(V)
|
|
769
760
|
]),
|
|
770
761
|
_: 1
|
|
771
762
|
}),
|
|
772
763
|
t(a, { name: "Technische Prozessschritte" }, {
|
|
773
764
|
default: n(() => [
|
|
774
|
-
t(
|
|
765
|
+
t(X)
|
|
775
766
|
]),
|
|
776
767
|
_: 1
|
|
777
768
|
}),
|
|
778
769
|
t(a, { name: "1. Datenerfassung/Grundlegende Informationen" }, {
|
|
779
770
|
default: n(() => [
|
|
780
|
-
t(
|
|
771
|
+
t(Y)
|
|
781
772
|
]),
|
|
782
773
|
_: 1
|
|
783
774
|
}),
|
|
@@ -810,7 +801,7 @@ function mt(e, o, u, y, M, S) {
|
|
|
810
801
|
}),
|
|
811
802
|
t(a, { name: "2. Datenverarbeitung/Grundlegende Informationen" }, {
|
|
812
803
|
default: n(() => [
|
|
813
|
-
t(
|
|
804
|
+
t(x)
|
|
814
805
|
]),
|
|
815
806
|
_: 1
|
|
816
807
|
}),
|
|
@@ -843,7 +834,7 @@ function mt(e, o, u, y, M, S) {
|
|
|
843
834
|
}),
|
|
844
835
|
t(a, { name: "3. Datensimulation/Grundlegende Informationen" }, {
|
|
845
836
|
default: n(() => [
|
|
846
|
-
t(
|
|
837
|
+
t(Z)
|
|
847
838
|
]),
|
|
848
839
|
_: 1
|
|
849
840
|
}),
|
|
@@ -876,9 +867,9 @@ function mt(e, o, u, y, M, S) {
|
|
|
876
867
|
}),
|
|
877
868
|
t(a, { name: "4. Datenvisualisierung/Grundlegende Informationen" }, {
|
|
878
869
|
default: n(() => [
|
|
879
|
-
t(
|
|
870
|
+
t(e1, {
|
|
880
871
|
modelValue: e.formValues,
|
|
881
|
-
"onUpdate:modelValue": o[
|
|
872
|
+
"onUpdate:modelValue": o[7] || (o[7] = (r) => e.formValues = r)
|
|
882
873
|
}, null, 8, ["modelValue"])
|
|
883
874
|
]),
|
|
884
875
|
_: 1
|
|
@@ -912,7 +903,7 @@ function mt(e, o, u, y, M, S) {
|
|
|
912
903
|
}),
|
|
913
904
|
t(a, { name: "Vorschau" }, {
|
|
914
905
|
default: n(() => [
|
|
915
|
-
t(
|
|
906
|
+
t($, {
|
|
916
907
|
onSubmit: e.submitDraft,
|
|
917
908
|
onJump: e.jumpToStep,
|
|
918
909
|
onDelete: e.deleteStep
|
|
@@ -921,33 +912,33 @@ function mt(e, o, u, y, M, S) {
|
|
|
921
912
|
_: 1
|
|
922
913
|
})
|
|
923
914
|
]),
|
|
924
|
-
o[
|
|
915
|
+
o[18] || (o[18] = i("hr", null, null, -1)),
|
|
925
916
|
e.showErrorSummary && e.validationMessages.length ? (p(), d("div", dt, [
|
|
926
|
-
o[
|
|
917
|
+
o[17] || (o[17] = i("h4", null, "Bitte korrigieren Sie die folgenden Fehler:", -1)),
|
|
927
918
|
i("ul", ut, [
|
|
928
|
-
(p(!0), d(
|
|
919
|
+
(p(!0), d(u1, null, m1(e.validationMessages, (r) => (p(), d("li", { key: r }, P(r), 1))), 128))
|
|
929
920
|
])
|
|
930
921
|
])) : h("", !0),
|
|
931
|
-
o[
|
|
932
|
-
o[
|
|
922
|
+
o[19] || (o[19] = i("hr", null, null, -1)),
|
|
923
|
+
o[20] || (o[20] = i("div", null, null, -1))
|
|
933
924
|
])
|
|
934
925
|
]),
|
|
935
926
|
_: 1
|
|
936
927
|
}, 8, ["modelValue", "plugins"])),
|
|
937
|
-
e.activeSimpleModal ? (p(),
|
|
928
|
+
e.activeSimpleModal ? (p(), d1(k, {
|
|
938
929
|
key: 0,
|
|
939
930
|
buttons: e.modalSimpleConf.button,
|
|
940
931
|
"header-text": e.modalSimpleConf.header,
|
|
941
932
|
text: e.modalSimpleConf.text,
|
|
942
933
|
action: e.modalSimpleConf.action,
|
|
943
|
-
onClose: o[
|
|
944
|
-
onActionHandling: o[
|
|
934
|
+
onClose: o[10] || (o[10] = (r) => e.activeSimpleModal = !1),
|
|
935
|
+
onActionHandling: o[11] || (o[11] = (r) => e.gotToHome())
|
|
945
936
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : h("", !0)
|
|
946
937
|
])
|
|
947
938
|
], 512)) : h("", !0)
|
|
948
939
|
]);
|
|
949
940
|
}
|
|
950
|
-
const y3 = /* @__PURE__ */
|
|
941
|
+
const y3 = /* @__PURE__ */ $e(Ae, [["render", mt]]);
|
|
951
942
|
export {
|
|
952
943
|
y3 as default
|
|
953
944
|
};
|