@data-fair/app-dashboards 0.7.3 → 0.8.0
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-D6Xn0HDe.js +27 -0
- package/dist/config-schema.json +106 -80
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/index-4V5oTDby.js +0 -27
package/dist/config-schema.json
CHANGED
@@ -3,36 +3,41 @@
|
|
3
3
|
"properties": {
|
4
4
|
"datasets": {
|
5
5
|
"type": "array",
|
6
|
-
"items": [
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"
|
15
|
-
"
|
16
|
-
|
17
|
-
|
18
|
-
"
|
19
|
-
|
20
|
-
|
21
|
-
"
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
"
|
28
|
-
|
29
|
-
|
30
|
-
"
|
6
|
+
"items": [
|
7
|
+
{
|
8
|
+
"title": "Source des valeurs pour les filtres",
|
9
|
+
"type": "object",
|
10
|
+
"x-fromUrl": "api/v1/datasets?status=finalized&q={q}&select=id,title,schema,timePeriod,bbox&owner={context.owner.type}:{context.owner.id}",
|
11
|
+
"x-itemsProp": "results",
|
12
|
+
"x-itemTitle": "title",
|
13
|
+
"x-itemKey": "href",
|
14
|
+
"properties": {
|
15
|
+
"href": {
|
16
|
+
"type": "string"
|
17
|
+
},
|
18
|
+
"title": {
|
19
|
+
"type": "string"
|
20
|
+
},
|
21
|
+
"id": {
|
22
|
+
"type": "string"
|
23
|
+
},
|
24
|
+
"schema": {
|
25
|
+
"type": "array"
|
26
|
+
},
|
27
|
+
"timePeriod": {
|
28
|
+
"type": "object"
|
29
|
+
},
|
30
|
+
"bbox": {
|
31
|
+
"type": "array"
|
32
|
+
},
|
33
|
+
"finalizedAt": {
|
34
|
+
"type": "string"
|
35
|
+
}
|
31
36
|
}
|
32
37
|
}
|
33
|
-
|
38
|
+
]
|
34
39
|
},
|
35
|
-
"
|
40
|
+
"filters": {
|
36
41
|
"type": "array",
|
37
42
|
"title": "Filtres du tableau de bord",
|
38
43
|
"items": {
|
@@ -41,31 +46,29 @@
|
|
41
46
|
"properties": {
|
42
47
|
"labelField": {
|
43
48
|
"title": "Colonne de libellé du filtre",
|
44
|
-
"type": "
|
49
|
+
"type": "string",
|
45
50
|
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false",
|
46
51
|
"x-itemTitle": "label",
|
47
|
-
"x-itemKey": "key"
|
48
|
-
"properties": {
|
49
|
-
"key": {"type": "string"},
|
50
|
-
"label": {"type": "string"}
|
51
|
-
}
|
52
|
+
"x-itemKey": "key"
|
52
53
|
},
|
53
|
-
"
|
54
|
+
"values": {
|
55
|
+
"title": "Valeurs Associées",
|
56
|
+
"description": "Si vide utilise la valeur du libellé",
|
54
57
|
"type": "array",
|
55
|
-
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false
|
58
|
+
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false",
|
56
59
|
"x-itemKey": "key",
|
57
60
|
"x-itemTitle": "label",
|
58
61
|
"items": {
|
59
62
|
"title": "Colonnes pour les valeurs du filtre",
|
60
|
-
"type": "
|
61
|
-
"properties": {
|
62
|
-
"key": {"type": "string"},
|
63
|
-
"label": {"type": "string"},
|
64
|
-
"x-concept": {"type": "object"}
|
65
|
-
}
|
63
|
+
"type": "string"
|
66
64
|
}
|
67
65
|
},
|
68
|
-
"
|
66
|
+
"multipleValues": {
|
67
|
+
"title": "Permettre de filtrer par plusieurs valeur",
|
68
|
+
"type": "boolean",
|
69
|
+
"default": false
|
70
|
+
},
|
71
|
+
"forceOneValue": {
|
69
72
|
"title": "Toujours filtrer par une valeur",
|
70
73
|
"type": "boolean",
|
71
74
|
"default": false
|
@@ -76,7 +79,7 @@
|
|
76
79
|
"x-fromUrl": "{datasets.0.href}/values/{parent.value.labelField.key}?q={q}&q_mode=complete&size=100&stringify=true",
|
77
80
|
"x-if": "parent.value.forceOneValue"
|
78
81
|
},
|
79
|
-
"showAllValues":{
|
82
|
+
"showAllValues": {
|
80
83
|
"title": "Garder toutes les valeurs dans la liste",
|
81
84
|
"type": "boolean",
|
82
85
|
"default": false
|
@@ -84,12 +87,12 @@
|
|
84
87
|
}
|
85
88
|
}
|
86
89
|
},
|
87
|
-
"periodFilter":{
|
90
|
+
"periodFilter": {
|
88
91
|
"title": "Ajouter un filtre sur la période",
|
89
92
|
"type": "boolean",
|
90
93
|
"default": false
|
91
94
|
},
|
92
|
-
"addressFilter":{
|
95
|
+
"addressFilter": {
|
93
96
|
"title": "Ajouter un filtre par adresse",
|
94
97
|
"type": "boolean",
|
95
98
|
"default": false
|
@@ -106,7 +109,8 @@
|
|
106
109
|
"sectionsGroup": {
|
107
110
|
"title": "Rendu des sections",
|
108
111
|
"type": "string",
|
109
|
-
"oneOf": [
|
112
|
+
"oneOf": [
|
113
|
+
{
|
110
114
|
"const": "accordion",
|
111
115
|
"title": "En accordéon"
|
112
116
|
},
|
@@ -128,7 +132,7 @@
|
|
128
132
|
"sections": {
|
129
133
|
"title": "Sections",
|
130
134
|
"type": "array",
|
131
|
-
"x-options": {"editMode": "inline"},
|
135
|
+
"x-options": { "editMode": "inline" },
|
132
136
|
"items": {
|
133
137
|
"type": "object",
|
134
138
|
"properties": {
|
@@ -154,9 +158,9 @@
|
|
154
158
|
"rows": {
|
155
159
|
"title": "Lignes",
|
156
160
|
"type": "array",
|
157
|
-
"items":{
|
161
|
+
"items": {
|
158
162
|
"type": "object",
|
159
|
-
"properties":{
|
163
|
+
"properties": {
|
160
164
|
"height": {
|
161
165
|
"title": "Hauteur (px)",
|
162
166
|
"description": "Mettez une valeur négative pour un redimensionnement automatique",
|
@@ -168,12 +172,13 @@
|
|
168
172
|
"type": "array",
|
169
173
|
"items": {
|
170
174
|
"type": "object",
|
171
|
-
"properties":{
|
175
|
+
"properties": {
|
172
176
|
"title": { "type": "string", "title": "Titre" },
|
173
177
|
"width": {
|
174
178
|
"title": "Largeur",
|
175
179
|
"type": "integer",
|
176
|
-
"oneOf": [
|
180
|
+
"oneOf": [
|
181
|
+
{
|
177
182
|
"const": 1,
|
178
183
|
"title": "Fin"
|
179
184
|
},
|
@@ -192,11 +197,14 @@
|
|
192
197
|
"oneOf": [
|
193
198
|
{
|
194
199
|
"$ref": "#/definitions/table"
|
195
|
-
},
|
200
|
+
},
|
201
|
+
{
|
196
202
|
"$ref": "#/definitions/application"
|
197
|
-
},
|
203
|
+
},
|
204
|
+
{
|
198
205
|
"$ref": "#/definitions/text"
|
199
|
-
},
|
206
|
+
},
|
207
|
+
{
|
200
208
|
"$ref": "#/definitions/column"
|
201
209
|
}
|
202
210
|
]
|
@@ -209,16 +217,11 @@
|
|
209
217
|
}
|
210
218
|
}
|
211
219
|
},
|
212
|
-
"definitions":{
|
220
|
+
"definitions": {
|
213
221
|
"table": {
|
214
222
|
"title": "Prévisualisation table",
|
215
223
|
"properties": {
|
216
224
|
"type": { "const": "tablePreview", "title": "Type de l'élément" },
|
217
|
-
"valueMandatory": {
|
218
|
-
"title": "Nécessite une valeur dans le filtre",
|
219
|
-
"type": "boolean",
|
220
|
-
"default": false
|
221
|
-
},
|
222
225
|
"dataset": {
|
223
226
|
"type": "object",
|
224
227
|
"x-fromUrl": "api/v1/datasets?q={q}&{context.datasetFilter}&select=id,title,schema",
|
@@ -226,15 +229,16 @@
|
|
226
229
|
"x-itemTitle": "title",
|
227
230
|
"x-itemsProp": "results",
|
228
231
|
"properties": {
|
229
|
-
"id": {"type": "string"},
|
230
|
-
"title": {"type": "string"},
|
231
|
-
"href": {"type": "string"},
|
232
|
-
"schema": {"type": "array"}
|
232
|
+
"id": { "type": "string" },
|
233
|
+
"title": { "type": "string" },
|
234
|
+
"href": { "type": "string" },
|
235
|
+
"schema": { "type": "array" }
|
233
236
|
}
|
234
237
|
},
|
235
238
|
"display": {
|
236
239
|
"type": "string",
|
237
|
-
|
240
|
+
"oneOf": [
|
241
|
+
{
|
238
242
|
"const": "table",
|
239
243
|
"title": "Tableau"
|
240
244
|
},
|
@@ -265,18 +269,29 @@
|
|
265
269
|
"items": {
|
266
270
|
"type": "string"
|
267
271
|
}
|
272
|
+
},
|
273
|
+
"valueMandatory": {
|
274
|
+
"title": "Nécessite une valeur dans des filtres",
|
275
|
+
"type": "boolean",
|
276
|
+
"default": false
|
277
|
+
},
|
278
|
+
"mandatoryFilters": {
|
279
|
+
"title": "Filtres requis",
|
280
|
+
"type": "array",
|
281
|
+
"x-if": "parent.value.valueMandatory",
|
282
|
+
"x-fromData": "filters",
|
283
|
+
"x-itemKey": "labelField",
|
284
|
+
"x-itemTitle": "labelField",
|
285
|
+
"items": {
|
286
|
+
"type": "string"
|
287
|
+
}
|
268
288
|
}
|
269
289
|
}
|
270
290
|
},
|
271
|
-
"application":{
|
291
|
+
"application": {
|
272
292
|
"title": "Visualisation",
|
273
293
|
"properties": {
|
274
294
|
"type": { "const": "application", "title": "Type de l'élément" },
|
275
|
-
"valueMandatory": {
|
276
|
-
"title": "Nécessite une valeur dans le filtre",
|
277
|
-
"type": "boolean",
|
278
|
-
"default": false
|
279
|
-
},
|
280
295
|
"application": {
|
281
296
|
"type": "object",
|
282
297
|
"x-fromUrl": "api/v1/applications?q={q}&{context.datasetFilter}&filterConcepts=true&select=id,title,baseApp",
|
@@ -284,10 +299,15 @@
|
|
284
299
|
"x-itemTitle": "title",
|
285
300
|
"x-itemsProp": "results",
|
286
301
|
"properties": {
|
287
|
-
"id": {"type": "string"},
|
288
|
-
"title": {"type": "string"},
|
289
|
-
"baseApp":{"type": "object"}
|
302
|
+
"id": { "type": "string" },
|
303
|
+
"title": { "type": "string" },
|
304
|
+
"baseApp": { "type": "object" }
|
290
305
|
}
|
306
|
+
},
|
307
|
+
"valueMandatory": {
|
308
|
+
"title": "Nécessite une valeur dans des filtres",
|
309
|
+
"type": "boolean",
|
310
|
+
"default": false
|
291
311
|
}
|
292
312
|
}
|
293
313
|
},
|
@@ -295,23 +315,29 @@
|
|
295
315
|
"title": "Texte",
|
296
316
|
"properties": {
|
297
317
|
"type": { "const": "text", "title": "Type de l'élément" },
|
298
|
-
"content": {
|
318
|
+
"content": {
|
319
|
+
"type": "string",
|
320
|
+
"x-display": "textarea",
|
321
|
+
"title": "Contenu"
|
322
|
+
}
|
299
323
|
}
|
300
324
|
},
|
301
325
|
"column": {
|
302
326
|
"title": "Colonne",
|
303
|
-
"properties":{
|
327
|
+
"properties": {
|
304
328
|
"type": { "const": "column", "title": "Type de l'élément" },
|
305
|
-
"elements":{
|
306
|
-
"type":"array",
|
329
|
+
"elements": {
|
330
|
+
"type": "array",
|
307
331
|
"items": {
|
308
332
|
"type": "object",
|
309
333
|
"oneOf": [
|
310
334
|
{
|
311
335
|
"$ref": "#/definitions/table"
|
312
|
-
},
|
336
|
+
},
|
337
|
+
{
|
313
338
|
"$ref": "#/definitions/application"
|
314
|
-
},
|
339
|
+
},
|
340
|
+
{
|
315
341
|
"$ref": "#/definitions/text"
|
316
342
|
}
|
317
343
|
]
|
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.0/dist/assets/index-D6Xn0HDe.js"></script>
|
24
|
+
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.8.0/dist/assets/index-CaUwrmsK.css">
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|