@piveau/dpi 0.1.0-beta.51 → 0.1.0-beta.57

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.
@@ -5,7 +5,7 @@ function rt(t) {
5
5
  return t.replace(/[^a-z0-9\s]/gi, "").replace(/\s+/g, "-").toLowerCase();
6
6
  }
7
7
  async function At(t, g, l, b) {
8
- var h, v, f, D, k, O, j, R, S, w, I, x, L, B, U, P, C, T, G, M, q, X, z, F, $, N, E, H, W, Y, _, J, K, Q, Z, m, V, tt, it, dt, et, at, nt, ot;
8
+ var h, v, f, D, k, O, j, R, w, S, I, x, L, B, U, P, C, T, M, G, q, X, z, F, $, N, E, H, W, Y, _, J, K, Q, Z, m, V, tt, it, dt, et, at, nt, ot;
9
9
  const u = g.specification.prefixes;
10
10
  let p = [];
11
11
  const c = Object.keys(t);
@@ -35,7 +35,7 @@ async function At(t, g, l, b) {
35
35
  for (let i = 0; i < Object.keys(t.BasicInfos).length; i++)
36
36
  Object.keys(t.BasicInfos)[i] === "dct:title" && (d.dataset["dct:title"] = t.BasicInfos["dct:title"][0] || "", y = rt(
37
37
  t.BasicInfos["dct:title"][0]["@value"]
38
- ), lt === "true" && (y = t.BasicInfos.datasetID)), Object.keys(t.BasicInfos)[i] === "dct:description" && (d.dataset["dct:description"] = t.BasicInfos["dct:description"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:modified" && (d.dataset["dct:modified"] = t.BasicInfos["dct:modified"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:publisher" && (d.dataset["dct:publisher"] = t.BasicInfos["dct:publisher"][0] || "", d.dataset["dct:publisher"]["@type"] = "foaf:Agent"), Object.keys(t.BasicInfos)[i] === "dcat:contactPoint" && (d.dataset["dcat:contactPoint"] = t.BasicInfos["dcat:contactPoint"][0] || "", d.dataset["dcat:contactPoint"]["@type"] = "vcard:Organization"), d.dataset["@type"] = "dcat:Dataset", d.meta["dcat:catalog"] = l.permissions[0].rsname, d.meta["@type"] = "dcat:CatalogRecord";
38
+ ), lt === "true" && (y = t.BasicInfos.datasetID)), Object.keys(t.BasicInfos)[i] === "dct:description" && (d.dataset["dct:description"] = t.BasicInfos["dct:description"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:modified" && (d.dataset["dct:modified"] = t.BasicInfos["dct:modified"][0] || "", d.dataset["dct:modified"]["@type"] = "http://www.w3.org/2001/XMLSchema#date"), Object.keys(t.BasicInfos)[i] === "dct:publisher" && (d.dataset["dct:publisher"] = t.BasicInfos["dct:publisher"][0] || "", d.dataset["dct:publisher"]["@type"] = "foaf:Agent"), Object.keys(t.BasicInfos)[i] === "dcat:contactPoint" && (d.dataset["dcat:contactPoint"] = t.BasicInfos["dcat:contactPoint"][0] || "", d.dataset["dcat:contactPoint"]["@type"] = "vcard:Organization"), d.dataset["@type"] = "dcat:Dataset", d.meta["dcat:catalog"] = l.permissions[0].rsname, d.meta["@type"] = "dcat:CatalogRecord";
39
39
  }
40
40
  if (c[o] === "Covering" && Object.keys(t.Covering).length > 1)
41
41
  for (let i = 0; i < Object.keys(t.Covering).length; i++) {
@@ -65,9 +65,9 @@ async function At(t, g, l, b) {
65
65
  });
66
66
  }
67
67
  Object.keys(t.Covering)[i] === "dcatde:politicalGeocodingURI" && ((j = (O = t.Covering) == null ? void 0 : O["dcatde:politicalGeocodingURI"]) == null ? void 0 : j.uri) != null && (console.log("hallo?"), d.dataset["dcatde:politicalGeocodingURI"] = {
68
- "@id": ((S = (R = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : R[0]) == null ? void 0 : S.uri) || ""
68
+ "@id": ((w = (R = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : R[0]) == null ? void 0 : w.uri) || ""
69
69
  }, d.dataset["dct:spatial"] === void 0 && (d.dataset["dct:spatial"] = []), d.dataset["dct:spatial"].push({
70
- "@id": ((I = (w = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : w[0]) == null ? void 0 : I.uri) || ""
70
+ "@id": ((I = (S = t.Covering["dcatde:politicalGeocodingURI"]) == null ? void 0 : S[0]) == null ? void 0 : I.uri) || ""
71
71
  }));
72
72
  }
73
73
  if (c[o] === "DistributionSimple")
@@ -105,10 +105,10 @@ async function At(t, g, l, b) {
105
105
  "@language": "de",
106
106
  "@value": t.DistributionSimple["dcat:distribution"][i]["dct:license"].title
107
107
  }));
108
- const e = (G = (T = (C = t.DistributionSimple) == null ? void 0 : C["dcat:distribution"]) == null ? void 0 : T[i]) == null ? void 0 : G["dct:format"];
108
+ const e = (M = (T = (C = t.DistributionSimple) == null ? void 0 : C["dcat:distribution"]) == null ? void 0 : T[i]) == null ? void 0 : M["dct:format"];
109
109
  e && (d.distribution[i]["dct:format"] = {
110
110
  "@id": (e == null ? void 0 : e.uri) || ""
111
- }), ((X = (q = (M = t.DistributionSimple) == null ? void 0 : M["dcat:distribution"]) == null ? void 0 : q[i]) == null ? void 0 : X["dcatap:applicableLegislation"]) != null && (d.distribution[i]["dct:format"] = ($ = (F = (z = t.DistributionSimple) == null ? void 0 : z["dcat:distribution"]) == null ? void 0 : F[i]) == null ? void 0 : $["dcatap:applicableLegislation"]["@id"]);
111
+ }), ((X = (q = (G = t.DistributionSimple) == null ? void 0 : G["dcat:distribution"]) == null ? void 0 : q[i]) == null ? void 0 : X["dcatap:applicableLegislation"]) != null && (d.distribution[i]["dct:format"] = ($ = (F = (z = t.DistributionSimple) == null ? void 0 : z["dcat:distribution"]) == null ? void 0 : F[i]) == null ? void 0 : $["dcatap:applicableLegislation"]["@id"]);
112
112
  const s = ((H = (E = (N = t.DistributionSimple) == null ? void 0 : N["dcat:distribution"]) == null ? void 0 : E[i]) == null ? void 0 : H.conformsToItems) || [];
