eligius 2.1.0 → 2.2.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 (173) hide show
  1. package/dist/index.d.mts +452 -227
  2. package/dist/index.mjs +356 -283
  3. package/dist/index.mjs.map +1 -1
  4. package/jsonschema/eligius-configuration.json +698 -125
  5. package/jsonschema/operations/add-class.json +20 -23
  6. package/jsonschema/operations/add-controller-to-element.json +13 -12
  7. package/jsonschema/operations/animate-with-class.json +21 -25
  8. package/jsonschema/operations/animate.json +23 -31
  9. package/jsonschema/operations/announce-to-screen-reader.json +20 -24
  10. package/jsonschema/operations/broadcast-event.json +19 -31
  11. package/jsonschema/operations/calc.json +24 -30
  12. package/jsonschema/operations/clear-element.json +24 -13
  13. package/jsonschema/operations/clear-operation-data.json +15 -18
  14. package/jsonschema/operations/compare-date.json +51 -23
  15. package/jsonschema/operations/concatenate-strings.json +22 -24
  16. package/jsonschema/operations/create-element.json +11 -144
  17. package/jsonschema/operations/custom-function.json +15 -22
  18. package/jsonschema/operations/end-action.json +19 -22
  19. package/jsonschema/operations/extend-controller.json +19 -22
  20. package/jsonschema/operations/filter-array.json +40 -26
  21. package/jsonschema/operations/find-in-array.json +40 -26
  22. package/jsonschema/operations/for-each.json +23 -22
  23. package/jsonschema/operations/format-date.json +33 -22
  24. package/jsonschema/operations/format-text.json +22 -20
  25. package/jsonschema/operations/get-attributes-from-element.json +28 -22
  26. package/jsonschema/operations/get-controller-from-element.json +23 -34
  27. package/jsonschema/operations/get-controller-instance.json +11 -25
  28. package/jsonschema/operations/get-current-time.json +23 -13
  29. package/jsonschema/operations/get-element-dimensions.json +30 -20
  30. package/jsonschema/operations/get-focused-element.json +20 -13
  31. package/jsonschema/operations/get-form-data.json +27 -13
  32. package/jsonschema/operations/get-import.json +17 -23
  33. package/jsonschema/operations/get-query-params.json +17 -18
  34. package/jsonschema/operations/get-scroll-position.json +23 -13
  35. package/jsonschema/operations/get-text-content.json +27 -13
  36. package/jsonschema/operations/http-delete.json +20 -24
  37. package/jsonschema/operations/http-post.json +21 -30
  38. package/jsonschema/operations/http-put.json +21 -30
  39. package/jsonschema/operations/invoke-object-method.json +26 -24
  40. package/jsonschema/operations/is-element-in-viewport.json +27 -13
  41. package/jsonschema/operations/load-from-storage.json +19 -26
  42. package/jsonschema/operations/load-json.json +21 -24
  43. package/jsonschema/operations/log.json +13 -26
  44. package/jsonschema/operations/map-array.json +39 -22
  45. package/jsonschema/operations/math.json +33 -27
  46. package/jsonschema/operations/remove-class.json +20 -23
  47. package/jsonschema/operations/remove-controller-from-element.json +20 -34
  48. package/jsonschema/operations/remove-element.json +24 -13
  49. package/jsonschema/operations/remove-properties-from-operation-data.json +18 -22
  50. package/jsonschema/operations/reparent-element.json +20 -22
  51. package/jsonschema/operations/replace-string.json +32 -25
  52. package/jsonschema/operations/replace-text.json +32 -25
  53. package/jsonschema/operations/request-action.json +18 -22
  54. package/jsonschema/operations/save-to-storage.json +19 -32
  55. package/jsonschema/operations/scroll-to-element.json +21 -22
  56. package/jsonschema/operations/scroll-to-position.json +18 -29
  57. package/jsonschema/operations/select-element.json +19 -24
  58. package/jsonschema/operations/set-data.json +15 -22
  59. package/jsonschema/operations/set-element-attributes.json +20 -22
  60. package/jsonschema/operations/set-element-content.json +36 -20
  61. package/jsonschema/operations/set-focus.json +24 -13
  62. package/jsonschema/operations/set-form-value.json +24 -20
  63. package/jsonschema/operations/set-global-data.json +18 -22
  64. package/jsonschema/operations/set-style.json +20 -22
  65. package/jsonschema/operations/set-variable.json +17 -31
  66. package/jsonschema/operations/set.json +40 -0
  67. package/jsonschema/operations/sort-array.json +39 -22
  68. package/jsonschema/operations/split-string.json +34 -22
  69. package/jsonschema/operations/start-action.json +19 -20
  70. package/jsonschema/operations/substring-text.json +23 -24
  71. package/jsonschema/operations/toggle-class.json +21 -23
  72. package/jsonschema/operations/toggle-element.json +24 -13
  73. package/jsonschema/operations/toggle-form-element.json +20 -22
  74. package/jsonschema/operations/validate-form.json +25 -18
  75. package/jsonschema/operations/wait.json +16 -22
  76. package/jsonschema/operations/when.json +15 -22
  77. package/package.json +4 -2
  78. package/jsonschema/endable-action-template.json +0 -527
  79. package/jsonschema/endable-action.json +0 -527
  80. package/jsonschema/engine-config.json +0 -21
  81. package/jsonschema/event-action.json +0 -295
  82. package/jsonschema/mediaplayer-timeline-provider-settings.json +0 -95
  83. package/jsonschema/operation-templates/add-class.json +0 -40
  84. package/jsonschema/operation-templates/add-controller-to-element.json +0 -26
  85. package/jsonschema/operation-templates/add-globals-to-operation.json +0 -39
  86. package/jsonschema/operation-templates/animate-with-class.json +0 -44
  87. package/jsonschema/operation-templates/animate.json +0 -51
  88. package/jsonschema/operation-templates/announce-to-screen-reader.json +0 -43
  89. package/jsonschema/operation-templates/break-for-each.json +0 -26
  90. package/jsonschema/operation-templates/broadcast-event.json +0 -51
  91. package/jsonschema/operation-templates/calc.json +0 -49
  92. package/jsonschema/operation-templates/clear-element.json +0 -26
  93. package/jsonschema/operation-templates/clear-operation-data.json +0 -37
  94. package/jsonschema/operation-templates/clear-storage.json +0 -41
  95. package/jsonschema/operation-templates/compare-date.json +0 -41
  96. package/jsonschema/operation-templates/concatenate-strings.json +0 -43
  97. package/jsonschema/operation-templates/continue-for-each.json +0 -26
  98. package/jsonschema/operation-templates/create-element.json +0 -156
  99. package/jsonschema/operation-templates/custom-function.json +0 -39
  100. package/jsonschema/operation-templates/end-action.json +0 -39
  101. package/jsonschema/operation-templates/end-for-each.json +0 -26
  102. package/jsonschema/operation-templates/end-when.json +0 -26
  103. package/jsonschema/operation-templates/extend-controller.json +0 -39
  104. package/jsonschema/operation-templates/filter-array.json +0 -47
  105. package/jsonschema/operation-templates/find-in-array.json +0 -47
  106. package/jsonschema/operation-templates/for-each.json +0 -40
  107. package/jsonschema/operation-templates/format-date.json +0 -39
  108. package/jsonschema/operation-templates/format-text.json +0 -37
  109. package/jsonschema/operation-templates/get-attributes-from-element.json +0 -39
  110. package/jsonschema/operation-templates/get-controller-from-element.json +0 -51
  111. package/jsonschema/operation-templates/get-controller-instance.json +0 -37
  112. package/jsonschema/operation-templates/get-current-time.json +0 -26
  113. package/jsonschema/operation-templates/get-element-dimensions.json +0 -39
  114. package/jsonschema/operation-templates/get-focused-element.json +0 -26
  115. package/jsonschema/operation-templates/get-form-data.json +0 -26
  116. package/jsonschema/operation-templates/get-import.json +0 -39
  117. package/jsonschema/operation-templates/get-query-params.json +0 -37
  118. package/jsonschema/operation-templates/get-scroll-position.json +0 -26
  119. package/jsonschema/operation-templates/get-text-content.json +0 -26
  120. package/jsonschema/operation-templates/http-delete.json +0 -43
  121. package/jsonschema/operation-templates/http-post.json +0 -49
  122. package/jsonschema/operation-templates/http-put.json +0 -49
  123. package/jsonschema/operation-templates/invoke-object-method.json +0 -43
  124. package/jsonschema/operation-templates/is-element-in-viewport.json +0 -26
  125. package/jsonschema/operation-templates/load-from-storage.json +0 -43
  126. package/jsonschema/operation-templates/load-json.json +0 -43
  127. package/jsonschema/operation-templates/log.json +0 -47
  128. package/jsonschema/operation-templates/map-array.json +0 -39
  129. package/jsonschema/operation-templates/math.json +0 -45
  130. package/jsonschema/operation-templates/otherwise.json +0 -26
  131. package/jsonschema/operation-templates/remove-class.json +0 -40
  132. package/jsonschema/operation-templates/remove-controller-from-element.json +0 -51
  133. package/jsonschema/operation-templates/remove-element.json +0 -26
  134. package/jsonschema/operation-templates/remove-properties-from-operation-data.json +0 -39
  135. package/jsonschema/operation-templates/reparent-element.json +0 -39
  136. package/jsonschema/operation-templates/replace-string.json +0 -43
  137. package/jsonschema/operation-templates/replace-text.json +0 -43
  138. package/jsonschema/operation-templates/request-action.json +0 -39
  139. package/jsonschema/operation-templates/save-to-storage.json +0 -49
  140. package/jsonschema/operation-templates/scroll-to-element.json +0 -45
  141. package/jsonschema/operation-templates/scroll-to-position.json +0 -49
  142. package/jsonschema/operation-templates/select-element.json +0 -43
  143. package/jsonschema/operation-templates/set-data.json +0 -39
  144. package/jsonschema/operation-templates/set-element-attributes.json +0 -39
  145. package/jsonschema/operation-templates/set-element-content.json +0 -41
  146. package/jsonschema/operation-templates/set-focus.json +0 -26
  147. package/jsonschema/operation-templates/set-form-value.json +0 -37
  148. package/jsonschema/operation-templates/set-global-data.json +0 -39
  149. package/jsonschema/operation-templates/set-operation-data.json +0 -43
  150. package/jsonschema/operation-templates/set-style.json +0 -39
  151. package/jsonschema/operation-templates/set-variable.json +0 -49
  152. package/jsonschema/operation-templates/sort-array.json +0 -45
  153. package/jsonschema/operation-templates/split-string.json +0 -41
  154. package/jsonschema/operation-templates/start-action.json +0 -39
  155. package/jsonschema/operation-templates/substring-text.json +0 -43
  156. package/jsonschema/operation-templates/toggle-class.json +0 -40
  157. package/jsonschema/operation-templates/toggle-element.json +0 -26
  158. package/jsonschema/operation-templates/toggle-form-element.json +0 -39
  159. package/jsonschema/operation-templates/validate-form.json +0 -37
  160. package/jsonschema/operation-templates/wait.json +0 -39
  161. package/jsonschema/operation-templates/when.json +0 -39
  162. package/jsonschema/operations/add-globals-to-operation.json +0 -43
  163. package/jsonschema/operations/break-for-each.json +0 -26
  164. package/jsonschema/operations/clear-storage.json +0 -45
  165. package/jsonschema/operations/continue-for-each.json +0 -26
  166. package/jsonschema/operations/end-for-each.json +0 -26
  167. package/jsonschema/operations/end-when.json +0 -26
  168. package/jsonschema/operations/otherwise.json +0 -26
  169. package/jsonschema/operations/set-operation-data.json +0 -47
  170. package/jsonschema/raf-timeline-provider-settings.json +0 -141
  171. package/jsonschema/timeline-action.json +0 -542
  172. package/jsonschema/timeline-provider-settings.json +0 -19
  173. package/jsonschema/timeline.json +0 -73
