@piveau/dpi 0.1.0-beta.7 → 0.1.0-beta.71

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