eligius 1.1.6 → 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
@@ -114,6 +114,14 @@ function findMatchingOperationIndex(operation) {
114
114
  return false;
115
115
  }
116
116
 
117
+ //#endregion
118
+ //#region src/operation/helper/get-scope-var.ts
119
+ const getScopeVar = (variables, identifier) => {
120
+ const name = identifier.substring(1);
121
+ return variables ? variables[name] : void 0;
122
+ };
123
+ const isVariableName = (value) => value.startsWith("@");
124
+
117
125
  //#endregion
118
126
  //#region src/operation/helper/get-property-chain-value.ts
119
127
  /**
@@ -186,20 +194,20 @@ const clearGlobals = _clearGlobals.bind(null, cache$1);
186
194
  *
187
195
  * If the propertyChainOrRegularObject is not a property chain, this value is returned instead.
188
196
  */
189
- function resolveExternalPropertyChain(sourceObject, operationContext, propertyChainOrRegularObject) {
197
+ function resolveExternalPropertyChain(sourceObject, operationScope, propertyChainOrRegularObject) {
190
198
  if (propertyChainOrRegularObject === null || propertyChainOrRegularObject === void 0) return null;
191
199
  if (isExternalProperty(propertyChainOrRegularObject)) {
192
200
  const propNames = propertyChainOrRegularObject.split(".");
193
201
  switch (propNames.shift().toLowerCase()) {
194
202
  case "operationdata": return getPropertyChainValue(propNames, sourceObject);
195
203
  case "globaldata": return getPropertyChainValue(propNames, getGlobals());
196
- case "context": return getPropertyChainValue(propNames, operationContext);
204
+ case "scope": return getPropertyChainValue(propNames, operationScope);
197
205
  }
198
206
  }
199
207
  return propertyChainOrRegularObject;
200
208
  }
201
209
  function isExternalProperty(value) {
202
- 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("@"));
203
211
  }
204
212
 
205
213
  //#endregion
