@data-fair/app-dashboards 0.8.1 → 0.9.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.
@@ -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"],
@@ -138,10 +141,9 @@
138
141
  "properties": {
139
142
  "title": { "type": "string", "title": "Libellé" },
140
143
  "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
144
  "type": "object",
144
- "x-fromUrl": "https://koumoul.com/data-fair/api/v1/datasets/icons-mdi/lines?q={q}&size=10000",
145
+ "title": "Icone",
146
+ "x-fromUrl": "https://koumoul.com/data-fair/api/v1/datasets/icons-mdi-latest/lines?q={q}",
145
147
  "x-itemKey": "name",
146
148
  "x-itemTitle": "name",
147
149
  "x-itemIcon": "svg",
@@ -152,6 +154,9 @@
152
154
  },
153
155
  "svg": {
154
156
  "type": "string"
157
+ },
158
+ "svgPath": {
159
+ "type": "string"
155
160
  }
156
161
  }
157
162
  },
@@ -415,7 +420,7 @@
415
420
  },
416
421
  "application": {
417
422
  "type": "object",
418
- "x-fromUrl": "api/v1/applications?q={q}&{context.datasetFilter}&filterConcepts=true&select=id,title,baseApp",
423
+ "x-fromUrl": "api/v1/applications?q={q}&{context.datasetFilter}&filterConcepts=true&select=id,title,baseApp&sort=createdAt:-1",
419
424
  "x-itemKey": "id",
420
425
  "x-itemTitle": "title",
421
426
  "x-itemsProp": "results",
@@ -481,6 +486,74 @@
481
486
  }
482
487
  }
483
488
  }
489
+ },
490
+ "filters": {
491
+ "title": "Filtres prédéfinis",
492
+ "type": "array",
493
+ "items": {
494
+ "type": "object",
495
+ "default": {
496
+ "type": "in"
497
+ },
498
+ "required": ["type"],
499
+ "oneOf": [
500
+ {
501
+ "title": "Restreindre à des valeurs",
502
+ "required": ["field"],
503
+ "properties": {
504
+ "type": {
505
+ "const": "in"
506
+ },
507
+ "field": {
508
+ "$ref": "#/definitions/filterField"
509
+ },
510
+ "values": {
511
+ "type": "array",
512
+ "title": "Valeurs",
513
+ "items": {
514
+ "type": "string"
515
+ },
516
+ "x-fromUrl": "{datasets.0.href}/values/{parent.value.field}?q={q}&q_mode=complete&size=100&stringify=true"
517
+ }
518
+ }
519
+ },
520
+ {
521
+ "title": "Restreindre à un interval de valeurs",
522
+ "required": ["field"],
523
+ "properties": {
524
+ "type": {
525
+ "const": "interval"
526
+ },
527
+ "field": {
528
+ "$ref": "#/definitions/filterField"
529
+ },
530
+ "minValue": {
531
+ "type": "string",
532
+ "title": "Valeur min",
533
+ "x-fromUrl": "{datasets.0.href}/values_agg?field={parent.value.field}&sort={parent.value.field}&{parent.value.field}_gte={q}&stringify=true",
534
+ "x-itemsProp": "aggs",
535
+ "x-itemTitle": "value",
536
+ "x-itemKey": "value"
537
+ },
538
+ "maxValue": {
539
+ "type": "string",
540
+ "title": "Valeur max",
541
+ "x-fromUrl": "{datasets.0.href}/values_agg?field={parent.value.field}&sort=-{parent.value.field}&{parent.value.field}_lte={q}&stringify=true",
542
+ "x-itemsProp": "aggs",
543
+ "x-itemTitle": "value",
544
+ "x-itemKey": "value"
545
+ }
546
+ }
547
+ }
548
+ ]
549
+ }
550
+ },
551
+ "filterField": {
552
+ "type": "string",
553
+ "title": "Colonne de filtre",
554
+ "x-fromUrl": "{datasets.0.href}/schema?calculated=false",
555
+ "x-itemTitle": "label",
556
+ "x-itemKey": "key"
484
557
  }
485
558
  }
486
559
  }
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.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">
23
+ <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.0/dist/assets/index-BqAKStUw.js"></script>
24
+ <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-dashboards@0.9.0/dist/assets/index-Do9TUKv3.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.8.1",
3
+ "version": "0.9.0",
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": "^0.30.0",
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.5.4"
28
+ "vuetify": "^3.7.4"
27
29
  },
28
30
  "devDependencies": {
29
31
  "@data-fair/dev-server": "^1.12.0",