@@ -1,45 +1,57 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/split-string-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/split-string.json",
5
4
  "type": "object",
6
- "title": "The splitString schema",
7
- "description": "Splits a string into an array by delimiter (string or regex).",
5
+ "title": "splitString Operation",
6
+ "description": "Schema for the splitString operation",
8
7
  "required": [
9
8
  "systemName",
10
9
  "operationData"
11
10
  ],
12
11
  "properties": {
13
12
  "id": {
14
- "$id": "#/properties/id",
15
13
  "type": "string",
16
- "title": "The Id Schema",
17
- "examples": [
18
- "123e4567-e89b-12d3-a456-426614174000"
19
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
20
15
  "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
16
  },
22
17
  "systemName": {
23
- "$id": "#/properties/systemName",
24
- "const": "splitString"
18
+ "const": "splitString",
19
+ "description": "The operation system name"
25
20
  },
26
21
  "operationData": {
27
- "$id": "#/properties/operationData",
28
22
  "type": "object",
29
- "title": "The Operationdata Schema",
30
- "required": [
31
- "delimiter"
32
- ],
23
+ "description": "Operation-specific configuration data",
33
24
  "properties": {
25
+ "textContent": {
26
+ "type": "string"
27
+ },
34
28
  "delimiter": {
35
- "$id": "#/properties/operationData/delimiter",
36
- "type": "array"
29
+ "anyOf": [
30
+ {
31
+ "type": "string"
32
+ },
33
+ {
34
+ "type": "string",
35
+ "format": "regex"
36
+ }
37
+ ]
37
38
  },
38
39
  "limit": {
39
- "$id": "#/properties/operationData/limit",
40
- "type": "array"
40
+ "type": "number"
41
+ },
42
+ "resultArray": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string"
46
+ }
41
47
  }
42
- }
48
+ },
49
+ "additionalProperties": true,
50
+ "required": [
51
+ "textContent",
52
+ "delimiter"
53
+ ]
43
54
  }
