@piveau/dpi 0.1.0-beta.68 → 0.1.0-beta.69

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.
@@ -3,7 +3,7 @@ import "@formkit/vue";
3
3
  import { PhNumberCircleFive as Z, PhCheckCircle as G, 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 U } from "lodash-es";
6
+ import { has as I, isNil as E } from "lodash-es";
7
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";
8
8
  import { useI18n as te } from "vue-i18n";
9
9
  import { mapActions as B, mapGetters as W } from "vuex";
@@ -11,10 +11,10 @@ import ie from "../components/InputPageStep.vue.js";
11
11
  import se from "../components/Navigation.vue.js";
12
12
  import { useFormValues as oe } from "../composables/useDpiFormValues.js";
13
13
  import { useDpiStepper as ae } from "../composables/useDpiStepper.js";
14
- import E from "../config/dcatapdeHappyFlow/converter.js";
14
+ import O 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";
@@ -37,8 +37,8 @@ import Ie from "./PropertyChooser.vue.js";
37
37
  /* empty css */
38
38
  /* empty css */
39
39
  import Te from "../../_virtual/_plugin-vue_export-helper.js";
40
- import { useDpiContext as Pe } from "../composables/useDpiContext.js";
41
- import { useEditModeInfo as De } from "../composables/useDpiEditMode.js";
40
+ import { useDpiContext as De } from "../composables/useDpiContext.js";
41
+ import { useEditModeInfo as Pe } from "../composables/useDpiEditMode.js";
42
42
  import { useFormSchema as we } from "../composables/useFormSchema.js";
