@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.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +46 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +107 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +86 -62
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +7 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +26 -27
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +38 -39
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +140 -116
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +36 -29
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +189 -155
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +128 -123
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +367 -379
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +157 -141
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +20 -20
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +68 -70
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +61 -59
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +185 -180
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +60 -61
- package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +76 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +67 -34
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +98 -94
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +314 -307
- package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
- package/package.json +5 -5
- package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
- 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
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
}),
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
}),
|
|
19
|
-
"@type":
|
|
20
|
-
"dct:identifier":
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
}),
|
|
26
|
-
"@type":
|
|
27
|
-
"
|
|
28
|
-
"
|
|
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":
|
|
33
|
-
"sosa:hasLocation":
|
|
34
|
-
"foaf:depiction":
|
|
35
|
-
"dct:references":
|
|
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":
|
|
41
|
-
}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
]),
|
|
46
|
-
"@type":
|
|
47
|
-
"schema:text":
|
|
48
|
-
"schema:acceptedAnswer":
|
|
49
|
-
"schema:position":
|
|
50
|
-
}),
|
|
51
|
-
"@type":
|
|
52
|
-
"dct:identifier":
|
|
53
|
-
"dct:type":
|
|
54
|
-
"schema:position":
|
|
55
|
-
"schema:question":
|
|
56
|
-
"p-plan:isPrecededBy":
|
|
57
|
-
"dct:references":
|
|
58
|
-
}),
|
|
59
|
-
"@type":
|
|
60
|
-
"dct:identifier":
|
|
61
|
-
"p-plan:Activity":
|
|
62
|
-
"dct:description":
|
|
63
|
-
"schema:about":
|
|
64
|
-
"schema:position":
|
|
65
|
-
"prov:used":
|
|
66
|
-
"p-plan:isPrecededBy":
|
|
67
|
-
"p-plan:hasInputVar":
|
|
68
|
-
"dct:references":
|
|
69
|
-
}),
|
|
70
|
-
"@type":
|
|
71
|
-
"schema:description":
|
|
72
|
-
"schema:currency":
|
|
73
|
-
"schema:value":
|
|
74
|
-
}),
|
|
75
|
-
"@id":
|
|
76
|
-
"@type":
|
|
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":
|
|
79
|
-
"dct:title":
|
|
80
|
-
"dct:description":
|
|
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":
|
|
86
|
+
"dcat:theme": e.array(i),
|
|
83
87
|
// Applications and status as literals
|
|
84
|
-
"schema:application":
|
|
85
|
-
"schema:status":
|
|
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":
|
|
94
|
+
"schema:skills": e.array(e.string()).optional(),
|
|
91
95
|
// Contact and partners
|
|
92
|
-
"dcat:contactPoint":
|
|
93
|
-
"dct:contributor":
|
|
96
|
+
"dcat:contactPoint": e.array(l).optional(),
|
|
97
|
+
"dct:contributor": e.array(p).optional(),
|
|
94
98
|
// Optional budget
|
|
95
|
-
"schema:amount":
|
|
99
|
+
"schema:amount": e.preprocess(t, L.optional()),
|
|
96
100
|
// Organizational and technical steps
|
|
97
|
-
"schema:hasPart":
|
|
98
|
-
"p-plan:hasStep":
|
|
101
|
+
"schema:hasPart": e.array(b).optional(),
|
|
102
|
+
"p-plan:hasStep": e.array(A).optional(),
|
|
99
103
|
// References and last modified
|
|
100
|
-
"dct:references":
|
|
104
|
+
"dct:references": e.array(o).optional(),
|
|
101
105
|
"prov:generatedAtTime": n
|
|
102
106
|
});
|
|
103
107
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
116
|
-
|
|
119
|
+
A as schemaProjectTechnicalStep,
|
|
120
|
+
h as schemaSoftwareLink
|
|
117
121
|
};
|