@paris-ias/trees 2.0.7 → 2.0.9

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.
Files changed (70) hide show
  1. package/dist/form/actions.cjs.js +102 -0
  2. package/dist/form/actions.js +3 -1
  3. package/dist/form/affiliations.cjs.js +197 -0
  4. package/dist/form/affiliations.js +3 -1
  5. package/dist/form/apps.cjs.js +151 -0
  6. package/dist/form/apps.js +3 -1
  7. package/dist/form/disciplines.cjs.js +49 -0
  8. package/dist/form/disciplines.js +3 -1
  9. package/dist/form/events.cjs.js +855 -0
  10. package/dist/form/events.js +3 -1
  11. package/dist/form/fellowships.cjs.js +1326 -0
  12. package/dist/form/fellowships.js +3 -1
  13. package/dist/form/files.cjs.js +49 -0
  14. package/dist/form/files.js +3 -1
  15. package/dist/form/mailing.cjs.js +62 -0
  16. package/dist/form/mailing.js +3 -1
  17. package/dist/form/news.cjs.js +271 -0
  18. package/dist/form/news.js +3 -1
  19. package/dist/form/people.cjs.js +677 -0
  20. package/dist/form/people.js +3 -1
  21. package/dist/form/projects.cjs.js +357 -0
  22. package/dist/form/projects.js +3 -1
  23. package/dist/form/publications.cjs.js +383 -0
  24. package/dist/form/publications.js +3 -1
  25. package/dist/form/tags.cjs.js +57 -0
  26. package/dist/form/tags.js +3 -1
  27. package/dist/form/users.cjs.js +595 -0
  28. package/dist/form/users.js +3 -1
  29. package/dist/graphql/client/actions/query.get.actions.gql +1 -4
  30. package/dist/graphql/client/affiliations/query.get.affiliations.gql +1 -4
  31. package/dist/graphql/client/apps/query.get.apps.gql +1 -4
  32. package/dist/graphql/client/events/query.get.events.gql +1 -4
  33. package/dist/graphql/client/fellowships/query.get.fellowships.gql +1 -4
  34. package/dist/graphql/client/misc/query.get.disciplines.gql +1 -4
  35. package/dist/graphql/client/misc/query.get.tags.gql +1 -4
  36. package/dist/graphql/client/misc/query.search.all.gql +0 -5
  37. package/dist/graphql/client/news/query.get.news.gql +1 -4
  38. package/dist/graphql/client/people/query.get.users.gql +1 -4
  39. package/dist/graphql/client/projects/query.get.projects.gql +1 -4
  40. package/dist/graphql/client/publications/query.get.publications.gql +1 -4
  41. package/dist/list/actions.cjs.js +152 -0
  42. package/dist/list/actions.js +3 -1
  43. package/dist/list/affiliations.cjs.js +152 -0
  44. package/dist/list/affiliations.js +3 -1
  45. package/dist/list/apps.cjs.js +152 -0
  46. package/dist/list/apps.js +3 -1
  47. package/dist/list/disciplines.cjs.js +151 -0
  48. package/dist/list/disciplines.js +3 -1
  49. package/dist/list/events.cjs.js +205 -0
  50. package/dist/list/events.js +3 -1
  51. package/dist/list/fellowships.cjs.js +168 -0
  52. package/dist/list/fellowships.js +3 -1
  53. package/dist/list/files.cjs.js +151 -0
  54. package/dist/list/files.js +3 -1
  55. package/dist/list/mailing.cjs.js +151 -0
  56. package/dist/list/mailing.js +3 -1
  57. package/dist/list/news.cjs.js +154 -0
  58. package/dist/list/news.js +3 -1
  59. package/dist/list/people.cjs.js +195 -0
  60. package/dist/list/people.js +3 -1
  61. package/dist/list/projects.cjs.js +154 -0
  62. package/dist/list/projects.js +3 -1
  63. package/dist/list/publications.cjs.js +171 -0
  64. package/dist/list/publications.js +3 -1
  65. package/dist/list/tags.cjs.js +152 -0
  66. package/dist/list/tags.js +3 -1
  67. package/dist/list/users.cjs.js +195 -0
  68. package/dist/list/users.js +3 -1
  69. package/package.json +65 -31
  70. package/readme.md +9 -9
