@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,57 @@
1
- declare const _default: any;
2
- export default _default;
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
@@ -161,4 +161,6 @@ const data = {
161
161
  ]
162
162
  };
163
163
 
164
- export default deepFreeze(data);
164
+ var fellowships = deepFreeze(data);
165
+
166
+ export { fellowships as default };
@@ -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;
@@ -1,2 +1,34 @@
1
- declare const _default: any;
2
- export default _default;
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
@@ -144,4 +144,6 @@ const data = {
144
144
  ]
145
145
  };
146
146
 
147
- export default deepFreeze(data);
147
+ var files = deepFreeze(data);
148
+
149
+ export { files as default };
@@ -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;
@@ -1,2 +1,27 @@
1
- declare const _default: any;
2
- export default _default;
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
@@ -144,4 +144,6 @@ const data = {
144
144
  ]
145
145
  };
146
146
 
147
- export default deepFreeze(data);
147
+ var mailing = deepFreeze(data);
148
+
149
+ export { mailing 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
+ "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;
@@ -1,2 +1,60 @@
1
- declare const _default: any;
2
- export default _default;
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
package/dist/list/news.js CHANGED
@@ -147,4 +147,6 @@ const data = {
147
147
  ]
148
148
  };
149
149
 
150
- export default deepFreeze(data);
150
+ var news = deepFreeze(data);
151
+
152
+ export { news as default };