eligius 1.2.0 → 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 +338 -326
- package/jsonschema/endable-action.json +338 -326
- package/jsonschema/event-action.json +199 -193
- package/jsonschema/operation-templates/add-class.json +40 -0
- package/jsonschema/operation-templates/add-controller-to-element.json +26 -0
- package/jsonschema/operation-templates/add-globals-to-operation.json +39 -0
- package/jsonschema/operation-templates/animate-with-class.json +46 -0
- package/jsonschema/operation-templates/animate.json +51 -0
- package/jsonschema/operation-templates/break-for-each.json +26 -0
- package/jsonschema/operation-templates/broadcast-event.json +51 -0
- package/jsonschema/operation-templates/calc.json +49 -0
- package/jsonschema/operation-templates/clear-element.json +26 -0
- package/jsonschema/operation-templates/clear-operation-data.json +39 -0
- package/jsonschema/operation-templates/continue-for-each.json +26 -0
- package/jsonschema/operation-templates/create-element.json +158 -0
- package/jsonschema/operation-templates/custom-function.json +39 -0
- package/jsonschema/operation-templates/end-action.json +39 -0
- package/jsonschema/operation-templates/end-for-each.json +26 -0
- package/jsonschema/operation-templates/end-when.json +26 -0
- package/jsonschema/operation-templates/extend-controller.json +39 -0
- package/jsonschema/operation-templates/for-each.json +40 -0
- package/jsonschema/operation-templates/get-attributes-from-element.json +39 -0
- package/jsonschema/operation-templates/get-controller-from-element.json +50 -0
- package/jsonschema/operation-templates/get-controller-instance.json +37 -0
- package/jsonschema/operation-templates/get-element-dimensions.json +39 -0
- package/jsonschema/operation-templates/get-import.json +39 -0
- package/jsonschema/operation-templates/get-query-params.json +39 -0
- package/jsonschema/operation-templates/invoke-object-method.json +45 -0
- package/jsonschema/operation-templates/load-json.json +45 -0
- package/jsonschema/operation-templates/log.json +49 -0
- package/jsonschema/operation-templates/math.json +45 -0
- package/jsonschema/operation-templates/otherwise.json +26 -0
- package/jsonschema/operation-templates/remove-class.json +40 -0
- package/jsonschema/operation-templates/remove-controller-from-element.json +50 -0
- package/jsonschema/operation-templates/remove-element.json +26 -0
- package/jsonschema/operation-templates/remove-properties-from-operation-data.json +39 -0
- package/jsonschema/operation-templates/reparent-element.json +39 -0
- package/jsonschema/operation-templates/request-action.json +39 -0
- package/jsonschema/operation-templates/select-element.json +45 -0
- package/jsonschema/operation-templates/set-data.json +39 -0
- package/jsonschema/operation-templates/set-element-attributes.json +39 -0
- package/jsonschema/operation-templates/set-element-content.json +41 -0
- package/jsonschema/operation-templates/set-global-data.json +39 -0
- package/jsonschema/operation-templates/set-operation-data.json +45 -0
- package/jsonschema/operation-templates/set-style.json +39 -0
- package/jsonschema/operation-templates/set-variable.json +49 -0
- package/jsonschema/operation-templates/start-action.json +39 -0
- package/jsonschema/operation-templates/toggle-class.json +40 -0
- package/jsonschema/operation-templates/toggle-element.json +26 -0
- package/jsonschema/operation-templates/wait.json +39 -0
- package/jsonschema/operation-templates/when.json +39 -0
- package/jsonschema/operations/add-class.json +44 -0
- package/jsonschema/operations/add-controller-to-element.json +26 -0
- package/jsonschema/operations/add-globals-to-operation.json +43 -0
- package/jsonschema/operations/animate-with-class.json +50 -0
- package/jsonschema/operations/animate.json +56 -0
- package/jsonschema/operations/break-for-each.json +26 -0
- package/jsonschema/operations/broadcast-event.json +56 -0
- package/jsonschema/operations/calc.json +55 -0
- package/jsonschema/operations/clear-element.json +26 -0
- package/jsonschema/operations/clear-operation-data.json +41 -0
- package/jsonschema/operations/continue-for-each.json +26 -0
- package/jsonschema/operations/create-element.json +162 -0
- package/jsonschema/operations/custom-function.json +43 -0
- package/jsonschema/operations/end-action.json +43 -0
- package/jsonschema/operations/end-for-each.json +26 -0
- package/jsonschema/operations/end-when.json +26 -0
- package/jsonschema/operations/extend-controller.json +43 -0
- package/jsonschema/operations/for-each.json +44 -0
- package/jsonschema/operations/get-attributes-from-element.json +43 -0
- package/jsonschema/operations/get-controller-from-element.json +54 -0
- package/jsonschema/operations/get-controller-instance.json +41 -0
- package/jsonschema/operations/get-element-dimensions.json +41 -0
- package/jsonschema/operations/get-import.json +43 -0
- package/jsonschema/operations/get-query-params.json +41 -0
- package/jsonschema/operations/invoke-object-method.json +49 -0
- package/jsonschema/operations/load-json.json +49 -0
- package/jsonschema/operations/log.json +51 -0
- package/jsonschema/operations/math.json +50 -0
- package/jsonschema/operations/otherwise.json +26 -0
- package/jsonschema/operations/remove-class.json +44 -0
- package/jsonschema/operations/remove-controller-from-element.json +54 -0
- package/jsonschema/operations/remove-element.json +26 -0
- package/jsonschema/operations/remove-properties-from-operation-data.json +43 -0
- package/jsonschema/operations/reparent-element.json +43 -0
- package/jsonschema/operations/request-action.json +43 -0
- package/jsonschema/operations/select-element.json +49 -0
- package/jsonschema/operations/set-data.json +43 -0
- package/jsonschema/operations/set-element-attributes.json +43 -0
- package/jsonschema/operations/set-element-content.json +43 -0
- package/jsonschema/operations/set-global-data.json +43 -0
- package/jsonschema/operations/set-operation-data.json +49 -0
- package/jsonschema/operations/set-style.json +43 -0
- package/jsonschema/operations/set-variable.json +54 -0
- package/jsonschema/operations/start-action.json +41 -0
- package/jsonschema/operations/toggle-class.json +44 -0
- package/jsonschema/operations/toggle-element.json +26 -0
- package/jsonschema/operations/wait.json +43 -0
- package/jsonschema/operations/when.json +43 -0
- package/jsonschema/timeline-action.json +353 -341
- package/package.json +2 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/when-operation.json",
|
|
5
|
+
"type": "object",
|
|
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\n$operationData.foo: for an operation data value\n$globaldata.foo: for a global data value\n$scope.loopIndex: for a scope value",
|
|
8
|
+
"required": [
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
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
|
+
"systemName": {
|
|
23
|
+
"$id": "#/properties/systemName",
|
|
24
|
+
"const": "when"
|
|
25
|
+
},
|
|
26
|
+
"operationData": {
|
|
27
|
+
"$id": "#/properties/operationData",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"title": "The Operationdata Schema",
|
|
30
|
+
"required": [
|
|
31
|
+
"expression"
|
|
32
|
+
],
|
|
33
|
+
"properties": {
|
|
34
|
+
"expression": {
|
|
35
|
+
"$id": "#/properties/operationData/expression",
|
|
36
|
+
"type": [
|
|
37
|
+
"string"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|