44
- }
55
+ },
56
+ "additionalProperties": false
45
57
  }
@@ -1,41 +1,40 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/start-action-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/start-action.json",
5
4
  "type": "object",
6
- "title": "The startAction schema",
7
- "description": "This operation starts the specified action instance using the given action operation data.\n\nThe action operation data is first merged with the current operation data before it is\npassed on to the action. After the action has completed the action operation data properties\nare removed from the current operation data.",
5
+ "title": "startAction Operation",
6
+ "description": "Schema for the startAction operation",
8
7
  "required": [
9
8
  "systemName",
10
9
  "operationData"
11
10
  ],
12
11
  "properties": {
13
12
  "id": {
14
- "$id": "#/properties/id",
15
13
  "type": "string",
16
- "title": "The Id Schema",
17
- "examples": [
18
- "123e4567-e89b-12d3-a456-426614174000"
19
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
20
15
  "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
16
  },
22
17
  "systemName": {
23
- "$id": "#/properties/systemName",
24
- "const": "startAction"
18
+ "const": "startAction",
19
+ "description": "The operation system name"
25
20
  },
26
21
  "operationData": {
27
- "$id": "#/properties/operationData",
28
22
  "type": "object",
29
- "title": "The Operationdata Schema",
30
- "required": [],
23
+ "description": "Operation-specific configuration data",
31
24
  "properties": {
25
+ "actionInstance": {
26
+ "$ref": "#/definitions/IAction"
27
+ },
32
28
  "actionOperationData": {
33
- "$id": "#/properties/operationData/actionOperationData",
34
- "type": [
35
- "object"
36
- ]
29
+ "type": "object"
37
30
  }
38
- }
31
+ },
32
+ "additionalProperties": true,
33
+ "required": [
34
+ "actionInstance",
35
+ "actionOperationData"
36
+ ]
39
37
  }
40
- }
38
+ },
39
+ "additionalProperties": false
41
40
  }
