@piveau/dpi 0.1.0-beta.6 → 0.1.0-beta.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +52 -57
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +71 -38
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
- package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +879 -843
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
- package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
- package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +328 -265
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
- package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +472 -95
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
- package/dist/data-provider-interface/store/modules/authStore.js +11 -11
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +381 -755
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/package.json +28 -19
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { ref as M, reactive as j, watch as ae, createElementBlock as m, openBlock as u, normalizeClass as z, createCommentVNode as v, createElementVNode as f, toDisplayString as D, Fragment as se, renderList as le, unref as r, createVNode as p, withDirectives as W, vShow as q, createBlock as G } from "vue";
|
|
2
|
+
import b from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
3
|
+
import oe from "../HappyFlowComponents/ui/CheckboxV3.vue.js";
|
|
4
|
+
import S from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
5
|
+
import { PhWarning as I } from "@phosphor-icons/vue";
|
|
6
|
+
import { useI18n as re } from "vue-i18n";
|
|
7
|
+
import { getNode as K } from "@formkit/core";
|
|
8
|
+
import { useFormValues as ne } from "../composables/useDpiFormValues.js";
|
|
9
|
+
import { useEditModeInfo as ie } from "../composables/useDpiEditMode.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
import de from "../../_virtual/_plugin-vue_export-helper.js";
|
|
12
|
+
const ue = { key: 0 }, ce = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "copy-large-regular"
|
|
15
|
+
}, me = { key: 2 }, pe = { class: "dpiV3_label" }, fe = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "dpiV3_firstRow"
|
|
18
|
+
}, ve = { class: "dpiV3_firstRow_inner" }, ge = {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "dpiV3_errorMessage"
|
|
21
|
+
}, Te = { class: "copy-mini-regular" }, De = {
|
|
22
|
+
key: 1,
|
|
23
|
+
class: "dpiV3_errorMessage"
|
|
24
|
+
}, he = { class: "copy-mini-regular" }, Me = { class: "dpiV3_firstRow_inner" }, ye = {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: "dpiV3_errorMessage"
|
|
27
|
+
}, Ve = { class: "copy-mini-regular" }, Re = {
|
|
28
|
+
key: 1,
|
|
29
|
+
class: "dpiV3_errorMessage"
|
|
30
|
+
}, _e = { class: "copy-mini-regular" }, Ie = {
|
|
31
|
+
key: 1,
|
|
32
|
+
class: "validation-error"
|
|
33
|
+
}, ke = { class: "copy-mini-regular" }, Ce = { class: "dpiV3_secondRowTemporal" }, be = {
|
|
34
|
+
__name: "TempResPageInModal",
|
|
35
|
+
props: {
|
|
36
|
+
context: Object,
|
|
37
|
+
inRap: Boolean
|
|
38
|
+
},
|
|
39
|
+
setup(h, { expose: Q }) {
|
|
40
|
+
const { isEditMode: X } = ie(), { formValues: i } = ne(), { t: y } = re(), g = M([!1]), V = M([0]);
|
|
41
|
+
let l = M(), c = M([{ startDate: !1, endDate: !1, message: "" }]), s = j([
|
|
42
|
+
{
|
|
43
|
+
startDate: !1,
|
|
44
|
+
startDateMessage: "",
|
|
45
|
+
endDate: !1,
|
|
46
|
+
endDateMessage: "",
|
|
47
|
+
startTime: !1,
|
|
48
|
+
startTimeMessage: "",
|
|
49
|
+
endTime: !1,
|
|
50
|
+
endTimeMessage: ""
|
|
51
|
+
}
|
|
52
|
+
]);
|
|
53
|
+
const w = j({});
|
|
54
|
+
M();
|
|
55
|
+
let E = M(y("message.dataupload.menu.reset"));
|
|
56
|
+
const k = h;
|
|
57
|
+
X.value ? (i.value.Covering["dcat:temporalResolution"] !== void 0 ? l.value = i.value.Covering["dcat:temporalResolution"]["dct:temporal"] || [] : l.value = [
|
|
58
|
+
{
|
|
59
|
+
isValid: !0,
|
|
60
|
+
type: "dct:PeriodOfTime",
|
|
61
|
+
"dct:temporal": [
|
|
62
|
+
{
|
|
63
|
+
dataType: "date",
|
|
64
|
+
"dcat:startDate": "",
|
|
65
|
+
"dcat:endDate": ""
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
], g.value = l == null ? void 0 : l.value.map(
|
|
70
|
+
(e) => e.dataType === "dateTime"
|
|
71
|
+
), V.value = new Array(l == null ? void 0 : l.value.length).fill(0), s.length = 0, c.value = [], l.value.forEach(() => {
|
|
72
|
+
s.push({
|
|
73
|
+
startDate: !1,
|
|
74
|
+
startDateMessage: "",
|
|
75
|
+
endDate: !1,
|
|
76
|
+
endDateMessage: "",
|
|
77
|
+
startTime: !1,
|
|
78
|
+
startTimeMessage: "",
|
|
79
|
+
endTime: !1,
|
|
80
|
+
endTimeMessage: ""
|
|
81
|
+
}), c.value.push({ startDate: !1, endDate: !1, message: "" });
|
|
82
|
+
})) : (l.value = i.value.Covering["dcat:temporalResolution"]["dct:temporal"] || [], g.value = l == null ? void 0 : l.value.map(
|
|
83
|
+
(e) => e.dataType === "dateTime"
|
|
84
|
+
));
|
|
85
|
+
const R = M([
|
|
86
|
+
{
|
|
87
|
+
isValid: !0,
|
|
88
|
+
type: "dct:PeriodOfTime",
|
|
89
|
+
"dct:temporal": [
|
|
90
|
+
{ dataType: "date", "dcat:startDate": "", "dcat:endDate": "" }
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
]), T = (e) => g.value[e] === !0;
|
|
94
|
+
ae(
|
|
95
|
+
() => y("message.dataupload.menu.reset"),
|
|
96
|
+
(e) => {
|
|
97
|
+
E.value = e;
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
const Y = (e) => {
|
|
101
|
+
const t = i.value.Covering["dcat:temporalResolution"]["dct:temporal"][e];
|
|
102
|
+
if (!t) return !1;
|
|
103
|
+
const d = t["dcat:startDate"] && t["dcat:startDate"].trim() !== "", o = t["dcat:endDate"] && t["dcat:endDate"].trim() !== "", a = T(e) && t.startTime && t.startTime.trim() !== "", _ = T(e) && t.endTime && t.endTime.trim() !== "";
|
|
104
|
+
return d || o || a || _;
|
|
105
|
+
}, F = (e) => {
|
|
106
|
+
const t = i.value.Covering["dcat:temporalResolution"]["dct:temporal"][e];
|
|
107
|
+
if (!t) return !0;
|
|
108
|
+
s[e] || (s[e] = {
|
|
109
|
+
startDate: !1,
|
|
110
|
+
startDateMessage: "",
|
|
111
|
+
endDate: !1,
|
|
112
|
+
endDateMessage: "",
|
|
113
|
+
startTime: !1,
|
|
114
|
+
startTimeMessage: "",
|
|
115
|
+
endTime: !1,
|
|
116
|
+
endTimeMessage: ""
|
|
117
|
+
}), s[e] = {
|
|
118
|
+
startDate: !1,
|
|
119
|
+
startDateMessage: "",
|
|
120
|
+
endDate: !1,
|
|
121
|
+
endDateMessage: "",
|
|
122
|
+
startTime: !1,
|
|
123
|
+
startTimeMessage: "",
|
|
124
|
+
endTime: !1,
|
|
125
|
+
endTimeMessage: ""
|
|
126
|
+
};
|
|
127
|
+
const d = Y(e);
|
|
128
|
+
let o = !1;
|
|
129
|
+
return d && ((!t["dcat:startDate"] || t["dcat:startDate"].trim() === "") && (s[e].startDate = !0, s[e].startDateMessage = "Startdatum ist erforderlich", o = !0), (!t["dcat:endDate"] || t["dcat:endDate"].trim() === "") && (s[e].endDate = !0, s[e].endDateMessage = "Enddatum ist erforderlich", o = !0), T(e) && ((!t.startTime || t.startTime.trim() === "") && (s[e].startTime = !0, s[e].startTimeMessage = "Startzeit ist erforderlich", o = !0), (!t.endTime || t.endTime.trim() === "") && (s[e].endTime = !0, s[e].endTimeMessage = "Endzeit ist erforderlich", o = !0))), !o;
|
|
130
|
+
}, O = (e) => {
|
|
131
|
+
w[e] && clearTimeout(w[e]), w[e] = setTimeout(() => {
|
|
132
|
+
F(e);
|
|
133
|
+
}, 200);
|
|
134
|
+
}, P = () => {
|
|
135
|
+
var t;
|
|
136
|
+
let e = !1;
|
|
137
|
+
return (t = i.value.Covering["dcat:temporalResolution"]) != null && t["dct:temporal"] && i.value.Covering["dcat:temporalResolution"]["dct:temporal"].forEach(
|
|
138
|
+
(d, o) => {
|
|
139
|
+
F(o) || (e = !0), $(o) || (e = !0);
|
|
140
|
+
}
|
|
141
|
+
), e;
|
|
142
|
+
}, Z = () => {
|
|
143
|
+
if (P())
|
|
144
|
+
return;
|
|
145
|
+
const e = l.value.reduce(
|
|
146
|
+
(t, d) => Math.max(t, d.id || 0),
|
|
147
|
+
0
|
|
148
|
+
);
|
|
149
|
+
l.value.push({ id: e + 1, dataType: "date" }), E.value = y("message.dataupload.menu.delete"), L();
|
|
150
|
+
}, L = () => {
|
|
151
|
+
g.value.push(!1), V.value.push(0), s.push({
|
|
152
|
+
startDate: !1,
|
|
153
|
+
startDateMessage: "",
|
|
154
|
+
endDate: !1,
|
|
155
|
+
endDateMessage: "",
|
|
156
|
+
startTime: !1,
|
|
157
|
+
startTimeMessage: "",
|
|
158
|
+
endTime: !1,
|
|
159
|
+
endTimeMessage: ""
|
|
160
|
+
}), c.value.push({ startDate: !1, endDate: !1, message: "" });
|
|
161
|
+
}, x = (e, t) => {
|
|
162
|
+
const d = e.target.checked;
|
|
163
|
+
g.value[t] = d, g.value[t] ? i.value.Covering["dcat:temporalResolution"]["dct:temporal"][t].dataType = "dateTime" : (i.value.Covering["dcat:temporalResolution"]["dct:temporal"][t].dataType = "date", s[t] && (s[t].startTimeMessage = "", s[t].endTimeMessage = "")), O(t);
|
|
164
|
+
}, $ = (e) => {
|
|
165
|
+
for (; c.value.length <= e; )
|
|
166
|
+
c.value.push({ startDate: !1, endDate: !1, message: "" });
|
|
167
|
+
const t = i.value.Covering["dcat:temporalResolution"]["dct:temporal"][e]["dcat:startDate"], d = i.value.Covering["dcat:temporalResolution"]["dct:temporal"][e]["dcat:endDate"];
|
|
168
|
+
c.value[e] || (c.value[e] = { startDate: !1, endDate: !1, message: "" }), c.value[e] = { startDate: !1, endDate: !1, message: "" };
|
|
169
|
+
let o = !0;
|
|
170
|
+
if (t && d) {
|
|
171
|
+
const a = new Date(t);
|
|
172
|
+
new Date(d) < a && (c.value[e] = {
|
|
173
|
+
startDate: !0,
|
|
174
|
+
endDate: !0,
|
|
175
|
+
message: "Enddatum muss nach dem Aktualisierungsdatum liegen"
|
|
176
|
+
}, o = !1);
|
|
177
|
+
}
|
|
178
|
+
return R.value[0].isValid = o, o;
|
|
179
|
+
}, C = (e, t, d, o) => {
|
|
180
|
+
i.value.Covering["dcat:temporalResolution"] !== void 0 || (i.value.Covering["dcat:temporalResolution"] = {
|
|
181
|
+
isValid: !0,
|
|
182
|
+
type: "dct:PeriodOfTime",
|
|
183
|
+
"dct:temporal": [
|
|
184
|
+
{
|
|
185
|
+
dataType: "date",
|
|
186
|
+
"dcat:startDate": "",
|
|
187
|
+
"dcat:endDate": ""
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
}), i.value.Covering["dcat:temporalResolution"]["dct:temporal"][t][d] = e, $(t), O(t);
|
|
191
|
+
}, ee = (e) => {
|
|
192
|
+
l.value[e] && (l.value[e]["dcat:startDate"] = "", l.value[e]["dcat:endDate"] = "", "startTime" in l.value[e] && (l.value[e].startTime = ""), "endTime" in l.value[e] && (l.value[e].endTime = ""), R.value[0]["dct:temporal"][e] = {
|
|
193
|
+
dataType: "date",
|
|
194
|
+
"dcat:startDate": "",
|
|
195
|
+
"dcat:endDate": ""
|
|
196
|
+
}, g.value[e] = !1, V.value[e]++, c.value[e] = { startDate: !1, endDate: !1, message: "" }, s[e] && (s[e] = {
|
|
197
|
+
startDate: !1,
|
|
198
|
+
startDateMessage: "",
|
|
199
|
+
endDate: !1,
|
|
200
|
+
endDateMessage: "",
|
|
201
|
+
startTime: !1,
|
|
202
|
+
startTimeMessage: "",
|
|
203
|
+
endTime: !1,
|
|
204
|
+
endTimeMessage: ""
|
|
205
|
+
}), k.inRap ? K("Covering").value[Object.keys(K("Covering").value)[1]] = R : k.context.node.input(R));
|
|
206
|
+
}, te = (e) => {
|
|
207
|
+
i.value.Covering["dcat:temporalResolution"]["dct:temporal"].splice(
|
|
208
|
+
e,
|
|
209
|
+
1
|
|
210
|
+
), l.value = i.value.Covering["dcat:temporalResolution"]["dct:temporal"], g.value.splice(e, 1), V.value.splice(e, 1), c.value.splice(e, 1), s.splice(e, 1), k.inRap || k.context.node.input(R), l.value.length === 1 && (E.value = y("message.dataupload.menu.reset"));
|
|
211
|
+
};
|
|
212
|
+
return Q({
|
|
213
|
+
validateAllItems: P
|
|
214
|
+
}), (e, t) => {
|
|
215
|
+
var d;
|
|
216
|
+
return u(), m("div", {
|
|
217
|
+
class: z(["dpiV3InnerComponentWrap", { inRapModal: h.inRap }])
|
|
218
|
+
}, [
|
|
219
|
+
h.inRap ? v("", !0) : (u(), m("h4", ue, D(e.$t("message.dataupload.datasets.dcat:temporalResolution.title")), 1)),
|
|
220
|
+
h.inRap ? v("", !0) : (u(), m("div", ce, D(e.$t("message.dataupload.datasets.dcat:temporalResolution.description")), 1)),
|
|
221
|
+
h.inRap ? (u(), m("div", me, [
|
|
222
|
+
f("span", pe, D(e.$t("message.metadata.temporal")) + " (optional)", 1)
|
|
223
|
+
])) : v("", !0),
|
|
224
|
+
(u(!0), m(se, null, le(((d = r(i).Covering["dcat:temporalResolution"]) == null ? void 0 : d["dct:temporal"]) || e.initializedObject, (o, a) => {
|
|
225
|
+
var _, J, U, A, B, N, H;
|
|
226
|
+
return u(), m("div", {
|
|
227
|
+
class: z(["dpiV3AutoCompleteWrap", { marginRap: h.inRap && a + 1 < r(l).length }])
|
|
228
|
+
}, [
|
|
229
|
+
o != "" ? (u(), m("div", fe, [
|
|
230
|
+
f("div", ve, [
|
|
231
|
+
p(b, {
|
|
232
|
+
onInput: (n) => C(n.target.value, a, "dcat:startDate"),
|
|
233
|
+
defaultInput: !0,
|
|
234
|
+
addOnText: !1,
|
|
235
|
+
eraseable: !1,
|
|
236
|
+
datePicker: !0,
|
|
237
|
+
infoIcon: !1,
|
|
238
|
+
value: "TT/MM/JJJJ",
|
|
239
|
+
label: "Von",
|
|
240
|
+
preIcon: !1,
|
|
241
|
+
inputFieldSize: "large",
|
|
242
|
+
initialHintText: !1,
|
|
243
|
+
showEndIcon: !1,
|
|
244
|
+
inputType: "date",
|
|
245
|
+
modelValue: o["dcat:startDate"],
|
|
246
|
+
"onUpdate:modelValue": (n) => o["dcat:startDate"] = n,
|
|
247
|
+
showError: (_ = r(s)[a]) == null ? void 0 : _.startDate
|
|
248
|
+
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showError"]),
|
|
249
|
+
(J = r(s)[a]) != null && J.startDateMessage ? (u(), m("div", ge, [
|
|
250
|
+
p(r(I), {
|
|
251
|
+
size: 16,
|
|
252
|
+
weight: "fill"
|
|
253
|
+
}),
|
|
254
|
+
f("span", Te, D(r(s)[a].startDateMessage), 1)
|
|
255
|
+
])) : v("", !0),
|
|
256
|
+
W(p(b, {
|
|
257
|
+
onInput: (n) => C(n.target.value, a, "startTime"),
|
|
258
|
+
defaultInput: !0,
|
|
259
|
+
addOnText: !1,
|
|
260
|
+
eraseable: !1,
|
|
261
|
+
timePicker: !0,
|
|
262
|
+
inputType: "time",
|
|
263
|
+
infoIcon: !1,
|
|
264
|
+
value: "00:00",
|
|
265
|
+
label: !1,
|
|
266
|
+
preIcon: !1,
|
|
267
|
+
inputFieldSize: "large",
|
|
268
|
+
initialHintText: !1,
|
|
269
|
+
showEndIcon: !1,
|
|
270
|
+
modelValue: o.startTime,
|
|
271
|
+
"onUpdate:modelValue": (n) => o.startTime = n
|
|
272
|
+
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]), [
|
|
273
|
+
[q, T(a)]
|
|
274
|
+
]),
|
|
275
|
+
T(a) && ((U = r(s)[a]) != null && U.startTimeMessage) ? (u(), m("div", De, [
|
|
276
|
+
p(r(I), {
|
|
277
|
+
size: 16,
|
|
278
|
+
weight: "fill"
|
|
279
|
+
}),
|
|
280
|
+
f("span", he, D(r(s)[a].startTimeMessage), 1)
|
|
281
|
+
])) : v("", !0)
|
|
282
|
+
]),
|
|
283
|
+
f("div", Me, [
|
|
284
|
+
p(b, {
|
|
285
|
+
onInput: (n) => C(n.target.value, a, "dcat:endDate"),
|
|
286
|
+
defaultInput: !0,
|
|
287
|
+
addOnText: !1,
|
|
288
|
+
eraseable: !1,
|
|
289
|
+
datePicker: !0,
|
|
290
|
+
infoIcon: !1,
|
|
291
|
+
value: "TT/MM/JJJJ",
|
|
292
|
+
label: "bis",
|
|
293
|
+
preIcon: !1,
|
|
294
|
+
inputFieldSize: "large",
|
|
295
|
+
initialHintText: !1,
|
|
296
|
+
showEndIcon: !1,
|
|
297
|
+
inputType: "date",
|
|
298
|
+
modelValue: o["dcat:endDate"],
|
|
299
|
+
"onUpdate:modelValue": (n) => o["dcat:endDate"] = n,
|
|
300
|
+
showError: (A = r(s)[a]) == null ? void 0 : A.endDate
|
|
301
|
+
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showError"]),
|
|
302
|
+
(B = r(s)[a]) != null && B.endDateMessage ? (u(), m("div", ye, [
|
|
303
|
+
p(r(I), {
|
|
304
|
+
size: 16,
|
|
305
|
+
weight: "fill"
|
|
306
|
+
}),
|
|
307
|
+
f("span", Ve, D(r(s)[a].endDateMessage), 1)
|
|
308
|
+
])) : v("", !0),
|
|
309
|
+
W(p(b, {
|
|
310
|
+
onInput: (n) => C(n.target.value, a, "endTime"),
|
|
311
|
+
defaultInput: !0,
|
|
312
|
+
addOnText: !1,
|
|
313
|
+
eraseable: !1,
|
|
314
|
+
timePicker: !0,
|
|
315
|
+
inputType: "time",
|
|
316
|
+
infoIcon: !1,
|
|
317
|
+
value: "00:00",
|
|
318
|
+
label: !1,
|
|
319
|
+
preIcon: !1,
|
|
320
|
+
inputFieldSize: "large",
|
|
321
|
+
initialHintText: !1,
|
|
322
|
+
showEndIcon: !1,
|
|
323
|
+
modelValue: o.endTime,
|
|
324
|
+
"onUpdate:modelValue": (n) => o.endTime = n
|
|
325
|
+
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]), [
|
|
326
|
+
[q, T(a)]
|
|
327
|
+
]),
|
|
328
|
+
T(a) && ((N = r(s)[a]) != null && N.endTimeMessage) ? (u(), m("div", Re, [
|
|
329
|
+
p(r(I), {
|
|
330
|
+
size: 16,
|
|
331
|
+
weight: "fill"
|
|
332
|
+
}),
|
|
333
|
+
f("span", _e, D(r(s)[a].endTimeMessage), 1)
|
|
334
|
+
])) : v("", !0)
|
|
335
|
+
])
|
|
336
|
+
])) : v("", !0),
|
|
337
|
+
(H = r(c)[a]) != null && H.message ? (u(), m("div", Ie, [
|
|
338
|
+
p(r(I), {
|
|
339
|
+
size: 16,
|
|
340
|
+
weight: "fill"
|
|
341
|
+
}),
|
|
342
|
+
f("span", ke, D(r(c)[a].message), 1)
|
|
343
|
+
])) : v("", !0),
|
|
344
|
+
f("div", Ce, [
|
|
345
|
+
(u(), m("div", {
|
|
346
|
+
key: `checkbox-${a}-${V.value[a]}`
|
|
347
|
+
}, [
|
|
348
|
+
p(oe, {
|
|
349
|
+
type: "checkbox",
|
|
350
|
+
state: T(a) ? "checked" : "",
|
|
351
|
+
text: {
|
|
352
|
+
label: e.$t(
|
|
353
|
+
"message.dataupload.datasets.dcat:temporalResolution.input.checkbox.label"
|
|
354
|
+
)
|
|
355
|
+
},
|
|
356
|
+
data: [],
|
|
357
|
+
onChange: (n) => x(n, a)
|
|
358
|
+
}, null, 8, ["state", "text", "onChange"])
|
|
359
|
+
])),
|
|
360
|
+
r(l).length > 1 ? (u(), G(S, {
|
|
361
|
+
key: 0,
|
|
362
|
+
buttonText: r(y)("message.dataupload.menu.delete"),
|
|
363
|
+
size: "small",
|
|
364
|
+
iconStart: "trash",
|
|
365
|
+
variant: "tertiary",
|
|
366
|
+
onClick: (n) => te(a)
|
|
367
|
+
}, null, 8, ["buttonText", "onClick"])) : (u(), G(S, {
|
|
368
|
+
key: 1,
|
|
369
|
+
buttonText: r(y)("message.dataupload.menu.reset"),
|
|
370
|
+
size: "small",
|
|
371
|
+
iconStart: "reset",
|
|
372
|
+
variant: "tertiary",
|
|
373
|
+
onClick: (n) => ee(a)
|
|
374
|
+
}, null, 8, ["buttonText", "onClick"]))
|
|
375
|
+
])
|
|
376
|
+
], 2);
|
|
377
|
+
}), 256)),
|
|
378
|
+
f("div", {
|
|
379
|
+
class: z(["dpiV3_tempAddMore", { inRapAddMore: h.inRap }])
|
|
380
|
+
}, [
|
|
381
|
+
p(S, {
|
|
382
|
+
buttonText: e.$t("message.dataupload.datasets.dcat:temporalResolution.addMore"),
|
|
383
|
+
size: "medium",
|
|
384
|
+
iconStart: "plus",
|
|
385
|
+
variant: "tertiary",
|
|
386
|
+
onClick: t[0] || (t[0] = (o) => Z())
|
|
387
|
+
}, null, 8, ["buttonText"])
|
|
388
|
+
], 2)
|
|
389
|
+
], 2);
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
}, Be = /* @__PURE__ */ de(be, [["__scopeId", "data-v-433b3757"]]);
|
|
393
|
+
export {
|
|
394
|
+
Be as default
|
|
395
|
+
};
|
|
@@ -19,14 +19,14 @@ const E = { class: "V3-typography dpiV3_Frame_3841" }, T = { class: "copy-large-
|
|
|
19
19
|
const { t: x } = _(), { isEditMode: p } = V(), c = d;
|
|
20
20
|
let e = m([{ isValid: "unset", "@value": "", "@language": "de" }]);
|
|
21
21
|
p.value || c.context.node.input(e);
|
|
22
|
-
const
|
|
22
|
+
const u = (t) => {
|
|
23
23
|
t.target.value != "" ? e.value[0].isValid = !0 : e.value[0].isValid = !1, e.value[0]["@value"] = t.target.value;
|
|
24
24
|
};
|
|
25
25
|
return (t, o) => (l(), s("div", E, [
|
|
26
26
|
a("h4", null, n(t.$t("message.dataupload.datasets.dct:title.title")), 1),
|
|
27
27
|
a("div", T, n(t.$t("message.dataupload.datasets.dct:title.description")), 1),
|
|
28
28
|
r(h, {
|
|
29
|
-
onInput:
|
|
29
|
+
onInput: u,
|
|
30
30
|
addOnText: !1,
|
|
31
31
|
datePicker: !1,
|
|
32
32
|
infoIcon: !1,
|
|
@@ -37,7 +37,7 @@ const E = { class: "V3-typography dpiV3_Frame_3841" }, T = { class: "copy-large-
|
|
|
37
37
|
showEndIcon: !1,
|
|
38
38
|
showError: i(e)[0].isValid === !1
|
|
39
39
|
}, null, 8, ["showError"]),
|
|
40
|
-
i(e).find((
|
|
40
|
+
i(e).find((f) => f.isValid === !1) ? (l(), s("div", y, [
|
|
41
41
|
r(i(v), {
|
|
42
42
|
size: 16,
|
|
43
43
|
weight: "fill"
|
|
@@ -46,7 +46,7 @@ const E = { class: "V3-typography dpiV3_Frame_3841" }, T = { class: "copy-large-
|
|
|
46
46
|
])) : g("", !0)
|
|
47
47
|
]));
|
|
48
48
|
}
|
|
49
|
-
}, M = /* @__PURE__ */ I(b, [["__scopeId", "data-v-
|
|
49
|
+
}, M = /* @__PURE__ */ I(b, [["__scopeId", "data-v-d4e351cd"]]);
|
|
50
50
|
export {
|
|
51
51
|
M as default
|
|
52
52
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as u, createElementBlock as d, openBlock as p, createElementVNode as s, toDisplayString as r, createVNode as c, createCommentVNode as _, unref as o } from "vue";
|
|
2
2
|
import { PhWarning as D } from "@phosphor-icons/vue";
|
|
3
3
|
import V from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import w from "../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
import { useEditModeInfo as S } from "../composables/useDpiEditMode.js";
|
|
7
|
-
const y = { class: "V3-typography" }, I = { class: "dpiV3InnerComponentWrap" },
|
|
7
|
+
const y = { class: "V3-typography" }, I = { class: "dpiV3InnerComponentWrap" }, M = { class: "copy-large-regular" }, T = { class: "input-container" }, b = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "dpiV3_errormsgWrapper"
|
|
10
10
|
}, k = { class: "copy-mini-regular" }, E = {
|
|
@@ -13,36 +13,40 @@ const y = { class: "V3-typography" }, I = { class: "dpiV3InnerComponentWrap" },
|
|
|
13
13
|
context: Object
|
|
14
14
|
},
|
|
15
15
|
setup(f) {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
let e =
|
|
19
|
-
const { isEditMode:
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
const t =
|
|
16
|
+
const g = f, i = /* @__PURE__ */ new Date();
|
|
17
|
+
i.getFullYear(), String(i.getMonth() + 1).padStart(2, "0"), String(i.getDate()).padStart(2, "0");
|
|
18
|
+
let e = u([{ isValid: "unset", "@type": "http://www.w3.org/2001/XMLSchema#date" }]), n = u("Bitte geben Sie ein Aktualisierungsdatum ein, bevor Sie fortfahren.");
|
|
19
|
+
const { isEditMode: m } = S();
|
|
20
|
+
m.value || g.context.node.input(e);
|
|
21
|
+
const v = (l) => {
|
|
22
|
+
const t = l.target.value;
|
|
23
23
|
if (t === "") {
|
|
24
|
-
e.value[0].isValid = !1,
|
|
24
|
+
e.value[0].isValid = !1, n.value = "Bitte geben Sie ein Aktualisierungsdatum ein, bevor Sie fortfahren.", e.value[0]["@value"] = t;
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
if (isNaN(
|
|
29
|
-
e.value[0].isValid = !1,
|
|
27
|
+
const a = new Date(t);
|
|
28
|
+
if (isNaN(a.getTime())) {
|
|
29
|
+
e.value[0].isValid = !1, n.value = "Bitte geben Sie ein gültiges Datum ein.", e.value[0]["@value"] = t;
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
if (a.getFullYear() < 1950) {
|
|
33
|
+
e.value[0].isValid = !1, n.value = "Das Jahr darf nicht vor 1950 liegen.", e.value[0]["@value"] = t;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const h = new Date(i.getFullYear(), i.getMonth(), i.getDate());
|
|
37
|
+
if (new Date(a.getFullYear(), a.getMonth(), a.getDate()) > h) {
|
|
38
|
+
e.value[0].isValid = !1, n.value = "Das Datum darf nicht in der Zukunft liegen.", e.value[0]["@value"] = t;
|
|
35
39
|
return;
|
|
36
40
|
}
|
|
37
41
|
e.value[0].isValid = !0, e.value[0]["@value"] = t;
|
|
38
42
|
};
|
|
39
|
-
return (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
return (l, t) => (p(), d("div", y, [
|
|
44
|
+
s("div", I, [
|
|
45
|
+
s("h4", null, r(l.$t("message.dataupload.datasets.dct:modified.title")), 1),
|
|
46
|
+
s("div", M, r(l.$t("message.dataupload.datasets.dct:modified.description")), 1),
|
|
47
|
+
s("div", T, [
|
|
44
48
|
c(V, {
|
|
45
|
-
onInput:
|
|
49
|
+
onInput: v,
|
|
46
50
|
defaultInput: !0,
|
|
47
51
|
addOnText: !1,
|
|
48
52
|
eraseable: !1,
|
|
@@ -55,21 +59,21 @@ const y = { class: "V3-typography" }, I = { class: "dpiV3InnerComponentWrap" },
|
|
|
55
59
|
initialHintText: !1,
|
|
56
60
|
showEndIcon: !1,
|
|
57
61
|
inputType: "date",
|
|
58
|
-
showError:
|
|
59
|
-
modelValue:
|
|
62
|
+
showError: o(e)[0].isValid === !1,
|
|
63
|
+
modelValue: l.todayDate
|
|
60
64
|
}, null, 8, ["showError", "modelValue"]),
|
|
61
|
-
|
|
62
|
-
c(
|
|
65
|
+
o(e).find((a) => a.isValid === !1) ? (p(), d("div", b, [
|
|
66
|
+
c(o(D), {
|
|
63
67
|
size: 16,
|
|
64
68
|
weight: "fill"
|
|
65
69
|
}),
|
|
66
|
-
|
|
70
|
+
s("span", k, r(o(n)), 1)
|
|
67
71
|
])) : _("", !0)
|
|
68
72
|
])
|
|
69
73
|
])
|
|
70
74
|
]));
|
|
71
75
|
}
|
|
72
|
-
},
|
|
76
|
+
}, A = /* @__PURE__ */ w(E, [["__scopeId", "data-v-4eff5f78"]]);
|
|
73
77
|
export {
|
|
74
|
-
|
|
78
|
+
A as default
|
|
75
79
|
};
|
|
@@ -4,7 +4,7 @@ import { PhWarning as V } from "@phosphor-icons/vue";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import v from "../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
import { useEditModeInfo as _ } from "../composables/useDpiEditMode.js";
|
|
7
|
-
const
|
|
7
|
+
const b = { class: "dpiV3InnerComponentWrap" }, E = { class: "copy-large-regular" }, I = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "dpiV3_errormsgWrapper"
|
|
10
10
|
}, y = {
|
|
@@ -18,27 +18,28 @@ const E = { class: "dpiV3InnerComponentWrap" }, I = { class: "copy-large-regular
|
|
|
18
18
|
const c = (e) => {
|
|
19
19
|
e.target.value != "" ? t.value[0].isValid = !0 : t.value[0].isValid = !1, t.value[0]["@value"] = e.target.value;
|
|
20
20
|
}, { isEditMode: u } = _();
|
|
21
|
-
return u.value || p.context.node.input(t), (e, i) => (r(), o("div",
|
|
21
|
+
return u.value || p.context.node.input(t), (e, i) => (r(), o("div", b, [
|
|
22
22
|
a("h4", null, n(e.$t("message.dataupload.datasets.dct:description.title")), 1),
|
|
23
|
-
a("div",
|
|
23
|
+
a("div", E, n(e.$t("message.dataupload.datasets.dct:description.description")), 1),
|
|
24
24
|
l(h, {
|
|
25
25
|
onInput: c,
|
|
26
26
|
class: "dpiV3_input-field",
|
|
27
27
|
hint: !1,
|
|
28
|
+
isDescription: !0,
|
|
28
29
|
label: e.$t("message.dataupload.datasets.dct:description.input.title"),
|
|
29
30
|
placeholder: e.$t("message.dataupload.datasets.dct:description.input.placeholder"),
|
|
30
31
|
showError: s(t)[0].isValid === !1
|
|
31
32
|
}, null, 8, ["label", "placeholder", "showError"]),
|
|
32
|
-
s(t).find((m) => m.isValid === !1) ? (r(), o("div",
|
|
33
|
+
s(t).find((m) => m.isValid === !1) ? (r(), o("div", I, [
|
|
33
34
|
l(s(V), {
|
|
34
35
|
size: 16,
|
|
35
36
|
weight: "fill"
|
|
36
37
|
}),
|
|
37
|
-
i[0] || (i[0] = a("span", { class: "copy-mini-regular" }, "Bitte geben Sie
|
|
38
|
+
i[0] || (i[0] = a("span", { class: "copy-mini-regular" }, "Bitte geben Sie eine Beschreibung ein, bevor Sie fortfahren.", -1))
|
|
38
39
|
])) : g("", !0)
|
|
39
40
|
]));
|
|
40
41
|
}
|
|
41
|
-
}, S = /* @__PURE__ */ v(y, [["__scopeId", "data-v-
|
|
42
|
+
}, S = /* @__PURE__ */ v(y, [["__scopeId", "data-v-c87f7644"]]);
|
|
42
43
|
export {
|
|
43
44
|
S as default
|
|
44
45
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import "@formkit/core";
|
|
2
2
|
import { provide as e, computed as n, toValue as i, inject as p } from "vue";
|
|
3
3
|
const o = Symbol("dpiContext");
|
|
4
|
-
function
|
|
4
|
+
function c() {
|
|
5
5
|
const t = p(o);
|
|
6
|
-
|
|
7
|
-
throw new Error("[useDpiContext] DPI Context not found. Did you forget to inject it?");
|
|
8
|
-
return t;
|
|
6
|
+
return t || !1;
|
|
9
7
|
}
|
|
10
|
-
function
|
|
8
|
+
function x(t) {
|
|
11
9
|
e(o, n(() => i(t)));
|
|
12
10
|
}
|
|
13
11
|
export {
|
|
14
12
|
o as dpiContextKey,
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
x as setupDpiContext,
|
|
14
|
+
c as useDpiContext
|
|
17
15
|
};
|