eligius 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +55 -22
- package/dist/index.js +104 -40
- package/dist/index.js.map +1 -1
- package/jsonschema/endable-action-template.json +12 -0
- package/jsonschema/endable-action.json +12 -0
- package/jsonschema/event-action.json +6 -0
- package/jsonschema/operation-templates/break-for-each.json +26 -0
- package/jsonschema/operation-templates/continue-for-each.json +26 -0
- package/jsonschema/operation-templates/for-each.json +1 -1
- package/jsonschema/operation-templates/log.json +11 -1
- package/jsonschema/operation-templates/set-style.json +1 -1
- package/jsonschema/operation-templates/set-variable.json +5 -1
- package/jsonschema/operation-templates/when.json +1 -1
- package/jsonschema/operations/break-for-each.json +26 -0
- package/jsonschema/operations/continue-for-each.json +26 -0
- package/jsonschema/operations/for-each.json +1 -1
- package/jsonschema/operations/log.json +11 -1
- package/jsonschema/operations/set-style.json +1 -1
- package/jsonschema/operations/set-variable.json +5 -1
- package/jsonschema/operations/when.json +1 -1
- package/jsonschema/timeline-action.json +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -550,7 +550,7 @@ declare class SubtitlesController implements IController<ISubtitlesControllerOpe
|
|
|
550
550
|
init(operationData: ISubtitlesControllerOperationData): void;
|
|
551
551
|
}
|
|
552
552
|
declare namespace index_d_exports$2 {
|
|
553
|
-
export { EventListenerController, LabelController, LottieController, NavigationController, ProgressbarController, RoutingController, SubtitlesController };
|
|
553
|
+
export { EventListenerController, IEventListenerControllerOperationData, ILabelControllerMetadata, ILottieControllerMetadata, INavigationControllerOperationData, IProgressbarControllerOperationData, IRoutingControllerOperationData, ISubtitlesControllerOperationData, LabelController, LottieController, NavigationController, ProgressbarController, RoutingController, SubtitlesController };
|
|
554
554
|
}
|
|
555
555
|
//#endregion
|
|
556
556
|
//#region src/operation/add-class.d.ts
|
|
@@ -657,6 +657,15 @@ interface IAnimateWithClassOperationData {
|
|
|
657
657
|
*/
|
|
658
658
|
declare const animateWithClass: TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>>;
|
|
659
659
|
//#endregion
|
|
660
|
+
//#region src/operation/break-for-each.d.ts
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
664
|
+
* operation. This operation immediately moves to the loop end index, effectively stopping the loop.
|
|
665
|
+
*
|
|
666
|
+
*/
|
|
667
|
+
declare const breakForEach: TOperation<TOperationData>;
|
|
668
|
+
//#endregion
|
|
660
669
|
//#region src/operation/broadcast-event.d.ts
|
|
661
670
|
interface IBroadcastEventOperationData {
|
|
662
671
|
/**
|
|
@@ -743,6 +752,16 @@ interface IClearOperationDataOperationData {
|
|
|
743
752
|
*/
|
|
744
753
|
declare const clearOperationData: TOperation<IClearOperationDataOperationData>;
|
|
745
754
|
//#endregion
|
|
755
|
+
//#region src/operation/continue-for-each.d.ts
|
|
756
|
+
/**
|
|
757
|
+
*
|
|
758
|
+
* This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
759
|
+
* operation. This operation immediately moves to the next loop index, effectively canceling the rest
|
|
760
|
+
* of the operations in the current iteration.
|
|
761
|
+
*
|
|
762
|
+
*/
|
|
763
|
+
declare const continueForEach: TOperation<TOperationData>;
|
|
764
|
+
//#endregion
|
|
746
765
|
//#region src/operation/create-element.d.ts
|
|
747
766
|
type TTagNames = keyof HTMLElementTagNameMap;
|
|
748
767
|
interface ICreateElementOperationData<T extends TTagNames> {
|
|
@@ -847,25 +866,26 @@ interface IExtendControllerOperationData {
|
|
|
847
866
|
*/
|
|
848
867
|
declare const extendController: TOperation<IExtendControllerOperationData>;
|
|
849
868
|
//#endregion
|
|
850
|
-
//#region src/operation/helper/get-scope-var.d.ts
|
|
851
|
-
type VariableName = `@${string}`;
|
|
852
|
-
//#endregion
|
|
853
869
|
//#region src/operation/for-each.d.ts
|
|
854
870
|
interface IForEachOperationData {
|
|
855
871
|
/**
|
|
856
872
|
* @type=ParameterType:array|ParameterType:string
|
|
857
873
|
* @required
|
|
858
874
|
*/
|
|
859
|
-
collection: unknown[] | string
|
|
875
|
+
collection: unknown[] | string;
|
|
860
876
|
}
|
|
861
877
|
/**
|
|
862
878
|
* This operation iterates over the given collection.
|
|
863
879
|
*
|
|
864
880
|
* Each iteration the current item from the specified collection is
|
|
865
|
-
* assigned to the {@link IOperationScope.currentItem} property on the operation scope.
|
|
881
|
+
* assigned to the {@link IOperationScope.currentItem|currentItem} property on the {@link IOperationScope|operation scope}.
|
|
866
882
|
*
|
|
867
883
|
* At the start of the loop, the associated {@link endForEach} operation is determined and when
|
|
868
884
|
* the last iteration is completed the flow control is set to the index of that operation.
|
|
885
|
+
*
|
|
886
|
+
* The {@link continueForEach|continue} and {@link breakForEach|break} operations can be used to control the
|
|
887
|
+
* loop iterations.
|
|
888
|
+
*
|
|
869
889
|
*/
|
|
870
890
|
declare const forEach: TOperation<IForEachOperationData>;
|
|
871
891
|
//#endregion
|
|
@@ -1094,9 +1114,14 @@ declare const loadJson: TOperation<ILoadJSONOperationData>;
|
|
|
1094
1114
|
//#region src/operation/log.d.ts
|
|
1095
1115
|
interface ILogOperationData {
|
|
1096
1116
|
/**
|
|
1117
|
+
* @type=ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array
|
|
1097
1118
|
* @erased
|
|
1098
1119
|
*/
|
|
1099
1120
|
logValue?: any;
|
|
1121
|
+
/**
|
|
1122
|
+
* @erased
|
|
1123
|
+
*/
|
|
1124
|
+
logName?: string;
|
|
1100
1125
|
}
|
|
1101
1126
|
/**
|
|
1102
1127
|
* This operation logs the specified value, or, when no logValue property has been assigned
|
|
@@ -1275,7 +1300,7 @@ interface ISelectElementOperationData {
|
|
|
1275
1300
|
declare const selectElement: TOperation<ISelectElementOperationData>;
|
|
1276
1301
|
//#endregion
|
|
1277
1302
|
//#region src/operation/set-data.d.ts
|
|
1278
|
-
type TDataTarget =
|
|
1303
|
+
type TDataTarget = `$scope.${string}` | `$operationdata.${string}` | `$globaldata.${string}`;
|
|
1279
1304
|
interface ISetDataOperationData {
|
|
1280
1305
|
/**
|
|
1281
1306
|
* @required
|
|
@@ -1289,9 +1314,9 @@ interface ISetDataOperationData {
|
|
|
1289
1314
|
* @example The various ways of assigning data
|
|
1290
1315
|
* ```ts
|
|
1291
1316
|
* setData({
|
|
1292
|
-
* 'operationdata.foo': 'scope.currentItem', // scope.currentItem will be assigned to operationdata.foo
|
|
1293
|
-
* 'globaldata.foo': 'scope.currentItem', // scope.currentItem will be assigned to globaldata.foo
|
|
1294
|
-
* 'scope.newIndex': 100, // The constant 100 will be assigned to scope.newIndex
|
|
1317
|
+
* '$operationdata.foo': '$scope.currentItem', // $scope.currentItem will be assigned to $operationdata.foo
|
|
1318
|
+
* '$globaldata.foo': '$scope.currentItem', // $scope.currentItem will be assigned to $globaldata.foo
|
|
1319
|
+
* '$scope.newIndex': 100, // The constant 100 will be assigned to $scope.newIndex
|
|
1295
1320
|
* })
|
|
1296
1321
|
* ```
|
|
1297
1322
|
*/
|
|
@@ -1381,6 +1406,7 @@ declare const setOperationData: TOperation<ISetOperationData, Omit<ISetOperation
|
|
|
1381
1406
|
//#region src/operation/set-style.d.ts
|
|
1382
1407
|
interface ISetStyleOperationData {
|
|
1383
1408
|
/**
|
|
1409
|
+
* @type=ParameterType:cssProperties
|
|
1384
1410
|
* @required
|
|
1385
1411
|
* @erased
|
|
1386
1412
|
*/
|
|
@@ -1404,6 +1430,7 @@ interface ISetVariableOperationData {
|
|
|
1404
1430
|
*/
|
|
1405
1431
|
name: string;
|
|
1406
1432
|
/**
|
|
1433
|
+
* @type=ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array
|
|
1407
1434
|
* @required
|
|
1408
1435
|
* @erased
|
|
1409
1436
|
*/
|
|
@@ -1490,7 +1517,7 @@ declare const wait: TOperation<IWaitOperationData>;
|
|
|
1490
1517
|
//#endregion
|
|
1491
1518
|
//#region src/operation/when.d.ts
|
|
1492
1519
|
type TOperator = '!=' | '==' | '>=' | '<=' | '>' | '<';
|
|
1493
|
-
type TValue = `'${string}'` | number |
|
|
1520
|
+
type TValue = `'${string}'` | number | `$operationdata.${string}` | `$globaldata.${string}` | `$scope.${string}`;
|
|
1494
1521
|
type TExpression = `${TValue}${TOperator}${TValue}`;
|
|
1495
1522
|
interface IWhenOperationData {
|
|
1496
1523
|
/**
|
|
@@ -1511,24 +1538,24 @@ interface IWhenOperationData {
|
|
|
1511
1538
|
*
|
|
1512
1539
|
* 'constant': for a constant string
|
|
1513
1540
|
* 100: for a constant number
|
|
1514
|
-
* operationData.foo: for an operation data value
|
|
1515
|
-
* globaldata.foo: for a global data value
|
|
1516
|
-
* scope.loopIndex: for a scope value
|
|
1541
|
+
* $operationData.foo: for an operation data value
|
|
1542
|
+
* $globaldata.foo: for a global data value
|
|
1543
|
+
* $scope.loopIndex: for a scope value
|
|
1517
1544
|
* @foo: for a variable value
|
|
1518
1545
|
*
|
|
1519
1546
|
* @example
|
|
1520
|
-
*
|
|
1547
|
+
* $scope.variables.foo=='bar'
|
|
1521
1548
|
* @example
|
|
1522
|
-
* globalData.foo
|
|
1549
|
+
* $globalData.foo>$scope.variables.bar
|
|
1523
1550
|
* @example
|
|
1524
|
-
* operationData.foo!=100
|
|
1551
|
+
* $operationData.foo!=100
|
|
1525
1552
|
*
|
|
1526
1553
|
* @param operationData
|
|
1527
1554
|
* @returns
|
|
1528
1555
|
*/
|
|
1529
1556
|
declare const when: TOperation<IWhenOperationData>;
|
|
1530
1557
|
declare namespace index_d_exports$1 {
|
|
1531
|
-
export { ExtractOperationData, ExtractReturnedOperationData, IOperationScope, TOperation, TOperationData, TOperationResult, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, broadcastEvent, calc, clearElement, clearOperationData, createElement, customFunction, endAction, endForEach, endWhen, extendController, forEach, getAttributesFromElement, getControllerFromElement, getControllerInstance, getElementDimensions, getImport, getQueryParams, invokeObjectMethod, loadJson, log, math, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
|
|
1558
|
+
export { ExtractOperationData, ExtractReturnedOperationData, IAddClassOperationData, IAddControllerToElementOperationData, IAnimateOperationData, IAnimateWithClassOperationData, IBroadcastEventOperationData, ICalcOperationData, IClearElementOperationData, IClearOperationDataOperationData, ICreateElementOperationData, ICustomFunctionOperationData, IEndActionOperationData, IExtendControllerOperationData, IForEachOperationData, IGetAttributesFromElementOperationData, IGetControllerFromElementOperationData, IGetControllerInstanceOperationData, IGetElementDimensionsOperationData, IGetImportOperationData, IGetQueryParamsOperationData, IInvokeObjectMethodOperationData, ILogOperationData, IMathOperationData, IOperationScope, IRemoveClassOperationData, IRemoveControllerFromElementOperationData, IRemoveElementOperationData, IRemovePropertiesFromOperationDataOperationData, IReparentElementOperationData, IRequestActionOperationData, ISelectElementOperationData, ISetDataOperationData, ISetElementAttributesOperationData, ISetElementContentOperationData, ISetGlobalDataOperationData, ISetStyleOperationData, ISetVariableOperationData, IStartActionOperationData, IToggleClassOperationData, IToggleElementOperationData, IWaitOperationData, IWhenOperationData, TOperation, TOperationData, TOperationResult, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, forEach, getAttributesFromElement, getControllerFromElement, getControllerInstance, getElementDimensions, getImport, getQueryParams, invokeObjectMethod, loadJson, log, math, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
|
|
1532
1559
|
}
|
|
1533
1560
|
//#endregion
|
|
1534
1561
|
//#region src/configuration/types.d.ts
|
|
@@ -1796,7 +1823,7 @@ declare class EndableActionEditor<T extends IEndableActionConfiguration = IEndab
|
|
|
1796
1823
|
* @param operationData
|
|
1797
1824
|
* @returns
|
|
1798
1825
|
*/
|
|
1799
|
-
addEndOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddClassOperationData> | TOperation<IAddControllerToElementOperationData<TOperationData>> | TOperation<IAddGlobalsToOperationData> | TOperation<IAnimateOperationData> | TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>> | TOperation<IBroadcastEventOperationData> | TOperation<ICalcOperationData> | TOperation<IClearElementOperationData> | TOperation<IClearOperationDataOperationData> | TOperation<ICreateElementOperationData<keyof HTMLElementTagNameMap>, RequireKeys<ICreateElementOperationData<keyof HTMLElementTagNameMap>, "template">> | TOperation<ICustomFunctionOperationData> | TOperation<IEndActionOperationData> | TOperation<
|
|
1826
|
+
addEndOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddClassOperationData> | TOperation<IAddControllerToElementOperationData<TOperationData>> | TOperation<IAddGlobalsToOperationData> | TOperation<IAnimateOperationData> | TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>> | TOperation<TOperationData> | TOperation<IBroadcastEventOperationData> | TOperation<ICalcOperationData> | TOperation<IClearElementOperationData> | TOperation<IClearOperationDataOperationData> | TOperation<ICreateElementOperationData<keyof HTMLElementTagNameMap>, RequireKeys<ICreateElementOperationData<keyof HTMLElementTagNameMap>, "template">> | TOperation<ICustomFunctionOperationData> | TOperation<IEndActionOperationData> | TOperation<Record<string, unknown>> | TOperation<IExtendControllerOperationData> | TOperation<IForEachOperationData> | TOperation<IGetAttributesFromElementOperationData> | TOperation<IGetControllerFromElementOperationData> | TOperation<IGetControllerInstanceOperationData> | TOperation<IGetElementDimensionsOperationData> | TOperation<IGetImportOperationData, Omit<RequireKeys<IGetImportOperationData, "importedInstance">, "systemName">> | TOperation<IGetQueryParamsOperationData> | TOperation<IInvokeObjectMethodOperationData, Omit<IInvokeObjectMethodOperationData, "methodName" | "methodArguments">> | TOperation<ILoadJSONOperationData> | TOperation<ILogOperationData> | TOperation<IMathOperationData, Omit<IMathOperationData, "args" | "functionName">> | TOperation<IRemoveClassOperationData> | TOperation<IRemoveControllerFromElementOperationData> | TOperation<IRemoveElementOperationData> | TOperation<IRemovePropertiesFromOperationDataOperationData, Omit<IRemovePropertiesFromOperationDataOperationData, "propertyNames">> | TOperation<IReparentElementOperationData> | TOperation<IRequestActionOperationData, Required<IRequestActionOperationData>> | TOperation<ISelectElementOperationData> | TOperation<ISetDataOperationData> | TOperation<ISetElementAttributesOperationData> | TOperation<ISetElementContentOperationData> | TOperation<ISetGlobalDataOperationData, Omit<ISetGlobalDataOperationData, "propertyNames">> | TOperation<ISetOperationData, Omit<ISetOperationData, "override" | "properties">> | TOperation<ISetStyleOperationData> | TOperation<ISetVariableOperationData> | TOperation<IStartActionOperationData> | TOperation<IToggleClassOperationData> | TOperation<IToggleElementOperationData> | TOperation<IWaitOperationData> | TOperation<IWhenOperationData>>;
|
|
1800
1827
|
/**
|
|
1801
1828
|
*
|
|
1802
1829
|
* Starts an editor for the end operation associated with the given id
|
|
@@ -2505,7 +2532,7 @@ interface IOperationMetadata<T> {
|
|
|
2505
2532
|
outputProperties?: TPropertiesMetadata<T>;
|
|
2506
2533
|
}
|
|
2507
2534
|
type TParameterTypesDelimited = `${TParameterTypes}` | `${TParameterTypes}|${string}`;
|
|
2508
|
-
type TParameterTypes = 'ParameterType:htmlElementName' | 'ParameterType:className' | 'ParameterType:selector' | 'ParameterType:string' | 'ParameterType:number' | 'ParameterType:object' | 'ParameterType:boolean' | 'ParameterType:array' | 'ParameterType:eventTopic' | 'ParameterType:eventName' | 'ParameterType:systemName' | 'ParameterType:actionName' | 'ParameterType:controllerName' | 'ParameterType:dimensions' | 'ParameterType:dimensionsModifier' | 'ParameterType:url' | 'ParameterType:htmlContent' | 'ParameterType:labelId' | 'ParameterType:ImagePath' | 'ParameterType:QuadrantPosition' | 'ParameterType:jQuery' | 'ParameterType:expression' | 'ParameterType:mathfunction';
|
|
2535
|
+
type TParameterTypes = 'ParameterType:htmlElementName' | 'ParameterType:className' | 'ParameterType:selector' | 'ParameterType:string' | 'ParameterType:number' | 'ParameterType:object' | 'ParameterType:boolean' | 'ParameterType:array' | 'ParameterType:eventTopic' | 'ParameterType:eventName' | 'ParameterType:systemName' | 'ParameterType:actionName' | 'ParameterType:controllerName' | 'ParameterType:dimensions' | 'ParameterType:dimensionsModifier' | 'ParameterType:url' | 'ParameterType:htmlContent' | 'ParameterType:labelId' | 'ParameterType:ImagePath' | 'ParameterType:QuadrantPosition' | 'ParameterType:jQuery' | 'ParameterType:expression' | 'ParameterType:mathfunction' | 'ParameterType:cssProperties';
|
|
2509
2536
|
//#endregion
|
|
2510
2537
|
//#region src/operation/metadata/add-class.d.ts
|
|
2511
2538
|
declare function addClass$1(): IOperationMetadata<IAddClassOperationData>;
|
|
@@ -2522,6 +2549,9 @@ declare function animateWithClass$1(): IOperationMetadata<IAnimateWithClassOpera
|
|
|
2522
2549
|
//#region src/operation/metadata/animate.d.ts
|
|
2523
2550
|
declare function animate$1(): IOperationMetadata<IAnimateOperationData>;
|
|
2524
2551
|
//#endregion
|
|
2552
|
+
//#region src/operation/metadata/break-for-each.d.ts
|
|
2553
|
+
declare function breakForEach$1(): IOperationMetadata<undefined>;
|
|
2554
|
+
//#endregion
|
|
2525
2555
|
//#region src/operation/metadata/broadcast-event.d.ts
|
|
2526
2556
|
declare function broadcastEvent$1(): IOperationMetadata<IBroadcastEventOperationData>;
|
|
2527
2557
|
//#endregion
|
|
@@ -2534,6 +2564,9 @@ declare function clearElement$1(): IOperationMetadata<IClearElementOperationData
|
|
|
2534
2564
|
//#region src/operation/metadata/clear-operation-data.d.ts
|
|
2535
2565
|
declare function clearOperationData$1(): IOperationMetadata<IClearOperationDataOperationData>;
|
|
2536
2566
|
//#endregion
|
|
2567
|
+
//#region src/operation/metadata/continue-for-each.d.ts
|
|
2568
|
+
declare function continueForEach$1(): IOperationMetadata<undefined>;
|
|
2569
|
+
//#endregion
|
|
2537
2570
|
//#region src/operation/metadata/create-element.d.ts
|
|
2538
2571
|
declare function createElement$1(): IOperationMetadata<ICreateElementOperationData<TTagNames>>;
|
|
2539
2572
|
//#endregion
|
|
@@ -2645,7 +2678,7 @@ declare function wait$1(): IOperationMetadata<IWaitOperationData>;
|
|
|
2645
2678
|
//#region src/operation/metadata/when.d.ts
|
|
2646
2679
|
declare function when$1(): IOperationMetadata<IWhenOperationData>;
|
|
2647
2680
|
declare namespace index_d_exports {
|
|
2648
|
-
export { IOperationMetadata, TArrayProperyMetadata, TComplexPropertyMetadata, TConstantParametersTypes, THasDescription, THasErased, THasRequired, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, addClass$1 as addClass, addControllerToElement$1 as addControllerToElement, addGlobalsToOperation$1 as addGlobalsToOperation, animate$1 as animate, animateWithClass$1 as animateWithClass, broadcastEvent$1 as broadcastEvent, calc$1 as calc, clearElement$1 as clearElement, clearOperationData$1 as clearOperationData, createElement$1 as createElement, customFunction$1 as customFunction, endAction$1 as endAction, endForEach$1 as endForEach, endWhen$1 as endWhen, extendController$1 as extendController, forEach$1 as forEach, getAttributesFromElement$1 as getAttributesFromElement, getControllerFromElement$1 as getControllerFromElement, getControllerInstance$1 as getControllerInstance, getElementDimensions$1 as getElementDimensions, getImport$1 as getImport, getQueryParams$1 as getQueryParams, invokeObjectMethod$1 as invokeObjectMethod, loadJson$1 as loadJson, log$1 as log, math$1 as math, otherwise$1 as otherwise, removeClass$1 as removeClass, removeControllerFromElement$1 as removeControllerFromElement, removeElement$1 as removeElement, removePropertiesFromOperationData$1 as removePropertiesFromOperationData, reparentElement$1 as reparentElement, requestAction$1 as requestAction, selectElement$1 as selectElement, setData$1 as setData, setElementAttributes$1 as setElementAttributes, setElementContent$1 as setElementContent, setGlobalData$1 as setGlobalData, setOperationData$1 as setOperationData, setStyle$1 as setStyle, setVariable$1 as setVariable, startAction$1 as startAction, toggleClass$1 as toggleClass, toggleElement$1 as toggleElement, wait$1 as wait, when$1 as when };
|
|
2681
|
+
export { IOperationMetadata, TArrayProperyMetadata, TComplexPropertyMetadata, TConstantParametersTypes, THasDescription, THasErased, THasRequired, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, addClass$1 as addClass, addControllerToElement$1 as addControllerToElement, addGlobalsToOperation$1 as addGlobalsToOperation, animate$1 as animate, animateWithClass$1 as animateWithClass, breakForEach$1 as breakForEach, broadcastEvent$1 as broadcastEvent, calc$1 as calc, clearElement$1 as clearElement, clearOperationData$1 as clearOperationData, continueForEach$1 as continueForEach, createElement$1 as createElement, customFunction$1 as customFunction, endAction$1 as endAction, endForEach$1 as endForEach, endWhen$1 as endWhen, extendController$1 as extendController, forEach$1 as forEach, getAttributesFromElement$1 as getAttributesFromElement, getControllerFromElement$1 as getControllerFromElement, getControllerInstance$1 as getControllerInstance, getElementDimensions$1 as getElementDimensions, getImport$1 as getImport, getQueryParams$1 as getQueryParams, invokeObjectMethod$1 as invokeObjectMethod, loadJson$1 as loadJson, log$1 as log, math$1 as math, otherwise$1 as otherwise, removeClass$1 as removeClass, removeControllerFromElement$1 as removeControllerFromElement, removeElement$1 as removeElement, removePropertiesFromOperationData$1 as removePropertiesFromOperationData, reparentElement$1 as reparentElement, requestAction$1 as requestAction, selectElement$1 as selectElement, setData$1 as setData, setElementAttributes$1 as setElementAttributes, setElementContent$1 as setElementContent, setGlobalData$1 as setGlobalData, setOperationData$1 as setOperationData, setStyle$1 as setStyle, setVariable$1 as setVariable, startAction$1 as startAction, toggleClass$1 as toggleClass, toggleElement$1 as toggleElement, wait$1 as wait, when$1 as when };
|
|
2649
2682
|
}
|
|
2650
2683
|
//#endregion
|
|
2651
2684
|
//#region src/timeline-event-names.d.ts
|
|
@@ -3100,5 +3133,5 @@ declare class VideoJsTimelineProvider implements ITimelineProvider {
|
|
|
3100
3133
|
_extractFileType(url: string): string;
|
|
3101
3134
|
}
|
|
3102
3135
|
//#endregion
|
|
3103
|
-
export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, Controllers, DEV_TOOLS_KEY, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, EventListenerController, Eventbus, ExtractOperationData, ExtractOperationDataType, ExtractReturnedOperationData, GetControllerByName, GetOperationByName, IAction, IActionConfiguration, IConfigurationResolver, IController, IDiagnosticsAgent, IDiagnosticsInfo, IDimensions, IDuration, IEligiusEngine, IEndableAction, IEndableActionConfiguration, IEngineConfiguration, IEngineFactory, IEngineFactoryOptions, IEngineInfo, IEventActionConfiguration, IEventbus, IEventbusInterceptor, IEventbusListener, ILabel, ILanguageLabel, IOperationConfiguration, IOperationScope, IPlayControlEvent, IResolvedActionConfiguration, IResolvedEndableActionConfiguration, IResolvedEngineConfiguration, IResolvedOperation, IResolvedTimelineConfiguration, IResourceImporter, ISimpleResourceImporter, IStrictDuration, ISubtitle, ISubtitleCollection, ITimelineAction, ITimelineActionConfiguration, ITimelineConfiguration, ITimelineFlow, ITimelineProvider, ITimelineProviderInfo, ITimelineProviderSettings, KeysOfType, LabelController, LanguageManager, LottieController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, Operations, ProgressbarController, RequestAnimationFrameTimelineProvider, RequestVideoUriInterceptor, RequireKeys, RoutingController, SubtitleEditor, SubtitleImporter, SubtitlesController, TControllerName, TControllerType, TDevToolsEventSubscriber, TDevToolsMessage, TDiagnosticType, TDiagnosticsMessageSource, TEngineConfigurationLists, TEventData, TEventHandler, TEventbusRemover, TLanguageCode, TOperation, TOperationData, TOperationName, TOperationResult, TOperationType, TPlayControlEventKind, TPlayState, TResultCallback, TTimelineProviderSettings, TWindowWithDevtools, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineEventNames, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, TimelineTypes, 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, index_d_exports as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
|
|
3136
|
+
export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, Controllers, DEV_TOOLS_KEY, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, EventListenerController, Eventbus, ExtractOperationData, ExtractOperationDataType, ExtractReturnedOperationData, GetControllerByName, GetOperationByName, IAction, IActionConfiguration, type IAddClassOperationData, type IAddControllerToElementOperationData, type IAnimateOperationData, type IAnimateWithClassOperationData, type IBroadcastEventOperationData, type ICalcOperationData, type IClearElementOperationData, type IClearOperationDataOperationData, IConfigurationResolver, IController, type ICreateElementOperationData, type ICustomFunctionOperationData, IDiagnosticsAgent, IDiagnosticsInfo, IDimensions, IDuration, IEligiusEngine, type IEndActionOperationData, IEndableAction, IEndableActionConfiguration, IEngineConfiguration, IEngineFactory, IEngineFactoryOptions, IEngineInfo, IEventActionConfiguration, type IEventListenerControllerOperationData, IEventbus, IEventbusInterceptor, IEventbusListener, type IExtendControllerOperationData, type IForEachOperationData, type IGetAttributesFromElementOperationData, type IGetControllerFromElementOperationData, type IGetControllerInstanceOperationData, type IGetElementDimensionsOperationData, type IGetImportOperationData, type IGetQueryParamsOperationData, type IInvokeObjectMethodOperationData, ILabel, type ILabelControllerMetadata, ILanguageLabel, type ILogOperationData, type ILottieControllerMetadata, type IMathOperationData, type INavigationControllerOperationData, IOperationConfiguration, IOperationScope, IPlayControlEvent, type IProgressbarControllerOperationData, type IRemoveClassOperationData, type IRemoveControllerFromElementOperationData, type IRemoveElementOperationData, type IRemovePropertiesFromOperationDataOperationData, type IReparentElementOperationData, type IRequestActionOperationData, IResolvedActionConfiguration, IResolvedEndableActionConfiguration, IResolvedEngineConfiguration, IResolvedOperation, IResolvedTimelineConfiguration, IResourceImporter, type IRoutingControllerOperationData, type ISelectElementOperationData, type ISetDataOperationData, type ISetElementAttributesOperationData, type ISetElementContentOperationData, type ISetGlobalDataOperationData, type ISetStyleOperationData, type ISetVariableOperationData, ISimpleResourceImporter, type IStartActionOperationData, IStrictDuration, ISubtitle, ISubtitleCollection, type ISubtitlesControllerOperationData, ITimelineAction, ITimelineActionConfiguration, ITimelineConfiguration, ITimelineFlow, ITimelineProvider, ITimelineProviderInfo, ITimelineProviderSettings, type IToggleClassOperationData, type IToggleElementOperationData, type IWaitOperationData, type IWhenOperationData, KeysOfType, LabelController, LanguageManager, LottieController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, Operations, ProgressbarController, RequestAnimationFrameTimelineProvider, RequestVideoUriInterceptor, RequireKeys, RoutingController, SubtitleEditor, SubtitleImporter, SubtitlesController, TControllerName, TControllerType, TDevToolsEventSubscriber, TDevToolsMessage, TDiagnosticType, TDiagnosticsMessageSource, TEngineConfigurationLists, TEventData, TEventHandler, TEventbusRemover, TLanguageCode, TOperation, TOperationData, TOperationName, TOperationResult, TOperationType, TPlayControlEventKind, TPlayState, TResultCallback, TTimelineProviderSettings, TWindowWithDevtools, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineEventNames, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, TimelineTypes, VideoJsTimelineProvider, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, forEach, generateImporterSourceCode, getAttributesFromElement, getControllerFromElement, getControllerInstance, getElementDimensions, getImport, getQueryParams, invokeObjectMethod, loadJson, log, math, index_d_exports as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
|
|
3104
3137
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -114,14 +114,6 @@ 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
|
-
|
|
125
117
|
//#endregion
|
|
126
118
|
//#region src/operation/helper/get-property-chain-value.ts
|
|
127
119
|
/**
|
|
@@ -199,15 +191,15 @@ function resolveExternalPropertyChain(sourceObject, operationScope, propertyChai
|
|
|
199
191
|
if (isExternalProperty(propertyChainOrRegularObject)) {
|
|
200
192
|
const propNames = propertyChainOrRegularObject.split(".");
|
|
201
193
|
switch (propNames.shift().toLowerCase()) {
|
|
202
|
-
case "operationdata": return getPropertyChainValue(propNames, sourceObject);
|
|
203
|
-
case "globaldata": return getPropertyChainValue(propNames, getGlobals());
|
|
204
|
-
case "scope": return getPropertyChainValue(propNames, operationScope);
|
|
194
|
+
case "$operationdata": return getPropertyChainValue(propNames, sourceObject);
|
|
195
|
+
case "$globaldata": return getPropertyChainValue(propNames, getGlobals());
|
|
196
|
+
case "$scope": return getPropertyChainValue(propNames, operationScope);
|
|
205
197
|
}
|
|
206
198
|
}
|
|
207
199
|
return propertyChainOrRegularObject;
|
|
208
200
|
}
|
|
209
201
|
function isExternalProperty(value) {
|
|
210
|
-
return typeof value === "string" && (value.toLocaleLowerCase().startsWith("operationdata.") || value.toLocaleLowerCase().startsWith("globaldata.") || value.toLocaleLowerCase().startsWith("scope.")
|
|
202
|
+
return typeof value === "string" && (value.toLocaleLowerCase().startsWith("$operationdata.") || value.toLocaleLowerCase().startsWith("$globaldata.") || value.toLocaleLowerCase().startsWith("$scope."));
|
|
211
203
|
}
|
|
212
204
|
|
|
213
205
|
//#endregion
|
|
@@ -216,15 +208,19 @@ function isExternalProperty(value) {
|
|
|
216
208
|
* This operation iterates over the given collection.
|
|
217
209
|
*
|
|
218
210
|
* Each iteration the current item from the specified collection is
|
|
219
|
-
* assigned to the {@link IOperationScope.currentItem} property on the operation scope.
|
|
211
|
+
* assigned to the {@link IOperationScope.currentItem|currentItem} property on the {@link IOperationScope|operation scope}.
|
|
220
212
|
*
|
|
221
213
|
* At the start of the loop, the associated {@link endForEach} operation is determined and when
|
|
222
214
|
* the last iteration is completed the flow control is set to the index of that operation.
|
|
215
|
+
*
|
|
216
|
+
* The {@link continueForEach|continue} and {@link breakForEach|break} operations can be used to control the
|
|
217
|
+
* loop iterations.
|
|
218
|
+
*
|
|
223
219
|
*/
|
|
224
220
|
const forEach = function(operationData) {
|
|
225
221
|
const { collection } = operationData;
|
|
226
|
-
const resolvedCollection = typeof collection === "string" ?
|
|
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");
|
|
222
|
+
const resolvedCollection = typeof collection === "string" ? resolveExternalPropertyChain(operationData, this, collection) : collection;
|
|
223
|
+
if (resolvedCollection !== null && resolvedCollection !== void 0 && !Array.isArray(resolvedCollection)) throw new Error("Expected resolved collection property to be array type, string value was probably not resolved correctly");
|
|
228
224
|
if (this.loopIndex === void 0) {
|
|
229
225
|
this.loopEndIndex = findEndForEachIndex(this);
|
|
230
226
|
if (resolvedCollection?.length) {
|
|
@@ -267,17 +263,17 @@ const endForEachSystemName = "endForEach";
|
|
|
267
263
|
*
|
|
268
264
|
* 'constant': for a constant string
|
|
269
265
|
* 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
|
|
266
|
+
* $operationData.foo: for an operation data value
|
|
267
|
+
* $globaldata.foo: for a global data value
|
|
268
|
+
* $scope.loopIndex: for a scope value
|
|
273
269
|
* @foo: for a variable value
|
|
274
270
|
*
|
|
275
271
|
* @example
|
|
276
|
-
*
|
|
272
|
+
* $scope.variables.foo=='bar'
|
|
277
273
|
* @example
|
|
278
|
-
* globalData.foo
|
|
274
|
+
* $globalData.foo>$scope.variables.bar
|
|
279
275
|
* @example
|
|
280
|
-
* operationData.foo!=100
|
|
276
|
+
* $operationData.foo!=100
|
|
281
277
|
*
|
|
282
278
|
* @param operationData
|
|
283
279
|
* @returns
|
|
@@ -296,9 +292,9 @@ function parseExpression(expression, operationData, operationScope) {
|
|
|
296
292
|
const leftNr = parseFloat(left);
|
|
297
293
|
const rightNr = parseFloat(right);
|
|
298
294
|
return [
|
|
299
|
-
Number.isNaN(leftNr) ?
|
|
295
|
+
Number.isNaN(leftNr) ? resolveExternalPropertyChain(operationData, operationScope, left) : leftNr,
|
|
300
296
|
operator,
|
|
301
|
-
Number.isNaN(rightNr) ?
|
|
297
|
+
Number.isNaN(rightNr) ? resolveExternalPropertyChain(operationData, operationScope, right) : rightNr
|
|
302
298
|
];
|
|
303
299
|
}
|
|
304
300
|
const evaluations = {
|
|
@@ -734,6 +730,26 @@ const animateWithClass = (operationData) => {
|
|
|
734
730
|
return promise;
|
|
735
731
|
};
|
|
736
732
|
|
|
733
|
+
//#endregion
|
|
734
|
+
//#region src/operation/break-for-each.ts
|
|
735
|
+
/**
|
|
736
|
+
*
|
|
737
|
+
* This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
738
|
+
* operation. This operation immediately moves to the loop end index, effectively stopping the loop.
|
|
739
|
+
*
|
|
740
|
+
*/
|
|
741
|
+
const breakForEach = function(operationData) {
|
|
742
|
+
if (this.loopIndex !== void 0 && this.loopLength !== void 0) {
|
|
743
|
+
this.newIndex = this.loopEndIndex;
|
|
744
|
+
delete this.loopIndex;
|
|
745
|
+
delete this.loopLength;
|
|
746
|
+
delete this.loopStartIndex;
|
|
747
|
+
delete this.loopEndIndex;
|
|
748
|
+
delete this.currentItem;
|
|
749
|
+
}
|
|
750
|
+
return operationData;
|
|
751
|
+
};
|
|
752
|
+
|
|
737
753
|
//#endregion
|
|
738
754
|
//#region src/operation/helper/resolve-event-arguments.ts
|
|
739
755
|
function resolveEventArguments(operationData, operationScope, eventArgs) {
|
|
@@ -848,6 +864,23 @@ const clearOperationData = (operationData) => {
|
|
|
848
864
|
return {};
|
|
849
865
|
};
|
|
850
866
|
|
|
867
|
+
//#endregion
|
|
868
|
+
//#region src/operation/continue-for-each.ts
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
872
|
+
* operation. This operation immediately moves to the next loop index, effectively canceling the rest
|
|
873
|
+
* of the operations in the current iteration.
|
|
874
|
+
*
|
|
875
|
+
*/
|
|
876
|
+
const continueForEach = function(operationData) {
|
|
877
|
+
if (this.loopIndex !== void 0 && this.loopLength !== void 0) {
|
|
878
|
+
this.newIndex = this.loopEndIndex;
|
|
879
|
+
delete this.currentItem;
|
|
880
|
+
}
|
|
881
|
+
return operationData;
|
|
882
|
+
};
|
|
883
|
+
|
|
851
884
|
//#endregion
|
|
852
885
|
//#region src/operation/create-element.ts
|
|
853
886
|
/**
|
|
@@ -1326,8 +1359,9 @@ const loadJson = async (operationData) => {
|
|
|
1326
1359
|
*/
|
|
1327
1360
|
const log = function(operationData) {
|
|
1328
1361
|
if ("logValue" in operationData) {
|
|
1329
|
-
console.log("logValue", operationData.logValue);
|
|
1362
|
+
console.log(operationData.logName ?? "logValue", operationData.logValue);
|
|
1330
1363
|
delete operationData.logValue;
|
|
1364
|
+
delete operationData.logName;
|
|
1331
1365
|
} else {
|
|
1332
1366
|
const globalData = getGlobals();
|
|
1333
1367
|
console.group("Operation info");
|
|
@@ -1518,9 +1552,9 @@ const selectElement = function(operationData) {
|
|
|
1518
1552
|
* @example The various ways of assigning data
|
|
1519
1553
|
* ```ts
|
|
1520
1554
|
* setData({
|
|
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
|
|
1555
|
+
* '$operationdata.foo': '$scope.currentItem', // $scope.currentItem will be assigned to $operationdata.foo
|
|
1556
|
+
* '$globaldata.foo': '$scope.currentItem', // $scope.currentItem will be assigned to $globaldata.foo
|
|
1557
|
+
* '$scope.newIndex': 100, // The constant 100 will be assigned to $scope.newIndex
|
|
1524
1558
|
* })
|
|
1525
1559
|
* ```
|
|
1526
1560
|
*/
|
|
@@ -1533,7 +1567,7 @@ const setData = function(operationData) {
|
|
|
1533
1567
|
function resolveTargets(data, operationData, scope) {
|
|
1534
1568
|
return Object.keys(data).forEach((item) => {
|
|
1535
1569
|
const path$1 = item.split(".");
|
|
1536
|
-
const rootTarget = path$1.shift()?.toLowerCase() ?? "";
|
|
1570
|
+
const rootTarget = path$1.shift()?.toLowerCase().substring(1) ?? "";
|
|
1537
1571
|
if (!isDataTarget(rootTarget)) throw new Error(`Unrecognized target: ${rootTarget}, known targets are: ${knownTargets.join(", ")}`);
|
|
1538
1572
|
const property = path$1.pop() ?? "";
|
|
1539
1573
|
const propertyValue = resolveExternalPropertyChain(operationData, scope, data[item]);
|
|
@@ -1726,10 +1760,12 @@ var operation_exports = /* @__PURE__ */ __export({
|
|
|
1726
1760
|
addGlobalsToOperation: () => addGlobalsToOperation,
|
|
1727
1761
|
animate: () => animate,
|
|
1728
1762
|
animateWithClass: () => animateWithClass,
|
|
1763
|
+
breakForEach: () => breakForEach,
|
|
1729
1764
|
broadcastEvent: () => broadcastEvent,
|
|
1730
1765
|
calc: () => calc,
|
|
1731
1766
|
clearElement: () => clearElement,
|
|
1732
1767
|
clearOperationData: () => clearOperationData,
|
|
1768
|
+
continueForEach: () => continueForEach,
|
|
1733
1769
|
createElement: () => createElement,
|
|
1734
1770
|
customFunction: () => customFunction,
|
|
1735
1771
|
endAction: () => endAction,
|
|
@@ -4009,6 +4045,14 @@ It resolves after the animation completes.`,
|
|
|
4009
4045
|
};
|
|
4010
4046
|
}
|
|
4011
4047
|
|
|
4048
|
+
//#endregion
|
|
4049
|
+
//#region src/operation/metadata/break-for-each.ts
|
|
4050
|
+
function breakForEach$1() {
|
|
4051
|
+
return { description: `
|
|
4052
|
+
This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
4053
|
+
operation. This operation immediately moves to the loop end index, effectively stopping the loop.` };
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4012
4056
|
//#endregion
|
|
4013
4057
|
//#region src/operation/metadata/broadcast-event.ts
|
|
4014
4058
|
function broadcastEvent$1() {
|
|
@@ -4090,6 +4134,15 @@ Or, if the \`properties\` property is set only removes the properties defined by
|
|
|
4090
4134
|
};
|
|
4091
4135
|
}
|
|
4092
4136
|
|
|
4137
|
+
//#endregion
|
|
4138
|
+
//#region src/operation/metadata/continue-for-each.ts
|
|
4139
|
+
function continueForEach$1() {
|
|
4140
|
+
return { description: `
|
|
4141
|
+
This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
4142
|
+
operation. This operation immediately moves to the next loop index, effectively canceling the rest
|
|
4143
|
+
of the operations in the current iteration.` };
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4093
4146
|
//#endregion
|
|
4094
4147
|
//#region src/operation/metadata/create-element.ts
|
|
4095
4148
|
function createElement$1() {
|
|
@@ -4180,10 +4233,13 @@ function forEach$1() {
|
|
|
4180
4233
|
description: `This operation iterates over the given collection.
|
|
4181
4234
|
|
|
4182
4235
|
Each iteration the current item from the specified collection is
|
|
4183
|
-
assigned to the {@link IOperationScope.currentItem} property on the operation scope.
|
|
4236
|
+
assigned to the {@link IOperationScope.currentItem |currentItem} property on the {@link IOperationScope |operation scope}.
|
|
4184
4237
|
|
|
4185
4238
|
At the start of the loop, the associated {@link endForEach} operation is determined and when
|
|
4186
|
-
the last iteration is completed the flow control is set to the index of that operation
|
|
4239
|
+
the last iteration is completed the flow control is set to the index of that operation.
|
|
4240
|
+
|
|
4241
|
+
The {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the
|
|
4242
|
+
loop iterations.`,
|
|
4187
4243
|
properties: { collection: {
|
|
4188
4244
|
type: "ParameterType:array|ParameterType:string",
|
|
4189
4245
|
required: true
|
|
@@ -4352,10 +4408,16 @@ function log$1() {
|
|
|
4352
4408
|
return {
|
|
4353
4409
|
description: `This operation logs the specified value, or, when no logValue property has been assigned
|
|
4354
4410
|
it will log the current operation data, global data and scope to the console`,
|
|
4355
|
-
properties: {
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4411
|
+
properties: {
|
|
4412
|
+
logValue: {
|
|
4413
|
+
type: "ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array",
|
|
4414
|
+
erased: true
|
|
4415
|
+
},
|
|
4416
|
+
logName: {
|
|
4417
|
+
type: "ParameterType:string",
|
|
4418
|
+
erased: true
|
|
4419
|
+
}
|
|
4420
|
+
}
|
|
4359
4421
|
};
|
|
4360
4422
|
}
|
|
4361
4423
|
|
|
@@ -4598,7 +4660,7 @@ function setStyle$1() {
|
|
|
4598
4660
|
given selected element.`,
|
|
4599
4661
|
dependentProperties: ["selectedElement"],
|
|
4600
4662
|
properties: { properties: {
|
|
4601
|
-
type: "ParameterType:
|
|
4663
|
+
type: "ParameterType:cssProperties",
|
|
4602
4664
|
required: true,
|
|
4603
4665
|
erased: true
|
|
4604
4666
|
} }
|
|
@@ -4617,7 +4679,7 @@ function setVariable$1() {
|
|
|
4617
4679
|
erased: true
|
|
4618
4680
|
},
|
|
4619
4681
|
value: {
|
|
4620
|
-
type: "ParameterType:object",
|
|
4682
|
+
type: "ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array",
|
|
4621
4683
|
required: true,
|
|
4622
4684
|
erased: true
|
|
4623
4685
|
}
|
|
@@ -4698,9 +4760,9 @@ The left and right values of the expression can be defined like this:
|
|
|
4698
4760
|
|
|
4699
4761
|
'constant': for a constant string
|
|
4700
4762
|
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`,
|
|
4763
|
+
$operationData.foo: for an operation data value
|
|
4764
|
+
$globaldata.foo: for a global data value
|
|
4765
|
+
$scope.loopIndex: for a scope value`,
|
|
4704
4766
|
properties: { expression: {
|
|
4705
4767
|
type: "ParameterType:expression",
|
|
4706
4768
|
required: true,
|
|
@@ -4717,10 +4779,12 @@ var metadata_exports = /* @__PURE__ */ __export({
|
|
|
4717
4779
|
addGlobalsToOperation: () => addGlobalsToOperation$1,
|
|
4718
4780
|
animate: () => animate$1,
|
|
4719
4781
|
animateWithClass: () => animateWithClass$1,
|
|
4782
|
+
breakForEach: () => breakForEach$1,
|
|
4720
4783
|
broadcastEvent: () => broadcastEvent$1,
|
|
4721
4784
|
calc: () => calc$1,
|
|
4722
4785
|
clearElement: () => clearElement$1,
|
|
4723
4786
|
clearOperationData: () => clearOperationData$1,
|
|
4787
|
+
continueForEach: () => continueForEach$1,
|
|
4724
4788
|
createElement: () => createElement$1,
|
|
4725
4789
|
customFunction: () => customFunction$1,
|
|
4726
4790
|
endAction: () => endAction$1,
|
|
@@ -5755,5 +5819,5 @@ var EligiusResourceImporter = class {
|
|
|
5755
5819
|
};
|
|
5756
5820
|
|
|
5757
5821
|
//#endregion
|
|
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 };
|
|
5822
|
+
export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, DEV_TOOLS_KEY, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, EventListenerController, Eventbus, LabelController, LanguageManager, LottieController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, ProgressbarController, RequestAnimationFrameTimelineProvider, RequestVideoUriInterceptor, RoutingController, SubtitleEditor, SubtitleImporter, SubtitlesController, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineEventNames, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, VideoJsTimelineProvider, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, forEach, generateImporterSourceCode, getAttributesFromElement, getControllerFromElement, getControllerInstance, getElementDimensions, getImport, getQueryParams, invokeObjectMethod, loadJson, log, math, metadata_exports as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
|
|
5759
5823
|
//# sourceMappingURL=index.js.map
|