@@ -1,47 +1,46 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/substring-text-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/substring-text.json",
5
4
  "type": "object",
6
- "title": "The substringText schema",
7
- "description": "Extracts a substring from text between start and end indices.",
5
+ "title": "substringText Operation",
6
+ "description": "Schema for the substringText operation",
8
7
  "required": [
9
8
  "systemName",
10
9
  "operationData"
11
10
  ],
12
11
  "properties": {
13
12
  "id": {
14
- "$id": "#/properties/id",
15
13
  "type": "string",
16
- "title": "The Id Schema",
17
- "examples": [
18
- "123e4567-e89b-12d3-a456-426614174000"
19
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
20
15
  "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
16
  },
22
17
  "systemName": {
23
- "$id": "#/properties/systemName",
24
- "const": "substringText"
18
+ "const": "substringText",
19
+ "description": "The operation system name"
25
20
  },
26
21
  "operationData": {
27
- "$id": "#/properties/operationData",
28
22
  "type": "object",
29
- "title": "The Operationdata Schema",
30
- "required": [
31
- "start"
32
- ],
23
+ "description": "Operation-specific configuration data",
33
24
  "properties": {
25
+ "textContent": {
26
+ "type": "string"
27
+ },
34
28
  "start": {
35
- "$id": "#/properties/operationData/start",
36
- "type": [
37
- "number"
38
- ]
29
+ "type": "number"
39
30
  },
40
31
  "end": {
41
- "$id": "#/properties/operationData/end",
42
- "type": "array"
32
+ "type": "number"
33
+ },
34
+ "substring": {
35
+ "type": "string"
43
36
  }
44
- }
37
+ },
38
+ "additionalProperties": true,
39
+ "required": [
40
+ "textContent",
41
+ "start"
42
+ ]
45
43
  }
46
- }
44
+ },
45
+ "additionalProperties": false
47
46
  }
