@piveau/dpi 0.2.0-alpha.0 → 0.2.0-alpha.2

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