@data-fair/app-calendar 1.2.12 → 1.2.14

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.
@@ -12,6 +12,10 @@
12
12
  "title": "Jeu de données",
13
13
  "description": "Ce jeu doit contenir au moins un champ avec le concept de date",
14
14
  "type": "object",
15
+ "x-fromUrl": "api/v1/datasets?status=finalized&q={q}&select=title,isRest,schema,timePeriod,attachmentsAsImage,userPermissions&{context.datasetFilter}&short-concept=date,startDate,endDate&size=100&sort=createdAt:-1",
16
+ "x-itemsProp": "results",
17
+ "x-itemTitle": "title",
18
+ "x-itemKey": "href",
15
19
  "additionalProperties": false,
16
20
  "properties": {
17
21
  "href": { "type": "string" },
@@ -22,19 +26,10 @@
22
26
  "timePeriod": { "type": "object" },
23
27
  "attachmentsAsImage": { "type": "boolean" },
24
28
  "userPermissions": { "type": "array" }
25
- },
26
- "layout": {
27
- "getItems": {
28
- "url": "api/v1/datasets?status=finalized&q={q}&select=title,isRest,schema,timePeriod,attachmentsAsImage,userPermissions&${context.datasetFilter}&short-concept=date,startDate,endDate&size=100&sort=createdAt:-1",
29
- "itemKey": "data.href",
30
- "itemTitle": "data.title",
31
- "itemsResults": "data.results"
32
- }
33
29
  }
34
30
  }
35
31
  ]
36
- },
37
- "filters": { "$ref": "#/definitions/filters" }
32
+ }
38
33
  }
39
34
  },
40
35
  {
@@ -45,13 +40,9 @@
45
40
  "type": "object",
46
41
  "title": "Champ de libellé",
47
42
  "description": "Choisissez le champ représentant le libellé d'un événement.",
48
- "layout": {
49
- "getItems": {
50
- "url": "${rootData.datasets[0].href}/schema?calculated=false",
51
- "itemKey": "data.key",
52
- "itemTitle": "data.label"
53
- }
54
- }
43
+ "x-fromUrl": "{datasets.0.href}/schema?calculated=false",
44
+ "x-itemTitle": "label",
45
+ "x-itemKey": "key"
55
46
  },
56
47
  "openOnCurrentDay": {
57
48
  "type": "boolean",
@@ -62,35 +53,45 @@
62
53
  "title": "Vue initiale",
63
54
  "type": "string",
64
55
  "oneOf": [
65
- { "const": "dayGridMonth", "title": "Mois" },
66
- { "const": "timeGridWeek", "title": "Semaine" },
67
- { "const": "timeGridDay", "title": "Jour" },
68
- { "const": "listNextYear", "title": "Planning" }
56
+ {
57
+ "const": "dayGridMonth",
58
+ "title": "Mois"
59
+ },
60
+ {
61
+ "const": "timeGridWeek",
62
+ "title": "Semaine"
63
+ },
64
+ {
65
+ "const": "timeGridDay",
66
+ "title": "Jour"
67
+ },
68
+ {
69
+ "const": "listNextYear",
70
+ "title": "Planning"
71
+ }
69
72
  ],
70
73
  "default": "dayGridMonth"
71
74
  },
