@data-fair/app-dashboards 0.7.4 → 0.8.1
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/index-B84G-kDO.js +27 -0
- package/dist/config-schema.json +222 -76
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/index-CGQLh6vX.js +0 -27
package/dist/config-schema.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
{
|
8
8
|
"title": "Source des valeurs pour les filtres",
|
9
9
|
"type": "object",
|
10
|
-
"x-fromUrl": "api/v1/datasets?status
|
10
|
+
"x-fromUrl": "api/v1/datasets?status=finalized&q={q}&select=id,title,schema,timePeriod,bbox&{context.datasetFilter}&sort=createdAt:-1",
|
11
11
|
"x-itemsProp": "results",
|
12
12
|
"x-itemTitle": "title",
|
13
13
|
"x-itemKey": "href",
|
@@ -37,7 +37,7 @@
|
|
37
37
|
}
|
38
38
|
]
|
39
39
|
},
|
40
|
-
"
|
40
|
+
"filters": {
|
41
41
|
"type": "array",
|
42
42
|
"title": "Filtres du tableau de bord",
|
43
43
|
"items": {
|
@@ -46,30 +46,28 @@
|
|
46
46
|
"properties": {
|
47
47
|
"labelField": {
|
48
48
|
"title": "Colonne de libellé du filtre",
|
49
|
-
"type": "
|
49
|
+
"type": "string",
|
50
50
|
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false",
|
51
51
|
"x-itemTitle": "label",
|
52
|
-
"x-itemKey": "key"
|
53
|
-
"properties": {
|
54
|
-
"key": { "type": "string" },
|
55
|
-
"label": { "type": "string" }
|
56
|
-
}
|
52
|
+
"x-itemKey": "key"
|
57
53
|
},
|
58
|
-
"
|
54
|
+
"values": {
|
55
|
+
"title": "Valeurs Associées",
|
56
|
+
"description": "Si vide utilise la valeur du libellé",
|
59
57
|
"type": "array",
|
60
|
-
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false
|
58
|
+
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false",
|
61
59
|
"x-itemKey": "key",
|
62
60
|
"x-itemTitle": "label",
|
63
61
|
"items": {
|
64
62
|
"title": "Colonnes pour les valeurs du filtre",
|
65
|
-
"type": "
|
66
|
-
"properties": {
|
67
|
-
"key": { "type": "string" },
|
68
|
-
"label": { "type": "string" },
|
69
|
-
"x-concept": { "type": "object" }
|
70
|
-
}
|
63
|
+
"type": "string"
|
71
64
|
}
|
72
65
|
},
|
66
|
+
"multipleValues": {
|
67
|
+
"title": "Permettre de filtrer par plusieurs valeur",
|
68
|
+
"type": "boolean",
|
69
|
+
"default": false
|
70
|
+
},
|
73
71
|
"forceOneValue": {
|
74
72
|
"title": "Toujours filtrer par une valeur",
|
75
73
|
"type": "boolean",
|
@@ -222,84 +220,232 @@
|
|
222
220
|
"definitions": {
|
223
221
|
"table": {
|
224
222
|
"title": "Prévisualisation table",
|
223
|
+
"type": "object",
|
225
224
|
"properties": {
|
226
|
-
"type": { "const": "tablePreview", "title": "Type de l'élément" }
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
"
|
231
|
-
},
|
232
|
-
"dataset": {
|
233
|
-
"type": "object",
|
234
|
-
"x-fromUrl": "api/v1/datasets?q={q}&{context.datasetFilter}&select=id,title,schema",
|
235
|
-
"x-itemKey": "id",
|
236
|
-
"x-itemTitle": "title",
|
237
|
-
"x-itemsProp": "results",
|
225
|
+
"type": { "const": "tablePreview", "title": "Type de l'élément" }
|
226
|
+
},
|
227
|
+
"oneOf": [
|
228
|
+
{
|
229
|
+
"title": "Jeu de données des filtres",
|
238
230
|
"properties": {
|
239
|
-
"
|
240
|
-
|
241
|
-
|
242
|
-
|
231
|
+
"source": {
|
232
|
+
"const": "root",
|
233
|
+
"title": "Source des données"
|
234
|
+
},
|
235
|
+
"fields": {
|
236
|
+
"title": "Champs à afficher",
|
237
|
+
"description": "Si vide, tous les champs seront affichés",
|
238
|
+
"type": "array",
|
239
|
+
"x-fromUrl": "{datasets[0].href}/schema?calculated=false",
|
240
|
+
"x-itemTitle": "label",
|
241
|
+
"x-itemKey": "key",
|
242
|
+
"items": {
|
243
|
+
"type": "string"
|
244
|
+
}
|
245
|
+
},
|
246
|
+
"display": {
|
247
|
+
"type": "string",
|
248
|
+
"oneOf": [
|
249
|
+
{
|
250
|
+
"const": "table",
|
251
|
+
"title": "Tableau"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"const": "table-dense",
|
255
|
+
"title": "Tableau dense"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"const": "list",
|
259
|
+
"title": "Vignettes"
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"default": "table",
|
263
|
+
"title": "Affichage"
|
264
|
+
},
|
265
|
+
"noInteractions": {
|
266
|
+
"title": "Désactiver les interactions",
|
267
|
+
"type": "boolean",
|
268
|
+
"default": false
|
269
|
+
},
|
270
|
+
"valueMandatory": {
|
271
|
+
"title": "Nécessite une valeur dans des filtres",
|
272
|
+
"type": "boolean",
|
273
|
+
"default": false
|
274
|
+
},
|
275
|
+
"mandatoryFilters": {
|
276
|
+
"title": "Filtres requis",
|
277
|
+
"type": "array",
|
278
|
+
"x-if": "parent.value.valueMandatory",
|
279
|
+
"x-fromData": "filters",
|
280
|
+
"x-itemKey": "labelField",
|
281
|
+
"x-itemTitle": "labelField",
|
282
|
+
"items": {
|
283
|
+
"type": "string"
|
284
|
+
}
|
285
|
+
}
|
243
286
|
}
|
244
287
|
},
|
245
|
-
|
246
|
-
"
|
247
|
-
"
|
248
|
-
{
|
249
|
-
"const": "
|
250
|
-
"title": "
|
288
|
+
{
|
289
|
+
"title": "Autre jeu de données",
|
290
|
+
"properties": {
|
291
|
+
"source": {
|
292
|
+
"const": "external",
|
293
|
+
"title": "Source des données"
|
294
|
+
},
|
295
|
+
"dataset": {
|
296
|
+
"type": "object",
|
297
|
+
"x-fromUrl": "api/v1/datasets?q={q}&{context.datasetFilter}&select=id,title,schema&sort=createdAt:-1",
|
298
|
+
"x-itemKey": "id",
|
299
|
+
"x-itemTitle": "title",
|
300
|
+
"x-itemsProp": "results",
|
301
|
+
"properties": {
|
302
|
+
"id": { "type": "string" },
|
303
|
+
"title": { "type": "string" },
|
304
|
+
"href": { "type": "string" },
|
305
|
+
"schema": { "type": "array" }
|
306
|
+
}
|
251
307
|
},
|
252
|
-
{
|
253
|
-
"
|
254
|
-
"
|
308
|
+
"fields": {
|
309
|
+
"title": "Champs à afficher",
|
310
|
+
"description": "Si vide, tous les champs seront affichés",
|
311
|
+
"type": "array",
|
312
|
+
"x-fromUrl": "{parent.value.dataset.href}/schema?calculated=false",
|
313
|
+
"x-itemTitle": "label",
|
314
|
+
"x-itemKey": "key",
|
315
|
+
"items": {
|
316
|
+
"type": "string"
|
317
|
+
}
|
255
318
|
},
|
256
|
-
{
|
257
|
-
"
|
258
|
-
"
|
319
|
+
"display": {
|
320
|
+
"type": "string",
|
321
|
+
"oneOf": [
|
322
|
+
{
|
323
|
+
"const": "table",
|
324
|
+
"title": "Tableau"
|
325
|
+
},
|
326
|
+
{
|
327
|
+
"const": "table-dense",
|
328
|
+
"title": "Tableau dense"
|
329
|
+
},
|
330
|
+
{
|
331
|
+
"const": "list",
|
332
|
+
"title": "Vignettes"
|
333
|
+
}
|
334
|
+
],
|
335
|
+
"default": "table",
|
336
|
+
"title": "Affichage"
|
337
|
+
},
|
338
|
+
"noInteractions": {
|
339
|
+
"title": "Désactiver les interactions",
|
340
|
+
"type": "boolean",
|
341
|
+
"default": false
|
342
|
+
},
|
343
|
+
"valueMandatory": {
|
344
|
+
"title": "Nécessite une valeur dans des filtres",
|
345
|
+
"type": "boolean",
|
346
|
+
"default": false
|
347
|
+
},
|
348
|
+
"mandatoryFilters": {
|
349
|
+
"title": "Filtres requis",
|
350
|
+
"type": "array",
|
351
|
+
"x-if": "parent.value.valueMandatory",
|
352
|
+
"x-fromData": "filters",
|
353
|
+
"x-itemKey": "labelField",
|
354
|
+
"x-itemTitle": "labelField",
|
355
|
+
"items": {
|
356
|
+
"type": "string"
|
357
|
+
}
|
259
358
|
}
|
260
|
-
],
|
261
|
-
"default": "table",
|
262
|
-
"title": "Affichage"
|
263
|
-
},
|
264
|
-
"noInteractions": {
|
265
|
-
"title": "Désactiver les interactions",
|
266
|
-
"type": "boolean",
|
267
|
-
"default": false
|
268
|
-
},
|
269
|
-
"fields": {
|
270
|
-
"title": "Champs à afficher",
|
271
|
-
"description": "Si vide, tous les champs seront affichés",
|
272
|
-
"type": "array",
|
273
|
-
"x-fromUrl": "{parent.value.dataset.href}/schema?calculated=false",
|
274
|
-
"x-itemTitle": "label",
|
275
|
-
"x-itemKey": "key",
|
276
|
-
"items": {
|
277
|
-
"type": "string"
|
278
359
|
}
|
279
360
|
}
|
361
|
+
],
|
362
|
+
"default": {
|
363
|
+
"source": "root"
|
280
364
|
}
|
281
365
|
},
|
282
366
|
"application": {
|
283
367
|
"title": "Visualisation",
|
284
368
|
"properties": {
|
285
|
-
"type": { "const": "application", "title": "Type de l'élément" }
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
"
|
369
|
+
"type": { "const": "application", "title": "Type de l'élément" }
|
370
|
+
},
|
371
|
+
"oneOf": [
|
372
|
+
{
|
373
|
+
"title": "Jeu de données des filtres",
|
374
|
+
"properties": {
|
375
|
+
"source": {
|
376
|
+
"const": "root",
|
377
|
+
"title": "Source des données de l'application"
|
378
|
+
},
|
379
|
+
"application": {
|
380
|
+
"type": "object",
|
381
|
+
"x-fromUrl": "api/v1/applications?q={q}&{context.datasetFilter}&dataset={datasets[0].id}&filterConcepts=true&select=id,title,baseApp&sort=createdAt:-1",
|
382
|
+
"x-itemKey": "id",
|
383
|
+
"x-itemTitle": "title",
|
384
|
+
"x-itemsProp": "results",
|
385
|
+
"properties": {
|
386
|
+
"id": { "type": "string" },
|
387
|
+
"title": { "type": "string" },
|
388
|
+
"baseApp": { "type": "object" }
|
389
|
+
}
|
390
|
+
},
|
391
|
+
"valueMandatory": {
|
392
|
+
"title": "Nécessite une valeur dans des filtres",
|
393
|
+
"type": "boolean",
|
394
|
+
"default": false
|
395
|
+
},
|
396
|
+
"mandatoryFilters": {
|
397
|
+
"title": "Filtres requis",
|
398
|
+
"type": "array",
|
399
|
+
"x-if": "parent.value.valueMandatory",
|
400
|
+
"x-fromData": "filters",
|
401
|
+
"x-itemKey": "labelField",
|
402
|
+
"x-itemTitle": "labelField",
|
403
|
+
"items": {
|
404
|
+
"type": "string"
|
405
|
+
}
|
406
|
+
}
|
407
|
+
}
|
290
408
|
},
|
291
|
-
|
292
|
-
"
|
293
|
-
"x-fromUrl": "api/v1/applications?q={q}&{context.datasetFilter}&filterConcepts=true&select=id,title,baseApp",
|
294
|
-
"x-itemKey": "id",
|
295
|
-
"x-itemTitle": "title",
|
296
|
-
"x-itemsProp": "results",
|
409
|
+
{
|
410
|
+
"title": "Autre jeu de données",
|
297
411
|
"properties": {
|
298
|
-
"
|
299
|
-
|
300
|
-
|
412
|
+
"source": {
|
413
|
+
"const": "external",
|
414
|
+
"title": "Source des données de l'application"
|
415
|
+
},
|
416
|
+
"application": {
|
417
|
+
"type": "object",
|
418
|
+
"x-fromUrl": "api/v1/applications?q={q}&{context.datasetFilter}&filterConcepts=true&select=id,title,baseApp",
|
419
|
+
"x-itemKey": "id",
|
420
|
+
"x-itemTitle": "title",
|
421
|
+
"x-itemsProp": "results",
|
422
|
+
"properties": {
|
423
|
+
"id": { "type": "string" },
|
424
|
+
"title": { "type": "string" },
|
425
|
+
"baseApp": { "type": "object" }
|
426
|
+
}
|
427
|
+
},
|
428
|
+
"valueMandatory": {
|
429
|
+
"title": "Nécessite une valeur dans des filtres",
|
430
|
+
"type": "boolean",
|
431
|
+
"default": false
|
432
|
+
},
|
433
|
+
"mandatoryFilters": {
|
434
|
+
"title": "Filtres requis",
|
435
|
+
"type": "array",
|
436
|
+
"x-if": "parent.value.valueMandatory",
|
437
|
+
"x-fromData": "filters",
|
438
|
+
"x-itemKey": "labelField",
|
439
|
+
"x-itemTitle": "labelField",
|
440
|
+
"items": {
|
441
|
+
"type": "string"
|
442
|
+
}
|
443
|
+
}
|
301
444
|
}
|
302
445
|
}
|
446
|
+
],
|
447
|
+
"default": {
|
448
|
+
"source": "root"
|
303
449
|
}
|
304
450
|
},
|
305
451
|
"text": {
|
package/dist/index.html
CHANGED
@@ -20,8 +20,8 @@
|
|
20
20
|
|
21
21
|
<!-- Capture a global variable defined by data-fair's reverse proxy. -->
|
22
22
|
<script type="text/javascript">window.APPLICATION=%APPLICATION%;</script>
|
23
|
-
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.
|
24
|
-
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.
|
23
|
+
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.8.1/dist/assets/index-B84G-kDO.js"></script>
|
24
|
+
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.8.1/dist/assets/index-CaUwrmsK.css">
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|