@@ -1,44 +1,42 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/toggle-class-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/toggle-class.json",
5
4
  "type": "object",
6
- "title": "The toggleClass schema",
7
- "description": "This operation toggles the specfied class name on the given selected element.\n\nMeaning, if the specified class name exists on the given element it will be removed,\notherwise it will be added.",
5
+ "title": "toggleClass Operation",
6
+ "description": "Schema for the toggleClass operation",
8
7
  "required": [
9
8
  "systemName",
10
9
  "operationData"
11
10
  ],
12
11
  "properties": {
13
12
  "id": {
14
- "$id": "#/properties/id",
15
13
  "type": "string",
16
- "title": "The Id Schema",
17
- "examples": [
18
- "123e4567-e89b-12d3-a456-426614174000"
19
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
20
15
  "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
16
  },
22
17
  "systemName": {
23
- "$id": "#/properties/systemName",
24
- "const": "toggleClass"
18
+ "const": "toggleClass",
19
+ "description": "The operation system name"
25
20
  },
26
21
  "operationData": {
27
- "$id": "#/properties/operationData",
28
22
  "type": "object",
29
- "title": "The Operationdata Schema",
30
- "required": [
31
- "className"
32
- ],
23
+ "description": "Operation-specific configuration data",
33
24
  "properties": {
25
+ "selectedElement": {
26
+ "description": "The element on which the class will be toggled",
27
+ "type": "object"
28
+ },
34
29
  "className": {
35
- "$id": "#/properties/operationData/className",
36
- "type": [
37
- "string"
38
- ],
39
- "pattern": ".-?[_a-zA-Z]+[_a-zA-Z0-9-]*"
30
+ "type": "string",
31
+ "description": "The class that will be toggled"
40
32
  }
41
- }
33
+ },
34
+ "additionalProperties": true,
35
+ "required": [
36
+ "selectedElement",
37
+ "className"
38
+ ]
42
39
  }
43
- }
40
+ },
41
+ "additionalProperties": false
44
42
  }
@@ -1,26 +1,37 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/toggle-element-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/toggle-element.json",
5
4
  "type": "object",
6
- "title": "The toggleElement schema",
7
- "description": "This operation toggles the visibility of the given selected element.\n\nMeaning, if the element is hidden, it will be made visible, otherwise\nit will be hidden.",
5
+ "title": "toggleElement Operation",
6
+ "description": "Schema for the toggleElement operation",
8
7
  "required": [
9
- "systemName"
8
+ "systemName",
9
+ "operationData"
10
10
  ],
11
11
  "properties": {
12
12
  "id": {
13
- "$id": "#/properties/id",
14
13
  "type": "string",
15
- "title": "The Id Schema",
16
- "examples": [
17
- "123e4567-e89b-12d3-a456-426614174000"
18
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
19
15
  "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
16
  },
21
17
  "systemName": {
22
- "$id": "#/properties/systemName",
23
- "const": "toggleElement"
18
+ "const": "toggleElement",
19
+ "description": "The operation system name"
20
+ },
21
+ "operationData": {
22
+ "type": "object",
23
+ "description": "Operation-specific configuration data",
24
+ "properties": {
25
+ "selectedElement": {
26
+ "description": "The element whose visibility will be toggled",
27
+ "type": "object"
28
+ }
29
+ },
30
+ "additionalProperties": true,
31
+ "required": [
32
+ "selectedElement"
33
+ ]
24
34
  }
25
- }
35
+ },
36
+ "additionalProperties": false
26
37
  }
@@ -1,43 +1,41 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/toggle-form-element-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/toggle-form-element.json",
5
4
  "type": "object",
