@piveau/dpi 0.2.0-alpha.14 → 0.2.0-alpha.16

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 (70) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +46 -48
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +107 -88
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +1 -1
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +86 -62
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +7 -4
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +26 -27
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +19 -19
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +38 -39
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +140 -116
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +36 -29
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +189 -155
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +128 -123
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
  38. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
  39. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  40. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +367 -379
  41. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
  42. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
  43. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +157 -141
  44. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
  45. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
  46. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
  47. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
  48. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
  49. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +2 -2
  50. package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
  51. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +20 -20
  52. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +68 -70
  53. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +61 -59
  54. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +185 -180
  55. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +60 -61
  56. package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +76 -46
  57. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +67 -34
  58. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
  59. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
  60. package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +98 -94
  61. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
  62. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +314 -307
  63. package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
  64. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  65. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
  66. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  67. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
  68. package/package.json +5 -5
  69. package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
  70. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +0 -281
@@ -1,117 +1,121 @@
1
- import { schemaDateField as n, takeFirst as e, schemaFoafAgent as c, schemaContactPoint as p, schemaIriString as r, schemaLanguageContainer as a, schemaTypedLiteral as s } from "@piveau/jsonld";
2
- import * as t from "zod/v4";
3
- const o = t.object({
4
- "@id": t.string().optional(),
5
- "@type": t.string(),
6
- "dct:type": t.preprocess(e, t.string().optional()),
7
- "schema:url": t.preprocess(e, t.string()),
8
- "dct:title": t.preprocess(e, t.string()),
9
- "dct:description": t.preprocess(e, t.string().optional())
10
- }), l = t.object({
11
- "dct:title": t.preprocess(e, t.string())
12
- }), i = t.object({
13
- "@type": t.preprocess(e, t.string().optional())
14
- }), d = i.extend({
15
- "@type": t.literal("schema:SoftwareApplication"),
16
- "dct:identifier": t.preprocess(e, t.string().optional()),
17
- "schema:featureList": t.array(t.string()).optional()
18
- }), y = i.extend({
19
- "@type": t.literal("dcat:Dataset"),
20
- "dct:identifier": t.preprocess(e, t.string().optional())
21
- }), m = t.object({
22
- "@type": t.string().optional(),
23
- "geo:lat": t.preprocess(e, t.string().optional()),
24
- "geo:long": t.preprocess(e, t.string().optional())
25
- }), h = i.extend({
26
- "@type": t.literal("ssn:System"),
27
- "dct:description": t.array(a).optional(),
28
- "ssn:deployedSystem": t.preprocess(e, r.optional()),
1
+ import { schemaDateField as n, takeFirst as t, schemaFoafAgent as p, schemaContactPoint as l, schemaIriString as i, schemaLanguageContainer as a, schemaTypedLiteral as s } from "@piveau/jsonld";
2
+ import { asArray as d } from "@piveau/sdk-vue";
3
+ import * as e from "zod/v4";
4
+ function y(r) {
5
+ return typeof r == "string" ? r : typeof r == "object" && r !== null && "@id" in r ? t(r["@id"]) : r;
6
+ }
7
+ const o = e.object({
8
+ "@id": e.string().optional(),
9
+ "@type": e.string(),
10
+ "dct:type": e.preprocess(t, e.string().optional()),
11
+ "schema:url": e.preprocess(t, e.string()),
12
+ "dct:title": e.preprocess(t, e.string()),
13
+ "dct:description": e.preprocess(t, e.string().optional())
14
+ }), m = e.object({
15
+ "dct:title": e.preprocess(t, e.string())
16
+ }), c = e.object({
17
+ "@type": e.preprocess(t, e.string().optional())
18
+ }), h = c.extend({
19
+ "@type": e.literal("schema:SoftwareApplication"),
20
+ "dct:identifier": e.preprocess(t, e.string().optional()),
21
+ "schema:featureList": e.array(e.string()).optional()
22
+ }), g = c.extend({
23
+ "@type": e.literal("dcat:Dataset"),
24
+ "dct:identifier": e.preprocess(t, e.string().optional())
25
+ }), f = e.object({
26
+ "@type": e.string().optional(),
27
+ "geo:lat": e.preprocess(t, e.string().optional()),
28
+ "geo:long": e.preprocess(t, e.string().optional())
29
+ }), j = c.extend({
30
+ "@type": e.literal("ssn:System"),
31
+ "dct:description": e.array(a).optional(),
32
+ "ssn:deployedSystem": e.preprocess(t, i.optional()),
29
33
  /**
30
34
  * The purpose of the hardware instance ("Zwecke")
31
35
  */
32
- "ssn:forProperty": t.array(t.string()).optional(),
33
- "sosa:hasLocation": t.array(m).optional(),
34
- "foaf:depiction": t.array(r).optional(),
35
- "dct:references": t.array(o).optional(),
36
+ "ssn:forProperty": e.array(e.string()).optional(),
37
+ "sosa:hasLocation": e.array(f).optional(),
38
+ "foaf:depiction": e.array(i).optional(),
39
+ "dct:references": e.array(o).optional(),
36
40
  /**
37
41
  * Corresponds to functionalities of hardware;
38
42
  * not to be confused with schema:featureList of software
39
43
  */
40
- "ssn-system:hasSystemCapability": t.array(t.string()).optional()
41
- }), g = t.discriminatedUnion("@type", [
42
- d,
43
- y,
44
- h
45
- ]), f = t.object({
46
- "@type": t.string(),
47
- "schema:text": t.preprocess(e, t.string()),
48
- "schema:acceptedAnswer": t.preprocess(e, t.string()),
49
- "schema:position": t.preprocess(e, s)
50
- }), j = t.object({
51
- "@type": t.string(),
52
- "dct:identifier": t.preprocess(e, t.string()),
53
- "dct:type": t.preprocess(e, t.string().optional()),
54
- "schema:position": t.preprocess(e, s.optional()),
55
- "schema:question": t.array(f).optional(),
56
- "p-plan:isPrecededBy": t.any(),
57
- "dct:references": t.array(o).optional()
58
- }), u = t.object({
59
- "@type": t.string(),
60
- "dct:identifier": t.preprocess(e, t.string()),
61
- "p-plan:Activity": t.preprocess(e, t.string()),
62
- "dct:description": t.array(a),
63
- "schema:about": t.array(t.string()).optional(),
64
- "schema:position": t.preprocess(e, s.optional()),
65
- "prov:used": t.array(l).optional(),
66
- "p-plan:isPrecededBy": t.any(),
67
- "p-plan:hasInputVar": t.array(g).optional(),
68
- "dct:references": t.array(o).optional()
69
- }), P = t.object({
70
- "@type": t.string(),
71
- "schema:description": t.preprocess(e, t.string().optional()),
72
- "schema:currency": t.preprocess(e, t.string().optional()),
73
- "schema:value": t.preprocess(e, s.optional())
74
- }), L = t.object({
75
- "@id": t.string().optional(),
76
- "@type": t.array(t.string()).min(2),
44
+ "ssn-system:hasSystemCapability": e.array(e.string()).optional()
45
+ }), u = e.discriminatedUnion("@type", [
46
+ h,
47
+ g,
48
+ j
49
+ ]), P = e.object({
50
+ "@type": e.string(),
51
+ "schema:text": e.preprocess(t, e.string()),
52
+ "schema:acceptedAnswer": e.preprocess(t, e.string()),
53
+ "schema:position": e.preprocess(t, s)
54
+ }), b = e.object({
55
+ "@type": e.string(),
56
+ "dct:identifier": e.preprocess(t, e.string()),
57
+ "dct:type": e.preprocess(t, e.string().optional()),
58
+ "schema:position": e.preprocess(t, s.optional()),
59
+ "schema:question": e.array(P).optional(),
60
+ "p-plan:isPrecededBy": e.any(),
61
+ "dct:references": e.array(o).optional()
62
+ }), A = e.object({
63
+ "@type": e.string(),
64
+ "dct:identifier": e.preprocess(t, e.string()),
65
+ "p-plan:Activity": e.preprocess(t, e.string()),
66
+ "dct:description": e.array(a),
67
+ "schema:about": e.array(e.string()).optional(),
68
+ "schema:position": e.preprocess(t, s.optional()),
69
+ "prov:used": e.array(m).optional(),
70
+ "p-plan:isPrecededBy": e.any(),
71
+ "p-plan:hasInputVar": e.array(u).optional(),
72
+ "dct:references": e.array(o).optional()
73
+ }), L = e.object({
74
+ "@type": e.string(),
75
+ "schema:description": e.preprocess(t, e.string().optional()),
76
+ "schema:currency": e.preprocess(t, e.string().optional()),
77
+ "schema:value": e.preprocess(t, s.optional())
78
+ }), w = e.object({
79
+ "@id": e.string().optional(),
80
+ "@type": e.array(e.string()).min(2),
77
81
  // Core identifiers and labels
78
- "dct:identifier": t.array(t.string()).optional(),
79
- "dct:title": t.array(a),
80
- "dct:description": t.array(a),
82
+ "dct:identifier": e.array(e.string()).optional(),
83
+ "dct:title": e.array(a),
84
+ "dct:description": e.array(a),
81
85
  // Themes/categories as simple IRI nodes
82
- "dcat:theme": t.array(r),
86
+ "dcat:theme": e.array(i),
83
87
  // Applications and status as literals
84
- "schema:application": t.array(r),
85
- "schema:status": t.preprocess(e, t.string()),
88
+ "schema:application": e.preprocess((r) => d(r).map(y), e.array(e.string())),
89
+ "schema:status": e.preprocess(t, e.string()),
86
90
  // Optional dates (date/dateTime)
87
91
  "schema:startDate": n,
88
92
  "schema:endDate": n,
89
93
  // Optional skills (literals)
90
- "schema:skills": t.array(t.string()).optional(),
94
+ "schema:skills": e.array(e.string()).optional(),
91
95
  // Contact and partners
92
- "dcat:contactPoint": t.array(p).optional(),
93
- "dct:contributor": t.array(c).optional(),
96
+ "dcat:contactPoint": e.array(l).optional(),
97
+ "dct:contributor": e.array(p).optional(),
94
98
  // Optional budget
95
- "schema:amount": t.preprocess(e, P.optional()),
99
+ "schema:amount": e.preprocess(t, L.optional()),
96
100
  // Organizational and technical steps
97
- "schema:hasPart": t.array(j).optional(),
98
- "p-plan:hasStep": t.array(u).optional(),
101
+ "schema:hasPart": e.array(b).optional(),
102
+ "p-plan:hasStep": e.array(A).optional(),
99
103
  // References and last modified
100
- "dct:references": t.array(o).optional(),
104
+ "dct:references": e.array(o).optional(),
101
105
  "prov:generatedAtTime": n
102
106
  });
103
107
  export {
104
- y as schemaDatasetLink,
105
- h as schemaHardwareInstance,
106
- m as schemaHardwareLocation,
107
- L as schemaProject,
108
- g as schemaProjectInputLink,
109
- i as schemaProjectInputLinkBase,
110
- l as schemaProjectMethodsUsed,
111
- P as schemaProjectMonetaryAmount,
112
- j as schemaProjectQAPage,
113
- f as schemaProjectQuestionAnswer,
108
+ g as schemaDatasetLink,
109
+ j as schemaHardwareInstance,
110
+ f as schemaHardwareLocation,
111
+ w as schemaProject,
112
+ u as schemaProjectInputLink,
113
+ c as schemaProjectInputLinkBase,
114
+ m as schemaProjectMethodsUsed,
115
+ L as schemaProjectMonetaryAmount,
116
+ b as schemaProjectQAPage,
117
+ P as schemaProjectQuestionAnswer,
114
118
  o as schemaProjectResource,
115
- u as schemaProjectTechnicalStep,
116
- d as schemaSoftwareLink
119
+ A as schemaProjectTechnicalStep,
120
+ h as schemaSoftwareLink
117
121
  };