@piveau/dpi 0.2.0-alpha.6 → 0.2.0-alpha.7
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/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +18 -21
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +49 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue2.js +30 -24
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +5 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +63 -61
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +47 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +33 -29
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +8 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +65 -37
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +21 -22
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +59 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +38 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +32 -34
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +10 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +16 -16
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +13 -13
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +934 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +70 -65
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +42 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +249 -0
- package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/fixtures.js +287 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +281 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +244 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +330 -0
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/shared.js +37 -0
- package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +114 -0
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +394 -361
- package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +3 -3
- package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +6 -6
- package/package.json +5 -2
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { schemaDateField as s, takeFirst as e, schemaFoafAgent as i, schemaContactPoint as p, schemaIriString as o, schemaLanguageContainer as a, schemaTypedLiteral as c } from "@piveau/jsonld";
|
|
2
|
+
import * as t from "zod/v4";
|
|
3
|
+
const r = t.object({
|
|
4
|
+
"@id": t.string().optional(),
|
|
5
|
+
"@type": t.string().optional(),
|
|
6
|
+
"dct:type": t.preprocess(e, t.string().optional()),
|
|
7
|
+
"schema:url": t.preprocess(e, t.string().optional()),
|
|
8
|
+
"dct:title": t.preprocess(e, t.string().optional()),
|
|
9
|
+
"dct:description": t.preprocess(e, t.string().optional())
|
|
10
|
+
}), l = t.object({
|
|
11
|
+
"dct:title": t.preprocess(e, t.string().optional()),
|
|
12
|
+
"dct:description": t.preprocess(e, t.string().optional())
|
|
13
|
+
}), n = t.object({
|
|
14
|
+
"@type": t.preprocess(e, t.string().optional())
|
|
15
|
+
}), d = n.extend({
|
|
16
|
+
"@type": t.literal("pv:SoftwareLink"),
|
|
17
|
+
"dct:identifier": t.preprocess(e, t.string().optional()),
|
|
18
|
+
"schema:featureList": t.array(t.string()).optional()
|
|
19
|
+
}), y = n.extend({
|
|
20
|
+
"@type": t.literal("dcat:Dataset"),
|
|
21
|
+
"dct:identifier": t.preprocess(e, t.string().optional())
|
|
22
|
+
}), m = t.object({
|
|
23
|
+
"@type": t.string().optional(),
|
|
24
|
+
"geo:lat": t.preprocess(e, t.string().optional()),
|
|
25
|
+
"geo:long": t.preprocess(e, t.string().optional())
|
|
26
|
+
}), g = n.extend({
|
|
27
|
+
"@type": t.literal("ssn:Deployment"),
|
|
28
|
+
"dct:description": t.array(a).optional(),
|
|
29
|
+
"ssn:deployedSystem": t.preprocess(e, o.optional()),
|
|
30
|
+
/**
|
|
31
|
+
* The purpose of the hardware instance ("Zwecke")
|
|
32
|
+
*/
|
|
33
|
+
"ssn:forProperty": t.array(t.string()).optional(),
|
|
34
|
+
"sosa:hasLocation": t.array(m).optional(),
|
|
35
|
+
"foaf:depiction": t.array(o).optional(),
|
|
36
|
+
"dct:references": t.array(r).optional(),
|
|
37
|
+
/**
|
|
38
|
+
* Corresponds to functionalities of hardware;
|
|
39
|
+
* not to be confused with schema:featureList of software
|
|
40
|
+
*/
|
|
41
|
+
"ssn-system:hasSystemCapability": t.array(t.string()).optional()
|
|
42
|
+
}), h = t.discriminatedUnion("@type", [
|
|
43
|
+
d,
|
|
44
|
+
y,
|
|
45
|
+
g
|
|
46
|
+
]), f = t.object({
|
|
47
|
+
"@type": t.string(),
|
|
48
|
+
"schema:text": t.preprocess(e, t.string().optional()),
|
|
49
|
+
"schema:acceptedAnswer": t.preprocess(e, t.string().optional())
|
|
50
|
+
}), j = t.object({
|
|
51
|
+
"@type": t.string(),
|
|
52
|
+
"dct:identifier": t.preprocess(e, t.string().optional()),
|
|
53
|
+
"dct:type": t.preprocess(e, t.string().optional()),
|
|
54
|
+
"schema:question": t.array(f).optional(),
|
|
55
|
+
"p-plan:isPrecededBy": t.preprocess(e, o.optional()),
|
|
56
|
+
"dct:references": t.array(r).optional()
|
|
57
|
+
}), u = t.object({
|
|
58
|
+
"@type": t.string(),
|
|
59
|
+
"dct:identifier": t.preprocess(e, t.string().optional()),
|
|
60
|
+
"p-plan:Activity": t.preprocess(e, t.string().optional()),
|
|
61
|
+
"dct:description": t.array(a).optional(),
|
|
62
|
+
"schema:about": t.array(t.string()).optional(),
|
|
63
|
+
"p-plan:isPrecededBy": t.preprocess(e, o.optional()),
|
|
64
|
+
"prov:used": t.array(l).optional(),
|
|
65
|
+
"p-plan:hasInputVar": t.array(h).optional(),
|
|
66
|
+
"dct:references": t.array(r).optional()
|
|
67
|
+
}), P = t.object({
|
|
68
|
+
"@type": t.string(),
|
|
69
|
+
"schema:currency": t.preprocess(e, t.string().optional()),
|
|
70
|
+
"schema:value": t.preprocess(e, c.optional())
|
|
71
|
+
}), L = t.object({
|
|
72
|
+
"@id": t.string().optional(),
|
|
73
|
+
"@type": t.string(),
|
|
74
|
+
// Core identifiers and labels
|
|
75
|
+
"dct:identifier": t.array(t.string()).optional(),
|
|
76
|
+
"dct:title": t.array(a).optional(),
|
|
77
|
+
"dct:description": t.array(a).optional(),
|
|
78
|
+
// Themes/categories as simple IRI nodes
|
|
79
|
+
"dcat:theme": t.array(o).optional(),
|
|
80
|
+
// Applications and status as literals
|
|
81
|
+
"schema:application": t.array(o).optional(),
|
|
82
|
+
"schema:status": t.preprocess(e, t.string().optional()),
|
|
83
|
+
// Optional dates (date/dateTime)
|
|
84
|
+
"schema:startDate": s,
|
|
85
|
+
"schema:endDate": s,
|
|
86
|
+
// Optional skills (literals)
|
|
87
|
+
"schema:skills": t.array(t.string()).optional(),
|
|
88
|
+
// Contact and partners
|
|
89
|
+
"dcat:contactPoint": t.array(p).optional(),
|
|
90
|
+
"dct:contributor": t.array(i).optional(),
|
|
91
|
+
// Optional budget
|
|
92
|
+
"schema:amount": t.preprocess(e, P.optional()),
|
|
93
|
+
// Organizational and technical steps
|
|
94
|
+
"schema:hasPart": t.array(j).optional(),
|
|
95
|
+
"p-plan:hasStep": t.array(u).optional(),
|
|
96
|
+
// References and last modified
|
|
97
|
+
"dct:references": t.array(r).optional(),
|
|
98
|
+
"prov:generatedAtTime": s
|
|
99
|
+
});
|
|
100
|
+
export {
|
|
101
|
+
y as schemaDatasetLink,
|
|
102
|
+
g as schemaHardwareInstance,
|
|
103
|
+
m as schemaHardwareLocation,
|
|
104
|
+
L as schemaProject,
|
|
105
|
+
h as schemaProjectInputLink,
|
|
106
|
+
n as schemaProjectInputLinkBase,
|
|
107
|
+
l as schemaProjectMethodsUsed,
|
|
108
|
+
P as schemaProjectMonetaryAmount,
|
|
109
|
+
j as schemaProjectQAPage,
|
|
110
|
+
f as schemaProjectQuestionAnswer,
|
|
111
|
+
r as schemaProjectResource,
|
|
112
|
+
u as schemaProjectTechnicalStep,
|
|
113
|
+
d as schemaSoftwareLink
|
|
114
|
+
};
|