@data-fair/app-dashboards 0.8.1 → 0.9.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/config-schema.json
CHANGED
@@ -37,9 +37,12 @@
|
|
37
37
|
}
|
38
38
|
]
|
39
39
|
},
|
40
|
+
"staticFilters": {
|
41
|
+
"$ref": "#/definitions/filters"
|
42
|
+
},
|
40
43
|
"filters": {
|
41
44
|
"type": "array",
|
42
|
-
"title": "Filtres du tableau de bord",
|
45
|
+
"title": "Filtres dynamiques du tableau de bord",
|
43
46
|
"items": {
|
44
47
|
"type": "object",
|
45
48
|
"required": ["labelField"],
|
@@ -106,6 +109,11 @@
|
|
106
109
|
"title": "Introduction",
|
107
110
|
"x-display": "textarea"
|
108
111
|
},
|
112
|
+
"allowDuplicate": {
|
113
|
+
"title": "Mode comparaison disponible",
|
114
|
+
"type": "boolean",
|
115
|
+
"default": false
|
116
|
+
},
|
109
117
|
"sectionsGroup": {
|
110
118
|
"title": "Rendu des sections",
|
111
119
|
"type": "string",
|
@@ -138,10 +146,9 @@
|
|
138
146
|
"properties": {
|
139
147
|
"title": { "type": "string", "title": "Libellé" },
|
140
148
|
"icon": {
|
141
|
-
"title": "Icône",
|
142
|
-
"description": "Il est possible de consulter plus facilement la liste des icones disponibles sur <a href=\"https://materialdesignicons.com\" target=\"_blank\">ce site</a>.",
|
143
149
|
"type": "object",
|
144
|
-
"
|
150
|
+
"title": "Icone",
|
151
|
+
"x-fromUrl": "https://koumoul.com/data-fair/api/v1/datasets/icons-mdi-latest/lines?q={q}",
|
145
152
|
"x-itemKey": "name",
|
146
153
|
"x-itemTitle": "name",
|
147
154
|
"x-itemIcon": "svg",
|
@@ -152,6 +159,9 @@
|
|
152
159
|
},
|
153
160
|
"svg": {
|
154
161
|
"type": "string"
|
162
|
+
},
|
163
|
+
"svgPath": {
|
164
|
+
"type": "string"
|
155
165
|
}
|
156
166
|
}
|
157
167
|
},
|
@@ -415,7 +425,7 @@
|
|
415
425
|
},
|
416
426
|
"application": {
|
417
427
|
"type": "object",
|
418
|
-
"x-fromUrl": "api/v1/applications?q={q}&{context.datasetFilter}&filterConcepts=true&select=id,title,baseApp",
|
428
|
+
"x-fromUrl": "api/v1/applications?q={q}&{context.datasetFilter}&filterConcepts=true&select=id,title,baseApp&sort=createdAt:-1",
|
419
429
|
"x-itemKey": "id",
|
420
430
|
"x-itemTitle": "title",
|
421
431
|
"x-itemsProp": "results",
|
@@ -481,6 +491,74 @@
|
|
481
491
|
}
|
482
492
|
}
|
483
493
|
}
|
494
|
+
},
|
495
|
+
"filters": {
|
496
|
+
"title": "Filtres prédéfinis",
|
497
|
+
"type": "array",
|
498
|
+
"items": {
|
499
|
+
"type": "object",
|
500
|
+
"default": {
|
501
|
+
"type": "in"
|
502
|
+
},
|
503
|
+
"required": ["type"],
|
504
|
+
"oneOf": [
|
505
|
+
{
|
506
|
+
"title": "Restreindre à des valeurs",
|
507
|
+
"required": ["field"],
|
508
|
+
"properties": {
|
509
|
+
"type": {
|
510
|
+
"const": "in"
|
511
|
+
},
|
512
|
+
"field": {
|
513
|
+
"$ref": "#/definitions/filterField"
|
514
|
+
},
|
515
|
+
"values": {
|
516
|
+
"type": "array",
|
517
|
+
"title": "Valeurs",
|
518
|
+
"items": {
|
519
|
+
"type": "string"
|
520
|
+
},
|
521
|
+
"x-fromUrl": "{datasets.0.href}/values/{parent.value.field}?q={q}&q_mode=complete&size=100&stringify=true"
|
522
|
+
}
|
523
|
+
}
|
524
|
+
},
|
525
|
+
{
|
526
|
+
"title": "Restreindre à un interval de valeurs",
|
527
|
+
"required": ["field"],
|
528
|
+
"properties": {
|
529
|
+
"type": {
|
530
|
+
"const": "interval"
|
531
|
+
},
|
532
|
+
"field": {
|
533
|
+
"$ref": "#/definitions/filterField"
|
534
|
+
},
|
535
|
+
"minValue": {
|
536
|
+
"type": "string",
|
537
|
+
"title": "Valeur min",
|
538
|
+
"x-fromUrl": "{datasets.0.href}/values_agg?field={parent.value.field}&sort={parent.value.field}&{parent.value.field}_gte={q}&stringify=true",
|
539
|
+
"x-itemsProp": "aggs",
|
540
|
+
"x-itemTitle": "value",
|
541
|
+
"x-itemKey": "value"
|
542
|
+
},
|
543
|
+
"maxValue": {
|
544
|
+
"type": "string",
|
545
|
+
"title": "Valeur max",
|
546
|
+
"x-fromUrl": "{datasets.0.href}/values_agg?field={parent.value.field}&sort=-{parent.value.field}&{parent.value.field}_lte={q}&stringify=true",
|
547
|
+
"x-itemsProp": "aggs",
|
548
|
+
"x-itemTitle": "value",
|
549
|
+
"x-itemKey": "value"
|
550
|
+
}
|
551
|
+
}
|
552
|
+
}
|
553
|
+
]
|
554
|
+
}
|
555
|
+
},
|
556
|
+
"filterField": {
|
557
|
+
"type": "string",
|
558
|
+
"title": "Colonne de filtre",
|
559
|
+
"x-fromUrl": "{datasets.0.href}/schema?calculated=false",
|
560
|
+
"x-itemTitle": "label",
|
561
|
+
"x-itemKey": "key"
|
484
562
|
}
|
485
563
|
}
|
486
564
|
}
|
package/dist/index.html
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
<html lang="en">
|
3
3
|
|
4
4
|
<head>
|
5
|
+
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="anonymous">
|
6
|
+
<link rel="preload" as="style" onload="this.rel='stylesheet'" href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap">
|
7
|
+
|
5
8
|
<meta charset="UTF-8" />
|
6
9
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7
10
|
<meta name="x-capture" content="trigger" />
|
@@ -15,13 +18,10 @@
|
|
15
18
|
|
16
19
|
<title lang="fr">Dashboards</title>
|
17
20
|
|
18
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:300,400,500,700,400italic" />
|
19
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@5.x/css/materialdesignicons.min.css" />
|
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.9.1/dist/assets/index-fo-1XdyA.js"></script>
|
24
|
+
<link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.1/dist/assets/index-DQsqORXR.css">
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@data-fair/app-dashboards",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.9.1",
|
4
4
|
"scripts": {
|
5
5
|
"dev": "APP_URL=http://localhost:3000/app/ df-dev-server",
|
6
6
|
"dev-src": "vite",
|
@@ -18,12 +18,14 @@
|
|
18
18
|
"not ie 11"
|
19
19
|
],
|
20
20
|
"dependencies": {
|
21
|
-
"@data-fair/lib": "^
|
21
|
+
"@data-fair/lib-vue": "^1.13.10",
|
22
|
+
"@data-fair/lib-vuetify": "^1.6.6",
|
22
23
|
"@koumoul/v-iframe": "^2.4.4",
|
23
24
|
"@vueuse/core": "^10.7.2",
|
24
25
|
"ofetch": "^1.3.3",
|
26
|
+
"unplugin-fonts": "^1.3.1",
|
25
27
|
"vue": "^3.4.15",
|
26
|
-
"vuetify": "^3.
|
28
|
+
"vuetify": "^3.7.4"
|
27
29
|
},
|
28
30
|
"devDependencies": {
|
29
31
|
"@data-fair/dev-server": "^1.12.0",
|