@piveau/dpi 0.1.0-beta.60 → 0.1.0-beta.62

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 p, watch as C, onMounted as x, getCurrentInstance as q, onUnmounted as O, createElementBlock as w, openBlock as b, createElementVNode as l, createVNode as V, createCommentVNode as T, toDisplayString as o, unref as u, isRef as W, createBlock as U, createTextVNode as k } from "vue";
1
+ import { ref as p, watch as S, onMounted as x, getCurrentInstance as q, onUnmounted as O, createElementBlock as w, openBlock as b, createElementVNode as l, createVNode as V, createCommentVNode as T, toDisplayString as o, unref as u, isRef as W, createBlock as U, createTextVNode as k } from "vue";
2
2
  import H from "../HappyFlowComponents/ui/InputField.vue.js";
3
3
  import j from "../HappyFlowComponents/ui/Dropdown.vue.js";
4
4
  import { PhWarning as B, PhLightbulb as R, PhArrowSquareOut as G } from "@phosphor-icons/vue";
@@ -13,7 +13,7 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
13
13
  }, te = { class: "copy-mini-regular" }, se = { class: "input-container" }, ie = {
14
14
  key: 1,
15
15
  class: "dpiV3_errormsgWrapper"
16
- }, ae = { class: "copy-mini-regular" }, le = { class: "dpiV3_Content_InputPage" }, ne = { class: "dpiV3_Card_Tips" }, oe = { class: "dpiV3_Icon_Title" }, de = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, re = { class: "dpiV3_CT-Content" }, ue = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, ce = { class: "dpiV3_hvd_frame3846" }, pe = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ve = { class: "dpiV3_normal" }, fe = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, me = { class: "dpiV3_normal" }, _e = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ge = { class: "dpiV3_normal" }, he = {
16
+ }, ae = { class: "copy-mini-regular" }, le = { class: "dpiV3_Content_InputPage" }, ne = { class: "dpiV3_Card_Tips" }, oe = { class: "dpiV3_Icon_Title" }, de = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, re = { class: "dpiV3_CT-Content" }, ue = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, ce = { class: "dpiV3_hvd_frame3846" }, pe = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ve = { class: "dpiV3_normal" }, fe = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, me = { class: "dpiV3_normal" }, ge = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, _e = { class: "dpiV3_normal" }, he = {
17
17
  href: "https://oc.bydata.de/sharing/articles/licenses",
18
18
  target: "_blank",
19
19
  rel: "noopener noreferrer",
@@ -28,17 +28,17 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
28
28
  changeLicenseText: { type: String, default: "" },
29
29
  changeLicenseDropdownText: { type: String, default: "" }
30
30
  },
31
- setup(S) {
31
+ setup(C) {
32
32
  const { isEditMode: D } = K(), { formValues: Le } = Q();
33
- let I = p(!1), v = p([]), g = p(""), m = p(null);
34
- const r = p(""), y = S;
33
+ let I = p(!1), v = p([]), _ = p(""), m = p(null);
34
+ const r = p(""), y = C;
35
35
  let d = p({ 1: "unset", 2: "unset" });
36
36
  const i = p([
37
37
  { isValid: "unset", "dcterms:license": "", title: "", uri: "" }
38
38
  ]), c = p({
39
39
  2: {
40
40
  show: !1,
41
- message: "Namensnennungstext ist für diese Lizenz erforderlich"
41
+ message: "Bitte geben Sie einen Namensnennungstext für diese Lizenz ein."
42
42
  }
43
43
  });
44
44
  D.value || y.context.node.input(i);
@@ -91,21 +91,21 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
91
91
  const h = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de"));
92
92
  if (I.value = h, e !== "") {
93
93
  d.value[s] = !0;
94
- const _ = ((f = i.value[0]) == null ? void 0 : f.title) || "", E = !h || h && _.trim() !== "";
95
- i.value[0].isValid = E ? !0 : "unset", h ? (c.value[2].show = _.trim() === "", d.value[2] = _.trim() !== "") : (c.value[2].show = !1, d.value[2] = "unset");
94
+ const g = ((f = i.value[0]) == null ? void 0 : f.title) || "", E = !h || h && g.trim() !== "";
95
+ i.value[0].isValid = E ? !0 : "unset", h ? (c.value[2].show = g.trim() === "", d.value[2] = g.trim() !== "") : (c.value[2].show = !1, d.value[2] = "unset");
96
96
  } else
97
97
  d.value[s] = !1, i.value[0].isValid = "unset", c.value[2].show = !1;
98
- i.value = i.value.map((_) => t in _ ? { ..._, [t]: e, uri: a, title: z } : _);
98
+ i.value = i.value.map((g) => t in g ? { ...g, [t]: e, uri: a, title: z } : g);
99
99
  }
100
100
  y.context.node.input(i.value);
101
101
  };