72
75
  "color": {
73
76
  "type": "object",
74
77
  "title": "Réglage des couleurs",
75
- "required": [],
78
+ "required": ["type"],
76
79
  "oneOf": [
77
80
  {
78
81
  "title": "Calendrier multicolore",
79
82
  "additionalProperties": false,
80
83
  "required": ["field"],
81
84
  "properties": {
82
- "type": { "const": "multicolor" },
85
+ "type": {
86
+ "const": "multicolor"
87
+ },
83
88
  "field": {
84
89
  "type": "string",
85
90
  "title": "Champ de catégorie",
86
91
  "description": "Choisissez le champ permettant de distinguer les catégories d'événements suivant des couleurs distinctes.",
87
- "layout": {
88
- "getItems": {
89
- "url": "${rootData.datasets[0].href}/schema?calculated=false&maxCardinality=12",
90
- "itemKey": "data.key",
91
- "itemTitle": "data[\"category\"]"
92
- }
93
- }
92
+ "x-fromUrl": "{datasets.0.href}/schema?calculated=false&maxCardinality=12",
93
+ "x-itemTitle": "category",
94
+ "x-itemKey": "key"
94
95
  },
95
96
  "colors": {
96
97
  "type": "object",
@@ -101,19 +102,45 @@
101
102
  "required": ["type", "name"],
102
103
  "additionalProperties": false,
103
104
  "properties": {
104
- "type": { "const": "palette" },
105
+ "type": {
106
+ "const": "palette"
107
+ },
105
108
  "name": {
106
109
  "title": "Palette",
107
110
  "type": "string",
108
111
  "oneOf": [
109
- { "const": "Accent", "title": "Accent" },
110
- { "const": "Dark2", "title": "Foncé" },
111
- { "const": "Paired", "title": "Paires" },
112
- { "const": "Set1", "title": "Ensemble 1" },
113
- { "const": "Set2", "title": "Ensemble 2" },
114
- { "const": "Set3", "title": "Ensemble 3" },
115
- { "const": "Pastel1", "title": "Pastel 1" },
116
- { "const": "Pastel2", "title": "Pastel 2" }
112
+ {
113
+ "const": "Accent",
114
+ "title": "Accent"
115
+ },
116
+ {
117
+ "const": "Dark2",
118
+ "title": "Foncé"
119
+ },
120
+ {
121
+ "const": "Paired",
122
+ "title": "Paires"
123
+ },
124
+ {
125
+ "const": "Set1",
126
+ "title": "Ensemble 1"
127
+ },
128
+ {
129
+ "const": "Set2",
130
+ "title": "Ensemble 2"
131
+ },
132
+ {
133
+ "const": "Set3",
134
+ "title": "Ensemble 3"
135
+ },
136
+ {
137
+ "const": "Pastel1",
138
+ "title": "Pastel 1"
139
+ },
140
+ {
141
+ "const": "Pastel2",
142
+ "title": "Pastel 2"
143
+ }
117
144
  ],
118
145
  "default": "Accent"
119
146
  },
@@ -129,32 +156,34 @@
129
156
  "required": ["type", "categories"],
130
157
  "additionalProperties": false,
131
158
  "properties": {
132
- "type": { "const": "manual" },
159
+ "type": {
160
+ "const": "manual"
161
+ },
133
162
  "categories": {
134
163
  "title": "Couleurs",
135
164
  "type": "array",
165
+ "x-fromUrl": "{datasets.0.href}/values_agg?field={parent.parent.parent.value.field}&size=0&agg_size=15",
166
+ "x-display": "list",
167
+ "x-itemTitle": "value",
168
+ "x-itemKey": "value",
169
+ "x-itemsProp": "aggs",
136
170
  "items": {
137
171
  "type": "object",
138
172
  "required": ["value"],
139
173
  "additionalProperties": false,
140
174
  "properties": {
141
- "value": { "type": "string", "layout": "none" },
175
+ "value": {
176
+ "type": "string",
177
+ "x-display": "hidden"
178
+ },
142
179
  "color": {
143
180
  "type": "string",
144
181
  "title": "Couleur",
182
+ "format": "hexcolor",
145
183
  "default": "#828282",
146
- "layout": "color-picker"
184
+ "x-display": "color-picker"
147
185
  }
148
186
  }
149
- },
150
- "layout": {
151
- "comp": "list",
152
- "getItems": {
153
- "url": "${rootData.datasets[0].href}/values_agg?field=${parent.parent.parent.data.field}&size=0&agg_size=15",
154
- "itemKey": "data.value",
155
- "itemTitle": "data.value",
156
- "itemsResults": "data.aggs"
157
- }
158
187
  }
159
188
  }
160
189
  }
@@ -172,23 +201,33 @@
172
201
  "title": "Calendrier monochrome",
173
202
  "additionalProperties": false,
174
203
  "properties": {
175
- "type": { "const": "monochrome" },
204
+ "type": {
205
+ "const": "monochrome"
206
+ },
176
207
  "colors": {
177
208
  "type": "object",
178
209
  "title": "Couleur",
179
- "required": [],
210
+ "required": ["type"],
180
211
  "oneOf": [
181
212
  {
182
213
  "title": "Thème",
183
214
  "additionalProperties": false,
184
215
  "properties": {
185
- "type": { "const": "theme" },
216
+ "type": {
217
+ "const": "theme"
218
+ },
186
219
  "strValue": {
187
220
  "title": "Couleur",
188
221
  "type": "string",
189
222
  "oneOf": [
190
- { "const": "primary", "title": "Primaire" },
191
- { "const": "secondary", "title": "Secondaire" }
223
+ {
224
+ "const": "primary",
225
+ "title": "Primaire"
226
+ },
227
+ {
228
+ "const": "secondary",
229
+ "title": "Secondaire"
230
+ }
192
231
  ]
193
232
  }
194
233
  }
@@ -197,22 +236,30 @@
197
236
  "title": "Personnalisée",
198
237
  "additionalProperties": false,
199
238
  "properties": {
200
- "type": { "const": "custom" },
239
+ "type": {
240
+ "const": "custom"
241
+ },
201
242
  "hexValue": {
202
243
  "type": "string",
203
244
  "title": "Couleur",
245
+ "format": "hexcolor",
204
246
  "default": "#828282",
205
- "layout": "color-picker"
247
+ "x-display": "color-picker"
206
248
  }
207
249
  }
208
250
  }
209
251
  ],
210
- "default": { "type": "theme", "strValue": "primary" }
252
+ "default": {
253
+ "type": "theme",
254
+ "strValue": "primary"
255
+ }
211
256
  }
212
257
  }
213
258
  }
214
259
  ],
215
- "default": { "type": "monochrome" }
260
+ "default": {
261
+ "type": "monochrome"
262
+ }
216
263
  }
217
264
  }
218
265
  },
@@ -224,24 +271,18 @@
224
271
  "type": "object",
225
272
  "title": "Champ de description",
226
273
  "description": "Choisissez le champ permettant de fournir une description de l'événement, interprète le html et le markdown.",
227
- "layout": {
228
- "getItems": {
229
- "url": "${rootData.datasets[0].href}/schema?calculated=false",
230
- "itemKey": "data.key",
231
- "itemTitle": "data.title"
232
- }
233
- }
274
+ "x-fromUrl": "{datasets.0.href}/schema?calculated=false",
275
+ "x-itemTitle": "title",
276
+ "x-itemKey": "key"
234
277
  },
