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

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 +389 -760
  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,1147 +1,1264 @@
1
- import { ref as p, onUnmounted as Ge, onMounted as Ke, getCurrentInstance as Ze, computed as qe, watch as Qe, createElementBlock as r, openBlock as c, Fragment as me, createElementVNode as m, createBlock as fe, createCommentVNode as u, toDisplayString as V, renderList as Xe, createVNode as l, withDirectives as Ye, vShow as et, unref as tt } from "vue";
1
+ import { ref as v, computed as $e, toRef as gt, onUnmounted as yt, onMounted as kt, getCurrentInstance as xt, watch as wt, createElementBlock as f, openBlock as u, Fragment as ee, createElementVNode as m, createBlock as te, createCommentVNode as p, toDisplayString as M, renderList as Ee, unref as L, createVNode as c, withDirectives as bt, vShow as _t, normalizeClass as Dt } from "vue";
2
2
  import "@formkit/core";
3
- import { PhWarning as at } from "@phosphor-icons/vue";
4
- import { useI18n as ot } from "vue-i18n";
5
- import { useStore as it } from "vuex";
6
- import { useEditModeInfo as st } from "../composables/useDpiEditMode.js";
7
- import { useFormValues as nt } from "../composables/useDpiFormValues.js";
8
- import A from "../config/dcatapdeHappyFlow/page-content-config.js";
9
- import { getFileTypes as dt, getChecksumAlgorithms as lt, getPlannedAvailability as ct, getLanguages as rt } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
- import { eventBus as pe } from "../HappyFlowComponents/services/eventBus.js";
11
- import O from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
- import ut from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
- import ve from "../HappyFlowComponents/ui/InputField.vue.js";
14
- import mt from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
- import ft from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
- import pt from "../HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js";
17
- import vt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
18
- import ht from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
19
- import gt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
20
- import yt from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
21
- import xt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
22
- import bt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
23
- import kt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
24
- import Dt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
25
- import j from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
26
- import _t from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
27
- import Tt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
28
- import wt from "../HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js";
29
- import It from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
30
- import Vt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
31
- import At from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
32
- import C from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
3
+ import { PhWarning as O } from "@phosphor-icons/vue";
4
+ import { useI18n as Tt } from "vue-i18n";
5
+ import { useStore as It } from "vuex";
6
+ import { useEditModeInfo as Vt } from "../composables/useDpiEditMode.js";
7
+ import { useFormValues as Lt } from "../composables/useDpiFormValues.js";
8
+ import W from "../config/dcatapdeHappyFlow/page-content-config.js";
9
+ import { getLicenses as Ut, getFileTypes as Rt, getFormatTypes as Ct, getChecksumAlgorithms as St, getPlannedAvailability as At, getLanguages as Ft } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
+ import { eventBus as Me } from "../HappyFlowComponents/services/eventBus.js";
11
+ import j from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
+ import $t from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
+ import ae from "../HappyFlowComponents/ui/InputField.vue.js";
14
+ import Et from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
+ import Mt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
+ import Bt from "../HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js";
17
+ import zt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
18
+ import Pt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
19
+ import Nt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
20
+ import Ot from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
21
+ import Wt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
22
+ import jt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
23
+ import Ht from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
24
+ import Gt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
25
+ import oe from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
26
+ import Jt from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
27
+ import Kt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
28
+ import qt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
29
+ import Zt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
30
+ import Qt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
31
+ import S from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
32
+ import "zod/v4/locales";
33
33
  /* empty css */
