@piveau/dpi 0.2.0-alpha.50 → 0.2.0-alpha.52

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,4 +1,4 @@
1
- import { ref as f, computed as H, watch as I, onMounted as R, getCurrentInstance as G, onUnmounted as J, createElementBlock as w, openBlock as V, createElementVNode as a, createVNode as m, createCommentVNode as k, toDisplayString as r, unref as o, isRef as C, createBlock as K, createTextVNode as B } from "vue";
1
+ import { ref as f, computed as H, watch as I, onMounted as R, getCurrentInstance as G, onUnmounted as J, createElementBlock as w, openBlock as y, createElementVNode as a, createVNode as m, createCommentVNode as k, toDisplayString as u, unref as o, isRef as C, createBlock as K, createTextVNode as B } from "vue";
2
2
  import { PhWarning as S, PhLightbulb as Q, PhArrowSquareOut as X } from "@phosphor-icons/vue";
3
3
  import { useEditModeInfo as Y } from "../composables/useDpiEditMode.js";
4
4
  import { useFormValues as Z } from "../composables/useDpiFormValues.js";
@@ -13,10 +13,10 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
13
13
  }, ne = {
14
14
  key: 1,
15
15
  class: "validation-error"
16
- }, oe = { class: "copy-mini-regular" }, de = { class: "input-container" }, re = {
16
+ }, oe = { class: "copy-mini-regular" }, de = { class: "input-container" }, ue = {
17
17
  key: 1,
18
18
  class: "dpiV3_errormsgWrapper"
19
- }, ue = { class: "copy-mini-regular" }, ce = { class: "dpiV3_Content_InputPage" }, pe = { class: "dpiV3_Card_Tips" }, ve = { class: "dpiV3_Icon_Title" }, fe = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, me = { class: "dpiV3_CT-Content" }, ge = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, he = { class: "dpiV3_hvd_frame3846" }, _e = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, be = { class: "dpiV3_normal" }, Ve = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ye = { class: "dpiV3_normal" }, ze = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, Le = { class: "dpiV3_normal" }, we = {
19
+ }, re = { class: "copy-mini-regular" }, ce = { class: "dpiV3_Content_InputPage" }, pe = { class: "dpiV3_Card_Tips" }, ve = { class: "dpiV3_Icon_Title" }, fe = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, me = { class: "dpiV3_CT-Content" }, ge = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, he = { class: "dpiV3_hvd_frame3846" }, _e = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, be = { class: "dpiV3_normal" }, ye = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, Ve = { class: "dpiV3_normal" }, ze = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, Le = { class: "dpiV3_normal" }, we = {
20
20
  href: "https://oc.bydata.de/sharing/articles/licenses",
21
21
  target: "_blank",
22
22
  rel: "noopener noreferrer",
@@ -32,8 +32,8 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
32
32
  changeLicenseDropdownText: { type: String, default: "" }
33
33
  },
34
34
  setup(F) {
35
- const y = F, { isEditMode: M } = Y(), { formValues: Be } = Z();
36
- let T = f(!1), z = f([]), g = f(""), h = f(null), u = f("");
35
+ const V = F, { isEditMode: M } = Y(), { formValues: Be } = Z();
36
+ let T = f(!1), z = f([]), g = f(""), h = f(null), r = f("");
37
37
  const p = f(""), $ = {
38
38
  "freie Nutzung": [
39
39
  "dl-zero-de/2.0",
@@ -88,19 +88,19 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
88
88
  message: "Bitte geben Sie einen Namensnennungstext für diese Lizenz ein."
89
89
  }
90
90
  });
91
- M.value || y.context.node.input(s);
91
+ M.value || V.context.node.input(s);
92
92
  const b = H(() => {
93
- if (!u.value)
93
+ if (!r.value)
94
94
  return [];
95
- const e = $[u.value] || [];
96
- console.log("Selected license type:", u.value), console.log("Allowed licenses for this type:", e), console.log("All available license options:", z.value.map((i) => i["@value"]));
95
+ const e = $[r.value] || [];
96
+ console.log("Selected license type:", r.value), console.log("Allowed licenses for this type:", e), console.log("All available license options:", z.value.map((i) => i["@value"]));
97
97
  const t = z.value.filter(
98
98
  (i) => e.includes(i["@value"])
99
99
  );
100
100
  return console.log("Filtered licenses:", t.map((i) => i["@value"])), t;
101
101
  });
