@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.
Files changed (22) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +5 -5
  3. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +93 -36
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +23 -23
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +31 -28
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +4 -4
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +59 -0
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +13 -0
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +50 -0
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue2.js +4 -0
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue.js +7 -0
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue2.js +25 -0
  16. package/dist/data-provider-interface/components/ProgressSteps.vue.js +1 -1
  17. package/dist/data-provider-interface/components/ProgressSteps.vue2.js +23 -16
  18. package/dist/data-provider-interface/views/InputPageProject.vue.js +458 -284
  19. package/dist/images/stadt.png +0 -0
  20. package/dist/stories/components/DemoStepper.vue.js +2 -2
  21. package/dist/stories/components/DemoStepper.vue2.js +155 -98
  22. 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";
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 be } from "../composables/useDpiFormValues.js";
16
+ import { useFormValues as _e } from "../composables/useDpiFormValues.js";
17
17
  import { useDpiStepper as ye } from "../composables/useDpiStepper.js";
18
- import ke from "../config/dcatapdeHappyFlow/converter.js";
18
+ import Ce from "../config/dcatapdeHappyFlow/converter.js";
19
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";
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 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 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: Se,
62
+ InputPageStep: ke,
59
63
  // DistributionInputPage,
60
- LogoV3: Pe,
61
- ButtonV3: Te,
62
- TextButtonSmall: Fe,
63
- Illustration: _e,
64
+ LogoV3: je,
65
+ ButtonV3: $e,
66
+ TextButtonSmall: He,
67
+ Illustration: Ae,
64
68
  // PhLightbulb,
65
69
  // PhCheckCircle,
66
- ModalSimpleV3: $e,
70
+ ModalSimpleV3: Be,
67
71
  // DemoStepper,
68
- DemoStep: he,
69
- ProgressSteps: ge,
70
- ReviewStepDemo: ve,
72
+ DemoStep: Se,
73
+ ProgressSteps: De,
74
+ ReviewStepDemo: be,
71
75
  StepActionsSection: Ve,
72
- ProjectNameStep: Ie,
73
- ProjectDescriptionStep: Ce,
74
- ProjectOrganisationStep: De
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
- ...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) => 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 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 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
- ...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,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(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
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, t, d, V) {
127
- var w, u;
128
- console.log("body:", e, t, "params:", d, V);
134
+ async dispatchDataToDPI(e, o, m, S) {
135
+ var _, f;
136
+ console.log("body:", e, o, "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();
131
- } catch (b) {
132
- console.error(b), (u = this.$Progress) == null || u.fail();
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
- !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
+ !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 t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
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][t],
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][t]
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 = Ae(), { isEditMode: t } = Re(), {
206
- steps: d,
207
- stepList: V,
208
- visitedSteps: w,
209
- activeStep: u,
210
- stepPlugin: b,
211
- goToNextStep: y,
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: 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
+ 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 = ne(a);
223
- i.value = [], c.forEach((_) => {
224
- i.value = i.value.concat(
225
- _.map((ie) => ie.value)
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: 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: 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
- }, 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
+ }, 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
- }, H = k(!1), O = k(0);
241
- ue(u, (a) => {
242
- a === "review" && (H.value = !0, O.value++);
248
+ }, G = b(!1), W = b(0);
249
+ ve(f, (l) => {
250
+ l === "review" && (G.value = !0, W.value++);
243
251
  });
244
- const te = async () => {
252
+ const oe = async () => {
245
253
  try {
246
- const a = "auth/createDataset", c = await ke(
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 (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
+ R(D.value) && v();
263
271
  }
264
- 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();
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: d,
271
- visitedSteps: w,
272
- activeStep: u,
273
- activeSubStep: N,
274
- subSteps: $,
275
- previousStep: F,
276
- stepList: V,
277
- nextStep: j,
278
- stepPlugin: b,
279
- checkStepValidity: B,
280
- goToNextStep: y,
281
- goToNextStepIfValid: E,
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: Z,
284
- library: x,
285
- isEditMode: t,
286
- translateSchema: L,
287
- createSchema: X,
288
- getSchema: Y,
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: R,
292
- shouldRenderReviewStep: H,
293
- renderViewStepKey: O,
294
- handlePublish: te,
295
- handleSubmit: oe,
296
- showErrorSummary: D,
297
- validationMessages: i
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
- }), 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" }, ot = { class: "dpiV3_Illustration-Start" }, nt = {
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
+ }, 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
- }, 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" } }, 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": t[2] || (t[2] = (i) => e.formValues = i),
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: t[3] || (t[3] = ae(() => {
361
+ onSubmit: o[6] || (o[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: 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 ? (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(C),
399
+ t(A, {
381
400
  checked: e.visitedSteps,
382
- "onUpdate:checked": t[0] || (t[0] = (i) => e.visitedSteps = i),
401
+ "onUpdate:checked": o[0] || (o[0] = (r) => e.visitedSteps = r),
383
402
  current: e.activeStep,
384
- "onUpdate:current": t[1] || (t[1] = (i) => e.activeStep = i),
403
+ "onUpdate:current": o[1] || (o[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(C)
390
409
  ]),
391
- s("div", Qe, [
392
- o(F, { "illustration-name": "start" })
410
+ s("div", ot, [
411
+ t(M, { "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", 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 === 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 === 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", Ze, [
411
- s("div", xe, g(T + 1), 1),
412
- e.checkStepValidity(f) ? (n(), r("span", {
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: g(i.errorCount + i.blockingCount)
416
- }, null, 8, et)) : v("", !0),
417
- J(g(e.$t(`message.dataupload.steps.${f}Step`)), 1)
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
- 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
+ $ != 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
- ]))) : 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
+ ]))) : 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 ? (n(), K(D, {
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: 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: 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)) : v("", !0)
708
+ ], 512)) : g("", !0)
535
709
  ]);
536
710
  }
537
- const Kt = /* @__PURE__ */ Me(Le, [["render", lt]]);
711
+ const no = /* @__PURE__ */ Re(Ge, [["render", gt]]);
538
712
  export {
539
- Kt as default
713
+ no as default
540
714
  };