@piveau/dpi 0.1.0-beta.89 → 0.1.0-beta.90
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.
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { getNode as K } from "@formkit/core";
|
|
2
2
|
import "@formkit/vue";
|
|
3
|
-
import { PhNumberCircleFive as
|
|
3
|
+
import { PhNumberCircleFive as G, PhCheckCircle as Z, PhLightbulb as J } from "@phosphor-icons/vue";
|
|
4
4
|
import { useWindowScroll as Q } from "@vueuse/core";
|
|
5
5
|
import X from "jquery";
|
|
6
|
-
import { has as
|
|
7
|
-
import { defineComponent as Y, resolveComponent as g, createElementBlock as
|
|
6
|
+
import { has as T, isNil as O } from "lodash-es";
|
|
7
|
+
import { defineComponent as Y, resolveComponent as g, createElementBlock as l, openBlock as i, createCommentVNode as p, createElementVNode as a, createVNode as v, createBlock as f, withModifiers as N, withCtx as M, Fragment as V, renderList as k, withDirectives as j, normalizeClass as y, toDisplayString as c, vShow as z, createTextVNode as H, ref as R, markRaw as x, getCurrentInstance as ee } from "vue";
|
|
8
8
|
import { useI18n as te } from "vue-i18n";
|
|
9
9
|
import { mapActions as B, mapGetters as W } from "vuex";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useFormValues as
|
|
13
|
-
import { useDpiStepper as
|
|
10
|
+
import se from "../components/InputPageStep.vue.js";
|
|
11
|
+
import ie from "../components/Navigation.vue.js";
|
|
12
|
+
import { useFormValues as ae } from "../composables/useDpiFormValues.js";
|
|
13
|
+
import { useDpiStepper as oe } from "../composables/useDpiStepper.js";
|
|
14
14
|
import U from "../config/dcatapdeHappyFlow/converter.js";
|
|
15
15
|
import re from "../HappyFlowComponents/img/Circle.svg.js";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
16
|
+
import le from "../HappyFlowComponents/img/CircleFill.svg.js";
|
|
17
|
+
import ne from "../HappyFlowComponents/img/Selected1.svg.js";
|
|
18
18
|
import de from "../HappyFlowComponents/img/Selected1_2.svg.js";
|
|
19
19
|
import pe from "../HappyFlowComponents/img/Selected2.svg.js";
|
|
20
20
|
import ue from "../HappyFlowComponents/img/Selected2_2.svg.js";
|
|
@@ -29,8 +29,8 @@ import Se from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
|
29
29
|
import Ce from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
30
30
|
import ye from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
31
31
|
import Ve from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
32
|
+
import ke from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
33
|
+
import _e from "./DistributionInputPage.vue.js";
|
|
34
34
|
import $e from "./OverviewPage.vue.js";
|
|
35
35
|
import Ie from "./PropertyChooser.vue.js";
|
|
36
36
|
/* empty css */
|
|
@@ -53,8 +53,8 @@ const Fe = Y({
|
|
|
53
53
|
},
|
|
54
54
|
data() {
|
|
55
55
|
return {
|
|
56
|
-
circles: [re,
|
|
57
|
-
images: [
|
|
56
|
+
circles: [re, le],
|
|
57
|
+
images: [ne, pe, ce, ve, ge],
|
|
58
58
|
selectedImages: [
|
|
59
59
|
de,
|
|
60
60
|
ue,
|
|
@@ -71,6 +71,9 @@ const Fe = Y({
|
|
|
71
71
|
stepCounter: 0,
|
|
72
72
|
byte: !0,
|
|
73
73
|
expandall: !0,
|
|
74
|
+
datasetIdExists: !1,
|
|
75
|
+
duplicateTitleModal: !1,
|
|
76
|
+
duplicateDatasetTitle: "",
|
|
74
77
|
modalSimpleConf: {
|
|
75
78
|
button: "Ja, abbrechen",
|
|
76
79
|
header: "Wollen Sie wirklich abbrechen?",
|
|
@@ -83,17 +86,17 @@ const Fe = Y({
|
|
|
83
86
|
};
|
|
84
87
|
},
|
|
85
88
|
components: {
|
|
86
|
-
InputPageStep:
|
|
87
|
-
DistributionInputPage:
|
|
89
|
+
InputPageStep: se,
|
|
90
|
+
DistributionInputPage: _e,
|
|
88
91
|
PropertyChooser: Ie,
|
|
89
|
-
Navigation:
|
|
92
|
+
Navigation: ie,
|
|
90
93
|
LogoV3: ye,
|
|
91
94
|
ButtonV3: Se,
|
|
92
|
-
TextButtonSmall:
|
|
95
|
+
TextButtonSmall: ke,
|
|
93
96
|
Illustration: Ce,
|
|
94
97
|
PhLightbulb: J,
|
|
95
|
-
PhCheckCircle:
|
|
96
|
-
PhNumberCircleFive:
|
|
98
|
+
PhCheckCircle: Z,
|
|
99
|
+
PhNumberCircleFive: G,
|
|
97
100
|
ModalSimpleV3: Ve
|
|
98
101
|
},
|
|
99
102
|
computed: {
|
|
@@ -105,18 +108,18 @@ const Fe = Y({
|
|
|
105
108
|
...W("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
|
|
106
109
|
getTitleStep() {
|
|
107
110
|
return Object.keys(this.formValues).filter(
|
|
108
|
-
(e) =>
|
|
111
|
+
(e) => T(this.formValues[e], "dct:title")
|
|
109
112
|
)[0];
|
|
110
113
|
},
|
|
111
114
|
createIDFromTitle() {
|
|
112
115
|
const e = this.formValues[this.getTitleStep]["dct:title"][0]["@value"];
|
|
113
116
|
if (e != null)
|
|
114
|
-
return e.toLowerCase().replace(
|
|
117
|
+
return e.toLowerCase().trim().replace(/\s+/g, "-");
|
|
115
118
|
},
|
|
116
119
|
getFirstTitleFromForm() {
|
|
117
120
|
try {
|
|
118
121
|
const e = this.formValues[this.getTitleStep];
|
|
119
|
-
return
|
|
122
|
+
return T(e, "dct:title") && e["dct:title"].length > 0 && T(e["dct:title"][0], "@value") && !O(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
120
123
|
} catch {
|
|
121
124
|
}
|
|
122
125
|
},
|
|
@@ -142,8 +145,12 @@ const Fe = Y({
|
|
|
142
145
|
return e === this.substepCounter ? this.circles[1] : this.circles[0];
|
|
143
146
|
},
|
|
144
147
|
validateStep() {
|
|
145
|
-
var e, t,
|
|
146
|
-
|
|
148
|
+
var e, t, s, o, r;
|
|
149
|
+
if (console.log("ACTIVE SUBSTEP:", this.activeSubStep), this.activeSubStep === "dct:title" && this.datasetIdExists) {
|
|
150
|
+
this.duplicateDatasetTitle = this.getFirstTitleFromForm, this.duplicateTitleModal = !0;
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
((s = (t = (e = this.formValues[this.activeStep]) == null ? void 0 : e[this.activeSubStep]) == null ? void 0 : t[0]) == null ? void 0 : s.isValid) === !0 || ((o = this.formValues[this.activeStep][this.activeSubStep]) == null ? void 0 : o.isValid) === !0 ? this.navTrigger("next") : ((r = this.formValues[this.activeStep][this.activeSubStep]) != null && r[0] ? this.formValues[this.activeStep][this.activeSubStep][0].isValid = !1 : this.formValues[this.activeStep][this.activeSubStep].isValid = !1, this.handleDistributionsValidation(this.activeSubStep));
|
|
147
154
|
},
|
|
148
155
|
handleDistributionsValidation(e) {
|
|
149
156
|
be.emit("nextClicked", e);
|
|
@@ -155,44 +162,45 @@ const Fe = Y({
|
|
|
155
162
|
},
|
|
156
163
|
navTrigger(e, t) {
|
|
157
164
|
try {
|
|
158
|
-
let
|
|
159
|
-
if (Object.keys(this.steps).forEach((
|
|
165
|
+
let s = [];
|
|
166
|
+
if (Object.keys(this.steps).forEach((o, r) => {
|
|
160
167
|
let m = {
|
|
161
|
-
step:
|
|
162
|
-
substeps: this.subSteps[
|
|
163
|
-
substepCount: Object.keys(this.subSteps[
|
|
168
|
+
step: o,
|
|
169
|
+
substeps: this.subSteps[r],
|
|
170
|
+
substepCount: Object.keys(this.subSteps[r]).length
|
|
164
171
|
};
|
|
165
|
-
|
|
166
|
-
}), e === "next" && (
|
|
167
|
-
|
|
172
|
+
s.push(m);
|
|
173
|
+
}), e === "next" && (s[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === s[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = s[this.stepCounter].step, this.activeSubStep = Object.keys(
|
|
174
|
+
s[this.stepCounter].substeps
|
|
168
175
|
)[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
|
|
169
|
-
|
|
176
|
+
s[this.stepCounter].substeps
|
|
170
177
|
)[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [
|
|
171
178
|
{ isValid: !0 }
|
|
172
|
-
])) : this.stepCounter !=
|
|
173
|
-
|
|
174
|
-
)[0], this.activeStep =
|
|
175
|
-
|
|
176
|
-
)[this.substepCounter]) : (this.stepCounter--, this.activeStep =
|
|
177
|
-
|
|
178
|
-
)[this.substepCounter]) : (this.substepCounter = Object.keys(
|
|
179
|
-
|
|
180
|
-
)[this.substepCounter], this.activeStep =
|
|
181
|
-
|
|
179
|
+
])) : this.stepCounter != s.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
|
|
180
|
+
s[this.stepCounter].substeps
|
|
181
|
+
)[0], this.activeStep = s[this.stepCounter].step)), e === "prev" && (s[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
|
|
182
|
+
s[this.stepCounter].substeps
|
|
183
|
+
)[this.substepCounter]) : (this.stepCounter--, this.activeStep = s[this.stepCounter].step, this.substepCounter = Object.keys(s[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
|
|
184
|
+
s[this.stepCounter].substeps
|
|
185
|
+
)[this.substepCounter]) : (this.substepCounter = Object.keys(s[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
|
|
186
|
+
s[this.stepCounter].substeps
|
|
187
|
+
)[this.substepCounter], this.activeStep = s[this.stepCounter].step)), e === "publish") {
|
|
188
|
+
this.createDatasetID();
|
|
189
|
+
let o = "auth/createDataset";
|
|
182
190
|
U(
|
|
183
191
|
this.formValues,
|
|
184
192
|
this.dpiContext,
|
|
185
193
|
this.getUserData,
|
|
186
194
|
this.$env.api.hubUrl
|
|
187
|
-
).then((
|
|
195
|
+
).then((r) => {
|
|
188
196
|
this.dispatchDataToDPI(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
197
|
+
r.body,
|
|
198
|
+
o,
|
|
199
|
+
r.actionParams,
|
|
192
200
|
"publish"
|
|
193
201
|
);
|
|
194
|
-
}).catch((
|
|
195
|
-
console.error("Fehler beim Senden der Daten:",
|
|
202
|
+
}).catch((r) => {
|
|
203
|
+
console.error("Fehler beim Senden der Daten:", r);
|
|
196
204
|
}), setTimeout(() => {
|
|
197
205
|
window.location.href = this.$router.resolve({
|
|
198
206
|
name: "DPI-Home-HappyFlow"
|
|
@@ -200,21 +208,21 @@ const Fe = Y({
|
|
|
200
208
|
}, 1e3);
|
|
201
209
|
}
|
|
202
210
|
if (e === "depublish") {
|
|
203
|
-
let
|
|
211
|
+
let o = "auth/depublishById";
|
|
204
212
|
U(
|
|
205
213
|
this.formValues,
|
|
206
214
|
this.dpiContext,
|
|
207
215
|
this.getUserData,
|
|
208
216
|
this.$env.api.hubUrl
|
|
209
|
-
).then((
|
|
217
|
+
).then((r) => {
|
|
210
218
|
this.dispatchDataToDPI(
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
219
|
+
r.body,
|
|
220
|
+
o,
|
|
221
|
+
r.actionParams,
|
|
214
222
|
"depublish"
|
|
215
223
|
);
|
|
216
|
-
}).catch((
|
|
217
|
-
console.error("Fehler beim Senden der Daten:",
|
|
224
|
+
}).catch((r) => {
|
|
225
|
+
console.error("Fehler beim Senden der Daten:", r);
|
|
218
226
|
}), setTimeout(() => {
|
|
219
227
|
window.location.href = this.$router.resolve({
|
|
220
228
|
name: "DPI-Home-HappyFlow"
|
|
@@ -222,49 +230,50 @@ const Fe = Y({
|
|
|
222
230
|
}, 1e3);
|
|
223
231
|
}
|
|
224
232
|
if (e === "draft") {
|
|
225
|
-
|
|
233
|
+
this.createDatasetID();
|
|
234
|
+
let o = "auth/createUserDraft";
|
|
226
235
|
U(
|
|
227
236
|
this.formValues,
|
|
228
237
|
this.dpiContext,
|
|
229
238
|
this.getUserData,
|
|
230
239
|
this.$env.api.hubUrl
|
|
231
|
-
).then((
|
|
240
|
+
).then((r) => {
|
|
232
241
|
this.dispatchDataToDPI(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
242
|
+
r.body,
|
|
243
|
+
o,
|
|
244
|
+
r.actionParams,
|
|
236
245
|
"draft"
|
|
237
246
|
);
|
|
238
|
-
}).catch((
|
|
239
|
-
console.error("Fehler beim Senden der Daten:",
|
|
247
|
+
}).catch((r) => {
|
|
248
|
+
console.error("Fehler beim Senden der Daten:", r);
|
|
240
249
|
}), setTimeout(() => {
|
|
241
250
|
window.location.href = this.$router.resolve({
|
|
242
251
|
name: "DPI-Home-HappyFlow"
|
|
243
252
|
}).href;
|
|
244
253
|
}, 1e3);
|
|
245
254
|
}
|
|
246
|
-
} catch (
|
|
247
|
-
console.log(
|
|
255
|
+
} catch (s) {
|
|
256
|
+
console.log(s);
|
|
248
257
|
}
|
|
249
258
|
},
|
|
250
|
-
async dispatchDataToDPI(e, t,
|
|
251
|
-
var
|
|
259
|
+
async dispatchDataToDPI(e, t, s, o) {
|
|
260
|
+
var r, m;
|
|
252
261
|
try {
|
|
253
|
-
|
|
254
|
-
id:
|
|
255
|
-
catalog:
|
|
256
|
-
title:
|
|
257
|
-
description:
|
|
258
|
-
}),
|
|
262
|
+
o === "publish" && (s.token = this.getUserData.rtpToken, localStorage.getItem("dpi_draftmode") === "true" && localStorage.getItem("dpi_editmode") === "true" ? (await this.$store.dispatch("auth/createUserDraft", s), s.url = `${this.$env.api.hubUrl}drafts/datasets/publish/${s.id}?catalogue=${s.catalog}`) : s.url = `${this.$env.api.hubUrl}datasets?id=${s.id}&catalogue=${s.catalog}`, await this.$store.dispatch(t, s)), o === "draft" && await this.$store.dispatch(t, s), o === "depublish" && (await this.$store.dispatch("auth/putDatasetToDraft", {
|
|
263
|
+
id: s.id,
|
|
264
|
+
catalog: s.catalog,
|
|
265
|
+
title: s.title,
|
|
266
|
+
description: s.description
|
|
267
|
+
}), s.url = `${this.$env.api.hubUrl}catalogues/${s.catalog}/datasets/origin?originalId=${s.id}`, await this.$store.dispatch("auth/createUserDraft", s)), (r = this.$Progress) == null || r.finish(), this.clearAll();
|
|
259
268
|
} catch (C) {
|
|
260
269
|
console.error(C), (m = this.$Progress) == null || m.fail();
|
|
261
270
|
}
|
|
262
271
|
},
|
|
263
272
|
dropdownCLick() {
|
|
264
273
|
const e = document.querySelectorAll(".formkitProperty h4");
|
|
265
|
-
this.expandall && e.forEach((t,
|
|
274
|
+
this.expandall && e.forEach((t, s) => {
|
|
266
275
|
t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
|
|
267
|
-
}), this.expandall || e.forEach((t,
|
|
276
|
+
}), this.expandall || e.forEach((t, s) => {
|
|
268
277
|
t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
|
|
269
278
|
});
|
|
270
279
|
},
|
|
@@ -276,20 +285,20 @@ const Fe = Y({
|
|
|
276
285
|
},
|
|
277
286
|
initInputPage() {
|
|
278
287
|
this.activeSubStep = this.activeSubStep || "Landing", ee().appContext.app.config.globalProperties.$env;
|
|
279
|
-
const t = this.getSchema(this.property).value,
|
|
280
|
-
(
|
|
288
|
+
const t = this.getSchema(this.property).value, s = Object.keys(t).find(
|
|
289
|
+
(o) => t[o].map((r) => r.name).includes("dct:issued") || t[o].map((r) => r.name).includes("dct:modified")
|
|
281
290
|
);
|
|
282
|
-
this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" &&
|
|
283
|
-
(
|
|
291
|
+
this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && s != null && t[s].forEach((o) => {
|
|
292
|
+
(o.identifier === "issued" || o.identifier === "modified") && (o.children[1].props.else.validation = "", o.children[1].props.else["validation-visibility"] = "", o.children[1].props.then.validation = "", o.children[1].props.then["validation-visibility"] = "", o.children[1].props.then.validation = "", o.children[1].props.then["validation-visibility"] = "");
|
|
284
293
|
}), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.$nextTick(() => {
|
|
285
294
|
X('[data-bs-toggle="tooltip"]').tooltip({
|
|
286
295
|
container: "body"
|
|
287
296
|
}), setTimeout(() => {
|
|
288
|
-
document.querySelectorAll(".formkitProperty h4").forEach((
|
|
289
|
-
|
|
297
|
+
document.querySelectorAll(".formkitProperty h4").forEach((r, m) => {
|
|
298
|
+
r.parentElement.parentElement.classList.contains(
|
|
290
299
|
"formkitWrapRepeatable"
|
|
291
|
-
) || (m != 0 && m != 1 && m != 2 && m != 3 &&
|
|
292
|
-
|
|
300
|
+
) || (m != 0 && m != 1 && m != 2 && m != 3 && r.nextElementSibling.classList.toggle("d-none"), r.addEventListener("click", () => {
|
|
301
|
+
r.classList.toggle("dpiChevUp"), r.nextElementSibling.classList.toggle("d-none");
|
|
293
302
|
}));
|
|
294
303
|
}), document.querySelectorAll(".formkitProperty");
|
|
295
304
|
});
|
|
@@ -301,7 +310,17 @@ const Fe = Y({
|
|
|
301
310
|
},
|
|
302
311
|
createDatasetID() {
|
|
303
312
|
const e = this.formValues[this.getTitleStep];
|
|
304
|
-
!
|
|
313
|
+
!T(e, "datasetID") || O(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);
|
|
314
|
+
},
|
|
315
|
+
async checkDatasetIdExists(e) {
|
|
316
|
+
try {
|
|
317
|
+
const t = await fetch(
|
|
318
|
+
`${this.$env.api.hubUrl}datasets/${e}`
|
|
319
|
+
);
|
|
320
|
+
return t.status === 200 ? !0 : (t.status === 404, !1);
|
|
321
|
+
} catch (t) {
|
|
322
|
+
return console.error("Error checking dataset ID:", t), !1;
|
|
323
|
+
}
|
|
305
324
|
},
|
|
306
325
|
generateandTranslateSchema(e) {
|
|
307
326
|
for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
|
|
@@ -332,8 +351,23 @@ const Fe = Y({
|
|
|
332
351
|
}
|
|
333
352
|
},
|
|
334
353
|
getFirstTitleFromForm: {
|
|
335
|
-
handler(e, t) {
|
|
336
|
-
e !== t && (localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.isEditMode)
|
|
354
|
+
async handler(e, t) {
|
|
355
|
+
if (e !== t && (localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), !this.isEditMode)) {
|
|
356
|
+
if (!e || e.trim() === "") {
|
|
357
|
+
this.datasetIdExists = !1;
|
|
358
|
+
return;
|
|
359
|
+
}
|
|
360
|
+
const s = this.createIDFromTitle, o = await this.checkDatasetIdExists(
|
|
361
|
+
s
|
|
362
|
+
);
|
|
363
|
+
this.datasetIdExists = o, console.log(
|
|
364
|
+
"Generated ID:",
|
|
365
|
+
//this.formValues[this.getTitleStep].datasetID,
|
|
366
|
+
s,
|
|
367
|
+
"Exists:",
|
|
368
|
+
o
|
|
369
|
+
);
|
|
370
|
+
}
|
|
337
371
|
}
|
|
338
372
|
},
|
|
339
373
|
// the schema is a computed value which gets computed only once so on language change this value must be re-computed
|
|
@@ -343,66 +377,66 @@ const Fe = Y({
|
|
|
343
377
|
}
|
|
344
378
|
}
|
|
345
379
|
},
|
|
346
|
-
beforeRouteEnter(e, t,
|
|
347
|
-
|
|
348
|
-
t.name && !t.name.startsWith("DataProviderInterface") &&
|
|
380
|
+
beforeRouteEnter(e, t, s) {
|
|
381
|
+
s((o) => {
|
|
382
|
+
t.name && !t.name.startsWith("DataProviderInterface") && o.clearAll();
|
|
349
383
|
});
|
|
350
384
|
},
|
|
351
385
|
setup() {
|
|
352
386
|
const e = De(), { isEditMode: t } = Pe(), {
|
|
353
|
-
steps:
|
|
354
|
-
activeStep:
|
|
355
|
-
subSteps:
|
|
387
|
+
steps: s,
|
|
388
|
+
activeStep: o,
|
|
389
|
+
subSteps: r,
|
|
356
390
|
visitedSteps: m,
|
|
357
391
|
previousStep: C,
|
|
358
392
|
nextStep: h,
|
|
359
|
-
stepPlugin:
|
|
360
|
-
goToNextStep:
|
|
393
|
+
stepPlugin: _,
|
|
394
|
+
goToNextStep: D,
|
|
361
395
|
goToPreviousStep: $
|
|
362
|
-
} =
|
|
363
|
-
t:
|
|
364
|
-
te:
|
|
365
|
-
}),
|
|
366
|
-
let { x:
|
|
396
|
+
} = oe(), { formValues: P } = ae(), { t: w, te: F } = te(), A = R(!1), { translateSchema: L, createSchema: E, getSchema: I } = we({
|
|
397
|
+
t: w,
|
|
398
|
+
te: F
|
|
399
|
+
}), n = () => {
|
|
400
|
+
let { x: b, y: q } = Q({ behavior: "smooth" });
|
|
367
401
|
q.value = 0;
|
|
368
|
-
}, u = (
|
|
369
|
-
return t.value && (
|
|
370
|
-
steps:
|
|
402
|
+
}, u = (b) => (s[b].errorCount > 0 || s[b].blockingCount > 0) && m.value.includes(b), d = x({ OverviewPage: $e }), S = R("");
|
|
403
|
+
return t.value && (o.value = "ReviewAndPublish", S.value = "reviewAndPublishPage"), {
|
|
404
|
+
steps: s,
|
|
371
405
|
visitedSteps: m,
|
|
372
|
-
activeStep:
|
|
406
|
+
activeStep: o,
|
|
373
407
|
activeSubStep: S,
|
|
374
|
-
subSteps:
|
|
408
|
+
subSteps: r,
|
|
375
409
|
previousStep: C,
|
|
376
410
|
nextStep: h,
|
|
377
|
-
stepPlugin:
|
|
411
|
+
stepPlugin: _,
|
|
378
412
|
checkStepValidity: u,
|
|
379
|
-
goToNextStep:
|
|
413
|
+
goToNextStep: D,
|
|
380
414
|
goToPreviousStep: $,
|
|
381
|
-
scrollToTop:
|
|
415
|
+
scrollToTop: n,
|
|
382
416
|
library: d,
|
|
383
417
|
isEditMode: t,
|
|
384
|
-
translateSchema:
|
|
385
|
-
createSchema:
|
|
386
|
-
getSchema:
|
|
418
|
+
translateSchema: L,
|
|
419
|
+
createSchema: E,
|
|
420
|
+
getSchema: I,
|
|
387
421
|
dpiContext: e,
|
|
388
|
-
formValues:
|
|
389
|
-
activeSimpleModal:
|
|
422
|
+
formValues: P,
|
|
423
|
+
activeSimpleModal: A
|
|
390
424
|
};
|
|
391
425
|
}
|
|
392
426
|
}), Ae = { class: "form-container V3-typography" }, Le = {
|
|
393
427
|
key: 0,
|
|
394
428
|
ref: "fkInputContainer",
|
|
395
429
|
class: "inputContainer"
|
|
396
|
-
},
|
|
430
|
+
}, Ee = { class: "formContainer formkit" }, Ue = { key: 0 }, Oe = { class: "dpiV3_stepper draftStepper" }, Me = {
|
|
397
431
|
key: 0,
|
|
398
432
|
class: "draftCTA"
|
|
399
|
-
},
|
|
433
|
+
}, je = {
|
|
400
434
|
key: 1,
|
|
401
435
|
class: "draftCTA"
|
|
402
|
-
},
|
|
436
|
+
}, ze = { key: 1 }, He = {
|
|
403
437
|
key: 0,
|
|
404
438
|
class: "dpiV3_stepper"
|
|
405
|
-
}, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"],
|
|
439
|
+
}, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"], Ge = ["textContent"], Ze = { style: { "vertical-align": "middle" } }, Je = { class: "dpiV3_subStepWrapper" }, Qe = {
|
|
406
440
|
key: 0,
|
|
407
441
|
class: "dpiV3_seperatorHorizontalStepper"
|
|
408
442
|
}, Xe = {
|
|
@@ -411,16 +445,16 @@ const Fe = Y({
|
|
|
411
445
|
}, Ye = {
|
|
412
446
|
key: 2,
|
|
413
447
|
class: "dpiV3_subStep"
|
|
414
|
-
}, Ne = { class: "dpiV3_subStepInner" }, xe = { class: "dpiV3_subStepCircleWrap" }, et = ["src"], tt = { style: { height: "20px", display: "flex", "align-items": "center" } },
|
|
448
|
+
}, Ne = { class: "dpiV3_subStepInner" }, xe = { class: "dpiV3_subStepCircleWrap" }, et = ["src"], tt = { style: { height: "20px", display: "flex", "align-items": "center" } }, st = {
|
|
415
449
|
key: 0,
|
|
416
450
|
class: "dpiV3_step dpiV3_inactiveStep"
|
|
417
|
-
},
|
|
451
|
+
}, it = {
|
|
418
452
|
key: 1,
|
|
419
453
|
class: "dpiV3_stepperLanding"
|
|
420
|
-
},
|
|
454
|
+
}, at = { class: "dpiV3_bydata_logo_wordmark" }, ot = { class: "dpiV3_Illustration-Start" }, rt = {
|
|
421
455
|
key: 2,
|
|
422
456
|
class: "steps"
|
|
423
|
-
},
|
|
457
|
+
}, lt = ["data-step-active", "data-step-valid", "onClick"], nt = { class: "stepBubbleWrap" }, dt = { class: "circle stepCircle" }, pt = ["textContent"], ut = {
|
|
424
458
|
key: 0,
|
|
425
459
|
class: "seperatorHorizontalStepper"
|
|
426
460
|
}, ct = {
|
|
@@ -435,19 +469,19 @@ const Fe = Y({
|
|
|
435
469
|
}, gt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" }, bt = {
|
|
436
470
|
key: 3,
|
|
437
471
|
class: "dpiV3_Content_InputPage"
|
|
438
|
-
}, St = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, yt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" },
|
|
472
|
+
}, St = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, yt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" }, kt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, _t = { class: "dpiV3_hvd_frame3846" }, $t = { class: "dpiV3_copy_large_semi_bold" }, It = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Dt = { class: "dpiV3_copy_large_semi_bold" }, Pt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, wt = { class: "dpiV3_hvd_frame3846" }, Ft = { class: "dpiV3_copy_large_semi_bold" }, At = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Lt = { class: "dpiV3_hvd_frame3846" }, Et = { class: "dpiV3_copy_large_semi_bold" }, Ut = { class: "dpiV3_copy_large_regular" }, Ot = {
|
|
439
473
|
key: 5,
|
|
440
474
|
class: "p-1"
|
|
441
475
|
};
|
|
442
|
-
function
|
|
443
|
-
const C = g("TextButtonSmall"), h = g("ButtonV3"),
|
|
444
|
-
return
|
|
445
|
-
e.isInput ? (
|
|
446
|
-
|
|
447
|
-
v(
|
|
476
|
+
function Mt(e, t, s, o, r, m) {
|
|
477
|
+
const C = g("TextButtonSmall"), h = g("ButtonV3"), _ = g("LogoV3"), D = g("PhNumberCircleFive"), $ = g("PhCheckCircle"), P = g("Illustration"), w = g("FormKitSchema"), F = g("PhLightbulb"), A = g("DistributionInputPage"), L = g("InputPageStep"), E = g("FormKit"), I = g("ModalSimpleV3");
|
|
478
|
+
return i(), l("div", Ae, [
|
|
479
|
+
e.isInput ? (i(), l("div", Le, [
|
|
480
|
+
a("div", Ee, [
|
|
481
|
+
v(E, {
|
|
448
482
|
id: "dpiForm",
|
|
449
483
|
modelValue: e.formValues,
|
|
450
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
484
|
+
"onUpdate:modelValue": t[11] || (t[11] = (n) => e.formValues = n),
|
|
451
485
|
type: "form",
|
|
452
486
|
actions: !1,
|
|
453
487
|
plugins: [e.stepPlugin],
|
|
@@ -455,120 +489,120 @@ function jt(e, t, i, n, a, m) {
|
|
|
455
489
|
onSubmit: t[12] || (t[12] = N(() => {
|
|
456
490
|
}, ["prevent"]))
|
|
457
491
|
}, {
|
|
458
|
-
default:
|
|
459
|
-
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (
|
|
460
|
-
|
|
492
|
+
default: M(() => [
|
|
493
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (i(), l("div", Ue, [
|
|
494
|
+
a("div", Oe, [
|
|
461
495
|
v(C, {
|
|
462
496
|
"button-text": "Übersicht",
|
|
463
497
|
"icon-start": "CaretLeft",
|
|
464
498
|
"icon-name": "caretLeft",
|
|
465
499
|
onClick: e.gotToHome
|
|
466
500
|
}, null, 8, ["onClick"]),
|
|
467
|
-
|
|
468
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (
|
|
501
|
+
a("div", null, [
|
|
502
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (i(), l("div", Me, [
|
|
469
503
|
v(h, {
|
|
470
504
|
"button-text": "Veröffentlichung aufheben",
|
|
471
505
|
size: "large",
|
|
472
|
-
onClick: t[0] || (t[0] = (
|
|
506
|
+
onClick: t[0] || (t[0] = (n) => e.navTrigger("depublish"))
|
|
473
507
|
}),
|
|
474
508
|
v(h, {
|
|
475
509
|
"button-text": "Veröffentlicht ansehen",
|
|
476
510
|
variant: "secondary",
|
|
477
511
|
size: "large",
|
|
478
512
|
"icon-end": "Out",
|
|
479
|
-
onClick: t[1] || (t[1] = (
|
|
513
|
+
onClick: t[1] || (t[1] = (n) => e.handlePublishedRoute())
|
|
480
514
|
})
|
|
481
|
-
])) : (
|
|
515
|
+
])) : (i(), l("div", je, [
|
|
482
516
|
v(h, {
|
|
483
517
|
"button-text": "Veröffentlichen",
|
|
484
518
|
size: "large",
|
|
485
|
-
onClick: t[2] || (t[2] = (
|
|
519
|
+
onClick: t[2] || (t[2] = (n) => e.navTrigger("publish"))
|
|
486
520
|
})
|
|
487
521
|
]))
|
|
488
522
|
])
|
|
489
523
|
])
|
|
490
|
-
])) : (
|
|
491
|
-
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (
|
|
492
|
-
v(
|
|
493
|
-
|
|
494
|
-
(
|
|
495
|
-
key:
|
|
524
|
+
])) : (i(), l("div", ze, [
|
|
525
|
+
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (i(), l("div", He, [
|
|
526
|
+
v(_),
|
|
527
|
+
a("ul", Re, [
|
|
528
|
+
(i(!0), l(V, null, k(e.steps, (n, u, d) => j((i(), l("li", {
|
|
529
|
+
key: n,
|
|
496
530
|
class: y(["dpiV3_step", {
|
|
497
531
|
dpiV3_activeItem: e.activeStep === u,
|
|
498
532
|
inactiveStep: u != e.activeStep,
|
|
499
533
|
"has-errors": e.checkStepValidity(u)
|
|
500
534
|
}]),
|
|
501
535
|
"data-step-active": e.activeStep === u,
|
|
502
|
-
"data-step-valid":
|
|
536
|
+
"data-step-valid": n.valid && n.errorCount === 0
|
|
503
537
|
}, [
|
|
504
|
-
|
|
505
|
-
|
|
538
|
+
a("div", We, [
|
|
539
|
+
a("div", {
|
|
506
540
|
class: y(["firstRowWrapper", {
|
|
507
541
|
dpiV3_activeStepName: u === e.activeStep,
|
|
508
542
|
formerlyVisitedStep: e.stepCounter > d,
|
|
509
543
|
"copy-small-regular": e.stepCounter > d
|
|
510
544
|
}])
|
|
511
545
|
}, [
|
|
512
|
-
e.activeStep === u && d < 5 ? (
|
|
546
|
+
e.activeStep === u && d < 5 ? (i(), l("img", {
|
|
513
547
|
key: 0,
|
|
514
548
|
class: "dpiV3_circle dpiV3_stepCircle",
|
|
515
549
|
src: e.selectedImages[d - 1],
|
|
516
550
|
alt: "Selected Icon"
|
|
517
551
|
}, null, 8, qe)) : p("", !0),
|
|
518
|
-
e.activeStep === u && d === 5 ? (
|
|
552
|
+
e.activeStep === u && d === 5 ? (i(), f(D, {
|
|
519
553
|
key: 1,
|
|
520
554
|
size: 28,
|
|
521
555
|
color: "#009FE3",
|
|
522
556
|
weight: "fill"
|
|
523
557
|
})) : p("", !0),
|
|
524
|
-
d < e.stepCounter ? (
|
|
558
|
+
d < e.stepCounter ? (i(), f($, {
|
|
525
559
|
key: 2,
|
|
526
560
|
size: 28,
|
|
527
561
|
color: "#70CC44",
|
|
528
562
|
weight: "fill"
|
|
529
563
|
})) : p("", !0),
|
|
530
|
-
d > e.stepCounter ? (
|
|
564
|
+
d > e.stepCounter ? (i(), l("img", {
|
|
531
565
|
key: 3,
|
|
532
566
|
class: "dpiV3_circle dpiV3_stepCircle",
|
|
533
567
|
src: e.images[d - 1],
|
|
534
568
|
alt: "Selected Icon"
|
|
535
569
|
}, null, 8, Ke)) : p("", !0),
|
|
536
|
-
e.checkStepValidity(u) ? (
|
|
570
|
+
e.checkStepValidity(u) ? (i(), l("span", {
|
|
537
571
|
key: 4,
|
|
538
572
|
class: "dpiV3_step--errors",
|
|
539
|
-
textContent: c(
|
|
540
|
-
}, null, 8,
|
|
541
|
-
|
|
573
|
+
textContent: c(n.errorCount + n.blockingCount)
|
|
574
|
+
}, null, 8, Ge)) : p("", !0),
|
|
575
|
+
a("span", Ze, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
|
|
542
576
|
], 2),
|
|
543
|
-
|
|
544
|
-
d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (
|
|
545
|
-
d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (
|
|
546
|
-
e.activeStep === u ? (
|
|
547
|
-
e.stepCounter < 5 ? (
|
|
577
|
+
a("div", Je, [
|
|
578
|
+
d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (i(), l("div", Qe)) : p("", !0),
|
|
579
|
+
d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (i(), l("div", Xe)) : p("", !0),
|
|
580
|
+
e.activeStep === u ? (i(), l("div", Ye, [
|
|
581
|
+
e.stepCounter < 5 ? (i(!0), l(V, { key: 0 }, k(Object.keys(
|
|
548
582
|
e.subSteps[d]
|
|
549
|
-
), (S,
|
|
550
|
-
|
|
551
|
-
e.substepCounter >
|
|
583
|
+
), (S, b) => (i(), l("div", Ne, [
|
|
584
|
+
a("div", xe, [
|
|
585
|
+
e.substepCounter > b ? (i(), f($, {
|
|
552
586
|
key: 0,
|
|
553
587
|
size: 20,
|
|
554
588
|
color: "#009FE3"
|
|
555
|
-
})) : (
|
|
589
|
+
})) : (i(), l("img", {
|
|
556
590
|
key: 1,
|
|
557
|
-
src: e.getCircles(
|
|
591
|
+
src: e.getCircles(b),
|
|
558
592
|
alt: "circle"
|
|
559
593
|
}, null, 8, et)),
|
|
560
|
-
|
|
594
|
+
b != Object.keys(e.subSteps[d]).length - 1 ? (i(), l("div", {
|
|
561
595
|
key: 2,
|
|
562
596
|
class: y(["dpiV3_seperatorHorizontalStepperInner", {
|
|
563
|
-
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter >
|
|
597
|
+
dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > b
|
|
564
598
|
}])
|
|
565
599
|
}, null, 2)) : p("", !0)
|
|
566
600
|
]),
|
|
567
|
-
|
|
568
|
-
|
|
601
|
+
a("div", tt, [
|
|
602
|
+
a("span", {
|
|
569
603
|
class: y(["large-regular dpiV3_substepText", {
|
|
570
604
|
dpiV3_activeStepDesc: S === e.activeSubStep,
|
|
571
|
-
formerlyVisitedStep: e.substepCounter >
|
|
605
|
+
formerlyVisitedStep: e.substepCounter > b
|
|
572
606
|
}])
|
|
573
607
|
}, c(e.$t(
|
|
574
608
|
`message.dataupload.steps.${S.replace(
|
|
@@ -582,63 +616,63 @@ function jt(e, t, i, n, a, m) {
|
|
|
582
616
|
])
|
|
583
617
|
])
|
|
584
618
|
], 10, Be)), [
|
|
585
|
-
[
|
|
619
|
+
[z, u !== "Landing" && u !== "Additionals"]
|
|
586
620
|
])), 128)),
|
|
587
|
-
e.activeStep === "Overview" ? (
|
|
588
|
-
|
|
621
|
+
e.activeStep === "Overview" ? (i(), l("li", st, t[17] || (t[17] = [
|
|
622
|
+
a("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
|
|
589
623
|
]))) : p("", !0)
|
|
590
624
|
])
|
|
591
|
-
])) : (
|
|
592
|
-
|
|
593
|
-
v(
|
|
625
|
+
])) : (i(), l("div", it, [
|
|
626
|
+
a("div", at, [
|
|
627
|
+
v(_)
|
|
594
628
|
]),
|
|
595
|
-
|
|
596
|
-
v(
|
|
629
|
+
a("div", ot, [
|
|
630
|
+
v(P, { "illustration-name": "start" })
|
|
597
631
|
])
|
|
598
632
|
]))
|
|
599
633
|
])),
|
|
600
|
-
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (
|
|
601
|
-
(
|
|
602
|
-
key:
|
|
634
|
+
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (i(), l("ul", rt, [
|
|
635
|
+
(i(!0), l(V, null, k(e.steps, (n, u, d) => (i(), l("li", {
|
|
636
|
+
key: n,
|
|
603
637
|
class: y(["step", {
|
|
604
638
|
activeItem: e.activeStep === u,
|
|
605
639
|
inactiveStep: u != e.activeStep,
|
|
606
640
|
"has-errors": e.checkStepValidity(u)
|
|
607
641
|
}]),
|
|
608
642
|
"data-step-active": e.activeStep === u,
|
|
609
|
-
"data-step-valid":
|
|
643
|
+
"data-step-valid": n.valid && n.errorCount === 0,
|
|
610
644
|
onClick: (S) => {
|
|
611
645
|
e.activeStep = u, e.update(), e.scrollToTop();
|
|
612
646
|
}
|
|
613
647
|
}, [
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
e.checkStepValidity(u) ? (
|
|
648
|
+
a("div", nt, [
|
|
649
|
+
a("div", dt, c(d + 1), 1),
|
|
650
|
+
e.checkStepValidity(u) ? (i(), l("span", {
|
|
617
651
|
key: 0,
|
|
618
652
|
class: "step--errors",
|
|
619
|
-
textContent: c(
|
|
653
|
+
textContent: c(n.errorCount + n.blockingCount)
|
|
620
654
|
}, null, 8, pt)) : p("", !0),
|
|
621
|
-
|
|
655
|
+
H(c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
|
|
622
656
|
]),
|
|
623
|
-
d != Object.keys(e.steps).length ? (
|
|
624
|
-
], 10,
|
|
625
|
-
e.activeStep === "Overview" ? (
|
|
626
|
-
|
|
657
|
+
d != Object.keys(e.steps).length ? (i(), l("div", ut)) : p("", !0)
|
|
658
|
+
], 10, lt))), 128)),
|
|
659
|
+
e.activeStep === "Overview" ? (i(), l("li", ct, t[18] || (t[18] = [
|
|
660
|
+
a("div", { class: "circle stepCircle" }, null, -1)
|
|
627
661
|
]))) : p("", !0)
|
|
628
662
|
])) : p("", !0),
|
|
629
|
-
(
|
|
663
|
+
(i(!0), l(V, null, k(e.getNavSteps(
|
|
630
664
|
e.$env.content.dataProviderInterface.specification
|
|
631
|
-
)[e.property], (
|
|
665
|
+
)[e.property], (n, u) => (i(), f(L, {
|
|
632
666
|
key: u,
|
|
633
|
-
name:
|
|
667
|
+
name: n
|
|
634
668
|
}, {
|
|
635
|
-
default:
|
|
636
|
-
(
|
|
637
|
-
e.getSchema(e.property).value[
|
|
638
|
-
).length, (d, S) =>
|
|
639
|
-
|
|
669
|
+
default: M(() => [
|
|
670
|
+
(i(!0), l(V, null, k(Object.keys(
|
|
671
|
+
e.getSchema(e.property).value[n]
|
|
672
|
+
).length, (d, S) => j((i(), l("div", ht, [
|
|
673
|
+
n !== "Distributions" && n !== "Additionals" ? (i(), f(w, {
|
|
640
674
|
key: 0,
|
|
641
|
-
schema: e.getSchema(e.property).value[
|
|
675
|
+
schema: e.getSchema(e.property).value[n][S],
|
|
642
676
|
library: e.library,
|
|
643
677
|
"final-values": e.formValues,
|
|
644
678
|
onHandleNav: () => {
|
|
@@ -646,13 +680,13 @@ function jt(e, t, i, n, a, m) {
|
|
|
646
680
|
}, null, 8, ["schema", "library", "final-values"])) : p("", !0)
|
|
647
681
|
], 512)), [
|
|
648
682
|
[
|
|
649
|
-
|
|
683
|
+
z,
|
|
650
684
|
Object.values(
|
|
651
|
-
e.getSchema(e.property).value[
|
|
652
|
-
)[0] === e.activeSubStep.replace(/_\d+$/, "") ||
|
|
685
|
+
e.getSchema(e.property).value[n][S]
|
|
686
|
+
)[0] === e.activeSubStep.replace(/_\d+$/, "") || n === "Landing"
|
|
653
687
|
]
|
|
654
688
|
])), 256)),
|
|
655
|
-
e.activeStep === "Landing" ? (
|
|
689
|
+
e.activeStep === "Landing" ? (i(), l("div", vt, [
|
|
656
690
|
v(h, {
|
|
657
691
|
"button-text": "Abbrechen",
|
|
658
692
|
size: "large",
|
|
@@ -667,15 +701,15 @@ function jt(e, t, i, n, a, m) {
|
|
|
667
701
|
onClick: t[4] || (t[4] = (d) => e.navTrigger("next"))
|
|
668
702
|
})
|
|
669
703
|
])) : p("", !0),
|
|
670
|
-
e.activeStep === "ReviewAndPublish" ? (
|
|
671
|
-
|
|
672
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (
|
|
704
|
+
e.activeStep === "ReviewAndPublish" ? (i(), l("div", mt, [
|
|
705
|
+
a("div", gt, [
|
|
706
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (i(), f(h, {
|
|
673
707
|
key: 0,
|
|
674
708
|
"button-text": "Veröffentlichung aufheben",
|
|
675
709
|
size: "large",
|
|
676
710
|
variant: "secondary",
|
|
677
711
|
onClick: t[5] || (t[5] = (d) => e.navTrigger("depublish"))
|
|
678
|
-
})) : (
|
|
712
|
+
})) : (i(), f(h, {
|
|
679
713
|
key: 1,
|
|
680
714
|
"button-text": "Als Entwurf speichern",
|
|
681
715
|
size: "large",
|
|
@@ -689,7 +723,7 @@ function jt(e, t, i, n, a, m) {
|
|
|
689
723
|
})
|
|
690
724
|
])
|
|
691
725
|
])) : p("", !0),
|
|
692
|
-
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (
|
|
726
|
+
e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (i(), l("div", {
|
|
693
727
|
key: 2,
|
|
694
728
|
class: y(["dpiV3_CTA", {
|
|
695
729
|
dpiV3_activeInfobox: e.activeSubStep.includes("hvdPage")
|
|
@@ -701,8 +735,8 @@ function jt(e, t, i, n, a, m) {
|
|
|
701
735
|
variant: "tertiary",
|
|
702
736
|
onClick: t[8] || (t[8] = (d) => e.activeSimpleModal = !0)
|
|
703
737
|
}),
|
|
704
|
-
|
|
705
|
-
e.activeStep !== "Landing" ? (
|
|
738
|
+
a("div", ft, [
|
|
739
|
+
e.activeStep !== "Landing" ? (i(), f(h, {
|
|
706
740
|
key: 0,
|
|
707
741
|
"icon-start": "CaretLeft",
|
|
708
742
|
"button-text": "Zurück",
|
|
@@ -718,71 +752,71 @@ function jt(e, t, i, n, a, m) {
|
|
|
718
752
|
})
|
|
719
753
|
])
|
|
720
754
|
], 2)) : p("", !0),
|
|
721
|
-
e.activeSubStep.includes("hvdPage") ? (
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
v(
|
|
755
|
+
e.activeSubStep.includes("hvdPage") ? (i(), l("div", bt, [
|
|
756
|
+
a("div", St, [
|
|
757
|
+
a("div", Ct, [
|
|
758
|
+
v(F, {
|
|
725
759
|
size: 32,
|
|
726
760
|
color: "#009fe3"
|
|
727
761
|
}),
|
|
728
|
-
|
|
762
|
+
a("div", yt, c(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
|
|
729
763
|
]),
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
764
|
+
a("div", Vt, [
|
|
765
|
+
a("div", kt, c(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
|
|
766
|
+
a("div", _t, [
|
|
767
|
+
a("div", $t, " 1. " + c(e.$t(
|
|
734
768
|
"message.dataupload.datasets.hvdPage.tips-question-1"
|
|
735
769
|
)), 1),
|
|
736
|
-
|
|
737
|
-
|
|
770
|
+
a("ul", It, [
|
|
771
|
+
a("li", null, c(e.$t(
|
|
738
772
|
"message.dataupload.datasets.hvdPage.hvd-category-1"
|
|
739
773
|
)), 1),
|
|
740
|
-
|
|
774
|
+
a("li", null, c(e.$t(
|
|
741
775
|
"message.dataupload.datasets.hvdPage.hvd-category-2"
|
|
742
776
|
)), 1),
|
|
743
|
-
|
|
777
|
+
a("li", null, c(e.$t(
|
|
744
778
|
"message.dataupload.datasets.hvdPage.hvd-category-3"
|
|
745
779
|
)), 1),
|
|
746
|
-
|
|
780
|
+
a("li", null, c(e.$t(
|
|
747
781
|
"message.dataupload.datasets.hvdPage.hvd-category-4"
|
|
748
782
|
)), 1),
|
|
749
|
-
|
|
783
|
+
a("li", null, c(e.$t(
|
|
750
784
|
"message.dataupload.datasets.hvdPage.hvd-category-5"
|
|
751
785
|
)), 1),
|
|
752
|
-
|
|
786
|
+
a("li", null, c(e.$t(
|
|
753
787
|
"message.dataupload.datasets.hvdPage.hvd-category-6"
|
|
754
788
|
)), 1)
|
|
755
789
|
])
|
|
756
790
|
]),
|
|
757
|
-
|
|
758
|
-
|
|
791
|
+
a("div", Tt, [
|
|
792
|
+
a("div", Dt, " 2. " + c(e.$t(
|
|
759
793
|
"message.dataupload.datasets.hvdPage.tips-question-2"
|
|
760
794
|
)), 1),
|
|
761
|
-
|
|
795
|
+
a("p", Pt, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
|
|
762
796
|
]),
|
|
763
|
-
|
|
764
|
-
|
|
797
|
+
a("div", wt, [
|
|
798
|
+
a("div", Ft, " 3. " + c(e.$t(
|
|
765
799
|
"message.dataupload.datasets.hvdPage.tips-question-3"
|
|
766
800
|
)), 1),
|
|
767
|
-
|
|
801
|
+
a("p", At, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
|
|
768
802
|
]),
|
|
769
|
-
|
|
770
|
-
|
|
803
|
+
a("div", Lt, [
|
|
804
|
+
a("div", Et, " 4. " + c(e.$t(
|
|
771
805
|
"message.dataupload.datasets.hvdPage.tips-question-4"
|
|
772
806
|
)), 1),
|
|
773
|
-
|
|
807
|
+
a("p", Ut, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
|
|
774
808
|
])
|
|
775
809
|
])
|
|
776
810
|
])
|
|
777
811
|
])) : p("", !0),
|
|
778
|
-
|
|
812
|
+
n === "Distributions" ? (i(), f(A, {
|
|
779
813
|
key: 4,
|
|
780
814
|
schema: e.getSchema("distributions"),
|
|
781
815
|
values: e.formValues
|
|
782
816
|
}, null, 8, ["schema", "values"])) : p("", !0),
|
|
783
|
-
|
|
784
|
-
t[
|
|
785
|
-
|
|
817
|
+
n === "Mandatory" ? (i(), l("p", Ot, [
|
|
818
|
+
t[19] || (t[19] = a("b", null, "*", -1)),
|
|
819
|
+
H(" " + c(e.$t("message.dataupload.info.mandatory")), 1)
|
|
786
820
|
])) : p("", !0)
|
|
787
821
|
]),
|
|
788
822
|
_: 2
|
|
@@ -790,20 +824,30 @@ function jt(e, t, i, n, a, m) {
|
|
|
790
824
|
]),
|
|
791
825
|
_: 1
|
|
792
826
|
}, 8, ["modelValue", "plugins"]),
|
|
793
|
-
e.activeSimpleModal ? (
|
|
827
|
+
e.activeSimpleModal ? (i(), f(I, {
|
|
794
828
|
key: 0,
|
|
795
829
|
buttons: e.modalSimpleConf.button,
|
|
796
830
|
"header-text": e.modalSimpleConf.header,
|
|
797
831
|
text: e.modalSimpleConf.text,
|
|
798
832
|
action: e.modalSimpleConf.action,
|
|
799
|
-
onClose: t[13] || (t[13] = (
|
|
800
|
-
onActionHandling: t[14] || (t[14] = (
|
|
801
|
-
}, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
|
|
833
|
+
onClose: t[13] || (t[13] = (n) => e.activeSimpleModal = !1),
|
|
834
|
+
onActionHandling: t[14] || (t[14] = (n) => e.gotToHome())
|
|
835
|
+
}, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0),
|
|
836
|
+
e.duplicateTitleModal ? (i(), f(I, {
|
|
837
|
+
key: 1,
|
|
838
|
+
class: "duplicate-title-modal",
|
|
839
|
+
buttons: "Okay",
|
|
840
|
+
"header-text": `Dataset with title '${e.duplicateDatasetTitle}' already exists`,
|
|
841
|
+
text: "Please choose another title before continuing.",
|
|
842
|
+
action: "close",
|
|
843
|
+
onClose: t[15] || (t[15] = (n) => e.duplicateTitleModal = !1),
|
|
844
|
+
onActionHandling: t[16] || (t[16] = (n) => e.duplicateTitleModal = !1)
|
|
845
|
+
}, null, 8, ["header-text"])) : p("", !0)
|
|
802
846
|
])
|
|
803
847
|
], 512)) : p("", !0)
|
|
804
848
|
]);
|
|
805
849
|
}
|
|
806
|
-
const
|
|
850
|
+
const Is = /* @__PURE__ */ Te(Fe, [["render", Mt]]);
|
|
807
851
|
export {
|
|
808
|
-
|
|
852
|
+
Is as default
|
|
809
853
|
};
|