102
102
  function E(e) {
103
- u.value = e, g.value = "", p.value = "", T.value = !1, d.value[1] = "unset", d.value[2] = "unset", s.value[0].isValid = "unset", v.value[2].show = !1, s.value = s.value.map((t) => ({ ...t, "dcterms:license": "", uri: "", title: "", attribution: "" })), y.context.node.input(s.value);
103
+ r.value = e, g.value = "", p.value = "", T.value = !1, d.value[1] = "unset", d.value[2] = "unset", s.value[0].isValid = "unset", v.value[2].show = !1, s.value = s.value.map((t) => ({ ...t, "dcterms:license": "", uri: "", title: "", attribution: "" })), V.context.node.input(s.value);
104
104
  }
105
105
  function O(e, t, i) {
106
106
  N(e, t, i);
@@ -114,7 +114,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
114
114
  function q(e, t, i) {
115
115
  p.value = "";
116
116
  const l = b.value.find((n) => n["@value"] === e);
117
- l ? N(e, t, i, l.uri) : e === "" ? (d.value[i] = !1, s.value[0].isValid = "unset", T.value = !1, v.value[2].show = !1, s.value = s.value.map((n) => t in n ? { ...n, [t]: "", uri: "", title: "" } : n), y.context.node.input(s.value)) : (d.value[i] = "unset", s.value[0].isValid = "unset");
117
+ l ? N(e, t, i, l.uri) : e === "" ? (d.value[i] = !1, s.value[0].isValid = "unset", T.value = !1, v.value[2].show = !1, s.value = s.value.map((n) => t in n ? { ...n, [t]: "", uri: "", title: "" } : n), V.context.node.input(s.value)) : (d.value[i] = "unset", s.value[0].isValid = "unset");
118
118
  }
119
119
  function A(e, t, i) {
120
120
  if (e === "") {
@@ -134,13 +134,13 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
134
134
  s.value = s.value.map((n) => t in n ? { ...n, [t]: e } : n);
135
135
  {
136
136
  const n = ((l = s.value[0]) == null ? void 0 : l["dcterms:license"]) || "";
137
- if (n !== "" && (n.includes("cc-by") || n.includes("dl-by-de"))) {
137
+ if (n !== "" && (n.includes("cc-by") || n.includes("dl-by-de") || n.includes("dl-by-nc-de"))) {
138
138
  const c = e && e.trim() !== "";
139
139
  v.value[2].show = !c, d.value[2] = c, d.value[1] === !0 && c ? s.value[0].isValid = !0 : s.value[0].isValid = "unset";
140
140
  } else
141
141
  v.value[2].show = !1, d.value[2] = "unset";
142
142
  }
143
- y.context.node.input(s.value);
143
+ V.context.node.input(s.value);
144
144
  }
145
145
  function N(e, t, i, l) {
146
146
  var L;
@@ -148,7 +148,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
148
148
  p.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[i] = !1, s.value[0].isValid = "unset";
149
149
  else {
150
150
  p.value = "";
151
- const c = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de"));
151
+ const c = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de") || e.includes("dl-by-nc-de"));
152
152
  if (T.value = c, e !== "") {
153
153
  d.value[i] = !0;
154
154
  const _ = ((L = s.value[0]) == null ? void 0 : L.title) || "", j = !c || c && _.trim() !== "";
@@ -157,7 +157,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
157
157
  d.value[i] = !1, s.value[0].isValid = "unset", v.value[2].show = !1;
158
158
  s.value = s.value.map((_) => t in _ ? { ..._, [t]: e, uri: l } : _);
159
159
  }
160
- y.context.node.input(s.value);
160
+ V.context.node.input(s.value);
161
161
  }
162
162
  return I(g, (e) => {
163
163
  var i;
@@ -173,7 +173,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
173
173
  const l = ((t = s.value[0]) == null ? void 0 : t["dcterms:license"]) || "";
174
174
  l === "" ? p.value = "Bitte wählen Sie eine Lizenz aus." : z.value.find(
175
175
  (c) => c["@value"] === l
176
- ) || (p.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste"), l !== "" && (l.includes("cc-by") || l.includes("dl-by-de")) && (((i = s.value[0]) == null ? void 0 : i.title) || "").trim() === "" && (v.value[2].show = !0);
176
+ ) || (p.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste"), l !== "" && (l.includes("cc-by") || l.includes("dl-by-de") || l.includes("dl-by-nc-de")) && (((i = s.value[0]) == null ? void 0 : i.title) || "").trim() === "" && (v.value[2].show = !0);
177
177
  }
178
178
  }
179
179
  ), R(async () => {
@@ -190,13 +190,13 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
190
190
  }
191
191
  }), J(() => {
192
192
  h.value && clearTimeout(h.value);
193
- }), (e, t) => (V(), w("div", se, [
194
- a("h4", null, r(e.$t("message.dataupload.datasets.dct:license.title")), 1),
195
- a("div", le, r(e.$t("message.dataupload.datasets.dct:license.description")), 1),
193
+ }), (e, t) => (y(), w("div", se, [
194
+ a("h4", null, u(e.$t("message.dataupload.datasets.dct:license.title")), 1),
195
+ a("div", le, u(e.$t("message.dataupload.datasets.dct:license.description")), 1),
196
196
  m(D, {
197
- modelValue: o(u),
197
+ modelValue: o(r),
198
198
  "onUpdate:modelValue": [
199
- t[0] || (t[0] = (i) => C(u) ? u.value = i : u = i),
199
+ t[0] || (t[0] = (i) => C(r) ? r.value = i : r = i),
200
200
  E
201
201
  ],
202
202
  "dropdown-width": "large",
@@ -211,7 +211,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
211
211
  dropdown_dpiV3: !0,
212
212
  placeholder: "Art der Lizenz wählen...",
213
213
  inputFieldSize: "large",
214
- modelValue: o(u),
214
+ modelValue: o(r),
215
215
  defaultInput: !0,
216
216
  showError: !1
217
217
  },
@@ -233,19 +233,19 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
233
233
  preIcon: !1,
234
234
  label: "Lizenz",
235
235
  dropdown_dpiV3: !0,
236
- placeholder: o(u) ? "Lizenz wählen..." : "Bitte wählen Sie zuerst eine Art der Lizenz...",
236
+ placeholder: o(r) ? "Lizenz wählen..." : "Bitte wählen Sie zuerst eine Art der Lizenz...",
237
237
  inputFieldSize: "large",
238
238
  modelValue: o(g),
239
239
  defaultInput: !0,
240
240
  showError: p.value !== "" || s.value[0].isValid === "unset" && o(d)[1] === !1,
241
- disabled: !o(u)
241
+ disabled: !o(r)
242
242
  },
243
243
  data: b.value,
244
244
  onInput: P,
245
245
  onBlur: U,
246
246
  onDeleteButtonClicked: e.deleteModifiedField
247
247
  }, null, 8, ["modelValue", "input-field-props", "data", "onDeleteButtonClicked"]),
248
- o(u) && b.value.length === 0 ? (V(), w("div", ae, [
248
+ o(r) && b.value.length === 0 ? (y(), w("div", ae, [
249
249
  m(o(S), {
250
250
  size: 16,
251
251
  weight: "fill",
@@ -253,15 +253,15 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
253
253
  }),
254
254
  t[4] || (t[4] = a("span", { class: "copy-mini-regular" }, "Für diese Lizenzkategorie sind derzeit keine Lizenzen verfügbar.", -1))
255
255
  ])) : k("", !0),
256
- p.value ? (V(), w("div", ne, [
256
+ p.value ? (y(), w("div", ne, [
257
257
  m(o(S), {
258
258
  size: 16,
259
259
  weight: "fill"
260
260
  }),
261
- a("span", oe, r(p.value), 1)
261
+ a("span", oe, u(p.value), 1)
262
262
  ])) : k("", !0),
263
263
  a("div", de, [
264
- o(T) ? (V(), K(te, {
264
+ o(T) ? (y(), K(te, {
265
265
  key: 0,
266
266
  "model-value": s.value[0].title,
267
267
  "add-on-text": !1,
@@ -280,12 +280,12 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
280
280
  "onUpdate:modelValue": t[3] || (t[3] = (i) => W(i, "title")),
281
281
  onDeleteButtonClicked: e.deleteModifiedField
282
282
  }, null, 8, ["model-value", "label", "onDeleteButtonClicked"])) : k("", !0),
283
- s.value[0].isValid === !1 && v.value[2].show ? (V(), w("div", re, [
283
+ s.value[0].isValid === !1 && v.value[2].show ? (y(), w("div", ue, [
284
284
  m(o(S), {
285
285
  size: 16,
286
286
  weight: "fill"
287
287
  }),
288
- a("span", ue, r(v.value[2].message), 1)
288
+ a("span", re, u(v.value[2].message), 1)
289
289
  ])) : k("", !0)
290
290
  ]),
291
291
  a("div", ce, [
@@ -295,38 +295,38 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
295
295
  size: 32,
296
296
  color: "#009fe3"
297
297
  }),
298
- a("div", fe, r(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
298
+ a("div", fe, u(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
299
299
  ]),
300
300
  a("div", me, [
301
- a("div", ge, r(e.$t("message.dataupload.datasets.dct:license.advices.description")), 1),
301
+ a("div", ge, u(e.$t("message.dataupload.datasets.dct:license.advices.description")), 1),
302
302
  a("div", he, [
303
303
  a("div", _e, [
304
- B(r(e.$t(
304
+ B(u(e.$t(
305
305
  "message.dataupload.datasets.dct:license.advices.licenseName1"
306
306
  )) + " ", 1),
307
- a("span", be, r(e.$t(
307
+ a("span", be, u(e.$t(
308
308
  "message.dataupload.datasets.dct:license.advices.licenseName1_desc"
309
309
  )), 1)
310
310
  ]),
311
- a("div", Ve, [
312
- B(r(e.$t(
311
+ a("div", ye, [
312
+ B(u(e.$t(
313
313
  "message.dataupload.datasets.dct:license.advices.licenseName2"
314
314
  )) + " ", 1),
315
- a("span", ye, r(e.$t(
315
+ a("span", Ve, u(e.$t(
316
316
  "message.dataupload.datasets.dct:license.advices.licenseName2_desc"
317
317
  )), 1)
318
318
  ]),
319
319
  a("div", ze, [
320
- B(r(e.$t(
320
+ B(u(e.$t(
321
321
  "message.dataupload.datasets.dct:license.advices.licenseName3"
322
322
  )) + " ", 1),
323
- a("span", Le, r(e.$t(
323
+ a("span", Le, u(e.$t(
324
324
  "message.dataupload.datasets.dct:license.advices.licenseName3_desc"
325
325
  )), 1)
326
326
  ]),
327
327
  a("a", we, [
328
328
  m(o(X), { size: 24 }),
329
- B(" " + r(e.$t(
329
+ B(" " + u(e.$t(
330
330
  "message.dataupload.datasets.dct:license.advices.linkToLicenses"
331
331
  )), 1)
332
332
  ])
@@ -336,7 +336,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
336
336
  ]),
337
337
  a("div", ke, [
338
338
  t[6] || (t[6] = a("span", { class: "copy-large-regular" }, " Die Wahl der Lizenz spielt eine wichtige Rolle für den korrekten Umgang mit Ihrem Datensatz. ", -1)),
339
- s.value.find((i) => i.isValid === !1) ? (V(), w("div", Te, [
339
+ s.value.find((i) => i.isValid === !1) ? (y(), w("div", Te, [
340
340
  m(o(S), {
341
341
  size: 16,
342
342
  weight: "fill"
@@ -346,7 +346,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
346
346
  ])
347
347
  ]));
348
348
  }
349
- }, Ee = /* @__PURE__ */ ie(Ne, [["__scopeId", "data-v-6a694fad"]]);
349
+ }, Ee = /* @__PURE__ */ ie(Ne, [["__scopeId", "data-v-c7269484"]]);
350
350
  export {
351
351
  Ee as default
352
352
  };
@@ -52,7 +52,7 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
52
52
  validateVisibilitySelection: E,
53
53
  canProceed: k
54
54
  }), (e, d) => {
55
- var b, v, y, g, m, f, _, V;
55
+ var v, b, y, g, m, f, _, V;
56
56
  return r(), n("div", U, [
57
57
  t("div", A, [
58
58
  i(p) ? P("", !0) : (r(), n(T, { key: 0 }, [
@@ -98,7 +98,7 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
98
98
  inputFieldSize: "large",
99
99
  modelValue: o.value,
100
100
  defaultInput: !0,
101
- showError: ((g = (y = (v = (b = i(l)) == null ? void 0 : b.Discoverability) == null ? void 0 : v.visibilityPage) == null ? void 0 : y[0]) == null ? void 0 : g.isValid) === !1,
101
+ showError: ((g = (y = (b = (v = i(l)) == null ? void 0 : v.Discoverability) == null ? void 0 : b.visibilityPage) == null ? void 0 : y[0]) == null ? void 0 : g.isValid) === !1,
102
102
  required: !0
103
103
  },
104
104
  "label-property": "label",
@@ -115,7 +115,7 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
115
115
  ]);
116
116
  };
117
117
  }
118
- }, ri = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-f0c8ab14"]]);
118
+ }, ri = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-671042c0"]]);
119
119
  export {
120
120
  ri as default
121
121
  };
@@ -5,7 +5,7 @@ import { putDataset as ge } from "@piveau/sdk-core/hubRepo";
5
5
  import { useWindowScroll as ve } from "@vueuse/core";
6
6
  import fe from "jquery";
7
7
  import { has as w, isNil as x } from "lodash-es";
8
- import { defineComponent as be, resolveComponent as h, createElementBlock as a, openBlock as s, createCommentVNode as p, createElementVNode as i, createVNode as m, createBlock as v, toDisplayString as n, withModifiers as Se, withCtx as ee, Fragment as k, renderList as I, withDirectives as te, normalizeClass as C, vShow as ie, createTextVNode as _, ref as se, markRaw as ye, getCurrentInstance as _e } from "vue";
8
+ import { defineComponent as be, resolveComponent as h, createElementBlock as a, openBlock as s, createCommentVNode as p, createElementVNode as i, createVNode as m, createBlock as v, withModifiers as Se, withCtx as ee, Fragment as k, renderList as I, withDirectives as te, normalizeClass as C, toDisplayString as n, vShow as ie, createTextVNode as _, ref as se, markRaw as ye, getCurrentInstance as _e } from "vue";
9
9
  import { useI18n as Ce } from "vue-i18n";
10
10
  import { useRoute as Ve } from "vue-router";
11
11
  import { mapActions as ae, mapGetters as oe } from "vuex";
@@ -34,13 +34,13 @@ import Ge from "../HappyFlowComponents/ui/Illustration.vue.js";
34
34
  import qe from "../HappyFlowComponents/ui/LogoV3.vue.js";
35
35
  import Ke from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
36
36
  import Ze from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
37
- import Ne from "./DistributionInputPage.vue.js";
38
- import Xe from "./OverviewPage.vue.js";
39
- import Je from "./PropertyChooser.vue.js";
37
+ import Xe from "./DistributionInputPage.vue.js";
38
+ import Ne from "./OverviewPage.vue.js";
39
+ import Ye from "./PropertyChooser.vue.js";
40
40
  /* empty css */
41
41
  /* empty css */
42
42
  /* empty css */
43
- import Ye from "../../../../../_virtual/_plugin-vue_export-helper.js";
43
+ import Je from "../../../../../_virtual/_plugin-vue_export-helper.js";
44
44
  import { useDpiContext as Qe } from "../composables/useDpiContext.js";
45
45
  import { useEditModeInfo as xe } from "../composables/useDpiEditMode.js";
46
46
  import { useFormSchema as et } from "../composables/useFormSchema.js";
@@ -88,8 +88,8 @@ const tt = be({
88
88
  },
89
89
  components: {
90
90
  InputPageStep: Ie,
91
- DistributionInputPage: Ne,
92
- PropertyChooser: Je,
91
+ DistributionInputPage: Xe,
92
+ PropertyChooser: Ye,
93
93
  Navigation: De,
94
94
  LogoV3: qe,
95
95
  ButtonV3: We,
@@ -761,7 +761,7 @@ const tt = be({
761
761
  }), u = () => {
762
762
  let { x: y, y: F } = ve({ behavior: "smooth" });
763
763
  F.value = 0;
764
- }, c = (y) => (l[y].errorCount > 0 || l[y].blockingCount > 0) && D.value.includes(y), b = ye({ OverviewPage: Xe }), S = se("");
764
+ }, c = (y) => (l[y].errorCount > 0 || l[y].blockingCount > 0) && D.value.includes(y), b = ye({ OverviewPage: Ne }), S = se("");
765
765
  t.value && (r.value = "ReviewAndPublish", S.value = "reviewAndPublishPage");
766
766
  const { organization: re, catalogDataset: O, startFetchPermissions: le, authToken: ne } = we({
767
767
  keycloak: ((H = (j = o.authentication) == null ? void 0 : j.keycloak) == null ? void 0 : H.url) || "https://keycloak.twin.bydata.de",
@@ -771,7 +771,7 @@ const tt = be({
771
771
  le();
772
772
  const de = Ve();
773
773
  async function ce(y, F, z, q) {
774
- var K, Z, N, X, J, Y;
774
+ var K, Z, X, N, Y, J;
775
775
  console.log("body:", y, F, "params:", z, q);
776
776
  try {
777
777
  await ge({
@@ -781,11 +781,11 @@ const tt = be({
781
781
  data: y,
782
782
  authToken: ne.value,
783
783
  publicationStatus: q === "publish" ? "published" : "draft",
784
- accessLevel: ((X = (N = (Z = (K = g.value) == null ? void 0 : K.Discoverability) == null ? void 0 : Z.visibilityPage) == null ? void 0 : N[0]) == null ? void 0 : X.visibility) || de.query.visibility || "public",
784
+ accessLevel: ((N = (X = (Z = (K = g.value) == null ? void 0 : K.Discoverability) == null ? void 0 : Z.visibilityPage) == null ? void 0 : X[0]) == null ? void 0 : N.visibility) || de.query.visibility || "public",
785
785
  type: "dataset"
786
- }), (J = this.$Progress) == null || J.finish(), this.clearAll();
786
+ }), (Y = this.$Progress) == null || Y.finish(), this.clearAll();
787
787
  } catch (Q) {
788
- console.error(Q), (Y = this.$Progress) == null || Y.fail();
788
+ console.error(Q), (J = this.$Progress) == null || J.fail();
789
789
  }
790
790
  }
791
791
  return {
@@ -854,7 +854,7 @@ const tt = be({
854
854
  }, zt = { class: "dpiV3_CTANav" }, Mt = { class: "dpiV3_CTANav" }, Ot = {
855
855
  key: 3,
856
856
  class: "dpiV3_Content_InputPage"
857
- }, jt = { class: "dpiV3_Card_Tips" }, Ht = { class: "dpiV3_Icon_Title" }, Wt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Gt = { class: "dpiV3_CT-Content" }, qt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, Kt = { class: "dpiV3_hvd_frame3846" }, Zt = { class: "dpiV3_copy_large_semi_bold" }, Nt = { class: "dpiV3_copy_large_regular" }, Xt = { class: "dpiV3_hvd_frame3846" }, Jt = { class: "dpiV3_copy_large_semi_bold" }, Yt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Qt = { class: "dpiV3_hvd_frame3846" }, xt = { class: "dpiV3_copy_large_semi_bold" }, ei = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, ti = { class: "dpiV3_hvd_frame3846" }, ii = { class: "dpiV3_copy_large_semi_bold" }, si = { class: "dpiV3_copy_large_regular" }, ai = {
857
+ }, jt = { class: "dpiV3_Card_Tips" }, Ht = { class: "dpiV3_Icon_Title" }, Wt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Gt = { class: "dpiV3_CT-Content" }, qt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, Kt = { class: "dpiV3_hvd_frame3846" }, Zt = { class: "dpiV3_copy_large_semi_bold" }, Xt = { class: "dpiV3_copy_large_regular" }, Nt = { class: "dpiV3_hvd_frame3846" }, Yt = { class: "dpiV3_copy_large_semi_bold" }, Jt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Qt = { class: "dpiV3_hvd_frame3846" }, xt = { class: "dpiV3_copy_large_semi_bold" }, ei = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, ti = { class: "dpiV3_hvd_frame3846" }, ii = { class: "dpiV3_copy_large_semi_bold" }, si = { class: "dpiV3_copy_large_regular" }, ai = {
858
858
  key: 4,
859
859
  class: "dpiV3_Content_InputPage"
860
860
  }, oi = { class: "dpiV3_Card_Tips" }, ri = { class: "dpiV3_Icon_Title" }, li = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, ni = { class: "dpiV3_CT-Content" }, di = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, ci = { class: "dpiV3_Info-Text" }, pi = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, ui = { class: "dpiV3_Info-Text" }, hi = {
@@ -869,9 +869,6 @@ function bi(e, t, o, l, r, f) {
869
869
  return s(), a("div", it, [
870
870
  e.isInput ? (s(), a("div", st, [
871
871
  i("div", at, [
872
- i("details", null, [
873
- i("pre", null, n(JSON.stringify(e.formValues, null, 2)), 1)
874
- ]),
875
872
  m(E, {
876
873
  id: "dpiForm",
877
874
  modelValue: e.formValues,
@@ -1133,7 +1130,7 @@ function bi(e, t, o, l, r, f) {
1133
1130
  i("div", Zt, " 1. " + n(e.$t(
1134
1131
  "message.dataupload.datasets.hvdPage.tips-question-1"
1135
1132
  )), 1),
1136
- i("ul", Nt, [
1133
+ i("ul", Xt, [
1137
1134
  i("li", null, n(e.$t(
1138
1135
  "message.dataupload.datasets.hvdPage.hvd-category-1"
1139
1136
  )), 1),
@@ -1154,11 +1151,11 @@ function bi(e, t, o, l, r, f) {
1154
1151
  )), 1)
1155
1152
  ])
1156
1153
  ]),
1157
- i("div", Xt, [
1158
- i("div", Jt, " 2. " + n(e.$t(
1154
+ i("div", Nt, [
1155
+ i("div", Yt, " 2. " + n(e.$t(
1159
1156
  "message.dataupload.datasets.hvdPage.tips-question-2"
1160
1157
  )), 1),
1161
- i("p", Yt, n(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1158
+ i("p", Jt, n(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1162
1159
  ]),
1163
1160
  i("div", Qt, [
1164
1161
  i("div", xt, " 3. " + n(e.$t(
@@ -1249,7 +1246,7 @@ function bi(e, t, o, l, r, f) {
1249
1246
  ], 512)) : p("", !0)
1250
1247
  ]);
1251
1248
  }
1252
- const ps = /* @__PURE__ */ Ye(tt, [["render", bi]]);
1249
+ const ps = /* @__PURE__ */ Je(tt, [["render", bi]]);
1253
1250
  export {
1254
1251
  ps as default
1255
1252
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.2.0-alpha.50",
4
+ "version": "0.2.0-alpha.52",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",