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,29 +1,30 @@
|
|
|
1
|
-
/// <reference types="jquery" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* @
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
/// <reference types="jquery" />
|
|
2
|
+
/// <reference types="jquery" />
|
|
3
|
+
import { TOperation } from './types';
|
|
4
|
+
export interface IGetElementDimensionsOperationData {
|
|
5
|
+
selectedElement: JQuery;
|
|
6
|
+
modifier?: string;
|
|
7
|
+
dimensions?: {
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* This operation calculates the width and height of the given selected element.
|
|
14
|
+
* It assigns this struct to the dimensions property on the current operation data.
|
|
15
|
+
* Optionally the width and height can be modified using the given modifier string.
|
|
16
|
+
*
|
|
17
|
+
* The modifier string is formatted in the following way:
|
|
18
|
+
*
|
|
19
|
+
* <operator><amount><optional-side><optional-precentage>|<ratio-definition>
|
|
20
|
+
*
|
|
21
|
+
* Where the ratio modifier is formatted in the following way:
|
|
22
|
+
* <side>[ar=<ratio-left>-<ratio-right>]
|
|
23
|
+
*
|
|
24
|
+
* For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
|
|
25
|
+
* it will add a value of 100 to the height and modify the width by a ration of 8 to 1 relative to the height.
|
|
26
|
+
*
|
|
27
|
+
* @param operationData
|
|
28
|
+
* @returns
|
|
29
|
+
*/
|
|
30
|
+
export declare const getElementDimensions: TOperation<IGetElementDimensionsOperationData>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TOperation } from './types';
|
|
2
|
-
export interface IGetImportOperationData {
|
|
3
|
-
systemName: string;
|
|
4
|
-
importedInstance?: any;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* This operation retrieves the import specified by the given
|
|
8
|
-
* assigns it to the importedInstance property on the current operaton date.
|
|
9
|
-
*
|
|
10
|
-
* @param operationData
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
export declare const getImport: TOperation<IGetImportOperationData>;
|
|
1
|
+
import { TOperation } from './types';
|
|
2
|
+
export interface IGetImportOperationData {
|
|
3
|
+
systemName: string;
|
|
4
|
+
importedInstance?: any;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* This operation retrieves the import specified by the given `systemName` and
|
|
8
|
+
* assigns it to the `importedInstance` property on the current operaton date.
|
|
9
|
+
*
|
|
10
|
+
* @param operationData
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare const getImport: TOperation<IGetImportOperationData>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { TOperation } from './types';
|
|
2
|
-
export interface IGetQueryParamsOperationData {
|
|
3
|
-
/**
|
|
4
|
-
* The query params will be added as property/values to this object.
|
|
5
|
-
* So, the query string `?foo=bar&bar=foo` will result in:
|
|
6
|
-
* ```json
|
|
7
|
-
* {
|
|
8
|
-
* foo: "bar",
|
|
9
|
-
* bar: "foo"
|
|
10
|
-
* }
|
|
11
|
-
* ```
|
|
12
|
-
* This object will be assigned to the `queryParams` property.
|
|
13
|
-
*/
|
|
14
|
-
queryParams?: Record<string, string>;
|
|
15
|
-
/**
|
|
16
|
-
* The properties on this object will be assigned to the queryParams result
|
|
17
|
-
* when the given property name is not part of the query string.
|
|
18
|
-
*/
|
|
19
|
-
defaultValues?: Record<string, string>;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* This operation retrieves the current query parameters from the browser's address bar and places
|
|
23
|
-
* them on the returned operation data.
|
|
24
|
-
*
|
|
25
|
-
* @param operationData
|
|
26
|
-
* @returns
|
|
27
|
-
*/
|
|
28
|
-
export declare const getQueryParams: TOperation<IGetQueryParamsOperationData>;
|
|
1
|
+
import { TOperation } from './types';
|
|
2
|
+
export interface IGetQueryParamsOperationData {
|
|
3
|
+
/**
|
|
4
|
+
* The query params will be added as property/values to this object.
|
|
5
|
+
* So, the query string `?foo=bar&bar=foo` will result in:
|
|
6
|
+
* ```json
|
|
7
|
+
* {
|
|
8
|
+
* foo: "bar",
|
|
9
|
+
* bar: "foo"
|
|
10
|
+
* }
|
|
11
|
+
* ```
|
|
12
|
+
* This object will be assigned to the `queryParams` property.
|
|
13
|
+
*/
|
|
14
|
+
queryParams?: Record<string, string>;
|
|
15
|
+
/**
|
|
16
|
+
* The properties on this object will be assigned to the queryParams result
|
|
17
|
+
* when the given property name is not part of the query string.
|
|
18
|
+
*/
|
|
19
|
+
defaultValues?: Record<string, string>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* This operation retrieves the current query parameters from the browser's address bar and places
|
|
23
|
+
* them on the returned operation data.
|
|
24
|
+
*
|
|
25
|
+
* @param operationData
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare const getQueryParams: TOperation<IGetQueryParamsOperationData>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
/// <reference types="jquery" />
|
|
2
|
-
|
|
1
|
+
/// <reference types="jquery" />
|
|
2
|
+
/// <reference types="jquery" />
|
|
3
|
+
export declare function attachControllerToElement(element: JQuery, controller: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function deepCopy<T>(original: T): T;
|
|
1
|
+
export declare function deepCopy<T>(original: T): T;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { IResolvedOperation } from '../../configuration/types';
|
|
2
|
-
/**
|
|
3
|
-
* This function can be used to find the index of a matching operation within a list of operations.
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* ```ts
|
|
7
|
-
* [
|
|
8
|
-
* {systemName:'name1'}, // index 0
|
|
9
|
-
* {systemName:'
|
|
10
|
-
* {systemName:'name2'}, // index 2
|
|
11
|
-
* {systemName:'
|
|
12
|
-
* {systemName:'name3'} // index 4
|
|
13
|
-
* {systemName:'
|
|
14
|
-
* {systemName:'
|
|
15
|
-
* {systemName:'name3'} // index 7
|
|
16
|
-
* ]
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* Given the
|
|
20
|
-
*
|
|
21
|
-
* Returns true when the given operation.systemName equals the specified matchingName and the current counter value is zero.
|
|
22
|
-
*
|
|
23
|
-
* If the matchingName matches operation.systemName but the counter is greater than zero, the counter is decremented.
|
|
24
|
-
*
|
|
25
|
-
* If the operation.systemName
|
|
26
|
-
*
|
|
27
|
-
* @param this
|
|
28
|
-
* @param operation
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
export declare function findMatchingOperationIndex(this: {
|
|
32
|
-
counter: number;
|
|
33
|
-
self: string;
|
|
34
|
-
matchingName: string;
|
|
35
|
-
}, operation: IResolvedOperation): boolean;
|
|
1
|
+
import { IResolvedOperation } from '../../configuration/types';
|
|
2
|
+
/**
|
|
3
|
+
* This function can be used to find the index of a matching closing operation within a list of operations.
|
|
4
|
+
*
|
|
5
|
+
* Assume the following array of operations:
|
|
6
|
+
* ```ts
|
|
7
|
+
* [
|
|
8
|
+
* {systemName:'name1'}, // index 0
|
|
9
|
+
* {systemName:'forEach'}, // index 1
|
|
10
|
+
* {systemName:'name2'}, // index 2
|
|
11
|
+
* {systemName:'forEach'} // index 3
|
|
12
|
+
* {systemName:'name3'} // index 4
|
|
13
|
+
* {systemName:'endForEach'} // index 5
|
|
14
|
+
* {systemName:'endForEach'} // index 6
|
|
15
|
+
* {systemName:'name3'} // index 7
|
|
16
|
+
* ]
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Given the `forEach` instance at index 1, this function will return index 6. Given the `forEach` at index 3, it will yield index 5.
|
|
20
|
+
*
|
|
21
|
+
* Returns `true` when the given `operation.systemName` equals the specified `matchingName` and the current counter value is zero.
|
|
22
|
+
*
|
|
23
|
+
* If the `matchingName` matches `operation.systemName` but the counter is greater than zero, the counter is decremented.
|
|
24
|
+
*
|
|
25
|
+
* If the `operation.systemName` equals `self` (the name of the operation that requires to find its match), then counter is incremented.
|
|
26
|
+
*
|
|
27
|
+
* @param this
|
|
28
|
+
* @param operation
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare function findMatchingOperationIndex(this: {
|
|
32
|
+
counter: number;
|
|
33
|
+
self: string;
|
|
34
|
+
matchingName: string;
|
|
35
|
+
}, operation: IResolvedOperation): boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/// <reference types="jquery" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
|
|
1
|
+
/// <reference types="jquery" />
|
|
2
|
+
/// <reference types="jquery" />
|
|
3
|
+
import { IController } from '../../controllers/types';
|
|
4
|
+
export declare const controllersDataName = "eligiusEngineControllers";
|
|
5
|
+
declare function getElementData(name: string, element: JQuery): IController<any>[] | undefined;
|
|
6
|
+
declare const getElementControllers: (element: JQuery<HTMLElement>) => IController<any>[] | undefined;
|
|
7
|
+
export { getElementData, getElementControllers };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/**
|
|
2
|
-
/**
|
|
3
|
-
* Gets the value for the given property chain. A property chain is defined by a string array.
|
|
4
|
-
*
|
|
5
|
-
* For example, this property chain: `[mySource, subSource, element, value]` should be extracted from an object of this shape:
|
|
6
|
-
* ```ts
|
|
7
|
-
* const foo = {
|
|
8
|
-
* mySource: {
|
|
9
|
-
* subSource: {
|
|
10
|
-
* element: {
|
|
11
|
-
* value: 'bar'
|
|
12
|
-
* }
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* The result of the invocation `getPropertyChainValue([mySource, subSource, element, value], foo)` would then yield the value `bar`.
|
|
19
|
-
*
|
|
20
|
-
* @param propertyChain
|
|
21
|
-
* @param sourceObject
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
export declare function getPropertyChainValue(propertyChain: string[], sourceObject: any): any;
|
|
1
|
+
/**
|
|
2
|
+
/**
|
|
3
|
+
* Gets the value for the given property chain. A property chain is defined by a string array.
|
|
4
|
+
*
|
|
5
|
+
* For example, this property chain: `[mySource, subSource, element, value]` should be extracted from an object of this shape:
|
|
6
|
+
* ```ts
|
|
7
|
+
* const foo = {
|
|
8
|
+
* mySource: {
|
|
9
|
+
* subSource: {
|
|
10
|
+
* element: {
|
|
11
|
+
* value: 'bar'
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* The result of the invocation `getPropertyChainValue([mySource, subSource, element, value], foo)` would then yield the value `bar`.
|
|
19
|
+
*
|
|
20
|
+
* @param propertyChain
|
|
21
|
+
* @param sourceObject
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
export declare function getPropertyChainValue(propertyChain: string[], sourceObject: any): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const getGlobals: (name?: string) => TGlobalCache | any;
|
|
3
|
-
export declare const setGlobals: (newValues: TGlobalCache) => void;
|
|
4
|
-
export declare const clearGlobals: () => void;
|
|
1
|
+
export type TGlobalCache = Record<string, any>;
|
|
2
|
+
export declare const getGlobals: (name?: string) => TGlobalCache | any;
|
|
3
|
+
export declare const setGlobals: (newValues: TGlobalCache) => void;
|
|
4
|
+
export declare const clearGlobals: () => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TOperationData } from '../types';
|
|
2
|
-
export declare function internalResolve(resolve: Function, operationData: TOperationData, newOperationData?: TOperationData): void;
|
|
1
|
+
import { TOperationData } from '../types';
|
|
2
|
+
export declare function internalResolve(resolve: Function, operationData: TOperationData, newOperationData?: TOperationData): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TOperationData } from '../types';
|
|
2
|
-
export declare function mergeOperationData<T extends TOperationData, K = T>(operationData: T, newOperationData: TOperationData): K;
|
|
1
|
+
import { TOperationData } from '../types';
|
|
2
|
+
export declare function mergeOperationData<T extends TOperationData, K = T>(operationData: T, newOperationData: TOperationData): K;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { IDimensions } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Modifies the given dimensions using the given modifier string.
|
|
4
|
-
* The modifier string is formatted in the following way:
|
|
5
|
-
*
|
|
6
|
-
* <operator><amount><optional-side><optional-precentage>|<ratio-definition>
|
|
7
|
-
*
|
|
8
|
-
* Where the ratio modifier is formatted in the following way:
|
|
9
|
-
* <side>[ar=<ratio-left>-<ratio-right>]
|
|
10
|
-
*
|
|
11
|
-
* For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
|
|
12
|
-
* it will add a value of 100 to the height and modify the width by a ration of 8 to 1 relative to the height.
|
|
13
|
-
*
|
|
14
|
-
* @param dimensions
|
|
15
|
-
* @param modifier
|
|
16
|
-
*/
|
|
17
|
-
export declare function modifyDimensions(dimensions: IDimensions, modifier: string): {
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
};
|
|
1
|
+
import { IDimensions } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Modifies the given dimensions using the given modifier string.
|
|
4
|
+
* The modifier string is formatted in the following way:
|
|
5
|
+
*
|
|
6
|
+
* <operator><amount><optional-side><optional-precentage>|<ratio-definition>
|
|
7
|
+
*
|
|
8
|
+
* Where the ratio modifier is formatted in the following way:
|
|
9
|
+
* <side>[ar=<ratio-left>-<ratio-right>]
|
|
10
|
+
*
|
|
11
|
+
* For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
|
|
12
|
+
* it will add a value of 100 to the height and modify the width by a ration of 8 to 1 relative to the height.
|
|
13
|
+
*
|
|
14
|
+
* @param dimensions
|
|
15
|
+
* @param modifier
|
|
16
|
+
*/
|
|
17
|
+
export declare function modifyDimensions(dimensions: IDimensions, modifier: string): {
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TOperationData } from '../../operation/types';
|
|
2
|
-
export declare function removeEventDataFromOperationData(operationData: TOperationData): void;
|
|
1
|
+
import { TOperationData } from '../../operation/types';
|
|
2
|
+
export declare function removeEventDataFromOperationData(operationData: TOperationData): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function removeGlobal(name: string): void;
|
|
1
|
+
export declare function removeGlobal(name: string): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IOperationContext, TOperationData } from '../../operation/types';
|
|
2
|
-
export declare function resolveEventArguments(operationData: TOperationData, operationContext: IOperationContext, eventArgs?: any[]): any[] | undefined;
|
|
1
|
+
import { IOperationContext, TOperationData } from '../../operation/types';
|
|
2
|
+
export declare function resolveEventArguments(operationData: TOperationData, operationContext: IOperationContext, eventArgs?: any[]): any[] | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { IOperationContext } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Resolves operation and global data property chains.
|
|
4
|
-
*
|
|
5
|
-
* An operation data property chain is designated by a `operationdata.` suffix, followed by an arbitrary property chain.
|
|
6
|
-
* For global data the suffix should be `globaldata.`
|
|
7
|
-
*
|
|
8
|
-
* If the propertyChainOrRegularObject is not a property chain, this value is returned instead.
|
|
9
|
-
*
|
|
10
|
-
* @param sourceObject The object that represents the operation data
|
|
11
|
-
* @param propertyChainOrRegularObject A period delimited string, or just a regular object
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
export declare function resolveExternalPropertyChain(sourceObject: any, operationContext: IOperationContext, propertyChainOrRegularObject: any): any;
|
|
1
|
+
import { IOperationContext } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves operation and global data property chains.
|
|
4
|
+
*
|
|
5
|
+
* An operation data property chain is designated by a `operationdata.` suffix, followed by an arbitrary property chain.
|
|
6
|
+
* For global data the suffix should be `globaldata.`
|
|
7
|
+
*
|
|
8
|
+
* If the propertyChainOrRegularObject is not a property chain, this value is returned instead.
|
|
9
|
+
*
|
|
10
|
+
* @param sourceObject The object that represents the operation data
|
|
11
|
+
* @param propertyChainOrRegularObject A period delimited string, or just a regular object
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveExternalPropertyChain(sourceObject: any, operationContext: IOperationContext, propertyChainOrRegularObject: any): any;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gets the value for the given property chain. A property chain is defined by a period delimited string.
|
|
3
|
-
*
|
|
4
|
-
* For example, this property chain: `mySource.subSource.element.value` should be extracted from an object of this shape:
|
|
5
|
-
* ```ts
|
|
6
|
-
* const foo = {
|
|
7
|
-
* mySource: {
|
|
8
|
-
* subSource: {
|
|
9
|
-
* element: {
|
|
10
|
-
* value: 'bar'
|
|
11
|
-
* }
|
|
12
|
-
* }
|
|
13
|
-
* }
|
|
14
|
-
* }
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* The result of the invocation `resolvePropertyChain('mySource.subSource.element.value', foo)` would then yield the value `bar`.
|
|
18
|
-
*
|
|
19
|
-
* @param propertyChain the specified property chain
|
|
20
|
-
* @param sourceObject the given source object
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
export declare function resolvePropertyChain(propertyChain: string, sourceObject: any): any;
|
|
1
|
+
/**
|
|
2
|
+
* Gets the value for the given property chain. A property chain is defined by a period delimited string.
|
|
3
|
+
*
|
|
4
|
+
* For example, this property chain: `mySource.subSource.element.value` should be extracted from an object of this shape:
|
|
5
|
+
* ```ts
|
|
6
|
+
* const foo = {
|
|
7
|
+
* mySource: {
|
|
8
|
+
* subSource: {
|
|
9
|
+
* element: {
|
|
10
|
+
* value: 'bar'
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* The result of the invocation `resolvePropertyChain('mySource.subSource.element.value', foo)` would then yield the value `bar`.
|
|
18
|
+
*
|
|
19
|
+
* @param propertyChain the specified property chain
|
|
20
|
+
* @param sourceObject the given source object
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolvePropertyChain(propertyChain: string, sourceObject: any): any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IOperationContext, TOperationData } from '../../operation/types';
|
|
2
|
-
/**
|
|
3
|
-
* This takes a `newProperties` instance, resolves all of the properties on this object and then
|
|
4
|
-
* assigns these properties to the given operationData.
|
|
5
|
-
*
|
|
6
|
-
* @param operationData
|
|
7
|
-
* @param operationContext
|
|
8
|
-
* @param newProperties
|
|
9
|
-
* @returns
|
|
10
|
-
*/
|
|
11
|
-
export declare function resolvePropertyValues<T extends TOperationData>(operationData: T, operationContext: IOperationContext, newProperties: Record<string, any>): T;
|
|
1
|
+
import { IOperationContext, TOperationData } from '../../operation/types';
|
|
2
|
+
/**
|
|
3
|
+
* This takes a `newProperties` instance, resolves all of the properties on this object and then
|
|
4
|
+
* assigns these properties to the given operationData.
|
|
5
|
+
*
|
|
6
|
+
* @param operationData
|
|
7
|
+
* @param operationContext
|
|
8
|
+
* @param newProperties
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolvePropertyValues<T extends TOperationData>(operationData: T, operationContext: IOperationContext, newProperties: Record<string, any>): T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function setGlobal(name: string, value: any): void;
|
|
1
|
+
export declare function setGlobal(name: string, value: any): void;
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
export { addClass } from './add-class';
|
|
2
|
-
export { addControllerToElement } from './add-controller-to-element';
|
|
3
|
-
export { animate } from './animate';
|
|
4
|
-
export { animateWithClass } from './animate-with-class';
|
|
5
|
-
export { broadcastEvent } from './broadcast-event';
|
|
6
|
-
export { calc } from './calc';
|
|
7
|
-
export { clearElement } from './clear-element';
|
|
8
|
-
export { clearOperationData } from './clear-operation-data';
|
|
9
|
-
export { createElement } from './create-element';
|
|
10
|
-
export { customFunction } from './custom-function';
|
|
11
|
-
export { endAction } from './end-action';
|
|
12
|
-
export {
|
|
13
|
-
export { endWhen } from './end-when';
|
|
14
|
-
export { extendController } from './extend-controller';
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export { toggleClass } from './toggle-class';
|
|
43
|
-
export { toggleElement } from './toggle-element';
|
|
44
|
-
export * from './types';
|
|
45
|
-
export { wait } from './wait';
|
|
46
|
-
export { when } from './when';
|
|
1
|
+
export { addClass } from './add-class';
|
|
2
|
+
export { addControllerToElement } from './add-controller-to-element';
|
|
3
|
+
export { animate } from './animate';
|
|
4
|
+
export { animateWithClass } from './animate-with-class';
|
|
5
|
+
export { broadcastEvent } from './broadcast-event';
|
|
6
|
+
export { calc } from './calc';
|
|
7
|
+
export { clearElement } from './clear-element';
|
|
8
|
+
export { clearOperationData } from './clear-operation-data';
|
|
9
|
+
export { createElement } from './create-element';
|
|
10
|
+
export { customFunction } from './custom-function';
|
|
11
|
+
export { endAction } from './end-action';
|
|
12
|
+
export { endForEach } from './end-for-each';
|
|
13
|
+
export { endWhen } from './end-when';
|
|
14
|
+
export { extendController } from './extend-controller';
|
|
15
|
+
export { forEach } from './for-each';
|
|
16
|
+
export { getAttributesFromElement } from './get-attributes-from-element';
|
|
17
|
+
export { getControllerFromElement } from './get-controller-from-element';
|
|
18
|
+
export { getControllerInstance } from './get-controller-instance';
|
|
19
|
+
export { getElementDimensions } from './get-element-dimensions';
|
|
20
|
+
export { getImport } from './get-import';
|
|
21
|
+
export { getQueryParams } from './get-query-params';
|
|
22
|
+
export { invokeObjectMethod } from './invoke-object-method';
|
|
23
|
+
export { loadJSON } from './load-json';
|
|
24
|
+
export { log } from './log';
|
|
25
|
+
export { math } from './math';
|
|
26
|
+
export { otherwise } from './otherwise';
|
|
27
|
+
export { removeClass } from './remove-class';
|
|
28
|
+
export { removeControllerFromElement } from './remove-controller-from-element';
|
|
29
|
+
export { removeElement } from './remove-element';
|
|
30
|
+
export { removePropertiesFromOperationData } from './remove-properties-from-operation-data';
|
|
31
|
+
export { reparentElement } from './reparent-element';
|
|
32
|
+
export { requestAction } from './request-action';
|
|
33
|
+
export { resizeAction } from './resize-action';
|
|
34
|
+
export { selectElement } from './select-element';
|
|
35
|
+
export { setData } from './set-data';
|
|
36
|
+
export { setElementAttributes } from './set-element-attributes';
|
|
37
|
+
export { setElementContent } from './set-element-content';
|
|
38
|
+
export { setGlobalData } from './set-global-data';
|
|
39
|
+
export { setOperationData } from './set-operation-data';
|
|
40
|
+
export { setStyle } from './set-style';
|
|
41
|
+
export { startAction } from './start-action';
|
|
42
|
+
export { toggleClass } from './toggle-class';
|
|
43
|
+
export { toggleElement } from './toggle-element';
|
|
44
|
+
export * from './types';
|
|
45
|
+
export { wait } from './wait';
|
|
46
|
+
export { when } from './when';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { TOperation } from './types';
|
|
2
|
-
export interface IInvokeObjectMethodOperationData {
|
|
3
|
-
/**
|
|
4
|
-
* The given object instance
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
instance: any;
|
|
8
|
-
/**
|
|
9
|
-
* The method name on the given object that will be invoked
|
|
10
|
-
*/
|
|
11
|
-
methodName: string;
|
|
12
|
-
/**
|
|
13
|
-
* Arguments that will be passed to the specified method
|
|
14
|
-
*/
|
|
15
|
-
methodArguments?: any[];
|
|
16
|
-
/**
|
|
17
|
-
* If any, the results of the method invocation are assigned to the property
|
|
18
|
-
*/
|
|
19
|
-
methodResult?: any;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* This operation invokes the specified method on the given object with the given optional arguments
|
|
23
|
-
* and assigns the result to the `methodResult` operationdata property.
|
|
24
|
-
*
|
|
25
|
-
* @param operationData
|
|
26
|
-
* @returns
|
|
27
|
-
*/
|
|
28
|
-
export declare const invokeObjectMethod: TOperation<IInvokeObjectMethodOperationData>;
|
|
1
|
+
import { TOperation } from './types';
|
|
2
|
+
export interface IInvokeObjectMethodOperationData {
|
|
3
|
+
/**
|
|
4
|
+
* The given object instance
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
instance: any;
|
|
8
|
+
/**
|
|
9
|
+
* The method name on the given object that will be invoked
|
|
10
|
+
*/
|
|
11
|
+
methodName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Arguments that will be passed to the specified method
|
|
14
|
+
*/
|
|
15
|
+
methodArguments?: any[];
|
|
16
|
+
/**
|
|
17
|
+
* If any, the results of the method invocation are assigned to the property
|
|
18
|
+
*/
|
|
19
|
+
methodResult?: any;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* This operation invokes the specified method on the given object with the given optional arguments
|
|
23
|
+
* and assigns the result to the `methodResult` operationdata property.
|
|
24
|
+
*
|
|
25
|
+
* @param operationData
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare const invokeObjectMethod: TOperation<IInvokeObjectMethodOperationData>;
|