@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,357 @@
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
+ "name": {
19
+ "en": "",
20
+ "fr": ""
21
+ },
22
+ "subtitle": {
23
+ "en": "",
24
+ "fr": ""
25
+ },
26
+ "description": {
27
+ "en": "",
28
+ "fr": ""
29
+ },
30
+ "summary": {
31
+ "en": "",
32
+ "fr": ""
33
+ },
34
+ "url": "",
35
+ "status": "",
36
+ "affiliations": "",
37
+ "related": {
38
+ "events": "",
39
+ "news": "",
40
+ "people": "",
41
+ "publications": "",
42
+ "projects": "",
43
+ "fellowships": ""
44
+ },
45
+ "image": "",
46
+ "gallery": "",
47
+ "video": {
48
+ "url": "",
49
+ "caption": {
50
+ "en": "",
51
+ "fr": ""
52
+ },
53
+ "alt": {
54
+ "en": "",
55
+ "fr": ""
56
+ },
57
+ "copyright": "Free of rights",
58
+ "licence": "",
59
+ "licenseUrl": "",
60
+ "backgroundColor": ""
61
+ },
62
+ "tags": "",
63
+ "files": "",
64
+ "color": "",
65
+ "date": "",
66
+ "featured": ""
67
+ },
68
+ "schema": {
69
+ "name": {
70
+ "label": "name",
71
+ "component": "TextField",
72
+ "type": "PRIMITIVE",
73
+ "i18n": true,
74
+ "rules": {
75
+ "required": true,
76
+ "min": 2,
77
+ "max": 50
78
+ },
79
+ "meta": "title"
80
+ },
81
+ "subtitle": {
82
+ "label": "subtitle",
83
+ "component": "TextArea",
84
+ "type": "PRIMITIVE",
85
+ "i18n": true,
86
+ "rules": {
87
+ "required": true,
88
+ "min": 5,
89
+ "max": 200
90
+ },
91
+ "meta": "subtitle"
92
+ },
93
+ "description": {
94
+ "label": "description",
95
+ "component": "TextArea",
96
+ "type": "PRIMITIVE",
97
+ "i18n": true,
98
+ "rules": {
99
+ "required": true,
100
+ "min": 5,
101
+ "max": 2000
102
+ },
103
+ "meta": "description"
104
+ },
105
+ "summary": {
106
+ "label": "summary",
107
+ "component": "TextArea",
108
+ "type": "PRIMITIVE",
109
+ "i18n": true,
110
+ "rules": {
111
+ "min": 5,
112
+ "max": 2000
113
+ },
114
+ "meta": "summary"
115
+ },
116
+ "url": {
117
+ "label": "url",
118
+ "component": "TextField",
119
+ "type": "PRIMITIVE",
120
+ "rules": {
121
+ "url": true
122
+ },
123
+ "meta": "url"
124
+ },
125
+ "status": {
126
+ "label": "status",
127
+ "component": "Select",
128
+ "type": "PRIMITIVE",
129
+ "rules": {
130
+ "required": true
131
+ },
132
+ "items": {
133
+ "Planned": "PLANNED",
134
+ "InProgress": "IN_PROGRESS",
135
+ "Finished": "FINISHED",
136
+ "Canceled": "CANCELED"
137
+ },
138
+ "meta": "status"
139
+ },
140
+ "affiliations": {
141
+ "label": "affiliations",
142
+ "component": "DocumentPicker",
143
+ "type": "DOCUMENT",
144
+ "meta": "affiliations",
145
+ "default": ""
146
+ },
147
+ "related": {
148
+ "label": "related",
149
+ "component": "ObjectContainerPanel",
150
+ "type": "OBJECT",
151
+ "meta": "related",
152
+ "items": {
153
+ "events": {
154
+ "label": "relatedEvent",
155
+ "component": "DocumentPicker",
156
+ "type": "DOCUMENT",
157
+ "meta": "event",
158
+ "default": ""
159
+ },
160
+ "news": {
161
+ "label": "relatedNews",
162
+ "component": "DocumentPicker",
163
+ "type": "DOCUMENT",
164
+ "meta": "news",
165
+ "default": ""
166
+ },
167
+ "people": {
168
+ "label": "relatedPeople",
169
+ "component": "DocumentPicker",
170
+ "type": "DOCUMENT",
171
+ "meta": "people",
172
+ "default": ""
173
+ },
174
+ "publications": {
175
+ "label": "relatedPublication",
176
+ "component": "DocumentPicker",
177
+ "type": "DOCUMENT",
178
+ "meta": "publication",
179
+ "default": ""
180
+ },
181
+ "projects": {
182
+ "label": "relatedProject",
183
+ "component": "DocumentPicker",
184
+ "type": "DOCUMENT",
185
+ "meta": "project",
186
+ "default": ""
187
+ },
188
+ "fellowships": {
189
+ "label": "relatedFellowships",
190
+ "component": "DocumentPicker",
191
+ "type": "DOCUMENT",
192
+ "meta": "fellowship",
193
+ "default": ""
194
+ }
195
+ }
196
+ },
197
+ "image": {
198
+ "label": "image",
199
+ "component": "ImagePicker",
200
+ "type": "DOCUMENT",
201
+ "rules": {
202
+ "required": true
203
+ },
204
+ "meta": "image",
205
+ "default": ""
206
+ },
207
+ "gallery": {
208
+ "label": "gallery",
209
+ "component": "ImagePicker",
210
+ "type": "DOCUMENT",
211
+ "multiple": true,
212
+ "meta": "gallery",
213
+ "default": ""
214
+ },
215
+ "video": {
216
+ "label": "video",
217
+ "component": "ObjectContainerPanel",
218
+ "type": "OBJECT",
219
+ "meta": "video",
220
+ "items": {
221
+ "url": {
222
+ "type": "PRIMITIVE",
223
+ "component": "TextField",
224
+ "label": "url",
225
+ "description": "The url where the image is fetched from",
226
+ "rules": {
227
+ "required": true,
228
+ "url": true,
229
+ "max": 2048
230
+ },
231
+ "meta": "url"
232
+ },
233
+ "caption": {
234
+ "label": "caption",
235
+ "type": "PRIMITIVE",
236
+ "component": "TextField",
237
+ "i18n": true,
238
+ "rules": {
239
+ "required": true,
240
+ "min": 2,
241
+ "max": 100
242
+ },
243
+ "meta": "caption"
244
+ },
245
+ "alt": {
246
+ "label": "alt",
247
+ "type": "PRIMITIVE",
248
+ "i18n": true,
249
+ "component": "TextField",
250
+ "description": "Displayed if the image cannot be loaded",
251
+ "rules": {
252
+ "max": 200
253
+ },
254
+ "meta": "alt"
255
+ },
256
+ "copyright": {
257
+ "label": "copyright",
258
+ "type": "PRIMITIVE",
259
+ "component": "TextField",
260
+ "default": "Free of rights",
261
+ "description": "Owner of the image copyright",
262
+ "meta": "copyright"
263
+ },
264
+ "licence": {
265
+ "label": "licence",
266
+ "type": "PRIMITIVE",
267
+ "component": "TextField",
268
+ "default": null,
269
+ "description": "The licence of the video",
270
+ "meta": "licence"
271
+ },
272
+ "licenseUrl": {
273
+ "label": "licenseUrl",
274
+ "type": "PRIMITIVE",
275
+ "component": "TextField",
276
+ "default": null,
277
+ "description": "The caption of the video",
278
+ "rules": {
279
+ "url": true
280
+ },
281
+ "show": {
282
+ "default": false,
283
+ "switchIf": [],
284
+ "disjonctive": false
285
+ },
286
+ "meta": "licenseUrl"
287
+ },
288
+ "backgroundColor": {
289
+ "label": "backgroundColor",
290
+ "type": "PRIMITIVE",
291
+ "component": "ColorPicker",
292
+ "default": null,
293
+ "rules": {
294
+ "color": true
295
+ },
296
+ "show": {
297
+ "default": false,
298
+ "switchIf": [],
299
+ "disjonctive": false
300
+ },
301
+ "meta": "backgroundColor"
302
+ }
303
+ }
304
+ },
305
+ "tags": {
306
+ "label": "tags",
307
+ "component": "TagPicker",
308
+ "type": "DOCUMENT",
309
+ "rules": {
310
+ "required": true
311
+ },
312
+ "meta": "tags",
313
+ "default": ""
314
+ },
315
+ "files": {
316
+ "label": "files",
317
+ "component": "FilePicker",
318
+ "type": "DOCUMENT",
319
+ "meta": "files",
320
+ "default": ""
321
+ },
322
+ "color": {
323
+ "label": "color",
324
+ "component": "ColorPicker",
325
+ "type": "PRIMITIVE",
326
+ "rules": {
327
+ "required": true,
328
+ "color": true
329
+ },
330
+ "meta": "color"
331
+ },
332
+ "date": {
333
+ "label": "date",
334
+ "component": "DatePicker",
335
+ "type": "PRIMITIVE",
336
+ "rules": {
337
+ "required": true,
338
+ "date": true
339
+ },
340
+ "meta": "date"
341
+ },
342
+ "featured": {
343
+ "label": "featured",
344
+ "component": "DatePicker",
345
+ "type": "PRIMITIVE",
346
+ "rules": {
347
+ "required": true,
348
+ "date": true
349
+ },
350
+ "meta": "featured"
351
+ }
352
+ }
353
+ };
354
+
355
+ var projects = deepFreeze(data);
356
+
357
+ module.exports = projects;
@@ -350,4 +350,6 @@ const data = {
350
350
  }
351
351
  };
352
352
 
353
- export default deepFreeze(data);
353
+ var projects = deepFreeze(data);
354
+
355
+ export { projects as default };