@@ -0,0 +1,595 @@
1
+ 'use strict';
2
+
3
+ // Deep freeze utility to make exports immutable
4
+ const deepFreeze = (obj) => {
5
+ Object.freeze(obj);
6
+ Object.getOwnPropertyNames(obj).forEach(prop => {
7
+ if (obj[prop] !== null
8
+ && (typeof obj[prop] === "object" || typeof obj[prop] === "function")
9
+ && !Object.isFrozen(obj[prop])) {
10
+ deepFreeze(obj[prop]);
11
+ }
12
+ });
13
+ return obj;
14
+ };
15
+
16
+ const data = {
17
+ "_defaults": {
18
+ "firstname": "",
19
+ "lastname": "",
20
+ "affiliations": "",
21
+ "image": "",
22
+ "socials": {
23
+ "website": "",
24
+ "wikipedia": "",
25
+ "orcid": "",
26
+ "scholar": "",
27
+ "researchgate": "",
28
+ "mendeley": "",
29
+ "idRef": "",
30
+ "twitter": "",
31
+ "linkedin": "",
32
+ "bluesky": "",
33
+ "instagram": "",
34
+ "youtube": ""
35
+ },
36
+ "disciplines": "",
37
+ "video": [
38
+ {
39
+ "video": {
40
+ "url": "",
41
+ "caption": {
42
+ "en": "",
43
+ "fr": ""
44
+ },
45
+ "alt": {
46
+ "en": "",
47
+ "fr": ""
48
+ },
49
+ "copyright": "Free of rights",
50
+ "licence": "",
51
+ "licenseUrl": "",
52
+ "backgroundColor": ""
53
+ }
54
+ }
55
+ ],
56
+ "biography": {
57
+ "en": "",
58
+ "fr": ""
59
+ },
60
+ "related": {
61
+ "events": "",
62
+ "news": "",
63
+ "people": "",
64
+ "publications": "",
65
+ "projects": "",
66
+ "fellowships": ""
67
+ },
68
+ "consent": {
69
+ "data": false,
70
+ "record": false,
71
+ "diffusion": false,
72
+ "publication": false,
73
+ "email": false,
74
+ "newsletter": false,
75
+ "fellowshipnewsletter": false
76
+ },
77
+ "groups": {
78
+ "team": false,
79
+ "sab": false,
80
+ "board": false,
81
+ "fellows": false,
82
+ "sponsor": false,
83
+ "vintage": [
84
+ {
85
+ "name": "",
86
+ "year": "",
87
+ "theme": {
88
+ "en": "",
89
+ "fr": ""
90
+ },
91
+ "url": ""
92
+ }
93
+ ]
94
+ },
95
+ "lang": ""
96
+ },
97
+ "schema": {
98
+ "firstname": {
99
+ "label": "firstname",
100
+ "component": "TextField",
101
+ "type": "PRIMITIVE",
102
+ "rules": {
103
+ "required": true,
104
+ "min": 1,
105
+ "max": 200
106
+ },
107
+ "meta": "firstname"
108
+ },
109
+ "lastname": {
110
+ "label": "lastname",
111
+ "component": "TextField",
112
+ "type": "PRIMITIVE",
113
+ "rules": {
114
+ "required": true,
115
+ "min": 1,
116
+ "max": 200
117
+ },
118
+ "meta": "lastname"
119
+ },
120
+ "affiliations": {
121
+ "label": "affiliations",
122
+ "component": "AffiliationPicker",
123
+ "type": "DOCUMENT",
124
+ "meta": "affiliations",
125
+ "default": ""
126
+ },
127
+ "image": {
128
+ "label": "image",
129
+ "component": "ImagePicker",
130
+ "type": "DOCUMENT",
131
+ "meta": "image",
132
+ "default": ""
133
+ },
134
+ "socials": {
135
+ "label": "socials",
136
+ "component": "ObjectContainerPanel",
137
+ "type": "OBJECT",
138
+ "meta": "socials",
139
+ "items": {
140
+ "website": {
141
+ "label": "website",
142
+ "type": "PRIMITIVE",
143
+ "component": "TextField",
144
+ "rules": {
145
+ "url": true
146
+ },
147
+ "meta": "website"
148
+ },
149
+ "wikipedia": {
150
+ "label": "wikipedia",
151
+ "type": "PRIMITIVE",
152
+ "component": "TextField",
153
+ "rules": {
154
+ "url": true
155
+ },
156
+ "meta": "wikipedia"
157
+ },
158
+ "orcid": {
159
+ "label": "orcid",
160
+ "type": "PRIMITIVE",
161
+ "component": "TextField",
162
+ "rules": {
163
+ "orcid": true
164
+ },
165
+ "meta": "orcid"
166
+ },
167
+ "scholar": {
168
+ "label": "scholar",
169
+ "type": "PRIMITIVE",
170
+ "component": "TextField",
171
+ "rules": {
172
+ "url": true
173
+ },
174
+ "meta": "scholar"
175
+ },
176
+ "researchgate": {
177
+ "label": "researchgate",
178
+ "type": "PRIMITIVE",
179
+ "component": "TextField",
180
+ "rules": {
181
+ "url": true
182
+ },
183
+ "meta": "researchgate"
184
+ },
185
+ "mendeley": {
186
+ "label": "mendeley",
187
+ "type": "PRIMITIVE",
188
+ "component": "TextField",
189
+ "rules": {
190
+ "url": true
191
+ },
192
+ "meta": "mendeley"
193
+ },
194
+ "idRef": {
195
+ "label": "idRef",
196
+ "type": "PRIMITIVE",
197
+ "component": "TextField",
198
+ "rules": {
199
+ "url": true
200
+ },
201
+ "meta": "idRef"
202
+ },
203
+ "twitter": {
204
+ "label": "twitter",
205
+ "type": "PRIMITIVE",
206
+ "component": "TextField",
207
+ "rules": {
208
+ "url": true
209
+ },
210
+ "meta": "twitter"
211
+ },
212
+ "linkedin": {
213
+ "label": "linkedin",
214
+ "type": "PRIMITIVE",
215
+ "component": "TextField",
216
+ "rules": {
217
+ "url": true
218
+ },
219
+ "meta": "linkedin"
220
+ },
221
+ "bluesky": {
222
+ "label": "bluesky",
223
+ "type": "PRIMITIVE",
224
+ "component": "TextField",
225
+ "rules": {
226
+ "url": true
227
+ },
228
+ "meta": "bluesky"
229
+ },
230
+ "instagram": {
231
+ "label": "instagram",
232
+ "type": "PRIMITIVE",
233
+ "component": "TextField",
234
+ "rules": {
235
+ "url": true
236
+ },
237
+ "meta": "instagram"
238
+ },
239
+ "youtube": {
240
+ "label": "youtube",
241
+ "type": "PRIMITIVE",
242
+ "component": "TextField",
243
+ "rules": {
244
+ "url": true
245
+ },
246
+ "meta": "youtube"
247
+ }
248
+ }
249
+ },
250
+ "disciplines": {
251
+ "label": "disciplines",
252
+ "component": "DisciplinePicker",
253
+ "type": "DOCUMENT",
254
+ "meta": "disciplines",
255
+ "default": ""
256
+ },
257
+ "video": {
258
+ "label": "video",
259
+ "component": "CollectionContainerPanel",
260
+ "type": "ARRAY",
261
+ "meta": "video",
262
+ "items": {
263
+ "video": {
264
+ "label": "video",
265
+ "component": "ObjectContainerPanel",
266
+ "type": "OBJECT",
267
+ "meta": "video",
268
+ "items": {
269
+ "url": {
270
+ "type": "PRIMITIVE",
271
+ "component": "TextField",
272
+ "label": "url",
273
+ "description": "The url where the image is fetched from",
274
+ "rules": {
275
+ "required": true,
276
+ "url": true,
277
+ "max": 2048
278
+ },
279
+ "meta": "url"
280
+ },
281
+ "caption": {
282
+ "label": "caption",
283
+ "type": "PRIMITIVE",
284
+ "component": "TextField",
285
+ "i18n": true,
286
+ "rules": {
287
+ "required": true,
288
+ "min": 2,
289
+ "max": 100
290
+ },
291
+ "meta": "caption"
292
+ },
293
+ "alt": {
294
+ "label": "alt",
295
+ "type": "PRIMITIVE",
296
+ "i18n": true,
297
+ "component": "TextField",
298
+ "description": "Displayed if the image cannot be loaded",
299
+ "rules": {
300
+ "max": 200
301
+ },
302
+ "meta": "alt"
303
+ },
304
+ "copyright": {
305
+ "label": "copyright",
306
+ "type": "PRIMITIVE",
307
+ "component": "TextField",
308
+ "default": "Free of rights",
309
+ "description": "Owner of the image copyright",
310
+ "meta": "copyright"
311
+ },
312
+ "licence": {
313
+ "label": "licence",
314
+ "type": "PRIMITIVE",
315
+ "component": "TextField",
316
+ "default": null,
317
+ "description": "The licence of the video",
318
+ "meta": "licence"
319
+ },
320
+ "licenseUrl": {
321
+ "label": "licenseUrl",
322
+ "type": "PRIMITIVE",
323
+ "component": "TextField",
324
+ "default": null,
325
+ "description": "The caption of the video",
326
+ "rules": {
327
+ "url": true
328
+ },
329
+ "show": {
330
+ "default": false,
331
+ "switchIf": [],
332
+ "disjonctive": false
333
+ },
334
+ "meta": "licenseUrl"
335
+ },
336
+ "backgroundColor": {
337
+ "label": "backgroundColor",
338
+ "type": "PRIMITIVE",
339
+ "component": "ColorPicker",
340
+ "default": null,
341
+ "rules": {
342
+ "color": true
343
+ },
344
+ "show": {
345
+ "default": false,
346
+ "switchIf": [],
347
+ "disjonctive": false
348
+ },
349
+ "meta": "backgroundColor"
350
+ }
351
+ }
352
+ }
353
+ }
354
+ },
355
+ "biography": {
356
+ "label": "biography",
357
+ "component": "TextArea",
358
+ "i18n": true,
359
+ "type": "PRIMITIVE",
360
+ "rules": {
361
+ "required": true,
362
+ "min": 5,
363
+ "max": 2000
364
+ },
365
+ "meta": "biography"
366
+ },
367
+ "related": {
368
+ "label": "related",
369
+ "component": "ObjectContainerPanel",
370
+ "type": "OBJECT",
371
+ "rules": {
372
+ "required": true,
373
+ "min": 5,
374
+ "max": 200
375
+ },
376
+ "meta": "related",
377
+ "items": {
378
+ "events": {
379
+ "label": "relatedEvent",
380
+ "component": "DocumentPicker",
381
+ "type": "DOCUMENT",
382
+ "meta": "event",
383
+ "default": ""
384
+ },
385
+ "news": {
386
+ "label": "relatedNews",
387
+ "component": "DocumentPicker",
388
+ "type": "DOCUMENT",
389
+ "meta": "news",
390
+ "default": ""
391
+ },
392
+ "people": {
393
+ "label": "relatedPeople",
394
+ "component": "DocumentPicker",
395
+ "type": "DOCUMENT",
396
+ "meta": "people",
397
+ "default": ""
398
+ },
399
+ "publications": {
400
+ "label": "relatedPublication",
401
+ "component": "DocumentPicker",
402
+ "type": "DOCUMENT",
403
+ "meta": "publication",
404
+ "default": ""
405
+ },
406
+ "projects": {
407
+ "label": "relatedProject",
408
+ "component": "DocumentPicker",
409
+ "type": "DOCUMENT",
410
+ "meta": "project",
411
+ "default": ""
412
+ },
413
+ "fellowships": {
414
+ "label": "relatedFellowships",
415
+ "component": "DocumentPicker",
416
+ "type": "DOCUMENT",
417
+ "meta": "fellowship",
418
+ "default": ""
419
+ }
420
+ }
421
+ },
422
+ "consent": {
423
+ "label": "consent",
424
+ "component": "ObjectContainerPanel",
425
+ "type": "OBJECT",
426
+ "rules": {
427
+ "required": true
428
+ },
429
+ "meta": "consent",
430
+ "items": {
431
+ "data": {
432
+ "label": "data",
433
+ "component": "Checkbox",
434
+ "type": "PRIMITIVE",
435
+ "default": false,
436
+ "hint": "My profile will be showcased on the Paris IAS websites",
437
+ "meta": "data"
438
+ },
439
+ "record": {
440
+ "label": "record",
441
+ "component": "Checkbox",
442
+ "type": "PRIMITIVE",
443
+ "default": false,
444
+ "hint": "Necessary if you appear in a video or audio recording",
445
+ "meta": "record"
446
+ },
447
+ "diffusion": {
448
+ "label": "diffusion",
449
+ "component": "Checkbox",
450
+ "type": "PRIMITIVE",
451
+ "default": false,
452
+ "hint": "To make available my video and audio recordings in publicaitons, news, events...",
453
+ "meta": "diffusion"
454
+ },
455
+ "publication": {
456
+ "label": "publication",
457
+ "component": "Checkbox",
458
+ "type": "PRIMITIVE",
459
+ "default": false,
460
+ "hint": "To be officially published as an academic author and provide your content with a DOI",
461
+ "meta": "publication"
462
+ },
463
+ "email": {
464
+ "label": "email",
465
+ "component": "Checkbox",
466
+ "type": "PRIMITIVE",
467
+ "default": false,
468
+ "hint": "To allow us to send you email communications in general (including newsletter)",
469
+ "meta": "email"
470
+ },
471
+ "newsletter": {
472
+ "label": "newsletter",
473
+ "component": "Checkbox",
474
+ "type": "PRIMITIVE",
475
+ "default": false,
476
+ "meta": "newsletter"
477
+ },
478
+ "fellowshipnewsletter": {
479
+ "label": "fellowshipnewsletter",
480
+ "component": "Checkbox",
481
+ "type": "PRIMITIVE",
482
+ "default": false,
483
+ "meta": "fellowshipnewsletter"
484
+ }
485
+ }
486
+ },
487
+ "groups": {
488
+ "label": "groups",
489
+ "component": "ObjectContainerPanel",
490
+ "type": "OBJECT",
491
+ "rules": {
492
+ "required": true
493
+ },
494
+ "meta": "groups",
495
+ "items": {
496
+ "team": {
497
+ "label": "team",
498
+ "component": "Checkbox",
499
+ "type": "PRIMITIVE",
500
+ "meta": "team"
501
+ },
502
+ "sab": {
503
+ "label": "sab",
504
+ "component": "Checkbox",
505
+ "type": "PRIMITIVE",
506
+ "meta": "sab"
507
+ },
508
+ "board": {
509
+ "label": "board",
510
+ "component": "Checkbox",
511
+ "type": "PRIMITIVE",
512
+ "meta": "board"
513
+ },
514
+ "fellows": {
515
+ "label": "fellows",
516
+ "component": "Checkbox",
517
+ "type": "PRIMITIVE",
518
+ "meta": "fellow"
519
+ },
520
+ "sponsor": {
521
+ "label": "sponsor",
522
+ "component": "Checkbox",
523
+ "type": "PRIMITIVE",
524
+ "meta": "sponsor"
525
+ },
526
+ "vintage": {
527
+ "label": "vintage",
528
+ "component": "CollectionContainerPanel",
529
+ "type": "ARRAY",
530
+ "meta": "vintage",
531
+ "items": {
532
+ "name": {
533
+ "label": "name",
534
+ "type": "PRIMITIVE",
535
+ "component": "TextField",
536
+ "rules": {
537
+ "required": true,
538
+ "min": 2,
539
+ "max": 100
540
+ },
541
+ "meta": "name"
542
+ },
543
+ "year": {
544
+ "label": "year",
545
+ "type": "PRIMITIVE",
546
+ "component": "TextField",
547
+ "rules": {
548
+ "required": true,
549
+ "min": 2,
550
+ "max": 100
551
+ },
552
+ "meta": "year"
553
+ },
554
+ "theme": {
555
+ "label": "theme",
556
+ "type": "PRIMITIVE",
557
+ "component": "TextField",
558
+ "i18n": true,
559
+ "rules": {
560
+ "required": true,
561
+ "min": 2,
562
+ "max": 100
563
+ },
564
+ "meta": "theme"
565
+ },
566
+ "url": {
567
+ "type": "PRIMITIVE",
568
+ "component": "TextField",
569
+ "label": "url",
570
+ "rules": {
571
+ "required": true,
572
+ "url": true,
573
+ "max": 2048
574
+ },
575
+ "meta": "url"
576
+ }
577
+ }
578
+ }
579
+ }
580
+ },
581
+ "lang": {
582
+ "label": "lang",
583
+ "component": "AutoComplete",
584
+ "type": "PRIMITIVE",
585
+ "rules": {
586
+ "required": true
587
+ },
588
+ "meta": "lang"
589
+ }
590
+ }
591
+ };
592
+
593
+ var users = deepFreeze(data);
594
+
595
+ module.exports = users;
@@ -588,4 +588,6 @@ const data = {
588
588
  }
