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,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/get-controller-instance-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The getControllerInstance schema",
|
|
7
|
+
"description": "This operation retrieves an instance of the given controller name.\nIt assigns this instance to the `controllerInstance` property on the current operation data",
|
|
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": "getControllerInstance"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"systemName": {
|
|
31
|
+
"$id": "#/properties/operationData/systemName",
|
|
32
|
+
"type": "array"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/get-element-dimensions-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The getElementDimensions schema",
|
|
7
|
+
"description": "This operation calculates the width and height of the given selected element.\nIt assigns this struct to the dimensions property on the current operation data.\nOptionally the width and height can be modified using the given modifier string.\n\nThe modifier string is formatted in the following way:\n\n<operator><amount><optional-side><optional-precentage>|<ratio-definition>\n\nWhere the ratio modifier is formatted in the following way:\n<side>[ar=<ratio-left>-<ratio-right>]\n\nFor example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:\nit will add a value of 100 to the height and modify the width by a ratio of 8 to 1 relative to the height.",
|
|
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": "getElementDimensions"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"modifier": {
|
|
31
|
+
"$id": "#/properties/operationData/modifier",
|
|
32
|
+
"type": [
|
|
33
|
+
"string"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/get-import-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The getImport schema",
|
|
7
|
+
"description": "This operation retrieves the import specified by the given `systemName` and\nassigns it to the `importedInstance` property on the current operaton date.",
|
|
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": "getImport"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"systemName": {
|
|
31
|
+
"$id": "#/properties/operationData/systemName",
|
|
32
|
+
"type": [
|
|
33
|
+
"string"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/get-query-params-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The getQueryParams schema",
|
|
7
|
+
"description": "This operation retrieves the current query parameters from the browser's address bar and places\nthem on the returned operation data.",
|
|
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": "getQueryParams"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"defaultValues": {
|
|
31
|
+
"$id": "#/properties/operationData/defaultValues",
|
|
32
|
+
"type": [
|
|
33
|
+
"object"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/invoke-object-method-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The invokeObjectMethod schema",
|
|
7
|
+
"description": "This operation invokes the specified method on the given object with the given optional arguments\nand assigns the result to the `methodResult` operationdata property.",
|
|
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": "invokeObjectMethod"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"methodName": {
|
|
31
|
+
"$id": "#/properties/operationData/methodName",
|
|
32
|
+
"type": [
|
|
33
|
+
"string"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"methodArguments": {
|
|
37
|
+
"$id": "#/properties/operationData/methodArguments",
|
|
38
|
+
"type": [
|
|
39
|
+
"array"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/load-json-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The loadJson schema",
|
|
7
|
+
"description": "This operation loads a JSON file from the specified url and assigns it to the json\nproperty on the current operation data.\n\nIf the cache property is set to true and a cached value already exists, this is assigned\ninstead of re-retrieving it from the url.",
|
|
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": "loadJson"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"url": {
|
|
31
|
+
"$id": "#/properties/operationData/url",
|
|
32
|
+
"type": [
|
|
33
|
+
"string"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"cache": {
|
|
37
|
+
"$id": "#/properties/operationData/cache",
|
|
38
|
+
"type": [
|
|
39
|
+
"boolean"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/log-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The log schema",
|
|
7
|
+
"description": "This operation logs the specified value, or, when no logValue property has been assigned\nit will log the current operation data, global data and scope to the console",
|
|
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": "log"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"logValue": {
|
|
31
|
+
"$id": "#/properties/operationData/logValue",
|
|
32
|
+
"type": [
|
|
33
|
+
"object",
|
|
34
|
+
"string",
|
|
35
|
+
"number",
|
|
36
|
+
"boolean",
|
|
37
|
+
"array"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"logName": {
|
|
41
|
+
"$id": "#/properties/operationData/logName",
|
|
42
|
+
"type": [
|
|
43
|
+
"string"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/math-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The math schema",
|
|
7
|
+
"description": "This operation performs the given math function with the specified arguments.",
|
|
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": "math"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"args": {
|
|
31
|
+
"$id": "#/properties/operationData/args",
|
|
32
|
+
"type": [
|
|
33
|
+
"array"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"functionName": {
|
|
37
|
+
"$id": "#/properties/operationData/functionName",
|
|
38
|
+
"type": [
|
|
39
|
+
"string"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/otherwise-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The otherwise schema",
|
|
7
|
+
"description": "If the preceeding {@link when} operation evaluates to `true` subsequent operations will\nbe skipped until an {@link endWhen} operation is encountered.",
|
|
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": "otherwise"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/remove-class-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The removeClass schema",
|
|
7
|
+
"description": "This operation removes the spcified class name from the given selected element.",
|
|
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": "removeClass"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"className": {
|
|
31
|
+
"$id": "#/properties/operationData/className",
|
|
32
|
+
"type": [
|
|
33
|
+
"string"
|
|
34
|
+
],
|
|
35
|
+
"pattern": ".-?[_a-zA-Z]+[_a-zA-Z0-9-]*"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/remove-controller-from-element-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The removeControllerFromElement schema",
|
|
7
|
+
"description": "This operation removes the controller with the specified name from the given selected element.",
|
|
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": "removeControllerFromElement"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"controllerName": {
|
|
31
|
+
"$id": "#/properties/operationData/controllerName",
|
|
32
|
+
"type": [
|
|
33
|
+
{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": [
|
|
36
|
+
"EventListenerController",
|
|
37
|
+
"LabelController",
|
|
38
|
+
"LottieController",
|
|
39
|
+
"NavigationController",
|
|
40
|
+
"ProgressbarController",
|
|
41
|
+
"RoutingController",
|
|
42
|
+
"SubtitlesController"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/remove-element-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The removeElement schema",
|
|
7
|
+
"description": "This operation removes the given selected element from the DOM.",
|
|
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": "removeElement"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/remove-properties-from-operation-data-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The removePropertiesFromOperationData schema",
|
|
7
|
+
"description": "This operation removes the given list of properties from the current operation data.\nIt will also remove the property `propertyNames` from the result.",
|
|
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": "removePropertiesFromOperationData"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"propertyNames": {
|
|
31
|
+
"$id": "#/properties/operationData/propertyNames",
|
|
32
|
+
"type": [
|
|
33
|
+
"array"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/reparent-element-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The reparentElement schema",
|
|
7
|
+
"description": "This operation moves the given selected element to the new parent that is defined\nby the specified `newParentSelector`.",
|
|
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": "reparentElement"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"newParentSelector": {
|
|
31
|
+
"$id": "#/properties/operationData/newParentSelector",
|
|
32
|
+
"type": [
|
|
33
|
+
"string"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/request-action-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The requestAction schema",
|
|
7
|
+
"description": "This operation requests an action instance with the specified name and assigns it\nto the `actionInstance` property on the current operation data.",
|
|
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": "requestAction"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"systemName": {
|
|
31
|
+
"$id": "#/properties/operationData/systemName",
|
|
32
|
+
"type": [
|
|
33
|
+
"string"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {},
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"$id": "http://eligius.com/schema/select-element-operation.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"title": "The selectElement schema",
|
|
7
|
+
"description": "This operation selects one or more elements using the specified selector.\n\nIf `useSelectedElementAsRoot` is set to true and a valid DOM element is assigned\nto the current operation data's `selectedElement` property\nthen the element will be looked for only in the descendant elements of this DOM element.",
|
|
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": "selectElement"
|
|
24
|
+
},
|
|
25
|
+
"operationData": {
|
|
26
|
+
"$id": "#/properties/operationData",
|
|
27
|
+
"type": "object",
|
|
28
|
+
"title": "The Operationdata Schema",
|
|
29
|
+
"properties": {
|
|
30
|
+
"selector": {
|
|
31
|
+
"$id": "#/properties/operationData/selector",
|
|
32
|
+
"type": [
|
|
33
|
+
"string"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"useSelectedElementAsRoot": {
|
|
37
|
+
"$id": "#/properties/operationData/useSelectedElementAsRoot",
|
|
38
|
+
"type": [
|
|
39
|
+
"boolean"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|