@piveau/dpi 0.1.0-beta.57 → 0.1.0-beta.59
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.
|
@@ -3,8 +3,8 @@ import "@formkit/vue";
|
|
|
3
3
|
import { PhNumberCircleFive as Z, PhCheckCircle as G, 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 I, isNil as
|
|
7
|
-
import { defineComponent as Y, resolveComponent as g, createElementBlock as r, openBlock as s, createCommentVNode as p, createElementVNode as o, createVNode as
|
|
6
|
+
import { has as I, isNil as U } from "lodash-es";
|
|
7
|
+
import { defineComponent as Y, resolveComponent as g, createElementBlock as r, openBlock as s, createCommentVNode as p, createElementVNode as o, createVNode as v, createBlock as b, withModifiers as N, withCtx as j, Fragment as V, renderList as _, withDirectives as z, normalizeClass as y, toDisplayString as c, vShow as H, createTextVNode as M, 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
10
|
import ie from "../components/InputPageStep.vue.js";
|
|
@@ -24,13 +24,13 @@ import ve from "../HappyFlowComponents/img/Selected4.svg.js";
|
|
|
24
24
|
import me from "../HappyFlowComponents/img/Selected4_2.svg.js";
|
|
25
25
|
import ge from "../HappyFlowComponents/img/Selected5.svg.js";
|
|
26
26
|
import fe from "../HappyFlowComponents/img/Selected5_2.svg.js";
|
|
27
|
-
import { eventBus as
|
|
28
|
-
import
|
|
27
|
+
import { eventBus as be } from "../HappyFlowComponents/services/eventBus.js";
|
|
28
|
+
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 _e from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
33
|
+
import ke from "./DistributionInputPage.vue.js";
|
|
34
34
|
import $e from "./OverviewPage.vue.js";
|
|
35
35
|
import Ie from "./PropertyChooser.vue.js";
|
|
36
36
|
/* empty css */
|
|
@@ -84,12 +84,12 @@ const Fe = Y({
|
|
|
84
84
|
},
|
|
85
85
|
components: {
|
|
86
86
|
InputPageStep: ie,
|
|
87
|
-
DistributionInputPage:
|
|
87
|
+
DistributionInputPage: ke,
|
|
88
88
|
PropertyChooser: Ie,
|
|
89
89
|
Navigation: se,
|
|
90
90
|
LogoV3: ye,
|
|
91
|
-
ButtonV3:
|
|
92
|
-
TextButtonSmall:
|
|
91
|
+
ButtonV3: Se,
|
|
92
|
+
TextButtonSmall: _e,
|
|
93
93
|
Illustration: Ce,
|
|
94
94
|
PhLightbulb: J,
|
|
95
95
|
PhCheckCircle: G,
|
|
@@ -116,7 +116,7 @@ const Fe = Y({
|
|
|
116
116
|
getFirstTitleFromForm() {
|
|
117
117
|
try {
|
|
118
118
|
const e = this.formValues[this.getTitleStep];
|
|
119
|
-
return I(e, "dct:title") && e["dct:title"].length > 0 && I(e["dct:title"][0], "@value") && !
|
|
119
|
+
return I(e, "dct:title") && e["dct:title"].length > 0 && I(e["dct:title"][0], "@value") && !U(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
120
120
|
} catch {
|
|
121
121
|
}
|
|
122
122
|
},
|
|
@@ -146,7 +146,7 @@ const Fe = Y({
|
|
|
146
146
|
((i = (t = (e = this.formValues[this.activeStep]) == null ? void 0 : e[this.activeSubStep]) == null ? void 0 : t[0]) == null ? void 0 : i.isValid) === !0 || ((n = this.formValues[this.activeStep][this.activeSubStep]) == null ? void 0 : n.isValid) === !0 ? this.navTrigger("next") : ((a = this.formValues[this.activeStep][this.activeSubStep]) != null && a[0] ? this.formValues[this.activeStep][this.activeSubStep][0].isValid = !1 : this.formValues[this.activeStep][this.activeSubStep].isValid = !1, this.handleDistributionsValidation(this.activeSubStep));
|
|
147
147
|
},
|
|
148
148
|
handleDistributionsValidation(e) {
|
|
149
|
-
|
|
149
|
+
be.emit("nextClicked", e);
|
|
150
150
|
},
|
|
151
151
|
gotToHome() {
|
|
152
152
|
window.location.href = this.$router.resolve({
|
|
@@ -157,12 +157,12 @@ const Fe = Y({
|
|
|
157
157
|
try {
|
|
158
158
|
let i = [];
|
|
159
159
|
if (Object.keys(this.steps).forEach((n, a) => {
|
|
160
|
-
let
|
|
160
|
+
let m = {
|
|
161
161
|
step: n,
|
|
162
162
|
substeps: this.subSteps[a],
|
|
163
163
|
substepCount: Object.keys(this.subSteps[a]).length
|
|
164
164
|
};
|
|
165
|
-
i.push(
|
|
165
|
+
i.push(m);
|
|
166
166
|
}), e === "next" && (i[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === i[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = i[this.stepCounter].step, this.activeSubStep = Object.keys(
|
|
167
167
|
i[this.stepCounter].substeps
|
|
168
168
|
)[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
|
|
@@ -248,16 +248,16 @@ const Fe = Y({
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
async dispatchDataToDPI(e, t, i, n) {
|
|
251
|
-
var a,
|
|
251
|
+
var a, m;
|
|
252
252
|
try {
|
|
253
|
-
n === "publish" && (i.token = this.getUserData.rtpToken,
|
|
253
|
+
n === "publish" && (i.token = this.getUserData.rtpToken, localStorage.getItem("dpi_draftmode") === "true" && localStorage.getItem("dpi_editmode") === "true" ? i.url = `${this.$env.api.hubUrl}drafts/datasets/publish/${i.id}?catalogue=${i.catalog}` : i.url = `${this.$env.api.hubUrl}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`, await this.$store.dispatch(t, i)), n === "draft" && await this.$store.dispatch(t, i), n === "depublish" && await this.$store.dispatch("auth/putDatasetToDraft", {
|
|
254
254
|
id: i.id,
|
|
255
255
|
catalog: i.catalog,
|
|
256
256
|
title: i.title,
|
|
257
257
|
description: i.description
|
|
258
258
|
}), (a = this.$Progress) == null || a.finish(), this.clearAll();
|
|
259
259
|
} catch (C) {
|
|
260
|
-
console.error(C), (
|
|
260
|
+
console.error(C), (m = this.$Progress) == null || m.fail();
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
263
|
dropdownCLick() {
|
|
@@ -285,10 +285,10 @@ const Fe = Y({
|
|
|
285
285
|
X('[data-bs-toggle="tooltip"]').tooltip({
|
|
286
286
|
container: "body"
|
|
287
287
|
}), setTimeout(() => {
|
|
288
|
-
document.querySelectorAll(".formkitProperty h4").forEach((a,
|
|
288
|
+
document.querySelectorAll(".formkitProperty h4").forEach((a, m) => {
|
|
289
289
|
a.parentElement.parentElement.classList.contains(
|
|
290
290
|
"formkitWrapRepeatable"
|
|
291
|
-
) || (
|
|
291
|
+
) || (m != 0 && m != 1 && m != 2 && m != 3 && a.nextElementSibling.classList.toggle("d-none"), a.addEventListener("click", () => {
|
|
292
292
|
a.classList.toggle("dpiChevUp"), a.nextElementSibling.classList.toggle("d-none");
|
|
293
293
|
}));
|
|
294
294
|
}), document.querySelectorAll(".formkitProperty");
|
|
@@ -301,7 +301,7 @@ const Fe = Y({
|
|
|
301
301
|
},
|
|
302
302
|
createDatasetID() {
|
|
303
303
|
const e = this.formValues[this.getTitleStep];
|
|
304
|
-
!I(e, "datasetID") ||
|
|
304
|
+
!I(e, "datasetID") || U(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);
|
|
305
305
|
},
|
|
306
306
|
generateandTranslateSchema(e) {
|
|
307
307
|
for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
|
|
@@ -353,10 +353,10 @@ const Fe = Y({
|
|
|
353
353
|
steps: i,
|
|
354
354
|
activeStep: n,
|
|
355
355
|
subSteps: a,
|
|
356
|
-
visitedSteps:
|
|
356
|
+
visitedSteps: m,
|
|
357
357
|
previousStep: C,
|
|
358
|
-
nextStep:
|
|
359
|
-
stepPlugin:
|
|
358
|
+
nextStep: h,
|
|
359
|
+
stepPlugin: k,
|
|
360
360
|
goToNextStep: T,
|
|
361
361
|
goToPreviousStep: $
|
|
362
362
|
} = ae(), { formValues: P } = oe(), { t: D, te: w } = te(), F = R(!1), { translateSchema: A, createSchema: L, getSchema: O } = we({
|
|
@@ -365,16 +365,16 @@ const Fe = Y({
|
|
|
365
365
|
}), l = () => {
|
|
366
366
|
let { x: f, y: q } = Q({ behavior: "smooth" });
|
|
367
367
|
q.value = 0;
|
|
368
|
-
}, u = (f) => (i[f].errorCount > 0 || i[f].blockingCount > 0) &&
|
|
369
|
-
return t.value && (n.value = "ReviewAndPublish",
|
|
368
|
+
}, u = (f) => (i[f].errorCount > 0 || i[f].blockingCount > 0) && m.value.includes(f), d = x({ OverviewPage: $e }), S = R("");
|
|
369
|
+
return t.value && (n.value = "ReviewAndPublish", S.value = "reviewAndPublishPage"), {
|
|
370
370
|
steps: i,
|
|
371
|
-
visitedSteps:
|
|
371
|
+
visitedSteps: m,
|
|
372
372
|
activeStep: n,
|
|
373
|
-
activeSubStep:
|
|
373
|
+
activeSubStep: S,
|
|
374
374
|
subSteps: a,
|
|
375
375
|
previousStep: C,
|
|
376
|
-
nextStep:
|
|
377
|
-
stepPlugin:
|
|
376
|
+
nextStep: h,
|
|
377
|
+
stepPlugin: k,
|
|
378
378
|
checkStepValidity: u,
|
|
379
379
|
goToNextStep: T,
|
|
380
380
|
goToPreviousStep: $,
|
|
@@ -393,10 +393,10 @@ const Fe = Y({
|
|
|
393
393
|
key: 0,
|
|
394
394
|
ref: "fkInputContainer",
|
|
395
395
|
class: "inputContainer"
|
|
396
|
-
}, Oe = { class: "formContainer formkit" }, Ee = { key: 0 },
|
|
396
|
+
}, Oe = { class: "formContainer formkit" }, Ee = { key: 0 }, Ue = { class: "dpiV3_stepper draftStepper" }, je = {
|
|
397
397
|
key: 0,
|
|
398
398
|
class: "draftCTA"
|
|
399
|
-
},
|
|
399
|
+
}, ze = {
|
|
400
400
|
key: 1,
|
|
401
401
|
class: "draftCTA"
|
|
402
402
|
}, He = { key: 1 }, Me = {
|
|
@@ -432,19 +432,19 @@ const Fe = Y({
|
|
|
432
432
|
}, mt = {
|
|
433
433
|
key: 1,
|
|
434
434
|
class: "dpiV3_CTA_RaP"
|
|
435
|
-
}, gt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" },
|
|
435
|
+
}, gt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" }, bt = {
|
|
436
436
|
key: 3,
|
|
437
437
|
class: "dpiV3_Content_InputPage"
|
|
438
|
-
},
|
|
438
|
+
}, St = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, yt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" }, _t = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, kt = { class: "dpiV3_hvd_frame3846" }, $t = { class: "dpiV3_copy_large_semi_bold" }, It = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Pt = { class: "dpiV3_copy_large_semi_bold" }, Dt = { 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" }, Ot = { class: "dpiV3_copy_large_semi_bold" }, Et = { class: "dpiV3_copy_large_regular" }, Ut = {
|
|
439
439
|
key: 5,
|
|
440
440
|
class: "p-1"
|
|
441
441
|
};
|
|
442
|
-
function
|
|
443
|
-
const C = g("TextButtonSmall"),
|
|
442
|
+
function jt(e, t, i, n, a, m) {
|
|
443
|
+
const C = g("TextButtonSmall"), h = g("ButtonV3"), k = g("LogoV3"), T = g("PhNumberCircleFive"), $ = g("PhCheckCircle"), P = g("Illustration"), D = g("FormKitSchema"), w = g("PhLightbulb"), F = g("DistributionInputPage"), A = g("InputPageStep"), L = g("FormKit"), O = g("ModalSimpleV3");
|
|
444
444
|
return s(), r("div", Ae, [
|
|
445
445
|
e.isInput ? (s(), r("div", Le, [
|
|
446
446
|
o("div", Oe, [
|
|
447
|
-
|
|
447
|
+
v(L, {
|
|
448
448
|
id: "dpiForm",
|
|
449
449
|
modelValue: e.formValues,
|
|
450
450
|
"onUpdate:modelValue": t[11] || (t[11] = (l) => e.formValues = l),
|
|
@@ -455,31 +455,31 @@ function zt(e, t, i, n, a, v) {
|
|
|
455
455
|
onSubmit: t[12] || (t[12] = N(() => {
|
|
456
456
|
}, ["prevent"]))
|
|
457
457
|
}, {
|
|
458
|
-
default:
|
|
458
|
+
default: j(() => [
|
|
459
459
|
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div", Ee, [
|
|
460
|
-
o("div",
|
|
461
|
-
|
|
460
|
+
o("div", Ue, [
|
|
461
|
+
v(C, {
|
|
462
462
|
"button-text": "Übersicht",
|
|
463
463
|
"icon-start": "CaretLeft",
|
|
464
464
|
"icon-name": "caretLeft",
|
|
465
465
|
onClick: e.gotToHome
|
|
466
466
|
}, null, 8, ["onClick"]),
|
|
467
467
|
o("div", null, [
|
|
468
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), r("div",
|
|
469
|
-
h
|
|
468
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), r("div", je, [
|
|
469
|
+
v(h, {
|
|
470
470
|
"button-text": "Veröffentlichung aufheben",
|
|
471
471
|
size: "large",
|
|
472
472
|
onClick: t[0] || (t[0] = (l) => e.navTrigger("depublish"))
|
|
473
473
|
}),
|
|
474
|
-
h
|
|
474
|
+
v(h, {
|
|
475
475
|
"button-text": "Veröffentlicht ansehen",
|
|
476
476
|
variant: "secondary",
|
|
477
477
|
size: "large",
|
|
478
478
|
"icon-end": "Out",
|
|
479
479
|
onClick: t[1] || (t[1] = (l) => e.handlePublishedRoute())
|
|
480
480
|
})
|
|
481
|
-
])) : (s(), r("div",
|
|
482
|
-
h
|
|
481
|
+
])) : (s(), r("div", ze, [
|
|
482
|
+
v(h, {
|
|
483
483
|
"button-text": "Veröffentlichen",
|
|
484
484
|
size: "large",
|
|
485
485
|
onClick: t[2] || (t[2] = (l) => e.navTrigger("publish"))
|
|
@@ -489,9 +489,9 @@ function zt(e, t, i, n, a, v) {
|
|
|
489
489
|
])
|
|
490
490
|
])) : (s(), r("div", He, [
|
|
491
491
|
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), r("div", Me, [
|
|
492
|
-
|
|
492
|
+
v(k),
|
|
493
493
|
o("ul", Re, [
|
|
494
|
-
(s(!0), r(V, null,
|
|
494
|
+
(s(!0), r(V, null, _(e.steps, (l, u, d) => z((s(), r("li", {
|
|
495
495
|
key: l,
|
|
496
496
|
class: y(["dpiV3_step", {
|
|
497
497
|
dpiV3_activeItem: e.activeStep === u,
|
|
@@ -515,13 +515,13 @@ function zt(e, t, i, n, a, v) {
|
|
|
515
515
|
src: e.selectedImages[d - 1],
|
|
516
516
|
alt: "Selected Icon"
|
|
517
517
|
}, null, 8, qe)) : p("", !0),
|
|
518
|
-
e.activeStep === u && d === 5 ? (s(),
|
|
518
|
+
e.activeStep === u && d === 5 ? (s(), b(T, {
|
|
519
519
|
key: 1,
|
|
520
520
|
size: 28,
|
|
521
521
|
color: "#009FE3",
|
|
522
522
|
weight: "fill"
|
|
523
523
|
})) : p("", !0),
|
|
524
|
-
d < e.stepCounter ? (s(),
|
|
524
|
+
d < e.stepCounter ? (s(), b($, {
|
|
525
525
|
key: 2,
|
|
526
526
|
size: 28,
|
|
527
527
|
color: "#70CC44",
|
|
@@ -544,11 +544,11 @@ function zt(e, t, i, n, a, v) {
|
|
|
544
544
|
d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), r("div", Qe)) : p("", !0),
|
|
545
545
|
d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), r("div", Xe)) : p("", !0),
|
|
546
546
|
e.activeStep === u ? (s(), r("div", Ye, [
|
|
547
|
-
e.stepCounter < 5 ? (s(!0), r(V, { key: 0 },
|
|
547
|
+
e.stepCounter < 5 ? (s(!0), r(V, { key: 0 }, _(Object.keys(
|
|
548
548
|
e.subSteps[d]
|
|
549
|
-
), (
|
|
549
|
+
), (S, f) => (s(), r("div", Ne, [
|
|
550
550
|
o("div", xe, [
|
|
551
|
-
e.substepCounter > f ? (s(),
|
|
551
|
+
e.substepCounter > f ? (s(), b($, {
|
|
552
552
|
key: 0,
|
|
553
553
|
size: 20,
|
|
554
554
|
color: "#009FE3"
|
|
@@ -567,11 +567,11 @@ function zt(e, t, i, n, a, v) {
|
|
|
567
567
|
o("div", tt, [
|
|
568
568
|
o("span", {
|
|
569
569
|
class: y(["large-regular dpiV3_substepText", {
|
|
570
|
-
dpiV3_activeStepDesc:
|
|
570
|
+
dpiV3_activeStepDesc: S === e.activeSubStep,
|
|
571
571
|
formerlyVisitedStep: e.substepCounter > f
|
|
572
572
|
}])
|
|
573
573
|
}, c(e.$t(
|
|
574
|
-
`message.dataupload.steps.${
|
|
574
|
+
`message.dataupload.steps.${S.replace(
|
|
575
575
|
/_\d+$/,
|
|
576
576
|
""
|
|
577
577
|
)}`
|
|
@@ -590,15 +590,15 @@ function zt(e, t, i, n, a, v) {
|
|
|
590
590
|
])
|
|
591
591
|
])) : (s(), r("div", st, [
|
|
592
592
|
o("div", ot, [
|
|
593
|
-
|
|
593
|
+
v(k)
|
|
594
594
|
]),
|
|
595
595
|
o("div", at, [
|
|
596
|
-
|
|
596
|
+
v(P, { "illustration-name": "start" })
|
|
597
597
|
])
|
|
598
598
|
]))
|
|
599
599
|
])),
|
|
600
600
|
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), r("ul", rt, [
|
|
601
|
-
(s(!0), r(V, null,
|
|
601
|
+
(s(!0), r(V, null, _(e.steps, (l, u, d) => (s(), r("li", {
|
|
602
602
|
key: l,
|
|
603
603
|
class: y(["step", {
|
|
604
604
|
activeItem: e.activeStep === u,
|
|
@@ -607,7 +607,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
607
607
|
}]),
|
|
608
608
|
"data-step-active": e.activeStep === u,
|
|
609
609
|
"data-step-valid": l.valid && l.errorCount === 0,
|
|
610
|
-
onClick: (
|
|
610
|
+
onClick: (S) => {
|
|
611
611
|
e.activeStep = u, e.update(), e.scrollToTop();
|
|
612
612
|
}
|
|
613
613
|
}, [
|
|
@@ -626,19 +626,19 @@ function zt(e, t, i, n, a, v) {
|
|
|
626
626
|
o("div", { class: "circle stepCircle" }, null, -1)
|
|
627
627
|
]))) : p("", !0)
|
|
628
628
|
])) : p("", !0),
|
|
629
|
-
(s(!0), r(V, null,
|
|
629
|
+
(s(!0), r(V, null, _(e.getNavSteps(
|
|
630
630
|
e.$env.content.dataProviderInterface.specification
|
|
631
|
-
)[e.property], (l, u) => (s(),
|
|
631
|
+
)[e.property], (l, u) => (s(), b(A, {
|
|
632
632
|
key: u,
|
|
633
633
|
name: l
|
|
634
634
|
}, {
|
|
635
|
-
default:
|
|
636
|
-
(s(!0), r(V, null,
|
|
635
|
+
default: j(() => [
|
|
636
|
+
(s(!0), r(V, null, _(Object.keys(
|
|
637
637
|
e.getSchema(e.property).value[l]
|
|
638
|
-
).length, (d,
|
|
639
|
-
l !== "Distributions" && l !== "Additionals" ? (s(),
|
|
638
|
+
).length, (d, S) => z((s(), r("div", ht, [
|
|
639
|
+
l !== "Distributions" && l !== "Additionals" ? (s(), b(D, {
|
|
640
640
|
key: 0,
|
|
641
|
-
schema: e.getSchema(e.property).value[l][
|
|
641
|
+
schema: e.getSchema(e.property).value[l][S],
|
|
642
642
|
library: e.library,
|
|
643
643
|
"final-values": e.formValues,
|
|
644
644
|
onHandleNav: () => {
|
|
@@ -648,12 +648,12 @@ function zt(e, t, i, n, a, v) {
|
|
|
648
648
|
[
|
|
649
649
|
H,
|
|
650
650
|
Object.values(
|
|
651
|
-
e.getSchema(e.property).value[l][
|
|
651
|
+
e.getSchema(e.property).value[l][S]
|
|
652
652
|
)[0] === e.activeSubStep.replace(/_\d+$/, "") || l === "Landing"
|
|
653
653
|
]
|
|
654
654
|
])), 256)),
|
|
655
655
|
e.activeStep === "Landing" ? (s(), r("div", vt, [
|
|
656
|
-
h
|
|
656
|
+
v(h, {
|
|
657
657
|
"button-text": "Abbrechen",
|
|
658
658
|
size: "large",
|
|
659
659
|
variant: "tertiary",
|
|
@@ -661,7 +661,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
661
661
|
e.activeSimpleModal = !0, console.log(e.activeSimpleModal);
|
|
662
662
|
})
|
|
663
663
|
}),
|
|
664
|
-
h
|
|
664
|
+
v(h, {
|
|
665
665
|
"button-text": "Datenbereitstellung starten",
|
|
666
666
|
size: "large",
|
|
667
667
|
onClick: t[4] || (t[4] = (d) => e.navTrigger("next"))
|
|
@@ -669,20 +669,20 @@ function zt(e, t, i, n, a, v) {
|
|
|
669
669
|
])) : p("", !0),
|
|
670
670
|
e.activeStep === "ReviewAndPublish" ? (s(), r("div", mt, [
|
|
671
671
|
o("div", gt, [
|
|
672
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(),
|
|
672
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), b(h, {
|
|
673
673
|
key: 0,
|
|
674
674
|
"button-text": "Veröffentlichung aufheben",
|
|
675
675
|
size: "large",
|
|
676
676
|
variant: "secondary",
|
|
677
677
|
onClick: t[5] || (t[5] = (d) => e.navTrigger("depublish"))
|
|
678
|
-
})) : (s(),
|
|
678
|
+
})) : (s(), b(h, {
|
|
679
679
|
key: 1,
|
|
680
680
|
"button-text": "Als Entwurf speichern",
|
|
681
681
|
size: "large",
|
|
682
682
|
variant: "secondary",
|
|
683
683
|
onClick: t[6] || (t[6] = (d) => e.navTrigger("draft"))
|
|
684
684
|
})),
|
|
685
|
-
h
|
|
685
|
+
v(h, {
|
|
686
686
|
"button-text": "Veröffentlichen",
|
|
687
687
|
size: "large",
|
|
688
688
|
onClick: t[7] || (t[7] = (d) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
|
|
@@ -695,14 +695,14 @@ function zt(e, t, i, n, a, v) {
|
|
|
695
695
|
dpiV3_activeInfobox: e.activeSubStep.includes("hvdPage")
|
|
696
696
|
}])
|
|
697
697
|
}, [
|
|
698
|
-
h
|
|
698
|
+
v(h, {
|
|
699
699
|
"button-text": "Abbrechen",
|
|
700
700
|
size: "large",
|
|
701
701
|
variant: "tertiary",
|
|
702
702
|
onClick: t[8] || (t[8] = (d) => e.activeSimpleModal = !0)
|
|
703
703
|
}),
|
|
704
704
|
o("div", ft, [
|
|
705
|
-
e.activeStep !== "Landing" ? (s(),
|
|
705
|
+
e.activeStep !== "Landing" ? (s(), b(h, {
|
|
706
706
|
key: 0,
|
|
707
707
|
"icon-start": "CaretLeft",
|
|
708
708
|
"button-text": "Zurück",
|
|
@@ -710,7 +710,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
710
710
|
variant: "secondary",
|
|
711
711
|
onClick: t[9] || (t[9] = (d) => e.navTrigger("prev"))
|
|
712
712
|
})) : p("", !0),
|
|
713
|
-
h
|
|
713
|
+
v(h, {
|
|
714
714
|
"icon-end": "CaretRight",
|
|
715
715
|
"button-text": "Weiter",
|
|
716
716
|
size: "large",
|
|
@@ -718,18 +718,18 @@ function zt(e, t, i, n, a, v) {
|
|
|
718
718
|
})
|
|
719
719
|
])
|
|
720
720
|
], 2)) : p("", !0),
|
|
721
|
-
e.activeSubStep.includes("hvdPage") ? (s(), r("div",
|
|
722
|
-
o("div",
|
|
721
|
+
e.activeSubStep.includes("hvdPage") ? (s(), r("div", bt, [
|
|
722
|
+
o("div", St, [
|
|
723
723
|
o("div", Ct, [
|
|
724
|
-
|
|
724
|
+
v(w, {
|
|
725
725
|
size: 32,
|
|
726
726
|
color: "#009fe3"
|
|
727
727
|
}),
|
|
728
728
|
o("div", yt, c(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
|
|
729
729
|
]),
|
|
730
730
|
o("div", Vt, [
|
|
731
|
-
o("div",
|
|
732
|
-
o("div",
|
|
731
|
+
o("div", _t, c(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
|
|
732
|
+
o("div", kt, [
|
|
733
733
|
o("div", $t, " 1. " + c(e.$t(
|
|
734
734
|
"message.dataupload.datasets.hvdPage.tips-question-1"
|
|
735
735
|
)), 1),
|
|
@@ -775,12 +775,12 @@ function zt(e, t, i, n, a, v) {
|
|
|
775
775
|
])
|
|
776
776
|
])
|
|
777
777
|
])) : p("", !0),
|
|
778
|
-
l === "Distributions" ? (s(),
|
|
778
|
+
l === "Distributions" ? (s(), b(F, {
|
|
779
779
|
key: 4,
|
|
780
780
|
schema: e.getSchema("distributions"),
|
|
781
781
|
values: e.formValues
|
|
782
782
|
}, null, 8, ["schema", "values"])) : p("", !0),
|
|
783
|
-
l === "Mandatory" ? (s(), r("p",
|
|
783
|
+
l === "Mandatory" ? (s(), r("p", Ut, [
|
|
784
784
|
t[17] || (t[17] = o("b", null, "*", -1)),
|
|
785
785
|
M(" " + c(e.$t("message.dataupload.info.mandatory")), 1)
|
|
786
786
|
])) : p("", !0)
|
|
@@ -790,7 +790,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
790
790
|
]),
|
|
791
791
|
_: 1
|
|
792
792
|
}, 8, ["modelValue", "plugins"]),
|
|
793
|
-
e.activeSimpleModal ? (s(),
|
|
793
|
+
e.activeSimpleModal ? (s(), b(O, {
|
|
794
794
|
key: 0,
|
|
795
795
|
buttons: e.modalSimpleConf.button,
|
|
796
796
|
"header-text": e.modalSimpleConf.header,
|
|
@@ -803,7 +803,7 @@ function zt(e, t, i, n, a, v) {
|
|
|
803
803
|
], 512)) : p("", !0)
|
|
804
804
|
]);
|
|
805
805
|
}
|
|
806
|
-
const Ii = /* @__PURE__ */ Te(Fe, [["render",
|
|
806
|
+
const Ii = /* @__PURE__ */ Te(Fe, [["render", jt]]);
|
|
807
807
|
export {
|
|
808
808
|
Ii as default
|
|
809
809
|
};
|