@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.
- package/dist/form/actions.cjs.js +102 -0
- package/dist/form/actions.d.ts +21 -2
- package/dist/form/actions.js +3 -1
- package/dist/form/affiliations.cjs.js +197 -0
- package/dist/form/affiliations.d.ts +18 -2
- package/dist/form/affiliations.js +3 -1
- package/dist/form/apps.cjs.js +151 -0
- package/dist/form/apps.d.ts +30 -2
- package/dist/form/apps.js +3 -1
- package/dist/form/disciplines.cjs.js +49 -0
- package/dist/form/disciplines.d.ts +12 -2
- package/dist/form/disciplines.js +3 -1
- package/dist/form/events.cjs.js +855 -0
- package/dist/form/events.d.ts +96 -2
- package/dist/form/events.js +3 -1
- package/dist/form/fellowships.cjs.js +1326 -0
- package/dist/form/fellowships.d.ts +48 -2
- package/dist/form/fellowships.js +3 -1
- package/dist/form/files.cjs.js +49 -0
- package/dist/form/files.d.ts +25 -2
- package/dist/form/files.js +3 -1
- package/dist/form/mailing.cjs.js +62 -0
- package/dist/form/mailing.d.ts +18 -2
- package/dist/form/mailing.js +3 -1
- package/dist/form/news.cjs.js +271 -0
- package/dist/form/news.d.ts +51 -2
- package/dist/form/news.js +3 -1
- package/dist/form/people.cjs.js +677 -0
- package/dist/form/people.d.ts +26 -2
- package/dist/form/people.js +3 -1
- package/dist/form/projects.cjs.js +357 -0
- package/dist/form/projects.d.ts +36 -2
- package/dist/form/projects.js +3 -1
- package/dist/form/publications.cjs.js +383 -0
- package/dist/form/publications.d.ts +44 -2
- package/dist/form/publications.js +3 -1
- package/dist/form/tags.cjs.js +57 -0
- package/dist/form/tags.d.ts +12 -2
- package/dist/form/tags.js +3 -1
- package/dist/form/users.cjs.js +595 -0
- package/dist/form/users.d.ts +12 -2
- package/dist/form/users.js +3 -1
- package/dist/list/actions.cjs.js +152 -0
- package/dist/list/actions.d.ts +30 -2
- package/dist/list/actions.js +3 -1
- package/dist/list/affiliations.cjs.js +152 -0
- package/dist/list/affiliations.d.ts +27 -2
- package/dist/list/affiliations.js +3 -1
- package/dist/list/apps.cjs.js +152 -0
- package/dist/list/apps.d.ts +39 -2
- package/dist/list/apps.js +3 -1
- package/dist/list/disciplines.cjs.js +151 -0
- package/dist/list/disciplines.d.ts +21 -2
- package/dist/list/disciplines.js +3 -1
- package/dist/list/events.cjs.js +205 -0
- package/dist/list/events.d.ts +105 -2
- package/dist/list/events.js +3 -1
- package/dist/list/fellowships.cjs.js +168 -0
- package/dist/list/fellowships.d.ts +57 -2
- package/dist/list/fellowships.js +3 -1
- package/dist/list/files.cjs.js +151 -0
- package/dist/list/files.d.ts +34 -2
- package/dist/list/files.js +3 -1
- package/dist/list/mailing.cjs.js +151 -0
- package/dist/list/mailing.d.ts +27 -2
- package/dist/list/mailing.js +3 -1
- package/dist/list/news.cjs.js +154 -0
- package/dist/list/news.d.ts +60 -2
- package/dist/list/news.js +3 -1
- package/dist/list/people.cjs.js +195 -0
- package/dist/list/people.d.ts +35 -2
- package/dist/list/people.js +3 -1
- package/dist/list/projects.cjs.js +154 -0
- package/dist/list/projects.d.ts +45 -2
- package/dist/list/projects.js +3 -1
- package/dist/list/publications.cjs.js +171 -0
- package/dist/list/publications.d.ts +53 -2
- package/dist/list/publications.js +3 -1
- package/dist/list/tags.cjs.js +152 -0
- package/dist/list/tags.d.ts +21 -2
- package/dist/list/tags.js +3 -1
- package/dist/list/users.cjs.js +195 -0
- package/dist/list/users.d.ts +21 -2
- package/dist/list/users.js +3 -1
- package/index.js +30 -0
- package/package.json +67 -32
|
@@ -0,0 +1,151 @@
|
|
|
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
|
+
"tiles": {
|
|
77
|
+
"name": "tiles",
|
|
78
|
+
"icon": "view-quilt"
|
|
79
|
+
},
|
|
80
|
+
"grid": {
|
|
81
|
+
"name": "grid",
|
|
82
|
+
"icon": "view-day"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"sort": {
|
|
86
|
+
"nameasc": {
|
|
87
|
+
"icon": "sort-alphabetical-ascending",
|
|
88
|
+
"text": "by-name-from-a-to-z",
|
|
89
|
+
"value": [
|
|
90
|
+
"article_title",
|
|
91
|
+
1
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"namedesc": {
|
|
95
|
+
"icon": "sort-alphabetical-descending",
|
|
96
|
+
"text": "by-name-from-z-to-a",
|
|
97
|
+
"value": [
|
|
98
|
+
"article_title",
|
|
99
|
+
-1
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"dateasc": {
|
|
103
|
+
"icon": "sort-calendar-descending",
|
|
104
|
+
"text": "by-date-most-recent-first",
|
|
105
|
+
"value": [
|
|
106
|
+
"date",
|
|
107
|
+
-1
|
|
108
|
+
],
|
|
109
|
+
"default": true
|
|
110
|
+
},
|
|
111
|
+
"datedesc": {
|
|
112
|
+
"icon": "sort-calendar-ascending",
|
|
113
|
+
"text": "by-date-oldest-first",
|
|
114
|
+
"value": [
|
|
115
|
+
"date",
|
|
116
|
+
1
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"view": {
|
|
121
|
+
"default": true,
|
|
122
|
+
"name": "dense",
|
|
123
|
+
"icon": "land-rows-horizontal",
|
|
124
|
+
"perPage": {
|
|
125
|
+
"options": [
|
|
126
|
+
20,
|
|
127
|
+
40,
|
|
128
|
+
60,
|
|
129
|
+
80,
|
|
130
|
+
100
|
|
131
|
+
],
|
|
132
|
+
"default": 20
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"filters": {
|
|
136
|
+
"year": {
|
|
137
|
+
"type": "Select"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"limit": 20,
|
|
141
|
+
"sortBy": [
|
|
142
|
+
"date"
|
|
143
|
+
],
|
|
144
|
+
"sortDesc": [
|
|
145
|
+
-1
|
|
146
|
+
]
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
var disciplines = deepFreeze(data);
|
|
150
|
+
|
|
151
|
+
module.exports = disciplines;
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Sort, Views } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
// Type definitions not found
|
|
5
|
+
|
|
6
|
+
export interface ListModule {
|
|
7
|
+
items: Disciplines[]
|
|
8
|
+
itemsPerPage?: number
|
|
9
|
+
itemsPerPageArray?: number[]
|
|
10
|
+
filtersCount: number
|
|
11
|
+
views?: Record<string, Views>
|
|
12
|
+
sort: Record<string, Sort>
|
|
13
|
+
view?: Views | string
|
|
14
|
+
filters: Record<string, any>
|
|
15
|
+
limit?: number
|
|
16
|
+
sortBy?: string[]
|
|
17
|
+
sortDesc?: number[]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const data: ListModule
|
|
21
|
+
export default data
|
package/dist/list/disciplines.js
CHANGED
|
@@ -0,0 +1,205 @@
|
|
|
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
|
+
"start",
|
|
99
|
+
-1
|
|
100
|
+
],
|
|
101
|
+
"default": true
|
|
102
|
+
},
|
|
103
|
+
"datedesc": {
|
|
104
|
+
"icon": "sort-calendar-ascending",
|
|
105
|
+
"text": "by-date-oldest-first",
|
|
106
|
+
"value": [
|
|
107
|
+
"start",
|
|
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
|
+
"category": {
|
|
129
|
+
"type": "Select",
|
|
130
|
+
"items": {
|
|
131
|
+
"Seminar": "SEMINAR",
|
|
132
|
+
"Workshop": "WORKSHOP",
|
|
133
|
+
"Conference": "CONFERENCE",
|
|
134
|
+
"ConferenceCycle": "CONFERENCE_CYCLE",
|
|
135
|
+
"Lecture": "LECTURE",
|
|
136
|
+
"Symposium": "SYMPOSIUM",
|
|
137
|
+
"Meeting": "MEETING",
|
|
138
|
+
"Colloquium": "COLLOQUIUM",
|
|
139
|
+
"Forum": "FORUM",
|
|
140
|
+
"RoundTable": "ROUND_TABLE",
|
|
141
|
+
"Panel": "PANEL",
|
|
142
|
+
"Webinar": "WEBINAR",
|
|
143
|
+
"FellowPresentation": "FELLOW_PRESENTATION",
|
|
144
|
+
"Other": "OTHER"
|
|
145
|
+
},
|
|
146
|
+
"multiple": true
|
|
147
|
+
},
|
|
148
|
+
"status": {
|
|
149
|
+
"type": "Select",
|
|
150
|
+
"items": {
|
|
151
|
+
"Open": "OPEN",
|
|
152
|
+
"Full": "FULL",
|
|
153
|
+
"Closed": "CLOSED"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"organiserCategory": {
|
|
157
|
+
"type": "Select",
|
|
158
|
+
"items": {
|
|
159
|
+
"Ias": "IAS",
|
|
160
|
+
"Member": "MEMBER",
|
|
161
|
+
"Fellow": "FELLOW",
|
|
162
|
+
"External": "EXTERNAL"
|
|
163
|
+
},
|
|
164
|
+
"multiple": true
|
|
165
|
+
},
|
|
166
|
+
"tags": {
|
|
167
|
+
"type": "AutoComplete",
|
|
168
|
+
"items": [],
|
|
169
|
+
"multiple": true
|
|
170
|
+
},
|
|
171
|
+
"disciplines": {
|
|
172
|
+
"type": "AutoComplete",
|
|
173
|
+
"items": [],
|
|
174
|
+
"multiple": true
|
|
175
|
+
},
|
|
176
|
+
"fellowship": {
|
|
177
|
+
"type": "AutoComplete",
|
|
178
|
+
"items": [],
|
|
179
|
+
"multiple": true
|
|
180
|
+
},
|
|
181
|
+
"online": {
|
|
182
|
+
"type": "Checkbox",
|
|
183
|
+
"items": false
|
|
184
|
+
},
|
|
185
|
+
"outside": {
|
|
186
|
+
"type": "Checkbox",
|
|
187
|
+
"items": false
|
|
188
|
+
},
|
|
189
|
+
"past": {
|
|
190
|
+
"type": "Checkbox",
|
|
191
|
+
"items": false
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"limit": 20,
|
|
195
|
+
"sortBy": [
|
|
196
|
+
"start"
|
|
197
|
+
],
|
|
198
|
+
"sortDesc": [
|
|
199
|
+
-1
|
|
200
|
+
]
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
var events = deepFreeze(data);
|
|
204
|
+
|
|
205
|
+
module.exports = events;
|
package/dist/list/events.d.ts
CHANGED
|
@@ -1,2 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Sort, Views } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
export interface Events {
|
|
5
|
+
affiliations?: Affiliations[] // 3 - Server & Client - //Bottom left Document
|
|
6
|
+
appId: string // 0 - Server & Client -
|
|
7
|
+
availableSlots: number // 0 - Server & Client - ? => Claire
|
|
8
|
+
bookingState: bookingState // 0 - Server & Client -
|
|
9
|
+
category: eventCategories // 0 - Server & Client -
|
|
10
|
+
createdAt?: Date // 0 - Server & Client -
|
|
11
|
+
dateText: string // 0 - Server & Client -
|
|
12
|
+
delay?: number // 0 - Server & Client -
|
|
13
|
+
description: string // 0 - Server & Client -
|
|
14
|
+
details: String // 0 - Server & Client -
|
|
15
|
+
disciplines?: Disciplines[] // 3 - Server & Client //Inside=> Presentation
|
|
16
|
+
discussants?: People[] // 0 - Server & Client -
|
|
17
|
+
files?: Files[] // 3 - Server & Client -
|
|
18
|
+
lang: string[]
|
|
19
|
+
image?: Image // 3 - Server & Client -
|
|
20
|
+
gallery?: Image[]
|
|
21
|
+
name: string // 0 - Server & Client -
|
|
22
|
+
eventSlot?: EventSlot[] //// 3 - Server -
|
|
23
|
+
organizers: People[] | Affiliations[] // 3 - Server & Client -
|
|
24
|
+
outside: boolean // 0 - Server & Client - // Near inscription
|
|
25
|
+
location: Location // 0 - Server & Client -
|
|
26
|
+
organiserType: organiserType // server & client - 0 = IAS, 1 = member, 2 = fellow, 3 = external
|
|
27
|
+
program: String // 0 - Server & Client -
|
|
28
|
+
related: Related
|
|
29
|
+
// slots?: EventSlot[]; //// 3 - Server
|
|
30
|
+
speakers?: People[] // 3 - Server & Client -
|
|
31
|
+
start: string // 0 - Server & Client - A verifier string ? string[]
|
|
32
|
+
state: eventState // 0 - Server & Client -
|
|
33
|
+
stop: string // 0 - Server & Client - A verifier string ? string[]
|
|
34
|
+
stream?: string // 0 - Server & Client -
|
|
35
|
+
subtitle?: string // 0 - Server &
|
|
36
|
+
summary?: string // 0 - Server & Client -
|
|
37
|
+
tags?: Tag[] // 3 - Server & Client - Inside=> Presentation
|
|
38
|
+
totalSlots: number // 0 - Server & Client
|
|
39
|
+
eventType: eventType // 0 : online, 1: physical, 2: hybrid// 0 - Server & Client -
|
|
40
|
+
updatedAt: Date // 0 - Server & Client -
|
|
41
|
+
url?: URL // 0 - Server & Client -
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export enum eventState {
|
|
45
|
+
Draft = "DRAFT",
|
|
46
|
+
Published = "PUBLISHED",
|
|
47
|
+
Removed = "REMOVED",
|
|
48
|
+
Finished = "FINISHED",
|
|
49
|
+
Cancelled = "CANCELLED",
|
|
50
|
+
Postponed = "POSTPONED",
|
|
51
|
+
Rescheduled = "RESCHEDULED",
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export enum bookingState {
|
|
55
|
+
Open = "OPEN",
|
|
56
|
+
Full = "FULL",
|
|
57
|
+
Closed = "CLOSED",
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export enum eventType {
|
|
61
|
+
Online = "ONLINE",
|
|
62
|
+
Physical = "PHYSICAL",
|
|
63
|
+
Hybrid = "HYBRID",
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export enum organiserType {
|
|
67
|
+
Ias = "IAS",
|
|
68
|
+
Member = "MEMBER",
|
|
69
|
+
Fellow = "FELLOW",
|
|
70
|
+
External = "EXTERNAL",
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export enum eventCategories {
|
|
74
|
+
Seminar = "SEMINAR",
|
|
75
|
+
Workshop = "WORKSHOP",
|
|
76
|
+
Conference = "CONFERENCE",
|
|
77
|
+
ConferenceCycle = "CONFERENCE_CYCLE",
|
|
78
|
+
Lecture = "LECTURE",
|
|
79
|
+
Symposium = "SYMPOSIUM",
|
|
80
|
+
Meeting = "MEETING",
|
|
81
|
+
Colloquium = "COLLOQUIUM",
|
|
82
|
+
Forum = "FORUM",
|
|
83
|
+
RoundTable = "ROUND_TABLE",
|
|
84
|
+
Panel = "PANEL",
|
|
85
|
+
Webinar = "WEBINAR",
|
|
86
|
+
FellowPresentation = "FELLOW_PRESENTATION",
|
|
87
|
+
Other = "OTHER",
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface ListModule {
|
|
91
|
+
items: Events[]
|
|
92
|
+
itemsPerPage?: number
|
|
93
|
+
itemsPerPageArray?: number[]
|
|
94
|
+
filtersCount: number
|
|
95
|
+
views?: Record<string, Views>
|
|
96
|
+
sort: Record<string, Sort>
|
|
97
|
+
view?: Views | string
|
|
98
|
+
filters: Record<string, any>
|
|
99
|
+
limit?: number
|
|
100
|
+
sortBy?: string[]
|
|
101
|
+
sortDesc?: number[]
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare const data: ListModule
|
|
105
|
+
export default data
|
package/dist/list/events.js
CHANGED
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
"applicationStart",
|
|
99
|
+
-1
|
|
100
|
+
],
|
|
101
|
+
"default": true
|
|
102
|
+
},
|
|
103
|
+
"datedesc": {
|
|
104
|
+
"icon": "sort-calendar-ascending",
|
|
105
|
+
"text": "by-date-oldest-first",
|
|
106
|
+
"value": [
|
|
107
|
+
"applicationStart",
|
|
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
|
+
"multiple": true,
|
|
131
|
+
"items": {
|
|
132
|
+
"Planned": "PLANNED",
|
|
133
|
+
"Ongoing": "ONGOING",
|
|
134
|
+
"Finished": "FINISHED",
|
|
135
|
+
"Cancelled": "CANCELLED"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"fellowshipType": {
|
|
139
|
+
"type": "Select",
|
|
140
|
+
"multiple": true,
|
|
141
|
+
"items": {
|
|
142
|
+
"ShortStay": "SHORT_STAY",
|
|
143
|
+
"LongStay": "LONG_STAY",
|
|
144
|
+
"InGroup": "IN_GROUP"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"affiliation": {
|
|
148
|
+
"type": "Select",
|
|
149
|
+
"multiple": true,
|
|
150
|
+
"items": []
|
|
151
|
+
},
|
|
152
|
+
"disciplines": {
|
|
153
|
+
"type": "Select",
|
|
154
|
+
"multiple": true
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"limit": 20,
|
|
158
|
+
"sortBy": [
|
|
159
|
+
"applicationStart"
|
|
160
|
+
],
|
|
161
|
+
"sortDesc": [
|
|
162
|
+
-1
|
|
163
|
+
]
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
var fellowships = deepFreeze(data);
|
|
167
|
+
|
|
168
|
+
module.exports = fellowships;
|