6
- "title": "The toggleFormElement schema",
7
- "description": "Enables or disables form input elements (inputs, selects, textareas, buttons).\n\nSets the `disabled` property on the element. When `enabled` is true, removes the disabled\nattribute; when false, adds the disabled attribute.",
5
+ "title": "toggleFormElement Operation",
6
+ "description": "Schema for the toggleFormElement operation",
8
7
  "required": [
9
8
  "systemName",
10
9
  "operationData"
11
10
  ],
12
11
  "properties": {
13
12
  "id": {
14
- "$id": "#/properties/id",
15
13
  "type": "string",
16
- "title": "The Id Schema",
17
- "examples": [
18
- "123e4567-e89b-12d3-a456-426614174000"
19
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
20
15
  "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
16
  },
22
17
  "systemName": {
23
- "$id": "#/properties/systemName",
24
- "const": "toggleFormElement"
18
+ "const": "toggleFormElement",
19
+ "description": "The operation system name"
25
20
  },
26
21
  "operationData": {
27
- "$id": "#/properties/operationData",
28
22
  "type": "object",
29
- "title": "The Operationdata Schema",
30
- "required": [
31
- "enabled"
32
- ],
23
+ "description": "Operation-specific configuration data",
33
24
  "properties": {
25
+ "selectedElement": {
26
+ "type": "object",
27
+ "description": "DOM element (JQuery)"
28
+ },
34
29
  "enabled": {
35
- "$id": "#/properties/operationData/enabled",
36
- "type": [
37
- "boolean"
38
- ]
30
+ "type": "boolean"
39
31
  }
40
- }
32
+ },
33
+ "additionalProperties": true,
34
+ "required": [
35
+ "selectedElement",
36
+ "enabled"
37
+ ]
41
38
  }
42
- }
39
+ },
40
+ "additionalProperties": false
43
41
  }
@@ -1,39 +1,46 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/validate-form-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/validate-form.json",
5
4
  "type": "object",
6
- "title": "The validateForm schema",
7
- "description": "Validates form fields against HTML5 validation and custom rules.\n\nUses HTML5 validation API (checkValidity()) for native validation, and supports\ncustom validation rules for: required, minLength, maxLength, pattern (regex), and email format.",
5
+ "title": "validateForm Operation",
6
+ "description": "Schema for the validateForm operation",
8
7
  "required": [
9
8
  "systemName",
10
9
  "operationData"
11
10
  ],
12
11
  "properties": {
13
12
  "id": {
14
- "$id": "#/properties/id",
15
13
  "type": "string",
16
- "title": "The Id Schema",
17
- "examples": [
18
- "123e4567-e89b-12d3-a456-426614174000"
19
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
20
15
  "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
16
  },
22
17
  "systemName": {
23
- "$id": "#/properties/systemName",
24
- "const": "validateForm"
18
+ "const": "validateForm",
19
+ "description": "The operation system name"
25
20
  },
26
21
  "operationData": {
27
- "$id": "#/properties/operationData",
28
22
  "type": "object",
29
- "title": "The Operationdata Schema",
30
- "required": [],
23
+ "description": "Operation-specific configuration data",
31
24
  "properties": {
25
+ "selectedElement": {
26
+ "type": "object",
27
+ "description": "DOM element (JQuery)"
28
+ },
32
29
  "validationRules": {
33
- "$id": "#/properties/operationData/validationRules",
34
- "type": "array"
30
+ "$ref": "#/definitions/Record%3Cstring%2CIValidationRules%3E"
31
+ },
32
+ "validationErrors": {
33
+ "type": "object"
34
+ },
35
+ "isValid": {
36
+ "type": "boolean"
35
37
  }
36
- }
38
+ },
39
+ "additionalProperties": true,
40
+ "required": [
41
+ "selectedElement"
42
+ ]
37
43
  }
38
- }
44
+ },
45
+ "additionalProperties": false
39
46
  }
@@ -1,43 +1,37 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/wait-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/wait.json",
5
4
  "type": "object",
6
- "title": "The wait schema",
7
- "description": "This operation waits for the specified amount of milliseconds.",
5
+ "title": "wait Operation",
6
+ "description": "Schema for the wait operation",
8
7
  "required": [
9
8
  "systemName",
10
9
  "operationData"
11
10
  ],