43
43
  const Fe = Y({
44
44
  props: {
@@ -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,
@@ -116,7 +116,7 @@ const Fe = Y({
116
116
  getFirstTitleFromForm() {
117
117
  try {
118
118
  const e = this.formValues[this.getTitleStep];
119
- return I(e, "dct:title") && e["dct:title"].length > 0 && I(e["dct:title"][0], "@value") && !U(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
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"] : "";
120
120
  } catch {
121
121
  }
122
122
  },
@@ -142,8 +142,8 @@ const Fe = Y({
142
142
  return e === this.substepCounter ? this.circles[1] : this.circles[0];
143
143
  },
144
144
  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));
145
+ var e, t, i, l, 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 || ((l = this.formValues[this.activeStep][this.activeSubStep]) == null ? void 0 : l.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));
147
147
  },
148
148
  handleDistributionsValidation(e) {
149
149
  be.emit("nextClicked", e);
@@ -156,9 +156,9 @@ const Fe = Y({
156
156
  navTrigger(e, t) {
157
157
  try {
158
158
  let i = [];
159
- if (Object.keys(this.steps).forEach((n, a) => {
159
+ if (Object.keys(this.steps).forEach((l, a) => {
160
160
  let m = {
161
- step: n,
161
+ step: l,
162
162
  substeps: this.subSteps[a],
163
163
  substepCount: Object.keys(this.subSteps[a]).length
164
164
  };
@@ -178,8 +178,8 @@ const Fe = Y({
178
178
  )[this.substepCounter]) : (this.substepCounter = Object.keys(i[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
179
179
  i[this.stepCounter].substeps
180
180
  )[this.substepCounter], this.activeStep = i[this.stepCounter].step)), e === "publish") {
181
- let n = "auth/createDataset";
182
- E(
181
+ let l = "auth/createDataset";
182
+ O(
183
183
  this.formValues,
184
184
  this.dpiContext,
185
185
  this.getUserData,
@@ -187,7 +187,7 @@ const Fe = Y({
187
187
  ).then((a) => {
188
188
  this.dispatchDataToDPI(
189
189
  a.body,
190
- n,
190
+ l,
191
191
  a.actionParams,
192
192
  "publish"
193
193
  );
@@ -200,8 +200,8 @@ const Fe = Y({
200
200
  }, 1e3);
201
201
  }
202
202
  if (e === "depublish") {
203
- let n = "auth/depublishById";
204
- E(
203
+ let l = "auth/depublishById";
204
+ O(
205
205
  this.formValues,
206
206
  this.dpiContext,
207
207
  this.getUserData,
@@ -209,7 +209,7 @@ const Fe = Y({
209
209
  ).then((a) => {
210
210
  this.dispatchDataToDPI(
211
211
  a.body,
212
- n,
212
+ l,
213
213
  a.actionParams,
214
214
  "depublish"
215
215
  );
@@ -222,8 +222,8 @@ const Fe = Y({
222
222
  }, 1e3);
223
223
  }
224
224
  if (e === "draft") {
225
- let n = "auth/createUserDraft";
226
- E(
225
+ let l = "auth/createUserDraft";
226
+ O(
227
227
  this.formValues,
228
228
  this.dpiContext,
229
229
  this.getUserData,
@@ -231,7 +231,7 @@ const Fe = Y({
231
231
  ).then((a) => {
232
232
  this.dispatchDataToDPI(
233
233
  a.body,
234
- n,
234
+ l,
235
235
  a.actionParams,
236
236
  "draft"
237
237
  );
@@ -247,15 +247,15 @@ const Fe = Y({
247
247
  console.log(i);
248
248
  }
249
249
  },
250
- async dispatchDataToDPI(e, t, i, n) {
250
+ async dispatchDataToDPI(e, t, i, l) {
251
251
  var a, m;
252
252
  try {
253
- n === "publish" && (i.token = this.getUserData.rtpToken, localStorage.getItem("dpi_draftmode") === "true" && localStorage.getItem("dpi_editmode") === "true" ? i.url = `${this.$env.api.hubUrl}drafts/datasets/publish/${i.id}?catalogue=${i.catalog}` : i.url = `${this.$env.api.hubUrl}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`, await this.$store.dispatch(t, i)), n === "draft" && await this.$store.dispatch(t, i), n === "depublish" && await this.$store.dispatch("auth/putDatasetToDraft", {
253
+ l === "publish" && (i.token = this.getUserData.rtpToken, localStorage.getItem("dpi_draftmode") === "true" && localStorage.getItem("dpi_editmode") === "true" ? (i.url = `${this.$env.api.hubUrl}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`, 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}catalogues/${i.catalog}/datasets/origin?originalId=${i.id}`, await this.$store.dispatch(t, i)), l === "draft" && await this.$store.dispatch(t, i), l === "depublish" && (await this.$store.dispatch("auth/putDatasetToDraft", {
254
254
  id: i.id,
255
255
  catalog: i.catalog,
256
256
  title: i.title,
257
257
  description: i.description
258
- }), (a = this.$Progress) == null || a.finish(), this.clearAll();
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();
259
259
  } catch (C) {
260
260
  console.error(C), (m = this.$Progress) == null || m.fail();
261
261
  }
@@ -277,10 +277,10 @@ const Fe = Y({
277
277
  initInputPage() {
278
278
  this.activeSubStep = this.activeSubStep || "Landing", ee().appContext.app.config.globalProperties.$env;
279
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")
280
+ (l) => t[l].map((a) => a.name).includes("dct:issued") || t[l].map((a) => a.name).includes("dct:modified")
281
281
  );
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"] = "");
282
+ this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && i != null && t[i].forEach((l) => {
283
+ (l.identifier === "issued" || l.identifier === "modified") && (l.children[1].props.else.validation = "", l.children[1].props.else["validation-visibility"] = "", l.children[1].props.then.validation = "", l.children[1].props.then["validation-visibility"] = "", l.children[1].props.then.validation = "", l.children[1].props.then["validation-visibility"] = "");
284
284
  }), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.$nextTick(() => {
285
285
  X('[data-bs-toggle="tooltip"]').tooltip({
286
286
  container: "body"
@@ -301,7 +301,7 @@ const Fe = Y({
301
301
  },
302
302
  createDatasetID() {
303
303
  const e = this.formValues[this.getTitleStep];
304
- !I(e, "datasetID") || U(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);
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);
305
305
  },
306
306
  generateandTranslateSchema(e) {
307
307
  for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
@@ -344,14 +344,14 @@ const Fe = Y({
344
344
  }
345
345
  },
346
346
  beforeRouteEnter(e, t, i) {
347
- i((n) => {
348
- t.name && !t.name.startsWith("DataProviderInterface") && n.clearAll();
347
+ i((l) => {
348
+ t.name && !t.name.startsWith("DataProviderInterface") && l.clearAll();
349
349
  });
350
350
  },
351
351
  setup() {
352
- const e = Pe(), { isEditMode: t } = De(), {
352
+ const e = De(), { isEditMode: t } = Pe(), {
353
353
  steps: i,
354
- activeStep: n,
354
+ activeStep: l,
355
355
  subSteps: a,
356
356
  visitedSteps: m,
357
357
  previousStep: C,
@@ -359,17 +359,17 @@ const Fe = Y({
359
359
  stepPlugin: k,
360
360
  goToNextStep: T,
361
361
  goToPreviousStep: $
362
- } = ae(), { formValues: P } = oe(), { t: D, te: w } = te(), F = R(!1), { translateSchema: A, createSchema: L, getSchema: O } = we({
363
- t: D,
362
+ } = ae(), { formValues: D } = oe(), { t: P, te: w } = te(), F = R(!1), { translateSchema: A, createSchema: L, getSchema: U } = we({
363
+ t: P,
364
364
  te: w
365
- }), l = () => {
365
+ }), n = () => {
366
366
  let { x: f, y: q } = Q({ behavior: "smooth" });
367
367
  q.value = 0;
368
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"), {
369
+ return t.value && (l.value = "ReviewAndPublish", S.value = "reviewAndPublishPage"), {
370
370
  steps: i,
371
371
  visitedSteps: m,
372
- activeStep: n,
372
+ activeStep: l,
373
373
  activeSubStep: S,
374
374
  subSteps: a,
375
375
  previousStep: C,
@@ -378,14 +378,14 @@ const Fe = Y({
378
378
  checkStepValidity: u,
379
379
  goToNextStep: T,
380
380
  goToPreviousStep: $,
381
- scrollToTop: l,
381
+ scrollToTop: n,
382
382
  library: d,
383
383
  isEditMode: t,
384
384
  translateSchema: A,
385
385
  createSchema: L,
386
- getSchema: O,
386
+ getSchema: U,
387
387
  dpiContext: e,
388
- formValues: P,
388
+ formValues: D,
389
389
  activeSimpleModal: F
390
390
  };
391
391
  }
@@ -393,7 +393,7 @@ const Fe = Y({
393
393
  key: 0,
394
394
  ref: "fkInputContainer",
395
395
  class: "inputContainer"
396
- }, Oe = { class: "formContainer formkit" }, Ee = { key: 0 }, Ue = { class: "dpiV3_stepper draftStepper" }, je = {
396
+ }, Ue = { class: "formContainer formkit" }, Oe = { key: 0 }, Ee = { class: "dpiV3_stepper draftStepper" }, je = {
397
397
  key: 0,
398
398
  class: "draftCTA"
399
399
  }, ze = {
@@ -420,7 +420,7 @@ const Fe = Y({
420
420
  }, ot = { class: "dpiV3_bydata_logo_wordmark" }, at = { class: "dpiV3_Illustration-Start" }, rt = {
421
421
  key: 2,
422
422
  class: "steps"
423
- }, nt = ["data-step-active", "data-step-valid", "onClick"], lt = { class: "stepBubbleWrap" }, dt = { class: "circle stepCircle" }, pt = ["textContent"], ut = {
423
+ }, lt = ["data-step-active", "data-step-valid", "onClick"], nt = { class: "stepBubbleWrap" }, dt = { class: "circle stepCircle" }, pt = ["textContent"], ut = {
424
424
  key: 0,
425
425
  class: "seperatorHorizontalStepper"
426
426
  }, ct = {
@@ -435,19 +435,19 @@ const Fe = Y({
435
435
  }, gt = { class: "dpiV3_CTANav" }, ft = { class: "dpiV3_CTANav" }, bt = {
436
436
  key: 3,
437
437
  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" }, Pt = { class: "dpiV3_copy_large_semi_bold" }, Dt = { 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" }, Et = { class: "dpiV3_copy_large_regular" }, Ut = {
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" }, Ut = { class: "dpiV3_copy_large_semi_bold" }, Ot = { class: "dpiV3_copy_large_regular" }, Et = {
439
439
  key: 5,
440
440
  class: "p-1"
441
441
  };
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"), P = g("Illustration"), D = g("FormKitSchema"), w = g("PhLightbulb"), F = g("DistributionInputPage"), A = g("InputPageStep"), L = g("FormKit"), O = g("ModalSimpleV3");
442
+ function jt(e, t, i, l, 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"), U = g("ModalSimpleV3");
444
444
  return s(), r("div", Ae, [
445
445
  e.isInput ? (s(), r("div", Le, [
446
- o("div", Oe, [
446
+ o("div", Ue, [
447
447
  v(L, {
448
448
  id: "dpiForm",
449
449
  modelValue: e.formValues,
450
- "onUpdate:modelValue": t[11] || (t[11] = (l) => e.formValues = l),
450
+ "onUpdate:modelValue": t[11] || (t[11] = (n) => e.formValues = n),
451
451
  type: "form",
452
452
  actions: !1,
453
453
  plugins: [e.stepPlugin],
@@ -456,8 +456,8 @@ function jt(e, t, i, n, a, m) {
456
456
  }, ["prevent"]))
457
457
  }, {
458
458
  default: j(() => [
459
- e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div", Ee, [
460
- o("div", Ue, [
459
+ e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), r("div", Oe, [
460
+ o("div", Ee, [
461
461
  v(C, {
462
462
  "button-text": "Übersicht",
463
463
  "icon-start": "CaretLeft",
@@ -469,20 +469,20 @@ function jt(e, t, i, n, a, m) {
469
469
  v(h, {
470
470
  "button-text": "Veröffentlichung aufheben",
471
471
  size: "large",
472
- onClick: t[0] || (t[0] = (l) => e.navTrigger("depublish"))
472
+ onClick: t[0] || (t[0] = (n) => e.navTrigger("depublish"))
473
473
  }),
474
474
  v(h, {
475
475
  "button-text": "Veröffentlicht ansehen",
476
476
  variant: "secondary",
477
477
  size: "large",
478
478
  "icon-end": "Out",
479
- onClick: t[1] || (t[1] = (l) => e.handlePublishedRoute())
479
+ onClick: t[1] || (t[1] = (n) => e.handlePublishedRoute())
480
480
  })
481
481
  ])) : (s(), r("div", ze, [
482
482
  v(h, {
483
483
  "button-text": "Veröffentlichen",
484
484
  size: "large",
485
- onClick: t[2] || (t[2] = (l) => e.navTrigger("publish"))
485
+ onClick: t[2] || (t[2] = (n) => e.navTrigger("publish"))
486
486
  })
487
487
  ]))
488
488
  ])
@@ -491,15 +491,15 @@ function jt(e, t, i, n, a, m) {
491
491
  e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), r("div", Me, [
492
492
  v(k),
493
493
  o("ul", Re, [
494
- (s(!0), r(V, null, _(e.steps, (l, u, d) => z((s(), r("li", {
495
- key: l,
494
+ (s(!0), r(V, null, _(e.steps, (n, u, d) => z((s(), r("li", {
495
+ key: n,
496
496
  class: y(["dpiV3_step", {
497
497
  dpiV3_activeItem: e.activeStep === u,
498
498
  inactiveStep: u != e.activeStep,
499
499
  "has-errors": e.checkStepValidity(u)
500
500
  }]),
501
501
  "data-step-active": e.activeStep === u,
502
- "data-step-valid": l.valid && l.errorCount === 0
502
+ "data-step-valid": n.valid && n.errorCount === 0
503
503
  }, [
504
504
  o("div", We, [
505
505
  o("div", {
@@ -536,7 +536,7 @@ function jt(e, t, i, n, a, m) {
536
536
  e.checkStepValidity(u) ? (s(), r("span", {
537
537
  key: 4,
538
538
  class: "dpiV3_step--errors",
539
- textContent: c(l.errorCount + l.blockingCount)
539
+ textContent: c(n.errorCount + n.blockingCount)
540
540
  }, null, 8, Ze)) : p("", !0),
541
541
  o("span", Ge, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
542
542
  ], 2),
@@ -593,52 +593,52 @@ function jt(e, t, i, n, a, m) {
593
593
  v(k)
594
594
  ]),
595
595
  o("div", at, [
596
- v(P, { "illustration-name": "start" })
596
+ v(D, { "illustration-name": "start" })
597
597
  ])
598
598
  ]))
599
599
  ])),
600
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,
601
+ (s(!0), r(V, null, _(e.steps, (n, u, d) => (s(), r("li", {
602
+ key: n,
603
603
  class: y(["step", {
604
604
  activeItem: e.activeStep === u,
605
605
  inactiveStep: u != e.activeStep,
606
606
  "has-errors": e.checkStepValidity(u)
607
607
  }]),
608
608
  "data-step-active": e.activeStep === u,
609
- "data-step-valid": l.valid && l.errorCount === 0,
609
+ "data-step-valid": n.valid && n.errorCount === 0,
610
610
  onClick: (S) => {
611
611
  e.activeStep = u, e.update(), e.scrollToTop();
612
612
  }
613
613
  }, [
614
- o("div", lt, [
614
+ o("div", nt, [
615
615
  o("div", dt, c(d + 1), 1),
616
616
  e.checkStepValidity(u) ? (s(), r("span", {
617
617
  key: 0,
618
618
  class: "step--errors",
619
- textContent: c(l.errorCount + l.blockingCount)
619
+ textContent: c(n.errorCount + n.blockingCount)
620
620
  }, null, 8, pt)) : p("", !0),
621
621
  M(c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
622
622
  ]),
623
623
  d != Object.keys(e.steps).length ? (s(), r("div", ut)) : p("", !0)
624
- ], 10, nt))), 128)),
624
+ ], 10, lt))), 128)),
625
625
  e.activeStep === "Overview" ? (s(), r("li", ct, t[16] || (t[16] = [
626
626
  o("div", { class: "circle stepCircle" }, null, -1)
627
627
  ]))) : p("", !0)
628
628
  ])) : p("", !0),
629
629
  (s(!0), r(V, null, _(e.getNavSteps(
630
630
  e.$env.content.dataProviderInterface.specification
631
- )[e.property], (l, u) => (s(), b(A, {
631
+ )[e.property], (n, u) => (s(), b(A, {
632
632
  key: u,
633
- name: l
633
+ name: n
634
634
  }, {
635
635
  default: j(() => [
636
636
  (s(!0), r(V, null, _(Object.keys(
637
- e.getSchema(e.property).value[l]
637
+ e.getSchema(e.property).value[n]
638
638
  ).length, (d, S) => z((s(), r("div", ht, [
639
- l !== "Distributions" && l !== "Additionals" ? (s(), b(D, {
639
+ n !== "Distributions" && n !== "Additionals" ? (s(), b(P, {
640
640
  key: 0,
641
- schema: e.getSchema(e.property).value[l][S],
641
+ schema: e.getSchema(e.property).value[n][S],
642
642
  library: e.library,
643
643
  "final-values": e.formValues,
644
644
  onHandleNav: () => {
@@ -648,8 +648,8 @@ function jt(e, t, i, n, a, m) {
648
648
  [
649
649
  H,
650
650
  Object.values(
651
- e.getSchema(e.property).value[l][S]
652
- )[0] === e.activeSubStep.replace(/_\d+$/, "") || l === "Landing"
651
+ e.getSchema(e.property).value[n][S]
652
+ )[0] === e.activeSubStep.replace(/_\d+$/, "") || n === "Landing"
653
653
  ]
654
654
  ])), 256)),
655
655
  e.activeStep === "Landing" ? (s(), r("div", vt, [
@@ -755,10 +755,10 @@ function jt(e, t, i, n, a, m) {
755
755
  ])
756
756
  ]),
757
757
  o("div", Tt, [
758
- o("div", Pt, " 2. " + c(e.$t(
758
+ o("div", Dt, " 2. " + c(e.$t(
759
759
  "message.dataupload.datasets.hvdPage.tips-question-2"
760
760
  )), 1),
761
- o("p", Dt, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
761
+ o("p", Pt, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
762
762
  ]),
763
763
  o("div", wt, [
764
764
  o("div", Ft, " 3. " + c(e.$t(
@@ -767,20 +767,20 @@ function jt(e, t, i, n, a, m) {
767
767
  o("p", At, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
768
768
  ]),
769
769
  o("div", Lt, [
770
- o("div", Ot, " 4. " + c(e.$t(
770
+ o("div", Ut, " 4. " + c(e.$t(
771
771
  "message.dataupload.datasets.hvdPage.tips-question-4"
772
772
  )), 1),
773
- o("p", Et, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
773
+ o("p", Ot, c(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
774
774
  ])
775
775
  ])
776
776
  ])
777
777
  ])) : p("", !0),
778
- l === "Distributions" ? (s(), b(F, {
778
+ n === "Distributions" ? (s(), b(F, {
779
779
  key: 4,
780
780
  schema: e.getSchema("distributions"),
781
781
  values: e.formValues
782
782
  }, null, 8, ["schema", "values"])) : p("", !0),
783
- l === "Mandatory" ? (s(), r("p", Ut, [
783
+ n === "Mandatory" ? (s(), r("p", Et, [
784
784
  t[17] || (t[17] = o("b", null, "*", -1)),
785
785
  M(" " + c(e.$t("message.dataupload.info.mandatory")), 1)
786
786
  ])) : p("", !0)
@@ -790,14 +790,14 @@ function jt(e, t, i, n, a, m) {
790
790
  ]),
791
791
  _: 1
792
792
  }, 8, ["modelValue", "plugins"]),
793
- e.activeSimpleModal ? (s(), b(O, {
793
+ e.activeSimpleModal ? (s(), b(U, {
794
794
  key: 0,
795
795
  buttons: e.modalSimpleConf.button,
796
796
  "header-text": e.modalSimpleConf.header,
797
797
  text: e.modalSimpleConf.text,
798
798
  action: e.modalSimpleConf.action,
799
- onClose: t[13] || (t[13] = (l) => e.activeSimpleModal = !1),
800
- onActionHandling: t[14] || (t[14] = (l) => e.gotToHome())
799
+ onClose: t[13] || (t[13] = (n) => e.activeSimpleModal = !1),
800
+ onActionHandling: t[14] || (t[14] = (n) => e.gotToHome())
801
801
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
802
802
  ])
803
803
  ], 512)) : p("", !0)
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.68",
4
+ "version": "0.1.0-beta.69",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",