@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
@@ -0,0 +1,195 @@
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
+ "items": [
18
+ {},
19
+ {},
20
+ {},
21
+ {},
22
+ {},
23
+ {},
24
+ {},
25
+ {},
26
+ {},
27
+ {},
28
+ {},
29
+ {},
30
+ {},
31
+ {},
32
+ {},
33
+ {},
34
+ {},
35
+ {},
36
+ {},
37
+ {}
38
+ ],
39
+ "itemsPerPage": 20,
40
+ "itemsPerPageArray": [
41
+ 20,
42
+ 40,
43
+ 60,
44
+ 80,
45
+ 100
46
+ ],
47
+ "filtersCount": 0,
48
+ "views": {
49
+ "rows": {
50
+ "name": "rows",
51
+ "icon": "view-list",
52
+ "perPage": {
53
+ "options": [
54
+ 9,
55
+ 12,
56
+ 16
57
+ ],
58
+ "default": 9
59
+ }
60
+ },
61
+ "dense": {
62
+ "default": true,
63
+ "name": "dense",
64
+ "icon": "land-rows-horizontal",
65
+ "perPage": {
66
+ "options": [
67
+ 20,
68
+ 40,
69
+ 60,
70
+ 80,
71
+ 100
72
+ ],
73
+ "default": 20
74
+ }
75
+ }
76
+ },
77
+ "sort": {
78
+ "nameasc": {
79
+ "icon": "sort-alphabetical-ascending",
80
+ "text": "by-name-from-a-to-z",
81
+ "value": [
82
+ "lastname",
83
+ 1
84
+ ]
85
+ },
86
+ "namedesc": {
87
+ "icon": "sort-alphabetical-descending",
88
+ "text": "by-name-from-z-to-a",
89
+ "value": [
90
+ "lastname",
91
+ -1
92
+ ]
93
+ },
94
+ "vintagedesc": {
95
+ "icon": "sort-calendar-descending",
96
+ "text": "by-vintage-from-old-to-recent",
97
+ "value": [
98
+ "groups.vintage.year",
99
+ 1
100
+ ]
101
+ },
102
+ "vintageasc": {
103
+ "icon": "sort-calendar-descending",
104
+ "text": "by-vintage-from-recent-to-old",
105
+ "value": [
106
+ "groups.vintage.year",
107
+ -1
108
+ ],
109
+ "default": true
110
+ }
111
+ },
112
+ "view": {
113
+ "default": true,
114
+ "name": "dense",
115
+ "icon": "land-rows-horizontal",
116
+ "perPage": {
117
+ "options": [
118
+ 20,
119
+ 40,
120
+ 60,
121
+ 80,
122
+ 100
123
+ ],
124
+ "default": 20
125
+ }
126
+ },
127
+ "filters": {
128
+ "groups": {
129
+ "type": "Select"
130
+ },
131
+ "vintage": {
132
+ "type": "Select",
133
+ "show": {
134
+ "default": false,
135
+ "switchIf": [
136
+ {
137
+ "groups": "fellows"
138
+ }
139
+ ],
140
+ "disjonctive": false
141
+ },
142
+ "multiple": true
143
+ },
144
+ "programs": {
145
+ "type": "Select",
146
+ "show": {
147
+ "default": false,
148
+ "switchIf": [
149
+ {
150
+ "groups": "fellows"
151
+ }
152
+ ],
153
+ "disjonctive": false
154
+ },
155
+ "multiple": true
156
+ },
157
+ "disciplines": {
158
+ "type": "Select",
159
+ "show": {
160
+ "default": false,
161
+ "switchIf": [
162
+ {
163
+ "groups": "fellows"
164
+ }
165
+ ],
166
+ "disjonctive": false
167
+ },
168
+ "multiple": true
169
+ },
170
+ "member": {
171
+ "type": "Select",
172
+ "show": {
173
+ "default": false,
174
+ "switchIf": [
175
+ {
176
+ "groups": "fellows"
177
+ }
178
+ ],
179
+ "disjonctive": false
180
+ },
181
+ "multiple": true
182
+ }
183
+ },
184
+ "limit": 20,
185
+ "sortBy": [
186
+ "groups.vintage.year"
187
+ ],
188
+ "sortDesc": [
189
+ -1
190
+ ]
191
+ };
192
+
193
+ var people = deepFreeze(data);
194
+
195
+ module.exports = people;
@@ -1,2 +1,35 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { Sort, Views } from "../../index"
2
+
3
+ // Inline type definitions
4
+ export interface People {
5
+ name: string
6
+ firstname: string
7
+ lastname: string
8
+ affiliations?: [{ affiliation: Affiliations; positions: [Position] }]
9
+ image?: Image
10
+ socials?: Socials
11
+ biography?: string
12
+ consent: Consent
13
+ groups: Groups
14
+ lang: string
15
+ disciplines?: Disciplines[]
16
+ related?: Related[]
17
+ video?: Video[]
18
+ }
19
+
20
+ export interface ListModule {
21
+ items: People[]
22
+ itemsPerPage?: number
23
+ itemsPerPageArray?: number[]
24
+ filtersCount: number
25
+ views?: Record<string, Views>
26
+ sort: Record<string, Sort>
27
+ view?: Views | string
28
+ filters: Record<string, any>
29
+ limit?: number
30
+ sortBy?: string[]
31
+ sortDesc?: number[]
32
+ }
33
+
34
+ declare const data: ListModule
35
+ export default data
@@ -188,4 +188,6 @@ const data = {
188
188
  ]