235
278
  "additionalFields": {
236
279
  "title": "Champs supplémentaires à afficher.",
237
280
  "type": "array",
238
- "items": { "type": "string" },
239
- "layout": {
240
- "getItems": {
241
- "url": "${rootData.datasets[0].href}/schema?calculated=false",
242
- "itemKey": "data.key",
243
- "itemTitle": "data.label"
244
- }
281
+ "x-fromUrl": "{datasets.0.href}/schema?calculated=false",
282
+ "x-itemTitle": "label",
283
+ "x-itemKey": "key",
284
+ "items": {
285
+ "type": "string"
245
286
  }
246
287
  },
247
288
  "imageWidth": {
@@ -250,7 +291,7 @@
250
291
  "default": 100,
251
292
  "minimum": 20,
252
293
  "maximum": 100,
253
- "layout": "slider"
294
+ "x-display": "slider"
254
295
  },
255
296
  "aspectRatio": {
256
297
  "title": "Rapport de forme (largeur / hauteur)",
@@ -258,16 +299,25 @@
258
299
  "default": 3,
259
300
  "minimum": 1,
260
301
  "maximum": 5,
261
- "layout": "slider"
302
+ "x-display": "slider"
262
303
  },
263
304
  "imagePosition": {
264
305
  "title": "Position de l'image",
265
306
  "description": "Ne change rien si la largeur de l'image est 100% de la fiche",
266
307
  "type": "string",
267
308
  "oneOf": [
268
- { "const": "top", "title": "En haut" },
269
- { "const": "left", "title": "A gauche" },
270
- { "const": "right", "title": "A droite" }
309
+ {
310
+ "const": "top",
311
+ "title": "En haut"
312
+ },
313
+ {
314
+ "const": "left",
315
+ "title": "A gauche"
316
+ },
317
+ {
318
+ "const": "right",
319
+ "title": "A droite"
320
+ }
271
321
  ],
272
322
  "default": "top"
273
323
  },
@@ -275,8 +325,14 @@
275
325
  "title": "Rendu de l'image",
276
326
  "type": "string",
277
327
  "oneOf": [
278
- { "const": "cover", "title": "Etendre" },
279
- { "const": "contain", "title": "Redimensionner" }
328
+ {
329
+ "const": "cover",
330
+ "title": "Etendre"
331
+ },
332
+ {
333
+ "const": "contain",
334
+ "title": "Redimensionner"
335
+ }
280
336
  ],
281
337
  "default": "cover"
282
338
  }
@@ -284,6 +340,7 @@
284
340
  },
