eligius 1.4.0 → 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 (70) hide show
  1. package/dist/index.d.ts +840 -16
  2. package/dist/index.js +927 -32
  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/filter-array.json +51 -0
  12. package/jsonschema/operation-templates/find-in-array.json +51 -0
  13. package/jsonschema/operation-templates/format-date.json +39 -0
  14. package/jsonschema/operation-templates/format-text.json +37 -0
  15. package/jsonschema/operation-templates/get-current-time.json +26 -0
  16. package/jsonschema/operation-templates/get-focused-element.json +26 -0
  17. package/jsonschema/operation-templates/get-form-data.json +26 -0
  18. package/jsonschema/operation-templates/get-scroll-position.json +26 -0
  19. package/jsonschema/operation-templates/get-text-content.json +26 -0
  20. package/jsonschema/operation-templates/http-delete.json +45 -0
  21. package/jsonschema/operation-templates/http-post.json +51 -0
  22. package/jsonschema/operation-templates/http-put.json +51 -0
  23. package/jsonschema/operation-templates/is-element-in-viewport.json +26 -0
  24. package/jsonschema/operation-templates/load-from-storage.json +43 -0
  25. package/jsonschema/operation-templates/map-array.json +39 -0
  26. package/jsonschema/operation-templates/replace-string.json +43 -0
  27. package/jsonschema/operation-templates/replace-text.json +43 -0
  28. package/jsonschema/operation-templates/save-to-storage.json +49 -0
  29. package/jsonschema/operation-templates/scroll-to-element.json +45 -0
  30. package/jsonschema/operation-templates/scroll-to-position.json +49 -0
  31. package/jsonschema/operation-templates/set-focus.json +26 -0
  32. package/jsonschema/operation-templates/set-form-value.json +37 -0
  33. package/jsonschema/operation-templates/sort-array.json +49 -0
  34. package/jsonschema/operation-templates/split-string.json +43 -0
  35. package/jsonschema/operation-templates/substring-text.json +45 -0
  36. package/jsonschema/operation-templates/toggle-form-element.json +39 -0
  37. package/jsonschema/operation-templates/validate-form.json +39 -0
  38. package/jsonschema/operations/announce-to-screen-reader.json +47 -0
  39. package/jsonschema/operations/clear-storage.json +47 -0
  40. package/jsonschema/operations/compare-date.json +46 -0
  41. package/jsonschema/operations/concatenate-strings.json +49 -0
  42. package/jsonschema/operations/filter-array.json +53 -0
  43. package/jsonschema/operations/find-in-array.json +53 -0
  44. package/jsonschema/operations/format-date.json +43 -0
  45. package/jsonschema/operations/format-text.json +41 -0
  46. package/jsonschema/operations/get-current-time.json +26 -0
  47. package/jsonschema/operations/get-focused-element.json +26 -0
  48. package/jsonschema/operations/get-form-data.json +26 -0
  49. package/jsonschema/operations/get-scroll-position.json +26 -0
  50. package/jsonschema/operations/get-text-content.json +26 -0
  51. package/jsonschema/operations/http-delete.json +49 -0
  52. package/jsonschema/operations/http-post.json +55 -0
  53. package/jsonschema/operations/http-put.json +55 -0
  54. package/jsonschema/operations/is-element-in-viewport.json +26 -0
  55. package/jsonschema/operations/load-from-storage.json +48 -0
  56. package/jsonschema/operations/map-array.json +43 -0
  57. package/jsonschema/operations/replace-string.json +48 -0
  58. package/jsonschema/operations/replace-text.json +48 -0
  59. package/jsonschema/operations/save-to-storage.json +55 -0
  60. package/jsonschema/operations/scroll-to-element.json +47 -0
  61. package/jsonschema/operations/scroll-to-position.json +54 -0
  62. package/jsonschema/operations/set-focus.json +26 -0
  63. package/jsonschema/operations/set-form-value.json +41 -0
  64. package/jsonschema/operations/sort-array.json +51 -0
  65. package/jsonschema/operations/split-string.json +47 -0
  66. package/jsonschema/operations/substring-text.json +49 -0
  67. package/jsonschema/operations/toggle-form-element.json +43 -0
  68. package/jsonschema/operations/validate-form.json +41 -0
  69. package/jsonschema/timeline-action.json +186 -0
  70. package/package.json +1 -1
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
@@ -216,6 +229,7 @@ function isExternalProperty(value) {
216
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;
@@ -314,6 +328,8 @@ function removeProperties(operationData, ...keys) {
314
328
  *
315
329
  * @param operationData
316
330
  * @returns
331
+ *
332
+ * @category Control Flow
317
333
  */
318
334
  const when = function(operationData) {
319
335
  const [left, operator, right] = parseExpression(operationData.expression, operationData, this);
@@ -544,7 +560,7 @@ function _generateSourceCode(importPaths) {
544
560
  result.push("class EligiusResourceImporter implements ISimpleResourceImporter {");
545
561
  result.push("import(name: string): Record<string, any> {");
546
562
  result.push("if (imports.hasOwnProperty(name)) { return imports[name]; }");
547
- result.push("throw Error(`Unknown systemName: ${name}`);");
563
+ result.push("throw Error(\"Unknown systemName: \" + name);");
548
564
  result.push("}}");
549
565
  result.push("");
550
566
  result.push("export default EligiusResourceImporter;");
@@ -609,7 +625,7 @@ function _gatherOperationImportPathsFromActions(actionsConfig) {
609
625
  function _gatherControllerImportPaths(operationConfigs) {
610
626
  if (!operationConfigs) return [];
611
627
  return operationConfigs.filter((operationConfig) => {
612
- if (operationConfig.operationData?.hasOwnProperty("systemName")) return operationConfig.operationData.systemName.endsWith("Controller");
628
+ if (Object.hasOwn(operationConfig.operationData ?? {}, "systemName")) return operationConfig.operationData.systemName.endsWith("Controller");
613
629
  return false;
614
630
  }).map((operationConfig) => {
615
631
  const { systemName } = operationConfig.operationData ?? {};
@@ -636,6 +652,7 @@ function _deduplicate(importPaths) {
636
652
  /**
637
653
  * This operation adds the specified class name to the specified selected element.
638
654
  *
655
+ * @category DOM
639
656
  */
640
657
  const addClass = (operationData) => {
641
658
  const { selectedElement, className } = operationData;
@@ -681,6 +698,7 @@ function internalResolve(resolve, operationData, newOperationData) {
681
698
  /**
682
699
  * This operation adds the specified controller instance to the given selected element.
683
700
  *
701
+ * @category Controller
684
702
  */
685
703
  const addControllerToElement = function(operationData) {
686
704
  const { selectedElement, controllerInstance } = operationData;
@@ -700,6 +718,8 @@ const addControllerToElement = function(operationData) {
700
718
  /**
701
719
  * This operation adds the specified global property names to the current operation data.
702
720
  * It finally removes the `globalProperties` property from the current operation data.
721
+ *
722
+ * @category Data
703
723
  */
704
724
  const addGlobalsToOperation = (operationData) => {
705
725
  const { globalProperties } = operationData;
@@ -719,6 +739,8 @@ const addGlobalsToOperation = (operationData) => {
719
739
  *
720
740
  * @param operationData
721
741
  * @returns
742
+ *
743
+ * @category Animation
722
744
  */
723
745
  const animate = (operationData) => {
724
746
  const { selectedElement, animationEasing, animationProperties, animationDuration } = operationData;
@@ -743,6 +765,8 @@ const animate = (operationData) => {
743
765
  * This operation adds the specified class name to the specified selected element and assumes that this
744
766
  * class triggers and animation on the selected element. It then waits for this animation to complete
745
767
  * before it resolves.
768
+ *
769
+ * @category Animation
746
770
  */
747
771
  const animateWithClass = (operationData) => {
748
772
  let { selectedElement, className, removeClass: removeClass$2 } = operationData;
@@ -768,6 +792,7 @@ const animateWithClass = (operationData) => {
768
792
  * This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
769
793
  * operation. This operation immediately moves to the loop end index, effectively stopping the loop.
770
794
  *
795
+ * @category Control Flow
771
796
  */
772
797
  const breakForEach = function(operationData) {
773
798
  if (this.loopIndex !== void 0 && this.loopLength !== void 0) {
@@ -794,6 +819,8 @@ function resolveEventArguments(operationData, operationScope, eventArgs) {
794
819
  /**
795
820
  * This operation broadcasts the given event through the eventbus, along with the
796
821
  * event arguments and optional event topic.
822
+ *
823
+ * @category Utility
797
824
  */
798
825
  const broadcastEvent = function(operationData) {
799
826
  const { eventArgs, eventTopic, eventName } = operationData;
@@ -850,6 +877,8 @@ const calcFunctions = {
850
877
  * This operation calculates the given left and right hand operands using the specified operator.
851
878
  *
852
879
  * @param operationData
880
+ *
881
+ * @category Utility
853
882
  */
854
883
  const calc = function(operationData) {
855
884
  operationData = resolvePropertyValues(operationData, this, operationData);
@@ -864,6 +893,7 @@ const calc = function(operationData) {
864
893
  /**
865
894
  * This operation removes all of the children from the given selected element.
866
895
  *
896
+ * @category DOM
867
897
  */
868
898
  const clearElement = (operationData) => {
869
899
  const { selectedElement } = operationData;
@@ -877,6 +907,7 @@ const clearElement = (operationData) => {
877
907
  * This operation removes all of the properties on the current operation date.
878
908
  * Or, if the `properties` property is set only removes the properties defined by that list.
879
909
  *
910
+ * @category Data
880
911
  */
881
912
  const clearOperationData = (operationData) => {
882
913
  const { properties } = operationData;
@@ -898,6 +929,7 @@ const clearOperationData = (operationData) => {
898
929
  * operation. This operation immediately moves to the next loop index, effectively canceling the rest
899
930
  * of the operations in the current iteration.
900
931
  *
932
+ * @category Control Flow
901
933
  */
902
934
  const continueForEach = function(operationData) {
903
935
  if (this.loopIndex !== void 0 && this.loopLength !== void 0) {
@@ -915,6 +947,7 @@ const continueForEach = function(operationData) {
915
947
  *
916
948
  * @param operationData
917
949
  * @returns
950
+ * @category DOM
918
951
  */
919
952
  const createElement = function(operationData) {
920
953
  operationData = resolvePropertyValues(operationData, this, operationData);
@@ -1016,7 +1049,8 @@ var TimelineEventNames = class {
1016
1049
  * and invokes it with the current operation data and eventbus.
1017
1050
  *
1018
1051
  * @param operationData
1019
- * @returns
1052
+ *
1053
+ * @category Utility
1020
1054
  */
1021
1055
  const customFunction = function(operationData) {
1022
1056
  const { systemName } = operationData;
@@ -1041,6 +1075,8 @@ const customFunction = function(operationData) {
1041
1075
  * The action operation data is first merged with the current operation data before it is
1042
1076
  * passed on to the action. After the action has completed the action operation data properties
1043
1077
  * are removed from the current operation data.
1078
+ *
1079
+ * @category Action
1044
1080
  */
1045
1081
  const endAction = (operationData) => {
1046
1082
  let { actionOperationData,...newOperationData } = operationData;
@@ -1059,6 +1095,8 @@ const endAction = (operationData) => {
1059
1095
  //#region src/operation/end-for-each.ts
1060
1096
  /**
1061
1097
  * This operation checks if the current loop should end or start the next iteration.
1098
+ *
1099
+ * @category Control Flow
1062
1100
  */
1063
1101
  const endForEach = function(operationData) {
1064
1102
  if (this.loopIndex !== void 0 && this.loopLength !== void 0 && this.loopIndex < this.loopLength) {
@@ -1073,6 +1111,8 @@ const endForEach = function(operationData) {
1073
1111
  //#region src/operation/end-when.ts
1074
1112
  /**
1075
1113
  * This operation cleans up after the {@link when}/{@link otherwise}/{@link endWhen} control flow ends.
1114
+ *
1115
+ * @category Control Flow
1076
1116
  */
1077
1117
  const endWhen = function(operationData) {
1078
1118
  delete this.whenEvaluation;
@@ -1083,6 +1123,8 @@ const endWhen = function(operationData) {
1083
1123
  //#region src/operation/extend-controller.ts
1084
1124
  /**
1085
1125
  * Extends the current controller with given extension.
1126
+ *
1127
+ * @category Controller
1086
1128
  */
1087
1129
  const extendController = (operationData) => {
1088
1130
  const { controllerInstance, controllerExtension } = operationData;
@@ -1095,6 +1137,8 @@ const extendController = (operationData) => {
1095
1137
  //#region src/operation/get-attributes-from-element.ts
1096
1138
  /**
1097
1139
  * This operation retrieves the values for the specified attribute names from the given selected element.
1140
+ *
1141
+ * @category DOM
1098
1142
  */
1099
1143
  const getAttributesFromElement = (operationData) => {
1100
1144
  const { selectedElement, attributeNames } = operationData;
@@ -1114,6 +1158,8 @@ const getAttributesFromElement = (operationData) => {
1114
1158
  *
1115
1159
  * @param operationData
1116
1160
  * @returns
1161
+ *
1162
+ * @category Controller
1117
1163
  */
1118
1164
  const getControllerFromElement = (operationData) => {
1119
1165
  const { selectedElement, controllerName } = operationData;
@@ -1129,6 +1175,8 @@ const getControllerFromElement = (operationData) => {
1129
1175
  /**
1130
1176
  * This operation retrieves an instance of the given controller name.
1131
1177
  * It assigns this instance to the `controllerInstance` property on the current operation data
1178
+ *
1179
+ * @category Controller
1132
1180
  */
1133
1181
  const getControllerInstance = function(operationData) {
1134
1182
  const { systemName } = operationData;
@@ -1276,6 +1324,8 @@ function modifyDimensions(dimensions, modifier) {
1276
1324
  *
1277
1325
  * For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
1278
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
1279
1329
  */
1280
1330
  const getElementDimensions = (operationData) => {
1281
1331
  const { selectedElement, modifier } = operationData;
@@ -1297,7 +1347,8 @@ const getElementDimensions = (operationData) => {
1297
1347
  * assigns it to the `importedInstance` property on the current operaton date.
1298
1348
  *
1299
1349
  * @param operationData
1300
- * @returns
1350
+ *
1351
+ * @category Utility
1301
1352
  */
1302
1353
  const getImport = function(operationData) {
1303
1354
  const { systemName } = operationData;
@@ -1315,6 +1366,8 @@ const getImport = function(operationData) {
1315
1366
  /**
1316
1367
  * This operation retrieves the current query parameters from the browser's address bar and places
1317
1368
  * them on the returned operation data.
1369
+ *
1370
+ * @category Utility
1318
1371
  */
1319
1372
  const getQueryParams = (operationData) => {
1320
1373
  const searchParams = new URLSearchParams(window.location.search);
@@ -1335,7 +1388,8 @@ const getQueryParams = (operationData) => {
1335
1388
  * and assigns the result to the `methodResult` operationdata property.
1336
1389
  *
1337
1390
  * @param operationData
1338
- * @returns
1391
+ *
1392
+ * @category Utility
1339
1393
  */
1340
1394
  const invokeObjectMethod = (operationData) => {
1341
1395
  const { methodName, methodArguments,...newOperationData } = operationData;
@@ -1359,6 +1413,8 @@ const addToCache = (key, value) => {
1359
1413
  *
1360
1414
  * If the cache property is set to true and a cached value already exists, this is assigned
1361
1415
  * instead of re-retrieving it from the url.
1416
+ *
1417
+ * @category Utility
1362
1418
  */
1363
1419
  const loadJson = async (operationData) => {
1364
1420
  const { url, cache: cache$2 } = operationData;
@@ -1377,6 +1433,8 @@ const loadJson = async (operationData) => {
1377
1433
  /**
1378
1434
  * This operation logs the specified value, or, when no logValue property has been assigned
1379
1435
  * it will log the current operation data, global data and scope to the console
1436
+ *
1437
+ * @category Utility
1380
1438
  */
1381
1439
  const log = function(operationData) {
1382
1440
  if ("logValue" in operationData) {
@@ -1403,6 +1461,8 @@ function isString(value) {
1403
1461
  //#region src/operation/math.ts
1404
1462
  /**
1405
1463
  * This operation performs the given math function with the specified arguments.
1464
+ *
1465
+ * @category Utility
1406
1466
  */
1407
1467
  const math = function(operationData) {
1408
1468
  operationData = resolvePropertyValues(operationData, this, operationData);
@@ -1426,6 +1486,8 @@ function isMathProperty(value) {
1426
1486
  /**
1427
1487
  * If the preceeding {@link when} operation evaluates to `true` subsequent operations will
1428
1488
  * be skipped until an {@link endWhen} operation is encountered.
1489
+ *
1490
+ * @category Control Flow
1429
1491
  */
1430
1492
  const otherwise = function(operationData) {
1431
1493
  if (this.whenEvaluation) this.newIndex = findEndWhenIndex(this);
@@ -1448,6 +1510,7 @@ function findEndWhenIndex(scope) {
1448
1510
  *
1449
1511
  * @param operationData
1450
1512
  * @returns
1513
+ * @category DOM
1451
1514
  */
1452
1515
  const removeClass = (operationData) => {
1453
1516
  const { selectedElement, className } = operationData;
@@ -1463,6 +1526,8 @@ const removeClass = (operationData) => {
1463
1526
  *
1464
1527
  * @param operationData
1465
1528
  * @returns
1529
+ *
1530
+ * @category Controller
1466
1531
  */
1467
1532
  const removeControllerFromElement = function(operationData) {
1468
1533
  const { selectedElement, controllerName } = operationData;
@@ -1481,6 +1546,8 @@ const removeControllerFromElement = function(operationData) {
1481
1546
  //#region src/operation/remove-element.ts
1482
1547
  /**
1483
1548
  * This operation removes the given selected element from the DOM.
1549
+ *
1550
+ * @category DOM
1484
1551
  */
1485
1552
  const removeElement = (operationData) => {
1486
1553
  const { selectedElement } = operationData;
@@ -1493,6 +1560,8 @@ const removeElement = (operationData) => {
1493
1560
  /**
1494
1561
  * This operation removes the given list of properties from the current operation data.
1495
1562
  * It will also remove the property `propertyNames` from the result.
1563
+ *
1564
+ * @category Data
1496
1565
  */
1497
1566
  const removePropertiesFromOperationData = (operationData) => {
1498
1567
  const { propertyNames } = operationData;
@@ -1508,6 +1577,8 @@ const removePropertiesFromOperationData = (operationData) => {
1508
1577
  *
1509
1578
  * @param operationData
1510
1579
  * @returns
1580
+ *
1581
+ * @category DOM
1511
1582
  */
1512
1583
  const reparentElement = (operationData) => {
1513
1584
  const { selectedElement, newParentSelector } = operationData;
@@ -1521,6 +1592,8 @@ const reparentElement = (operationData) => {
1521
1592
  /**
1522
1593
  * This operation requests an action instance with the specified name and assigns it
1523
1594
  * to the `actionInstance` property on the current operation data.
1595
+ *
1596
+ * @category Action
1524
1597
  */
1525
1598
  const requestAction = function(operationData) {
1526
1599
  const { systemName } = operationData;
@@ -1545,6 +1618,8 @@ function findElementBySelector(root, selector) {
1545
1618
  * If `useSelectedElementAsRoot` is set to true and a valid DOM element is assigned
1546
1619
  * to the current operation data's `selectedElement` property
1547
1620
  * then the element will be looked for only in the descendant elements of this DOM element.
1621
+ *
1622
+ * @category DOM
1548
1623
  */
1549
1624
  const selectElement = function(operationData) {
1550
1625
  operationData.selector = resolveExternalPropertyChain(operationData, this, operationData.selector);
@@ -1576,6 +1651,8 @@ const selectElement = function(operationData) {
1576
1651
  * '$scope.newIndex': 100, // The constant 100 will be assigned to $scope.newIndex
1577
1652
  * })
1578
1653
  * ```
1654
+ *
1655
+ * @category Data
1579
1656
  */
1580
1657
  const setData = function(operationData) {
1581
1658
  const { properties } = operationData;
@@ -1611,6 +1688,8 @@ function isDataTarget(value) {
1611
1688
  //#region src/operation/set-element-attributes.ts
1612
1689
  /**
1613
1690
  * This operation sets the specified set of attributes on the given selected element.
1691
+ *
1692
+ * @category DOM
1614
1693
  */
1615
1694
  const setElementAttributes = (operationData) => {
1616
1695
  const { attributes, selectedElement } = operationData;
@@ -1629,6 +1708,8 @@ const setElementAttributes = (operationData) => {
1629
1708
  * by the given template.
1630
1709
  * When set to `append` the new content will be inserted after the current content.
1631
1710
  * When set to `prepend` the new content will be inserted before the current content.
1711
+ *
1712
+ * @category DOM
1632
1713
  */
1633
1714
  const setElementContent = (operationData) => {
1634
1715
  const { insertionType = "overwrite", selectedElement, template } = operationData;
@@ -1651,6 +1732,8 @@ const setElementContent = (operationData) => {
1651
1732
  //#region src/operation/set-global-data.ts
1652
1733
  /**
1653
1734
  * This operation copies the specified properties from the operationData to the global data.
1735
+ *
1736
+ * @category Data
1654
1737
  */
1655
1738
  const setGlobalData = (operationData) => {
1656
1739
  const { propertyNames,...newOperationData } = operationData;
@@ -1663,6 +1746,8 @@ const setGlobalData = (operationData) => {
1663
1746
  /**
1664
1747
  * This operation assigns the specified properties to the current operation data.
1665
1748
  * When override is set to true the properties replace the current operation data entirely.
1749
+ *
1750
+ * @category Data
1666
1751
  */
1667
1752
  const setOperationData = function(operationData) {
1668
1753
  const { override = false, properties,...newOperationData } = operationData;
@@ -1679,6 +1764,8 @@ const setOperationData = function(operationData) {
1679
1764
  /**
1680
1765
  * This operation assigns the specified CSS style properties to the
1681
1766
  * given selected element.
1767
+ *
1768
+ * @category DOM
1682
1769
  */
1683
1770
  const setStyle = function(operationData) {
1684
1771
  const properties = resolvePropertyValues(operationData, this, operationData.properties);
@@ -1691,6 +1778,8 @@ const setStyle = function(operationData) {
1691
1778
  //#region src/operation/set-variable.ts
1692
1779
  /**
1693
1780
  * This operation sets a variable with the specified name on the scope with the specified value.
1781
+ *
1782
+ * @category Data
1694
1783
  */
1695
1784
  const setVariable = function(operationData) {
1696
1785
  const { name, value } = operationData;
@@ -1708,6 +1797,8 @@ const setVariable = function(operationData) {
1708
1797
  * The action operation data is first merged with the current operation data before it is
1709
1798
  * passed on to the action. After the action has completed the action operation data properties
1710
1799
  * are removed from the current operation data.
1800
+ *
1801
+ * @category Action
1711
1802
  */
1712
1803
  const startAction = (operationData) => {
1713
1804
  let { actionInstance, actionOperationData,...newOperationData } = operationData;
@@ -1732,6 +1823,8 @@ const startAction = (operationData) => {
1732
1823
  *
1733
1824
  * Meaning, if the specified class name exists on the given element it will be removed,
1734
1825
  * otherwise it will be added.
1826
+ *
1827
+ * @category DOM
1735
1828
  */
1736
1829
  const toggleClass = (operationData) => {
1737
1830
  const { selectedElement, className } = operationData;
@@ -1747,6 +1840,8 @@ const toggleClass = (operationData) => {
1747
1840
  *
1748
1841
  * Meaning, if the element is hidden, it will be made visible, otherwise
1749
1842
  * it will be hidden.
1843
+ *
1844
+ * @category DOM
1750
1845
  */
1751
1846
  const toggleElement = function toggleElement$2(operationData) {
1752
1847
  operationData.selectedElement.toggle();
@@ -1757,6 +1852,8 @@ const toggleElement = function toggleElement$2(operationData) {
1757
1852
  //#region src/operation/wait.ts
1758
1853
  /**
1759
1854
  * This operation waits for the specified amount of milliseconds.
1855
+ *
1856
+ * @category Utility
1760
1857
  */
1761
1858
  const wait = (operationData) => {
1762
1859
  const { milliseconds,...newOperationData } = operationData;
@@ -2322,7 +2419,7 @@ var TimelineActionEditor = class extends EndableActionEditor {
2322
2419
  * @returns
2323
2420
  */
2324
2421
  setDuration(start, end) {
2325
- 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");
2326
2423
  const duration = { start };
2327
2424
  if (end) duration.end = end;
2328
2425
  this.actionConfig = {
@@ -2589,7 +2686,7 @@ var RequestAnimationFrameTimelineProvider = class {
2589
2686
  }
2590
2687
  start() {
2591
2688
  if (this.playState === "running") {
2592
- if (this._currentPosition == 0) this._callbackPosition();
2689
+ if (this._currentPosition === 0) this._callbackPosition();
2593
2690
  return;
2594
2691
  }
2595
2692
  this._playState = "running";
@@ -2599,7 +2696,7 @@ var RequestAnimationFrameTimelineProvider = class {
2599
2696
  this._firstFramePending = false;
2600
2697
  this._onFirstFrame?.();
2601
2698
  }
2602
- if (this._currentPosition == 0) this._callbackPosition();
2699
+ if (this._currentPosition === 0) this._callbackPosition();
2603
2700
  animationInterval(this._tickInterval, this._abortController.signal, this._updateBound);
2604
2701
  }
2605
2702
  _resetToStartPosition() {
@@ -3343,7 +3440,6 @@ var DOMEventListenerController = class {
3343
3440
  operationData;
3344
3441
  actionInstanceInfos;
3345
3442
  name = "DOMEventListenerController";
3346
- constructor() {}
3347
3443
  init(operationData) {
3348
3444
  this.operationData = {
3349
3445
  selectedElement: operationData.selectedElement,
@@ -3558,7 +3654,7 @@ var LottieController = class extends BaseController {
3558
3654
  attach(eventbus$1) {
3559
3655
  if (!this.operationData) return;
3560
3656
  const { labelIds } = this.operationData;
3561
- if (labelIds && labelIds.length) {
3657
+ if (labelIds?.length) {
3562
3658
  const resultHolder = {};
3563
3659
  eventbus$1.broadcast(TimelineEventNames.REQUEST_CURRENT_LANGUAGE, [resultHolder]);
3564
3660
  this.currentLanguage = resultHolder.language;
@@ -3586,7 +3682,7 @@ var LottieController = class extends BaseController {
3586
3682
  this.animationItem?.destroy();
3587
3683
  let serialized = this._isIE() && this.serializedIEData ? this.serializedIEData : this.serializedData;
3588
3684
  const { labelIds } = this.operationData;
3589
- if (labelIds && labelIds.length) serialized = serialized.replace(/!!([^!]+)!!/g, (match, labelId) => {
3685
+ if (labelIds?.length) serialized = serialized.replace(/!!([^!]+)!!/g, (match, labelId) => {
3590
3686
  return this.labelData[labelId]?.[this.currentLanguage] ?? match;
3591
3687
  });
3592
3688
  const animationData = JSON.parse(serialized);
@@ -3614,8 +3710,8 @@ var LottieController = class extends BaseController {
3614
3710
  this._createAnimation();
3615
3711
  }
3616
3712
  _isIE() {
3617
- const isIE = !!window.document["documentMode"];
3618
- return !isIE && !!window["StyleMedia"] || isIE;
3713
+ const isIE = !!window.document.documentMode;
3714
+ return !isIE && !!window.StyleMedia || isIE;
3619
3715
  }
3620
3716
  };
3621
3717
 
@@ -3888,7 +3984,7 @@ var RoutingController = class extends BaseController {
3888
3984
  this._pushState(state);
3889
3985
  }
3890
3986
  _pushState(state) {
3891
- if (state && state.navigationData && state.navigationData.visible) {
3987
+ if (state?.navigationData?.visible) {
3892
3988
  let currentPosition = state.position !== void 0 ? state.position : -1;
3893
3989
  if (currentPosition < 0) {
3894
3990
  const resultCallback = (position) => {
@@ -4020,6 +4116,7 @@ var controllers_exports = /* @__PURE__ */ __export({
4020
4116
  function addClass$1() {
4021
4117
  return {
4022
4118
  description: `This operation adds the specified class name to the specified selected element.`,
4119
+ category: `DOM`,
4023
4120
  dependentProperties: ["selectedElement"],
4024
4121
  properties: { className: {
4025
4122
  type: "ParameterType:className",
@@ -4034,6 +4131,7 @@ function addClass$1() {
4034
4131
  function addControllerToElement$1() {
4035
4132
  return {
4036
4133
  description: `This operation adds the specified controller instance to the given selected element.`,
4134
+ category: `Controller`,
4037
4135
  dependentProperties: ["selectedElement", "controllerInstance"]
4038
4136
  };
4039
4137
  }
@@ -4044,6 +4142,7 @@ function addGlobalsToOperation$1() {
4044
4142
  return {
4045
4143
  description: `This operation adds the specified global property names to the current operation data.
4046
4144
  It finally removes the \`globalProperties\` property from the current operation data.`,
4145
+ category: `Data`,
4047
4146
  properties: { globalProperties: {
4048
4147
  type: "ParameterType:array",
4049
4148
  itemType: "ParameterType:string",
@@ -4060,6 +4159,7 @@ function animateWithClass$1() {
4060
4159
  description: `This operation adds the specified class name to the specified selected element and assumes that this
4061
4160
  class triggers and animation on the selected element. It then waits for this animation to complete
4062
4161
  before it resolves.`,
4162
+ category: `Animation`,
4063
4163
  dependentProperties: ["selectedElement"],
4064
4164
  properties: {
4065
4165
  className: {
@@ -4077,6 +4177,7 @@ function animate$1() {
4077
4177
  return {
4078
4178
  description: `This operation animates the specified selected element with the given [jQuery animation](https://api.jquery.com/animate/) properties, duration and easing.
4079
4179
  It resolves after the animation completes.`,
4180
+ category: `Animation`,
4080
4181
  dependentProperties: ["selectedElement"],
4081
4182
  properties: {
4082
4183
  animationEasing: {
@@ -4097,12 +4198,35 @@ It resolves after the animation completes.`,
4097
4198
  };
4098
4199
  }
4099
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
+
4100
4221
  //#endregion
4101
4222
  //#region src/operation/metadata/break-for-each.ts
4102
4223
  function breakForEach$1() {
4103
- return { description: `
4224
+ return {
4225
+ description: `
4104
4226
  This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
4105
- 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
+ };
4106
4230
  }
4107
4231
 
4108
4232
  //#endregion
@@ -4111,6 +4235,7 @@ function broadcastEvent$1() {
4111
4235
  return {
4112
4236
  description: `This operation broadcasts the given event through the eventbus, along with the
4113
4237
  event arguments and optional event topic.`,
4238
+ category: `Utility`,
4114
4239
  properties: {
4115
4240
  eventArgs: {
4116
4241
  type: "ParameterType:array",
@@ -4135,6 +4260,7 @@ event arguments and optional event topic.`,
4135
4260
  function calc$1() {
4136
4261
  return {
4137
4262
  description: `This operation calculates the given left and right hand operands using the specified operator.`,
4263
+ category: `Utility`,
4138
4264
  properties: {
4139
4265
  left: {
4140
4266
  type: "ParameterType:number",
@@ -4168,6 +4294,7 @@ function calc$1() {
4168
4294
  function clearElement$1() {
4169
4295
  return {
4170
4296
  description: `This operation removes all of the children from the given selected element.`,
4297
+ category: `DOM`,
4171
4298
  dependentProperties: ["selectedElement"]
4172
4299
  };
4173
4300
  }
@@ -4178,6 +4305,7 @@ function clearOperationData$1() {
4178
4305
  return {
4179
4306
  description: `This operation removes all of the properties on the current operation date.
4180
4307
  Or, if the \`properties\` property is set only removes the properties defined by that list.`,
4308
+ category: `Data`,
4181
4309
  properties: { properties: {
4182
4310
  type: "ParameterType:array",
4183
4311
  itemType: "ParameterType:string",
@@ -4186,13 +4314,96 @@ Or, if the \`properties\` property is set only removes the properties defined by
4186
4314
  };
4187
4315
  }
4188
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
+
4189
4397
  //#endregion
4190
4398
  //#region src/operation/metadata/continue-for-each.ts
4191
4399
  function continueForEach$1() {
4192
- return { description: `
4400
+ return {
4401
+ description: `
4193
4402
  This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
4194
4403
  operation. This operation immediately moves to the next loop index, effectively canceling the rest
4195
- of the operations in the current iteration.` };
4404
+ of the operations in the current iteration.`,
4405
+ category: `Control Flow`
4406
+ };
4196
4407
  }
4197
4408
 
4198
4409
  //#endregion
@@ -4201,6 +4412,7 @@ function createElement$1() {
4201
4412
  return {
4202
4413
  description: `This operation creates the DOM element described by the given elementName and attributes and assigns
4203
4414
  the instance to the \`template\` property on the current operation data.`,
4415
+ category: `DOM`,
4204
4416
  properties: {
4205
4417
  elementName: {
4206
4418
  type: "ParameterType:htmlElementName",
@@ -4226,6 +4438,7 @@ function customFunction$1() {
4226
4438
  return {
4227
4439
  description: `This operation retrieves a custom function defined by the given system name
4228
4440
  and invokes it with the current operation data and eventbus.`,
4441
+ category: `Utility`,
4229
4442
  properties: { systemName: {
4230
4443
  type: "ParameterType:systemName",
4231
4444
  required: true,
@@ -4243,6 +4456,7 @@ function endAction$1() {
4243
4456
  The action operation data is first merged with the current operation data before it is
4244
4457
  passed on to the action. After the action has completed the action operation data properties
4245
4458
  are removed from the current operation data.`,
4459
+ category: `Action`,
4246
4460
  dependentProperties: ["actionInstance"],
4247
4461
  properties: { actionOperationData: {
4248
4462
  type: "ParameterType:object",
@@ -4255,13 +4469,19 @@ are removed from the current operation data.`,
4255
4469
  //#endregion
4256
4470
  //#region src/operation/metadata/end-for-each.ts
4257
4471
  function endForEach$1() {
4258
- 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
+ };
4259
4476
  }
4260
4477
 
4261
4478
  //#endregion
4262
4479
  //#region src/operation/metadata/end-when.ts
4263
4480
  function endWhen$1() {
4264
- 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
+ };
4265
4485
  }
4266
4486
 
4267
4487
  //#endregion
@@ -4269,6 +4489,7 @@ function endWhen$1() {
4269
4489
  function extendController$1() {
4270
4490
  return {
4271
4491
  description: `Extends the current controller with given extension.`,
4492
+ category: `Controller`,
4272
4493
  dependentProperties: ["controllerInstance"],
4273
4494
  properties: { controllerExtension: {
4274
4495
  type: "ParameterType:object",
@@ -4278,6 +4499,71 @@ function extendController$1() {
4278
4499
  };
4279
4500
  }
4280
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
+
4281
4567
  //#endregion
4282
4568
  //#region src/operation/metadata/for-each.ts
4283
4569
  function forEach$1() {
@@ -4292,6 +4578,7 @@ the last iteration is completed the flow control is set to the index of that ope
4292
4578
 
4293
4579
  The {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the
4294
4580
  loop iterations.`,
4581
+ category: `Control Flow`,
4295
4582
  properties: { collection: {
4296
4583
  type: "ParameterType:array|ParameterType:string",
4297
4584
  required: true
@@ -4299,11 +4586,59 @@ loop iterations.`,
4299
4586
  };
4300
4587
  }
4301
4588
 
4589
+ //#endregion
4590
+ //#region src/operation/metadata/format-date.ts
4591
+ function formatDate() {
4592
+ return {
4593
+ description: `Formats a date using Intl.DateTimeFormat or simple patterns.`,
4594
+ category: `Date`,
4595
+ dependentProperties: ["date"],
4596
+ properties: { format: {
4597
+ type: "ParameterType:string",
4598
+ required: true,
4599
+ erased: true
4600
+ } },
4601
+ outputProperties: { formattedDate: { type: "ParameterType:string" } }
4602
+ };
4603
+ }
4604
+
4605
+ //#endregion
4606
+ //#region src/operation/metadata/format-text.ts
4607
+ function formatText() {
4608
+ return {
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
+ ],
4629
+ required: true,
4630
+ erased: true
4631
+ } },
4632
+ outputProperties: { formattedText: { type: "ParameterType:string" } }
4633
+ };
4634
+ }
4635
+
4302
4636
  //#endregion
4303
4637
  //#region src/operation/metadata/get-attributes-from-element.ts
4304
4638
  function getAttributesFromElement$1() {
4305
4639
  return {
4306
4640
  description: `This operation retrieves the values for the specified attribute names from the given selected element.`,
4641
+ category: `DOM`,
4307
4642
  dependentProperties: ["selectedElement"],
4308
4643
  properties: { attributeNames: {
4309
4644
  type: "ParameterType:array",
@@ -4320,6 +4655,7 @@ function getAttributesFromElement$1() {
4320
4655
  function getControllerFromElement$1() {
4321
4656
  return {
4322
4657
  description: `This operation retrieves the controller instance with the specified name that is assigned to the given selected element.`,
4658
+ category: `Controller`,
4323
4659
  dependentProperties: ["selectedElement"],
4324
4660
  properties: { controllerName: {
4325
4661
  type: "ParameterType:controllerName",
@@ -4336,6 +4672,7 @@ function getControllerInstance$1() {
4336
4672
  return {
4337
4673
  description: `This operation retrieves an instance of the given controller name.
4338
4674
  It assigns this instance to the \`controllerInstance\` property on the current operation data`,
4675
+ category: `Controller`,
4339
4676
  properties: { systemName: {
4340
4677
  type: [
4341
4678
  { value: "DOMEventListenerController" },
@@ -4353,6 +4690,19 @@ It assigns this instance to the \`controllerInstance\` property on the current o
4353
4690
  };
4354
4691
  }
4355
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
+
4356
4706
  //#endregion
4357
4707
  //#region src/operation/metadata/get-element-dimensions.ts
4358
4708
  function getElementDimensions$1() {
@@ -4370,6 +4720,7 @@ Where the ratio modifier is formatted in the following way:
4370
4720
 
4371
4721
  For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
4372
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`,
4373
4724
  dependentProperties: ["selectedElement"],
4374
4725
  properties: { modifier: {
4375
4726
  type: "ParameterType:dimensionsModifier",
@@ -4379,12 +4730,38 @@ it will add a value of 100 to the height and modify the width by a ratio of 8 to
4379
4730
  };
4380
4731
  }
4381
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
+
4382
4758
  //#endregion
4383
4759
  //#region src/operation/metadata/get-import.ts
4384
4760
  function getImport$1() {
4385
4761
  return {
4386
4762
  description: `This operation retrieves the import specified by the given \`systemName\` and
4387
4763
  assigns it to the \`importedInstance\` property on the current operaton date.`,
4764
+ category: `Utility`,
4388
4765
  properties: { systemName: {
4389
4766
  type: "ParameterType:systemName",
4390
4767
  required: true,
@@ -4400,6 +4777,7 @@ function getQueryParams$1() {
4400
4777
  return {
4401
4778
  description: `This operation retrieves the current query parameters from the browser's address bar and places
4402
4779
  them on the returned operation data.`,
4780
+ category: `Utility`,
4403
4781
  properties: { defaultValues: {
4404
4782
  type: "ParameterType:object",
4405
4783
  erased: true
@@ -4408,12 +4786,123 @@ them on the returned operation data.`,
4408
4786
  };
4409
4787
  }
4410
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
+
4411
4899
  //#endregion
4412
4900
  //#region src/operation/metadata/invoke-object-method.ts
4413
4901
  function invokeObjectMethod$1() {
4414
4902
  return {
4415
4903
  description: `This operation invokes the specified method on the given object with the given optional arguments
4416
4904
  and assigns the result to the \`methodResult\` operationdata property.`,
4905
+ category: `Utility`,
4417
4906
  dependentProperties: ["instance"],
4418
4907
  properties: {
4419
4908
  methodName: {
@@ -4430,6 +4919,43 @@ and assigns the result to the \`methodResult\` operationdata property.`,
4430
4919
  };
4431
4920
  }
4432
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
+
4433
4959
  //#endregion
4434
4960
  //#region src/operation/metadata/load-json.ts
4435
4961
  function loadJson$1() {
@@ -4439,6 +4965,7 @@ property on the current operation data.
4439
4965
 
4440
4966
  If the cache property is set to true and a cached value already exists, this is assigned
4441
4967
  instead of re-retrieving it from the url.`,
4968
+ category: `Utility`,
4442
4969
  properties: {
4443
4970
  url: {
4444
4971
  type: "ParameterType:string",
@@ -4460,6 +4987,7 @@ function log$1() {
4460
4987
  return {
4461
4988
  description: `This operation logs the specified value, or, when no logValue property has been assigned
4462
4989
  it will log the current operation data, global data and scope to the console`,
4990
+ category: `Utility`,
4463
4991
  properties: {
4464
4992
  logValue: {
4465
4993
  type: "ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array",
@@ -4473,11 +5001,31 @@ it will log the current operation data, global data and scope to the console`,
4473
5001
  };
4474
5002
  }
4475
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
+
4476
5023
  //#endregion
4477
5024
  //#region src/operation/metadata/math.ts
4478
5025
  function math$1() {
4479
5026
  return {
4480
5027
  description: `This operation performs the given math function with the specified arguments.`,
5028
+ category: `Utility`,
4481
5029
  properties: {
4482
5030
  args: {
4483
5031
  type: "ParameterType:array",
@@ -4497,8 +5045,11 @@ function math$1() {
4497
5045
  //#endregion
4498
5046
  //#region src/operation/metadata/otherwise.ts
4499
5047
  function otherwise$1() {
4500
- return { description: `If the preceeding {@link when} operation evaluates to \`true\` subsequent operations will
4501
- 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
+ };
4502
5053
  }
4503
5054
 
4504
5055
  //#endregion
@@ -4506,6 +5057,7 @@ be skipped until an {@link endWhen} operation is encountered.` };
4506
5057
  function removeClass$1() {
4507
5058
  return {
4508
5059
  description: `This operation removes the spcified class name from the given selected element.`,
5060
+ category: `DOM`,
4509
5061
  dependentProperties: ["selectedElement"],
4510
5062
  properties: { className: {
4511
5063
  type: "ParameterType:className",
@@ -4520,6 +5072,7 @@ function removeClass$1() {
4520
5072
  function removeControllerFromElement$1() {
4521
5073
  return {
4522
5074
  description: `This operation removes the controller with the specified name from the given selected element.`,
5075
+ category: `Controller`,
4523
5076
  dependentProperties: ["selectedElement"],
4524
5077
  properties: { controllerName: {
4525
5078
  type: "ParameterType:controllerName",
@@ -4534,6 +5087,7 @@ function removeControllerFromElement$1() {
4534
5087
  function removeElement$1() {
4535
5088
  return {
4536
5089
  description: `This operation removes the given selected element from the DOM.`,
5090
+ category: `DOM`,
4537
5091
  dependentProperties: ["selectedElement"]
4538
5092
  };
4539
5093
  }
@@ -4544,6 +5098,7 @@ function removePropertiesFromOperationData$1() {
4544
5098
  return {
4545
5099
  description: `This operation removes the given list of properties from the current operation data.
4546
5100
  It will also remove the property \`propertyNames\` from the result.`,
5101
+ category: `Data`,
4547
5102
  properties: { propertyNames: {
4548
5103
  type: "ParameterType:array",
4549
5104
  itemType: "ParameterType:string",
@@ -4559,6 +5114,7 @@ function reparentElement$1() {
4559
5114
  return {
4560
5115
  description: `This operation moves the given selected element to the new parent that is defined
4561
5116
  by the specified \`newParentSelector\`.`,
5117
+ category: `DOM`,
4562
5118
  dependentProperties: ["selectedElement"],
4563
5119
  properties: { newParentSelector: {
4564
5120
  type: "ParameterType:selector",
@@ -4568,12 +5124,63 @@ by the specified \`newParentSelector\`.`,
4568
5124
  };
4569
5125
  }
4570
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
+
4571
5177
  //#endregion
4572
5178
  //#region src/operation/metadata/request-action.ts
4573
5179
  function requestAction$1() {
4574
5180
  return {
4575
5181
  description: `This operation requests an action instance with the specified name and assigns it
4576
5182
  to the \`actionInstance\` property on the current operation data.`,
5183
+ category: `Action`,
4577
5184
  properties: { systemName: {
4578
5185
  type: "ParameterType:actionName",
4579
5186
  required: true,
@@ -4583,6 +5190,97 @@ to the \`actionInstance\` property on the current operation data.`,
4583
5190
  };
4584
5191
  }
4585
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
+
4586
5284
  //#endregion
4587
5285
  //#region src/operation/metadata/select-element.ts
4588
5286
  function selectElement$1() {
@@ -4592,6 +5290,7 @@ function selectElement$1() {
4592
5290
  If \`useSelectedElementAsRoot\` is set to true and a valid DOM element is assigned
4593
5291
  to the current operation data's \`selectedElement\` property
4594
5292
  then the element will be looked for only in the descendant elements of this DOM element.`,
5293
+ category: `DOM`,
4595
5294
  properties: {
4596
5295
  selector: {
4597
5296
  type: "ParameterType:selector",
@@ -4612,6 +5311,7 @@ then the element will be looked for only in the descendant elements of this DOM
4612
5311
  function setData$1() {
4613
5312
  return {
4614
5313
  description: `This operation assigns the specified properties to the specified data targets.`,
5314
+ category: `Data`,
4615
5315
  properties: { properties: {
4616
5316
  type: "ParameterType:object",
4617
5317
  required: true,
@@ -4625,6 +5325,7 @@ function setData$1() {
4625
5325
  function setElementAttributes$1() {
4626
5326
  return {
4627
5327
  description: `This operation sets the specified set of attributes on the given selected element.`,
5328
+ category: `DOM`,
4628
5329
  dependentProperties: ["selectedElement"],
4629
5330
  properties: { attributes: {
4630
5331
  type: "ParameterType:object",
@@ -4645,6 +5346,7 @@ When the \`insertionType\` is set to \`overwrite\` the contents of the selected
4645
5346
  by the given template.
4646
5347
  When set to \`append\` the new content will be inserted after the current content.
4647
5348
  When set to \`prepend\` the new content will be inserted before the current content.`,
5349
+ category: `DOM`,
4648
5350
  dependentProperties: ["selectedElement"],
4649
5351
  properties: {
4650
5352
  template: {
@@ -4670,11 +5372,48 @@ When set to \`prepend\` the new content will be inserted before the current cont
4670
5372
  };
4671
5373
  }
4672
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
+
4673
5411
  //#endregion
4674
5412
  //#region src/operation/metadata/set-global-data.ts
4675
5413
  function setGlobalData$1() {
4676
5414
  return {
4677
5415
  description: `This operation copies the specified properties from the operationData to the global data.`,
5416
+ category: `Data`,
4678
5417
  properties: { propertyNames: {
4679
5418
  type: "ParameterType:array",
4680
5419
  itemType: "ParameterType:string",
@@ -4690,6 +5429,7 @@ function setOperationData$1() {
4690
5429
  return {
4691
5430
  description: `This operation assigns the specified properties to the current operation data.
4692
5431
  When override is set to true the properties replace the current operation data entirely.`,
5432
+ category: `Data`,
4693
5433
  properties: {
4694
5434
  override: {
4695
5435
  type: "ParameterType:boolean",
@@ -4710,6 +5450,7 @@ function setStyle$1() {
4710
5450
  return {
4711
5451
  description: `This operation assigns the specified CSS style properties to the
4712
5452
  given selected element.`,
5453
+ category: `DOM`,
4713
5454
  dependentProperties: ["selectedElement"],
4714
5455
  properties: { properties: {
4715
5456
  type: "ParameterType:cssProperties",
@@ -4724,6 +5465,7 @@ given selected element.`,
4724
5465
  function setVariable$1() {
4725
5466
  return {
4726
5467
  description: `This operation sets a variable with the specified name on the scope with the specified value.`,
5468
+ category: `Data`,
4727
5469
  properties: {
4728
5470
  name: {
4729
5471
  type: "ParameterType:string",
@@ -4739,6 +5481,62 @@ function setVariable$1() {
4739
5481
  };
4740
5482
  }
4741
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
+
4742
5540
  //#endregion
4743
5541
  //#region src/operation/metadata/start-action.ts
4744
5542
  function startAction$1() {
@@ -4748,6 +5546,7 @@ function startAction$1() {
4748
5546
  The action operation data is first merged with the current operation data before it is
4749
5547
  passed on to the action. After the action has completed the action operation data properties
4750
5548
  are removed from the current operation data.`,
5549
+ category: `Action`,
4751
5550
  dependentProperties: ["actionInstance"],
4752
5551
  properties: { actionOperationData: {
4753
5552
  type: "ParameterType:object",
@@ -4756,6 +5555,28 @@ are removed from the current operation data.`,
4756
5555
  };
4757
5556
  }
4758
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
+
4759
5580
  //#endregion
4760
5581
  //#region src/operation/metadata/toggle-class.ts
4761
5582
  function toggleClass$1() {
@@ -4764,6 +5585,7 @@ function toggleClass$1() {
4764
5585
 
4765
5586
  Meaning, if the specified class name exists on the given element it will be removed,
4766
5587
  otherwise it will be added.`,
5588
+ category: `DOM`,
4767
5589
  dependentProperties: ["selectedElement"],
4768
5590
  properties: { className: {
4769
5591
  type: "ParameterType:className",
@@ -4781,15 +5603,56 @@ function toggleElement$1() {
4781
5603
 
4782
5604
  Meaning, if the element is hidden, it will be made visible, otherwise
4783
5605
  it will be hidden.`,
5606
+ category: `DOM`,
4784
5607
  dependentProperties: ["selectedElement"]
4785
5608
  };
4786
5609
  }
4787
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
+
4788
5650
  //#endregion
4789
5651
  //#region src/operation/metadata/wait.ts
4790
5652
  function wait$1() {
4791
5653
  return {
4792
5654
  description: `This operation waits for the specified amount of milliseconds.`,
5655
+ category: `Utility`,
4793
5656
  properties: { milliseconds: {
4794
5657
  type: "ParameterType:number",
4795
5658
  required: true,
@@ -4815,6 +5678,7 @@ The left and right values of the expression can be defined like this:
4815
5678
  $operationData.foo: for an operation data value
4816
5679
  $globaldata.foo: for a global data value
4817
5680
  $scope.loopIndex: for a scope value`,
5681
+ category: `Control Flow`,
4818
5682
  properties: { expression: {
4819
5683
  type: "ParameterType:expression",
4820
5684
  required: true,
@@ -4831,11 +5695,15 @@ var metadata_exports = /* @__PURE__ */ __export({
4831
5695
  addGlobalsToOperation: () => addGlobalsToOperation$1,
4832
5696
  animate: () => animate$1,
4833
5697
  animateWithClass: () => animateWithClass$1,
5698
+ announceToScreenReader: () => announceToScreenReader,
4834
5699
  breakForEach: () => breakForEach$1,
4835
5700
  broadcastEvent: () => broadcastEvent$1,
4836
5701
  calc: () => calc$1,
4837
5702
  clearElement: () => clearElement$1,
4838
5703
  clearOperationData: () => clearOperationData$1,
5704
+ clearStorage: () => clearStorage,
5705
+ compareDate: () => compareDate,
5706
+ concatenateStrings: () => concatenateStrings,
4839
5707
  continueForEach: () => continueForEach$1,
4840
5708
  createElement: () => createElement$1,
4841
5709
  customFunction: () => customFunction$1,
@@ -4843,16 +5711,31 @@ var metadata_exports = /* @__PURE__ */ __export({
4843
5711
  endForEach: () => endForEach$1,
4844
5712
  endWhen: () => endWhen$1,
4845
5713
  extendController: () => extendController$1,
5714
+ filterArray: () => filterArray,
5715
+ findInArray: () => findInArray,
4846
5716
  forEach: () => forEach$1,
5717
+ formatDate: () => formatDate,
5718
+ formatText: () => formatText,
4847
5719
  getAttributesFromElement: () => getAttributesFromElement$1,
4848
5720
  getControllerFromElement: () => getControllerFromElement$1,
4849
5721
  getControllerInstance: () => getControllerInstance$1,
5722
+ getCurrentTime: () => getCurrentTime,
4850
5723
  getElementDimensions: () => getElementDimensions$1,
5724
+ getFocusedElement: () => getFocusedElement,
5725
+ getFormData: () => getFormData,
4851
5726
  getImport: () => getImport$1,
4852
5727
  getQueryParams: () => getQueryParams$1,
5728
+ getScrollPosition: () => getScrollPosition,
5729
+ getTextContent: () => getTextContent,
5730
+ httpDelete: () => httpDelete,
5731
+ httpPost: () => httpPost,
5732
+ httpPut: () => httpPut,
4853
5733
  invokeObjectMethod: () => invokeObjectMethod$1,
5734
+ isElementInViewport: () => isElementInViewport,
5735
+ loadFromStorage: () => loadFromStorage,
4854
5736
  loadJson: () => loadJson$1,
4855
5737
  log: () => log$1,
5738
+ mapArray: () => mapArray,
4856
5739
  math: () => math$1,
4857
5740
  otherwise: () => otherwise$1,
4858
5741
  removeClass: () => removeClass$1,
@@ -4860,18 +5743,30 @@ var metadata_exports = /* @__PURE__ */ __export({
4860
5743
  removeElement: () => removeElement$1,
4861
5744
  removePropertiesFromOperationData: () => removePropertiesFromOperationData$1,
4862
5745
  reparentElement: () => reparentElement$1,
5746
+ replaceString: () => replaceString,
5747
+ replaceText: () => replaceText,
4863
5748
  requestAction: () => requestAction$1,
5749
+ saveToStorage: () => saveToStorage,
5750
+ scrollToElement: () => scrollToElement,
5751
+ scrollToPosition: () => scrollToPosition,
4864
5752
  selectElement: () => selectElement$1,
4865
5753
  setData: () => setData$1,
4866
5754
  setElementAttributes: () => setElementAttributes$1,
4867
5755
  setElementContent: () => setElementContent$1,
5756
+ setFocus: () => setFocus,
5757
+ setFormValue: () => setFormValue,
4868
5758
  setGlobalData: () => setGlobalData$1,
4869
5759
  setOperationData: () => setOperationData$1,
4870
5760
  setStyle: () => setStyle$1,
4871
5761
  setVariable: () => setVariable$1,
5762
+ sortArray: () => sortArray,
5763
+ splitString: () => splitString,
4872
5764
  startAction: () => startAction$1,
5765
+ substringText: () => substringText,
4873
5766
  toggleClass: () => toggleClass$1,
4874
5767
  toggleElement: () => toggleElement$1,
5768
+ toggleFormElement: () => toggleFormElement,
5769
+ validateForm: () => validateForm,
4875
5770
  wait: () => wait$1,
4876
5771
  when: () => when$1
4877
5772
  });
@@ -5170,7 +6065,7 @@ function resolveActions(actionConfigurations, importer, eventbus$1) {
5170
6065
  }
5171
6066
  function resolvePlaceholders(configFragment, rootConfig, importer) {
5172
6067
  if (!isDefined(configFragment)) return;
5173
- if (Array.isArray(configFragment)) configFragment.forEach((item, index) => {
6068
+ if (Array.isArray(configFragment)) configFragment.forEach((item) => {
5174
6069
  resolvePlaceholders(item, rootConfig, importer);
5175
6070
  });
5176
6071
  else if (isObject(configFragment)) Object.keys(configFragment).forEach((key) => {
@@ -5227,7 +6122,7 @@ var EligiusEngine = class EligiusEngine {
5227
6122
  const container = $(containerSelector);
5228
6123
  if (!container || !container.length) throw new Error(`Container selector not found: ${containerSelector}`);
5229
6124
  const { layoutTemplate } = this.configuration;
5230
- if (layoutTemplate && layoutTemplate.length) container.html(layoutTemplate);
6125
+ if (layoutTemplate?.length) container.html(layoutTemplate);
5231
6126
  else console.warn("layoutTemplate is empty, unable to create layout");
5232
6127
  }
5233
6128
  async _initializeTimelineProvider() {
@@ -5375,7 +6270,7 @@ var EligiusEngine = class EligiusEngine {
5375
6270
  _addTimelineActionEnd(uri, timeLineAction) {
5376
6271
  let end = timeLineAction.duration.end;
5377
6272
  if (end < 0) end = timeLineAction.duration.end = Infinity;
5378
- if (isFinite(end)) {
6273
+ if (Number.isFinite(end)) {
5379
6274
  const timelineEndPositions = this._initializeTimelinePosition(this._timeLineActionsLookup[uri], end);
5380
6275
  const endMethod = timeLineAction.end.bind(timeLineAction);
5381
6276
  if (timeLineAction.id?.length) {
@@ -5465,7 +6360,7 @@ var EligiusEngine = class EligiusEngine {
5465
6360
  return this._timelineLookupCache.get(uri)?.timelineActions ?? [];
5466
6361
  }
5467
6362
  _onTimeHandler(floor, position) {
5468
- if (!isNaN(position)) {
6363
+ if (!Number.isNaN(position)) {
5469
6364
  const pos = floor(position);
5470
6365
  if (this._lastPosition !== pos) {
5471
6366
  this._executeActionsForPosition(pos);
@@ -5508,7 +6403,7 @@ const sortActionMethodsHighestStartPositionFirst = (a, b) => {
5508
6403
  var ActionRegistryEventbusListener = class {
5509
6404
  _actionRegistry = /* @__PURE__ */ new Map();
5510
6405
  registerAction(action, eventName, eventTopic) {
5511
- if (eventTopic && eventTopic.length) eventName = `${eventName}:${eventTopic}`;
6406
+ if (eventTopic?.length) eventName = `${eventName}:${eventTopic}`;
5512
6407
  if (!this._actionRegistry.has(eventName)) this._actionRegistry.set(eventName, []);
5513
6408
  this._actionRegistry.get(eventName)?.push(action);
5514
6409
  }
@@ -5868,5 +6763,5 @@ var EligiusResourceImporter = class {
5868
6763
  };
5869
6764
 
5870
6765
  //#endregion
5871
- 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, 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 };
5872
6767
  //# sourceMappingURL=index.js.map