@piveau/dpi 0.1.0-beta.89 → 0.1.0-beta.90

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.
@@ -1,20 +1,20 @@
1
1
  import { getNode as K } from "@formkit/core";
2
2
  import "@formkit/vue";
3
- import { PhNumberCircleFive as Z, PhCheckCircle as G, PhLightbulb as J } from "@phosphor-icons/vue";
3
+ import { PhNumberCircleFive as G, PhCheckCircle as Z, PhLightbulb as J } from "@phosphor-icons/vue";
4
4
  import { useWindowScroll as Q } from "@vueuse/core";
5
5
  import X from "jquery";
6
- import { has as I, isNil as E } from "lodash-es";
7
- import { defineComponent as Y, resolveComponent as g, createElementBlock as r, openBlock as s, createCommentVNode as p, createElementVNode as o, createVNode as v, createBlock as b, withModifiers as N, withCtx as j, Fragment as V, renderList as _, withDirectives as z, normalizeClass as y, toDisplayString as c, vShow as H, createTextVNode as M, ref as R, markRaw as x, getCurrentInstance as ee } from "vue";
6
+ import { has as T, isNil as O } from "lodash-es";
7
+ import { defineComponent as Y, resolveComponent as g, createElementBlock as l, openBlock as i, createCommentVNode as p, createElementVNode as a, createVNode as v, createBlock as f, withModifiers as N, withCtx as M, Fragment as V, renderList as k, withDirectives as j, normalizeClass as y, toDisplayString as c, vShow as z, createTextVNode as H, ref as R, markRaw as x, getCurrentInstance as ee } from "vue";
8
8
  import { useI18n as te } from "vue-i18n";
9
9
  import { mapActions as B, mapGetters as W } from "vuex";
10
- import ie from "../components/InputPageStep.vue.js";
11
- import se from "../components/Navigation.vue.js";
12
- import { useFormValues as oe } from "../composables/useDpiFormValues.js";
13
- import { useDpiStepper as ae } from "../composables/useDpiStepper.js";
10
+ import se from "../components/InputPageStep.vue.js";
11
+ import ie from "../components/Navigation.vue.js";
12
+ import { useFormValues as ae } from "../composables/useDpiFormValues.js";
13
+ import { useDpiStepper as oe } from "../composables/useDpiStepper.js";
14
14
  import U from "../config/dcatapdeHappyFlow/converter.js";
15
15
  import re from "../HappyFlowComponents/img/Circle.svg.js";
16
- import ne from "../HappyFlowComponents/img/CircleFill.svg.js";
17
- import le from "../HappyFlowComponents/img/Selected1.svg.js";
16
+ import le from "../HappyFlowComponents/img/CircleFill.svg.js";
17
+ import ne from "../HappyFlowComponents/img/Selected1.svg.js";
18
18
  import de from "../HappyFlowComponents/img/Selected1_2.svg.js";
19
19
  import pe from "../HappyFlowComponents/img/Selected2.svg.js";
20
20
  import ue from "../HappyFlowComponents/img/Selected2_2.svg.js";
@@ -29,8 +29,8 @@ import Se from "../HappyFlowComponents/ui/ButtonV3.vue.js";
29
29
  import Ce from "../HappyFlowComponents/ui/Illustration.vue.js";
30
30
  import ye from "../HappyFlowComponents/ui/LogoV3.vue.js";
31
31
  import Ve from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
32
- import _e from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
33
- import ke from "./DistributionInputPage.vue.js";
32
+ import ke from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
33
+ import _e from "./DistributionInputPage.vue.js";
34
34
  import $e from "./OverviewPage.vue.js";
35
35
  import Ie from "./PropertyChooser.vue.js";
36
36
  /* empty css */
