@piveau/dpi 0.1.0-beta.76 → 0.1.0-beta.79

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.
@@ -26,8 +26,8 @@ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular
26
26
  const b = z, { isEditMode: I } = C();
27
27
  let s = m({ 1: !1, 2: !1, 3: !1 });
28
28
  const w = m(null), _ = m(null), n = P(() => {
29
- var a, l;
30
- const e = (l = (a = S().appContext.config.globalProperties.$keycloak) == null ? void 0 : a.idTokenParsed) == null ? void 0 : l.contact;
29
+ var a, t;
30
+ const e = (t = (a = S().appContext.config.globalProperties.$keycloak) == null ? void 0 : a.idTokenParsed) == null ? void 0 : t.contact;
31
31
  if (e) {
32
32
  const r = {
33
33
  organization: e.organization
@@ -37,16 +37,16 @@ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular
37
37
  return {};
38
38
  }), i = m([
39
39
  { isValid: "unset", "foaf:name": "", "foaf:mbox": "", "foaf:homepage": "" }
40
- ]), t = m({
40
+ ]), l = m({
41
41
  1: { show: !1, message: "Bitte geben Sie einen gültigen Organisationsnamen ein." },
42
42
  2: { show: !1, message: "Bitte geben Sie eine gültige E-Mail-Adresse ein." },
43
43
  3: { show: !1, message: "Bitte geben Sie eine gültige URL ein." }
44
- }), y = (e) => e.trim().length >= 2, T = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e), E = (e) => /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/.test(e);
44
+ }), y = (e) => e.trim().length >= 2, T = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e), E = (e) => /^(https?:\/\/)?([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(\/[^\s]*)?$/.test(e);
45
45
  I.value || b.context.node.input(i);
46
- const V = (e, a, l) => {
46
+ const V = (e, a, t) => {
47
47
  let r = !1;
48
48
  if (e.trim() === "")
49
- t.value[l].show = !1, s.value[l] = !1;
49
+ l.value[t].show = !1, s.value[t] = !1;
50
50
  else {
51
51
  switch (a) {
52
52
  case "foaf:name":
@@ -61,36 +61,36 @@ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular
61
61
  default:
62
62
  r = e.trim() !== "";
63
63
  }
64
- t.value[l].show = !r, s.value[l] = r;
64
+ l.value[t].show = !r, s.value[t] = r;
65
65
  }
66
66
  s.value[1] && s.value[2] && s.value[3] ? i.value[0].isValid = !0 : i.value[0].isValid = "unset";
67
- }, p = (e, a, l) => {
68
- i.value = i.value.map((r) => a in r ? { ...r, [a]: e } : r), b.context.node.value.length === 0 && b.context.node.input(i.value), l === 2 ? (w.value && clearTimeout(w.value), w.value = setTimeout(() => {
69
- V(e, a, l);
70
- }, 800)) : l === 3 ? (_.value && clearTimeout(_.value), _.value = setTimeout(() => {
71
- V(e, a, l);
72
- }, 800)) : V(e, a, l);
67
+ }, p = (e, a, t) => {
68
+ i.value = i.value.map((r) => a in r ? { ...r, [a]: e } : r), b.context.node.value.length === 0 && b.context.node.input(i.value), t === 2 ? (w.value && clearTimeout(w.value), w.value = setTimeout(() => {
69
+ V(e, a, t);
70
+ }, 800)) : t === 3 ? (_.value && clearTimeout(_.value), _.value = setTimeout(() => {
71
+ V(e, a, t);
72
+ }, 800)) : V(e, a, t);
73
73
  }, $ = () => {
74
74
  const e = i.value[0];
75
75
  if (e["foaf:name"].trim() === "")
76
- t.value[1].show = !0, s.value[1] = !1;
76
+ l.value[1].show = !0, s.value[1] = !1;
77
77
  else {
78
78
  const a = y(e["foaf:name"]);
79
- t.value[1].show = !a, s.value[1] = a;
79
+ l.value[1].show = !a, s.value[1] = a;
80
80
  }
81
81
  if (e["foaf:mbox"].trim() === "")
82
- t.value[2].show = !0, s.value[2] = !1;
82
+ l.value[2].show = !0, s.value[2] = !1;
83
83
  else {
84
84
  const a = T(e["foaf:mbox"]);
85
- t.value[2].show = !a, s.value[2] = a;
85
+ l.value[2].show = !a, s.value[2] = a;
86
86
  }
87
87
  if (e["foaf:homepage"].trim() === "")
88
- t.value[3].show = !0, s.value[3] = !1;
88
+ l.value[3].show = !0, s.value[3] = !1;
89
89
  else {
90
90
  const a = E(e["foaf:homepage"]);
91
- t.value[3].show = !a, s.value[3] = a;
91
+ l.value[3].show = !a, s.value[3] = a;
92
92
  }
93
- s.value[1] && s.value[2] && s.value[3] ? i.value[0].isValid = !0 : i.value[0].isValid = !1, console.log("Validation states:", s.value), console.log("Validation errors:", t.value);
93
+ s.value[1] && s.value[2] && s.value[3] ? i.value[0].isValid = !0 : i.value[0].isValid = !1, console.log("Validation states:", s.value), console.log("Validation errors:", l.value);
94
94
  };
95
95
  B(() => i.value[0].isValid, (e) => {
96
96
  console.log("Overall validity changed:", e), e === !1 && $();
@@ -117,13 +117,13 @@ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular
117
117
  })
118
118
  ]),
119
119
  o("div", Z, [
120
- (f(!0), d(D, null, O(Object.values(n.value), (l) => (f(), d("span", H, c(l), 1))), 256))
120
+ (f(!0), d(D, null, O(Object.values(n.value), (t) => (f(), d("span", H, c(t), 1))), 256))
121
121
  ])
122
122
  ]),
