@paris-ias/trees 2.0.6 → 2.0.8

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 (86) hide show
  1. package/dist/form/actions.cjs.js +102 -0
  2. package/dist/form/actions.d.ts +21 -2
  3. package/dist/form/actions.js +3 -1
  4. package/dist/form/affiliations.cjs.js +197 -0
  5. package/dist/form/affiliations.d.ts +18 -2
  6. package/dist/form/affiliations.js +3 -1
  7. package/dist/form/apps.cjs.js +151 -0
  8. package/dist/form/apps.d.ts +30 -2
  9. package/dist/form/apps.js +3 -1
  10. package/dist/form/disciplines.cjs.js +49 -0
  11. package/dist/form/disciplines.d.ts +12 -2
  12. package/dist/form/disciplines.js +3 -1
  13. package/dist/form/events.cjs.js +855 -0
  14. package/dist/form/events.d.ts +96 -2
  15. package/dist/form/events.js +3 -1
  16. package/dist/form/fellowships.cjs.js +1326 -0
  17. package/dist/form/fellowships.d.ts +48 -2
  18. package/dist/form/fellowships.js +3 -1
  19. package/dist/form/files.cjs.js +49 -0
  20. package/dist/form/files.d.ts +25 -2
  21. package/dist/form/files.js +3 -1
  22. package/dist/form/mailing.cjs.js +62 -0
  23. package/dist/form/mailing.d.ts +18 -2
  24. package/dist/form/mailing.js +3 -1
  25. package/dist/form/news.cjs.js +271 -0
  26. package/dist/form/news.d.ts +51 -2
  27. package/dist/form/news.js +3 -1
  28. package/dist/form/people.cjs.js +677 -0
  29. package/dist/form/people.d.ts +26 -2
  30. package/dist/form/people.js +3 -1
  31. package/dist/form/projects.cjs.js +357 -0
  32. package/dist/form/projects.d.ts +36 -2
  33. package/dist/form/projects.js +3 -1
  34. package/dist/form/publications.cjs.js +383 -0
  35. package/dist/form/publications.d.ts +44 -2
  36. package/dist/form/publications.js +3 -1
  37. package/dist/form/tags.cjs.js +57 -0
  38. package/dist/form/tags.d.ts +12 -2
  39. package/dist/form/tags.js +3 -1
  40. package/dist/form/users.cjs.js +595 -0
  41. package/dist/form/users.d.ts +12 -2
  42. package/dist/form/users.js +3 -1
  43. package/dist/list/actions.cjs.js +152 -0
  44. package/dist/list/actions.d.ts +30 -2
  45. package/dist/list/actions.js +3 -1
  46. package/dist/list/affiliations.cjs.js +152 -0
  47. package/dist/list/affiliations.d.ts +27 -2
  48. package/dist/list/affiliations.js +3 -1
  49. package/dist/list/apps.cjs.js +152 -0
  50. package/dist/list/apps.d.ts +39 -2
  51. package/dist/list/apps.js +3 -1
  52. package/dist/list/disciplines.cjs.js +151 -0
  53. package/dist/list/disciplines.d.ts +21 -2
  54. package/dist/list/disciplines.js +3 -1
  55. package/dist/list/events.cjs.js +205 -0
  56. package/dist/list/events.d.ts +105 -2
  57. package/dist/list/events.js +3 -1
  58. package/dist/list/fellowships.cjs.js +168 -0
  59. package/dist/list/fellowships.d.ts +57 -2
  60. package/dist/list/fellowships.js +3 -1
  61. package/dist/list/files.cjs.js +151 -0
  62. package/dist/list/files.d.ts +34 -2
  63. package/dist/list/files.js +3 -1
  64. package/dist/list/mailing.cjs.js +151 -0
  65. package/dist/list/mailing.d.ts +27 -2
  66. package/dist/list/mailing.js +3 -1
  67. package/dist/list/news.cjs.js +154 -0
  68. package/dist/list/news.d.ts +60 -2
  69. package/dist/list/news.js +3 -1
  70. package/dist/list/people.cjs.js +195 -0
  71. package/dist/list/people.d.ts +35 -2
  72. package/dist/list/people.js +3 -1
  73. package/dist/list/projects.cjs.js +154 -0
  74. package/dist/list/projects.d.ts +45 -2
  75. package/dist/list/projects.js +3 -1
  76. package/dist/list/publications.cjs.js +171 -0
  77. package/dist/list/publications.d.ts +53 -2
  78. package/dist/list/publications.js +3 -1
  79. package/dist/list/tags.cjs.js +152 -0
  80. package/dist/list/tags.d.ts +21 -2
  81. package/dist/list/tags.js +3 -1
  82. package/dist/list/users.cjs.js +195 -0
  83. package/dist/list/users.d.ts +21 -2
  84. package/dist/list/users.js +3 -1
  85. package/index.js +30 -0
  86. package/package.json +67 -32
