@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,102 @@
|
|
|
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
|
+
"image": {
|
|
20
|
+
"url": "",
|
|
21
|
+
"licence": ""
|
|
22
|
+
},
|
|
23
|
+
"link": "",
|
|
24
|
+
"color": "#FFFFFF",
|
|
25
|
+
"video": "",
|
|
26
|
+
"slots": ""
|
|
27
|
+
},
|
|
28
|
+
"schema": {
|
|
29
|
+
"name": {
|
|
30
|
+
"label": "name",
|
|
31
|
+
"type": "PRIMITIVE",
|
|
32
|
+
"component": "TextField",
|
|
33
|
+
"description": "The name of the ad",
|
|
34
|
+
"rules": {
|
|
35
|
+
"required": true,
|
|
36
|
+
"min": 2,
|
|
37
|
+
"max": 4
|
|
38
|
+
},
|
|
39
|
+
"meta": "name"
|
|
40
|
+
},
|
|
41
|
+
"image": {
|
|
42
|
+
"label": "image",
|
|
43
|
+
"type": "DOCUMENT",
|
|
44
|
+
"component": "ImagePicker",
|
|
45
|
+
"description": "The logo of the app",
|
|
46
|
+
"rules": {
|
|
47
|
+
"required": true
|
|
48
|
+
},
|
|
49
|
+
"default": {
|
|
50
|
+
"url": "",
|
|
51
|
+
"licence": ""
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"link": {
|
|
55
|
+
"label": "url",
|
|
56
|
+
"type": "PRIMITIVE",
|
|
57
|
+
"component": "TextField",
|
|
58
|
+
"description": "The url of the app",
|
|
59
|
+
"rules": {
|
|
60
|
+
"required": true,
|
|
61
|
+
"url": true
|
|
62
|
+
},
|
|
63
|
+
"meta": "link"
|
|
64
|
+
},
|
|
65
|
+
"color": {
|
|
66
|
+
"label": "background_color",
|
|
67
|
+
"type": "PRIMITIVE",
|
|
68
|
+
"component": "ColorPicker",
|
|
69
|
+
"default": "#FFFFFF",
|
|
70
|
+
"description": "The background color of the content",
|
|
71
|
+
"rules": {
|
|
72
|
+
"color": true
|
|
73
|
+
},
|
|
74
|
+
"meta": "color"
|
|
75
|
+
},
|
|
76
|
+
"video": {
|
|
77
|
+
"label": "video",
|
|
78
|
+
"component": "TextField",
|
|
79
|
+
"type": "DOCUMENT",
|
|
80
|
+
"rules": {
|
|
81
|
+
"url": true
|
|
82
|
+
},
|
|
83
|
+
"meta": "video",
|
|
84
|
+
"default": ""
|
|
85
|
+
},
|
|
86
|
+
"slots": {
|
|
87
|
+
"label": "slots",
|
|
88
|
+
"component": "TextField",
|
|
89
|
+
"type": "PRIMITIVE",
|
|
90
|
+
"rules": {
|
|
91
|
+
"required": true,
|
|
92
|
+
"min": 5,
|
|
93
|
+
"max": 200
|
|
94
|
+
},
|
|
95
|
+
"meta": "slots"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
var actions = deepFreeze(data);
|
|
101
|
+
|
|
102
|
+
module.exports = actions;
|
package/dist/form/actions.d.ts
CHANGED
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Form } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
export interface Actions {
|
|
5
|
+
color?: string
|
|
6
|
+
link: string
|
|
7
|
+
image: Image
|
|
8
|
+
name: string
|
|
9
|
+
video?: URL
|
|
10
|
+
slots: string[]
|
|
11
|
+
start: Date
|
|
12
|
+
stop: Date
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface FormModule {
|
|
16
|
+
_defaults: Record<string, any>
|
|
17
|
+
schema: Record<string, Form>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const data: FormModule
|
|
21
|
+
export default data
|
package/dist/form/actions.js
CHANGED
|
@@ -0,0 +1,197 @@
|
|
|
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
|
+
"image": "",
|
|
23
|
+
"location": {
|
|
24
|
+
"name": "",
|
|
25
|
+
"details": "",
|
|
26
|
+
"alt": "",
|
|
27
|
+
"street": "",
|
|
28
|
+
"city": "",
|
|
29
|
+
"country": "",
|
|
30
|
+
"zip": "",
|
|
31
|
+
"geocode": {
|
|
32
|
+
"lat": "",
|
|
33
|
+
"lng": ""
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"ror": "",
|
|
37
|
+
"url": ""
|
|
38
|
+
},
|
|
39
|
+
"schema": {
|
|
40
|
+
"name": {
|
|
41
|
+
"label": "name",
|
|
42
|
+
"component": "TextField",
|
|
43
|
+
"type": "PRIMITIVE",
|
|
44
|
+
"i18n": true,
|
|
45
|
+
"rules": {
|
|
46
|
+
"required": true,
|
|
47
|
+
"min": 5,
|
|
48
|
+
"max": 200
|
|
49
|
+
},
|
|
50
|
+
"meta": "name"
|
|
51
|
+
},
|
|
52
|
+
"image": {
|
|
53
|
+
"label": "image",
|
|
54
|
+
"component": "ImagePicker",
|
|
55
|
+
"type": "DOCUMENT",
|
|
56
|
+
"meta": "image",
|
|
57
|
+
"default": ""
|
|
58
|
+
},
|
|
59
|
+
"location": {
|
|
60
|
+
"label": "location",
|
|
61
|
+
"component": "ObjectContainerPanel",
|
|
62
|
+
"type": "OBJECT",
|
|
63
|
+
"meta": "location",
|
|
64
|
+
"items": {
|
|
65
|
+
"name": {
|
|
66
|
+
"label": "name",
|
|
67
|
+
"component": "TextField",
|
|
68
|
+
"type": "PRIMITIVE",
|
|
69
|
+
"rules": {
|
|
70
|
+
"required": true,
|
|
71
|
+
"min": 5,
|
|
72
|
+
"max": 200
|
|
73
|
+
},
|
|
74
|
+
"meta": "name"
|
|
75
|
+
},
|
|
76
|
+
"details": {
|
|
77
|
+
"label": "details",
|
|
78
|
+
"component": "TextArea",
|
|
79
|
+
"type": "PRIMITIVE",
|
|
80
|
+
"rules": {
|
|
81
|
+
"required": true,
|
|
82
|
+
"min": 5,
|
|
83
|
+
"max": 200
|
|
84
|
+
},
|
|
85
|
+
"meta": "details"
|
|
86
|
+
},
|
|
87
|
+
"alt": {
|
|
88
|
+
"label": "alt",
|
|
89
|
+
"component": "TextArea",
|
|
90
|
+
"type": "PRIMITIVE",
|
|
91
|
+
"rules": {
|
|
92
|
+
"required": true,
|
|
93
|
+
"min": 5,
|
|
94
|
+
"max": 200
|
|
95
|
+
},
|
|
96
|
+
"meta": "alt"
|
|
97
|
+
},
|
|
98
|
+
"street": {
|
|
99
|
+
"label": "street",
|
|
100
|
+
"component": "TextField",
|
|
101
|
+
"type": "PRIMITIVE",
|
|
102
|
+
"rules": {
|
|
103
|
+
"required": true,
|
|
104
|
+
"max": 200
|
|
105
|
+
},
|
|
106
|
+
"meta": "street"
|
|
107
|
+
},
|
|
108
|
+
"city": {
|
|
109
|
+
"label": "city",
|
|
110
|
+
"component": "TextField",
|
|
111
|
+
"type": "PRIMITIVE",
|
|
112
|
+
"rules": {
|
|
113
|
+
"required": true,
|
|
114
|
+
"max": 200
|
|
115
|
+
},
|
|
116
|
+
"meta": "city"
|
|
117
|
+
},
|
|
118
|
+
"country": {
|
|
119
|
+
"label": "country",
|
|
120
|
+
"component": "AutoComplete",
|
|
121
|
+
"type": "PRIMITIVE",
|
|
122
|
+
"meta": "country"
|
|
123
|
+
},
|
|
124
|
+
"zip": {
|
|
125
|
+
"label": "zip",
|
|
126
|
+
"component": "TextField",
|
|
127
|
+
"type": "PRIMITIVE",
|
|
128
|
+
"rules": {
|
|
129
|
+
"required": true,
|
|
130
|
+
"min": 5,
|
|
131
|
+
"max": 200
|
|
132
|
+
},
|
|
133
|
+
"meta": "zip"
|
|
134
|
+
},
|
|
135
|
+
"geocode": {
|
|
136
|
+
"label": "geocode",
|
|
137
|
+
"component": "LocationPicker",
|
|
138
|
+
"type": "OBJECT",
|
|
139
|
+
"rules": {
|
|
140
|
+
"required": true,
|
|
141
|
+
"min": 5,
|
|
142
|
+
"max": 200
|
|
143
|
+
},
|
|
144
|
+
"items": {
|
|
145
|
+
"lat": {
|
|
146
|
+
"label": "latitude",
|
|
147
|
+
"component": "TextField",
|
|
148
|
+
"type": "PRIMITIVE",
|
|
149
|
+
"rules": {
|
|
150
|
+
"required": true,
|
|
151
|
+
"min": 5,
|
|
152
|
+
"max": 200
|
|
153
|
+
},
|
|
154
|
+
"meta": "latitude"
|
|
155
|
+
},
|
|
156
|
+
"lng": {
|
|
157
|
+
"label": "longitude",
|
|
158
|
+
"component": "TextField",
|
|
159
|
+
"type": "PRIMITIVE",
|
|
160
|
+
"rules": {
|
|
161
|
+
"required": true,
|
|
162
|
+
"min": 5,
|
|
163
|
+
"max": 200
|
|
164
|
+
},
|
|
165
|
+
"meta": "longitude"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"meta": "geocode"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"ror": {
|
|
173
|
+
"label": "ror",
|
|
174
|
+
"component": "TextField",
|
|
175
|
+
"type": "PRIMITIVE",
|
|
176
|
+
"rules": {
|
|
177
|
+
"required": true,
|
|
178
|
+
"ror": true
|
|
179
|
+
},
|
|
180
|
+
"meta": "ror"
|
|
181
|
+
},
|
|
182
|
+
"url": {
|
|
183
|
+
"label": "url",
|
|
184
|
+
"component": "TextField",
|
|
185
|
+
"type": "PRIMITIVE",
|
|
186
|
+
"rules": {
|
|
187
|
+
"required": true,
|
|
188
|
+
"url": true
|
|
189
|
+
},
|
|
190
|
+
"meta": "url"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
var affiliations = deepFreeze(data);
|
|
196
|
+
|
|
197
|
+
module.exports = affiliations;
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Form } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
export interface Affiliations {
|
|
5
|
+
location?: Location
|
|
6
|
+
image?: Image
|
|
7
|
+
name: string
|
|
8
|
+
ror?: string
|
|
9
|
+
url?: string
|
|
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
|
|
@@ -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
|
+
"_defaults": {
|
|
18
|
+
"name": "",
|
|
19
|
+
"image": {
|
|
20
|
+
"url": "",
|
|
21
|
+
"licence": ""
|
|
22
|
+
},
|
|
23
|
+
"description": {
|
|
24
|
+
"en": "",
|
|
25
|
+
"fr": ""
|
|
26
|
+
},
|
|
27
|
+
"summary": {
|
|
28
|
+
"en": "",
|
|
29
|
+
"fr": ""
|
|
30
|
+
},
|
|
31
|
+
"subtitle": {
|
|
32
|
+
"en": "",
|
|
33
|
+
"fr": ""
|
|
34
|
+
},
|
|
35
|
+
"url": "",
|
|
36
|
+
"tags": "",
|
|
37
|
+
"state": "",
|
|
38
|
+
"date": ""
|
|
39
|
+
},
|
|
40
|
+
"schema": {
|
|
41
|
+
"name": {
|
|
42
|
+
"label": "name",
|
|
43
|
+
"type": "PRIMITIVE",
|
|
44
|
+
"component": "TextField",
|
|
45
|
+
"description": "The name of the app as displayed on google or the header of the app",
|
|
46
|
+
"rules": {
|
|
47
|
+
"required": true,
|
|
48
|
+
"min": 2,
|
|
49
|
+
"max": 4
|
|
50
|
+
},
|
|
51
|
+
"meta": "name"
|
|
52
|
+
},
|
|
53
|
+
"image": {
|
|
54
|
+
"label": "image",
|
|
55
|
+
"component": "ImagePicker",
|
|
56
|
+
"type": "DOCUMENT",
|
|
57
|
+
"description": "The logo of the app",
|
|
58
|
+
"rules": {
|
|
59
|
+
"required": true
|
|
60
|
+
},
|
|
61
|
+
"default": {
|
|
62
|
+
"url": "",
|
|
63
|
+
"licence": ""
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"description": {
|
|
67
|
+
"label": "description",
|
|
68
|
+
"component": "TextArea",
|
|
69
|
+
"type": "PRIMITIVE",
|
|
70
|
+
"i18n": true,
|
|
71
|
+
"rules": {
|
|
72
|
+
"required": true,
|
|
73
|
+
"min": 5,
|
|
74
|
+
"max": 200
|
|
75
|
+
},
|
|
76
|
+
"meta": "description"
|
|
77
|
+
},
|
|
78
|
+
"summary": {
|
|
79
|
+
"label": "summary",
|
|
80
|
+
"component": "TextArea",
|
|
81
|
+
"type": "PRIMITIVE",
|
|
82
|
+
"i18n": true,
|
|
83
|
+
"rules": {
|
|
84
|
+
"required": true,
|
|
85
|
+
"min": 5,
|
|
86
|
+
"max": 200
|
|
87
|
+
},
|
|
88
|
+
"meta": "summary"
|
|
89
|
+
},
|
|
90
|
+
"subtitle": {
|
|
91
|
+
"label": "subtitle",
|
|
92
|
+
"component": "TextArea",
|
|
93
|
+
"type": "PRIMITIVE",
|
|
94
|
+
"i18n": true,
|
|
95
|
+
"rules": {
|
|
96
|
+
"required": true,
|
|
97
|
+
"min": 5,
|
|
98
|
+
"max": 200
|
|
99
|
+
},
|
|
100
|
+
"meta": "subtitle"
|
|
101
|
+
},
|
|
102
|
+
"url": {
|
|
103
|
+
"label": "url",
|
|
104
|
+
"component": "TextField",
|
|
105
|
+
"type": "PRIMITIVE",
|
|
106
|
+
"rules": {
|
|
107
|
+
"required": true,
|
|
108
|
+
"url": true
|
|
109
|
+
},
|
|
110
|
+
"meta": "url"
|
|
111
|
+
},
|
|
112
|
+
"tags": {
|
|
113
|
+
"label": "tags",
|
|
114
|
+
"component": "TagPicker",
|
|
115
|
+
"type": "DOCUMENT",
|
|
116
|
+
"rules": {
|
|
117
|
+
"required": true
|
|
118
|
+
},
|
|
119
|
+
"meta": "tags",
|
|
120
|
+
"default": ""
|
|
121
|
+
},
|
|
122
|
+
"state": {
|
|
123
|
+
"label": "appState",
|
|
124
|
+
"component": "Select",
|
|
125
|
+
"type": "PRIMITIVE",
|
|
126
|
+
"rules": {
|
|
127
|
+
"required": true
|
|
128
|
+
},
|
|
129
|
+
"items": {
|
|
130
|
+
"Active": "ACTIVE",
|
|
131
|
+
"Suspended": "SUSPENDED",
|
|
132
|
+
"Inactive": "INACTIVE"
|
|
133
|
+
},
|
|
134
|
+
"meta": "appState"
|
|
135
|
+
},
|
|
136
|
+
"date": {
|
|
137
|
+
"label": "date",
|
|
138
|
+
"component": "DatePicker",
|
|
139
|
+
"type": "PRIMITIVE",
|
|
140
|
+
"rules": {
|
|
141
|
+
"required": true,
|
|
142
|
+
"date": true
|
|
143
|
+
},
|
|
144
|
+
"meta": "date"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
var apps = deepFreeze(data);
|
|
150
|
+
|
|
151
|
+
module.exports = apps;
|
package/dist/form/apps.d.ts
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Form } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
export interface Apps {
|
|
5
|
+
appId: string
|
|
6
|
+
name: string
|
|
7
|
+
image?: Image
|
|
8
|
+
description?: string
|
|
9
|
+
summary?: string
|
|
10
|
+
url?: URL
|
|
11
|
+
tags?: Tag[]
|
|
12
|
+
subtitle?: string
|
|
13
|
+
color?: string
|
|
14
|
+
date?: Date
|
|
15
|
+
state?: appState
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export enum appState {
|
|
19
|
+
Active = "ACTIVE",
|
|
20
|
+
Suspended = "SUSPENDED",
|
|
21
|
+
Inactive = "INACTIVE",
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface FormModule {
|
|
25
|
+
_defaults: Record<string, any>
|
|
26
|
+
schema: Record<string, Form>
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare const data: FormModule
|
|
30
|
+
export default data
|
package/dist/form/apps.js
CHANGED
|
@@ -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
|
+
"description": ""
|
|
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
|
+
"description": {
|
|
34
|
+
"label": "description",
|
|
35
|
+
"component": "TextField",
|
|
36
|
+
"type": "PRIMITIVE",
|
|
37
|
+
"rules": {
|
|
38
|
+
"required": true,
|
|
39
|
+
"min": 5,
|
|
40
|
+
"max": 200
|
|
41
|
+
},
|
|
42
|
+
"meta": "description"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var disciplines = deepFreeze(data);
|
|
48
|
+
|
|
49
|
+
module.exports = disciplines;
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Form } from "../../index"
|
|
2
|
+
|
|
3
|
+
// Inline type definitions
|
|
4
|
+
// Type definitions not found
|
|
5
|
+
|
|
6
|
+
export interface FormModule {
|
|
7
|
+
_defaults: Record<string, any>
|
|
8
|
+
schema: Record<string, Form>
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const data: FormModule
|
|
12
|
+
export default data
|