@piveau/dpi 0.1.0-beta.67 → 0.1.0-beta.69
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/HappyFlowComponents/ui/ModalSimpleV3.vue.js +5 -5
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +53 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +136 -134
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +236 -239
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +2 -2
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +31 -31
- package/dist/data-provider-interface/views/InputPage.vue.js +80 -80
- package/package.json +1 -1
|
@@ -325,7 +325,7 @@ const Xe = { key: 0 }, Ze = {
|
|
|
325
325
|
a("div", zt, [
|
|
326
326
|
(i(!0), l(S, null, w(T.value["dct:temporal"] || [], (n) => (i(), l("div", Et, [
|
|
327
327
|
a("div", Lt, [
|
|
328
|
-
t[10] || (t[10] = P("
|
|
328
|
+
t[10] || (t[10] = P(" Von ", -1)),
|
|
329
329
|
a("div", null, [
|
|
330
330
|
a("span", null, s(new Date(n["dcat:startDate"]).toLocaleDateString(
|
|
331
331
|
"de-DE",
|
|
@@ -470,7 +470,7 @@ const Xe = { key: 0 }, Ze = {
|
|
|
470
470
|
], 64);
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
|
-
}, Na = /* @__PURE__ */ je(ga, [["__scopeId", "data-v-
|
|
473
|
+
}, Na = /* @__PURE__ */ je(ga, [["__scopeId", "data-v-05db5cbd"]]);
|
|
474
474
|
export {
|
|
475
475
|
Na as default
|
|
476
476
|
};
|
|
@@ -8,8 +8,8 @@ import "@formkit/core";
|
|
|
8
8
|
import { useFormValues as re } from "../composables/useDpiFormValues.js";
|
|
9
9
|
import { useEditModeInfo as ne } from "../composables/useDpiEditMode.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
const
|
|
11
|
+
import ie from "../../_virtual/_plugin-vue_export-helper.js";
|
|
12
|
+
const de = { key: 0 }, ue = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "copy-large-regular"
|
|
15
15
|
}, ce = { key: 2 }, me = { class: "dpiV3_label" }, pe = {
|
|
@@ -100,8 +100,8 @@ const ie = { key: 0 }, ue = {
|
|
|
100
100
|
const X = (e) => {
|
|
101
101
|
const t = r.value.Covering["dcat:temporalResolution"]["dct:temporal"][e];
|
|
102
102
|
if (!t) return !1;
|
|
103
|
-
const
|
|
104
|
-
return
|
|
103
|
+
const d = t["dcat:startDate"] && t["dcat:startDate"].trim() !== "", l = t["dcat:endDate"] && t["dcat:endDate"].trim() !== "", a = T(e) && t.startTime && t.startTime.trim() !== "", R = T(e) && t.endTime && t.endTime.trim() !== "";
|
|
104
|
+
return d || l || a || R;
|
|
105
105
|
}, F = (e) => {
|
|
106
106
|
const t = r.value.Covering["dcat:temporalResolution"]["dct:temporal"][e];
|
|
107
107
|
if (!t) return !0;
|
|
@@ -124,9 +124,9 @@ const ie = { key: 0 }, ue = {
|
|
|
124
124
|
endTime: !1,
|
|
125
125
|
endTimeMessage: ""
|
|
126
126
|
};
|
|
127
|
-
const
|
|
127
|
+
const d = X(e);
|
|
128
128
|
let l = !1;
|
|
129
|
-
return
|
|
129
|
+
return d && ((!t["dcat:startDate"] || t["dcat:startDate"].trim() === "") && (s[e].startDate = !0, s[e].startDateMessage = "Startdatum ist erforderlich", l = !0), (!t["dcat:endDate"] || t["dcat:endDate"].trim() === "") && (s[e].endDate = !0, s[e].endDateMessage = "Enddatum ist erforderlich", l = !0), T(e) && ((!t.startTime || t.startTime.trim() === "") && (s[e].startTime = !0, s[e].startTimeMessage = "Startzeit ist erforderlich", l = !0), (!t.endTime || t.endTime.trim() === "") && (s[e].endTime = !0, s[e].endTimeMessage = "Endzeit ist erforderlich", l = !0))), !l;
|
|
130
130
|
}, P = (e) => {
|
|
131
131
|
C[e] && clearTimeout(C[e]), C[e] = setTimeout(() => {
|
|
132
132
|
F(e);
|
|
@@ -135,7 +135,7 @@ const ie = { key: 0 }, ue = {
|
|
|
135
135
|
var t;
|
|
136
136
|
let e = !1;
|
|
137
137
|
return (t = r.value.Covering["dcat:temporalResolution"]) != null && t["dct:temporal"] && r.value.Covering["dcat:temporalResolution"]["dct:temporal"].forEach(
|
|
138
|
-
(
|
|
138
|
+
(d, l) => {
|
|
139
139
|
F(l) || (e = !0), O(l) || (e = !0);
|
|
140
140
|
}
|
|
141
141
|
), e;
|
|
@@ -143,7 +143,7 @@ const ie = { key: 0 }, ue = {
|
|
|
143
143
|
if ($())
|
|
144
144
|
return;
|
|
145
145
|
const e = n.value.reduce(
|
|
146
|
-
(t,
|
|
146
|
+
(t, d) => Math.max(t, d.id || 0),
|
|
147
147
|
0
|
|
148
148
|
);
|
|
149
149
|
n.value.push({ id: e + 1, dataType: "date" }), b.value = y("message.dataupload.menu.delete"), Z();
|
|
@@ -159,24 +159,24 @@ const ie = { key: 0 }, ue = {
|
|
|
159
159
|
endTimeMessage: ""
|
|
160
160
|
}), c.value.push({ startDate: !1, endDate: !1, message: "" });
|
|
161
161
|
}, L = (e, t) => {
|
|
162
|
-
const
|
|
163
|
-
v.value[t] =
|
|
162
|
+
const d = e.target.checked;
|
|
163
|
+
v.value[t] = d, v.value[t] ? r.value.Covering["dcat:temporalResolution"]["dct:temporal"][t].dataType = "dateTime" : (r.value.Covering["dcat:temporalResolution"]["dct:temporal"][t].dataType = "date", s[t] && (s[t].startTimeMessage = "", s[t].endTimeMessage = "")), P(t);
|
|
164
164
|
}, O = (e) => {
|
|
165
165
|
for (; c.value.length <= e; )
|
|
166
166
|
c.value.push({ startDate: !1, endDate: !1, message: "" });
|
|
167
|
-
const t = r.value.Covering["dcat:temporalResolution"]["dct:temporal"][e]["dcat:startDate"],
|
|
167
|
+
const t = r.value.Covering["dcat:temporalResolution"]["dct:temporal"][e]["dcat:startDate"], d = r.value.Covering["dcat:temporalResolution"]["dct:temporal"][e]["dcat:endDate"];
|
|
168
168
|
c.value[e] || (c.value[e] = { startDate: !1, endDate: !1, message: "" }), c.value[e] = { startDate: !1, endDate: !1, message: "" };
|
|
169
169
|
let l = !0;
|
|
170
|
-
if (t &&
|
|
170
|
+
if (t && d) {
|
|
171
171
|
const a = new Date(t);
|
|
172
|
-
new Date(
|
|
172
|
+
new Date(d) < a && (c.value[e] = {
|
|
173
173
|
startDate: !0,
|
|
174
174
|
endDate: !0,
|
|
175
175
|
message: "Enddatum muss nach dem Aktualisierungsdatum liegen"
|
|
176
176
|
}, l = !1);
|
|
177
177
|
}
|
|
178
178
|
return S.value[0].isValid = l, l;
|
|
179
|
-
}, I = (e, t,
|
|
179
|
+
}, I = (e, t, d, l) => {
|
|
180
180
|
r.value.Covering["dcat:temporalResolution"] !== void 0 || (r.value.Covering["dcat:temporalResolution"] = {
|
|
181
181
|
isValid: !0,
|
|
182
182
|
type: "dct:PeriodOfTime",
|
|
@@ -187,7 +187,7 @@ const ie = { key: 0 }, ue = {
|
|
|
187
187
|
"dcat:endDate": ""
|
|
188
188
|
}
|
|
189
189
|
]
|
|
190
|
-
}), r.value.Covering["dcat:temporalResolution"]["dct:temporal"][t][
|
|
190
|
+
}), r.value.Covering["dcat:temporalResolution"]["dct:temporal"][t][d] = e, O(t), P(t);
|
|
191
191
|
}, x = (e) => {
|
|
192
192
|
const t = r.value.Covering["dcat:temporalResolution"]["dct:temporal"][e];
|
|
193
193
|
t && (t["dcat:startDate"] = "", t["dcat:endDate"] = "", t.startTime = "", t.endTime = "", t.dataType = "date", v.value[e] = !1, V.value[e]++, c.value[e] = { startDate: !1, endDate: !1, message: "" }, s[e] = {
|
|
@@ -209,16 +209,16 @@ const ie = { key: 0 }, ue = {
|
|
|
209
209
|
return K({
|
|
210
210
|
validateAllItems: $
|
|
211
211
|
}), (e, t) => {
|
|
212
|
-
var
|
|
212
|
+
var d;
|
|
213
213
|
return u(), m("div", {
|
|
214
214
|
class: w(["dpiV3InnerComponentWrap", { inRapModal: h.inRap }])
|
|
215
215
|
}, [
|
|
216
|
-
h.inRap ? g("", !0) : (u(), m("h4",
|
|
216
|
+
h.inRap ? g("", !0) : (u(), m("h4", de, D(e.$t("message.dataupload.datasets.dcat:temporalResolution.title")), 1)),
|
|
217
217
|
h.inRap ? g("", !0) : (u(), m("div", ue, D(e.$t("message.dataupload.datasets.dcat:temporalResolution.description")), 1)),
|
|
218
218
|
h.inRap ? (u(), m("div", ce, [
|
|
219
219
|
f("span", me, D(e.$t("message.metadata.temporal")) + " (optional)", 1)
|
|
220
220
|
])) : g("", !0),
|
|
221
|
-
(u(!0), m(ae, null, se(((
|
|
221
|
+
(u(!0), m(ae, null, se(((d = o(r).Covering["dcat:temporalResolution"]) == null ? void 0 : d["dct:temporal"]) || e.initializedObject, (l, a) => {
|
|
222
222
|
var R, J, U, A, B, N, H;
|
|
223
223
|
return u(), m("div", {
|
|
224
224
|
class: w(["dpiV3AutoCompleteWrap", { marginRap: h.inRap && a + 1 < o(n).length }])
|
|
@@ -226,7 +226,7 @@ const ie = { key: 0 }, ue = {
|
|
|
226
226
|
l != "" ? (u(), m("div", pe, [
|
|
227
227
|
f("div", fe, [
|
|
228
228
|
p(k, {
|
|
229
|
-
onInput: (
|
|
229
|
+
onInput: (i) => I(i.target.value, a, "dcat:startDate"),
|
|
230
230
|
defaultInput: !0,
|
|
231
231
|
addOnText: !1,
|
|
232
232
|
eraseable: !1,
|
|
@@ -240,7 +240,7 @@ const ie = { key: 0 }, ue = {
|
|
|
240
240
|
showEndIcon: !1,
|
|
241
241
|
inputType: "date",
|
|
242
242
|
modelValue: l["dcat:startDate"],
|
|
243
|
-
"onUpdate:modelValue": (
|
|
243
|
+
"onUpdate:modelValue": (i) => l["dcat:startDate"] = i,
|
|
244
244
|
showError: (R = o(s)[a]) == null ? void 0 : R.startDate
|
|
245
245
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showError"]),
|
|
246
246
|
(J = o(s)[a]) != null && J.startDateMessage ? (u(), m("div", ge, [
|
|
@@ -251,7 +251,7 @@ const ie = { key: 0 }, ue = {
|
|
|
251
251
|
f("span", ve, D(o(s)[a].startDateMessage), 1)
|
|
252
252
|
])) : g("", !0),
|
|
253
253
|
j(p(k, {
|
|
254
|
-
onInput: (
|
|
254
|
+
onInput: (i) => I(i.target.value, a, "startTime"),
|
|
255
255
|
defaultInput: !0,
|
|
256
256
|
addOnText: !1,
|
|
257
257
|
eraseable: !1,
|
|
@@ -265,7 +265,7 @@ const ie = { key: 0 }, ue = {
|
|
|
265
265
|
initialHintText: !1,
|
|
266
266
|
showEndIcon: !1,
|
|
267
267
|
modelValue: l.startTime,
|
|
268
|
-
"onUpdate:modelValue": (
|
|
268
|
+
"onUpdate:modelValue": (i) => l.startTime = i
|
|
269
269
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]), [
|
|
270
270
|
[q, T(a)]
|
|
271
271
|
]),
|
|
@@ -279,21 +279,21 @@ const ie = { key: 0 }, ue = {
|
|
|
279
279
|
]),
|
|
280
280
|
f("div", he, [
|
|
281
281
|
p(k, {
|
|
282
|
-
onInput: (
|
|
282
|
+
onInput: (i) => I(i.target.value, a, "dcat:endDate"),
|
|
283
283
|
defaultInput: !0,
|
|
284
284
|
addOnText: !1,
|
|
285
285
|
eraseable: !1,
|
|
286
286
|
datePicker: !0,
|
|
287
287
|
infoIcon: !1,
|
|
288
288
|
value: "TT/MM/JJJJ",
|
|
289
|
-
label: "
|
|
289
|
+
label: "Bis",
|
|
290
290
|
preIcon: !1,
|
|
291
291
|
inputFieldSize: "large",
|
|
292
292
|
initialHintText: !1,
|
|
293
293
|
showEndIcon: !1,
|
|
294
294
|
inputType: "date",
|
|
295
295
|
modelValue: l["dcat:endDate"],
|
|
296
|
-
"onUpdate:modelValue": (
|
|
296
|
+
"onUpdate:modelValue": (i) => l["dcat:endDate"] = i,
|
|
297
297
|
showError: (A = o(s)[a]) == null ? void 0 : A.endDate
|
|
298
298
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showError"]),
|
|
299
299
|
(B = o(s)[a]) != null && B.endDateMessage ? (u(), m("div", Me, [
|
|
@@ -304,7 +304,7 @@ const ie = { key: 0 }, ue = {
|
|
|
304
304
|
f("span", ye, D(o(s)[a].endDateMessage), 1)
|
|
305
305
|
])) : g("", !0),
|
|
306
306
|
j(p(k, {
|
|
307
|
-
onInput: (
|
|
307
|
+
onInput: (i) => I(i.target.value, a, "endTime"),
|
|
308
308
|
defaultInput: !0,
|
|
309
309
|
addOnText: !1,
|
|
310
310
|
eraseable: !1,
|
|
@@ -318,7 +318,7 @@ const ie = { key: 0 }, ue = {
|
|
|
318
318
|
initialHintText: !1,
|
|
319
319
|
showEndIcon: !1,
|
|
320
320
|
modelValue: l.endTime,
|
|
321
|
-
"onUpdate:modelValue": (
|
|
321
|
+
"onUpdate:modelValue": (i) => l.endTime = i
|
|
322
322
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]), [
|
|
323
323
|
[q, T(a)]
|
|
324
324
|
]),
|
|
@@ -351,7 +351,7 @@ const ie = { key: 0 }, ue = {
|
|
|
351
351
|
)
|
|
352
352
|
},
|
|
353
353
|
data: [],
|
|
354
|
-
onChange: (
|
|
354
|
+
onChange: (i) => L(i, a)
|
|
355
355
|
}, null, 8, ["state", "text", "onChange"])
|
|
356
356
|
])),
|
|
357
357
|
o(n).length > 1 ? (u(), G(E, {
|
|
@@ -360,14 +360,14 @@ const ie = { key: 0 }, ue = {
|
|
|
360
360
|
size: "small",
|
|
361
361
|
iconStart: "trash",
|
|
362
362
|
variant: "tertiary",
|
|
363
|
-
onClick: (
|
|
363
|
+
onClick: (i) => ee(a)
|
|
364
364
|
}, null, 8, ["buttonText", "onClick"])) : (u(), G(E, {
|
|
365
365
|
key: 1,
|
|
366
366
|
buttonText: o(y)("message.dataupload.menu.reset"),
|
|
367
367
|
size: "small",
|
|
368
368
|
iconStart: "reset",
|
|
369
369
|
variant: "tertiary",
|
|
370
|
-
onClick: (
|
|
370
|
+
onClick: (i) => x(a)
|
|
371
371
|
}, null, 8, ["buttonText", "onClick"]))
|
|
372
372
|
])
|
|
373
373
|
], 2);
|
|
@@ -386,7 +386,7 @@ const ie = { key: 0 }, ue = {
|
|
|
386
386
|
], 2);
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
|
-
}, Ae = /* @__PURE__ */
|
|
389
|
+
}, Ae = /* @__PURE__ */ ie(Ce, [["__scopeId", "data-v-34b2ba13"]]);
|
|
390
390
|
export {
|
|
391
391
|
Ae as default
|
|
392
392
|
};
|