@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
|
@@ -1,2 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Sort, Views } 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 ListModule {
|
|
43
|
+
items: Fellowships[]
|
|
44
|
+
itemsPerPage?: number
|
|
45
|
+
itemsPerPageArray?: number[]
|
|
46
|
+
filtersCount: number
|
|
47
|
+
views?: Record<string, Views>
|
|
48
|
+
sort: Record<string, Sort>
|
|
49
|
+
view?: Views | string
|
|
50
|
+
filters: Record<string, any>
|
|
51
|
+
limit?: number
|
|
52
|
+
sortBy?: string[]
|
|
53
|
+
sortDesc?: number[]
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare const data: ListModule
|
|
57
|
+
export default data
|
package/dist/list/fellowships.js
CHANGED
|
@@ -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 files = deepFreeze(data);
|
|
150
|
+
|
|
151
|
+
module.exports = files;
|
package/dist/list/files.d.ts
CHANGED
|
@@ -1,2 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Sort, Views } 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 ListModule {
|
|
20
|
+
items: Files[]
|
|
21
|
+
itemsPerPage?: number
|
|
22
|
+
itemsPerPageArray?: number[]
|
|
23
|
+
filtersCount: number
|
|
24
|
+
views?: Record<string, Views>
|
|
25
|
+
sort: Record<string, Sort>
|
|
26
|
+
view?: Views | string
|
|
27
|
+
filters: Record<string, any>
|
|
28
|
+
limit?: number
|
|
29
|
+
sortBy?: string[]
|
|
30
|
+
sortDesc?: number[]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare const data: ListModule
|
|
34
|
+
export default data
|
package/dist/list/files.js
CHANGED
|
@@ -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 mailing = deepFreeze(data);
|
|
150
|
+
|
|
151
|
+
module.exports = mailing;
|
package/dist/list/mailing.d.ts
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Sort, Views } 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 ListModule {
|
|
13
|
+
items: Mailing[]
|
|
14
|
+
itemsPerPage?: number
|
|
15
|
+
itemsPerPageArray?: number[]
|
|
16
|
+
filtersCount: number
|
|
17
|
+
views?: Record<string, Views>
|
|
18
|
+
sort: Record<string, Sort>
|
|
19
|
+
view?: Views | string
|
|
20
|
+
filters: Record<string, any>
|
|
21
|
+
limit?: number
|
|
22
|
+
sortBy?: string[]
|
|
23
|
+
sortDesc?: number[]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare const data: ListModule
|
|
27
|
+
export default data
|
package/dist/list/mailing.js
CHANGED
|
@@ -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
|
+
"dateasc": {
|
|
79
|
+
"icon": "sort-calendar-descending",
|
|
80
|
+
"text": "by-date-most-recent-first",
|
|
81
|
+
"value": [
|
|
82
|
+
"date",
|
|
83
|
+
-1
|
|
84
|
+
],
|
|
85
|
+
"default": true
|
|
86
|
+
},
|
|
87
|
+
"datedesc": {
|
|
88
|
+
"icon": "sort-calendar-ascending",
|
|
89
|
+
"text": "by-date-oldest-first",
|
|
90
|
+
"value": [
|
|
91
|
+
"date",
|
|
92
|
+
1
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"view": {
|
|
97
|
+
"default": true,
|
|
98
|
+
"name": "dense",
|
|
99
|
+
"icon": "land-rows-horizontal",
|
|
100
|
+
"perPage": {
|
|
101
|
+
"options": [
|
|
102
|
+
20,
|
|
103
|
+
40,
|
|
104
|
+
60,
|
|
105
|
+
80,
|
|
106
|
+
100
|
|
107
|
+
],
|
|
108
|
+
"default": 20
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"filters": {
|
|
112
|
+
"tags": {
|
|
113
|
+
"type": "AutoComplete",
|
|
114
|
+
"multiple": true
|
|
115
|
+
},
|
|
116
|
+
"category": {
|
|
117
|
+
"type": "Select",
|
|
118
|
+
"multiple": true,
|
|
119
|
+
"items": {
|
|
120
|
+
"PressRelease": "PRESS_RELEASE",
|
|
121
|
+
"Interview": "INTERVIEW",
|
|
122
|
+
"Article": "ARTICLE",
|
|
123
|
+
"Opinion": "OPINION",
|
|
124
|
+
"Report": "REPORT",
|
|
125
|
+
"Blog": "BLOG",
|
|
126
|
+
"LifeAtTheInstitute": "LIFE_AT_THE_INSTITUTE",
|
|
127
|
+
"Event": "EVENT",
|
|
128
|
+
"Announcement": "ANNOUNCEMENT",
|
|
129
|
+
"Job": "JOB",
|
|
130
|
+
"Fellowship": "FELLOWSHIP",
|
|
131
|
+
"Grant": "GRANT",
|
|
132
|
+
"Award": "AWARD",
|
|
133
|
+
"Project": "PROJECT",
|
|
134
|
+
"Tool": "TOOL",
|
|
135
|
+
"Software": "SOFTWARE",
|
|
136
|
+
"Data": "DATA",
|
|
137
|
+
"Publication": "PUBLICATION",
|
|
138
|
+
"Video": "VIDEO",
|
|
139
|
+
"Audio": "AUDIO"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"limit": 20,
|
|
144
|
+
"sortBy": [
|
|
145
|
+
"date"
|
|
146
|
+
],
|
|
147
|
+
"sortDesc": [
|
|
148
|
+
-1
|
|
149
|
+
]
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
var news = deepFreeze(data);
|
|
153
|
+
|
|
154
|
+
module.exports = news;
|
package/dist/list/news.d.ts
CHANGED
|
@@ -1,2 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Sort, Views } 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 ListModule {
|
|
46
|
+
items: News[]
|
|
47
|
+
itemsPerPage?: number
|
|
48
|
+
itemsPerPageArray?: number[]
|
|
49
|
+
filtersCount: number
|
|
50
|
+
views?: Record<string, Views>
|
|
51
|
+
sort: Record<string, Sort>
|
|
52
|
+
view?: Views | string
|
|
53
|
+
filters: Record<string, any>
|
|
54
|
+
limit?: number
|
|
55
|
+
sortBy?: string[]
|
|
56
|
+
sortDesc?: number[]
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const data: ListModule
|
|
60
|
+
export default data
|