eligius 1.2.1 → 1.3.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 +55 -22
- package/dist/index.js +104 -40
- package/dist/index.js.map +1 -1
- package/jsonschema/endable-action-template.json +12 -0
- package/jsonschema/endable-action.json +12 -0
- package/jsonschema/event-action.json +6 -0
- package/jsonschema/operation-templates/break-for-each.json +26 -0
- package/jsonschema/operation-templates/continue-for-each.json +26 -0
- package/jsonschema/operation-templates/for-each.json +1 -1
- package/jsonschema/operation-templates/log.json +11 -1
- package/jsonschema/operation-templates/set-style.json +1 -1
- package/jsonschema/operation-templates/set-variable.json +5 -1
- package/jsonschema/operation-templates/when.json +1 -1
- package/jsonschema/operations/break-for-each.json +26 -0
- package/jsonschema/operations/continue-for-each.json +26 -0
- package/jsonschema/operations/for-each.json +1 -1
- package/jsonschema/operations/log.json +11 -1
- package/jsonschema/operations/set-style.json +1 -1
- package/jsonschema/operations/set-variable.json +5 -1
- package/jsonschema/operations/when.json +1 -1
- package/jsonschema/timeline-action.json +12 -0
- package/package.json +1 -1
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
{
|
|
51
51
|
"$ref": "operation-templates/animate-with-class.json"
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
"$ref": "operation-templates/break-for-each.json"
|
|
55
|
+
},
|
|
53
56
|
{
|
|
54
57
|
"$ref": "operation-templates/broadcast-event.json"
|
|
55
58
|
},
|
|
@@ -62,6 +65,9 @@
|
|
|
62
65
|
{
|
|
63
66
|
"$ref": "operation-templates/clear-operation-data.json"
|
|
64
67
|
},
|
|
68
|
+
{
|
|
69
|
+
"$ref": "operation-templates/continue-for-each.json"
|
|
70
|
+
},
|
|
65
71
|
{
|
|
66
72
|
"$ref": "operation-templates/create-element.json"
|
|
67
73
|
},
|
|
@@ -197,6 +203,9 @@
|
|
|
197
203
|
{
|
|
198
204
|
"$ref": "operation-templates/animate-with-class.json"
|
|
199
205
|
},
|
|
206
|
+
{
|
|
207
|
+
"$ref": "operation-templates/break-for-each.json"
|
|
208
|
+
},
|
|
200
209
|
{
|
|
201
210
|
"$ref": "operation-templates/broadcast-event.json"
|
|
202
211
|
},
|
|
@@ -209,6 +218,9 @@
|
|
|
209
218
|
{
|
|
210
219
|
"$ref": "operation-templates/clear-operation-data.json"
|
|
211
220
|
},
|
|
221
|
+
{
|
|
222
|
+
"$ref": "operation-templates/continue-for-each.json"
|
|
223
|
+
},
|
|
212
224
|
{
|
|
213
225
|
"$ref": "operation-templates/create-element.json"
|
|
214
226
|
},
|
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
{
|
|
51
51
|
"$ref": "operations/animate-with-class.json"
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
"$ref": "operations/break-for-each.json"
|
|
55
|
+
},
|
|
53
56
|
{
|
|
54
57
|
"$ref": "operations/broadcast-event.json"
|
|
55
58
|
},
|
|
@@ -62,6 +65,9 @@
|
|
|
62
65
|
{
|
|
63
66
|
"$ref": "operations/clear-operation-data.json"
|
|
64
67
|
},
|
|
68
|
+
{
|
|
69
|
+
"$ref": "operations/continue-for-each.json"
|
|
70
|
+
},
|
|
65
71
|
{
|
|
66
72
|
"$ref": "operations/create-element.json"
|
|
67
73
|
},
|
|
@@ -197,6 +203,9 @@
|
|
|
197
203
|
{
|
|
198
204
|
"$ref": "operations/animate-with-class.json"
|
|
199
205
|
},
|
|
206
|
+
{
|
|
207
|
+
"$ref": "operations/break-for-each.json"
|
|
208
|
+
},
|
|
200
209
|
{
|
|
201
210
|
"$ref": "operations/broadcast-event.json"
|
|
202
211
|
},
|
|
@@ -209,6 +218,9 @@
|
|
|
209
218
|
{
|
|
210
219
|
"$ref": "operations/clear-operation-data.json"
|
|
211
220
|
},
|
|
221
|
+
{
|
|
222
|
+
"$ref": "operations/continue-for-each.json"
|
|
223
|
+
},
|
|
212
224
|
{
|
|
213
225
|
"$ref": "operations/create-element.json"
|
|
214
226
|
},
|
|
@@ -64,6 +64,9 @@
|
|
|
64
64
|
{
|
|
65
65
|
"$ref": "operations/animate-with-class.json"
|
|
66
66
|
},
|
|
67
|
+
{
|
|
68
|
+
"$ref": "operations/break-for-each.json"
|
|
69
|
+
},
|
|
67
70
|
{
|
|
68
71
|
"$ref": "operations/broadcast-event.json"
|
|
69
72
|
},
|
|
@@ -76,6 +79,9 @@
|
|
|
76
79
|
{
|
|
77
80
|
"$ref": "operations/clear-operation-data.json"
|
|
78
81
|
},
|
|
82
|
+
{
|
|
83
|
+
"$ref": "operations/continue-for-each.json"
|
|
84
|
+
},
|
|
79
85
|
{
|
|
80
86
|
"$ref": "operations/create-element.json"
|
|
81
87
|
},
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/break-for-each-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The breakForEach schema",
|
|
7
|
+
"description": "\nThis operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the loop end index, effectively stopping the loop.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"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}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "breakForEach"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/continue-for-each-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The continueForEach schema",
|
|
7
|
+
"description": "\nThis operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the next loop index, effectively canceling the rest \nof the operations in the current iteration.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"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}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "continueForEach"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"$id": "http://eligius.com/schema/for-each-operation.json",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"title": "The forEach schema",
|
|
7
|
-
"description": "This operation iterates over the given collection.\n\nEach iteration the current item from the specified collection is\nassigned to the {@link IOperationScope.currentItem} property on the operation scope.\n\nAt the start of the loop, the associated {@link endForEach} operation is determined and when\nthe last iteration is completed the flow control is set to the index of that operation.",
|
|
7
|
+
"description": "This operation iterates over the given collection.\n\nEach iteration the current item from the specified collection is\nassigned to the {@link IOperationScope.currentItem |currentItem} property on the {@link IOperationScope |operation scope}.\n\nAt the start of the loop, the associated {@link endForEach} operation is determined and when\nthe last iteration is completed the flow control is set to the index of that operation.\n\nThe {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the \nloop iterations.",
|
|
8
8
|
"required": [
|
|
9
9
|
"systemName"
|
|
10
10
|
],
|
|
@@ -30,7 +30,17 @@
|
|
|
30
30
|
"logValue": {
|
|
31
31
|
"$id": "#/properties/operationData/logValue",
|
|
32
32
|
"type": [
|
|
33
|
-
"object"
|
|
33
|
+
"object",
|
|
34
|
+
"string",
|
|
35
|
+
"number",
|
|
36
|
+
"boolean",
|
|
37
|
+
"array"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"logName": {
|
|
41
|
+
"$id": "#/properties/operationData/logName",
|
|
42
|
+
"type": [
|
|
43
|
+
"string"
|
|
34
44
|
]
|
|
35
45
|
}
|
|
36
46
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"$id": "http://eligius.com/schema/when-operation.json",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"title": "The when schema",
|
|
7
|
-
"description": "When the given expression evaluates to false, subsequent operations will be skipped\nuntil an {@link endWhen} or {@link otherwise} operation is encountered.\n\nPractically, this means an `if` or `if`/`else` statement control flow implementation in a list of operations.\n\nThe expression is passed in as a formatted string.\nThe left and right values of the expression can be defined like this:\n\n'constant': for a constant string\n100: for a constant number\
|
|
7
|
+
"description": "When the given expression evaluates to false, subsequent operations will be skipped\nuntil an {@link endWhen} or {@link otherwise} operation is encountered.\n\nPractically, this means an `if` or `if`/`else` statement control flow implementation in a list of operations.\n\nThe expression is passed in as a formatted string.\nThe left and right values of the expression can be defined like this:\n\n'constant': for a constant string\n100: for a constant number\n$operationData.foo: for an operation data value\n$globaldata.foo: for a global data value\n$scope.loopIndex: for a scope value",
|
|
8
8
|
"required": [
|
|
9
9
|
"systemName"
|
|
10
10
|
],
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/break-for-each-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The breakForEach schema",
|
|
7
|
+
"description": "\nThis operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the loop end index, effectively stopping the loop.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"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}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "breakForEach"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/continue-for-each-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The continueForEach schema",
|
|
7
|
+
"description": "\nThis operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}\noperation. This operation immediately moves to the next loop index, effectively canceling the rest \nof the operations in the current iteration.",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"$id": "#/properties/id",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "The Id Schema",
|
|
16
|
+
"examples": [
|
|
17
|
+
"123e4567-e89b-12d3-a456-426614174000"
|
|
18
|
+
],
|
|
19
|
+
"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}$"
|
|
20
|
+
},
|
|
21
|
+
"systemName": {
|
|
22
|
+
"$id": "#/properties/systemName",
|
|
23
|
+
"const": "continueForEach"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"$id": "http://eligius.com/schema/for-each-operation.json",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"title": "The forEach schema",
|
|
7
|
-
"description": "This operation iterates over the given collection.\n\nEach iteration the current item from the specified collection is\nassigned to the {@link IOperationScope.currentItem} property on the operation scope.\n\nAt the start of the loop, the associated {@link endForEach} operation is determined and when\nthe last iteration is completed the flow control is set to the index of that operation.",
|
|
7
|
+
"description": "This operation iterates over the given collection.\n\nEach iteration the current item from the specified collection is\nassigned to the {@link IOperationScope.currentItem |currentItem} property on the {@link IOperationScope |operation scope}.\n\nAt the start of the loop, the associated {@link endForEach} operation is determined and when\nthe last iteration is completed the flow control is set to the index of that operation.\n\nThe {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the \nloop iterations.",
|
|
8
8
|
"required": [
|
|
9
9
|
"systemName",
|
|
10
10
|
"operationData"
|
|
@@ -32,7 +32,17 @@
|
|
|
32
32
|
"logValue": {
|
|
33
33
|
"$id": "#/properties/operationData/logValue",
|
|
34
34
|
"type": [
|
|
35
|
-
"object"
|
|
35
|
+
"object",
|
|
36
|
+
"string",
|
|
37
|
+
"number",
|
|
38
|
+
"boolean",
|
|
39
|
+
"array"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"logName": {
|
|
43
|
+
"$id": "#/properties/operationData/logName",
|
|
44
|
+
"type": [
|
|
45
|
+
"string"
|
|
36
46
|
]
|
|
37
47
|
}
|
|
38
48
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"$id": "http://eligius.com/schema/when-operation.json",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"title": "The when schema",
|
|
7
|
-
"description": "When the given expression evaluates to false, subsequent operations will be skipped\nuntil an {@link endWhen} or {@link otherwise} operation is encountered.\n\nPractically, this means an `if` or `if`/`else` statement control flow implementation in a list of operations.\n\nThe expression is passed in as a formatted string.\nThe left and right values of the expression can be defined like this:\n\n'constant': for a constant string\n100: for a constant number\
|
|
7
|
+
"description": "When the given expression evaluates to false, subsequent operations will be skipped\nuntil an {@link endWhen} or {@link otherwise} operation is encountered.\n\nPractically, this means an `if` or `if`/`else` statement control flow implementation in a list of operations.\n\nThe expression is passed in as a formatted string.\nThe left and right values of the expression can be defined like this:\n\n'constant': for a constant string\n100: for a constant number\n$operationData.foo: for an operation data value\n$globaldata.foo: for a global data value\n$scope.loopIndex: for a scope value",
|
|
8
8
|
"required": [
|
|
9
9
|
"systemName",
|
|
10
10
|
"operationData"
|
|
@@ -65,6 +65,9 @@
|
|
|
65
65
|
{
|
|
66
66
|
"$ref": "operations/animate-with-class.json"
|
|
67
67
|
},
|
|
68
|
+
{
|
|
69
|
+
"$ref": "operations/break-for-each.json"
|
|
70
|
+
},
|
|
68
71
|
{
|
|
69
72
|
"$ref": "operations/broadcast-event.json"
|
|
70
73
|
},
|
|
@@ -77,6 +80,9 @@
|
|
|
77
80
|
{
|
|
78
81
|
"$ref": "operations/clear-operation-data.json"
|
|
79
82
|
},
|
|
83
|
+
{
|
|
84
|
+
"$ref": "operations/continue-for-each.json"
|
|
85
|
+
},
|
|
80
86
|
{
|
|
81
87
|
"$ref": "operations/create-element.json"
|
|
82
88
|
},
|
|
@@ -212,6 +218,9 @@
|
|
|
212
218
|
{
|
|
213
219
|
"$ref": "operations/animate-with-class.json"
|
|
214
220
|
},
|
|
221
|
+
{
|
|
222
|
+
"$ref": "operations/break-for-each.json"
|
|
223
|
+
},
|
|
215
224
|
{
|
|
216
225
|
"$ref": "operations/broadcast-event.json"
|
|
217
226
|
},
|
|
@@ -224,6 +233,9 @@
|
|
|
224
233
|
{
|
|
225
234
|
"$ref": "operations/clear-operation-data.json"
|
|
226
235
|
},
|
|
236
|
+
{
|
|
237
|
+
"$ref": "operations/continue-for-each.json"
|
|
238
|
+
},
|
|
227
239
|
{
|
|
228
240
|
"$ref": "operations/create-element.json"
|
|
229
241
|
},
|