12
11
  "properties": {
13
12
  "id": {
14
- "$id": "#/properties/id",
15
13
  "type": "string",
16
- "title": "The Id Schema",
17
- "examples": [
18
- "123e4567-e89b-12d3-a456-426614174000"
19
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
20
15
  "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
16
  },
22
17
  "systemName": {
23
- "$id": "#/properties/systemName",
24
- "const": "wait"
18
+ "const": "wait",
19
+ "description": "The operation system name"
25
20
  },
26
21
  "operationData": {
27
- "$id": "#/properties/operationData",
28
22
  "type": "object",
29
- "title": "The Operationdata Schema",
30
- "required": [
31
- "milliseconds"
32
- ],
23
+ "description": "Operation-specific configuration data",
33
24
  "properties": {
34
25
  "milliseconds": {
35
- "$id": "#/properties/operationData/milliseconds",
36
- "type": [
37
- "number"
38
- ]
26
+ "type": "number",
27
+ "description": "The amount of milliseconds the operation will wait for."
39
28
  }
40
- }
29
+ },
30
+ "additionalProperties": true,
31
+ "required": [
32
+ "milliseconds"
33
+ ]
41
34
  }
42
- }
35
+ },
36
+ "additionalProperties": false
43
37
  }
@@ -1,43 +1,36 @@
1
1
  {
2
- "definitions": {},
3
2
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "$id": "http://eligius.com/schema/when-operation.json",
3
+ "$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/when.json",
5
4
  "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",
5
+ "title": "when Operation",
6
+ "description": "Schema for the when operation",
8
7
  "required": [
9
8
  "systemName",
10
9
  "operationData"
11
10
  ],
12
11
  "properties": {
13
12
  "id": {
14
- "$id": "#/properties/id",
15
13
  "type": "string",
16
- "title": "The Id Schema",
17
- "examples": [
18
- "123e4567-e89b-12d3-a456-426614174000"
19
- ],
14
+ "description": "Unique identifier for the operation (UUID format)",
20
15
  "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
16
  },
22
17
  "systemName": {
23
- "$id": "#/properties/systemName",
24
- "const": "when"
18
+ "const": "when",
19
+ "description": "The operation system name"
25
20
  },
26
21
  "operationData": {
27
- "$id": "#/properties/operationData",
28
22
  "type": "object",
29
- "title": "The Operationdata Schema",
30
- "required": [
31
- "expression"
32
- ],
23
+ "description": "Operation-specific configuration data",
33
24
  "properties": {
34
25
  "expression": {
35
- "$id": "#/properties/operationData/expression",
36
- "type": [
37
- "string"
38
- ]
26
+ "type": "string"
39
27
  }
40
- }
28
+ },
29
+ "additionalProperties": true,
30
+ "required": [
31
+ "expression"
32
+ ]
41
33
  }
42
- }
34
+ },
35
+ "additionalProperties": false
43
36
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eligius",
3
3
  "author": "Roland Zwaga <rbzwaga@gmail.com>",
4
- "version": "2.1.0",
4
+ "version": "2.2.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://rolandzwaga.github.io/eligius/",
7
7
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  "test:ci": "vitest run --config src/vitest.config.ts --reporter=verbose",
35
35
  "test:coverage": "vitest --config src/vitest.config.ts --coverage",
36
36
  "generate-readmes": "tsx ./src/tools/doc-tools/generate-readmes",
37
- "generate-schema": "tsx ./src/tools/schema-tools/generate-operation-schemas",
37
+ "generate-schema": "tsx ./src/tools/schema-tools/generate-schemas",
38
38
  "typedoc": "typedoc --options typedoc-metadata.json & typedoc --options typedoc.json",
39
39
  "docs": "npm run generate-schema && npm run typedoc && node copy-schema && npm run generate-readmes",
40
40
  "opers-metadata": "tsx src/tools/code-generator/metadata-generator.ts",
@@ -63,6 +63,7 @@
63
63
  "jsdom": "27.3.0",
64
64
  "lottie-web": "5.13.0",
65
65
  "rimraf": "6.1.2",
66
+ "ts-json-schema-generator": "2.4.0",
66
67
  "ts-morph": "27.0.2",
67
68
  "tsconfig-paths": "4.2.0",
68
69
  "tsdown": "0.17.2",
@@ -83,6 +84,7 @@
83
84
  },
84
85
  "dependencies": {
85
86
  "hotkeys-js": "3.13.15",
87
+ "rosetta": "1.1.0",
86
88
  "ts-is-present": "1.2.2",
87
89
  "uuid": "13.0.0"
88
90
  },