@@ -53,8 +53,8 @@ const Fe = Y({
53
53
  },
54
54
  data() {
55
55
  return {
56
- circles: [re, ne],
57
- images: [le, pe, ce, ve, ge],
56
+ circles: [re, le],
57
+ images: [ne, pe, ce, ve, ge],
58
58
  selectedImages: [
59
59
  de,
60
60
  ue,
@@ -71,6 +71,9 @@ const Fe = Y({
71
71
  stepCounter: 0,
72
72
  byte: !0,
73
73
  expandall: !0,
74
+ datasetIdExists: !1,
75
+ duplicateTitleModal: !1,
76
+ duplicateDatasetTitle: "",
74
77
  modalSimpleConf: {
75
78
  button: "Ja, abbrechen",
76
79
  header: "Wollen Sie wirklich abbrechen?",
@@ -83,17 +86,17 @@ const Fe = Y({
83
86
  };
84
87
  },
85
88
  components: {
86
- InputPageStep: ie,
87
- DistributionInputPage: ke,
89
+ InputPageStep: se,
90
+ DistributionInputPage: _e,
88
91
  PropertyChooser: Ie,
89
- Navigation: se,
92
+ Navigation: ie,
90
93
  LogoV3: ye,
91
94
  ButtonV3: Se,
92
- TextButtonSmall: _e,
95
+ TextButtonSmall: ke,
93
96
  Illustration: Ce,
94
97
  PhLightbulb: J,
95
- PhCheckCircle: G,
96
- PhNumberCircleFive: Z,
98
+ PhCheckCircle: Z,
99
+ PhNumberCircleFive: G,
97
100
  ModalSimpleV3: Ve
98
101
  },
99
102
  computed: {
@@ -105,18 +108,18 @@ const Fe = Y({
105
108
  ...W("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
106
109
  getTitleStep() {
107
110
  return Object.keys(this.formValues).filter(
108
- (e) => I(this.formValues[e], "dct:title")
111
+ (e) => T(this.formValues[e], "dct:title")
109
112
  )[0];
110
113
  },
111
114
  createIDFromTitle() {
112
115
  const e = this.formValues[this.getTitleStep]["dct:title"][0]["@value"];
113
116
  if (e != null)
114
- return e.toLowerCase().replace(/ /g, "-");
117
+ return e.toLowerCase().trim().replace(/\s+/g, "-");
115
118
  },
116
119
  getFirstTitleFromForm() {
117
120
  try {
118
121
  const e = this.formValues[this.getTitleStep];
119
- return I(e, "dct:title") && e["dct:title"].length > 0 && I(e["dct:title"][0], "@value") && !E(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
122
+ return T(e, "dct:title") && e["dct:title"].length > 0 && T(e["dct:title"][0], "@value") && !O(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
120
123
  } catch {
121
124
  }
122
125
  },
@@ -142,8 +145,12 @@ const Fe = Y({
142
145
  return e === this.substepCounter ? this.circles[1] : this.circles[0];
143
146
  },
144
147
  validateStep() {
145
- var e, t, i, n, a;
146
- ((i = (t = (e = this.formValues[this.activeStep]) == null ? void 0 : e[this.activeSubStep]) == null ? void 0 : t[0]) == null ? void 0 : i.isValid) === !0 || ((n = this.formValues[this.activeStep][this.activeSubStep]) == null ? void 0 : n.isValid) === !0 ? this.navTrigger("next") : ((a = this.formValues[this.activeStep][this.activeSubStep]) != null && a[0] ? this.formValues[this.activeStep][this.activeSubStep][0].isValid = !1 : this.formValues[this.activeStep][this.activeSubStep].isValid = !1, this.handleDistributionsValidation(this.activeSubStep));
148
+ var e, t, s, o, r;
149
+ if (console.log("ACTIVE SUBSTEP:", this.activeSubStep), this.activeSubStep === "dct:title" && this.datasetIdExists) {
150
+ this.duplicateDatasetTitle = this.getFirstTitleFromForm, this.duplicateTitleModal = !0;
151
+ return;
152
+ }
153
+ ((s = (t = (e = this.formValues[this.activeStep]) == null ? void 0 : e[this.activeSubStep]) == null ? void 0 : t[0]) == null ? void 0 : s.isValid) === !0 || ((o = this.formValues[this.activeStep][this.activeSubStep]) == null ? void 0 : o.isValid) === !0 ? this.navTrigger("next") : ((r = this.formValues[this.activeStep][this.activeSubStep]) != null && r[0] ? this.formValues[this.activeStep][this.activeSubStep][0].isValid = !1 : this.formValues[this.activeStep][this.activeSubStep].isValid = !1, this.handleDistributionsValidation(this.activeSubStep));
147
154
  },
148
155
  handleDistributionsValidation(e) {
149
156
  be.emit("nextClicked", e);
@@ -155,44 +162,45 @@ const Fe = Y({
155
162
  },
156
163
  navTrigger(e, t) {
157
164
  try {
158
- let i = [];
159
- if (Object.keys(this.steps).forEach((n, a) => {
165
+ let s = [];
166
+ if (Object.keys(this.steps).forEach((o, r) => {
160
167
  let m = {
161
- step: n,
162
- substeps: this.subSteps[a],
163
- substepCount: Object.keys(this.subSteps[a]).length
168
+ step: o,
169
+ substeps: this.subSteps[r],
170
+ substepCount: Object.keys(this.subSteps[r]).length
164
171
  };
165
- i.push(m);
166
- }), e === "next" && (i[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === i[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = i[this.stepCounter].step, this.activeSubStep = Object.keys(
167
- i[this.stepCounter].substeps
172
+ s.push(m);
173
+ }), e === "next" && (s[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === s[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = s[this.stepCounter].step, this.activeSubStep = Object.keys(
174
+ s[this.stepCounter].substeps
168
175
  )[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
169
- i[this.stepCounter].substeps
176
+ s[this.stepCounter].substeps
170
177
  )[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [
171
178
  { isValid: !0 }
172
- ])) : this.stepCounter != i.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
173
- i[this.stepCounter].substeps
174
- )[0], this.activeStep = i[this.stepCounter].step)), e === "prev" && (i[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
175
- i[this.stepCounter].substeps
176
- )[this.substepCounter]) : (this.stepCounter--, this.activeStep = i[this.stepCounter].step, this.substepCounter = Object.keys(i[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
177
- i[this.stepCounter].substeps
178
- )[this.substepCounter]) : (this.substepCounter = Object.keys(i[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
179
- i[this.stepCounter].substeps
180
- )[this.substepCounter], this.activeStep = i[this.stepCounter].step)), e === "publish") {
181
- let n = "auth/createDataset";
179
+ ])) : this.stepCounter != s.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
180
+ s[this.stepCounter].substeps
181
+ )[0], this.activeStep = s[this.stepCounter].step)), e === "prev" && (s[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
182
+ s[this.stepCounter].substeps
183
+ )[this.substepCounter]) : (this.stepCounter--, this.activeStep = s[this.stepCounter].step, this.substepCounter = Object.keys(s[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
184
+ s[this.stepCounter].substeps
185
+ )[this.substepCounter]) : (this.substepCounter = Object.keys(s[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
186
+ s[this.stepCounter].substeps
187
+ )[this.substepCounter], this.activeStep = s[this.stepCounter].step)), e === "publish") {
188
+ this.createDatasetID();
189
+ let o = "auth/createDataset";
182
190
  U(
183
191
  this.formValues,
184
192
  this.dpiContext,
185
193
  this.getUserData,
186
194
  this.$env.api.hubUrl
187
- ).then((a) => {
195
+ ).then((r) => {
188
196
  this.dispatchDataToDPI(
189
- a.body,
190
- n,
191
- a.actionParams,
197
+ r.body,
198
+ o,
199
+ r.actionParams,
192
200
  "publish"
193
201
  );
194
- }).catch((a) => {
195
- console.error("Fehler beim Senden der Daten:", a);
202
+ }).catch((r) => {
203
+ console.error("Fehler beim Senden der Daten:", r);
196
204
  }), setTimeout(() => {
197
205
  window.location.href = this.$router.resolve({
198
206
  name: "DPI-Home-HappyFlow"
@@ -200,21 +208,21 @@ const Fe = Y({
200
208
  }, 1e3);
201
209
  }
202
210
  if (e === "depublish") {
203
- let n = "auth/depublishById";
211
+ let o = "auth/depublishById";
204
212
  U(
205
213
  this.formValues,
206
214
  this.dpiContext,
207
215
  this.getUserData,
208
216
  this.$env.api.hubUrl
209
- ).then((a) => {
217
+ ).then((r) => {
210
218
  this.dispatchDataToDPI(
211
- a.body,
212
- n,
213
- a.actionParams,
219
+ r.body,
220
+ o,
221
+ r.actionParams,
214
222
  "depublish"
215
223
  );
216
- }).catch((a) => {
217
- console.error("Fehler beim Senden der Daten:", a);
224
+ }).catch((r) => {
225
+ console.error("Fehler beim Senden der Daten:", r);
218
226
  }), setTimeout(() => {
219
227
  window.location.href = this.$router.resolve({
220
228
  name: "DPI-Home-HappyFlow"
@@ -222,49 +230,50 @@ const Fe = Y({
222
230
  }, 1e3);
223
231
  }
224
232
  if (e === "draft") {
225
- let n = "auth/createUserDraft";
233
+ this.createDatasetID();
234
+ let o = "auth/createUserDraft";
226
235
  U(
227
236
  this.formValues,
228
237
  this.dpiContext,
229
238
  this.getUserData,
230
239
  this.$env.api.hubUrl
231
- ).then((a) => {
240
+ ).then((r) => {
232
241
  this.dispatchDataToDPI(
233
- a.body,
234
- n,
235
- a.actionParams,
242
+ r.body,
243
+ o,
244
+ r.actionParams,
236
245
  "draft"
237
246
  );
238
- }).catch((a) => {
239
- console.error("Fehler beim Senden der Daten:", a);
247
+ }).catch((r) => {
248
+ console.error("Fehler beim Senden der Daten:", r);
240
249
  }), setTimeout(() => {
241
250
  window.location.href = this.$router.resolve({
242
251
  name: "DPI-Home-HappyFlow"
243
252
  }).href;
244
253
  }, 1e3);
245
254
  }
246
- } catch (i) {
247
- console.log(i);
255
+ } catch (s) {
256
+ console.log(s);
248
257
  }
249
258
  },
250
- async dispatchDataToDPI(e, t, i, n) {
251
- var a, m;
259
+ async dispatchDataToDPI(e, t, s, o) {
260
+ var r, m;
252
261
  try {
253
- n === "publish" && (i.token = this.getUserData.rtpToken, localStorage.getItem("dpi_draftmode") === "true" && localStorage.getItem("dpi_editmode") === "true" ? (await this.$store.dispatch("auth/createUserDraft", i), i.url = `${this.$env.api.hubUrl}drafts/datasets/publish/${i.id}?catalogue=${i.catalog}`) : i.url = `${this.$env.api.hubUrl}datasets?id=${i.id}&catalogue=${i.catalog}`, await this.$store.dispatch(t, i)), n === "draft" && await this.$store.dispatch(t, i), n === "depublish" && (await this.$store.dispatch("auth/putDatasetToDraft", {
254
- id: i.id,
255
- catalog: i.catalog,
256
- title: i.title,
257
- description: i.description
258
- }), i.url = `${this.$env.api.hubUrl}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`, await this.$store.dispatch("auth/createUserDraft", i)), (a = this.$Progress) == null || a.finish(), this.clearAll();
262
+ o === "publish" && (s.token = this.getUserData.rtpToken, localStorage.getItem("dpi_draftmode") === "true" && localStorage.getItem("dpi_editmode") === "true" ? (await this.$store.dispatch("auth/createUserDraft", s), s.url = `${this.$env.api.hubUrl}drafts/datasets/publish/${s.id}?catalogue=${s.catalog}`) : s.url = `${this.$env.api.hubUrl}datasets?id=${s.id}&catalogue=${s.catalog}`, await this.$store.dispatch(t, s)), o === "draft" && await this.$store.dispatch(t, s), o === "depublish" && (await this.$store.dispatch("auth/putDatasetToDraft", {
263
+ id: s.id,
264
+ catalog: s.catalog,
265
+ title: s.title,
266
+ description: s.description
267
+ }), s.url = `${this.$env.api.hubUrl}catalogues/${s.catalog}/datasets/origin?originalId=${s.id}`, await this.$store.dispatch("auth/createUserDraft", s)), (r = this.$Progress) == null || r.finish(), this.clearAll();
259
268
  } catch (C) {
260
269
  console.error(C), (m = this.$Progress) == null || m.fail();
261
270
  }
262
271
  },
263
272
  dropdownCLick() {
264
273
  const e = document.querySelectorAll(".formkitProperty h4");
265
- this.expandall && e.forEach((t, i) => {
274
+ this.expandall && e.forEach((t, s) => {
266
275
  t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
267
- }), this.expandall || e.forEach((t, i) => {
276
+ }), this.expandall || e.forEach((t, s) => {
268
277
  t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
269
278
  });
270
279
  },
@@ -276,20 +285,20 @@ const Fe = Y({
276
285
  },
277
286
  initInputPage() {
278
287
  this.activeSubStep = this.activeSubStep || "Landing", ee().appContext.app.config.globalProperties.$env;
279
- const t = this.getSchema(this.property).value, i = Object.keys(t).find(
280
- (n) => t[n].map((a) => a.name).includes("dct:issued") || t[n].map((a) => a.name).includes("dct:modified")
288
+ const t = this.getSchema(this.property).value, s = Object.keys(t).find(
289
+ (o) => t[o].map((r) => r.name).includes("dct:issued") || t[o].map((r) => r.name).includes("dct:modified")
281
290
  );
282
- this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && i != null && t[i].forEach((n) => {
283
- (n.identifier === "issued" || n.identifier === "modified") && (n.children[1].props.else.validation = "", n.children[1].props.else["validation-visibility"] = "", n.children[1].props.then.validation = "", n.children[1].props.then["validation-visibility"] = "", n.children[1].props.then.validation = "", n.children[1].props.then["validation-visibility"] = "");
291
+ this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && s != null && t[s].forEach((o) => {
292
+ (o.identifier === "issued" || o.identifier === "modified") && (o.children[1].props.else.validation = "", o.children[1].props.else["validation-visibility"] = "", o.children[1].props.then.validation = "", o.children[1].props.then["validation-visibility"] = "", o.children[1].props.then.validation = "", o.children[1].props.then["validation-visibility"] = "");
284
293
  }), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.$nextTick(() => {
285
294
  X('[data-bs-toggle="tooltip"]').tooltip({
286
295
  container: "body"
287
296
  }), setTimeout(() => {
288
- document.querySelectorAll(".formkitProperty h4").forEach((a, m) => {
289
- a.parentElement.parentElement.classList.contains(
297
+ document.querySelectorAll(".formkitProperty h4").forEach((r, m) => {
298
+ r.parentElement.parentElement.classList.contains(
290
299
  "formkitWrapRepeatable"
291
- ) || (m != 0 && m != 1 && m != 2 && m != 3 && a.nextElementSibling.classList.toggle("d-none"), a.addEventListener("click", () => {
292
- a.classList.toggle("dpiChevUp"), a.nextElementSibling.classList.toggle("d-none");
300
+ ) || (m != 0 && m != 1 && m != 2 && m != 3 && r.nextElementSibling.classList.toggle("d-none"), r.addEventListener("click", () => {
301
+ r.classList.toggle("dpiChevUp"), r.nextElementSibling.classList.toggle("d-none");
293
302
  }));
294
303
  }), document.querySelectorAll(".formkitProperty");
295
304
  });
@@ -301,7 +310,17 @@ const Fe = Y({
301
310
  },
302
311
  createDatasetID() {
303
312
  const e = this.formValues[this.getTitleStep];
304
- !I(e, "datasetID") || E(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);
313
+ !T(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);
314
+ },
315
+ async checkDatasetIdExists(e) {
316
+ try {
317
+ const t = await fetch(
318
+ `${this.$env.api.hubUrl}datasets/${e}`
319
+ );
320
+ return t.status === 200 ? !0 : (t.status === 404, !1);
321
+ } catch (t) {
322
+ return console.error("Error checking dataset ID:", t), !1;
323
+ }
305
324
  },
306
325
  generateandTranslateSchema(e) {
307
326
  for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
@@ -332,8 +351,23 @@ const Fe = Y({
332
351
  }
333
352
  },
334
353
  getFirstTitleFromForm: {
335
- handler(e, t) {
336
- e !== t && (localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.isEditMode);
354
+ async handler(e, t) {
355
+ if (e !== t && (localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), !this.isEditMode)) {
356
+ if (!e || e.trim() === "") {
357
+ this.datasetIdExists = !1;
358
+ return;
359
+ }
360
+ const s = this.createIDFromTitle, o = await this.checkDatasetIdExists(
361
+ s
362
+ );
363
+ this.datasetIdExists = o, console.log(
364
+ "Generated ID:",
365
+ //this.formValues[this.getTitleStep].datasetID,
366
+ s,
367
+ "Exists:",
368
+ o
369
+ );
370
+ }
337
371
  }
338
372
  },
339
373
  // the schema is a computed value which gets computed only once so on language change this value must be re-computed
@@ -343,66 +377,66 @@ const Fe = Y({
343
377
  }
344
378
  }
345
379
  },
346
- beforeRouteEnter(e, t, i) {
347
- i((n) => {
348
- t.name && !t.name.startsWith("DataProviderInterface") && n.clearAll();
380
+ beforeRouteEnter(e, t, s) {
381
+ s((o) => {
382
+ t.name && !t.name.startsWith("DataProviderInterface") && o.clearAll();
349
383
  });
350
384
  },
351
385
  setup() {
352
386
  const e = De(), { isEditMode: t } = Pe(), {
353
- steps: i,
354
- activeStep: n,
355
- subSteps: a,
387
+ steps: s,
388
+ activeStep: o,
389
+ subSteps: r,
356
390
  visitedSteps: m,
357
391
  previousStep: C,
358
392
  nextStep: h,
359
- stepPlugin: k,
360
- goToNextStep: T,
393
+ stepPlugin: _,
394
+ goToNextStep: D,
361
395
  goToPreviousStep: $
362
- } = ae(), { formValues: D } = oe(), { t: P, te: w } = te(), F = R(!1), { translateSchema: A, createSchema: L, getSchema: O } = we({
363
- t: P,
364
- te: w
365
- }), l = () => {
366
- let { x: f, y: q } = Q({ behavior: "smooth" });
396
+ } = oe(), { formValues: P } = ae(), { t: w, te: F } = te(), A = R(!1), { translateSchema: L, createSchema: E, getSchema: I } = we({
397
+ t: w,
398
+ te: F
399
+ }), n = () => {
400
+ let { x: b, y: q } = Q({ behavior: "smooth" });
367
401
  q.value = 0;
368
- }, u = (f) => (i[f].errorCount > 0 || i[f].blockingCount > 0) && m.value.includes(f), d = x({ OverviewPage: $e }), S = R("");
369
- return t.value && (n.value = "ReviewAndPublish", S.value = "reviewAndPublishPage"), {
370
- steps: i,
402
+ }, u = (b) => (s[b].errorCount > 0 || s[b].blockingCount > 0) && m.value.includes(b), d = x({ OverviewPage: $e }), S = R("");
403
+ return t.value && (o.value = "ReviewAndPublish", S.value = "reviewAndPublishPage"), {
404
+ steps: s,
371
405
  visitedSteps: m,
372
- activeStep: n,
406
+ activeStep: o,
373
407
  activeSubStep: S,
374
- subSteps: a,
408
+ subSteps: r,
375
409
  previousStep: C,
376
410
  nextStep: h,
377
- stepPlugin: k,
411
+ stepPlugin: _,
378
412
  checkStepValidity: u,
379
- goToNextStep: T,
413
+ goToNextStep: D,
380
414
  goToPreviousStep: $,
381
- scrollToTop: l,
415
+ scrollToTop: n,
382
416
  library: d,
383
417
  isEditMode: t,
384
- translateSchema: A,
385
- createSchema: L,
386
- getSchema: O,
418
+ translateSchema: L,
419
+ createSchema: E,
420
+ getSchema: I,
387
421
  dpiContext: e,
388
- formValues: D,
389
- activeSimpleModal: F
422
+ formValues: P,
423
+ activeSimpleModal: A
390
424
  };
391
425
  }
392
426
  }), Ae = { class: "form-container V3-typography" }, Le = {
393
427
  key: 0,
394
428
  ref: "fkInputContainer",
395
429
  class: "inputContainer"
396
- }, Oe = { class: "formContainer formkit" }, Ue = { key: 0 }, Ee = { class: "dpiV3_stepper draftStepper" }, je = {
430
+ }, Ee = { class: "formContainer formkit" }, Ue = { key: 0 }, Oe = { class: "dpiV3_stepper draftStepper" }, Me = {
397
431
  key: 0,
398
432
  class: "draftCTA"
399
- }, ze = {
433
+ }, je = {
400
434
  key: 1,
401
435
  class: "draftCTA"
402
- }, He = { key: 1 }, Me = {
436
+ }, ze = { key: 1 }, He = {
403
437
  key: 0,
404
438
  class: "dpiV3_stepper"
405
- }, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"], Ze = ["textContent"], Ge = { style: { "vertical-align": "middle" } }, Je = { class: "dpiV3_subStepWrapper" }, Qe = {
439
+ }, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"], Ge = ["textContent"], Ze = { style: { "vertical-align": "middle" } }, Je = { class: "dpiV3_subStepWrapper" }, Qe = {
406
440
  key: 0,
407
441
  class: "dpiV3_seperatorHorizontalStepper"
408
442
  }, Xe = {
@@ -411,16 +445,16 @@ const Fe = Y({
411
445
  }, Ye = {
412
446
  key: 2,
413
447
  class: "dpiV3_subStep"
414
- }, Ne = { class: "dpiV3_subStepInner" }, xe = { class: "dpiV3_subStepCircleWrap" }, et = ["src"], tt = { style: { height: "20px", display: "flex", "align-items": "center" } }, it = {
448
+ }, Ne = { class: "dpiV3_subStepInner" }, xe = { class: "dpiV3_subStepCircleWrap" }, et = ["src"], tt = { style: { height: "20px", display: "flex", "align-items": "center" } }, st = {
415
449
  key: 0,
416
450
  class: "dpiV3_step dpiV3_inactiveStep"
417
- }, st = {
451
+ }, it = {
418
452
  key: 1,
419
453
  class: "dpiV3_stepperLanding"
420
- }, ot = { class: "dpiV3_bydata_logo_wordmark" }, at = { class: "dpiV3_Illustration-Start" }, rt = {
454
+ }, at = { class: "dpiV3_bydata_logo_wordmark" }, ot = { class: "dpiV3_Illustration-Start" }, rt = {
421
455
  key: 2,
422
456
  class: "steps"
423
- }, nt = ["data-step-active", "data-step-valid", "onClick"], lt = { class: "stepBubbleWrap" }, dt = { class: "circle stepCircle" }, pt = ["textContent"], ut = {
457
+ }, lt = ["data-step-active", "data-step-valid", "onClick"], nt = { class: "stepBubbleWrap" }, dt = { class: "circle stepCircle" }, pt = ["textContent"], ut = {
424
458
  key: 0,
425
459
  class: "seperatorHorizontalStepper"
426
460
  }, ct = {
@@ -435,19 +469,19 @@ const Fe = Y({
435
469
  }, gt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" }, bt = {
436
470
  key: 3,
437
471
  class: "dpiV3_Content_InputPage"
438
- }, St = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, yt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" }, _t = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, kt = { class: "dpiV3_hvd_frame3846" }, $t = { class: "dpiV3_copy_large_semi_bold" }, It = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Dt = { class: "dpiV3_copy_large_semi_bold" }, Pt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, wt = { class: "dpiV3_hvd_frame3846" }, Ft = { class: "dpiV3_copy_large_semi_bold" }, At = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Lt = { class: "dpiV3_hvd_frame3846" }, Ot = { class: "dpiV3_copy_large_semi_bold" }, Ut = { class: "dpiV3_copy_large_regular" }, Et = {
472
+ }, St = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, yt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Vt = { class: "dpiV3_CT-Content" }, kt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, _t = { class: "dpiV3_hvd_frame3846" }, $t = { class: "dpiV3_copy_large_semi_bold" }, It = { class: "dpiV3_copy_large_regular" }, Tt = { class: "dpiV3_hvd_frame3846" }, Dt = { class: "dpiV3_copy_large_semi_bold" }, Pt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, wt = { class: "dpiV3_hvd_frame3846" }, Ft = { class: "dpiV3_copy_large_semi_bold" }, At = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Lt = { class: "dpiV3_hvd_frame3846" }, Et = { class: "dpiV3_copy_large_semi_bold" }, Ut = { class: "dpiV3_copy_large_regular" }, Ot = {
439
473
  key: 5,
440
474
  class: "p-1"
441
475
  };
442
- function jt(e, t, i, n, a, m) {
443
- const C = g("TextButtonSmall"), h = g("ButtonV3"), k = g("LogoV3"), T = g("PhNumberCircleFive"), $ = g("PhCheckCircle"), D = g("Illustration"), P = g("FormKitSchema"), w = g("PhLightbulb"), F = g("DistributionInputPage"), A = g("InputPageStep"), L = g("FormKit"), O = g("ModalSimpleV3");
444
- return s(), r("div", Ae, [
445
- e.isInput ? (s(), r("div", Le, [
446
- o("div", Oe, [
447
- v(L, {
476
+ function Mt(e, t, s, o, r, m) {
477
+ const C = g("TextButtonSmall"), h = g("ButtonV3"), _ = g("LogoV3"), D = g("PhNumberCircleFive"), $ = g("PhCheckCircle"), P = g("Illustration"), w = g("FormKitSchema"), F = g("PhLightbulb"), A = g("DistributionInputPage"), L = g("InputPageStep"), E = g("FormKit"), I = g("ModalSimpleV3");
478
+ return i(), l("div", Ae, [
479
+ e.isInput ? (i(), l("div", Le, [
480
+ a("div", Ee, [
481
+ v(E, {
448
482
  id: "dpiForm",
449
483
  modelValue: e.formValues,
450
- "onUpdate:modelValue": t[11] || (t[11] = (l) => e.formValues = l),
484
+ "onUpdate:modelValue": t[11] || (t[11] = (n) => e.formValues = n),
451
485
  type: "form",
452
486
  actions: !1,
453
487
  plugins: [e.stepPlugin],
@@ -455,120 +489,120 @@ function jt(e, t, i, n, a, m) {
455
489
  onSubmit: t[12] || (t[12] = N(() => {
456
490
  }, ["prevent"]))
457
491
  }, {
458
- default: j(() => [
459
- e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div", Ue, [
460
- o("div", Ee, [
492
+ default: M(() => [
493
+ e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (i(), l("div", Ue, [
494
+ a("div", Oe, [
461
495
  v(C, {
462
496
  "button-text": "Übersicht",
463
497
  "icon-start": "CaretLeft",
464
498
  "icon-name": "caretLeft",
465
499
  onClick: e.gotToHome
466
500
  }, null, 8, ["onClick"]),
467
- o("div", null, [
468
- e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), r("div", je, [
501
+ a("div", null, [
502
+ e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (i(), l("div", Me, [
469
503
  v(h, {
470
504
  "button-text": "Veröffentlichung aufheben",
471
505
  size: "large",
472
- onClick: t[0] || (t[0] = (l) => e.navTrigger("depublish"))
506
+ onClick: t[0] || (t[0] = (n) => e.navTrigger("depublish"))
473
507
  }),
474
508
  v(h, {
475
509
  "button-text": "Veröffentlicht ansehen",
476
510
  variant: "secondary",
477
511
  size: "large",
478
512
  "icon-end": "Out",
479
- onClick: t[1] || (t[1] = (l) => e.handlePublishedRoute())
513
+ onClick: t[1] || (t[1] = (n) => e.handlePublishedRoute())
480
514
  })
481
- ])) : (s(), r("div", ze, [
515
+ ])) : (i(), l("div", je, [
482
516
  v(h, {
483
517
  "button-text": "Veröffentlichen",
484
518
  size: "large",
485
- onClick: t[2] || (t[2] = (l) => e.navTrigger("publish"))
519
+ onClick: t[2] || (t[2] = (n) => e.navTrigger("publish"))
486
520
  })
487
521
  ]))
488
522
  ])
489
523
  ])
490
- ])) : (s(), r("div", He, [
491
- e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), r("div", Me, [
492
- v(k),
493
- o("ul", Re, [
494
- (s(!0), r(V, null, _(e.steps, (l, u, d) => z((s(), r("li", {
495
- key: l,
524
+ ])) : (i(), l("div", ze, [
525
+ e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (i(), l("div", He, [
526
+ v(_),
527
+ a("ul", Re, [
528
+ (i(!0), l(V, null, k(e.steps, (n, u, d) => j((i(), l("li", {
529
+ key: n,
496
530
  class: y(["dpiV3_step", {
497
531
  dpiV3_activeItem: e.activeStep === u,
498
532
  inactiveStep: u != e.activeStep,
499
533
  "has-errors": e.checkStepValidity(u)
500
534
  }]),
501
535
  "data-step-active": e.activeStep === u,
502
- "data-step-valid": l.valid && l.errorCount === 0
536
+ "data-step-valid": n.valid && n.errorCount === 0
503
537
  }, [
504
- o("div", We, [
505
- o("div", {
538
+ a("div", We, [
539
+ a("div", {
506
540
  class: y(["firstRowWrapper", {
507
541
  dpiV3_activeStepName: u === e.activeStep,
508
542
  formerlyVisitedStep: e.stepCounter > d,
509
543
  "copy-small-regular": e.stepCounter > d
510
544
  }])
511
545
  }, [
512
- e.activeStep === u && d < 5 ? (s(), r("img", {
546
+ e.activeStep === u && d < 5 ? (i(), l("img", {
513
547
  key: 0,
514
548
  class: "dpiV3_circle dpiV3_stepCircle",
515
549
  src: e.selectedImages[d - 1],
516
550
  alt: "Selected Icon"
517
551
  }, null, 8, qe)) : p("", !0),
518
- e.activeStep === u && d === 5 ? (s(), b(T, {
552
+ e.activeStep === u && d === 5 ? (i(), f(D, {
519
553
  key: 1,
520
554
  size: 28,
521
555
  color: "#009FE3",
522
556
  weight: "fill"
523
557
  })) : p("", !0),
524
- d < e.stepCounter ? (s(), b($, {
558
+ d < e.stepCounter ? (i(), f($, {
525
559
  key: 2,
526
560
  size: 28,
527
561
  color: "#70CC44",
528
562
  weight: "fill"
529
563
  })) : p("", !0),
530
- d > e.stepCounter ? (s(), r("img", {
564
+ d > e.stepCounter ? (i(), l("img", {
531
565
  key: 3,
532
566
  class: "dpiV3_circle dpiV3_stepCircle",
533
567
  src: e.images[d - 1],
534
568
  alt: "Selected Icon"
535
569
  }, null, 8, Ke)) : p("", !0),
536
- e.checkStepValidity(u) ? (s(), r("span", {
570
+ e.checkStepValidity(u) ? (i(), l("span", {
537
571
  key: 4,
538
572
  class: "dpiV3_step--errors",
539
- textContent: c(l.errorCount + l.blockingCount)
540
- }, null, 8, Ze)) : p("", !0),
541
- o("span", Ge, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
573
+ textContent: c(n.errorCount + n.blockingCount)
574
+ }, null, 8, Ge)) : p("", !0),
575
+ a("span", Ze, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
542
576
  ], 2),
543
- o("div", Je, [
544
- d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), r("div", Qe)) : p("", !0),
545
- d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), r("div", Xe)) : p("", !0),
546
- e.activeStep === u ? (s(), r("div", Ye, [
547
- e.stepCounter < 5 ? (s(!0), r(V, { key: 0 }, _(Object.keys(
577
+ a("div", Je, [
578
+ d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (i(), l("div", Qe)) : p("", !0),
579
+ d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (i(), l("div", Xe)) : p("", !0),
580
+ e.activeStep === u ? (i(), l("div", Ye, [
581
+ e.stepCounter < 5 ? (i(!0), l(V, { key: 0 }, k(Object.keys(
548
582
  e.subSteps[d]
549
- ), (S, f) => (s(), r("div", Ne, [
550
- o("div", xe, [
551
- e.substepCounter > f ? (s(), b($, {
583
+ ), (S, b) => (i(), l("div", Ne, [
584
+ a("div", xe, [
585
+ e.substepCounter > b ? (i(), f($, {
552
586
  key: 0,
553
587
  size: 20,
554
588
  color: "#009FE3"
555
- })) : (s(), r("img", {
589
+ })) : (i(), l("img", {
556
590
  key: 1,
557
- src: e.getCircles(f),
591
+ src: e.getCircles(b),
558
592
  alt: "circle"
559
593
  }, null, 8, et)),
560
- f != Object.keys(e.subSteps[d]).length - 1 ? (s(), r("div", {
594
+ b != Object.keys(e.subSteps[d]).length - 1 ? (i(), l("div", {
561
595
  key: 2,
562
596
  class: y(["dpiV3_seperatorHorizontalStepperInner", {
563
- dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > f
597
+ dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > b
564
598
  }])
565
599
  }, null, 2)) : p("", !0)
566
600
  ]),
567
- o("div", tt, [
568
- o("span", {
601
+ a("div", tt, [
602
+ a("span", {
569
603
  class: y(["large-regular dpiV3_substepText", {
570
604
  dpiV3_activeStepDesc: S === e.activeSubStep,
571
- formerlyVisitedStep: e.substepCounter > f
605
+ formerlyVisitedStep: e.substepCounter > b
572
606
  }])
573
607
  }, c(e.$t(
574
608
  `message.dataupload.steps.${S.replace(
@@ -582,63 +616,63 @@ function jt(e, t, i, n, a, m) {
582
616
  ])
583
617
  ])
584
618
  ], 10, Be)), [
585
- [H, u !== "Landing" && u !== "Additionals"]
619
+ [z, u !== "Landing" && u !== "Additionals"]
586
620
  ])), 128)),
587
- e.activeStep === "Overview" ? (s(), r("li", it, t[15] || (t[15] = [
588
- o("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
621
+ e.activeStep === "Overview" ? (i(), l("li", st, t[17] || (t[17] = [
622
+ a("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
589
623
  ]))) : p("", !0)
590
624
  ])
591
- ])) : (s(), r("div", st, [
592
- o("div", ot, [
593
- v(k)
625
+ ])) : (i(), l("div", it, [
626
+ a("div", at, [
627
+ v(_)
594
628
  ]),
595
- o("div", at, [
596
- v(D, { "illustration-name": "start" })
629
+ a("div", ot, [
630
+ v(P, { "illustration-name": "start" })
597
631
  ])
598
632
  ]))
599
633
  ])),
600
- e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), r("ul", rt, [
601
- (s(!0), r(V, null, _(e.steps, (l, u, d) => (s(), r("li", {
602
- key: l,
634
+ e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (i(), l("ul", rt, [
635
+ (i(!0), l(V, null, k(e.steps, (n, u, d) => (i(), l("li", {
636
+ key: n,
603
637
  class: y(["step", {
604
638
  activeItem: e.activeStep === u,
605
639
  inactiveStep: u != e.activeStep,
606
640
  "has-errors": e.checkStepValidity(u)
607
641
  }]),
608
642
  "data-step-active": e.activeStep === u,
609
- "data-step-valid": l.valid && l.errorCount === 0,
643
+ "data-step-valid": n.valid && n.errorCount === 0,
610
644
  onClick: (S) => {
611
645
  e.activeStep = u, e.update(), e.scrollToTop();
612
646
  }
613
647
  }, [
614
- o("div", lt, [
615
- o("div", dt, c(d + 1), 1),
616
- e.checkStepValidity(u) ? (s(), r("span", {
648
+ a("div", nt, [
649
+ a("div", dt, c(d + 1), 1),
650
+ e.checkStepValidity(u) ? (i(), l("span", {
617
651
  key: 0,
618
652
  class: "step--errors",
619
- textContent: c(l.errorCount + l.blockingCount)
653
+ textContent: c(n.errorCount + n.blockingCount)
620
654
  }, null, 8, pt)) : p("", !0),
621
- M(c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
655
+ H(c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
622
656
  ]),
623
- d != Object.keys(e.steps).length ? (s(), r("div", ut)) : p("", !0)
624
- ], 10, nt))), 128)),
625
- e.activeStep === "Overview" ? (s(), r("li", ct, t[16] || (t[16] = [
626
- o("div", { class: "circle stepCircle" }, null, -1)
657
+ d != Object.keys(e.steps).length ? (i(), l("div", ut)) : p("", !0)
658
+ ], 10, lt))), 128)),
659
+ e.activeStep === "Overview" ? (i(), l("li", ct, t[18] || (t[18] = [
660
+ a("div", { class: "circle stepCircle" }, null, -1)
627
661
  ]))) : p("", !0)
628
662
  ])) : p("", !0),
629
- (s(!0), r(V, null, _(e.getNavSteps(
663
+ (i(!0), l(V, null, k(e.getNavSteps(
630
664
  e.$env.content.dataProviderInterface.specification
631
- )[e.property], (l, u) => (s(), b(A, {
665
+ )[e.property], (n, u) => (i(), f(L, {
632
666
  key: u,
633
- name: l
667
+ name: n
634
668
  }, {
635
- default: j(() => [
636
- (s(!0), r(V, null, _(Object.keys(
637
- e.getSchema(e.property).value[l]
638
- ).length, (d, S) => z((s(), r("div", ht, [
639
- l !== "Distributions" && l !== "Additionals" ? (s(), b(P, {
669
+ default: M(() => [
670
+ (i(!0), l(V, null, k(Object.keys(
671
+ e.getSchema(e.property).value[n]
672
+ ).length, (d, S) => j((i(), l("div", ht, [
673
+ n !== "Distributions" && n !== "Additionals" ? (i(), f(w, {
640
674
  key: 0,
641
- schema: e.getSchema(e.property).value[l][S],
675
+ schema: e.getSchema(e.property).value[n][S],
642
676
  library: e.library,
643
677
  "final-values": e.formValues,
644
678
  onHandleNav: () => {
@@ -646,13 +680,13 @@ function jt(e, t, i, n, a, m) {
646
680
  }, null, 8, ["schema", "library", "final-values"])) : p("", !0)
647
681
  ], 512)), [
648
682
  [
649
- H,
683
+ z,
650
684
  Object.values(
651
- e.getSchema(e.property).value[l][S]
652
- )[0] === e.activeSubStep.replace(/_\d+$/, "") || l === "Landing"
685
+ e.getSchema(e.property).value[n][S]
686
+ )[0] === e.activeSubStep.replace(/_\d+$/, "") || n === "Landing"
653
687
  ]
654
688
  ])), 256)),
655
- e.activeStep === "Landing" ? (s(), r("div", vt, [
689
+ e.activeStep === "Landing" ? (i(), l("div", vt, [
656
690
  v(h, {
657
691
  "button-text": "Abbrechen",
658
692
  size: "large",
@@ -667,15 +701,15 @@ function jt(e, t, i, n, a, m) {
667
701
  onClick: t[4] || (t[4] = (d) => e.navTrigger("next"))
668
702
  })
669
703
  ])) : p("", !0),
670
- e.activeStep === "ReviewAndPublish" ? (s(), r("div", mt, [
671
- o("div", gt, [
672
- e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), b(h, {
704
+ e.activeStep === "ReviewAndPublish" ? (i(), l("div", mt, [
705
+ a("div", gt, [
706
+ e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (i(), f(h, {
673
707
  key: 0,
674
708
  "button-text": "Veröffentlichung aufheben",
675
709
  size: "large",
676
710
  variant: "secondary",
677
711
  onClick: t[5] || (t[5] = (d) => e.navTrigger("depublish"))
678
- })) : (s(), b(h, {
712
+ })) : (i(), f(h, {
679
713
  key: 1,
680
714
  "button-text": "Als Entwurf speichern",
681
715
  size: "large",
@@ -689,7 +723,7 @@ function jt(e, t, i, n, a, m) {
689
723
  })
690
724
  ])
691
725
  ])) : p("", !0),
692
- e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), r("div", {
726
+ e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (i(), l("div", {
693
727
  key: 2,
694
728
  class: y(["dpiV3_CTA", {
695
729
  dpiV3_activeInfobox: e.activeSubStep.includes("hvdPage")
@@ -701,8 +735,8 @@ function jt(e, t, i, n, a, m) {
701
735
  variant: "tertiary",
702
736
  onClick: t[8] || (t[8] = (d) => e.activeSimpleModal = !0)
703
737
  }),
704
- o("div", ft, [
705
- e.activeStep !== "Landing" ? (s(), b(h, {
738
+ a("div", ft, [
739
+ e.activeStep !== "Landing" ? (i(), f(h, {
706
740
  key: 0,
707
741
  "icon-start": "CaretLeft",
708
742
  "button-text": "Zurück",
@@ -718,71 +752,71 @@ function jt(e, t, i, n, a, m) {
718
752
  })
719
753
  ])
720
754
  ], 2)) : p("", !0),
721
- e.activeSubStep.includes("hvdPage") ? (s(), r("div", bt, [
722
- o("div", St, [
723
- o("div", Ct, [
724
- v(w, {
755
+ e.activeSubStep.includes("hvdPage") ? (i(), l("div", bt, [
756
+ a("div", St, [
757
+ a("div", Ct, [
758
+ v(F, {
725
759
  size: 32,
726
760
  color: "#009fe3"
727
761
  }),
728
- o("div", yt, c(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
762
+ a("div", yt, c(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
729
763
  ]),
730
- o("div", Vt, [
731
- o("div", _t, c(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
732
- o("div", kt, [
733
- o("div", $t, " 1. " + c(e.$t(
764
+ a("div", Vt, [
765
+ a("div", kt, c(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
766
+ a("div", _t, [
767
+ a("div", $t, " 1. " + c(e.$t(
734
768
  "message.dataupload.datasets.hvdPage.tips-question-1"
735
769
  )), 1),
736
- o("ul", It, [
737
- o("li", null, c(e.$t(
770
+ a("ul", It, [
771
+ a("li", null, c(e.$t(
738
772
  "message.dataupload.datasets.hvdPage.hvd-category-1"
739
773
  )), 1),
740
- o("li", null, c(e.$t(
774
+ a("li", null, c(e.$t(
741
775
  "message.dataupload.datasets.hvdPage.hvd-category-2"
742
776
  )), 1),
743
- o("li", null, c(e.$t(
777
+ a("li", null, c(e.$t(
744
778
  "message.dataupload.datasets.hvdPage.hvd-category-3"
745
779
  )), 1),
746
- o("li", null, c(e.$t(
780
+ a("li", null, c(e.$t(
747
781
  "message.dataupload.datasets.hvdPage.hvd-category-4"
748
782
  )), 1),
749
- o("li", null, c(e.$t(
783
+ a("li", null, c(e.$t(
750
784
  "message.dataupload.datasets.hvdPage.hvd-category-5"
751
785
  )), 1),
752
- o("li", null, c(e.$t(
786
+ a("li", null, c(e.$t(
753
787
  "message.dataupload.datasets.hvdPage.hvd-category-6"
754
788
  )), 1)
755
789
  ])
756
790
  ]),
757
- o("div", Tt, [
758
- o("div", Dt, " 2. " + c(e.$t(
791
+ a("div", Tt, [
792
+ a("div", Dt, " 2. " + c(e.$t(
759
793
  "message.dataupload.datasets.hvdPage.tips-question-2"
760
794
  )), 1),
761
- o("p", Pt, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
795
+ a("p", Pt, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
762
796
  ]),
763
- o("div", wt, [
764
- o("div", Ft, " 3. " + c(e.$t(
797
+ a("div", wt, [
798
+ a("div", Ft, " 3. " + c(e.$t(
765
799
  "message.dataupload.datasets.hvdPage.tips-question-3"
766
800
  )), 1),
767
- o("p", At, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
801
+ a("p", At, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
768
802
  ]),
769
- o("div", Lt, [
770
- o("div", Ot, " 4. " + c(e.$t(
803
+ a("div", Lt, [
804
+ a("div", Et, " 4. " + c(e.$t(
771
805
  "message.dataupload.datasets.hvdPage.tips-question-4"
772
806
  )), 1),
773
- o("p", Ut, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
807
+ a("p", Ut, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
774
808
  ])
775
809
  ])
776
810
  ])
777
811
  ])) : p("", !0),
778
- l === "Distributions" ? (s(), b(F, {
812
+ n === "Distributions" ? (i(), f(A, {
779
813
  key: 4,
780
814
  schema: e.getSchema("distributions"),
781
815
  values: e.formValues
782
816
  }, null, 8, ["schema", "values"])) : p("", !0),
783
- l === "Mandatory" ? (s(), r("p", Et, [
784
- t[17] || (t[17] = o("b", null, "*", -1)),
785
- M(" " + c(e.$t("message.dataupload.info.mandatory")), 1)
817
+ n === "Mandatory" ? (i(), l("p", Ot, [
818
+ t[19] || (t[19] = a("b", null, "*", -1)),
819
+ H(" " + c(e.$t("message.dataupload.info.mandatory")), 1)
786
820
  ])) : p("", !0)
787
821
  ]),
788
822
  _: 2
@@ -790,20 +824,30 @@ function jt(e, t, i, n, a, m) {
790
824
  ]),
791
825
  _: 1
792
826
  }, 8, ["modelValue", "plugins"]),
793
- e.activeSimpleModal ? (s(), b(O, {
827
+ e.activeSimpleModal ? (i(), f(I, {
794
828
  key: 0,
795
829
  buttons: e.modalSimpleConf.button,
796
830
  "header-text": e.modalSimpleConf.header,
797
831
  text: e.modalSimpleConf.text,
798
832
  action: e.modalSimpleConf.action,
799
- onClose: t[13] || (t[13] = (l) => e.activeSimpleModal = !1),
800
- onActionHandling: t[14] || (t[14] = (l) => e.gotToHome())
801
- }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
833
+ onClose: t[13] || (t[13] = (n) => e.activeSimpleModal = !1),
834
+ onActionHandling: t[14] || (t[14] = (n) => e.gotToHome())
835
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0),
836
+ e.duplicateTitleModal ? (i(), f(I, {
837
+ key: 1,
838
+ class: "duplicate-title-modal",
839
+ buttons: "Okay",
840
+ "header-text": `Dataset with title '${e.duplicateDatasetTitle}' already exists`,
841
+ text: "Please choose another title before continuing.",
842
+ action: "close",
843
+ onClose: t[15] || (t[15] = (n) => e.duplicateTitleModal = !1),
844
+ onActionHandling: t[16] || (t[16] = (n) => e.duplicateTitleModal = !1)
845
+ }, null, 8, ["header-text"])) : p("", !0)
802
846
  ])
803
847
  ], 512)) : p("", !0)
804
848
  ]);
805
849
  }
806
- const Ii = /* @__PURE__ */ Te(Fe, [["render", jt]]);
850
+ const Is = /* @__PURE__ */ Te(Fe, [["render", Mt]]);
807
851
  export {
808
- Ii as default
852
+ Is as default
809
853
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.89",
4
+ "version": "0.1.0-beta.90",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",