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