@data-fair/app-dashboards 0.3.8 → 0.4.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/config-schema.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"datasets": {
|
5
5
|
"type": "array",
|
6
6
|
"items": [{
|
7
|
-
"title": "Source des valeurs pour
|
7
|
+
"title": "Source des valeurs pour les filtres",
|
8
8
|
"type": "object",
|
9
9
|
"x-fromUrl": "api/v1/datasets?status=finalized&q={q}&select=id,title,schema&owner={context.owner.type}:{context.owner.id}",
|
10
10
|
"x-itemsProp": "results",
|
@@ -26,28 +26,57 @@
|
|
26
26
|
}
|
27
27
|
}]
|
28
28
|
},
|
29
|
-
"
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
29
|
+
"conceptFilters":{
|
30
|
+
"type": "array",
|
31
|
+
"title": "Filtres du tableau de bord",
|
32
|
+
"items": {
|
33
|
+
"type": "object",
|
34
|
+
"required": ["labelField"],
|
35
|
+
"properties": {
|
36
|
+
"labelField": {
|
37
|
+
"title": "Colonne de libellé du filtre",
|
38
|
+
"type": "object",
|
39
|
+
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false",
|
40
|
+
"x-itemTitle": "label",
|
41
|
+
"x-itemKey": "key",
|
42
|
+
"properties": {
|
43
|
+
"key": {"type": "string"},
|
44
|
+
"label": {"type": "string"}
|
45
|
+
}
|
46
|
+
},
|
47
|
+
"concepts": {
|
48
|
+
"type": "array",
|
49
|
+
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false&concept=true",
|
50
|
+
"x-itemKey": "id",
|
51
|
+
"x-itemTitle": "label",
|
52
|
+
"items": {
|
53
|
+
"title": "Colonnes pour les valeurs du filtre",
|
54
|
+
"type": "object",
|
55
|
+
"properties": {
|
56
|
+
"key": {"type": "string"},
|
57
|
+
"label": {"type": "string"},
|
58
|
+
"x-concept": {"type": "object"}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
},
|
62
|
+
"forceOneValue":{
|
63
|
+
"title": "Toujours filtrer par une valeur",
|
64
|
+
"type": "boolean",
|
65
|
+
"default": false
|
66
|
+
},
|
67
|
+
"startValue": {
|
68
|
+
"type": "string",
|
69
|
+
"title": "Valeur initiale",
|
70
|
+
"x-fromUrl": "{datasets.0.href}/values/{parent.value.labelField.key}?q={q}&q_mode=complete&size=100&stringify=true",
|
71
|
+
"x-if": "parent.value.forceOneValue"
|
72
|
+
},
|
73
|
+
"showAllValues":{
|
74
|
+
"title": "Garder toutes les valeurs dans la liste",
|
75
|
+
"type": "boolean",
|
76
|
+
"default": false
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
51
80
|
},
|
52
81
|
"title": {
|
53
82
|
"type": "string",
|
@@ -147,16 +176,19 @@
|
|
147
176
|
"title": "Prévisualisation table",
|
148
177
|
"properties": {
|
149
178
|
"type": { "const": "tablePreview", "title": "Type de l'élément" },
|
150
|
-
"
|
151
|
-
"
|
179
|
+
"concepts": {
|
180
|
+
"type": "array",
|
152
181
|
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false&concept=true",
|
153
182
|
"x-itemKey": "id",
|
154
183
|
"x-itemTitle": "label",
|
155
|
-
"
|
156
|
-
|
157
|
-
"
|
158
|
-
"
|
159
|
-
|
184
|
+
"items": {
|
185
|
+
"title": "Colonne du filtre commun",
|
186
|
+
"type": "object",
|
187
|
+
"properties": {
|
188
|
+
"key": {"type": "string"},
|
189
|
+
"label": {"type": "string"},
|
190
|
+
"x-concept": {"type": "object"}
|
191
|
+
}
|
160
192
|
}
|
161
193
|
},
|
162
194
|
"valueMandatory": {
|
@@ -166,7 +198,7 @@
|
|
166
198
|
},
|
167
199
|
"dataset": {
|
168
200
|
"type": "object",
|
169
|
-
"x-fromUrl": "api/v1/datasets?q={q}&
|
201
|
+
"x-fromUrl": "api/v1/datasets?q={q}&{context.datasetFilter}&select=id,title",
|
170
202
|
"x-itemKey": "id",
|
171
203
|
"x-itemTitle": "title",
|
172
204
|
"x-itemsProp": "results",
|
@@ -215,17 +247,20 @@
|
|
215
247
|
"title": "Visualisation",
|
216
248
|
"properties": {
|
217
249
|
"type": { "const": "application", "title": "Type de l'élément" },
|
218
|
-
"
|
219
|
-
"
|
250
|
+
"concepts": {
|
251
|
+
"type": "array",
|
220
252
|
"x-fromUrl": "{datasets.0.href}/schema?calculated=false&separator=false&concept=true",
|
221
253
|
"x-itemKey": "id",
|
222
254
|
"x-itemTitle": "label",
|
223
|
-
"
|
224
|
-
|
225
|
-
"
|
226
|
-
"
|
227
|
-
|
228
|
-
|
255
|
+
"items": [{
|
256
|
+
"title": "Colonne du filtre commun",
|
257
|
+
"type": "object",
|
258
|
+
"properties": {
|
259
|
+
"key": {"type": "string"},
|
260
|
+
"label": {"type": "string"},
|
261
|
+
"x-concept": {"type": "object"}
|
262
|
+
}
|
263
|
+
}]
|
229
264
|
},
|
230
265
|
"valueMandatory": {
|
231
266
|
"title": "Nécessite une valeur dans le filtre",
|
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" 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.4.0/dist/assets/index-d44b6f42.js"></script>
|
24
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.4.0/dist/assets/index-4e112434.css">
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|