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