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