eligius 1.1.2 → 1.1.3
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/README.md +3 -1
- package/dist/action/action.d.ts +17 -17
- package/dist/action/endable-action.d.ts +9 -9
- package/dist/action/index.d.ts +3 -3
- package/dist/action/timeline-action.d.ts +14 -14
- package/dist/action/types.d.ts +17 -17
- package/dist/build/generate-importer-source-code.d.ts +15 -15
- package/dist/build/index.d.ts +1 -1
- package/dist/configuration/api/action-creator-factory.d.ts +31 -31
- package/dist/configuration/api/action-editor.d.ts +44 -44
- package/dist/configuration/api/configuration-factory.d.ts +135 -134
- package/dist/configuration/api/index.d.ts +7 -7
- package/dist/configuration/api/label-editor.d.ts +11 -11
- package/dist/configuration/api/name-providers.d.ts +13 -13
- package/dist/configuration/api/subtitle-converter.d.ts +11 -11
- package/dist/configuration/api/subtitle-editor.d.ts +24 -14
- package/dist/configuration/api/timeline-provider-settings-editor.d.ts +22 -22
- package/dist/configuration/configuration-resolver.d.ts +18 -18
- package/dist/configuration/types.d.ts +102 -102
- package/dist/controllers/event-listener-controller.d.ts +36 -35
- package/dist/controllers/index.d.ts +7 -7
- package/dist/controllers/label-controller.d.ts +31 -30
- package/dist/controllers/lottie-controller.d.ts +47 -46
- package/dist/controllers/metadata/event-listener-controller.d.ts +4 -4
- package/dist/controllers/metadata/index.d.ts +7 -7
- package/dist/controllers/metadata/label-controller.d.ts +4 -4
- package/dist/controllers/metadata/lottie-controller.d.ts +4 -4
- package/dist/controllers/metadata/navigation-controller.d.ts +4 -4
- package/dist/controllers/metadata/progressbar-controller.d.ts +4 -4
- package/dist/controllers/metadata/routing-controller.d.ts +4 -4
- package/dist/controllers/metadata/subtitles-controller.d.ts +4 -4
- package/dist/controllers/metadata/types.d.ts +6 -6
- package/dist/controllers/navigation-controller.d.ts +39 -38
- package/dist/controllers/progressbar-controller.d.ts +26 -25
- package/dist/controllers/routing-controller.d.ts +27 -27
- package/dist/controllers/subtitles-controller.d.ts +27 -25
- package/dist/controllers/types.d.ts +8 -8
- package/dist/diagnostics/{devtool-event-lister.d.ts → devtool-event-listener.d.ts} +7 -7
- package/dist/diagnostics/diagnostics.d.ts +5 -5
- package/dist/diagnostics/index.d.ts +3 -3
- package/dist/diagnostics/types.d.ts +28 -28
- package/dist/eligius-engine.d.ts +88 -88
- package/dist/eligius-flow-controller.d.ts +8 -8
- package/dist/engine-factory.d.ts +38 -38
- package/dist/eventbus/actionregistry-eventbus-listener.d.ts +11 -11
- package/dist/eventbus/eventbus.d.ts +18 -18
- package/dist/eventbus/index.d.ts +4 -4
- package/dist/eventbus/request-video-uri-interceptor.d.ts +6 -6
- package/dist/eventbus/types.d.ts +18 -18
- package/dist/importer/eligius-resource-importer.d.ts +9 -9
- package/dist/importer/index.d.ts +1 -1
- package/dist/index.cjs +6417 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.cjs.min.js +8 -0
- package/dist/index.cjs.min.js.map +7 -0
- package/dist/index.d.ts +22 -22
- package/dist/index.esm.js +8 -0
- package/dist/index.esm.js.map +7 -0
- package/dist/index.js +7 -8
- package/dist/language-manager.d.ts +24 -24
- package/dist/operation/add-class.d.ts +14 -13
- package/dist/operation/add-controller-to-element.d.ts +15 -14
- package/dist/operation/add-globals-to-operation.d.ts +12 -12
- package/dist/operation/animate-with-class.d.ts +17 -16
- package/dist/operation/animate.d.ts +17 -16
- package/dist/operation/broadcast-event.d.ts +13 -13
- package/dist/operation/calc.d.ts +14 -14
- package/dist/operation/clear-element.d.ts +11 -10
- package/dist/operation/clear-operation-data.d.ts +10 -10
- package/dist/operation/create-element.d.ts +18 -17
- package/dist/operation/custom-function.d.ts +12 -12
- package/dist/operation/end-action.d.ts +17 -17
- package/dist/operation/{end-loop.d.ts → end-for-each.d.ts} +8 -8
- package/dist/operation/end-when.d.ts +8 -8
- package/dist/operation/extend-controller.d.ts +10 -10
- package/dist/operation/{start-loop.d.ts → for-each.d.ts} +19 -17
- package/dist/operation/get-attributes-from-element.d.ts +21 -20
- package/dist/operation/get-controller-from-element.d.ts +16 -15
- package/dist/operation/get-controller-instance.d.ts +17 -17
- package/dist/operation/get-element-dimensions.d.ts +30 -29
- package/dist/operation/get-import.d.ts +13 -13
- package/dist/operation/get-query-params.d.ts +28 -28
- package/dist/operation/helper/attach-controller-to-element.d.ts +3 -2
- package/dist/operation/helper/deep-copy.d.ts +1 -1
- package/dist/operation/helper/find-matching-operation-index.d.ts +35 -35
- package/dist/operation/helper/get-element-data.d.ts +7 -6
- package/dist/operation/helper/get-property-chain-value.d.ts +24 -24
- package/dist/operation/helper/globals.d.ts +4 -4
- package/dist/operation/helper/internal-resolve.d.ts +2 -2
- package/dist/operation/helper/merge-operation-data.d.ts +2 -2
- package/dist/operation/helper/modify-dimensions.d.ts +20 -20
- package/dist/operation/helper/remove-event-data-from-operation-data.d.ts +2 -2
- package/dist/operation/helper/remove-global.d.ts +1 -1
- package/dist/operation/helper/resolve-event-arguments.d.ts +2 -2
- package/dist/operation/helper/resolve-external-property-chain.d.ts +14 -14
- package/dist/operation/helper/resolve-property-chain.d.ts +23 -23
- package/dist/operation/helper/resolve-property-values.d.ts +11 -11
- package/dist/operation/helper/set-global.d.ts +1 -1
- package/dist/operation/index.d.ts +46 -46
- package/dist/operation/invoke-object-method.d.ts +28 -28
- package/dist/operation/load-json.d.ts +28 -28
- package/dist/operation/log.d.ts +8 -8
- package/dist/operation/math.d.ts +12 -12
- package/dist/operation/metadata/add-class.d.ts +4 -4
- package/dist/operation/metadata/add-controller-to-element.d.ts +4 -4
- package/dist/operation/metadata/add-globals-to-operation.d.ts +4 -4
- package/dist/operation/metadata/animate-with-class.d.ts +4 -4
- package/dist/operation/metadata/animate.d.ts +4 -4
- package/dist/operation/metadata/broadcast-event.d.ts +4 -4
- package/dist/operation/metadata/calc.d.ts +4 -4
- package/dist/operation/metadata/clear-element.d.ts +4 -4
- package/dist/operation/metadata/clear-operation-data.d.ts +4 -4
- package/dist/operation/metadata/create-element.d.ts +4 -4
- package/dist/operation/metadata/custom-function.d.ts +4 -4
- package/dist/operation/metadata/end-action.d.ts +4 -4
- package/dist/operation/metadata/end-for-each.d.ts +3 -0
- package/dist/operation/metadata/end-when.d.ts +3 -3
- package/dist/operation/metadata/extend-controller.d.ts +4 -4
- package/dist/operation/metadata/for-each.d.ts +4 -0
- package/dist/operation/metadata/get-attributes-from-element.d.ts +4 -4
- package/dist/operation/metadata/get-controller-from-element.d.ts +4 -4
- package/dist/operation/metadata/get-controller-instance.d.ts +4 -4
- package/dist/operation/metadata/get-element-dimensions.d.ts +4 -4
- package/dist/operation/metadata/get-import.d.ts +4 -4
- package/dist/operation/metadata/get-query-params.d.ts +4 -4
- package/dist/operation/metadata/index.d.ts +45 -45
- package/dist/operation/metadata/invoke-object-method.d.ts +4 -4
- package/dist/operation/metadata/load-json.d.ts +4 -4
- package/dist/operation/metadata/log.d.ts +3 -3
- package/dist/operation/metadata/math.d.ts +4 -4
- package/dist/operation/metadata/otherwise.d.ts +3 -3
- package/dist/operation/metadata/remove-class.d.ts +4 -4
- package/dist/operation/metadata/remove-controller-from-element.d.ts +4 -4
- package/dist/operation/metadata/remove-element.d.ts +4 -4
- package/dist/operation/metadata/remove-properties-from-operation-data.d.ts +4 -4
- package/dist/operation/metadata/reparent-element.d.ts +4 -4
- package/dist/operation/metadata/request-action.d.ts +4 -4
- package/dist/operation/metadata/resize-action.d.ts +4 -4
- package/dist/operation/metadata/select-element.d.ts +4 -4
- package/dist/operation/metadata/set-data.d.ts +4 -4
- package/dist/operation/metadata/set-element-attributes.d.ts +4 -4
- package/dist/operation/metadata/set-element-content.d.ts +4 -4
- package/dist/operation/metadata/set-global-data.d.ts +4 -4
- package/dist/operation/metadata/set-operation-data.d.ts +4 -4
- package/dist/operation/metadata/set-style.d.ts +4 -4
- package/dist/operation/metadata/start-action.d.ts +4 -4
- package/dist/operation/metadata/toggle-class.d.ts +4 -4
- package/dist/operation/metadata/toggle-element.d.ts +4 -4
- package/dist/operation/metadata/types.d.ts +29 -29
- package/dist/operation/metadata/wait.d.ts +4 -4
- package/dist/operation/metadata/when.d.ts +4 -4
- package/dist/operation/otherwise.d.ts +9 -9
- package/dist/operation/remove-class.d.ts +14 -13
- package/dist/operation/remove-controller-from-element.d.ts +14 -13
- package/dist/operation/remove-element.d.ts +13 -12
- package/dist/operation/remove-properties-from-operation-data.d.ts +12 -12
- package/dist/operation/reparent-element.d.ts +15 -14
- package/dist/operation/request-action.d.ts +14 -14
- package/dist/operation/resize-action.d.ts +12 -12
- package/dist/operation/select-element.d.ts +19 -18
- package/dist/operation/set-data.d.ts +21 -21
- package/dist/operation/set-element-attributes.d.ts +14 -13
- package/dist/operation/set-element-content.d.ts +21 -20
- package/dist/operation/set-global-data.d.ts +11 -11
- package/dist/operation/set-operation-data.d.ts +13 -13
- package/dist/operation/set-style.d.ts +15 -14
- package/dist/operation/start-action.d.ts +17 -17
- package/dist/operation/toggle-class.d.ts +23 -22
- package/dist/operation/toggle-element.d.ts +19 -18
- package/dist/operation/types.d.ts +55 -55
- package/dist/operation/wait.d.ts +14 -14
- package/dist/operation/when.d.ts +21 -18
- package/dist/test/integration/create-language-selector.spec.d.ts +1 -0
- package/dist/test/integration/end-in-correct-order.spec.d.ts +1 -0
- package/dist/test/integration/for-each-loop.spec.d.ts +1 -0
- package/dist/test/integration/re-use-image-action.spec.d.ts +1 -0
- package/dist/test/integration/when-construction.spec.d.ts +1 -0
- package/dist/test/unit/action/action.spec.d.ts +1 -0
- package/dist/test/unit/build/generate-importer-source-code.spec.d.ts +1 -0
- package/dist/test/unit/chrono-trigger-engine.spec.d.ts +1 -0
- package/dist/test/unit/configuration/api/action-editor.spec.d.ts +1 -0
- package/dist/test/unit/configuration/api/configuration-factory.spec.d.ts +1 -0
- package/dist/test/unit/configuration/api/endable-action-editor.spec.d.ts +1 -0
- package/dist/test/unit/configuration/api/name-providers.spec.d.ts +1 -0
- package/dist/test/unit/configuration/api/subtitle-editor.spec.d.ts +1 -0
- package/dist/test/unit/configuration/api/timeline-action-editor.spec.d.ts +1 -0
- package/dist/test/unit/configuration/api/timeline-provider-settings-editor.spec.d.ts +1 -0
- package/dist/test/unit/configuration/configuration-resolver.spec.d.ts +1 -0
- package/dist/test/unit/controllers/EventListenerController.spec.d.ts +1 -0
- package/dist/test/unit/controllers/LabelController.spec.d.ts +1 -0
- package/dist/test/unit/engine-factory.spec.d.ts +1 -0
- package/dist/test/unit/eventbus/eventbus.spec.d.ts +1 -0
- package/dist/test/unit/importer/eligius-resource-importer.spec.d.ts +1 -0
- package/dist/test/unit/language-manager.spec.d.ts +1 -0
- package/dist/test/unit/operation/_operation-metadata.spec.d.ts +1 -0
- package/dist/test/unit/operation/add-class.spec.d.ts +1 -0
- package/dist/test/unit/operation/add-controller-to-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/add-globals-to-operation.spec.d.ts +1 -0
- package/dist/test/unit/operation/animate-with-class.spec.d.ts +1 -0
- package/dist/test/unit/operation/animate.spec.d.ts +1 -0
- package/dist/test/unit/operation/broadcast-event.spec.d.ts +1 -0
- package/dist/test/unit/operation/calc.spec.d.ts +1 -0
- package/dist/test/unit/operation/clear-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/clear-operation-data.spec.d.ts +1 -0
- package/dist/test/unit/operation/create-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/custom-function.spec.d.ts +1 -0
- package/dist/test/unit/operation/end-action.spec.d.ts +1 -0
- package/dist/test/unit/operation/end-for-each.spec.d.ts +1 -0
- package/dist/test/unit/operation/end-when.spec.d.ts +1 -0
- package/dist/test/unit/operation/extend-controller.spec.d.ts +1 -0
- package/dist/test/unit/operation/for-each.spec.d.ts +1 -0
- package/dist/test/unit/operation/get-attributes-from-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/get-controller-from-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/get-controller-instance.spec.d.ts +1 -0
- package/dist/test/unit/operation/get-element-dimensions.spec.d.ts +1 -0
- package/dist/test/unit/operation/get-query-params.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/attach-controller-to-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/get-element-data.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/get-property-chain-value.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/globals.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/internal-resolve.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/merge-operation-data.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/modify-dimensions.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/remove-event-data-from-operation-data.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/remove-global.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/resolve-event-arguments.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/resolve-external-property-chain.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/resolve-property-values.spec.d.ts +1 -0
- package/dist/test/unit/operation/helper/set-global.spec.d.ts +1 -0
- package/dist/test/unit/operation/invoke-object-method.spec.d.ts +1 -0
- package/dist/test/unit/operation/load-json.spec.d.ts +1 -0
- package/dist/test/unit/operation/log.spec.d.ts +1 -0
- package/dist/test/unit/operation/math.spec.d.ts +1 -0
- package/dist/test/unit/operation/otherwise.spec.d.ts +1 -0
- package/dist/test/unit/operation/remove-class.spec.d.ts +1 -0
- package/dist/test/unit/operation/remove-properties-from-operation-data.spec.d.ts +1 -0
- package/dist/test/unit/operation/reparent-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/request-action.spec.d.ts +1 -0
- package/dist/test/unit/operation/resize-action.spec.d.ts +1 -0
- package/dist/test/unit/operation/select-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/set-data.spec.d.ts +1 -0
- package/dist/test/unit/operation/set-element-attributes.spec.d.ts +1 -0
- package/dist/test/unit/operation/set-element-content.spec.d.ts +1 -0
- package/dist/test/unit/operation/set-global-data.spec.d.ts +1 -0
- package/dist/test/unit/operation/set-operation-data.spec.d.ts +1 -0
- package/dist/test/unit/operation/set-style.spec.d.ts +1 -0
- package/dist/test/unit/operation/start-action.spec.d.ts +1 -0
- package/dist/test/unit/operation/toggle-class.spec.d.ts +1 -0
- package/dist/test/unit/operation/toggle-element.spec.d.ts +1 -0
- package/dist/test/unit/operation/wait.spec.d.ts +1 -0
- package/dist/test/unit/operation/when.spec.d.ts +1 -0
- package/dist/test/unit/timelineproviders/request-animation-frame-timeline-provider.spec.d.ts +1 -0
- package/dist/test/unit/util/prepare-value-for-serialization.spec.d.ts +1 -0
- package/dist/timeline-event-names.d.ts +81 -81
- package/dist/timelineproviders/index.d.ts +2 -1
- package/dist/timelineproviders/request-animation-frame-timeline-provider.d.ts +40 -40
- package/dist/timelineproviders/types.d.ts +21 -20
- package/dist/timelineproviders/{media-element-timeline-provider.d.ts → video-js-timeline-provider.d.ts} +39 -42
- package/dist/tools/doc-tools/generate-readmes.d.ts +1 -1
- package/dist/tools/schema-tools/generate-operation-schemas.d.ts +1 -1
- package/dist/tools/schema-tools/html-tag-names.d.ts +1 -1
- package/dist/types.d.ts +103 -102
- package/dist/util/animation-interval.d.ts +1 -1
- package/dist/util/apply-operation.d.ts +3 -3
- package/dist/util/camel-case-to-dash.d.ts +1 -1
- package/dist/util/dash-to-camel-case.d.ts +1 -1
- package/dist/util/guards/is-function.d.ts +1 -1
- package/dist/util/guards/is-object.d.ts +1 -1
- package/dist/util/guards/is-promise.d.ts +1 -1
- package/dist/util/guards/is-string.d.ts +1 -1
- package/dist/util/prepare-value-for-serialization.d.ts +1 -1
- package/package.json +54 -68
- package/dist/eligius.cjs.development.js +0 -7462
- package/dist/eligius.cjs.development.js.map +0 -1
- package/dist/eligius.cjs.production.min.js +0 -2
- package/dist/eligius.cjs.production.min.js.map +0 -1
- package/dist/eligius.esm.js +0 -7364
- package/dist/eligius.esm.js.map +0 -1
- package/dist/operation/metadata/end-loop.d.ts +0 -3
- package/dist/operation/metadata/start-loop.d.ts +0 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ILanguageLabel } from '../../types';
|
|
2
|
-
import { ConfigurationFactory } from './configuration-factory';
|
|
3
|
-
export declare class LabelEditor {
|
|
4
|
-
private factory;
|
|
5
|
-
private languageLabel;
|
|
6
|
-
constructor(factory: ConfigurationFactory, languageLabel: ILanguageLabel);
|
|
7
|
-
private _internalGetLabel;
|
|
8
|
-
setLabel(languageCode: string, translation: string): this;
|
|
9
|
-
removeLabel(languageCode: string): this;
|
|
10
|
-
end(): ConfigurationFactory;
|
|
11
|
-
}
|
|
1
|
+
import { ILanguageLabel } from '../../types';
|
|
2
|
+
import { ConfigurationFactory } from './configuration-factory';
|
|
3
|
+
export declare class LabelEditor {
|
|
4
|
+
private factory;
|
|
5
|
+
private languageLabel;
|
|
6
|
+
constructor(factory: ConfigurationFactory, languageLabel: ILanguageLabel);
|
|
7
|
+
private _internalGetLabel;
|
|
8
|
+
setLabel(languageCode: string, translation: string): this;
|
|
9
|
+
removeLabel(languageCode: string): this;
|
|
10
|
+
end(): ConfigurationFactory;
|
|
11
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IOperationMetadata } from '../../operation/metadata/types';
|
|
2
|
-
export declare class OperationNamesProvider {
|
|
3
|
-
getOperationNames(): string[];
|
|
4
|
-
}
|
|
5
|
-
export declare class ControllerNamesProvider {
|
|
6
|
-
getControllerNames(): string[];
|
|
7
|
-
}
|
|
8
|
-
export declare class OperationMetadataProvider {
|
|
9
|
-
getOperationMetadata(operationName: string): IOperationMetadata<any>;
|
|
10
|
-
}
|
|
11
|
-
export declare class TimeLineEventNamesProvider {
|
|
12
|
-
getEventNames(): any[];
|
|
13
|
-
}
|
|
1
|
+
import { IOperationMetadata } from '../../operation/metadata/types';
|
|
2
|
+
export declare class OperationNamesProvider {
|
|
3
|
+
getOperationNames(): string[];
|
|
4
|
+
}
|
|
5
|
+
export declare class ControllerNamesProvider {
|
|
6
|
+
getControllerNames(): string[];
|
|
7
|
+
}
|
|
8
|
+
export declare class OperationMetadataProvider {
|
|
9
|
+
getOperationMetadata(operationName: string): IOperationMetadata<any>;
|
|
10
|
+
}
|
|
11
|
+
export declare class TimeLineEventNamesProvider {
|
|
12
|
+
getEventNames(): any[];
|
|
13
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IStrictDuration, ISubtitle } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* This class converts an AVID subtitle file to an `ISubtitle` array.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SubtitleImporter {
|
|
6
|
-
importSubtitles(rawLines: string[]): ISubtitle[];
|
|
7
|
-
stripNewlineChars(str: string): string;
|
|
8
|
-
isValidLine(line: string): boolean;
|
|
9
|
-
convertDuration(time: string): IStrictDuration;
|
|
10
|
-
convertTimeToSeconds(time: string): number;
|
|
11
|
-
}
|
|
1
|
+
import { IStrictDuration, ISubtitle } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* This class converts an AVID subtitle file to an `ISubtitle` array.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SubtitleImporter {
|
|
6
|
+
importSubtitles(rawLines: string[]): ISubtitle[];
|
|
7
|
+
stripNewlineChars(str: string): string;
|
|
8
|
+
isValidLine(line: string): boolean;
|
|
9
|
+
convertDuration(time: string): IStrictDuration;
|
|
10
|
+
convertTimeToSeconds(time: string): number;
|
|
11
|
+
}
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import { ISubtitle, ISubtitleCollection } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Used to edit and add to an {@link ISubtitleCollection}.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SubtitleEditor {
|
|
6
|
-
private collection;
|
|
7
|
-
constructor(collection?: ISubtitleCollection[]);
|
|
8
|
-
private _getLanguage;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { IStrictDuration, ISubtitle, ISubtitleCollection, TLanguageCode } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Used to edit and add to an {@link ISubtitleCollection}.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SubtitleEditor {
|
|
6
|
+
private collection;
|
|
7
|
+
constructor(collection?: ISubtitleCollection[]);
|
|
8
|
+
private _getLanguage;
|
|
9
|
+
/**
|
|
10
|
+
* Adds a new {@link ISubtitleCollection} for the given `languageCode`.
|
|
11
|
+
*
|
|
12
|
+
* If collections already exist for existing language codes then a duplicate
|
|
13
|
+
* of these collections is created with the same duration info but all of the
|
|
14
|
+
* text is left empty.
|
|
15
|
+
*
|
|
16
|
+
* @param languageCode
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
addLanguage(languageCode: TLanguageCode): this;
|
|
20
|
+
addSubtitle(languageCode: TLanguageCode, subtitle: ISubtitle): this;
|
|
21
|
+
addSubtitles(duration: IStrictDuration, subtitles: Record<TLanguageCode, string>): this;
|
|
22
|
+
setSubtitle(languageCode: TLanguageCode, subtitle: ISubtitle): this;
|
|
23
|
+
export(): ISubtitleCollection[];
|
|
24
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { TimelineTypes } from '../../types';
|
|
2
|
-
import { ITimelineProviderSettings, TTimelineProviderSettings } from '../types';
|
|
3
|
-
import { ConfigurationFactory } from './configuration-factory';
|
|
4
|
-
export declare class TimelineProvidersSettingsEditor {
|
|
5
|
-
private providersSettings;
|
|
6
|
-
private configurationFactory;
|
|
7
|
-
constructor(providersSettings: TTimelineProviderSettings, configurationFactory: ConfigurationFactory);
|
|
8
|
-
addProvider(timelineType: TimelineTypes): TimelineProviderSettingsEditor;
|
|
9
|
-
editProvider(timelineType: TimelineTypes): TimelineProviderSettingsEditor;
|
|
10
|
-
next(): ConfigurationFactory;
|
|
11
|
-
}
|
|
12
|
-
export declare class TimelineProviderSettingsEditor {
|
|
13
|
-
private providerSettings;
|
|
14
|
-
private providersSettingsEditor;
|
|
15
|
-
private configurationFactory;
|
|
16
|
-
constructor(providerSettings: ITimelineProviderSettings, providersSettingsEditor: TimelineProvidersSettingsEditor, configurationFactory: ConfigurationFactory);
|
|
17
|
-
setVendor(vendor: string): this;
|
|
18
|
-
setSelector(selector: string): this;
|
|
19
|
-
setSystemName(systemName: string): this;
|
|
20
|
-
next(): TimelineProvidersSettingsEditor;
|
|
21
|
-
end(): ConfigurationFactory;
|
|
22
|
-
}
|
|
1
|
+
import { TimelineTypes } from '../../types';
|
|
2
|
+
import { ITimelineProviderSettings, TTimelineProviderSettings } from '../types';
|
|
3
|
+
import { ConfigurationFactory } from './configuration-factory';
|
|
4
|
+
export declare class TimelineProvidersSettingsEditor {
|
|
5
|
+
private providersSettings;
|
|
6
|
+
private configurationFactory;
|
|
7
|
+
constructor(providersSettings: TTimelineProviderSettings, configurationFactory: ConfigurationFactory);
|
|
8
|
+
addProvider(timelineType: TimelineTypes): TimelineProviderSettingsEditor;
|
|
9
|
+
editProvider(timelineType: TimelineTypes): TimelineProviderSettingsEditor;
|
|
10
|
+
next(): ConfigurationFactory;
|
|
11
|
+
}
|
|
12
|
+
export declare class TimelineProviderSettingsEditor {
|
|
13
|
+
private providerSettings;
|
|
14
|
+
private providersSettingsEditor;
|
|
15
|
+
private configurationFactory;
|
|
16
|
+
constructor(providerSettings: ITimelineProviderSettings, providersSettingsEditor: TimelineProvidersSettingsEditor, configurationFactory: ConfigurationFactory);
|
|
17
|
+
setVendor(vendor: string): this;
|
|
18
|
+
setSelector(selector: string): this;
|
|
19
|
+
setSystemName(systemName: string): this;
|
|
20
|
+
next(): TimelineProvidersSettingsEditor;
|
|
21
|
+
end(): ConfigurationFactory;
|
|
22
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IAction } from '../action/types';
|
|
2
|
-
import { ActionRegistryEventbusListener } from '../eventbus';
|
|
3
|
-
import { IEventbus } from '../eventbus/types';
|
|
4
|
-
import { IConfigurationResolver, ISimpleResourceImporter } from '../types';
|
|
5
|
-
import { IEngineConfiguration, IResolvedEngineConfiguration } from './types';
|
|
6
|
-
/**
|
|
7
|
-
* Takes an `IEngineConfiguration` instance and return an `IResolvedEngineConfiguration`.
|
|
8
|
-
* This means all system names within the configuration will be resolved to their associated instances.
|
|
9
|
-
*
|
|
10
|
-
* If the given configuration includes event actions, then those will be registered in the given `ActionRegistryEventbusListener`.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare class ConfigurationResolver implements IConfigurationResolver {
|
|
14
|
-
private importer;
|
|
15
|
-
private eventbus;
|
|
16
|
-
constructor(importer: ISimpleResourceImporter, eventbus: IEventbus);
|
|
17
|
-
process(configuration: IEngineConfiguration, actionRegistryListener?: ActionRegistryEventbusListener): [Record<string, IAction>, IResolvedEngineConfiguration];
|
|
18
|
-
}
|
|
1
|
+
import { IAction } from '../action/types';
|
|
2
|
+
import { ActionRegistryEventbusListener } from '../eventbus';
|
|
3
|
+
import { IEventbus } from '../eventbus/types';
|
|
4
|
+
import { IConfigurationResolver, ISimpleResourceImporter } from '../types';
|
|
5
|
+
import { IEngineConfiguration, IResolvedEngineConfiguration } from './types';
|
|
6
|
+
/**
|
|
7
|
+
* Takes an `IEngineConfiguration` instance and return an `IResolvedEngineConfiguration`.
|
|
8
|
+
* This means all system names within the configuration will be resolved to their associated instances.
|
|
9
|
+
*
|
|
10
|
+
* If the given configuration includes event actions, then those will be registered in the given `ActionRegistryEventbusListener`.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export declare class ConfigurationResolver implements IConfigurationResolver {
|
|
14
|
+
private importer;
|
|
15
|
+
private eventbus;
|
|
16
|
+
constructor(importer: ISimpleResourceImporter, eventbus: IEventbus);
|
|
17
|
+
process(configuration: IEngineConfiguration, actionRegistryListener?: ActionRegistryEventbusListener): [Record<string, IAction>, IResolvedEngineConfiguration];
|
|
18
|
+
}
|
|
@@ -1,102 +1,102 @@
|
|
|
1
|
-
import { IEndableAction, ITimelineAction } from '../action/types';
|
|
2
|
-
import { TOperation, TOperationData } from '../operation/types';
|
|
3
|
-
import { IDuration, ILabel, ILanguageLabel, TimelineTypes } from '../types';
|
|
4
|
-
export
|
|
5
|
-
export interface IEngineInfo {
|
|
6
|
-
systemName: string;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
9
|
-
export interface IEngineConfiguration {
|
|
10
|
-
id: string;
|
|
11
|
-
engine: IEngineInfo;
|
|
12
|
-
timelineProviderSettings?: TTimelineProviderSettings;
|
|
13
|
-
containerSelector: string;
|
|
14
|
-
language: string;
|
|
15
|
-
layoutTemplate: string;
|
|
16
|
-
availableLanguages: ILabel[];
|
|
17
|
-
initActions: IEndableActionConfiguration[];
|
|
18
|
-
actions: IEndableActionConfiguration[];
|
|
19
|
-
eventActions?: IEventActionConfiguration[];
|
|
20
|
-
timelines: ITimelineConfiguration[];
|
|
21
|
-
timelineFlow?: ITimelineFlow;
|
|
22
|
-
labels: ILanguageLabel[];
|
|
23
|
-
}
|
|
24
|
-
export interface IResolvedEngineConfiguration {
|
|
25
|
-
id: string;
|
|
26
|
-
engine: IEngineInfo;
|
|
27
|
-
timelineProviderSettings: TTimelineProviderSettings;
|
|
28
|
-
containerSelector: string;
|
|
29
|
-
language: string;
|
|
30
|
-
layoutTemplate: string;
|
|
31
|
-
availableLanguages: ILabel[];
|
|
32
|
-
initActions: IEndableAction[];
|
|
33
|
-
actions: IEndableAction[];
|
|
34
|
-
timelines: IResolvedTimelineConfiguration[];
|
|
35
|
-
timelineFlow?: ITimelineFlow;
|
|
36
|
-
labels: ILanguageLabel[];
|
|
37
|
-
}
|
|
38
|
-
export interface IResolvedActionConfiguration {
|
|
39
|
-
id: string;
|
|
40
|
-
name: string;
|
|
41
|
-
startOperations: IResolvedOperation[];
|
|
42
|
-
}
|
|
43
|
-
export interface IResolvedEndableActionConfiguration extends IResolvedActionConfiguration {
|
|
44
|
-
endOperations: IResolvedOperation[];
|
|
45
|
-
}
|
|
46
|
-
export interface ITimelineFlow {
|
|
47
|
-
}
|
|
48
|
-
export interface ITimelineProviderSettings {
|
|
49
|
-
id: string;
|
|
50
|
-
vendor: string;
|
|
51
|
-
systemName: string;
|
|
52
|
-
selector?: string;
|
|
53
|
-
poster?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface IResolvedTimelineConfiguration {
|
|
56
|
-
id: string;
|
|
57
|
-
uri: string;
|
|
58
|
-
type: TimelineTypes;
|
|
59
|
-
duration: number;
|
|
60
|
-
loop: boolean;
|
|
61
|
-
selector: string;
|
|
62
|
-
timelineActions: ITimelineAction[];
|
|
63
|
-
}
|
|
64
|
-
export interface ITimelineConfiguration {
|
|
65
|
-
id: string;
|
|
66
|
-
uri: string;
|
|
67
|
-
type: TimelineTypes;
|
|
68
|
-
duration: number;
|
|
69
|
-
loop: boolean;
|
|
70
|
-
selector: string;
|
|
71
|
-
timelineActions: ITimelineActionConfiguration[];
|
|
72
|
-
}
|
|
73
|
-
export interface IOperationConfiguration {
|
|
74
|
-
id: string;
|
|
75
|
-
systemName: string;
|
|
76
|
-
operationData?: TOperationData;
|
|
77
|
-
}
|
|
78
|
-
export interface IEventActionConfiguration extends IActionConfiguration {
|
|
79
|
-
eventName: string;
|
|
80
|
-
eventTopic?: string;
|
|
81
|
-
}
|
|
82
|
-
export interface IActionConfiguration {
|
|
83
|
-
id: string;
|
|
84
|
-
name: string;
|
|
85
|
-
startOperations: IOperationConfiguration[];
|
|
86
|
-
}
|
|
87
|
-
export interface IEndableActionConfiguration extends IActionConfiguration {
|
|
88
|
-
endOperations: IOperationConfiguration[];
|
|
89
|
-
}
|
|
90
|
-
export interface ITimelineActionConfiguration extends IEndableActionConfiguration {
|
|
91
|
-
duration: IDuration;
|
|
92
|
-
}
|
|
93
|
-
export interface IEventActionConfiguration extends IActionConfiguration {
|
|
94
|
-
eventName: string;
|
|
95
|
-
eventTopic?: string;
|
|
96
|
-
}
|
|
97
|
-
export interface IResolvedOperation {
|
|
98
|
-
id: string;
|
|
99
|
-
systemName: string;
|
|
100
|
-
operationData: TOperationData;
|
|
101
|
-
instance: TOperation<any>;
|
|
102
|
-
}
|
|
1
|
+
import { IEndableAction, ITimelineAction } from '../action/types';
|
|
2
|
+
import { TOperation, TOperationData } from '../operation/types';
|
|
3
|
+
import { IDuration, ILabel, ILanguageLabel, TimelineTypes } from '../types';
|
|
4
|
+
export type ExtractDataType<P> = P extends TOperation<infer T> ? T : never;
|
|
5
|
+
export interface IEngineInfo {
|
|
6
|
+
systemName: string;
|
|
7
|
+
}
|
|
8
|
+
export type TTimelineProviderSettings = Partial<Record<TimelineTypes, ITimelineProviderSettings>>;
|
|
9
|
+
export interface IEngineConfiguration {
|
|
10
|
+
id: string;
|
|
11
|
+
engine: IEngineInfo;
|
|
12
|
+
timelineProviderSettings?: TTimelineProviderSettings;
|
|
13
|
+
containerSelector: string;
|
|
14
|
+
language: string;
|
|
15
|
+
layoutTemplate: string;
|
|
16
|
+
availableLanguages: ILabel[];
|
|
17
|
+
initActions: IEndableActionConfiguration[];
|
|
18
|
+
actions: IEndableActionConfiguration[];
|
|
19
|
+
eventActions?: IEventActionConfiguration[];
|
|
20
|
+
timelines: ITimelineConfiguration[];
|
|
21
|
+
timelineFlow?: ITimelineFlow;
|
|
22
|
+
labels: ILanguageLabel[];
|
|
23
|
+
}
|
|
24
|
+
export interface IResolvedEngineConfiguration {
|
|
25
|
+
id: string;
|
|
26
|
+
engine: IEngineInfo;
|
|
27
|
+
timelineProviderSettings: TTimelineProviderSettings;
|
|
28
|
+
containerSelector: string;
|
|
29
|
+
language: string;
|
|
30
|
+
layoutTemplate: string;
|
|
31
|
+
availableLanguages: ILabel[];
|
|
32
|
+
initActions: IEndableAction[];
|
|
33
|
+
actions: IEndableAction[];
|
|
34
|
+
timelines: IResolvedTimelineConfiguration[];
|
|
35
|
+
timelineFlow?: ITimelineFlow;
|
|
36
|
+
labels: ILanguageLabel[];
|
|
37
|
+
}
|
|
38
|
+
export interface IResolvedActionConfiguration {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
startOperations: IResolvedOperation[];
|
|
42
|
+
}
|
|
43
|
+
export interface IResolvedEndableActionConfiguration extends IResolvedActionConfiguration {
|
|
44
|
+
endOperations: IResolvedOperation[];
|
|
45
|
+
}
|
|
46
|
+
export interface ITimelineFlow {
|
|
47
|
+
}
|
|
48
|
+
export interface ITimelineProviderSettings {
|
|
49
|
+
id: string;
|
|
50
|
+
vendor: string;
|
|
51
|
+
systemName: string;
|
|
52
|
+
selector?: string;
|
|
53
|
+
poster?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface IResolvedTimelineConfiguration {
|
|
56
|
+
id: string;
|
|
57
|
+
uri: string;
|
|
58
|
+
type: TimelineTypes;
|
|
59
|
+
duration: number;
|
|
60
|
+
loop: boolean;
|
|
61
|
+
selector: string;
|
|
62
|
+
timelineActions: ITimelineAction[];
|
|
63
|
+
}
|
|
64
|
+
export interface ITimelineConfiguration {
|
|
65
|
+
id: string;
|
|
66
|
+
uri: string;
|
|
67
|
+
type: TimelineTypes;
|
|
68
|
+
duration: number;
|
|
69
|
+
loop: boolean;
|
|
70
|
+
selector: string;
|
|
71
|
+
timelineActions: ITimelineActionConfiguration[];
|
|
72
|
+
}
|
|
73
|
+
export interface IOperationConfiguration {
|
|
74
|
+
id: string;
|
|
75
|
+
systemName: string;
|
|
76
|
+
operationData?: TOperationData;
|
|
77
|
+
}
|
|
78
|
+
export interface IEventActionConfiguration extends IActionConfiguration {
|
|
79
|
+
eventName: string;
|
|
80
|
+
eventTopic?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface IActionConfiguration {
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
startOperations: IOperationConfiguration[];
|
|
86
|
+
}
|
|
87
|
+
export interface IEndableActionConfiguration extends IActionConfiguration {
|
|
88
|
+
endOperations: IOperationConfiguration[];
|
|
89
|
+
}
|
|
90
|
+
export interface ITimelineActionConfiguration extends IEndableActionConfiguration {
|
|
91
|
+
duration: IDuration;
|
|
92
|
+
}
|
|
93
|
+
export interface IEventActionConfiguration extends IActionConfiguration {
|
|
94
|
+
eventName: string;
|
|
95
|
+
eventTopic?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface IResolvedOperation {
|
|
98
|
+
id: string;
|
|
99
|
+
systemName: string;
|
|
100
|
+
operationData: TOperationData;
|
|
101
|
+
instance: TOperation<any>;
|
|
102
|
+
}
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
/// <reference types="jquery" />
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
private
|
|
32
|
-
private
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
/// <reference types="jquery" />
|
|
2
|
+
/// <reference types="jquery" />
|
|
3
|
+
import { IEndableAction } from '../action/types';
|
|
4
|
+
import { IEventbus } from '../eventbus/types';
|
|
5
|
+
import { TOperationData } from '../operation/types';
|
|
6
|
+
import { IController } from './types';
|
|
7
|
+
interface IActionInstanceInfo {
|
|
8
|
+
start: boolean;
|
|
9
|
+
action: IEndableAction;
|
|
10
|
+
}
|
|
11
|
+
export interface IEventListenerControllerOperationData {
|
|
12
|
+
selectedElement: JQuery;
|
|
13
|
+
eventName: string;
|
|
14
|
+
actions: string[];
|
|
15
|
+
actionOperationData?: TOperationData;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* This controller attaches to the given selected element and adds an event listener for the specified event name that
|
|
19
|
+
* executes the given actions with the given operation data.
|
|
20
|
+
*
|
|
21
|
+
* By default the `start` operations of the specified actions are executed. To execute the `end` operations instead,
|
|
22
|
+
* prefix the action name with `end:`.
|
|
23
|
+
*/
|
|
24
|
+
export declare class EventListenerController implements IController<IEventListenerControllerOperationData> {
|
|
25
|
+
operationData?: IEventListenerControllerOperationData;
|
|
26
|
+
actionInstanceInfos?: IActionInstanceInfo[];
|
|
27
|
+
name: string;
|
|
28
|
+
constructor();
|
|
29
|
+
init(operationData: IEventListenerControllerOperationData): void;
|
|
30
|
+
attach(eventbus: IEventbus): void;
|
|
31
|
+
private _isStartAction;
|
|
32
|
+
private _eventHandler;
|
|
33
|
+
private _executeAction;
|
|
34
|
+
detach(_eventbus: IEventbus): void;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { EventListenerController } from './event-listener-controller';
|
|
2
|
-
export { LabelController } from './label-controller';
|
|
3
|
-
export { LottieController } from './lottie-controller';
|
|
4
|
-
export { NavigationController } from './navigation-controller';
|
|
5
|
-
export { ProgressbarController } from './progressbar-controller';
|
|
6
|
-
export { RoutingController } from './routing-controller';
|
|
7
|
-
export { SubtitlesController } from './subtitles-controller';
|
|
1
|
+
export { EventListenerController } from './event-listener-controller';
|
|
2
|
+
export { LabelController } from './label-controller';
|
|
3
|
+
export { LottieController } from './lottie-controller';
|
|
4
|
+
export { NavigationController } from './navigation-controller';
|
|
5
|
+
export { ProgressbarController } from './progressbar-controller';
|
|
6
|
+
export { RoutingController } from './routing-controller';
|
|
7
|
+
export { SubtitlesController } from './subtitles-controller';
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
/// <reference types="jquery" />
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
private
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
private
|
|
30
|
-
|
|
1
|
+
/// <reference types="jquery" />
|
|
2
|
+
/// <reference types="jquery" />
|
|
3
|
+
import { IEventbus, TEventbusRemover } from '../eventbus/types';
|
|
4
|
+
import { IController } from './types';
|
|
5
|
+
export interface ILabelControllerMetadata {
|
|
6
|
+
selectedElement: JQuery;
|
|
7
|
+
labelId: string;
|
|
8
|
+
attributeName?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This controller attaches to the given selected element and renders the text associated with the given label id in it.
|
|
12
|
+
*
|
|
13
|
+
* The controller also listen for the `LANGUAGE_CHANGE` event and re-renders the text with the new language after such an event.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare class LabelController implements IController<ILabelControllerMetadata> {
|
|
17
|
+
listeners: TEventbusRemover[];
|
|
18
|
+
currentLanguage: string | null;
|
|
19
|
+
operationData: ILabelControllerMetadata | null;
|
|
20
|
+
labelData: Record<string, string>;
|
|
21
|
+
name: string;
|
|
22
|
+
requestLabelDataBound?: (labelId: string) => void;
|
|
23
|
+
init(operationData: ILabelControllerMetadata): void;
|
|
24
|
+
setLabelId(newLabelId: string): void;
|
|
25
|
+
attach(eventbus: IEventbus): void;
|
|
26
|
+
private _requestLabelData;
|
|
27
|
+
private _setLabel;
|
|
28
|
+
detach(_eventbus: IEventbus): void;
|
|
29
|
+
private _handleLanguageChange;
|
|
30
|
+
private _createTextDataLookup;
|
|
31
|
+
}
|