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

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 (60) 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 +78 -66
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +52 -57
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +71 -38
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  31. package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
  32. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  33. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  34. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +879 -843
  35. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  36. package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
  37. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  38. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  39. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  40. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +328 -265
  41. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  42. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
  43. package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
  44. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  45. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  46. package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
  47. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  48. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  49. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +472 -95
  50. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  51. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
  52. package/dist/data-provider-interface/store/modules/authStore.js +11 -11
  53. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  54. package/dist/data-provider-interface/views/InputPage.vue.js +381 -755
  55. package/dist/styles/_dpi.scss +1614 -0
  56. package/dist/styles/_maps.scss +24 -0
  57. package/dist/styles/_variables.scss +973 -0
  58. package/package.json +28 -19
  59. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
  60. 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,64 +1,59 @@
1
- import { ref as p, getCurrentInstance as u, resolveComponent as d, createElementBlock as m, openBlock as f, createVNode as n, withCtx as r, unref as t } from "vue";
2
- import b from "../Dropdown.vue.js";
3
- import c from "../../../components/DistributionSimplePage.vue.js";
4
- import { getNode as l } from "@formkit/core";
5
- import g from "../InputField.vue.js";
6
- const D = { class: "dpiV3_innerRapModalWrapper" }, k = {
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";
4
+ import "@formkit/core";
5
+ import { useFormValues as A } from "../../../composables/useDpiFormValues.js";
6
+ const C = { class: "dpiV3_innerRapModalWrapper" }, E = {
7
7
  __name: "DistributionModal",
8
8
  props: {
9
9
  context: Object,
10
10
  newValues: Object
11
11
  },
12
- setup(s) {
13
- return p([]), u().appContext.app.config.globalProperties.$env, (i, e) => {
14
- const a = d("innerRapModalItem");
15
- return f(), m("div", D, [
16
- n(a, null, {
17
- default: r(() => [
18
- n(b, {
19
- "onUpdate:modelValue": [
20
- e[0] || (e[0] = (o) => i.handleChangeLicenseVal(o, "label", 1)),
21
- e[1] || (e[1] = (o) => t(l)("DistributionSimple").value[Object.keys(t(l)("DistributionSimple").value)[1]][0].label = o)
22
- ],
23
- dropdownWidth: "large",
24
- type: "inputField",
25
- modelValue: t(l)("DistributionSimple").value[Object.keys(t(l)("DistributionSimple").value)[1]][0].label,
26
- inputFieldProps: {
27
- addOnText: !1,
28
- initialHintText: !1,
29
- datePicker: !1,
30
- infoIcon: !1,
31
- preIcon: !1,
32
- label: "Lizenz",
33
- dropdown_dpiV3: !0,
34
- placeholder: "Lizenz wählen...",
35
- inputFieldSize: "large",
36
- modelValue: "",
37
- defaultInput: !0,
38
- showError: !1
39
- },
40
- data: i.licenseOptions,
41
- onDeleteButtonClicked: i.deleteModifiedField,
42
- class: "gap5BottomAsMargin"
43
- }, null, 8, ["modelValue", "data", "onDeleteButtonClicked"]),
44
- n(g, {
45
- label: i.$t("message.metadata.publisher"),
46
- modelValue: t(l)("DistributionSimple").value[Object.keys(t(l)("DistributionSimple").value)[1]][0].title,
47
- infoIcon: !1,
48
- preIcon: !1,
49
- initialHintText: !0,
50
- "supporting-hint-message": "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
51
- showEndIcon: !1,
52
- onInput: e[2] || (e[2] = () => {
53
- })
54
- }, null, 8, ["label", "modelValue"])
55
- ]),
56
- _: 1
57
- }),
58
- n(a, null, {
59
- default: r(() => [
60
- n(c, {
61
- context: s.context,
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([
17
+ { isValid: "unset", "dcterms:license": "", title: "", uri: "" }
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;
22
+ try {
23
+ const t = await y(s.api.baseUrl);
24
+ a.value = t.map((n) => ({
25
+ "@value": n.value,
26
+ label: n.label,
27
+ uri: n.uri
28
+ })), a.value.sort((n, l) => n["@value"].localeCompare(l["@value"]));
29
+ } catch (t) {
30
+ console.error("Failed to load licenses", t);
31
+ }
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,
62
57
  inRap: !0
63
58
  }, null, 8, ["context"])
64
59
  ]),
@@ -69,5 +64,5 @@ const D = { class: "dpiV3_innerRapModalWrapper" }, k = {
69
64
  }
70
65
  };
71
66
  export {
72
- k as default
67
+ E as default
73
68
  };