@@ -1,2 +1,48 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { Form } from "../../index"
2
+
3
+ // Inline type definitions
4
+ export interface Fellowships {
5
+ action?: string
6
+ affiliations?: Affiliations[] // AKA members behind the fellowships
7
+ applicationStart?: Date
8
+ disciplines?: Disciplines[] // 3 - Server & Client //Inside=> Presentation
9
+ fellowshipStart?: Date
10
+ contact?: string
11
+ description: string
12
+ subtitle: string
13
+ fellowshipDetails: FellowshipDetails
14
+ fellows?: RelatedPeople[]
15
+ url?: URL
16
+ applicationStop?: Date
17
+ fellowshipStop?: Date
18
+ image?: Image
19
+ publicationDate?: Date
20
+ summary?: string
21
+ files?: Files[]
22
+ fellowshipType: [FellowshipType]
23
+ gallery?: Image[]
24
+ name: string
25
+ video?: Video[]
26
+ status: FellowshipStatus
27
+ }
28
+
29
+ export enum FellowshipType {
30
+ ShortStay = "SHORT_STAY",
31
+ LongStay = "LONG_STAY",
32
+ InGroup = "IN_GROUP",
33
+ }
34
+
35
+ export enum FellowshipStatus {
36
+ Planned = "PLANNED",
37
+ Ongoing = "ONGOING",
38
+ Finished = "FINISHED",
39
+ Cancelled = "CANCELLED",
40
+ }
41
+
42
+ export interface FormModule {
43
+ _defaults: Record<string, any>
44
+ schema: Record<string, Form>
45
+ }
46
+
47
+ declare const data: FormModule
48
+ export default data
@@ -1319,4 +1319,6 @@ const data = {
1319
1319
  }
1320
1320
  };
1321
1321
 
1322
- export default deepFreeze(data);
1322
+ var fellowships = deepFreeze(data);
1323
+
1324
+ export { fellowships as default };
@@ -0,0 +1,49 @@
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
+ "file": ""
20
+ },
21
+ "schema": {
22
+ "name": {
23
+ "label": "name",
24
+ "component": "TextField",
25
+ "type": "PRIMITIVE",
26
+ "rules": {
27
+ "required": true,
28
+ "min": 5,
29
+ "max": 200
30
+ },
31
+ "meta": "name"
32
+ },
33
+ "file": {
34
+ "label": "file",
35
+ "component": "TextField",
36
+ "type": "PRIMITIVE",
37
+ "rules": {
38
+ "required": true,
39
+ "min": 5,
40
+ "max": 200
41
+ },
42
+ "meta": "file"
43
+ }
44
+ }
45
+ };
46
+
47
+ var files = deepFreeze(data);
48
+
49
+ module.exports = files;
@@ -1,2 +1,25 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { Form } from "../../index"
2
+
3
+ // Inline type definitions
4
+ export interface Files {
5
+ name: string
6
+ url: URL
7
+ size: number
8
+ fileType: string
9
+ hash: string
10
+ path: string
11
+ file: string
12
+ image?: Image
13
+ thumb: URL
14
+ createdAt: Date
15
+ updatedAt: Date
16
+ id: string
17
+ }
18
+
19
+ export interface FormModule {
20
+ _defaults: Record<string, any>
21
+ schema: Record<string, Form>
22
+ }
23
+
24
+ declare const data: FormModule
25
+ export default data
@@ -42,4 +42,6 @@ const data = {
42
42
  }
