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