113
113
  if (s.length !== 0 && (d.distribution[i]["dct:conformsTo"] = st(
114
114
  s
@@ -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 j } 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 h, createBlock as S, toDisplayString as c, withModifiers as N, withCtx as z, Fragment as V, renderList as k, withDirectives as U, 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 h, createBlock as S, withModifiers as N, withCtx as z, Fragment as V, renderList as k, withDirectives as U, 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: be,
92
92
  TextButtonSmall: ke,
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 zt(e, t, i, n, a, v) {
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
  h(L, {
447
448
  id: "dpiForm",
448
449
  modelValue: e.formValues,
@@ -536,10 +537,10 @@ function zt(e, t, i, n, a, v) {
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.51",
4
+ "version": "0.1.0-beta.57",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",
@@ -36,6 +36,16 @@
36
36
  "node": ">=18.18.0",
37
37
  "pnpm": ">=10.0.0"
38
38
  },
39
+ "scripts": {
40
+ "dev": "histoire dev",
41
+ "build": "vite build",
42
+ "preview": "vite preview",
43
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
44
+ "story:dev": "histoire dev",
45
+ "story:build": "histoire build",
46
+ "story:preview": "histoire preview",
47
+ "prepublishOnly": "vite build"
48
+ },
39
49
  "devDependencies": {
40
50
  "@antfu/eslint-config": "^4.19.0",
41
51
  "@formkit/core": "^1.6.9",
@@ -83,19 +93,15 @@
83
93
  "name": "node",
84
94
  "onFail": "error"
85
95
  },
86
- "packageManager": {
87
- "name": "pnpm",
88
- "version": ">=10.13.1",
89
- "onFail": "error"
90
- }
91
- },
92
- "scripts": {
93
- "dev": "histoire dev",
94
- "build": "vite build",
95
- "preview": "vite preview",
96
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
97
- "story:dev": "histoire dev",
98
- "story:build": "histoire build",
99
- "story:preview": "histoire preview"
96
+ "packageManager": [
97
+ {
98
+ "name": "pnpm",
99
+ "version": ">=10.13.1",
100
+ "onFail": "error"
101
+ },
102
+ {
103
+ "name": "npm"
104
+ }
105
+ ]
100
106
  }
101
- }
107
+ }