43
43
  };
44
44
 
45
- export default deepFreeze(data);
45
+ var files = deepFreeze(data);
46
+
47
+ export { files as default };
@@ -0,0 +1,62 @@
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
+ "content": "",
20
+ "date": ""
21
+ },
22
+ "schema": {
23
+ "name": {
24
+ "label": "name",
25
+ "component": "TextField",
26
+ "type": "PRIMITIVE",
27
+ "rules": {
28
+ "required": true,
29
+ "min": 5,
30
+ "max": 200
31
+ },
32
+ "meta": "name"
33
+ },
34
+ "content": {
35
+ "label": "content",
36
+ "component": "TextField",
37
+ "type": "PRIMITIVE",
38
+ "rules": {
39
+ "required": true,
40
+ "min": 5,
41
+ "max": 200
42
+ },
43
+ "meta": "content"
44
+ },
45
+ "date": {
46
+ "label": "date",
47
+ "component": "TextField",
48
+ "description": "The date when the mailing will be sent",
49
+ "type": "PRIMITIVE",
50
+ "rules": {
51
+ "required": true,
52
+ "min": 5,
53
+ "max": 200
54
+ },
55
+ "meta": "date"
56
+ }
57
+ }
58
+ };
59
+
60
+ var mailing = deepFreeze(data);
61
+
62
+ module.exports = mailing;
@@ -1,2 +1,18 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { Form } from "../../index"
2
+
3
+ // Inline type definitions
4
+ export interface Mailing {
5
+ name: string
6
+ content?: string
7
+ createdAt: string
8
+ updatedAt: string
9
+ date: Date
10
+ }
11
+
12
+ export interface FormModule {
13
+ _defaults: Record<string, any>
14
+ schema: Record<string, Form>
15
+ }
16
+
17
+ declare const data: FormModule
18
+ export default data
@@ -55,4 +55,6 @@ const data = {
55
55
  }
56
56
  };
57
57
 
