eligius 2.2.1 → 2.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.
@@ -0,0 +1,2489 @@
1
+ import { t as __exportAll } from "./chunk-w6R9maHv.mjs";
2
+
3
+ //#region src/controllers/metadata/dom-event-listener-controller.ts
4
+ function DOMEventListenerController() {
5
+ return {
6
+ description: `This controller attaches to the given selected element and adds a DOM event listener for the specified event name that
7
+ executes the given actions with the given operation data.
8
+
9
+ By default the \`start\` operations of the specified actions are executed. To execute the \`end\` operations instead,
10
+ prefix the action name with \`end:\`.`,
11
+ dependentProperties: ["selectedElement"],
12
+ properties: {
13
+ eventName: {
14
+ type: "ParameterType:eventName",
15
+ required: true
16
+ },
17
+ actions: {
18
+ type: "ParameterType:array",
19
+ itemType: "ParameterType:string"
20
+ },
21
+ actionOperationData: { type: "ParameterType:object" }
22
+ }
23
+ };
24
+ }
25
+
26
+ //#endregion
27
+ //#region src/controllers/metadata/label-controller.ts
28
+ function LabelController() {
29
+ return {
30
+ description: `This controller attaches to the given selected element and renders the text
31
+ associated with the given translation key.
32
+
33
+ The controller listens for the \`language-change\` event and re-renders the text
34
+ with the new language after such an event.
35
+
36
+ Uses the rosetta-based locale system via \`request-translation\` event.`,
37
+ dependentProperties: ["selectedElement"],
38
+ properties: {
39
+ translationKey: {
40
+ type: "ParameterType:string",
41
+ required: true
42
+ },
43
+ attributeName: { type: [{ value: "undefined" }, { value: "string" }] }
44
+ }
45
+ };
46
+ }
47
+
48
+ //#endregion
49
+ //#region src/controllers/metadata/lottie-controller.ts
50
+ function LottieController() {
51
+ return {
52
+ description: `This controller renders a [lottie-web](https://github.com/airbnb/lottie-web) animation inside the given selected element.
53
+
54
+ The url may encode freeze and end positions like this: my-url/filename[freeze=10,end=21].json`,
55
+ properties: { url: {
56
+ type: "ParameterType:url",
57
+ required: true
58
+ } }
59
+ };
60
+ }
61
+
62
+ //#endregion
63
+ //#region src/controllers/metadata/mutation-observer-controller.ts
64
+ function MutationObserverController() {
65
+ return {
66
+ description: `Controller that observes DOM mutations on a selected element and broadcasts events.
67
+
68
+ This controller creates a MutationObserver to monitor DOM changes (attributes, child nodes,
69
+ text content) on a specified element. All detected mutations are broadcasted through the
70
+ Eligius eventbus, enabling reactive behavior in response to DOM changes.
71
+
72
+ The controller follows the standard Eligius lifecycle:
73
+ - init(): Store configuration metadata
74
+ - attach(): Create and start the MutationObserver
75
+ - detach(): Disconnect the observer and clean up resources`,
76
+ dependentProperties: ["selectedElement"],
77
+ properties: {
78
+ observeAttributes: { type: [
79
+ { value: "undefined" },
80
+ { value: "false" },
81
+ { value: "true" }
82
+ ] },
83
+ observeChildList: { type: [
84
+ { value: "undefined" },
85
+ { value: "false" },
86
+ { value: "true" }
87
+ ] },
88
+ observeCharacterData: { type: [
89
+ { value: "undefined" },
90
+ { value: "false" },
91
+ { value: "true" }
92
+ ] },
93
+ observeSubtree: { type: [
94
+ { value: "undefined" },
95
+ { value: "false" },
96
+ { value: "true" }
97
+ ] },
98
+ attributeOldValue: { type: [
99
+ { value: "undefined" },
100
+ { value: "false" },
101
+ { value: "true" }
102
+ ] },
103
+ characterDataOldValue: { type: [
104
+ { value: "undefined" },
105
+ { value: "false" },
106
+ { value: "true" }
107
+ ] },
108
+ attributeFilter: { type: [{ value: "undefined" }, { value: "string[]" }] }
109
+ }
110
+ };
111
+ }
112
+
113
+ //#endregion
114
+ //#region src/controllers/metadata/navigation-controller.ts
115
+ function NavigationController() {
116
+ return {
117
+ description: ``,
118
+ dependentProperties: ["selectedElement"],
119
+ properties: { json: {
120
+ type: "ParameterType:object",
121
+ required: true
122
+ } }
123
+ };
124
+ }
125
+
126
+ //#endregion
127
+ //#region src/controllers/metadata/progressbar-controller.ts
128
+ function ProgressbarController() {
129
+ return {
130
+ description: `This controller renders a progressbar that displays the progress of the current timeline in the given selected element.
131
+
132
+ The current progress as a percentage is rendered in the given text element.`,
133
+ dependentProperties: ["selectedElement", "textElement"]
134
+ };
135
+ }
136
+
137
+ //#endregion
138
+ //#region src/controllers/metadata/routing-controller.ts
139
+ function RoutingController() {
140
+ return {
141
+ description: `This is a work in progress, do not use this yet please....`,
142
+ properties: { json: {
143
+ type: "ParameterType:object",
144
+ required: true
145
+ } }
146
+ };
147
+ }
148
+
149
+ //#endregion
150
+ //#region src/controllers/metadata/subtitles-controller.ts
151
+ function SubtitlesController() {
152
+ return {
153
+ description: ``,
154
+ dependentProperties: ["selectedElement"],
155
+ properties: {
156
+ language: { type: "ParameterType:languagecode" },
157
+ subtitleData: { type: "ParameterType:array" }
158
+ }
159
+ };
160
+ }
161
+
162
+ //#endregion
163
+ //#region src/controllers/metadata/index.ts
164
+ var metadata_exports = /* @__PURE__ */ __exportAll({
165
+ DOMEventListenerController: () => DOMEventListenerController,
166
+ LabelController: () => LabelController,
167
+ LottieController: () => LottieController,
168
+ MutationObserverController: () => MutationObserverController,
169
+ NavigationController: () => NavigationController,
170
+ ProgressbarController: () => ProgressbarController,
171
+ RoutingController: () => RoutingController,
172
+ SubtitlesController: () => SubtitlesController
173
+ });
174
+
175
+ //#endregion
176
+ //#region src/eventbus/events/metadata/before-request-timeline-uri.ts
177
+ function beforeRequestTimelineUri() {
178
+ return {
179
+ description: `Event: before-request-timeline-uri`,
180
+ category: `Timeline`,
181
+ args: []
182
+ };
183
+ }
184
+
185
+ //#endregion
186
+ //#region src/eventbus/events/metadata/before-request-video-url.ts
187
+ function beforeRequestVideoUrl() {
188
+ return {
189
+ description: `Event: before-request-video-url`,
190
+ category: `Navigation`,
191
+ args: [
192
+ {
193
+ name: "index",
194
+ type: "number"
195
+ },
196
+ {
197
+ name: "requestedVideoPosition",
198
+ type: "number"
199
+ },
200
+ {
201
+ name: "isHistoryRequest",
202
+ type: "boolean"
203
+ }
204
+ ]
205
+ };
206
+ }
207
+
208
+ //#endregion
209
+ //#region src/eventbus/events/metadata/dom-mutation.ts
210
+ function domMutation() {
211
+ return {
212
+ description: `Event: dom-mutation`,
213
+ category: `Controller`,
214
+ args: [{
215
+ name: "payload",
216
+ type: "any"
217
+ }]
218
+ };
219
+ }
220
+
221
+ //#endregion
222
+ //#region src/eventbus/events/metadata/highlight-navigation.ts
223
+ function highlightNavigation() {
224
+ return {
225
+ description: `Event: highlight-navigation`,
226
+ category: `Navigation`,
227
+ args: [{
228
+ name: "videoUrlIndex",
229
+ type: "number"
230
+ }]
231
+ };
232
+ }
233
+
234
+ //#endregion
235
+ //#region src/eventbus/events/metadata/language-change.ts
236
+ function languageChange() {
237
+ return {
238
+ description: `Event: language-change`,
239
+ category: `Language Manager`,
240
+ args: [{
241
+ name: "language",
242
+ type: "TLanguageCode"
243
+ }]
244
+ };
245
+ }
246
+
247
+ //#endregion
248
+ //#region src/eventbus/events/metadata/navigate-to-video-url.ts
249
+ function navigateToVideoUrl() {
250
+ return {
251
+ description: `Event: navigate-to-video-url`,
252
+ category: `Navigation`,
253
+ args: [{
254
+ name: "index",
255
+ type: "number"
256
+ }, {
257
+ name: "requestedVideoPosition",
258
+ type: "number"
259
+ }]
260
+ };
261
+ }
262
+
263
+ //#endregion
264
+ //#region src/eventbus/events/metadata/push-history-state.ts
265
+ function pushHistoryState() {
266
+ return {
267
+ description: `Event: push-history-state`,
268
+ category: `Navigation`,
269
+ args: [{
270
+ name: "state",
271
+ type: "any"
272
+ }]
273
+ };
274
+ }
275
+
276
+ //#endregion
277
+ //#region src/eventbus/events/metadata/request-action.ts
278
+ function requestAction$1() {
279
+ return {
280
+ description: `Event: request-action`,
281
+ category: `Engine Request`,
282
+ args: [{
283
+ name: "actionName",
284
+ type: "string"
285
+ }, {
286
+ name: "callback",
287
+ type: "(actionInstance: any) => void"
288
+ }]
289
+ };
290
+ }
291
+
292
+ //#endregion
293
+ //#region src/eventbus/events/metadata/request-current-language.ts
294
+ function requestCurrentLanguage() {
295
+ return {
296
+ description: `Event: request-current-language`,
297
+ category: `Engine Request`,
298
+ args: [{
299
+ name: "callback",
300
+ type: "(language: TLanguageCode) => void"
301
+ }]
302
+ };
303
+ }
304
+
305
+ //#endregion
306
+ //#region src/eventbus/events/metadata/request-current-navigation.ts
307
+ function requestCurrentNavigation() {
308
+ return {
309
+ description: `Event: request-current-navigation`,
310
+ category: `Navigation`,
311
+ args: [{
312
+ name: "callback",
313
+ type: "(navigation: any) => void"
314
+ }]
315
+ };
316
+ }
317
+
318
+ //#endregion
319
+ //#region src/eventbus/events/metadata/request-current-timeline-position.ts
320
+ function requestCurrentTimelinePosition() {
321
+ return {
322
+ description: `Event: request-current-timeline-position`,
323
+ category: `Engine Request`,
324
+ args: [{
325
+ name: "callback",
326
+ type: "TResultCallback<number>"
327
+ }]
328
+ };
329
+ }
330
+
331
+ //#endregion
332
+ //#region src/eventbus/events/metadata/request-current-video-position.ts
333
+ function requestCurrentVideoPosition() {
334
+ return {
335
+ description: `Event: request-current-video-position`,
336
+ category: `Navigation`,
337
+ args: [{
338
+ name: "callback",
339
+ type: "(position: number) => void"
340
+ }]
341
+ };
342
+ }
343
+
344
+ //#endregion
345
+ //#region src/eventbus/events/metadata/request-engine-root.ts
346
+ function requestEngineRoot() {
347
+ return {
348
+ description: `Event: request-engine-root`,
349
+ category: `Engine Request`,
350
+ args: [{
351
+ name: "callback",
352
+ type: "(root: any) => void"
353
+ }]
354
+ };
355
+ }
356
+
357
+ //#endregion
358
+ //#region src/eventbus/events/metadata/request-function.ts
359
+ function requestFunction() {
360
+ return {
361
+ description: `Event: request-function`,
362
+ category: `Engine Request`,
363
+ args: [{
364
+ name: "systemName",
365
+ type: "string"
366
+ }, {
367
+ name: "callback",
368
+ type: "(fn: any) => void"
369
+ }]
370
+ };
371
+ }
372
+
373
+ //#endregion
374
+ //#region src/eventbus/events/metadata/request-instance.ts
375
+ function requestInstance() {
376
+ return {
377
+ description: `Event: request-instance`,
378
+ category: `Engine Request`,
379
+ args: [{
380
+ name: "instanceName",
381
+ type: "string"
382
+ }, {
383
+ name: "callback",
384
+ type: "(instance: any) => void"
385
+ }]
386
+ };
387
+ }
388
+
389
+ //#endregion
390
+ //#region src/eventbus/events/metadata/request-label-collection.ts
391
+ function requestLabelCollection() {
392
+ return {
393
+ description: `Event: request-label-collection`,
394
+ category: `Engine Request`,
395
+ args: [{
396
+ name: "language",
397
+ type: "string"
398
+ }, {
399
+ name: "callback",
400
+ type: "(collection: any) => void"
401
+ }]
402
+ };
403
+ }
404
+
405
+ //#endregion
406
+ //#region src/eventbus/events/metadata/request-label-collections.ts
407
+ function requestLabelCollections() {
408
+ return {
409
+ description: `Event: request-label-collections`,
410
+ category: `Engine Request`,
411
+ args: [{
412
+ name: "labelIds",
413
+ type: "string[]"
414
+ }, {
415
+ name: "callback",
416
+ type: "(collections: any) => void"
417
+ }]
418
+ };
419
+ }
420
+
421
+ //#endregion
422
+ //#region src/eventbus/events/metadata/request-timeline-cleanup.ts
423
+ function requestTimelineCleanup() {
424
+ return {
425
+ description: `Event: request-timeline-cleanup`,
426
+ category: `Engine Request`,
427
+ args: []
428
+ };
429
+ }
430
+
431
+ //#endregion
432
+ //#region src/eventbus/events/metadata/request-timeline-uri.ts
433
+ function requestTimelineUri() {
434
+ return {
435
+ description: `Event: request-timeline-uri`,
436
+ category: `Engine Request`,
437
+ args: [{
438
+ name: "uri",
439
+ type: "string"
440
+ }, {
441
+ name: "position",
442
+ type: "number"
443
+ }]
444
+ };
445
+ }
446
+
447
+ //#endregion
448
+ //#region src/eventbus/events/metadata/request-video-cleanup.ts
449
+ function requestVideoCleanup() {
450
+ return {
451
+ description: `Event: request-video-cleanup`,
452
+ category: `Navigation`,
453
+ args: []
454
+ };
455
+ }
456
+
457
+ //#endregion
458
+ //#region src/eventbus/events/metadata/request-video-url.ts
459
+ function requestVideoUrl() {
460
+ return {
461
+ description: `Event: request-video-url`,
462
+ category: `Navigation`,
463
+ args: [
464
+ {
465
+ name: "videoUrlIndex",
466
+ type: "number"
467
+ },
468
+ {
469
+ name: "requestedVideoPosition",
470
+ type: "number"
471
+ },
472
+ {
473
+ name: "fromRouting",
474
+ type: "boolean"
475
+ }
476
+ ]
477
+ };
478
+ }
479
+
480
+ //#endregion
481
+ //#region src/eventbus/events/metadata/timeline-complete.ts
482
+ function timelineComplete() {
483
+ return {
484
+ description: `Event: timeline-complete`,
485
+ category: `Timeline`,
486
+ args: []
487
+ };
488
+ }
489
+
490
+ //#endregion
491
+ //#region src/eventbus/events/metadata/timeline-container-request.ts
492
+ function timelineContainerRequest() {
493
+ return {
494
+ description: `Event: timeline-container-request`,
495
+ category: `Timeline`,
496
+ args: [{
497
+ name: "callback",
498
+ type: "(element: HTMLElement) => void"
499
+ }]
500
+ };
501
+ }
502
+
503
+ //#endregion
504
+ //#region src/eventbus/events/metadata/timeline-current-timeline-change.ts
505
+ function timelineCurrentTimelineChange() {
506
+ return {
507
+ description: `Event: timeline-current-timeline-change`,
508
+ category: `Timeline`,
509
+ args: [{
510
+ name: "timelineUri",
511
+ type: "string"
512
+ }]
513
+ };
514
+ }
515
+
516
+ //#endregion
517
+ //#region src/eventbus/events/metadata/timeline-duration-request.ts
518
+ function timelineDurationRequest() {
519
+ return {
520
+ description: `Event: timeline-duration-request`,
521
+ category: `Timeline`,
522
+ args: [{
523
+ name: "callback",
524
+ type: "(duration: number) => void"
525
+ }]
526
+ };
527
+ }
528
+
529
+ //#endregion
530
+ //#region src/eventbus/events/metadata/timeline-duration.ts
531
+ function timelineDuration() {
532
+ return {
533
+ description: `Event: timeline-duration`,
534
+ category: `Timeline`,
535
+ args: [{
536
+ name: "getDuration",
537
+ type: "(() => number) | undefined"
538
+ }]
539
+ };
540
+ }
541
+
542
+ //#endregion
543
+ //#region src/eventbus/events/metadata/timeline-firstframe.ts
544
+ function timelineFirstframe() {
545
+ return {
546
+ description: `Event: timeline-firstframe`,
547
+ category: `Timeline`,
548
+ args: []
549
+ };
550
+ }
551
+
552
+ //#endregion
553
+ //#region src/eventbus/events/metadata/timeline-pause-request.ts
554
+ function timelinePauseRequest() {
555
+ return {
556
+ description: `Event: timeline-pause-request`,
557
+ category: `Timeline`,
558
+ args: []
559
+ };
560
+ }
561
+
562
+ //#endregion
563
+ //#region src/eventbus/events/metadata/timeline-pause.ts
564
+ function timelinePause() {
565
+ return {
566
+ description: `Event: timeline-pause`,
567
+ category: `Timeline`,
568
+ args: []
569
+ };
570
+ }
571
+
572
+ //#endregion
573
+ //#region src/eventbus/events/metadata/timeline-play-request.ts
574
+ function timelinePlayRequest() {
575
+ return {
576
+ description: `Event: timeline-play-request`,
577
+ category: `Timeline`,
578
+ args: []
579
+ };
580
+ }
581
+
582
+ //#endregion
583
+ //#region src/eventbus/events/metadata/timeline-play-toggle-request.ts
584
+ function timelinePlayToggleRequest() {
585
+ return {
586
+ description: `Event: timeline-play-toggle-request`,
587
+ category: `Timeline`,
588
+ args: []
589
+ };
590
+ }
591
+
592
+ //#endregion
593
+ //#region src/eventbus/events/metadata/timeline-play.ts
594
+ function timelinePlay() {
595
+ return {
596
+ description: `Event: timeline-play`,
597
+ category: `Timeline`,
598
+ args: []
599
+ };
600
+ }
601
+
602
+ //#endregion
603
+ //#region src/eventbus/events/metadata/timeline-request-current-timeline.ts
604
+ function timelineRequestCurrentTimeline() {
605
+ return {
606
+ description: `Event: timeline-request-current-timeline`,
607
+ category: `Engine Request`,
608
+ args: [{
609
+ name: "callback",
610
+ type: "TResultCallback<string>"
611
+ }]
612
+ };
613
+ }
614
+
615
+ //#endregion
616
+ //#region src/eventbus/events/metadata/timeline-resize-request.ts
617
+ function timelineResizeRequest() {
618
+ return {
619
+ description: `Event: timeline-resize-request`,
620
+ category: `Timeline`,
621
+ args: []
622
+ };
623
+ }
624
+
625
+ //#endregion
626
+ //#region src/eventbus/events/metadata/timeline-resize.ts
627
+ function timelineResize() {
628
+ return {
629
+ description: `Event: timeline-resize`,
630
+ category: `Timeline`,
631
+ args: []
632
+ };
633
+ }
634
+
635
+ //#endregion
636
+ //#region src/eventbus/events/metadata/timeline-restart.ts
637
+ function timelineRestart() {
638
+ return {
639
+ description: `Event: timeline-restart`,
640
+ category: `Timeline`,
641
+ args: []
642
+ };
643
+ }
644
+
645
+ //#endregion
646
+ //#region src/eventbus/events/metadata/timeline-seek-request.ts
647
+ function timelineSeekRequest() {
648
+ return {
649
+ description: `Event: timeline-seek-request`,
650
+ category: `Timeline`,
651
+ args: [{
652
+ name: "position",
653
+ type: "number"
654
+ }]
655
+ };
656
+ }
657
+
658
+ //#endregion
659
+ //#region src/eventbus/events/metadata/timeline-seek.ts
660
+ function timelineSeek() {
661
+ return {
662
+ description: `Event: timeline-seek`,
663
+ category: `Timeline`,
664
+ args: [
665
+ {
666
+ name: "seekPosition",
667
+ type: "number"
668
+ },
669
+ {
670
+ name: "currentPosition",
671
+ type: "number"
672
+ },
673
+ {
674
+ name: "duration",
675
+ type: "number"
676
+ }
677
+ ]
678
+ };
679
+ }
680
+
681
+ //#endregion
682
+ //#region src/eventbus/events/metadata/timeline-seeked.ts
683
+ function timelineSeeked() {
684
+ return {
685
+ description: `Event: timeline-seeked`,
686
+ category: `Timeline`,
687
+ args: [{
688
+ name: "position",
689
+ type: "number"
690
+ }, {
691
+ name: "duration",
692
+ type: "number"
693
+ }]
694
+ };
695
+ }
696
+
697
+ //#endregion
698
+ //#region src/eventbus/events/metadata/timeline-stop-request.ts
699
+ function timelineStopRequest() {
700
+ return {
701
+ description: `Event: timeline-stop-request`,
702
+ category: `Timeline`,
703
+ args: []
704
+ };
705
+ }
706
+
707
+ //#endregion
708
+ //#region src/eventbus/events/metadata/timeline-stop.ts
709
+ function timelineStop() {
710
+ return {
711
+ description: `Event: timeline-stop`,
712
+ category: `Timeline`,
713
+ args: []
714
+ };
715
+ }
716
+
717
+ //#endregion
718
+ //#region src/eventbus/events/metadata/timeline-time.ts
719
+ function timelineTime() {
720
+ return {
721
+ description: `Event: timeline-time`,
722
+ category: `Timeline`,
723
+ args: [{
724
+ name: "position",
725
+ type: "number"
726
+ }]
727
+ };
728
+ }
729
+
730
+ //#endregion
731
+ //#region src/eventbus/events/metadata/video-complete.ts
732
+ function videoComplete() {
733
+ return {
734
+ description: `Event: video-complete`,
735
+ category: `Navigation`,
736
+ args: [{
737
+ name: "index",
738
+ type: "number"
739
+ }]
740
+ };
741
+ }
742
+
743
+ //#endregion
744
+ //#region src/eventbus/events/metadata/index.ts
745
+ var metadata_exports$1 = /* @__PURE__ */ __exportAll({
746
+ beforeRequestTimelineUri: () => beforeRequestTimelineUri,
747
+ beforeRequestVideoUrl: () => beforeRequestVideoUrl,
748
+ domMutation: () => domMutation,
749
+ highlightNavigation: () => highlightNavigation,
750
+ languageChange: () => languageChange,
751
+ navigateToVideoUrl: () => navigateToVideoUrl,
752
+ pushHistoryState: () => pushHistoryState,
753
+ requestAction: () => requestAction$1,
754
+ requestCurrentLanguage: () => requestCurrentLanguage,
755
+ requestCurrentNavigation: () => requestCurrentNavigation,
756
+ requestCurrentTimelinePosition: () => requestCurrentTimelinePosition,
757
+ requestCurrentVideoPosition: () => requestCurrentVideoPosition,
758
+ requestEngineRoot: () => requestEngineRoot,
759
+ requestFunction: () => requestFunction,
760
+ requestInstance: () => requestInstance,
761
+ requestLabelCollection: () => requestLabelCollection,
762
+ requestLabelCollections: () => requestLabelCollections,
763
+ requestTimelineCleanup: () => requestTimelineCleanup,
764
+ requestTimelineUri: () => requestTimelineUri,
765
+ requestVideoCleanup: () => requestVideoCleanup,
766
+ requestVideoUrl: () => requestVideoUrl,
767
+ timelineComplete: () => timelineComplete,
768
+ timelineContainerRequest: () => timelineContainerRequest,
769
+ timelineCurrentTimelineChange: () => timelineCurrentTimelineChange,
770
+ timelineDuration: () => timelineDuration,
771
+ timelineDurationRequest: () => timelineDurationRequest,
772
+ timelineFirstframe: () => timelineFirstframe,
773
+ timelinePause: () => timelinePause,
774
+ timelinePauseRequest: () => timelinePauseRequest,
775
+ timelinePlay: () => timelinePlay,
776
+ timelinePlayRequest: () => timelinePlayRequest,
777
+ timelinePlayToggleRequest: () => timelinePlayToggleRequest,
778
+ timelineRequestCurrentTimeline: () => timelineRequestCurrentTimeline,
779
+ timelineResize: () => timelineResize,
780
+ timelineResizeRequest: () => timelineResizeRequest,
781
+ timelineRestart: () => timelineRestart,
782
+ timelineSeek: () => timelineSeek,
783
+ timelineSeekRequest: () => timelineSeekRequest,
784
+ timelineSeeked: () => timelineSeeked,
785
+ timelineStop: () => timelineStop,
786
+ timelineStopRequest: () => timelineStopRequest,
787
+ timelineTime: () => timelineTime,
788
+ videoComplete: () => videoComplete
789
+ });
790
+
791
+ //#endregion
792
+ //#region src/operation/metadata/add-class.ts
793
+ function addClass() {
794
+ return {
795
+ description: `This operation adds the specified class name to the specified selected element.`,
796
+ category: `DOM`,
797
+ dependentProperties: ["selectedElement"],
798
+ properties: { className: {
799
+ type: "ParameterType:className",
800
+ required: true,
801
+ erased: true
802
+ } }
803
+ };
804
+ }
805
+
806
+ //#endregion
807
+ //#region src/operation/metadata/add-controller-to-element.ts
808
+ function addControllerToElement() {
809
+ return {
810
+ description: `This operation adds the specified controller instance to the given selected element.`,
811
+ category: `Controller`,
812
+ dependentProperties: ["selectedElement", "controllerInstance"]
813
+ };
814
+ }
815
+
816
+ //#endregion
817
+ //#region src/operation/metadata/add-globals-to-operation.ts
818
+ function addGlobalsToOperation() {
819
+ return {
820
+ description: `This operation adds the specified global property names to the current operation data.
821
+ It finally removes the \`globalProperties\` property from the current operation data.`,
822
+ category: `Data`,
823
+ properties: { globalProperties: {
824
+ type: "ParameterType:array",
825
+ itemType: "ParameterType:string",
826
+ required: true,
827
+ erased: true
828
+ } }
829
+ };
830
+ }
831
+
832
+ //#endregion
833
+ //#region src/operation/metadata/animate-with-class.ts
834
+ function animateWithClass() {
835
+ return {
836
+ description: `This operation adds the specified class name to the specified selected element and assumes that this
837
+ class triggers and animation on the selected element. It then waits for this animation to complete
838
+ before it resolves.`,
839
+ category: `Animation`,
840
+ dependentProperties: ["selectedElement"],
841
+ properties: {
842
+ className: {
843
+ type: "ParameterType:className",
844
+ required: true
845
+ },
846
+ removeClass: { type: [
847
+ { value: "undefined" },
848
+ { value: "false" },
849
+ { value: "true" }
850
+ ] }
851
+ }
852
+ };
853
+ }
854
+
855
+ //#endregion
856
+ //#region src/operation/metadata/animate.ts
857
+ function animate() {
858
+ return {
859
+ description: `This operation animates the specified selected element with the given [jQuery animation](https://api.jquery.com/animate/) properties, duration and easing.
860
+ It resolves after the animation completes.`,
861
+ category: `Animation`,
862
+ dependentProperties: ["selectedElement"],
863
+ properties: {
864
+ animationEasing: {
865
+ type: "ParameterType:boolean",
866
+ erased: true
867
+ },
868
+ animationProperties: {
869
+ type: "ParameterType:object",
870
+ required: true,
871
+ erased: true
872
+ },
873
+ animationDuration: {
874
+ type: "ParameterType:number",
875
+ required: true,
876
+ erased: true
877
+ }
878
+ }
879
+ };
880
+ }
881
+
882
+ //#endregion
883
+ //#region src/operation/metadata/announce-to-screen-reader.ts
884
+ function announceToScreenReader() {
885
+ return {
886
+ description: `Announces a message to screen readers using an ARIA live region.`,
887
+ category: `Accessibility`,
888
+ properties: {
889
+ message: {
890
+ type: "ParameterType:string",
891
+ required: true,
892
+ erased: true
893
+ },
894
+ priority: {
895
+ type: [
896
+ { value: "undefined" },
897
+ { value: "polite" },
898
+ { value: "assertive" }
899
+ ],
900
+ erased: true
901
+ }
902
+ }
903
+ };
904
+ }
905
+
906
+ //#endregion
907
+ //#region src/operation/metadata/break-for-each.ts
908
+ function breakForEach() {
909
+ return {
910
+ description: `This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
911
+ operation. This operation immediately moves to the loop end index, effectively stopping the loop.`,
912
+ category: `Control Flow`
913
+ };
914
+ }
915
+
916
+ //#endregion
917
+ //#region src/operation/metadata/broadcast-event.ts
918
+ function broadcastEvent() {
919
+ return {
920
+ description: `This operation broadcasts the given event through the eventbus, along with the
921
+ event arguments and optional event topic.`,
922
+ category: `Utility`,
923
+ properties: {
924
+ eventArgs: {
925
+ type: "ParameterType:array",
926
+ required: true,
927
+ erased: true
928
+ },
929
+ eventTopic: {
930
+ type: "ParameterType:eventTopic",
931
+ erased: true
932
+ },
933
+ eventName: {
934
+ type: "ParameterType:eventName",
935
+ required: true,
936
+ erased: true
937
+ }
938
+ }
939
+ };
940
+ }
941
+
942
+ //#endregion
943
+ //#region src/operation/metadata/calc.ts
944
+ function calc() {
945
+ return {
946
+ description: `This operation calculates the given left and right hand operands using the specified operator.`,
947
+ category: `Utility`,
948
+ properties: {
949
+ left: {
950
+ type: "ParameterType:number",
951
+ required: true,
952
+ erased: true
953
+ },
954
+ right: {
955
+ type: "ParameterType:number",
956
+ required: true,
957
+ erased: true
958
+ },
959
+ operator: {
960
+ type: [
961
+ { value: "+" },
962
+ { value: "-" },
963
+ { value: "*" },
964
+ { value: "/" },
965
+ { value: "%" },
966
+ { value: "**" }
967
+ ],
968
+ required: true,
969
+ erased: true
970
+ }
971
+ },
972
+ outputProperties: { calculationResult: { type: [{ value: "undefined" }, { value: "number" }] } }
973
+ };
974
+ }
975
+
976
+ //#endregion
977
+ //#region src/operation/metadata/clear-element.ts
978
+ function clearElement() {
979
+ return {
980
+ description: `This operation removes all of the children from the given selected element.`,
981
+ category: `DOM`,
982
+ dependentProperties: ["selectedElement"]
983
+ };
984
+ }
985
+
986
+ //#endregion
987
+ //#region src/operation/metadata/clear-operation-data.ts
988
+ function clearOperationData() {
989
+ return {
990
+ description: `This operation removes all of the properties on the current operation date.
991
+ Or, if the \`properties\` property is set only removes the properties defined by that list.`,
992
+ category: `Data`,
993
+ properties: { properties: {
994
+ type: [{ value: "undefined" }, { value: "string[]" }],
995
+ erased: true
996
+ } }
997
+ };
998
+ }
999
+
1000
+ //#endregion
1001
+ //#region src/operation/metadata/clear-storage.ts
1002
+ function clearStorage() {
1003
+ return {
1004
+ description: `Clears data from browser storage (localStorage or sessionStorage).
1005
+
1006
+ If \`key\` is provided, removes only that key. If \`key\` is omitted, clears all storage.`,
1007
+ category: `Data`,
1008
+ properties: {
1009
+ key: {
1010
+ type: [{ value: "undefined" }, { value: "string" }],
1011
+ erased: true
1012
+ },
1013
+ storageType: {
1014
+ type: [{ value: "local" }, { value: "session" }],
1015
+ required: true,
1016
+ erased: true
1017
+ }
1018
+ }
1019
+ };
1020
+ }
1021
+
1022
+ //#endregion
1023
+ //#region src/operation/metadata/compare-date.ts
1024
+ function compareDate() {
1025
+ return {
1026
+ description: `Compares two dates.
1027
+ comparison: -1 (before), 0 (equal), 1 (after)`,
1028
+ category: `Date`,
1029
+ properties: {
1030
+ date1: {
1031
+ type: [
1032
+ { value: "string" },
1033
+ { value: "number" },
1034
+ { value: "Date" }
1035
+ ],
1036
+ required: true,
1037
+ erased: true
1038
+ },
1039
+ date2: {
1040
+ type: [
1041
+ { value: "string" },
1042
+ { value: "number" },
1043
+ { value: "Date" }
1044
+ ],
1045
+ required: true,
1046
+ erased: true
1047
+ }
1048
+ },
1049
+ outputProperties: {
1050
+ comparison: { type: "ParameterType:number" },
1051
+ isEqual: { type: "ParameterType:boolean" },
1052
+ isBefore: { type: "ParameterType:boolean" },
1053
+ isAfter: { type: "ParameterType:boolean" }
1054
+ }
1055
+ };
1056
+ }
1057
+
1058
+ //#endregion
1059
+ //#region src/operation/metadata/concatenate-strings.ts
1060
+ function concatenateStrings() {
1061
+ return {
1062
+ description: `Concatenates multiple strings with an optional separator.`,
1063
+ category: `String`,
1064
+ properties: {
1065
+ strings: {
1066
+ type: "ParameterType:array",
1067
+ itemType: "ParameterType:string",
1068
+ required: true,
1069
+ erased: true
1070
+ },
1071
+ separator: {
1072
+ type: [{ value: "undefined" }, { value: "string" }],
1073
+ erased: true
1074
+ }
1075
+ },
1076
+ outputProperties: { result: { type: "ParameterType:string" } }
1077
+ };
1078
+ }
1079
+
1080
+ //#endregion
1081
+ //#region src/operation/metadata/continue-for-each.ts
1082
+ function continueForEach() {
1083
+ return {
1084
+ description: `This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
1085
+ operation. This operation immediately moves to the next loop index, effectively canceling the rest
1086
+ of the operations in the current iteration.`,
1087
+ category: `Control Flow`
1088
+ };
1089
+ }
1090
+
1091
+ //#endregion
1092
+ //#region src/operation/metadata/create-element.ts
1093
+ function createElement() {
1094
+ return {
1095
+ description: `This operation creates the DOM element described by the given elementName and attributes and assigns
1096
+ the instance to the \`template\` property on the current operation data.`,
1097
+ category: `DOM`,
1098
+ properties: {
1099
+ elementName: {
1100
+ type: "ParameterType:htmlElementName",
1101
+ required: true,
1102
+ erased: true
1103
+ },
1104
+ text: {
1105
+ type: [{ value: "undefined" }, { value: "string" }],
1106
+ erased: true
1107
+ },
1108
+ attributes: {
1109
+ type: "ParameterType:object",
1110
+ erased: true
1111
+ }
1112
+ },
1113
+ outputProperties: { template: { type: "ParameterType:object" } }
1114
+ };
1115
+ }
1116
+
1117
+ //#endregion
1118
+ //#region src/operation/metadata/custom-function.ts
1119
+ function customFunction() {
1120
+ return {
1121
+ description: `This operation retrieves a custom function defined by the given system name
1122
+ and invokes it with the current operation data and eventbus.`,
1123
+ category: `Utility`,
1124
+ properties: { systemName: {
1125
+ type: "ParameterType:systemName",
1126
+ required: true,
1127
+ erased: true
1128
+ } }
1129
+ };
1130
+ }
1131
+
1132
+ //#endregion
1133
+ //#region src/operation/metadata/end-action.ts
1134
+ function endAction() {
1135
+ return {
1136
+ description: `This operation invokes the {@link EndableAction}.end method on the specified action instance.
1137
+
1138
+ The action operation data is first merged with the current operation data before it is
1139
+ passed on to the action. After the action has completed the action operation data properties
1140
+ are removed from the current operation data.`,
1141
+ category: `Action`,
1142
+ dependentProperties: ["actionInstance"],
1143
+ properties: { actionOperationData: {
1144
+ type: "ParameterType:object",
1145
+ required: true,
1146
+ erased: true
1147
+ } }
1148
+ };
1149
+ }
1150
+
1151
+ //#endregion
1152
+ //#region src/operation/metadata/end-for-each.ts
1153
+ function endForEach() {
1154
+ return {
1155
+ description: `This operation checks if the current loop should end or start the next iteration.`,
1156
+ category: `Control Flow`
1157
+ };
1158
+ }
1159
+
1160
+ //#endregion
1161
+ //#region src/operation/metadata/end-when.ts
1162
+ function endWhen() {
1163
+ return {
1164
+ description: `This operation cleans up after the {@link when}/{@link otherwise}/{@link endWhen} control flow ends.`,
1165
+ category: `Control Flow`
1166
+ };
1167
+ }
1168
+
1169
+ //#endregion
1170
+ //#region src/operation/metadata/extend-controller.ts
1171
+ function extendController() {
1172
+ return {
1173
+ description: `Extends the current controller with given extension.`,
1174
+ category: `Controller`,
1175
+ dependentProperties: ["controllerInstance"],
1176
+ properties: { controllerExtension: {
1177
+ type: "ParameterType:object",
1178
+ required: true,
1179
+ erased: true
1180
+ } }
1181
+ };
1182
+ }
1183
+
1184
+ //#endregion
1185
+ //#region src/operation/metadata/filter-array.ts
1186
+ function filterArray() {
1187
+ return {
1188
+ description: `Filters an array based on property equality or custom predicate function.
1189
+
1190
+ Operates on arrayData passed from previous operations.
1191
+ Supports two filtering modes:
1192
+ 1. Property equality: \`filterProperty\` and \`filterValue\` to filter by property match
1193
+ 2. Custom predicate: \`filterPredicate\` function for complex filtering logic`,
1194
+ category: `Array`,
1195
+ dependentProperties: ["arrayData"],
1196
+ properties: {
1197
+ filterProperty: {
1198
+ type: [{ value: "undefined" }, { value: "string" }],
1199
+ erased: true
1200
+ },
1201
+ filterValue: {
1202
+ type: "ParameterType:object",
1203
+ erased: true
1204
+ },
1205
+ filterPredicate: {
1206
+ type: [{ value: "undefined" }, { value: "(item: any, index?: number | undefined) => boolean" }],
1207
+ erased: true
1208
+ }
1209
+ },
1210
+ outputProperties: { filteredArray: { type: "ParameterType:array" } }
1211
+ };
1212
+ }
1213
+
1214
+ //#endregion
1215
+ //#region src/operation/metadata/find-in-array.ts
1216
+ function findInArray() {
1217
+ return {
1218
+ description: `Finds the first element in an array matching criteria.
1219
+
1220
+ Operates on arrayData passed from previous operations.
1221
+ Supports two search modes:
1222
+ 1. Property equality: \`findProperty\` and \`findValue\` to find by property match
1223
+ 2. Custom predicate: \`findPredicate\` function for complex search logic
1224
+
1225
+ Returns \`undefined\` for \`foundItem\` and \`-1\` for \`foundIndex\` if no match found.`,
1226
+ category: `Array`,
1227
+ dependentProperties: ["arrayData"],
1228
+ properties: {
1229
+ findProperty: {
1230
+ type: [{ value: "undefined" }, { value: "string" }],
1231
+ erased: true
1232
+ },
1233
+ findValue: {
1234
+ type: "ParameterType:object",
1235
+ erased: true
1236
+ },
1237
+ findPredicate: {
1238
+ type: [{ value: "undefined" }, { value: "(item: any, index?: number | undefined) => boolean" }],
1239
+ erased: true
1240
+ }
1241
+ },
1242
+ outputProperties: {
1243
+ foundItem: { type: "ParameterType:object" },
1244
+ foundIndex: { type: "ParameterType:number" }
1245
+ }
1246
+ };
1247
+ }
1248
+
1249
+ //#endregion
1250
+ //#region src/operation/metadata/for-each.ts
1251
+ function forEach() {
1252
+ return {
1253
+ description: `This operation iterates over the given collection.
1254
+
1255
+ Each iteration the current item from the specified collection is
1256
+ assigned to the {@link IOperationScope.currentItem |currentItem} property on the {@link IOperationScope |operation scope}.
1257
+
1258
+ At the start of the loop, the associated {@link endForEach} operation is determined and when
1259
+ the last iteration is completed the flow control is set to the index of that operation.
1260
+
1261
+ The {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the
1262
+ loop iterations.`,
1263
+ category: `Control Flow`,
1264
+ properties: { collection: {
1265
+ type: "ParameterType:array|ParameterType:string",
1266
+ required: true
1267
+ } }
1268
+ };
1269
+ }
1270
+
1271
+ //#endregion
1272
+ //#region src/operation/metadata/format-date.ts
1273
+ function formatDate() {
1274
+ return {
1275
+ description: `Formats a date using Intl.DateTimeFormat or simple patterns.`,
1276
+ category: `Date`,
1277
+ dependentProperties: ["date"],
1278
+ properties: { format: {
1279
+ type: "ParameterType:string",
1280
+ required: true,
1281
+ erased: true
1282
+ } },
1283
+ outputProperties: { formattedDate: { type: "ParameterType:string" } }
1284
+ };
1285
+ }
1286
+
1287
+ //#endregion
1288
+ //#region src/operation/metadata/format-text.ts
1289
+ function formatText() {
1290
+ return {
1291
+ description: `Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.
1292
+
1293
+ Operates on textContent passed from previous operations (e.g., getTextContent).
1294
+
1295
+ Transformations:
1296
+ - \`uppercase\`: Convert all characters to uppercase
1297
+ - \`lowercase\`: Convert all characters to lowercase
1298
+ - \`capitalize\`: Capitalize only the first letter
1299
+ - \`titlecase\`: Capitalize first letter of each word
1300
+ - \`trim\`: Remove leading and trailing whitespace`,
1301
+ category: `Text`,
1302
+ dependentProperties: ["textContent"],
1303
+ properties: { transformation: {
1304
+ type: [
1305
+ { value: "uppercase" },
1306
+ { value: "lowercase" },
1307
+ { value: "capitalize" },
1308
+ { value: "titlecase" },
1309
+ { value: "trim" }
1310
+ ],
1311
+ required: true,
1312
+ erased: true
1313
+ } },
1314
+ outputProperties: { formattedText: { type: "ParameterType:string" } }
1315
+ };
1316
+ }
1317
+
1318
+ //#endregion
1319
+ //#region src/operation/metadata/get-attributes-from-element.ts
1320
+ function getAttributesFromElement() {
1321
+ return {
1322
+ description: `This operation retrieves the values for the specified attribute names from the given selected element.`,
1323
+ category: `DOM`,
1324
+ dependentProperties: ["selectedElement"],
1325
+ properties: { attributeNames: {
1326
+ type: "ParameterType:array",
1327
+ itemType: "ParameterType:string",
1328
+ required: true,
1329
+ erased: true
1330
+ } },
1331
+ outputProperties: { attributeValues: { type: [{ value: "undefined" }, { value: "Record<string, unknown>" }] } }
1332
+ };
1333
+ }
1334
+
1335
+ //#endregion
1336
+ //#region src/operation/metadata/get-controller-from-element.ts
1337
+ function getControllerFromElement() {
1338
+ return {
1339
+ description: `This operation retrieves the controller instance with the specified name that is assigned to the given selected element.`,
1340
+ category: `Controller`,
1341
+ dependentProperties: ["selectedElement"],
1342
+ properties: { controllerName: {
1343
+ type: "ParameterType:controllerName",
1344
+ required: true,
1345
+ erased: true
1346
+ } },
1347
+ outputProperties: { controllerInstance: { type: "ParameterType:object" } }
1348
+ };
1349
+ }
1350
+
1351
+ //#endregion
1352
+ //#region src/operation/metadata/get-controller-instance.ts
1353
+ function getControllerInstance() {
1354
+ return {
1355
+ description: `This operation retrieves an instance of the given controller name.
1356
+ It assigns this instance to the \`controllerInstance\` property on the current operation data`,
1357
+ category: `Controller`,
1358
+ properties: { systemName: {
1359
+ type: [
1360
+ { value: "DOMEventListenerController" },
1361
+ { value: "LabelController" },
1362
+ { value: "LottieController" },
1363
+ { value: "MutationObserverController" },
1364
+ { value: "NavigationController" },
1365
+ { value: "ProgressbarController" },
1366
+ { value: "RoutingController" },
1367
+ { value: "SubtitlesController" }
1368
+ ],
1369
+ required: true,
1370
+ erased: true
1371
+ } },
1372
+ outputProperties: { controllerInstance: { type: "ParameterType:object" } }
1373
+ };
1374
+ }
1375
+
1376
+ //#endregion
1377
+ //#region src/operation/metadata/get-current-time.ts
1378
+ function getCurrentTime() {
1379
+ return {
1380
+ description: `Gets the current time as timestamp and Date object.`,
1381
+ category: `Date`,
1382
+ outputProperties: {
1383
+ timestamp: { type: "ParameterType:number" },
1384
+ date: { type: "ParameterType:Date" }
1385
+ }
1386
+ };
1387
+ }
1388
+
1389
+ //#endregion
1390
+ //#region src/operation/metadata/get-element-dimensions.ts
1391
+ function getElementDimensions() {
1392
+ return {
1393
+ description: `This operation calculates the width and height of the given selected element.
1394
+ It assigns this struct to the dimensions property on the current operation data.
1395
+ Optionally the width and height can be modified using the given modifier string.
1396
+
1397
+ The modifier string is formatted in the following way:
1398
+
1399
+ <operator><amount><optional-side><optional-precentage>|<ratio-definition>
1400
+
1401
+ Where the ratio modifier is formatted in the following way:
1402
+ <side>[ar=<ratio-left>-<ratio-right>]
1403
+
1404
+ For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
1405
+ it will add a value of 100 to the height and modify the width by a ratio of 8 to 1 relative to the height.`,
1406
+ category: `DOM`,
1407
+ dependentProperties: ["selectedElement"],
1408
+ properties: { modifier: {
1409
+ type: "ParameterType:dimensionsModifier",
1410
+ erased: true
1411
+ } },
1412
+ outputProperties: { dimensions: { type: "ParameterType:object" } }
1413
+ };
1414
+ }
1415
+
1416
+ //#endregion
1417
+ //#region src/operation/metadata/get-focused-element.ts
1418
+ function getFocusedElement() {
1419
+ return {
1420
+ description: `Gets the currently focused element.`,
1421
+ category: `Focus`,
1422
+ outputProperties: { focusedElement: { type: "ParameterType:jQuery" } }
1423
+ };
1424
+ }
1425
+
1426
+ //#endregion
1427
+ //#region src/operation/metadata/get-form-data.ts
1428
+ function getFormData() {
1429
+ return {
1430
+ description: `Extracts all input, select, and textarea values from form element into operation data.
1431
+
1432
+ This operation reads form field values and returns them as an object with field names as keys.
1433
+ Only processes form elements that are enabled and not hidden. Handles checkboxes, radio buttons,
1434
+ select elements, textareas, and text inputs.`,
1435
+ category: `Form`,
1436
+ dependentProperties: ["selectedElement"],
1437
+ outputProperties: { formData: { type: "ParameterType:object" } }
1438
+ };
1439
+ }
1440
+
1441
+ //#endregion
1442
+ //#region src/operation/metadata/get-import.ts
1443
+ function getImport() {
1444
+ return {
1445
+ description: `This operation retrieves the import specified by the given \`systemName\` and
1446
+ assigns it to the \`importedInstance\` property on the current operaton date.`,
1447
+ category: `Utility`,
1448
+ properties: { systemName: {
1449
+ type: "ParameterType:systemName",
1450
+ required: true,
1451
+ erased: true
1452
+ } },
1453
+ outputProperties: { importedInstance: { type: "ParameterType:object" } }
1454
+ };
1455
+ }
1456
+
1457
+ //#endregion
1458
+ //#region src/operation/metadata/get-query-params.ts
1459
+ function getQueryParams() {
1460
+ return {
1461
+ description: `This operation retrieves the current query parameters from the browser's address bar and places
1462
+ them on the returned operation data.`,
1463
+ category: `Utility`,
1464
+ properties: { defaultValues: {
1465
+ type: [{ value: "undefined" }, { value: "Record<string, string>" }],
1466
+ erased: true
1467
+ } },
1468
+ outputProperties: { queryParams: { type: [{ value: "undefined" }, { value: "Record<string, string>" }] } }
1469
+ };
1470
+ }
1471
+
1472
+ //#endregion
1473
+ //#region src/operation/metadata/get-scroll-position.ts
1474
+ function getScrollPosition() {
1475
+ return {
1476
+ description: `Gets the current scroll position of the viewport.
1477
+
1478
+ Returns x (horizontal) and y (vertical) scroll positions in pixels.
1479
+ Uses cross-browser compatible methods to retrieve scroll position.`,
1480
+ category: `Scroll`,
1481
+ outputProperties: {
1482
+ scrollX: { type: "ParameterType:number" },
1483
+ scrollY: { type: "ParameterType:number" }
1484
+ }
1485
+ };
1486
+ }
1487
+
1488
+ //#endregion
1489
+ //#region src/operation/metadata/get-text-content.ts
1490
+ function getTextContent() {
1491
+ return {
1492
+ description: `Extracts text content from element, stripping all HTML markup.
1493
+
1494
+ Uses jQuery's \`.text()\` method which is XSS-safe and returns only the text content
1495
+ without any HTML tags. Preserves whitespace and text from nested elements.`,
1496
+ category: `Text`,
1497
+ dependentProperties: ["selectedElement"],
1498
+ outputProperties: { textContent: { type: [{ value: "undefined" }, { value: "string" }] } }
1499
+ };
1500
+ }
1501
+
1502
+ //#endregion
1503
+ //#region src/operation/metadata/http-delete.ts
1504
+ function httpDelete() {
1505
+ return {
1506
+ description: `Performs an HTTP DELETE request to the specified URL.`,
1507
+ category: `HTTP`,
1508
+ properties: {
1509
+ url: {
1510
+ type: "ParameterType:string",
1511
+ required: true,
1512
+ erased: true
1513
+ },
1514
+ headers: {
1515
+ type: [{ value: "undefined" }, { value: "Record<string, string>" }],
1516
+ erased: true
1517
+ }
1518
+ },
1519
+ outputProperties: {
1520
+ response: { type: "ParameterType:object" },
1521
+ status: { type: "ParameterType:number" }
1522
+ }
1523
+ };
1524
+ }
1525
+
1526
+ //#endregion
1527
+ //#region src/operation/metadata/http-post.ts
1528
+ function httpPost() {
1529
+ return {
1530
+ description: `Performs an HTTP POST request to the specified URL.`,
1531
+ category: `HTTP`,
1532
+ properties: {
1533
+ url: {
1534
+ type: "ParameterType:string",
1535
+ required: true,
1536
+ erased: true
1537
+ },
1538
+ body: {
1539
+ type: "ParameterType:object",
1540
+ erased: true
1541
+ },
1542
+ headers: {
1543
+ type: [{ value: "undefined" }, { value: "Record<string, string>" }],
1544
+ erased: true
1545
+ }
1546
+ },
1547
+ outputProperties: {
1548
+ response: { type: "ParameterType:object" },
1549
+ status: { type: "ParameterType:number" }
1550
+ }
1551
+ };
1552
+ }
1553
+
1554
+ //#endregion
1555
+ //#region src/operation/metadata/http-put.ts
1556
+ function httpPut() {
1557
+ return {
1558
+ description: `Performs an HTTP PUT request to the specified URL.`,
1559
+ category: `HTTP`,
1560
+ properties: {
1561
+ url: {
1562
+ type: "ParameterType:string",
1563
+ required: true,
1564
+ erased: true
1565
+ },
1566
+ body: {
1567
+ type: "ParameterType:object",
1568
+ erased: true
1569
+ },
1570
+ headers: {
1571
+ type: [{ value: "undefined" }, { value: "Record<string, string>" }],
1572
+ erased: true
1573
+ }
1574
+ },
1575
+ outputProperties: {
1576
+ response: { type: "ParameterType:object" },
1577
+ status: { type: "ParameterType:number" }
1578
+ }
1579
+ };
1580
+ }
1581
+
1582
+ //#endregion
1583
+ //#region src/operation/metadata/invoke-object-method.ts
1584
+ function invokeObjectMethod() {
1585
+ return {
1586
+ description: `This operation invokes the specified method on the given object with the given optional arguments
1587
+ and assigns the result to the \`methodResult\` operationdata property.`,
1588
+ category: `Utility`,
1589
+ dependentProperties: ["instance"],
1590
+ properties: {
1591
+ methodName: {
1592
+ type: "ParameterType:string",
1593
+ required: true,
1594
+ erased: true
1595
+ },
1596
+ methodArguments: {
1597
+ type: [{ value: "undefined" }, { value: "unknown[]" }],
1598
+ erased: true
1599
+ }
1600
+ },
1601
+ outputProperties: { methodResult: { type: "ParameterType:object" } }
1602
+ };
1603
+ }
1604
+
1605
+ //#endregion
1606
+ //#region src/operation/metadata/is-element-in-viewport.ts
1607
+ function isElementInViewport() {
1608
+ return {
1609
+ description: `Checks if an element is currently visible within the viewport.
1610
+
1611
+ Uses \`getBoundingClientRect()\` to determine if the element is within the viewport boundaries.`,
1612
+ category: `DOM`,
1613
+ dependentProperties: ["selectedElement"],
1614
+ outputProperties: { isInViewport: { type: "ParameterType:boolean" } }
1615
+ };
1616
+ }
1617
+
1618
+ //#endregion
1619
+ //#region src/operation/metadata/load-from-storage.ts
1620
+ function loadFromStorage() {
1621
+ return {
1622
+ description: `Loads data from browser storage (localStorage or sessionStorage).
1623
+
1624
+ Deserializes the stored JSON value. Returns \`null\` if key doesn't exist.`,
1625
+ category: `Data`,
1626
+ properties: {
1627
+ key: {
1628
+ type: "ParameterType:string",
1629
+ required: true,
1630
+ erased: true
1631
+ },
1632
+ storageType: {
1633
+ type: [{ value: "local" }, { value: "session" }],
1634
+ required: true,
1635
+ erased: true
1636
+ }
1637
+ },
1638
+ outputProperties: { loadedValue: { type: "ParameterType:object" } }
1639
+ };
1640
+ }
1641
+
1642
+ //#endregion
1643
+ //#region src/operation/metadata/load-json.ts
1644
+ function loadJson() {
1645
+ return {
1646
+ description: `This operation loads a JSON file from the specified url and assigns it to the json
1647
+ property on the current operation data.
1648
+
1649
+ If the cache property is set to true and a cached value already exists, this is assigned
1650
+ instead of re-retrieving it from the url.`,
1651
+ category: `Utility`,
1652
+ properties: {
1653
+ url: {
1654
+ type: "ParameterType:string",
1655
+ required: true,
1656
+ erased: true
1657
+ },
1658
+ cache: {
1659
+ type: [
1660
+ { value: "undefined" },
1661
+ { value: "false" },
1662
+ { value: "true" }
1663
+ ],
1664
+ erased: true
1665
+ }
1666
+ },
1667
+ outputProperties: { json: { type: "ParameterType:object" } }
1668
+ };
1669
+ }
1670
+
1671
+ //#endregion
1672
+ //#region src/operation/metadata/log.ts
1673
+ function log() {
1674
+ return {
1675
+ description: `This operation logs the specified value, or, when no logValue property has been assigned
1676
+ it will log the current operation data, global data and scope to the console`,
1677
+ category: `Utility`,
1678
+ properties: {
1679
+ logValue: {
1680
+ type: "ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array",
1681
+ erased: true
1682
+ },
1683
+ logName: {
1684
+ type: [{ value: "undefined" }, { value: "string" }],
1685
+ erased: true
1686
+ }
1687
+ }
1688
+ };
1689
+ }
1690
+
1691
+ //#endregion
1692
+ //#region src/operation/metadata/map-array.ts
1693
+ function mapArray() {
1694
+ return {
1695
+ description: `Transforms each element of an array using a mapping function.
1696
+
1697
+ Operates on arrayData passed from previous operations.
1698
+ The mapFunction receives each item and optionally its index.`,
1699
+ category: `Array`,
1700
+ dependentProperties: ["arrayData"],
1701
+ properties: { mapFunction: {
1702
+ type: "ParameterType:function",
1703
+ required: true,
1704
+ erased: true
1705
+ } },
1706
+ outputProperties: { mappedArray: { type: [{ value: "undefined" }, { value: "any[]" }] } }
1707
+ };
1708
+ }
1709
+
1710
+ //#endregion
1711
+ //#region src/operation/metadata/math.ts
1712
+ function math() {
1713
+ return {
1714
+ description: `This operation performs the given math function with the specified arguments.`,
1715
+ category: `Utility`,
1716
+ properties: {
1717
+ args: {
1718
+ type: "ParameterType:array",
1719
+ required: true,
1720
+ erased: true
1721
+ },
1722
+ functionName: {
1723
+ type: "ParameterType:mathfunction",
1724
+ required: true,
1725
+ erased: true
1726
+ }
1727
+ },
1728
+ outputProperties: { mathResult: { type: [{ value: "undefined" }, { value: "number" }] } }
1729
+ };
1730
+ }
1731
+
1732
+ //#endregion
1733
+ //#region src/operation/metadata/otherwise.ts
1734
+ function otherwise() {
1735
+ return {
1736
+ description: `If the preceeding {@link when} operation evaluates to \`true\` subsequent operations will
1737
+ be skipped until an {@link endWhen} operation is encountered.`,
1738
+ category: `Control Flow`
1739
+ };
1740
+ }
1741
+
1742
+ //#endregion
1743
+ //#region src/operation/metadata/remove-class.ts
1744
+ function removeClass() {
1745
+ return {
1746
+ description: `This operation removes the spcified class name from the given selected element.`,
1747
+ category: `DOM`,
1748
+ dependentProperties: ["selectedElement"],
1749
+ properties: { className: {
1750
+ type: "ParameterType:className",
1751
+ required: true,
1752
+ erased: true
1753
+ } }
1754
+ };
1755
+ }
1756
+
1757
+ //#endregion
1758
+ //#region src/operation/metadata/remove-controller-from-element.ts
1759
+ function removeControllerFromElement() {
1760
+ return {
1761
+ description: `This operation removes the controller with the specified name from the given selected element.`,
1762
+ category: `Controller`,
1763
+ dependentProperties: ["selectedElement"],
1764
+ properties: { controllerName: {
1765
+ type: "ParameterType:controllerName",
1766
+ required: true,
1767
+ erased: true
1768
+ } }
1769
+ };
1770
+ }
1771
+
1772
+ //#endregion
1773
+ //#region src/operation/metadata/remove-element.ts
1774
+ function removeElement() {
1775
+ return {
1776
+ description: `This operation removes the given selected element from the DOM.`,
1777
+ category: `DOM`,
1778
+ dependentProperties: ["selectedElement"]
1779
+ };
1780
+ }
1781
+
1782
+ //#endregion
1783
+ //#region src/operation/metadata/remove-properties-from-operation-data.ts
1784
+ function removePropertiesFromOperationData() {
1785
+ return {
1786
+ description: `This operation removes the given list of properties from the current operation data.
1787
+ It will also remove the property \`propertyNames\` from the result.`,
1788
+ category: `Data`,
1789
+ properties: { propertyNames: {
1790
+ type: "ParameterType:array",
1791
+ itemType: "ParameterType:string",
1792
+ required: true,
1793
+ erased: true
1794
+ } }
1795
+ };
1796
+ }
1797
+
1798
+ //#endregion
1799
+ //#region src/operation/metadata/reparent-element.ts
1800
+ function reparentElement() {
1801
+ return {
1802
+ description: `This operation moves the given selected element to the new parent that is defined
1803
+ by the specified \`newParentSelector\`.`,
1804
+ category: `DOM`,
1805
+ dependentProperties: ["selectedElement"],
1806
+ properties: { newParentSelector: {
1807
+ type: "ParameterType:selector",
1808
+ required: true,
1809
+ erased: true
1810
+ } }
1811
+ };
1812
+ }
1813
+
1814
+ //#endregion
1815
+ //#region src/operation/metadata/replace-string.ts
1816
+ function replaceString() {
1817
+ return {
1818
+ description: `Replaces occurrences of a pattern in a string (alias for replaceText for string context).`,
1819
+ category: `String`,
1820
+ dependentProperties: ["textContent"],
1821
+ properties: {
1822
+ pattern: {
1823
+ type: [{ value: "string" }, { value: "RegExp" }],
1824
+ required: true,
1825
+ erased: true
1826
+ },
1827
+ replacement: {
1828
+ type: "ParameterType:string",
1829
+ required: true,
1830
+ erased: true
1831
+ }
1832
+ },
1833
+ outputProperties: { result: { type: "ParameterType:string" } }
1834
+ };
1835
+ }
1836
+
1837
+ //#endregion
1838
+ //#region src/operation/metadata/replace-text.ts
1839
+ function replaceText() {
1840
+ return {
1841
+ description: `Finds and replaces text using literal string or regex pattern.
1842
+
1843
+ Operates on textContent passed from previous operations (e.g., getTextContent).
1844
+ Supports regex patterns with global flag for multiple replacements.
1845
+ Updates textContent with replaced text and sets replacementCount.`,
1846
+ category: `Text`,
1847
+ dependentProperties: ["textContent"],
1848
+ properties: {
1849
+ searchPattern: {
1850
+ type: [{ value: "string" }, { value: "RegExp" }],
1851
+ required: true,
1852
+ erased: true
1853
+ },
1854
+ replacement: {
1855
+ type: "ParameterType:string",
1856
+ required: true,
1857
+ erased: true
1858
+ }
1859
+ },
1860
+ outputProperties: { replacementCount: { type: "ParameterType:number" } }
1861
+ };
1862
+ }
1863
+
1864
+ //#endregion
1865
+ //#region src/operation/metadata/request-action.ts
1866
+ function requestAction() {
1867
+ return {
1868
+ description: `This operation requests an action instance with the specified name and assigns it
1869
+ to the \`actionInstance\` property on the current operation data.`,
1870
+ category: `Action`,
1871
+ properties: { systemName: {
1872
+ type: "ParameterType:actionName",
1873
+ required: true,
1874
+ erased: true
1875
+ } },
1876
+ outputProperties: { actionInstance: { type: "ParameterType:object" } }
1877
+ };
1878
+ }
1879
+
1880
+ //#endregion
1881
+ //#region src/operation/metadata/save-to-storage.ts
1882
+ function saveToStorage() {
1883
+ return {
1884
+ description: `Saves data to browser storage (localStorage or sessionStorage).
1885
+
1886
+ Serializes the value as JSON before storing. Supports any JSON-serializable data type.`,
1887
+ category: `Data`,
1888
+ properties: {
1889
+ key: {
1890
+ type: "ParameterType:string",
1891
+ required: true,
1892
+ erased: true
1893
+ },
1894
+ value: {
1895
+ type: "ParameterType:object",
1896
+ required: true,
1897
+ erased: true
1898
+ },
1899
+ storageType: {
1900
+ type: [{ value: "local" }, { value: "session" }],
1901
+ required: true,
1902
+ erased: true
1903
+ }
1904
+ }
1905
+ };
1906
+ }
1907
+
1908
+ //#endregion
1909
+ //#region src/operation/metadata/scroll-to-element.ts
1910
+ function scrollToElement() {
1911
+ return {
1912
+ description: `Scrolls the viewport to bring the selected element into view.
1913
+
1914
+ Uses the browser's \`scrollIntoView\` API with configurable behavior.`,
1915
+ category: `Scroll`,
1916
+ dependentProperties: ["selectedElement"],
1917
+ properties: {
1918
+ behavior: {
1919
+ type: [
1920
+ { value: "undefined" },
1921
+ { value: "auto" },
1922
+ { value: "smooth" }
1923
+ ],
1924
+ erased: true
1925
+ },
1926
+ block: {
1927
+ type: [
1928
+ { value: "undefined" },
1929
+ { value: "start" },
1930
+ { value: "center" },
1931
+ { value: "end" },
1932
+ { value: "nearest" }
1933
+ ],
1934
+ erased: true
1935
+ },
1936
+ inline: {
1937
+ type: [
1938
+ { value: "undefined" },
1939
+ { value: "start" },
1940
+ { value: "center" },
1941
+ { value: "end" },
1942
+ { value: "nearest" }
1943
+ ],
1944
+ erased: true
1945
+ }
1946
+ }
1947
+ };
1948
+ }
1949
+
1950
+ //#endregion
1951
+ //#region src/operation/metadata/scroll-to-position.ts
1952
+ function scrollToPosition() {
1953
+ return {
1954
+ description: `Scrolls the viewport to a specific x,y coordinate position.
1955
+
1956
+ Uses the browser's \`window.scrollTo\` API with configurable behavior.`,
1957
+ category: `Scroll`,
1958
+ properties: {
1959
+ x: {
1960
+ type: "ParameterType:number",
1961
+ required: true,
1962
+ erased: true
1963
+ },
1964
+ y: {
1965
+ type: "ParameterType:number",
1966
+ required: true,
1967
+ erased: true
1968
+ },
1969
+ behavior: {
1970
+ type: [
1971
+ { value: "undefined" },
1972
+ { value: "auto" },
1973
+ { value: "smooth" }
1974
+ ],
1975
+ erased: true
1976
+ }
1977
+ }
1978
+ };
1979
+ }
1980
+
1981
+ //#endregion
1982
+ //#region src/operation/metadata/select-element.ts
1983
+ function selectElement() {
1984
+ return {
1985
+ description: `This operation selects one or more elements using the specified selector.
1986
+
1987
+ If \`useSelectedElementAsRoot\` is set to true and a valid DOM element is assigned
1988
+ to the current operation data's \`selectedElement\` property
1989
+ then the element will be looked for only in the descendant elements of this DOM element.`,
1990
+ category: `DOM`,
1991
+ properties: {
1992
+ selector: {
1993
+ type: "ParameterType:selector",
1994
+ required: true,
1995
+ erased: true
1996
+ },
1997
+ useSelectedElementAsRoot: {
1998
+ type: [
1999
+ { value: "undefined" },
2000
+ { value: "false" },
2001
+ { value: "true" }
2002
+ ],
2003
+ erased: true
2004
+ }
2005
+ },
2006
+ outputProperties: { selectedElement: { type: "ParameterType:object" } }
2007
+ };
2008
+ }
2009
+
2010
+ //#endregion
2011
+ //#region src/operation/metadata/set-data.ts
2012
+ function setData() {
2013
+ return {
2014
+ description: `This operation assigns the specified properties to the specified data targets.`,
2015
+ category: `Data`,
2016
+ properties: { properties: {
2017
+ type: "ParameterType:object",
2018
+ required: true,
2019
+ erased: true
2020
+ } }
2021
+ };
2022
+ }
2023
+
2024
+ //#endregion
2025
+ //#region src/operation/metadata/set-element-attributes.ts
2026
+ function setElementAttributes() {
2027
+ return {
2028
+ description: `This operation sets the specified set of attributes on the given selected element.`,
2029
+ category: `DOM`,
2030
+ dependentProperties: ["selectedElement"],
2031
+ properties: { attributes: {
2032
+ type: "ParameterType:object",
2033
+ required: true,
2034
+ erased: true
2035
+ } }
2036
+ };
2037
+ }
2038
+
2039
+ //#endregion
2040
+ //#region src/operation/metadata/set-element-content.ts
2041
+ function setElementContent() {
2042
+ return {
2043
+ description: `This operation sets the specified content defined by the value assigned to the template property
2044
+ to the given selected element.
2045
+
2046
+ When the \`insertionType\` is set to \`overwrite\` the contents of the selected element are replaced
2047
+ by the given template.
2048
+ When set to \`append\` the new content will be inserted after the current content.
2049
+ When set to \`prepend\` the new content will be inserted before the current content.`,
2050
+ category: `DOM`,
2051
+ dependentProperties: ["selectedElement"],
2052
+ properties: {
2053
+ template: {
2054
+ type: [
2055
+ { value: "string" },
2056
+ { value: "Element" },
2057
+ { value: "Text" },
2058
+ { value: "Comment" },
2059
+ { value: "Document" },
2060
+ { value: "DocumentFragment" }
2061
+ ],
2062
+ erased: true
2063
+ },
2064
+ insertionType: {
2065
+ type: [
2066
+ { value: "overwrite" },
2067
+ { value: "append" },
2068
+ { value: "prepend" }
2069
+ ],
2070
+ erased: true
2071
+ }
2072
+ }
2073
+ };
2074
+ }
2075
+
2076
+ //#endregion
2077
+ //#region src/operation/metadata/set-focus.ts
2078
+ function setFocus() {
2079
+ return {
2080
+ description: `Sets focus to the selected element.`,
2081
+ category: `Focus`,
2082
+ dependentProperties: ["selectedElement"]
2083
+ };
2084
+ }
2085
+
2086
+ //#endregion
2087
+ //#region src/operation/metadata/set-form-value.ts
2088
+ function setFormValue() {
2089
+ return {
2090
+ description: `Sets the value of an input, select, or textarea element.
2091
+
2092
+ Handles different input types appropriately:
2093
+ - Text inputs, textareas, selects: sets value directly
2094
+ - Checkboxes: sets checked property for boolean values
2095
+ - Radio buttons: sets checked property for boolean values
2096
+ - Number inputs: converts to string`,
2097
+ category: `Form`,
2098
+ dependentProperties: ["selectedElement"],
2099
+ properties: { value: {
2100
+ type: [
2101
+ { value: "string" },
2102
+ { value: "number" },
2103
+ { value: "false" },
2104
+ { value: "true" }
2105
+ ],
2106
+ required: true,
2107
+ erased: true
2108
+ } }
2109
+ };
2110
+ }
2111
+
2112
+ //#endregion
2113
+ //#region src/operation/metadata/set-global-data.ts
2114
+ function setGlobalData() {
2115
+ return {
2116
+ description: `This operation copies the specified properties from the operationData to the global data.`,
2117
+ category: `Data`,
2118
+ properties: { propertyNames: {
2119
+ type: "ParameterType:array",
2120
+ itemType: "ParameterType:string",
2121
+ required: true,
2122
+ erased: true
2123
+ } }
2124
+ };
2125
+ }
2126
+
2127
+ //#endregion
2128
+ //#region src/operation/metadata/set-operation-data.ts
2129
+ function setOperationData() {
2130
+ return {
2131
+ description: `This operation assigns the specified properties to the current operation data.
2132
+ When override is set to true the properties replace the current operation data entirely.`,
2133
+ category: `Data`,
2134
+ properties: {
2135
+ override: {
2136
+ type: [
2137
+ { value: "undefined" },
2138
+ { value: "false" },
2139
+ { value: "true" }
2140
+ ],
2141
+ erased: true
2142
+ },
2143
+ properties: {
2144
+ type: "ParameterType:object",
2145
+ required: true,
2146
+ erased: true
2147
+ }
2148
+ }
2149
+ };
2150
+ }
2151
+
2152
+ //#endregion
2153
+ //#region src/operation/metadata/set-style.ts
2154
+ function setStyle() {
2155
+ return {
2156
+ description: `This operation assigns the specified CSS style properties to the
2157
+ given selected element.`,
2158
+ category: `DOM`,
2159
+ dependentProperties: ["selectedElement"],
2160
+ properties: { properties: {
2161
+ type: "ParameterType:cssProperties",
2162
+ required: true,
2163
+ erased: true
2164
+ } }
2165
+ };
2166
+ }
2167
+
2168
+ //#endregion
2169
+ //#region src/operation/metadata/set-variable.ts
2170
+ function setVariable() {
2171
+ return {
2172
+ description: `This operation sets a variable with the specified name on the scope with the specified value.`,
2173
+ category: `Data`,
2174
+ properties: {
2175
+ name: {
2176
+ type: "ParameterType:string",
2177
+ required: true,
2178
+ erased: true
2179
+ },
2180
+ value: {
2181
+ type: "ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array",
2182
+ required: true,
2183
+ erased: true
2184
+ }
2185
+ }
2186
+ };
2187
+ }
2188
+
2189
+ //#endregion
2190
+ //#region src/operation/metadata/sort-array.ts
2191
+ function sortArray() {
2192
+ return {
2193
+ description: `Sorts an array by property, natural order, or custom comparator function.
2194
+
2195
+ Operates on arrayData passed from previous operations.
2196
+ Supports three sorting modes:
2197
+ 1. Property sort: \`sortProperty\` and \`sortOrder\` to sort objects by property
2198
+ 2. Natural sort: \`sortOrder\` alone for primitive arrays
2199
+ 3. Custom comparator: \`sortComparator\` function for complex sorting logic`,
2200
+ category: `Array`,
2201
+ dependentProperties: ["arrayData"],
2202
+ properties: {
2203
+ sortProperty: {
2204
+ type: [{ value: "undefined" }, { value: "string" }],
2205
+ erased: true
2206
+ },
2207
+ sortOrder: {
2208
+ type: [
2209
+ { value: "undefined" },
2210
+ { value: "asc" },
2211
+ { value: "desc" }
2212
+ ],
2213
+ erased: true
2214
+ },
2215
+ sortComparator: {
2216
+ type: [{ value: "undefined" }, { value: "(a: any, b: any) => number" }],
2217
+ erased: true
2218
+ }
2219
+ },
2220
+ outputProperties: { sortedArray: { type: "ParameterType:array" } }
2221
+ };
2222
+ }
2223
+
2224
+ //#endregion
2225
+ //#region src/operation/metadata/split-string.ts
2226
+ function splitString() {
2227
+ return {
2228
+ description: `Splits a string into an array by delimiter (string or regex).`,
2229
+ category: `String`,
2230
+ dependentProperties: ["textContent"],
2231
+ properties: {
2232
+ delimiter: {
2233
+ type: [{ value: "string" }, { value: "RegExp" }],
2234
+ required: true,
2235
+ erased: true
2236
+ },
2237
+ limit: {
2238
+ type: [{ value: "undefined" }, { value: "number" }],
2239
+ erased: true
2240
+ }
2241
+ },
2242
+ outputProperties: { resultArray: {
2243
+ type: "ParameterType:array",
2244
+ itemType: "ParameterType:string"
2245
+ } }
2246
+ };
2247
+ }
2248
+
2249
+ //#endregion
2250
+ //#region src/operation/metadata/start-action.ts
2251
+ function startAction() {
2252
+ return {
2253
+ description: `This operation starts the specified action instance using the given action operation data.
2254
+
2255
+ The action operation data is first merged with the current operation data before it is
2256
+ passed on to the action. After the action has completed the action operation data properties
2257
+ are removed from the current operation data.`,
2258
+ category: `Action`,
2259
+ dependentProperties: ["actionInstance"],
2260
+ properties: { actionOperationData: {
2261
+ type: "ParameterType:object",
2262
+ erased: true
2263
+ } }
2264
+ };
2265
+ }
2266
+
2267
+ //#endregion
2268
+ //#region src/operation/metadata/substring-text.ts
2269
+ function substringText() {
2270
+ return {
2271
+ description: `Extracts a substring from text between start and end indices.`,
2272
+ category: `Text`,
2273
+ dependentProperties: ["textContent"],
2274
+ properties: {
2275
+ start: {
2276
+ type: "ParameterType:number",
2277
+ required: true,
2278
+ erased: true
2279
+ },
2280
+ end: {
2281
+ type: [{ value: "undefined" }, { value: "number" }],
2282
+ erased: true
2283
+ }
2284
+ },
2285
+ outputProperties: { substring: { type: "ParameterType:string" } }
2286
+ };
2287
+ }
2288
+
2289
+ //#endregion
2290
+ //#region src/operation/metadata/toggle-class.ts
2291
+ function toggleClass() {
2292
+ return {
2293
+ description: `This operation toggles the specfied class name on the given selected element.
2294
+
2295
+ Meaning, if the specified class name exists on the given element it will be removed,
2296
+ otherwise it will be added.`,
2297
+ category: `DOM`,
2298
+ dependentProperties: ["selectedElement"],
2299
+ properties: { className: {
2300
+ type: "ParameterType:className",
2301
+ required: true,
2302
+ erased: true
2303
+ } }
2304
+ };
2305
+ }
2306
+
2307
+ //#endregion
2308
+ //#region src/operation/metadata/toggle-element.ts
2309
+ function toggleElement() {
2310
+ return {
2311
+ description: `This operation toggles the visibility of the given selected element.
2312
+
2313
+ Meaning, if the element is hidden, it will be made visible, otherwise
2314
+ it will be hidden.`,
2315
+ category: `DOM`,
2316
+ dependentProperties: ["selectedElement"]
2317
+ };
2318
+ }
2319
+
2320
+ //#endregion
2321
+ //#region src/operation/metadata/toggle-form-element.ts
2322
+ function toggleFormElement() {
2323
+ return {
2324
+ description: `Enables or disables form input elements (inputs, selects, textareas, buttons).
2325
+
2326
+ Sets the \`disabled\` property on the element. When \`enabled\` is true, removes the disabled
2327
+ attribute; when false, adds the disabled attribute.`,
2328
+ category: `Form`,
2329
+ dependentProperties: ["selectedElement"],
2330
+ properties: { enabled: {
2331
+ type: "ParameterType:boolean",
2332
+ required: true,
2333
+ erased: true
2334
+ } }
2335
+ };
2336
+ }
2337
+
2338
+ //#endregion
2339
+ //#region src/operation/metadata/validate-form.ts
2340
+ function validateForm() {
2341
+ return {
2342
+ description: `Validates form fields against HTML5 validation and custom rules.
2343
+
2344
+ Uses HTML5 validation API (checkValidity()) for native validation, and supports
2345
+ custom validation rules for: required, minLength, maxLength, pattern (regex), and email format.`,
2346
+ category: `Form`,
2347
+ dependentProperties: ["selectedElement"],
2348
+ properties: { validationRules: {
2349
+ type: [{ value: "undefined" }, { value: "Record<string, import(\"/home/runner/work/eligius/eligius/src/operation/validate-form\").IValidationRules>" }],
2350
+ erased: true
2351
+ } },
2352
+ outputProperties: {
2353
+ validationErrors: { type: "ParameterType:object" },
2354
+ isValid: { type: [
2355
+ { value: "undefined" },
2356
+ { value: "false" },
2357
+ { value: "true" }
2358
+ ] }
2359
+ }
2360
+ };
2361
+ }
2362
+
2363
+ //#endregion
2364
+ //#region src/operation/metadata/wait.ts
2365
+ function wait() {
2366
+ return {
2367
+ description: `This operation waits for the specified amount of milliseconds.`,
2368
+ category: `Utility`,
2369
+ properties: { milliseconds: {
2370
+ type: "ParameterType:number",
2371
+ required: true,
2372
+ erased: true
2373
+ } }
2374
+ };
2375
+ }
2376
+
2377
+ //#endregion
2378
+ //#region src/operation/metadata/when.ts
2379
+ function when() {
2380
+ return {
2381
+ description: `When the given expression evaluates to false, subsequent operations will be skipped
2382
+ until an {@link endWhen} or {@link otherwise} operation is encountered.
2383
+
2384
+ Practically, this means an \`if\` or \`if\`/\`else\` statement control flow implementation in a list of operations.
2385
+
2386
+ The expression is passed in as a formatted string.
2387
+ The left and right values of the expression can be defined like this:
2388
+
2389
+ 'constant': for a constant string
2390
+ 100: for a constant number
2391
+ $operationData.foo: for an operation data value
2392
+ $globaldata.foo: for a global data value
2393
+ $scope.loopIndex: for a scope value`,
2394
+ category: `Control Flow`,
2395
+ properties: { expression: {
2396
+ type: "ParameterType:expression",
2397
+ required: true,
2398
+ erased: true
2399
+ } }
2400
+ };
2401
+ }
2402
+
2403
+ //#endregion
2404
+ //#region src/operation/metadata/index.ts
2405
+ var metadata_exports$2 = /* @__PURE__ */ __exportAll({
2406
+ addClass: () => addClass,
2407
+ addControllerToElement: () => addControllerToElement,
2408
+ addGlobalsToOperation: () => addGlobalsToOperation,
2409
+ animate: () => animate,
2410
+ animateWithClass: () => animateWithClass,
2411
+ announceToScreenReader: () => announceToScreenReader,
2412
+ breakForEach: () => breakForEach,
2413
+ broadcastEvent: () => broadcastEvent,
2414
+ calc: () => calc,
2415
+ clearElement: () => clearElement,
2416
+ clearOperationData: () => clearOperationData,
2417
+ clearStorage: () => clearStorage,
2418
+ compareDate: () => compareDate,
2419
+ concatenateStrings: () => concatenateStrings,
2420
+ continueForEach: () => continueForEach,
2421
+ createElement: () => createElement,
2422
+ customFunction: () => customFunction,
2423
+ endAction: () => endAction,
2424
+ endForEach: () => endForEach,
2425
+ endWhen: () => endWhen,
2426
+ extendController: () => extendController,
2427
+ filterArray: () => filterArray,
2428
+ findInArray: () => findInArray,
2429
+ forEach: () => forEach,
2430
+ formatDate: () => formatDate,
2431
+ formatText: () => formatText,
2432
+ getAttributesFromElement: () => getAttributesFromElement,
2433
+ getControllerFromElement: () => getControllerFromElement,
2434
+ getControllerInstance: () => getControllerInstance,
2435
+ getCurrentTime: () => getCurrentTime,
2436
+ getElementDimensions: () => getElementDimensions,
2437
+ getFocusedElement: () => getFocusedElement,
2438
+ getFormData: () => getFormData,
2439
+ getImport: () => getImport,
2440
+ getQueryParams: () => getQueryParams,
2441
+ getScrollPosition: () => getScrollPosition,
2442
+ getTextContent: () => getTextContent,
2443
+ httpDelete: () => httpDelete,
2444
+ httpPost: () => httpPost,
2445
+ httpPut: () => httpPut,
2446
+ invokeObjectMethod: () => invokeObjectMethod,
2447
+ isElementInViewport: () => isElementInViewport,
2448
+ loadFromStorage: () => loadFromStorage,
2449
+ loadJson: () => loadJson,
2450
+ log: () => log,
2451
+ mapArray: () => mapArray,
2452
+ math: () => math,
2453
+ otherwise: () => otherwise,
2454
+ removeClass: () => removeClass,
2455
+ removeControllerFromElement: () => removeControllerFromElement,
2456
+ removeElement: () => removeElement,
2457
+ removePropertiesFromOperationData: () => removePropertiesFromOperationData,
2458
+ reparentElement: () => reparentElement,
2459
+ replaceString: () => replaceString,
2460
+ replaceText: () => replaceText,
2461
+ requestAction: () => requestAction,
2462
+ saveToStorage: () => saveToStorage,
2463
+ scrollToElement: () => scrollToElement,
2464
+ scrollToPosition: () => scrollToPosition,
2465
+ selectElement: () => selectElement,
2466
+ setData: () => setData,
2467
+ setElementAttributes: () => setElementAttributes,
2468
+ setElementContent: () => setElementContent,
2469
+ setFocus: () => setFocus,
2470
+ setFormValue: () => setFormValue,
2471
+ setGlobalData: () => setGlobalData,
2472
+ setOperationData: () => setOperationData,
2473
+ setStyle: () => setStyle,
2474
+ setVariable: () => setVariable,
2475
+ sortArray: () => sortArray,
2476
+ splitString: () => splitString,
2477
+ startAction: () => startAction,
2478
+ substringText: () => substringText,
2479
+ toggleClass: () => toggleClass,
2480
+ toggleElement: () => toggleElement,
2481
+ toggleFormElement: () => toggleFormElement,
2482
+ validateForm: () => validateForm,
2483
+ wait: () => wait,
2484
+ when: () => when
2485
+ });
2486
+
2487
+ //#endregion
2488
+ export { metadata_exports as ctrlmetadata, metadata_exports$1 as eventmetadata, metadata_exports$2 as metadata };
2489
+ //# sourceMappingURL=metadata.mjs.map