@piveau/dpi 0.2.0-alpha.33 → 0.2.0-alpha.35

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 (21) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +1 -1
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js +58 -48
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue.js +2 -2
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +13 -13
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +1 -0
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +37 -33
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +41 -37
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +69 -64
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +1 -1
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +977 -963
  16. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +20 -14
  18. package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +44 -41
  19. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +97 -95
  20. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +26 -19
  21. package/package.json +1 -1
@@ -29,7 +29,7 @@ function Z(e) {
29
29
  }));
30
30
  }
31
31
  function Y(e, r) {
32
- return e ? [{ "@value": e, "@language": r }] : void 0;
32
+ return [{ "@value": e, "@language": r || "" }];
33
33
  }
34
34
  function J(e) {
35
35
  return (r) => Y(r, e);
@@ -89,7 +89,7 @@ function C(e, r, t) {
89
89
  n.fromNullable(e),
90
90
  n.map((a) => a.map(r).filter(N)),
91
91
  n.filter((a) => a.length > 0),
92
- n.map((a) => T(a, t)),
92
+ n.map((a) => E(a, t)),
93
93
  n.filter((a) => a.length > 0),
94
94
  n.map((a) => [...a])
95
95
  );
@@ -156,7 +156,7 @@ function ae(e) {
156
156
  "dct:description": t.description
157
157
  }));
158
158
  }
