@piveau/dpi 0.1.0-twinby.0 → 0.2.0-alpha.0
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/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +70 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +44 -15
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +30 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +36 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js +20 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue.js +78 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue2.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +74 -55
- package/dist/data-provider-interface/components/HappyFlowLandingPage.vue.js +50 -43
- package/dist/data-provider-interface/components/InputPageStep.vue.js +3 -3
- package/dist/data-provider-interface/components/StepActionsSection.vue.js +7 -0
- package/dist/data-provider-interface/components/StepActionsSection.vue2.js +54 -0
- package/dist/data-provider-interface/composables/useDpiStepper.js +78 -68
- package/dist/data-provider-interface/utils/injectionKeys.js +0 -1
- package/dist/data-provider-interface/views/InputPageProject.vue.js +230 -218
- package/dist/stories/components/DemoStep.vue.js +36 -32
- package/dist/stories/components/DemoStepper.vue.js +1 -1
- package/dist/stories/components/DemoStepper.vue2.js +61 -54
- package/package.json +3 -1
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { getNode as
|
|
2
|
-
import "@formkit/vue";
|
|
1
|
+
import { getNode as U } from "@formkit/core";
|
|
3
2
|
import { getValidationMessages as ne } from "@formkit/validation";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import "@formkit/vue";
|
|
4
|
+
import "@phosphor-icons/vue";
|
|
5
|
+
import { useWindowScroll as re } from "@vueuse/core";
|
|
6
6
|
import "jquery";
|
|
7
|
-
import { has as
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import { mapActions as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
7
|
+
import { has as P, isNil as q } from "lodash-es";
|
|
8
|
+
import { defineComponent as se, resolveComponent as l, createElementBlock as r, openBlock as n, createCommentVNode as v, createElementVNode as s, createVNode as o, createBlock as K, withModifiers as ae, withCtx as h, Fragment as z, renderList as W, normalizeClass as le, createTextVNode as J, toDisplayString as g, ref as k, computed as de, markRaw as pe, toRef as ce, watch as ue, nextTick as me } from "vue";
|
|
9
|
+
import { useI18n as fe } from "vue-i18n";
|
|
10
|
+
import { mapActions as G, mapGetters as Q } from "vuex";
|
|
11
|
+
import he from "../../stories/components/DemoStep.vue.js";
|
|
12
|
+
import ve from "../../stories/components/ReviewStepDemo.vue.js";
|
|
13
|
+
import Se from "../components/InputPageStep.vue.js";
|
|
14
|
+
import ge from "../components/ProgressSteps.vue.js";
|
|
15
|
+
import Ve from "../components/StepActionsSection.vue.js";
|
|
16
|
+
import { useFormValues as be } from "../composables/useDpiFormValues.js";
|
|
17
|
+
import { useDpiStepper as ye } from "../composables/useDpiStepper.js";
|
|
14
18
|
import ke from "../config/dcatapdeHappyFlow/converter.js";
|
|
15
|
-
import { eventBus as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import $e from "
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import Fe from "../components/ProgressSteps.vue.js";
|
|
26
|
-
import Me from "../../stories/components/ReviewStepDemo.vue.js";
|
|
19
|
+
import { eventBus as we } from "../HappyFlowComponents/services/eventBus.js";
|
|
20
|
+
import Ce from "../HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js";
|
|
21
|
+
import Ie from "../HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js";
|
|
22
|
+
import De from "../HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js";
|
|
23
|
+
import Te from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
24
|
+
import _e from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
25
|
+
import Pe from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
26
|
+
import $e from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
27
|
+
import Fe from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
28
|
+
import je from "./OverviewPage.vue.js";
|
|
27
29
|
/* empty css */
|
|
28
30
|
/* empty css */
|
|
29
31
|
/* empty css */
|
|
30
|
-
import
|
|
32
|
+
import Me from "../../_virtual/_plugin-vue_export-helper.js";
|
|
31
33
|
import { useDpiContext as Ae } from "../composables/useDpiContext.js";
|
|
32
|
-
import { useEditModeInfo as
|
|
34
|
+
import { useEditModeInfo as Re } from "../composables/useDpiEditMode.js";
|
|
33
35
|
import { useFormSchema as Be } from "../composables/useFormSchema.js";
|
|
34
|
-
const
|
|
36
|
+
const Le = se({
|
|
35
37
|
props: {
|
|
36
38
|
property: {
|
|
37
39
|
required: !0,
|
|
@@ -53,30 +55,34 @@ const He = le({
|
|
|
53
55
|
};
|
|
54
56
|
},
|
|
55
57
|
components: {
|
|
56
|
-
InputPageStep:
|
|
57
|
-
DistributionInputPage
|
|
58
|
-
LogoV3:
|
|
59
|
-
ButtonV3:
|
|
60
|
-
TextButtonSmall:
|
|
61
|
-
Illustration:
|
|
62
|
-
PhLightbulb
|
|
63
|
-
PhCheckCircle
|
|
64
|
-
ModalSimpleV3:
|
|
65
|
-
DemoStepper
|
|
66
|
-
DemoStep:
|
|
67
|
-
ProgressSteps:
|
|
68
|
-
ReviewStepDemo:
|
|
58
|
+
InputPageStep: Se,
|
|
59
|
+
// DistributionInputPage,
|
|
60
|
+
LogoV3: Pe,
|
|
61
|
+
ButtonV3: Te,
|
|
62
|
+
TextButtonSmall: Fe,
|
|
63
|
+
Illustration: _e,
|
|
64
|
+
// PhLightbulb,
|
|
65
|
+
// PhCheckCircle,
|
|
66
|
+
ModalSimpleV3: $e,
|
|
67
|
+
// DemoStepper,
|
|
68
|
+
DemoStep: he,
|
|
69
|
+
ProgressSteps: ge,
|
|
70
|
+
ReviewStepDemo: ve,
|
|
71
|
+
StepActionsSection: Ve,
|
|
72
|
+
ProjectNameStep: Ie,
|
|
73
|
+
ProjectDescriptionStep: Ce,
|
|
74
|
+
ProjectOrganisationStep: De
|
|
69
75
|
},
|
|
70
76
|
computed: {
|
|
71
|
-
...
|
|
77
|
+
...Q("auth", [
|
|
72
78
|
"getIsEditMode",
|
|
73
79
|
"getUserCatalogIds",
|
|
74
80
|
"getUserData"
|
|
75
81
|
]),
|
|
76
|
-
...
|
|
82
|
+
...Q("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
|
|
77
83
|
getTitleStep() {
|
|
78
84
|
return Object.keys(this.formValues).filter(
|
|
79
|
-
(e) =>
|
|
85
|
+
(e) => P(this.formValues[e], "dct:title")
|
|
80
86
|
)[0];
|
|
81
87
|
},
|
|
82
88
|
createIDFromTitle() {
|
|
@@ -87,7 +93,7 @@ const He = le({
|
|
|
87
93
|
getFirstTitleFromForm() {
|
|
88
94
|
try {
|
|
89
95
|
const e = this.formValues[this.getTitleStep];
|
|
90
|
-
return
|
|
96
|
+
return P(e, "dct:title") && e["dct:title"].length > 0 && P(e["dct:title"][0], "@value") && !q(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
91
97
|
} catch {
|
|
92
98
|
}
|
|
93
99
|
},
|
|
@@ -96,8 +102,8 @@ const He = le({
|
|
|
96
102
|
}
|
|
97
103
|
},
|
|
98
104
|
methods: {
|
|
99
|
-
...
|
|
100
|
-
...
|
|
105
|
+
...G("auth", ["setIsEditMode", "setIsDraft"]),
|
|
106
|
+
...G("dpiStore", [
|
|
101
107
|
"saveFormValues",
|
|
102
108
|
"saveLocalstorageValues",
|
|
103
109
|
"clearAll"
|
|
@@ -107,21 +113,21 @@ const He = le({
|
|
|
107
113
|
},
|
|
108
114
|
// Route to the RAP Page
|
|
109
115
|
goToRAP() {
|
|
110
|
-
this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(
|
|
116
|
+
this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(U(this.activeStep).value)[0];
|
|
111
117
|
},
|
|
112
118
|
handleDistributionsValidation(e) {
|
|
113
|
-
|
|
119
|
+
we.emit("nextClicked", e);
|
|
114
120
|
},
|
|
115
121
|
gotToHome() {
|
|
116
122
|
window.location.href = this.$router.resolve({
|
|
117
123
|
name: "DPI-Home-HappyFlow"
|
|
118
124
|
}).href;
|
|
119
125
|
},
|
|
120
|
-
async dispatchDataToDPI(e, t,
|
|
121
|
-
var
|
|
122
|
-
console.log("body:", e, t, "params:",
|
|
126
|
+
async dispatchDataToDPI(e, t, d, V) {
|
|
127
|
+
var w, u;
|
|
128
|
+
console.log("body:", e, t, "params:", d, V);
|
|
123
129
|
try {
|
|
124
|
-
|
|
130
|
+
V === "publish" && (d.token = this.getUserData.rtpToken, console.log(d.token), d.url = `${this.$env.api.hubUrl}catalogues/${d.catalog}/datasets/origin?originalId=${d.id}`, await this.$store.dispatch(t, d)), V === "draft" && await this.$store.dispatch(t, d), (w = this.$Progress) == null || w.finish(), this.clearAll();
|
|
125
131
|
} catch (b) {
|
|
126
132
|
console.error(b), (u = this.$Progress) == null || u.fail();
|
|
127
133
|
}
|
|
@@ -134,7 +140,7 @@ const He = le({
|
|
|
134
140
|
},
|
|
135
141
|
createDatasetID() {
|
|
136
142
|
const e = this.formValues[this.getTitleStep];
|
|
137
|
-
|
|
143
|
+
!P(e, "datasetID") || q(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);
|
|
138
144
|
},
|
|
139
145
|
generateandTranslateSchema(e) {
|
|
140
146
|
for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
|
|
@@ -196,148 +202,149 @@ const He = le({
|
|
|
196
202
|
// })
|
|
197
203
|
// },
|
|
198
204
|
setup() {
|
|
199
|
-
const e = Ae(), { isEditMode: t } =
|
|
200
|
-
steps:
|
|
201
|
-
stepList:
|
|
202
|
-
visitedSteps:
|
|
205
|
+
const e = Ae(), { isEditMode: t } = Re(), {
|
|
206
|
+
steps: d,
|
|
207
|
+
stepList: V,
|
|
208
|
+
visitedSteps: w,
|
|
203
209
|
activeStep: u,
|
|
204
210
|
stepPlugin: b,
|
|
205
|
-
goToNextStep:
|
|
211
|
+
goToNextStep: y,
|
|
206
212
|
goToPreviousStep: C,
|
|
207
|
-
subSteps:
|
|
208
|
-
previousStep:
|
|
209
|
-
nextStep:
|
|
210
|
-
current:
|
|
211
|
-
isLast:
|
|
212
|
-
triggerValidationCurrentStep:
|
|
213
|
-
} =
|
|
214
|
-
if (!a)
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
213
|
+
subSteps: $,
|
|
214
|
+
previousStep: F,
|
|
215
|
+
nextStep: j,
|
|
216
|
+
current: p,
|
|
217
|
+
isLast: M,
|
|
218
|
+
triggerValidationCurrentStep: m
|
|
219
|
+
} = ye(), { formValues: I } = be(), { t: A, te: S } = fe(), R = k(!1), D = k(!1), i = k([]), f = de(() => u.value ? U(u.value) : null), T = (a) => {
|
|
220
|
+
if (!a)
|
|
221
|
+
return;
|
|
222
|
+
const c = ne(a);
|
|
223
|
+
i.value = [], c.forEach((_) => {
|
|
224
|
+
i.value = i.value.concat(
|
|
225
|
+
_.map((ie) => ie.value)
|
|
219
226
|
);
|
|
220
227
|
});
|
|
221
|
-
}, { translateSchema:
|
|
222
|
-
t:
|
|
223
|
-
te:
|
|
224
|
-
}),
|
|
225
|
-
let { x: a, y:
|
|
226
|
-
|
|
227
|
-
}, x =
|
|
228
|
-
t.value && (u.value = "ReviewAndPublish",
|
|
229
|
-
const ee =
|
|
230
|
-
var
|
|
231
|
-
const
|
|
232
|
-
return
|
|
233
|
-
}, H =
|
|
234
|
-
|
|
235
|
-
a === "review" && (H.value = !0,
|
|
228
|
+
}, { translateSchema: L, createSchema: X, getSchema: Y } = Be({
|
|
229
|
+
t: A,
|
|
230
|
+
te: S
|
|
231
|
+
}), Z = () => {
|
|
232
|
+
let { x: a, y: c } = re({ behavior: "smooth" });
|
|
233
|
+
c.value = 0;
|
|
234
|
+
}, x = pe({ OverviewPage: je }), N = k("");
|
|
235
|
+
t.value && (u.value = "ReviewAndPublish", N.value = "reviewAndPublishPage");
|
|
236
|
+
const ee = ce(d), B = (a) => {
|
|
237
|
+
var _;
|
|
238
|
+
const c = (_ = ee.value) == null ? void 0 : _[a];
|
|
239
|
+
return c ? c.valid : !1;
|
|
240
|
+
}, H = k(!1), O = k(0);
|
|
241
|
+
ue(u, (a) => {
|
|
242
|
+
a === "review" && (H.value = !0, O.value++);
|
|
236
243
|
});
|
|
237
244
|
const te = async () => {
|
|
238
245
|
try {
|
|
239
|
-
const a = "auth/createDataset",
|
|
240
|
-
|
|
246
|
+
const a = "auth/createDataset", c = await ke(
|
|
247
|
+
I.value,
|
|
241
248
|
e,
|
|
242
249
|
// We'll need to access getUserData somehow - for now using a placeholder
|
|
243
250
|
{},
|
|
244
251
|
// We'll need to access $env.api.hubUrl - for now using a placeholder
|
|
245
252
|
""
|
|
246
253
|
);
|
|
247
|
-
console.log("Publishing:",
|
|
254
|
+
console.log("Publishing:", c), setTimeout(() => {
|
|
248
255
|
window.location.href = "/dpi-home-happyflow";
|
|
249
256
|
}, 1e3);
|
|
250
257
|
} catch (a) {
|
|
251
258
|
console.error("Fehler beim Veröffentlichen:", a);
|
|
252
259
|
}
|
|
253
260
|
};
|
|
254
|
-
function
|
|
255
|
-
|
|
261
|
+
function E() {
|
|
262
|
+
B(p.value) && y();
|
|
256
263
|
}
|
|
257
264
|
async function oe() {
|
|
258
|
-
|
|
259
|
-
const a =
|
|
260
|
-
|
|
265
|
+
m(), await me();
|
|
266
|
+
const a = f.value, c = a ? !B(p.value) : !1;
|
|
267
|
+
c && T(a), D.value = c, M.value ? console.log("Form submitted", values.value) : E();
|
|
261
268
|
}
|
|
262
269
|
return {
|
|
263
|
-
steps:
|
|
264
|
-
visitedSteps:
|
|
270
|
+
steps: d,
|
|
271
|
+
visitedSteps: w,
|
|
265
272
|
activeStep: u,
|
|
266
|
-
activeSubStep:
|
|
267
|
-
subSteps:
|
|
268
|
-
previousStep:
|
|
269
|
-
stepList:
|
|
270
|
-
nextStep:
|
|
273
|
+
activeSubStep: N,
|
|
274
|
+
subSteps: $,
|
|
275
|
+
previousStep: F,
|
|
276
|
+
stepList: V,
|
|
277
|
+
nextStep: j,
|
|
271
278
|
stepPlugin: b,
|
|
272
|
-
checkStepValidity:
|
|
273
|
-
goToNextStep:
|
|
274
|
-
goToNextStepIfValid:
|
|
279
|
+
checkStepValidity: B,
|
|
280
|
+
goToNextStep: y,
|
|
281
|
+
goToNextStepIfValid: E,
|
|
275
282
|
goToPreviousStep: C,
|
|
276
|
-
scrollToTop:
|
|
283
|
+
scrollToTop: Z,
|
|
277
284
|
library: x,
|
|
278
285
|
isEditMode: t,
|
|
279
|
-
translateSchema:
|
|
280
|
-
createSchema:
|
|
281
|
-
getSchema:
|
|
286
|
+
translateSchema: L,
|
|
287
|
+
createSchema: X,
|
|
288
|
+
getSchema: Y,
|
|
282
289
|
dpiContext: e,
|
|
283
|
-
formValues:
|
|
284
|
-
activeSimpleModal:
|
|
290
|
+
formValues: I,
|
|
291
|
+
activeSimpleModal: R,
|
|
285
292
|
shouldRenderReviewStep: H,
|
|
286
|
-
renderViewStepKey:
|
|
293
|
+
renderViewStepKey: O,
|
|
287
294
|
handlePublish: te,
|
|
288
295
|
handleSubmit: oe,
|
|
289
|
-
showErrorSummary:
|
|
290
|
-
validationMessages:
|
|
296
|
+
showErrorSummary: D,
|
|
297
|
+
validationMessages: i
|
|
291
298
|
};
|
|
292
299
|
}
|
|
293
|
-
}),
|
|
300
|
+
}), Ne = { class: "form-container V3-typography" }, He = {
|
|
294
301
|
key: 0,
|
|
295
302
|
ref: "fkInputContainer",
|
|
296
303
|
class: "inputContainer"
|
|
297
|
-
},
|
|
304
|
+
}, Oe = { class: "formContainer formkit" }, Ee = { key: 0 }, Ue = { class: "dpiV3_stepper draftStepper" }, qe = {
|
|
298
305
|
key: 0,
|
|
299
306
|
class: "draftCTA"
|
|
300
|
-
},
|
|
307
|
+
}, Ke = {
|
|
301
308
|
key: 1,
|
|
302
309
|
class: "draftCTA"
|
|
303
|
-
},
|
|
310
|
+
}, ze = { key: 1 }, We = {
|
|
304
311
|
key: 0,
|
|
305
312
|
class: "dpiV3_stepper"
|
|
306
313
|
}, Je = {
|
|
307
314
|
key: 1,
|
|
308
315
|
class: "dpiV3_stepperLanding"
|
|
309
|
-
}, Ge = { class: "dpiV3_bydata_logo_wordmark" },
|
|
316
|
+
}, Ge = { class: "dpiV3_bydata_logo_wordmark" }, Qe = { class: "dpiV3_Illustration-Start" }, Xe = {
|
|
310
317
|
key: 2,
|
|
311
318
|
class: "steps"
|
|
312
|
-
},
|
|
319
|
+
}, Ye = ["data-step-active", "data-step-valid", "onClick"], Ze = { class: "stepBubbleWrap" }, xe = { class: "circle stepCircle" }, et = ["textContent"], tt = {
|
|
313
320
|
key: 0,
|
|
314
321
|
class: "seperatorHorizontalStepper"
|
|
315
322
|
}, ot = {
|
|
316
323
|
key: 0,
|
|
317
324
|
class: "step inactiveStep"
|
|
318
|
-
}, it = { class: "demo-stepper" }, nt = { style: {
|
|
325
|
+
}, it = { class: "demo-stepper" }, nt = { style: { margin: "1rem 2.5rem", padding: "1rem", background: "#f5f5f5", "border-radius": "8px", "overflow-x": "auto", "max-width": "100%" } }, rt = { style: {} }, st = {
|
|
319
326
|
key: 0,
|
|
320
327
|
class: "dpiV3_Card_Tips--error dpiV3_Card_Tips"
|
|
321
328
|
}, at = { class: "validation-errors" };
|
|
322
|
-
function lt(e, t,
|
|
323
|
-
const b =
|
|
324
|
-
return
|
|
325
|
-
e.isInput ? (
|
|
326
|
-
s("div",
|
|
327
|
-
o(
|
|
329
|
+
function lt(e, t, d, V, w, u) {
|
|
330
|
+
const b = l("TextButtonSmall"), y = l("ButtonV3"), C = l("LogoV3"), $ = l("ProgressSteps"), F = l("Illustration"), j = l("DemoStep"), p = l("InputPageStep"), M = l("ProjectNameStep"), m = l("StepActionsSection"), I = l("ProjectOrganisationStep"), A = l("ProjectDescriptionStep"), S = l("FormKit"), R = l("ReviewStepDemo"), D = l("ModalSimpleV3");
|
|
331
|
+
return n(), r("div", Ne, [
|
|
332
|
+
e.isInput ? (n(), r("div", He, [
|
|
333
|
+
s("div", Oe, [
|
|
334
|
+
o(S, {
|
|
328
335
|
id: "dpiForm",
|
|
329
336
|
modelValue: e.formValues,
|
|
330
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
337
|
+
"onUpdate:modelValue": t[2] || (t[2] = (i) => e.formValues = i),
|
|
331
338
|
type: "form",
|
|
332
339
|
actions: !1,
|
|
333
340
|
plugins: [e.stepPlugin],
|
|
334
341
|
class: "d-flex",
|
|
335
|
-
onSubmit: t[3] || (t[3] =
|
|
342
|
+
onSubmit: t[3] || (t[3] = ae(() => {
|
|
336
343
|
}, ["prevent"]))
|
|
337
344
|
}, {
|
|
338
|
-
default:
|
|
339
|
-
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (
|
|
340
|
-
s("div",
|
|
345
|
+
default: h(() => [
|
|
346
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (n(), r("div", Ee, [
|
|
347
|
+
s("div", Ue, [
|
|
341
348
|
o(b, {
|
|
342
349
|
"button-text": "Übersicht",
|
|
343
350
|
"icon-start": "CaretLeft",
|
|
@@ -345,21 +352,21 @@ function lt(e, t, l, S, V, u) {
|
|
|
345
352
|
onClick: e.gotToHome
|
|
346
353
|
}, null, 8, ["onClick"]),
|
|
347
354
|
s("div", null, [
|
|
348
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (
|
|
349
|
-
o(
|
|
355
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (n(), r("div", qe, [
|
|
356
|
+
o(y, {
|
|
350
357
|
"button-text": "Veröffentlichung aufheben",
|
|
351
358
|
size: "large",
|
|
352
359
|
onClick: e.todoHandler
|
|
353
360
|
}, null, 8, ["onClick"]),
|
|
354
|
-
o(
|
|
361
|
+
o(y, {
|
|
355
362
|
"button-text": "Veröffentlicht ansehen",
|
|
356
363
|
variant: "secondary",
|
|
357
364
|
size: "large",
|
|
358
365
|
"icon-end": "Out",
|
|
359
366
|
onClick: e.todoHandler
|
|
360
367
|
}, null, 8, ["onClick"])
|
|
361
|
-
])) : (
|
|
362
|
-
o(
|
|
368
|
+
])) : (n(), r("div", Ke, [
|
|
369
|
+
o(y, {
|
|
363
370
|
"button-text": "Veröffentlichen",
|
|
364
371
|
size: "large",
|
|
365
372
|
onClick: e.handlePublish
|
|
@@ -367,162 +374,167 @@ function lt(e, t, l, S, V, u) {
|
|
|
367
374
|
]))
|
|
368
375
|
])
|
|
369
376
|
])
|
|
370
|
-
])) : (
|
|
371
|
-
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (
|
|
377
|
+
])) : (n(), r("div", ze, [
|
|
378
|
+
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (n(), r("div", We, [
|
|
372
379
|
o(C),
|
|
373
|
-
o(
|
|
374
|
-
steps: e.stepList || [],
|
|
380
|
+
o($, {
|
|
375
381
|
checked: e.visitedSteps,
|
|
376
|
-
"onUpdate:checked": t[0] || (t[0] = (
|
|
382
|
+
"onUpdate:checked": t[0] || (t[0] = (i) => e.visitedSteps = i),
|
|
377
383
|
current: e.activeStep,
|
|
378
|
-
"onUpdate:current": t[1] || (t[1] = (
|
|
379
|
-
|
|
380
|
-
|
|
384
|
+
"onUpdate:current": t[1] || (t[1] = (i) => e.activeStep = i),
|
|
385
|
+
steps: e.stepList || []
|
|
386
|
+
}, null, 8, ["checked", "current", "steps"])
|
|
387
|
+
])) : (n(), r("div", Je, [
|
|
381
388
|
s("div", Ge, [
|
|
382
389
|
o(C)
|
|
383
390
|
]),
|
|
384
|
-
s("div",
|
|
385
|
-
o(
|
|
391
|
+
s("div", Qe, [
|
|
392
|
+
o(F, { "illustration-name": "start" })
|
|
386
393
|
])
|
|
387
394
|
]))
|
|
388
395
|
])),
|
|
389
|
-
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (
|
|
390
|
-
(
|
|
391
|
-
key:
|
|
392
|
-
class:
|
|
393
|
-
activeItem: e.activeStep ===
|
|
394
|
-
inactiveStep:
|
|
395
|
-
"has-errors": e.checkStepValidity(
|
|
396
|
+
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (n(), r("ul", Xe, [
|
|
397
|
+
(n(!0), r(z, null, W(e.steps, (i, f, T) => (n(), r("li", {
|
|
398
|
+
key: i,
|
|
399
|
+
class: le(["step", {
|
|
400
|
+
activeItem: e.activeStep === f,
|
|
401
|
+
inactiveStep: f != e.activeStep,
|
|
402
|
+
"has-errors": e.checkStepValidity(f)
|
|
396
403
|
}]),
|
|
397
|
-
"data-step-active": e.activeStep ===
|
|
398
|
-
"data-step-valid":
|
|
399
|
-
onClick: (
|
|
400
|
-
e.activeStep =
|
|
404
|
+
"data-step-active": e.activeStep === f,
|
|
405
|
+
"data-step-valid": i.valid && i.errorCount === 0,
|
|
406
|
+
onClick: (L) => {
|
|
407
|
+
e.activeStep = f, e.update(), e.scrollToTop();
|
|
401
408
|
}
|
|
402
409
|
}, [
|
|
403
|
-
s("div",
|
|
404
|
-
s("div", xe,
|
|
405
|
-
e.checkStepValidity(
|
|
410
|
+
s("div", Ze, [
|
|
411
|
+
s("div", xe, g(T + 1), 1),
|
|
412
|
+
e.checkStepValidity(f) ? (n(), r("span", {
|
|
406
413
|
key: 0,
|
|
407
414
|
class: "step--errors",
|
|
408
|
-
textContent:
|
|
409
|
-
}, null, 8, et)) :
|
|
410
|
-
|
|
415
|
+
textContent: g(i.errorCount + i.blockingCount)
|
|
416
|
+
}, null, 8, et)) : v("", !0),
|
|
417
|
+
J(g(e.$t(`message.dataupload.steps.${f}Step`)), 1)
|
|
411
418
|
]),
|
|
412
|
-
|
|
413
|
-
], 10,
|
|
414
|
-
e.activeStep === "Overview" ? (
|
|
419
|
+
T != Object.keys(e.steps).length ? (n(), r("div", tt)) : v("", !0)
|
|
420
|
+
], 10, Ye))), 128)),
|
|
421
|
+
e.activeStep === "Overview" ? (n(), r("li", ot, t[6] || (t[6] = [
|
|
415
422
|
s("div", { class: "circle stepCircle" }, null, -1)
|
|
416
|
-
]))) :
|
|
417
|
-
])) :
|
|
423
|
+
]))) : v("", !0)
|
|
424
|
+
])) : v("", !0),
|
|
418
425
|
s("div", null, [
|
|
419
|
-
L(" hello " + v(e.activeStep) + " ", 1),
|
|
420
426
|
s("div", it, [
|
|
421
427
|
s("div", nt, [
|
|
422
428
|
t[7] || (t[7] = s("strong", null, "Form Values:", -1)),
|
|
423
|
-
s("pre",
|
|
429
|
+
s("pre", rt, g(JSON.stringify(e.formValues, null, 2)), 1)
|
|
424
430
|
]),
|
|
425
431
|
s("div", null, [
|
|
426
|
-
o(
|
|
427
|
-
default:
|
|
428
|
-
o(
|
|
432
|
+
o(p, { name: "auffindbarkeit" }, {
|
|
433
|
+
default: h(() => [
|
|
434
|
+
o(j)
|
|
429
435
|
]),
|
|
430
436
|
_: 1
|
|
431
437
|
}),
|
|
432
|
-
o(
|
|
433
|
-
default:
|
|
434
|
-
o(
|
|
438
|
+
o(p, { name: "grundlegende-informationen/projectName" }, {
|
|
439
|
+
default: h(() => [
|
|
440
|
+
o(M),
|
|
441
|
+
o(m)
|
|
442
|
+
]),
|
|
443
|
+
_: 1
|
|
444
|
+
}),
|
|
445
|
+
o(p, { name: "grundlegende-informationen/projectOrganisation" }, {
|
|
446
|
+
default: h(() => [
|
|
447
|
+
o(I),
|
|
448
|
+
o(m)
|
|
449
|
+
]),
|
|
450
|
+
_: 1
|
|
451
|
+
}),
|
|
452
|
+
o(p, { name: "grundlegende-informationen/projectDescription" }, {
|
|
453
|
+
default: h(() => [
|
|
454
|
+
o(A),
|
|
455
|
+
o(m)
|
|
456
|
+
]),
|
|
457
|
+
_: 1
|
|
458
|
+
}),
|
|
459
|
+
o(p, { name: "grundlegende-informationen/discoverability" }, {
|
|
460
|
+
default: h(() => [
|
|
461
|
+
o(S, {
|
|
435
462
|
type: "text",
|
|
436
463
|
label: "Name",
|
|
437
464
|
name: "name",
|
|
438
465
|
validation: "required"
|
|
439
|
-
})
|
|
466
|
+
}),
|
|
467
|
+
o(m)
|
|
440
468
|
]),
|
|
441
469
|
_: 1
|
|
442
470
|
}),
|
|
443
|
-
o(
|
|
444
|
-
default:
|
|
445
|
-
o(
|
|
471
|
+
o(p, { name: "grundlegende-informationen/essentials" }, {
|
|
472
|
+
default: h(() => [
|
|
473
|
+
o(S, {
|
|
446
474
|
type: "text",
|
|
447
475
|
label: "Mail",
|
|
448
476
|
name: "mail",
|
|
449
477
|
validation: "required|email"
|
|
450
478
|
}),
|
|
451
|
-
o(
|
|
479
|
+
o(S, {
|
|
452
480
|
type: "text",
|
|
453
481
|
label: "Homepage",
|
|
454
482
|
name: "homepage",
|
|
455
483
|
validation: "url"
|
|
456
|
-
})
|
|
484
|
+
}),
|
|
485
|
+
o(m)
|
|
457
486
|
]),
|
|
458
487
|
_: 1
|
|
459
488
|
}),
|
|
460
|
-
o(
|
|
461
|
-
default:
|
|
462
|
-
o(
|
|
489
|
+
o(p, { name: "optionale-daten" }, {
|
|
490
|
+
default: h(() => [
|
|
491
|
+
o(S, {
|
|
463
492
|
type: "textarea",
|
|
464
493
|
label: "Description",
|
|
465
494
|
name: "description"
|
|
466
|
-
})
|
|
495
|
+
}),
|
|
496
|
+
o(m)
|
|
467
497
|
]),
|
|
468
498
|
_: 1
|
|
469
499
|
}),
|
|
470
|
-
o(
|
|
471
|
-
default:
|
|
472
|
-
|
|
473
|
-
e.shouldRenderReviewStep ? (
|
|
500
|
+
o(p, { name: "review" }, {
|
|
501
|
+
default: h(() => [
|
|
502
|
+
J(" shouldRender " + g(e.shouldRenderReviewStep) + " renderViewStepKey " + g(e.renderViewStepKey) + " ", 1),
|
|
503
|
+
e.shouldRenderReviewStep ? (n(), K(R, {
|
|
474
504
|
key: e.renderViewStepKey,
|
|
475
505
|
values: e.formValues
|
|
476
|
-
}, null, 8, ["values"])) :
|
|
506
|
+
}, null, 8, ["values"])) : v("", !0),
|
|
507
|
+
o(m)
|
|
477
508
|
]),
|
|
478
509
|
_: 1
|
|
479
510
|
})
|
|
480
511
|
]),
|
|
481
512
|
t[9] || (t[9] = s("hr", null, null, -1)),
|
|
482
|
-
|
|
483
|
-
o(c, {
|
|
484
|
-
variant: "tertiary",
|
|
485
|
-
type: "button",
|
|
486
|
-
onClick: e.goToPreviousStep,
|
|
487
|
-
"button-text": "Abbrechen"
|
|
488
|
-
}, null, 8, ["onClick"]),
|
|
489
|
-
o(c, {
|
|
490
|
-
variant: "secondary",
|
|
491
|
-
type: "button",
|
|
492
|
-
onClick: e.goToPreviousStep,
|
|
493
|
-
"button-text": "Zurück"
|
|
494
|
-
}, null, 8, ["onClick"]),
|
|
495
|
-
o(c, {
|
|
496
|
-
type: "button",
|
|
497
|
-
onClick: e.handleSubmit,
|
|
498
|
-
"button-text": "Weiter"
|
|
499
|
-
}, null, 8, ["onClick"])
|
|
500
|
-
]),
|
|
501
|
-
e.showErrorSummary && e.validationMessages.length ? (i(), r("div", rt, [
|
|
513
|
+
e.showErrorSummary && e.validationMessages.length ? (n(), r("div", st, [
|
|
502
514
|
t[8] || (t[8] = s("h4", null, "Bitte korrigieren Sie die folgenden Fehler:", -1)),
|
|
503
515
|
s("ul", at, [
|
|
504
|
-
(
|
|
516
|
+
(n(!0), r(z, null, W(e.validationMessages, (i) => (n(), r("li", { key: i }, g(i), 1))), 128))
|
|
505
517
|
])
|
|
506
|
-
])) :
|
|
518
|
+
])) : v("", !0)
|
|
507
519
|
])
|
|
508
520
|
])
|
|
509
521
|
]),
|
|
510
522
|
_: 1
|
|
511
523
|
}, 8, ["modelValue", "plugins"]),
|
|
512
|
-
e.activeSimpleModal ? (
|
|
524
|
+
e.activeSimpleModal ? (n(), K(D, {
|
|
513
525
|
key: 0,
|
|
514
526
|
buttons: e.modalSimpleConf.button,
|
|
515
527
|
"header-text": e.modalSimpleConf.header,
|
|
516
528
|
text: e.modalSimpleConf.text,
|
|
517
529
|
action: e.modalSimpleConf.action,
|
|
518
|
-
onClose: t[4] || (t[4] = (
|
|
519
|
-
onActionHandling: t[5] || (t[5] = (
|
|
520
|
-
}, null, 8, ["buttons", "header-text", "text", "action"])) :
|
|
530
|
+
onClose: t[4] || (t[4] = (i) => e.activeSimpleModal = !1),
|
|
531
|
+
onActionHandling: t[5] || (t[5] = (i) => e.gotToHome())
|
|
532
|
+
}, null, 8, ["buttons", "header-text", "text", "action"])) : v("", !0)
|
|
521
533
|
])
|
|
522
|
-
], 512)) :
|
|
534
|
+
], 512)) : v("", !0)
|
|
523
535
|
]);
|
|
524
536
|
}
|
|
525
|
-
const
|
|
537
|
+
const Kt = /* @__PURE__ */ Me(Le, [["render", lt]]);
|
|
526
538
|
export {
|
|
527
|
-
|
|
539
|
+
Kt as default
|
|
528
540
|
};
|