eligius 1.1.6 → 1.2.0
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/index.d.ts +183 -63
- package/dist/index.js +388 -486
- package/dist/index.js.map +1 -1
- package/jsonschema/eligius-configuration.json +122 -0
- package/jsonschema/endable-action-template.json +327 -0
- package/jsonschema/endable-action.json +327 -0
- package/jsonschema/engine-config.json +21 -0
- package/jsonschema/event-action.json +194 -0
- package/jsonschema/mediaplayer-timeline-provider-settings.json +40 -0
- package/jsonschema/raf-timeline-provider-settings.json +29 -0
- package/jsonschema/timeline-action.json +342 -0
- package/jsonschema/timeline-provider-settings.json +16 -0
- package/jsonschema/timeline.json +52 -0
- package/package.json +4 -5
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "https://rolandzwaga.github.io/eligius/jsonschema/eligius-configuration.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The Eligius Configuration Schema",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"engine",
|
|
10
|
+
"containerSelector",
|
|
11
|
+
"timelineProviderSettings",
|
|
12
|
+
"language",
|
|
13
|
+
"layoutTemplate",
|
|
14
|
+
"availableLanguages",
|
|
15
|
+
"timelines"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"id": {
|
|
19
|
+
"$id": "#/properties/id",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "The Id Schema",
|
|
22
|
+
"examples": ["123e4567-e89b-12d3-a456-426614174000"],
|
|
23
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
24
|
+
},
|
|
25
|
+
"engine": {
|
|
26
|
+
"$ref": "engine-config.json"
|
|
27
|
+
},
|
|
28
|
+
"timelineProviderSettings": {
|
|
29
|
+
"$ref": "timeline-provider-settings.json"
|
|
30
|
+
},
|
|
31
|
+
"containerSelector": {
|
|
32
|
+
"$id": "#/properties/containerSelector",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"title": "The Containerselector Schema",
|
|
35
|
+
"default": "",
|
|
36
|
+
"examples": ["#eligius-container"],
|
|
37
|
+
"pattern": "^(.*)$"
|
|
38
|
+
},
|
|
39
|
+
"language": {
|
|
40
|
+
"$id": "#/properties/language",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"title": "The Language Schema",
|
|
43
|
+
"default": "",
|
|
44
|
+
"examples": ["en-US"],
|
|
45
|
+
"pattern": "^(.*)$"
|
|
46
|
+
},
|
|
47
|
+
"layoutTemplate": {
|
|
48
|
+
"$id": "#/properties/layoutTemplate",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"title": "The Layouttemplate Schema",
|
|
51
|
+
"default": "",
|
|
52
|
+
"examples": ["template:layoutTemplate", "<div></div>"],
|
|
53
|
+
"pattern": "^(.*)$"
|
|
54
|
+
},
|
|
55
|
+
"availableLanguages": {
|
|
56
|
+
"$id": "#/properties/availableLanguages",
|
|
57
|
+
"type": "array",
|
|
58
|
+
"title": "The Availablelanguages Schema",
|
|
59
|
+
"items": {
|
|
60
|
+
"$id": "#/properties/availableLanguages/items",
|
|
61
|
+
"type": "object",
|
|
62
|
+
"title": "The Items Schema",
|
|
63
|
+
"required": ["languageCode", "label"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"languageCode": {
|
|
66
|
+
"$id": "#/properties/availableLanguages/items/properties/languageCode",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"title": "The Code Schema",
|
|
69
|
+
"default": "",
|
|
70
|
+
"examples": ["en-US"],
|
|
71
|
+
"pattern": "^(.*)$"
|
|
72
|
+
},
|
|
73
|
+
"label": {
|
|
74
|
+
"$id": "#/properties/availableLanguages/items/properties/label",
|
|
75
|
+
"type": "string",
|
|
76
|
+
"title": "The Label Schema",
|
|
77
|
+
"default": "",
|
|
78
|
+
"examples": ["English"],
|
|
79
|
+
"pattern": "^(.*)$"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"initActions": {
|
|
85
|
+
"$id": "#/properties/initActions",
|
|
86
|
+
"type": "array",
|
|
87
|
+
"title": "The init actions Schema",
|
|
88
|
+
"items": {
|
|
89
|
+
"$ref": "endable-action.json"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"actions": {
|
|
93
|
+
"$id": "#/properties/actions",
|
|
94
|
+
"type": "array",
|
|
95
|
+
"title": "The actions Schema",
|
|
96
|
+
"items": {
|
|
97
|
+
"$ref": "endable-action-template.json"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"eventActions": {
|
|
101
|
+
"$id": "#/properties/eventActions",
|
|
102
|
+
"type": "array",
|
|
103
|
+
"title": "The event actions Schema",
|
|
104
|
+
"items": {
|
|
105
|
+
"$ref": "event-action.json"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"timelines": {
|
|
109
|
+
"$id": "#/properties/timelines",
|
|
110
|
+
"type": "array",
|
|
111
|
+
"title": "The timelines schema",
|
|
112
|
+
"items": {
|
|
113
|
+
"$ref": "timeline.json"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"labels": {
|
|
117
|
+
"$id": "#/properties/labels",
|
|
118
|
+
"type": "array",
|
|
119
|
+
"title": "The Labels Schema"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "https://rolandzwaga.github.io/eligius/jsonschema/endable-action.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The Endable Action Schema",
|
|
7
|
+
"required": [
|
|
8
|
+
"name",
|
|
9
|
+
"startOperations",
|
|
10
|
+
"endOperations"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"$id": "#/properties/id",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "The Id Schema",
|
|
17
|
+
"examples": [
|
|
18
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
19
|
+
],
|
|
20
|
+
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
|
|
21
|
+
},
|
|
22
|
+
"name": {
|
|
23
|
+
"$id": "#/properties/name",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"title": "The Name Schema",
|
|
26
|
+
"default": "",
|
|
27
|
+
"examples": [
|
|
28
|
+
"ProgressbarSetup"
|
|
29
|
+
],
|
|
30
|
+
"pattern": "^(.*)$"
|
|
31
|
+
},
|
|
32
|
+
"startOperations": {
|
|
33
|
+
"$id": "#/properties/startOperations",
|
|
34
|
+
"type": "array",
|
|
35
|
+
"title": "The Startoperations Schema",
|
|
36
|
+
"items": {
|
|
37
|
+
"anyOf": [
|
|
38
|
+
{
|
|
39
|
+
"$ref": "operation-templates/add-class.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"$ref": "operation-templates/add-controller-to-element.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"$ref": "operation-templates/add-globals-to-operation.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"$ref": "operation-templates/animate.json"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"$ref": "operation-templates/animate-with-class.json"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"$ref": "operation-templates/broadcast-event.json"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"$ref": "operation-templates/calc.json"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"$ref": "operation-templates/clear-element.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"$ref": "operation-templates/clear-operation-data.json"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"$ref": "operation-templates/create-element.json"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"$ref": "operation-templates/custom-function.json"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"$ref": "operation-templates/end-action.json"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"$ref": "operation-templates/end-for-each.json"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"$ref": "operation-templates/end-when.json"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"$ref": "operation-templates/extend-controller.json"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"$ref": "operation-templates/for-each.json"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"$ref": "operation-templates/get-attributes-from-element.json"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"$ref": "operation-templates/get-controller-from-element.json"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"$ref": "operation-templates/get-controller-instance.json"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"$ref": "operation-templates/get-element-dimensions.json"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"$ref": "operation-templates/get-import.json"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"$ref": "operation-templates/get-query-params.json"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"$ref": "operation-templates/invoke-object-method.json"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"$ref": "operation-templates/load-json.json"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"$ref": "operation-templates/log.json"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"$ref": "operation-templates/math.json"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"$ref": "operation-templates/otherwise.json"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"$ref": "operation-templates/remove-class.json"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"$ref": "operation-templates/remove-controller-from-element.json"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"$ref": "operation-templates/remove-element.json"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"$ref": "operation-templates/remove-properties-from-operation-data.json"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"$ref": "operation-templates/reparent-element.json"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"$ref": "operation-templates/request-action.json"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"$ref": "operation-templates/select-element.json"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"$ref": "operation-templates/set-data.json"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"$ref": "operation-templates/set-element-attributes.json"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"$ref": "operation-templates/set-element-content.json"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"$ref": "operation-templates/set-global-data.json"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"$ref": "operation-templates/set-operation-data.json"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"$ref": "operation-templates/set-style.json"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"$ref": "operation-templates/set-variable.json"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"$ref": "operation-templates/start-action.json"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"$ref": "operation-templates/toggle-class.json"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"$ref": "operation-templates/toggle-element.json"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"$ref": "operation-templates/wait.json"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"$ref": "operation-templates/when.json"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"endOperations": {
|
|
180
|
+
"$id": "#/properties/endOperations",
|
|
181
|
+
"type": "array",
|
|
182
|
+
"title": "The Endoperations Schema",
|
|
183
|
+
"items": {
|
|
184
|
+
"anyOf": [
|
|
185
|
+
{
|
|
186
|
+
"$ref": "operation-templates/add-class.json"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"$ref": "operation-templates/add-controller-to-element.json"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"$ref": "operation-templates/add-globals-to-operation.json"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"$ref": "operation-templates/animate.json"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"$ref": "operation-templates/animate-with-class.json"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"$ref": "operation-templates/broadcast-event.json"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"$ref": "operation-templates/calc.json"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"$ref": "operation-templates/clear-element.json"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"$ref": "operation-templates/clear-operation-data.json"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"$ref": "operation-templates/create-element.json"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"$ref": "operation-templates/custom-function.json"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"$ref": "operation-templates/end-action.json"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"$ref": "operation-templates/end-for-each.json"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"$ref": "operation-templates/end-when.json"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"$ref": "operation-templates/extend-controller.json"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"$ref": "operation-templates/for-each.json"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"$ref": "operation-templates/get-attributes-from-element.json"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"$ref": "operation-templates/get-controller-from-element.json"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"$ref": "operation-templates/get-controller-instance.json"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"$ref": "operation-templates/get-element-dimensions.json"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"$ref": "operation-templates/get-import.json"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"$ref": "operation-templates/get-query-params.json"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"$ref": "operation-templates/invoke-object-method.json"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"$ref": "operation-templates/load-json.json"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"$ref": "operation-templates/log.json"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"$ref": "operation-templates/math.json"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"$ref": "operation-templates/otherwise.json"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"$ref": "operation-templates/remove-class.json"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"$ref": "operation-templates/remove-controller-from-element.json"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"$ref": "operation-templates/remove-element.json"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"$ref": "operation-templates/remove-properties-from-operation-data.json"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"$ref": "operation-templates/reparent-element.json"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"$ref": "operation-templates/request-action.json"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"$ref": "operation-templates/select-element.json"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"$ref": "operation-templates/set-data.json"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"$ref": "operation-templates/set-element-attributes.json"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"$ref": "operation-templates/set-element-content.json"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"$ref": "operation-templates/set-global-data.json"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"$ref": "operation-templates/set-operation-data.json"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"$ref": "operation-templates/set-style.json"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"$ref": "operation-templates/set-variable.json"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"$ref": "operation-templates/start-action.json"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"$ref": "operation-templates/toggle-class.json"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"$ref": "operation-templates/toggle-element.json"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"$ref": "operation-templates/wait.json"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"$ref": "operation-templates/when.json"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|