189
189
  };
190
190
 
191
- export default deepFreeze(data);
191
+ var people = deepFreeze(data);
192
+
193
+ export { people as default };
@@ -0,0 +1,154 @@
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
+ "items": [
18
+ {},
19
+ {},
20
+ {},
21
+ {},
22
+ {},
23
+ {},
24
+ {},
25
+ {},
26
+ {},
27
+ {},
28
+ {},
29
+ {},
30
+ {},
31
+ {},
32
+ {},
33
+ {},
34
+ {},
35
+ {},
36
+ {},
37
+ {}
38
+ ],
39
+ "itemsPerPage": 20,
40
+ "itemsPerPageArray": [
41
+ 20,
42
+ 40,
43
+ 60,
44
+ 80,
45
+ 100
46
+ ],
47
+ "filtersCount": 0,
48
+ "views": {
49
+ "rows": {
50
+ "name": "rows",
51
+ "icon": "view-list",
52
+ "perPage": {
53
+ "options": [
54
+ 9,
55
+ 12,
56
+ 16
57
+ ],
58
+ "default": 9
59
+ }
60
+ },
61
+ "dense": {
62
+ "default": true,
63
+ "name": "dense",
64
+ "icon": "land-rows-horizontal",
65
+ "perPage": {
66
+ "options": [
67
+ 20,
68
+ 40,
69
+ 60,
70
+ 80,
71
+ 100
72
+ ],
73
+ "default": 20
74
+ }
75
+ }
76
+ },
77
+ "sort": {
78
+ "nameasc": {
79
+ "icon": "sort-alphabetical-ascending",
80
+ "text": "by-name-from-a-to-z",
81
+ "value": [
82
+ "title",
83
+ 1
84
+ ]
85
+ },
86
+ "namedesc": {
87
+ "icon": "sort-alphabetical-descending",
88
+ "text": "by-name-from-z-to-a",
89
+ "value": [
90
+ "title",
91
+ -1
92
+ ]
93
+ },
94
+ "dateasc": {
95
+ "icon": "sort-calendar-descending",
96
+ "text": "by-date-most-recent-first",
97
+ "value": [
98
+ "date",
99
+ -1
100
+ ],
101
+ "default": true
102
+ },
103
+ "datedesc": {
104
+ "icon": "sort-calendar-ascending",
105
+ "text": "by-date-oldest-first",
106
+ "value": [
107
+ "date",
108
+ 1
109
+ ]
110
+ }
111
+ },
112
+ "view": {
113
+ "default": true,
114
+ "name": "dense",
115
+ "icon": "land-rows-horizontal",
116
+ "perPage": {
117
+ "options": [
118
+ 20,
119
+ 40,
120
+ 60,
121
+ 80,
122
+ 100
123
+ ],
124
+ "default": 20
125
+ }
126
+ },
127
+ "filters": {
128
+ "status": {
129
+ "type": "Select",
130
+ "items": {
131
+ "Planned": "PLANNED",
132
+ "InProgress": "IN_PROGRESS",
133
+ "Finished": "FINISHED",
134
+ "Canceled": "CANCELED"
135
+ }
136
+ },
137
+ "tags": {
138
+ "type": "AutoComplete",
139
+ "items": [],
140
+ "multiple": true
141
+ }
142
+ },
143
+ "limit": 20,
144
+ "sortBy": [
145
+ "date"
146
+ ],
147
+ "sortDesc": [
148
+ -1
149
+ ]
150
+ };
151
+
152
+ var projects = deepFreeze(data);
153
+
154
+ module.exports = projects;
@@ -1,2 +1,45 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { Sort, Views } from "../../index"
2
+
3
+ // Inline type definitions
4
+ export interface Projects {
5
+ name: string
6
+ subtitle?: string
7
+ description?: string
8
+ summary?: string
9
+ url?: URL
10
+ affiliations?: Affiliations[]
11
+ related?: Related[]
12
+ gallery?: Image[]
13
+ image?: Image
14
+ video?: Video
15
+ tags?: Tag[]
16
+ files?: Files[]
17
+ color?: string
18
+ date?: Date
19
+ featured?: Date
20
+ status: projectStatus
21
+ }
22
+
23
+ export enum projectStatus {
24
+ Planned = "PLANNED",
25
+ InProgress = "IN_PROGRESS",
26
+ Finished = "FINISHED",
27
+ Canceled = "CANCELED",
28
+ }
29
+
30
+ export interface ListModule {
31
+ items: Projects[]
32
+ itemsPerPage?: number
33
+ itemsPerPageArray?: number[]
34
+ filtersCount: number
35
+ views?: Record<string, Views>
36
+ sort: Record<string, Sort>
37
+ view?: Views | string
38
+ filters: Record<string, any>
39
+ limit?: number
40
+ sortBy?: string[]
41
+ sortDesc?: number[]
42
+ }
43
+
44
+ declare const data: ListModule
45
+ export default data
@@ -147,4 +147,6 @@ const data = {
147
147
  ]
