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