eligius 1.1.7 → 1.2.1

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 (106) hide show
  1. package/dist/index.d.ts +139 -64
  2. package/dist/index.js +326 -339
  3. package/dist/index.js.map +1 -1
  4. package/jsonschema/eligius-configuration.json +122 -0
  5. package/jsonschema/endable-action-template.json +327 -0
  6. package/jsonschema/endable-action.json +327 -0
  7. package/jsonschema/engine-config.json +21 -0
  8. package/jsonschema/event-action.json +194 -0
  9. package/jsonschema/mediaplayer-timeline-provider-settings.json +40 -0
  10. package/jsonschema/operation-templates/add-class.json +40 -0
  11. package/jsonschema/operation-templates/add-controller-to-element.json +26 -0
  12. package/jsonschema/operation-templates/add-globals-to-operation.json +39 -0
  13. package/jsonschema/operation-templates/animate-with-class.json +46 -0
  14. package/jsonschema/operation-templates/animate.json +51 -0
  15. package/jsonschema/operation-templates/broadcast-event.json +51 -0
  16. package/jsonschema/operation-templates/calc.json +49 -0
  17. package/jsonschema/operation-templates/clear-element.json +26 -0
  18. package/jsonschema/operation-templates/clear-operation-data.json +39 -0
  19. package/jsonschema/operation-templates/create-element.json +158 -0
  20. package/jsonschema/operation-templates/custom-function.json +39 -0
  21. package/jsonschema/operation-templates/end-action.json +39 -0
  22. package/jsonschema/operation-templates/end-for-each.json +26 -0
  23. package/jsonschema/operation-templates/end-when.json +26 -0
  24. package/jsonschema/operation-templates/extend-controller.json +39 -0
  25. package/jsonschema/operation-templates/for-each.json +40 -0
  26. package/jsonschema/operation-templates/get-attributes-from-element.json +39 -0
  27. package/jsonschema/operation-templates/get-controller-from-element.json +50 -0
  28. package/jsonschema/operation-templates/get-controller-instance.json +37 -0
  29. package/jsonschema/operation-templates/get-element-dimensions.json +39 -0
  30. package/jsonschema/operation-templates/get-import.json +39 -0
  31. package/jsonschema/operation-templates/get-query-params.json +39 -0
  32. package/jsonschema/operation-templates/invoke-object-method.json +45 -0
  33. package/jsonschema/operation-templates/load-json.json +45 -0
  34. package/jsonschema/operation-templates/log.json +39 -0
  35. package/jsonschema/operation-templates/math.json +45 -0
  36. package/jsonschema/operation-templates/otherwise.json +26 -0
  37. package/jsonschema/operation-templates/remove-class.json +40 -0
  38. package/jsonschema/operation-templates/remove-controller-from-element.json +50 -0
  39. package/jsonschema/operation-templates/remove-element.json +26 -0
  40. package/jsonschema/operation-templates/remove-properties-from-operation-data.json +39 -0
  41. package/jsonschema/operation-templates/reparent-element.json +39 -0
  42. package/jsonschema/operation-templates/request-action.json +39 -0
  43. package/jsonschema/operation-templates/select-element.json +45 -0
  44. package/jsonschema/operation-templates/set-data.json +39 -0
  45. package/jsonschema/operation-templates/set-element-attributes.json +39 -0
  46. package/jsonschema/operation-templates/set-element-content.json +41 -0
  47. package/jsonschema/operation-templates/set-global-data.json +39 -0
  48. package/jsonschema/operation-templates/set-operation-data.json +45 -0
  49. package/jsonschema/operation-templates/set-style.json +39 -0
  50. package/jsonschema/operation-templates/set-variable.json +45 -0
  51. package/jsonschema/operation-templates/start-action.json +39 -0
  52. package/jsonschema/operation-templates/toggle-class.json +40 -0
  53. package/jsonschema/operation-templates/toggle-element.json +26 -0
  54. package/jsonschema/operation-templates/wait.json +39 -0
  55. package/jsonschema/operation-templates/when.json +39 -0
  56. package/jsonschema/operations/add-class.json +44 -0
  57. package/jsonschema/operations/add-controller-to-element.json +26 -0
  58. package/jsonschema/operations/add-globals-to-operation.json +43 -0
  59. package/jsonschema/operations/animate-with-class.json +50 -0
  60. package/jsonschema/operations/animate.json +56 -0
  61. package/jsonschema/operations/broadcast-event.json +56 -0
  62. package/jsonschema/operations/calc.json +55 -0
  63. package/jsonschema/operations/clear-element.json +26 -0
  64. package/jsonschema/operations/clear-operation-data.json +41 -0
  65. package/jsonschema/operations/create-element.json +162 -0
  66. package/jsonschema/operations/custom-function.json +43 -0
  67. package/jsonschema/operations/end-action.json +43 -0
  68. package/jsonschema/operations/end-for-each.json +26 -0
  69. package/jsonschema/operations/end-when.json +26 -0
  70. package/jsonschema/operations/extend-controller.json +43 -0
  71. package/jsonschema/operations/for-each.json +44 -0
  72. package/jsonschema/operations/get-attributes-from-element.json +43 -0
  73. package/jsonschema/operations/get-controller-from-element.json +54 -0
  74. package/jsonschema/operations/get-controller-instance.json +41 -0
  75. package/jsonschema/operations/get-element-dimensions.json +41 -0
  76. package/jsonschema/operations/get-import.json +43 -0
  77. package/jsonschema/operations/get-query-params.json +41 -0
  78. package/jsonschema/operations/invoke-object-method.json +49 -0
  79. package/jsonschema/operations/load-json.json +49 -0
  80. package/jsonschema/operations/log.json +41 -0
  81. package/jsonschema/operations/math.json +50 -0
  82. package/jsonschema/operations/otherwise.json +26 -0
  83. package/jsonschema/operations/remove-class.json +44 -0
  84. package/jsonschema/operations/remove-controller-from-element.json +54 -0
  85. package/jsonschema/operations/remove-element.json +26 -0
  86. package/jsonschema/operations/remove-properties-from-operation-data.json +43 -0
  87. package/jsonschema/operations/reparent-element.json +43 -0
  88. package/jsonschema/operations/request-action.json +43 -0
  89. package/jsonschema/operations/select-element.json +49 -0
  90. package/jsonschema/operations/set-data.json +43 -0
  91. package/jsonschema/operations/set-element-attributes.json +43 -0
  92. package/jsonschema/operations/set-element-content.json +43 -0
  93. package/jsonschema/operations/set-global-data.json +43 -0
  94. package/jsonschema/operations/set-operation-data.json +49 -0
  95. package/jsonschema/operations/set-style.json +43 -0
  96. package/jsonschema/operations/set-variable.json +50 -0
  97. package/jsonschema/operations/start-action.json +41 -0
  98. package/jsonschema/operations/toggle-class.json +44 -0
  99. package/jsonschema/operations/toggle-element.json +26 -0
  100. package/jsonschema/operations/wait.json +43 -0
  101. package/jsonschema/operations/when.json +43 -0
  102. package/jsonschema/raf-timeline-provider-settings.json +29 -0
  103. package/jsonschema/timeline-action.json +342 -0
  104. package/jsonschema/timeline-provider-settings.json +16 -0
  105. package/jsonschema/timeline.json +52 -0
  106. package/package.json +4 -3
@@ -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
+ }