@@ -208,14 +216,14 @@ function isExternalProperty(value) {
208
216
  * This operation iterates over the given collection.
209
217
  *
210
218
  * Each iteration the current item from the specified collection is
211
- * assigned to the {@link IOperationContext.currentItem} property on the operation context.
219
+ * assigned to the {@link IOperationScope.currentItem} property on the operation scope.
212
220
  *
213
221
  * At the start of the loop, the associated {@link endForEach} operation is determined and when
214
222
  * the last iteration is completed the flow control is set to the index of that operation.
215
223
  */
216
224
  const forEach = function(operationData) {
217
225
  const { collection } = operationData;
218
- const resolvedCollection = typeof collection === "string" ? resolveExternalPropertyChain(operationData, this, collection) : collection;
226
+ const resolvedCollection = typeof collection === "string" ? isVariableName(collection) ? getScopeVar(this.variables, collection) : resolveExternalPropertyChain(operationData, this, collection) : collection;
219
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");
220
228
  if (this.loopIndex === void 0) {
221
229
  this.loopEndIndex = findEndForEachIndex(this);
@@ -234,14 +242,14 @@ const forEach = function(operationData) {
234
242
  if (resolvedCollection?.length && this.loopIndex !== void 0) this.currentItem = resolvedCollection[this.loopIndex];
235
243
  return operationData;
236
244
  };
237
- function findEndForEachIndex(context) {
238
- const currentIndex = context.currentIndex + 1;
239
- 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({
240
248
  counter: 0,
241
249
  self: forEachSystemName,
242
250
  matchingName: endForEachSystemName
243
251
  }));
244
- return index > -1 ? index + currentIndex : context.operations.length;
252
+ return index > -1 ? index + currentIndex : scope.operations.length;
245
253
  }
246
254
  const forEachSystemName = "forEach";
247
255
  const endForEachSystemName = "endForEach";
@@ -253,26 +261,44 @@ const endForEachSystemName = "endForEach";
253
261
  * until an {@link endWhen} or {@link otherwise} operation is encountered.
254
262
  *
255
263
  * Practically, this means an `if` or `if`/`else` statement control flow implementation in a list of operations.
264
+ *
265
+ * The expression is passed in as a formatted string.
266
+ * The left and right values of the expression can be defined like this:
267
+ *
268
+ * 'constant': for a constant string
269
+ * 100: for a constant number
270
+ * operationData.foo: for an operation data value
271
+ * globaldata.foo: for a global data value
272
+ * scope.loopIndex: for a scope value
273
+ * @foo: for a variable value
274
+ *
275
+ * @example
276
+ * @foo=='bar'
277
+ * @example
278
+ * globalData.foo>@bar
279
+ * @example
280
+ * operationData.foo!=100
256
281
  *
257
282
  * @param operationData
258
283
  * @returns
259
284
  */
260
285
  const when = function(operationData) {
261
286
  const [left, operator, right] = parseExpression(operationData.expression, operationData, this);
287
+ delete operationData.expression;
262
288
  this.whenEvaluation = evaluations[operator](left, right);
263
289
  if (!this.whenEvaluation) this.newIndex = findNextFlowControlIndex(this);
264
290
  delete operationData.expression;
265
291
  return operationData;
266
292
  };
267
- function parseExpression(expression, operationData, operationContext) {
293
+ function parseExpression(expression, operationData, operationScope) {
268
294
  const [left, right] = expression.split(/!=|==|>=|<=|>|</);
269
295
  const operator = expression.substring(left.length, expression.length - right.length);
270
- const leftNr = parseInt(left);
271
- const rightNr = parseInt(right);
296
+ const leftNr = parseFloat(left);
297
+ const rightNr = parseFloat(right);
272
298
  return [
273
- isNaN(leftNr) ? resolveExternalPropertyChain(operationData, operationContext, left) : leftNr,
299
+ Number.isNaN(leftNr) ? isVariableName(left) ? getScopeVar(operationScope.variables, left) : resolveExternalPropertyChain(operationData, operationScope, left) : leftNr,
274
300
  operator,
275
- isNaN(rightNr) ? resolveExternalPropertyChain(operationData, operationContext, right) : rightNr
301
+ Number.isNaN(rightNr) ? isVariableName(right) ? getScopeVar(operationScope.variables, right) : resolveExternalPropertyChain(operationData, operationScope, right) : rightNr
276
302
  ];
277
303
  }
278
304
  const evaluations = {
@@ -283,9 +309,9 @@ const evaluations = {
283
309
  ">": (left, right) => left > right,
284
310
  "<": (left, right) => left < right
285
311
  };
286
- function findNextFlowControlIndex(context) {
287
- const currentIndex = context.currentIndex + 1;
288
- const list = context.operations.slice(currentIndex);
312
+ function findNextFlowControlIndex(scope) {
313
+ const currentIndex = scope.currentIndex + 1;
314
+ const list = scope.operations.slice(currentIndex);
289
315
  const otherWiseIndex = list.findIndex(findMatchingOperationIndex.bind({
290
316
  counter: 0,
291
317
  self: whenSystemName,
@@ -297,7 +323,7 @@ function findNextFlowControlIndex(context) {
297
323
  self: whenSystemName,
298
324
  matchingName: endWhenSystemName
299
325
  }));
300
- return endWhenIndex > -1 ? endWhenIndex + currentIndex : context.operations.length;
326
+ return endWhenIndex > -1 ? endWhenIndex + currentIndex : scope.operations.length;
301
327
  }
302
328
  const whenSystemName = "when";
303
329
  const otherwiseSystemName = "otherwise";
@@ -313,7 +339,7 @@ function isPromise(obj) {
313
339
  //#region src/action/action.ts
314
340
  var Action = class {
315
341
  id = "";
316
- _contextStack = [];
342
+ _scopeStack = [];
317
343
  constructor(name, startOperations, eventbus$1) {
318
344
  this.name = name;
319
345
  this.startOperations = startOperations;
@@ -321,7 +347,7 @@ var Action = class {
321
347
  }
322
348
  start(initOperationData) {
323
349
  Diagnostics.active && Diagnostics.send("eligius-diagnostics-action", `${this.name ?? "Action"} begins executing start operations`);
324
- this._initializeContextStack();
350
+ this._initializeScopeStack();
325
351
  const result = new Promise((resolve, reject) => {
326
352
  this.executeOperation(this.startOperations, 0, resolve, reject, initOperationData);
327
353
  }).catch((e) => {
@@ -338,61 +364,61 @@ var Action = class {
338
364
  return operationsResult;
339
365
  });
340
366
  }
341
- _initializeContextStack() {
342
- this._contextStack = [{
367
+ _initializeScopeStack() {
368
+ this._scopeStack = [{
343
369
  currentIndex: -1,
344
370
  eventbus: this.eventbus,
345
371
  operations: this.startOperations
346
372
  }];
347
373
  }
348
- _pushContext(parentContext) {
349
- const newContext = {
374
+ _pushScope(parentScope) {
375
+ const newScope = {
350
376
  get currentIndex() {
351
- return parentContext.currentIndex;
377
+ return parentScope.currentIndex;
352
378
  },
353
379
  set currentIndex(value) {
354
- parentContext.currentIndex = value;
380
+ parentScope.currentIndex = value;
355
381
  },
356
382
  get eventbus() {
357
- return parentContext.eventbus;
383
+ return parentScope.eventbus;
358
384
  },
359
385
  get operations() {
360
- return parentContext.operations;
386
+ return parentScope.operations;
361
387
  },
362
- parent: parentContext
388
+ parent: parentScope
363
389
  };
364
- this._contextStack.push(newContext);
365
- return newContext;
390
+ this._scopeStack.push(newScope);
391
+ return newScope;
366
392
  }
367
- _popContext() {
368
- this._contextStack.pop();
393
+ _popScope() {
394
+ this._scopeStack.pop();
369
395
  }
370
396
  executeOperation(operations$1, operationIndex, resolve, reject, previousOperationData = {}) {
371
- let context = this._contextStack[this._contextStack.length - 1];
372
- if (context.newIndex !== void 0) {
373
- operationIndex = context.newIndex;
374
- 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;
375
401
  }
376
- context.currentIndex = operationIndex;
402
+ scope.currentIndex = operationIndex;
377
403
  if (operationIndex < operations$1.length) {
378
404
  const operationInfo = operations$1[operationIndex];
379
405
  const copy = deepCopy(operationInfo.operationData ?? {});
380
406
  const mergedOperationData = Object.assign(previousOperationData, copy);
381
- if (operationInfo.systemName === whenSystemName) context = this._pushContext(context);
382
- else if (operationInfo.systemName === forEachSystemName && context.owner !== operationInfo) {
383
- context = this._pushContext(context);
384
- 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;
385
411
  }
386
412
  Diagnostics.active && Diagnostics.send("eligius-diagnostics-operation", {
387
413
  systemName: operationInfo.systemName,
388
414
  operationData: mergedOperationData,
389
- context: {
390
- ...context,
415
+ scope: {
416
+ ...scope,
391
417
  eventbus: void 0
392
418
  }
393
419
  });
394
- const operationResult = operationInfo.instance.call(context, mergedOperationData);
395
- 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();
396
422
  if (isPromise(operationResult)) operationResult.then((promisedOperationResult) => this.executeOperation(operations$1, ++operationIndex, resolve, reject, promisedOperationResult)).catch((error) => {
397
423
  reject(error);
398
424
  });
@@ -411,7 +437,7 @@ var EndableAction = class extends Action {
411
437
  end(initOperationData) {
412
438
  Diagnostics.active && Diagnostics.send("eligius-diagnostics-action", `${this.name ?? "Action"} begins executing end operations`);
413
439
  if (!this.endOperations.length) return Promise.resolve(initOperationData ?? {});
414
- this._initializeContextStack();
440
+ this._initializeScopeStack();
415
441
  const result = new Promise((resolve, reject) => {
416
442
  this.executeOperation(this.endOperations, 0, resolve, reject, initOperationData);
417
443
  }).catch((e) => {
@@ -584,6 +610,7 @@ function _deduplicate(importPaths) {
584
610
  */
585
611
  const addClass = (operationData) => {
586
612
  const { selectedElement, className } = operationData;
613
+ delete operationData.className;
587
614
  selectedElement.addClass(className);
588
615
  return operationData;
589
616
  };
@@ -639,6 +666,22 @@ const addControllerToElement = function(operationData) {
639
666
  else return operationData;
640
667
  };
641
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
+
642
685
  //#endregion
643
686
  //#region src/operation/animate.ts
644
687
  /**
@@ -649,7 +692,10 @@ const addControllerToElement = function(operationData) {
649
692
  * @returns
650
693
  */
651
694
  const animate = (operationData) => {
652
- 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;
653
699
  return new Promise((resolve, reject) => {
654
700
  try {
655
701
  if (animationEasing) selectedElement.animate(animationProperties, animationDuration, animationEasing, () => {
@@ -688,19 +734,11 @@ const animateWithClass = (operationData) => {
688
734
  return promise;
689
735
  };
690
736
 
691
- //#endregion
692
- //#region src/operation/helper/remove-event-data-from-operation-data.ts
693
- function removeEventDataFromOperationData(operationData) {
694
- delete operationData.eventName;
695
- delete operationData.eventTopic;
696
- delete operationData.eventArgs;
697
- }
698
-
699
737
  //#endregion
700
738
  //#region src/operation/helper/resolve-event-arguments.ts
701
- function resolveEventArguments(operationData, operationContext, eventArgs) {
739
+ function resolveEventArguments(operationData, operationScope, eventArgs) {
702
740
  if (!eventArgs) return;
703
- const resolve = resolveExternalPropertyChain.bind(null, operationData, operationContext);
741
+ const resolve = resolveExternalPropertyChain.bind(null, operationData, operationScope);
704
742
  return eventArgs.map(resolve);
705
743
  }
706
744
 
@@ -708,14 +746,16 @@ function resolveEventArguments(operationData, operationContext, eventArgs) {
708
746
  //#region src/operation/broadcast-event.ts
709
747
  /**
710
748
  * This operation broadcasts the given event through the eventbus, along with the
711
- * event argumetns and optional event topic.
749
+ * event arguments and optional event topic.
712
750
  */
713
751
  const broadcastEvent = function(operationData) {
714
752
  const { eventArgs, eventTopic, eventName } = operationData;
753
+ delete operationData.eventArgs;
754
+ delete operationData.eventTopic;
755
+ delete operationData.eventName;
715
756
  const eventArguments = resolveEventArguments(operationData, this, eventArgs);
716
757
  if (eventTopic) this.eventbus.broadcastForTopic(eventName, eventTopic, eventArguments);
717
758
  else this.eventbus.broadcast(eventName, eventArguments);
718
- removeEventDataFromOperationData(operationData);
719
759
  return operationData;
720
760
  };
721
761
 
@@ -726,9 +766,9 @@ const cache = [];
726
766
  * This takes a `newProperties` instance, resolves all of the properties on this object and then
727
767
  * assigns these properties to the given operationData.
728
768
  */
729
- function resolvePropertyValues(operationData, operationContext, newProperties) {
769
+ function resolvePropertyValues(operationData, operationScope, newProperties) {
730
770
  const copy = newProperties !== operationData ? deepCopy(newProperties) : newProperties;
731
- const resolvePropertyChain$1 = resolveExternalPropertyChain.bind(null, operationData, operationContext);
771
+ const resolvePropertyChain$1 = resolveExternalPropertyChain.bind(null, operationData, operationScope);
732
772
  resolveNewProperties(newProperties, copy, resolvePropertyChain$1);
733
773
  return copy;
734
774
  }
@@ -770,6 +810,9 @@ const calcFunctions = {
770
810
  const calc = function(operationData) {
771
811
  operationData = resolvePropertyValues(operationData, this, operationData);
772
812
  const { left, right, operator } = operationData;
813
+ delete operationData.left;
814
+ delete operationData.right;
815
+ delete operationData.operator;
773
816
  operationData.calculationResult = calcFunctions[operator](+left, +right);
774
817
  return operationData;
775
818
  };
@@ -817,6 +860,9 @@ const clearOperationData = (operationData) => {
817
860
  const createElement = function(operationData) {
818
861
  operationData = resolvePropertyValues(operationData, this, operationData);
819
862
  const { elementName, attributes, text } = operationData;
863
+ delete operationData.elementName;
864
+ delete operationData.attributes;
865
+ delete operationData.text;
820
866
  const serializedAttrs = attributes ? ` ${Object.entries(attributes).filter(([_, value]) => Boolean(value)).map(([key, value]) => `${key}="${value}"`).join(" ")}` : "";
821
867
  operationData.template = text ? $(`<${elementName}${serializedAttrs}>${text}</${elementName}>`) : $(`<${elementName}${serializedAttrs}/>`);
822
868
  return operationData;
@@ -917,6 +963,7 @@ var TimelineEventNames = class {
917
963
  */
918
964
  const customFunction = function(operationData) {
919
965
  const { systemName } = operationData;
966
+ delete operationData.systemName;
920
967
  return new Promise((resolve, reject) => {
921
968
  const resultCallback = (func) => {
922
969
  const promise = func.apply(this, [operationData]);
@@ -943,10 +990,11 @@ const endAction = (operationData) => {
943
990
  return new Promise((resolve, reject) => {
944
991
  newOperationData = mergeOperationData(newOperationData, actionOperationData);
945
992
  newOperationData.actionInstance.end(newOperationData).then(() => {
946
- Object.keys(actionOperationData).forEach((key) => {
947
- delete newOperationData[key];
948
- });
949
- 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);
950
998
  }, reject);
951
999
  });
952
1000
  };
@@ -982,6 +1030,7 @@ const endWhen = function(operationData) {
982
1030
  */
983
1031
  const extendController = (operationData) => {
984
1032
  const { controllerInstance, controllerExtension } = operationData;
1033
+ delete operationData.controllerExtension;
985
1034
  operationData.controllerInstance = Object.assign(controllerInstance, controllerExtension);
986
1035
  return operationData;
987
1036
  };
@@ -989,13 +1038,14 @@ const extendController = (operationData) => {
989
1038
  //#endregion
990
1039
  //#region src/operation/get-attributes-from-element.ts
991
1040
  /**
992
- * 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.
993
1042
  */
994
1043
  const getAttributesFromElement = (operationData) => {
995
1044
  const { selectedElement, attributeNames } = operationData;
1045
+ delete operationData.attributeNames;
996
1046
  operationData.attributeValues = attributeNames.reduce((acc, attrName) => {
997
- if (attrName !== "value") acc[attrName] = selectedElement?.attr(attrName);
998
- else acc[attrName] = selectedElement?.val();
1047
+ if (attrName !== "value") acc[attrName] = selectedElement.attr(attrName);
1048
+ else acc[attrName] = selectedElement.val();
999
1049
  return acc;
1000
1050
  }, {});
1001
1051
  return operationData;
@@ -1011,9 +1061,8 @@ const getAttributesFromElement = (operationData) => {
1011
1061
  */
1012
1062
  const getControllerFromElement = (operationData) => {
1013
1063
  const { selectedElement, controllerName } = operationData;
1014
- const controller = getElementControllers(selectedElement)?.find((ctrl) => {
1015
- return ctrl.name === controllerName;
1016
- });
1064
+ delete operationData.controllerName;
1065
+ const controller = getElementControllers(selectedElement)?.find((ctrl) => ctrl.name === controllerName);
1017
1066
  if (!controller) console.warn(`controller for name '${controllerName}' was not found on the given element`);
1018
1067
  operationData.controllerInstance = controller;
1019
1068
  return operationData;
@@ -1027,6 +1076,7 @@ const getControllerFromElement = (operationData) => {
1027
1076
  */
1028
1077
  const getControllerInstance = function(operationData) {
1029
1078
  const { systemName } = operationData;
1079
+ delete operationData.systemName;
1030
1080
  operationData.controllerInstance = void 0;
1031
1081
  const resultCallback = (instance) => {
1032
1082
  operationData.controllerInstance = instance;
@@ -1173,6 +1223,7 @@ function modifyDimensions(dimensions, modifier) {
1173
1223
  */
1174
1224
  const getElementDimensions = (operationData) => {
1175
1225
  const { selectedElement, modifier } = operationData;
1226
+ delete operationData.modifier;
1176
1227
  let dimensions = {
1177
1228
  width: selectedElement.innerWidth() ?? 0,
1178
1229
  height: selectedElement.innerHeight() ?? 0
@@ -1194,6 +1245,7 @@ const getElementDimensions = (operationData) => {
1194
1245
  */
1195
1246
  const getImport = function(operationData) {
1196
1247
  const { systemName } = operationData;
1248
+ delete operationData.systemName;
1197
1249
  const callBack = (instance) => {
1198
1250
  operationData.importedInstance = instance;
1199
1251
  };
@@ -1213,6 +1265,7 @@ const getQueryParams = (operationData) => {
1213
1265
  const queryParams = Object.fromEntries(searchParams.entries());
1214
1266
  const { defaultValues = {} } = operationData;
1215
1267
  delete operationData.defaultValues;
1268
+ delete operationData.defaultValues;
1216
1269
  operationData.queryParams = {
1217
1270
  ...defaultValues,
1218
1271
  ...queryParams
@@ -1231,6 +1284,8 @@ const getQueryParams = (operationData) => {
1231
1284
  */
1232
1285
  const invokeObjectMethod = (operationData) => {
1233
1286
  const { methodName, methodArguments,...newOperationData } = operationData;
1287
+ delete operationData.methodName;
1288
+ delete operationData.methodArguments;
1234
1289
  const func = operationData.instance[methodName];
1235
1290
  if (typeof func === "function") newOperationData.methodResult = func.apply(operationData.instance, methodArguments ?? []);
1236
1291
  else console.error(`The given member name ${methodName} is not a function`);
@@ -1252,6 +1307,8 @@ const addToCache = (key, value) => {
1252
1307
  */
1253
1308
  const loadJson = async (operationData) => {
1254
1309
  const { url, cache: cache$2 } = operationData;
1310
+ delete operationData.url;
1311
+ delete operationData.cache;
1255
1312
  if (cache$2 && jsonCache[url]) {
1256
1313
  operationData.json = jsonCache[url];
1257
1314
  return operationData;
@@ -1264,15 +1321,21 @@ const loadJson = async (operationData) => {
1264
1321
  //#endregion
1265
1322
  //#region src/operation/log.ts
1266
1323
  /**
1267
- * 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
1268
1326
  */
1269
1327
  const log = function(operationData) {
1270
- const globalData = getGlobals();
1271
- console.group("Operation info");
1272
- console.log("context", this);
1273
- console.log("operationData", operationData);
1274
- console.log("globalData", globalData);
1275
- 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
+ }
1276
1339
  return operationData;
1277
1340
  };
1278
1341
 
@@ -1314,14 +1377,14 @@ const otherwise = function(operationData) {
1314
1377
  if (this.whenEvaluation) this.newIndex = findEndWhenIndex(this);
1315
1378
  return operationData;
1316
1379
  };
1317
- function findEndWhenIndex(context) {
1318
- const currentIndex = context.currentIndex + 1;
1319
- 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({
1320
1383
  counter: 0,
1321
1384
  self: "when",
1322
1385
  matchingName: "endWhen"
1323
1386
  }));
1324
- return endWhenIndex > -1 ? endWhenIndex + currentIndex : context.operations.length;
1387
+ return endWhenIndex > -1 ? endWhenIndex + currentIndex : scope.operations.length;
1325
1388
  }
1326
1389
 
1327
1390
  //#endregion
@@ -1334,6 +1397,7 @@ function findEndWhenIndex(context) {
1334
1397
  */
1335
1398
  const removeClass = (operationData) => {
1336
1399
  const { selectedElement, className } = operationData;
1400
+ delete operationData.className;
1337
1401
  selectedElement.removeClass(className);
1338
1402
  return operationData;
1339
1403
  };
@@ -1348,6 +1412,7 @@ const removeClass = (operationData) => {
1348
1412
  */
1349
1413
  const removeControllerFromElement = function(operationData) {
1350
1414
  const { selectedElement, controllerName } = operationData;
1415
+ delete controllerName.controllerName;
1351
1416
  const controllers$1 = getElementControllers(selectedElement);
1352
1417
  const controller = controllers$1?.find((ctrl) => ctrl.name === controllerName);
1353
1418
  if (controller && controllers$1) {
@@ -1362,9 +1427,6 @@ const removeControllerFromElement = function(operationData) {
1362
1427
  //#region src/operation/remove-element.ts
1363
1428
  /**
1364
1429
  * This operation removes the given selected element from the DOM.
1365
- *
1366
- * @param operationData
1367
- * @returns
1368
1430
  */
1369
1431
  const removeElement = (operationData) => {
1370
1432
  const { selectedElement } = operationData;
@@ -1395,6 +1457,7 @@ const removePropertiesFromOperationData = (operationData) => {
1395
1457
  */
1396
1458
  const reparentElement = (operationData) => {
1397
1459
  const { selectedElement, newParentSelector } = operationData;
1460
+ delete operationData.newParentSelector;
1398
1461
  selectedElement.remove().appendTo(newParentSelector);
1399
1462
  return operationData;
1400
1463
  };
@@ -1407,6 +1470,7 @@ const reparentElement = (operationData) => {
1407
1470
  */
1408
1471
  const requestAction = function(operationData) {
1409
1472
  const { systemName } = operationData;
1473
+ delete operationData.systemName;
1410
1474
  const resultCallback = (action) => {
1411
1475
  operationData.actionInstance = action;
1412
1476
  };
@@ -1414,18 +1478,6 @@ const requestAction = function(operationData) {
1414
1478
  return operationData;
1415
1479
  };
1416
1480
 
1417
- //#endregion
1418
- //#region src/operation/resize-action.ts
1419
- /**
1420
- * @deprecated
1421
- */
1422
- const resizeAction = (operationData) => {
1423
- const { actionInstance, actionOperationData } = operationData;
1424
- operationData = mergeOperationData(operationData, actionOperationData);
1425
- if ("resize" in actionInstance && typeof actionInstance.resize === "function") return actionInstance.resize(operationData);
1426
- return operationData;
1427
- };
1428
-
1429
1481
  //#endregion
1430
1482
  //#region src/operation/select-element.ts
1431
1483
  function findElementBySelector(root, selector) {
@@ -1443,6 +1495,8 @@ function findElementBySelector(root, selector) {
1443
1495
  const selectElement = function(operationData) {
1444
1496
  operationData.selector = resolveExternalPropertyChain(operationData, this, operationData.selector);
1445
1497
  const { selector, useSelectedElementAsRoot = false } = operationData;
1498
+ delete operationData.selector;
1499
+ delete operationData.useSelectedElementAsRoot;
1446
1500
  if (!selector) throw new Error("selectElement: selector is either empty or not defined.");
1447
1501
  if (useSelectedElementAsRoot && operationData.selectedElement) {
1448
1502
  const currentRoot = operationData.selectedElement;
@@ -1464,9 +1518,9 @@ const selectElement = function(operationData) {
1464
1518
  * @example The various ways of assigning data
1465
1519
  * ```ts
1466
1520
  * setData({
1467
- * 'operationdata.foo': 'context.currentItem', // context.currentItem will be assigned to operationdata.foo
1468
- * 'globaldata.foo': 'context.currentItem', // context.currentItem will be assigned to globaldata.foo
1469
- * '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
1470
1524
  * })
1471
1525
  * ```
1472
1526
  */
@@ -1476,15 +1530,15 @@ const setData = function(operationData) {
1476
1530
  resolveTargets(properties, operationData, this);
1477
1531
  return operationData;
1478
1532
  };
1479
- function resolveTargets(data, operationData, context) {
1533
+ function resolveTargets(data, operationData, scope) {
1480
1534
  return Object.keys(data).forEach((item) => {
1481
1535
  const path$1 = item.split(".");
1482
1536
  const rootTarget = path$1.shift()?.toLowerCase() ?? "";
1483
1537
  if (!isDataTarget(rootTarget)) throw new Error(`Unrecognized target: ${rootTarget}, known targets are: ${knownTargets.join(", ")}`);
1484
1538
  const property = path$1.pop() ?? "";
1485
- const propertyValue = resolveExternalPropertyChain(operationData, context, data[item]);
1539
+ const propertyValue = resolveExternalPropertyChain(operationData, scope, data[item]);
1486
1540
  const targets = {
1487
- context,
1541
+ scope,
1488
1542
  operationdata: operationData,
1489
1543
  globaldata: getGlobals()
1490
1544
  };
@@ -1493,7 +1547,7 @@ function resolveTargets(data, operationData, context) {
1493
1547
  });
1494
1548
  }
1495
1549
  const knownTargets = [
1496
- "context",
1550
+ "scope",
1497
1551
  "operationdata",
1498
1552
  "globaldata"
1499
1553
  ];
@@ -1508,6 +1562,7 @@ function isDataTarget(value) {
1508
1562
  */
1509
1563
  const setElementAttributes = (operationData) => {
1510
1564
  const { attributes, selectedElement } = operationData;
1565
+ delete operationData.attributes;
1511
1566
  selectedElement.attr(attributes);
1512
1567
  return operationData;
1513
1568
  };
@@ -1537,6 +1592,7 @@ const setElementContent = (operationData) => {
1537
1592
  break;
1538
1593
  }
1539
1594
  delete operationData.insertionType;
1595
+ delete operationData.template;
1540
1596
  return operationData;
1541
1597
  };
1542
1598
 
@@ -1577,6 +1633,21 @@ const setOperationData = function(operationData) {
1577
1633
  const setStyle = function(operationData) {
1578
1634
  const properties = resolvePropertyValues(operationData, this, operationData.properties);
1579
1635
  operationData.selectedElement.css(properties);
1636
+ delete operationData.properties;
1637
+ return operationData;
1638
+ };
1639
+
1640
+ //#endregion
1641
+ //#region src/operation/set-variable.ts
1642
+ /**
1643
+ * This operation sets a variable with the specified name on the scope with the specified value.
1644
+ */
1645
+ const setVariable = function(operationData) {
1646
+ const { name, value } = operationData;
1647
+ if (!this.variables) this.variables = {};
1648
+ this.variables[name] = value;
1649
+ delete operationData.name;
1650
+ delete operationData.value;
1580
1651
  return operationData;
1581
1652
  };
1582
1653
 
@@ -1616,6 +1687,7 @@ const startAction = (operationData) => {
1616
1687
  const toggleClass = (operationData) => {
1617
1688
  const { selectedElement, className } = operationData;
1618
1689
  selectedElement.toggleClass(className);
1690
+ delete operationData.className;
1619
1691
  return operationData;
1620
1692
  };
1621
1693
 
@@ -1651,6 +1723,7 @@ const wait = (operationData) => {
1651
1723
  var operation_exports = /* @__PURE__ */ __export({
1652
1724
  addClass: () => addClass,
1653
1725
  addControllerToElement: () => addControllerToElement,
1726
+ addGlobalsToOperation: () => addGlobalsToOperation,
1654
1727
  animate: () => animate,
1655
1728
  animateWithClass: () => animateWithClass,
1656
1729
  broadcastEvent: () => broadcastEvent,
@@ -1681,7 +1754,6 @@ var operation_exports = /* @__PURE__ */ __export({
1681
1754
  removePropertiesFromOperationData: () => removePropertiesFromOperationData,
1682
1755
  reparentElement: () => reparentElement,
1683
1756
  requestAction: () => requestAction,
1684
- resizeAction: () => resizeAction,
1685
1757
  selectElement: () => selectElement,
1686
1758
  setData: () => setData,
1687
1759
  setElementAttributes: () => setElementAttributes,
@@ -1689,6 +1761,7 @@ var operation_exports = /* @__PURE__ */ __export({
1689
1761
  setGlobalData: () => setGlobalData,
1690
1762
  setOperationData: () => setOperationData,
1691
1763
  setStyle: () => setStyle,
1764
+ setVariable: () => setVariable,
1692
1765
  startAction: () => startAction,
1693
1766
  toggleClass: () => toggleClass,
1694
1767
  toggleElement: () => toggleElement,
@@ -3862,7 +3935,8 @@ function addClass$1() {
3862
3935
  dependentProperties: ["selectedElement"],
3863
3936
  properties: { className: {
3864
3937
  type: "ParameterType:className",
3865
- required: true
3938
+ required: true,
3939
+ erased: true
3866
3940
  } }
3867
3941
  };
3868
3942
  }
@@ -3878,14 +3952,15 @@ function addControllerToElement$1() {
3878
3952
 
3879
3953
  //#endregion
3880
3954
  //#region src/operation/metadata/add-globals-to-operation.ts
3881
- function addGlobalsToOperation() {
3955
+ function addGlobalsToOperation$1() {
3882
3956
  return {
3883
3957
  description: `This operation adds the specified global property names to the current operation data.
3884
3958
  It finally removes the \`globalProperties\` property from the current operation data.`,
3885
3959
  properties: { globalProperties: {
3886
3960
  type: "ParameterType:array",
3887
3961
  itemType: "ParameterType:string",
3888
- required: true
3962
+ required: true,
3963
+ erased: true
3889
3964
  } }
3890
3965
  };
3891
3966
  }
@@ -3916,14 +3991,19 @@ function animate$1() {
3916
3991
  It resolves after the animation completes.`,
3917
3992
  dependentProperties: ["selectedElement"],
3918
3993
  properties: {
3919
- animationEasing: { type: "ParameterType:boolean" },
3994
+ animationEasing: {
3995
+ type: "ParameterType:boolean",
3996
+ erased: true
3997
+ },
3920
3998
  animationProperties: {
3921
3999
  type: "ParameterType:object",
3922
- required: true
4000
+ required: true,
4001
+ erased: true
3923
4002
  },
3924
4003
  animationDuration: {
3925
4004
  type: "ParameterType:number",
3926
- required: true
4005
+ required: true,
4006
+ erased: true
3927
4007
  }
3928
4008
  }
3929
4009
  };
@@ -3934,13 +4014,21 @@ It resolves after the animation completes.`,
3934
4014
  function broadcastEvent$1() {
3935
4015
  return {
3936
4016
  description: `This operation broadcasts the given event through the eventbus, along with the
3937
- event argumetns and optional event topic.`,
4017
+ event arguments and optional event topic.`,
3938
4018
  properties: {
3939
- eventArgs: { type: "ParameterType:array" },
3940
- 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
+ },
3941
4028
  eventName: {
3942
4029
  type: "ParameterType:eventName",
3943
- required: true
4030
+ required: true,
4031
+ erased: true
3944
4032
  }
3945
4033
  }
3946
4034
  };
@@ -3954,11 +4042,13 @@ function calc$1() {
3954
4042
  properties: {
3955
4043
  left: {
3956
4044
  type: "ParameterType:number",
3957
- required: true
4045
+ required: true,
4046
+ erased: true
3958
4047
  },
3959
4048
  right: {
3960
4049
  type: "ParameterType:number",
3961
- required: true
4050
+ required: true,
4051
+ erased: true
3962
4052
  },
3963
4053
  operator: {
3964
4054
  type: [
@@ -3969,7 +4059,8 @@ function calc$1() {
3969
4059
  { value: "%" },
3970
4060
  { value: "**" }
3971
4061
  ],
3972
- required: true
4062
+ required: true,
4063
+ erased: true
3973
4064
  }
3974
4065
  },
3975
4066
  outputProperties: { calculationResult: { type: "ParameterType:number" } }
@@ -3993,7 +4084,8 @@ function clearOperationData$1() {
3993
4084
  Or, if the \`properties\` property is set only removes the properties defined by that list.`,
3994
4085
  properties: { properties: {
3995
4086
  type: "ParameterType:array",
3996
- itemType: "ParameterType:string"
4087
+ itemType: "ParameterType:string",
4088
+ erased: true
3997
4089
  } }
3998
4090
  };
3999
4091
  }
@@ -4006,124 +4098,18 @@ function createElement$1() {
4006
4098
  the instance to the \`template\` property on the current operation data.`,
4007
4099
  properties: {
4008
4100
  elementName: {
4009
- type: [
4010
- { value: "object" },
4011
- { value: "a" },
4012
- { value: "abbr" },
4013
- { value: "address" },
4014
- { value: "area" },
4015
- { value: "article" },
4016
- { value: "aside" },
4017
- { value: "audio" },
4018
- { value: "b" },
4019
- { value: "base" },
4020
- { value: "bdi" },
4021
- { value: "bdo" },
4022
- { value: "blockquote" },
4023
- { value: "body" },
4024
- { value: "br" },
4025
- { value: "button" },
4026
- { value: "canvas" },
4027
- { value: "caption" },
4028
- { value: "cite" },
4029
- { value: "code" },
4030
- { value: "col" },
4031
- { value: "colgroup" },
4032
- { value: "data" },
4033
- { value: "datalist" },
4034
- { value: "dd" },
4035
- { value: "del" },
4036
- { value: "details" },
4037
- { value: "dfn" },
4038
- { value: "dialog" },
4039
- { value: "div" },
4040
- { value: "dl" },
4041
- { value: "dt" },
4042
- { value: "em" },
4043
- { value: "embed" },
4044
- { value: "fieldset" },
4045
- { value: "figcaption" },
4046
- { value: "figure" },
4047
- { value: "footer" },
4048
- { value: "form" },
4049
- { value: "h1" },
4050
- { value: "h2" },
4051
- { value: "h3" },
4052
- { value: "h4" },
4053
- { value: "h5" },
4054
- { value: "h6" },
4055
- { value: "head" },
4056
- { value: "header" },
4057
- { value: "hgroup" },
4058
- { value: "hr" },
4059
- { value: "html" },
4060
- { value: "i" },
4061
- { value: "iframe" },
4062
- { value: "img" },
4063
- { value: "input" },
4064
- { value: "ins" },
4065
- { value: "kbd" },
4066
- { value: "label" },
4067
- { value: "legend" },
4068
- { value: "li" },
4069
- { value: "link" },
4070
- { value: "main" },
4071
- { value: "map" },
4072
- { value: "mark" },
4073
- { value: "menu" },
4074
- { value: "meta" },
4075
- { value: "meter" },
4076
- { value: "nav" },
4077
- { value: "noscript" },
4078
- { value: "ol" },
4079
- { value: "optgroup" },
4080
- { value: "option" },
4081
- { value: "output" },
4082
- { value: "p" },
4083
- { value: "picture" },
4084
- { value: "pre" },
4085
- { value: "progress" },
4086
- { value: "q" },
4087
- { value: "rp" },
4088
- { value: "rt" },
4089
- { value: "ruby" },
4090
- { value: "s" },
4091
- { value: "samp" },
4092
- { value: "script" },
4093
- { value: "search" },
4094
- { value: "section" },
4095
- { value: "select" },
4096
- { value: "slot" },
4097
- { value: "small" },
4098
- { value: "source" },
4099
- { value: "span" },
4100
- { value: "strong" },
4101
- { value: "style" },
4102
- { value: "sub" },
4103
- { value: "summary" },
4104
- { value: "sup" },
4105
- { value: "table" },
4106
- { value: "tbody" },
4107
- { value: "td" },
4108
- { value: "template" },
4109
- { value: "textarea" },
4110
- { value: "tfoot" },
4111
- { value: "th" },
4112
- { value: "thead" },
4113
- { value: "time" },
4114
- { value: "title" },
4115
- { value: "tr" },
4116
- { value: "track" },
4117
- { value: "u" },
4118
- { value: "ul" },
4119
- { value: "var" },
4120
- { value: "video" },
4121
- { value: "wbr" }
4122
- ],
4123
- required: true
4101
+ type: "ParameterType:htmlElementName",
4102
+ required: true,
4103
+ erased: true
4104
+ },
4105
+ text: {
4106
+ type: "ParameterType:string",
4107
+ erased: true
4124
4108
  },
4125
- text: { type: "ParameterType:string" },
4126
- attributes: { type: "ParameterType:object" }
4109
+ attributes: {
4110
+ type: "ParameterType:object",
4111
+ erased: true
4112
+ }
4127
4113
  },
4128
4114
  outputProperties: { template: { type: "ParameterType:object" } }
4129
4115
  };
@@ -4135,7 +4121,11 @@ function customFunction$1() {
4135
4121
  return {
4136
4122
  description: `This operation retrieves a custom function defined by the given system name
4137
4123
  and invokes it with the current operation data and eventbus.`,
4138
- properties: { systemName: { type: "ParameterType:string" } }
4124
+ properties: { systemName: {
4125
+ type: "ParameterType:systemName",
4126
+ required: true,
4127
+ erased: true
4128
+ } }
4139
4129
  };
4140
4130
  }
4141
4131
 
@@ -4149,7 +4139,11 @@ The action operation data is first merged with the current operation data before
4149
4139
  passed on to the action. After the action has completed the action operation data properties
4150
4140
  are removed from the current operation data.`,
4151
4141
  dependentProperties: ["actionInstance"],
4152
- properties: { actionOperationData: { type: "ParameterType:object" } }
4142
+ properties: { actionOperationData: {
4143
+ type: "ParameterType:object",
4144
+ required: true,
4145
+ erased: true
4146
+ } }
4153
4147
  };
4154
4148
  }
4155
4149
 
@@ -4171,7 +4165,11 @@ function extendController$1() {
4171
4165
  return {
4172
4166
  description: `Extends the current controller with given extension.`,
4173
4167
  dependentProperties: ["controllerInstance"],
4174
- properties: { controllerExtension: { type: "ParameterType:object" } }
4168
+ properties: { controllerExtension: {
4169
+ type: "ParameterType:object",
4170
+ required: true,
4171
+ erased: true
4172
+ } }
4175
4173
  };
4176
4174
  }
4177
4175
 
@@ -4182,12 +4180,12 @@ function forEach$1() {
4182
4180
  description: `This operation iterates over the given collection.
4183
4181
 
4184
4182
  Each iteration the current item from the specified collection is
4185
- assigned to the {@link IOperationContext.currentItem} property on the operation context.
4183
+ assigned to the {@link IOperationScope.currentItem} property on the operation scope.
4186
4184
 
4187
4185
  At the start of the loop, the associated {@link endForEach} operation is determined and when
4188
4186
  the last iteration is completed the flow control is set to the index of that operation.`,
4189
4187
  properties: { collection: {
4190
- type: "ParameterType:array",
4188
+ type: "ParameterType:array|ParameterType:string",
4191
4189
  required: true
4192
4190
  } }
4193
4191
  };
@@ -4197,11 +4195,13 @@ the last iteration is completed the flow control is set to the index of that ope
4197
4195
  //#region src/operation/metadata/get-attributes-from-element.ts
4198
4196
  function getAttributesFromElement$1() {
4199
4197
  return {
4200
- 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.`,
4201
4199
  dependentProperties: ["selectedElement"],
4202
4200
  properties: { attributeNames: {
4203
4201
  type: "ParameterType:array",
4204
- itemType: "ParameterType:string"
4202
+ itemType: "ParameterType:string",
4203
+ required: true,
4204
+ erased: true
4205
4205
  } },
4206
4206
  outputProperties: { attributeValues: { type: "ParameterType:object" } }
4207
4207
  };
@@ -4215,7 +4215,8 @@ function getControllerFromElement$1() {
4215
4215
  dependentProperties: ["selectedElement"],
4216
4216
  properties: { controllerName: {
4217
4217
  type: "ParameterType:controllerName",
4218
- required: true
4218
+ required: true,
4219
+ erased: true
4219
4220
  } },
4220
4221
  outputProperties: { controllerInstance: { type: "ParameterType:object" } }
4221
4222
  };
@@ -4237,7 +4238,8 @@ It assigns this instance to the \`controllerInstance\` property on the current o
4237
4238
  { value: "RoutingController" },
4238
4239
  { value: "SubtitlesController" }
4239
4240
  ],
4240
- required: true
4241
+ required: true,
4242
+ erased: true
4241
4243
  } },
4242
4244
  outputProperties: { controllerInstance: { type: "ParameterType:object" } }
4243
4245
  };
@@ -4261,7 +4263,10 @@ Where the ratio modifier is formatted in the following way:
4261
4263
  For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
4262
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.`,
4263
4265
  dependentProperties: ["selectedElement"],
4264
- properties: { modifier: { type: "ParameterType:dimensionsModifier" } },
4266
+ properties: { modifier: {
4267
+ type: "ParameterType:dimensionsModifier",
4268
+ erased: true
4269
+ } },
4265
4270
  outputProperties: { dimensions: { type: "ParameterType:object" } }
4266
4271
  };
4267
4272
  }
@@ -4274,7 +4279,8 @@ function getImport$1() {
4274
4279
  assigns it to the \`importedInstance\` property on the current operaton date.`,
4275
4280
  properties: { systemName: {
4276
4281
  type: "ParameterType:systemName",
4277
- required: true
4282
+ required: true,
4283
+ erased: true
4278
4284
  } },
4279
4285
  outputProperties: { importedInstance: { type: "ParameterType:object" } }
4280
4286
  };
@@ -4286,7 +4292,10 @@ function getQueryParams$1() {
4286
4292
  return {
4287
4293
  description: `This operation retrieves the current query parameters from the browser's address bar and places
4288
4294
  them on the returned operation data.`,
4289
- properties: { defaultValues: { type: "ParameterType:object" } },
4295
+ properties: { defaultValues: {
4296
+ type: "ParameterType:object",
4297
+ erased: true
4298
+ } },
4290
4299
  outputProperties: { queryParams: { type: "ParameterType:object" } }
4291
4300
  };
4292
4301
  }
@@ -4297,12 +4306,19 @@ function invokeObjectMethod$1() {
4297
4306
  return {
4298
4307
  description: `This operation invokes the specified method on the given object with the given optional arguments
4299
4308
  and assigns the result to the \`methodResult\` operationdata property.`,
4309
+ dependentProperties: ["instance"],
4300
4310
  properties: {
4301
- instance: { type: "ParameterType:object" },
4302
- methodName: { type: "ParameterType:string" },
4303
- methodArguments: { type: "ParameterType:array" },
4304
- methodResult: { type: "ParameterType:object" }
4305
- }
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" } }
4306
4322
  };
4307
4323
  }
4308
4324
 
@@ -4318,9 +4334,13 @@ instead of re-retrieving it from the url.`,
4318
4334
  properties: {
4319
4335
  url: {
4320
4336
  type: "ParameterType:string",
4321
- required: true
4337
+ required: true,
4338
+ erased: true
4322
4339
  },
4323
- cache: { type: "ParameterType:boolean" }
4340
+ cache: {
4341
+ type: "ParameterType:boolean",
4342
+ erased: true
4343
+ }
4324
4344
  },
4325
4345
  outputProperties: { json: { type: "ParameterType:object" } }
4326
4346
  };
@@ -4329,7 +4349,14 @@ instead of re-retrieving it from the url.`,
4329
4349
  //#endregion
4330
4350
  //#region src/operation/metadata/log.ts
4331
4351
  function log$1() {
4332
- 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
+ };
4333
4360
  }
4334
4361
 
4335
4362
  //#endregion
@@ -4340,48 +4367,13 @@ function math$1() {
4340
4367
  properties: {
4341
4368
  args: {
4342
4369
  type: "ParameterType:array",
4343
- required: true
4370
+ required: true,
4371
+ erased: true
4344
4372
  },
4345
4373
  functionName: {
4346
- type: [
4347
- { value: "abs" },
4348
- { value: "acos" },
4349
- { value: "asin" },
4350
- { value: "atan" },
4351
- { value: "atan2" },
4352
- { value: "ceil" },
4353
- { value: "cos" },
4354
- { value: "exp" },
4355
- { value: "floor" },
4356
- { value: "log" },
4357
- { value: "max" },
4358
- { value: "min" },
4359
- { value: "pow" },
4360
- { value: "random" },
4361
- { value: "round" },
4362
- { value: "sin" },
4363
- { value: "sqrt" },
4364
- { value: "tan" },
4365
- { value: "clz32" },
4366
- { value: "imul" },
4367
- { value: "sign" },
4368
- { value: "log10" },
4369
- { value: "log2" },
4370
- { value: "log1p" },
4371
- { value: "expm1" },
4372
- { value: "cosh" },
4373
- { value: "sinh" },
4374
- { value: "tanh" },
4375
- { value: "acosh" },
4376
- { value: "asinh" },
4377
- { value: "atanh" },
4378
- { value: "hypot" },
4379
- { value: "trunc" },
4380
- { value: "fround" },
4381
- { value: "cbrt" },
4382
- { value: "f16round" }
4383
- ],
4384
- required: true
4374
+ type: "ParameterType:mathfunction",
4375
+ required: true,
4376
+ erased: true
4385
4377
  }
4386
4378
  },
4387
4379
  outputProperties: { mathResult: { type: "ParameterType:number" } }
@@ -4403,7 +4395,8 @@ function removeClass$1() {
4403
4395
  dependentProperties: ["selectedElement"],
4404
4396
  properties: { className: {
4405
4397
  type: "ParameterType:className",
4406
- required: true
4398
+ required: true,
4399
+ erased: true
4407
4400
  } }
4408
4401
  };
4409
4402
  }
@@ -4414,7 +4407,11 @@ function removeControllerFromElement$1() {
4414
4407
  return {
4415
4408
  description: `This operation removes the controller with the specified name from the given selected element.`,
4416
4409
  dependentProperties: ["selectedElement"],
4417
- properties: { controllerName: { type: "ParameterType:controllerName" } }
4410
+ properties: { controllerName: {
4411
+ type: "ParameterType:controllerName",
4412
+ required: true,
4413
+ erased: true
4414
+ } }
4418
4415
  };
4419
4416
  }
4420
4417
 
@@ -4436,7 +4433,8 @@ It will also remove the property \`propertyNames\` from the result.`,
4436
4433
  properties: { propertyNames: {
4437
4434
  type: "ParameterType:array",
4438
4435
  itemType: "ParameterType:string",
4439
- required: true
4436
+ required: true,
4437
+ erased: true
4440
4438
  } }
4441
4439
  };
4442
4440
  }
@@ -4450,7 +4448,8 @@ by the specified \`newParentSelector\`.`,
4450
4448
  dependentProperties: ["selectedElement"],
4451
4449
  properties: { newParentSelector: {
4452
4450
  type: "ParameterType:selector",
4453
- required: true
4451
+ required: true,
4452
+ erased: true
4454
4453
  } }
4455
4454
  };
4456
4455
  }
@@ -4463,22 +4462,13 @@ function requestAction$1() {
4463
4462
  to the \`actionInstance\` property on the current operation data.`,
4464
4463
  properties: { systemName: {
4465
4464
  type: "ParameterType:actionName",
4466
- required: true
4465
+ required: true,
4466
+ erased: true
4467
4467
  } },
4468
4468
  outputProperties: { actionInstance: { type: "ParameterType:object" } }
4469
4469
  };
4470
4470
  }
4471
4471
 
4472
- //#endregion
4473
- //#region src/operation/metadata/resize-action.ts
4474
- function resizeAction$1() {
4475
- return {
4476
- description: ``,
4477
- dependentProperties: ["actionInstance"],
4478
- properties: { actionOperationData: { type: "ParameterType:object" } }
4479
- };
4480
- }
4481
-
4482
4472
  //#endregion
4483
4473
  //#region src/operation/metadata/select-element.ts
4484
4474
  function selectElement$1() {
@@ -4491,9 +4481,13 @@ then the element will be looked for only in the descendant elements of this DOM
4491
4481
  properties: {
4492
4482
  selector: {
4493
4483
  type: "ParameterType:selector",
4494
- required: true
4484
+ required: true,
4485
+ erased: true
4495
4486
  },
4496
- useSelectedElementAsRoot: { type: "ParameterType:boolean" }
4487
+ useSelectedElementAsRoot: {
4488
+ type: "ParameterType:boolean",
4489
+ erased: true
4490
+ }
4497
4491
  },
4498
4492
  outputProperties: { selectedElement: { type: "ParameterType:object" } }
4499
4493
  };
@@ -4506,7 +4500,8 @@ function setData$1() {
4506
4500
  description: `This operation assigns the specified properties to the specified data targets.`,
4507
4501
  properties: { properties: {
4508
4502
  type: "ParameterType:object",
4509
- required: true
4503
+ required: true,
4504
+ erased: true
4510
4505
  } }
4511
4506
  };
4512
4507
  }
@@ -4519,7 +4514,8 @@ function setElementAttributes$1() {
4519
4514
  dependentProperties: ["selectedElement"],
4520
4515
  properties: { attributes: {
4521
4516
  type: "ParameterType:object",
4522
- required: true
4517
+ required: true,
4518
+ erased: true
4523
4519
  } }
4524
4520
  };
4525
4521
  }
@@ -4535,12 +4531,28 @@ When the \`insertionType\` is set to \`overwrite\` the contents of the selected
4535
4531
  by the given template.
4536
4532
  When set to \`append\` the new content will be inserted after the current content.
4537
4533
  When set to \`prepend\` the new content will be inserted before the current content.`,
4538
- dependentProperties: ["selectedElement", "template"],
4539
- properties: { insertionType: { type: [
4540
- { value: "overwrite" },
4541
- { value: "append" },
4542
- { value: "prepend" }
4543
- ] } }
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
+ }
4544
4556
  };
4545
4557
  }
4546
4558
 
@@ -4552,7 +4564,8 @@ function setGlobalData$1() {
4552
4564
  properties: { propertyNames: {
4553
4565
  type: "ParameterType:array",
4554
4566
  itemType: "ParameterType:string",
4555
- required: true
4567
+ required: true,
4568
+ erased: true
4556
4569
  } }
4557
4570
  };
4558
4571
  }
@@ -4564,10 +4577,14 @@ function setOperationData$1() {
4564
4577
  description: `This operation assigns the specified properties to the current operation data.
4565
4578
  When override is set to true the properties replace the current operation data entirely.`,
4566
4579
  properties: {
4567
- override: { type: "ParameterType:boolean" },
4580
+ override: {
4581
+ type: "ParameterType:boolean",
4582
+ erased: true
4583
+ },
4568
4584
  properties: {
4569
4585
  type: "ParameterType:object",
4570
- required: true
4586
+ required: true,
4587
+ erased: true
4571
4588
  }
4572
4589
  }
4573
4590
  };
@@ -4582,11 +4599,32 @@ given selected element.`,
4582
4599
  dependentProperties: ["selectedElement"],
4583
4600
  properties: { properties: {
4584
4601
  type: "ParameterType:object",
4585
- required: true
4602
+ required: true,
4603
+ erased: true
4586
4604
  } }
4587
4605
  };
4588
4606
  }
4589
4607
 
4608
+ //#endregion
4609
+ //#region src/operation/metadata/set-variable.ts
4610
+ function setVariable$1() {
4611
+ return {
4612
+ description: `This operation sets a variable with the specified name on the scope with the specified value.`,
4613
+ properties: {
4614
+ name: {
4615
+ type: "ParameterType:string",
4616
+ required: true,
4617
+ erased: true
4618
+ },
4619
+ value: {
4620
+ type: "ParameterType:object",
4621
+ required: true,
4622
+ erased: true
4623
+ }
4624
+ }
4625
+ };
4626
+ }
4627
+
4590
4628
  //#endregion
4591
4629
  //#region src/operation/metadata/start-action.ts
4592
4630
  function startAction$1() {
@@ -4597,7 +4635,10 @@ The action operation data is first merged with the current operation data before
4597
4635
  passed on to the action. After the action has completed the action operation data properties
4598
4636
  are removed from the current operation data.`,
4599
4637
  dependentProperties: ["actionInstance"],
4600
- properties: { actionOperationData: { type: "ParameterType:object" } }
4638
+ properties: { actionOperationData: {
4639
+ type: "ParameterType:object",
4640
+ erased: true
4641
+ } }
4601
4642
  };
4602
4643
  }
4603
4644
 
@@ -4612,7 +4653,8 @@ otherwise it will be added.`,
4612
4653
  dependentProperties: ["selectedElement"],
4613
4654
  properties: { className: {
4614
4655
  type: "ParameterType:className",
4615
- required: true
4656
+ required: true,
4657
+ erased: true
4616
4658
  } }
4617
4659
  };
4618
4660
  }
@@ -4636,7 +4678,8 @@ function wait$1() {
4636
4678
  description: `This operation waits for the specified amount of milliseconds.`,
4637
4679
  properties: { milliseconds: {
4638
4680
  type: "ParameterType:number",
4639
- required: true
4681
+ required: true,
4682
+ erased: true
4640
4683
  } }
4641
4684
  };
4642
4685
  }
@@ -4648,161 +4691,20 @@ function when$1() {
4648
4691
  description: `When the given expression evaluates to false, subsequent operations will be skipped
4649
4692
  until an {@link endWhen} or {@link otherwise} operation is encountered.
4650
4693
 
4651
- Practically, this means an \`if\` or \`if\`/\`else\` statement control flow implementation in a list of operations.`,
4694
+ Practically, this means an \`if\` or \`if\`/\`else\` statement control flow implementation in a list of operations.
4695
+
4696
+ The expression is passed in as a formatted string.
4697
+ The left and right values of the expression can be defined like this:
4698
+
4699
+ 'constant': for a constant string
4700
+ 100: for a constant number
4701
+ operationData.foo: for an operation data value
4702
+ globaldata.foo: for a global data value
4703
+ scope.loopIndex: for a scope value`,
4652
4704
  properties: { expression: {
4653
- type: [
4654
- { value: "`${number}!=${number}`" },
4655
- { value: "`${number}!='${string}'`" },
4656
- { value: "`${number}!=operationdata.${string}`" },
4657
- { value: "`${number}!=globaldata.${string}`" },
4658
- { value: "`${number}!=context.${string}`" },
4659
- { value: "`${number}==${number}`" },
4660
- { value: "`${number}=='${string}'`" },
4661
- { value: "`${number}==operationdata.${string}`" },
4662
- { value: "`${number}==globaldata.${string}`" },
4663
- { value: "`${number}==context.${string}`" },
4664
- { value: "`${number}>=${number}`" },
4665
- { value: "`${number}>='${string}'`" },
4666
- { value: "`${number}>=operationdata.${string}`" },
4667
- { value: "`${number}>=globaldata.${string}`" },
4668
- { value: "`${number}>=context.${string}`" },
4669
- { value: "`${number}<=${number}`" },
4670
- { value: "`${number}<='${string}'`" },
4671
- { value: "`${number}<=operationdata.${string}`" },
4672
- { value: "`${number}<=globaldata.${string}`" },
4673
- { value: "`${number}<=context.${string}`" },
4674
- { value: "`${number}>${number}`" },
4675
- { value: "`${number}>'${string}'`" },
4676
- { value: "`${number}>operationdata.${string}`" },
4677
- { value: "`${number}>globaldata.${string}`" },
4678
- { value: "`${number}>context.${string}`" },
4679
- { value: "`${number}<${number}`" },
4680
- { value: "`${number}<'${string}'`" },
4681
- { value: "`${number}<operationdata.${string}`" },
4682
- { value: "`${number}<globaldata.${string}`" },
4683
- { value: "`${number}<context.${string}`" },
4684
- { value: "`'${string}'!=${number}`" },
4685
- { value: "`'${string}'!='${string}'`" },
4686
- { value: "`'${string}'!=operationdata.${string}`" },
4687
- { value: "`'${string}'!=globaldata.${string}`" },
4688
- { value: "`'${string}'!=context.${string}`" },
4689
- { value: "`'${string}'==${number}`" },
4690
- { value: "`'${string}'=='${string}'`" },
4691
- { value: "`'${string}'==operationdata.${string}`" },
4692
- { value: "`'${string}'==globaldata.${string}`" },
4693
- { value: "`'${string}'==context.${string}`" },
4694
- { value: "`'${string}'>=${number}`" },
4695
- { value: "`'${string}'>='${string}'`" },
4696
- { value: "`'${string}'>=operationdata.${string}`" },
4697
- { value: "`'${string}'>=globaldata.${string}`" },
4698
- { value: "`'${string}'>=context.${string}`" },
4699
- { value: "`'${string}'<=${number}`" },
4700
- { value: "`'${string}'<='${string}'`" },
4701
- { value: "`'${string}'<=operationdata.${string}`" },
4702
- { value: "`'${string}'<=globaldata.${string}`" },
4703
- { value: "`'${string}'<=context.${string}`" },
4704
- { value: "`'${string}'>${number}`" },
4705
- { value: "`'${string}'>'${string}'`" },
4706
- { value: "`'${string}'>operationdata.${string}`" },
4707
- { value: "`'${string}'>globaldata.${string}`" },
4708
- { value: "`'${string}'>context.${string}`" },
4709
- { value: "`'${string}'<${number}`" },
4710
- { value: "`'${string}'<'${string}'`" },
4711
- { value: "`'${string}'<operationdata.${string}`" },
4712
- { value: "`'${string}'<globaldata.${string}`" },
4713
- { value: "`'${string}'<context.${string}`" },
4714
- { value: "`operationdata.${string}!=${number}`" },
4715
- { value: "`operationdata.${string}!='${string}'`" },
4716
- { value: "`operationdata.${string}!=operationdata.${string}`" },
4717
- { value: "`operationdata.${string}!=globaldata.${string}`" },
4718
- { value: "`operationdata.${string}!=context.${string}`" },
4719
- { value: "`operationdata.${string}==${number}`" },
4720
- { value: "`operationdata.${string}=='${string}'`" },
4721
- { value: "`operationdata.${string}==operationdata.${string}`" },
4722
- { value: "`operationdata.${string}==globaldata.${string}`" },
4723
- { value: "`operationdata.${string}==context.${string}`" },
4724
- { value: "`operationdata.${string}>=${number}`" },
4725
- { value: "`operationdata.${string}>='${string}'`" },
4726
- { value: "`operationdata.${string}>=operationdata.${string}`" },
4727
- { value: "`operationdata.${string}>=globaldata.${string}`" },
4728
- { value: "`operationdata.${string}>=context.${string}`" },
4729
- { value: "`operationdata.${string}<=${number}`" },
4730
- { value: "`operationdata.${string}<='${string}'`" },
4731
- { value: "`operationdata.${string}<=operationdata.${string}`" },
4732
- { value: "`operationdata.${string}<=globaldata.${string}`" },
4733
- { value: "`operationdata.${string}<=context.${string}`" },
4734
- { value: "`operationdata.${string}>${number}`" },
4735
- { value: "`operationdata.${string}>'${string}'`" },
4736
- { value: "`operationdata.${string}>operationdata.${string}`" },
4737
- { value: "`operationdata.${string}>globaldata.${string}`" },
4738
- { value: "`operationdata.${string}>context.${string}`" },
4739
- { value: "`operationdata.${string}<${number}`" },
4740
- { value: "`operationdata.${string}<'${string}'`" },
4741
- { value: "`operationdata.${string}<operationdata.${string}`" },
4742
- { value: "`operationdata.${string}<globaldata.${string}`" },
4743
- { value: "`operationdata.${string}<context.${string}`" },
4744
- { value: "`globaldata.${string}!=${number}`" },
4745
- { value: "`globaldata.${string}!='${string}'`" },
4746
- { value: "`globaldata.${string}!=operationdata.${string}`" },
4747
- { value: "`globaldata.${string}!=globaldata.${string}`" },
4748
- { value: "`globaldata.${string}!=context.${string}`" },
4749
- { value: "`globaldata.${string}==${number}`" },
4750
- { value: "`globaldata.${string}=='${string}'`" },
4751
- { value: "`globaldata.${string}==operationdata.${string}`" },
4752
- { value: "`globaldata.${string}==globaldata.${string}`" },
4753
- { value: "`globaldata.${string}==context.${string}`" },
4754
- { value: "`globaldata.${string}>=${number}`" },
4755
- { value: "`globaldata.${string}>='${string}'`" },
4756
- { value: "`globaldata.${string}>=operationdata.${string}`" },
4757
- { value: "`globaldata.${string}>=globaldata.${string}`" },
4758
- { value: "`globaldata.${string}>=context.${string}`" },
4759
- { value: "`globaldata.${string}<=${number}`" },
4760
- { value: "`globaldata.${string}<='${string}'`" },
4761
- { value: "`globaldata.${string}<=operationdata.${string}`" },
4762
- { value: "`globaldata.${string}<=globaldata.${string}`" },
4763
- { value: "`globaldata.${string}<=context.${string}`" },
4764
- { value: "`globaldata.${string}>${number}`" },
4765
- { value: "`globaldata.${string}>'${string}'`" },
4766
- { value: "`globaldata.${string}>operationdata.${string}`" },
4767
- { value: "`globaldata.${string}>globaldata.${string}`" },
4768
- { value: "`globaldata.${string}>context.${string}`" },
4769
- { value: "`globaldata.${string}<${number}`" },
4770
- { value: "`globaldata.${string}<'${string}'`" },
4771
- { value: "`globaldata.${string}<operationdata.${string}`" },
4772
- { value: "`globaldata.${string}<globaldata.${string}`" },
4773
- { value: "`globaldata.${string}<context.${string}`" },
4774
- { value: "`context.${string}!=${number}`" },
4775
- { value: "`context.${string}!='${string}'`" },
4776
- { value: "`context.${string}!=operationdata.${string}`" },
4777
- { value: "`context.${string}!=globaldata.${string}`" },
4778
- { value: "`context.${string}!=context.${string}`" },
4779
- { value: "`context.${string}==${number}`" },
4780
- { value: "`context.${string}=='${string}'`" },
4781
- { value: "`context.${string}==operationdata.${string}`" },
4782
- { value: "`context.${string}==globaldata.${string}`" },
4783
- { value: "`context.${string}==context.${string}`" },
4784
- { value: "`context.${string}>=${number}`" },
4785
- { value: "`context.${string}>='${string}'`" },
4786
- { value: "`context.${string}>=operationdata.${string}`" },
4787
- { value: "`context.${string}>=globaldata.${string}`" },
4788
- { value: "`context.${string}>=context.${string}`" },
4789
- { value: "`context.${string}<=${number}`" },
4790
- { value: "`context.${string}<='${string}'`" },
4791
- { value: "`context.${string}<=operationdata.${string}`" },
4792
- { value: "`context.${string}<=globaldata.${string}`" },
4793
- { value: "`context.${string}<=context.${string}`" },
4794
- { value: "`context.${string}>${number}`" },
4795
- { value: "`context.${string}>'${string}'`" },
4796
- { value: "`context.${string}>operationdata.${string}`" },
4797
- { value: "`context.${string}>globaldata.${string}`" },
4798
- { value: "`context.${string}>context.${string}`" },
4799
- { value: "`context.${string}<${number}`" },
4800
- { value: "`context.${string}<'${string}'`" },
4801
- { value: "`context.${string}<operationdata.${string}`" },
4802
- { value: "`context.${string}<globaldata.${string}`" },
4803
- { value: "`context.${string}<context.${string}`" }
4804
- ],
4805
- required: true
4705
+ type: "ParameterType:expression",
4706
+ required: true,
4707
+ erased: true
4806
4708
  } }
4807
4709
  };
4808
4710
  }
@@ -4812,7 +4714,7 @@ Practically, this means an \`if\` or \`if\`/\`else\` statement control flow impl
4812
4714
  var metadata_exports = /* @__PURE__ */ __export({
4813
4715
  addClass: () => addClass$1,
4814
4716
  addControllerToElement: () => addControllerToElement$1,
4815
- addGlobalsToOperation: () => addGlobalsToOperation,
4717
+ addGlobalsToOperation: () => addGlobalsToOperation$1,
4816
4718
  animate: () => animate$1,
4817
4719
  animateWithClass: () => animateWithClass$1,
4818
4720
  broadcastEvent: () => broadcastEvent$1,
@@ -4843,7 +4745,6 @@ var metadata_exports = /* @__PURE__ */ __export({
4843
4745
  removePropertiesFromOperationData: () => removePropertiesFromOperationData$1,
4844
4746
  reparentElement: () => reparentElement$1,
4845
4747
  requestAction: () => requestAction$1,
4846
- resizeAction: () => resizeAction$1,
4847
4748
  selectElement: () => selectElement$1,
4848
4749
  setData: () => setData$1,
4849
4750
  setElementAttributes: () => setElementAttributes$1,
@@ -4851,6 +4752,7 @@ var metadata_exports = /* @__PURE__ */ __export({
4851
4752
  setGlobalData: () => setGlobalData$1,
4852
4753
  setOperationData: () => setOperationData$1,
4853
4754
  setStyle: () => setStyle$1,
4755
+ setVariable: () => setVariable$1,
4854
4756
  startAction: () => startAction$1,
4855
4757
  toggleClass: () => toggleClass$1,
4856
4758
  toggleElement: () => toggleElement$1,
@@ -5853,5 +5755,5 @@ var EligiusResourceImporter = class {
5853
5755
  };
5854
5756
 
5855
5757
  //#endregion
5856
- 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, 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 };
5857
5759
  //# sourceMappingURL=index.js.map