285
341
  {
286
342
  "title": "Edition",
343
+ "x-if": "datasets.0.isRest",
287
344
  "properties": {
288
345
  "formDensity": {
289
346
  "title": "Densité du formulaire",
@@ -298,10 +355,10 @@
298
355
  "formWidth": {
299
356
  "title": "Largeur du formulaire",
300
357
  "type": "integer",
358
+ "x-display": "slider",
301
359
  "minimum": 2,
302
360
  "maximum": 10,
303
- "default": 5,
304
- "layout": "slider"
361
+ "default": 5
305
362
  },
306
363
  "formVariant": {
307
364
  "title": "Style du formulaire",
@@ -336,9 +393,18 @@
336
393
  "title": "Valeur minimale pour la date de début",
337
394
  "type": "string",
338
395
  "oneOf": [
339
- { "const": "none", "title": "Pas de contrainte" },
340
- { "const": "day", "title": "Date du jour" },
341
- { "const": "tomorrow", "title": "Lendemain de la date du jour" },
396
+ {
397
+ "const": "none",
398
+ "title": "Pas de contrainte"
399
+ },
400
+ {
401
+ "const": "day",
402
+ "title": "Date du jour"
403
+ },
404
+ {
405
+ "const": "tomorrow",
406
+ "title": "Lendemain de la date du jour"
407
+ },
342
408
  {
343
409
  "const": "one-week-later",
344
410
  "title": "Une semaine après la date du jour"
@@ -354,7 +420,10 @@
354
420
  "title": "Valeur maximale pour la date de fin",
355
421
  "type": "string",
356
422
  "oneOf": [
357
- { "const": "none", "title": "Pas de contrainte" },
423
+ {
424
+ "const": "none",
425
+ "title": "Pas de contrainte"
426
+ },
358
427
  {
359
428
  "const": "one-week-later",
360
429
  "title": "Une semaine après la date du jour"
@@ -370,108 +439,7 @@
370
439
  ],
371
440
  "default": "none"
372
441
  }
373
- },
374
- "layout": { "if": "rootData.datasets[0].isRest" }
375
- }
376
- ],
377
- "definitions": {
378
- "filters": {
379
- "title": "Filtres prédéfinis",
380
- "type": "array",
381
- "layout": { "messages": { "addItem": "ajouter un filtre" } },
382
- "items": {
383
- "type": "object",
384
- "default": { "type": "in" },
385
- "required": [],
386
- "oneOf": [
387
- {
388
- "title": "Restreindre à des valeurs",
389
- "required": ["field", "values"],
390
- "additionalProperties": false,
391
- "properties": {
392
- "type": { "const": "in" },
393
- "field": { "$ref": "#/definitions/filterField" },
394
- "values": {
395
- "type": "array",
396
- "title": "Valeurs",
397
- "items": { "type": "string" },
398
- "layout": {
399
- "getItems": {
400
- "url": "${rootData.datasets[0].href}/values-labels/${parent.data.field}?q={q}&q_mode=complete&size=1000&stringify=true",
401
- "itemKey": "data.value",
402
- "itemTitle": "data.label"
403
- }
404
- }
405
- }
406
- }
407
- },
408
- {
409
- "title": "Restreindre à un interval de valeurs",
410
- "required": ["field"],
411
- "additionalProperties": false,
412
- "properties": {
413
- "type": { "const": "interval" },
414
- "field": { "$ref": "#/definitions/filterField" },
415
- "minValue": {
416
- "type": "string",
417
- "title": "Valeur min",
418
- "layout": {
419
- "getItems": {
420
- "url": "${rootData.datasets[0].href}/values-labels/$${parent.data.field}?sort=asc&{parent.data.field}_gte={q}&stringify=true",
421
- "itemKey": "data.value",
422
- "itemTitle": "data.label"
423
- }
424
- }
425
- },
426
- "maxValue": {
427
- "type": "string",
428
- "title": "Valeur max",
429
- "layout": {
430
- "getItems": {
431
- "url": "${rootData.datasets[0].href}/values-labels/$${parent.data.field}?sort=desc&{parent.data.field}_lte={q}&stringify=true",
432
- "itemKey": "data.value",
433
- "itemTitle": "data.label"
434
- }
435
- }
436
- }
437
- }
438
- },
439
- {
440
- "title": "Exclure des valeurs",
441
- "required": ["field"],
442
- "additionalProperties": false,
443
- "properties": {
444
- "type": { "const": "nin" },
445
- "field": { "$ref": "#/definitions/filterField" },
446
- "values": {
447
- "type": "array",
448
- "title": "Valeurs à exclure",
449
- "items": { "type": "string" },
450
- "layout": {
451
- "getItems": {
452
- "url": "${rootData.datasets[0].href}/values-labels/${parent.data.field}?q={q}&q_mode=complete&size=1000&stringify=true",
453
- "itemKey": "data.value",
454
- "itemTitle": "data.label"
455
- }
456
- }
457
- }
458
- }
459
- }
460
- ]
461
- }
462
- },
463
- "filterField": {
464
- "type": "string",
465
- "title": "Colonne de filtre",
466
- "layout": {
467
- "getItems": {
468
- "url": "${rootData.datasets[0].href}/schema?calculated=false",
469
- "itemKey": "data.key",
470
- "itemTitle": "data.label"
471
- }
472
442
  }
473
443
  }
474
- },
475
- "$id": "config-schema",
476
- "layout": "tabs"
444
+ ]
477
445
  }
package/dist/index.html CHANGED
@@ -7,21 +7,18 @@
7
7
  <meta name="df:sync-state" content="true">
8
8
  <meta name="df:filter-concepts" content="true" />
9
9
  <meta name="df:overflow" content="true">
10
- <meta name="df:vjsf" content="3">
11
- <meta name="df:sync-config" content="false">
12
10
  <meta name="thumbnail" content="thumbnail.png" />
13
11
  <meta name="{VERSION}" content="trigger" />
14
12
  <meta name="application-name" content="Application Calendrier">
15
13
  <meta name="description" lang="fr" content="Une application de type calendrier">
16
14
  <meta name="keywords" lang="fr" content="Calendrier">
17
15
  <title lang="fr">Calendrier</title>
18
- <title lang="en">Calendar</title>
19
16
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:300,400,500,700,400italic" />
20
17
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@7.x/css/materialdesignicons.min.css" />
21
18
  <!-- Capture a global variable defined by data-fair's reverse proxy. -->
22
19
  <script type="text/javascript">window.APPLICATION=%APPLICATION%;</script>
23
- <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.2.12/dist/assets/index-gXBW67iz.js"></script>
24
- <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.2.12/dist/assets/index-DRr2cjCG.css">
20
+ <script type="module" crossorigin src="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.2.14/dist/assets/index-ul76iyV8.js"></script>
21
+ <link rel="stylesheet" crossorigin href="https://cdn.jsdelivr.net/npm/@data-fair/app-calendar@1.2.14/dist/assets/index-BhUGjgE1.css">
25
22
  </head>
26
23
  <body>
27
24
  <div id="app"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/app-calendar",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "zellij --layout .zellij.kdl",
@@ -21,9 +21,9 @@
21
21
  "not ie 11"
22
22
  ],
