@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,6 +1,9 @@
1
- import { ref as u, watch as r, createBlock as p, openBlock as f } from "vue";
2
- import g from "../InputField.vue.js";
3
- const I = {
1
+ import { ref as c, onMounted as m, getCurrentInstance as h, watch as v, createBlock as b, openBlock as R, unref as u } from "vue";
2
+ import { getAccessRights as I } from "../../services/dpiV3_apis.js";
3
+ import V from "../Dropdown.vue.js";
4
+ import { useI18n as w } from "vue-i18n";
5
+ import { useFormValues as F } from "../../../composables/useDpiFormValues.js";
6
+ const D = {
4
7
  __name: "AccessRightsV3",
5
8
  props: {
6
9
  distributionId: { type: Number, required: !1 },
@@ -8,34 +11,67 @@ const I = {
8
11
  accessRightsProp: { type: String, default: "" }
9
12
  },
10
13
  emits: ["addAccessRights", "deleteButtonClicked"],
11
- setup(n, { emit: d }) {
12
- const t = n, s = u(t.accessRightsProp), o = d, a = (l, e) => {
13
- o("addAccessRights", l.target.value, t.distributionId);
14
- };
15
- r(() => t.accessRightsProp, (l) => {
16
- s.value = l;
14
+ setup(n, { emit: p }) {
15
+ const { t: d } = w(), { formValues: y } = F(), s = c([]);
16
+ m(async () => {
17
+ const t = h().appContext.app.config.globalProperties.$env;
18
+ try {
19
+ const e = await I(t.api.baseUrl);
20
+ console.log(e), s.value = e.map((a) => ({
21
+ "@value": a.pref_label.de,
22
+ label: a.pref_label.de,
23
+ uri: a.resource
24
+ }));
25
+ } catch (e) {
26
+ console.error("Failed to load planned availability data", e);
27
+ }
17
28
  });
18
- const c = () => {
19
- console.log("delete clicked"), o("deleteButtonClicked", t.distributionId);
29
+ const o = n, i = c(o.accessRightsProp), r = p, f = (l, t) => {
30
+ let e = {
31
+ uri: s.value.find((a) => a["@value"] === l).uri || "",
32
+ label: s.value.find((a) => a["@value"] === l).label || ""
33
+ };
34
+ r("addAccessRights", e, o.distributionId);
35
+ };
36
+ v(
37
+ () => o.accessRightsProp,
38
+ (l) => {
39
+ i.value = l;
40
+ }
41
+ );
42
+ const g = () => {
43
+ console.log("delete clicked"), r("deleteButtonClicked", o.distributionId);
20
44
  };
21
- return (l, e) => (f(), p(g, {
22
- onInput: e[0] || (e[0] = (i) => a(i)),
23
- modelValue: s.value,
24
- "onUpdate:modelValue": e[1] || (e[1] = (i) => s.value = i),
25
- addOnText: !1,
26
- datePicker: !1,
27
- infoIcon: !1,
28
- placeholder: "Bitte Grad der Zugänglichkeit eingeben...",
29
- preIcon: !1,
30
- inputFieldSize: "large",
31
- initialHintText: !1,
32
- label: "Grad der Zugänglichkeit (URL)",
33
- showEndIcon: !1,
34
- defaultInput: !n.showDeleteButton,
35
- onDeleteButtonClicked: c
36
- }, null, 8, ["modelValue", "defaultInput"]));
45
+ return (l, t) => (R(), b(V, {
46
+ "onUpdate:modelValue": [
47
+ t[0] || (t[0] = (e) => f(e)),
48
+ t[1] || (t[1] = (e) => i.value = e)
49
+ ],
50
+ dropdownWidth: "large",
51
+ type: "inputField",
52
+ modelValue: i.value,
53
+ inputFieldProps: {
54
+ addOnText: !1,
55
+ initialHintText: !1,
56
+ datePicker: !1,
57
+ infoIcon: !1,
58
+ preIcon: !1,
59
+ label: u(d)(
60
+ "message.dataupload.datasets.dcat:distribution.advanced.dct:accessRights"
61
+ ) + " (optional)",
62
+ dropdown_dpiV3: !0,
63
+ placeholder: u(d)(
64
+ "message.dataupload.datasets.dcat:distribution.advanced.dct:accessRights"
65
+ ) + " hinzufügen",
66
+ inputFieldSize: "large",
67
+ modelValue: i.value,
68
+ defaultInput: !n.showDeleteButton
69
+ },
70
+ data: s.value,
71
+ onDeleteDropdownField: g
72
+ }, null, 8, ["modelValue", "inputFieldProps", "data"]));
37
73
  }
38
74
  };
39
75
  export {
40
- I as default
76
+ D as default
41
77
  };
@@ -1,17 +1,21 @@
1
- import { ref as m, onMounted as C, createElementBlock as c, openBlock as s, normalizeClass as S, createCommentVNode as h, createBlock as U, Fragment as k, renderList as L, createElementVNode as y, createVNode as u, unref as d, isRef as T } from "vue";
2
- import D from "../TextAreaV3.vue.js";
3
- import b from "../ButtonV3.vue.js";
4
- import R from "../ModalSimpleV3.vue.js";
5
- import I from "../InputField.vue.js";
1
+ import { ref as g, reactive as F, onMounted as T, createElementBlock as c, openBlock as r, normalizeClass as L, createCommentVNode as h, createBlock as z, Fragment as M, renderList as E, createElementVNode as w, createVNode as u, unref as a, toDisplayString as P, isRef as $ } from "vue";
2
+ import N from "../TextAreaV3.vue.js";
3
+ import x from "../ButtonV3.vue.js";
4
+ import q from "../ModalSimpleV3.vue.js";
5
+ import S from "../InputField.vue.js";
6
+ import { PhWarning as W } from "@phosphor-icons/vue";
6
7
  /* empty css */
7
- import M from "../../../../_virtual/_plugin-vue_export-helper.js";
8
- const z = { class: "dpiV3_LinkAndMetadata" }, E = {
8
+ import H from "../../../../_virtual/_plugin-vue_export-helper.js";
9
+ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
9
10
  key: 0,
11
+ class: "dpiV3_errorMessage"
12
+ }, j = { class: "copy-mini-regular" }, G = {
13
+ key: 1,
10
14
  class: "copy-mini-regular dpiV3_text_error"
11
- }, N = {
15
+ }, J = {
12
16
  key: 0,
13
17
  class: "dpiV3_tempAddMore"
14
- }, q = {
18
+ }, K = {
15
19
  __name: "AccessServiceV3",
16
20
  props: {
17
21
  accessServices: { type: Array, required: !0 },
@@ -20,12 +24,12 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
20
24
  showDeleteButton: { type: Boolean, required: !1, default: !1 }
21
25
  },
22
26
  emits: ["update"],
23
- setup(a, { emit: x }) {
24
- let l = m({});
25
- const i = a, p = x, g = m(!1), V = m(null);
26
- let r = m(!1);
27
- C(() => {
28
- console.log("Component Mounted: accessServices received for distributionId:", i.distributionId), console.log("accessServices:", i.accessServices), i.accessServices.length === 0 && (console.log("No accessServices found, initializing first service."), p("update", [
27
+ setup(d, { expose: _, emit: A }) {
28
+ let s = g({});
29
+ const o = d, m = A, R = g(!1), V = g(null), l = F({});
30
+ let p = g(!1);
31
+ T(() => {
32
+ console.log("Component Mounted: accessServices received for distributionId:", o.distributionId), console.log("accessServices:", o.accessServices), o.accessServices.length === 0 && (console.log("No accessServices found, initializing first service."), m("update", [
29
33
  {
30
34
  id: 1,
31
35
  "dcat:downloadURL": "",
@@ -34,54 +38,75 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
34
38
  }
35
39
  ]));
36
40
  });
37
- const A = (n) => {
38
- switch (n) {
41
+ const f = (t) => {
42
+ if (!t || t.trim() === "") return !1;
43
+ const i = t.trim();
44
+ return /\.[a-zA-Z]{2,}$/.test(i);
45
+ }, b = (t) => {
46
+ const i = t["dct:title"] && t["dct:title"].trim() !== "", e = t["dct:description"] && t["dct:description"].trim() !== "";
47
+ return i || e;
48
+ }, k = (t) => {
49
+ const i = o.accessServices.find((e) => e.id === t);
50
+ if (i) {
51
+ const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
52
+ b(i) ? e && f(e) ? l[t] = null : l[t] = "Bitte geben Sie eine gültige URL ein." : e && !f(e) ? l[t] = "Bitte geben Sie eine gültige URL ein." : l[t] = null;
53
+ }
54
+ }, B = () => {
55
+ let t = !1;
56
+ return o.accessServices.forEach((i) => {
57
+ const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
58
+ b(i) ? e ? f(e) || (l[i.id] = "Bitte geben Sie eine gültige URL ein.", t = !0) : (l[i.id] = "Please enter a valid URL.", t = !0) : e && !f(e) && (l[i.id] = "Bitte geben Sie eine gültige URL ein.", t = !0);
59
+ }), t;
60
+ }, C = (t) => {
61
+ switch (t) {
39
62
  case "delete":
40
- _();
63
+ y();
41
64
  break;
42
65
  }
43
- }, B = () => {
44
- const o = {
45
- id: (i.accessServices.length ? Math.max(...i.accessServices.map((e) => e.id)) : 0) + 1,
66
+ }, D = () => {
67
+ if (B())
68
+ return;
69
+ const i = {
70
+ id: (o.accessServices.length ? Math.max(...o.accessServices.map((e) => e.id)) : 0) + 1,
46
71
  "dcat:downloadURL": "",
47
72
  "dct:title": "",
48
73
  "dct:description": ""
49
74
  };
50
- p("update", [...i.accessServices, o]);
51
- }, f = (n, o, e) => {
52
- const t = i.accessServices.map(
53
- (v) => v.id === e ? { ...v, [o]: n.target.value } : v
75
+ m("update", [...o.accessServices, i]);
76
+ }, U = (t, i, e) => {
77
+ const n = o.accessServices.map(
78
+ (v) => v.id === e ? { ...v, [i]: t.target.value } : v
54
79
  );
55
- p("update", t);
56
- }, w = (n) => {
57
- l.value = {
80
+ m("update", n), setTimeout(() => {
81
+ k(e);
82
+ }, 0);
83
+ }, I = (t) => {
84
+ s.value = {
58
85
  button: "Löschen",
59
86
  header: "Datenservice löschen",
60
87
  text: "Sind Sie sicher, dass Sie den Service löschen wollen?",
61
88
  action: "delete",
62
- optionalString_1: n["dct:title"],
63
- optionalString_2: n["dcat:downloadURL"]
64
- }, r.value = !0, V.value = n;
65
- }, _ = () => {
66
- if (i.accessServices.length === 1) {
67
- g.value = !0;
68
- return;
69
- }
70
- const n = i.accessServices.filter(
71
- (o) => o.id !== V.value.id
89
+ optionalString_1: t["dct:title"],
90
+ optionalString_2: t["dcat:downloadURL"]
91
+ }, p.value = !0, V.value = t;
92
+ }, y = () => {
93
+ const t = o.accessServices.filter(
94
+ (i) => i.id !== V.value.id
72
95
  );
73
- p("update", n);
96
+ delete l[V.value.id], m("update", t);
74
97
  };
75
- return (n, o) => (s(), c("div", {
76
- class: S(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: a.asCard }])
98
+ return _({
99
+ validateAllItems: B
100
+ }), (t, i) => (r(), c("div", {
101
+ class: L(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: d.asCard }])
77
102
  }, [
78
- (s(!0), c(k, null, L(a.accessServices, (e) => (s(), c("div", {
103
+ (r(!0), c(M, null, E(d.accessServices, (e) => (r(), c("div", {
79
104
  key: e.id,
80
- class: S(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: a.asCard }])
105
+ class: L(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: d.asCard }])
81
106
  }, [
82
- y("div", z, [
83
- u(I, {
84
- onInput: (t) => f(t, "dcat:downloadURL", e.id),
107
+ w("div", O, [
108
+ u(S, {
109
+ onInput: (n) => U(n, "dcat:downloadURL", e.id),
85
110
  addOnText: !1,
86
111
  datePicker: !1,
87
112
  infoIcon: !1,
@@ -92,13 +117,21 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
92
117
  label: "URL",
93
118
  showEndIcon: !1,
94
119
  modelValue: e["dcat:downloadURL"],
95
- "onUpdate:modelValue": (t) => e["dcat:downloadURL"] = t
120
+ "onUpdate:modelValue": (n) => e["dcat:downloadURL"] = n
96
121
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
97
- u(I, {
98
- onInput: (t) => f(t, "dct:title", e.id),
122
+ l[e.id] ? (r(), c("div", Z, [
123
+ u(a(W), {
124
+ size: 16,
125
+ weight: "fill"
126
+ }),
127
+ w("span", j, P(l[e.id]), 1)
128
+ ])) : h("", !0),
129
+ u(S, {
130
+ onInput: (n) => U(n, "dct:title", e.id),
99
131
  addOnText: !1,
100
132
  datePicker: !1,
101
133
  infoIcon: !1,
134
+ onDeleteButtonClicked: (n) => e["dct:title"] = "",
102
135
  placeholder: "Bitte Titel eingeben...",
103
136
  preIcon: !1,
104
137
  inputFieldSize: "large",
@@ -106,52 +139,53 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
106
139
  label: "Titel (optional)",
107
140
  showEndIcon: !1,
108
141
  modelValue: e["dct:title"],
109
- "onUpdate:modelValue": (t) => e["dct:title"] = t,
110
- defaultInput: !a.showDeleteButton
111
- }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "defaultInput"]),
112
- u(D, {
113
- onInput: (t) => f(t, "dct:description", e.id),
142
+ "onUpdate:modelValue": (n) => e["dct:title"] = n,
143
+ defaultInput: !d.showDeleteButton
144
+ }, null, 8, ["onInput", "onDeleteButtonClicked", "modelValue", "onUpdate:modelValue", "defaultInput"]),
145
+ u(N, {
146
+ onInput: (n) => U(n, "dct:description", e.id),
114
147
  hint: !1,
148
+ onDeleteClicked: (n) => e["dct:description"] = "",
115
149
  label: "Beschreibung (optional)",
116
150
  placeholder: "Bitte Beschreibung eingeben...",
117
151
  modelValue: e["dct:description"],
118
- "onUpdate:modelValue": (t) => e["dct:description"] = t,
119
- showDeleteButton: a.showDeleteButton
120
- }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showDeleteButton"]),
121
- g.value && a.accessServices.length === 1 ? (s(), c("p", E, " Mindestens eine URL muss vorhanden sein. ")) : h("", !0)
152
+ "onUpdate:modelValue": (n) => e["dct:description"] = n,
153
+ showDeleteButton: d.showDeleteButton
154
+ }, null, 8, ["onInput", "onDeleteClicked", "modelValue", "onUpdate:modelValue", "showDeleteButton"]),
155
+ R.value && d.accessServices.length === 1 ? (r(), c("p", G, " Mindestens eine URL muss vorhanden sein. ")) : h("", !0)
122
156
  ]),
123
- u(b, {
157
+ u(x, {
124
158
  class: "dpiV3_tempAddMore",
125
159
  buttonText: "Löschen",
126
160
  size: "small",
127
161
  iconStart: "trash",
128
162
  variant: "tertiary",
129
- onClick: (t) => w(e)
163
+ onClick: (n) => I(e)
130
164
  }, null, 8, ["onClick"])
131
165
  ], 2))), 128)),
132
- a.asCard ? h("", !0) : (s(), c("div", N, [
133
- u(b, {
166
+ d.asCard ? h("", !0) : (r(), c("div", J, [
167
+ u(x, {
134
168
  buttonText: "Weiteren Service hinzufügen",
135
169
  size: "small",
136
170
  iconStart: "plus",
137
171
  variant: "tertiary",
138
- onClick: B
172
+ onClick: D
139
173
  })
140
174
  ])),
141
- d(r) ? (s(), U(R, {
175
+ a(p) ? (r(), z(q, {
142
176
  key: 1,
143
- buttons: d(l).button,
144
- headerText: d(l).header,
145
- text: d(l).text,
146
- onClose: o[0] || (o[0] = (e) => T(r) ? r.value = !1 : r = !1),
147
- action: d(l).action,
148
- onActionHandling: o[1] || (o[1] = (e) => A(e)),
149
- optionalString_1: d(l).optionalString_1,
150
- optionalString_2: d(l).optionalString_2
177
+ buttons: a(s).button,
178
+ headerText: a(s).header,
179
+ text: a(s).text,
180
+ onClose: i[0] || (i[0] = (e) => $(p) ? p.value = !1 : p = !1),
181
+ action: a(s).action,
182
+ onActionHandling: i[1] || (i[1] = (e) => C(e)),
183
+ optionalString_1: a(s).optionalString_1,
184
+ optionalString_2: a(s).optionalString_2
151
185
  }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : h("", !0)
152
186
  ], 2));
153
187
  }
154
- }, G = /* @__PURE__ */ M(q, [["__scopeId", "data-v-5b5b9169"]]);
188
+ }, oe = /* @__PURE__ */ H(K, [["__scopeId", "data-v-c7145fc8"]]);
155
189
  export {
156
- G as default
190
+ oe as default
157
191
  };
@@ -16,43 +16,38 @@ const h = {
16
16
  const a = m().appContext.app.config.globalProperties.$env;
17
17
  try {
18
18
  const e = await I(a.api.baseUrl);
19
- i.value = e.map((n) => ({
20
- "@value": n.value,
21
- label: n.label,
22
- uri: n.uri
23
- }));
19
+ console.log(e), i.value = e.map((t) => ({
20
+ "@value": t.label,
21
+ label: t.label,
22
+ uri: t.uri
23
+ })), console.log(i.value);
24
24
  } catch (e) {
25
25
  console.error("Failed to load planned availability data", e);
26
26
  }
27
27
  });
28
- const l = d, i = u([]), o = u(l.availabilityText);
28
+ const o = d, i = u([]), n = u(o.availabilityText);
29
29
  i.value.uri;
30
- const s = c, v = (t) => {
31
- let a = i.value.find((e) => e["@value"] === t).uri || "";
32
- s(
33
- "addAvailability",
34
- t,
35
- l.distributionId,
36
- a
37
- );
30
+ const s = c, v = (l) => {
31
+ let a = i.value.find((t) => t["@value"] === l).uri || "", e = i.value.find((t) => t["@value"] === l).label || "";
32
+ console.log(e), s("addAvailability", l, o.distributionId, a, e);
38
33
  };
39
34
  y(
40
- () => l.availabilityText,
41
- (t) => {
42
- o.value = t;
35
+ () => o.availabilityText,
36
+ (l) => {
37
+ n.value = l;
43
38
  }
44
39
  );
45
40
  const b = () => {
46
- s("deleteButtonClicked", l.distributionId);
41
+ s("deleteButtonClicked", o.distributionId);
47
42
  };
48
- return (t, a) => (x(), g(w, {
43
+ return (l, a) => (x(), g(w, {
49
44
  "onUpdate:modelValue": [
50
45
  a[0] || (a[0] = (e) => v(e)),
51
- a[1] || (a[1] = (e) => o.value = e)
46
+ a[1] || (a[1] = (e) => n.value = e)
52
47
  ],
53
48
  dropdownWidth: "large",
54
49
  type: "inputField",
55
- modelValue: o.value,
50
+ modelValue: n.value,
56
51
  inputFieldProps: {
57
52
  addOnText: !1,
58
53
  initialHintText: !1,
@@ -67,7 +62,7 @@ const h = {
67
62
  "message.dataupload.datasets.dcat:distribution.advanced.availability-placeholder"
68
63
  ),
69
64
  inputFieldSize: "large",
70
- modelValue: o.value,
65
+ modelValue: n.value,
71
66
  defaultInput: !d.showDeleteButton
72
67
  },
73
68
  data: i.value,