@piveau/dpi 0.2.0-alpha.51 → 0.2.0-alpha.53

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.
@@ -1,46 +1,46 @@
1
- import { ref as p, computed as P, unref as v, watch as M, createElementBlock as r, openBlock as c, createElementVNode as s, createCommentVNode as g, toDisplayString as d, createVNode as u, Fragment as C, renderList as z } from "vue";
1
+ import { ref as m, computed as T, unref as v, watch as x, createElementBlock as r, openBlock as d, createElementVNode as s, createCommentVNode as g, toDisplayString as c, createVNode as u, Fragment as D, renderList as S } from "vue";
2
2
  import { PhWarning as _ } from "@phosphor-icons/vue";
3
- import { useEditModeInfo as x } from "../composables/useDpiEditMode.js";
4
- import { useFormValues as q } from "../composables/useDpiFormValues.js";
5
- import { useOrganizationInfo as G } from "../composables/useOrganizationInfo.js";
6
- import { useTwinbyUser as H } from "../composables/useTwinbyUser.js";
7
- import T from "../HappyFlowComponents/ui/InputField.vue.js";
8
- import D from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
3
+ import { useEditModeInfo as q } from "../composables/useDpiEditMode.js";
4
+ import { useFormValues as G } from "../composables/useDpiFormValues.js";
5
+ import { useOrganizationInfo as H } from "../composables/useOrganizationInfo.js";
6
+ import { useTwinbyUser as J } from "../composables/useTwinbyUser.js";
7
+ import V from "../HappyFlowComponents/ui/InputField.vue.js";
8
+ import F from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
9
9
  /* empty css */
10
- import J from "../../../../../_virtual/_plugin-vue_export-helper.js";
11
- const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular" }, Y = { class: "dpiV3AutoCompleteWrap" }, Z = { class: "CardTips_internal" }, ee = { class: "CardTips_Part" }, ae = { class: "firstRow" }, te = { class: "icon_title copy-small-semi-bold" }, se = { class: "TextButton_small" }, le = { class: "secondRow" }, oe = {
10
+ import Q from "../../../../../_virtual/_plugin-vue_export-helper.js";
11
+ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular" }, Z = { class: "dpiV3AutoCompleteWrap" }, ee = { class: "CardTips_internal" }, ae = { class: "CardTips_Part" }, te = { class: "firstRow" }, se = { class: "icon_title copy-small-semi-bold" }, le = { class: "TextButton_small" }, oe = { class: "secondRow" }, ie = {
12
12
  key: 0,
13
13
  class: "copy-small-regular"