102
- return C(g, (e) => {
102
+ return S(_, (e) => {
103
103
  var s;
104
104
  let t = (s = v.value.find(
105
105
  (a) => a["@value"] === e
106
106
  )) == null ? void 0 : s.uri;
107
107
  e !== void 0 && L(e, "dcterms:license", 1, t);
108
- }), C(
108
+ }), S(
109
109
  () => i.value[0].isValid,
110
110
  (e) => {
111
111
  var t, s;
@@ -136,13 +136,13 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
136
136
  V(j, {
137
137
  "onUpdate:modelValue": [
138
138
  t[0] || (t[0] = (s) => $(s, "dcterms:license", 1)),
139
- t[1] || (t[1] = (s) => W(g) ? g.value = s : g = s)
139
+ t[1] || (t[1] = (s) => W(_) ? _.value = s : _ = s)
140
140
  ],
141
141
  onInput: A,
142
142
  onBlur: F,
143
143
  dropdownWidth: "large",
144
144
  type: "inputField",
145
- modelValue: u(g),
145
+ modelValue: u(_),
146
146
  inputFieldProps: {
147
147
  addOnText: !1,
148
148
  initialHintText: !1,
@@ -153,7 +153,7 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
153
153
  dropdown_dpiV3: !0,
154
154
  placeholder: "Lizenz wählen...",
155
155
  inputFieldSize: "large",
156
- modelValue: u(g),
156
+ modelValue: u(_),
157
157
  defaultInput: !0,
158
158
  showError: r.value !== "" || i.value[0].isValid === "unset" && u(d)[1] === !1
159
159
  },
@@ -223,11 +223,11 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
223
223
  "message.dataupload.datasets.dct:license.advices.licenseName2_desc"
224
224
  )), 1)
225
225
  ]),
226
- l("div", _e, [
226
+ l("div", ge, [
227
227
  k(o(e.$t(
228
228
  "message.dataupload.datasets.dct:license.advices.licenseName3"
229
229
  )) + " ", 1),
230
- l("span", ge, o(e.$t(
230
+ l("span", _e, o(e.$t(
231
231
  "message.dataupload.datasets.dct:license.advices.licenseName3_desc"
232
232
  )), 1)
233
233
  ]),
@@ -253,7 +253,7 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
253
253
  ])
254
254
  ]));
255
255
  }
256
- }, De = /* @__PURE__ */ X(ye, [["__scopeId", "data-v-59209c92"]]);
256
+ }, De = /* @__PURE__ */ X(ye, [["__scopeId", "data-v-0a92fa5c"]]);
257
257
  export {
258
258
  De as default
259
259
  };
@@ -1,10 +1,10 @@
1
1
  import { getNode as K } from "@formkit/core";
2
2
  import "@formkit/vue";
3
- import { PhNumberCircleFive as J, PhCheckCircle as Z, PhLightbulb as G } from "@phosphor-icons/vue";
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
6
  import { has as I, isNil as U } 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, toDisplayString as c, withModifiers as N, withCtx as j, Fragment as V, renderList as _, withDirectives as z, normalizeClass as y, vShow as H, createTextVNode as M, ref as R, markRaw as x, getCurrentInstance as ee } from "vue";
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";
10
10
  import ie from "../components/InputPageStep.vue.js";
@@ -91,9 +91,9 @@ const Fe = Y({
91
91
  ButtonV3: Se,
92
92
  TextButtonSmall: _e,
93
93
  Illustration: Ce,
94
- PhLightbulb: G,
95
- PhCheckCircle: Z,
96
- PhNumberCircleFive: J,
94
+ PhLightbulb: J,
95
+ PhCheckCircle: G,
96
+ PhNumberCircleFive: Z,
97
97
  ModalSimpleV3: Ve
98
98
  },
99
99
  computed: {
@@ -237,7 +237,11 @@ const Fe = Y({
237
237
  );
238
238
  }).catch((a) => {
239
239
  console.error("Fehler beim Senden der Daten:", a);
240
- });
240
+ }), setTimeout(() => {
241
+ window.location.href = this.$router.resolve({
242
+ name: "DPI-Home-HappyFlow"
243
+ }).href;
244
+ }, 1e3);
241
245
  }
242
246
  } catch (i) {
243
247
  console.log(i);
@@ -398,7 +402,7 @@ const Fe = Y({
398
402
  }, He = { key: 1 }, Me = {
399
403
  key: 0,
400
404
  class: "dpiV3_stepper"
401
- }, Re = { class: "dpiV3_steps" }, Be = ["data-step-active", "data-step-valid"], We = { class: "dpiV3_stepBubbleWrap" }, qe = ["src"], Ke = ["src"], Je = ["textContent"], Ze = { style: { "vertical-align": "middle" } }, Ge = { class: "dpiV3_subStepWrapper" }, Qe = {
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 = {
402
406
  key: 0,
403
407
  class: "dpiV3_seperatorHorizontalStepper"
404
408
  }, Xe = {
@@ -440,9 +444,6 @@ function jt(e, t, i, n, a, m) {
440
444
  return s(), r("div", Ae, [
441
445
  e.isInput ? (s(), r("div", Le, [
442
446
  o("div", Oe, [
443
- o("details", null, [
444
- o("pre", null, c(JSON.stringify(e.formValues, null, 2)), 1)
445
- ]),
446
447
  v(L, {
447
448
  id: "dpiForm",
448
449
  modelValue: e.formValues,
@@ -536,10 +537,10 @@ function jt(e, t, i, n, a, m) {
536
537
  key: 4,
537
538
  class: "dpiV3_step--errors",
538
539
  textContent: c(l.errorCount + l.blockingCount)
539
- }, null, 8, Je)) : p("", !0),
540
- o("span", Ze, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
540
+ }, null, 8, Ze)) : p("", !0),
541
+ o("span", Ge, c(e.$t(`message.dataupload.steps.${u}Step`)), 1)
541
542
  ], 2),
542
- o("div", Ge, [
543
+ o("div", Je, [
543
544
  d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), r("div", Qe)) : p("", !0),
544
545
  d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), r("div", Xe)) : p("", !0),
545
546
  e.activeStep === u ? (s(), r("div", Ye, [
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.60",
4
+ "version": "0.1.0-beta.62",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",