@piveau/dpi 0.1.0-beta.45 → 0.1.0-beta.47

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.
Files changed (24) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +43 -43
  3. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +316 -302
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +32 -36
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +120 -105
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +40 -40
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +44 -48
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +57 -61
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +61 -45
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +394 -378
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +42 -42
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +3 -3
  15. package/dist/data-provider-interface/components/DistLicense.vue.js +107 -96
  16. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +329 -310
  17. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +39 -39
  18. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +2 -2
  19. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +176 -179
  20. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +203 -195
  21. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +5 -5
  22. package/dist/data-provider-interface/store/modules/authStore.js +14 -12
  23. package/dist/data-provider-interface/views/InputPage.vue.js +95 -96
  24. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
- import { ref as o, getCurrentInstance as _, resolveComponent as x, createElementBlock as C, openBlock as h, createVNode as i, withCtx as m, unref as f } from "vue";
2
- import { filterGeocodingURIs as y } from "../../services/dpiV3_apis.js";
3
- import A from "../Dropdown.vue.js";
4
- import T from "../../../components/TempResPageInModal.vue.js";
1
+ import { ref as l, getCurrentInstance as _, resolveComponent as x, createElementBlock as C, openBlock as y, createVNode as n, withCtx as m, unref as f } from "vue";
2
+ import { filterGeocodingURIs as T } from "../../services/dpiV3_apis.js";
3
+ import w from "../Dropdown.vue.js";
4
+ import h from "../../../components/TempResPageInModal.vue.js";
5
5
  import "@formkit/core";
