@data-fair/app-dashboards 0.7.3 → 0.7.4
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/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=&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
|
-
"conceptFilters":{
|
40
|
+
"conceptFilters": {
|
36
41
|
"type": "array",
|
37
42
|
"title": "Filtres du tableau de bord",
|
38
43
|
"items": {
|
@@ -46,8 +51,8 @@
|
|
46
51
|
"x-itemTitle": "label",
|
47
52
|
"x-itemKey": "key",
|
48
53
|
"properties": {
|
49
|
-
"key": {"type": "string"},
|
50
|
-
"label": {"type": "string"}
|
54
|
+
"key": { "type": "string" },
|
55
|
+
"label": { "type": "string" }
|
51
56
|
}
|
52
57
|
},
|
53
58
|
"concepts": {
|
@@ -59,13 +64,13 @@
|
|
59
64
|
"title": "Colonnes pour les valeurs du filtre",
|
60
65
|
"type": "object",
|
61
66
|
"properties": {
|
62
|
-
"key": {"type": "string"},
|
63
|
-
"label": {"type": "string"},
|
64
|
-
"x-concept": {"type": "object"}
|
67
|
+
"key": { "type": "string" },
|
68
|
+
"label": { "type": "string" },
|
69
|
+
"x-concept": { "type": "object" }
|
65
70
|
}
|
66
71
|
}
|
67
72
|
},
|
68
|
-
"forceOneValue":{
|
73
|
+
"forceOneValue": {
|
69
74
|
"title": "Toujours filtrer par une valeur",
|
70
75
|
"type": "boolean",
|
71
76
|
"default": false
|
@@ -76,7 +81,7 @@
|
|
76
81
|
"x-fromUrl": "{datasets.0.href}/values/{parent.value.labelField.key}?q={q}&q_mode=complete&size=100&stringify=true",
|
77
82
|
"x-if": "parent.value.forceOneValue"
|
78
83
|
},
|
79
|
-
"showAllValues":{
|
84
|
+
"showAllValues": {
|
80
85
|
"title": "Garder toutes les valeurs dans la liste",
|
81
86
|
"type": "boolean",
|
82
87
|
"default": false
|
@@ -84,12 +89,12 @@
|
|
84
89
|
}
|
85
90
|
}
|
86
91
|
},
|
87
|
-
"periodFilter":{
|
92
|
+
"periodFilter": {
|
88
93
|
"title": "Ajouter un filtre sur la période",
|
89
94
|
"type": "boolean",
|
90
95
|
"default": false
|
91
96
|
},
|
92
|
-
"addressFilter":{
|
97
|
+
"addressFilter": {
|
93
98
|
"title": "Ajouter un filtre par adresse",
|
94
99
|
"type": "boolean",
|
95
100
|
"default": false
|
@@ -106,7 +111,8 @@
|
|
106
111
|
"sectionsGroup": {
|
107
112
|
"title": "Rendu des sections",
|
108
113
|
"type": "string",
|
109
|
-
"oneOf": [
|
114
|
+
"oneOf": [
|
115
|
+
{
|
110
116
|
"const": "accordion",
|
111
117
|
"title": "En accordéon"
|
112
118
|
},
|
@@ -128,7 +134,7 @@
|
|
128
134
|
"sections": {
|
129
135
|
"title": "Sections",
|
130
136
|
"type": "array",
|
131
|
-
"x-options": {"editMode": "inline"},
|
137
|
+
"x-options": { "editMode": "inline" },
|
132
138
|
"items": {
|
133
139
|
"type": "object",
|
134
140
|
"properties": {
|
@@ -154,9 +160,9 @@
|
|
154
160
|
"rows": {
|
155
161
|
"title": "Lignes",
|
156
162
|
"type": "array",
|
157
|
-
"items":{
|
163
|
+
"items": {
|
158
164
|
"type": "object",
|
159
|
-
"properties":{
|
165
|
+
"properties": {
|
160
166
|
"height": {
|
161
167
|
"title": "Hauteur (px)",
|
162
168
|
"description": "Mettez une valeur négative pour un redimensionnement automatique",
|
@@ -168,12 +174,13 @@
|
|
168
174
|
"type": "array",
|
169
175
|
"items": {
|
170
176
|
"type": "object",
|
171
|
-
"properties":{
|
177
|
+
"properties": {
|
172
178
|
"title": { "type": "string", "title": "Titre" },
|
173
179
|
"width": {
|
174
180
|
"title": "Largeur",
|
175
181
|
"type": "integer",
|
176
|
-
"oneOf": [
|
182
|
+
"oneOf": [
|
183
|
+
{
|
177
184
|
"const": 1,
|
178
185
|
"title": "Fin"
|
179
186
|
},
|
@@ -192,11 +199,14 @@
|
|
192
199
|
"oneOf": [
|
193
200
|
{
|
194
201
|
"$ref": "#/definitions/table"
|
195
|
-
},
|
202
|
+
},
|
203
|
+
{
|
196
204
|
"$ref": "#/definitions/application"
|
197
|
-
},
|
205
|
+
},
|
206
|
+
{
|
198
207
|
"$ref": "#/definitions/text"
|
199
|
-
},
|
208
|
+
},
|
209
|
+
{
|
200
210
|
"$ref": "#/definitions/column"
|
201
211
|
}
|
202
212
|
]
|
@@ -209,7 +219,7 @@
|
|
209
219
|
}
|
210
220
|
}
|
211
221
|
},
|
212
|
-
"definitions":{
|
222
|
+
"definitions": {
|
213
223
|
"table": {
|
214
224
|
"title": "Prévisualisation table",
|
215
225
|
"properties": {
|
@@ -226,15 +236,16 @@
|
|
226
236
|
"x-itemTitle": "title",
|
227
237
|
"x-itemsProp": "results",
|
228
238
|
"properties": {
|
229
|
-
"id": {"type": "string"},
|
230
|
-
"title": {"type": "string"},
|
231
|
-
"href": {"type": "string"},
|
232
|
-
"schema": {"type": "array"}
|
239
|
+
"id": { "type": "string" },
|
240
|
+
"title": { "type": "string" },
|
241
|
+
"href": { "type": "string" },
|
242
|
+
"schema": { "type": "array" }
|
233
243
|
}
|
234
244
|
},
|
235
245
|
"display": {
|
236
246
|
"type": "string",
|
237
|
-
|
247
|
+
"oneOf": [
|
248
|
+
{
|
238
249
|
"const": "table",
|
239
250
|
"title": "Tableau"
|
240
251
|
},
|
@@ -268,7 +279,7 @@
|
|
268
279
|
}
|
269
280
|
}
|
270
281
|
},
|
271
|
-
"application":{
|
282
|
+
"application": {
|
272
283
|
"title": "Visualisation",
|
273
284
|
"properties": {
|
274
285
|
"type": { "const": "application", "title": "Type de l'élément" },
|
@@ -284,9 +295,9 @@
|
|
284
295
|
"x-itemTitle": "title",
|
285
296
|
"x-itemsProp": "results",
|
286
297
|
"properties": {
|
287
|
-
"id": {"type": "string"},
|
288
|
-
"title": {"type": "string"},
|
289
|
-
"baseApp":{"type": "object"}
|
298
|
+
"id": { "type": "string" },
|
299
|
+
"title": { "type": "string" },
|
300
|
+
"baseApp": { "type": "object" }
|
290
301
|
}
|
291
302
|
}
|
292
303
|
}
|
@@ -295,23 +306,29 @@
|
|
295
306
|
"title": "Texte",
|
296
307
|
"properties": {
|
297
308
|
"type": { "const": "text", "title": "Type de l'élément" },
|
298
|
-
"content": {
|
309
|
+
"content": {
|
310
|
+
"type": "string",
|
311
|
+
"x-display": "textarea",
|
312
|
+
"title": "Contenu"
|
313
|
+
}
|
299
314
|
}
|
300
315
|
},
|
301
316
|
"column": {
|
302
317
|
"title": "Colonne",
|
303
|
-
"properties":{
|
318
|
+
"properties": {
|
304
319
|
"type": { "const": "column", "title": "Type de l'élément" },
|
305
|
-
"elements":{
|
306
|
-
"type":"array",
|
320
|
+
"elements": {
|
321
|
+
"type": "array",
|
307
322
|
"items": {
|
308
323
|
"type": "object",
|
309
324
|
"oneOf": [
|
310
325
|
{
|
311
326
|
"$ref": "#/definitions/table"
|
312
|
-
},
|
327
|
+
},
|
328
|
+
{
|
313
329
|
"$ref": "#/definitions/application"
|
314
|
-
},
|
330
|
+
},
|
331
|
+
{
|
315
332
|
"$ref": "#/definitions/text"
|
316
333
|
}
|
317
334
|
]
|
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.7.
|
24
|
-
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.7.
|
23
|
+
<script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.7.4/dist/assets/index-CGQLh6vX.js"></script>
|
24
|
+
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.7.4/dist/assets/index-CaUwrmsK.css">
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|