34
- import Ct from "../../_virtual/_plugin-vue_export-helper.js";
35
- const Lt = { class: "dpiV3InnerComponentWrap" }, $t = { key: 0 }, St = {
34
+ import Xt from "../../_virtual/_plugin-vue_export-helper.js";
35
+ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
36
36
  key: 1,
37
37
  class: "copy-large-regular"
38
- }, Rt = { class: "dpiV3_LinkAndMetadata" }, Ft = {
38
+ }, aa = { class: "dpiV3_LinkAndMetadata input-container" }, oa = { style: { position: "relative", width: "100%" } }, sa = {
39
39
  key: 0,
40
40
  class: "validation-error"
41
- }, Ut = {
41
+ }, ia = { class: "copy-mini-regular" }, la = { style: { position: "relative", width: "100%" } }, na = {
42
+ key: 0,
43
+ class: "validation-error"
44
+ }, da = { class: "copy-mini-regular" }, ca = {
45
+ key: 0,
46
+ class: "dpiV3_DocumentationsInDistr"
47
+ }, ra = { class: "dpiV3_TitleDelete" }, ua = { class: "dpiV3_documentationContents" }, ma = { class: "dpiV3_Documentation" }, fa = {
42
48
  key: 1,
49
+ class: "dpiV3_DocumentationsInDistr"
50
+ }, pa = { class: "dpiV3_TitleDelete" }, va = { class: "dpiV3_documentationContents" }, ha = { class: "dpiV3_Documentation" }, ga = { class: "dpiV3_TitleDelete" }, ya = { key: 0 }, ka = { style: { position: "relative", width: "100%", "margin-bottom": "10px" } }, xa = {
51
+ key: 0,
43
52
  class: "validation-error"
44
- }, Bt = {
53
+ }, wa = { class: "copy-mini-regular" }, ba = {
54
+ key: 0,
55
+ class: "dpiV3_tempAddMore"
56
+ }, _a = {
45
57
  key: 2,
46
- class: "dpiV3_DocumentationsInDistr"
47
- }, Et = { class: "dpiV3_TitleDelete" }, Mt = { class: "dpiV3_documentationContents" }, zt = { class: "dpiV3_Documentation" }, Nt = {
58
+ class: "dpiV3_modified dpiV3_label"
59
+ }, Da = {
48
60
  key: 3,
49
- class: "dpiV3_DocumentationsInDistr"
50
- }, Pt = { class: "dpiV3_TitleDelete" }, Ot = { class: "dpiV3_documentationContents" }, jt = { class: "dpiV3_Documentation" }, Jt = {
61
+ class: "dpiV3_modified dpiV3_label"
62
+ }, Ta = { class: "dpiV3_modified dpiV3_label" }, Ia = {
51
63
  key: 4,
52
64
  class: "dpiV3_modified dpiV3_label"
53
- }, Wt = {
65
+ }, Va = {
54
66
  key: 5,
55
67
  class: "dpiV3_modified dpiV3_label"
56
- }, Ht = { class: "dpiV3_modified dpiV3_label" }, Gt = {
68
+ }, La = {
57
69
  key: 6,
58
70
  class: "dpiV3_modified dpiV3_label"
59
- }, Kt = {
71
+ }, Ua = {
60
72
  key: 7,
61
73
  class: "dpiV3_modified dpiV3_label"
62
- }, Zt = {
74
+ }, Ra = {
75
+ class: "dpiV3_TitleDelete",
76
+ style: { "margin-bottom": "var(--Spacing-1, 4px)" }
77
+ }, Ca = {
63
78
  key: 8,
64
79
  class: "dpiV3_modified dpiV3_label"
65
- }, qt = {
80
+ }, Sa = {
66
81
  key: 9,
67
- class: "dpiV3_modified dpiV3_label"
68
- }, Qt = {
82
+ class: "dpiV3_DocumentationsInDistr"
83
+ }, Aa = { class: "dpiV3_TitleDelete" }, Fa = {
69
84
  key: 10,
70
- class: "dpiV3_modified dpiV3_label"
71
- }, Xt = {
85
+ class: "dpiV3_DocumentationsInDistr"
86
+ }, $a = { class: "dpiV3_TitleDelete" }, Ea = {
72
87
  key: 11,
73
88
  class: "dpiV3_modified dpiV3_label"
74
- }, Yt = {
89
+ }, Ma = {
75
90
  key: 12,
76
- class: "dpiV3_DocumentationsInDistr"
77
- }, ea = { class: "dpiV3_TitleDelete" }, ta = {
91
+ class: "dpiV3_modified dpiV3_label"
92
+ }, Ba = {
78
93
  key: 13,
79
- class: "dpiV3_DocumentationsInDistr"
80
- }, aa = { class: "dpiV3_TitleDelete" }, oa = {
94
+ class: "dpiV3_modified dpiV3_label"
95
+ }, za = {
81
96
  key: 14,
82
97
  class: "dpiV3_modified dpiV3_label"
83
- }, ia = {
98
+ }, Pa = {
84
99
  key: 15,
85
100
  class: "dpiV3_modified dpiV3_label"
86
- }, sa = {
101
+ }, Na = {
87
102
  key: 16,
88
- class: "dpiV3_modified dpiV3_label"
89
- }, na = {
90
- key: 17,
91
- class: "dpiV3_modified dpiV3_label"
92
- }, da = {
93
- key: 18,
94
- class: "dpiV3_modified dpiV3_label"
95
- }, la = {
96
- key: 19,
97
103
  class: "copy-mini-regular dpiV3_text_error"
98
- }, ca = { class: "dpiV3_CTA-Distribution" }, ra = { class: "dpiV3_tempAddMore" }, ua = {
99
- key: 2,
100
- class: "dpiV3_errormsgWrapper"
101
- }, ma = {
104
+ }, Oa = { class: "dpiV3_CTA-Distribution" }, Wa = { class: "dpiV3_tempAddMore" }, ja = {
102
105
  __name: "DistributionSimplePage",
103
106
  props: {
104
107
  context: Object,
105
108
  inRap: Boolean
106
109
  },
107
- setup(w) {
108
- var ce, re;
109
- const b = w, s = p(), { isEditMode: J } = st(), { t: k } = ot(), { formValues: _ } = nt();
110
- if (b.inRap)
111
- s.value = _.value.DistributionSimple[Object.keys(_.value.DistributionSimple)[0]], console.log(s.value);
112
- else {
113
- const t = {
114
- isValid: "unset",
115
- id: 1,
116
- "dcat:accessURL": "",
117
- "dct:format": "",
118
- "dct:title": "",
119
- documentations: [],
120
- conformsToItems: [],
121
- policyItems: [],
122
- accessServices: [],
123
- "dct:modified": "",
124
- "dct:issued": "",
125
- "dct:description": void 0,
126
- "dcatde:licenseAttributionByText": void 0,
127
- "dct:accessRights": "",
128
- "dcatap:availability": {},
129
- "dct:language": {},
130
- "dcat:byteSize": void 0,
131
- "dcat:mediaType": {},
132
- "dcat:compressFormat": {},
133
- "dcat:packageFormat": {},
134
- "adms:status": "",
135
- checksum: {
136
- title: "",
137
- "spdx:checksum": "",
138
- uri: ""
139
- },
140
- changeLicense: {
141
- title: "",
142
- "dcterms:license": ""
143
- }
144
- };
145
- s.value = J.value ? [...JSON.parse(JSON.stringify((re = (ce = _ == null ? void 0 : _.value) == null ? void 0 : ce.DistributionSimple) == null ? void 0 : re["dcat:distribution"]))] : [t];
146
- }
147
- const n = p({}), T = p({}), W = p([]), I = p(!1), L = p(!1), y = p(0), g = p([]), H = p([]), G = p([]), $ = p([]), S = p([...g.value]), he = it(), R = p(null);
148
- p(null);
149
- const F = p(!1), K = p(!1), Z = p(!1), U = p(!1), q = p(!0);
150
- function ge() {
151
- W.value = [
110
+ setup(A) {
111
+ var be, _e, De;
112
+ const I = A, { isEditMode: se } = Vt(), { t: U } = Tt(), _ = v(null), Be = {
113
+ isValid: "unset",
114
+ id: 1,
115
+ "dcat:accessURL": "",
116
+ "dct:format": {},
117
+ "dct:title": "",
118
+ documentations: [],
119
+ conformsToItems: [],
120
+ policyItems: [],
121
+ "dcat:downloadURL": [{ "@id": "" }],
122
+ accessServices: [],
123
+ "dct:modified": "",
124
+ "dct:issued": "",
125
+ "dct:description": void 0,
126
+ // "dcatde:licenseAttributionByText": undefined,
127
+ // "dct:accessRights": {},
128
+ "dct:rights": {},
129
+ "dcatap:availability": {},
130
+ "dct:language": [],
131
+ "dcat:byteSize": void 0,
132
+ "dcat:mediaType": {},
133
+ "dcat:compressFormat": {},
134
+ "dcat:packageFormat": {},
135
+ "adms:status": {},
136
+ checksum: {
137
+ title: "",
138
+ "spdx:checksum": "",
139
+ uri: ""
140
+ },
141
+ "dct:license": {
142
+ title: "",
143
+ "dcterms:license": ""
144
+ }
145
+ }, { formValues: V } = Lt(), i = $e(
146
+ () => se.value || I.inRap
147
+ ).value ? gt((be = V.value.DistributionSimple) == null ? void 0 : be["dcat:distribution"]) : v([Be]);
148
+ i.value[0]["dcat:downloadURL"] || (console.log(i["dcat:downloadURL"], i), i.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
149
+ const l = v({}), F = v({}), ie = v([]), B = v(!1), H = v(!1), b = v(0), D = v([]), w = v([]), le = v([]), G = v([]), ne = v([]);
150
+ v([...D.value]);
151
+ const z = v([...w.value]), ze = It(), J = v(null);
152
+ v(null);
153
+ const K = v(!1), de = v(!1), $ = v(!1), ce = v(!0);
154
+ for (let a = 0; a < i.value.length; a++)
155
+ if (((_e = V.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : _e.checksum.uri) !== "" || ((De = V.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : De.checksum.title) !== "") {
156
+ de.value = !1;
157
+ break;
158
+ }
159
+ function Pe() {
160
+ ie.value = [
152
161
  {
153
- title: k(
162
+ title: U(
154
163
  "message.dataupload.datasets.dcat:distribution.recommended.title"
155
164
  ),
156
- items: A.distributions.Recommended.map(
157
- (t) => k(
158
- `message.dataupload.datasets.dcat:distribution.recommended.${t}`
159
- ) || t
165
+ items: W.distributions.Recommended.map(
166
+ (a) => U(
167
+ `message.dataupload.datasets.dcat:distribution.recommended.${a}`
168
+ ) || a
160
169
  ),
161
- keys: A.distributions.Recommended
170
+ keys: W.distributions.Recommended
162
171
  },
163
172
  {
164
- title: k("message.dataupload.datasets.dcat:distribution.advanced.title"),
165
- items: A.distributions.Advanced.map(
166
- (t) => k(`message.dataupload.datasets.dcat:distribution.advanced.${t}`) || t
173
+ title: U("message.dataupload.datasets.dcat:distribution.advanced.title"),
174
+ items: W.distributions.Advanced.map(
175
+ (a) => U(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
167
176
  ),
168
- keys: A.distributions.Advanced
177
+ keys: W.distributions.Advanced
169
178
  }
170
179
  ];
171
180
  }
172
- function Q(t) {
173
- (t.includes("dcat:distribution") || t.includes("dct:license")) && (q.value || B(), q.value = !1);
181
+ function re(a) {
182
+ var t, e, o;
183
+ (o = (e = (t = I.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (ce.value || q(), ce.value = !1);
174
184
  }
175
- function B(t) {
176
- let a = !0;
177
- s.value = s.value.map((e) => {
178
- var f, x;
179
- const o = ((f = e["dcat:downloadURL"]) == null ? void 0 : f.trim()) !== "", i = ((x = e["dct:format"].label) == null ? void 0 : x.trim()) !== "", d = o && i;
180
- return d || (a = !1), t === e.id ? {
185
+ function q(a) {
186
+ let t = !0;
187
+ i.value = i.value.map((e) => {
188
+ var g;
189
+ const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && R(e["dcat:accessURL"]), s = !!((g = e["dct:format"]) != null && g.label) && e["dct:format"].label.trim() !== "" && w.value.some(
190
+ (h) => h["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
191
+ ), n = e["dcat:downloadURL"].every(
192
+ (h) => {
193
+ var k;
194
+ const x = (k = h["@id"]) == null ? void 0 : k.trim();
195
+ return x === "" || R(x);
196
+ }
197
+ ), r = o && s && n;
198
+ return r || (t = !1), a === e.id && !I.inRap ? {
181
199
  ...e,
182
- isValid: d,
200
+ isValid: r,
183
201
  showErrorDownloadURL: !1,
184
202
  showErrorFormat: !1
185
203
  } : {
186
204
  ...e,
187
- isValid: d,
205
+ isValid: r,
188
206
  showErrorDownloadURL: !o,
189
- showErrorFormat: !i
207
+ showErrorFormat: !s
190
208
  };
191
- }), !a && s.value.length > 0 && (s.value[0].isValid = !1), t == null && (U.value = !a), b.context.node.input(s.value);
209
+ }), I.inRap == !0 && Z(), console.log(t), t && ($.value = !1), !t && i.value.length > 0 && (console.log("invalid"), i.value[0].isValid = !1), t && i.value.length > 0 && (console.log("valid"), i.value[0].isValid = !0), a == null && ($.value = !t), V.value.DistributionSimple["dcat:distribution"] = i.value;
192
210
  }
193
- function E(t, a) {
194
- var o, i, d;
211
+ function P(a, t) {
212
+ var o, s, n;
195
213
  let e = !0;
196
- if (a === "dcat:downloadURL")
197
- e = ((o = t[a]) == null ? void 0 : o.trim()) !== "" && (t[a] ? M(t[a]) : !1), e ? (t.showErrorDownloadURL = !1, t.urlErrorMessage = "") : (t.showErrorDownloadURL = !0, ((i = t[a]) == null ? void 0 : i.trim()) === "" ? t.urlErrorMessage = "URL ist erforderlich" : t.urlErrorMessage = "Bitte geben Sie eine gültige URL ein");
198
- else if (a === "dct:format") {
199
- const f = (d = t[a].label) == null ? void 0 : d.trim();
200
- e = f !== "", e ? (t.showErrorFormat = !1, t.formatErrorMessage = "") : (t.showErrorFormat = !0, f === "" ? t.formatErrorMessage = "Format ist erforderlich" : t.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
214
+ if (t === "dcat:accessURL")
215
+ e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? R(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, (s = a[t]) == null || s.trim(), a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
216
+ else if (t === "dct:format") {
217
+ const r = (n = a[t].label) == null ? void 0 : n.trim();
218
+ e = r !== "" && w.value.some(
219
+ (g) => g["@value"].toLowerCase() === r.toLowerCase()
220
+ ), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, r === "" ? a.formatErrorMessage = "Format ist erforderlich." : a.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
201
221
  }
202
- ye();
222
+ Z(!0);
203
223
  }
204
- function ye() {
224
+ function Z(a = !1) {
205
225
  let t = !0;
206
- s.value = s.value.map((a) => {
207
- var d, f;
208
- const e = ((d = a["dcat:downloadURL"]) == null ? void 0 : d.trim()) !== "" && M(a["dcat:downloadURL"]), o = ((f = a["dct:format"].label) == null ? void 0 : f.trim()) !== "" && g.value.some(
209
- (x) => {
210
- var h;
211
- return x["@value"].toUpperCase() === ((h = a["dct:format"].label) == null ? void 0 : h.toUpperCase());
226
+ i.value = i.value.map((e) => {
227
+ var g, h, x;
228
+ const o = ((g = e["dcat:accessURL"]) == null ? void 0 : g.trim()) !== "" && R(e["dcat:accessURL"]), s = ((x = (h = e["dct:format"]) == null ? void 0 : h.label) == null ? void 0 : x.trim()) !== "" && w.value.some(
229
+ (k) => {
230
+ var T;
231
+ return k["@value"].toUpperCase() === ((T = e["dct:format"].label) == null ? void 0 : T.toUpperCase());
212
232
  }
213
- ), i = e && o;
214
- return i || (t = !1), {
215
- ...a,
216
- isValid: i
217
- };
218
- }), !t && s.value.length > 0 ? s.value[0].isValid = !1 : s.value.length > 0 && (s.value[0].isValid = !0), U.value = !t, console.log(s.value), b.context.node.input(s.value);
233
+ ), n = (e["dcat:downloadURL"] || []).every(
234
+ (k) => {
235
+ var E;
236
+ const T = (E = k["@id"]) == null ? void 0 : E.trim();
237
+ return T === "" || R(T);
238
+ }
239
+ ), r = o && s && n;
240
+ return r || (t = !1), { ...e, isValid: r };
241
+ }), i.value.length > 0 && (i.value[0].isValid = t), (I.inRap === !0 || !a || $.value === !0) && ($.value = !t), V.value.DistributionSimple["dcat:distribution"] = i.value;
219
242
  }
220
- function M(t) {
221
- return /^(https?:\/\/)?(www\.)?[-\w@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-\w()@:%+.~#?&/=]*)$/.test(t);
243
+ function R(a) {
244
+ return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
222
245
  }
223
- Ge(() => {
224
- pe.off("nextClicked", Q);
225
- }), Ke(async () => {
226
- pe.on("nextClicked", Q);
227
- const t = Ze(), a = t.appContext.app.config.globalProperties.$env;
228
- if (t) {
229
- const e = t.appContext.app.config.globalProperties.$env;
230
- R.value = e.content.dataProviderInterface.specification;
246
+ yt(() => {
247
+ Me.off("nextClicked", re), _.value && clearTimeout(_.value);
248
+ });
249
+ let ue = v([]);
250
+ kt(async () => {
251
+ Me.on("nextClicked", re);
252
+ const a = xt(), t = a.appContext.app.config.globalProperties.$env;
253
+ if (a) {
254
+ const e = a.appContext.app.config.globalProperties.$env;
255
+ J.value = e.content.dataProviderInterface.specification;
231
256
  } else
232
257
  console.log("Instance is null!");
233
258
  try {
234
- const e = await dt(a.api.baseUrl);
235
- g.value = e.results.map((o) => ({
236
- "@value": o.id,
237
- uri: o.resource,
259
+ const e = await Ut(t.api.baseUrl);
260
+ ue.value = e.map((s) => ({
261
+ uri: s.uri,
262
+ "@value": s.value,
263
+ label: s.label
264
+ }));
265
+ const o = await Rt(t.api.baseUrl);
266
+ D.value = o.results.map((s) => ({
267
+ "@value": s.pref_label.en,
268
+ uri: s.resource,
238
269
  selected: !1
239
270
  }));
240
271
  } catch (e) {
241
272
  error.value = e;
242
273
  }
243
274
  try {
244
- const e = await lt(a.api.baseUrl);
245
- H.value = e;
246
- const o = await ct(a.api.baseUrl);
275
+ const e = await Ct(t.api.baseUrl);
276
+ w.value = e.results.map((o) => ({
277
+ "@value": o.pref_label.en,
278
+ uri: o.resource,
279
+ selected: !1
280
+ })).sort((o, s) => o["@value"].localeCompare(s["@value"])), z.value = [...w.value];
281
+ } catch (e) {
282
+ error.value = e;
283
+ }
284
+ try {
285
+ const e = await St(t.api.baseUrl);
286
+ le.value = e;
287
+ const o = await At(t.api.baseUrl);
247
288
  G.value = o;
248
- const i = await rt(a.api.baseUrl);
249
- $.value = i;
289
+ const s = await Ft(t.api.baseUrl);
290
+ ne.value = s;
250
291
  } catch (e) {
251
292
  console.log(e);
252
293
  }
253
- ge();
294
+ Pe();
254
295
  });
255
- function xe(t, a) {
256
- const e = s.value.find((i) => i.id === a);
257
- if (!e)
258
- return;
259
- let o = g.value.find((i) => i["@value"] === t).uri || "";
260
- e["dct:format"] = { label: t, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), b.context.node.input(s.value);
296
+ function Ne(a, t) {
297
+ const e = i.value.find((s) => s.id === t);
298
+ if (!e) return;
299
+ let o = w.value.find((s) => s["@value"] === a).uri || "";
300
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", P(e, "dct:format"), V.value.DistributionSimple["dcat:distribution"] = i.value;
261
301
  }
262
- function X(t, a) {
263
- const e = s.value.find((o) => o.id === a);
264
- e ? (e["dct:modified"] = t, n.value.dctModified = t) : console.warn(`No matching distribution found for ID ${a}.`);
302
+ function me(a, t) {
303
+ const e = i.value.find((o) => o.id === t);
304
+ e ? (e["dct:modified"] = a, l.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
265
305
  }
266
- function Y(t, a) {
267
- const e = s.value.find((o) => o.id === a);
268
- e ? (e["dct:issued"] = t, n.value.dctIssued = t) : console.warn(`No matching distribution found for ID ${a}.`);
306
+ function fe(a, t) {
307
+ const e = i.value.find((o) => o.id === t);
308
+ e ? (e["dct:issued"] = a, l.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
269
309
  }
270
- function ee(t, a) {
271
- const e = s.value.find((o) => o.id === a);
272
- e ? (e["dct:description"] = t, n.value.dctDescription = t) : console.warn(`No matching distribution found for ID ${a}.`);
310
+ function pe(a, t) {
311
+ const e = i.value.find((o) => o.id === t);
312
+ e ? (e["dct:description"] = a, l.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
273
313
  }
274
- function te(t, a) {
275
- const e = s.value.find((o) => o.id === a);
276
- e ? (e["dcatde:licenseAttributionByText"] = t, n.value.nameTextByClauses = t) : console.warn(`No matching distribution found for ID ${a}.`);
314
+ function ve(a, t, e) {
315
+ console.log(a, t, e);
316
+ const o = i.value.find((s) => s.id === t);
317
+ o ? (o["dct:accessRights"] = { label: { de: a.label }, uri: a.uri }, l.value.accessRightsText = a) : console.warn(`No matching distribution found for ID ${t}.`);
277
318
  }
278
- function ae(t, a) {
279
- const e = s.value.find((o) => o.id === a);
280
- e ? (e["dct:accessRights"] = t, n.value.accessRightsText = t) : console.warn(`No matching distribution found for ID ${a}.`);
319
+ function he(a, t, e) {
320
+ const o = i.value.find((s) => s.id === t);
321
+ e || (console.log(G.value), e = G.value.find((s) => s.label === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, l.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
281
322
  }
282
- function oe(t, a, e) {
283
- const o = s.value.find((i) => i.id === a);
284
- e || (e = G.value.find((i) => i.value === t).uri || ""), o ? (o["dcatap:availability"] = { label: t, uri: e }, n.value.availabilityText = t) : console.warn(`No matching distribution found for ID ${a}.`);
323
+ function ge(a, t) {
324
+ const e = i.value.find((o) => o.id === t);
325
+ e ? (e["adms:status"] = a, l.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
285
326
  }
286
- function ie(t, a) {
287
- const e = s.value.find((o) => o.id === a);
288
- e ? (e["adms:status"] = t, n.value.statusText = t) : console.warn(`No matching distribution found for ID ${a}.`);
327
+ function ye(a, t, e, o) {
328
+ de.value = !0;
329
+ const s = i.value.find((n) => n.id === e);
330
+ o || (o = le.value.find((n) => n.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", l.value.checksumText = a, l.value.checksumDropdownText = t, l.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
289
331
  }
290
- function se(t, a, e, o) {
291
- K.value = !0;
292
- const i = s.value.find((d) => d.id === e);
293
- o || (o = H.value.find((d) => d.value === a).resource || ""), i ? (i.checksum.title = t, i.checksum["spdx:checksum"] = a, i.checksum.uri = o || "no URI", n.value.checksumText = t, n.value.checksumDropdownText = a, n.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
294
- }
295
- function ne(t, a, e) {
296
- Z.value = !0;
297
- const o = s.value.find((i) => i.id === e);
298
- o ? (o.changeLicense.title = t, o.changeLicense["dcterms:license"] = a, n.value.changeLicenseText = t, n.value.changeLicenseDropdownText = a) : console.warn(`No matching distribution found for ID ${e}.`);
332
+ function ke(a, t, e, o) {
333
+ const s = i.value.find((r) => r.id === e);
334
+ let n = ue.value.find(
335
+ (r) => r["@value"] === t
336
+ );
337
+ s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = n.uri, V.value.DistributionSimple["dct:license"] = [
338
+ {
339
+ title: a,
340
+ "dcterms:license": t,
341
+ uri: n.uri
342
+ }
343
+ ], l.value.changeLicenseText = a, l.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
299
344
  }
300
- function de(t, a, e) {
301
- const o = s.value.find((i) => i.id === a);
302
- console.log($), e || (e = $.value.find((i) => i.label === t).uri || ""), o ? (o["dct:language"] = { label: t, uri: e }, n.value.languageText = t) : console.warn(`No matching distribution found for ID ${a}.`);
345
+ function xe(a, t, e) {
346
+ const o = i.value.find((s) => s.id === t);
347
+ e || (e = ne.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], l.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
303
348
  }
304
- function le(t, a) {
305
- const e = s.value.find((o) => o.id === a);
306
- e ? (e["dcat:byteSize"] = t, n.value.byteSizeText = t) : console.warn(`No matching distribution found for ID ${a}.`);
349
+ function we(a, t) {
350
+ const e = i.value.find((o) => o.id === t);
351
+ e ? (e["dcat:byteSize"] = a, l.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
307
352
  }
308
- function D(t, a, e) {
309
- const o = s.value.find((d) => d.id === e);
310
- let i = g.value.find((d) => d["@value"] === t).uri || "";
311
- if (console.log(i), o)
312
- switch (o[a] = { label: t, uri: i }, a) {
353
+ function C(a, t, e) {
354
+ const o = i.value.find((n) => n.id === e);
355
+ let s = D.value.find((n) => n["@value"] === a).uri || "";
356
+ if (o)
357
+ switch (o[t] = { label: a, uri: s }, t) {
313
358
  case "dcat:mediaType":
314
- n.value.mediaTypeText = t;
359
+ l.value.mediaTypeText = a;
315
360
  break;
316
361
  case "dcat:compressFormat":
317
- n.value.compressFormatText = t;
362
+ l.value.compressFormatText = a;
318
363
  break;
319
364
  case "dcat:packageFormat":
320
- n.value.packageFormatText = t;
365
+ l.value.packageFormatText = a;
321
366
  break;
322
367
  }
323
368
  else
324
369
  console.warn(`No matching distribution found for ID ${e}.`);
325
370
  }
326
- function be(t) {
327
- v(
328
- t,
371
+ function Oe(a) {
372
+ y(
373
+ a,
329
374
  "Konform zu Standard",
330
375
  "conformsToItems",
331
376
  !0,
332
377
  !0
333
378
  );
334
379
  }
335
- function ke(t) {
336
- v(
337
- t,
380
+ function We(a) {
381
+ y(
382
+ a,
338
383
  "Verfügbarkeit",
339
384
  "dcatap:availability",
340
385
  !1,
341
386
  !1
342
387
  );
343
388
  }
344
- function De(t) {
345
- v(
346
- t,
389
+ function je(a) {
390
+ y(
391
+ a,
347
392
  "Status",
348
393
  "adms:status",
349
394
  !1,
350
395
  !1
351
396
  );
352
397
  }
353
- function _e(t) {
354
- v(
355
- t,
398
+ function He(a) {
399
+ y(
400
+ a,
356
401
  "Größe in Bytes",
357
402
  "dcat:byteSize",
358
403
  !0,
359
404
  !1
360
405
  );
361
406
  }
362
- function Te(t) {
363
- v(
364
- t,
407
+ function Ge(a) {
408
+ y(
409
+ a,
365
410
  "Sprache",
366
411
  "dct:language",
367
412
  !0,
368
413
  !1
369
414
  );
370
415
  }
371
- function z(t, a) {
372
- v(a, t, t, !0, !1);
416
+ function Q(a, t) {
417
+ y(t, a, a, !0, !1);
373
418
  }
374
- function we(t) {
375
- v(
376
- t,
419
+ function Je(a) {
420
+ y(
421
+ a,
377
422
  "Regelwerk",
378
423
  "policyItems",
379
424
  !0,
380
425
  !0
381
426
  );
382
427
  }
383
- function Ie(t) {
384
- v(
385
- t,
428
+ function Ke(a) {
429
+ y(a, "Prüfsumme", "checksum", !0, !0);
430
+ }
431
+ function qe(a) {
432
+ y(
433
+ a,
386
434
  "Dokumentation",
387
435
  "documentations",
388
436
  !0,
389
437
  !0
390
438
  );
391
439
  }
392
- function Ve(t) {
393
- v(
394
- t,
440
+ function Ze(a) {
441
+ y(
442
+ a,
395
443
  "Ausliefernder Datenservice",
396
444
  "accessServices",
397
445
  !0,
398
446
  !0
399
447
  );
400
448
  }
401
- function Ae(t) {
402
- v(
403
- t,
449
+ function Qe(a, t, e) {
450
+ const s = i.value.find((n) => n.id === t)["dcat:downloadURL"][e];
451
+ s["@id"] = a, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
452
+ const n = a.trim();
453
+ n === "" || R(n) ? (s.showError = !1, s.errorMessage = "") : (s.showError = !0, s.errorMessage = "Bitte geben Sie eine gültige URL ein."), Z(!0);
454
+ }, 800);
455
+ }
456
+ function Xe(a) {
457
+ y(
458
+ a,
404
459
  "Aktualisierungsdatum",
405
460
  "dct:modified",
406
461
  !1
407
462
  );
408
463
  }
409
- function Ce(t) {
410
- v(
411
- t,
464
+ function Ye(a) {
465
+ y(
466
+ a,
412
467
  "Veröffentlichungsdatum",
413
468
  "dct:issued",
414
469
  !1
415
470
  );
416
471
  }
417
- function Le(t) {
418
- v(
419
- t,
472
+ function et(a) {
473
+ y(
474
+ a,
420
475
  "Beschreibung",
421
476
  "dct:description",
422
477
  !0
423
478
  );
424
479
  }
425
- function $e(t) {
426
- v(
427
- t,
428
- "Namensnennungstext für By-Clauses",
429
- "dcatde:licenseAttributionByText",
430
- !0
431
- );
432
- }
433
- function Se(t) {
434
- v(
435
- t,
480
+ function tt(a) {
481
+ y(
482
+ a,
436
483
  "Grad der Zugänglichkeit",
437
484
  "dct:accessRights",
438
485
  !1
439
486
  );
440
487
  }
441
- const Re = qe(() => R.value ? he.getters["dpiStore/getNavSteps"](R.value) : {});
442
- Qe(Re, (t) => {
443
- }), J.value || b.context.node.input([{ isValid: "unset" }]);
444
- function Fe() {
445
- const t = Date.now();
446
- s.value.push({
488
+ const at = $e(() => J.value ? ze.getters["dpiStore/getNavSteps"](J.value) : {});
489
+ wt(at, (a) => {
490
+ }), se.value || I.context.node.input([{ isValid: "unset" }]);
491
+ function ot() {
492
+ const a = Date.now();
493
+ i.value.push({
447
494
  isValid: "unset",
448
- id: t,
495
+ id: a,
449
496
  "dcat:accessURL": "",
450
497
  "dct:format": {},
451
498
  "dct:title": "",
452
499
  documentations: [],
453
500
  conformsToItems: [],
501
+ "dcat:downloadURL": [{ "@id": "" }],
454
502
  policyItems: [],
455
503
  accessServices: [],
456
504
  "dct:modified": "",
457
505
  "dct:issued": "",
458
506
  "dct:description": void 0,
459
- "dcatde:licenseAttributionByText": void 0,
460
- "dct:accessRights": "",
507
+ // "dcatde:licenseAttributionByText": undefined,
508
+ // "dct:accessRights": "",
461
509
  "dcatap:availability": {},
462
- "dct:language": {},
510
+ "dct:language": [],
463
511
  "dcat:byteSize": void 0,
464
512
  "dcat:mediaType": {},
465
513
  "dcat:compressFormat": {},
466
514
  "dcat:packageFormat": {},
467
- "adms:status": "",
515
+ "adms:status": {},
468
516
  checksum: {
469
517
  title: "",
470
518
  "spdx:checksum": "",
471
519
  uri: ""
472
520
  },
473
- changeLicense: {
521
+ "dct:license": {
474
522
  title: "",
475
523
  "dcterms:license": ""
476
524
  }
477
- }), B(t);
525
+ }), q(a);
478
526
  }
479
- function Ue(t, a) {
480
- const e = s.value.find((o) => o.id === t);
527
+ function st(a, t) {
528
+ const e = i.value.find((o) => o.id === a);
481
529
  if (!e) {
482
- console.error(`Distribution with ID ${t} not found`);
530
+ console.error(`Distribution with ID ${a} not found`);
483
531
  return;
484
532
  }
485
- if (!Array.isArray(a)) {
486
- console.error("Provided documentations is not an array", a);
533
+ if (!Array.isArray(t)) {
534
+ console.error("Provided documentations is not an array", t);
487
535
  return;
488
536
  }
489
537
  e.documentations = e.documentations.filter(
490
- (o) => a.some((i) => i.id === o.id)
491
- ), a.forEach((o) => {
492
- const i = e.documentations.findIndex(
493
- (d) => d.id === o.id
538
+ (o) => t.some((s) => s.id === o.id)
539
+ ), t.forEach((o) => {
540
+ const s = e.documentations.findIndex(
541
+ (n) => n.id === o.id
494
542
  );
495
- if (i !== -1)
496
- e.documentations[i] = {
497
- ...e.documentations[i],
543
+ if (s !== -1)
544
+ e.documentations[s] = {
545
+ ...e.documentations[s],
498
546
  ...o
499
547
  };
500
548
  else {
501
- const d = e.documentations.length > 0 ? Math.max(...e.documentations.map((f) => f.id)) + 1 : 1;
549
+ const n = e.documentations.length > 0 ? Math.max(...e.documentations.map((r) => r.id)) + 1 : 1;
502
550
  e.documentations.push({
503
- id: o.id || d,
551
+ id: o.id || n,
504
552
  "dcat:accessURL": o["dcat:accessURL"] || "",
505
- "dct:format": { label: o["dct:format"], uri: "test" },
553
+ "dct:format": o["dct:format"] || "",
506
554
  "dct:title": o["dct:title"] || "",
507
- "dct:description": o["dct:description"] || ""
555
+ "dct:description": o["dct:description"] || "",
556
+ formatUri: o.formatUri || ""
508
557
  });
509
558
  }
510
559
  });
511
560
  }
512
- function Be(t, a) {
513
- const e = s.value.find((o) => o.id === t);
561
+ function it(a, t) {
562
+ const e = i.value.find((o) => o.id === a);
514
563
  if (!e) {
515
- console.error(`Distribution with ID ${t} not found`);
564
+ console.error(`Distribution with ID ${a} not found`);
516
565
  return;
517
566
  }
518
- if (!Array.isArray(a)) {
567
+ if (!Array.isArray(t)) {
519
568
  console.error(
520
569
  "Provided access services is not an array",
521
- a
570
+ t
522
571
  );
523
572
  return;
524
573
  }
525
574
  e.accessServices = e.accessServices.filter(
526
- (o) => a.some(
527
- (i) => i.id === o.id
575
+ (o) => t.some(
576
+ (s) => s.id === o.id
528
577
  )
529
- ), a.forEach((o) => {
530
- const i = e.accessServices.findIndex(
531
- (d) => d.id === o.id
578
+ ), t.forEach((o) => {
579
+ const s = e.accessServices.findIndex(
580
+ (n) => n.id === o.id
532
581
  );
533
- if (i !== -1)
534
- e.accessServices[i] = {
535
- ...e.accessServices[i],
582
+ if (s !== -1)
583
+ e.accessServices[s] = {
584
+ ...e.accessServices[s],
536
585
  ...o
537
586
  };
538
587
  else {
539
- const d = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((f) => f.id)) + 1 : 1;
588
+ const n = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((r) => r.id)) + 1 : 1;
540
589
  e.accessServices.push({
541
- id: o.id || d,
542
- "dcat:accessURL": o["dcat:accessURL"] || "",
590
+ id: o.id || n,
591
+ "dcat:downloadURL": o["dcat:downloadURL"] || "",
543
592
  "dct:title": o["dct:title"] || "",
544
593
  "dct:description": o["dct:description"] || ""
545
594
  });
546
595
  }
547
596
  });
548
597
  }
549
- function Ee(t, a) {
550
- const e = s.value.find((o) => o.id === t);
598
+ function lt(a, t) {
599
+ var o;
600
+ const e = i.value.find((s) => s.id === a);
551
601
  if (!e) {
552
- console.error(`Distribution with ID ${t} not found`);
602
+ console.error(`Distribution with ID ${a} not found`);
553
603
  return;
554
604
  }
555
- if (!Array.isArray(a)) {
556
- console.error("Provided items is not an array", a);
605
+ if (!Array.isArray(t)) {
606
+ console.error("Provided items is not an array", t);
557
607
  return;
558
608
  }
559
- e.conformsToItems = e.conformsToItems.filter(
560
- (o) => a.some((i) => i.id === o.id)
561
- ), a.forEach((o) => {
562
- const i = e.conformsToItems.findIndex(
563
- (d) => d.id === o.id
609
+ e.conformsToItems = ((o = e == null ? void 0 : e.conformsToItems) == null ? void 0 : o.filter(
610
+ (s) => t.some((n) => n.id === s.id)
611
+ )) || [], t.forEach((s) => {
612
+ const n = e.conformsToItems.findIndex(
613
+ (r) => r.id === s.id
564
614
  );
565
- if (i !== -1)
566
- e.conformsToItems[i] = {
567
- ...e.conformsToItems[i],
568
- ...o
615
+ if (n !== -1)
616
+ e.conformsToItems[n] = {
617
+ ...e.conformsToItems[n],
618
+ ...s
569
619
  };
570
620
  else {
571
- const d = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((f) => f.id)) + 1 : 1;
621
+ const r = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((g) => g.id)) + 1 : 1;
572
622
  e.conformsToItems.push({
573
- id: o.id || d,
574
- "dcat:accessURL": o["dcat:accessURL"] || "",
575
- "dct:title": o["dct:title"] || ""
623
+ id: s.id || r,
624
+ "dcat:downloadURL": s["dcat:downloadURL"] || "",
625
+ "dct:title": s["dct:title"] || ""
576
626
  });
577
627
  }
578
628
  });
579
629
  }
580
- function Me(t, a) {
581
- const e = s.value.find((o) => o.id === t);
582
- if (!e) {
583
- console.error(`Distribution with ID ${t} not found`);
584
- return;
585
- }
586
- if (!Array.isArray(a)) {
587
- console.error("Provided items is not an array", a);
588
- return;
589
- }
590
- e.policyItems = e.policyItems.filter(
591
- (o) => a.some((i) => i.id === o.id)
592
- ), a.forEach((o) => {
593
- const i = e.policyItems.findIndex(
594
- (d) => d.id === o.id
595
- );
596
- if (i !== -1)
597
- e.policyItems[i] = {
598
- ...e.policyItems[i],
599
- ...o
600
- };
601
- else {
602
- const d = e.policyItems.length > 0 ? Math.max(...e.policyItems.map((f) => f.id)) + 1 : 1;
603
- e.policyItems.push({
604
- id: o.id || d,
605
- "dcat:accessURL": o["dcat:accessURL"] || ""
606
- });
607
- }
608
- });
630
+ function nt(a, t) {
609
631
  }
610
- function ze(t) {
611
- if (t === "deleteDataset" && y.value !== null) {
612
- if (s.value.length === 1) {
613
- F.value = !0;
632
+ function dt(a) {
633
+ if (a === "deleteDataset" && b.value !== null) {
634
+ if (i.value.length === 1) {
635
+ K.value = !0;
614
636
  return;
615
637
  }
616
- s.value = s.value.filter(
617
- (a) => a.id !== y.value
618
- ), F.value = !1, y.value = null, B();
638
+ i.value = i.value.filter(
639
+ (t) => t.id !== b.value
640
+ ), K.value = !1, b.value = null, q();
619
641
  }
620
642
  }
621
- function Ne(t) {
622
- const a = JSON.parse(t), e = s.value.find(
623
- (o) => o.id === a.distributionId
643
+ function ct(a) {
644
+ const t = JSON.parse(a), e = i.value.find(
645
+ (o) => o.id === t.distributionId
624
646
  );
625
- if (a.isArray) {
626
- e[a.optType] = [];
647
+ if (t.isArray) {
648
+ console.log(t), e[t.optType] = [], t.optType === "checksum" && (e[t.optType] = {
649
+ title: "",
650
+ "spdx:checksum": "",
651
+ uri: ""
652
+ });
627
653
  return;
628
654
  }
629
- a.useUndefined ? e[a.optType] = void 0 : e[a.optType] = "";
655
+ t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
630
656
  }
631
- function Pe(t) {
632
- y.value = t;
633
- const a = s.value.find((e) => e.id === t);
634
- a && (n.value = {
657
+ function rt(a) {
658
+ var e, o, s, n, r;
659
+ b.value = a;
660
+ const t = i.value.find((g) => g.id === a);
661
+ t && (l.value = {
635
662
  button: "",
636
663
  header: "Optionale Informationen hinzufügen",
637
664
  text: "",
638
665
  action: "deleteDataset",
639
666
  showButtons: !1,
640
667
  optionalInfoView: !0,
641
- distributionId: t,
642
- documentations: a.documentations || [],
643
- accessServices: a.accessServices || [],
644
- dctModified: a["dct:modified"] || "",
645
- dctIssued: a["dct:issued"] || "",
646
- dctDescription: a["dct:description"] || "",
647
- nameTextByClauses: a["dcatde:licenseAttributionByText"] || "",
648
- accessRightsText: a["dct:accessRights"] || "",
649
- availabilityText: a["dcatap:availability"].label || "",
650
- languageText: a["dct:language"].label || "",
651
- byteSizeText: a["dcat:byteSize"] || "",
652
- mediaTypeText: a["dcat:mediaType"].label || "",
653
- compressFormatText: a["dcat:compressFormat"].label || "",
654
- packageFormatText: a["dcat:packageFormat"].label || "",
655
- statusText: a["adms:status"] || "",
656
- checksumText: a.checksum.title || "",
657
- checksumURI: a.checksum.uri || "",
658
- checksumDropdownText: a.checksum["spdx:checksum"] || "",
659
- changeLicenseText: a.changeLicense.title || "",
660
- changeLicenseDropdownText: a.changeLicense["dcterms:license"] || "",
661
- conformsToItems: a.conformsToItems || [],
662
- policyItems: a.policyItems || []
663
- }, I.value = !0);
668
+ distributionId: a,
669
+ documentations: t.documentations || [],
670
+ accessServices: t.accessServices || [],
671
+ dctModified: t["dct:modified"] || "",
672
+ dctIssued: t["dct:issued"] || "",
673
+ dctDescription: t["dct:description"] || "",
674
+ // nameTextByClauses: distribution["dcatde:licenseAttributionByText"] || "",
675
+ // accessRightsText: distribution["dct:accessRights"].uri || "",
676
+ availabilityText: ((o = (e = t["dcatap:availability"]) == null ? void 0 : e.label) == null ? void 0 : o.de) || "",
677
+ languageText: ((s = t == null ? void 0 : t["dct:language"]) == null ? void 0 : s["@value"]) || "",
678
+ byteSizeText: t["dcat:byteSize"] || "",
679
+ mediaTypeText: t["dcat:mediaType"].label || "",
680
+ // compressFormatText: distribution["dcat:compressFormat"].label || "",
681
+ packageFormatText: t["dcat:packageFormat"].label || "",
682
+ statusText: t["adms:status"].label || "",
683
+ checksumText: t.checksum.title || "",
684
+ checksumURI: t.checksum.uri || "",
685
+ checksumDropdownText: t.checksum["spdx:checksum"] || "",
686
+ changeLicenseText: ((n = t == null ? void 0 : t.changeLicense) == null ? void 0 : n.title) || "",
687
+ changeLicenseDropdownText: ((r = t == null ? void 0 : t.changeLicense) == null ? void 0 : r["dcterms:license"]) || "",
688
+ conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
689
+ policyItems: (t == null ? void 0 : t.policyItems) || [],
690
+ downloadURL: (t == null ? void 0 : t.downloadURL) || []
691
+ }, B.value = !0, document.body.style.overflow = "hidden");
664
692
  }
665
- function Oe(t) {
666
- y.value = t;
667
- const a = s.value.find((d) => d.id === t), e = a ? a["dct:title"] : "", o = a ? a["dct:format"].label : "", i = a ? a["dcat:accessURL"] : "";
668
- n.value = {
693
+ function ut() {
694
+ B.value = !1, document.body.style.overflow = "auto";
695
+ }
696
+ function mt(a) {
697
+ b.value = a;
698
+ const t = i.value.find((n) => n.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", s = t ? t["dcat:accessURL"] : "";
699
+ l.value = {
669
700
  button: "Löschen",
670
- header: k(
701
+ header: U(
671
702
  "message.dataupload.datasets.dcat:distribution.delete-distribution.header"
672
703
  ),
673
- text: k(
704
+ text: U(
674
705
  "message.dataupload.datasets.dcat:distribution.delete-distribution.text"
675
706
  ),
676
707
  action: "deleteDataset",
677
708
  title: e,
678
709
  format: o,
679
- distributionLink: i
680
- }, I.value = !0;
710
+ distributionLink: s
711
+ }, B.value = !0;
681
712
  }
682
- function v(t, a, e, o, i) {
683
- const f = JSON.stringify({
684
- distributionId: t,
713
+ function y(a, t, e, o, s) {
714
+ const r = JSON.stringify({
715
+ distributionId: a,
685
716
  optType: e,
686
717
  useUndefined: o,
687
- isArray: i
718
+ isArray: s
688
719
  });
689
- T.value = {
720
+ F.value = {
690
721
  button: "Löschen",
691
- header: `${a} löschen`,
692
- text: `Sind Sie sicher, dass Sie das optionale Feld ${a} löschen wollen?`,
693
- action: f
694
- }, L.value = !0;
722
+ header: `${t} löschen`,
723
+ text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
724
+ action: r
725
+ }, H.value = !0;
695
726
  }
696
- function N(t, a, e) {
697
- var i, d, f, x;
698
- const o = s.value.find((h) => h.id === e);
699
- if (o) {
700
- if (a === "dcat:downloadURL") {
701
- const h = (i = t == null ? void 0 : t.target) == null ? void 0 : i.value;
702
- o[a] = h, h && !M(h) ? (o.showErrorDownloadURL = !0, o.urlErrorMessage = "Bitte geben Sie eine gültige URL ein") : (o.showErrorDownloadURL = h.trim() === "", o.urlErrorMessage = "");
703
- } else if (a === "dct:format") {
704
- const h = typeof t == "string" ? t.trim() : (f = (d = t == null ? void 0 : t.target) == null ? void 0 : d.value) == null ? void 0 : f.trim();
705
- if (o[a] = h, o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
706
- S.value = [...g.value];
727
+ function X(a, t, e) {
728
+ var s, n, r, g;
729
+ const o = i.value.find((h) => h.id === e);
730
+ if (o)
731
+ if (t === "dcat:accessURL") {
732
+ const h = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
733
+ o[t] = h, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
734
+ P(o, t);
735
+ }, 800);
736
+ } else if (t === "dct:format") {
737
+ const h = typeof a == "string" ? a.trim() : (r = (n = a == null ? void 0 : a.target) == null ? void 0 : n.value) == null ? void 0 : r.trim();
738
+ if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
739
+ o[t] = { label: "", uri: "" }, I.inRap ? (o.showErrorFormat = !0, o.formatErrorMessage = "Format ist erforderlich") : (o.showErrorFormat = !1, o.formatErrorMessage = ""), z.value = [...w.value];
707
740
  else {
708
- const ue = g.value.find(
709
- (P) => P["@value"].toLowerCase() === h.toLowerCase()
741
+ const x = w.value.find(
742
+ (k) => k["@value"].toLowerCase() === h.toLowerCase()
710
743
  );
711
- ue ? (o[a] = ue["@value"], o.showErrorFormat = !1, o.formatErrorMessage = "") : (o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), S.value = g.value.filter(
712
- (P) => P["@value"].toLowerCase().includes(h.toLowerCase())
744
+ x ? (o[t] = {
745
+ label: x["@value"],
746
+ uri: x.uri
747
+ }, o.showErrorFormat = !1, o.formatErrorMessage = "") : h === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: h, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), z.value = w.value.filter(
748
+ (k) => k["@value"].toLowerCase().includes(h.toLowerCase())
713
749
  );
714
750
  }
715
- E(o, a);
751
+ P(o, t);
716
752
  } else
717
- o[a] = (x = t == null ? void 0 : t.target) == null ? void 0 : x.value;
718
- a !== "dct:format" && E(o, a), console.log(s.value), b.context.node.input(s.value);
719
- }
753
+ o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, P(o, t);
720
754
  }
721
- function je(t, a) {
722
- const e = s.value.find((o) => o.id === t);
755
+ function ft(a, t) {
756
+ const e = i.value.find((o) => o.id === a);
723
757
  e.documentations = e.documentations.filter(
724
- (o) => a.some((i) => i.id === o.id)
758
+ (o) => t.some((s) => s.id === o.id)
725
759
  );
726
760
  }
727
- function Je(t, a) {
728
- const e = s.value.find((o) => o.id === t);
761
+ function pt(a, t) {
762
+ const e = i.value.find((o) => o.id === a);
729
763
  e.accessServices = e.accessServices.filter(
730
- (o) => a.some((i) => i.id === o.id)
764
+ (o) => t.some((s) => s.id === o.id)
731
765
  );
732
766
  }
733
- function We(t, a) {
734
- const e = s.value.find((o) => o.id === t);
767
+ function vt(a, t) {
768
+ const e = i.value.find((o) => o.id === a);
735
769
  e.conformsToItems = e.conformsToItems.filter(
736
- (o) => a.some((i) => i.id === o.id)
770
+ (o) => t.some((s) => s.id === o.id)
737
771
  );
738
772
  }
739
- function He(t, a) {
740
- const e = s.value.find((o) => o.id === t);
773
+ function ht(a, t) {
774
+ const e = i.value.find((o) => o.id === a);
741
775
  e.policyItems = e.policyItems.filter(
742
- (o) => a.some((i) => i.id === o.id)
776
+ (o) => t.some((s) => s.id === o.id)
743
777
  );
744
778
  }
745
- return (t, a) => (c(), r(me, null, [
746
- m("div", Lt, [
747
- w.inRap ? u("", !0) : (c(), r("h4", $t, V(t.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
748
- w.inRap ? u("", !0) : (c(), r("div", St, V(t.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
749
- (c(!0), r(me, null, Xe(s.value, (e) => (c(), r("div", {
750
- key: e.id,
751
- class: "dpiV3AutoCompleteWrap"
752
- }, [
753
- m("div", Rt, [
754
- l(ve, {
755
- "add-on-text": !1,
756
- "date-picker": !1,
757
- "info-icon": !0,
758
- tooltip_text: `Datenlink(s): URL(s), unter denen Ihr Datensatz online gehostet
779
+ return (a, t) => (u(), f(ee, null, [
780
+ m("div", Yt, [
781
+ A.inRap ? p("", !0) : (u(), f("h4", ea, M(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
782
+ A.inRap ? p("", !0) : (u(), f("div", ta, M(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
783
+ (u(!0), f(ee, null, Ee(L(i), (e, o) => {
784
+ var s, n, r, g, h, x, k, T, E, Te, Ie, Ve, Le, Ue, Re, Ce, Se, Ae, Fe;
785
+ return u(), f("div", {
786
+ key: e.id,
787
+ class: "dpiV3AutoCompleteWrap"
788
+ }, [
789
+ m("div", aa, [
790
+ m("div", oa, [
791
+ c(ae, {
792
+ "add-on-text": !1,
793
+ datePicker: !1,
794
+ infoIcon: !0,
795
+ tooltip_text: `Datenlink(s): URL(s), unter denen Ihr Datensatz online gehostet
759
796
  wird oder über eine Schnittstelle abgerufen werden kann.`,
760
- placeholder: t.$t(
761
- "message.dataupload.datasets.dcat:distribution.download-link.placeholder"
762
- ),
763
- "pre-icon": !1,
764
- "input-field-size": "large",
765
- "initial-hint-text": !1,
766
- label: t.$t(
767
- "message.dataupload.datasets.dcat:distribution.download-link.label"
768
- ),
769
- "show-end-icon": !1,
770
- "show-error": e.showErrorDownloadURL,
771
- "model-value": e["dcat:accessURL"],
772
- onInput: (o) => N(o, "dcat:accessURL", e.id)
773
- }, null, 8, ["placeholder", "label", "show-error", "model-value", "onInput"]),
774
- e.showErrorDownloadURL && e.urlErrorMessage ? (c(), r("div", Ft, V(e.urlErrorMessage), 1)) : u("", !0),
775
- l(ut, {
776
- modelValue: e["dct:format"].label,
777
- "onUpdate:modelValue": [(o) => e["dct:format"].label = o, (o) => xe(o, e.id)],
778
- "dropdown-width": "large",
779
- type: "inputField",
780
- "input-field-props": {
781
- addOnText: !1,
782
- initialHintText: !1,
783
- datePicker: !1,
784
- infoIcon: !1,
785
- preIcon: !1,
786
- label: t.$t(
787
- "message.dataupload.datasets.dcat:distribution.format.label"
797
+ placeholder: a.$t(
798
+ "message.dataupload.datasets.dcat:distribution.download-link.placeholder"
799
+ ),
800
+ preIcon: !1,
801
+ "input-field-size": "large",
802
+ initialHintText: !1,
803
+ label: a.$t(
804
+ "message.dataupload.datasets.dcat:distribution.download-link.label"
805
+ ),
806
+ showEndIcon: !1,
807
+ showError: e.showErrorDownloadURL,
808
+ "model-value": e["dcat:accessURL"],
809
+ onInput: (d) => X(d, "dcat:accessURL", e.id)
810
+ }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
811
+ e.showErrorDownloadURL && e.urlErrorMessage ? (u(), f("div", sa, [
812
+ c(L(O), {
813
+ size: 16,
814
+ weight: "fill"
815
+ }),
816
+ m("span", ia, M(e.urlErrorMessage), 1)
817
+ ])) : p("", !0)
818
+ ]),
819
+ m("div", la, [
820
+ c($t, {
821
+ "dropdown-width": "large",
822
+ type: "inputField",
823
+ "input-field-props": {
824
+ addOnText: !1,
825
+ initialHintText: !1,
826
+ datePicker: !1,
827
+ infoIcon: !1,
828
+ preIcon: !0,
829
+ showEndIcon: !1,
830
+ label: a.$t(
831
+ "message.dataupload.datasets.dcat:distribution.format.label"
832
+ ),
833
+ dropdown_dpiV3: !0,
834
+ placeholder: a.$t(
835
+ "message.dataupload.datasets.dcat:distribution.format.placeholder"
836
+ ),
837
+ inputFieldSize: "large",
838
+ autocomplete: "true",
839
+ showError: e.showErrorFormat
840
+ },
841
+ data: z.value,
842
+ autocomplete: !0,
843
+ onInput: (d) => X(d, "dct:format", e.id),
844
+ "onUpdate:modelValue": (d) => Ne(d, e.id),
845
+ "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
846
+ }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
847
+ e.showErrorFormat && e.formatErrorMessage ? (u(), f("div", na, [
848
+ c(L(O), {
849
+ size: 16,
850
+ weight: "fill"
851
+ }),
852
+ m("span", da, M(e.formatErrorMessage), 1)
853
+ ])) : p("", !0)
854
+ ]),
855
+ c(ae, {
856
+ modelValue: e["dct:title"],
857
+ "onUpdate:modelValue": (d) => e["dct:title"] = d,
858
+ "add-on-text": !1,
859
+ "date-picker": !1,
860
+ "info-icon": !1,
861
+ placeholder: a.$t(
862
+ "message.dataupload.datasets.dcat:distribution.distribution-title.placeholder"
788
863
  ),
789
- dropdown_dpiV3: !0,
790
- placeholder: t.$t(
791
- "message.dataupload.datasets.dcat:distribution.format.placeholder"
864
+ "pre-icon": !1,
865
+ "input-field-size": "large",
866
+ "initial-hint-text": !1,
867
+ label: a.$t(
868
+ "message.dataupload.datasets.dcat:distribution.distribution-title.label"
792
869
  ),
793
- inputFieldSize: "large",
794
- autocomplete: "true",
795
- modelValue: e["dct:format"].label,
796
- showError: e.showErrorFormat
797
- },
798
- data: S.value,
799
- autocomplete: !0,
800
- onInput: (o) => N(o, "dct:format", e.id)
801
- }, null, 8, ["modelValue", "onUpdate:modelValue", "input-field-props", "data", "onInput"]),
802
- e.showErrorFormat && e.formatErrorMessage ? (c(), r("div", Ut, V(e.formatErrorMessage), 1)) : u("", !0),
803
- l(ve, {
804
- modelValue: e["dct:title"],
805
- "onUpdate:modelValue": (o) => e["dct:title"] = o,
806
- "add-on-text": !1,
807
- "date-picker": !1,
808
- "info-icon": !1,
809
- placeholder: t.$t(
810
- "message.dataupload.datasets.dcat:distribution.distribution-title.placeholder"
811
- ),
812
- "pre-icon": !1,
813
- "input-field-size": "large",
814
- "initial-hint-text": !1,
815
- label: t.$t(
816
- "message.dataupload.datasets.dcat:distribution.distribution-title.label"
817
- ),
818
- "show-end-icon": !1,
819
- onInput: (o) => N(o, "dct:title", e.id)
820
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
821
- (e.documentations || []).length > 0 ? (c(), r("div", Bt, [
822
- m("div", Et, [
823
- a[7] || (a[7] = m("div", null, "Dokumentation (optional)", -1)),
824
- m("div", null, [
825
- l(C, {
826
- "button-text": "löschen",
827
- onClick: (o) => Ie(e.id)
828
- }, null, 8, ["onClick"])
829
- ])
830
- ]),
831
- m("div", Mt, [
832
- m("div", zt, [
833
- l(Dt, {
834
- documentations: e.documentations,
835
- "file-types": g.value,
836
- "distribution-id": e.id,
837
- "as-card": !0,
838
- "show-delete-button": !0,
839
- onUpdate: (o) => je(e.id, o)
840
- }, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
870
+ "show-end-icon": !1,
871
+ onInput: (d) => X(d, "dct:title", e.id)
872
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
873
+ (e.documentations || []).length > 0 ? (u(), f("div", ca, [
874
+ m("div", ra, [
875
+ t[6] || (t[6] = m("div", null, "Dokumentation (optional)", -1)),
876
+ m("div", null, [
877
+ c(S, {
878
+ "button-text": "löschen",
879
+ onClick: (d) => qe(e.id)
880
+ }, null, 8, ["onClick"])
881
+ ])
882
+ ]),
883
+ m("div", ua, [
884
+ m("div", ma, [
885
+ c(Gt, {
886
+ documentations: e.documentations,
887
+ "file-types": D.value,
888
+ "distribution-id": e.id,
889
+ "as-card": !0,
890
+ "show-delete-button": !0,
891
+ onUpdate: (d) => ft(e.id, d)
892
+ }, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
893
+ ])
841
894
  ])
842
- ])
843
- ])) : u("", !0),
844
- (e.accessServices || []).length > 0 ? (c(), r("div", Nt, [
845
- m("div", Pt, [
846
- a[8] || (a[8] = m("div", null, "Ausliefernder Datenservice (optional)", -1)),
847
- m("div", null, [
848
- l(C, {
849
- "button-text": "löschen",
850
- onClick: (o) => Ve(e.id)
851
- }, null, 8, ["onClick"])
895
+ ])) : p("", !0),
896
+ (e.accessServices || []).length > 0 ? (u(), f("div", fa, [
897
+ m("div", pa, [
898
+ t[7] || (t[7] = m("div", null, "Ausliefernder Datenservice (optional)", -1)),
899
+ m("div", null, [
900
+ c(S, {
901
+ "button-text": "löschen",
902
+ onClick: (d) => Ze(e.id)
903
+ }, null, 8, ["onClick"])
904
+ ])
905
+ ]),
906
+ m("div", va, [
907
+ m("div", ha, [
908
+ c(zt, {
909
+ "access-services": e.accessServices,
910
+ "distribution-id": e.id,
911
+ "as-card": !0,
912
+ "show-delete-button": !0,
913
+ onUpdate: (d) => pt(
914
+ e.id,
915
+ d
916
+ )
917
+ }, null, 8, ["access-services", "distribution-id", "onUpdate"])
918
+ ])
852
919
  ])
853
- ]),
854
- m("div", Ot, [
855
- m("div", jt, [
856
- l(vt, {
857
- "access-services": e.accessServices,
858
- "distribution-id": e.id,
859
- "as-card": !0,
860
- "show-delete-button": !0,
861
- onUpdate: (o) => Je(
920
+ ])) : p("", !0),
921
+ (u(!0), f(ee, null, Ee(e["dcat:downloadURL"], (d, N) => (u(), f("div", {
922
+ key: N,
923
+ class: "dpiV3_DocumentationsInDistr"
924
+ }, [
925
+ m("div", ga, [
926
+ t[8] || (t[8] = m("div", {
927
+ class: "dpiV3_label",
928
+ style: { margin: "0" }
929
+ }, " DownloadURL (optional) ", -1)),
930
+ e["dcat:downloadURL"].length !== 1 ? (u(), f("div", ya, [
931
+ c(S, {
932
+ "button-text": "löschen",
933
+ onClick: (Y) => e["dcat:downloadURL"].splice(N, 1)
934
+ }, null, 8, ["onClick"])
935
+ ])) : p("", !0)
936
+ ]),
937
+ m("div", ka, [
938
+ c(ae, {
939
+ "model-value": d["@id"],
940
+ onInput: (Y) => Qe(
941
+ Y.target.value,
862
942
  e.id,
863
- o
864
- )
865
- }, null, 8, ["access-services", "distribution-id", "onUpdate"])
866
- ])
867
- ])
868
- ])) : u("", !0),
869
- e["dct:modified"] && e["dct:modified"].trim() !== "" ? (c(), r("div", Jt, [
870
- l(It, {
871
- "show-delete-button": !0,
872
- "distribution-id": e.id,
873
- "model-value": e["dct:modified"],
874
- onAddModifiedDate: X,
875
- onDeleteButtonClicked: (o) => Ae(e.id)
876
- }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
877
- ])) : u("", !0),
878
- e["dct:issued"] && e["dct:issued"].trim() !== "" ? (c(), r("div", Wt, [
879
- l(_t, {
880
- "show-delete-button": !0,
881
- "distribution-id": e.id,
882
- "model-value": e["dct:issued"],
883
- onAddIssuedDate: Y,
884
- onDeleteButtonClicked: (o) => Ce(e.id)
885
- }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
886
- ])) : u("", !0),
887
- Ye(m("div", Ht, [
888
- l(kt, {
889
- "distribution-id": e.id,
890
- "description-text": e["dct:description"],
891
- "show-delete-button": !0,
892
- onAddDescription: ee,
893
- onDeleteDescription: (o) => Le(e.id)
894
- }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
895
- ], 512), [
896
- [et, e["dct:description"] !== void 0]
897
- ]),
898
- e["dcatde:licenseAttributionByText"] !== void 0 ? (c(), r("div", Gt, [
899
- l(wt, {
900
- "show-delete-button": !0,
901
- "distribution-id": e.id,
902
- "name-text-by-clauses": e["dcatde:licenseAttributionByText"],
903
- onAddLicenseAttrByText: te,
904
- onDeleteButtonClicked: (o) => $e(e.id)
905
- }, null, 8, ["distribution-id", "name-text-by-clauses", "onDeleteButtonClicked"])
906
- ])) : u("", !0),
907
- e["dct:accessRights"] && e["dct:accessRights"].trim() !== "" ? (c(), r("div", Kt, [
908
- l(pt, {
909
- "show-delete-button": !0,
910
- "distribution-id": e.id,
911
- "access-rights-prop": e["dct:accessRights"],
912
- onAddAccessRights: ae,
913
- onDeleteButtonClicked: (o) => Se(e.id)
914
- }, null, 8, ["distribution-id", "access-rights-prop", "onDeleteButtonClicked"])
915
- ])) : u("", !0),
916
- e["dcatap:availability"].label && e["dcatap:availability"].label.trim() !== "" ? (c(), r("div", Zt, [
917
- l(ht, {
918
- "availability-text": e["dcatap:availability"].label,
919
- "distribution-id": e.id,
920
- "show-delete-button": !0,
921
- onAddAvailability: oe,
922
- onDeleteButtonClicked: (o) => ke(e.id)
923
- }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
924
- ])) : u("", !0),
925
- e["adms:status"] && e["adms:status"].trim() !== "" ? (c(), r("div", qt, [
926
- l(At, {
927
- "status-text": e["adms:status"],
928
- "distribution-id": e.id,
929
- "show-delete-button": !0,
930
- onAddStatus: ie,
931
- onDeleteButtonClicked: (o) => De(e.id)
932
- }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
933
- ])) : u("", !0),
934
- K.value ? (c(), r("div", Qt, [
935
- l(xt, {
936
- "checksum-text": e.checksum.title,
937
- "checksum-dropdown-text": e.checksum["spdx:checksum"],
938
- "distribution-id": e.id,
939
- "checksum-u-r-i": e.checksum.uri,
940
- "show-delete-button": !0,
941
- onAddChecksum: se
942
- }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "checksum-u-r-i"])
943
- ])) : u("", !0),
944
- Z.value ? (c(), r("div", Xt, [
945
- l(yt, {
946
- "change-license-text": e.changeLicense.title,
947
- "change-license-dropdown-text": e.changeLicense["dcterms:license"],
948
- "distribution-id": e.id,
949
- "as-card": !0,
950
- "show-delete-button": !0,
951
- onAddChangeLicense: ne
952
- }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
953
- ])) : u("", !0),
954
- e.conformsToItems && e.conformsToItems.length > 0 ? (c(), r("div", Yt, [
955
- m("div", ea, [
956
- a[9] || (a[9] = m("div", null, "Konform zu Standard (optional)", -1)),
957
- m("div", null, [
958
- l(C, {
959
- "button-text": "löschen",
960
- onClick: (o) => be(e.id)
943
+ N
944
+ ),
945
+ showError: d.showError,
946
+ initialHintText: !1,
947
+ addOnText: !1,
948
+ placeholder: "Bitte URL eingeben...",
949
+ inputFieldSize: "large",
950
+ label: ""
951
+ }, null, 8, ["model-value", "onInput", "showError"]),
952
+ d.showError ? (u(), f("div", xa, [
953
+ c(L(O), {
954
+ size: 16,
955
+ weight: "fill"
956
+ }),
957
+ m("span", wa, M(d.errorMessage), 1)
958
+ ])) : p("", !0)
959
+ ]),
960
+ N === e["dcat:downloadURL"].length - 1 ? (u(), f("div", ba, [
961
+ c(j, {
962
+ buttonText: "Weitere DownloadURL hinzufügen",
963
+ size: "small",
964
+ iconStart: "plus",
965
+ variant: "tertiary",
966
+ onClick: (Y) => e["dcat:downloadURL"].push({
967
+ "@id": "",
968
+ showError: !1,
969
+ errorMessage: ""
970
+ })
961
971
  }, null, 8, ["onClick"])
962
- ])
963
- ]),
964
- l(bt, {
965
- "conforms-to-items": e.conformsToItems,
966
- "distribution-id": e.id,
967
- "as-card": !0,
968
- "show-delete-button": !0,
969
- onUpdate: (o) => We(e.id, o)
970
- }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
971
- ])) : u("", !0),
972
- e.policyItems && e.policyItems.length > 0 ? (c(), r("div", ta, [
973
- m("div", aa, [
974
- a[10] || (a[10] = m("div", null, "Regelwerk (optional)", -1)),
975
- m("div", null, [
976
- l(C, {
977
- "button-text": "löschen",
978
- onClick: (o) => we(e.id)
979
- }, null, 8, ["onClick"])
980
- ])
972
+ ])) : p("", !0)
973
+ ]))), 128)),
974
+ e["dct:modified"] && e["dct:modified"].trim() !== "" ? (u(), f("div", _a, [
975
+ c(qt, {
976
+ "show-delete-button": !0,
977
+ "distribution-id": e.id,
978
+ "model-value": e["dct:modified"],
979
+ onAddModifiedDate: me,
980
+ onDeleteButtonClicked: (d) => Xe(e.id)
981
+ }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
982
+ ])) : p("", !0),
983
+ e["dct:issued"] && e["dct:issued"].trim() !== "" ? (u(), f("div", Da, [
984
+ c(Jt, {
985
+ "show-delete-button": !0,
986
+ "distribution-id": e.id,
987
+ "model-value": e["dct:issued"],
988
+ onAddIssuedDate: fe,
989
+ onDeleteButtonClicked: (d) => Ye(e.id)
990
+ }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
991
+ ])) : p("", !0),
992
+ bt(m("div", Ta, [
993
+ c(Ht, {
994
+ "distribution-id": e.id,
995
+ "description-text": e["dct:description"],
996
+ "show-delete-button": !0,
997
+ onAddDescription: pe,
998
+ onDeleteDescription: (d) => et(e.id)
999
+ }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
1000
+ ], 512), [
1001
+ [
1002
+ _t,
1003
+ e["dct:description"] !== void 0 && e["dct:description"] !== ""
1004
+ ]
981
1005
  ]),
982
- l(Vt, {
983
- "policy-items": e.policyItems,
984
- "distribution-id": e.id,
985
- "as-card": !0,
986
- onUpdate: (o) => He(e.id, o)
987
- }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
988
- ])) : u("", !0),
989
- e["dct:language"].label && e["dct:language"].label.trim() !== "" ? (c(), r("div", oa, [
990
- l(Tt, {
991
- "language-text": e["dct:language"].label,
992
- "distribution-id": e.id,
993
- "show-delete-button": !0,
994
- onAddLanguage: de,
995
- onDeleteButtonClicked: (o) => Te(e.id)
996
- }, null, 8, ["language-text", "distribution-id", "onDeleteButtonClicked"])
997
- ])) : u("", !0),
998
- e["dcat:byteSize"] !== void 0 ? (c(), r("div", ia, [
999
- l(gt, {
1000
- "byte-size-prop": e["dcat:byteSize"],
1001
- "distribution-id": e.id,
1002
- "show-delete-button": !0,
1003
- onAddByteSize: le,
1004
- onDeleteButtonClicked: (o) => _e(e.id)
1005
- }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1006
- ])) : u("", !0),
1007
- e["dcat:mediaType"] && e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (c(), r("div", sa, [
1008
- l(j, {
1009
- "distribution-id": e.id,
1010
- "file-types": g.value,
1011
- "file-format-type": "dcat:mediaType",
1012
- "file-format-text": e["dcat:mediaType"].label,
1013
- "show-delete-button": !0,
1014
- onAddMediaType: D,
1015
- onDeleteButtonClicked: a[0] || (a[0] = (o) => z("dcat:mediaType", y.value))
1016
- }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1017
- ])) : u("", !0),
1018
- e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (c(), r("div", na, [
1019
- l(j, {
1020
- "distribution-id": e.id,
1021
- "file-types": g.value,
1022
- "file-format-type": "dcat:compressFormat",
1023
- "compress-format-text": e["dcat:compressFormat"].label,
1024
- "show-delete-button": !0,
1025
- onAddCompressFormat: D,
1026
- onDeleteButtonClicked: a[1] || (a[1] = (o) => z("dcat:compressFormat", y.value))
1027
- }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1028
- ])) : u("", !0),
1029
- e["dcat:packageFormat"] && e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (c(), r("div", da, [
1030
- l(j, {
1031
- "distribution-id": e.id,
1032
- "file-types": g.value,
1033
- "file-format-type": "dcat:packageFormat",
1034
- "package-format-text": e["dcat:packageFormat"].label,
1035
- "show-delete-button": !0,
1036
- onAddPackageFormat: D,
1037
- onDeleteButtonClicked: a[2] || (a[2] = (o) => z("dcat:packageFormat", y.value))
1038
- }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1039
- ])) : u("", !0),
1040
- F.value && s.value.length === 1 ? (c(), r("p", la, " Mindestens ein Link muss vorhanden sein. ")) : u("", !0)
1041
- ]),
1042
- m("div", ca, [
1043
- l(O, {
1044
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1045
- size: "small",
1046
- "icon-start": "PlusSquare",
1047
- variant: "tertiary",
1048
- onClick: (o) => Pe(e.id)
1049
- }, null, 8, ["button-text", "onClick"]),
1050
- l(O, {
1051
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.delete"),
1052
- size: "small",
1053
- "icon-start": "trash",
1054
- variant: "tertiary",
1055
- onClick: (o) => Oe(e.id)
1056
- }, null, 8, ["button-text", "onClick"])
1057
- ])
1058
- ]))), 128)),
1059
- m("div", ra, [
1060
- l(O, {
1061
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1006
+ (n = e["dct:accessRights"]) != null && n.uri && ((r = e["dct:accessRights"]) == null ? void 0 : r.uri.trim()) !== "" ? (u(), f("div", Ia, [
1007
+ c(Bt, {
1008
+ "show-delete-button": !0,
1009
+ "distribution-id": e.id,
1010
+ "access-rights-prop": (g = e["dct:accessRights"]) == null ? void 0 : g.label.de,
1011
+ onAddAccessRights: ve,
1012
+ onDeleteButtonClicked: (d) => tt(e.id)
1013
+ }, null, 8, ["distribution-id", "access-rights-prop", "onDeleteButtonClicked"])
1014
+ ])) : p("", !0),
1015
+ e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (u(), f("div", Va, [
1016
+ c(Pt, {
1017
+ "availability-text": e["dcatap:availability"].label.de,
1018
+ "distribution-id": e.id,
1019
+ "show-delete-button": !0,
1020
+ onAddAvailability: he,
1021
+ onDeleteButtonClicked: (d) => We(e.id)
1022
+ }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
1023
+ ])) : p("", !0),
1024
+ e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (u(), f("div", La, [
1025
+ c(Qt, {
1026
+ "status-text": e["adms:status"]["@value"],
1027
+ "distribution-id": e.id,
1028
+ "show-delete-button": !0,
1029
+ onAddStatus: ge,
1030
+ onDeleteButtonClicked: (d) => je(e.id)
1031
+ }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
1032
+ ])) : p("", !0),
1033
+ e.checksum["spdx:checksum"] != "" ? (u(), f("div", Ua, [
1034
+ m("div", Ra, [
1035
+ t[9] || (t[9] = m("div", null, "Prüfsumme (optional)", -1)),
1036
+ m("div", null, [
1037
+ c(S, {
1038
+ "button-text": "löschen",
1039
+ onClick: (d) => Ke(e.id)
1040
+ }, null, 8, ["onClick"])
1041
+ ])
1042
+ ]),
1043
+ c(Wt, {
1044
+ "checksum-text": e.checksum.title,
1045
+ "checksum-dropdown-text": e.checksum["spdx:checksum"],
1046
+ "distribution-id": e.id,
1047
+ distIndex: o,
1048
+ "as-card": !0,
1049
+ "checksum-u-r-i": e.checksum.uri,
1050
+ "show-delete-button": !0,
1051
+ onAddChecksum: ye
1052
+ }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
1053
+ ])) : p("", !0),
1054
+ Object.keys(e["dct:license"]).length > 0 && ((h = e["dct:license"]) == null ? void 0 : h["dcterms:license"]) != "" ? (u(), f("div", Ca, [
1055
+ c(Ot, {
1056
+ "change-license-text": (x = e["dct:license"]) == null ? void 0 : x.title,
1057
+ "change-license-dropdown-text": (k = e["dct:license"]) == null ? void 0 : k["dcterms:license"],
1058
+ "distribution-id": e.id,
1059
+ "as-card": !0,
1060
+ "show-delete-button": !0,
1061
+ onAddChangeLicense: ke
1062
+ }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
1063
+ ])) : p("", !0),
1064
+ e.conformsToItems && e.conformsToItems.length > 0 ? (u(), f("div", Sa, [
1065
+ m("div", Aa, [
1066
+ t[10] || (t[10] = m("div", null, "Konform zu Standard (optional)", -1)),
1067
+ m("div", null, [
1068
+ c(S, {
1069
+ "button-text": "löschen",
1070
+ onClick: (d) => Oe(e.id)
1071
+ }, null, 8, ["onClick"])
1072
+ ])
1073
+ ]),
1074
+ c(jt, {
1075
+ "conforms-to-items": e.conformsToItems,
1076
+ "distribution-id": e.id,
1077
+ "as-card": !0,
1078
+ "show-delete-button": !0,
1079
+ onUpdate: (d) => vt(e.id, d)
1080
+ }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1081
+ ])) : p("", !0),
1082
+ ((E = (T = e == null ? void 0 : e.policyItems) == null ? void 0 : T[0]) == null ? void 0 : E["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (u(), f("div", Fa, [
1083
+ m("div", $a, [
1084
+ t[11] || (t[11] = m("div", null, "Regelwerk (optional)", -1)),
1085
+ m("div", null, [
1086
+ c(S, {
1087
+ "button-text": "löschen",
1088
+ onClick: (d) => Je(e.id)
1089
+ }, null, 8, ["onClick"])
1090
+ ])
1091
+ ]),
1092
+ c(Zt, {
1093
+ "policy-items": e.policyItems,
1094
+ "distribution-id": e.id,
1095
+ "as-card": !0,
1096
+ onUpdate: (d) => ht(e.id, d)
1097
+ }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
1098
+ ])) : p("", !0),
1099
+ (Ie = (Te = e["dct:language"]) == null ? void 0 : Te[0]) != null && Ie.label || (Le = (Ve = e["dct:language"]) == null ? void 0 : Ve[0]) != null && Le["@value"] && ((Re = (Ue = e["dct:language"]) == null ? void 0 : Ue[0]) == null ? void 0 : Re["@value"].trim()) !== "" ? (u(), f("div", Ea, [
1100
+ c(Kt, {
1101
+ "distribution-id": e.id,
1102
+ "show-delete-button": !1,
1103
+ onAddLanguage: xe,
1104
+ onDeleteButtonClicked: (d) => Ge(e.id),
1105
+ inOverview: !0
1106
+ }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
1107
+ ])) : p("", !0),
1108
+ e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (u(), f("div", Ma, [
1109
+ c(Nt, {
1110
+ "byte-size-prop": e["dcat:byteSize"],
1111
+ "distribution-id": e.id,
1112
+ "show-delete-button": !0,
1113
+ onAddByteSize: we,
1114
+ onDeleteButtonClicked: (d) => He(e.id)
1115
+ }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1116
+ ])) : p("", !0),
1117
+ e["dcat:mediaType"] && ((Ce = e["dcat:mediaType"]) != null && Ce.label) && ((Se = e["dcat:mediaType"]) == null ? void 0 : Se.label.trim()) !== "" ? (u(), f("div", Ba, [
1118
+ c(oe, {
1119
+ "distribution-id": e.id,
1120
+ "file-types": D.value,
1121
+ "file-format-type": "dcat:mediaType",
1122
+ "file-format-text": e["dcat:mediaType"].label,
1123
+ "show-delete-button": !0,
1124
+ onAddMediaType: C,
1125
+ onDeleteButtonClicked: t[0] || (t[0] = (d) => Q("dcat:mediaType", b.value))
1126
+ }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1127
+ ])) : p("", !0),
1128
+ e["dcat:compressFormat"] && ((Ae = e["dcat:compressFormat"]) != null && Ae.label) && ((Fe = e["dcat:compressFormat"]) == null ? void 0 : Fe.label.trim()) !== "" ? (u(), f("div", za, [
1129
+ c(oe, {
1130
+ "distribution-id": e.id,
1131
+ "file-types": D.value,
1132
+ "file-format-type": "dcat:compressFormat",
1133
+ "compress-format-text": e["dcat:compressFormat"].label,
1134
+ "show-delete-button": !0,
1135
+ onAddCompressFormat: C,
1136
+ onDeleteButtonClicked: t[1] || (t[1] = (d) => Q("dcat:compressFormat", b.value))
1137
+ }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1138
+ ])) : p("", !0),
1139
+ e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (u(), f("div", Pa, [
1140
+ c(oe, {
1141
+ "distribution-id": e.id,
1142
+ "file-types": D.value,
1143
+ "file-format-type": "dcat:packageFormat",
1144
+ "package-format-text": e["dcat:packageFormat"].label,
1145
+ "show-delete-button": !0,
1146
+ onAddPackageFormat: C,
1147
+ onDeleteButtonClicked: t[2] || (t[2] = (d) => Q("dcat:packageFormat", b.value))
1148
+ }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1149
+ ])) : p("", !0),
1150
+ K.value && L(i).length === 1 ? (u(), f("p", Na, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1151
+ ]),
1152
+ m("div", Oa, [
1153
+ c(j, {
1154
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1155
+ size: "small",
1156
+ "icon-start": "PlusSquare",
1157
+ variant: "tertiary",
1158
+ onClick: (d) => rt(e.id)
1159
+ }, null, 8, ["button-text", "onClick"]),
1160
+ L(i).length > 1 ? (u(), te(j, {
1161
+ key: 0,
1162
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1163
+ size: "small",
1164
+ "icon-start": "trash",
1165
+ variant: "tertiary",
1166
+ onClick: (d) => mt(e.id)
1167
+ }, null, 8, ["button-text", "onClick"])) : p("", !0)
1168
+ ])
1169
+ ]);
1170
+ }), 128)),
1171
+ m("div", Wa, [
1172
+ c(j, {
1173
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1062
1174
  size: "large",
1063
1175
  "icon-start": "plus",
1064
1176
  variant: "tertiary",
1065
- onClick: Fe
1177
+ onClick: ot
1066
1178
  }, null, 8, ["button-text"])
1067
1179
  ]),
1068
- U.value ? (c(), r("div", ua, [
1069
- l(tt(at), {
1180
+ $.value ? (u(), f("div", {
1181
+ key: 2,
1182
+ class: Dt(
1183
+ A.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper"
1184
+ )
1185
+ }, [
1186
+ c(L(O), {
1070
1187
  size: 16,
1071
1188
  weight: "fill"
1072
1189
  }),
1073
- a[11] || (a[11] = m("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1074
- ])) : u("", !0)
1190
+ t[12] || (t[12] = m("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1191
+ ], 2)) : p("", !0)
1075
1192
  ]),
1076
- I.value ? (c(), fe(ft, {
1193
+ B.value ? (u(), te(Mt, {
1077
1194
  key: 0,
1078
- "file-types": g.value,
1079
- buttons: n.value.button,
1080
- "header-text": n.value.header,
1081
- text: n.value.text,
1082
- "show-buttons": n.value.showButtons,
1083
- "optional-info-view": n.value.optionalInfoView,
1084
- documentations: n.value.documentations,
1085
- "access-services": n.value.accessServices,
1086
- action: n.value.action,
1087
- title: n.value.title,
1088
- format: n.value.format,
1089
- "distribution-link": n.value.distributionLink,
1090
- sections: W.value,
1091
- context: w.context,
1092
- "distribution-id": n.value.distributionId,
1093
- "modified-date": n.value.dctModified || "",
1094
- "issued-date": n.value.dctIssued || "",
1095
- "description-text": n.value.dctDescription || "",
1096
- "name-text-by-clauses": n.value.nameTextByClauses || "",
1097
- "access-rights-text": n.value.accessRightsText || "",
1098
- "availability-text": n.value.availabilityText || "",
1099
- "language-text": n.value.languageText || "",
1100
- "byte-size-text": n.value.byteSizeText || "",
1101
- "media-type-text": n.value.mediaTypeText || "",
1102
- "compress-format-text": n.value.compressFormatText || "",
1103
- "package-format-text": n.value.packageFormatText || "",
1104
- "status-text": n.value.statusText || "",
1105
- "checksum-text": n.value.checksumText || "",
1106
- "checksum-u-r-i": n.value.checksumURI || "",
1107
- "checksum-dropdown-text": n.value.checksumDropdownText || "",
1108
- "change-license-text": n.value.changeLicenseText || "",
1109
- "change-license-dropdown-text": n.value.changeLicenseDropdownText || "",
1110
- "conforms-to-items": n.value.conformsToItems,
1111
- "policy-items": n.value.policyItems,
1112
- onClose: a[3] || (a[3] = (e) => I.value = !1),
1113
- onActionHandling: a[4] || (a[4] = (e) => ze(e)),
1114
- onAddDocumentations: Ue,
1115
- onAddAccessServices: Be,
1116
- onAddModifiedDate: X,
1117
- onAddIssuedDate: Y,
1118
- onAddDescription: ee,
1119
- onAddLicenseAttrByText: te,
1120
- onAddAccessRights: ae,
1121
- onAddAvailability: oe,
1122
- onAddLanguage: de,
1123
- onAddByteSize: le,
1124
- onAddMediaType: D,
1125
- onAddCompressFormat: D,
1126
- onAddPackageFormat: D,
1127
- onAddStatus: ie,
1128
- onAddChecksum: se,
1129
- onAddChangeLicense: ne,
1130
- onAddConformsToItems: Ee,
1131
- onAddPolicyItems: Me
1132
- }, null, 8, ["file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "name-text-by-clauses", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items"])) : u("", !0),
1133
- L.value ? (c(), fe(mt, {
1195
+ "distibution-id": b.value,
1196
+ "file-types": D.value,
1197
+ buttons: l.value.button,
1198
+ "header-text": l.value.header,
1199
+ text: l.value.text,
1200
+ "show-buttons": l.value.showButtons,
1201
+ "optional-info-view": l.value.optionalInfoView,
1202
+ documentations: l.value.documentations,
1203
+ "access-services": l.value.accessServices,
1204
+ action: l.value.action,
1205
+ title: l.value.title,
1206
+ format: l.value.format,
1207
+ "distribution-link": l.value.distributionLink,
1208
+ sections: ie.value,
1209
+ context: A.context,
1210
+ "distribution-id": l.value.distributionId,
1211
+ "modified-date": l.value.dctModified || "",
1212
+ "issued-date": l.value.dctIssued || "",
1213
+ "description-text": l.value.dctDescription || "",
1214
+ "access-rights-text": l.value.accessRightsText || "",
1215
+ "availability-text": l.value.availabilityText || "",
1216
+ "language-text": l.value.languageText || "",
1217
+ "byte-size-text": l.value.byteSizeText || "",
1218
+ "media-type-text": l.value.mediaTypeText || "",
1219
+ "compress-format-text": l.value.compressFormatText || "",
1220
+ "package-format-text": l.value.packageFormatText || "",
1221
+ "status-text": l.value.statusText || "",
1222
+ "checksum-text": l.value.checksumText || "",
1223
+ "checksum-u-r-i": l.value.checksumURI || "",
1224
+ "checksum-dropdown-text": l.value.checksumDropdownText || "",
1225
+ "change-license-text": l.value.changeLicenseText || "",
1226
+ "change-license-dropdown-text": l.value.changeLicenseDropdownText || "",
1227
+ "conforms-to-items": l.value.conformsToItems,
1228
+ "policy-items": l.value.policyItems,
1229
+ "download-URL": l.value.downloadURL,
1230
+ onClose: ut,
1231
+ onActionHandling: t[3] || (t[3] = (e) => dt(e)),
1232
+ onAddDocumentations: st,
1233
+ onAddAccessServices: it,
1234
+ onAddModifiedDate: me,
1235
+ onAddIssuedDate: fe,
1236
+ onAddDescription: pe,
1237
+ onAddAccessRights: ve,
1238
+ onAddAvailability: he,
1239
+ onAddLanguage: xe,
1240
+ onAddByteSize: we,
1241
+ onAddMediaType: C,
1242
+ onAddCompressFormat: C,
1243
+ onAddPackageFormat: C,
1244
+ onAddStatus: ge,
1245
+ onAddChecksum: ye,
1246
+ onAddChangeLicense: ke,
1247
+ onAddConformsToItems: lt,
1248
+ onAddPolicyItems: nt
1249
+ }, null, 8, ["distibution-id", "file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items", "download-URL"])) : p("", !0),
1250
+ H.value ? (u(), te(Et, {
1134
1251
  key: 1,
1135
- buttons: T.value.button,
1136
- "header-text": T.value.header,
1137
- text: T.value.text,
1138
- action: T.value.action,
1139
- onClose: a[5] || (a[5] = (e) => L.value = !1),
1140
- onActionHandling: a[6] || (a[6] = (e) => Ne(e))
1141
- }, null, 8, ["buttons", "header-text", "text", "action"])) : u("", !0)
1252
+ buttons: F.value.button,
1253
+ "header-text": F.value.header,
1254
+ text: F.value.text,
1255
+ action: F.value.action,
1256
+ onClose: t[4] || (t[4] = (e) => H.value = !1),
1257
+ onActionHandling: t[5] || (t[5] = (e) => ct(e))
1258
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1142
1259
  ], 64));
1143
1260
  }
1144
- }, Ga = /* @__PURE__ */ Ct(ma, [["__scopeId", "data-v-7a842d4b"]]);
1261
+ }, Vo = /* @__PURE__ */ Xt(ja, [["__scopeId", "data-v-c8f6e346"]]);
1145
1262
  export {
1146
- Ga as default
1263
+ Vo as default
1147
1264
  };