@piveau/dpi 0.1.0-twinby.0 → 0.2.0-alpha.0

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