eligius 2.3.1 → 3.0.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/README.md +158 -33
- package/dist/configuration-api.d.mts +6095 -0
- package/dist/configuration-api.mjs +3876 -0
- package/dist/configuration-api.mjs.map +1 -0
- package/dist/index.d.mts +4075 -1392
- package/dist/index.mjs +10421 -4818
- package/dist/index.mjs.map +1 -1
- package/dist/metadata.d.mts +1040 -281
- package/dist/metadata.mjs +541 -277
- package/dist/metadata.mjs.map +1 -1
- package/dist/{chunk-w6R9maHv.mjs → rolldown-runtime-BOlb2svz.mjs} +1 -0
- package/jsonschema/eligius-configuration.json +120 -9
- package/jsonschema/operations/add-class.json +2 -7
- package/jsonschema/operations/add-controller-to-element.json +4 -3
- package/jsonschema/operations/add-globals-to-operation.json +40 -0
- package/jsonschema/operations/animate-with-class.json +8 -8
- package/jsonschema/operations/animate.json +10 -9
- package/jsonschema/operations/announce-to-screen-reader.json +2 -2
- package/jsonschema/operations/break-for-each.json +27 -0
- package/jsonschema/operations/broadcast-event.json +2 -2
- package/jsonschema/operations/calc.json +16 -3
- package/jsonschema/operations/clear-element.json +5 -14
- package/jsonschema/operations/clear-operation-data.json +3 -4
- package/jsonschema/operations/clear-storage.json +48 -0
- package/jsonschema/operations/compare-date.json +2 -2
- package/jsonschema/operations/concatenate-strings.json +2 -2
- package/jsonschema/operations/continue-for-each.json +27 -0
- package/jsonschema/operations/create-element.json +21 -5
- package/jsonschema/operations/custom-function.json +2 -2
- package/jsonschema/operations/end-action.json +5 -13
- package/jsonschema/operations/end-for-each.json +27 -0
- package/jsonschema/operations/end-when.json +27 -0
- package/jsonschema/operations/extend-controller.json +9 -7
- package/jsonschema/operations/filter-array.json +4 -12
- package/jsonschema/operations/find-in-array.json +4 -12
- package/jsonschema/operations/for-each.json +2 -3
- package/jsonschema/operations/format-date.json +2 -17
- package/jsonschema/operations/format-text.json +15 -7
- package/jsonschema/operations/get-attributes-from-element.json +9 -8
- package/jsonschema/operations/get-controller-from-element.json +2 -7
- package/jsonschema/operations/get-controller-instance.json +18 -5
- package/jsonschema/operations/get-current-time.json +3 -4
- package/jsonschema/operations/get-element-dimensions.json +4 -12
- package/jsonschema/operations/get-focused-element.json +3 -4
- package/jsonschema/operations/get-form-data.json +4 -12
- package/jsonschema/operations/get-import.json +2 -2
- package/jsonschema/operations/get-query-params.json +12 -5
- package/jsonschema/operations/get-scroll-position.json +3 -4
- package/jsonschema/operations/get-text-content.json +4 -12
- package/jsonschema/operations/http-delete.json +11 -3
- package/jsonschema/operations/http-post.json +11 -3
- package/jsonschema/operations/http-put.json +11 -3
- package/jsonschema/operations/invoke-object-method.json +2 -6
- package/jsonschema/operations/is-element-in-viewport.json +4 -12
- package/jsonschema/operations/load-from-storage.json +12 -3
- package/jsonschema/operations/load-json.json +5 -5
- package/jsonschema/operations/log.json +4 -7
- package/jsonschema/operations/map-array.json +2 -7
- package/jsonschema/operations/math.json +18 -3
- package/jsonschema/operations/otherwise.json +27 -0
- package/jsonschema/operations/remove-class.json +2 -7
- package/jsonschema/operations/remove-controller-from-element.json +2 -7
- package/jsonschema/operations/remove-element.json +5 -14
- package/jsonschema/operations/remove-properties-from-operation-data.json +2 -2
- package/jsonschema/operations/reparent-element.json +2 -7
- package/jsonschema/operations/replace-string.json +2 -6
- package/jsonschema/operations/replace-text.json +2 -6
- package/jsonschema/operations/request-action.json +2 -2
- package/jsonschema/operations/save-to-storage.json +12 -3
- package/jsonschema/operations/scroll-to-element.json +23 -13
- package/jsonschema/operations/scroll-to-position.json +12 -3
- package/jsonschema/operations/select-element.json +2 -2
- package/jsonschema/operations/set-data.json +8 -3
- package/jsonschema/operations/set-element-attributes.json +10 -9
- package/jsonschema/operations/set-element-content.json +5 -15
- package/jsonschema/operations/set-focus.json +5 -14
- package/jsonschema/operations/set-form-value.json +2 -7
- package/jsonschema/operations/set-global-data.json +2 -2
- package/jsonschema/operations/{set.json → set-operation-data.json} +12 -7
- package/jsonschema/operations/set-style.json +3 -8
- package/jsonschema/operations/set-variable.json +3 -5
- package/jsonschema/operations/sort-array.json +14 -13
- package/jsonschema/operations/split-string.json +2 -6
- package/jsonschema/operations/start-action.json +4 -12
- package/jsonschema/operations/substring-text.json +2 -6
- package/jsonschema/operations/toggle-class.json +2 -7
- package/jsonschema/operations/toggle-element.json +5 -14
- package/jsonschema/operations/toggle-form-element.json +2 -7
- package/jsonschema/operations/validate-form.json +41 -13
- package/jsonschema/operations/wait.json +2 -2
- package/jsonschema/operations/when.json +2 -2
- package/package.json +49 -24
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
"TTimelineProviderSettings": {
|
|
111
111
|
"$ref": "#/definitions/Partial%3CRecord%3CTimelineTypes%2CITimelineProviderSettings%3E%3E",
|
|
112
|
-
"description": "Provider settings indexed by timeline type. Allows different configurations for 'animation' vs 'mediaplayer' timelines."
|
|
112
|
+
"description": "Provider settings indexed by timeline type. Allows different configurations for 'animation' vs 'mediaplayer' timelines. A single timeline can override them with its own `positionSource` and `containerProvider` (see {@link ITimelineConfiguration.positionSource } )."
|
|
113
113
|
},
|
|
114
114
|
"Partial<Record<TimelineTypes,ITimelineProviderSettings>>": {
|
|
115
115
|
"type": "object",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
],
|
|
145
145
|
"additionalProperties": false,
|
|
146
146
|
"description": "Settings for a timeline provider.\n\nTimeline providers are assembled from decomposed components:\n- Position source: drives timeline position (required)\n- Container provider: manages render container (optional)\n- Playlist: manages multi-item navigation (optional)\n\nAll components are resolved dynamically via the resource importer using the `systemName` property, allowing custom implementations.",
|
|
147
|
-
"example": "```typescript\nconst settings: ITimelineProviderSettings = {\n positionSource: { systemName: 'RafPositionSource', tickInterval:
|
|
147
|
+
"example": "```typescript\nconst settings: ITimelineProviderSettings = {\n positionSource: { systemName: 'RafPositionSource', tickInterval: 100 },\n container: { systemName: 'DomContainerProvider', selector: '#render-area' },\n};\n```"
|
|
148
148
|
},
|
|
149
149
|
"IPositionSourceConfig": {
|
|
150
150
|
"type": "object",
|
|
@@ -159,8 +159,28 @@
|
|
|
159
159
|
},
|
|
160
160
|
"tickInterval": {
|
|
161
161
|
"type": "number",
|
|
162
|
-
"description": "Interval between position updates in milliseconds (RAF sources).",
|
|
163
|
-
"default":
|
|
162
|
+
"description": "Interval between position updates in milliseconds (RAF sources).\n\nThe default of 100 ms matches the 0.1 second precision at which actions are keyed. A larger interval emits fewer position updates (less work per second), but actions then start and end up to one interval late. Earlier releases defaulted to 1000.",
|
|
163
|
+
"default": 100
|
|
164
|
+
},
|
|
165
|
+
"sources": {
|
|
166
|
+
"type": "array",
|
|
167
|
+
"items": {
|
|
168
|
+
"type": "object",
|
|
169
|
+
"properties": {
|
|
170
|
+
"src": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"type": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"required": [
|
|
178
|
+
"src",
|
|
179
|
+
"type"
|
|
180
|
+
],
|
|
181
|
+
"additionalProperties": false
|
|
182
|
+
},
|
|
183
|
+
"description": "Media to load (video sources), each with its URL and MIME type. `VideoPositionSource` requires a non-empty list."
|
|
164
184
|
},
|
|
165
185
|
"poster": {
|
|
166
186
|
"type": "string",
|
|
@@ -174,7 +194,7 @@
|
|
|
174
194
|
"description": "Additional configuration options passed to the position source constructor. Use this for custom position source implementations."
|
|
175
195
|
},
|
|
176
196
|
"description": "Configuration for a position source.\n\nPosition sources drive timeline position. They are resolved dynamically via the resource importer using the `systemName` property.\n\nBuilt-in position sources:\n- `RafPositionSource`: RAF-based, drives timeline by elapsed time\n- `ScrollPositionSource`: Scroll-based, drives timeline by scroll position\n- `VideoPositionSource`: Video.js-based, drives timeline by video playback",
|
|
177
|
-
"example": "```typescript\n// RAF-based position source\nconst rafConfig: IPositionSourceConfig = {\n systemName: 'RafPositionSource',\n tickInterval:
|
|
197
|
+
"example": "```typescript\n// RAF-based position source\nconst rafConfig: IPositionSourceConfig = {\n systemName: 'RafPositionSource',\n tickInterval: 100,\n};\n\n// Scroll-based position source\nconst scrollConfig: IPositionSourceConfig = {\n systemName: 'ScrollPositionSource',\n selector: '.scroll-container',\n};\n\n// Video-based position source\nconst videoConfig: IPositionSourceConfig = {\n systemName: 'VideoPositionSource',\n selector: '#video-player',\n sources: [{src: '/intro.mp4', type: 'video/mp4'}],\n poster: '/poster.jpg',\n};\n```"
|
|
178
198
|
},
|
|
179
199
|
"IContainerProviderConfig": {
|
|
180
200
|
"type": "object",
|
|
@@ -295,6 +315,9 @@
|
|
|
295
315
|
{
|
|
296
316
|
"$ref": "operations/add-controller-to-element.json"
|
|
297
317
|
},
|
|
318
|
+
{
|
|
319
|
+
"$ref": "operations/add-globals-to-operation.json"
|
|
320
|
+
},
|
|
298
321
|
{
|
|
299
322
|
"$ref": "operations/animate-with-class.json"
|
|
300
323
|
},
|
|
@@ -304,6 +327,9 @@
|
|
|
304
327
|
{
|
|
305
328
|
"$ref": "operations/announce-to-screen-reader.json"
|
|
306
329
|
},
|
|
330
|
+
{
|
|
331
|
+
"$ref": "operations/break-for-each.json"
|
|
332
|
+
},
|
|
307
333
|
{
|
|
308
334
|
"$ref": "operations/broadcast-event.json"
|
|
309
335
|
},
|
|
@@ -316,12 +342,18 @@
|
|
|
316
342
|
{
|
|
317
343
|
"$ref": "operations/clear-operation-data.json"
|
|
318
344
|
},
|
|
345
|
+
{
|
|
346
|
+
"$ref": "operations/clear-storage.json"
|
|
347
|
+
},
|
|
319
348
|
{
|
|
320
349
|
"$ref": "operations/compare-date.json"
|
|
321
350
|
},
|
|
322
351
|
{
|
|
323
352
|
"$ref": "operations/concatenate-strings.json"
|
|
324
353
|
},
|
|
354
|
+
{
|
|
355
|
+
"$ref": "operations/continue-for-each.json"
|
|
356
|
+
},
|
|
325
357
|
{
|
|
326
358
|
"$ref": "operations/create-element.json"
|
|
327
359
|
},
|
|
@@ -331,6 +363,12 @@
|
|
|
331
363
|
{
|
|
332
364
|
"$ref": "operations/end-action.json"
|
|
333
365
|
},
|
|
366
|
+
{
|
|
367
|
+
"$ref": "operations/end-for-each.json"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"$ref": "operations/end-when.json"
|
|
371
|
+
},
|
|
334
372
|
{
|
|
335
373
|
"$ref": "operations/extend-controller.json"
|
|
336
374
|
},
|
|
@@ -412,6 +450,9 @@
|
|
|
412
450
|
{
|
|
413
451
|
"$ref": "operations/math.json"
|
|
414
452
|
},
|
|
453
|
+
{
|
|
454
|
+
"$ref": "operations/otherwise.json"
|
|
455
|
+
},
|
|
415
456
|
{
|
|
416
457
|
"$ref": "operations/remove-class.json"
|
|
417
458
|
},
|
|
@@ -467,13 +508,13 @@
|
|
|
467
508
|
"$ref": "operations/set-global-data.json"
|
|
468
509
|
},
|
|
469
510
|
{
|
|
470
|
-
"$ref": "operations/set-
|
|
511
|
+
"$ref": "operations/set-operation-data.json"
|
|
471
512
|
},
|
|
472
513
|
{
|
|
473
|
-
"$ref": "operations/set-
|
|
514
|
+
"$ref": "operations/set-style.json"
|
|
474
515
|
},
|
|
475
516
|
{
|
|
476
|
-
"$ref": "operations/set.json"
|
|
517
|
+
"$ref": "operations/set-variable.json"
|
|
477
518
|
},
|
|
478
519
|
{
|
|
479
520
|
"$ref": "operations/sort-array.json"
|
|
@@ -562,7 +603,7 @@
|
|
|
562
603
|
},
|
|
563
604
|
"type": {
|
|
564
605
|
"$ref": "#/definitions/TimelineTypes",
|
|
565
|
-
"description": "Timeline type: 'animation'
|
|
606
|
+
"description": "Timeline type: 'animation' or 'mediaplayer'. Selects the provider settings in `timelineProviderSettings`, which `positionSource` and `containerProvider` can override for this timeline."
|
|
566
607
|
},
|
|
567
608
|
"duration": {
|
|
568
609
|
"type": "number",
|
|
@@ -586,6 +627,15 @@
|
|
|
586
627
|
"container": {
|
|
587
628
|
"type": "string",
|
|
588
629
|
"description": "Optional container selector for the timeline. Defaults to the timeline selector if not specified. Used by position sources that don't have an intrinsic container."
|
|
630
|
+
},
|
|
631
|
+
"positionSource": {
|
|
632
|
+
"$ref": "#/definitions/Partial%3CIPositionSourceConfig%3E",
|
|
633
|
+
"description": "Optional position source settings for this timeline only, merged over `timelineProviderSettings[type].positionSource`.\n\n- Leave out `systemName` (or repeat the type's) to change single settings, for example only the `selector` of a scroll timeline. The other settings of the type still apply.\n- Name a different `systemName` to give this timeline another kind of source, for example a `ScrollPositionSource` chapter in a configuration whose animation timelines use `RafPositionSource`. The type's position source settings are then not used, and when every timeline of a type does this, the type needs no `timelineProviderSettings` entry.\n\nA source that renders its own container (`VideoPositionSource`) is shared by every timeline of the type with the same effective settings, so only an override that changes the video settings creates a second player. Other sources are created once per timeline, as without an override.",
|
|
634
|
+
"example": "```json\n{\"positionSource\": {\"systemName\": \"ScrollPositionSource\", \"selector\": \"#chapter-2\"}}\n```"
|
|
635
|
+
},
|
|
636
|
+
"containerProvider": {
|
|
637
|
+
"$ref": "#/definitions/Partial%3CIContainerProviderConfig%3E",
|
|
638
|
+
"description": "Optional container provider settings for this timeline only, merged over `timelineProviderSettings[type].container` by the same rules as `positionSource`. Timelines with the same effective settings share one container provider."
|
|
589
639
|
}
|
|
590
640
|
},
|
|
591
641
|
"required": [
|
|
@@ -665,6 +715,67 @@
|
|
|
665
715
|
"additionalProperties": false,
|
|
666
716
|
"description": "Describes a duration of time expressed in a start and an optional end range with a one second interval."
|
|
667
717
|
},
|
|
718
|
+
"Partial<IPositionSourceConfig>": {
|
|
719
|
+
"type": "object",
|
|
720
|
+
"properties": {
|
|
721
|
+
"systemName": {
|
|
722
|
+
"type": "string",
|
|
723
|
+
"description": "Name of the position source class to instantiate. Resolved via the resource importer.\n\nBuilt-in options: 'RafPositionSource', 'ScrollPositionSource', 'VideoPositionSource'"
|
|
724
|
+
},
|
|
725
|
+
"selector": {
|
|
726
|
+
"type": "string",
|
|
727
|
+
"description": "CSS selector for sources that need a DOM element (scroll, video)."
|
|
728
|
+
},
|
|
729
|
+
"tickInterval": {
|
|
730
|
+
"type": "number",
|
|
731
|
+
"description": "Interval between position updates in milliseconds (RAF sources).\n\nThe default of 100 ms matches the 0.1 second precision at which actions are keyed. A larger interval emits fewer position updates (less work per second), but actions then start and end up to one interval late. Earlier releases defaulted to 1000.",
|
|
732
|
+
"default": 100
|
|
733
|
+
},
|
|
734
|
+
"sources": {
|
|
735
|
+
"type": "array",
|
|
736
|
+
"items": {
|
|
737
|
+
"type": "object",
|
|
738
|
+
"properties": {
|
|
739
|
+
"src": {
|
|
740
|
+
"type": "string"
|
|
741
|
+
},
|
|
742
|
+
"type": {
|
|
743
|
+
"type": "string"
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"required": [
|
|
747
|
+
"src",
|
|
748
|
+
"type"
|
|
749
|
+
],
|
|
750
|
+
"additionalProperties": false
|
|
751
|
+
},
|
|
752
|
+
"description": "Media to load (video sources), each with its URL and MIME type. `VideoPositionSource` requires a non-empty list."
|
|
753
|
+
},
|
|
754
|
+
"poster": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"description": "Optional poster image URL (video sources)."
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"additionalProperties": {
|
|
760
|
+
"description": "Additional configuration options passed to the position source constructor. Use this for custom position source implementations."
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"Partial<IContainerProviderConfig>": {
|
|
764
|
+
"type": "object",
|
|
765
|
+
"properties": {
|
|
766
|
+
"systemName": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"description": "Name of the container provider class to instantiate. Resolved via the resource importer.\n\nBuilt-in options: 'DomContainerProvider'"
|
|
769
|
+
},
|
|
770
|
+
"selector": {
|
|
771
|
+
"type": "string",
|
|
772
|
+
"description": "CSS selector for the container element"
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"additionalProperties": {
|
|
776
|
+
"description": "Additional configuration options passed to the container provider constructor. Use this for custom container provider implementations."
|
|
777
|
+
}
|
|
778
|
+
},
|
|
668
779
|
"ITimelineFlow": {
|
|
669
780
|
"$ref": "#/definitions/Record%3Cstring%2Cnever%3E",
|
|
670
781
|
"description": "Configuration for timeline flow navigation.\n\nDefines how timelines connect and transition between each other. Currently a placeholder type for future implementation."
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"title": "addClass Operation",
|
|
6
6
|
"description": "Schema for the addClass operation",
|
|
7
7
|
"required": [
|
|
8
|
+
"id",
|
|
8
9
|
"systemName",
|
|
9
10
|
"operationData"
|
|
10
11
|
],
|
|
11
12
|
"properties": {
|
|
12
13
|
"id": {
|
|
13
14
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
16
|
},
|
|
17
17
|
"systemName": {
|
|
18
18
|
"const": "addClass",
|
|
@@ -22,17 +22,12 @@
|
|
|
22
22
|
"type": "object",
|
|
23
23
|
"description": "Operation-specific configuration data",
|
|
24
24
|
"properties": {
|
|
25
|
-
"selectedElement": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"description": "DOM element (JQuery)"
|
|
28
|
-
},
|
|
29
25
|
"className": {
|
|
30
26
|
"type": "string"
|
|
31
27
|
}
|
|
32
28
|
},
|
|
33
29
|
"additionalProperties": true,
|
|
34
30
|
"required": [
|
|
35
|
-
"selectedElement",
|
|
36
31
|
"className"
|
|
37
32
|
]
|
|
38
33
|
}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
"title": "addControllerToElement Operation",
|
|
6
6
|
"description": "Schema for the addControllerToElement operation (generated from IAddControllerToElementOperationData)",
|
|
7
7
|
"required": [
|
|
8
|
+
"id",
|
|
8
9
|
"systemName"
|
|
9
10
|
],
|
|
10
11
|
"properties": {
|
|
11
12
|
"id": {
|
|
12
13
|
"type": "string",
|
|
13
|
-
"description": "Unique identifier for the operation
|
|
14
|
-
"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}$"
|
|
14
|
+
"description": "Unique identifier for the operation"
|
|
15
15
|
},
|
|
16
16
|
"systemName": {
|
|
17
17
|
"const": "addControllerToElement",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"operationData": {
|
|
21
21
|
"type": "object",
|
|
22
|
-
"description": "Operation-specific configuration data
|
|
22
|
+
"description": "Operation-specific configuration data",
|
|
23
|
+
"properties": {},
|
|
23
24
|
"additionalProperties": true
|
|
24
25
|
}
|
|
25
26
|
},
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/add-globals-to-operation.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"title": "addGlobalsToOperation Operation",
|
|
6
|
+
"description": "Schema for the addGlobalsToOperation operation",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
|
+
},
|
|
17
|
+
"systemName": {
|
|
18
|
+
"const": "addGlobalsToOperation",
|
|
19
|
+
"description": "The operation system name"
|
|
20
|
+
},
|
|
21
|
+
"operationData": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"description": "Operation-specific configuration data",
|
|
24
|
+
"properties": {
|
|
25
|
+
"globalProperties": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"description": "The names of the global properties that will be copied onto the current operation data"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"additionalProperties": true,
|
|
34
|
+
"required": [
|
|
35
|
+
"globalProperties"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"title": "animateWithClass Operation",
|
|
6
6
|
"description": "Schema for the animateWithClass operation",
|
|
7
7
|
"required": [
|
|
8
|
+
"id",
|
|
8
9
|
"systemName",
|
|
9
10
|
"operationData"
|
|
10
11
|
],
|
|
11
12
|
"properties": {
|
|
12
13
|
"id": {
|
|
13
14
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
16
|
},
|
|
17
17
|
"systemName": {
|
|
18
18
|
"const": "animateWithClass",
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"type": "object",
|
|
23
23
|
"description": "Operation-specific configuration data",
|
|
24
24
|
"properties": {
|
|
25
|
-
"selectedElement": {
|
|
26
|
-
"type": "object",
|
|
27
|
-
"description": "DOM element (JQuery)"
|
|
28
|
-
},
|
|
29
25
|
"className": {
|
|
30
26
|
"type": "string"
|
|
31
27
|
},
|
|
32
28
|
"removeClass": {
|
|
33
|
-
"type": "boolean"
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"description": "When true (the default), the class is removed again after the animation ends"
|
|
31
|
+
},
|
|
32
|
+
"includeDescendants": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "When true, the operation resolves on the first `animationend` event from the selected element or any of its descendants. Use this for a class that only animates descendants. When false (the default), only animations on the selected elements themselves are awaited."
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
"additionalProperties": true,
|
|
37
38
|
"required": [
|
|
38
|
-
"selectedElement",
|
|
39
39
|
"className"
|
|
40
40
|
]
|
|
41
41
|
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"title": "animate Operation",
|
|
6
6
|
"description": "Schema for the animate operation",
|
|
7
7
|
"required": [
|
|
8
|
+
"id",
|
|
8
9
|
"systemName",
|
|
9
10
|
"operationData"
|
|
10
11
|
],
|
|
11
12
|
"properties": {
|
|
12
13
|
"id": {
|
|
13
14
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
16
|
},
|
|
17
17
|
"systemName": {
|
|
18
18
|
"const": "animate",
|
|
@@ -23,11 +23,7 @@
|
|
|
23
23
|
"description": "Operation-specific configuration data",
|
|
24
24
|
"properties": {
|
|
25
25
|
"animationEasing": {
|
|
26
|
-
"type": "
|
|
27
|
-
},
|
|
28
|
-
"selectedElement": {
|
|
29
|
-
"type": "object",
|
|
30
|
-
"description": "DOM element (JQuery)"
|
|
26
|
+
"type": "string"
|
|
31
27
|
},
|
|
32
28
|
"animationProperties": {
|
|
33
29
|
"$ref": "#/definitions/Record%3Cstring%2Cunknown%3E"
|
|
@@ -38,11 +34,16 @@
|
|
|
38
34
|
},
|
|
39
35
|
"additionalProperties": true,
|
|
40
36
|
"required": [
|
|
41
|
-
"selectedElement",
|
|
42
37
|
"animationProperties",
|
|
43
38
|
"animationDuration"
|
|
44
39
|
]
|
|
45
40
|
}
|
|
46
41
|
},
|
|
47
|
-
"additionalProperties": false
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"definitions": {
|
|
44
|
+
"Record<string,unknown>": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": {}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
48
49
|
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"title": "announceToScreenReader Operation",
|
|
6
6
|
"description": "Schema for the announceToScreenReader operation",
|
|
7
7
|
"required": [
|
|
8
|
+
"id",
|
|
8
9
|
"systemName",
|
|
9
10
|
"operationData"
|
|
10
11
|
],
|
|
11
12
|
"properties": {
|
|
12
13
|
"id": {
|
|
13
14
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
16
|
},
|
|
17
17
|
"systemName": {
|
|
18
18
|
"const": "announceToScreenReader",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/break-for-each.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"title": "breakForEach Operation",
|
|
6
|
+
"description": "Schema for the breakForEach operation",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"systemName"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Unique identifier for the operation"
|
|
15
|
+
},
|
|
16
|
+
"systemName": {
|
|
17
|
+
"const": "breakForEach",
|
|
18
|
+
"description": "The operation system name"
|
|
19
|
+
},
|
|
20
|
+
"operationData": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"description": "Operation-specific configuration data",
|
|
23
|
+
"additionalProperties": true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"additionalProperties": false
|
|
27
|
+
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"title": "broadcastEvent Operation",
|
|
6
6
|
"description": "Schema for the broadcastEvent operation",
|
|
7
7
|
"required": [
|
|
8
|
+
"id",
|
|
8
9
|
"systemName",
|
|
9
10
|
"operationData"
|
|
10
11
|
],
|
|
11
12
|
"properties": {
|
|
12
13
|
"id": {
|
|
13
14
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
16
|
},
|
|
17
17
|
"systemName": {
|
|
18
18
|
"const": "broadcastEvent",
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"title": "calc Operation",
|
|
6
6
|
"description": "Schema for the calc operation",
|
|
7
7
|
"required": [
|
|
8
|
+
"id",
|
|
8
9
|
"systemName",
|
|
9
10
|
"operationData"
|
|
10
11
|
],
|
|
11
12
|
"properties": {
|
|
12
13
|
"id": {
|
|
13
14
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
16
|
},
|
|
17
17
|
"systemName": {
|
|
18
18
|
"const": "calc",
|
|
@@ -45,5 +45,18 @@
|
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"additionalProperties": false
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"definitions": {
|
|
50
|
+
"TCalculationOperator": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"enum": [
|
|
53
|
+
"+",
|
|
54
|
+
"-",
|
|
55
|
+
"*",
|
|
56
|
+
"/",
|
|
57
|
+
"%",
|
|
58
|
+
"**"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
49
62
|
}
|
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
"title": "clearElement Operation",
|
|
6
6
|
"description": "Schema for the clearElement operation",
|
|
7
7
|
"required": [
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"id",
|
|
9
|
+
"systemName"
|
|
10
10
|
],
|
|
11
11
|
"properties": {
|
|
12
12
|
"id": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
14
|
+
"description": "Unique identifier for the operation"
|
|
16
15
|
},
|
|
17
16
|
"systemName": {
|
|
18
17
|
"const": "clearElement",
|
|
@@ -21,16 +20,8 @@
|
|
|
21
20
|
"operationData": {
|
|
22
21
|
"type": "object",
|
|
23
22
|
"description": "Operation-specific configuration data",
|
|
24
|
-
"properties": {
|
|
25
|
-
|
|
26
|
-
"type": "object",
|
|
27
|
-
"description": "DOM element (JQuery)"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"additionalProperties": true,
|
|
31
|
-
"required": [
|
|
32
|
-
"selectedElement"
|
|
33
|
-
]
|
|
23
|
+
"properties": {},
|
|
24
|
+
"additionalProperties": true
|
|
34
25
|
}
|
|
35
26
|
},
|
|
36
27
|
"additionalProperties": false
|
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
"title": "clearOperationData Operation",
|
|
6
6
|
"description": "Schema for the clearOperationData operation",
|
|
7
7
|
"required": [
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"id",
|
|
9
|
+
"systemName"
|
|
10
10
|
],
|
|
11
11
|
"properties": {
|
|
12
12
|
"id": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
14
|
+
"description": "Unique identifier for the operation"
|
|
16
15
|
},
|
|
17
16
|
"systemName": {
|
|
18
17
|
"const": "clearOperationData",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://rolandzwaga.github.io/eligius/jsonschema/operations/clear-storage.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"title": "clearStorage Operation",
|
|
6
|
+
"description": "Schema for the clearStorage operation",
|
|
7
|
+
"required": [
|
|
8
|
+
"id",
|
|
9
|
+
"systemName",
|
|
10
|
+
"operationData"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"id": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
|
+
},
|
|
17
|
+
"systemName": {
|
|
18
|
+
"const": "clearStorage",
|
|
19
|
+
"description": "The operation system name"
|
|
20
|
+
},
|
|
21
|
+
"operationData": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"description": "Operation-specific configuration data",
|
|
24
|
+
"properties": {
|
|
25
|
+
"key": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"storageType": {
|
|
29
|
+
"$ref": "#/definitions/StorageType"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": true,
|
|
33
|
+
"required": [
|
|
34
|
+
"storageType"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"definitions": {
|
|
40
|
+
"StorageType": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"local",
|
|
44
|
+
"session"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
"title": "compareDate Operation",
|
|
6
6
|
"description": "Schema for the compareDate operation",
|
|
7
7
|
"required": [
|
|
8
|
+
"id",
|
|
8
9
|
"systemName",
|
|
9
10
|
"operationData"
|
|
10
11
|
],
|
|
11
12
|
"properties": {
|
|
12
13
|
"id": {
|
|
13
14
|
"type": "string",
|
|
14
|
-
"description": "Unique identifier for the operation
|
|
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}$"
|
|
15
|
+
"description": "Unique identifier for the operation"
|
|
16
16
|
},
|
|
17
17
|
"systemName": {
|
|
18
18
|
"const": "compareDate",
|