148
148
  };
149
149
 
150
- export default deepFreeze(data);
150
+ var projects = deepFreeze(data);
151
+
152
+ export { projects as default };
@@ -0,0 +1,171 @@
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
+ "items": [
18
+ {},
19
+ {},
20
+ {},
21
+ {},
22
+ {},
23
+ {},
24
+ {},
25
+ {},
26
+ {},
27
+ {},
28
+ {},
29
+ {},
30
+ {},
31
+ {},
32
+ {},
33
+ {},
34
+ {},
35
+ {},
36
+ {},
37
+ {}
38
+ ],
39
+ "itemsPerPage": 20,
40
+ "itemsPerPageArray": [
41
+ 20,
42
+ 40,
43
+ 60,
44
+ 80,
45
+ 100
46
+ ],
47
+ "filtersCount": 0,
48
+ "views": {
49
+ "rows": {
50
+ "name": "rows",
51
+ "icon": "view-list",
52
+ "perPage": {
53
+ "options": [
54
+ 9,
55
+ 12,
56
+ 16
57
+ ],
58
+ "default": 9
59
+ }
60
+ },
61
+ "dense": {
62
+ "default": true,
63
+ "name": "dense",
64
+ "icon": "land-rows-horizontal",
65
+ "perPage": {
66
+ "options": [
67
+ 20,
68
+ 40,
69
+ 60,
70
+ 80,
71
+ 100
72
+ ],
73
+ "default": 20
74
+ }
75
+ }
76
+ },
77
+ "sort": {
78
+ "nameasc": {
79
+ "icon": "sort-alphabetical-ascending",
80
+ "text": "by-name-from-a-to-z",
81
+ "value": [
82
+ "name",
83
+ 1
84
+ ]
85
+ },
86
+ "namedesc": {
87
+ "icon": "sort-alphabetical-descending",
88
+ "text": "by-name-from-z-to-a",
89
+ "value": [
90
+ "name",
91
+ -1
92
+ ]
93
+ },
94
+ "dateasc": {
95
+ "icon": "sort-calendar-descending",
96
+ "text": "by-date-most-recent-first",
97
+ "value": [
98
+ "date",
99
+ -1
100
+ ],
101
+ "default": true
102
+ },
103
+ "datedesc": {
104
+ "icon": "sort-calendar-ascending",
105
+ "text": "by-date-oldest-first",
106
+ "value": [
107
+ "date",
108
+ 1
109
+ ]
110
+ }
111
+ },
112
+ "view": {
113
+ "default": true,
114
+ "name": "dense",
115
+ "icon": "land-rows-horizontal",
116
+ "perPage": {
117
+ "options": [
118
+ 20,
119
+ 40,
120
+ 60,
121
+ 80,
122
+ 100
123
+ ],
124
+ "default": 20
125
+ }
126
+ },
127
+ "filters": {
128
+ "affiliations": {
129
+ "type": "Select",
130
+ "items": [],
131
+ "multiple": true
132
+ },
133
+ "tags": {
134
+ "type": "Select",
135
+ "multiple": true
136
+ },
137
+ "disciplines": {
138
+ "type": "AutoComplete",
139
+ "items": [],
140
+ "multiple": true
141
+ },
142
+ "type": {
143
+ "type": "Select",
144
+ "items": {
145
+ "Article": "ARTICLE",
146
+ "ConferencePaper": "CONFERENCE_PAPER",
147
+ "Book": "BOOK",
148
+ "BookChapter": "BOOK_CHAPTER",
149
+ "Thesis": "THESIS",
150
+ "Report": "REPORT",
151
+ "Software": "SOFTWARE",
152
+ "Data": "DATA",
153
+ "Video": "VIDEO",
154
+ "Audio": "AUDIO",
155
+ "Podcast": "PODCAST"
156
+ },
157
+ "multiple": true
158
+ }
159
+ },
160
+ "limit": 20,
161
+ "sortBy": [
162
+ "date"
163
+ ],
164
+ "sortDesc": [
165
+ -1
166
+ ]
167
+ };
168
+
169
+ var publications = deepFreeze(data);
170
+
171
+ module.exports = publications;
@@ -1,2 +1,53 @@
1
- declare const _default: any;
2
- export default _default;
1
+ import type { Sort, Views } from "../../index"
2
+
3
+ // Inline type definitions
4
+ export interface Publications {
5
+ name: string
6
+ subtitle?: string
7
+ description?: string
8
+ summary?: string
9
+ url?: URL
10
+ affiliations?: Affiliations[]
11
+ related?: Related[]
12
+ gallery?: Image[]
13
+ image?: Image
14
+ video?: Video
15
+ tags?: Tag[]
16
+ disciplines?: Disciplines[]
17
+ files?: Files[]
18
+ color?: string
19
+ date?: Date
20
+ type: publicationType
21
+ eventCategories: eventCategories
22
+ }
23
+
24
+ export enum publicationType {
25
+ Article = "ARTICLE",
26
+ ConferencePaper = "CONFERENCE_PAPER",
27
+ Book = "BOOK",
28
+ BookChapter = "BOOK_CHAPTER",
29
+ Thesis = "THESIS",
30
+ Report = "REPORT",
31
+ Software = "SOFTWARE",
32
+ Data = "DATA",
33
+ Video = "VIDEO",
34
+ Audio = "AUDIO",
35
+ Podcast = "PODCAST",
36
+ }
37
+
38
+ export interface ListModule {
39
+ items: Publications[]
40
+ itemsPerPage?: number
41
+ itemsPerPageArray?: number[]
42
+ filtersCount: number
43
+ views?: Record<string, Views>
44
+ sort: Record<string, Sort>
45
+ view?: Views | string
46
+ filters: Record<string, any>
47
+ limit?: number
48
+ sortBy?: string[]
49
+ sortDesc?: number[]
50
+ }
51
+
52
+ declare const data: ListModule
53
+ export default data
@@ -164,4 +164,6 @@ const data = {
164
164
  ]
165
165
  };
166
166
 
167
- export default deepFreeze(data);
167
+ var publications = deepFreeze(data);
168
+
169
+ export { publications as default };