589
589
  };
590
590
 
591
- export default deepFreeze(data);
591
+ var users = deepFreeze(data);
592
+
593
+ export { users as default };
@@ -14,9 +14,6 @@ query getAction($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
14
14
  name
15
15
  slots
16
16
  video
17
- slug {
18
- fr
19
- en
20
- }
17
+ slug
21
18
  }
22
19
  }
@@ -29,9 +29,6 @@ query getAffiliation(
29
29
  name
30
30
  ror
31
31
  url
32
- slug {
33
- fr
34
- en
35
- }
32
+ slug
36
33
  }
37
34
  }
@@ -25,9 +25,6 @@ query getApp($appId: ID = "iea", $lang: String = "en") {
25
25
  updatedAt
26
26
  }
27
27
  url
28
- slug {
29
- fr
30
- en
31
- }
28
+ slug
32
29
  }
33
30
  }
@@ -25,10 +25,7 @@ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
25
25
  url
26
26
  }
27
27
  start
28
- slug {
29
- fr
30
- en
31
- }
28
+ slug
32
29
  slots {
33
30
  email
34
31
  firstname
@@ -9,10 +9,7 @@ query getFellowship(
9
9
  fellowshipStart
10
10
  contact
11
11
  url
12
- slug {
13
- fr
14
- en
15
- }
12
+ slug
16
13
  applicationStop
17
14
  fellowshipStop
18
15
  publicationDate
@@ -9,9 +9,6 @@ query getDiscipline(
9
9
  icon
10
10
  name
11
11
  updatedAt
12
- slug {
13
- fr
14
- en
15
- }
12
+ slug
16
13
  }
17
14
  }
@@ -5,9 +5,6 @@ query getTag($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
5
5
  icon
6
6
  name
7
7
  updatedAt
8
- slug {
9
- fr
10
- en
11
- }
8
+ slug
12
9
  }
13
10
  }