58
- export default deepFreeze(data);
58
+ var mailing = deepFreeze(data);
59
+
60
+ export { mailing as default };
@@ -0,0 +1,271 @@
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
+ "summary": {
23
+ "en": "",
24
+ "fr": ""
25
+ },
26
+ "subtitle": {
27
+ "en": "",
28
+ "fr": ""
29
+ },
30
+ "description": {
31
+ "en": "",
32
+ "fr": ""
33
+ },
34
+ "image": "",
35
+ "color": "",
36
+ "url": "",
37
+ "files": "",
38
+ "gallery": "",
39
+ "date": "",
40
+ "featured": "",
41
+ "tags": "",
42
+ "related": {
43
+ "events": "",
44
+ "news": "",
45
+ "people": "",
46
+ "publications": "",
47
+ "projects": "",
48
+ "fellowships": ""
49
+ },
50
+ "category": ""
51
+ },
52
+ "schema": {
53
+ "name": {
54
+ "label": "name",
55
+ "component": "TextField",
56
+ "type": "PRIMITIVE",
57
+ "i18n": true,
58
+ "rules": {
59
+ "required": true,
60
+ "min": 5,
61
+ "max": 200
62
+ },
63
+ "meta": "name"
64
+ },
65
+ "summary": {
66
+ "label": "summary",
67
+ "component": "TextArea",
68
+ "type": "PRIMITIVE",
69
+ "i18n": true,
70
+ "rules": {
71
+ "required": true,
72
+ "min": 5,
73
+ "max": 200
74
+ },
75
+ "meta": "summary"
76
+ },
77
+ "subtitle": {
78
+ "label": "subtitle",
79
+ "component": "TextField",
80
+ "type": "PRIMITIVE",
81
+ "i18n": true,
82
+ "rules": {
83
+ "required": true,
84
+ "min": 5,
85
+ "max": 200
86
+ },
87
+ "meta": "subtitle"
88
+ },
89
+ "description": {
90
+ "label": "description",
91
+ "component": "TextArea",
92
+ "i18n": true,
93
+ "type": "PRIMITIVE",
94
+ "rules": {
95
+ "required": true,
96
+ "min": 5,
97
+ "max": 200
98
+ },
99
+ "meta": "description"
100
+ },
101
+ "image": {
102
+ "label": "image",
103
+ "component": "ImagePicker",
104
+ "type": "DOCUMENT",
105
+ "rules": {
106
+ "required": true
107
+ },
108
+ "meta": "image",
109
+ "default": ""
110
+ },
111
+ "color": {
112
+ "label": "color",
113
+ "component": "ColorPicker",
114
+ "type": "PRIMITIVE",
115
+ "rules": {
116
+ "required": true,
117
+ "color": true
118
+ },
119
+ "meta": "color"
120
+ },
121
+ "url": {
122
+ "label": "url",
123
+ "component": "TextField",
124
+ "type": "PRIMITIVE",
125
+ "rules": {
126
+ "required": true,
127
+ "url": true
128
+ },
129
+ "meta": "url"
130
+ },
131
+ "files": {
132
+ "label": "files",
133
+ "component": "FilePicker",
134
+ "type": "DOCUMENT",
135
+ "rules": {
136
+ "required": true
137
+ },
138
+ "meta": "files",
139
+ "default": ""
140
+ },
141
+ "gallery": {
142
+ "label": "gallery",
143
+ "component": "ImagePicker",
144
+ "type": "DOCUMENT",
145
+ "multiple": true,
146
+ "meta": "gallery",
147
+ "default": ""
148
+ },
149
+ "date": {
150
+ "label": "date",
151
+ "component": "DatePicker",
152
+ "type": "PRIMITIVE",
153
+ "rules": {
154
+ "required": true,
155
+ "date": true
156
+ },
157
+ "meta": "date"
158
+ },
159
+ "featured": {
160
+ "label": "featured",
161
+ "component": "DatePicker",
162
+ "type": "PRIMITIVE",
163
+ "rules": {
164
+ "required": true,
165
+ "date": true
166
+ },
167
+ "meta": "featured"
168
+ },
169
+ "tags": {
170
+ "label": "tags",
171
+ "component": "TagPicker",
172
+ "type": "DOCUMENT",
173
+ "rules": {
174
+ "required": true,
175
+ "min": 1
176
+ },
177
+ "meta": "tags",
178
+ "default": ""
179
+ },
180
+ "related": {
181
+ "label": "related",
182
+ "component": "ObjectContainerPanel",
183
+ "type": "OBJECT",
184
+ "rules": {
185
+ "required": true,
186
+ "min": 5,
187
+ "max": 200
188
+ },
189
+ "meta": "related",
190
+ "items": {
191
+ "events": {
192
+ "label": "relatedEvent",
193
+ "component": "DocumentPicker",
194
+ "type": "DOCUMENT",
195
+ "meta": "event",
196
+ "default": ""
197
+ },
198
+ "news": {
199
+ "label": "relatedNews",
200
+ "component": "DocumentPicker",
201
+ "type": "DOCUMENT",
202
+ "meta": "news",
203
+ "default": ""
204
+ },
205
+ "people": {
206
+ "label": "relatedPeople",
207
+ "component": "DocumentPicker",
208
+ "type": "DOCUMENT",
209
+ "meta": "people",
210
+ "default": ""
211
+ },
212
+ "publications": {
213
+ "label": "relatedPublication",
214
+ "component": "DocumentPicker",
215
+ "type": "DOCUMENT",
216
+ "meta": "publication",
217
+ "default": ""
218
+ },
219
+ "projects": {
220
+ "label": "relatedProject",
221
+ "component": "DocumentPicker",
222
+ "type": "DOCUMENT",
223
+ "meta": "project",
224
+ "default": ""
225
+ },
226
+ "fellowships": {
227
+ "label": "relatedFellowships",
228
+ "component": "DocumentPicker",
229
+ "type": "DOCUMENT",
230
+ "meta": "fellowship",
231
+ "default": ""
232
+ }
233
+ }
234
+ },
235
+ "category": {
236
+ "label": "category",
237
+ "component": "Select",
238
+ "type": "PRIMITIVE",
239
+ "rules": {
240
+ "required": true
241
+ },
242
+ "items": {
243
+ "PressRelease": "PRESS_RELEASE",
244
+ "Interview": "INTERVIEW",
245
+ "Article": "ARTICLE",
246
+ "Opinion": "OPINION",
247
+ "Report": "REPORT",
248
+ "Blog": "BLOG",
249
+ "LifeAtTheInstitute": "LIFE_AT_THE_INSTITUTE",
250
+ "Event": "EVENT",
251
+ "Announcement": "ANNOUNCEMENT",
252
+ "Job": "JOB",
253
+ "Fellowship": "FELLOWSHIP",
254
+ "Grant": "GRANT",
255
+ "Award": "AWARD",
256
+ "Project": "PROJECT",
257
+ "Tool": "TOOL",
258
+ "Software": "SOFTWARE",
259
+ "Data": "DATA",
260
+ "Publication": "PUBLICATION",
261
+ "Video": "VIDEO",
262
+ "Audio": "AUDIO"
263
+ },
264
+ "meta": "category"
265
+ }
266
+ }
267
+ };
268
+
269
+ var news = deepFreeze(data);
270
+
271
+ module.exports = news;
@@ -1,2 +1,51 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { Form } from "../../index"
2
+
3
+ // Inline type definitions
4
+ export interface News {
5
+ name: string
6
+ authors: [RelatedPeople]
7
+ category?: newsCategories
8
+ description?: string
9
+ summary?: string
10
+ subtitle?: string
11
+ tags?: Tag[]
12
+ image?: Image
13
+ gallery?: Image[]
14
+ color?: string
15
+ url?: URL
16
+ date?: Date
17
+ featured?: Date
18
+ related?: Related[]
19
+ files?: Files
20
+ }
21
+
22
+ export enum newsCategories {
23
+ PressRelease = "PRESS_RELEASE",
24
+ Interview = "INTERVIEW",
25
+ Article = "ARTICLE",
26
+ Opinion = "OPINION",
27
+ Report = "REPORT",
28
+ Blog = "BLOG",
29
+ LifeAtTheInstitute = "LIFE_AT_THE_INSTITUTE",
30
+ Event = "EVENT",
31
+ Announcement = "ANNOUNCEMENT",
32
+ Job = "JOB",
33
+ Fellowship = "FELLOWSHIP",
34
+ Grant = "GRANT",
35
+ Award = "AWARD",
36
+ Project = "PROJECT",
37
+ Tool = "TOOL",
38
+ Software = "SOFTWARE",
39
+ Data = "DATA",
40
+ Publication = "PUBLICATION",
41
+ Video = "VIDEO",
42
+ Audio = "AUDIO",
43
+ }
44
+
45
+ export interface FormModule {
46
+ _defaults: Record<string, any>
47
+ schema: Record<string, Form>
48
+ }
49
+
50
+ declare const data: FormModule
51
+ export default data
package/dist/form/news.js CHANGED
@@ -264,4 +264,6 @@ const data = {
264
264
  }
265
265
  };
266
266
 
267
- export default deepFreeze(data);
267
+ var news = deepFreeze(data);
268
+
269
+ export { news as default };