23
23
  "dependencies": {
24
- "@data-fair/lib-utils": "^1.6.0",
25
- "@data-fair/lib-vue": "^1.20.0",
26
- "@data-fair/lib-vuetify": "^1.9.1",
24
+ "@data-fair/lib-utils": "^1.6.1",
25
+ "@data-fair/lib-vue": "^1.23.5",
26
+ "@data-fair/lib-vuetify": "^1.13.1",
27
27
  "@fullcalendar/core": "^6.1.10",
28
28
  "@fullcalendar/daygrid": "^6.1.10",
29
29
  "@fullcalendar/interaction": "^6.1.10",
@@ -34,21 +34,22 @@
34
34
  "@koumoul/vjsf-markdown": "^0.3.2",
35
35
  "@vueuse/core": "^10.7.2",
36
36
  "@wojtekmaj/opening-hours-utils": "^1.0.0",
37
+ "ajv-formats": "^3.0.1",
37
38
  "chroma-js": "^2.4.2",
38
39
  "dayjs": "^1.11.13",
39
40
  "ofetch": "^1.3.4",
40
- "vue": "^3.4.29",
41
- "vuetify": "^3.9.5"
41
+ "vue": "^3.5.27",
42
+ "vuetify": "^3.11.7"
42
43
  },
43
44
  "devDependencies": {
44
- "@data-fair/dev-server": "^2.0.21",
45
- "@vitejs/plugin-vue": "^5.0.5",
45
+ "@data-fair/dev-server": "^2.0.24",
46
+ "@vitejs/plugin-vue": "^6.0.0",
46
47
  "eslint": "^8.57.0",
47
48
  "eslint-config-standard": "^17.1.0",
48
49
  "eslint-plugin-import": "^2.29.1",
49
50
  "eslint-plugin-vue": "^9.26.0",
50
51
  "sass": "^1.77.6",
51
- "vite": "^5.3.1",
52
- "vite-plugin-vuetify": "^2.0.1"
52
+ "vite": "npm:rolldown-vite@^7.2.5",
53
+ "vite-plugin-vuetify": "^2.1.3"
53
54
  }
54
55
  }