eligius 1.3.1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/index.d.ts +980 -104
  2. package/dist/index.js +1146 -185
  3. package/dist/index.js.map +1 -1
  4. package/jsonschema/endable-action-template.json +186 -0
  5. package/jsonschema/endable-action.json +186 -0
  6. package/jsonschema/event-action.json +93 -0
  7. package/jsonschema/operation-templates/announce-to-screen-reader.json +43 -0
  8. package/jsonschema/operation-templates/clear-storage.json +43 -0
  9. package/jsonschema/operation-templates/compare-date.json +41 -0
  10. package/jsonschema/operation-templates/concatenate-strings.json +45 -0
  11. package/jsonschema/operation-templates/continue-for-each.json +1 -1
  12. package/jsonschema/operation-templates/filter-array.json +51 -0
  13. package/jsonschema/operation-templates/find-in-array.json +51 -0
  14. package/jsonschema/operation-templates/for-each.json +1 -1
  15. package/jsonschema/operation-templates/format-date.json +39 -0
  16. package/jsonschema/operation-templates/format-text.json +37 -0
  17. package/jsonschema/operation-templates/get-controller-from-element.json +1 -1
  18. package/jsonschema/operation-templates/get-current-time.json +26 -0
  19. package/jsonschema/operation-templates/get-focused-element.json +26 -0
  20. package/jsonschema/operation-templates/get-form-data.json +26 -0
  21. package/jsonschema/operation-templates/get-scroll-position.json +26 -0
  22. package/jsonschema/operation-templates/get-text-content.json +26 -0
  23. package/jsonschema/operation-templates/http-delete.json +45 -0
  24. package/jsonschema/operation-templates/http-post.json +51 -0
  25. package/jsonschema/operation-templates/http-put.json +51 -0
  26. package/jsonschema/operation-templates/is-element-in-viewport.json +26 -0
  27. package/jsonschema/operation-templates/load-from-storage.json +43 -0
  28. package/jsonschema/operation-templates/map-array.json +39 -0
  29. package/jsonschema/operation-templates/remove-controller-from-element.json +1 -1
  30. package/jsonschema/operation-templates/replace-string.json +43 -0
  31. package/jsonschema/operation-templates/replace-text.json +43 -0
  32. package/jsonschema/operation-templates/save-to-storage.json +49 -0
  33. package/jsonschema/operation-templates/scroll-to-element.json +45 -0
  34. package/jsonschema/operation-templates/scroll-to-position.json +49 -0
  35. package/jsonschema/operation-templates/set-focus.json +26 -0
  36. package/jsonschema/operation-templates/set-form-value.json +37 -0
  37. package/jsonschema/operation-templates/sort-array.json +49 -0
  38. package/jsonschema/operation-templates/split-string.json +43 -0
  39. package/jsonschema/operation-templates/substring-text.json +45 -0
  40. package/jsonschema/operation-templates/toggle-form-element.json +39 -0
  41. package/jsonschema/operation-templates/validate-form.json +39 -0
  42. package/jsonschema/operations/announce-to-screen-reader.json +47 -0
  43. package/jsonschema/operations/clear-storage.json +47 -0
  44. package/jsonschema/operations/compare-date.json +46 -0
  45. package/jsonschema/operations/concatenate-strings.json +49 -0
  46. package/jsonschema/operations/continue-for-each.json +1 -1
  47. package/jsonschema/operations/filter-array.json +53 -0
  48. package/jsonschema/operations/find-in-array.json +53 -0
  49. package/jsonschema/operations/for-each.json +1 -1
  50. package/jsonschema/operations/format-date.json +43 -0
  51. package/jsonschema/operations/format-text.json +41 -0
  52. package/jsonschema/operations/get-controller-from-element.json +1 -1
  53. package/jsonschema/operations/get-current-time.json +26 -0
  54. package/jsonschema/operations/get-focused-element.json +26 -0
  55. package/jsonschema/operations/get-form-data.json +26 -0
  56. package/jsonschema/operations/get-scroll-position.json +26 -0
  57. package/jsonschema/operations/get-text-content.json +26 -0
  58. package/jsonschema/operations/http-delete.json +49 -0
  59. package/jsonschema/operations/http-post.json +55 -0
  60. package/jsonschema/operations/http-put.json +55 -0
  61. package/jsonschema/operations/is-element-in-viewport.json +26 -0
  62. package/jsonschema/operations/load-from-storage.json +48 -0
  63. package/jsonschema/operations/map-array.json +43 -0
  64. package/jsonschema/operations/remove-controller-from-element.json +1 -1
  65. package/jsonschema/operations/replace-string.json +48 -0
  66. package/jsonschema/operations/replace-text.json +48 -0
  67. package/jsonschema/operations/save-to-storage.json +55 -0
  68. package/jsonschema/operations/scroll-to-element.json +47 -0
  69. package/jsonschema/operations/scroll-to-position.json +54 -0
  70. package/jsonschema/operations/set-focus.json +26 -0
  71. package/jsonschema/operations/set-form-value.json +41 -0
  72. package/jsonschema/operations/sort-array.json +51 -0
  73. package/jsonschema/operations/split-string.json +47 -0
  74. package/jsonschema/operations/substring-text.json +49 -0
  75. package/jsonschema/operations/toggle-form-element.json +43 -0
  76. package/jsonschema/operations/validate-form.json +41 -0
  77. package/jsonschema/timeline-action.json +186 -0
  78. package/package.json +7 -6