123
123
  o("div", L, [
124
124
  u(k, {
125
125
  modelValue: i.value[0]["foaf:name"],
126
- "onUpdate:modelValue": a[0] || (a[0] = (l) => p(l, "foaf:name", 1)),
126
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => p(t, "foaf:name", 1)),
127
127
  addOnText: !1,
128
128
  datePicker: !1,
129
129
  infoIcon: !1,
@@ -133,20 +133,20 @@ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular
133
133
  initialHintText: !1,
134
134
  label: e.$t("message.dataupload.datasets.dct:publisher.nameInput.title"),
135
135
  showEndIcon: !1,
136
- showError: t.value[1].show
136
+ showError: l.value[1].show
137
137
  }, null, 8, ["modelValue", "placeholder", "label", "showError"]),
138
- t.value[1].show ? (f(), d("div", M, [
138
+ l.value[1].show ? (f(), d("div", M, [
139
139
  u(h(g), {
140
140
  size: 16,
141
141
  weight: "fill"
142
142
  }),
143
- o("span", j, c(t.value[1].message), 1)
143
+ o("span", j, c(l.value[1].message), 1)
144
144
  ])) : v("", !0)
145
145
  ]),
146
146
  o("div", K, [
147
147
  u(k, {
148
148
  modelValue: i.value[0]["foaf:mbox"],
149
- "onUpdate:modelValue": a[1] || (a[1] = (l) => p(l, "foaf:mbox", 2)),
149
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => p(t, "foaf:mbox", 2)),
150
150
  addOnText: !1,
151
151
  datePicker: !1,
152
152
  infoIcon: !1,
@@ -154,22 +154,22 @@ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular
154
154
  preIcon: !1,
155
155
  inputFieldSize: "large",
156
156
  initialHintText: !1,
157
- showError: t.value[2].show,
157
+ showError: l.value[2].show,
158
158
  label: e.$t("message.dataupload.datasets.dct:publisher.mailInput.title"),
159
159
  showEndIcon: !1
160
160
  }, null, 8, ["modelValue", "placeholder", "showError", "label"]),
161
- t.value[2].show ? (f(), d("div", q, [
161
+ l.value[2].show ? (f(), d("div", q, [
162
162
  u(h(g), {
163
163
  size: 16,
164
164
  weight: "fill"
165
165
  }),
166
- o("span", G, c(t.value[2].message), 1)
166
+ o("span", G, c(l.value[2].message), 1)
167
167
  ])) : v("", !0)
168
168
  ]),
169
169
  o("div", J, [
170
170
  u(k, {
171
171
  modelValue: i.value[0]["foaf:homepage"],
172
- "onUpdate:modelValue": a[2] || (a[2] = (l) => p(l, "foaf:homepage", 3)),
172
+ "onUpdate:modelValue": a[2] || (a[2] = (t) => p(t, "foaf:homepage", 3)),
173
173
  addOnText: !0,
174
174
  datePicker: !1,
175
175
  infoIcon: !1,
@@ -180,18 +180,18 @@ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular
180
180
  addOnLeadingText: "https://",
181
181
  label: e.$t("message.dataupload.datasets.dct:publisher.websiteInput.title"),
182
182
  showEndIcon: !1,
183
- showError: t.value[3].show
183
+ showError: l.value[3].show
184
184
  }, null, 8, ["modelValue", "placeholder", "label", "showError"]),
185
- t.value[3].show ? (f(), d("div", Q, [
185
+ l.value[3].show ? (f(), d("div", Q, [
186
186
  u(h(g), {
187
187
  size: 16,
188
188
  weight: "fill"
189
189
  }),
190
- o("span", X, c(t.value[3].message), 1)
190
+ o("span", X, c(l.value[3].message), 1)
191
191
  ])) : v("", !0)
192
192
  ]),
193
193
  o("div", Y, c(e.$t("message.dataupload.datasets.dct:publisher.descriptionBottom")), 1),
194
- i.value.find((l) => l.isValid === !1) ? (f(), d("div", ee, [
194
+ i.value.find((t) => t.isValid === !1) ? (f(), d("div", ee, [
195
195
  u(h(g), {
196
196
  size: 16,
197
197
  weight: "fill"
@@ -200,7 +200,7 @@ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular
200
200
  ])) : v("", !0)
201
201
  ]));
202
202
  }
203
- }, ue = /* @__PURE__ */ A(ae, [["__scopeId", "data-v-c2988908"]]);
203
+ }, ue = /* @__PURE__ */ A(ae, [["__scopeId", "data-v-e829f1ff"]]);
204
204
  export {
205
205
  ue as default
206
206
  };
@@ -51,10 +51,10 @@ const Xe = { key: 0 }, Ze = {
51
51
  }, Xt = { class: "copy-large-regular" }, Zt = { class: "headline-5" }, qt = { class: "fourthSec flexSec" }, Jt = { class: "copy-large-regular" }, Qt = { class: "dpiV3_distCard" }, It = ["href"], At = {
52
52
  key: 0,
53
53
  class: "dpiV3Card rapDistribution"
54
- }, ea = { class: "firstSec" }, ta = { class: "secondSec flexSec" }, aa = { class: "dpiV3_optionalSpanHeadWrap" }, sa = { class: "dpiV3_optionalSpan copy-large-regular" }, oa = { key: 0 }, ia = { key: 0 }, la = { key: 1 }, na = { key: 2 }, ra = { key: 3 }, da = { key: 4 }, ca = { key: 5 }, ua = { key: 6 }, pa = { key: 7 }, va = { key: 8 }, fa = { key: 9 }, ha = { class: "dpiV3_tempAddMore" }, _a = {
54
+ }, ea = { class: "firstSec" }, ta = { class: "secondSec flexSec" }, aa = { class: "dpiV3_optionalSpanHeadWrap" }, sa = { class: "dpiV3_optionalSpan copy-large-regular" }, oa = { key: 0 }, ia = { key: 0 }, la = { key: 1 }, na = { key: 2 }, ra = { key: 3 }, da = { key: 4 }, ca = { key: 5 }, ua = { key: 6 }, pa = { key: 7 }, va = { key: 8 }, fa = { key: 9 }, ha = { key: 10 }, _a = { class: "dpiV3_tempAddMore" }, ga = {
55
55
  key: 1,
56
56
  class: "dpiV3_tempAddMore"
57
- }, ga = {
57
+ }, ya = {
58
58
  __name: "ReviewAndPublishPage",
59
59
  props: {
60
60
  context: Object
@@ -413,21 +413,22 @@ const Xe = { key: 0 }, Ze = {
413
413
  ])) : u("", !0),
414
414
  n != "dcat:temporalResolution" ? (i(!0), l(S, { key: 1 }, w(b.value[n] || [], (o) => (i(), l("div", {
415
415
  class: "additionalSubPropsWrapper",
416
- key: o ? o["@id"] || o["@value"] || o["rdfs:label"] : null
416
+ key: o ? o["@id"] || o["@value"] || o["rdfs:label"] || o["skos:notation"] : null
417
417
  }, [
418
418
  o && o["rdf:type"] ? (i(), l("span", ia, s(o["rdf:type"]), 1)) : u("", !0),
419
419
  o && o["@type"] === "http://www.w3.org/2001/XMLSchema#date" ? (i(), l("span", la, s(Re(o["@value"])), 1)) : u("", !0),
420
420
  o && o["@value"] && o["@type"] !== "http://www.w3.org/2001/XMLSchema#date" ? (i(), l("span", na, s(o["@value"]), 1)) : u("", !0),
421
421
  o && o["dct:title"] ? (i(), l("span", ra, s(o["dct:title"]), 1)) : u("", !0),
422
- o && o["dct:description"] ? (i(), l("span", da, s(o["dct:description"]), 1)) : u("", !0),
423
- o && o["@id"] ? (i(), l("span", ca, s(o["@id"]), 1)) : u("", !0),
424
- o && o["rdfs:label"] ? (i(), l("span", ua, s(o["rdfs:label"]), 1)) : u("", !0),
425
- o && o["foaf:name"] ? (i(), l("span", pa, s(o["foaf:name"]), 1)) : u("", !0),
426
- o && o["foaf:homepage"] ? (i(), l("span", va, s(o["foaf:homepage"]), 1)) : u("", !0),
427
- o && o["foaf:mbox"] ? (i(), l("span", fa, s(o["foaf:mbox"]), 1)) : u("", !0)
422
+ o && o["skos:notation"] ? (i(), l("span", da, s(o["skos:notation"][0]), 1)) : u("", !0),
423
+ o && o["dct:description"] ? (i(), l("span", ca, s(o["dct:description"]), 1)) : u("", !0),
424
+ o && o["@id"] ? (i(), l("span", ua, s(o["@id"]), 1)) : u("", !0),
425
+ o && o["rdfs:label"] ? (i(), l("span", pa, s(o["rdfs:label"]), 1)) : u("", !0),
426
+ o && o["foaf:name"] ? (i(), l("span", va, s(o["foaf:name"]), 1)) : u("", !0),
427
+ o && o["foaf:homepage"] ? (i(), l("span", fa, s(o["foaf:homepage"]), 1)) : u("", !0),
428
+ o && o["foaf:mbox"] ? (i(), l("span", ha, s(o["foaf:mbox"]), 1)) : u("", !0)
428
429
  ]))), 128)) : u("", !0)
429
430
  ]))), 256)),
430
- a("div", ha, [
431
+ a("div", _a, [
431
432
  _(D, {
432
433
  "button-text": "Optionale Informationen hinzufügen",
433
434
  size: "large",
@@ -437,7 +438,7 @@ const Xe = { key: 0 }, Ze = {
437
438
  })
438
439
  ])
439
440
  ])) : u("", !0),
440
- Y.value ? u("", !0) : (i(), l("div", _a, [
441
+ Y.value ? u("", !0) : (i(), l("div", ga, [
441
442
  _(D, {
442
443
  "button-text": "Optionale Informationen hinzufügen",
443
444
  size: "large",
@@ -470,7 +471,7 @@ const Xe = { key: 0 }, Ze = {
470
471
  ], 64);
471
472
  };
472
473
  }
473
- }, Na = /* @__PURE__ */ je(ga, [["__scopeId", "data-v-05db5cbd"]]);
474
+ }, Fa = /* @__PURE__ */ je(ya, [["__scopeId", "data-v-d9dd7246"]]);
474
475
  export {
475
- Na as default
476
+ Fa as default
476
477
  };