eligius 1.1.7 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -115,8 +115,8 @@ function findMatchingOperationIndex(operation) {
115
115
  }
116
116
 
117
117
  //#endregion
118
- //#region src/operation/helper/get-context-var.ts
119
- const getContextVar = (variables, identifier) => {
118
+ //#region src/operation/helper/get-scope-var.ts
119
+ const getScopeVar = (variables, identifier) => {
120
120
  const name = identifier.substring(1);
121
121
  return variables ? variables[name] : void 0;
122
122
  };
@@ -194,20 +194,20 @@ const clearGlobals = _clearGlobals.bind(null, cache$1);
194
194
  *
195
195
  * If the propertyChainOrRegularObject is not a property chain, this value is returned instead.
196
196
  */
197
- function resolveExternalPropertyChain(sourceObject, operationContext, propertyChainOrRegularObject) {
197
+ function resolveExternalPropertyChain(sourceObject, operationScope, propertyChainOrRegularObject) {
198
198
  if (propertyChainOrRegularObject === null || propertyChainOrRegularObject === void 0) return null;
199
199
  if (isExternalProperty(propertyChainOrRegularObject)) {
200
200
  const propNames = propertyChainOrRegularObject.split(".");
201
201
  switch (propNames.shift().toLowerCase()) {
202
202
  case "operationdata": return getPropertyChainValue(propNames, sourceObject);
203
203
  case "globaldata": return getPropertyChainValue(propNames, getGlobals());
204
- case "context": return getPropertyChainValue(propNames, operationContext);
204
+ case "scope": return getPropertyChainValue(propNames, operationScope);
205
205
  }
206
206
  }
207
207
  return propertyChainOrRegularObject;
208
208
  }
209
209
  function isExternalProperty(value) {
210
- return typeof value === "string" && (value.toLocaleLowerCase().startsWith("operationdata.") || value.toLocaleLowerCase().startsWith("globaldata.") || value.toLocaleLowerCase().startsWith("context."));
210
+ return typeof value === "string" && (value.toLocaleLowerCase().startsWith("operationdata.") || value.toLocaleLowerCase().startsWith("globaldata.") || value.toLocaleLowerCase().startsWith("scope.") || value.toLocaleLowerCase().startsWith("@"));
211
211
  }
212
212
 
213
213
  //#endregion
@@ -216,14 +216,14 @@ function isExternalProperty(value) {
216
216
  * This operation iterates over the given collection.
217
217
  *
218
218
  * Each iteration the current item from the specified collection is
219
- * assigned to the {@link IOperationContext.currentItem} property on the operation context.
219
+ * assigned to the {@link IOperationScope.currentItem} property on the operation scope.
220
220
  *
221
221
  * At the start of the loop, the associated {@link endForEach} operation is determined and when
222
222
  * the last iteration is completed the flow control is set to the index of that operation.
223
223
  */
224
224
  const forEach = function(operationData) {
225
225
  const { collection } = operationData;
226
- const resolvedCollection = typeof collection === "string" ? isVariableName(collection) ? getContextVar(this.variables, collection) : resolveExternalPropertyChain(operationData, this, collection) : collection;
226
+ const resolvedCollection = typeof collection === "string" ? isVariableName(collection) ? getScopeVar(this.variables, collection) : resolveExternalPropertyChain(operationData, this, collection) : collection;
227
227
  if (resolvedCollection !== null && resolvedCollection !== void 0 && !Array.isArray(resolvedCollection)) throw new Error("Expected collection to be array type, string value was probably not resolved correctly");
228
228
  if (this.loopIndex === void 0) {
229
229
  this.loopEndIndex = findEndForEachIndex(this);
@@ -242,14 +242,14 @@ const forEach = function(operationData) {
242
242
  if (resolvedCollection?.length && this.loopIndex !== void 0) this.currentItem = resolvedCollection[this.loopIndex];
243
243
  return operationData;
244
244
  };
245
- function findEndForEachIndex(context) {
246
- const currentIndex = context.currentIndex + 1;
247
- const index = context.operations.slice(currentIndex).findIndex(findMatchingOperationIndex.bind({
245
+ function findEndForEachIndex(scope) {
246
+ const currentIndex = scope.currentIndex + 1;
247
+ const index = scope.operations.slice(currentIndex).findIndex(findMatchingOperationIndex.bind({
248
248
  counter: 0,
249
249
  self: forEachSystemName,
250
250
  matchingName: endForEachSystemName
251
251
  }));
252
- return index > -1 ? index + currentIndex : context.operations.length;
252
+ return index > -1 ? index + currentIndex : scope.operations.length;
253
253
  }
254
254
  const forEachSystemName = "forEach";
255
255
  const endForEachSystemName = "endForEach";
@@ -269,7 +269,7 @@ const endForEachSystemName = "endForEach";
269
269
  * 100: for a constant number
270
270
  * operationData.foo: for an operation data value
271
271
  * globaldata.foo: for a global data value
272
- * context.loopIndex: for a context value
272
+ * scope.loopIndex: for a scope value
273
273
  * @foo: for a variable value
274
274
  *
275
275
  * @example
@@ -284,20 +284,21 @@ const endForEachSystemName = "endForEach";
284
284
  */
285
285
  const when = function(operationData) {
286
286
  const [left, operator, right] = parseExpression(operationData.expression, operationData, this);
287
+ delete operationData.expression;
287
288
  this.whenEvaluation = evaluations[operator](left, right);
288
289
  if (!this.whenEvaluation) this.newIndex = findNextFlowControlIndex(this);
289
290
  delete operationData.expression;
290
291
  return operationData;
291
292
  };
292
- function parseExpression(expression, operationData, operationContext) {
293
+ function parseExpression(expression, operationData, operationScope) {
293
294
  const [left, right] = expression.split(/!=|==|>=|<=|>|</);
294
295
  const operator = expression.substring(left.length, expression.length - right.length);
295
296
  const leftNr = parseFloat(left);
296
297
  const rightNr = parseFloat(right);
297
298
  return [
298
- Number.isNaN(leftNr) ? isVariableName(left) ? getContextVar(operationContext.variables, left) : resolveExternalPropertyChain(operationData, operationContext, left) : leftNr,
299
+ Number.isNaN(leftNr) ? isVariableName(left) ? getScopeVar(operationScope.variables, left) : resolveExternalPropertyChain(operationData, operationScope, left) : leftNr,
299
300
  operator,
300
- Number.isNaN(rightNr) ? isVariableName(right) ? getContextVar(operationContext.variables, right) : resolveExternalPropertyChain(operationData, operationContext, right) : rightNr
301
+ Number.isNaN(rightNr) ? isVariableName(right) ? getScopeVar(operationScope.variables, right) : resolveExternalPropertyChain(operationData, operationScope, right) : rightNr
301
302
  ];
302
303
  }
303
304
  const evaluations = {
@@ -308,9 +309,9 @@ const evaluations = {
308
309
  ">": (left, right) => left > right,
309
310
  "<": (left, right) => left < right
310
311
  };
311
- function findNextFlowControlIndex(context) {
312
- const currentIndex = context.currentIndex + 1;
313
- const list = context.operations.slice(currentIndex);
312
+ function findNextFlowControlIndex(scope) {
313
+ const currentIndex = scope.currentIndex + 1;
314
+ const list = scope.operations.slice(currentIndex);
314
315
  const otherWiseIndex = list.findIndex(findMatchingOperationIndex.bind({
315
316
  counter: 0,
316
317
  self: whenSystemName,
@@ -322,7 +323,7 @@ function findNextFlowControlIndex(context) {
322
323
  self: whenSystemName,
323
324
  matchingName: endWhenSystemName
324
325
  }));
325
- return endWhenIndex > -1 ? endWhenIndex + currentIndex : context.operations.length;
326
+ return endWhenIndex > -1 ? endWhenIndex + currentIndex : scope.operations.length;
326
327
  }
327
328
  const whenSystemName = "when";
328
329
  const otherwiseSystemName = "otherwise";
@@ -338,7 +339,7 @@ function isPromise(obj) {
338
339
  //#region src/action/action.ts
339
340
  var Action = class {
340
341
  id = "";
341
- _contextStack = [];
342
+ _scopeStack = [];
342
343
  constructor(name, startOperations, eventbus$1) {
343
344
  this.name = name;
344
345
  this.startOperations = startOperations;
@@ -346,7 +347,7 @@ var Action = class {
346
347
  }
347
348
  start(initOperationData) {
348
349
  Diagnostics.active && Diagnostics.send("eligius-diagnostics-action", `${this.name ?? "Action"} begins executing start operations`);
349
- this._initializeContextStack();
350
+ this._initializeScopeStack();
350
351
  const result = new Promise((resolve, reject) => {
351
352
  this.executeOperation(this.startOperations, 0, resolve, reject, initOperationData);
352
353
  }).catch((e) => {
@@ -363,61 +364,61 @@ var Action = class {
363
364
  return operationsResult;
364
365
  });
365
366
  }
366
- _initializeContextStack() {
367
- this._contextStack = [{
367
+ _initializeScopeStack() {
368
+ this._scopeStack = [{
368
369
  currentIndex: -1,
369
370
  eventbus: this.eventbus,
370
371
  operations: this.startOperations
371
372
  }];
372
373
  }
373
- _pushContext(parentContext) {
374
- const newContext = {
374
+ _pushScope(parentScope) {
375
+ const newScope = {
375
376
  get currentIndex() {
376
- return parentContext.currentIndex;
377
+ return parentScope.currentIndex;
377
378
  },
378
379
  set currentIndex(value) {
379
- parentContext.currentIndex = value;
380
+ parentScope.currentIndex = value;
380
381
  },
381
382
  get eventbus() {
382
- return parentContext.eventbus;
383
+ return parentScope.eventbus;
383
384
  },
384
385
  get operations() {
385
- return parentContext.operations;
386
+ return parentScope.operations;
386
387
  },
387
- parent: parentContext
388
+ parent: parentScope
388
389
  };
389
- this._contextStack.push(newContext);
390
- return newContext;
390
+ this._scopeStack.push(newScope);
391
+ return newScope;
391
392
  }
392
- _popContext() {
393
- this._contextStack.pop();
393
+ _popScope() {
394
+ this._scopeStack.pop();
394
395
  }
395
396
  executeOperation(operations$1, operationIndex, resolve, reject, previousOperationData = {}) {
396
- let context = this._contextStack[this._contextStack.length - 1];
397
- if (context.newIndex !== void 0) {
398
- operationIndex = context.newIndex;
399
- delete context.newIndex;
397
+ let scope = this._scopeStack[this._scopeStack.length - 1];
398
+ if (scope.newIndex !== void 0) {
399
+ operationIndex = scope.newIndex;
400
+ delete scope.newIndex;
400
401
  }
401
- context.currentIndex = operationIndex;
402
+ scope.currentIndex = operationIndex;
402
403
  if (operationIndex < operations$1.length) {
403
404
  const operationInfo = operations$1[operationIndex];
404
405
  const copy = deepCopy(operationInfo.operationData ?? {});
405
406
  const mergedOperationData = Object.assign(previousOperationData, copy);
406
- if (operationInfo.systemName === whenSystemName) context = this._pushContext(context);
407
- else if (operationInfo.systemName === forEachSystemName && context.owner !== operationInfo) {
408
- context = this._pushContext(context);
409
- context.owner = operationInfo;
407
+ if (operationInfo.systemName === whenSystemName) scope = this._pushScope(scope);
408
+ else if (operationInfo.systemName === forEachSystemName && scope.owner !== operationInfo) {
409
+ scope = this._pushScope(scope);
410
+ scope.owner = operationInfo;
410
411
  }
411
412
  Diagnostics.active && Diagnostics.send("eligius-diagnostics-operation", {
412
413
  systemName: operationInfo.systemName,
413
414
  operationData: mergedOperationData,
414
- context: {
415
- ...context,
415
+ scope: {
416
+ ...scope,
416
417
  eventbus: void 0
417
418
  }
418
419
  });
419
- const operationResult = operationInfo.instance.call(context, mergedOperationData);
420
- if (operationInfo.systemName === endWhenSystemName || operationInfo.systemName === endForEachSystemName && context.newIndex === void 0) this._popContext();
420
+ const operationResult = operationInfo.instance.call(scope, mergedOperationData);
421
+ if (operationInfo.systemName === endWhenSystemName || operationInfo.systemName === endForEachSystemName && scope.newIndex === void 0) this._popScope();
421
422
  if (isPromise(operationResult)) operationResult.then((promisedOperationResult) => this.executeOperation(operations$1, ++operationIndex, resolve, reject, promisedOperationResult)).catch((error) => {
422
423
  reject(error);
423
424
  });
@@ -436,7 +437,7 @@ var EndableAction = class extends Action {
436
437
  end(initOperationData) {
437
438
  Diagnostics.active && Diagnostics.send("eligius-diagnostics-action", `${this.name ?? "Action"} begins executing end operations`);
438
439
  if (!this.endOperations.length) return Promise.resolve(initOperationData ?? {});
439
- this._initializeContextStack();
440
+ this._initializeScopeStack();
440
441
  const result = new Promise((resolve, reject) => {
441
442
  this.executeOperation(this.endOperations, 0, resolve, reject, initOperationData);
442
443
  }).catch((e) => {
@@ -609,6 +610,7 @@ function _deduplicate(importPaths) {
609
610
  */
610
611
  const addClass = (operationData) => {
611
612
  const { selectedElement, className } = operationData;
613
+ delete operationData.className;
612
614
  selectedElement.addClass(className);
613
615
  return operationData;
614
616
  };
@@ -664,6 +666,22 @@ const addControllerToElement = function(operationData) {
664
666
  else return operationData;
665
667
  };
666
668
 
669
+ //#endregion
670
+ //#region src/operation/add-globals-to-operation.ts
671
+ /**
672
+ * This operation adds the specified global property names to the current operation data.
673
+ * It finally removes the `globalProperties` property from the current operation data.
674
+ */
675
+ const addGlobalsToOperation = (operationData) => {
676
+ const { globalProperties } = operationData;
677
+ const globalValues = globalProperties.reduce((prev, current) => {
678
+ prev[current] = getGlobals(current);
679
+ return prev;
680
+ }, {});
681
+ delete operationData.globalProperties;
682
+ return Object.assign(operationData, globalValues);
683
+ };
684
+
667
685
  //#endregion
668
686
  //#region src/operation/animate.ts
669
687
  /**
@@ -674,7 +692,10 @@ const addControllerToElement = function(operationData) {
674
692
  * @returns
675
693
  */
676
694
  const animate = (operationData) => {
677
- const { animationEasing, selectedElement, animationProperties, animationDuration } = operationData;
695
+ const { selectedElement, animationEasing, animationProperties, animationDuration } = operationData;
696
+ delete operationData.animationEasing;
697
+ delete operationData.animationProperties;
698
+ delete operationData.animationDuration;
678
699
  return new Promise((resolve, reject) => {
679
700
  try {
680
701
  if (animationEasing) selectedElement.animate(animationProperties, animationDuration, animationEasing, () => {
@@ -713,19 +734,11 @@ const animateWithClass = (operationData) => {
713
734
  return promise;
714
735
  };
715
736
 
716
- //#endregion
717
- //#region src/operation/helper/remove-event-data-from-operation-data.ts
718
- function removeEventDataFromOperationData(operationData) {
719
- delete operationData.eventName;
720
- delete operationData.eventTopic;
721
- delete operationData.eventArgs;
722
- }
723
-
724
737
  //#endregion
725
738
  //#region src/operation/helper/resolve-event-arguments.ts
726
- function resolveEventArguments(operationData, operationContext, eventArgs) {
739
+ function resolveEventArguments(operationData, operationScope, eventArgs) {
727
740
  if (!eventArgs) return;
728
- const resolve = resolveExternalPropertyChain.bind(null, operationData, operationContext);
741
+ const resolve = resolveExternalPropertyChain.bind(null, operationData, operationScope);
729
742
  return eventArgs.map(resolve);
730
743
  }
731
744
 
@@ -733,14 +746,16 @@ function resolveEventArguments(operationData, operationContext, eventArgs) {
733
746
  //#region src/operation/broadcast-event.ts
734
747
  /**
735
748
  * This operation broadcasts the given event through the eventbus, along with the
736
- * event argumetns and optional event topic.
749
+ * event arguments and optional event topic.
737
750
  */
738
751
  const broadcastEvent = function(operationData) {
739
752
  const { eventArgs, eventTopic, eventName } = operationData;
753
+ delete operationData.eventArgs;
754
+ delete operationData.eventTopic;
755
+ delete operationData.eventName;
740
756
  const eventArguments = resolveEventArguments(operationData, this, eventArgs);
741
757
  if (eventTopic) this.eventbus.broadcastForTopic(eventName, eventTopic, eventArguments);
742
758
  else this.eventbus.broadcast(eventName, eventArguments);
743
- removeEventDataFromOperationData(operationData);
744
759
  return operationData;
745
760
  };
746
761
 
@@ -751,9 +766,9 @@ const cache = [];
751
766
  * This takes a `newProperties` instance, resolves all of the properties on this object and then
752
767
  * assigns these properties to the given operationData.
753
768
  */
754
- function resolvePropertyValues(operationData, operationContext, newProperties) {
769
+ function resolvePropertyValues(operationData, operationScope, newProperties) {
755
770
  const copy = newProperties !== operationData ? deepCopy(newProperties) : newProperties;
756
- const resolvePropertyChain$1 = resolveExternalPropertyChain.bind(null, operationData, operationContext);
771
+ const resolvePropertyChain$1 = resolveExternalPropertyChain.bind(null, operationData, operationScope);
757
772
  resolveNewProperties(newProperties, copy, resolvePropertyChain$1);
758
773
  return copy;
759
774
  }
@@ -795,6 +810,9 @@ const calcFunctions = {
795
810
  const calc = function(operationData) {
796
811
  operationData = resolvePropertyValues(operationData, this, operationData);
797
812
  const { left, right, operator } = operationData;
813
+ delete operationData.left;
814
+ delete operationData.right;
815
+ delete operationData.operator;
798
816
  operationData.calculationResult = calcFunctions[operator](+left, +right);
799
817
  return operationData;
800
818
  };
@@ -842,6 +860,9 @@ const clearOperationData = (operationData) => {
842
860
  const createElement = function(operationData) {
843
861
  operationData = resolvePropertyValues(operationData, this, operationData);
844
862
  const { elementName, attributes, text } = operationData;
863
+ delete operationData.elementName;
864
+ delete operationData.attributes;
865
+ delete operationData.text;
845
866
  const serializedAttrs = attributes ? ` ${Object.entries(attributes).filter(([_, value]) => Boolean(value)).map(([key, value]) => `${key}="${value}"`).join(" ")}` : "";
846
867
  operationData.template = text ? $(`<${elementName}${serializedAttrs}>${text}</${elementName}>`) : $(`<${elementName}${serializedAttrs}/>`);
847
868
  return operationData;
@@ -942,6 +963,7 @@ var TimelineEventNames = class {
942
963
  */
943
964
  const customFunction = function(operationData) {
944
965
  const { systemName } = operationData;
966
+ delete operationData.systemName;
945
967
  return new Promise((resolve, reject) => {
946
968
  const resultCallback = (func) => {
947
969
  const promise = func.apply(this, [operationData]);
@@ -968,10 +990,11 @@ const endAction = (operationData) => {
968
990
  return new Promise((resolve, reject) => {
969
991
  newOperationData = mergeOperationData(newOperationData, actionOperationData);
970
992
  newOperationData.actionInstance.end(newOperationData).then(() => {
971
- Object.keys(actionOperationData).forEach((key) => {
972
- delete newOperationData[key];
973
- });
974
- internalResolve(resolve, newOperationData);
993
+ const sanitizedData = Object.keys(newOperationData).filter((key) => !(key in actionOperationData)).reduce((acc, key) => {
994
+ acc[key] = newOperationData[key];
995
+ return acc;
996
+ }, {});
997
+ internalResolve(resolve, sanitizedData);
975
998
  }, reject);
976
999
  });
977
1000
  };
@@ -1007,6 +1030,7 @@ const endWhen = function(operationData) {
1007
1030
  */
1008
1031
  const extendController = (operationData) => {
1009
1032
  const { controllerInstance, controllerExtension } = operationData;
1033
+ delete operationData.controllerExtension;
1010
1034
  operationData.controllerInstance = Object.assign(controllerInstance, controllerExtension);
1011
1035
  return operationData;
1012
1036
  };
@@ -1014,13 +1038,14 @@ const extendController = (operationData) => {
1014
1038
  //#endregion
1015
1039
  //#region src/operation/get-attributes-from-element.ts
1016
1040
  /**
1017
- * This operation retrieves the values for the specified attribute names from the given selected element.
1041
+ * This operation retrieves the values for the specified attribute names from the given selected element.
1018
1042
  */
1019
1043
  const getAttributesFromElement = (operationData) => {
1020
1044
  const { selectedElement, attributeNames } = operationData;
1045
+ delete operationData.attributeNames;
1021
1046
  operationData.attributeValues = attributeNames.reduce((acc, attrName) => {
1022
- if (attrName !== "value") acc[attrName] = selectedElement?.attr(attrName);
1023
- else acc[attrName] = selectedElement?.val();
1047
+ if (attrName !== "value") acc[attrName] = selectedElement.attr(attrName);
1048
+ else acc[attrName] = selectedElement.val();
1024
1049
  return acc;
1025
1050
  }, {});
1026
1051
  return operationData;
@@ -1036,9 +1061,8 @@ const getAttributesFromElement = (operationData) => {
1036
1061
  */
1037
1062
  const getControllerFromElement = (operationData) => {
1038
1063
  const { selectedElement, controllerName } = operationData;
1039
- const controller = getElementControllers(selectedElement)?.find((ctrl) => {
1040
- return ctrl.name === controllerName;
1041
- });
1064
+ delete operationData.controllerName;
1065
+ const controller = getElementControllers(selectedElement)?.find((ctrl) => ctrl.name === controllerName);
1042
1066
  if (!controller) console.warn(`controller for name '${controllerName}' was not found on the given element`);
1043
1067
  operationData.controllerInstance = controller;
1044
1068
  return operationData;
@@ -1052,6 +1076,7 @@ const getControllerFromElement = (operationData) => {
1052
1076
  */
1053
1077
  const getControllerInstance = function(operationData) {
1054
1078
  const { systemName } = operationData;
1079
+ delete operationData.systemName;
1055
1080
  operationData.controllerInstance = void 0;
1056
1081
  const resultCallback = (instance) => {
1057
1082
  operationData.controllerInstance = instance;
@@ -1198,6 +1223,7 @@ function modifyDimensions(dimensions, modifier) {
1198
1223
  */
1199
1224
  const getElementDimensions = (operationData) => {
1200
1225
  const { selectedElement, modifier } = operationData;
1226
+ delete operationData.modifier;
1201
1227
  let dimensions = {
1202
1228
  width: selectedElement.innerWidth() ?? 0,
1203
1229
  height: selectedElement.innerHeight() ?? 0
@@ -1219,6 +1245,7 @@ const getElementDimensions = (operationData) => {
1219
1245
  */
1220
1246
  const getImport = function(operationData) {
1221
1247
  const { systemName } = operationData;
1248
+ delete operationData.systemName;
1222
1249
  const callBack = (instance) => {
1223
1250
  operationData.importedInstance = instance;
1224
1251
  };
@@ -1238,6 +1265,7 @@ const getQueryParams = (operationData) => {
1238
1265
  const queryParams = Object.fromEntries(searchParams.entries());
1239
1266
  const { defaultValues = {} } = operationData;
1240
1267
  delete operationData.defaultValues;
1268
+ delete operationData.defaultValues;
1241
1269
  operationData.queryParams = {
1242
1270
  ...defaultValues,
1243
1271
  ...queryParams
@@ -1256,6 +1284,8 @@ const getQueryParams = (operationData) => {
1256
1284
  */
1257
1285
  const invokeObjectMethod = (operationData) => {
1258
1286
  const { methodName, methodArguments,...newOperationData } = operationData;
1287
+ delete operationData.methodName;
1288
+ delete operationData.methodArguments;
1259
1289
  const func = operationData.instance[methodName];
1260
1290
  if (typeof func === "function") newOperationData.methodResult = func.apply(operationData.instance, methodArguments ?? []);
1261
1291
  else console.error(`The given member name ${methodName} is not a function`);
@@ -1277,6 +1307,8 @@ const addToCache = (key, value) => {
1277
1307
  */
1278
1308
  const loadJson = async (operationData) => {
1279
1309
  const { url, cache: cache$2 } = operationData;
1310
+ delete operationData.url;
1311
+ delete operationData.cache;
1280
1312
  if (cache$2 && jsonCache[url]) {
1281
1313
  operationData.json = jsonCache[url];
1282
1314
  return operationData;
@@ -1289,15 +1321,21 @@ const loadJson = async (operationData) => {
1289
1321
  //#endregion
1290
1322
  //#region src/operation/log.ts
1291
1323
  /**
1292
- * This operation logs the current operation data, global data and context to the console.
1324
+ * This operation logs the specified value, or, when no logValue property has been assigned
1325
+ * it will log the current operation data, global data and scope to the console
1293
1326
  */
1294
1327
  const log = function(operationData) {
1295
- const globalData = getGlobals();
1296
- console.group("Operation info");
1297
- console.log("context", this);
1298
- console.log("operationData", operationData);
1299
- console.log("globalData", globalData);
1300
- console.groupEnd();
1328
+ if ("logValue" in operationData) {
1329
+ console.log("logValue", operationData.logValue);
1330
+ delete operationData.logValue;
1331
+ } else {
1332
+ const globalData = getGlobals();
1333
+ console.group("Operation info");
1334
+ console.log("scope", this);
1335
+ console.log("operationData", operationData);
1336
+ console.log("globalData", globalData);
1337
+ console.groupEnd();
1338
+ }
1301
1339
  return operationData;
1302
1340
  };
1303
1341
 
@@ -1339,14 +1377,14 @@ const otherwise = function(operationData) {
1339
1377
  if (this.whenEvaluation) this.newIndex = findEndWhenIndex(this);
1340
1378
  return operationData;
1341
1379
  };
1342
- function findEndWhenIndex(context) {
1343
- const currentIndex = context.currentIndex + 1;
1344
- const endWhenIndex = context.operations.slice(currentIndex).findIndex(findMatchingOperationIndex.bind({
1380
+ function findEndWhenIndex(scope) {
1381
+ const currentIndex = scope.currentIndex + 1;
1382
+ const endWhenIndex = scope.operations.slice(currentIndex).findIndex(findMatchingOperationIndex.bind({
1345
1383
  counter: 0,
1346
1384
  self: "when",
1347
1385
  matchingName: "endWhen"
1348
1386
  }));
1349
- return endWhenIndex > -1 ? endWhenIndex + currentIndex : context.operations.length;
1387
+ return endWhenIndex > -1 ? endWhenIndex + currentIndex : scope.operations.length;
1350
1388
  }
1351
1389
 
1352
1390
  //#endregion
@@ -1359,6 +1397,7 @@ function findEndWhenIndex(context) {
1359
1397
  */
1360
1398
  const removeClass = (operationData) => {
1361
1399
  const { selectedElement, className } = operationData;
1400
+ delete operationData.className;
1362
1401
  selectedElement.removeClass(className);
1363
1402
  return operationData;
1364
1403
  };
@@ -1373,6 +1412,7 @@ const removeClass = (operationData) => {
1373
1412
  */
1374
1413
  const removeControllerFromElement = function(operationData) {
1375
1414
  const { selectedElement, controllerName } = operationData;
1415
+ delete controllerName.controllerName;
1376
1416
  const controllers$1 = getElementControllers(selectedElement);
1377
1417
  const controller = controllers$1?.find((ctrl) => ctrl.name === controllerName);
1378
1418
  if (controller && controllers$1) {
@@ -1387,9 +1427,6 @@ const removeControllerFromElement = function(operationData) {
1387
1427
  //#region src/operation/remove-element.ts
1388
1428
  /**
1389
1429
  * This operation removes the given selected element from the DOM.
1390
- *
1391
- * @param operationData
1392
- * @returns
1393
1430
  */
1394
1431
  const removeElement = (operationData) => {
1395
1432
  const { selectedElement } = operationData;
@@ -1420,6 +1457,7 @@ const removePropertiesFromOperationData = (operationData) => {
1420
1457
  */
1421
1458
  const reparentElement = (operationData) => {
1422
1459
  const { selectedElement, newParentSelector } = operationData;
1460
+ delete operationData.newParentSelector;
1423
1461
  selectedElement.remove().appendTo(newParentSelector);
1424
1462
  return operationData;
1425
1463
  };
@@ -1432,6 +1470,7 @@ const reparentElement = (operationData) => {
1432
1470
  */
1433
1471
  const requestAction = function(operationData) {
1434
1472
  const { systemName } = operationData;
1473
+ delete operationData.systemName;
1435
1474
  const resultCallback = (action) => {
1436
1475
  operationData.actionInstance = action;
1437
1476
  };
@@ -1439,18 +1478,6 @@ const requestAction = function(operationData) {
1439
1478
  return operationData;
1440
1479
  };
1441
1480
 
1442
- //#endregion
1443
- //#region src/operation/resize-action.ts
1444
- /**
1445
- * @deprecated
1446
- */
1447
- const resizeAction = (operationData) => {
1448
- const { actionInstance, actionOperationData } = operationData;
1449
- operationData = mergeOperationData(operationData, actionOperationData);
1450
- if ("resize" in actionInstance && typeof actionInstance.resize === "function") return actionInstance.resize(operationData);
1451
- return operationData;
1452
- };
1453
-
1454
1481
  //#endregion
1455
1482
  //#region src/operation/select-element.ts
1456
1483
  function findElementBySelector(root, selector) {
@@ -1468,6 +1495,8 @@ function findElementBySelector(root, selector) {
1468
1495
  const selectElement = function(operationData) {
1469
1496
  operationData.selector = resolveExternalPropertyChain(operationData, this, operationData.selector);
1470
1497
  const { selector, useSelectedElementAsRoot = false } = operationData;
1498
+ delete operationData.selector;
1499
+ delete operationData.useSelectedElementAsRoot;
1471
1500
  if (!selector) throw new Error("selectElement: selector is either empty or not defined.");
1472
1501
  if (useSelectedElementAsRoot && operationData.selectedElement) {
1473
1502
  const currentRoot = operationData.selectedElement;
@@ -1489,9 +1518,9 @@ const selectElement = function(operationData) {
1489
1518
  * @example The various ways of assigning data
1490
1519
  * ```ts
1491
1520
  * setData({
1492
- * 'operationdata.foo': 'context.currentItem', // context.currentItem will be assigned to operationdata.foo
1493
- * 'globaldata.foo': 'context.currentItem', // context.currentItem will be assigned to globaldata.foo
1494
- * 'context.newIndex': 100, // The constant 100 will be assigned to context.newIndex
1521
+ * 'operationdata.foo': 'scope.currentItem', // scope.currentItem will be assigned to operationdata.foo
1522
+ * 'globaldata.foo': 'scope.currentItem', // scope.currentItem will be assigned to globaldata.foo
1523
+ * 'scope.newIndex': 100, // The constant 100 will be assigned to scope.newIndex
1495
1524
  * })
1496
1525
  * ```
1497
1526
  */
@@ -1501,15 +1530,15 @@ const setData = function(operationData) {
1501
1530
  resolveTargets(properties, operationData, this);
1502
1531
  return operationData;
1503
1532
  };
1504
- function resolveTargets(data, operationData, context) {
1533
+ function resolveTargets(data, operationData, scope) {
1505
1534
  return Object.keys(data).forEach((item) => {
1506
1535
  const path$1 = item.split(".");
1507
1536
  const rootTarget = path$1.shift()?.toLowerCase() ?? "";
1508
1537
  if (!isDataTarget(rootTarget)) throw new Error(`Unrecognized target: ${rootTarget}, known targets are: ${knownTargets.join(", ")}`);
1509
1538
  const property = path$1.pop() ?? "";
1510
- const propertyValue = resolveExternalPropertyChain(operationData, context, data[item]);
1539
+ const propertyValue = resolveExternalPropertyChain(operationData, scope, data[item]);
1511
1540
  const targets = {
1512
- context,
1541
+ scope,
1513
1542
  operationdata: operationData,
1514
1543
  globaldata: getGlobals()
1515
1544
  };
@@ -1518,7 +1547,7 @@ function resolveTargets(data, operationData, context) {
1518
1547
  });
1519
1548
  }
1520
1549
  const knownTargets = [
1521
- "context",
1550
+ "scope",
1522
1551
  "operationdata",
1523
1552
  "globaldata"
1524
1553
  ];
@@ -1533,6 +1562,7 @@ function isDataTarget(value) {
1533
1562
  */
1534
1563
  const setElementAttributes = (operationData) => {
1535
1564
  const { attributes, selectedElement } = operationData;
1565
+ delete operationData.attributes;
1536
1566
  selectedElement.attr(attributes);
1537
1567
  return operationData;
1538
1568
  };
@@ -1562,6 +1592,7 @@ const setElementContent = (operationData) => {
1562
1592
  break;
1563
1593
  }
1564
1594
  delete operationData.insertionType;
1595
+ delete operationData.template;
1565
1596
  return operationData;
1566
1597
  };
1567
1598
 
@@ -1602,18 +1633,21 @@ const setOperationData = function(operationData) {
1602
1633
  const setStyle = function(operationData) {
1603
1634
  const properties = resolvePropertyValues(operationData, this, operationData.properties);
1604
1635
  operationData.selectedElement.css(properties);
1636
+ delete operationData.properties;
1605
1637
  return operationData;
1606
1638
  };
1607
1639
 
1608
1640
  //#endregion
1609
1641
  //#region src/operation/set-variable.ts
1610
1642
  /**
1611
- * This operation sets a variable with the specified name on the context with the specified value.
1643
+ * This operation sets a variable with the specified name on the scope with the specified value.
1612
1644
  */
1613
1645
  const setVariable = function(operationData) {
1614
1646
  const { name, value } = operationData;
1615
1647
  if (!this.variables) this.variables = {};
1616
1648
  this.variables[name] = value;
1649
+ delete operationData.name;
1650
+ delete operationData.value;
1617
1651
  return operationData;
1618
1652
  };
1619
1653
 
@@ -1653,6 +1687,7 @@ const startAction = (operationData) => {
1653
1687
  const toggleClass = (operationData) => {
1654
1688
  const { selectedElement, className } = operationData;
1655
1689
  selectedElement.toggleClass(className);
1690
+ delete operationData.className;
1656
1691
  return operationData;
1657
1692
  };
1658
1693
 
@@ -1688,6 +1723,7 @@ const wait = (operationData) => {
1688
1723
  var operation_exports = /* @__PURE__ */ __export({
1689
1724
  addClass: () => addClass,
1690
1725
  addControllerToElement: () => addControllerToElement,
1726
+ addGlobalsToOperation: () => addGlobalsToOperation,
1691
1727
  animate: () => animate,
1692
1728
  animateWithClass: () => animateWithClass,
1693
1729
  broadcastEvent: () => broadcastEvent,
@@ -1718,7 +1754,6 @@ var operation_exports = /* @__PURE__ */ __export({
1718
1754
  removePropertiesFromOperationData: () => removePropertiesFromOperationData,
1719
1755
  reparentElement: () => reparentElement,
1720
1756
  requestAction: () => requestAction,
1721
- resizeAction: () => resizeAction,
1722
1757
  selectElement: () => selectElement,
1723
1758
  setData: () => setData,
1724
1759
  setElementAttributes: () => setElementAttributes,
@@ -3900,7 +3935,8 @@ function addClass$1() {
3900
3935
  dependentProperties: ["selectedElement"],
3901
3936
  properties: { className: {
3902
3937
  type: "ParameterType:className",
3903
- required: true
3938
+ required: true,
3939
+ erased: true
3904
3940
  } }
3905
3941
  };
3906
3942
  }
@@ -3916,14 +3952,15 @@ function addControllerToElement$1() {
3916
3952
 
3917
3953
  //#endregion
3918
3954
  //#region src/operation/metadata/add-globals-to-operation.ts
3919
- function addGlobalsToOperation() {
3955
+ function addGlobalsToOperation$1() {
3920
3956
  return {
3921
3957
  description: `This operation adds the specified global property names to the current operation data.
3922
3958
  It finally removes the \`globalProperties\` property from the current operation data.`,
3923
3959
  properties: { globalProperties: {
3924
3960
  type: "ParameterType:array",
3925
3961
  itemType: "ParameterType:string",
3926
- required: true
3962
+ required: true,
3963
+ erased: true
3927
3964
  } }
3928
3965
  };
3929
3966
  }
@@ -3954,14 +3991,19 @@ function animate$1() {
3954
3991
  It resolves after the animation completes.`,
3955
3992
  dependentProperties: ["selectedElement"],
3956
3993
  properties: {
3957
- animationEasing: { type: "ParameterType:boolean" },
3994
+ animationEasing: {
3995
+ type: "ParameterType:boolean",
3996
+ erased: true
3997
+ },
3958
3998
  animationProperties: {
3959
3999
  type: "ParameterType:object",
3960
- required: true
4000
+ required: true,
4001
+ erased: true
3961
4002
  },
3962
4003
  animationDuration: {
3963
4004
  type: "ParameterType:number",
3964
- required: true
4005
+ required: true,
4006
+ erased: true
3965
4007
  }
3966
4008
  }
3967
4009
  };
@@ -3972,13 +4014,21 @@ It resolves after the animation completes.`,
3972
4014
  function broadcastEvent$1() {
3973
4015
  return {
3974
4016
  description: `This operation broadcasts the given event through the eventbus, along with the
3975
- event argumetns and optional event topic.`,
4017
+ event arguments and optional event topic.`,
3976
4018
  properties: {
3977
- eventArgs: { type: "ParameterType:array" },
3978
- eventTopic: { type: "ParameterType:eventTopic" },
4019
+ eventArgs: {
4020
+ type: "ParameterType:array",
4021
+ required: true,
4022
+ erased: true
4023
+ },
4024
+ eventTopic: {
4025
+ type: "ParameterType:eventTopic",
4026
+ erased: true
4027
+ },
3979
4028
  eventName: {
3980
4029
  type: "ParameterType:eventName",
3981
- required: true
4030
+ required: true,
4031
+ erased: true
3982
4032
  }
3983
4033
  }
3984
4034
  };
@@ -3992,11 +4042,13 @@ function calc$1() {
3992
4042
  properties: {
3993
4043
  left: {
3994
4044
  type: "ParameterType:number",
3995
- required: true
4045
+ required: true,
4046
+ erased: true
3996
4047
  },
3997
4048
  right: {
3998
4049
  type: "ParameterType:number",
3999
- required: true
4050
+ required: true,
4051
+ erased: true
4000
4052
  },
4001
4053
  operator: {
4002
4054
  type: [
@@ -4007,7 +4059,8 @@ function calc$1() {
4007
4059
  { value: "%" },
4008
4060
  { value: "**" }
4009
4061
  ],
4010
- required: true
4062
+ required: true,
4063
+ erased: true
4011
4064
  }
4012
4065
  },
4013
4066
  outputProperties: { calculationResult: { type: "ParameterType:number" } }
@@ -4031,7 +4084,8 @@ function clearOperationData$1() {
4031
4084
  Or, if the \`properties\` property is set only removes the properties defined by that list.`,
4032
4085
  properties: { properties: {
4033
4086
  type: "ParameterType:array",
4034
- itemType: "ParameterType:string"
4087
+ itemType: "ParameterType:string",
4088
+ erased: true
4035
4089
  } }
4036
4090
  };
4037
4091
  }
@@ -4044,124 +4098,18 @@ function createElement$1() {
4044
4098
  the instance to the \`template\` property on the current operation data.`,
4045
4099
  properties: {
4046
4100
  elementName: {
4047
- type: [
4048
- { value: "object" },
4049
- { value: "a" },
4050
- { value: "abbr" },
4051
- { value: "address" },
4052
- { value: "area" },
4053
- { value: "article" },
4054
- { value: "aside" },
4055
- { value: "audio" },
4056
- { value: "b" },
4057
- { value: "base" },
4058
- { value: "bdi" },
4059
- { value: "bdo" },
4060
- { value: "blockquote" },
4061
- { value: "body" },
4062
- { value: "br" },
4063
- { value: "button" },
4064
- { value: "canvas" },
4065
- { value: "caption" },
4066
- { value: "cite" },
4067
- { value: "code" },
4068
- { value: "col" },
4069
- { value: "colgroup" },
4070
- { value: "data" },
4071
- { value: "datalist" },
4072
- { value: "dd" },
4073
- { value: "del" },
4074
- { value: "details" },
4075
- { value: "dfn" },
4076
- { value: "dialog" },
4077
- { value: "div" },
4078
- { value: "dl" },
4079
- { value: "dt" },
4080
- { value: "em" },
4081
- { value: "embed" },
4082
- { value: "fieldset" },
4083
- { value: "figcaption" },
4084
- { value: "figure" },
4085
- { value: "footer" },
4086
- { value: "form" },
4087
- { value: "h1" },
4088
- { value: "h2" },
4089
- { value: "h3" },
4090
- { value: "h4" },
4091
- { value: "h5" },
4092
- { value: "h6" },
4093
- { value: "head" },
4094
- { value: "header" },
4095
- { value: "hgroup" },
4096
- { value: "hr" },
4097
- { value: "html" },
4098
- { value: "i" },
4099
- { value: "iframe" },
4100
- { value: "img" },
4101
- { value: "input" },
4102
- { value: "ins" },
4103
- { value: "kbd" },
4104
- { value: "label" },
4105
- { value: "legend" },
4106
- { value: "li" },
4107
- { value: "link" },
4108
- { value: "main" },
4109
- { value: "map" },
4110
- { value: "mark" },
4111
- { value: "menu" },
4112
- { value: "meta" },
4113
- { value: "meter" },
4114
- { value: "nav" },
4115
- { value: "noscript" },
4116
- { value: "ol" },
4117
- { value: "optgroup" },
4118
- { value: "option" },
4119
- { value: "output" },
4120
- { value: "p" },
4121
- { value: "picture" },
4122
- { value: "pre" },
4123
- { value: "progress" },
4124
- { value: "q" },
4125
- { value: "rp" },
4126
- { value: "rt" },
4127
- { value: "ruby" },
4128
- { value: "s" },
4129
- { value: "samp" },
4130
- { value: "script" },
4131
- { value: "search" },
4132
- { value: "section" },
4133
- { value: "select" },
4134
- { value: "slot" },
4135
- { value: "small" },
4136
- { value: "source" },
4137
- { value: "span" },
4138
- { value: "strong" },
4139
- { value: "style" },
4140
- { value: "sub" },
4141
- { value: "summary" },
4142
- { value: "sup" },
4143
- { value: "table" },
4144
- { value: "tbody" },
4145
- { value: "td" },
4146
- { value: "template" },
4147
- { value: "textarea" },
4148
- { value: "tfoot" },
4149
- { value: "th" },
4150
- { value: "thead" },
4151
- { value: "time" },
4152
- { value: "title" },
4153
- { value: "tr" },
4154
- { value: "track" },
4155
- { value: "u" },
4156
- { value: "ul" },
4157
- { value: "var" },
4158
- { value: "video" },
4159
- { value: "wbr" }
4160
- ],
4161
- required: true
4101
+ type: "ParameterType:htmlElementName",
4102
+ required: true,
4103
+ erased: true
4104
+ },
4105
+ text: {
4106
+ type: "ParameterType:string",
4107
+ erased: true
4162
4108
  },
4163
- text: { type: "ParameterType:string" },
4164
- attributes: { type: "ParameterType:object" }
4109
+ attributes: {
4110
+ type: "ParameterType:object",
4111
+ erased: true
4112
+ }
4165
4113
  },
4166
4114
  outputProperties: { template: { type: "ParameterType:object" } }
4167
4115
  };
@@ -4173,7 +4121,11 @@ function customFunction$1() {
4173
4121
  return {
4174
4122
  description: `This operation retrieves a custom function defined by the given system name
4175
4123
  and invokes it with the current operation data and eventbus.`,
4176
- properties: { systemName: { type: "ParameterType:string" } }
4124
+ properties: { systemName: {
4125
+ type: "ParameterType:systemName",
4126
+ required: true,
4127
+ erased: true
4128
+ } }
4177
4129
  };
4178
4130
  }
4179
4131
 
@@ -4187,7 +4139,11 @@ The action operation data is first merged with the current operation data before
4187
4139
  passed on to the action. After the action has completed the action operation data properties
4188
4140
  are removed from the current operation data.`,
4189
4141
  dependentProperties: ["actionInstance"],
4190
- properties: { actionOperationData: { type: "ParameterType:object" } }
4142
+ properties: { actionOperationData: {
4143
+ type: "ParameterType:object",
4144
+ required: true,
4145
+ erased: true
4146
+ } }
4191
4147
  };
4192
4148
  }
4193
4149
 
@@ -4209,7 +4165,11 @@ function extendController$1() {
4209
4165
  return {
4210
4166
  description: `Extends the current controller with given extension.`,
4211
4167
  dependentProperties: ["controllerInstance"],
4212
- properties: { controllerExtension: { type: "ParameterType:object" } }
4168
+ properties: { controllerExtension: {
4169
+ type: "ParameterType:object",
4170
+ required: true,
4171
+ erased: true
4172
+ } }
4213
4173
  };
4214
4174
  }
4215
4175
 
@@ -4220,12 +4180,12 @@ function forEach$1() {
4220
4180
  description: `This operation iterates over the given collection.
4221
4181
 
4222
4182
  Each iteration the current item from the specified collection is
4223
- assigned to the {@link IOperationContext.currentItem} property on the operation context.
4183
+ assigned to the {@link IOperationScope.currentItem} property on the operation scope.
4224
4184
 
4225
4185
  At the start of the loop, the associated {@link endForEach} operation is determined and when
4226
4186
  the last iteration is completed the flow control is set to the index of that operation.`,
4227
4187
  properties: { collection: {
4228
- type: "ParameterType:array|string",
4188
+ type: "ParameterType:array|ParameterType:string",
4229
4189
  required: true
4230
4190
  } }
4231
4191
  };
@@ -4235,11 +4195,13 @@ the last iteration is completed the flow control is set to the index of that ope
4235
4195
  //#region src/operation/metadata/get-attributes-from-element.ts
4236
4196
  function getAttributesFromElement$1() {
4237
4197
  return {
4238
- description: `This operation retrieves the values for the specified attribute names from the given selected element.`,
4198
+ description: `This operation retrieves the values for the specified attribute names from the given selected element.`,
4239
4199
  dependentProperties: ["selectedElement"],
4240
4200
  properties: { attributeNames: {
4241
4201
  type: "ParameterType:array",
4242
- itemType: "ParameterType:string"
4202
+ itemType: "ParameterType:string",
4203
+ required: true,
4204
+ erased: true
4243
4205
  } },
4244
4206
  outputProperties: { attributeValues: { type: "ParameterType:object" } }
4245
4207
  };
@@ -4253,7 +4215,8 @@ function getControllerFromElement$1() {
4253
4215
  dependentProperties: ["selectedElement"],
4254
4216
  properties: { controllerName: {
4255
4217
  type: "ParameterType:controllerName",
4256
- required: true
4218
+ required: true,
4219
+ erased: true
4257
4220
  } },
4258
4221
  outputProperties: { controllerInstance: { type: "ParameterType:object" } }
4259
4222
  };
@@ -4275,7 +4238,8 @@ It assigns this instance to the \`controllerInstance\` property on the current o
4275
4238
  { value: "RoutingController" },
4276
4239
  { value: "SubtitlesController" }
4277
4240
  ],
4278
- required: true
4241
+ required: true,
4242
+ erased: true
4279
4243
  } },
4280
4244
  outputProperties: { controllerInstance: { type: "ParameterType:object" } }
4281
4245
  };
@@ -4299,7 +4263,10 @@ Where the ratio modifier is formatted in the following way:
4299
4263
  For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
4300
4264
  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.`,
4301
4265
  dependentProperties: ["selectedElement"],
4302
- properties: { modifier: { type: "ParameterType:dimensionsModifier" } },
4266
+ properties: { modifier: {
4267
+ type: "ParameterType:dimensionsModifier",
4268
+ erased: true
4269
+ } },
4303
4270
  outputProperties: { dimensions: { type: "ParameterType:object" } }
4304
4271
  };
4305
4272
  }
@@ -4312,7 +4279,8 @@ function getImport$1() {
4312
4279
  assigns it to the \`importedInstance\` property on the current operaton date.`,
4313
4280
  properties: { systemName: {
4314
4281
  type: "ParameterType:systemName",
4315
- required: true
4282
+ required: true,
4283
+ erased: true
4316
4284
  } },
4317
4285
  outputProperties: { importedInstance: { type: "ParameterType:object" } }
4318
4286
  };
@@ -4324,7 +4292,10 @@ function getQueryParams$1() {
4324
4292
  return {
4325
4293
  description: `This operation retrieves the current query parameters from the browser's address bar and places
4326
4294
  them on the returned operation data.`,
4327
- properties: { defaultValues: { type: "ParameterType:object" } },
4295
+ properties: { defaultValues: {
4296
+ type: "ParameterType:object",
4297
+ erased: true
4298
+ } },
4328
4299
  outputProperties: { queryParams: { type: "ParameterType:object" } }
4329
4300
  };
4330
4301
  }
@@ -4335,12 +4306,19 @@ function invokeObjectMethod$1() {
4335
4306
  return {
4336
4307
  description: `This operation invokes the specified method on the given object with the given optional arguments
4337
4308
  and assigns the result to the \`methodResult\` operationdata property.`,
4309
+ dependentProperties: ["instance"],
4338
4310
  properties: {
4339
- instance: { type: "ParameterType:object" },
4340
- methodName: { type: "ParameterType:string" },
4341
- methodArguments: { type: "ParameterType:array" },
4342
- methodResult: { type: "ParameterType:object" }
4343
- }
4311
+ methodName: {
4312
+ type: "ParameterType:string",
4313
+ required: true,
4314
+ erased: true
4315
+ },
4316
+ methodArguments: {
4317
+ type: "ParameterType:array",
4318
+ erased: true
4319
+ }
4320
+ },
4321
+ outputProperties: { methodResult: { type: "ParameterType:object" } }
4344
4322
  };
4345
4323
  }
4346
4324
 
@@ -4356,9 +4334,13 @@ instead of re-retrieving it from the url.`,
4356
4334
  properties: {
4357
4335
  url: {
4358
4336
  type: "ParameterType:string",
4359
- required: true
4337
+ required: true,
4338
+ erased: true
4360
4339
  },
4361
- cache: { type: "ParameterType:boolean" }
4340
+ cache: {
4341
+ type: "ParameterType:boolean",
4342
+ erased: true
4343
+ }
4362
4344
  },
4363
4345
  outputProperties: { json: { type: "ParameterType:object" } }
4364
4346
  };
@@ -4367,7 +4349,14 @@ instead of re-retrieving it from the url.`,
4367
4349
  //#endregion
4368
4350
  //#region src/operation/metadata/log.ts
4369
4351
  function log$1() {
4370
- return { description: `This operation logs the current operation data, global data and context to the console.` };
4352
+ return {
4353
+ description: `This operation logs the specified value, or, when no logValue property has been assigned
4354
+ it will log the current operation data, global data and scope to the console`,
4355
+ properties: { logValue: {
4356
+ type: "ParameterType:object",
4357
+ erased: true
4358
+ } }
4359
+ };
4371
4360
  }
4372
4361
 
4373
4362
  //#endregion
@@ -4378,48 +4367,13 @@ function math$1() {
4378
4367
  properties: {
4379
4368
  args: {
4380
4369
  type: "ParameterType:array",
4381
- required: true
4370
+ required: true,
4371
+ erased: true
4382
4372
  },
4383
4373
  functionName: {
4384
- type: [
4385
- { value: "abs" },
4386
- { value: "acos" },
4387
- { value: "asin" },
4388
- { value: "atan" },
4389
- { value: "atan2" },
4390
- { value: "ceil" },
4391
- { value: "cos" },
4392
- { value: "exp" },
4393
- { value: "floor" },
4394
- { value: "log" },
4395
- { value: "max" },
4396
- { value: "min" },
4397
- { value: "pow" },
4398
- { value: "random" },
4399
- { value: "round" },
4400
- { value: "sin" },
4401
- { value: "sqrt" },
4402
- { value: "tan" },
4403
- { value: "clz32" },
4404
- { value: "imul" },
4405
- { value: "sign" },
4406
- { value: "log10" },
4407
- { value: "log2" },
4408
- { value: "log1p" },
4409
- { value: "expm1" },
4410
- { value: "cosh" },
4411
- { value: "sinh" },
4412
- { value: "tanh" },
4413
- { value: "acosh" },
4414
- { value: "asinh" },
4415
- { value: "atanh" },
4416
- { value: "hypot" },
4417
- { value: "trunc" },
4418
- { value: "fround" },
4419
- { value: "cbrt" },
4420
- { value: "f16round" }
4421
- ],
4422
- required: true
4374
+ type: "ParameterType:mathfunction",
4375
+ required: true,
4376
+ erased: true
4423
4377
  }
4424
4378
  },
4425
4379
  outputProperties: { mathResult: { type: "ParameterType:number" } }
@@ -4441,7 +4395,8 @@ function removeClass$1() {
4441
4395
  dependentProperties: ["selectedElement"],
4442
4396
  properties: { className: {
4443
4397
  type: "ParameterType:className",
4444
- required: true
4398
+ required: true,
4399
+ erased: true
4445
4400
  } }
4446
4401
  };
4447
4402
  }
@@ -4452,7 +4407,11 @@ function removeControllerFromElement$1() {
4452
4407
  return {
4453
4408
  description: `This operation removes the controller with the specified name from the given selected element.`,
4454
4409
  dependentProperties: ["selectedElement"],
4455
- properties: { controllerName: { type: "ParameterType:controllerName" } }
4410
+ properties: { controllerName: {
4411
+ type: "ParameterType:controllerName",
4412
+ required: true,
4413
+ erased: true
4414
+ } }
4456
4415
  };
4457
4416
  }
4458
4417
 
@@ -4474,7 +4433,8 @@ It will also remove the property \`propertyNames\` from the result.`,
4474
4433
  properties: { propertyNames: {
4475
4434
  type: "ParameterType:array",
4476
4435
  itemType: "ParameterType:string",
4477
- required: true
4436
+ required: true,
4437
+ erased: true
4478
4438
  } }
4479
4439
  };
4480
4440
  }
@@ -4488,7 +4448,8 @@ by the specified \`newParentSelector\`.`,
4488
4448
  dependentProperties: ["selectedElement"],
4489
4449
  properties: { newParentSelector: {
4490
4450
  type: "ParameterType:selector",
4491
- required: true
4451
+ required: true,
4452
+ erased: true
4492
4453
  } }
4493
4454
  };
4494
4455
  }
@@ -4501,22 +4462,13 @@ function requestAction$1() {
4501
4462
  to the \`actionInstance\` property on the current operation data.`,
4502
4463
  properties: { systemName: {
4503
4464
  type: "ParameterType:actionName",
4504
- required: true
4465
+ required: true,
4466
+ erased: true
4505
4467
  } },
4506
4468
  outputProperties: { actionInstance: { type: "ParameterType:object" } }
4507
4469
  };
4508
4470
  }
4509
4471
 
4510
- //#endregion
4511
- //#region src/operation/metadata/resize-action.ts
4512
- function resizeAction$1() {
4513
- return {
4514
- description: ``,
4515
- dependentProperties: ["actionInstance"],
4516
- properties: { actionOperationData: { type: "ParameterType:object" } }
4517
- };
4518
- }
4519
-
4520
4472
  //#endregion
4521
4473
  //#region src/operation/metadata/select-element.ts
4522
4474
  function selectElement$1() {
@@ -4529,9 +4481,13 @@ then the element will be looked for only in the descendant elements of this DOM
4529
4481
  properties: {
4530
4482
  selector: {
4531
4483
  type: "ParameterType:selector",
4532
- required: true
4484
+ required: true,
4485
+ erased: true
4533
4486
  },
4534
- useSelectedElementAsRoot: { type: "ParameterType:boolean" }
4487
+ useSelectedElementAsRoot: {
4488
+ type: "ParameterType:boolean",
4489
+ erased: true
4490
+ }
4535
4491
  },
4536
4492
  outputProperties: { selectedElement: { type: "ParameterType:object" } }
4537
4493
  };
@@ -4544,7 +4500,8 @@ function setData$1() {
4544
4500
  description: `This operation assigns the specified properties to the specified data targets.`,
4545
4501
  properties: { properties: {
4546
4502
  type: "ParameterType:object",
4547
- required: true
4503
+ required: true,
4504
+ erased: true
4548
4505
  } }
4549
4506
  };
4550
4507
  }
@@ -4557,7 +4514,8 @@ function setElementAttributes$1() {
4557
4514
  dependentProperties: ["selectedElement"],
4558
4515
  properties: { attributes: {
4559
4516
  type: "ParameterType:object",
4560
- required: true
4517
+ required: true,
4518
+ erased: true
4561
4519
  } }
4562
4520
  };
4563
4521
  }
@@ -4573,12 +4531,28 @@ When the \`insertionType\` is set to \`overwrite\` the contents of the selected
4573
4531
  by the given template.
4574
4532
  When set to \`append\` the new content will be inserted after the current content.
4575
4533
  When set to \`prepend\` the new content will be inserted before the current content.`,
4576
- dependentProperties: ["selectedElement", "template"],
4577
- properties: { insertionType: { type: [
4578
- { value: "overwrite" },
4579
- { value: "append" },
4580
- { value: "prepend" }
4581
- ] } }
4534
+ dependentProperties: ["selectedElement"],
4535
+ properties: {
4536
+ template: {
4537
+ type: [
4538
+ { value: "string" },
4539
+ { value: "Element" },
4540
+ { value: "Text" },
4541
+ { value: "Comment" },
4542
+ { value: "Document" },
4543
+ { value: "DocumentFragment" }
4544
+ ],
4545
+ erased: true
4546
+ },
4547
+ insertionType: {
4548
+ type: [
4549
+ { value: "overwrite" },
4550
+ { value: "append" },
4551
+ { value: "prepend" }
4552
+ ],
4553
+ erased: true
4554
+ }
4555
+ }
4582
4556
  };
4583
4557
  }
4584
4558
 
@@ -4590,7 +4564,8 @@ function setGlobalData$1() {
4590
4564
  properties: { propertyNames: {
4591
4565
  type: "ParameterType:array",
4592
4566
  itemType: "ParameterType:string",
4593
- required: true
4567
+ required: true,
4568
+ erased: true
4594
4569
  } }
4595
4570
  };
4596
4571
  }
@@ -4602,10 +4577,14 @@ function setOperationData$1() {
4602
4577
  description: `This operation assigns the specified properties to the current operation data.
4603
4578
  When override is set to true the properties replace the current operation data entirely.`,
4604
4579
  properties: {
4605
- override: { type: "ParameterType:boolean" },
4580
+ override: {
4581
+ type: "ParameterType:boolean",
4582
+ erased: true
4583
+ },
4606
4584
  properties: {
4607
4585
  type: "ParameterType:object",
4608
- required: true
4586
+ required: true,
4587
+ erased: true
4609
4588
  }
4610
4589
  }
4611
4590
  };
@@ -4620,7 +4599,8 @@ given selected element.`,
4620
4599
  dependentProperties: ["selectedElement"],
4621
4600
  properties: { properties: {
4622
4601
  type: "ParameterType:object",
4623
- required: true
4602
+ required: true,
4603
+ erased: true
4624
4604
  } }
4625
4605
  };
4626
4606
  }
@@ -4629,15 +4609,17 @@ given selected element.`,
4629
4609
  //#region src/operation/metadata/set-variable.ts
4630
4610
  function setVariable$1() {
4631
4611
  return {
4632
- description: `This operation sets a variable with the specified name on the context with the specified value.`,
4612
+ description: `This operation sets a variable with the specified name on the scope with the specified value.`,
4633
4613
  properties: {
4634
4614
  name: {
4635
4615
  type: "ParameterType:string",
4636
- required: true
4616
+ required: true,
4617
+ erased: true
4637
4618
  },
4638
4619
  value: {
4639
4620
  type: "ParameterType:object",
4640
- required: true
4621
+ required: true,
4622
+ erased: true
4641
4623
  }
4642
4624
  }
4643
4625
  };
@@ -4653,7 +4635,10 @@ The action operation data is first merged with the current operation data before
4653
4635
  passed on to the action. After the action has completed the action operation data properties
4654
4636
  are removed from the current operation data.`,
4655
4637
  dependentProperties: ["actionInstance"],
4656
- properties: { actionOperationData: { type: "ParameterType:object" } }
4638
+ properties: { actionOperationData: {
4639
+ type: "ParameterType:object",
4640
+ erased: true
4641
+ } }
4657
4642
  };
4658
4643
  }
4659
4644
 
@@ -4668,7 +4653,8 @@ otherwise it will be added.`,
4668
4653
  dependentProperties: ["selectedElement"],
4669
4654
  properties: { className: {
4670
4655
  type: "ParameterType:className",
4671
- required: true
4656
+ required: true,
4657
+ erased: true
4672
4658
  } }
4673
4659
  };
4674
4660
  }
@@ -4692,7 +4678,8 @@ function wait$1() {
4692
4678
  description: `This operation waits for the specified amount of milliseconds.`,
4693
4679
  properties: { milliseconds: {
4694
4680
  type: "ParameterType:number",
4695
- required: true
4681
+ required: true,
4682
+ erased: true
4696
4683
  } }
4697
4684
  };
4698
4685
  }
@@ -4713,10 +4700,11 @@ The left and right values of the expression can be defined like this:
4713
4700
  100: for a constant number
4714
4701
  operationData.foo: for an operation data value
4715
4702
  globaldata.foo: for a global data value
4716
- context.loopIndex: for a context value`,
4703
+ scope.loopIndex: for a scope value`,
4717
4704
  properties: { expression: {
4718
4705
  type: "ParameterType:expression",
4719
- required: true
4706
+ required: true,
4707
+ erased: true
4720
4708
  } }
4721
4709
  };
4722
4710
  }
@@ -4726,7 +4714,7 @@ context.loopIndex: for a context value`,
4726
4714
  var metadata_exports = /* @__PURE__ */ __export({
4727
4715
  addClass: () => addClass$1,
4728
4716
  addControllerToElement: () => addControllerToElement$1,
4729
- addGlobalsToOperation: () => addGlobalsToOperation,
4717
+ addGlobalsToOperation: () => addGlobalsToOperation$1,
4730
4718
  animate: () => animate$1,
4731
4719
  animateWithClass: () => animateWithClass$1,
4732
4720
  broadcastEvent: () => broadcastEvent$1,
@@ -4757,7 +4745,6 @@ var metadata_exports = /* @__PURE__ */ __export({
4757
4745
  removePropertiesFromOperationData: () => removePropertiesFromOperationData$1,
4758
4746
  reparentElement: () => reparentElement$1,
4759
4747
  requestAction: () => requestAction$1,
4760
- resizeAction: () => resizeAction$1,
4761
4748
  selectElement: () => selectElement$1,
4762
4749
  setData: () => setData$1,
4763
4750
  setElementAttributes: () => setElementAttributes$1,
@@ -5768,5 +5755,5 @@ var EligiusResourceImporter = class {
5768
5755
  };
5769
5756
 
5770
5757
  //#endregion
5771
- 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, animate, animateWithClass, broadcastEvent, calc, clearElement, clearOperationData, 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, resizeAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
5758
+ 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, broadcastEvent, calc, clearElement, clearOperationData, 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 };
5772
5759
  //# sourceMappingURL=index.js.map