14
- }, ie = {
14
+ }, ne = {
15
15
  key: 2,
16
16
  class: "copy-small-regular"
17
- }, ne = { class: "CardTips_Part" }, re = { class: "firstRow" }, ce = { class: "icon_title copy-small-semi-bold" }, de = { class: "TextButton_small" }, ue = { class: "secondRow" }, me = { class: "input-container" }, pe = {
17
+ }, re = { class: "CardTips_Part" }, de = { class: "firstRow" }, ce = { class: "icon_title copy-small-semi-bold" }, ue = { class: "TextButton_small" }, pe = { class: "secondRow" }, me = { class: "input-container" }, ve = {
18
18
  key: 0,
19
19
  class: "dpiV3_errormsgWrapper"
20
- }, ve = { class: "copy-mini-regular" }, fe = { class: "input-container" }, he = {
20
+ }, fe = { class: "copy-mini-regular" }, he = { class: "input-container" }, ge = {
21
21
  key: 0,
22
22
  class: "dpiV3_errormsgWrapper"
23
- }, ge = { class: "copy-mini-regular" }, _e = { class: "input-container" }, be = {
23
+ }, _e = { class: "copy-mini-regular" }, be = { class: "input-container" }, we = {
24
24
  key: 0,
25
25
  class: "dpiV3_errormsgWrapper"
26
- }, we = { class: "copy-mini-regular" }, ye = { class: "copy-large-regular" }, ke = {
26
+ }, ye = { class: "copy-mini-regular" }, ke = { class: "copy-large-regular" }, Pe = {
27
27
  key: 0,
28
28
  class: "form-error-message"
29
- }, Pe = {
29
+ }, Te = {
30
30
  __name: "ContactPage",
31
31
  props: {
32
32
  context: Object
33
33
  },
34
- setup(S) {
35
- const f = S, { formValues: F } = q(), { isEditMode: O } = x(), { organization: R, authToken: W, startFetchPermissions: A } = H();
36
- A();
37
- const { resultEnhanced: L, isLoading: N, isFetching: U } = G({
38
- id: R,
39
- authToken: W
40
- }), b = p(null), w = p(null), y = P(() => {
34
+ setup(O) {
35
+ const f = O, { formValues: R } = G(), { isEditMode: W } = q(), { organization: A, authToken: L, startFetchPermissions: N } = J();
36
+ N();
37
+ const { resultEnhanced: b, isLoading: U, isFetching: j } = H({
38
+ id: A,
39
+ authToken: L
40
+ }), w = m(null), y = m(null), k = T(() => {
41
41
  var e, t;
42
42
  try {
43
- const a = (t = (e = F.value.BasicInfos) == null ? void 0 : e["dct:publisher"]) == null ? void 0 : t[0];
43
+ const a = (t = (e = R.value.BasicInfos) == null ? void 0 : e["dct:publisher"]) == null ? void 0 : t[0];
44
44
  if (a && a["foaf:name"] && a["foaf:mbox"])
45
45
  return [
46
46
  a["foaf:name"],
@@ -54,16 +54,14 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
54
54
  "",
55
55
  ""
56
56
  ];
57
- }), V = P(() => N.value || U.value), h = P(() => {
58
- var a;
59
- const e = (a = L.value) == null ? void 0 : a.publisher;
60
- if (!e)
61
- return {};
62
- const t = {
63
- organization: e.name
64
- };
65
- return e.email && (t.email = e.email), t;
66
- }), l = p({
57
+ }), E = T(() => U.value || j.value), h = T(() => {
58
+ var a, o, z;
59
+ const e = (a = b.value) == null ? void 0 : a.publisher;
60
+ return e ? {
61
+ organization: ((o = b.value) == null ? void 0 : o.title) || ((z = b.value) == null ? void 0 : z.id) || "",
62
+ email: e.email || ""
63
+ } : {};
64
+ }), l = m({
67
65
  1: {
68
66
  show: !1,
69
67
  message: "Bitte geben Sie einen gültigen Organisationsnamen ein."
@@ -77,8 +75,8 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
77
75
  message: "Bitte geben Sie eine gültige Telefonnummer ein."
78
76
  }
79
77
  });
80
- let n = p({ 1: !1, 2: !1, 3: !1 });
81
- const o = p([
78
+ let n = m({ 1: !1, 2: !1, 3: !1 });
79
+ const i = m([
82
80
  {
83
81
  isValid: "unset",
84
82
  "vcard:fn": "",
@@ -86,14 +84,14 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
86
84
  "vcard:hasTelephone": ""
87
85
  }
88
86
  ]);
89
- O.value || f.context.node.input(o), f.context.node.value.length === 0 && f.context.node.input(v(o));
90
- function E(e) {
87
+ W.value || f.context.node.input(i), f.context.node.value.length === 0 && f.context.node.input(v(i));
88
+ function B(e) {
91
89
  return e.trim().length >= 2;
92
90
  }
93
- function B(e) {
91
+ function $(e) {
94
92
  return /^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e);
95
93
  }
96
- function $(e) {
94
+ function C(e) {
97
95
  if (!e || e.trim() === "")
98
96
  return !0;
99
97
  const t = e.replace(/[\s\-().]/g, "");
@@ -102,8 +100,8 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
102
100
  const a = t.replace(/\D/g, "");
103
101
  return a.length >= 6 && a.length <= 15;
104
102
  }
105
- function k(e, t, a) {
106
- let i = !1;
103
+ function P(e, t, a) {
104
+ let o = !1;
107
105
  if (a === 3 && e.trim() === "")
108
106
  l.value[a].show = !1, n.value[a] = !0;
109
107
  else if (e.trim() === "")
@@ -111,114 +109,114 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
111
109
  else {
112
110
  switch (t) {
113
111
  case "vcard:fn":
114
- i = E(e);
112
+ o = B(e);
115
113
  break;
116
114
  case "vcard:hasEmail":
117
- i = B(e);
115
+ o = $(e);
118
116
  break;
119
117
  case "vcard:hasTelephone":
120
- i = $(e);
118
+ o = C(e);
121
119
  break;
122
120
  default:
123
- i = e.trim() !== "";
121
+ o = e.trim() !== "";
124
122
  }
125
- l.value[a].show = !i, n.value[a] = i;
123
+ l.value[a].show = !o, n.value[a] = o;
126
124
  }
127
- n.value[1] && n.value[2] ? o.value[0].isValid = !0 : o.value[0].isValid = "unset";
128
- }
129
- function m(e, t, a) {
130
- o.value = o.value.map((i) => t in i ? { ...i, [t]: e } : i), f.context.node.input(o.value), a === 2 ? (b.value && clearTimeout(b.value), b.value = setTimeout(() => {
131
- k(e, t, a);
132
- }, 800)) : a === 3 ? (w.value && clearTimeout(w.value), w.value = setTimeout(() => {
133
- k(e, t, a);
134
- }, 800)) : k(e, t, a);
125
+ n.value[1] && n.value[2] ? i.value[0].isValid = !0 : i.value[0].isValid = "unset";
135
126
  }
136
- function j() {
137
- const e = h.value;
138
- e.organization && m(e.organization, "vcard:fn", 1), e.email && m(e.email, "vcard:hasEmail", 2);
127
+ function p(e, t, a) {
128
+ i.value = i.value.map((o) => t in o ? { ...o, [t]: e } : o), f.context.node.input(i.value), a === 2 ? (w.value && clearTimeout(w.value), w.value = setTimeout(() => {
129
+ P(e, t, a);
130
+ }, 800)) : a === 3 ? (y.value && clearTimeout(y.value), y.value = setTimeout(() => {
131
+ P(e, t, a);
132
+ }, 800)) : P(e, t, a);
139
133
  }
140
134
  function I() {
141
- m(y.value[0], "vcard:fn", 1), m(y.value[1], "vcard:hasEmail", 2);
135
+ const e = h.value;
136
+ e.organization && p(e.organization, "vcard:fn", 1), e.email && p(e.email, "vcard:hasEmail", 2);
142
137
  }
143
138
  function K() {
144
- const e = o.value[0];
139
+ p(k.value[0], "vcard:fn", 1), p(k.value[1], "vcard:hasEmail", 2);
140
+ }
141
+ function M() {
142
+ const e = i.value[0];
145
143
  if (e["vcard:fn"].trim() === "")
146
144
  l.value[1].show = !0, n.value[1] = !1;
147
145
  else {
148
- const t = E(e["vcard:fn"]);
146
+ const t = B(e["vcard:fn"]);
149
147
  l.value[1].show = !t, n.value[1] = t;
150
148
  }
151
149
  if (e["vcard:hasEmail"].trim() === "")
152
150
  l.value[2].show = !0, n.value[2] = !1;
153
151
  else {
154
- const t = B(e["vcard:hasEmail"]);
152
+ const t = $(e["vcard:hasEmail"]);
155
153
  l.value[2].show = !t, n.value[2] = t;
156
154
  }
157
155
  if (e["vcard:hasTelephone"].trim() === "")
158
156
  l.value[3].show = !1, n.value[3] = !0;
159
157
  else {
160
- const t = $(e["vcard:hasTelephone"]);
158
+ const t = C(e["vcard:hasTelephone"]);
161
159
  l.value[3].show = !t, n.value[3] = t;
162
160
  }
163
- n.value[1] && n.value[2] ? o.value[0].isValid = !0 : o.value[0].isValid = !1;
161
+ n.value[1] && n.value[2] ? i.value[0].isValid = !0 : i.value[0].isValid = !1;
164
162
  }
165
- return M(() => o.value[0].isValid, (e) => {
166
- e === !1 && K();
167
- }), (e, t) => (c(), r("div", Q, [
168
- s("h4", null, d(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
169
- s("div", X, d(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
170
- s("div", Y, [
171
- s("div", Z, [
172
- s("div", ee, [
173
- s("div", ae, [
174
- s("div", te, d(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
175
- s("div", se, [
176
- u(D, {
163
+ return x(() => i.value[0].isValid, (e) => {
164
+ e === !1 && M();
165
+ }), (e, t) => (d(), r("div", X, [
166
+ s("h4", null, c(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
167
+ s("div", Y, c(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
168
+ s("div", Z, [
169
+ s("div", ee, [
170
+ s("div", ae, [
171
+ s("div", te, [
172
+ s("div", se, c(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
173
+ s("div", le, [
174
+ u(F, {
177
175
  "button-text": e.$t(
178
176
  "message.dataupload.datasets.dcat:contactPoint.useAccountButton"
179
177
  ),
180
178
  "icon-start": "DeleteBlue",
181
179
  "icon-name": "copy",
182
180
  class: "dpiV3_usedetailsButton",
183
- disabled: V.value || Object.keys(h.value).length === 0,
184
- onClick: j
181
+ disabled: E.value || Object.keys(h.value).length === 0,
182
+ onClick: I
185
183
  }, null, 8, ["button-text", "disabled"])
186
184
  ])
187
185
  ]),
188
- s("div", le, [
189
- V.value ? (c(), r("span", oe, "Lade Kontodaten...")) : Object.keys(h.value).length > 0 ? (c(!0), r(C, { key: 1 }, z(h.value, (a, i) => (c(), r("span", {
190
- key: i,
186
+ s("div", oe, [
187
+ E.value ? (d(), r("span", ie, "Lade Kontodaten...")) : Object.keys(h.value).length > 0 ? (d(!0), r(D, { key: 1 }, S(h.value, (a, o) => (d(), r("span", {
188
+ key: o,
191
189
  class: "copy-small-regular"
192
- }, d(a), 1))), 128)) : (c(), r("span", ie, "Keine Kontodaten verfügbar"))
190
+ }, c(a), 1))), 128)) : (d(), r("span", ne, "Keine Kontodaten verfügbar"))
193
191
  ])
194
192
  ]),
195
- s("div", ne, [
196
- s("div", re, [
197
- s("div", ce, d(e.$t("message.metadata.publisher")), 1),
198
- s("div", de, [
199
- u(D, {
193
+ s("div", re, [
194
+ s("div", de, [
195
+ s("div", ce, c(e.$t("message.metadata.publisher")), 1),
196
+ s("div", ue, [
197
+ u(F, {
200
198
  "button-text": e.$t(
201
199
  "message.dataupload.datasets.dcat:contactPoint.usePublisherButton"
202
200
  ),
203
201
  "icon-start": "true",
204
202
  "icon-name": "copy",
205
203
  class: "",
206
- onClick: I
204
+ onClick: K
207
205
  }, null, 8, ["button-text"])
208
206
  ])
209
207
  ]),
210
- s("div", ue, [
211
- (c(!0), r(C, null, z(y.value, (a, i) => (c(), r("span", {
212
- key: i,
208
+ s("div", pe, [
209
+ (d(!0), r(D, null, S(k.value, (a, o) => (d(), r("span", {
210
+ key: o,
213
211
  class: "copy-small-regular"
214
- }, d(a), 1))), 128))
212
+ }, c(a), 1))), 128))
215
213
  ])
216
214
  ])
217
215
  ])
218
216
  ]),
219
217
  s("div", me, [
220
- u(T, {
221
- "model-value": o.value[0]["vcard:fn"],
218
+ u(V, {
219
+ "model-value": i.value[0]["vcard:fn"],
222
220
  "add-on-text": !1,
223
221
  "date-picker": !1,
224
222
  "info-icon": !1,
@@ -231,19 +229,19 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
231
229
  label: e.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
232
230
  "show-end-icon": !1,
233
231
  "show-error": l.value[1].show,
234
- "onUpdate:modelValue": t[0] || (t[0] = (a) => m(a, "vcard:fn", 1))
232
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => p(a, "vcard:fn", 1))
235
233
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
236
- l.value[1].show ? (c(), r("div", pe, [
234
+ l.value[1].show ? (d(), r("div", ve, [
237
235
  u(v(_), {
238
236
  size: 16,
239
237
  weight: "fill"
240
238
  }),
241
- s("span", ve, d(l.value[1].message), 1)
239
+ s("span", fe, c(l.value[1].message), 1)
242
240
  ])) : g("", !0)
243
241
  ]),
244
- s("div", fe, [
245
- u(T, {
246
- "model-value": o.value[0]["vcard:hasEmail"],
242
+ s("div", he, [
243
+ u(V, {
244
+ "model-value": i.value[0]["vcard:hasEmail"],
247
245
  "add-on-text": !1,
248
246
  "date-picker": !1,
249
247
  "info-icon": !1,
@@ -256,19 +254,19 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
256
254
  label: e.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
257
255
  "show-end-icon": !1,
258
256
  "show-error": l.value[2].show,
259
- "onUpdate:modelValue": t[1] || (t[1] = (a) => m(a, "vcard:hasEmail", 2))
257
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => p(a, "vcard:hasEmail", 2))
260
258
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
261
- l.value[2].show ? (c(), r("div", he, [
259
+ l.value[2].show ? (d(), r("div", ge, [
262
260
  u(v(_), {
263
261
  size: 16,
264
262
  weight: "fill"
265
263
  }),
266
- s("span", ge, d(l.value[2].message), 1)
264
+ s("span", _e, c(l.value[2].message), 1)
267
265
  ])) : g("", !0)
268
266
  ]),
269
- s("div", _e, [
270
- u(T, {
271
- "model-value": o.value[0]["vcard:hasTelephone"],
267
+ s("div", be, [
268
+ u(V, {
269
+ "model-value": i.value[0]["vcard:hasTelephone"],
272
270
  "add-on-text": !1,
273
271
  "date-picker": !1,
274
272
  "info-icon": !1,
@@ -281,18 +279,18 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
281
279
  label: e.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
282
280
  "show-end-icon": !1,
283
281
  "show-error": l.value[3].show,
284
- "onUpdate:modelValue": t[2] || (t[2] = (a) => m(a, "vcard:hasTelephone", 3))
282
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => p(a, "vcard:hasTelephone", 3))
285
283
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
286
- l.value[3].show ? (c(), r("div", be, [
284
+ l.value[3].show ? (d(), r("div", we, [
287
285
  u(v(_), {
288
286
  size: 16,
289
287
  weight: "fill"
290
288
  }),
291
- s("span", we, d(l.value[3].message), 1)
289
+ s("span", ye, c(l.value[3].message), 1)
292
290
  ])) : g("", !0)
293
291
  ]),
294
- s("div", ye, d(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
295
- o.value.find((a) => a.isValid === !1) ? (c(), r("div", ke, [
292
+ s("div", ke, c(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
293
+ i.value.find((a) => a.isValid === !1) ? (d(), r("div", Pe, [
296
294
  u(v(_), {
297
295
  size: 16,
298
296
  weight: "fill"
@@ -301,7 +299,7 @@ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular
301
299
  ])) : g("", !0)
302
300
  ]));
303
301
  }
304
- }, Oe = /* @__PURE__ */ J(Pe, [["__scopeId", "data-v-00c46b14"]]);
302
+ }, Re = /* @__PURE__ */ Q(Te, [["__scopeId", "data-v-d319a7ed"]]);
305
303
  export {
306
- Oe as default
304
+ Re as default
307
305
  };
@@ -66,6 +66,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
66
66
  // They may need to be added to the backend vocabulary
67
67
  "cc-by-nc",
68
68
  "cc-by-nc/3.0",
69
+ "cc-by-nc-de/3.0",
69
70
  "cc-by-nc/4.0",
70
71
  "cc-by-nd",
71
72
  "cc-by-nd/3.0",
@@ -346,7 +347,7 @@ const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regul
346
347
  ])
347
348
  ]));
348
349
  }
349
- }, Ee = /* @__PURE__ */ ie(Ne, [["__scopeId", "data-v-c7269484"]]);
350
+ }, Ee = /* @__PURE__ */ ie(Ne, [["__scopeId", "data-v-12b6bdbd"]]);
350
351
  export {
351
352
  Ee as default
352
353
  };
@@ -285,7 +285,7 @@ const ee = { key: 0 }, te = {
285
285
  ], 2);
286
286
  };
287
287
  }
288
- }, Ce = /* @__PURE__ */ x(ie, [["__scopeId", "data-v-ffdfd502"]]);
288
+ }, Ce = /* @__PURE__ */ x(ie, [["__scopeId", "data-v-482e07e5"]]);
289
289
  export {
290
290
  Ce as default
291
291
  };
@@ -52,7 +52,7 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
52
52
  validateVisibilitySelection: E,
53
53
  canProceed: k
54
54
  }), (e, d) => {
55
- var b, v, y, g, m, f, _, V;
55
+ var v, b, y, g, m, f, _, V;
56
56
  return r(), n("div", U, [
57
57
  t("div", A, [
58
58
  i(p) ? P("", !0) : (r(), n(T, { key: 0 }, [
@@ -98,7 +98,7 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
98
98
  inputFieldSize: "large",
99
99
  modelValue: o.value,
100
100
  defaultInput: !0,
101
- showError: ((g = (y = (v = (b = i(l)) == null ? void 0 : b.Discoverability) == null ? void 0 : v.visibilityPage) == null ? void 0 : y[0]) == null ? void 0 : g.isValid) === !1,
101
+ showError: ((g = (y = (b = (v = i(l)) == null ? void 0 : v.Discoverability) == null ? void 0 : b.visibilityPage) == null ? void 0 : y[0]) == null ? void 0 : g.isValid) === !1,
102
102
  required: !0
103
103
  },
104
104
  "label-property": "label",
@@ -115,7 +115,7 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
115
115
  ]);
116
116
  };
117
117
  }
118
- }, ri = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-f0c8ab14"]]);
118
+ }, ri = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-671042c0"]]);
119
119
  export {
120
120
  ri as default
121
121
  };
@@ -1,4 +1,4 @@
1
- import { ref as f, createElementBlock as o, openBlock as r, createElementVNode as a, createVNode as l, createCommentVNode as g, toDisplayString as n, unref as s } from "vue";
1
+ import { ref as f, createElementBlock as o, openBlock as r, createElementVNode as i, createVNode as n, createCommentVNode as g, toDisplayString as l, unref as a } from "vue";
2
2
  import h from "../HappyFlowComponents/ui/TextAreaV3.vue.js";
3
3
  import { PhWarning as V } from "@phosphor-icons/vue";
4
4
  /* empty css */
@@ -18,28 +18,29 @@ const b = { class: "dpiV3InnerComponentWrap" }, E = { 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", b, [
22
- a("h4", null, n(e.$t("message.dataupload.datasets.dct:description.title")), 1),
23
- a("div", E, n(e.$t("message.dataupload.datasets.dct:description.description")), 1),
24
- l(h, {
21
+ return u.value || p.context.node.input(t), (e, s) => (r(), o("div", b, [
22
+ i("h4", null, l(e.$t("message.dataupload.datasets.dct:description.title")), 1),
23
+ i("div", E, l(e.$t("message.dataupload.datasets.dct:description.description")), 1),
24
+ n(h, {
25
25
  onInput: c,
26
+ id: "general-info-description-field",
26
27
  class: "dpiV3_input-field",
27
28
  hint: !1,
28
29
  isDescription: !0,
29
30
  label: e.$t("message.dataupload.datasets.dct:description.input.title"),
30
31
  placeholder: e.$t("message.dataupload.datasets.dct:description.input.placeholder"),
31
- showError: s(t)[0].isValid === !1
32
+ showError: a(t)[0].isValid === !1
32
33
  }, null, 8, ["label", "placeholder", "showError"]),
33
- s(t).find((m) => m.isValid === !1) ? (r(), o("div", I, [
34
- l(s(V), {
34
+ a(t).find((m) => m.isValid === !1) ? (r(), o("div", I, [
35
+ n(a(V), {
35
36
  size: 16,
36
37
  weight: "fill"
37
38
  }),
38
- i[0] || (i[0] = a("span", { class: "copy-mini-regular" }, "Bitte geben Sie eine Beschreibung ein, bevor Sie fortfahren.", -1))
39
+ s[0] || (s[0] = i("span", { class: "copy-mini-regular" }, "Bitte geben Sie eine Beschreibung ein, bevor Sie fortfahren.", -1))
39
40
  ])) : g("", !0)
40
41
  ]));
41
42
  }
42
- }, S = /* @__PURE__ */ v(y, [["__scopeId", "data-v-c87f7644"]]);
43
+ }, S = /* @__PURE__ */ v(y, [["__scopeId", "data-v-cc20ed2e"]]);
43
44
  export {
44
45
  S as default
45
46
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.2.0-alpha.51",
4
+ "version": "0.2.0-alpha.53",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",