package/dist/index.js CHANGED
@@ -62,11 +62,24 @@ var DevToolEventListener = class {
62
62
 
63
63
  //#endregion
64
64
  //#region src/diagnostics/diagnostics.ts
65
- var Diagnostics = class {
66
- static send(_name, _data) {
67
- console.log(_name, _data);
65
+ let active;
66
+ function send(_name, _data) {
67
+ console.log(_name, _data);
68
+ }
69
+ function setActive(value) {
70
+ active = value;
71
+ }
72
+ function isActive() {
73
+ return active;
74
+ }
75
+ const Diagnostics = {
76
+ send,
77
+ get active() {
78
+ return active;
79
+ },
80
+ set active(value) {
81
+ active = value;
68
82
  }
69
- static active;
70
83
  };
71
84
 
72
85
  //#endregion
@@ -212,10 +225,11 @@ function isExternalProperty(value) {
212
225
  *
213
226
  * At the start of the loop, the associated {@link endForEach} operation is determined and when
214
227
  * the last iteration is completed the flow control is set to the index of that operation.
215
- *
216
- * The {@link continueForEach|continue} and {@link breakForEach|break} operations can be used to control the
228
+ *
229
+ * The {@link continueForEach|continue} and {@link breakForEach|break} operations can be used to control the
217
230
  * loop iterations.
218
- *
231
+ *
232
+ * @category Control Flow
219
233
  */
220
234
  const forEach = function(operationData) {
221
235
  const { collection } = operationData;
@@ -250,6 +264,43 @@ function findEndForEachIndex(scope) {
250
264
  const forEachSystemName = "forEach";
251
265
  const endForEachSystemName = "endForEach";
252
266
 
267
+ //#endregion
268
+ //#region src/operation/helper/remove-operation-properties.ts
269
+ /**
270
+ * Removes specified properties from an operation data object.
271
+ * This is a helper function to eliminate repetitive property deletion code across operations.
272
+ *
273
+ * @template T - The type of the operation data object
274
+ * @template K - The keys to remove from the object (must be keys of T)
275
+ * @param operationData - The operation data object to mutate
276
+ * @param keys - The property keys to delete from the object
277
+ * @returns The mutated operation data object with specified properties removed (typed as Omit<T, K>)
278
+ *
279
+ * @example
280
+ * ```typescript
281
+ * interface IMyOperationData {
282
+ * selectedElement: JQuery;
283
+ * animationDuration: number;
284
+ * animationEasing: string;
285
+ * }
286
+ *
287
+ * const data: IMyOperationData = {
288
+ * selectedElement: $element,
289
+ * animationDuration: 500,
290
+ * animationEasing: 'ease-in'
291
+ * };
292
+ *
293
+ * // Remove multiple properties at once
294
+ * const result = removeProperties(data, 'animationDuration', 'animationEasing');
295
+ * // result is typed as Omit<IMyOperationData, 'animationDuration' | 'animationEasing'>
296
+ * // result = { selectedElement: $element }
297
+ * ```
298
+ */
299
+ function removeProperties(operationData, ...keys) {
300
+ for (const key of keys) delete operationData[key];
301
+ return operationData;
302
+ }
303
+
253
304
  //#endregion
254
305
  //#region src/operation/when.ts
255
306
  /**
@@ -257,17 +308,17 @@ const endForEachSystemName = "endForEach";
257
308
  * until an {@link endWhen} or {@link otherwise} operation is encountered.
258
309
  *
259
310
  * Practically, this means an `if` or `if`/`else` statement control flow implementation in a list of operations.
260
- *
311
+ *
261
312
  * The expression is passed in as a formatted string.
262
313
  * The left and right values of the expression can be defined like this:
263
- *
314
+ *
264
315
  * 'constant': for a constant string
265
316
  * 100: for a constant number
266
317
  * $operationData.foo: for an operation data value
267
318
  * $globaldata.foo: for a global data value
268
319
  * $scope.loopIndex: for a scope value
269
320
  * @foo: for a variable value
270
- *
321
+ *
271
322
  * @example
272
323
  * $scope.variables.foo=='bar'
273
324
  * @example
@@ -277,13 +328,14 @@ const endForEachSystemName = "endForEach";
277
328
  *
278
329
  * @param operationData
279
330
  * @returns
331
+ *
332
+ * @category Control Flow
280
333
  */
281
334
  const when = function(operationData) {
282
335
  const [left, operator, right] = parseExpression(operationData.expression, operationData, this);
283
- delete operationData.expression;
336
+ removeProperties(operationData, "expression");
284
337
  this.whenEvaluation = evaluations[operator](left, right);
285
338
  if (!this.whenEvaluation) this.newIndex = findNextFlowControlIndex(this);
286
- delete operationData.expression;
287
339
  return operationData;
288
340
  };
289
341
  function parseExpression(expression, operationData, operationScope) {
@@ -508,7 +560,7 @@ function _generateSourceCode(importPaths) {
508
560
  result.push("class EligiusResourceImporter implements ISimpleResourceImporter {");
509
561
  result.push("import(name: string): Record<string, any> {");
510
562
  result.push("if (imports.hasOwnProperty(name)) { return imports[name]; }");
511
- result.push("throw Error(`Unknown systemName: ${name}`);");
563
+ result.push("throw Error(\"Unknown systemName: \" + name);");
512
564
  result.push("}}");
513
565
  result.push("");
514
566
  result.push("export default EligiusResourceImporter;");
@@ -573,7 +625,7 @@ function _gatherOperationImportPathsFromActions(actionsConfig) {
573
625
  function _gatherControllerImportPaths(operationConfigs) {
574
626
  if (!operationConfigs) return [];
575
627
  return operationConfigs.filter((operationConfig) => {
576
- if (operationConfig.operationData?.hasOwnProperty("systemName")) return operationConfig.operationData.systemName.endsWith("Controller");
628
+ if (Object.hasOwn(operationConfig.operationData ?? {}, "systemName")) return operationConfig.operationData.systemName.endsWith("Controller");
577
629
  return false;
578
630
  }).map((operationConfig) => {
579
631
  const { systemName } = operationConfig.operationData ?? {};
@@ -600,6 +652,7 @@ function _deduplicate(importPaths) {
600
652
  /**
601
653
  * This operation adds the specified class name to the specified selected element.
602
654
  *
655
+ * @category DOM
603
656
  */
604
657
  const addClass = (operationData) => {
605
658
  const { selectedElement, className } = operationData;
@@ -645,6 +698,7 @@ function internalResolve(resolve, operationData, newOperationData) {
645
698
  /**
646
699
  * This operation adds the specified controller instance to the given selected element.
647
700
  *
701
+ * @category Controller
648
702
  */
649
703
  const addControllerToElement = function(operationData) {
650
704
  const { selectedElement, controllerInstance } = operationData;
@@ -664,6 +718,8 @@ const addControllerToElement = function(operationData) {
664
718
  /**
665
719
  * This operation adds the specified global property names to the current operation data.
666
720
  * It finally removes the `globalProperties` property from the current operation data.
721
+ *
722
+ * @category Data
667
723
  */
668
724
  const addGlobalsToOperation = (operationData) => {
669
725
  const { globalProperties } = operationData;
@@ -671,7 +727,7 @@ const addGlobalsToOperation = (operationData) => {
671
727
  prev[current] = getGlobals(current);
672
728
  return prev;
673
729
  }, {});
674
- delete operationData.globalProperties;
730
+ removeProperties(operationData, "globalProperties");
675
731
  return Object.assign(operationData, globalValues);
676
732
  };
677
733
 
@@ -683,12 +739,12 @@ const addGlobalsToOperation = (operationData) => {
683
739
  *
684
740
  * @param operationData
685
741
  * @returns
742
+ *
743
+ * @category Animation
686
744
  */
687
745
  const animate = (operationData) => {
688
746
  const { selectedElement, animationEasing, animationProperties, animationDuration } = operationData;
689
- delete operationData.animationEasing;
690
- delete operationData.animationProperties;
691
- delete operationData.animationDuration;
747
+ removeProperties(operationData, "animationEasing", "animationProperties", "animationDuration");
692
748
  return new Promise((resolve, reject) => {
693
749
  try {
694
750
  if (animationEasing) selectedElement.animate(animationProperties, animationDuration, animationEasing, () => {
@@ -709,6 +765,8 @@ const animate = (operationData) => {
709
765
  * This operation adds the specified class name to the specified selected element and assumes that this
710
766
  * class triggers and animation on the selected element. It then waits for this animation to complete
711
767
  * before it resolves.
768
+ *
769
+ * @category Animation
712
770
  */
713
771
  const animateWithClass = (operationData) => {
714
772
  let { selectedElement, className, removeClass: removeClass$2 } = operationData;
@@ -730,10 +788,11 @@ const animateWithClass = (operationData) => {
730
788
  //#endregion
731
789
  //#region src/operation/break-for-each.ts
732
790
  /**
733
- *
791
+ *
734
792
  * This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
735
793
  * operation. This operation immediately moves to the loop end index, effectively stopping the loop.
736
- *
794
+ *
795
+ * @category Control Flow
737
796
  */
738
797
  const breakForEach = function(operationData) {
739
798
  if (this.loopIndex !== void 0 && this.loopLength !== void 0) {
@@ -760,12 +819,12 @@ function resolveEventArguments(operationData, operationScope, eventArgs) {
760
819
  /**
761
820
  * This operation broadcasts the given event through the eventbus, along with the
762
821
  * event arguments and optional event topic.
822
+ *
823
+ * @category Utility
763
824
  */
764
825
  const broadcastEvent = function(operationData) {
765
826
  const { eventArgs, eventTopic, eventName } = operationData;
766
- delete operationData.eventArgs;
767
- delete operationData.eventTopic;
768
- delete operationData.eventName;
827
+ removeProperties(operationData, "eventArgs", "eventTopic", "eventName");
769
828
  const eventArguments = resolveEventArguments(operationData, this, eventArgs);
770
829
  if (eventTopic) this.eventbus.broadcastForTopic(eventName, eventTopic, eventArguments);
771
830
  else this.eventbus.broadcast(eventName, eventArguments);
@@ -818,13 +877,13 @@ const calcFunctions = {
818
877
  * This operation calculates the given left and right hand operands using the specified operator.
819
878
  *
820
879
  * @param operationData
880
+ *
881
+ * @category Utility
821
882
  */
822
883
  const calc = function(operationData) {
823
884
  operationData = resolvePropertyValues(operationData, this, operationData);
824
885
  const { left, right, operator } = operationData;
825
- delete operationData.left;
826
- delete operationData.right;
827
- delete operationData.operator;
886
+ removeProperties(operationData, "left", "right", "operator");
828
887
  operationData.calculationResult = calcFunctions[operator](+left, +right);
829
888
  return operationData;
830
889
  };
@@ -834,6 +893,7 @@ const calc = function(operationData) {
834
893
  /**
835
894
  * This operation removes all of the children from the given selected element.
836
895
  *
896
+ * @category DOM
837
897
  */
838
898
  const clearElement = (operationData) => {
839
899
  const { selectedElement } = operationData;
@@ -847,6 +907,7 @@ const clearElement = (operationData) => {
847
907
  * This operation removes all of the properties on the current operation date.
848
908
  * Or, if the `properties` property is set only removes the properties defined by that list.
849
909
  *
910
+ * @category Data
850
911
  */
851
912
  const clearOperationData = (operationData) => {
852
913
  const { properties } = operationData;
@@ -854,7 +915,7 @@ const clearOperationData = (operationData) => {
854
915
  properties.forEach((name) => {
855
916
  delete operationData[name];
856
917
  });
857
- delete operationData.properties;
918
+ removeProperties(operationData, "properties");
858
919
  return operationData;
859
920
  }
860
921
  return {};
@@ -863,11 +924,12 @@ const clearOperationData = (operationData) => {
863
924
  //#endregion
864
925
  //#region src/operation/continue-for-each.ts
865
926
  /**
866
- *
927
+ *
867
928
  * This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
868
- * operation. This operation immediately moves to the next loop index, effectively canceling the rest
929
+ * operation. This operation immediately moves to the next loop index, effectively canceling the rest
869
930
  * of the operations in the current iteration.
870
- *
931
+ *
932
+ * @category Control Flow
871
933
  */
872
934
  const continueForEach = function(operationData) {
873
935
  if (this.loopIndex !== void 0 && this.loopLength !== void 0) {
@@ -885,13 +947,12 @@ const continueForEach = function(operationData) {
885
947
  *
886
948
  * @param operationData
887
949
  * @returns
950
+ * @category DOM
888
951
  */
889
952
  const createElement = function(operationData) {
890
953
  operationData = resolvePropertyValues(operationData, this, operationData);
891
954
  const { elementName, attributes, text } = operationData;
892
- delete operationData.elementName;
893
- delete operationData.attributes;
894
- delete operationData.text;
955
+ removeProperties(operationData, "elementName", "attributes", "text");
895
956
  const serializedAttrs = attributes ? ` ${Object.entries(attributes).filter(([_, value]) => Boolean(value)).map(([key, value]) => `${key}="${value}"`).join(" ")}` : "";
896
957
  operationData.template = text ? $(`<${elementName}${serializedAttrs}>${text}</${elementName}>`) : $(`<${elementName}${serializedAttrs}/>`);
897
958
  return operationData;
@@ -988,11 +1049,12 @@ var TimelineEventNames = class {
988
1049
  * and invokes it with the current operation data and eventbus.
989
1050
  *
990
1051
  * @param operationData
991
- * @returns
1052
+ *
1053
+ * @category Utility
992
1054
  */
993
1055
  const customFunction = function(operationData) {
994
1056
  const { systemName } = operationData;
995
- delete operationData.systemName;
1057
+ removeProperties(operationData, "systemName");
996
1058
  return new Promise((resolve, reject) => {
997
1059
  const resultCallback = (func) => {
998
1060
  const promise = func.apply(this, [operationData]);
@@ -1013,6 +1075,8 @@ const customFunction = function(operationData) {
1013
1075
  * The action operation data is first merged with the current operation data before it is
1014
1076
  * passed on to the action. After the action has completed the action operation data properties
1015
1077
  * are removed from the current operation data.
1078
+ *
1079
+ * @category Action
1016
1080
  */
1017
1081
  const endAction = (operationData) => {
1018
1082
  let { actionOperationData,...newOperationData } = operationData;
@@ -1031,6 +1095,8 @@ const endAction = (operationData) => {
1031
1095
  //#region src/operation/end-for-each.ts
1032
1096
  /**
1033
1097
  * This operation checks if the current loop should end or start the next iteration.
1098
+ *
1099
+ * @category Control Flow
1034
1100
  */
1035
1101
  const endForEach = function(operationData) {
1036
1102
  if (this.loopIndex !== void 0 && this.loopLength !== void 0 && this.loopIndex < this.loopLength) {
@@ -1045,6 +1111,8 @@ const endForEach = function(operationData) {
1045
1111
  //#region src/operation/end-when.ts
1046
1112
  /**
1047
1113
  * This operation cleans up after the {@link when}/{@link otherwise}/{@link endWhen} control flow ends.
1114
+ *
1115
+ * @category Control Flow
1048
1116
  */
1049
1117
  const endWhen = function(operationData) {
1050
1118
  delete this.whenEvaluation;
@@ -1055,10 +1123,12 @@ const endWhen = function(operationData) {
1055
1123
  //#region src/operation/extend-controller.ts
1056
1124
  /**
1057
1125
  * Extends the current controller with given extension.
1126
+ *
1127
+ * @category Controller
1058
1128
  */
1059
1129
  const extendController = (operationData) => {
1060
1130
  const { controllerInstance, controllerExtension } = operationData;
1061
- delete operationData.controllerExtension;
1131
+ removeProperties(operationData, "controllerExtension");
1062
1132
  operationData.controllerInstance = Object.assign(controllerInstance, controllerExtension);
1063
1133
  return operationData;
1064
1134
  };
@@ -1067,10 +1137,12 @@ const extendController = (operationData) => {
1067
1137
  //#region src/operation/get-attributes-from-element.ts
1068
1138
  /**
1069
1139
  * This operation retrieves the values for the specified attribute names from the given selected element.
1140
+ *
1141
+ * @category DOM
1070
1142
  */
1071
1143
  const getAttributesFromElement = (operationData) => {
1072
1144
  const { selectedElement, attributeNames } = operationData;
1073
- delete operationData.attributeNames;
1145
+ removeProperties(operationData, "attributeNames");
1074
1146
  operationData.attributeValues = attributeNames.reduce((acc, attrName) => {
1075
1147
  if (attrName !== "value") acc[attrName] = selectedElement.attr(attrName);
1076
1148
  else acc[attrName] = selectedElement.val();
@@ -1086,10 +1158,12 @@ const getAttributesFromElement = (operationData) => {
1086
1158
  *
1087
1159
  * @param operationData
1088
1160
  * @returns
1161
+ *
1162
+ * @category Controller
1089
1163
  */
1090
1164
  const getControllerFromElement = (operationData) => {
1091
1165
  const { selectedElement, controllerName } = operationData;
1092
- delete operationData.controllerName;
1166
+ removeProperties(operationData, "controllerName");
1093
1167
  const controller = getElementControllers(selectedElement)?.find((ctrl) => ctrl.name === controllerName);
1094
1168
  if (!controller) console.warn(`controller for name '${controllerName}' was not found on the given element`);
1095
1169
  operationData.controllerInstance = controller;
@@ -1101,10 +1175,12 @@ const getControllerFromElement = (operationData) => {
1101
1175
  /**
1102
1176
  * This operation retrieves an instance of the given controller name.
1103
1177
  * It assigns this instance to the `controllerInstance` property on the current operation data
1178
+ *
1179
+ * @category Controller
1104
1180
  */
1105
1181
  const getControllerInstance = function(operationData) {
1106
1182
  const { systemName } = operationData;
1107
- delete operationData.systemName;
1183
+ removeProperties(operationData, "systemName");
1108
1184
  operationData.controllerInstance = void 0;
1109
1185
  const resultCallback = (instance) => {
1110
1186
  operationData.controllerInstance = instance;
@@ -1248,10 +1324,12 @@ function modifyDimensions(dimensions, modifier) {
1248
1324
  *
1249
1325
  * For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
1250
1326
  * 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.
1327
+ *
1328
+ * @category DOM
1251
1329
  */
1252
1330
  const getElementDimensions = (operationData) => {
1253
1331
  const { selectedElement, modifier } = operationData;
1254
- delete operationData.modifier;
1332
+ removeProperties(operationData, "modifier");
1255
1333
  let dimensions = {
1256
1334
  width: selectedElement.innerWidth() ?? 0,
1257
1335
  height: selectedElement.innerHeight() ?? 0
@@ -1269,7 +1347,8 @@ const getElementDimensions = (operationData) => {
1269
1347
  * assigns it to the `importedInstance` property on the current operaton date.
1270
1348
  *
1271
1349
  * @param operationData
1272
- * @returns
1350
+ *
1351
+ * @category Utility
1273
1352
  */
1274
1353
  const getImport = function(operationData) {
1275
1354
  const { systemName } = operationData;
@@ -1287,13 +1366,14 @@ const getImport = function(operationData) {
1287
1366
  /**
1288
1367
  * This operation retrieves the current query parameters from the browser's address bar and places
1289
1368
  * them on the returned operation data.
1369
+ *
1370
+ * @category Utility
1290
1371
  */
1291
1372
  const getQueryParams = (operationData) => {
1292
1373
  const searchParams = new URLSearchParams(window.location.search);
1293
1374
  const queryParams = Object.fromEntries(searchParams.entries());
1294
1375
  const { defaultValues = {} } = operationData;
1295
- delete operationData.defaultValues;
1296
- delete operationData.defaultValues;
1376
+ removeProperties(operationData, "defaultValues");
1297
1377
  operationData.queryParams = {
1298
1378
  ...defaultValues,
1299
1379
  ...queryParams
@@ -1308,7 +1388,8 @@ const getQueryParams = (operationData) => {
1308
1388
  * and assigns the result to the `methodResult` operationdata property.
1309
1389
  *
1310
1390
  * @param operationData
1311
- * @returns
1391
+ *
1392
+ * @category Utility
1312
1393
  */
1313
1394
  const invokeObjectMethod = (operationData) => {
1314
1395
  const { methodName, methodArguments,...newOperationData } = operationData;
@@ -1332,11 +1413,12 @@ const addToCache = (key, value) => {
1332
1413
  *
1333
1414
  * If the cache property is set to true and a cached value already exists, this is assigned
1334
1415
  * instead of re-retrieving it from the url.
1416
+ *
1417
+ * @category Utility
1335
1418
  */
1336
1419
  const loadJson = async (operationData) => {
1337
1420
  const { url, cache: cache$2 } = operationData;
1338
- delete operationData.url;
1339
- delete operationData.cache;
1421
+ removeProperties(operationData, "url", "cache");
1340
1422
  if (cache$2 && jsonCache[url]) {
1341
1423
  operationData.json = jsonCache[url];
1342
1424
  return operationData;
@@ -1351,12 +1433,13 @@ const loadJson = async (operationData) => {
1351
1433
  /**
1352
1434
  * This operation logs the specified value, or, when no logValue property has been assigned
1353
1435
  * it will log the current operation data, global data and scope to the console
1436
+ *
1437
+ * @category Utility
1354
1438
  */
1355
1439
  const log = function(operationData) {
1356
1440
  if ("logValue" in operationData) {
1357
1441
  console.log(operationData.logName ?? "logValue", operationData.logValue);
1358
- delete operationData.logValue;
1359
- delete operationData.logName;
1442
+ removeProperties(operationData, "logValue", "logName");
1360
1443
  } else {
1361
1444
  const globalData = getGlobals();
1362
1445
  console.group("Operation info");
@@ -1378,6 +1461,8 @@ function isString(value) {
1378
1461
  //#region src/operation/math.ts
1379
1462
  /**
1380
1463
  * This operation performs the given math function with the specified arguments.
1464
+ *
1465
+ * @category Utility
1381
1466
  */
1382
1467
  const math = function(operationData) {
1383
1468
  operationData = resolvePropertyValues(operationData, this, operationData);
@@ -1401,6 +1486,8 @@ function isMathProperty(value) {
1401
1486
  /**
1402
1487
  * If the preceeding {@link when} operation evaluates to `true` subsequent operations will
1403
1488
  * be skipped until an {@link endWhen} operation is encountered.
1489
+ *
1490
+ * @category Control Flow
1404
1491
  */
1405
1492
  const otherwise = function(operationData) {
1406
1493
  if (this.whenEvaluation) this.newIndex = findEndWhenIndex(this);
@@ -1423,6 +1510,7 @@ function findEndWhenIndex(scope) {
1423
1510
  *
1424
1511
  * @param operationData
1425
1512
  * @returns
1513
+ * @category DOM
1426
1514
  */
1427
1515
  const removeClass = (operationData) => {
1428
1516
  const { selectedElement, className } = operationData;
@@ -1438,10 +1526,12 @@ const removeClass = (operationData) => {
1438
1526
  *
1439
1527
  * @param operationData
1440
1528
  * @returns
1529
+ *
1530
+ * @category Controller
1441
1531
  */
1442
1532
  const removeControllerFromElement = function(operationData) {
1443
1533
  const { selectedElement, controllerName } = operationData;
1444
- delete controllerName.controllerName;
1534
+ delete operationData.controllerName;
1445
1535
  const controllers$1 = getElementControllers(selectedElement);
1446
1536
  const controller = controllers$1?.find((ctrl) => ctrl.name === controllerName);
1447
1537
  if (controller && controllers$1) {
@@ -1456,6 +1546,8 @@ const removeControllerFromElement = function(operationData) {
1456
1546
  //#region src/operation/remove-element.ts
1457
1547
  /**
1458
1548
  * This operation removes the given selected element from the DOM.
1549
+ *
1550
+ * @category DOM
1459
1551
  */
1460
1552
  const removeElement = (operationData) => {
1461
1553
  const { selectedElement } = operationData;
@@ -1468,6 +1560,8 @@ const removeElement = (operationData) => {
1468
1560
  /**
1469
1561
  * This operation removes the given list of properties from the current operation data.
1470
1562
  * It will also remove the property `propertyNames` from the result.
1563
+ *
1564
+ * @category Data
1471
1565
  */
1472
1566
  const removePropertiesFromOperationData = (operationData) => {
1473
1567
  const { propertyNames } = operationData;
@@ -1483,10 +1577,12 @@ const removePropertiesFromOperationData = (operationData) => {
1483
1577
  *
1484
1578
  * @param operationData
1485
1579
  * @returns
1580
+ *
1581
+ * @category DOM
1486
1582
  */
1487
1583
  const reparentElement = (operationData) => {
1488
1584
  const { selectedElement, newParentSelector } = operationData;
1489
- delete operationData.newParentSelector;
1585
+ removeProperties(operationData, "newParentSelector");
1490
1586
  selectedElement.remove().appendTo(newParentSelector);
1491
1587
  return operationData;
1492
1588
  };
@@ -1496,10 +1592,12 @@ const reparentElement = (operationData) => {
1496
1592
  /**
1497
1593
  * This operation requests an action instance with the specified name and assigns it
1498
1594
  * to the `actionInstance` property on the current operation data.
1595
+ *
1596
+ * @category Action
1499
1597
  */
1500
1598
  const requestAction = function(operationData) {
1501
1599
  const { systemName } = operationData;
1502
- delete operationData.systemName;
1600
+ removeProperties(operationData, "systemName");
1503
1601
  const resultCallback = (action) => {
1504
1602
  operationData.actionInstance = action;
1505
1603
  };
@@ -1520,12 +1618,13 @@ function findElementBySelector(root, selector) {
1520
1618
  * If `useSelectedElementAsRoot` is set to true and a valid DOM element is assigned
1521
1619
  * to the current operation data's `selectedElement` property
1522
1620
  * then the element will be looked for only in the descendant elements of this DOM element.
1621
+ *
1622
+ * @category DOM
1523
1623
  */
1524
1624
  const selectElement = function(operationData) {
1525
1625
  operationData.selector = resolveExternalPropertyChain(operationData, this, operationData.selector);
1526
1626
  const { selector, useSelectedElementAsRoot = false } = operationData;
1527
- delete operationData.selector;
1528
- delete operationData.useSelectedElementAsRoot;
1627
+ removeProperties(operationData, "selector", "useSelectedElementAsRoot");
1529
1628
  if (!selector) throw new Error("selectElement: selector is either empty or not defined.");
1530
1629
  if (useSelectedElementAsRoot && operationData.selectedElement) {
1531
1630
  const currentRoot = operationData.selectedElement;
@@ -1552,10 +1651,12 @@ const selectElement = function(operationData) {
1552
1651
  * '$scope.newIndex': 100, // The constant 100 will be assigned to $scope.newIndex
1553
1652
  * })
1554
1653
  * ```
1654
+ *
1655
+ * @category Data
1555
1656
  */
1556
1657
  const setData = function(operationData) {
1557
1658
  const { properties } = operationData;
1558
- delete operationData.properties;
1659
+ removeProperties(operationData, "properties");
1559
1660
  resolveTargets(properties, operationData, this);
1560
1661
  return operationData;
1561
1662
  };
@@ -1587,10 +1688,12 @@ function isDataTarget(value) {
1587
1688
  //#region src/operation/set-element-attributes.ts
1588
1689
  /**
1589
1690
  * This operation sets the specified set of attributes on the given selected element.
1691
+ *
1692
+ * @category DOM
1590
1693
  */
1591
1694
  const setElementAttributes = (operationData) => {
1592
1695
  const { attributes, selectedElement } = operationData;
1593
- delete operationData.attributes;
1696
+ removeProperties(operationData, "attributes");
1594
1697
  selectedElement.attr(attributes);
1595
1698
  return operationData;
1596
1699
  };
@@ -1605,6 +1708,8 @@ const setElementAttributes = (operationData) => {
1605
1708
  * by the given template.
1606
1709
  * When set to `append` the new content will be inserted after the current content.
1607
1710
  * When set to `prepend` the new content will be inserted before the current content.
1711
+ *
1712
+ * @category DOM
1608
1713
  */
1609
1714
  const setElementContent = (operationData) => {
1610
1715
  const { insertionType = "overwrite", selectedElement, template } = operationData;
@@ -1619,8 +1724,7 @@ const setElementContent = (operationData) => {
1619
1724
  selectedElement.prepend(template);
1620
1725
  break;
1621
1726
  }
1622
- delete operationData.insertionType;
1623
- delete operationData.template;
1727
+ removeProperties(operationData, "insertionType", "template");
1624
1728
  return operationData;
1625
1729
  };
1626
1730
 
@@ -1628,6 +1732,8 @@ const setElementContent = (operationData) => {
1628
1732
  //#region src/operation/set-global-data.ts
1629
1733
  /**
1630
1734
  * This operation copies the specified properties from the operationData to the global data.
1735
+ *
1736
+ * @category Data
1631
1737
  */
1632
1738
  const setGlobalData = (operationData) => {
1633
1739
  const { propertyNames,...newOperationData } = operationData;
@@ -1640,6 +1746,8 @@ const setGlobalData = (operationData) => {
1640
1746
  /**
1641
1747
  * This operation assigns the specified properties to the current operation data.
1642
1748
  * When override is set to true the properties replace the current operation data entirely.
1749
+ *
1750
+ * @category Data
1643
1751
  */
1644
1752
  const setOperationData = function(operationData) {
1645
1753
  const { override = false, properties,...newOperationData } = operationData;
@@ -1656,11 +1764,13 @@ const setOperationData = function(operationData) {
1656
1764
  /**
1657
1765
  * This operation assigns the specified CSS style properties to the
1658
1766
  * given selected element.
1767
+ *
1768
+ * @category DOM
1659
1769
  */
1660
1770
  const setStyle = function(operationData) {
1661
1771
  const properties = resolvePropertyValues(operationData, this, operationData.properties);
1662
1772
  operationData.selectedElement.css(properties);
1663
- delete operationData.properties;
1773
+ removeProperties(operationData, "properties");
1664
1774
  return operationData;
1665
1775
  };
1666
1776
 
@@ -1668,13 +1778,14 @@ const setStyle = function(operationData) {
1668
1778
  //#region src/operation/set-variable.ts
1669
1779
  /**
1670
1780
  * This operation sets a variable with the specified name on the scope with the specified value.
1781
+ *
1782
+ * @category Data
1671
1783
  */
1672
1784
  const setVariable = function(operationData) {
1673
1785
  const { name, value } = operationData;
1674
1786
  if (!this.variables) this.variables = {};
1675
1787
  this.variables[name] = value;
1676
- delete operationData.name;
1677
- delete operationData.value;
1788
+ removeProperties(operationData, "name", "value");
1678
1789
  return operationData;
1679
1790
  };
1680
1791
 
@@ -1686,6 +1797,8 @@ const setVariable = function(operationData) {
1686
1797
  * The action operation data is first merged with the current operation data before it is
1687
1798
  * passed on to the action. After the action has completed the action operation data properties
1688
1799
  * are removed from the current operation data.
1800
+ *
1801
+ * @category Action
1689
1802
  */
1690
1803
  const startAction = (operationData) => {
1691
1804
  let { actionInstance, actionOperationData,...newOperationData } = operationData;
@@ -1710,6 +1823,8 @@ const startAction = (operationData) => {
1710
1823
  *
1711
1824
  * Meaning, if the specified class name exists on the given element it will be removed,
1712
1825
  * otherwise it will be added.
1826
+ *
1827
+ * @category DOM
1713
1828
  */
1714
1829
  const toggleClass = (operationData) => {
1715
1830
  const { selectedElement, className } = operationData;
@@ -1725,6 +1840,8 @@ const toggleClass = (operationData) => {
1725
1840
  *
1726
1841
  * Meaning, if the element is hidden, it will be made visible, otherwise
1727
1842
  * it will be hidden.
1843
+ *
1844
+ * @category DOM
1728
1845
  */
1729
1846
  const toggleElement = function toggleElement$2(operationData) {
1730
1847
  operationData.selectedElement.toggle();
@@ -1735,6 +1852,8 @@ const toggleElement = function toggleElement$2(operationData) {
1735
1852
  //#region src/operation/wait.ts
1736
1853
  /**
1737
1854
  * This operation waits for the specified amount of milliseconds.
1855
+ *
1856
+ * @category Utility
1738
1857
  */
1739
1858
  const wait = (operationData) => {
1740
1859
  const { milliseconds,...newOperationData } = operationData;
@@ -2300,7 +2419,7 @@ var TimelineActionEditor = class extends EndableActionEditor {
2300
2419
  * @returns
2301
2420
  */
2302
2421
  setDuration(start, end) {
2303
- if (end != void 0 && start > end) throw Error("start position cannot be higher than end position");
2422
+ if (end !== void 0 && start > end) throw Error("start position cannot be higher than end position");
2304
2423
  const duration = { start };
2305
2424
  if (end) duration.end = end;
2306
2425
  this.actionConfig = {
@@ -2567,7 +2686,7 @@ var RequestAnimationFrameTimelineProvider = class {
2567
2686
  }
2568
2687
  start() {
2569
2688
  if (this.playState === "running") {
2570
- if (this._currentPosition == 0) this._callbackPosition();
2689
+ if (this._currentPosition === 0) this._callbackPosition();
2571
2690
  return;
2572
2691
  }
2573
2692
  this._playState = "running";
@@ -2577,7 +2696,7 @@ var RequestAnimationFrameTimelineProvider = class {
2577
2696
  this._firstFramePending = false;
2578
2697
  this._onFirstFrame?.();
2579
2698
  }
2580
- if (this._currentPosition == 0) this._callbackPosition();
2699
+ if (this._currentPosition === 0) this._callbackPosition();
2581
2700
  animationInterval(this._tickInterval, this._abortController.signal, this._updateBound);
2582
2701
  }
2583
2702
  _resetToStartPosition() {
@@ -3309,19 +3428,18 @@ var ConfigurationFactory = class ConfigurationFactory {
3309
3428
  };
3310
3429
 
3311
3430
  //#endregion
3312
- //#region src/controllers/event-listener-controller.ts
3431
+ //#region src/controllers/dom-event-listener-controller.ts
3313
3432
  /**
3314
- * This controller attaches to the given selected element and adds an event listener for the specified event name that
3433
+ * This controller attaches to the given selected element and adds a DOM event listener for the specified event name that
3315
3434
  * executes the given actions with the given operation data.
3316
3435
  *
3317
3436
  * By default the `start` operations of the specified actions are executed. To execute the `end` operations instead,
3318
3437
  * prefix the action name with `end:`.
3319
3438
  */
3320
- var EventListenerController = class {
3439
+ var DOMEventListenerController = class {
3321
3440
  operationData;
3322
3441
  actionInstanceInfos;
3323
- name = "EventListenerController";
3324
- constructor() {}
3442
+ name = "DOMEventListenerController";
3325
3443
  init(operationData) {
3326
3444
  this.operationData = {
3327
3445
  selectedElement: operationData.selectedElement,
@@ -3371,6 +3489,75 @@ var EventListenerController = class {
3371
3489
  }
3372
3490
  };
3373
3491
 
3492
+ //#endregion
3493
+ //#region src/controllers/base-controller.ts
3494
+ /**
3495
+ * Abstract base class for controllers providing standardized event listener management
3496
+ *
3497
+ * Benefits:
3498
+ * - Eliminates boilerplate event listener tracking code
3499
+ * - Automatic binding of event handlers to controller instance
3500
+ * - Centralized cleanup preventing memory leaks
3501
+ * - Consistent event management pattern across all controllers
3502
+ *
3503
+ * @example
3504
+ * ```typescript
3505
+ * class MyController extends BaseController<IMyOperationData> {
3506
+ * name = 'MyController';
3507
+ *
3508
+ * init(operationData: IMyOperationData): void {
3509
+ * this.operationData = operationData;
3510
+ * }
3511
+ *
3512
+ * attach(eventbus: IEventbus): void {
3513
+ * this.addListener(eventbus, 'my-event', this.handleMyEvent);
3514
+ * // Handler automatically bound, cleanup tracked
3515
+ * }
3516
+ *
3517
+ * private handleMyEvent(): void {
3518
+ * // 'this' context preserved
3519
+ * }
3520
+ * }
3521
+ * ```
3522
+ */
3523
+ var BaseController = class {
3524
+ operationData = null;
3525
+ eventListeners = [];
3526
+ /**
3527
+ * Register event listener with automatic binding and cleanup tracking
3528
+ *
3529
+ * @param eventbus - The eventbus to register with
3530
+ * @param eventName - Name of the event to listen for
3531
+ * @param handler - Event handler function (will be bound to this controller)
3532
+ */
3533
+ addListener(eventbus$1, eventName, handler) {
3534
+ const boundHandler = handler.bind(this);
3535
+ const remover = eventbus$1.on(eventName, boundHandler);
3536
+ this.eventListeners.push(remover);
3537
+ }
3538
+ /**
3539
+ * Register multiple event listeners at once
3540
+ *
3541
+ * @param eventbus - The eventbus to register with
3542
+ * @param listeners - Array of {eventName, handler} pairs
3543
+ */
3544
+ attachMultiple(eventbus$1, listeners) {
3545
+ listeners.forEach(({ eventName, handler }) => {
3546
+ this.addListener(eventbus$1, eventName, handler);
3547
+ });
3548
+ }
3549
+ /**
3550
+ * Clean up all tracked event listeners
3551
+ * Prevents memory leaks by removing all registered handlers
3552
+ *
3553
+ * @param _eventbus - The eventbus (ignored, included for IController compatibility)
3554
+ */
3555
+ detach(_eventbus) {
3556
+ this.eventListeners.forEach((remover) => remover());
3557
+ this.eventListeners = [];
3558
+ }
3559
+ };
3560
+
3374
3561
  //#endregion
3375
3562
  //#region src/controllers/label-controller.ts
3376
3563
  /**
@@ -3379,10 +3566,8 @@ var EventListenerController = class {
3379
3566
  * The controller also listen for the `LANGUAGE_CHANGE` event and re-renders the text with the new language after such an event.
3380
3567
  *
3381
3568
  */
3382
- var LabelController = class {
3383
- listeners = [];
3569
+ var LabelController = class extends BaseController {
3384
3570
  currentLanguage = null;
3385
- operationData = null;
3386
3571
  labelData = {};
3387
3572
  name = "LabelController";
3388
3573
  requestLabelDataBound;
@@ -3403,7 +3588,7 @@ var LabelController = class {
3403
3588
  this.requestLabelDataBound = this._requestLabelData.bind(this, eventbus$1);
3404
3589
  this.requestLabelDataBound(this.operationData.labelId);
3405
3590
  this._setLabel();
3406
- this.listeners.push(eventbus$1.on(TimelineEventNames.LANGUAGE_CHANGE, this._handleLanguageChange.bind(this)));
3591
+ this.addListener(eventbus$1, TimelineEventNames.LANGUAGE_CHANGE, this._handleLanguageChange);
3407
3592
  }
3408
3593
  _requestLabelData(eventbus$1, labelId) {
3409
3594
  eventbus$1.broadcast(TimelineEventNames.REQUEST_LABEL_COLLECTION, [labelId, (labelCollection) => {
@@ -3418,8 +3603,8 @@ var LabelController = class {
3418
3603
  else this.operationData?.selectedElement.attr(this.operationData?.attributeName, text);
3419
3604
  }
3420
3605
  }
3421
- detach(_eventbus) {
3422
- this.listeners.forEach((func) => func());
3606
+ detach(eventbus$1) {
3607
+ super.detach(eventbus$1);
3423
3608
  this.requestLabelDataBound = void 0;
3424
3609
  }
3425
3610
  _handleLanguageChange(code) {
@@ -3442,18 +3627,15 @@ const lottie = lt.default ?? lt;
3442
3627
  * The url may encode freeze and end positions like this: my-url/filename[freeze=10,end=21].json
3443
3628
  *
3444
3629
  */
3445
- var LottieController = class {
3630
+ var LottieController = class extends BaseController {
3446
3631
  name = "LottieController";
3447
3632
  currentLanguage = "nl-NL";
3448
3633
  labelData = {};
3449
- eventbusRemovers = [];
3450
3634
  animationItem = null;
3451
- operationData = null;
3452
3635
  serializedData = null;
3453
3636
  serializedIEData = null;
3454
3637
  freezePosition = -1;
3455
3638
  endPosition = -1;
3456
- constructor() {}
3457
3639
  init(operationData) {
3458
3640
  this.operationData = { ...operationData };
3459
3641
  if (operationData.url.indexOf("[") > -1) this._parseFilename(operationData.url);
@@ -3461,7 +3643,9 @@ var LottieController = class {
3461
3643
  if (this.operationData.iefallback) this.serializedIEData = JSON.stringify(this.operationData.iefallback);
3462
3644
  }
3463
3645
  _parseFilename(name) {
3464
- name.substring(name.indexOf("[") + 1, name.indexOf("]") - name.indexOf("[") - 1).split(",").forEach((setting) => {
3646
+ const startIndex = name.indexOf("[") + 1;
3647
+ const endIndex = name.indexOf("]");
3648
+ name.substring(startIndex, endIndex).split(",").forEach((setting) => {
3465
3649
  const values = setting.split("=");
3466
3650
  if (values[0] === "freeze") this.freezePosition = +values[1];
3467
3651
  else if (values[0] === "end") this.endPosition = +values[1];
@@ -3470,20 +3654,18 @@ var LottieController = class {
3470
3654
  attach(eventbus$1) {
3471
3655
  if (!this.operationData) return;
3472
3656
  const { labelIds } = this.operationData;
3473
- if (labelIds && labelIds.length) {
3657
+ if (labelIds?.length) {
3474
3658
  const resultHolder = {};
3475
3659
  eventbus$1.broadcast(TimelineEventNames.REQUEST_CURRENT_LANGUAGE, [resultHolder]);
3476
3660
  this.currentLanguage = resultHolder.language;
3477
- this.eventbusRemovers.push(eventbus$1.on(TimelineEventNames.LANGUAGE_CHANGE, this._handleLanguageChange.bind(this)));
3661
+ this.addListener(eventbus$1, TimelineEventNames.LANGUAGE_CHANGE, this._handleLanguageChange);
3478
3662
  eventbus$1.broadcast(TimelineEventNames.REQUEST_LABEL_COLLECTIONS, [this.operationData.labelIds, resultHolder]);
3479
3663
  this._createTextDataLookup(resultHolder.labelCollections);
3480
3664
  }
3481
3665
  this._createAnimation();
3482
3666
  }
3483
- detach(_eventbus) {
3484
- this.eventbusRemovers.forEach((func) => {
3485
- func();
3486
- });
3667
+ detach(eventbus$1) {
3668
+ super.detach(eventbus$1);
3487
3669
  if (this.animationItem) if (this.endPosition > -1) {
3488
3670
  this.animationItem.addEventListener("complete", this._destroy.bind(this));
3489
3671
  this.animationItem.playSegments([this.freezePosition, this.endPosition], true);
@@ -3500,8 +3682,8 @@ var LottieController = class {
3500
3682
  this.animationItem?.destroy();
3501
3683
  let serialized = this._isIE() && this.serializedIEData ? this.serializedIEData : this.serializedData;
3502
3684
  const { labelIds } = this.operationData;
3503
- if (labelIds && labelIds.length) labelIds.forEach((id) => {
3504
- serialized = serialized.split(`!!${id}!!`).join(this.labelData[id][this.currentLanguage]);
3685
+ if (labelIds?.length) serialized = serialized.replace(/!!([^!]+)!!/g, (match, labelId) => {
3686
+ return this.labelData[labelId]?.[this.currentLanguage] ?? match;
3505
3687
  });
3506
3688
  const animationData = JSON.parse(serialized);
3507
3689
  const animationSettings = {
@@ -3528,14 +3710,14 @@ var LottieController = class {
3528
3710
  this._createAnimation();
3529
3711
  }
3530
3712
  _isIE() {
3531
- const isIE = !!window.document["documentMode"];
3532
- return !isIE && !!window["StyleMedia"] || isIE;
3713
+ const isIE = !!window.document.documentMode;
3714
+ return !isIE && !!window.StyleMedia || isIE;
3533
3715
  }
3534
3716
  };
3535
3717
 
3536
3718
  //#endregion
3537
3719
  //#region src/controllers/navigation-controller.ts
3538
- var NavigationController = class {
3720
+ var NavigationController = class extends BaseController {
3539
3721
  name = "NavigationController";
3540
3722
  navigation = [];
3541
3723
  navLookup = {};
@@ -3543,10 +3725,8 @@ var NavigationController = class {
3543
3725
  ctrlLookup = {};
3544
3726
  activeNavigationPoint = null;
3545
3727
  labelControllers = [];
3546
- eventhandlers = [];
3547
3728
  eventbus = null;
3548
3729
  container = null;
3549
- constructor() {}
3550
3730
  init(operationData) {
3551
3731
  this.container = operationData.selectedElement;
3552
3732
  this.navigation = this._buildNavigationData(operationData.json);
@@ -3554,10 +3734,10 @@ var NavigationController = class {
3554
3734
  attach(eventbus$1) {
3555
3735
  if (!this.container) return;
3556
3736
  this.eventbus = eventbus$1;
3557
- this.eventhandlers.push(eventbus$1.on("navigate-to-video-url", this._handleNavigateVideoUrl.bind(this)));
3558
- this.eventhandlers.push(eventbus$1.on("highlight-navigation", this._highlightMenu.bind(this)));
3559
- this.eventhandlers.push(eventbus$1.on("request-current-navigation", this._handleRequestCurrentNavigation.bind(this)));
3560
- this.eventhandlers.push(eventbus$1.on("video-complete", this._handleVideoComplete.bind(this)));
3737
+ this.addListener(eventbus$1, "navigate-to-video-url", this._handleNavigateVideoUrl);
3738
+ this.addListener(eventbus$1, "highlight-navigation", this._highlightMenu);
3739
+ this.addListener(eventbus$1, "request-current-navigation", this._handleRequestCurrentNavigation);
3740
+ this.addListener(eventbus$1, "video-complete", this._handleVideoComplete);
3561
3741
  this._buildHtml(this.container, this.navigation);
3562
3742
  this._initHistory.bind(this);
3563
3743
  }
@@ -3587,9 +3767,7 @@ var NavigationController = class {
3587
3767
  } else resultCallback(null);
3588
3768
  }
3589
3769
  detach(eventbus$1) {
3590
- this.eventhandlers.forEach((handler) => {
3591
- handler();
3592
- });
3770
+ super.detach(eventbus$1);
3593
3771
  this.labelControllers.forEach((ctrl) => {
3594
3772
  ctrl.detach(eventbus$1);
3595
3773
  });
@@ -3702,31 +3880,28 @@ var NavigationController = class {
3702
3880
  *
3703
3881
  * The current progress as a percentage is rendered in the given text element.
3704
3882
  */
3705
- var ProgressbarController = class {
3883
+ var ProgressbarController = class extends BaseController {
3706
3884
  name = "ProgressbarController";
3707
3885
  selectedElement = null;
3708
3886
  textElement = null;
3709
- eventbusRemovers = [];
3710
3887
  duration = 0;
3711
3888
  init(operationData) {
3712
3889
  this.selectedElement = operationData.selectedElement;
3713
3890
  this.textElement = operationData.textElement;
3714
3891
  }
3715
3892
  attach(eventbus$1) {
3716
- this.eventbusRemovers.push(eventbus$1.on(TimelineEventNames.TIME, this._positionUpdateHandler.bind(this)));
3893
+ this.addListener(eventbus$1, TimelineEventNames.TIME, this._positionUpdateHandler);
3717
3894
  eventbus$1.broadcast(TimelineEventNames.DURATION_REQUEST, [(duration) => this.duration = duration]);
3718
3895
  this.selectedElement?.css({ "pointer-events": "none" });
3719
3896
  const container = this.selectedElement?.parent();
3720
3897
  if (container) {
3721
3898
  const clickHandler = this._clickHandler.bind(this, eventbus$1);
3722
3899
  container.on("click", clickHandler);
3723
- this.eventbusRemovers.push(() => container.off("click", clickHandler));
3900
+ this.eventListeners.push(() => container.off("click", clickHandler));
3724
3901
  }
3725
3902
  }
3726
- detach(_eventbus) {
3727
- this.eventbusRemovers.forEach((func) => {
3728
- func();
3729
- });
3903
+ detach(eventbus$1) {
3904
+ super.detach(eventbus$1);
3730
3905
  }
3731
3906
  _positionUpdateHandler(position) {
3732
3907
  const percentage = 100 / this.duration * position;
@@ -3746,20 +3921,18 @@ var ProgressbarController = class {
3746
3921
  /**
3747
3922
  * This is a work in progress, do not use this yet please....
3748
3923
  */
3749
- var RoutingController = class {
3924
+ var RoutingController = class extends BaseController {
3750
3925
  name = "RoutingController";
3751
3926
  navLookup = {};
3752
3927
  navVidIdLookup = {};
3753
3928
  navigation = null;
3754
- eventhandlers = [];
3755
3929
  eventbus = null;
3756
- constructor() {}
3757
3930
  init(operationData) {
3758
3931
  this.navigation = this._buildNavigationData(operationData.json);
3759
3932
  }
3760
3933
  attach(eventbus$1) {
3761
- this.eventhandlers.push(eventbus$1.on("before-request-video-url", this._handleBeforeRequestVideoUrl.bind(this)));
3762
- this.eventhandlers.push(eventbus$1.on("push-history-state", this._handlePushHistoryState.bind(this)));
3934
+ this.addListener(eventbus$1, "before-request-video-url", this._handleBeforeRequestVideoUrl);
3935
+ this.addListener(eventbus$1, "push-history-state", this._handlePushHistoryState);
3763
3936
  this.eventbus = eventbus$1;
3764
3937
  window.onpopstate = this._handlePopstate.bind(this);
3765
3938
  const navId = this._getQueryVariable(0);
@@ -3784,10 +3957,9 @@ var RoutingController = class {
3784
3957
  true
3785
3958
  ]);
3786
3959
  }
3787
- detach(_eventbus) {
3788
- if (this.eventhandlers) this.eventhandlers.forEach((handler) => {
3789
- handler();
3790
- });
3960
+ detach(eventbus$1) {
3961
+ super.detach(eventbus$1);
3962
+ window.onpopstate = null;
3791
3963
  this.eventbus = null;
3792
3964
  }
3793
3965
  _handleBeforeRequestVideoUrl(_index, _requestedVideoPosition = 0, isHistoryRequest = false) {
@@ -3812,7 +3984,7 @@ var RoutingController = class {
3812
3984
  this._pushState(state);
3813
3985
  }
3814
3986
  _pushState(state) {
3815
- if (state && state.navigationData && state.navigationData.visible) {
3987
+ if (state?.navigationData?.visible) {
3816
3988
  let currentPosition = state.position !== void 0 ? state.position : -1;
3817
3989
  if (currentPosition < 0) {
3818
3990
  const resultCallback = (position) => {
@@ -3862,29 +4034,19 @@ var RoutingController = class {
3862
4034
 
3863
4035
  //#endregion
3864
4036
  //#region src/controllers/subtitles-controller.ts
3865
- var SubtitlesController = class {
4037
+ var SubtitlesController = class extends BaseController {
3866
4038
  actionLookup = {};
3867
4039
  currentLanguage = null;
3868
4040
  lastFunc = null;
3869
4041
  name = "SubtitlesController";
3870
4042
  subtitleDurations = null;
3871
4043
  attach(eventbus$1) {
3872
- const detachTime = eventbus$1.on(TimelineEventNames.TIME, this.onTimeHandler.bind(this));
3873
- const detachSeek = eventbus$1.on(TimelineEventNames.SEEKED, this.onSeekedHandler.bind(this));
3874
- const detachLangChange = eventbus$1.on(TimelineEventNames.LANGUAGE_CHANGE, this.languageChangeHandler.bind(this));
3875
- this.internalDetach = this.internalDetach.bind(this, [
3876
- detachTime,
3877
- detachLangChange,
3878
- detachSeek
3879
- ]);
3880
- }
3881
- detach(_eventbus) {
3882
- this.internalDetach();
4044
+ this.addListener(eventbus$1, TimelineEventNames.TIME, this.onTimeHandler);
4045
+ this.addListener(eventbus$1, TimelineEventNames.SEEKED, this.onSeekedHandler);
4046
+ this.addListener(eventbus$1, TimelineEventNames.LANGUAGE_CHANGE, this.languageChangeHandler);
3883
4047
  }
3884
- internalDetach(detachMethods) {
3885
- if (detachMethods) detachMethods.forEach((f) => {
3886
- f();
3887
- });
4048
+ detach(eventbus$1) {
4049
+ super.detach(eventbus$1);
3888
4050
  }
3889
4051
  languageChangeHandler(newLanguage) {
3890
4052
  this.currentLanguage = newLanguage;
@@ -3903,7 +4065,7 @@ var SubtitlesController = class {
3903
4065
  }
3904
4066
  onSeekedHandler(args) {
3905
4067
  const position = args[0];
3906
- const duration = this.subtitleDurations?.find((x) => x.start <= position || x.end >= position);
4068
+ const duration = this.subtitleDurations?.find((x) => x.start <= position && x.end >= position);
3907
4069
  const func = duration ? this.actionLookup[duration.start ?? -1] : void 0;
3908
4070
  if (func && this.lastFunc !== func) {
3909
4071
  this.lastFunc = func;
@@ -3940,7 +4102,7 @@ var SubtitlesController = class {
3940
4102
  //#endregion
3941
4103
  //#region src/controllers/index.ts
3942
4104
  var controllers_exports = /* @__PURE__ */ __export({
3943
- EventListenerController: () => EventListenerController,
4105
+ DOMEventListenerController: () => DOMEventListenerController,
3944
4106
  LabelController: () => LabelController,
3945
4107
  LottieController: () => LottieController,
3946
4108
  NavigationController: () => NavigationController,
@@ -3954,6 +4116,7 @@ var controllers_exports = /* @__PURE__ */ __export({
3954
4116
  function addClass$1() {
3955
4117
  return {
3956
4118
  description: `This operation adds the specified class name to the specified selected element.`,
4119
+ category: `DOM`,
3957
4120
  dependentProperties: ["selectedElement"],
3958
4121
  properties: { className: {
3959
4122
  type: "ParameterType:className",
@@ -3968,6 +4131,7 @@ function addClass$1() {
3968
4131
  function addControllerToElement$1() {
3969
4132
  return {
3970
4133
  description: `This operation adds the specified controller instance to the given selected element.`,
4134
+ category: `Controller`,
3971
4135
  dependentProperties: ["selectedElement", "controllerInstance"]
3972
4136
  };
3973
4137
  }
@@ -3978,6 +4142,7 @@ function addGlobalsToOperation$1() {
3978
4142
  return {
3979
4143
  description: `This operation adds the specified global property names to the current operation data.
3980
4144
  It finally removes the \`globalProperties\` property from the current operation data.`,
4145
+ category: `Data`,
3981
4146
  properties: { globalProperties: {
3982
4147
  type: "ParameterType:array",
3983
4148
  itemType: "ParameterType:string",
@@ -3994,6 +4159,7 @@ function animateWithClass$1() {
3994
4159
  description: `This operation adds the specified class name to the specified selected element and assumes that this
3995
4160
  class triggers and animation on the selected element. It then waits for this animation to complete
3996
4161
  before it resolves.`,
4162
+ category: `Animation`,
3997
4163
  dependentProperties: ["selectedElement"],
3998
4164
  properties: {
3999
4165
  className: {
@@ -4011,6 +4177,7 @@ function animate$1() {
4011
4177
  return {
4012
4178
  description: `This operation animates the specified selected element with the given [jQuery animation](https://api.jquery.com/animate/) properties, duration and easing.
4013
4179
  It resolves after the animation completes.`,
4180
+ category: `Animation`,
4014
4181
  dependentProperties: ["selectedElement"],
4015
4182
  properties: {
4016
4183
  animationEasing: {
@@ -4031,12 +4198,35 @@ It resolves after the animation completes.`,
4031
4198
  };
4032
4199
  }
4033
4200
 
4201
+ //#endregion
4202
+ //#region src/operation/metadata/announce-to-screen-reader.ts
4203
+ function announceToScreenReader() {
4204
+ return {
4205
+ description: `Announces a message to screen readers using an ARIA live region.`,
4206
+ category: `Accessibility`,
4207
+ properties: {
4208
+ message: {
4209
+ type: "ParameterType:string",
4210
+ required: true,
4211
+ erased: true
4212
+ },
4213
+ priority: {
4214
+ type: [{ value: "polite" }, { value: "assertive" }],
4215
+ erased: true
4216
+ }
4217
+ }
4218
+ };
4219
+ }
4220
+
4034
4221
  //#endregion
4035
4222
  //#region src/operation/metadata/break-for-each.ts
4036
4223
  function breakForEach$1() {
4037
- return { description: `
4224
+ return {
4225
+ description: `
4038
4226
  This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
4039
- operation. This operation immediately moves to the loop end index, effectively stopping the loop.` };
4227
+ operation. This operation immediately moves to the loop end index, effectively stopping the loop.`,
4228
+ category: `Control Flow`
4229
+ };
4040
4230
  }
4041
4231
 
4042
4232
  //#endregion
@@ -4045,6 +4235,7 @@ function broadcastEvent$1() {
4045
4235
  return {
4046
4236
  description: `This operation broadcasts the given event through the eventbus, along with the
4047
4237
  event arguments and optional event topic.`,
4238
+ category: `Utility`,
4048
4239
  properties: {
4049
4240
  eventArgs: {
4050
4241
  type: "ParameterType:array",
@@ -4069,6 +4260,7 @@ event arguments and optional event topic.`,
4069
4260
  function calc$1() {
4070
4261
  return {
4071
4262
  description: `This operation calculates the given left and right hand operands using the specified operator.`,
4263
+ category: `Utility`,
4072
4264
  properties: {
4073
4265
  left: {
4074
4266
  type: "ParameterType:number",
@@ -4102,6 +4294,7 @@ function calc$1() {
4102
4294
  function clearElement$1() {
4103
4295
  return {
4104
4296
  description: `This operation removes all of the children from the given selected element.`,
4297
+ category: `DOM`,
4105
4298
  dependentProperties: ["selectedElement"]
4106
4299
  };
4107
4300
  }
@@ -4112,6 +4305,7 @@ function clearOperationData$1() {
4112
4305
  return {
4113
4306
  description: `This operation removes all of the properties on the current operation date.
4114
4307
  Or, if the \`properties\` property is set only removes the properties defined by that list.`,
4308
+ category: `Data`,
4115
4309
  properties: { properties: {
4116
4310
  type: "ParameterType:array",
4117
4311
  itemType: "ParameterType:string",
@@ -4120,13 +4314,96 @@ Or, if the \`properties\` property is set only removes the properties defined by
4120
4314
  };
4121
4315
  }
4122
4316
 
4317
+ //#endregion
4318
+ //#region src/operation/metadata/clear-storage.ts
4319
+ function clearStorage() {
4320
+ return {
4321
+ description: `Clears data from browser storage (localStorage or sessionStorage).
4322
+
4323
+ If \`key\` is provided, removes only that key. If \`key\` is omitted, clears all storage.`,
4324
+ category: `Data`,
4325
+ properties: {
4326
+ key: {
4327
+ type: "ParameterType:string",
4328
+ erased: true
4329
+ },
4330
+ storageType: {
4331
+ type: [{ value: "local" }, { value: "session" }],
4332
+ required: true,
4333
+ erased: true
4334
+ }
4335
+ }
4336
+ };
4337
+ }
4338
+
4339
+ //#endregion
4340
+ //#region src/operation/metadata/compare-date.ts
4341
+ function compareDate() {
4342
+ return {
4343
+ description: `Compares two dates.
4344
+ comparison: -1 (before), 0 (equal), 1 (after)`,
4345
+ category: `Date`,
4346
+ properties: {
4347
+ date1: {
4348
+ type: [
4349
+ { value: "string" },
4350
+ { value: "number" },
4351
+ { value: "Date" }
4352
+ ],
4353
+ required: true,
4354
+ erased: true
4355
+ },
4356
+ date2: {
4357
+ type: [
4358
+ { value: "string" },
4359
+ { value: "number" },
4360
+ { value: "Date" }
4361
+ ],
4362
+ required: true,
4363
+ erased: true
4364
+ }
4365
+ },
4366
+ outputProperties: {
4367
+ comparison: { type: "ParameterType:number" },
4368
+ isEqual: { type: "ParameterType:boolean" },
4369
+ isBefore: { type: "ParameterType:boolean" },
4370
+ isAfter: { type: "ParameterType:boolean" }
4371
+ }
4372
+ };
4373
+ }
4374
+
4375
+ //#endregion
4376
+ //#region src/operation/metadata/concatenate-strings.ts
4377
+ function concatenateStrings() {
4378
+ return {
4379
+ description: `Concatenates multiple strings with an optional separator.`,
4380
+ category: `String`,
4381
+ properties: {
4382
+ strings: {
4383
+ type: "ParameterType:array",
4384
+ itemType: "ParameterType:string",
4385
+ required: true,
4386
+ erased: true
4387
+ },
4388
+ separator: {
4389
+ type: "ParameterType:string",
4390
+ erased: true
4391
+ }
4392
+ },
4393
+ outputProperties: { result: { type: "ParameterType:string" } }
4394
+ };
4395
+ }
4396
+
4123
4397
  //#endregion
4124
4398
  //#region src/operation/metadata/continue-for-each.ts
4125
4399
  function continueForEach$1() {
4126
- return { description: `
4400
+ return {
4401
+ description: `
4127
4402
  This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
4128
- operation. This operation immediately moves to the next loop index, effectively canceling the rest
4129
- of the operations in the current iteration.` };
4403
+ operation. This operation immediately moves to the next loop index, effectively canceling the rest
4404
+ of the operations in the current iteration.`,
4405
+ category: `Control Flow`
4406
+ };
4130
4407
  }
4131
4408
 
4132
4409
  //#endregion
@@ -4135,6 +4412,7 @@ function createElement$1() {
4135
4412
  return {
4136
4413
  description: `This operation creates the DOM element described by the given elementName and attributes and assigns
4137
4414
  the instance to the \`template\` property on the current operation data.`,
4415
+ category: `DOM`,
4138
4416
  properties: {
4139
4417
  elementName: {
4140
4418
  type: "ParameterType:htmlElementName",
@@ -4160,6 +4438,7 @@ function customFunction$1() {
4160
4438
  return {
4161
4439
  description: `This operation retrieves a custom function defined by the given system name
4162
4440
  and invokes it with the current operation data and eventbus.`,
4441
+ category: `Utility`,
4163
4442
  properties: { systemName: {
4164
4443
  type: "ParameterType:systemName",
4165
4444
  required: true,
@@ -4177,6 +4456,7 @@ function endAction$1() {
4177
4456
  The action operation data is first merged with the current operation data before it is
4178
4457
  passed on to the action. After the action has completed the action operation data properties
4179
4458
  are removed from the current operation data.`,
4459
+ category: `Action`,
4180
4460
  dependentProperties: ["actionInstance"],
4181
4461
  properties: { actionOperationData: {
4182
4462
  type: "ParameterType:object",
@@ -4189,13 +4469,19 @@ are removed from the current operation data.`,
4189
4469
  //#endregion
4190
4470
  //#region src/operation/metadata/end-for-each.ts
4191
4471
  function endForEach$1() {
4192
- return { description: `This operation checks if the current loop should end or start the next iteration.` };
4472
+ return {
4473
+ description: `This operation checks if the current loop should end or start the next iteration.`,
4474
+ category: `Control Flow`
4475
+ };
4193
4476
  }
4194
4477
 
4195
4478
  //#endregion
4196
4479
  //#region src/operation/metadata/end-when.ts
4197
4480
  function endWhen$1() {
4198
- return { description: `This operation cleans up after the {@link when}/{@link otherwise}/{@link endWhen} control flow ends.` };
4481
+ return {
4482
+ description: `This operation cleans up after the {@link when}/{@link otherwise}/{@link endWhen} control flow ends.`,
4483
+ category: `Control Flow`
4484
+ };
4199
4485
  }
4200
4486
 
4201
4487
  //#endregion
@@ -4203,6 +4489,7 @@ function endWhen$1() {
4203
4489
  function extendController$1() {
4204
4490
  return {
4205
4491
  description: `Extends the current controller with given extension.`,
4492
+ category: `Controller`,
4206
4493
  dependentProperties: ["controllerInstance"],
4207
4494
  properties: { controllerExtension: {
4208
4495
  type: "ParameterType:object",
@@ -4212,6 +4499,71 @@ function extendController$1() {
4212
4499
  };
4213
4500
  }
4214
4501
 
4502
+ //#endregion
4503
+ //#region src/operation/metadata/filter-array.ts
4504
+ function filterArray() {
4505
+ return {
4506
+ description: `Filters an array based on property equality or custom predicate function.
4507
+
4508
+ Operates on arrayData passed from previous operations.
4509
+ Supports two filtering modes:
4510
+ 1. Property equality: \`filterProperty\` and \`filterValue\` to filter by property match
4511
+ 2. Custom predicate: \`filterPredicate\` function for complex filtering logic`,
4512
+ category: `Array`,
4513
+ dependentProperties: ["arrayData"],
4514
+ properties: {
4515
+ filterProperty: {
4516
+ type: "ParameterType:string",
4517
+ erased: true
4518
+ },
4519
+ filterValue: {
4520
+ type: "ParameterType:object",
4521
+ erased: true
4522
+ },
4523
+ filterPredicate: {
4524
+ type: "ParameterType:function",
4525
+ erased: true
4526
+ }
4527
+ },
4528
+ outputProperties: { filteredArray: { type: "ParameterType:array" } }
4529
+ };
4530
+ }
4531
+
4532
+ //#endregion
4533
+ //#region src/operation/metadata/find-in-array.ts
4534
+ function findInArray() {
4535
+ return {
4536
+ description: `Finds the first element in an array matching criteria.
4537
+
4538
+ Operates on arrayData passed from previous operations.
4539
+ Supports two search modes:
4540
+ 1. Property equality: \`findProperty\` and \`findValue\` to find by property match
4541
+ 2. Custom predicate: \`findPredicate\` function for complex search logic
4542
+
4543
+ Returns \`undefined\` for \`foundItem\` and \`-1\` for \`foundIndex\` if no match found.`,
4544
+ category: `Array`,
4545
+ dependentProperties: ["arrayData"],
4546
+ properties: {
4547
+ findProperty: {
4548
+ type: "ParameterType:string",
4549
+ erased: true
4550
+ },
4551
+ findValue: {
4552
+ type: "ParameterType:object",
4553
+ erased: true
4554
+ },
4555
+ findPredicate: {
4556
+ type: "ParameterType:function",
4557
+ erased: true
4558
+ }
4559
+ },
4560
+ outputProperties: {
4561
+ foundItem: { type: "ParameterType:object" },
4562
+ foundIndex: { type: "ParameterType:number" }
4563
+ }
4564
+ };
4565
+ }
4566
+
4215
4567
  //#endregion
4216
4568
  //#region src/operation/metadata/for-each.ts
4217
4569
  function forEach$1() {
@@ -4224,8 +4576,9 @@ assigned to the {@link IOperationScope.currentItem |currentItem} property on the
4224
4576
  At the start of the loop, the associated {@link endForEach} operation is determined and when
4225
4577
  the last iteration is completed the flow control is set to the index of that operation.
4226
4578
 
4227
- The {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the
4579
+ The {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the
4228
4580
  loop iterations.`,
4581
+ category: `Control Flow`,
4229
4582
  properties: { collection: {
4230
4583
  type: "ParameterType:array|ParameterType:string",
4231
4584
  required: true
@@ -4234,33 +4587,82 @@ loop iterations.`,
4234
4587
  }
4235
4588
 
4236
4589
  //#endregion
4237
- //#region src/operation/metadata/get-attributes-from-element.ts
4238
- function getAttributesFromElement$1() {
4590
+ //#region src/operation/metadata/format-date.ts
4591
+ function formatDate() {
4239
4592
  return {
4240
- description: `This operation retrieves the values for the specified attribute names from the given selected element.`,
4241
- dependentProperties: ["selectedElement"],
4242
- properties: { attributeNames: {
4243
- type: "ParameterType:array",
4244
- itemType: "ParameterType:string",
4593
+ description: `Formats a date using Intl.DateTimeFormat or simple patterns.`,
4594
+ category: `Date`,
4595
+ dependentProperties: ["date"],
4596
+ properties: { format: {
4597
+ type: "ParameterType:string",
4245
4598
  required: true,
4246
4599
  erased: true
4247
4600
  } },
4248
- outputProperties: { attributeValues: { type: "ParameterType:object" } }
4601
+ outputProperties: { formattedDate: { type: "ParameterType:string" } }
4249
4602
  };
4250
4603
  }
4251
4604
 
4252
4605
  //#endregion
4253
- //#region src/operation/metadata/get-controller-from-element.ts
4254
- function getControllerFromElement$1() {
4606
+ //#region src/operation/metadata/format-text.ts
4607
+ function formatText() {
4255
4608
  return {
4256
- description: `This operation retrieves the controller instance with the specified name that is assigned to the given selected element.`,
4257
- dependentProperties: ["selectedElement"],
4258
- properties: { controllerName: {
4259
- type: "ParameterType:controllerName",
4609
+ description: `Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.
4610
+
4611
+ Operates on textContent passed from previous operations (e.g., getTextContent).
4612
+
4613
+ Transformations:
4614
+ - \`uppercase\`: Convert all characters to uppercase
4615
+ - \`lowercase\`: Convert all characters to lowercase
4616
+ - \`capitalize\`: Capitalize only the first letter
4617
+ - \`titlecase\`: Capitalize first letter of each word
4618
+ - \`trim\`: Remove leading and trailing whitespace`,
4619
+ category: `Text`,
4620
+ dependentProperties: ["textContent"],
4621
+ properties: { transformation: {
4622
+ type: [
4623
+ { value: "uppercase" },
4624
+ { value: "lowercase" },
4625
+ { value: "capitalize" },
4626
+ { value: "titlecase" },
4627
+ { value: "trim" }
4628
+ ],
4260
4629
  required: true,
4261
4630
  erased: true
4262
4631
  } },
4263
- outputProperties: { controllerInstance: { type: "ParameterType:object" } }
4632
+ outputProperties: { formattedText: { type: "ParameterType:string" } }
4633
+ };
4634
+ }
4635
+
4636
+ //#endregion
4637
+ //#region src/operation/metadata/get-attributes-from-element.ts
4638
+ function getAttributesFromElement$1() {
4639
+ return {
4640
+ description: `This operation retrieves the values for the specified attribute names from the given selected element.`,
4641
+ category: `DOM`,
4642
+ dependentProperties: ["selectedElement"],
4643
+ properties: { attributeNames: {
4644
+ type: "ParameterType:array",
4645
+ itemType: "ParameterType:string",
4646
+ required: true,
4647
+ erased: true
4648
+ } },
4649
+ outputProperties: { attributeValues: { type: "ParameterType:object" } }
4650
+ };
4651
+ }
4652
+
4653
+ //#endregion
4654
+ //#region src/operation/metadata/get-controller-from-element.ts
4655
+ function getControllerFromElement$1() {
4656
+ return {
4657
+ description: `This operation retrieves the controller instance with the specified name that is assigned to the given selected element.`,
4658
+ category: `Controller`,
4659
+ dependentProperties: ["selectedElement"],
4660
+ properties: { controllerName: {
4661
+ type: "ParameterType:controllerName",
4662
+ required: true,
4663
+ erased: true
4664
+ } },
4665
+ outputProperties: { controllerInstance: { type: "ParameterType:object" } }
4264
4666
  };
4265
4667
  }
4266
4668
 
@@ -4270,9 +4672,10 @@ function getControllerInstance$1() {
4270
4672
  return {
4271
4673
  description: `This operation retrieves an instance of the given controller name.
4272
4674
  It assigns this instance to the \`controllerInstance\` property on the current operation data`,
4675
+ category: `Controller`,
4273
4676
  properties: { systemName: {
4274
4677
  type: [
4275
- { value: "EventListenerController" },
4678
+ { value: "DOMEventListenerController" },
4276
4679
  { value: "LabelController" },
4277
4680
  { value: "LottieController" },
4278
4681
  { value: "NavigationController" },
@@ -4287,6 +4690,19 @@ It assigns this instance to the \`controllerInstance\` property on the current o
4287
4690
  };
4288
4691
  }
4289
4692
 
4693
+ //#endregion
4694
+ //#region src/operation/metadata/get-current-time.ts
4695
+ function getCurrentTime() {
4696
+ return {
4697
+ description: `Gets the current time as timestamp and Date object.`,
4698
+ category: `Date`,
4699
+ outputProperties: {
4700
+ timestamp: { type: "ParameterType:number" },
4701
+ date: { type: "ParameterType:Date" }
4702
+ }
4703
+ };
4704
+ }
4705
+
4290
4706
  //#endregion
4291
4707
  //#region src/operation/metadata/get-element-dimensions.ts
4292
4708
  function getElementDimensions$1() {
@@ -4304,6 +4720,7 @@ Where the ratio modifier is formatted in the following way:
4304
4720
 
4305
4721
  For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
4306
4722
  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.`,
4723
+ category: `DOM`,
4307
4724
  dependentProperties: ["selectedElement"],
4308
4725
  properties: { modifier: {
4309
4726
  type: "ParameterType:dimensionsModifier",
@@ -4313,12 +4730,38 @@ it will add a value of 100 to the height and modify the width by a ratio of 8 to
4313
4730
  };
4314
4731
  }
4315
4732
 
4733
+ //#endregion
4734
+ //#region src/operation/metadata/get-focused-element.ts
4735
+ function getFocusedElement() {
4736
+ return {
4737
+ description: `Gets the currently focused element.`,
4738
+ category: `Focus`,
4739
+ outputProperties: { focusedElement: { type: "ParameterType:jQuery" } }
4740
+ };
4741
+ }
4742
+
4743
+ //#endregion
4744
+ //#region src/operation/metadata/get-form-data.ts
4745
+ function getFormData() {
4746
+ return {
4747
+ description: `Extracts all input, select, and textarea values from form element into operation data.
4748
+
4749
+ This operation reads form field values and returns them as an object with field names as keys.
4750
+ Only processes form elements that are enabled and not hidden. Handles checkboxes, radio buttons,
4751
+ select elements, textareas, and text inputs.`,
4752
+ category: `Form`,
4753
+ dependentProperties: ["selectedElement"],
4754
+ outputProperties: { formData: { type: "ParameterType:object" } }
4755
+ };
4756
+ }
4757
+
4316
4758
  //#endregion
4317
4759
  //#region src/operation/metadata/get-import.ts
4318
4760
  function getImport$1() {
4319
4761
  return {
4320
4762
  description: `This operation retrieves the import specified by the given \`systemName\` and
4321
4763
  assigns it to the \`importedInstance\` property on the current operaton date.`,
4764
+ category: `Utility`,
4322
4765
  properties: { systemName: {
4323
4766
  type: "ParameterType:systemName",
4324
4767
  required: true,
@@ -4334,6 +4777,7 @@ function getQueryParams$1() {
4334
4777
  return {
4335
4778
  description: `This operation retrieves the current query parameters from the browser's address bar and places
4336
4779
  them on the returned operation data.`,
4780
+ category: `Utility`,
4337
4781
  properties: { defaultValues: {
4338
4782
  type: "ParameterType:object",
4339
4783
  erased: true
@@ -4342,12 +4786,123 @@ them on the returned operation data.`,
4342
4786
  };
4343
4787
  }
4344
4788
 
4789
+ //#endregion
4790
+ //#region src/operation/metadata/get-scroll-position.ts
4791
+ function getScrollPosition() {
4792
+ return {
4793
+ description: `Gets the current scroll position of the viewport.
4794
+
4795
+ Returns x (horizontal) and y (vertical) scroll positions in pixels.
4796
+ Uses cross-browser compatible methods to retrieve scroll position.`,
4797
+ category: `Scroll`,
4798
+ outputProperties: {
4799
+ scrollX: { type: "ParameterType:number" },
4800
+ scrollY: { type: "ParameterType:number" }
4801
+ }
4802
+ };
4803
+ }
4804
+
4805
+ //#endregion
4806
+ //#region src/operation/metadata/get-text-content.ts
4807
+ function getTextContent() {
4808
+ return {
4809
+ description: `Extracts text content from element, stripping all HTML markup.
4810
+
4811
+ Uses jQuery's \`.text()\` method which is XSS-safe and returns only the text content
4812
+ without any HTML tags. Preserves whitespace and text from nested elements.`,
4813
+ category: `Text`,
4814
+ dependentProperties: ["selectedElement"],
4815
+ outputProperties: { textContent: { type: "ParameterType:string" } }
4816
+ };
4817
+ }
4818
+
4819
+ //#endregion
4820
+ //#region src/operation/metadata/http-delete.ts
4821
+ function httpDelete() {
4822
+ return {
4823
+ description: `Performs an HTTP DELETE request to the specified URL.`,
4824
+ category: `HTTP`,
4825
+ properties: {
4826
+ url: {
4827
+ type: "ParameterType:string",
4828
+ required: true,
4829
+ erased: true
4830
+ },
4831
+ headers: {
4832
+ type: "ParameterType:object",
4833
+ erased: true
4834
+ }
4835
+ },
4836
+ outputProperties: {
4837
+ response: { type: "ParameterType:object" },
4838
+ status: { type: "ParameterType:number" }
4839
+ }
4840
+ };
4841
+ }
4842
+
4843
+ //#endregion
4844
+ //#region src/operation/metadata/http-post.ts
4845
+ function httpPost() {
4846
+ return {
4847
+ description: `Performs an HTTP POST request to the specified URL.`,
4848
+ category: `HTTP`,
4849
+ properties: {
4850
+ url: {
4851
+ type: "ParameterType:string",
4852
+ required: true,
4853
+ erased: true
4854
+ },
4855
+ body: {
4856
+ type: "ParameterType:object",
4857
+ erased: true
4858
+ },
4859
+ headers: {
4860
+ type: "ParameterType:object",
4861
+ erased: true
4862
+ }
4863
+ },
4864
+ outputProperties: {
4865
+ response: { type: "ParameterType:object" },
4866
+ status: { type: "ParameterType:number" }
4867
+ }
4868
+ };
4869
+ }
4870
+
4871
+ //#endregion
4872
+ //#region src/operation/metadata/http-put.ts
4873
+ function httpPut() {
4874
+ return {
4875
+ description: `Performs an HTTP PUT request to the specified URL.`,
4876
+ category: `HTTP`,
4877
+ properties: {
4878
+ url: {
4879
+ type: "ParameterType:string",
4880
+ required: true,
4881
+ erased: true
4882
+ },
4883
+ body: {
4884
+ type: "ParameterType:object",
4885
+ erased: true
4886
+ },
4887
+ headers: {
4888
+ type: "ParameterType:object",
4889
+ erased: true
4890
+ }
4891
+ },
4892
+ outputProperties: {
4893
+ response: { type: "ParameterType:object" },
4894
+ status: { type: "ParameterType:number" }
4895
+ }
4896
+ };
4897
+ }
4898
+
4345
4899
  //#endregion
4346
4900
  //#region src/operation/metadata/invoke-object-method.ts
4347
4901
  function invokeObjectMethod$1() {
4348
4902
  return {
4349
4903
  description: `This operation invokes the specified method on the given object with the given optional arguments
4350
4904
  and assigns the result to the \`methodResult\` operationdata property.`,
4905
+ category: `Utility`,
4351
4906
  dependentProperties: ["instance"],
4352
4907
  properties: {
4353
4908
  methodName: {
@@ -4364,6 +4919,43 @@ and assigns the result to the \`methodResult\` operationdata property.`,
4364
4919
  };
4365
4920
  }
4366
4921
 
4922
+ //#endregion
4923
+ //#region src/operation/metadata/is-element-in-viewport.ts
4924
+ function isElementInViewport() {
4925
+ return {
4926
+ description: `Checks if an element is currently visible within the viewport.
4927
+
4928
+ Uses \`getBoundingClientRect()\` to determine if the element is within the viewport boundaries.`,
4929
+ category: `DOM`,
4930
+ dependentProperties: ["selectedElement"],
4931
+ outputProperties: { isInViewport: { type: "ParameterType:boolean" } }
4932
+ };
4933
+ }
4934
+
4935
+ //#endregion
4936
+ //#region src/operation/metadata/load-from-storage.ts
4937
+ function loadFromStorage() {
4938
+ return {
4939
+ description: `Loads data from browser storage (localStorage or sessionStorage).
4940
+
4941
+ Deserializes the stored JSON value. Returns \`null\` if key doesn't exist.`,
4942
+ category: `Data`,
4943
+ properties: {
4944
+ key: {
4945
+ type: "ParameterType:string",
4946
+ required: true,
4947
+ erased: true
4948
+ },
4949
+ storageType: {
4950
+ type: [{ value: "local" }, { value: "session" }],
4951
+ required: true,
4952
+ erased: true
4953
+ }
4954
+ },
4955
+ outputProperties: { loadedValue: { type: "ParameterType:object" } }
4956
+ };
4957
+ }
4958
+
4367
4959
  //#endregion
4368
4960
  //#region src/operation/metadata/load-json.ts
4369
4961
  function loadJson$1() {
@@ -4373,6 +4965,7 @@ property on the current operation data.
4373
4965
 
4374
4966
  If the cache property is set to true and a cached value already exists, this is assigned
4375
4967
  instead of re-retrieving it from the url.`,
4968
+ category: `Utility`,
4376
4969
  properties: {
4377
4970
  url: {
4378
4971
  type: "ParameterType:string",
@@ -4394,6 +4987,7 @@ function log$1() {
4394
4987
  return {
4395
4988
  description: `This operation logs the specified value, or, when no logValue property has been assigned
4396
4989
  it will log the current operation data, global data and scope to the console`,
4990
+ category: `Utility`,
4397
4991
  properties: {
4398
4992
  logValue: {
4399
4993
  type: "ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array",
@@ -4407,11 +5001,31 @@ it will log the current operation data, global data and scope to the console`,
4407
5001
  };
4408
5002
  }
4409
5003
 
5004
+ //#endregion
5005
+ //#region src/operation/metadata/map-array.ts
5006
+ function mapArray() {
5007
+ return {
5008
+ description: `Transforms each element of an array using a mapping function.
5009
+
5010
+ Operates on arrayData passed from previous operations.
5011
+ The mapFunction receives each item and optionally its index.`,
5012
+ category: `Array`,
5013
+ dependentProperties: ["arrayData"],
5014
+ properties: { mapFunction: {
5015
+ type: "ParameterType:function",
5016
+ required: true,
5017
+ erased: true
5018
+ } },
5019
+ outputProperties: { mappedArray: { type: "ParameterType:array" } }
5020
+ };
5021
+ }
5022
+
4410
5023
  //#endregion
4411
5024
  //#region src/operation/metadata/math.ts
4412
5025
  function math$1() {
4413
5026
  return {
4414
5027
  description: `This operation performs the given math function with the specified arguments.`,
5028
+ category: `Utility`,
4415
5029
  properties: {
4416
5030
  args: {
4417
5031
  type: "ParameterType:array",
@@ -4431,8 +5045,11 @@ function math$1() {
4431
5045
  //#endregion
4432
5046
  //#region src/operation/metadata/otherwise.ts
4433
5047
  function otherwise$1() {
4434
- return { description: `If the preceeding {@link when} operation evaluates to \`true\` subsequent operations will
4435
- be skipped until an {@link endWhen} operation is encountered.` };
5048
+ return {
5049
+ description: `If the preceeding {@link when} operation evaluates to \`true\` subsequent operations will
5050
+ be skipped until an {@link endWhen} operation is encountered.`,
5051
+ category: `Control Flow`
5052
+ };
4436
5053
  }
4437
5054
 
4438
5055
  //#endregion
@@ -4440,6 +5057,7 @@ be skipped until an {@link endWhen} operation is encountered.` };
4440
5057
  function removeClass$1() {
4441
5058
  return {
4442
5059
  description: `This operation removes the spcified class name from the given selected element.`,
5060
+ category: `DOM`,
4443
5061
  dependentProperties: ["selectedElement"],
4444
5062
  properties: { className: {
4445
5063
  type: "ParameterType:className",
@@ -4454,6 +5072,7 @@ function removeClass$1() {
4454
5072
  function removeControllerFromElement$1() {
4455
5073
  return {
4456
5074
  description: `This operation removes the controller with the specified name from the given selected element.`,
5075
+ category: `Controller`,
4457
5076
  dependentProperties: ["selectedElement"],
4458
5077
  properties: { controllerName: {
4459
5078
  type: "ParameterType:controllerName",
@@ -4468,6 +5087,7 @@ function removeControllerFromElement$1() {
4468
5087
  function removeElement$1() {
4469
5088
  return {
4470
5089
  description: `This operation removes the given selected element from the DOM.`,
5090
+ category: `DOM`,
4471
5091
  dependentProperties: ["selectedElement"]
4472
5092
  };
4473
5093
  }
@@ -4478,6 +5098,7 @@ function removePropertiesFromOperationData$1() {
4478
5098
  return {
4479
5099
  description: `This operation removes the given list of properties from the current operation data.
4480
5100
  It will also remove the property \`propertyNames\` from the result.`,
5101
+ category: `Data`,
4481
5102
  properties: { propertyNames: {
4482
5103
  type: "ParameterType:array",
4483
5104
  itemType: "ParameterType:string",
@@ -4493,6 +5114,7 @@ function reparentElement$1() {
4493
5114
  return {
4494
5115
  description: `This operation moves the given selected element to the new parent that is defined
4495
5116
  by the specified \`newParentSelector\`.`,
5117
+ category: `DOM`,
4496
5118
  dependentProperties: ["selectedElement"],
4497
5119
  properties: { newParentSelector: {
4498
5120
  type: "ParameterType:selector",
@@ -4502,12 +5124,63 @@ by the specified \`newParentSelector\`.`,
4502
5124
  };
4503
5125
  }
4504
5126
 
5127
+ //#endregion
5128
+ //#region src/operation/metadata/replace-string.ts
5129
+ function replaceString() {
5130
+ return {
5131
+ description: `Replaces occurrences of a pattern in a string (alias for replaceText for string context).`,
5132
+ category: `String`,
5133
+ dependentProperties: ["textContent"],
5134
+ properties: {
5135
+ pattern: {
5136
+ type: [{ value: "string" }, { value: "RegExp" }],
5137
+ required: true,
5138
+ erased: true
5139
+ },
5140
+ replacement: {
5141
+ type: "ParameterType:string",
5142
+ required: true,
5143
+ erased: true
5144
+ }
5145
+ },
5146
+ outputProperties: { result: { type: "ParameterType:string" } }
5147
+ };
5148
+ }
5149
+
5150
+ //#endregion
5151
+ //#region src/operation/metadata/replace-text.ts
5152
+ function replaceText() {
5153
+ return {
5154
+ description: `Finds and replaces text using literal string or regex pattern.
5155
+
5156
+ Operates on textContent passed from previous operations (e.g., getTextContent).
5157
+ Supports regex patterns with global flag for multiple replacements.
5158
+ Updates textContent with replaced text and sets replacementCount.`,
5159
+ category: `Text`,
5160
+ dependentProperties: ["textContent"],
5161
+ properties: {
5162
+ searchPattern: {
5163
+ type: [{ value: "string" }, { value: "RegExp" }],
5164
+ required: true,
5165
+ erased: true
5166
+ },
5167
+ replacement: {
5168
+ type: "ParameterType:string",
5169
+ required: true,
5170
+ erased: true
5171
+ }
5172
+ },
5173
+ outputProperties: { replacementCount: { type: "ParameterType:number" } }
5174
+ };
5175
+ }
5176
+
4505
5177
  //#endregion
4506
5178
  //#region src/operation/metadata/request-action.ts
4507
5179
  function requestAction$1() {
4508
5180
  return {
4509
5181
  description: `This operation requests an action instance with the specified name and assigns it
4510
5182
  to the \`actionInstance\` property on the current operation data.`,
5183
+ category: `Action`,
4511
5184
  properties: { systemName: {
4512
5185
  type: "ParameterType:actionName",
4513
5186
  required: true,
@@ -4517,6 +5190,97 @@ to the \`actionInstance\` property on the current operation data.`,
4517
5190
  };
4518
5191
  }
4519
5192
 
5193
+ //#endregion
5194
+ //#region src/operation/metadata/save-to-storage.ts
5195
+ function saveToStorage() {
5196
+ return {
5197
+ description: `Saves data to browser storage (localStorage or sessionStorage).
5198
+
5199
+ Serializes the value as JSON before storing. Supports any JSON-serializable data type.`,
5200
+ category: `Data`,
5201
+ properties: {
5202
+ key: {
5203
+ type: "ParameterType:string",
5204
+ required: true,
5205
+ erased: true
5206
+ },
5207
+ value: {
5208
+ type: "ParameterType:object",
5209
+ required: true,
5210
+ erased: true
5211
+ },
5212
+ storageType: {
5213
+ type: [{ value: "local" }, { value: "session" }],
5214
+ required: true,
5215
+ erased: true
5216
+ }
5217
+ }
5218
+ };
5219
+ }
5220
+
5221
+ //#endregion
5222
+ //#region src/operation/metadata/scroll-to-element.ts
5223
+ function scrollToElement() {
5224
+ return {
5225
+ description: `Scrolls the viewport to bring the selected element into view.
5226
+
5227
+ Uses the browser's \`scrollIntoView\` API with configurable behavior.`,
5228
+ category: `Scroll`,
5229
+ dependentProperties: ["selectedElement"],
5230
+ properties: {
5231
+ behavior: {
5232
+ type: [{ value: "auto" }, { value: "smooth" }],
5233
+ erased: true
5234
+ },
5235
+ block: {
5236
+ type: [
5237
+ { value: "start" },
5238
+ { value: "center" },
5239
+ { value: "end" },
5240
+ { value: "nearest" }
5241
+ ],
5242
+ erased: true
5243
+ },
5244
+ inline: {
5245
+ type: [
5246
+ { value: "start" },
5247
+ { value: "center" },
5248
+ { value: "end" },
5249
+ { value: "nearest" }
5250
+ ],
5251
+ erased: true
5252
+ }
5253
+ }
5254
+ };
5255
+ }
5256
+
5257
+ //#endregion
5258
+ //#region src/operation/metadata/scroll-to-position.ts
5259
+ function scrollToPosition() {
5260
+ return {
5261
+ description: `Scrolls the viewport to a specific x,y coordinate position.
5262
+
5263
+ Uses the browser's \`window.scrollTo\` API with configurable behavior.`,
5264
+ category: `Scroll`,
5265
+ properties: {
5266
+ x: {
5267
+ type: "ParameterType:number",
5268
+ required: true,
5269
+ erased: true
5270
+ },
5271
+ y: {
5272
+ type: "ParameterType:number",
5273
+ required: true,
5274
+ erased: true
5275
+ },
5276
+ behavior: {
5277
+ type: [{ value: "auto" }, { value: "smooth" }],
5278
+ erased: true
5279
+ }
5280
+ }
5281
+ };
5282
+ }
5283
+
4520
5284
  //#endregion
4521
5285
  //#region src/operation/metadata/select-element.ts
4522
5286
  function selectElement$1() {
@@ -4526,6 +5290,7 @@ function selectElement$1() {
4526
5290
  If \`useSelectedElementAsRoot\` is set to true and a valid DOM element is assigned
4527
5291
  to the current operation data's \`selectedElement\` property
4528
5292
  then the element will be looked for only in the descendant elements of this DOM element.`,
5293
+ category: `DOM`,
4529
5294
  properties: {
4530
5295
  selector: {
4531
5296
  type: "ParameterType:selector",
@@ -4546,6 +5311,7 @@ then the element will be looked for only in the descendant elements of this DOM
4546
5311
  function setData$1() {
4547
5312
  return {
4548
5313
  description: `This operation assigns the specified properties to the specified data targets.`,
5314
+ category: `Data`,
4549
5315
  properties: { properties: {
4550
5316
  type: "ParameterType:object",
4551
5317
  required: true,
@@ -4559,6 +5325,7 @@ function setData$1() {
4559
5325
  function setElementAttributes$1() {
4560
5326
  return {
4561
5327
  description: `This operation sets the specified set of attributes on the given selected element.`,
5328
+ category: `DOM`,
4562
5329
  dependentProperties: ["selectedElement"],
4563
5330
  properties: { attributes: {
4564
5331
  type: "ParameterType:object",
@@ -4579,6 +5346,7 @@ When the \`insertionType\` is set to \`overwrite\` the contents of the selected
4579
5346
  by the given template.
4580
5347
  When set to \`append\` the new content will be inserted after the current content.
4581
5348
  When set to \`prepend\` the new content will be inserted before the current content.`,
5349
+ category: `DOM`,
4582
5350
  dependentProperties: ["selectedElement"],
4583
5351
  properties: {
4584
5352
  template: {
@@ -4604,11 +5372,48 @@ When set to \`prepend\` the new content will be inserted before the current cont
4604
5372
  };
4605
5373
  }
4606
5374
 
5375
+ //#endregion
5376
+ //#region src/operation/metadata/set-focus.ts
5377
+ function setFocus() {
5378
+ return {
5379
+ description: `Sets focus to the selected element.`,
5380
+ category: `Focus`,
5381
+ dependentProperties: ["selectedElement"]
5382
+ };
5383
+ }
5384
+
5385
+ //#endregion
5386
+ //#region src/operation/metadata/set-form-value.ts
5387
+ function setFormValue() {
5388
+ return {
5389
+ description: `Sets the value of an input, select, or textarea element.
5390
+
5391
+ Handles different input types appropriately:
5392
+ - Text inputs, textareas, selects: sets value directly
5393
+ - Checkboxes: sets checked property for boolean values
5394
+ - Radio buttons: sets checked property for boolean values
5395
+ - Number inputs: converts to string`,
5396
+ category: `Form`,
5397
+ dependentProperties: ["selectedElement"],
5398
+ properties: { value: {
5399
+ type: [
5400
+ { value: "string" },
5401
+ { value: "number" },
5402
+ { value: "false" },
5403
+ { value: "true" }
5404
+ ],
5405
+ required: true,
5406
+ erased: true
5407
+ } }
5408
+ };
5409
+ }
5410
+
4607
5411
  //#endregion
4608
5412
  //#region src/operation/metadata/set-global-data.ts
4609
5413
  function setGlobalData$1() {
4610
5414
  return {
4611
5415
  description: `This operation copies the specified properties from the operationData to the global data.`,
5416
+ category: `Data`,
4612
5417
  properties: { propertyNames: {
4613
5418
  type: "ParameterType:array",
4614
5419
  itemType: "ParameterType:string",
@@ -4624,6 +5429,7 @@ function setOperationData$1() {
4624
5429
  return {
4625
5430
  description: `This operation assigns the specified properties to the current operation data.
4626
5431
  When override is set to true the properties replace the current operation data entirely.`,
5432
+ category: `Data`,
4627
5433
  properties: {
4628
5434
  override: {
4629
5435
  type: "ParameterType:boolean",
@@ -4644,6 +5450,7 @@ function setStyle$1() {
4644
5450
  return {
4645
5451
  description: `This operation assigns the specified CSS style properties to the
4646
5452
  given selected element.`,
5453
+ category: `DOM`,
4647
5454
  dependentProperties: ["selectedElement"],
4648
5455
  properties: { properties: {
4649
5456
  type: "ParameterType:cssProperties",
@@ -4658,6 +5465,7 @@ given selected element.`,
4658
5465
  function setVariable$1() {
4659
5466
  return {
4660
5467
  description: `This operation sets a variable with the specified name on the scope with the specified value.`,
5468
+ category: `Data`,
4661
5469
  properties: {
4662
5470
  name: {
4663
5471
  type: "ParameterType:string",
@@ -4673,6 +5481,62 @@ function setVariable$1() {
4673
5481
  };
4674
5482
  }
4675
5483
 
5484
+ //#endregion
5485
+ //#region src/operation/metadata/sort-array.ts
5486
+ function sortArray() {
5487
+ return {
5488
+ description: `Sorts an array by property, natural order, or custom comparator function.
5489
+
5490
+ Operates on arrayData passed from previous operations.
5491
+ Supports three sorting modes:
5492
+ 1. Property sort: \`sortProperty\` and \`sortOrder\` to sort objects by property
5493
+ 2. Natural sort: \`sortOrder\` alone for primitive arrays
5494
+ 3. Custom comparator: \`sortComparator\` function for complex sorting logic`,
5495
+ category: `Array`,
5496
+ dependentProperties: ["arrayData"],
5497
+ properties: {
5498
+ sortProperty: {
5499
+ type: "ParameterType:string",
5500
+ erased: true
5501
+ },
5502
+ sortOrder: {
5503
+ type: [{ value: "asc" }, { value: "desc" }],
5504
+ erased: true
5505
+ },
5506
+ sortComparator: {
5507
+ type: "ParameterType:function",
5508
+ erased: true
5509
+ }
5510
+ },
5511
+ outputProperties: { sortedArray: { type: "ParameterType:array" } }
5512
+ };
5513
+ }
5514
+
5515
+ //#endregion
5516
+ //#region src/operation/metadata/split-string.ts
5517
+ function splitString() {
5518
+ return {
5519
+ description: `Splits a string into an array by delimiter (string or regex).`,
5520
+ category: `String`,
5521
+ dependentProperties: ["textContent"],
5522
+ properties: {
5523
+ delimiter: {
5524
+ type: [{ value: "string" }, { value: "RegExp" }],
5525
+ required: true,
5526
+ erased: true
5527
+ },
5528
+ limit: {
5529
+ type: "ParameterType:number",
5530
+ erased: true
5531
+ }
5532
+ },
5533
+ outputProperties: { resultArray: {
5534
+ type: "ParameterType:array",
5535
+ itemType: "ParameterType:string"
5536
+ } }
5537
+ };
5538
+ }
5539
+
4676
5540
  //#endregion
4677
5541
  //#region src/operation/metadata/start-action.ts
4678
5542
  function startAction$1() {
@@ -4682,6 +5546,7 @@ function startAction$1() {
4682
5546
  The action operation data is first merged with the current operation data before it is
4683
5547
  passed on to the action. After the action has completed the action operation data properties
4684
5548
  are removed from the current operation data.`,
5549
+ category: `Action`,
4685
5550
  dependentProperties: ["actionInstance"],
4686
5551
  properties: { actionOperationData: {
4687
5552
  type: "ParameterType:object",
@@ -4690,6 +5555,28 @@ are removed from the current operation data.`,
4690
5555
  };
4691
5556
  }
4692
5557
 
5558
+ //#endregion
5559
+ //#region src/operation/metadata/substring-text.ts
5560
+ function substringText() {
5561
+ return {
5562
+ description: `Extracts a substring from text between start and end indices.`,
5563
+ category: `Text`,
5564
+ dependentProperties: ["textContent"],
5565
+ properties: {
5566
+ start: {
5567
+ type: "ParameterType:number",
5568
+ required: true,
5569
+ erased: true
5570
+ },
5571
+ end: {
5572
+ type: "ParameterType:number",
5573
+ erased: true
5574
+ }
5575
+ },
5576
+ outputProperties: { substring: { type: "ParameterType:string" } }
5577
+ };
5578
+ }
5579
+
4693
5580
  //#endregion
4694
5581
  //#region src/operation/metadata/toggle-class.ts
4695
5582
  function toggleClass$1() {
@@ -4698,6 +5585,7 @@ function toggleClass$1() {
4698
5585
 
4699
5586
  Meaning, if the specified class name exists on the given element it will be removed,
4700
5587
  otherwise it will be added.`,
5588
+ category: `DOM`,
4701
5589
  dependentProperties: ["selectedElement"],
4702
5590
  properties: { className: {
4703
5591
  type: "ParameterType:className",
@@ -4715,15 +5603,56 @@ function toggleElement$1() {
4715
5603
 
4716
5604
  Meaning, if the element is hidden, it will be made visible, otherwise
4717
5605
  it will be hidden.`,
5606
+ category: `DOM`,
4718
5607
  dependentProperties: ["selectedElement"]
4719
5608
  };
4720
5609
  }
4721
5610
 
5611
+ //#endregion
5612
+ //#region src/operation/metadata/toggle-form-element.ts
5613
+ function toggleFormElement() {
5614
+ return {
5615
+ description: `Enables or disables form input elements (inputs, selects, textareas, buttons).
5616
+
5617
+ Sets the \`disabled\` property on the element. When \`enabled\` is true, removes the disabled
5618
+ attribute; when false, adds the disabled attribute.`,
5619
+ category: `Form`,
5620
+ dependentProperties: ["selectedElement"],
5621
+ properties: { enabled: {
5622
+ type: "ParameterType:boolean",
5623
+ required: true,
5624
+ erased: true
5625
+ } }
5626
+ };
5627
+ }
5628
+
5629
+ //#endregion
5630
+ //#region src/operation/metadata/validate-form.ts
5631
+ function validateForm() {
5632
+ return {
5633
+ description: `Validates form fields against HTML5 validation and custom rules.
5634
+
5635
+ Uses HTML5 validation API (checkValidity()) for native validation, and supports
5636
+ custom validation rules for: required, minLength, maxLength, pattern (regex), and email format.`,
5637
+ category: `Form`,
5638
+ dependentProperties: ["selectedElement"],
5639
+ properties: { validationRules: {
5640
+ type: "ParameterType:object",
5641
+ erased: true
5642
+ } },
5643
+ outputProperties: {
5644
+ validationErrors: { type: "ParameterType:object" },
5645
+ isValid: { type: "ParameterType:boolean" }
5646
+ }
5647
+ };
5648
+ }
5649
+
4722
5650
  //#endregion
4723
5651
  //#region src/operation/metadata/wait.ts
4724
5652
  function wait$1() {
4725
5653
  return {
4726
5654
  description: `This operation waits for the specified amount of milliseconds.`,
5655
+ category: `Utility`,
4727
5656
  properties: { milliseconds: {
4728
5657
  type: "ParameterType:number",
4729
5658
  required: true,
@@ -4749,6 +5678,7 @@ The left and right values of the expression can be defined like this:
4749
5678
  $operationData.foo: for an operation data value
4750
5679
  $globaldata.foo: for a global data value
4751
5680
  $scope.loopIndex: for a scope value`,
5681
+ category: `Control Flow`,
4752
5682
  properties: { expression: {
4753
5683
  type: "ParameterType:expression",
4754
5684
  required: true,
@@ -4765,11 +5695,15 @@ var metadata_exports = /* @__PURE__ */ __export({
4765
5695
  addGlobalsToOperation: () => addGlobalsToOperation$1,
4766
5696
  animate: () => animate$1,
4767
5697
  animateWithClass: () => animateWithClass$1,
5698
+ announceToScreenReader: () => announceToScreenReader,
4768
5699
  breakForEach: () => breakForEach$1,
4769
5700
  broadcastEvent: () => broadcastEvent$1,
4770
5701
  calc: () => calc$1,
4771
5702
  clearElement: () => clearElement$1,
4772
5703
  clearOperationData: () => clearOperationData$1,
5704
+ clearStorage: () => clearStorage,
5705
+ compareDate: () => compareDate,
5706
+ concatenateStrings: () => concatenateStrings,
4773
5707
  continueForEach: () => continueForEach$1,
4774
5708
  createElement: () => createElement$1,
4775
5709
  customFunction: () => customFunction$1,
@@ -4777,16 +5711,31 @@ var metadata_exports = /* @__PURE__ */ __export({
4777
5711
  endForEach: () => endForEach$1,
4778
5712
  endWhen: () => endWhen$1,
4779
5713
  extendController: () => extendController$1,
5714
+ filterArray: () => filterArray,
5715
+ findInArray: () => findInArray,
4780
5716
  forEach: () => forEach$1,
5717
+ formatDate: () => formatDate,
5718
+ formatText: () => formatText,
4781
5719
  getAttributesFromElement: () => getAttributesFromElement$1,
4782
5720
  getControllerFromElement: () => getControllerFromElement$1,
4783
5721
  getControllerInstance: () => getControllerInstance$1,
5722
+ getCurrentTime: () => getCurrentTime,
4784
5723
  getElementDimensions: () => getElementDimensions$1,
5724
+ getFocusedElement: () => getFocusedElement,
5725
+ getFormData: () => getFormData,
4785
5726
  getImport: () => getImport$1,
4786
5727
  getQueryParams: () => getQueryParams$1,
5728
+ getScrollPosition: () => getScrollPosition,
5729
+ getTextContent: () => getTextContent,
5730
+ httpDelete: () => httpDelete,
5731
+ httpPost: () => httpPost,
5732
+ httpPut: () => httpPut,
4787
5733
  invokeObjectMethod: () => invokeObjectMethod$1,
5734
+ isElementInViewport: () => isElementInViewport,
5735
+ loadFromStorage: () => loadFromStorage,
4788
5736
  loadJson: () => loadJson$1,
4789
5737
  log: () => log$1,
5738
+ mapArray: () => mapArray,
4790
5739
  math: () => math$1,
4791
5740
  otherwise: () => otherwise$1,
4792
5741
  removeClass: () => removeClass$1,
@@ -4794,18 +5743,30 @@ var metadata_exports = /* @__PURE__ */ __export({
4794
5743
  removeElement: () => removeElement$1,
4795
5744
  removePropertiesFromOperationData: () => removePropertiesFromOperationData$1,
4796
5745
  reparentElement: () => reparentElement$1,
5746
+ replaceString: () => replaceString,
5747
+ replaceText: () => replaceText,
4797
5748
  requestAction: () => requestAction$1,
5749
+ saveToStorage: () => saveToStorage,
5750
+ scrollToElement: () => scrollToElement,
5751
+ scrollToPosition: () => scrollToPosition,
4798
5752
  selectElement: () => selectElement$1,
4799
5753
  setData: () => setData$1,
4800
5754
  setElementAttributes: () => setElementAttributes$1,
4801
5755
  setElementContent: () => setElementContent$1,
5756
+ setFocus: () => setFocus,
5757
+ setFormValue: () => setFormValue,
4802
5758
  setGlobalData: () => setGlobalData$1,
4803
5759
  setOperationData: () => setOperationData$1,
4804
5760
  setStyle: () => setStyle$1,
4805
5761
  setVariable: () => setVariable$1,
5762
+ sortArray: () => sortArray,
5763
+ splitString: () => splitString,
4806
5764
  startAction: () => startAction$1,
5765
+ substringText: () => substringText,
4807
5766
  toggleClass: () => toggleClass$1,
4808
5767
  toggleElement: () => toggleElement$1,
5768
+ toggleFormElement: () => toggleFormElement,
5769
+ validateForm: () => validateForm,
4809
5770
  wait: () => wait$1,
4810
5771
  when: () => when$1
4811
5772
  });
@@ -5104,7 +6065,7 @@ function resolveActions(actionConfigurations, importer, eventbus$1) {
5104
6065
  }
5105
6066
  function resolvePlaceholders(configFragment, rootConfig, importer) {
5106
6067
  if (!isDefined(configFragment)) return;
5107
- if (Array.isArray(configFragment)) configFragment.forEach((item, index) => {
6068
+ if (Array.isArray(configFragment)) configFragment.forEach((item) => {
5108
6069
  resolvePlaceholders(item, rootConfig, importer);
5109
6070
  });
5110
6071
  else if (isObject(configFragment)) Object.keys(configFragment).forEach((key) => {
@@ -5133,6 +6094,7 @@ function resolvePlaceholder(key, configFragment, rootConfig, importer) {
5133
6094
  */
5134
6095
  var EligiusEngine = class EligiusEngine {
5135
6096
  _timeLineActionsLookup = {};
6097
+ _timelineLookupCache = /* @__PURE__ */ new Map();
5136
6098
  _eventbusRemovers = [];
5137
6099
  _currentTimelineUri = "";
5138
6100
  _activeTimelineProvider = void 0;
@@ -5160,7 +6122,7 @@ var EligiusEngine = class EligiusEngine {
5160
6122
  const container = $(containerSelector);
5161
6123
  if (!container || !container.length) throw new Error(`Container selector not found: ${containerSelector}`);
5162
6124
  const { layoutTemplate } = this.configuration;
5163
- if (layoutTemplate && layoutTemplate.length) container.html(layoutTemplate);
6125
+ if (layoutTemplate?.length) container.html(layoutTemplate);
5164
6126
  else console.warn("layoutTemplate is empty, unable to create layout");
5165
6127
  }
5166
6128
  async _initializeTimelineProvider() {
@@ -5273,16 +6235,20 @@ var EligiusEngine = class EligiusEngine {
5273
6235
  _createTimelineLookup() {
5274
6236
  if (!this.configuration.timelines) return;
5275
6237
  this.configuration.timelines.forEach((timelineInfo) => {
5276
- timelineInfo.timelineActions.forEach(this._addTimelineActionStart.bind(this, timelineInfo.uri));
5277
- });
5278
- this.configuration.timelines.forEach((timelineInfo) => {
5279
- timelineInfo.timelineActions.forEach(this._addTimelineActionEnd.bind(this, timelineInfo.uri));
6238
+ this._timelineLookupCache.set(timelineInfo.uri, timelineInfo);
6239
+ timelineInfo.timelineActions.forEach((timelineAction) => {
6240
+ this._addTimelineActionStart(timelineInfo.uri, timelineAction);
6241
+ this._addTimelineActionEnd(timelineInfo.uri, timelineAction);
6242
+ });
5280
6243
  });
5281
6244
  EligiusEngine.sortTimelines(Object.values(this._timeLineActionsLookup));
5282
6245
  }
5283
6246
  static sortTimelines(timelines) {
5284
6247
  timelines.forEach((timelineActions) => {
5285
- Object.keys(timelineActions).forEach((key) => timelineActions[key] = EligiusEngine.sortActionsPerPosition(timelineActions[key]));
6248
+ Object.keys(timelineActions).forEach((key) => {
6249
+ const numericKey = Number(key);
6250
+ timelineActions[numericKey] = EligiusEngine.sortActionsPerPosition(timelineActions[numericKey]);
6251
+ });
5286
6252
  });
5287
6253
  }
5288
6254
  static sortActionsPerPosition(actions) {
@@ -5304,7 +6270,7 @@ var EligiusEngine = class EligiusEngine {
5304
6270
  _addTimelineActionEnd(uri, timeLineAction) {
5305
6271
  let end = timeLineAction.duration.end;
5306
6272
  if (end < 0) end = timeLineAction.duration.end = Infinity;
5307
- if (isFinite(end)) {
6273
+ if (Number.isFinite(end)) {
5308
6274
  const timelineEndPositions = this._initializeTimelinePosition(this._timeLineActionsLookup[uri], end);
5309
6275
  const endMethod = timeLineAction.end.bind(timeLineAction);
5310
6276
  if (timeLineAction.id?.length) {
@@ -5323,12 +6289,9 @@ var EligiusEngine = class EligiusEngine {
5323
6289
  if (!lookup[position]) lookup[position] = [];
5324
6290
  return lookup[position];
5325
6291
  }
5326
- async _executeActions(actions, methodName, idx = 0) {
5327
- if (actions && idx < actions.length) {
5328
- await actions[idx][methodName]();
5329
- return this._executeActions(actions, methodName, ++idx);
5330
- }
5331
- return Promise.resolve();
6292
+ async _executeActions(actions, methodName) {
6293
+ if (actions.length === 0) return;
6294
+ for (const action of actions) await action[methodName]();
5332
6295
  }
5333
6296
  _handleRequestEngineRoot(engineRootSelector, resultCallback) {
5334
6297
  resultCallback($(engineRootSelector));
@@ -5337,7 +6300,7 @@ var EligiusEngine = class EligiusEngine {
5337
6300
  if (!this._activeTimelineProvider) return;
5338
6301
  this._activeTimelineProvider.stop();
5339
6302
  await this._cleanUpTimeline();
5340
- const timelineConfig = this.configuration.timelines.find((timeline) => timeline.uri === uri);
6303
+ const timelineConfig = this._timelineLookupCache.get(uri);
5341
6304
  if (!timelineConfig || !this._activeTimelineProvider || this._currentTimelineUri === timelineConfig.uri) return;
5342
6305
  this._currentTimelineUri = timelineConfig.uri;
5343
6306
  this.eventbus.broadcast(TimelineEventNames.CURRENT_TIMELINE_CHANGE, [this._currentTimelineUri]);
@@ -5379,7 +6342,7 @@ var EligiusEngine = class EligiusEngine {
5379
6342
  _executeRelevantActions(filter, executionType) {
5380
6343
  const timelineActions = this._getTimelineActionsForCurrentTimeline();
5381
6344
  const currentActions = filter.apply(this, [timelineActions]);
5382
- return this._executeActions(currentActions, executionType, 0);
6345
+ return this._executeActions(currentActions, executionType);
5383
6346
  }
5384
6347
  _handleRequestTimelinePosition(floor, resultCallback) {
5385
6348
  resultCallback(floor(this._activeTimelineProvider?.getPosition() || -1));
@@ -5394,12 +6357,10 @@ var EligiusEngine = class EligiusEngine {
5394
6357
  resultCallback(this._currentTimelineUri);
5395
6358
  }
5396
6359
  _getTimelineActionsForUri(uri) {
5397
- return this.configuration.timelines.find((timelineInfo) => {
5398
- return timelineInfo.uri === uri;
5399
- })?.timelineActions ?? [];
6360
+ return this._timelineLookupCache.get(uri)?.timelineActions ?? [];
5400
6361
  }
5401
6362
  _onTimeHandler(floor, position) {
5402
- if (!isNaN(position)) {
6363
+ if (!Number.isNaN(position)) {
5403
6364
  const pos = floor(position);
5404
6365
  if (this._lastPosition !== pos) {
5405
6366
  this._executeActionsForPosition(pos);
@@ -5417,8 +6378,8 @@ var EligiusEngine = class EligiusEngine {
5417
6378
  if (!timelineActions) return Promise.resolve();
5418
6379
  const currentActions = this._getActiveActions(timelineActions).filter((action) => !(action.duration.start <= position && action.duration.end >= position));
5419
6380
  const newActions = this._getActionsForPosition(position, timelineActions);
5420
- await this._executeActions(currentActions, "end", 0);
5421
- return this._executeActions(newActions, "start", 0);
6381
+ await this._executeActions(currentActions, "end");
6382
+ return this._executeActions(newActions, "start");
5422
6383
  }
5423
6384
  };
5424
6385
  const sortActionsHighestStartPositionFirst = (a, b) => {
@@ -5442,7 +6403,7 @@ const sortActionMethodsHighestStartPositionFirst = (a, b) => {
5442
6403
  var ActionRegistryEventbusListener = class {
5443
6404
  _actionRegistry = /* @__PURE__ */ new Map();
5444
6405
  registerAction(action, eventName, eventTopic) {
5445
- if (eventTopic && eventTopic.length) eventName = `${eventName}:${eventTopic}`;
6406
+ if (eventTopic?.length) eventName = `${eventName}:${eventTopic}`;
5446
6407
  if (!this._actionRegistry.has(eventName)) this._actionRegistry.set(eventName, []);
5447
6408
  this._actionRegistry.get(eventName)?.push(action);
5448
6409
  }
@@ -5802,5 +6763,5 @@ var EligiusResourceImporter = class {
5802
6763
  };
5803
6764
 
5804
6765
  //#endregion
5805
- export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, DEV_TOOLS_KEY, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, EventListenerController, Eventbus, LabelController, LanguageManager, LottieController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, ProgressbarController, RequestAnimationFrameTimelineProvider, RequestVideoUriInterceptor, RoutingController, SubtitleEditor, SubtitleImporter, SubtitlesController, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineEventNames, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, VideoJsTimelineProvider, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, forEach, generateImporterSourceCode, getAttributesFromElement, getControllerFromElement, getControllerInstance, getElementDimensions, getImport, getQueryParams, invokeObjectMethod, loadJson, log, math, metadata_exports as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
6766
+ export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, DEV_TOOLS_KEY, DOMEventListenerController, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, Eventbus, LabelController, LanguageManager, LottieController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, ProgressbarController, RequestAnimationFrameTimelineProvider, RequestVideoUriInterceptor, RoutingController, SubtitleEditor, SubtitleImporter, SubtitlesController, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineEventNames, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, VideoJsTimelineProvider, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, forEach, generateImporterSourceCode, getAttributesFromElement, getControllerFromElement, getControllerInstance, getElementDimensions, getImport, getQueryParams, invokeObjectMethod, isActive, loadJson, log, math, metadata_exports as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, send, setActive, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
5806
6767
  //# sourceMappingURL=index.js.map