@piveau/dpi 0.2.0-alpha.0 → 0.2.0-alpha.1
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/ProjectNameStep.vue.js +5 -5
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +93 -36
- package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
- package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +23 -23
- package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +31 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +4 -4
- package/dist/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +59 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +13 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +50 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue2.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue2.js +25 -0
- package/dist/data-provider-interface/components/ProgressSteps.vue.js +1 -1
- package/dist/data-provider-interface/components/ProgressSteps.vue2.js +23 -16
- package/dist/data-provider-interface/views/InputPageProject.vue.js +458 -284
- package/dist/images/stadt.png +0 -0
- package/dist/stories/components/DemoStepper.vue.js +2 -2
- package/dist/stories/components/DemoStepper.vue2.js +155 -98
- package/package.json +1 -1
|
@@ -1,39 +1,43 @@
|
|
|
1
|
-
import { getNode as
|
|
2
|
-
import { getValidationMessages as
|
|
1
|
+
import { getNode as q } from "@formkit/core";
|
|
2
|
+
import { getValidationMessages as le } from "@formkit/validation";
|
|
3
3
|
import "@formkit/vue";
|
|
4
4
|
import "@phosphor-icons/vue";
|
|
5
|
-
import { useWindowScroll as
|
|
5
|
+
import { useWindowScroll as de } 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
|
|
14
|
-
import
|
|
7
|
+
import { has as O, isNil as J } from "lodash-es";
|
|
8
|
+
import { defineComponent as ue, resolveComponent as u, createElementBlock as p, openBlock as d, createCommentVNode as g, createElementVNode as s, createVNode as t, createBlock as Q, withModifiers as pe, withCtx as n, Fragment as X, renderList as Y, normalizeClass as me, createTextVNode as Z, toDisplayString as y, ref as b, computed as U, markRaw as ce, toRef as fe, watch as ve, nextTick as he } from "vue";
|
|
9
|
+
import { useI18n as ge } from "vue-i18n";
|
|
10
|
+
import { mapActions as x, mapGetters as ee } from "vuex";
|
|
11
|
+
import Se from "../../stories/components/DemoStep.vue.js";
|
|
12
|
+
import be from "../../stories/components/ReviewStepDemo.vue.js";
|
|
13
|
+
import ke from "../components/InputPageStep.vue.js";
|
|
14
|
+
import De from "../components/ProgressSteps.vue.js";
|
|
15
15
|
import Ve from "../components/StepActionsSection.vue.js";
|
|
16
|
-
import { useFormValues as
|
|
16
|
+
import { useFormValues as _e } from "../composables/useDpiFormValues.js";
|
|
17
17
|
import { useDpiStepper as ye } from "../composables/useDpiStepper.js";
|
|
18
|
-
import
|
|
18
|
+
import Ce from "../config/dcatapdeHappyFlow/converter.js";
|
|
19
19
|
import { eventBus as we } from "../HappyFlowComponents/services/eventBus.js";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import je from "
|
|
20
|
+
import Ie from "../HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js";
|
|
21
|
+
import Te from "../HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js";
|
|
22
|
+
import Pe from "../HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js";
|
|
23
|
+
import $e from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
24
|
+
import Fe from "../HappyFlowComponents/ui/Card.vue.js";
|
|
25
|
+
import Oe from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
|
|
26
|
+
import Ae from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
27
|
+
import Me from "../HappyFlowComponents/ui/ListBox/Listbox.vue.js";
|
|
28
|
+
import je from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
29
|
+
import Be from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
30
|
+
import He from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
31
|
+
import Le from "../HappyFlowComponents/ui/WipStep.vue.js";
|
|
32
|
+
import Ne from "./OverviewPage.vue.js";
|
|
29
33
|
/* empty css */
|
|
30
34
|
/* empty css */
|
|
31
35
|
/* empty css */
|
|
32
|
-
import
|
|
33
|
-
import { useDpiContext as
|
|
34
|
-
import { useEditModeInfo as
|
|
35
|
-
import { useFormSchema as
|
|
36
|
-
const
|
|
36
|
+
import Re from "../../_virtual/_plugin-vue_export-helper.js";
|
|
37
|
+
import { useDpiContext as Ue } from "../composables/useDpiContext.js";
|
|
38
|
+
import { useEditModeInfo as ze } from "../composables/useDpiEditMode.js";
|
|
39
|
+
import { useFormSchema as Ee } from "../composables/useFormSchema.js";
|
|
40
|
+
const Ge = ue({
|
|
37
41
|
props: {
|
|
38
42
|
property: {
|
|
39
43
|
required: !0,
|
|
@@ -55,34 +59,38 @@ const Le = se({
|
|
|
55
59
|
};
|
|
56
60
|
},
|
|
57
61
|
components: {
|
|
58
|
-
InputPageStep:
|
|
62
|
+
InputPageStep: ke,
|
|
59
63
|
// DistributionInputPage,
|
|
60
|
-
LogoV3:
|
|
61
|
-
ButtonV3:
|
|
62
|
-
TextButtonSmall:
|
|
63
|
-
Illustration:
|
|
64
|
+
LogoV3: je,
|
|
65
|
+
ButtonV3: $e,
|
|
66
|
+
TextButtonSmall: He,
|
|
67
|
+
Illustration: Ae,
|
|
64
68
|
// PhLightbulb,
|
|
65
69
|
// PhCheckCircle,
|
|
66
|
-
ModalSimpleV3:
|
|
70
|
+
ModalSimpleV3: Be,
|
|
67
71
|
// DemoStepper,
|
|
68
|
-
DemoStep:
|
|
69
|
-
ProgressSteps:
|
|
70
|
-
ReviewStepDemo:
|
|
72
|
+
DemoStep: Se,
|
|
73
|
+
ProgressSteps: De,
|
|
74
|
+
ReviewStepDemo: be,
|
|
71
75
|
StepActionsSection: Ve,
|
|
72
|
-
ProjectNameStep:
|
|
73
|
-
ProjectDescriptionStep:
|
|
74
|
-
ProjectOrganisationStep:
|
|
76
|
+
ProjectNameStep: Te,
|
|
77
|
+
ProjectDescriptionStep: Ie,
|
|
78
|
+
ProjectOrganisationStep: Pe,
|
|
79
|
+
Card: Fe,
|
|
80
|
+
Listbox: Me,
|
|
81
|
+
DpiModalBase: Oe,
|
|
82
|
+
WipStep: Le
|
|
75
83
|
},
|
|
76
84
|
computed: {
|
|
77
|
-
...
|
|
85
|
+
...ee("auth", [
|
|
78
86
|
"getIsEditMode",
|
|
79
87
|
"getUserCatalogIds",
|
|
80
88
|
"getUserData"
|
|
81
89
|
]),
|
|
82
|
-
...
|
|
90
|
+
...ee("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
|
|
83
91
|
getTitleStep() {
|
|
84
92
|
return Object.keys(this.formValues).filter(
|
|
85
|
-
(e) =>
|
|
93
|
+
(e) => O(this.formValues[e], "dct:title")
|
|
86
94
|
)[0];
|
|
87
95
|
},
|
|
88
96
|
createIDFromTitle() {
|
|
@@ -93,7 +101,7 @@ const Le = se({
|
|
|
93
101
|
getFirstTitleFromForm() {
|
|
94
102
|
try {
|
|
95
103
|
const e = this.formValues[this.getTitleStep];
|
|
96
|
-
return
|
|
104
|
+
return O(e, "dct:title") && e["dct:title"].length > 0 && O(e["dct:title"][0], "@value") && !J(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
|
|
97
105
|
} catch {
|
|
98
106
|
}
|
|
99
107
|
},
|
|
@@ -102,8 +110,8 @@ const Le = se({
|
|
|
102
110
|
}
|
|
103
111
|
},
|
|
104
112
|
methods: {
|
|
105
|
-
...
|
|
106
|
-
...
|
|
113
|
+
...x("auth", ["setIsEditMode", "setIsDraft"]),
|
|
114
|
+
...x("dpiStore", [
|
|
107
115
|
"saveFormValues",
|
|
108
116
|
"saveLocalstorageValues",
|
|
109
117
|
"clearAll"
|
|
@@ -113,7 +121,7 @@ const Le = se({
|
|
|
113
121
|
},
|
|
114
122
|
// Route to the RAP Page
|
|
115
123
|
goToRAP() {
|
|
116
|
-
this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(
|
|
124
|
+
this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(q(this.activeStep).value)[0];
|
|
117
125
|
},
|
|
118
126
|
handleDistributionsValidation(e) {
|
|
119
127
|
we.emit("nextClicked", e);
|
|
@@ -123,13 +131,13 @@ const Le = se({
|
|
|
123
131
|
name: "DPI-Home-HappyFlow"
|
|
124
132
|
}).href;
|
|
125
133
|
},
|
|
126
|
-
async dispatchDataToDPI(e,
|
|
127
|
-
var
|
|
128
|
-
console.log("body:", e,
|
|
134
|
+
async dispatchDataToDPI(e, o, m, S) {
|
|
135
|
+
var _, f;
|
|
136
|
+
console.log("body:", e, o, "params:", m, S);
|
|
129
137
|
try {
|
|
130
|
-
|
|
131
|
-
} catch (
|
|
132
|
-
console.error(
|
|
138
|
+
S === "publish" && (m.token = this.getUserData.rtpToken, console.log(m.token), m.url = `${this.$env.api.hubUrl}catalogues/${m.catalog}/datasets/origin?originalId=${m.id}`, await this.$store.dispatch(o, m)), S === "draft" && await this.$store.dispatch(o, m), (_ = this.$Progress) == null || _.finish(), this.clearAll();
|
|
139
|
+
} catch (k) {
|
|
140
|
+
console.error(k), (f = this.$Progress) == null || f.fail();
|
|
133
141
|
}
|
|
134
142
|
},
|
|
135
143
|
clearForm() {
|
|
@@ -140,21 +148,21 @@ const Le = se({
|
|
|
140
148
|
},
|
|
141
149
|
createDatasetID() {
|
|
142
150
|
const e = this.formValues[this.getTitleStep];
|
|
143
|
-
!
|
|
151
|
+
!O(e, "datasetID") || J(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);
|
|
144
152
|
},
|
|
145
153
|
generateandTranslateSchema(e) {
|
|
146
|
-
for (let
|
|
154
|
+
for (let o = 0; o < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; o++)
|
|
147
155
|
this.createSchema({
|
|
148
156
|
property: e,
|
|
149
157
|
page: this.getNavSteps(
|
|
150
158
|
this.$env.content.dataProviderInterface.specification
|
|
151
|
-
)[e][
|
|
159
|
+
)[e][o],
|
|
152
160
|
specification: this.$env.content.dataProviderInterface.specification
|
|
153
161
|
}), this.translateSchema({
|
|
154
162
|
property: e,
|
|
155
163
|
page: this.getNavSteps(
|
|
156
164
|
this.$env.content.dataProviderInterface.specification
|
|
157
|
-
)[e][
|
|
165
|
+
)[e][o]
|
|
158
166
|
});
|
|
159
167
|
}
|
|
160
168
|
},
|
|
@@ -202,48 +210,48 @@ const Le = se({
|
|
|
202
210
|
// })
|
|
203
211
|
// },
|
|
204
212
|
setup() {
|
|
205
|
-
const e =
|
|
206
|
-
steps:
|
|
207
|
-
stepList:
|
|
208
|
-
visitedSteps:
|
|
209
|
-
activeStep:
|
|
210
|
-
stepPlugin:
|
|
211
|
-
goToNextStep:
|
|
213
|
+
const e = Ue(), { isEditMode: o } = ze(), {
|
|
214
|
+
steps: m,
|
|
215
|
+
stepList: S,
|
|
216
|
+
visitedSteps: _,
|
|
217
|
+
activeStep: f,
|
|
218
|
+
stepPlugin: k,
|
|
219
|
+
goToNextStep: v,
|
|
212
220
|
goToPreviousStep: C,
|
|
213
|
-
subSteps:
|
|
214
|
-
previousStep:
|
|
215
|
-
nextStep:
|
|
216
|
-
current:
|
|
217
|
-
isLast:
|
|
218
|
-
triggerValidationCurrentStep:
|
|
219
|
-
} = ye(), { formValues: I } =
|
|
220
|
-
if (!
|
|
221
|
+
subSteps: A,
|
|
222
|
+
previousStep: M,
|
|
223
|
+
nextStep: w,
|
|
224
|
+
current: D,
|
|
225
|
+
isLast: i,
|
|
226
|
+
triggerValidationCurrentStep: a
|
|
227
|
+
} = ye(), { formValues: I } = _e(), { t: j, te: T } = ge(), B = b(!1), P = b(!1), V = b([]), H = U(() => f.value ? q(f.value) : null), L = (l) => {
|
|
228
|
+
if (!l)
|
|
221
229
|
return;
|
|
222
|
-
const c =
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
230
|
+
const c = le(l);
|
|
231
|
+
V.value = [], c.forEach((F) => {
|
|
232
|
+
V.value = V.value.concat(
|
|
233
|
+
F.map((se) => se.value)
|
|
226
234
|
);
|
|
227
235
|
});
|
|
228
|
-
}, { translateSchema:
|
|
229
|
-
t:
|
|
230
|
-
te:
|
|
231
|
-
}),
|
|
232
|
-
let { x:
|
|
236
|
+
}, { translateSchema: N, createSchema: r, getSchema: h } = Ee({
|
|
237
|
+
t: j,
|
|
238
|
+
te: T
|
|
239
|
+
}), $ = () => {
|
|
240
|
+
let { x: l, y: c } = de({ behavior: "smooth" });
|
|
233
241
|
c.value = 0;
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
var
|
|
238
|
-
const c = (
|
|
242
|
+
}, z = ce({ OverviewPage: Ne }), E = b("");
|
|
243
|
+
o.value && (f.value = "ReviewAndPublish", E.value = "reviewAndPublishPage");
|
|
244
|
+
const te = fe(m), R = (l) => {
|
|
245
|
+
var F;
|
|
246
|
+
const c = (F = te.value) == null ? void 0 : F[l];
|
|
239
247
|
return c ? c.valid : !1;
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
|
|
248
|
+
}, G = b(!1), W = b(0);
|
|
249
|
+
ve(f, (l) => {
|
|
250
|
+
l === "review" && (G.value = !0, W.value++);
|
|
243
251
|
});
|
|
244
|
-
const
|
|
252
|
+
const oe = async () => {
|
|
245
253
|
try {
|
|
246
|
-
const
|
|
254
|
+
const l = "auth/createDataset", c = await Ce(
|
|
247
255
|
I.value,
|
|
248
256
|
e,
|
|
249
257
|
// We'll need to access getUserData somehow - for now using a placeholder
|
|
@@ -254,119 +262,130 @@ const Le = se({
|
|
|
254
262
|
console.log("Publishing:", c), setTimeout(() => {
|
|
255
263
|
window.location.href = "/dpi-home-happyflow";
|
|
256
264
|
}, 1e3);
|
|
257
|
-
} catch (
|
|
258
|
-
console.error("Fehler beim Veröffentlichen:",
|
|
265
|
+
} catch (l) {
|
|
266
|
+
console.error("Fehler beim Veröffentlichen:", l);
|
|
259
267
|
}
|
|
260
268
|
};
|
|
261
|
-
function
|
|
262
|
-
|
|
269
|
+
function K() {
|
|
270
|
+
R(D.value) && v();
|
|
263
271
|
}
|
|
264
|
-
async function
|
|
265
|
-
|
|
266
|
-
const
|
|
267
|
-
c &&
|
|
272
|
+
async function ne() {
|
|
273
|
+
a(), await he();
|
|
274
|
+
const l = H.value, c = l ? !R(D.value) : !1;
|
|
275
|
+
c && L(l), P.value = c, i.value ? console.log("Form submitted", values.value) : K();
|
|
268
276
|
}
|
|
277
|
+
const ie = U(() => S.value.map((l) => ({ id: l, name: l }))), ae = U({
|
|
278
|
+
get() {
|
|
279
|
+
return { id: D.value, name: D.value };
|
|
280
|
+
},
|
|
281
|
+
set(l) {
|
|
282
|
+
goToStep(l.id);
|
|
283
|
+
}
|
|
284
|
+
}), re = b(!1);
|
|
269
285
|
return {
|
|
270
|
-
steps:
|
|
271
|
-
visitedSteps:
|
|
272
|
-
activeStep:
|
|
273
|
-
activeSubStep:
|
|
274
|
-
subSteps:
|
|
275
|
-
previousStep:
|
|
276
|
-
stepList:
|
|
277
|
-
nextStep:
|
|
278
|
-
stepPlugin:
|
|
279
|
-
checkStepValidity:
|
|
280
|
-
goToNextStep:
|
|
281
|
-
goToNextStepIfValid:
|
|
286
|
+
steps: m,
|
|
287
|
+
visitedSteps: _,
|
|
288
|
+
activeStep: f,
|
|
289
|
+
activeSubStep: E,
|
|
290
|
+
subSteps: A,
|
|
291
|
+
previousStep: M,
|
|
292
|
+
stepList: S,
|
|
293
|
+
nextStep: w,
|
|
294
|
+
stepPlugin: k,
|
|
295
|
+
checkStepValidity: R,
|
|
296
|
+
goToNextStep: v,
|
|
297
|
+
goToNextStepIfValid: K,
|
|
282
298
|
goToPreviousStep: C,
|
|
283
|
-
scrollToTop:
|
|
284
|
-
library:
|
|
285
|
-
isEditMode:
|
|
286
|
-
translateSchema:
|
|
287
|
-
createSchema:
|
|
288
|
-
getSchema:
|
|
299
|
+
scrollToTop: $,
|
|
300
|
+
library: z,
|
|
301
|
+
isEditMode: o,
|
|
302
|
+
translateSchema: N,
|
|
303
|
+
createSchema: r,
|
|
304
|
+
getSchema: h,
|
|
289
305
|
dpiContext: e,
|
|
290
306
|
formValues: I,
|
|
291
|
-
activeSimpleModal:
|
|
292
|
-
shouldRenderReviewStep:
|
|
293
|
-
renderViewStepKey:
|
|
294
|
-
handlePublish:
|
|
295
|
-
handleSubmit:
|
|
296
|
-
showErrorSummary:
|
|
297
|
-
validationMessages:
|
|
307
|
+
activeSimpleModal: B,
|
|
308
|
+
shouldRenderReviewStep: G,
|
|
309
|
+
renderViewStepKey: W,
|
|
310
|
+
handlePublish: oe,
|
|
311
|
+
handleSubmit: ne,
|
|
312
|
+
showErrorSummary: P,
|
|
313
|
+
validationMessages: V,
|
|
314
|
+
stepOptions: ie,
|
|
315
|
+
stepSelect: ae,
|
|
316
|
+
hologramOpen: re
|
|
298
317
|
};
|
|
299
318
|
}
|
|
300
|
-
}),
|
|
319
|
+
}), We = { class: "form-container V3-typography" }, Ke = {
|
|
301
320
|
key: 0,
|
|
302
321
|
ref: "fkInputContainer",
|
|
303
322
|
class: "inputContainer"
|
|
304
|
-
},
|
|
323
|
+
}, qe = { class: "formContainer formkit" }, Je = { key: 0 }, Qe = { class: "dpiV3_stepper draftStepper" }, Xe = {
|
|
305
324
|
key: 0,
|
|
306
325
|
class: "draftCTA"
|
|
307
|
-
},
|
|
326
|
+
}, Ye = {
|
|
308
327
|
key: 1,
|
|
309
328
|
class: "draftCTA"
|
|
310
|
-
},
|
|
329
|
+
}, Ze = { key: 1 }, xe = {
|
|
311
330
|
key: 0,
|
|
312
331
|
class: "dpiV3_stepper"
|
|
313
|
-
},
|
|
332
|
+
}, et = {
|
|
314
333
|
key: 1,
|
|
315
334
|
class: "dpiV3_stepperLanding"
|
|
316
|
-
},
|
|
335
|
+
}, tt = { class: "dpiV3_bydata_logo_wordmark" }, ot = { class: "dpiV3_Illustration-Start" }, nt = {
|
|
317
336
|
key: 2,
|
|
318
337
|
class: "steps"
|
|
319
|
-
},
|
|
338
|
+
}, it = ["data-step-active", "data-step-valid", "onClick"], at = { class: "stepBubbleWrap" }, rt = { class: "circle stepCircle" }, st = ["textContent"], lt = {
|
|
320
339
|
key: 0,
|
|
321
340
|
class: "seperatorHorizontalStepper"
|
|
322
|
-
},
|
|
341
|
+
}, dt = {
|
|
323
342
|
key: 0,
|
|
324
343
|
class: "step inactiveStep"
|
|
325
|
-
},
|
|
344
|
+
}, ut = { class: "step-content" }, pt = { style: { margin: "1rem 2.5rem", padding: "1rem", background: "#f5f5f5", "border-radius": "8px", "overflow-x": "auto", "max-width": "100%" } }, mt = { style: {} }, ct = {
|
|
326
345
|
key: 0,
|
|
327
346
|
class: "dpiV3_Card_Tips--error dpiV3_Card_Tips"
|
|
328
|
-
},
|
|
329
|
-
function
|
|
330
|
-
const
|
|
331
|
-
return
|
|
332
|
-
e.isInput ? (
|
|
333
|
-
s("div",
|
|
334
|
-
|
|
347
|
+
}, ft = { class: "validation-errors" }, vt = { style: { display: "flex", "flex-direction": "column", gap: "2.5rem" } }, ht = { class: "dev-actions" };
|
|
348
|
+
function gt(e, o, m, S, _, f) {
|
|
349
|
+
const k = u("TextButtonSmall"), v = u("ButtonV3"), C = u("LogoV3"), A = u("ProgressSteps"), M = u("Illustration"), w = u("DemoStep"), D = u("DpiModalBase"), i = u("InputPageStep"), a = u("WipStep"), I = u("ProjectNameStep"), j = u("ProjectOrganisationStep"), T = u("ProjectDescriptionStep"), B = u("ReviewStepDemo"), P = u("StepActionsSection"), V = u("Listbox"), H = u("Card"), L = u("FormKit"), N = u("ModalSimpleV3");
|
|
350
|
+
return d(), p("div", We, [
|
|
351
|
+
e.isInput ? (d(), p("div", Ke, [
|
|
352
|
+
s("div", qe, [
|
|
353
|
+
t(L, {
|
|
335
354
|
id: "dpiForm",
|
|
336
355
|
modelValue: e.formValues,
|
|
337
|
-
"onUpdate:modelValue":
|
|
356
|
+
"onUpdate:modelValue": o[5] || (o[5] = (r) => e.formValues = r),
|
|
338
357
|
type: "form",
|
|
339
358
|
actions: !1,
|
|
340
359
|
plugins: [e.stepPlugin],
|
|
341
360
|
class: "d-flex",
|
|
342
|
-
onSubmit:
|
|
361
|
+
onSubmit: o[6] || (o[6] = pe(() => {
|
|
343
362
|
}, ["prevent"]))
|
|
344
363
|
}, {
|
|
345
|
-
default:
|
|
346
|
-
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (
|
|
347
|
-
s("div",
|
|
348
|
-
|
|
364
|
+
default: n(() => [
|
|
365
|
+
e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (d(), p("div", Je, [
|
|
366
|
+
s("div", Qe, [
|
|
367
|
+
t(k, {
|
|
349
368
|
"button-text": "Übersicht",
|
|
350
369
|
"icon-start": "CaretLeft",
|
|
351
370
|
"icon-name": "caretLeft",
|
|
352
371
|
onClick: e.gotToHome
|
|
353
372
|
}, null, 8, ["onClick"]),
|
|
354
373
|
s("div", null, [
|
|
355
|
-
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (
|
|
356
|
-
|
|
374
|
+
e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (d(), p("div", Xe, [
|
|
375
|
+
t(v, {
|
|
357
376
|
"button-text": "Veröffentlichung aufheben",
|
|
358
377
|
size: "large",
|
|
359
378
|
onClick: e.todoHandler
|
|
360
379
|
}, null, 8, ["onClick"]),
|
|
361
|
-
|
|
380
|
+
t(v, {
|
|
362
381
|
"button-text": "Veröffentlicht ansehen",
|
|
363
382
|
variant: "secondary",
|
|
364
383
|
size: "large",
|
|
365
384
|
"icon-end": "Out",
|
|
366
385
|
onClick: e.todoHandler
|
|
367
386
|
}, null, 8, ["onClick"])
|
|
368
|
-
])) : (
|
|
369
|
-
|
|
387
|
+
])) : (d(), p("div", Ye, [
|
|
388
|
+
t(v, {
|
|
370
389
|
"button-text": "Veröffentlichen",
|
|
371
390
|
size: "large",
|
|
372
391
|
onClick: e.handlePublish
|
|
@@ -374,167 +393,322 @@ function lt(e, t, d, V, w, u) {
|
|
|
374
393
|
]))
|
|
375
394
|
])
|
|
376
395
|
])
|
|
377
|
-
])) : (
|
|
378
|
-
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (
|
|
379
|
-
|
|
380
|
-
|
|
396
|
+
])) : (d(), p("div", Ze, [
|
|
397
|
+
e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (d(), p("div", xe, [
|
|
398
|
+
t(C),
|
|
399
|
+
t(A, {
|
|
381
400
|
checked: e.visitedSteps,
|
|
382
|
-
"onUpdate:checked":
|
|
401
|
+
"onUpdate:checked": o[0] || (o[0] = (r) => e.visitedSteps = r),
|
|
383
402
|
current: e.activeStep,
|
|
384
|
-
"onUpdate:current":
|
|
403
|
+
"onUpdate:current": o[1] || (o[1] = (r) => e.activeStep = r),
|
|
385
404
|
steps: e.stepList || []
|
|
386
405
|
}, null, 8, ["checked", "current", "steps"])
|
|
387
|
-
])) : (
|
|
388
|
-
s("div",
|
|
389
|
-
|
|
406
|
+
])) : (d(), p("div", et, [
|
|
407
|
+
s("div", tt, [
|
|
408
|
+
t(C)
|
|
390
409
|
]),
|
|
391
|
-
s("div",
|
|
392
|
-
|
|
410
|
+
s("div", ot, [
|
|
411
|
+
t(M, { "illustration-name": "start" })
|
|
393
412
|
])
|
|
394
413
|
]))
|
|
395
414
|
])),
|
|
396
|
-
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (
|
|
397
|
-
(
|
|
398
|
-
key:
|
|
399
|
-
class:
|
|
400
|
-
activeItem: e.activeStep ===
|
|
401
|
-
inactiveStep:
|
|
402
|
-
"has-errors": e.checkStepValidity(
|
|
415
|
+
e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (d(), p("ul", nt, [
|
|
416
|
+
(d(!0), p(X, null, Y(e.steps, (r, h, $) => (d(), p("li", {
|
|
417
|
+
key: r,
|
|
418
|
+
class: me(["step", {
|
|
419
|
+
activeItem: e.activeStep === h,
|
|
420
|
+
inactiveStep: h != e.activeStep,
|
|
421
|
+
"has-errors": e.checkStepValidity(h)
|
|
403
422
|
}]),
|
|
404
|
-
"data-step-active": e.activeStep ===
|
|
405
|
-
"data-step-valid":
|
|
406
|
-
onClick: (
|
|
407
|
-
e.activeStep =
|
|
423
|
+
"data-step-active": e.activeStep === h,
|
|
424
|
+
"data-step-valid": r.valid && r.errorCount === 0,
|
|
425
|
+
onClick: (z) => {
|
|
426
|
+
e.activeStep = h, e.update(), e.scrollToTop();
|
|
408
427
|
}
|
|
409
428
|
}, [
|
|
410
|
-
s("div",
|
|
411
|
-
s("div",
|
|
412
|
-
e.checkStepValidity(
|
|
429
|
+
s("div", at, [
|
|
430
|
+
s("div", rt, y($ + 1), 1),
|
|
431
|
+
e.checkStepValidity(h) ? (d(), p("span", {
|
|
413
432
|
key: 0,
|
|
414
433
|
class: "step--errors",
|
|
415
|
-
textContent:
|
|
416
|
-
}, null, 8,
|
|
417
|
-
|
|
434
|
+
textContent: y(r.errorCount + r.blockingCount)
|
|
435
|
+
}, null, 8, st)) : g("", !0),
|
|
436
|
+
Z(y(e.$t(`message.dataupload.steps.${h}Step`)), 1)
|
|
418
437
|
]),
|
|
419
|
-
|
|
420
|
-
], 10,
|
|
421
|
-
e.activeStep === "Overview" ? (
|
|
438
|
+
$ != Object.keys(e.steps).length ? (d(), p("div", lt)) : g("", !0)
|
|
439
|
+
], 10, it))), 128)),
|
|
440
|
+
e.activeStep === "Overview" ? (d(), p("li", dt, o[9] || (o[9] = [
|
|
422
441
|
s("div", { class: "circle stepCircle" }, null, -1)
|
|
423
|
-
]))) :
|
|
424
|
-
])) :
|
|
425
|
-
s("div",
|
|
426
|
-
s("
|
|
427
|
-
s("
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
(
|
|
517
|
-
])
|
|
518
|
-
|
|
442
|
+
]))) : g("", !0)
|
|
443
|
+
])) : g("", !0),
|
|
444
|
+
s("div", ut, [
|
|
445
|
+
s("details", pt, [
|
|
446
|
+
o[10] || (o[10] = s("summary", null, "Form Values", -1)),
|
|
447
|
+
s("pre", mt, y(JSON.stringify(e.formValues, null, 2)), 1)
|
|
448
|
+
]),
|
|
449
|
+
s("div", null, [
|
|
450
|
+
t(i, { name: "Auffindbarkeit/Sichtbarkeit" }, {
|
|
451
|
+
default: n(() => [
|
|
452
|
+
t(w),
|
|
453
|
+
t(D, {
|
|
454
|
+
modelValue: e.hologramOpen,
|
|
455
|
+
"onUpdate:modelValue": o[2] || (o[2] = (r) => e.hologramOpen = r)
|
|
456
|
+
}, {
|
|
457
|
+
default: n(() => [
|
|
458
|
+
s("div", null, [
|
|
459
|
+
t(w)
|
|
460
|
+
])
|
|
461
|
+
]),
|
|
462
|
+
_: 1
|
|
463
|
+
}, 8, ["modelValue"])
|
|
464
|
+
]),
|
|
465
|
+
_: 1
|
|
466
|
+
}),
|
|
467
|
+
t(i, { name: "Auffindbarkeit/Kategorien" }, {
|
|
468
|
+
default: n(() => [
|
|
469
|
+
t(a)
|
|
470
|
+
]),
|
|
471
|
+
_: 1
|
|
472
|
+
}),
|
|
473
|
+
t(i, { name: "Auffindbarkeit/Anwendungsbereiche" }, {
|
|
474
|
+
default: n(() => [
|
|
475
|
+
t(a)
|
|
476
|
+
]),
|
|
477
|
+
_: 1
|
|
478
|
+
}),
|
|
479
|
+
t(i, { name: "Grundlegende Informationen/Name" }, {
|
|
480
|
+
default: n(() => [
|
|
481
|
+
t(I)
|
|
482
|
+
]),
|
|
483
|
+
_: 1
|
|
484
|
+
}),
|
|
485
|
+
t(i, { name: "Grundlegende Informationen/Beschreibung" }, {
|
|
486
|
+
default: n(() => [
|
|
487
|
+
t(j)
|
|
488
|
+
]),
|
|
489
|
+
_: 1
|
|
490
|
+
}),
|
|
491
|
+
t(i, { name: "Grundlegende Informationen/Projektstatus" }, {
|
|
492
|
+
default: n(() => [
|
|
493
|
+
t(T)
|
|
494
|
+
]),
|
|
495
|
+
_: 1
|
|
496
|
+
}),
|
|
497
|
+
t(i, { name: "Grundlegende Informationen/Organisation" }, {
|
|
498
|
+
default: n(() => [
|
|
499
|
+
t(T)
|
|
500
|
+
]),
|
|
501
|
+
_: 1
|
|
502
|
+
}),
|
|
503
|
+
t(i, { name: "Optionale Daten" }, {
|
|
504
|
+
default: n(() => [
|
|
505
|
+
t(a)
|
|
506
|
+
]),
|
|
507
|
+
_: 1
|
|
508
|
+
}),
|
|
509
|
+
t(i, { name: "Initiieren" }, {
|
|
510
|
+
default: n(() => [
|
|
511
|
+
t(a)
|
|
512
|
+
]),
|
|
513
|
+
_: 1
|
|
514
|
+
}),
|
|
515
|
+
t(i, { name: "Planen" }, {
|
|
516
|
+
default: n(() => [
|
|
517
|
+
t(a)
|
|
518
|
+
]),
|
|
519
|
+
_: 1
|
|
520
|
+
}),
|
|
521
|
+
t(i, { name: "Umsetzen" }, {
|
|
522
|
+
default: n(() => [
|
|
523
|
+
t(a)
|
|
524
|
+
]),
|
|
525
|
+
_: 1
|
|
526
|
+
}),
|
|
527
|
+
t(i, { name: "Weiterdenken" }, {
|
|
528
|
+
default: n(() => [
|
|
529
|
+
t(a)
|
|
530
|
+
]),
|
|
531
|
+
_: 1
|
|
532
|
+
}),
|
|
533
|
+
t(i, { name: "Technische Prozessschritte" }, {
|
|
534
|
+
default: n(() => [
|
|
535
|
+
t(a)
|
|
536
|
+
]),
|
|
537
|
+
_: 1
|
|
538
|
+
}),
|
|
539
|
+
t(i, { name: "1. Datenerfassung/Grundlegende Informationen" }, {
|
|
540
|
+
default: n(() => [
|
|
541
|
+
t(a)
|
|
542
|
+
]),
|
|
543
|
+
_: 1
|
|
544
|
+
}),
|
|
545
|
+
t(i, { name: "1. Datenerfassung/Software" }, {
|
|
546
|
+
default: n(() => [
|
|
547
|
+
t(a)
|
|
548
|
+
]),
|
|
549
|
+
_: 1
|
|
550
|
+
}),
|
|
551
|
+
t(i, { name: "1. Datenerfassung/Datensätze" }, {
|
|
552
|
+
default: n(() => [
|
|
553
|
+
t(a)
|
|
554
|
+
]),
|
|
555
|
+
_: 1
|
|
556
|
+
}),
|
|
557
|
+
t(i, { name: "1. Datenerfassung/Hardware" }, {
|
|
558
|
+
default: n(() => [
|
|
559
|
+
t(a)
|
|
560
|
+
]),
|
|
561
|
+
_: 1
|
|
562
|
+
}),
|
|
563
|
+
t(i, { name: "2. Datenverarbeitung/Grundlegende Informationen" }, {
|
|
564
|
+
default: n(() => [
|
|
565
|
+
t(a)
|
|
566
|
+
]),
|
|
567
|
+
_: 1
|
|
568
|
+
}),
|
|
569
|
+
t(i, { name: "2. Datenverarbeitung/Software" }, {
|
|
570
|
+
default: n(() => [
|
|
571
|
+
t(a)
|
|
572
|
+
]),
|
|
573
|
+
_: 1
|
|
574
|
+
}),
|
|
575
|
+
t(i, { name: "2. Datenverarbeitung/Datensätze" }, {
|
|
576
|
+
default: n(() => [
|
|
577
|
+
t(a)
|
|
578
|
+
]),
|
|
579
|
+
_: 1
|
|
580
|
+
}),
|
|
581
|
+
t(i, { name: "2. Datenverarbeitung/Hardware" }, {
|
|
582
|
+
default: n(() => [
|
|
583
|
+
t(a)
|
|
584
|
+
]),
|
|
585
|
+
_: 1
|
|
586
|
+
}),
|
|
587
|
+
t(i, { name: "3. Datensimulation/Grundlegende Informationen" }, {
|
|
588
|
+
default: n(() => [
|
|
589
|
+
t(a)
|
|
590
|
+
]),
|
|
591
|
+
_: 1
|
|
592
|
+
}),
|
|
593
|
+
t(i, { name: "3. Datensimulation/Software" }, {
|
|
594
|
+
default: n(() => [
|
|
595
|
+
t(a)
|
|
596
|
+
]),
|
|
597
|
+
_: 1
|
|
598
|
+
}),
|
|
599
|
+
t(i, { name: "3. Datensimulation/Datensätze" }, {
|
|
600
|
+
default: n(() => [
|
|
601
|
+
t(a)
|
|
602
|
+
]),
|
|
603
|
+
_: 1
|
|
604
|
+
}),
|
|
605
|
+
t(i, { name: "3. Datensimulation/Hardware" }, {
|
|
606
|
+
default: n(() => [
|
|
607
|
+
t(a)
|
|
608
|
+
]),
|
|
609
|
+
_: 1
|
|
610
|
+
}),
|
|
611
|
+
t(i, { name: "4. Datenvisualisierung/Grundlegende Informationen" }, {
|
|
612
|
+
default: n(() => [
|
|
613
|
+
t(a)
|
|
614
|
+
]),
|
|
615
|
+
_: 1
|
|
616
|
+
}),
|
|
617
|
+
t(i, { name: "4. Datenvisualisierung/Software" }, {
|
|
618
|
+
default: n(() => [
|
|
619
|
+
t(a)
|
|
620
|
+
]),
|
|
621
|
+
_: 1
|
|
622
|
+
}),
|
|
623
|
+
t(i, { name: "4. Datenvisualisierung/Datensätze" }, {
|
|
624
|
+
default: n(() => [
|
|
625
|
+
t(a)
|
|
626
|
+
]),
|
|
627
|
+
_: 1
|
|
628
|
+
}),
|
|
629
|
+
t(i, { name: "4. Datenvisualisierung/Hardware" }, {
|
|
630
|
+
default: n(() => [
|
|
631
|
+
t(a)
|
|
632
|
+
]),
|
|
633
|
+
_: 1
|
|
634
|
+
}),
|
|
635
|
+
t(i, { name: "Vorschau" }, {
|
|
636
|
+
default: n(() => [
|
|
637
|
+
e.shouldRenderReviewStep ? (d(), Q(B, {
|
|
638
|
+
key: e.renderViewStepKey,
|
|
639
|
+
values: e.formValues
|
|
640
|
+
}, null, 8, ["values"])) : g("", !0),
|
|
641
|
+
t(P)
|
|
642
|
+
]),
|
|
643
|
+
_: 1
|
|
644
|
+
})
|
|
645
|
+
]),
|
|
646
|
+
o[13] || (o[13] = s("hr", null, null, -1)),
|
|
647
|
+
e.showErrorSummary && e.validationMessages.length ? (d(), p("div", ct, [
|
|
648
|
+
o[11] || (o[11] = s("h4", null, "Bitte korrigieren Sie die folgenden Fehler:", -1)),
|
|
649
|
+
s("ul", ft, [
|
|
650
|
+
(d(!0), p(X, null, Y(e.validationMessages, (r) => (d(), p("li", { key: r }, y(r), 1))), 128))
|
|
651
|
+
])
|
|
652
|
+
])) : g("", !0),
|
|
653
|
+
o[14] || (o[14] = s("hr", null, null, -1)),
|
|
654
|
+
s("div", null, [
|
|
655
|
+
t(H, null, {
|
|
656
|
+
title: n(() => o[12] || (o[12] = [
|
|
657
|
+
Z(" dev view ", -1)
|
|
658
|
+
])),
|
|
659
|
+
default: n(() => [
|
|
660
|
+
s("div", vt, [
|
|
661
|
+
s("div", ht, [
|
|
662
|
+
t(v, {
|
|
663
|
+
type: "button",
|
|
664
|
+
variant: "secondary",
|
|
665
|
+
"button-text": "Open Hologram",
|
|
666
|
+
onClick: o[3] || (o[3] = (r) => e.hologramOpen = !0)
|
|
667
|
+
}),
|
|
668
|
+
t(v, {
|
|
669
|
+
type: "button",
|
|
670
|
+
variant: "secondary",
|
|
671
|
+
"button-text": "Previous",
|
|
672
|
+
onClick: e.goToPreviousStep
|
|
673
|
+
}, null, 8, ["onClick"]),
|
|
674
|
+
t(v, {
|
|
675
|
+
type: "button",
|
|
676
|
+
variant: "secondary",
|
|
677
|
+
"button-text": "Next",
|
|
678
|
+
onClick: e.handleSubmit
|
|
679
|
+
}, null, 8, ["onClick"])
|
|
680
|
+
]),
|
|
681
|
+
s("div", null, [
|
|
682
|
+
t(V, {
|
|
683
|
+
modelValue: e.stepSelect,
|
|
684
|
+
"onUpdate:modelValue": o[4] || (o[4] = (r) => e.stepSelect = r),
|
|
685
|
+
label: "Go to step",
|
|
686
|
+
options: e.stepOptions
|
|
687
|
+
}, null, 8, ["modelValue", "options"])
|
|
688
|
+
])
|
|
689
|
+
])
|
|
690
|
+
]),
|
|
691
|
+
_: 1
|
|
692
|
+
})
|
|
519
693
|
])
|
|
520
694
|
])
|
|
521
695
|
]),
|
|
522
696
|
_: 1
|
|
523
697
|
}, 8, ["modelValue", "plugins"]),
|
|
524
|
-
e.activeSimpleModal ? (
|
|
698
|
+
e.activeSimpleModal ? (d(), Q(N, {
|
|
525
699
|
key: 0,
|
|
526
700
|
buttons: e.modalSimpleConf.button,
|
|
527
701
|
"header-text": e.modalSimpleConf.header,
|
|
528
702
|
text: e.modalSimpleConf.text,
|
|
529
703
|
action: e.modalSimpleConf.action,
|
|
530
|
-
onClose:
|
|
531
|
-
onActionHandling:
|
|
532
|
-
}, null, 8, ["buttons", "header-text", "text", "action"])) :
|
|
704
|
+
onClose: o[7] || (o[7] = (r) => e.activeSimpleModal = !1),
|
|
705
|
+
onActionHandling: o[8] || (o[8] = (r) => e.gotToHome())
|
|
706
|
+
}, null, 8, ["buttons", "header-text", "text", "action"])) : g("", !0)
|
|
533
707
|
])
|
|
534
|
-
], 512)) :
|
|
708
|
+
], 512)) : g("", !0)
|
|
535
709
|
]);
|
|
536
710
|
}
|
|
537
|
-
const
|
|
711
|
+
const no = /* @__PURE__ */ Re(Ge, [["render", gt]]);
|
|
538
712
|
export {
|
|
539
|
-
|
|
713
|
+
no as default
|
|
540
714
|
};
|