159
- function T(e, r) {
159
+ function E(e, r) {
160
160
  return (e ?? []).map((a) => ({
161
161
  "@type": "rdfs:Resource",
162
162
  "dct:type": r,
@@ -213,7 +213,7 @@ function le(e, r, t) {
213
213
  // Corresponds to functionalities of hardware;
214
214
  // not to be confused with functionalities of software (schema:featureList)
215
215
  "ssn-system:hasSystemCapability": u((o.functionalities ?? []).map((i) => i == null ? void 0 : i.trim()).filter((i) => !!i && i.length > 0)),
216
- "dct:references": u(T((c = o.references) == null ? void 0 : c.map((i) => ({
216
+ "dct:references": u(E((c = o.references) == null ? void 0 : c.map((i) => ({
217
217
  name: i.name ?? "",
218
218
  url: i.url ?? "",
219
219
  description: i.description
@@ -222,13 +222,13 @@ function le(e, r, t) {
222
222
  });
223
223
  }
224
224
  function U(e) {
225
- var w, y, O;
226
- const { prefixKey: r, activityLabel: t, input: a, toLanged: o, context: c } = e, i = `${r}/Grundlegende Informationen`, p = `${r}/Software`, m = `${r}/Datensätze`, x = `${r}/Hardware`, d = a[i], j = d == null ? void 0 : d.description, I = s(
225
+ var y, w, O;
226
+ const { prefixKey: r, activityLabel: t, input: a, toLanged: o, context: c } = e, i = `${r}/Grundlegende Informationen`, p = `${r}/Software`, m = `${r}/Datensätze`, x = `${r}/Hardware`, d = a[i], j = d == null ? void 0 : d.description, W = s(
227
227
  n.fromNullable(j),
228
228
  n.map((h) => h.trim()),
229
229
  n.filter((h) => h.length > 0),
230
230
  n.getOrUndefined
231
- ), L = d == null ? void 0 : d.methods, W = d == null ? void 0 : d.links, R = (w = a[p]) == null ? void 0 : w.selected, v = (y = a[m]) == null ? void 0 : y.selected, S = (O = a[x]) == null ? void 0 : O.selected, b = [
231
+ ), I = d == null ? void 0 : d.methods, L = d == null ? void 0 : d.links, R = (y = a[p]) == null ? void 0 : y.selected, v = (w = a[m]) == null ? void 0 : w.selected, S = (O = a[x]) == null ? void 0 : O.selected, b = [
232
232
  ...oe(R, c),
233
233
  ...se(v, c),
234
234
  ...le(S, o, c)
@@ -236,16 +236,16 @@ function U(e) {
236
236
  "@type": "p-plan:Step",
237
237
  "dct:identifier": "__TODO__",
238
238
  "p-plan:Activity": t,
239
- "dct:description": o(I ?? "__EMPTY__"),
239
+ "dct:description": o(W ?? "__EMPTY__"),
240
240
  "p-plan:isPrecededBy": null,
241
- "prov:used": u(ae(L)),
242
- "dct:references": u(T(W, "documentation")),
241
+ "prov:used": u(ae(I)),
242
+ "dct:references": u(E(L, "documentation")),
243
243
  "p-plan:hasInputVar": b.length > 0 ? b : void 0
244
244
  };
245
245
  return n.some(k);
246
246
  }
247
247
  function ue(e, r = {}) {
248
- var v, S, b, k, w, y, O, h, _, E, B, K, G, V;
248
+ var v, S, b, k, y, w, O, h, T, _, B, K, G, V;
249
249
  const t = {
250
250
  "@type": ["schema:Project", "https://piveau.eu/ns/voc#CustomResource"]
251
251
  }, a = (r == null ? void 0 : r.language) ?? "de", o = s(
@@ -259,7 +259,14 @@ function ue(e, r = {}) {
259
259
  n.filter((l) => l.length > 0),
260
260
  n.getOrElse(() => o ?? "__TODO__")
261
261
  ), i = J(a);
262
- t["dct:title"] = s($((S = e["Grundlegende Informationen/Name"]) == null ? void 0 : S.projectName, i), n.getOrThrow), t["dct:description"] = s($((b = e["Grundlegende Informationen/Beschreibung"]) == null ? void 0 : b.projectDescription, i), n.getOrThrow), t["dct:identifier"] = [c], t["dcat:theme"] = s(te((k = e["Auffindbarkeit/Kategorien"]) == null ? void 0 : k.categories), n.getOrThrow), t["schema:application"] = (w = e["Auffindbarkeit/Anwendungsbereiche"]) == null ? void 0 : w.applications, t["schema:status"] = s(f((y = e["Grundlegende Informationen/Projektstatus"]) == null ? void 0 : y.projectName), n.getOrThrow), t["schema:amount"] = s(
262
+ t["dct:title"] = s(
263
+ $((S = e["Grundlegende Informationen/Name"]) == null ? void 0 : S.projectName, i),
264
+ n.getOrThrowWith(() => new Error("Title is required"))
265
+ ), t["dct:description"] = s(
266
+ $((b = e["Grundlegende Informationen/Beschreibung"]) == null ? void 0 : b.projectDescription, i),
267
+ // Don't throw here to accomondate for cancellation after submitting title only
268
+ n.getOrElse(() => i(""))
269
+ ), t["dct:identifier"] = [c], t["dcat:theme"] = s(te((k = e["Auffindbarkeit/Kategorien"]) == null ? void 0 : k.categories), n.getOrElse(() => [])), t["schema:application"] = (y = e["Auffindbarkeit/Anwendungsbereiche"]) == null ? void 0 : y.applications, t["schema:status"] = s(f((w = e["Grundlegende Informationen/Projektstatus"]) == null ? void 0 : w.projectName), n.getOrElse(() => "")), t["schema:amount"] = s(
263
270
  ee((O = e["Optionale Daten"]) == null ? void 0 : O.budget, "http://www.w3.org/2001/XMLSchema#integer"),
264
271
  n.map((l) => {
265
272
  var g;
@@ -271,7 +278,7 @@ function ue(e, r = {}) {
271
278
  };
272
279
  }),
273
280
  n.getOrUndefined
274
- ), t["schema:skills"] = s(ne((h = e["Optionale Daten"]) == null ? void 0 : h.requiredExpertise), n.getOrUndefined), t["schema:startDate"] = s(f((_ = e["Optionale Daten"]) == null ? void 0 : _.startDate), n.getOrUndefined), t["schema:endDate"] = s(f((E = e["Optionale Daten"]) == null ? void 0 : E.endDate), n.getOrUndefined);
281
+ ), t["schema:skills"] = s(ne((h = e["Optionale Daten"]) == null ? void 0 : h.requiredExpertise), n.getOrUndefined), t["schema:startDate"] = s(f((T = e["Optionale Daten"]) == null ? void 0 : T.startDate), n.getOrUndefined), t["schema:endDate"] = s(f((_ = e["Optionale Daten"]) == null ? void 0 : _.endDate), n.getOrUndefined);
275
282
  const p = [
276
283
  C(
277
284
  (B = e["Optionale Daten"]) == null ? void 0 : B.links,
@@ -331,25 +338,25 @@ function ue(e, r = {}) {
331
338
  involvedStakeholders: "Gab es Verzoegerungen und wenn ja, was waren die Gruende?",
332
339
  dataCollectionMethod: "Welche Schnittstellen wurden genutzt und traten technische Herausforderungen auf?",
333
340
  budgetPlanning: "Welche Ueberlegungen sind in Ihre Entscheidung fuer eine Open-Source-Loesung eingeflossen und welche Erfahrungen haben Sie gemacht?"
334
- }, I = {
341
+ }, W = {
335
342
  projectTriggers: "Was sind Ihre wichtigsten Learnings aus dem Projekt? Was wuerden Sie beim naechsten Use Case anders machen?",
336
343
  involvedStakeholders: "Wird die Wirksamkeit Ihres Projekts ueberwacht und wenn ja, wie? Ist der erwartete Nutzen eingetreten?",
337
344
  dataCollectionMethod: "Gibt es Plaene fuer eine Skalierung oder Weiterentwicklung? Wenn ja, wie sichern Sie die Finanzierung dafuer?",
338
345
  budgetPlanning: "Welche externen Unterstuetzungsangebote haben Ihnen geholfen oder auch gefehlt?"
339
- }, L = z([
346
+ }, I = z([
340
347
  D(e["Projektphasen (optional)/Initiieren"], "Initiieren", x, 1),
341
348
  D(e["Projektphasen (optional)/Planen"], "Planen", d, 2),
342
349
  D(e["Projektphasen (optional)/Umsetzen"], "Umsetzen", j, 3),
343
- D(e["Projektphasen (optional)/Weiterdenken"], "Weiterdenken", I, 4)
350
+ D(e["Projektphasen (optional)/Weiterdenken"], "Weiterdenken", W, 4)
344
351
  ]);
345
- t["schema:hasPart"] = u(L);
346
- const W = z([
352
+ t["schema:hasPart"] = u(I);
353
+ const L = z([
347
354
  U({ prefixKey: "1. Datenerfassung", activityLabel: "Datenerfassung", input: e, toLanged: i, context: r }),
348
355
  U({ prefixKey: "2. Datenverarbeitung", activityLabel: "Datenverarbeitung", input: e, toLanged: i, context: r }),
349
356
  U({ prefixKey: "3. Datensimulation", activityLabel: "Datensimulation", input: e, toLanged: i, context: r }),
350
357
  U({ prefixKey: "4. Datenvisualisierung", activityLabel: "Datenvisualisierung", input: e, toLanged: i, context: r })
351
358
  ]);
352
- return t["p-plan:hasStep"] = u(W), {
359
+ return t["p-plan:hasStep"] = u(L), {
353
360
  "@context": {
354
361
  ...X
355
362
  },
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.33",
4
+ "version": "0.2.0-alpha.35",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",