eligius 1.3.1 → 1.4.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 +132 -80
- package/dist/index.js +206 -140
- package/dist/index.js.map +1 -1
- package/jsonschema/operation-templates/continue-for-each.json +1 -1
- package/jsonschema/operation-templates/for-each.json +1 -1
- package/jsonschema/operation-templates/get-controller-from-element.json +1 -1
- package/jsonschema/operation-templates/remove-controller-from-element.json +1 -1
- package/jsonschema/operations/continue-for-each.json +1 -1
- package/jsonschema/operations/for-each.json +1 -1
- package/jsonschema/operations/get-controller-from-element.json +1 -1
- package/jsonschema/operations/remove-controller-from-element.json +1 -1
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-Bp6m_JJh.js";
|
|
2
1
|
import { AnimationItem, CanvasRendererConfig, HTMLRendererConfig, SVGRendererConfig } from "lottie-web";
|
|
3
2
|
|
|
4
3
|
//#region src/eventbus/types.d.ts
|
|
@@ -112,7 +111,7 @@ interface IOperationScope {
|
|
|
112
111
|
parent?: IOperationScope;
|
|
113
112
|
/**
|
|
114
113
|
*
|
|
115
|
-
|
|
114
|
+
*/
|
|
116
115
|
variables?: Record<string, unknown>;
|
|
117
116
|
}
|
|
118
117
|
type TOperation<T$1 extends TOperationData = TOperationData, RT = T$1> = (this: IOperationScope, operationData: T$1) => TOperationResult<RT>;
|
|
@@ -275,12 +274,12 @@ interface IController<T$1 extends TOperationData> {
|
|
|
275
274
|
detach(eventbus: IEventbus): void;
|
|
276
275
|
}
|
|
277
276
|
//#endregion
|
|
278
|
-
//#region src/controllers/event-listener-controller.d.ts
|
|
277
|
+
//#region src/controllers/dom-event-listener-controller.d.ts
|
|
279
278
|
interface IActionInstanceInfo {
|
|
280
279
|
start: boolean;
|
|
281
280
|
action: IEndableAction;
|
|
282
281
|
}
|
|
283
|
-
interface
|
|
282
|
+
interface IDOMEventListenerControllerOperationData {
|
|
284
283
|
/**
|
|
285
284
|
* @dependency
|
|
286
285
|
*/
|
|
@@ -297,18 +296,18 @@ interface IEventListenerControllerOperationData {
|
|
|
297
296
|
actionOperationData?: TOperationData;
|
|
298
297
|
}
|
|
299
298
|
/**
|
|
300
|
-
* This controller attaches to the given selected element and adds
|
|
299
|
+
* This controller attaches to the given selected element and adds a DOM event listener for the specified event name that
|
|
301
300
|
* executes the given actions with the given operation data.
|
|
302
301
|
*
|
|
303
302
|
* By default the `start` operations of the specified actions are executed. To execute the `end` operations instead,
|
|
304
303
|
* prefix the action name with `end:`.
|
|
305
304
|
*/
|
|
306
|
-
declare class
|
|
307
|
-
operationData?:
|
|
305
|
+
declare class DOMEventListenerController implements IController<IDOMEventListenerControllerOperationData> {
|
|
306
|
+
operationData?: IDOMEventListenerControllerOperationData;
|
|
308
307
|
actionInstanceInfos?: IActionInstanceInfo[];
|
|
309
308
|
name: string;
|
|
310
309
|
constructor();
|
|
311
|
-
init(operationData:
|
|
310
|
+
init(operationData: IDOMEventListenerControllerOperationData): void;
|
|
312
311
|
attach(eventbus: IEventbus): void;
|
|
313
312
|
private _isStartAction;
|
|
314
313
|
private _eventHandler;
|
|
@@ -316,6 +315,69 @@ declare class EventListenerController implements IController<IEventListenerContr
|
|
|
316
315
|
detach(_eventbus: IEventbus): void;
|
|
317
316
|
}
|
|
318
317
|
//#endregion
|
|
318
|
+
//#region src/controllers/base-controller.d.ts
|
|
319
|
+
/**
|
|
320
|
+
* Abstract base class for controllers providing standardized event listener management
|
|
321
|
+
*
|
|
322
|
+
* Benefits:
|
|
323
|
+
* - Eliminates boilerplate event listener tracking code
|
|
324
|
+
* - Automatic binding of event handlers to controller instance
|
|
325
|
+
* - Centralized cleanup preventing memory leaks
|
|
326
|
+
* - Consistent event management pattern across all controllers
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```typescript
|
|
330
|
+
* class MyController extends BaseController<IMyOperationData> {
|
|
331
|
+
* name = 'MyController';
|
|
332
|
+
*
|
|
333
|
+
* init(operationData: IMyOperationData): void {
|
|
334
|
+
* this.operationData = operationData;
|
|
335
|
+
* }
|
|
336
|
+
*
|
|
337
|
+
* attach(eventbus: IEventbus): void {
|
|
338
|
+
* this.addListener(eventbus, 'my-event', this.handleMyEvent);
|
|
339
|
+
* // Handler automatically bound, cleanup tracked
|
|
340
|
+
* }
|
|
341
|
+
*
|
|
342
|
+
* private handleMyEvent(): void {
|
|
343
|
+
* // 'this' context preserved
|
|
344
|
+
* }
|
|
345
|
+
* }
|
|
346
|
+
* ```
|
|
347
|
+
*/
|
|
348
|
+
declare abstract class BaseController<T$1 extends TOperationData> implements IController<T$1> {
|
|
349
|
+
operationData: T$1 | null;
|
|
350
|
+
abstract name: string;
|
|
351
|
+
protected eventListeners: TEventbusRemover[];
|
|
352
|
+
/**
|
|
353
|
+
* Register event listener with automatic binding and cleanup tracking
|
|
354
|
+
*
|
|
355
|
+
* @param eventbus - The eventbus to register with
|
|
356
|
+
* @param eventName - Name of the event to listen for
|
|
357
|
+
* @param handler - Event handler function (will be bound to this controller)
|
|
358
|
+
*/
|
|
359
|
+
protected addListener(eventbus: IEventbus, eventName: string, handler: Function): void;
|
|
360
|
+
/**
|
|
361
|
+
* Register multiple event listeners at once
|
|
362
|
+
*
|
|
363
|
+
* @param eventbus - The eventbus to register with
|
|
364
|
+
* @param listeners - Array of {eventName, handler} pairs
|
|
365
|
+
*/
|
|
366
|
+
protected attachMultiple(eventbus: IEventbus, listeners: Array<{
|
|
367
|
+
eventName: string;
|
|
368
|
+
handler: Function;
|
|
369
|
+
}>): void;
|
|
370
|
+
/**
|
|
371
|
+
* Clean up all tracked event listeners
|
|
372
|
+
* Prevents memory leaks by removing all registered handlers
|
|
373
|
+
*
|
|
374
|
+
* @param _eventbus - The eventbus (ignored, included for IController compatibility)
|
|
375
|
+
*/
|
|
376
|
+
detach(_eventbus: IEventbus): void;
|
|
377
|
+
abstract init(operationData: T$1): void;
|
|
378
|
+
abstract attach(eventbus: IEventbus): Promise<any> | void;
|
|
379
|
+
}
|
|
380
|
+
//#endregion
|
|
319
381
|
//#region src/controllers/label-controller.d.ts
|
|
320
382
|
interface ILabelControllerMetadata {
|
|
321
383
|
/**
|
|
@@ -340,10 +402,8 @@ interface ILabelControllerMetadata {
|
|
|
340
402
|
* The controller also listen for the `LANGUAGE_CHANGE` event and re-renders the text with the new language after such an event.
|
|
341
403
|
*
|
|
342
404
|
*/
|
|
343
|
-
declare class LabelController
|
|
344
|
-
listeners: TEventbusRemover[];
|
|
405
|
+
declare class LabelController extends BaseController<ILabelControllerMetadata> {
|
|
345
406
|
currentLanguage: string | null;
|
|
346
|
-
operationData: ILabelControllerMetadata | null;
|
|
347
407
|
labelData: Record<string, string>;
|
|
348
408
|
name: string;
|
|
349
409
|
requestLabelDataBound?: (labelId: string) => void;
|
|
@@ -352,7 +412,7 @@ declare class LabelController implements IController<ILabelControllerMetadata> {
|
|
|
352
412
|
attach(eventbus: IEventbus): void;
|
|
353
413
|
private _requestLabelData;
|
|
354
414
|
private _setLabel;
|
|
355
|
-
detach(
|
|
415
|
+
detach(eventbus: IEventbus): void;
|
|
356
416
|
private _handleLanguageChange;
|
|
357
417
|
private _createTextDataLookup;
|
|
358
418
|
}
|
|
@@ -398,22 +458,19 @@ interface ILottieControllerMetadata extends IInnerMetadata {
|
|
|
398
458
|
* The url may encode freeze and end positions like this: my-url/filename[freeze=10,end=21].json
|
|
399
459
|
*
|
|
400
460
|
*/
|
|
401
|
-
declare class LottieController
|
|
461
|
+
declare class LottieController extends BaseController<ILottieControllerMetadata> {
|
|
402
462
|
name: string;
|
|
403
463
|
currentLanguage: string;
|
|
404
464
|
labelData: Record<string, Record<string, string>>;
|
|
405
|
-
eventbusRemovers: TEventbusRemover[];
|
|
406
465
|
animationItem: AnimationItem | null;
|
|
407
|
-
operationData: IInnerMetadata | null;
|
|
408
466
|
serializedData: string | null;
|
|
409
467
|
serializedIEData: string | null;
|
|
410
468
|
freezePosition: number;
|
|
411
469
|
endPosition: number;
|
|
412
|
-
constructor();
|
|
413
470
|
init(operationData: ILottieControllerMetadata): void;
|
|
414
471
|
private _parseFilename;
|
|
415
472
|
attach(eventbus: IEventbus): void;
|
|
416
|
-
detach(
|
|
473
|
+
detach(eventbus: IEventbus): void;
|
|
417
474
|
private _destroy;
|
|
418
475
|
private _createAnimation;
|
|
419
476
|
private _createTextDataLookup;
|
|
@@ -432,7 +489,7 @@ interface INavigationControllerOperationData {
|
|
|
432
489
|
*/
|
|
433
490
|
json: any;
|
|
434
491
|
}
|
|
435
|
-
declare class NavigationController
|
|
492
|
+
declare class NavigationController extends BaseController<INavigationControllerOperationData> {
|
|
436
493
|
name: string;
|
|
437
494
|
navigation: any[];
|
|
438
495
|
navLookup: Record<string, any>;
|
|
@@ -440,10 +497,8 @@ declare class NavigationController implements IController<INavigationControllerO
|
|
|
440
497
|
ctrlLookup: Record<string, LabelController>;
|
|
441
498
|
activeNavigationPoint: any | null;
|
|
442
499
|
labelControllers: LabelController[];
|
|
443
|
-
eventhandlers: TEventbusRemover[];
|
|
444
500
|
eventbus: IEventbus | null;
|
|
445
501
|
container: JQuery | null;
|
|
446
|
-
constructor();
|
|
447
502
|
init(operationData: TOperationData): void;
|
|
448
503
|
attach(eventbus: IEventbus): void;
|
|
449
504
|
private _initHistory;
|
|
@@ -478,15 +533,14 @@ interface IProgressbarControllerOperationData {
|
|
|
478
533
|
*
|
|
479
534
|
* The current progress as a percentage is rendered in the given text element.
|
|
480
535
|
*/
|
|
481
|
-
declare class ProgressbarController
|
|
536
|
+
declare class ProgressbarController extends BaseController<IProgressbarControllerOperationData> {
|
|
482
537
|
name: string;
|
|
483
538
|
selectedElement: JQuery | null;
|
|
484
539
|
textElement: JQuery | null;
|
|
485
|
-
eventbusRemovers: TEventbusRemover[];
|
|
486
540
|
duration: number;
|
|
487
541
|
init(operationData: TOperationData): void;
|
|
488
542
|
attach(eventbus: IEventbus): void;
|
|
489
|
-
detach(
|
|
543
|
+
detach(eventbus: IEventbus): void;
|
|
490
544
|
private _positionUpdateHandler;
|
|
491
545
|
private _clickHandler;
|
|
492
546
|
}
|
|
@@ -501,18 +555,16 @@ interface IRoutingControllerOperationData {
|
|
|
501
555
|
/**
|
|
502
556
|
* This is a work in progress, do not use this yet please....
|
|
503
557
|
*/
|
|
504
|
-
declare class RoutingController
|
|
558
|
+
declare class RoutingController extends BaseController<IRoutingControllerOperationData> {
|
|
505
559
|
name: string;
|
|
506
560
|
navLookup: Record<string, any>;
|
|
507
561
|
navVidIdLookup: Record<string, any>;
|
|
508
562
|
navigation: any;
|
|
509
|
-
eventhandlers: TEventbusRemover[];
|
|
510
563
|
eventbus: IEventbus | null;
|
|
511
|
-
constructor();
|
|
512
564
|
init(operationData: TOperationData): void;
|
|
513
565
|
attach(eventbus: IEventbus): void;
|
|
514
566
|
private _handlePopstate;
|
|
515
|
-
detach(
|
|
567
|
+
detach(eventbus: IEventbus): void;
|
|
516
568
|
private _handleBeforeRequestVideoUrl;
|
|
517
569
|
private _getQueryVariable;
|
|
518
570
|
private _handlePushHistoryState;
|
|
@@ -533,15 +585,14 @@ interface ISubtitlesControllerOperationData {
|
|
|
533
585
|
*/
|
|
534
586
|
subtitleData: ISubtitleCollection[];
|
|
535
587
|
}
|
|
536
|
-
declare class SubtitlesController
|
|
588
|
+
declare class SubtitlesController extends BaseController<ISubtitlesControllerOperationData> {
|
|
537
589
|
actionLookup: Record<string, any>;
|
|
538
590
|
currentLanguage: string | null;
|
|
539
591
|
lastFunc: Function | null;
|
|
540
592
|
name: string;
|
|
541
593
|
subtitleDurations: IStrictDuration[] | null;
|
|
542
594
|
attach(eventbus: IEventbus): void;
|
|
543
|
-
detach(
|
|
544
|
-
internalDetach(detachMethods?: TEventbusRemover[]): void;
|
|
595
|
+
detach(eventbus: IEventbus): void;
|
|
545
596
|
languageChangeHandler(newLanguage: string): void;
|
|
546
597
|
removeTitle(container?: JQuery): void;
|
|
547
598
|
onTimeHandler(position: number): void;
|
|
@@ -551,7 +602,7 @@ declare class SubtitlesController implements IController<ISubtitlesControllerOpe
|
|
|
551
602
|
init(operationData: ISubtitlesControllerOperationData): void;
|
|
552
603
|
}
|
|
553
604
|
declare namespace index_d_exports$2 {
|
|
554
|
-
export {
|
|
605
|
+
export { DOMEventListenerController, IDOMEventListenerControllerOperationData, ILabelControllerMetadata, ILottieControllerMetadata, INavigationControllerOperationData, IProgressbarControllerOperationData, IRoutingControllerOperationData, ISubtitlesControllerOperationData, LabelController, LottieController, NavigationController, ProgressbarController, RoutingController, SubtitlesController };
|
|
555
606
|
}
|
|
556
607
|
//#endregion
|
|
557
608
|
//#region src/operation/add-class.d.ts
|
|
@@ -571,7 +622,7 @@ interface IAddClassOperationData {
|
|
|
571
622
|
* This operation adds the specified class name to the specified selected element.
|
|
572
623
|
*
|
|
573
624
|
*/
|
|
574
|
-
declare const addClass: TOperation<IAddClassOperationData
|
|
625
|
+
declare const addClass: TOperation<IAddClassOperationData, Omit<IAddClassOperationData, 'className'>>;
|
|
575
626
|
//#endregion
|
|
576
627
|
//#region src/operation/add-controller-to-element.d.ts
|
|
577
628
|
type IAddControllerToElementOperationData<T$1 extends TOperationData = TOperationData> = {
|
|
@@ -604,7 +655,7 @@ interface IAddGlobalsToOperationData {
|
|
|
604
655
|
* This operation adds the specified global property names to the current operation data.
|
|
605
656
|
* It finally removes the `globalProperties` property from the current operation data.
|
|
606
657
|
*/
|
|
607
|
-
declare const addGlobalsToOperation: TOperation<IAddGlobalsToOperationData
|
|
658
|
+
declare const addGlobalsToOperation: TOperation<IAddGlobalsToOperationData, Omit<IAddGlobalsToOperationData, 'globalProperties'>>;
|
|
608
659
|
//#endregion
|
|
609
660
|
//#region src/operation/animate.d.ts
|
|
610
661
|
interface IAnimateOperationData {
|
|
@@ -636,7 +687,7 @@ interface IAnimateOperationData {
|
|
|
636
687
|
* @param operationData
|
|
637
688
|
* @returns
|
|
638
689
|
*/
|
|
639
|
-
declare const animate: TOperation<IAnimateOperationData
|
|
690
|
+
declare const animate: TOperation<IAnimateOperationData, Omit<IAnimateOperationData, 'animationEasing' | 'animationProperties' | 'animationDuration'>>;
|
|
640
691
|
//#endregion
|
|
641
692
|
//#region src/operation/animate-with-class.d.ts
|
|
642
693
|
interface IAnimateWithClassOperationData {
|
|
@@ -690,7 +741,7 @@ interface IBroadcastEventOperationData {
|
|
|
690
741
|
* This operation broadcasts the given event through the eventbus, along with the
|
|
691
742
|
* event arguments and optional event topic.
|
|
692
743
|
*/
|
|
693
|
-
declare const broadcastEvent: TOperation<IBroadcastEventOperationData
|
|
744
|
+
declare const broadcastEvent: TOperation<IBroadcastEventOperationData, Omit<IBroadcastEventOperationData, 'eventArgs' | 'eventTopic' | 'eventName'>>;
|
|
694
745
|
//#endregion
|
|
695
746
|
//#region src/operation/calc.d.ts
|
|
696
747
|
type TCalculationOperator = '+' | '-' | '*' | '/' | '%' | '**';
|
|
@@ -724,7 +775,7 @@ interface ICalcOperationData {
|
|
|
724
775
|
*
|
|
725
776
|
* @param operationData
|
|
726
777
|
*/
|
|
727
|
-
declare const calc: TOperation<ICalcOperationData
|
|
778
|
+
declare const calc: TOperation<ICalcOperationData, Omit<ICalcOperationData, 'left' | 'right' | 'operator'>>;
|
|
728
779
|
//#endregion
|
|
729
780
|
//#region src/operation/clear-element.d.ts
|
|
730
781
|
interface IClearElementOperationData {
|
|
@@ -751,7 +802,7 @@ interface IClearOperationDataOperationData {
|
|
|
751
802
|
* Or, if the `properties` property is set only removes the properties defined by that list.
|
|
752
803
|
*
|
|
753
804
|
*/
|
|
754
|
-
declare const clearOperationData: TOperation<IClearOperationDataOperationData
|
|
805
|
+
declare const clearOperationData: TOperation<IClearOperationDataOperationData, Omit<IClearOperationDataOperationData, 'properties'>>;
|
|
755
806
|
//#endregion
|
|
756
807
|
//#region src/operation/continue-for-each.d.ts
|
|
757
808
|
/**
|
|
@@ -794,7 +845,7 @@ interface ICreateElementOperationData<T$1 extends TTagNames> {
|
|
|
794
845
|
* @param operationData
|
|
795
846
|
* @returns
|
|
796
847
|
*/
|
|
797
|
-
declare const createElement: TOperation<ICreateElementOperationData<TTagNames>, RequireKeys<ICreateElementOperationData<TTagNames>, 'template'>>;
|
|
848
|
+
declare const createElement: TOperation<ICreateElementOperationData<TTagNames>, Omit<RequireKeys<ICreateElementOperationData<TTagNames>, 'template'>, 'elementName' | 'text' | 'attributes'>>;
|
|
798
849
|
//#endregion
|
|
799
850
|
//#region src/operation/custom-function.d.ts
|
|
800
851
|
interface ICustomFunctionOperationData {
|
|
@@ -812,7 +863,7 @@ interface ICustomFunctionOperationData {
|
|
|
812
863
|
* @param operationData
|
|
813
864
|
* @returns
|
|
814
865
|
*/
|
|
815
|
-
declare const customFunction: TOperation<ICustomFunctionOperationData
|
|
866
|
+
declare const customFunction: TOperation<ICustomFunctionOperationData, Omit<ICustomFunctionOperationData, 'systemName'>>;
|
|
816
867
|
//#endregion
|
|
817
868
|
//#region src/operation/end-action.d.ts
|
|
818
869
|
interface IEndActionOperationData {
|
|
@@ -833,7 +884,7 @@ interface IEndActionOperationData {
|
|
|
833
884
|
* passed on to the action. After the action has completed the action operation data properties
|
|
834
885
|
* are removed from the current operation data.
|
|
835
886
|
*/
|
|
836
|
-
declare const endAction: TOperation<IEndActionOperationData
|
|
887
|
+
declare const endAction: TOperation<IEndActionOperationData, Omit<IEndActionOperationData, 'actionOperationData'>>;
|
|
837
888
|
//#endregion
|
|
838
889
|
//#region src/operation/end-for-each.d.ts
|
|
839
890
|
/**
|
|
@@ -865,7 +916,7 @@ interface IExtendControllerOperationData {
|
|
|
865
916
|
/**
|
|
866
917
|
* Extends the current controller with given extension.
|
|
867
918
|
*/
|
|
868
|
-
declare const extendController: TOperation<IExtendControllerOperationData
|
|
919
|
+
declare const extendController: TOperation<IExtendControllerOperationData, Omit<IExtendControllerOperationData, 'controllerExtension'>>;
|
|
869
920
|
//#endregion
|
|
870
921
|
//#region src/operation/for-each.d.ts
|
|
871
922
|
interface IForEachOperationData {
|
|
@@ -912,7 +963,7 @@ interface IGetAttributesFromElementOperationData {
|
|
|
912
963
|
/**
|
|
913
964
|
* This operation retrieves the values for the specified attribute names from the given selected element.
|
|
914
965
|
*/
|
|
915
|
-
declare const getAttributesFromElement: TOperation<IGetAttributesFromElementOperationData
|
|
966
|
+
declare const getAttributesFromElement: TOperation<IGetAttributesFromElementOperationData, Omit<IGetAttributesFromElementOperationData, 'attributeNames'>>;
|
|
916
967
|
//#endregion
|
|
917
968
|
//#region src/operation/get-controller-from-element.d.ts
|
|
918
969
|
interface IGetControllerFromElementOperationData {
|
|
@@ -938,7 +989,7 @@ interface IGetControllerFromElementOperationData {
|
|
|
938
989
|
* @param operationData
|
|
939
990
|
* @returns
|
|
940
991
|
*/
|
|
941
|
-
declare const getControllerFromElement: TOperation<IGetControllerFromElementOperationData
|
|
992
|
+
declare const getControllerFromElement: TOperation<IGetControllerFromElementOperationData, Omit<IGetControllerFromElementOperationData, 'controllerName'>>;
|
|
942
993
|
//#endregion
|
|
943
994
|
//#region src/operation/get-controller-instance.d.ts
|
|
944
995
|
type TSystemName = keyof typeof index_d_exports$2;
|
|
@@ -958,7 +1009,7 @@ interface IGetControllerInstanceOperationData {
|
|
|
958
1009
|
* This operation retrieves an instance of the given controller name.
|
|
959
1010
|
* It assigns this instance to the `controllerInstance` property on the current operation data
|
|
960
1011
|
*/
|
|
961
|
-
declare const getControllerInstance: TOperation<IGetControllerInstanceOperationData
|
|
1012
|
+
declare const getControllerInstance: TOperation<IGetControllerInstanceOperationData, Omit<IGetControllerInstanceOperationData, 'systemName'>>;
|
|
962
1013
|
//#endregion
|
|
963
1014
|
//#region src/operation/get-element-dimensions.d.ts
|
|
964
1015
|
interface IGetElementDimensionsOperationData {
|
|
@@ -995,7 +1046,7 @@ interface IGetElementDimensionsOperationData {
|
|
|
995
1046
|
* For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
|
|
996
1047
|
* 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.
|
|
997
1048
|
*/
|
|
998
|
-
declare const getElementDimensions: TOperation<IGetElementDimensionsOperationData
|
|
1049
|
+
declare const getElementDimensions: TOperation<IGetElementDimensionsOperationData, Omit<IGetElementDimensionsOperationData, 'modifier'>>;
|
|
999
1050
|
//#endregion
|
|
1000
1051
|
//#region src/operation/get-import.d.ts
|
|
1001
1052
|
interface IGetImportOperationData {
|
|
@@ -1047,7 +1098,7 @@ interface IGetQueryParamsOperationData {
|
|
|
1047
1098
|
* This operation retrieves the current query parameters from the browser's address bar and places
|
|
1048
1099
|
* them on the returned operation data.
|
|
1049
1100
|
*/
|
|
1050
|
-
declare const getQueryParams: TOperation<IGetQueryParamsOperationData
|
|
1101
|
+
declare const getQueryParams: TOperation<IGetQueryParamsOperationData, Omit<IGetQueryParamsOperationData, 'defaultValues'>>;
|
|
1051
1102
|
//#endregion
|
|
1052
1103
|
//#region src/operation/invoke-object-method.d.ts
|
|
1053
1104
|
interface IInvokeObjectMethodOperationData {
|
|
@@ -1110,7 +1161,7 @@ interface ILoadJSONOperationData {
|
|
|
1110
1161
|
* If the cache property is set to true and a cached value already exists, this is assigned
|
|
1111
1162
|
* instead of re-retrieving it from the url.
|
|
1112
1163
|
*/
|
|
1113
|
-
declare const loadJson: TOperation<ILoadJSONOperationData
|
|
1164
|
+
declare const loadJson: TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, 'url' | 'cache'>>;
|
|
1114
1165
|
//#endregion
|
|
1115
1166
|
//#region src/operation/log.d.ts
|
|
1116
1167
|
interface ILogOperationData {
|
|
@@ -1128,7 +1179,7 @@ interface ILogOperationData {
|
|
|
1128
1179
|
* This operation logs the specified value, or, when no logValue property has been assigned
|
|
1129
1180
|
* it will log the current operation data, global data and scope to the console
|
|
1130
1181
|
*/
|
|
1131
|
-
declare const log: TOperation<ILogOperationData
|
|
1182
|
+
declare const log: TOperation<ILogOperationData, Omit<ILogOperationData, 'logValue' | 'logName'>>;
|
|
1132
1183
|
//#endregion
|
|
1133
1184
|
//#region src/operation/math.d.ts
|
|
1134
1185
|
type MathFunctionKeys = { [K in keyof Math]: Math[K] extends ((...args: any) => any) ? K : never }[keyof Math];
|
|
@@ -1182,7 +1233,7 @@ interface IRemoveClassOperationData {
|
|
|
1182
1233
|
* @param operationData
|
|
1183
1234
|
* @returns
|
|
1184
1235
|
*/
|
|
1185
|
-
declare const removeClass: TOperation<IRemoveClassOperationData
|
|
1236
|
+
declare const removeClass: TOperation<IRemoveClassOperationData, Omit<IRemoveClassOperationData, 'className'>>;
|
|
1186
1237
|
//#endregion
|
|
1187
1238
|
//#region src/operation/remove-controller-from-element.d.ts
|
|
1188
1239
|
interface IRemoveControllerFromElementOperationData {
|
|
@@ -1203,7 +1254,7 @@ interface IRemoveControllerFromElementOperationData {
|
|
|
1203
1254
|
* @param operationData
|
|
1204
1255
|
* @returns
|
|
1205
1256
|
*/
|
|
1206
|
-
declare const removeControllerFromElement: TOperation<IRemoveControllerFromElementOperationData
|
|
1257
|
+
declare const removeControllerFromElement: TOperation<IRemoveControllerFromElementOperationData, Omit<IRemoveControllerFromElementOperationData, 'controllerName'>>;
|
|
1207
1258
|
//#endregion
|
|
1208
1259
|
//#region src/operation/remove-element.d.ts
|
|
1209
1260
|
interface IRemoveElementOperationData {
|
|
@@ -1251,7 +1302,7 @@ interface IReparentElementOperationData {
|
|
|
1251
1302
|
* @param operationData
|
|
1252
1303
|
* @returns
|
|
1253
1304
|
*/
|
|
1254
|
-
declare const reparentElement: TOperation<IReparentElementOperationData
|
|
1305
|
+
declare const reparentElement: TOperation<IReparentElementOperationData, Omit<IReparentElementOperationData, 'newParentSelector'>>;
|
|
1255
1306
|
//#endregion
|
|
1256
1307
|
//#region src/operation/request-action.d.ts
|
|
1257
1308
|
interface IRequestActionOperationData {
|
|
@@ -1271,7 +1322,7 @@ interface IRequestActionOperationData {
|
|
|
1271
1322
|
* This operation requests an action instance with the specified name and assigns it
|
|
1272
1323
|
* to the `actionInstance` property on the current operation data.
|
|
1273
1324
|
*/
|
|
1274
|
-
declare const requestAction: TOperation<IRequestActionOperationData, Required<IRequestActionOperationData>>;
|
|
1325
|
+
declare const requestAction: TOperation<IRequestActionOperationData, Omit<Required<IRequestActionOperationData>, 'systemName'>>;
|
|
1275
1326
|
//#endregion
|
|
1276
1327
|
//#region src/operation/select-element.d.ts
|
|
1277
1328
|
interface ISelectElementOperationData {
|
|
@@ -1298,7 +1349,7 @@ interface ISelectElementOperationData {
|
|
|
1298
1349
|
* to the current operation data's `selectedElement` property
|
|
1299
1350
|
* then the element will be looked for only in the descendant elements of this DOM element.
|
|
1300
1351
|
*/
|
|
1301
|
-
declare const selectElement: TOperation<ISelectElementOperationData
|
|
1352
|
+
declare const selectElement: TOperation<ISelectElementOperationData, Omit<ISelectElementOperationData, 'selector' | 'useSelectedElementAsRoot'>>;
|
|
1302
1353
|
//#endregion
|
|
1303
1354
|
//#region src/operation/set-data.d.ts
|
|
1304
1355
|
type TDataTarget = `$scope.${string}` | `$operationdata.${string}` | `$globaldata.${string}`;
|
|
@@ -1321,7 +1372,7 @@ interface ISetDataOperationData {
|
|
|
1321
1372
|
* })
|
|
1322
1373
|
* ```
|
|
1323
1374
|
*/
|
|
1324
|
-
declare const setData: TOperation<ISetDataOperationData
|
|
1375
|
+
declare const setData: TOperation<ISetDataOperationData, Omit<ISetDataOperationData, 'properties'>>;
|
|
1325
1376
|
//#endregion
|
|
1326
1377
|
//#region src/operation/set-element-attributes.d.ts
|
|
1327
1378
|
interface ISetElementAttributesOperationData {
|
|
@@ -1338,7 +1389,7 @@ interface ISetElementAttributesOperationData {
|
|
|
1338
1389
|
/**
|
|
1339
1390
|
* This operation sets the specified set of attributes on the given selected element.
|
|
1340
1391
|
*/
|
|
1341
|
-
declare const setElementAttributes: TOperation<ISetElementAttributesOperationData
|
|
1392
|
+
declare const setElementAttributes: TOperation<ISetElementAttributesOperationData, Omit<ISetElementAttributesOperationData, 'attributes'>>;
|
|
1342
1393
|
//#endregion
|
|
1343
1394
|
//#region src/operation/set-element-content.d.ts
|
|
1344
1395
|
interface ISetElementContentOperationData {
|
|
@@ -1370,7 +1421,7 @@ interface ISetElementContentOperationData {
|
|
|
1370
1421
|
* When set to `append` the new content will be inserted after the current content.
|
|
1371
1422
|
* When set to `prepend` the new content will be inserted before the current content.
|
|
1372
1423
|
*/
|
|
1373
|
-
declare const setElementContent: TOperation<ISetElementContentOperationData
|
|
1424
|
+
declare const setElementContent: TOperation<ISetElementContentOperationData, Omit<ISetElementContentOperationData, 'template' | 'insertionType'>>;
|
|
1374
1425
|
//#endregion
|
|
1375
1426
|
//#region src/operation/set-global-data.d.ts
|
|
1376
1427
|
interface ISetGlobalDataOperationData {
|
|
@@ -1421,7 +1472,7 @@ interface ISetStyleOperationData {
|
|
|
1421
1472
|
* This operation assigns the specified CSS style properties to the
|
|
1422
1473
|
* given selected element.
|
|
1423
1474
|
*/
|
|
1424
|
-
declare const setStyle: TOperation<ISetStyleOperationData
|
|
1475
|
+
declare const setStyle: TOperation<ISetStyleOperationData, Omit<ISetStyleOperationData, 'properties'>>;
|
|
1425
1476
|
//#endregion
|
|
1426
1477
|
//#region src/operation/set-variable.d.ts
|
|
1427
1478
|
interface ISetVariableOperationData {
|
|
@@ -1440,7 +1491,7 @@ interface ISetVariableOperationData {
|
|
|
1440
1491
|
/**
|
|
1441
1492
|
* This operation sets a variable with the specified name on the scope with the specified value.
|
|
1442
1493
|
*/
|
|
1443
|
-
declare const setVariable: TOperation<ISetVariableOperationData
|
|
1494
|
+
declare const setVariable: TOperation<ISetVariableOperationData, Omit<ISetVariableOperationData, 'name' | 'value'>>;
|
|
1444
1495
|
//#endregion
|
|
1445
1496
|
//#region src/operation/start-action.d.ts
|
|
1446
1497
|
interface IStartActionOperationData {
|
|
@@ -1461,7 +1512,7 @@ interface IStartActionOperationData {
|
|
|
1461
1512
|
* passed on to the action. After the action has completed the action operation data properties
|
|
1462
1513
|
* are removed from the current operation data.
|
|
1463
1514
|
*/
|
|
1464
|
-
declare const startAction: TOperation<IStartActionOperationData
|
|
1515
|
+
declare const startAction: TOperation<IStartActionOperationData, Omit<IStartActionOperationData, 'actionOperationData'>>;
|
|
1465
1516
|
//#endregion
|
|
1466
1517
|
//#region src/operation/toggle-class.d.ts
|
|
1467
1518
|
interface IToggleClassOperationData {
|
|
@@ -1484,7 +1535,7 @@ interface IToggleClassOperationData {
|
|
|
1484
1535
|
* Meaning, if the specified class name exists on the given element it will be removed,
|
|
1485
1536
|
* otherwise it will be added.
|
|
1486
1537
|
*/
|
|
1487
|
-
declare const toggleClass: TOperation<IToggleClassOperationData
|
|
1538
|
+
declare const toggleClass: TOperation<IToggleClassOperationData, Omit<IToggleClassOperationData, 'className'>>;
|
|
1488
1539
|
//#endregion
|
|
1489
1540
|
//#region src/operation/toggle-element.d.ts
|
|
1490
1541
|
interface IToggleElementOperationData {
|
|
@@ -1514,7 +1565,7 @@ interface IWaitOperationData {
|
|
|
1514
1565
|
/**
|
|
1515
1566
|
* This operation waits for the specified amount of milliseconds.
|
|
1516
1567
|
*/
|
|
1517
|
-
declare const wait: TOperation<IWaitOperationData
|
|
1568
|
+
declare const wait: TOperation<IWaitOperationData, Omit<IWaitOperationData, 'milliseconds'>>;
|
|
1518
1569
|
//#endregion
|
|
1519
1570
|
//#region src/operation/when.d.ts
|
|
1520
1571
|
type TOperator = '!=' | '==' | '>=' | '<=' | '>' | '<';
|
|
@@ -1554,7 +1605,7 @@ interface IWhenOperationData {
|
|
|
1554
1605
|
* @param operationData
|
|
1555
1606
|
* @returns
|
|
1556
1607
|
*/
|
|
1557
|
-
declare const when: TOperation<IWhenOperationData
|
|
1608
|
+
declare const when: TOperation<IWhenOperationData, Omit<IWhenOperationData, 'expression'>>;
|
|
1558
1609
|
declare namespace index_d_exports$1 {
|
|
1559
1610
|
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 };
|
|
1560
1611
|
}
|
|
@@ -1759,7 +1810,7 @@ declare class ActionEditor<T$1 extends IActionConfiguration = IActionConfigurati
|
|
|
1759
1810
|
* @param operationData
|
|
1760
1811
|
* @returns
|
|
1761
1812
|
*/
|
|
1762
|
-
addStartOperationByType<T extends TOperation<TOperationData>>(operationClass: T$1, operationData: Partial<ExtractOperationDataType<T$1>>): OperationEditor<this, T$1>;
|
|
1813
|
+
addStartOperationByType<T$1 extends TOperation<TOperationData>>(operationClass: T$1, operationData: Partial<ExtractOperationDataType<T$1>>): OperationEditor<this, T$1>;
|
|
1763
1814
|
/**
|
|
1764
1815
|
*
|
|
1765
1816
|
* Adds the operation data for a start operation specified by the given system name
|
|
@@ -1817,7 +1868,7 @@ declare class EndableActionEditor<T$1 extends IEndableActionConfiguration = IEnd
|
|
|
1817
1868
|
* @param operationData
|
|
1818
1869
|
* @returns
|
|
1819
1870
|
*/
|
|
1820
|
-
addEndOperationByType<T extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): OperationEditor<this, TOperationType>;
|
|
1871
|
+
addEndOperationByType<T$1 extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): OperationEditor<this, TOperationType>;
|
|
1821
1872
|
/**
|
|
1822
1873
|
*
|
|
1823
1874
|
* Adds the operation data for a start operation specified by the given system name
|
|
@@ -1826,7 +1877,7 @@ declare class EndableActionEditor<T$1 extends IEndableActionConfiguration = IEnd
|
|
|
1826
1877
|
* @param operationData
|
|
1827
1878
|
* @returns
|
|
1828
1879
|
*/
|
|
1829
|
-
addEndOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddClassOperationData
|
|
1880
|
+
addEndOperation<T$1 extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddClassOperationData, Omit<IAddClassOperationData, "className">> | TOperation<IAddControllerToElementOperationData<TOperationData>> | TOperation<IAddGlobalsToOperationData, Omit<IAddGlobalsToOperationData, "globalProperties">> | TOperation<IAnimateOperationData, Omit<IAnimateOperationData, "animationEasing" | "animationProperties" | "animationDuration">> | TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>> | TOperation<TOperationData> | TOperation<IBroadcastEventOperationData, Omit<IBroadcastEventOperationData, "eventArgs" | "eventTopic" | "eventName">> | TOperation<ICalcOperationData, Omit<ICalcOperationData, "left" | "right" | "operator">> | TOperation<IClearElementOperationData> | TOperation<IClearOperationDataOperationData, Omit<IClearOperationDataOperationData, "properties">> | TOperation<ICreateElementOperationData<keyof HTMLElementTagNameMap>, Omit<RequireKeys<ICreateElementOperationData<keyof HTMLElementTagNameMap>, "template">, "elementName" | "text" | "attributes">> | TOperation<ICustomFunctionOperationData, Omit<ICustomFunctionOperationData, "systemName">> | TOperation<IEndActionOperationData, Omit<IEndActionOperationData, "actionOperationData">> | TOperation<Record<string, unknown>> | TOperation<IExtendControllerOperationData, Omit<IExtendControllerOperationData, "controllerExtension">> | TOperation<IForEachOperationData> | TOperation<IGetAttributesFromElementOperationData, Omit<IGetAttributesFromElementOperationData, "attributeNames">> | TOperation<IGetControllerFromElementOperationData, Omit<IGetControllerFromElementOperationData, "controllerName">> | TOperation<IGetControllerInstanceOperationData, Omit<IGetControllerInstanceOperationData, "systemName">> | TOperation<IGetElementDimensionsOperationData, Omit<IGetElementDimensionsOperationData, "modifier">> | TOperation<IGetImportOperationData, Omit<RequireKeys<IGetImportOperationData, "importedInstance">, "systemName">> | TOperation<IGetQueryParamsOperationData, Omit<IGetQueryParamsOperationData, "defaultValues">> | TOperation<IInvokeObjectMethodOperationData, Omit<IInvokeObjectMethodOperationData, "methodName" | "methodArguments">> | TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, "url" | "cache">> | TOperation<ILogOperationData, Omit<ILogOperationData, "logValue" | "logName">> | TOperation<IMathOperationData, Omit<IMathOperationData, "args" | "functionName">> | TOperation<IRemoveClassOperationData, Omit<IRemoveClassOperationData, "className">> | TOperation<IRemoveControllerFromElementOperationData, Omit<IRemoveControllerFromElementOperationData, "controllerName">> | TOperation<IRemoveElementOperationData> | TOperation<IRemovePropertiesFromOperationDataOperationData, Omit<IRemovePropertiesFromOperationDataOperationData, "propertyNames">> | TOperation<IReparentElementOperationData, Omit<IReparentElementOperationData, "newParentSelector">> | TOperation<IRequestActionOperationData, Omit<Required<IRequestActionOperationData>, "systemName">> | TOperation<ISelectElementOperationData, Omit<ISelectElementOperationData, "selector" | "useSelectedElementAsRoot">> | TOperation<ISetDataOperationData, Omit<ISetDataOperationData, "properties">> | TOperation<ISetElementAttributesOperationData, Omit<ISetElementAttributesOperationData, "attributes">> | TOperation<ISetElementContentOperationData, Omit<ISetElementContentOperationData, "template" | "insertionType">> | TOperation<ISetGlobalDataOperationData, Omit<ISetGlobalDataOperationData, "propertyNames">> | TOperation<ISetOperationData, Omit<ISetOperationData, "properties" | "override">> | TOperation<ISetStyleOperationData, Omit<ISetStyleOperationData, "properties">> | TOperation<ISetVariableOperationData, Omit<ISetVariableOperationData, "name" | "value">> | TOperation<IStartActionOperationData, Omit<IStartActionOperationData, "actionOperationData">> | TOperation<IToggleClassOperationData, Omit<IToggleClassOperationData, "className">> | TOperation<IToggleElementOperationData> | TOperation<IWaitOperationData, Omit<IWaitOperationData, "milliseconds">> | TOperation<IWhenOperationData, Omit<IWhenOperationData, "expression">>>;
|
|
1830
1881
|
/**
|
|
1831
1882
|
*
|
|
1832
1883
|
* Starts an editor for the end operation associated with the given id
|
|
@@ -1874,10 +1925,10 @@ declare class TimelineActionEditor extends EndableActionEditor<ITimelineActionCo
|
|
|
1874
1925
|
* A factory that assists in editing an operation
|
|
1875
1926
|
*
|
|
1876
1927
|
*/
|
|
1877
|
-
declare class OperationEditor<T$1 extends ActionEditor, O
|
|
1928
|
+
declare class OperationEditor<T$1 extends ActionEditor, O extends TOperationType = TOperation<TOperationData>> {
|
|
1878
1929
|
private operationConfig;
|
|
1879
1930
|
private actionEditor;
|
|
1880
|
-
constructor(operationConfig: IOperationConfiguration<ExtractOperationDataType<O
|
|
1931
|
+
constructor(operationConfig: IOperationConfiguration<ExtractOperationDataType<O>>, actionEditor: T$1);
|
|
1881
1932
|
/**
|
|
1882
1933
|
*
|
|
1883
1934
|
* Invokes the given callback with a copy of the internal state of the factory
|
|
@@ -1885,7 +1936,7 @@ declare class OperationEditor<T$1 extends ActionEditor, O$1 extends TOperationTy
|
|
|
1885
1936
|
* @param callBack
|
|
1886
1937
|
* @returns
|
|
1887
1938
|
*/
|
|
1888
|
-
getConfiguration(callBack: (config: IOperationConfiguration<ExtractOperationDataType<O
|
|
1939
|
+
getConfiguration(callBack: (config: IOperationConfiguration<ExtractOperationDataType<O>>) => IOperationConfiguration<ExtractOperationDataType<O>>): this;
|
|
1889
1940
|
/**
|
|
1890
1941
|
*
|
|
1891
1942
|
* Gets the system name
|
|
@@ -1908,7 +1959,7 @@ declare class OperationEditor<T$1 extends ActionEditor, O$1 extends TOperationTy
|
|
|
1908
1959
|
* @param operationData
|
|
1909
1960
|
* @returns
|
|
1910
1961
|
*/
|
|
1911
|
-
setOperationData(operationData: ExtractOperationDataType<O
|
|
1962
|
+
setOperationData(operationData: ExtractOperationDataType<O>): this;
|
|
1912
1963
|
/**
|
|
1913
1964
|
*
|
|
1914
1965
|
* Sets the value on the current `operationData` with the given key
|
|
@@ -1917,14 +1968,14 @@ declare class OperationEditor<T$1 extends ActionEditor, O$1 extends TOperationTy
|
|
|
1917
1968
|
* @param value
|
|
1918
1969
|
* @returns
|
|
1919
1970
|
*/
|
|
1920
|
-
setOperationDataItem(key: keyof ExtractOperationDataType<O
|
|
1971
|
+
setOperationDataItem(key: keyof ExtractOperationDataType<O>, value: ExtractOperationDataType<O>[keyof ExtractOperationDataType<O>]): this;
|
|
1921
1972
|
/**
|
|
1922
1973
|
*
|
|
1923
1974
|
* returns all of the defined property names on the current `operationData`
|
|
1924
1975
|
*
|
|
1925
1976
|
* @returns
|
|
1926
1977
|
*/
|
|
1927
|
-
getOperationDataKeys(): keyof ExtractOperationDataType<O
|
|
1978
|
+
getOperationDataKeys(): keyof ExtractOperationDataType<O>;
|
|
1928
1979
|
/**
|
|
1929
1980
|
*
|
|
1930
1981
|
* Gets the value of the given key on the current `operationData`
|
|
@@ -1932,7 +1983,7 @@ declare class OperationEditor<T$1 extends ActionEditor, O$1 extends TOperationTy
|
|
|
1932
1983
|
* @param key
|
|
1933
1984
|
* @returns
|
|
1934
1985
|
*/
|
|
1935
|
-
getOperationDataValue(key: keyof ExtractOperationDataType<O
|
|
1986
|
+
getOperationDataValue(key: keyof ExtractOperationDataType<O>): ExtractOperationDataType<O>[keyof ExtractOperationDataType<O>] | undefined;
|
|
1936
1987
|
/**
|
|
1937
1988
|
*
|
|
1938
1989
|
* Returns the fluent scope back to the action editor
|
|
@@ -2103,7 +2154,7 @@ declare class ConfigurationFactory {
|
|
|
2103
2154
|
* @param extensionMethod
|
|
2104
2155
|
* @returns
|
|
2105
2156
|
*/
|
|
2106
|
-
static extend<T extends ConfigurationFactory, K extends PropertyKey, C extends (this: T & { [P in K]: C }, ...args: any[]) => any>(factory: T, extensionMethodName: K, extensionMethod: C): T & { [P in K]: C };
|
|
2157
|
+
static extend<T$1 extends ConfigurationFactory, K$1 extends PropertyKey, C extends (this: T$1 & { [P in K$1]: C }, ...args: any[]) => any>(factory: T$1, extensionMethodName: K$1, extensionMethod: C): T$1 & { [P in K$1]: C };
|
|
2107
2158
|
/**
|
|
2108
2159
|
* Add specialized methods to a factory
|
|
2109
2160
|
*
|
|
@@ -2111,9 +2162,9 @@ declare class ConfigurationFactory {
|
|
|
2111
2162
|
* @param extensions
|
|
2112
2163
|
* @returns
|
|
2113
2164
|
*/
|
|
2114
|
-
static extendMultiple<T extends ConfigurationFactory, C extends ConfigurationFactoryExtension<T>, D extends {
|
|
2165
|
+
static extendMultiple<T$1 extends ConfigurationFactory, C extends ConfigurationFactoryExtension<T$1>, D extends {
|
|
2115
2166
|
[name: string]: C;
|
|
2116
|
-
}>(factory: T, extensions: D): T & D;
|
|
2167
|
+
}>(factory: T$1, extensions: D): T$1 & D;
|
|
2117
2168
|
/**
|
|
2118
2169
|
* Initialize the configuration with a minimal shape.
|
|
2119
2170
|
*
|
|
@@ -2443,7 +2494,7 @@ declare class ActionCreator<T$1 extends IActionConfiguration = IActionConfigurat
|
|
|
2443
2494
|
* @param operationData
|
|
2444
2495
|
* @returns
|
|
2445
2496
|
*/
|
|
2446
|
-
addStartOperationByType<T extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): this;
|
|
2497
|
+
addStartOperationByType<T$1 extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): this;
|
|
2447
2498
|
/**
|
|
2448
2499
|
*
|
|
2449
2500
|
* Adds the operation data for a start operation specified by the given system name
|
|
@@ -2452,7 +2503,7 @@ declare class ActionCreator<T$1 extends IActionConfiguration = IActionConfigurat
|
|
|
2452
2503
|
* @param operationData
|
|
2453
2504
|
* @returns
|
|
2454
2505
|
*/
|
|
2455
|
-
addStartOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: T$1, operationData: O): this;
|
|
2506
|
+
addStartOperation<T$1 extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: T$1, operationData: O): this;
|
|
2456
2507
|
/**
|
|
2457
2508
|
*
|
|
2458
2509
|
* Returns the fluent scope back to the `ActionCreatorFactory`
|
|
@@ -2476,7 +2527,7 @@ declare class EndableActionCreator<T$1 extends IEndableActionConfiguration = IEn
|
|
|
2476
2527
|
* @param operationData
|
|
2477
2528
|
* @returns
|
|
2478
2529
|
*/
|
|
2479
|
-
addEndOperationByType<T extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): this;
|
|
2530
|
+
addEndOperationByType<T$1 extends TOperationType, Dt extends Partial<ExtractOperationDataType<T$1>>>(operationClass: T$1, operationData: Dt): this;
|
|
2480
2531
|
/**
|
|
2481
2532
|
*
|
|
2482
2533
|
* Adds the operation data for an end operation specified by the given system name
|
|
@@ -2485,7 +2536,7 @@ declare class EndableActionCreator<T$1 extends IEndableActionConfiguration = IEn
|
|
|
2485
2536
|
* @param operationData
|
|
2486
2537
|
* @returns
|
|
2487
2538
|
*/
|
|
2488
|
-
addEndOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: TOperationName, operationData: O): this;
|
|
2539
|
+
addEndOperation<T$1 extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: TOperationName, operationData: O): this;
|
|
2489
2540
|
}
|
|
2490
2541
|
/**
|
|
2491
2542
|
*
|
|
@@ -2946,6 +2997,7 @@ declare class EligiusEngine implements IEligiusEngine {
|
|
|
2946
2997
|
private timelineProviders;
|
|
2947
2998
|
private languageManager;
|
|
2948
2999
|
private _timeLineActionsLookup;
|
|
3000
|
+
private _timelineLookupCache;
|
|
2949
3001
|
private _eventbusRemovers;
|
|
2950
3002
|
private _currentTimelineUri;
|
|
2951
3003
|
private _activeTimelineProvider;
|
|
@@ -3136,5 +3188,5 @@ declare class VideoJsTimelineProvider implements ITimelineProvider {
|
|
|
3136
3188
|
_extractFileType(url: string): string;
|
|
3137
3189
|
}
|
|
3138
3190
|
//#endregion
|
|
3139
|
-
export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, Controllers, DEV_TOOLS_KEY, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory,
|
|
3191
|
+
export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, Controllers, DEV_TOOLS_KEY, DOMEventListenerController, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, 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, type IDOMEventListenerControllerOperationData, IDiagnosticsAgent, IDiagnosticsInfo, IDimensions, IDuration, IEligiusEngine, type IEndActionOperationData, IEndableAction, IEndableActionConfiguration, IEngineConfiguration, IEngineFactory, IEngineFactoryOptions, IEngineInfo, IEventActionConfiguration, 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 };
|
|
3140
3192
|
//# sourceMappingURL=index.d.ts.map
|