@piveau/dpi 0.2.0-alpha.13 → 0.2.0-alpha.15

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