@startinblox/components-ds4go 4.1.6 → 4.1.8
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/README.md +137 -57
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/components/solid-fact-list.ts +6 -10
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ config.json, client:
|
|
|
52
52
|
```json
|
|
53
53
|
...
|
|
54
54
|
"css": [
|
|
55
|
-
"https://ds4go.tems-components.startinblox.com/
|
|
55
|
+
"https://ds4go.tems-components.startinblox.com/solid-tems-ui.css",
|
|
56
56
|
"https://ds4go-components.startinblox.com/components-ds4go.css"
|
|
57
57
|
],
|
|
58
58
|
...
|
|
@@ -77,121 +77,201 @@ config.json, npm:
|
|
|
77
77
|
]
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
##
|
|
80
|
+
## DSP Connector
|
|
81
81
|
|
|
82
82
|
config.json, components:
|
|
83
83
|
|
|
84
84
|
```json
|
|
85
|
-
[
|
|
86
|
-
...,
|
|
87
85
|
{
|
|
88
|
-
"type": "
|
|
86
|
+
"type": "dsp-connector",
|
|
87
|
+
"parameters": {
|
|
88
|
+
"participant-connector-uri": "...",
|
|
89
|
+
"participant-id": "...",
|
|
90
|
+
"participant-api-key": "...",
|
|
91
|
+
"providers": [
|
|
92
|
+
{
|
|
93
|
+
"name": "...",
|
|
94
|
+
"address": "...",
|
|
95
|
+
"color": "unused, legacy",
|
|
96
|
+
"participantId": "..."
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"route": "dsp-connector",
|
|
101
|
+
"integration": [
|
|
102
|
+
"routing"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## DSIF Explorer
|
|
108
|
+
|
|
109
|
+
config.json, components:
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"type": "dsif-explorer-poc",
|
|
89
114
|
"parameters": {
|
|
90
115
|
"menu": {
|
|
91
|
-
"name": "
|
|
92
|
-
"category": "
|
|
93
|
-
"icon": "
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
116
|
+
"name": "DSIF Explorer",
|
|
117
|
+
"category": "none",
|
|
118
|
+
"icon": "mage-globe-fill"
|
|
119
|
+
},
|
|
120
|
+
"dataSrc": "https://poc.root-authority.dsif.eu/sectors",
|
|
121
|
+
"sectorId": "*",
|
|
122
|
+
"catalogId": "*"
|
|
123
|
+
},
|
|
124
|
+
"defaultRoute": true,
|
|
125
|
+
"route": "dsif-explorer",
|
|
126
|
+
"integration": [
|
|
127
|
+
"menu",
|
|
128
|
+
"routing"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Fetch all catalogs
|
|
134
|
+
|
|
135
|
+
The DSIF Explorer component supports fetching all catalogs by setting `sectorId` and `catalogId` to `"*"`.
|
|
136
|
+
|
|
137
|
+
## Data Space Catalog
|
|
138
|
+
|
|
139
|
+
config.json, components:
|
|
140
|
+
|
|
141
|
+
```json
|
|
142
|
+
{
|
|
143
|
+
"type": "dsp-catalog",
|
|
144
|
+
"parameters": {
|
|
145
|
+
"header": "Data space catalog",
|
|
146
|
+
"menu": {
|
|
147
|
+
"name": "Data space catalog",
|
|
148
|
+
"category": "none",
|
|
149
|
+
"icon": "mage-globe-fill"
|
|
98
150
|
},
|
|
99
|
-
"header": "Fact Bundling",
|
|
100
|
-
"disableFiltering": true,
|
|
101
|
-
"defaultDataSrc": "server://factbundles/",
|
|
102
151
|
"bind-resources": ""
|
|
103
152
|
},
|
|
104
|
-
"route": "
|
|
153
|
+
"route": "dataspace-catalog",
|
|
105
154
|
"routeAttributes": {
|
|
106
|
-
"rdf-type": "ds4go:FactBundle",
|
|
107
155
|
"use-id": ""
|
|
108
156
|
},
|
|
109
157
|
"integration": [
|
|
110
158
|
"menu",
|
|
111
159
|
"routing"
|
|
112
160
|
]
|
|
113
|
-
}
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Fact List
|
|
165
|
+
|
|
166
|
+
config.json, components:
|
|
167
|
+
|
|
168
|
+
```json
|
|
114
169
|
{
|
|
115
|
-
"type": "fact-
|
|
170
|
+
"type": "fact-list",
|
|
116
171
|
"parameters": {
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
172
|
+
"menu": {
|
|
173
|
+
"name": "Fact Checks",
|
|
174
|
+
"category": "Services",
|
|
175
|
+
"icon": "mingcute-bookmark-line",
|
|
176
|
+
"featureflags": []
|
|
177
|
+
},
|
|
178
|
+
"header": "Fact Checks",
|
|
179
|
+
"bind-resources": "",
|
|
180
|
+
"customers-src": "server://customers/"
|
|
181
|
+
},
|
|
182
|
+
"route": "facts",
|
|
183
|
+
"routeAttributes": {
|
|
184
|
+
"rdf-type": "ds4go:Fact",
|
|
185
|
+
"use-id": ""
|
|
120
186
|
},
|
|
121
|
-
"route": "fact-bundle-creation",
|
|
122
187
|
"integration": [
|
|
188
|
+
"menu",
|
|
123
189
|
"routing"
|
|
124
190
|
]
|
|
125
|
-
}
|
|
126
|
-
...
|
|
127
|
-
]
|
|
191
|
+
}
|
|
128
192
|
```
|
|
129
193
|
|
|
130
|
-
##
|
|
194
|
+
## Fact Bundling
|
|
131
195
|
|
|
132
196
|
config.json, components:
|
|
133
197
|
|
|
134
198
|
```json
|
|
135
199
|
{
|
|
136
|
-
"type": "
|
|
200
|
+
"type": "fact-bundle",
|
|
137
201
|
"parameters": {
|
|
138
202
|
"menu": {
|
|
139
|
-
"name": "
|
|
140
|
-
"category": "
|
|
141
|
-
"icon": "
|
|
203
|
+
"name": "Fact Bundling",
|
|
204
|
+
"category": "Services",
|
|
205
|
+
"icon": "mingcute-bookmark-line",
|
|
206
|
+
"featureflags": [],
|
|
207
|
+
"alternate": [
|
|
208
|
+
"fact-bundle-creation"
|
|
209
|
+
]
|
|
142
210
|
},
|
|
143
|
-
"
|
|
211
|
+
"header": "Fact Bundling",
|
|
212
|
+
"disableFiltering": true,
|
|
213
|
+
"defaultDataSrc": "server://factbundles/",
|
|
214
|
+
"bind-resources": ""
|
|
215
|
+
},
|
|
216
|
+
"route": "fact-bundles",
|
|
217
|
+
"routeAttributes": {
|
|
218
|
+
"rdf-type": "ds4go:FactBundle",
|
|
219
|
+
"use-id": ""
|
|
144
220
|
},
|
|
145
|
-
"route": "dsif-explorer",
|
|
146
221
|
"integration": [
|
|
147
222
|
"menu",
|
|
148
223
|
"routing"
|
|
149
224
|
]
|
|
150
|
-
}
|
|
225
|
+
}
|
|
151
226
|
```
|
|
152
227
|
|
|
153
|
-
###
|
|
228
|
+
### Create Fact Bundle
|
|
154
229
|
|
|
155
230
|
config.json, components:
|
|
156
231
|
|
|
157
232
|
```json
|
|
158
233
|
{
|
|
159
|
-
"type": "
|
|
234
|
+
"type": "fact-bundle-creation",
|
|
160
235
|
"parameters": {
|
|
161
|
-
"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"icon": "mage-globe-fill"
|
|
165
|
-
},
|
|
166
|
-
"dataSrc": "https://poc.root-authority.dsif.eu/sectors",
|
|
167
|
-
"sectorId": "*",
|
|
168
|
-
"catalogId": "*"
|
|
236
|
+
"header": "Create a new Fact Bundle",
|
|
237
|
+
"dataSrc": "server://factbundles/",
|
|
238
|
+
"factsSrc": "server://facts/"
|
|
169
239
|
},
|
|
170
|
-
"route": "
|
|
240
|
+
"route": "fact-bundle-creation",
|
|
171
241
|
"integration": [
|
|
172
|
-
"menu",
|
|
173
242
|
"routing"
|
|
174
243
|
]
|
|
175
|
-
}
|
|
244
|
+
}
|
|
176
245
|
```
|
|
177
246
|
|
|
178
|
-
##
|
|
247
|
+
## Customer List
|
|
179
248
|
|
|
180
249
|
config.json, components:
|
|
181
250
|
|
|
182
251
|
```json
|
|
183
252
|
{
|
|
184
|
-
"type": "
|
|
253
|
+
"type": "customer-list",
|
|
185
254
|
"parameters": {
|
|
186
|
-
"
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
255
|
+
"menu": {
|
|
256
|
+
"name": "Customers",
|
|
257
|
+
"category": "Management",
|
|
258
|
+
"icon": "mdi-handshake-outline",
|
|
259
|
+
"featureflags": []
|
|
260
|
+
},
|
|
261
|
+
"header": "Customers",
|
|
262
|
+
"defaultDataSrc": "server://customers/",
|
|
263
|
+
"bind-resources": ""
|
|
191
264
|
},
|
|
192
|
-
"route": "
|
|
193
|
-
"
|
|
194
|
-
|
|
265
|
+
"route": "customers",
|
|
266
|
+
"routeAttributes": {
|
|
267
|
+
"rdf-type": "ds4go:Customer",
|
|
268
|
+
"use-id": ""
|
|
269
|
+
},
|
|
270
|
+
"integration": [
|
|
271
|
+
"menu",
|
|
272
|
+
"routing"
|
|
273
|
+
]
|
|
274
|
+
}
|
|
195
275
|
```
|
|
196
276
|
|
|
197
277
|
## License
|
package/dist/index.js
CHANGED
|
@@ -9382,14 +9382,14 @@ let G = class extends k {
|
|
|
9382
9382
|
);
|
|
9383
9383
|
if (f) {
|
|
9384
9384
|
const g = f?.dataAddress?.baseUrl;
|
|
9385
|
-
g && n.push(
|
|
9385
|
+
g && n.push(
|
|
9386
|
+
this.dspConnector.instance.fetchProtectedResource(g)
|
|
9387
|
+
);
|
|
9386
9388
|
}
|
|
9387
9389
|
}
|
|
9388
|
-
const d =
|
|
9389
|
-
(m) => this._getProxyValue(m)
|
|
9390
|
-
), u = Array.from(
|
|
9390
|
+
const d = await Promise.all(n), u = Array.from(
|
|
9391
9391
|
new Set(
|
|
9392
|
-
(await Promise.all(d)).flatMap((m) => m?.
|
|
9392
|
+
(await Promise.all(d)).flatMap((m) => m?.["ldp:contains"] || []).map((m) => m["@id"])
|
|
9393
9393
|
)
|
|
9394
9394
|
);
|
|
9395
9395
|
this.objects = await Promise.all(
|
package/package.json
CHANGED
|
@@ -149,24 +149,20 @@ export class SolidFactList extends OrbitComponent {
|
|
|
149
149
|
if (asset) {
|
|
150
150
|
const bundleUrl = asset?.dataAddress?.baseUrl;
|
|
151
151
|
if (bundleUrl) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// );
|
|
156
|
-
// Temp workaround, using ldp store to bypass the issue
|
|
157
|
-
bundles.push(bundleUrl);
|
|
152
|
+
bundles.push(
|
|
153
|
+
this.dspConnector.instance.fetchProtectedResource(bundleUrl),
|
|
154
|
+
);
|
|
158
155
|
}
|
|
159
156
|
}
|
|
160
157
|
}
|
|
158
|
+
|
|
161
159
|
|
|
162
|
-
const fetchedBundles =
|
|
163
|
-
this._getProxyValue(bundle),
|
|
164
|
-
);
|
|
160
|
+
const fetchedBundles = await Promise.all(bundles);
|
|
165
161
|
|
|
166
162
|
const facts = Array.from(
|
|
167
163
|
new Set(
|
|
168
164
|
(await Promise.all(fetchedBundles))
|
|
169
|
-
.flatMap((bundle: any) => bundle?.
|
|
165
|
+
.flatMap((bundle: any) => bundle?.["ldp:contains"] || [])
|
|
170
166
|
.map((fact: Fact) => fact["@id"]),
|
|
171
167
|
),
|
|
172
168
|
);
|