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