6
- import { useFormValues as w } from "../../../composables/useDpiFormValues.js";
7
- const O = { class: "dpiV3_innerRapModalWrapper" }, S = {
6
+ import { useFormValues as O } from "../../../composables/useDpiFormValues.js";
7
+ const P = { class: "dpiV3_innerRapModalWrapper" }, S = {
8
8
  __name: "CoverageModal",
9
9
  props: {
10
10
  context: Object,
11
11
  newValues: Object
12
12
  },
13
- setup(v, { expose: g }) {
14
- var r, s;
15
- const l = o(null);
16
- let n = o([]), V = _().appContext.app.config.globalProperties.$env, d;
17
- const { formValues: e } = w();
18
- ((s = (r = e.value.Covering) == null ? void 0 : r["dcat:temporalResolution"]) == null ? void 0 : s["dct:temporal"]) === void 0 && (e.value.Covering["dcat:temporalResolution"] = {
13
+ setup(g, { expose: v }) {
14
+ var d, c;
15
+ const a = l(null);
16
+ let i = l([]), V = _().appContext.app.config.globalProperties.$env, r;
17
+ const { formValues: t } = O();
18
+ ((c = (d = t.value.Covering) == null ? void 0 : d["dcat:temporalResolution"]) == null ? void 0 : c["dct:temporal"]) === void 0 && (t.value.Covering["dcat:temporalResolution"] = {
19
19
  isValid: !0,
20
20
  type: "dct:PeriodOfTime",
21
21
  "dct:temporal": [
@@ -25,7 +25,7 @@ const O = { class: "dpiV3_innerRapModalWrapper" }, S = {
25
25
  "dcat:endDate": ""
26
26
  }
27
27
  ]
28
- }), o(), o({
28
+ }), l(), l({
29
29
  "dcatde:politicalGeocodingURI": [
30
30
  {
31
31
  isValid: !0,
@@ -48,40 +48,40 @@ const O = { class: "dpiV3_innerRapModalWrapper" }, S = {
48
48
  ]
49
49
  }
50
50
  ]
51
- }), console.log(e), console.log({});
52
- const b = (t, a) => {
53
- e.value.Covering[Object.keys(e.value.Covering)[0]] = [
51
+ }), console.log(t), console.log({});
52
+ const b = (e, o) => {
53
+ t.value.Covering[Object.keys(t.value.Covering)[0]] = [
54
54
  {
55
55
  isValid: !0,
56
- uri: t.resource,
57
- id: t.id,
58
- label: t.alt_label.de,
59
- inVoc: a
56
+ uri: e.resource,
57
+ id: e.id,
58
+ label: e.alt_label.de,
59
+ inVoc: o
60
60
  }
61
- ], e.value.Additionals["dct:spatial"] === void 0 ? (e.value.Additionals["dct:spatial"] = [], e.value.Additionals["dct:spatial"].push({ "@id": t.resource })) : e.value.Additionals["dct:spatial"].push({ "@id": t.resource });
62
- }, I = async (t) => {
63
- clearTimeout(d), d = setTimeout(async () => {
64
- if (t !== "")
61
+ ];
62
+ }, I = async (e) => {
63
+ clearTimeout(r), r = setTimeout(async () => {
64
+ if (e !== "")
65
65
  try {
66
- console.log(t), n.value = await y(t, V.api.baseUrl);
67
- } catch (a) {
68
- console.log(a);
66
+ console.log(e), i.value = await T(e, V.api.baseUrl);
67
+ } catch (o) {
68
+ console.log(o);
69
69
  }
70
70
  }, 500);
71
71
  };
72
- return g({
73
- validateAllItems: () => l.value && l.value.validateAllItems ? l.value.validateAllItems() : !1
74
- }), (t, a) => {
75
- const c = x("innerRapModalItem");
76
- return h(), C("div", O, [
77
- i(c, null, {
72
+ return v({
73
+ validateAllItems: () => a.value && a.value.validateAllItems ? a.value.validateAllItems() : !1
74
+ }), (e, o) => {
75
+ const s = x("innerRapModalItem");
76
+ return y(), C("div", P, [
77
+ n(s, null, {
78
78
  default: m(() => {
79
- var u, p;
79
+ var p, u;
80
80
  return [
81
- i(A, {
81
+ n(w, {
82
82
  dropdownWidth: "large",
83
83
  type: "inputField",
84
- onInput: a[0] || (a[0] = (R) => I(R)),
84
+ onInput: o[0] || (o[0] = (R) => I(R)),
85
85
  inputFieldProps: {
86
86
  addOnText: !1,
87
87
  initialHintText: !1,
@@ -96,21 +96,21 @@ const O = { class: "dpiV3_innerRapModalWrapper" }, S = {
96
96
  autocomplete: "true"
97
97
  },
98
98
  onValueSent: b,
99
- data: f(n),
99
+ data: f(i),
100
100
  multi: "true",
101
101
  autocomplete: !0,
102
- modelValue: (p = (u = f(e).Covering) == null ? void 0 : u["dcatde:politicalGeocodingURI"]) == null ? void 0 : p[0].label
102
+ modelValue: (u = (p = f(t).Covering) == null ? void 0 : p["dcatde:politicalGeocodingURI"]) == null ? void 0 : u[0].label
103
103
  }, null, 8, ["data", "modelValue"])
104
104
  ];
105
105
  }),
106
106
  _: 1
107
107
  }),
108
- i(c, null, {
108
+ n(s, null, {
109
109
  default: m(() => [
110
- i(T, {
110
+ n(h, {
111
111
  ref_key: "tempResPageRef",
112
- ref: l,
113
- context: v.context,
112
+ ref: a,
113
+ context: g.context,
114
114
  inRap: !0,
115
115
  class: "dpiV3_tempresCard"
116
116
  }, null, 8, ["context"])
@@ -1,103 +1,42 @@
1
- import { ref as a, getCurrentInstance as B, onMounted as k, resolveComponent as R, createElementBlock as T, openBlock as E, createVNode as m, withCtx as F, unref as c, isRef as N } from "vue";
2
- import { getLicenses as O } from "../../services/dpiV3_apis.js";
3
- import j from "../Dropdown.vue.js";
4
- import A from "../../../components/DistributionSimplePage.vue.js";
1
+ import { ref as e, getCurrentInstance as i, watch as u, onMounted as m, resolveComponent as f, createElementBlock as d, openBlock as v, createVNode as n, withCtx as _ } from "vue";
2
+ import { getLicenses as b } from "../../services/dpiV3_apis.js";
3
+ import g from "../../../components/DistributionSimplePage.vue.js";
5
4
  import "@formkit/core";
6
- import U from "../InputField.vue.js";
7
- import { useFormValues as H } from "../../../composables/useDpiFormValues.js";
8
- const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
5
+ import { useFormValues as h } from "../../../composables/useDpiFormValues.js";
6
+ const x = { class: "dpiV3_innerRapModalWrapper" }, O = {
9
7
  __name: "DistributionModal",
10
8
  props: {
11
9
  context: Object,
12
10
  newValues: Object
13
11
  },
14
- setup(M) {
15
- a();
16
- let f = a("");
17
- a([]), B().appContext.app.config.globalProperties.$env;
18
- let s = a([]);
19
- const { formValues: r } = H(), v = a("");
20
- let y = a(!1), b = a({ 1: !1, 2: !1 });
21
- const o = a([
12
+ setup(c) {
13
+ e(), e(""), e([]), i().appContext.app.config.globalProperties.$env;
14
+ let l = e([]);
15
+ const { formValues: a } = h();
16
+ return e(""), e(!1), e({ 1: !1, 2: !1 }), e([
22
17
  { isValid: "unset", "dcterms:license": "", title: "", uri: "" }
23
- ]), P = (e, t, l) => {
24
- g(e, t, l);
25
- }, _ = (e) => {
26
- const t = typeof e == "object" && e.target ? e.target.value : e;
27
- g(t, "dcterms:license", 1);
28
- }, g = (e, t, l, n) => {
29
- const u = e === "" || s.value.some((i) => i["@value"] === e);
30
- let p = a();
31
- s.value.some((i) => i["@value"] === e) && (p.value = s.value.find(
32
- (i) => i["@value"] === e
33
- ).label), !u && e !== "" ? (v.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", b.value[l] = !1, o.value[0].isValid = !1) : (v.value = "", y.value = e !== "", e !== "" ? (b.value[l] = !0, e !== "" && b.value[2] && (o.value[0].isValid = !0)) : (b.value[l] = !1, o.value[0].isValid = !1), o.value = o.value.map((i) => t in i ? { ...i, [t]: e, uri: n, title: p } : i)), console.log(r.value.DistributionSimple), r.value.DistributionSimple["dct:license"] = o.value;
34
- };
35
- return k(async () => {
36
- const t = B().appContext.app.config.globalProperties.$env;
18
+ ]), e(!1), u(a.value.DistributionSimple.length, (r) => {
19
+ a.value.DistributionSimple.length > 1 && console.log("halo"), console.log("halo Outer");
20
+ }), m(async () => {
21
+ const s = i().appContext.app.config.globalProperties.$env;
37
22
  try {
38
- const l = await O(t.api.baseUrl);
39
- s.value = l.map((n) => ({
40
- "@value": n.value,
41
- label: n.label,
42
- uri: n.uri
43
- })), s.value.sort((n, u) => n["@value"].localeCompare(u["@value"]));
44
- } catch (l) {
45
- console.error("Failed to load licenses", l);
23
+ const t = await b(s.api.baseUrl);
24
+ l.value = t.map((o) => ({
25
+ "@value": o.value,
26
+ label: o.label,
27
+ uri: o.uri
28
+ })), l.value.sort((o, p) => o["@value"].localeCompare(p["@value"]));
29
+ } catch (t) {
30
+ console.error("Failed to load licenses", t);
46
31
  }
47
- }), (e, t) => {
48
- const l = R("innerRapModalItem");
49
- return E(), T("div", W, [
50
- m(l, null, {
51
- default: F(() => {
52
- var n, u, p, i, V, D, h, w, I, x, L, z, C, S;
53
- return [
54
- m(j, {
55
- "onUpdate:modelValue": [
56
- t[0] || (t[0] = (d) => P(d, "dcterms:license", 1)),
57
- t[1] || (t[1] = (d) => N(f) ? f.value = d : f = d)
58
- ],
59
- dropdownWidth: "large",
60
- onInput: _,
61
- type: "inputField",
62
- modelValue: c(f),
63
- inputFieldProps: {
64
- addOnText: !1,
65
- initialHintText: !1,
66
- datePicker: !1,
67
- infoIcon: !1,
68
- preIcon: !1,
69
- label: "Lizenz",
70
- dropdown_dpiV3: !0,
71
- placeholder: ((V = (i = (p = (u = (n = c(r).DistributionSimple) == null ? void 0 : n["dcat:distribution"]) == null ? void 0 : u[0]) == null ? void 0 : p["dct:license"]) == null ? void 0 : i[0]) == null ? void 0 : V["dcterms:license"]) || ((w = (h = (D = c(r).DistributionSimple) == null ? void 0 : D["dct:license"]) == null ? void 0 : h[0]) == null ? void 0 : w["dcterms:license"]) || "Lizenz wählen...",
72
- inputFieldSize: "large",
73
- defaultInput: !0,
74
- showError: !1
75
- },
76
- data: c(s),
77
- onDeleteButtonClicked: e.deleteModifiedField,
78
- class: "gap5BottomAsMargin"
79
- }, null, 8, ["modelValue", "inputFieldProps", "data", "onDeleteButtonClicked"]),
80
- m(U, {
81
- label: e.$t(
82
- "message.dataupload.datasets.dcat:distribution.advanced.dcatde:licenseAttributionByText"
83
- ),
84
- infoIcon: !1,
85
- preIcon: !1,
86
- initialHintText: !0,
87
- "supporting-hint-message": "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
88
- showEndIcon: !1,
89
- placeholder: ((L = (x = (I = c(r).DistributionSimple) == null ? void 0 : I["dcat:distribution"]) == null ? void 0 : x[0]) == null ? void 0 : L["dcatde:licenseAttributionByText"]) || ((S = (C = (z = c(r).DistributionSimple) == null ? void 0 : z["dct:license"]) == null ? void 0 : C[0]) == null ? void 0 : S.attribution) || "Nennung des Datenbereitstellers",
90
- modelValue: o.value[0].attribution,
91
- "onUpdate:modelValue": t[2] || (t[2] = (d) => o.value[0].attribution = d)
92
- }, null, 8, ["label", "placeholder", "modelValue"])
93
- ];
94
- }),
95
- _: 1
96
- }),
97
- m(l, null, {
98
- default: F(() => [
99
- m(A, {
100
- context: M.context,
32
+ }), (r, s) => {
33
+ const t = f("innerRapModalItem");
34
+ return v(), d("div", x, [
35
+ n(t),
36
+ n(t, null, {
37
+ default: _(() => [
38
+ n(g, {
39
+ context: c.context,
101
40
  inRap: !0
102
41
  }, null, 8, ["context"])
103
42
  ]),
@@ -108,5 +47,5 @@ const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
108
47
  }
109
48
  };
110
49
  export {
111
- Y as default
50
+ O as default
112
51
  };
@@ -40,8 +40,8 @@ const se = { class: "dpiV3_tableRowInner" }, oe = { class: "dpiV3_TableRowDescCo
40
40
  A({ id: a, catalogId: e, isDraft: n, locale: "de" });
41
41
  }, E = (n, e, a, h) => {
42
42
  console.log(t.dataset), D.dispatch("auth/putDatasetToDraft", { id: n, catalog: e, title: a, description: h });
43
- }, K = (n, e) => {
44
- D.dispatch("auth/publishUserDraftById", { id: n, catalog: e });
43
+ }, K = async (n, e) => {
44
+ await D.dispatch("auth/publishUserDraftById", { id: n, catalog: e });
45
45
  }, y = async (n, e) => {
46
46
  const a = n || t.dataset && t.dataset.id || t.catalogue && t.catalogue.id, h = e || t.catalogue, H = $.api.hubUrl, J = !!t.draft ? `drafts/datasets/${a}?catalogue=${h}` : `datasets/${a}?useNormalizedId=true&catalogue=${h}`, j = `${H}${J}`;
47
47
  await te.delete(j, {
@@ -230,7 +230,7 @@ const se = { class: "dpiV3_tableRowInner" }, oe = { class: "dpiV3_TableRowDescCo
230
230
  }, null, 8, ["type", "text", "button", "action"])) : b("", !0)
231
231
  ], 64));
232
232
  }
233
- }, Ve = /* @__PURE__ */ ne(ue, [["__scopeId", "data-v-b618a82e"]]);
233
+ }, Ve = /* @__PURE__ */ ne(ue, [["__scopeId", "data-v-faa1fe1c"]]);
234
234
  export {
235
235
  Ve as default
236
236
  };