@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,12 +1,12 @@
1
- import { ref as i, createElementBlock as g, openBlock as v, normalizeClass as u, createElementVNode as s, toDisplayString as S, createVNode as c, unref as p } from "vue";
1
+ import { ref as l, createElementBlock as v, openBlock as g, normalizeClass as p, createElementVNode as s, toDisplayString as S, createVNode as c, unref as f } from "vue";
2
2
  import x from "../img/x-circleFill.svg.js";
3
- import _ from "../img/InfoFill.svg.js";
4
- import T from "../img/CheckCircleFill.svg.js";
3
+ import T from "../img/InfoFill.svg.js";
4
+ import b from "../img/CheckCircleFill.svg.js";
5
5
  import B from "../img/WarningFill.svg.js";
6
- import b from "./TextButtonSmall.vue.js";
7
- import w from "./CrossOutButton.vue.js";
6
+ import w from "./TextButtonSmall.vue.js";
7
+ import E from "./CrossOutButton.vue.js";
8
8
  /* empty css */
9
- const E = { class: "imgTextWrap" }, K = ["src"], h = { class: "btnWrapToast" }, $ = {
9
+ const _ = { class: "imgTextWrap" }, k = ["src"], K = { class: "btnWrapToast" }, h = {
10
10
  __name: "Toast",
11
11
  props: {
12
12
  text: {
@@ -20,50 +20,51 @@ const E = { class: "imgTextWrap" }, K = ["src"], h = { class: "btnWrapToast" },
20
20
  button: String,
21
21
  action: String
22
22
  },
23
- setup(f) {
24
- const o = i();
25
- let n = i(!1), a = i(!1);
26
- const e = f;
27
- e.type === "info" && (o.value = _), e.type === "success" && (o.value = T), e.type === "warning" && (o.value = B), e.type === "error" && (o.value = x);
28
- const l = (t) => {
29
- t === "in" ? a.value = !0 : a.value = !1;
30
- }, d = (t) => {
31
- (t.code === "Space" || t.code === "Enter") && (n.value = !0, t.preventDefault());
23
+ setup(d) {
24
+ const r = l();
25
+ let n = l(!1), i = l(!1);
26
+ const e = d;
27
+ e.type === "info" && (r.value = T), e.type === "success" && (r.value = b), e.type === "warning" && (r.value = B), e.type === "error" && (r.value = x);
28
+ const u = (t) => {
29
+ t === "in" ? i.value = !0 : i.value = !1;
32
30
  }, m = (t) => {
31
+ (t.code === "Space" || t.code === "Enter") && (n.value = !0, t.preventDefault());
32
+ }, y = (t) => {
33
33
  (t.code === "Space" || t.code === "Enter") && (n.value = !1);
34
34
  };
35
- return (t, r) => (v(), g("div", {
36
- class: u(["toastBody", {
35
+ return (t, o) => (g(), v("div", {
36
+ class: p(["toastBody", {
37
37
  error: e.type === "error",
38
38
  warning: e.type === "warning",
39
39
  info: e.type === "info",
40
40
  success: e.type === "success"
41
41
  }])
42
42
  }, [
43
- s("div", E, [
43
+ s("div", _, [
44
44
  s("img", {
45
- src: o.value,
45
+ src: r.value,
46
46
  alt: ""
47
- }, null, 8, K),
47
+ }, null, 8, k),
48
48
  s("span", null, S(e.text), 1)
49
49
  ]),
50
- s("div", h, [
51
- c(b, {
50
+ s("div", K, [
51
+ c(w, {
52
+ onClick: o[0] || (o[0] = (a) => t.$emit("button-clicked")),
52
53
  buttonText: e.button,
53
54
  style: { margin: "auto" }
54
55
  }, null, 8, ["buttonText"]),
55
- c(w, {
56
- onKeydown: d,
57
- onKeyup: m,
58
- onFocus: r[0] || (r[0] = (y) => l("in")),
59
- onBlur: r[1] || (r[1] = (y) => l()),
56
+ c(E, {
57
+ onKeydown: m,
58
+ onKeyup: y,
59
+ onFocus: o[1] || (o[1] = (a) => u("in")),
60
+ onBlur: o[2] || (o[2] = (a) => u()),
60
61
  type: "inToast",
61
- class: u(["crossout", { pressed: p(n), focused: p(a) }])
62
+ class: p(["crossout", { pressed: f(n), focused: f(i) }])
62
63
  }, null, 8, ["class"])
63
64
  ])
64
65
  ], 2));
65
66
  }
66
67
  };
67
68
  export {
68
- $ as default
69
+ h as default
69
70
  };
@@ -1,49 +1,60 @@
1
- import { ref as h, computed as M, getCurrentInstance as S, unref as m, onMounted as I, createElementBlock as r, openBlock as d, createElementVNode as a, createCommentVNode as f, toDisplayString as i, createVNode as c, Fragment as y, renderList as $ } from "vue";
2
- import { PhWarning as v } from "@phosphor-icons/vue";
3
- import { useEditModeInfo as R } from "../composables/useDpiEditMode.js";
4
- import w from "../HappyFlowComponents/ui/InputField.vue.js";
5
- import B from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
1
+ import { ref as f, computed as B, getCurrentInstance as F, unref as m, onMounted as M, watch as O, createElementBlock as c, openBlock as d, createElementVNode as s, createCommentVNode as h, toDisplayString as r, createVNode as u, Fragment as E, renderList as D } from "vue";
2
+ import { PhWarning as g } from "@phosphor-icons/vue";
3
+ import { useEditModeInfo as I } from "../composables/useDpiEditMode.js";
4
+ import P from "../HappyFlowComponents/ui/InputField.vue.js";
5
+ import z from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
6
+ import { useFormValues as U } from "../composables/useDpiFormValues.js";
6
7
  /* empty css */
7
- import W from "../../_virtual/_plugin-vue_export-helper.js";
8
- const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular" }, U = { class: "dpiV3AutoCompleteWrap" }, j = { class: "CardTips_internal" }, F = { class: "CardTips_Part" }, L = { class: "firstRow" }, O = { class: "icon_title copy-small-semi-bold" }, K = { class: "TextButton_small" }, Z = { class: "secondRow" }, q = { class: "copy-small-regular" }, G = { class: "CardTips_Part" }, H = { class: "firstRow" }, J = { class: "icon_title copy-small-semi-bold" }, Q = { class: "TextButton_small" }, X = { class: "secondRow" }, Y = { class: "copy-small-regular" }, ee = { class: "input-container" }, te = {
8
+ import j from "../../_virtual/_plugin-vue_export-helper.js";
9
+ const L = { class: "dpiV3InnerComponentWrap" }, q = { class: "copy-large-regular" }, G = { class: "dpiV3AutoCompleteWrap" }, H = { class: "CardTips_internal" }, J = { class: "CardTips_Part" }, K = { class: "firstRow" }, Q = { class: "icon_title copy-small-semi-bold" }, X = { class: "TextButton_small" }, Y = { class: "secondRow" }, Z = { class: "copy-small-regular" }, ee = { class: "CardTips_Part" }, ae = { class: "firstRow" }, te = { class: "icon_title copy-small-semi-bold" }, se = { class: "TextButton_small" }, oe = { class: "secondRow" }, le = { class: "copy-small-regular" }, ie = { class: "input-container" }, ne = {
9
10
  key: 0,
10
11
  class: "dpiV3_errormsgWrapper"
11
- }, ae = { class: "copy-mini-regular" }, se = { class: "input-container" }, oe = {
12
+ }, re = { class: "copy-mini-regular" }, ce = { class: "input-container" }, de = {
12
13
  key: 0,
13
14
  class: "dpiV3_errormsgWrapper"
14
- }, le = { class: "copy-mini-regular" }, ne = { class: "input-container" }, ie = {
15
+ }, ue = { class: "copy-mini-regular" }, pe = { class: "input-container" }, fe = {
15
16
  key: 0,
16
17
  class: "dpiV3_errormsgWrapper"
17
- }, re = { class: "copy-mini-regular" }, de = { class: "copy-large-regular" }, ce = {
18
+ }, me = { class: "copy-mini-regular" }, ve = { class: "copy-large-regular" }, he = {
18
19
  key: 0,
19
20
  class: "form-error-message"
20
- }, k = "", ue = {
21
+ }, T = "", ge = {
21
22
  __name: "ContactPage",
22
23
  props: {
23
24
  context: Object
24
25
  },
25
- setup(C) {
26
- const g = C, { isEditMode: pe } = R(), P = [
27
- "Mobilitätsreferat der Landeshauptstadt München",
28
- "contact@example.com",
29
- "https://example.com"
30
- ], _ = h([
31
- "Mobilitätsreferat - Verkehrs- und Verhaltensdaten",
32
- "verkehrsdaten.mor@muenchen.de"
33
- ]), V = M(() => {
34
- var s, t;
35
- const e = (t = (s = S().appContext.config.globalProperties.$keycloak) == null ? void 0 : s.idTokenParsed) == null ? void 0 : t.contact;
26
+ setup(S) {
27
+ const { formValues: N } = U(), v = S, { isEditMode: R } = I(), _ = f(null), b = f(null), w = B(() => {
28
+ var e, t;
29
+ try {
30
+ const a = (t = (e = N.value.BasicInfos) == null ? void 0 : e["dct:publisher"]) == null ? void 0 : t[0];
31
+ if (a && a["foaf:name"] && a["foaf:mbox"])
32
+ return [
33
+ a["foaf:name"],
34
+ a["foaf:mbox"]
35
+ ];
36
+ } catch (a) {
37
+ console.warn("Could not load publisher data:", a);
38
+ }
39
+ return [
40
+ "",
41
+ "",
42
+ ""
43
+ ];
44
+ }), k = B(() => {
45
+ var t, a;
46
+ const e = (a = (t = F().appContext.config.globalProperties.$keycloak) == null ? void 0 : t.idTokenParsed) == null ? void 0 : a.contact;
36
47
  if (e) {
37
- const n = {
48
+ const i = {
38
49
  organization: e.organization
39
50
  };
40
- return e.email && (n.email = e.email), e.website && (n.website = `https://${e.website}`), n;
51
+ return e.email && (i.email = e.email), (e.phone || e.phoneNumber) && (i.phone = e.phone || e.phoneNumber), i;
41
52
  }
42
53
  return {};
43
- }), o = h({
54
+ }), o = f({
44
55
  1: {
45
56
  show: !1,
46
- message: "Bitte geben Sie einen gültigen Namen ein (mindestens 2 Zeichen)."
57
+ message: "Bitte geben Sie einen gültigen Organisationsnamen ein."
47
58
  },
48
59
  2: {
49
60
  show: !1,
@@ -54,8 +65,8 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
54
65
  message: "Bitte geben Sie eine gültige Telefonnummer ein."
55
66
  }
56
67
  });
57
- let p = h({ 1: !1, 2: !1, 3: !1 });
58
- const l = h([
68
+ let n = f({ 1: !1, 2: !1, 3: !1 });
69
+ const l = f([
59
70
  {
60
71
  isValid: "unset",
61
72
  "vcard:fn": "",
@@ -63,100 +74,137 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
63
74
  "vcard:hasTelephone": ""
64
75
  }
65
76
  ]);
66
- g.context.node.value.length === 0 && g.context.node.input(m(l)), I(() => {
77
+ R.value || v.context.node.input(l), v.context.node.value.length === 0 && v.context.node.input(m(l)), M(() => {
67
78
  try {
68
- k && k["foaf:name"] && k["foaf:mbox"];
79
+ T && T["foaf:name"] && T["foaf:mbox"];
69
80
  } catch (e) {
70
81
  console.warn("Could not load publisher data from context:", e);
71
82
  }
72
83
  });
73
- function E(e) {
84
+ function V(e) {
74
85
  return e.trim().length >= 2;
75
86
  }
76
- function T(e) {
87
+ function C(e) {
77
88
  return /^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e);
78
89
  }
79
- function z(e) {
80
- return e.trim() === "" ? !0 : e.trim().length >= 6;
90
+ function $(e) {
91
+ if (!e || e.trim() === "")
92
+ return !0;
93
+ const t = e.replace(/[\s\-().]/g, "");
94
+ if (!/^[+]?\d+$/.test(t))
95
+ return !1;
96
+ const a = t.replace(/\D/g, "");
97
+ return a.length >= 6 && a.length <= 15;
81
98
  }
82
- function u(e, s, t) {
83
- l.value = l.value.map((b) => s in b ? { ...b, [s]: e } : b);
84
- let n = !1;
85
- if (t === 3 && e.trim() === "")
86
- o.value[t].show = !1, p.value[t] = !0;
99
+ function y(e, t, a) {
100
+ let i = !1;
101
+ if (a === 3 && e.trim() === "")
102
+ o.value[a].show = !1, n.value[a] = !0;
87
103
  else if (e.trim() === "")
88
- o.value[t].show = !0, p.value[t] = !1;
104
+ o.value[a].show = !0, n.value[a] = !1;
89
105
  else {
90
- switch (s) {
106
+ switch (t) {
91
107
  case "vcard:fn":
92
- n = E(e);
108
+ i = V(e);
93
109
  break;
94
110
  case "vcard:hasEmail":
95
- n = T(e);
111
+ i = C(e);
96
112
  break;
97
113
  case "vcard:hasTelephone":
98
- n = z(e);
114
+ i = $(e);
99
115
  break;
100
116
  default:
101
- n = e.trim() !== "";
117
+ i = e.trim() !== "";
102
118
  }
103
- o.value[t].show = !n, p.value[t] = n;
119
+ o.value[a].show = !i, n.value[a] = i;
104
120
  }
105
- p.value[1] && p.value[2] ? l.value[0].isValid = !0 : l.value[0].isValid = !1, g.context.node.input(l.value);
121
+ n.value[1] && n.value[2] ? l.value[0].isValid = !0 : l.value[0].isValid = "unset";
106
122
  }
107
- function x() {
108
- u(P[0], "vcard:fn", 1), u(P[1], "vcard:hasEmail", 2);
123
+ function p(e, t, a) {
124
+ l.value = l.value.map((i) => t in i ? { ...i, [t]: e } : i), v.context.node.input(l.value), a === 2 ? (_.value && clearTimeout(_.value), _.value = setTimeout(() => {
125
+ y(e, t, a);
126
+ }, 800)) : a === 3 ? (b.value && clearTimeout(b.value), b.value = setTimeout(() => {
127
+ y(e, t, a);
128
+ }, 800)) : y(e, t, a);
109
129
  }
110
- function D() {
111
- u(_.value[0], "vcard:fn", 1), u(_.value[1], "vcard:hasEmail", 2);
130
+ function W() {
131
+ const e = k.value;
132
+ e.organization && p(e.organization, "vcard:fn", 1), e.email && p(e.email, "vcard:hasEmail", 2);
112
133
  }
113
- return (e, s) => (d(), r("div", N, [
114
- a("h4", null, i(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
115
- a("div", A, i(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
116
- a("div", U, [
117
- a("div", j, [
118
- a("div", F, [
119
- a("div", L, [
120
- a("div", O, i(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
121
- a("div", K, [
122
- c(B, {
134
+ function x() {
135
+ p(w.value[0], "vcard:fn", 1), p(w.value[1], "vcard:hasEmail", 2);
136
+ }
137
+ const A = () => {
138
+ const e = l.value[0];
139
+ if (e["vcard:fn"].trim() === "")
140
+ o.value[1].show = !0, n.value[1] = !1;
141
+ else {
142
+ const t = V(e["vcard:fn"]);
143
+ o.value[1].show = !t, n.value[1] = t;
144
+ }
145
+ if (e["vcard:hasEmail"].trim() === "")
146
+ o.value[2].show = !0, n.value[2] = !1;
147
+ else {
148
+ const t = C(e["vcard:hasEmail"]);
149
+ o.value[2].show = !t, n.value[2] = t;
150
+ }
151
+ if (e["vcard:hasTelephone"].trim() === "")
152
+ o.value[3].show = !1, n.value[3] = !0;
153
+ else {
154
+ const t = $(e["vcard:hasTelephone"]);
155
+ o.value[3].show = !t, n.value[3] = t;
156
+ }
157
+ n.value[1] && n.value[2] ? l.value[0].isValid = !0 : l.value[0].isValid = !1;
158
+ };
159
+ return O(() => l.value[0].isValid, (e) => {
160
+ e === !1 && A();
161
+ }), (e, t) => (d(), c("div", L, [
162
+ s("h4", null, r(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
163
+ s("div", q, r(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
164
+ s("div", G, [
165
+ s("div", H, [
166
+ s("div", J, [
167
+ s("div", K, [
168
+ s("div", Q, r(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
169
+ s("div", X, [
170
+ u(z, {
123
171
  "button-text": e.$t(
124
172
  "message.dataupload.datasets.dcat:contactPoint.useAccountButton"
125
173
  ),
126
174
  "icon-start": "DeleteBlue",
127
175
  "icon-name": "copy",
128
176
  class: "dpiV3_usedetailsButton",
129
- onClick: x
177
+ onClick: W
130
178
  }, null, 8, ["button-text"])
131
179
  ])
132
180
  ]),
133
- a("div", Z, [
134
- (d(!0), r(y, null, $(Object.values(V.value), (t) => (d(), r("span", q, i(t), 1))), 256))
181
+ s("div", Y, [
182
+ (d(!0), c(E, null, D(Object.values(k.value), (a) => (d(), c("span", Z, r(a), 1))), 256))
135
183
  ])
136
184
  ]),
137
- a("div", G, [
138
- a("div", H, [
139
- a("div", J, i(e.$t("message.metadata.publisher")), 1),
140
- a("div", Q, [
141
- c(B, {
185
+ s("div", ee, [
186
+ s("div", ae, [
187
+ s("div", te, r(e.$t("message.metadata.publisher")), 1),
188
+ s("div", se, [
189
+ u(z, {
142
190
  "button-text": e.$t(
143
191
  "message.dataupload.datasets.dcat:contactPoint.usePublisherButton"
144
192
  ),
145
193
  "icon-start": "true",
146
194
  "icon-name": "copy",
147
195
  class: "",
148
- onClick: D
196
+ onClick: x
149
197
  }, null, 8, ["button-text"])
150
198
  ])
151
199
  ]),
152
- a("div", X, [
153
- (d(!0), r(y, null, $(_.value, (t) => (d(), r("span", Y, i(t), 1))), 256))
200
+ s("div", oe, [
201
+ (d(!0), c(E, null, D(w.value, (a) => (d(), c("span", le, r(a), 1))), 256))
154
202
  ])
155
203
  ])
156
204
  ])
157
205
  ]),
158
- a("div", ee, [
159
- c(w, {
206
+ s("div", ie, [
207
+ u(P, {
160
208
  "model-value": l.value[0]["vcard:fn"],
161
209
  "add-on-text": !1,
162
210
  "date-picker": !1,
@@ -170,18 +218,18 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
170
218
  label: e.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
171
219
  "show-end-icon": !1,
172
220
  "show-error": o.value[1].show,
173
- "onUpdate:modelValue": s[0] || (s[0] = (t) => u(t, "vcard:fn", 1))
221
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => p(a, "vcard:fn", 1))
174
222
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
175
- o.value[1].show ? (d(), r("div", te, [
176
- c(m(v), {
223
+ o.value[1].show ? (d(), c("div", ne, [
224
+ u(m(g), {
177
225
  size: 16,
178
226
  weight: "fill"
179
227
  }),
180
- a("span", ae, i(o.value[1].message), 1)
181
- ])) : f("", !0)
228
+ s("span", re, r(o.value[1].message), 1)
229
+ ])) : h("", !0)
182
230
  ]),
183
- a("div", se, [
184
- c(w, {
231
+ s("div", ce, [
232
+ u(P, {
185
233
  "model-value": l.value[0]["vcard:hasEmail"],
186
234
  "add-on-text": !1,
187
235
  "date-picker": !1,
@@ -195,18 +243,18 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
195
243
  label: e.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
196
244
  "show-end-icon": !1,
197
245
  "show-error": o.value[2].show,
198
- "onUpdate:modelValue": s[1] || (s[1] = (t) => u(t, "vcard:hasEmail", 2))
246
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => p(a, "vcard:hasEmail", 2))
199
247
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
200
- o.value[2].show ? (d(), r("div", oe, [
201
- c(m(v), {
248
+ o.value[2].show ? (d(), c("div", de, [
249
+ u(m(g), {
202
250
  size: 16,
203
251
  weight: "fill"
204
252
  }),
205
- a("span", le, i(o.value[2].message), 1)
206
- ])) : f("", !0)
253
+ s("span", ue, r(o.value[2].message), 1)
254
+ ])) : h("", !0)
207
255
  ]),
208
- a("div", ne, [
209
- c(w, {
256
+ s("div", pe, [
257
+ u(P, {
210
258
  "model-value": l.value[0]["vcard:hasTelephone"],
211
259
  "add-on-text": !1,
212
260
  "date-picker": !1,
@@ -220,27 +268,27 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
220
268
  label: e.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
221
269
  "show-end-icon": !1,
222
270
  "show-error": o.value[3].show,
223
- "onUpdate:modelValue": s[2] || (s[2] = (t) => u(t, "vcard:hasTelephone", 3))
271
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => p(a, "vcard:hasTelephone", 3))
224
272
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
225
- o.value[3].show ? (d(), r("div", ie, [
226
- c(m(v), {
273
+ o.value[3].show ? (d(), c("div", fe, [
274
+ u(m(g), {
227
275
  size: 16,
228
276
  weight: "fill"
229
277
  }),
230
- a("span", re, i(o.value[3].message), 1)
231
- ])) : f("", !0)
278
+ s("span", me, r(o.value[3].message), 1)
279
+ ])) : h("", !0)
232
280
  ]),
233
- a("div", de, i(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
234
- l.value.find((t) => t.isValid === !1) ? (d(), r("div", ce, [
235
- c(m(v), {
281
+ s("div", ve, r(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
282
+ l.value.find((a) => a.isValid === !1) ? (d(), c("div", he, [
283
+ u(m(g), {
236
284
  size: 16,
237
285
  weight: "fill"
238
286
  }),
239
- s[3] || (s[3] = a("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
240
- ])) : f("", !0)
287
+ t[3] || (t[3] = s("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
288
+ ])) : h("", !0)
241
289
  ]));
242
290
  }
243
- }, we = /* @__PURE__ */ W(ue, [["__scopeId", "data-v-2c2768bc"]]);
291
+ }, Ce = /* @__PURE__ */ j(ge, [["__scopeId", "data-v-071ac638"]]);
244
292
  export {
245
- we as default
293
+ Ce as default
246
294
  };
@@ -1,60 +1,60 @@
1
- import { computed as g, ref as l, getCurrentInstance as h, onMounted as x, createElementBlock as o, openBlock as n, createElementVNode as r, createCommentVNode as y, Fragment as V, renderList as C, unref as d, createBlock as I, createVNode as k } from "vue";
2
- import D from "../HappyFlowComponents/ui/Chip.vue.js";
1
+ import { computed as g, ref as s, getCurrentInstance as h, onMounted as x, createElementBlock as o, openBlock as r, createElementVNode as l, createCommentVNode as y, Fragment as V, renderList as C, unref as d, createBlock as D, createVNode as I } from "vue";
2
+ import k from "../HappyFlowComponents/ui/Chip.vue.js";
3
3
  import { getDatasetCategories as E } from "../HappyFlowComponents/services/dpiV3_apis.js";
4
- import { PhWarning as z } from "@phosphor-icons/vue";
4
+ import { PhWarning as P } from "@phosphor-icons/vue";
5
5
  /* empty css */
6
- import U from "../../_virtual/_plugin-vue_export-helper.js";
7
- import { useDpiContext as w } from "../composables/useDpiContext.js";
8
- const B = { class: "dpiV3_findabilityWrap" }, P = { class: "dpiV3_findabilityThemesWrap" }, S = {
6
+ import z from "../../_virtual/_plugin-vue_export-helper.js";
7
+ import { useDpiContext as U } from "../composables/useDpiContext.js";
8
+ const w = { class: "dpiV3_findabilityWrap" }, B = { class: "dpiV3_findabilityThemesWrap" }, R = {
9
9
  key: 0,
10
10
  class: "dpiV3_errormsgWrapper"
11
- }, W = {
11
+ }, S = {
12
12
  __name: "DiscoverabilityPage",
13
13
  props: {
14
14
  context: Object
15
15
  },
16
16
  setup(u) {
17
- const c = w(), f = g(() => {
18
- var t;
19
- return !!((t = c.value.edit) != null && t.enabled);
17
+ const c = U(), f = g(() => {
18
+ var e;
19
+ return !!((e = c.value.edit) != null && e.enabled);
20
20
  });
21
- let s = l([]), m = h().appContext.app.config.globalProperties.$env, i = l([{ isValid: "unset" }]);
22
- l(["this is a secret"]);
21
+ let n = s([]), v = h().appContext.app.config.globalProperties.$env, i = s([{ isValid: "unset" }]);
22
+ s(["this is a secret"]);
23
23
  const p = u;
24
24
  f.value || p.context.node.input(i);
25
- const v = async () => {
25
+ const m = async () => {
26
26
  try {
27
- s.value = await E(m.api.baseUrl), s.value.sort((t, a) => t.pref_label.de.localeCompare(a.pref_label.de));
28
- } catch (t) {
29
- console.log(t);
27
+ n.value = await E(v.api.baseUrl), n.value = n.value.filter((e) => e.id !== "OP_DATPRO"), n.value.sort((e, a) => e.pref_label.de.localeCompare(a.pref_label.de));
28
+ } catch (e) {
29
+ console.log(e);
30
30
  }
31
- }, _ = (t) => {
32
- i.value.find((e) => e.id === t.id) ? i.value = i.value.filter((e) => e.id !== t.id) : i.value.push({ id: t.id, uri: t.resource, label: t.pref_label.de }), i.value.length > 1 ? i.value.find((e) => e.isValid = !0) : i.value.find((e) => e.isValid = !1), p.context.node.input(i);
31
+ }, _ = (e) => {
32
+ i.value.find((t) => t.id === e.id) ? i.value = i.value.filter((t) => t.id !== e.id) : i.value.push({ id: e.id, uri: e.resource, label: e.pref_label.de }), i.value.length > 1 ? i.value.find((t) => t.isValid = !0) : i.value.find((t) => t.isValid = !1), p.context.node.input(i);
33
33
  };
34
34
  return x(() => {
35
- v();
36
- }), (t, a) => (n(), o("div", B, [
37
- a[1] || (a[1] = r("h4", { class: "dpiV3_title" }, "Machen Sie Ihren Datensatz leicht auffindbar", -1)),
38
- a[2] || (a[2] = r("span", null, "Um sicherzustellen, dass Ihr Datensatz für andere leicht zu finden ist, wählen Sie die relevanten Kategorien aus.", -1)),
39
- r("div", P, [
40
- (n(!0), o(V, null, C(d(s), (e, b) => (n(), I(D, {
35
+ m();
36
+ }), (e, a) => (r(), o("div", w, [
37
+ a[1] || (a[1] = l("h4", { class: "dpiV3_title" }, "Machen Sie Ihren Datensatz leicht auffindbar", -1)),
38
+ a[2] || (a[2] = l("span", null, "Um sicherzustellen, dass Ihr Datensatz für andere leicht zu finden ist, wählen Sie die relevanten Kategorien aus.", -1)),
39
+ l("div", B, [
40
+ (r(!0), o(V, null, C(d(n), (t, b) => (r(), D(k, {
41
41
  key: b,
42
- text: e.pref_label.de,
43
- data: { "@value": e.value, URI: e.URI },
42
+ text: t.pref_label.de,
43
+ data: { "@value": t.value, URI: t.URI },
44
44
  setup: { "@type": "select", "@inTable": !1, "@findability": !0 },
45
- onClick: (M) => _(e)
45
+ onClick: (T) => _(t)
46
46
  }, null, 8, ["text", "data", "onClick"]))), 128))
47
47
  ]),
48
- d(i).find((e) => e.isValid === !1) ? (n(), o("div", S, [
49
- k(d(z), {
48
+ d(i).find((t) => t.isValid === !1) ? (r(), o("div", R, [
49
+ I(d(P), {
50
50
  size: 16,
51
51
  weight: "fill"
52
52
  }),
53
- a[0] || (a[0] = r("span", { class: "copy-mini-regular" }, "Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren.", -1))
53
+ a[0] || (a[0] = l("span", { class: "copy-mini-regular" }, "Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren.", -1))
54
54
  ])) : y("", !0)
55
55
  ]));
56
56
  }
57
- }, j = /* @__PURE__ */ U(W, [["__scopeId", "data-v-35202ed2"]]);
57
+ }, $ = /* @__PURE__ */ z(S, [["__scopeId", "data-v-6d18d828"]]);
58
58
  export {
59
- j as default
59
+ $ as default
60
60
  };