@piveau/dpi 0.1.0-beta.7 → 0.1.0-beta.71

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 (62) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
  3. package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  4. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
  5. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +88 -68
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +11 -11
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +444 -355
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +110 -52
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +566 -207
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +43 -89
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -26
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -38
  31. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +181 -107
  32. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  33. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  34. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  35. package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
  36. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  37. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  38. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +950 -833
  39. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  40. package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
  41. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  42. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  43. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  44. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +314 -260
  45. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  46. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
  47. package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
  48. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  49. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  50. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  51. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  52. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +477 -96
  53. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  54. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +9 -2
  55. package/dist/data-provider-interface/store/modules/authStore.js +11 -11
  56. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  57. package/dist/data-provider-interface/views/InputPage.vue.js +384 -758
  58. package/dist/styles/_dpi.scss +1614 -0
  59. package/dist/styles/_maps.scss +24 -0
  60. package/dist/styles/_variables.scss +973 -0
  61. package/package.json +28 -19
  62. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
@@ -1,69 +1,116 @@
1
- import { ref as u, getCurrentInstance as v, resolveComponent as _, createElementBlock as V, openBlock as C, createVNode as l, withCtx as p, unref as r } from "vue";
2
- import { filterGeocodingURIs as x } from "../../services/dpiV3_apis.js";
3
- import I from "../Dropdown.vue.js";
4
- import h from "../../../components/TempResPage.vue.js";
5
- import { getNode as t } from "@formkit/core";
6
- const j = { class: "dpiV3_innerRapModalWrapper" }, T = {
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
+ import "@formkit/core";
6
+ import { useFormValues as O } from "../../../composables/useDpiFormValues.js";
7
+ const P = { class: "dpiV3_innerRapModalWrapper" }, S = {
7
8
  __name: "CoverageModal",
8
9
  props: {
9
10
  context: Object,
10
11
  newValues: Object
11
12
  },
12
- setup(d) {
13
- let i = u([]), m = v().appContext.app.config.globalProperties.$env, c;
14
- console.log(t("Covering").value[Object.keys(t("Covering").value)[0]][0].label);
15
- let f = u(t("BasicInfos").value);
16
- const s = {};
17
- Object.values(f.value).forEach((e, o) => {
18
- const { isValid: n, ...a } = e;
19
- s[`obj${o + 1}`] = a;
20
- }), console.log(s);
21
- const g = (e, o) => {
22
- t("Covering").value[Object.keys(t("Covering").value)[0]] = [{ isValid: !0, uri: e.resource, id: e.id, label: e.alt_label.de, inVoc: o }];
23
- }, b = async (e) => {
24
- clearTimeout(c), c = setTimeout(async () => {
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
+ isValid: !0,
20
+ type: "dct:PeriodOfTime",
21
+ "dct:temporal": [
22
+ {
23
+ dataType: "date",
24
+ "dcat:startDate": "",
25
+ "dcat:endDate": ""
26
+ }
27
+ ]
28
+ }), l(), l({
29
+ "dcatde:politicalGeocodingURI": [
30
+ {
31
+ isValid: !0,
32
+ uri: "",
33
+ id: "",
34
+ label: "",
35
+ inVoc: ""
36
+ }
37
+ ],
38
+ "dcat:temporalResolution": [
39
+ {
40
+ isValid: !0,
41
+ type: "dct:PeriodOfTime",
42
+ "dct:temporal": [
43
+ {
44
+ dataType: "date",
45
+ "dcat:startDate": "",
46
+ "dcat:endDate": ""
47
+ }
48
+ ]
49
+ }
50
+ ]
51
+ }), console.log(t), console.log({});
52
+ const b = (e, o) => {
53
+ t.value.Covering[Object.keys(t.value.Covering)[0]] = [
54
+ {
55
+ isValid: !0,
56
+ uri: e.resource,
57
+ id: e.id,
58
+ label: e.alt_label.de,
59
+ inVoc: o
60
+ }
61
+ ];
62
+ }, I = async (e) => {
63
+ clearTimeout(r), r = setTimeout(async () => {
25
64
  if (e !== "")
26
65
  try {
27
- console.log(e), i.value = await x(e, m.api.baseUrl);
66
+ console.log(e), i.value = await T(e, V.api.baseUrl);
28
67
  } catch (o) {
29
68
  console.log(o);
30
69
  }
31
70
  }, 500);
32
71
  };
33
- return (e, o) => {
34
- const n = _("innerRapModalItem");
35
- return C(), V("div", j, [
36
- l(n, null, {
37
- default: p(() => [
38
- l(I, {
39
- dropdownWidth: "large",
40
- type: "inputField",
41
- onInput: o[0] || (o[0] = (a) => b(a)),
42
- inputFieldProps: {
43
- addOnText: !1,
44
- initialHintText: !1,
45
- datePicker: !1,
46
- infoIcon: !1,
47
- preIcon: !1,
48
- label: "Geopolitische Abdeckung",
49
- dropdown_dpiV3: !0,
50
- placeholder: "Geben Sie die geopolitische Abdeckung ein..",
51
- inputFieldSize: "large",
52
- autocomplete: "true"
53
- },
54
- onValueSent: g,
55
- data: r(i),
56
- multi: "true",
57
- autocomplete: !0,
58
- modelValue: r(t)("Covering").value[Object.keys(r(t)("Covering").value)[0]][0].label
59
- }, null, 8, ["data", "modelValue"])
60
- ]),
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
+ default: m(() => {
79
+ var p, u;
80
+ return [
81
+ n(w, {
82
+ dropdownWidth: "large",
83
+ type: "inputField",
84
+ onInput: o[0] || (o[0] = (R) => I(R)),
85
+ inputFieldProps: {
86
+ addOnText: !1,
87
+ initialHintText: !1,
88
+ datePicker: !1,
89
+ infoIcon: !1,
90
+ preIcon: !0,
91
+ showEndIcon: !1,
92
+ label: "Geopolitische Abdeckung (optional)",
93
+ dropdown_dpiV3: !0,
94
+ placeholder: "Geben Sie die geopolitische Abdeckung ein..",
95
+ inputFieldSize: "large",
96
+ autocomplete: "true"
97
+ },
98
+ onValueSent: b,
99
+ data: f(i),
100
+ multi: "true",
101
+ autocomplete: !0,
102
+ modelValue: (u = (p = f(t).Covering) == null ? void 0 : p["dcatde:politicalGeocodingURI"]) == null ? void 0 : u[0].label
103
+ }, null, 8, ["data", "modelValue"])
104
+ ];
105
+ }),
61
106
  _: 1
62
107
  }),
63
- l(n, null, {
64
- default: p(() => [
65
- l(h, {
66
- context: d.context,
108
+ n(s, null, {
109
+ default: m(() => [
110
+ n(h, {
111
+ ref_key: "tempResPageRef",
112
+ ref: a,
113
+ context: g.context,
67
114
  inRap: !0,
68
115
  class: "dpiV3_tempresCard"
69
116
  }, null, 8, ["context"])
@@ -75,5 +122,5 @@ const j = { class: "dpiV3_innerRapModalWrapper" }, T = {
75
122
  }
76
123
  };
77
124
  export {
78
- T as default
125
+ S as default
79
126
  };
@@ -1,105 +1,59 @@
1
- import { ref as o, getCurrentInstance as g, watch as D, onMounted as z, resolveComponent as C, createElementBlock as x, openBlock as F, createVNode as d, withCtx as V, unref as m, isRef as M } from "vue";
2
- import { getLicenses as T } from "../../services/dpiV3_apis.js";
3
- import B from "../Dropdown.vue.js";
4
- import P from "../../../components/DistributionSimplePage.vue.js";
1
+ import { ref as i, getCurrentInstance as d, watch as h, onMounted as v, computed as _, resolveComponent as V, createElementBlock as x, openBlock as D, createVNode as r, withCtx as M } from "vue";
2
+ import { getLicenses as y } from "../../services/dpiV3_apis.js";
3
+ import R from "../../../components/DistributionSimplePage.vue.js";
5
4
  import "@formkit/core";
6
- import S from "../InputField.vue.js";
7
- import { useFormValues as k } from "../../../composables/useDpiFormValues.js";
8
- const R = { class: "dpiV3_innerRapModalWrapper" }, W = {
5
+ import { useFormValues as A } from "../../../composables/useDpiFormValues.js";
6
+ const C = { class: "dpiV3_innerRapModalWrapper" }, E = {
9
7
  __name: "DistributionModal",
10
8
  props: {
11
9
  context: Object,
12
10
  newValues: Object
13
11
  },
14
- setup(b) {
15
- let s = o("");
16
- o([]), g().appContext.app.config.globalProperties.$env;
17
- let r = o([]);
18
- const { formValues: c } = k(), v = o("");
19
- let h = o(!1), i = o({ 1: !1, 2: !1 });
20
- const a = o([
12
+ setup(m, { expose: f }) {
13
+ i(), i(""), i([]), d().appContext.app.config.globalProperties.$env;
14
+ let a = i([]);
15
+ const { formValues: o } = A();
16
+ i(""), i(!1), i({ 1: !1, 2: !1 }), i([
21
17
  { isValid: "unset", "dcterms:license": "", title: "", uri: "" }
22
- ]), L = (e, l, t) => {
23
- f(e, l, t);
24
- }, w = (e) => {
25
- const l = typeof e == "object" && e.target ? e.target.value : e;
26
- f(l, "dcterms:license", 1);
27
- }, I = (e, l, t) => {
28
- e.target.value != "" ? (i.value[t] = !0, i.value[1] && i.value[2] && (a.value[0].isValid = !0)) : (i.value[t] = !1, (!i.value[1] || !i.value[2]) && (a.value[0].isValid = !1));
29
- const n = e.target.value;
30
- a.value = a.value.map((p) => l in p ? { ...p, [l]: n } : p), c.value.DistributionSimple["dct:license"] = a.value;
31
- }, f = (e, l, t, n) => {
32
- !(e === "" || r.value.some((u) => u["@value"] === e)) && e !== "" ? (v.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", i.value[t] = !1, a.value[0].isValid = !1) : (v.value = "", h.value = e !== "", e !== "" ? (i.value[t] = !0, e !== "" && i.value[2] && (a.value[0].isValid = !0)) : (i.value[t] = !1, a.value[0].isValid = !1), a.value = a.value.map((u) => l in u ? { ...u, [l]: e, uri: n } : u)), console.log(c.value.DistributionSimple), c.value.DistributionSimple["dct:license"] = a.value;
33
- };
34
- return D(s, (e) => {
35
- console.log("##############");
36
- let l = r.value.find(
37
- (t) => t["@value"] === e
38
- ).uri;
39
- e !== void 0 && f(e, "dcterms:license", 1, l);
40
- }), z(async () => {
41
- const l = g().appContext.app.config.globalProperties.$env;
42
- console.log("halloo?");
18
+ ]), i(!1), h(o.value.DistributionSimple.length, (e) => {
19
+ o.value.DistributionSimple.length > 1 && console.log("halo"), console.log("halo Outer");
20
+ }), v(async () => {
21
+ const s = d().appContext.app.config.globalProperties.$env;
43
22
  try {
44
- const t = await T(l.api.baseUrl);
45
- r.value = t.map((n) => ({
23
+ const t = await y(s.api.baseUrl);
24
+ a.value = t.map((n) => ({
46
25
  "@value": n.value,
47
26
  label: n.label,
48
27
  uri: n.uri
49
- })), console.log(r.value);
28
+ })), a.value.sort((n, l) => n["@value"].localeCompare(l["@value"]));
50
29
  } catch (t) {
51
30
  console.error("Failed to load licenses", t);
52
31
  }
53
- }), (e, l) => {
54
- const t = C("innerRapModalItem");
55
- return F(), x("div", R, [
56
- d(t, null, {
57
- default: V(() => [
58
- d(B, {
59
- "onUpdate:modelValue": [
60
- l[0] || (l[0] = (n) => L(n, "dcterms:license", 1)),
61
- l[1] || (l[1] = (n) => M(s) ? s.value = n : s = n)
62
- ],
63
- dropdownWidth: "large",
64
- onInput: w,
65
- type: "inputField",
66
- modelValue: m(s),
67
- inputFieldProps: {
68
- addOnText: !1,
69
- initialHintText: !1,
70
- datePicker: !1,
71
- infoIcon: !1,
72
- preIcon: !1,
73
- label: "Lizenz",
74
- dropdown_dpiV3: !0,
75
- placeholder: "Lizenz wählen...",
76
- inputFieldSize: "large",
77
- modelValue: m(s),
78
- defaultInput: !0,
79
- showError: !1
80
- },
81
- data: m(r),
82
- onDeleteButtonClicked: e.deleteModifiedField,
83
- class: "gap5BottomAsMargin"
84
- }, null, 8, ["modelValue", "inputFieldProps", "data", "onDeleteButtonClicked"]),
85
- d(S, {
86
- onInput: l[2] || (l[2] = (n) => I(n, "title", 2)),
87
- modelValue: e.changeLicenseTitleText,
88
- "onUpdate:modelValue": l[3] || (l[3] = (n) => e.changeLicenseTitleText = n),
89
- label: e.$t("message.metadata.publisher"),
90
- infoIcon: !1,
91
- preIcon: !1,
92
- initialHintText: !0,
93
- "supporting-hint-message": "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
94
- showEndIcon: !1
95
- }, null, 8, ["modelValue", "label"])
96
- ]),
97
- _: 1
98
- }),
99
- d(t, null, {
100
- default: V(() => [
101
- d(P, {
102
- context: b.context,
32
+ });
33
+ const g = _(() => {
34
+ var s, t;
35
+ const e = (t = (s = o.value) == null ? void 0 : s.DistributionSimple) == null ? void 0 : t["dcat:distribution"];
36
+ return !e || !Array.isArray(e) || e.length === 0 ? !1 : e.every((n) => n.isValid === !0);
37
+ });
38
+ return f({
39
+ isValid: g,
40
+ getValidationErrorMessages: () => {
41
+ var t, n;
42
+ const e = (n = (t = o.value) == null ? void 0 : t.DistributionSimple) == null ? void 0 : n["dcat:distribution"], s = [];
43
+ return !e || !Array.isArray(e) || e.length === 0 ? s.push("Bitte fügen Sie mindestens eine Distribution hinzu.") : e.some((b) => {
44
+ var u, p;
45
+ const c = (p = (u = b["dcat:accessURL"]) == null ? void 0 : u[0]) == null ? void 0 : p["@value"];
46
+ return !c || c.length === 0;
47
+ }) && s.push("Alle Distributionen müssen eine Zugriffs-URL (Access URL) haben."), s;
48
+ }
49
+ }), (e, s) => {
50
+ const t = V("innerRapModalItem");
51
+ return D(), x("div", C, [
52
+ r(t),
53
+ r(t, null, {
54
+ default: M(() => [
55
+ r(R, {
56
+ context: m.context,
103
57
  inRap: !0
104
58
  }, null, 8, ["context"])
105
59
  ]),
@@ -110,5 +64,5 @@ const R = { class: "dpiV3_innerRapModalWrapper" }, W = {
110
64
  }
111
65
  };
112
66
  export {
113
- W as default
67
+ E as default
114
68
  };