eligius 1.4.0 → 1.5.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/README.md +2 -2
- package/dist/{index.d.ts → index.d.mts} +2518 -288
- package/dist/{index.js → index.mjs} +3164 -244
- package/dist/index.mjs.map +1 -0
- package/jsonschema/endable-action-template.json +186 -0
- package/jsonschema/endable-action.json +186 -0
- package/jsonschema/event-action.json +93 -0
- package/jsonschema/operation-templates/announce-to-screen-reader.json +43 -0
- package/jsonschema/operation-templates/clear-storage.json +43 -0
- package/jsonschema/operation-templates/compare-date.json +41 -0
- package/jsonschema/operation-templates/concatenate-strings.json +45 -0
- package/jsonschema/operation-templates/filter-array.json +51 -0
- package/jsonschema/operation-templates/find-in-array.json +51 -0
- package/jsonschema/operation-templates/format-date.json +39 -0
- package/jsonschema/operation-templates/format-text.json +37 -0
- package/jsonschema/operation-templates/get-controller-from-element.json +1 -0
- package/jsonschema/operation-templates/get-current-time.json +26 -0
- package/jsonschema/operation-templates/get-focused-element.json +26 -0
- package/jsonschema/operation-templates/get-form-data.json +26 -0
- package/jsonschema/operation-templates/get-scroll-position.json +26 -0
- package/jsonschema/operation-templates/get-text-content.json +26 -0
- package/jsonschema/operation-templates/http-delete.json +45 -0
- package/jsonschema/operation-templates/http-post.json +51 -0
- package/jsonschema/operation-templates/http-put.json +51 -0
- package/jsonschema/operation-templates/is-element-in-viewport.json +26 -0
- package/jsonschema/operation-templates/load-from-storage.json +43 -0
- package/jsonschema/operation-templates/map-array.json +39 -0
- package/jsonschema/operation-templates/remove-controller-from-element.json +1 -0
- package/jsonschema/operation-templates/replace-string.json +43 -0
- package/jsonschema/operation-templates/replace-text.json +43 -0
- package/jsonschema/operation-templates/save-to-storage.json +49 -0
- package/jsonschema/operation-templates/scroll-to-element.json +45 -0
- package/jsonschema/operation-templates/scroll-to-position.json +49 -0
- package/jsonschema/operation-templates/set-focus.json +26 -0
- package/jsonschema/operation-templates/set-form-value.json +37 -0
- package/jsonschema/operation-templates/sort-array.json +49 -0
- package/jsonschema/operation-templates/split-string.json +43 -0
- package/jsonschema/operation-templates/substring-text.json +45 -0
- package/jsonschema/operation-templates/toggle-form-element.json +39 -0
- package/jsonschema/operation-templates/validate-form.json +39 -0
- package/jsonschema/operations/announce-to-screen-reader.json +47 -0
- package/jsonschema/operations/clear-storage.json +47 -0
- package/jsonschema/operations/compare-date.json +46 -0
- package/jsonschema/operations/concatenate-strings.json +49 -0
- package/jsonschema/operations/filter-array.json +53 -0
- package/jsonschema/operations/find-in-array.json +53 -0
- package/jsonschema/operations/format-date.json +43 -0
- package/jsonschema/operations/format-text.json +41 -0
- package/jsonschema/operations/get-controller-from-element.json +1 -0
- package/jsonschema/operations/get-current-time.json +26 -0
- package/jsonschema/operations/get-focused-element.json +26 -0
- package/jsonschema/operations/get-form-data.json +26 -0
- package/jsonschema/operations/get-scroll-position.json +26 -0
- package/jsonschema/operations/get-text-content.json +26 -0
- package/jsonschema/operations/http-delete.json +49 -0
- package/jsonschema/operations/http-post.json +55 -0
- package/jsonschema/operations/http-put.json +55 -0
- package/jsonschema/operations/is-element-in-viewport.json +26 -0
- package/jsonschema/operations/load-from-storage.json +48 -0
- package/jsonschema/operations/map-array.json +43 -0
- package/jsonschema/operations/remove-controller-from-element.json +1 -0
- package/jsonschema/operations/replace-string.json +48 -0
- package/jsonschema/operations/replace-text.json +48 -0
- package/jsonschema/operations/save-to-storage.json +55 -0
- package/jsonschema/operations/scroll-to-element.json +47 -0
- package/jsonschema/operations/scroll-to-position.json +54 -0
- package/jsonschema/operations/set-focus.json +26 -0
- package/jsonschema/operations/set-form-value.json +41 -0
- package/jsonschema/operations/sort-array.json +51 -0
- package/jsonschema/operations/split-string.json +47 -0
- package/jsonschema/operations/substring-text.json +49 -0
- package/jsonschema/operations/toggle-form-element.json +43 -0
- package/jsonschema/operations/validate-form.json +41 -0
- package/jsonschema/timeline-action.json +186 -0
- package/package.json +15 -15
- package/dist/index.js.map +0 -1
- /package/dist/{chunk-Bp6m_JJh.js → chunk-z5eko27R.mjs} +0 -0
|
@@ -1,122 +1,49 @@
|
|
|
1
1
|
import { AnimationItem, CanvasRendererConfig, HTMLRendererConfig, SVGRendererConfig } from "lottie-web";
|
|
2
2
|
|
|
3
|
-
//#region src/eventbus/
|
|
4
|
-
type TEventHandler = (...args: any[]) => void;
|
|
5
|
-
type TEventbusRemover = () => void;
|
|
6
|
-
interface IEventbus {
|
|
7
|
-
clear(): void;
|
|
8
|
-
on(eventName: string, eventHandler: TEventHandler, eventTopic?: string): TEventbusRemover;
|
|
9
|
-
off(eventName: string, eventHandler: TEventHandler, eventTopic?: string): void;
|
|
10
|
-
once(eventName: string, eventHandler: TEventHandler, eventTopic?: string): TEventbusRemover;
|
|
11
|
-
broadcast(eventName: string, args?: any[]): void;
|
|
12
|
-
broadcastForTopic(eventName: string, eventTopic: string, args?: any[]): void;
|
|
13
|
-
registerEventlistener(eventbusListener: IEventbusListener): TEventbusRemover;
|
|
14
|
-
registerInterceptor(eventName: string, interceptor: IEventbusInterceptor, eventTopic?: string): TEventbusRemover;
|
|
15
|
-
}
|
|
16
|
-
interface IEventbusListener {
|
|
17
|
-
handleEvent(eventName: string, eventTopic: string | undefined, args: any[]): void;
|
|
18
|
-
}
|
|
19
|
-
interface IEventbusInterceptor {
|
|
20
|
-
intercept(eventArgs: any[]): any[];
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/eventbus/actionregistry-eventbus-listener.d.ts
|
|
3
|
+
//#region src/eventbus/events/before-request-timeline-uri.d.ts
|
|
24
4
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
5
|
+
* Event: before-request-timeline-uri
|
|
6
|
+
* @category Timeline
|
|
27
7
|
*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
handleEvent(eventName: string, eventTopic: string | undefined, args: any[]): void;
|
|
8
|
+
interface BeforeRequestTimelineUriEvent {
|
|
9
|
+
name: 'before-request-timeline-uri';
|
|
10
|
+
args: [];
|
|
32
11
|
}
|
|
33
12
|
//#endregion
|
|
34
|
-
//#region src/eventbus/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
off(eventName: string, eventHandler: TEventHandler, eventTopic?: string): void;
|
|
46
|
-
broadcast(eventName: string, args: any[]): void;
|
|
47
|
-
broadcastForTopic(eventName: string, eventTopic: string, args: any[]): void;
|
|
48
|
-
registerEventlistener(eventbusListener: IEventbusListener): TEventbusRemover;
|
|
49
|
-
registerInterceptor(eventName: string, interceptor: IEventbusInterceptor, eventTopic?: string): TEventbusRemover;
|
|
50
|
-
_callHandlers(eventName: string, eventTopic: string | undefined, args?: any): void;
|
|
13
|
+
//#region src/eventbus/events/before-request-video-url.d.ts
|
|
14
|
+
/**
|
|
15
|
+
* Event: before-request-video-url
|
|
16
|
+
* @param index - The video URL index
|
|
17
|
+
* @param requestedVideoPosition - Optional video position to seek to
|
|
18
|
+
* @param isHistoryRequest - Flag indicating if this is a history request
|
|
19
|
+
* @category Navigation
|
|
20
|
+
*/
|
|
21
|
+
interface BeforeRequestVideoUrlEvent {
|
|
22
|
+
name: 'before-request-video-url';
|
|
23
|
+
args: [index: number, requestedVideoPosition?: number, isHistoryRequest?: boolean];
|
|
51
24
|
}
|
|
52
25
|
//#endregion
|
|
53
|
-
//#region src/eventbus/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
26
|
+
//#region src/eventbus/events/dom-mutation.d.ts
|
|
27
|
+
/**
|
|
28
|
+
* Event: dom-mutation
|
|
29
|
+
* @param payload - Mutation observer payload
|
|
30
|
+
* @category Controller
|
|
31
|
+
*/
|
|
32
|
+
interface DomMutationEvent {
|
|
33
|
+
name: 'dom-mutation';
|
|
34
|
+
args: [payload: any];
|
|
58
35
|
}
|
|
59
36
|
//#endregion
|
|
60
|
-
//#region src/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
* The number of iterations for the current loop
|
|
70
|
-
*/
|
|
71
|
-
loopLength?: number;
|
|
72
|
-
/**
|
|
73
|
-
* The start index of the loop within the total number of operations
|
|
74
|
-
*/
|
|
75
|
-
loopStartIndex?: number;
|
|
76
|
-
/**
|
|
77
|
-
* The end index of the loop within the total number of operations
|
|
78
|
-
*/
|
|
79
|
-
loopEndIndex?: number;
|
|
80
|
-
/**
|
|
81
|
-
* Set this index to change the current item in the main operations loop
|
|
82
|
-
*/
|
|
83
|
-
newIndex?: number;
|
|
84
|
-
/**
|
|
85
|
-
* The current index with in the main operations loop
|
|
86
|
-
*/
|
|
87
|
-
currentIndex: number;
|
|
88
|
-
/**
|
|
89
|
-
* The eventbus instance shared amongst actions and operations
|
|
90
|
-
*/
|
|
91
|
-
eventbus: IEventbus;
|
|
92
|
-
/**
|
|
93
|
-
* The list of operations that is currently being executed
|
|
94
|
-
*/
|
|
95
|
-
operations: IResolvedOperation[];
|
|
96
|
-
/**
|
|
97
|
-
* The result of the last when evaluation, if any
|
|
98
|
-
*/
|
|
99
|
-
whenEvaluation?: boolean;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
|
-
owner?: any;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
currentItem?: any;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
*/
|
|
111
|
-
parent?: IOperationScope;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
*/
|
|
115
|
-
variables?: Record<string, unknown>;
|
|
37
|
+
//#region src/eventbus/events/highlight-navigation.d.ts
|
|
38
|
+
/**
|
|
39
|
+
* Event: highlight-navigation
|
|
40
|
+
* @param videoUrlIndex - The index of the video URL to highlight
|
|
41
|
+
* @category Navigation
|
|
42
|
+
*/
|
|
43
|
+
interface HighlightNavigationEvent {
|
|
44
|
+
name: 'highlight-navigation';
|
|
45
|
+
args: [videoUrlIndex: number];
|
|
116
46
|
}
|
|
117
|
-
type TOperation<T$1 extends TOperationData = TOperationData, RT = T$1> = (this: IOperationScope, operationData: T$1) => TOperationResult<RT>;
|
|
118
|
-
type ExtractOperationData<T$1 extends TOperation<TOperationData>> = T$1 extends TOperation<infer K> ? K : never;
|
|
119
|
-
type ExtractReturnedOperationData<T$1 extends TOperation<TOperationData, TOperationData>> = T$1 extends TOperation<any, infer K> ? unknown extends K ? ExtractOperationData<T$1> : K : never;
|
|
120
47
|
//#endregion
|
|
121
48
|
//#region src/timelineproviders/types.d.ts
|
|
122
49
|
type TPlayState = 'stopped' | 'running';
|
|
@@ -250,6 +177,589 @@ interface ISubtitle {
|
|
|
250
177
|
}
|
|
251
178
|
type RequireKeys<T$1, K$1 extends keyof T$1> = { [P in K$1]-?: T$1[P] };
|
|
252
179
|
//#endregion
|
|
180
|
+
//#region src/eventbus/events/language-change.d.ts
|
|
181
|
+
/**
|
|
182
|
+
* Event: language-change
|
|
183
|
+
* @param language - The new language code
|
|
184
|
+
* @category Language Manager
|
|
185
|
+
*/
|
|
186
|
+
interface LanguageChangeEvent {
|
|
187
|
+
name: 'language-change';
|
|
188
|
+
args: [language: TLanguageCode];
|
|
189
|
+
}
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/eventbus/events/navigate-to-video-url.d.ts
|
|
192
|
+
/**
|
|
193
|
+
* Event: navigate-to-video-url
|
|
194
|
+
* @param index - The video URL index to navigate to
|
|
195
|
+
* @param requestedVideoPosition - Optional video position to seek to
|
|
196
|
+
* @category Navigation
|
|
197
|
+
*/
|
|
198
|
+
interface NavigateToVideoUrlEvent {
|
|
199
|
+
name: 'navigate-to-video-url';
|
|
200
|
+
args: [index: number, requestedVideoPosition?: number];
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/eventbus/events/push-history-state.d.ts
|
|
204
|
+
/**
|
|
205
|
+
* Event: push-history-state
|
|
206
|
+
* @param state - The history state to push
|
|
207
|
+
* @category Navigation
|
|
208
|
+
*/
|
|
209
|
+
interface PushHistoryStateEvent {
|
|
210
|
+
name: 'push-history-state';
|
|
211
|
+
args: [state: any];
|
|
212
|
+
}
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region src/eventbus/events/request-action.d.ts
|
|
215
|
+
/**
|
|
216
|
+
* Event: request-action
|
|
217
|
+
* @param actionName - The name of the action to request
|
|
218
|
+
* @param callback - Callback that receives the action instance
|
|
219
|
+
* @category Engine Request
|
|
220
|
+
*/
|
|
221
|
+
interface RequestActionEvent {
|
|
222
|
+
name: 'request-action';
|
|
223
|
+
args: [actionName: string, callback: (actionInstance: any) => void];
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
226
|
+
//#region src/eventbus/events/request-current-language.d.ts
|
|
227
|
+
/**
|
|
228
|
+
* Event: request-current-language
|
|
229
|
+
* @param callback - Callback that receives the current language
|
|
230
|
+
* @category Engine Request
|
|
231
|
+
*/
|
|
232
|
+
interface RequestCurrentLanguageEvent {
|
|
233
|
+
name: 'request-current-language';
|
|
234
|
+
args: [callback: (language: TLanguageCode) => void];
|
|
235
|
+
}
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/eventbus/events/request-current-navigation.d.ts
|
|
238
|
+
/**
|
|
239
|
+
* Event: request-current-navigation
|
|
240
|
+
* @param callback - Callback that receives the current navigation data
|
|
241
|
+
* @category Navigation
|
|
242
|
+
*/
|
|
243
|
+
interface RequestCurrentNavigationEvent {
|
|
244
|
+
name: 'request-current-navigation';
|
|
245
|
+
args: [callback: (navigation: any) => void];
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/eventbus/events/request-current-timeline-position.d.ts
|
|
249
|
+
/**
|
|
250
|
+
* Event: request-current-timeline-position
|
|
251
|
+
* @category Engine Request
|
|
252
|
+
*/
|
|
253
|
+
interface RequestCurrentTimelinePositionEvent {
|
|
254
|
+
name: 'request-current-timeline-position';
|
|
255
|
+
args: [];
|
|
256
|
+
}
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/eventbus/events/request-current-video-position.d.ts
|
|
259
|
+
/**
|
|
260
|
+
* Event: request-current-video-position
|
|
261
|
+
* @param callback - Callback that receives the current video position
|
|
262
|
+
* @category Navigation
|
|
263
|
+
*/
|
|
264
|
+
interface RequestCurrentVideoPositionEvent {
|
|
265
|
+
name: 'request-current-video-position';
|
|
266
|
+
args: [callback: (position: number) => void];
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region src/eventbus/events/request-engine-root.d.ts
|
|
270
|
+
/**
|
|
271
|
+
* Event: request-engine-root
|
|
272
|
+
* @param callback - Callback that receives the engine root element
|
|
273
|
+
* @category Engine Request
|
|
274
|
+
*/
|
|
275
|
+
interface RequestEngineRootEvent {
|
|
276
|
+
name: 'request-engine-root';
|
|
277
|
+
args: [callback: (root: any) => void];
|
|
278
|
+
}
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region src/eventbus/events/request-function.d.ts
|
|
281
|
+
/**
|
|
282
|
+
* Event: request-function
|
|
283
|
+
* @param systemName - The name of the function to request
|
|
284
|
+
* @param callback - Callback that receives the function
|
|
285
|
+
* @category Engine Request
|
|
286
|
+
*/
|
|
287
|
+
interface RequestFunctionEvent {
|
|
288
|
+
name: 'request-function';
|
|
289
|
+
args: [systemName: string, callback: (fn: any) => void];
|
|
290
|
+
}
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region src/eventbus/events/request-instance.d.ts
|
|
293
|
+
/**
|
|
294
|
+
* Event: request-instance
|
|
295
|
+
* @param instanceName - The name of the instance to request
|
|
296
|
+
* @param callback - Callback that receives the instance
|
|
297
|
+
* @category Engine Request
|
|
298
|
+
*/
|
|
299
|
+
interface RequestInstanceEvent {
|
|
300
|
+
name: 'request-instance';
|
|
301
|
+
args: [instanceName: string, callback: (instance: any) => void];
|
|
302
|
+
}
|
|
303
|
+
//#endregion
|
|
304
|
+
//#region src/eventbus/events/request-label-collection.d.ts
|
|
305
|
+
/**
|
|
306
|
+
* Event: request-label-collection
|
|
307
|
+
* @param language - The language code
|
|
308
|
+
* @param callback - Callback that receives the label collection
|
|
309
|
+
* @category Engine Request
|
|
310
|
+
*/
|
|
311
|
+
interface RequestLabelCollectionEvent {
|
|
312
|
+
name: 'request-label-collection';
|
|
313
|
+
args: [language: string, callback: (collection: any) => void];
|
|
314
|
+
}
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region src/eventbus/events/request-label-collections.d.ts
|
|
317
|
+
/**
|
|
318
|
+
* Event: request-label-collections
|
|
319
|
+
* @param labelIds - Array of label IDs to retrieve
|
|
320
|
+
* @param callback - Callback that receives the label collections
|
|
321
|
+
* @category Engine Request
|
|
322
|
+
*/
|
|
323
|
+
interface RequestLabelCollectionsEvent {
|
|
324
|
+
name: 'request-label-collections';
|
|
325
|
+
args: [labelIds: string[], callback: (collections: any) => void];
|
|
326
|
+
}
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region src/eventbus/events/request-timeline-cleanup.d.ts
|
|
329
|
+
/**
|
|
330
|
+
* Event: request-timeline-cleanup
|
|
331
|
+
* @category Engine Request
|
|
332
|
+
*/
|
|
333
|
+
interface RequestTimelineCleanupEvent {
|
|
334
|
+
name: 'request-timeline-cleanup';
|
|
335
|
+
args: [];
|
|
336
|
+
}
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region src/eventbus/events/request-timeline-uri.d.ts
|
|
339
|
+
/**
|
|
340
|
+
* Event: request-timeline-uri
|
|
341
|
+
* @category Engine Request
|
|
342
|
+
*/
|
|
343
|
+
interface RequestTimelineUriEvent {
|
|
344
|
+
name: 'request-timeline-uri';
|
|
345
|
+
args: [];
|
|
346
|
+
}
|
|
347
|
+
//#endregion
|
|
348
|
+
//#region src/eventbus/events/request-video-cleanup.d.ts
|
|
349
|
+
/**
|
|
350
|
+
* Event: request-video-cleanup
|
|
351
|
+
* @category Navigation
|
|
352
|
+
*/
|
|
353
|
+
interface RequestVideoCleanupEvent {
|
|
354
|
+
name: 'request-video-cleanup';
|
|
355
|
+
args: [];
|
|
356
|
+
}
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region src/eventbus/events/request-video-url.d.ts
|
|
359
|
+
/**
|
|
360
|
+
* Event: request-video-url
|
|
361
|
+
* @param videoUrlIndex - The index of the video URL
|
|
362
|
+
* @param requestedVideoPosition - Optional video position to seek to
|
|
363
|
+
* @param fromRouting - Optional flag indicating if request came from routing
|
|
364
|
+
* @category Navigation
|
|
365
|
+
*/
|
|
366
|
+
interface RequestVideoUrlEvent {
|
|
367
|
+
name: 'request-video-url';
|
|
368
|
+
args: [videoUrlIndex: number, requestedVideoPosition?: number, fromRouting?: boolean];
|
|
369
|
+
}
|
|
370
|
+
//#endregion
|
|
371
|
+
//#region src/eventbus/events/timeline-complete.d.ts
|
|
372
|
+
/**
|
|
373
|
+
* Event: timeline-complete
|
|
374
|
+
* @category Timeline
|
|
375
|
+
*/
|
|
376
|
+
interface CompleteEvent {
|
|
377
|
+
name: 'timeline-complete';
|
|
378
|
+
args: [];
|
|
379
|
+
}
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region src/eventbus/events/timeline-container-request.d.ts
|
|
382
|
+
/**
|
|
383
|
+
* Event: timeline-container-request
|
|
384
|
+
* @param callback - Callback that receives the container element
|
|
385
|
+
* @category Timeline
|
|
386
|
+
*/
|
|
387
|
+
interface ContainerRequestEvent {
|
|
388
|
+
name: 'timeline-container-request';
|
|
389
|
+
args: [callback: (element: HTMLElement) => void];
|
|
390
|
+
}
|
|
391
|
+
//#endregion
|
|
392
|
+
//#region src/eventbus/events/timeline-current-timeline-change.d.ts
|
|
393
|
+
/**
|
|
394
|
+
* Event: timeline-current-timeline-change
|
|
395
|
+
* @param timelineUri - The URI of the new current timeline
|
|
396
|
+
* @category Timeline
|
|
397
|
+
*/
|
|
398
|
+
interface CurrentTimelineChangeEvent {
|
|
399
|
+
name: 'timeline-current-timeline-change';
|
|
400
|
+
args: [timelineUri: string];
|
|
401
|
+
}
|
|
402
|
+
//#endregion
|
|
403
|
+
//#region src/eventbus/events/timeline-duration-request.d.ts
|
|
404
|
+
/**
|
|
405
|
+
* Event: timeline-duration-request
|
|
406
|
+
* @param callback - Callback that receives the duration
|
|
407
|
+
* @category Timeline
|
|
408
|
+
*/
|
|
409
|
+
interface DurationRequestEvent {
|
|
410
|
+
name: 'timeline-duration-request';
|
|
411
|
+
args: [callback: (duration: number) => void];
|
|
412
|
+
}
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region src/eventbus/events/timeline-duration.d.ts
|
|
415
|
+
/**
|
|
416
|
+
* Event: timeline-duration
|
|
417
|
+
* @param getDuration - Function that returns the timeline duration
|
|
418
|
+
* @category Timeline
|
|
419
|
+
*/
|
|
420
|
+
interface DurationEvent {
|
|
421
|
+
name: 'timeline-duration';
|
|
422
|
+
args: [getDuration: (() => number) | undefined];
|
|
423
|
+
}
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/eventbus/events/timeline-firstframe.d.ts
|
|
426
|
+
/**
|
|
427
|
+
* Event: timeline-firstframe
|
|
428
|
+
* @category Timeline
|
|
429
|
+
*/
|
|
430
|
+
interface FirstFrameEvent {
|
|
431
|
+
name: 'timeline-firstframe';
|
|
432
|
+
args: [];
|
|
433
|
+
}
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region src/eventbus/events/timeline-pause-request.d.ts
|
|
436
|
+
/**
|
|
437
|
+
* Event: timeline-pause-request
|
|
438
|
+
* @category Timeline
|
|
439
|
+
*/
|
|
440
|
+
interface PauseRequestEvent {
|
|
441
|
+
name: 'timeline-pause-request';
|
|
442
|
+
args: [];
|
|
443
|
+
}
|
|
444
|
+
//#endregion
|
|
445
|
+
//#region src/eventbus/events/timeline-pause.d.ts
|
|
446
|
+
/**
|
|
447
|
+
* Event: timeline-pause
|
|
448
|
+
* @category Timeline
|
|
449
|
+
*/
|
|
450
|
+
interface PauseEvent {
|
|
451
|
+
name: 'timeline-pause';
|
|
452
|
+
args: [];
|
|
453
|
+
}
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region src/eventbus/events/timeline-play-request.d.ts
|
|
456
|
+
/**
|
|
457
|
+
* Event: timeline-play-request
|
|
458
|
+
* @category Timeline
|
|
459
|
+
*/
|
|
460
|
+
interface PlayRequestEvent {
|
|
461
|
+
name: 'timeline-play-request';
|
|
462
|
+
args: [];
|
|
463
|
+
}
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/eventbus/events/timeline-play-toggle-request.d.ts
|
|
466
|
+
/**
|
|
467
|
+
* Event: timeline-play-toggle-request
|
|
468
|
+
* @category Timeline
|
|
469
|
+
*/
|
|
470
|
+
interface PlayToggleRequestEvent {
|
|
471
|
+
name: 'timeline-play-toggle-request';
|
|
472
|
+
args: [];
|
|
473
|
+
}
|
|
474
|
+
//#endregion
|
|
475
|
+
//#region src/eventbus/events/timeline-play.d.ts
|
|
476
|
+
/**
|
|
477
|
+
* Event: timeline-play
|
|
478
|
+
* @category Timeline
|
|
479
|
+
*/
|
|
480
|
+
interface PlayEvent {
|
|
481
|
+
name: 'timeline-play';
|
|
482
|
+
args: [];
|
|
483
|
+
}
|
|
484
|
+
//#endregion
|
|
485
|
+
//#region src/eventbus/events/timeline-request-current-timeline.d.ts
|
|
486
|
+
/**
|
|
487
|
+
* Event: timeline-request-current-timeline
|
|
488
|
+
* @category Engine Request
|
|
489
|
+
*/
|
|
490
|
+
interface RequestCurrentTimelineEvent {
|
|
491
|
+
name: 'timeline-request-current-timeline';
|
|
492
|
+
args: [];
|
|
493
|
+
}
|
|
494
|
+
//#endregion
|
|
495
|
+
//#region src/eventbus/events/timeline-resize-request.d.ts
|
|
496
|
+
/**
|
|
497
|
+
* Event: timeline-resize-request
|
|
498
|
+
* @category Timeline
|
|
499
|
+
*/
|
|
500
|
+
interface ResizeRequestEvent {
|
|
501
|
+
name: 'timeline-resize-request';
|
|
502
|
+
args: [];
|
|
503
|
+
}
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region src/eventbus/events/timeline-resize.d.ts
|
|
506
|
+
/**
|
|
507
|
+
* Event: timeline-resize
|
|
508
|
+
* @category Timeline
|
|
509
|
+
*/
|
|
510
|
+
interface ResizeEvent {
|
|
511
|
+
name: 'timeline-resize';
|
|
512
|
+
args: [];
|
|
513
|
+
}
|
|
514
|
+
//#endregion
|
|
515
|
+
//#region src/eventbus/events/timeline-restart.d.ts
|
|
516
|
+
/**
|
|
517
|
+
* Event: timeline-restart
|
|
518
|
+
* @category Timeline
|
|
519
|
+
*/
|
|
520
|
+
interface RestartEvent {
|
|
521
|
+
name: 'timeline-restart';
|
|
522
|
+
args: [];
|
|
523
|
+
}
|
|
524
|
+
//#endregion
|
|
525
|
+
//#region src/eventbus/events/timeline-seek-request.d.ts
|
|
526
|
+
/**
|
|
527
|
+
* Event: timeline-seek-request
|
|
528
|
+
* @param position - The timeline position to seek to
|
|
529
|
+
* @category Timeline
|
|
530
|
+
*/
|
|
531
|
+
interface SeekRequestEvent {
|
|
532
|
+
name: 'timeline-seek-request';
|
|
533
|
+
args: [position: number];
|
|
534
|
+
}
|
|
535
|
+
//#endregion
|
|
536
|
+
//#region src/eventbus/events/timeline-seek.d.ts
|
|
537
|
+
/**
|
|
538
|
+
* Event: timeline-seek
|
|
539
|
+
* @param seekPosition - The position to seek to
|
|
540
|
+
* @param currentPosition - The current position
|
|
541
|
+
* @param duration - The timeline duration
|
|
542
|
+
* @category Timeline
|
|
543
|
+
*/
|
|
544
|
+
interface SeekEvent {
|
|
545
|
+
name: 'timeline-seek';
|
|
546
|
+
args: [seekPosition: number, currentPosition: number, duration: number];
|
|
547
|
+
}
|
|
548
|
+
//#endregion
|
|
549
|
+
//#region src/eventbus/events/timeline-seeked.d.ts
|
|
550
|
+
/**
|
|
551
|
+
* Event: timeline-seeked
|
|
552
|
+
* @param position - The new timeline position after seeking
|
|
553
|
+
* @param duration - The timeline duration
|
|
554
|
+
* @category Timeline
|
|
555
|
+
*/
|
|
556
|
+
interface SeekedEvent {
|
|
557
|
+
name: 'timeline-seeked';
|
|
558
|
+
args: [position: number, duration: number];
|
|
559
|
+
}
|
|
560
|
+
//#endregion
|
|
561
|
+
//#region src/eventbus/events/timeline-stop-request.d.ts
|
|
562
|
+
/**
|
|
563
|
+
* Event: timeline-stop-request
|
|
564
|
+
* @category Timeline
|
|
565
|
+
*/
|
|
566
|
+
interface StopRequestEvent {
|
|
567
|
+
name: 'timeline-stop-request';
|
|
568
|
+
args: [];
|
|
569
|
+
}
|
|
570
|
+
//#endregion
|
|
571
|
+
//#region src/eventbus/events/timeline-stop.d.ts
|
|
572
|
+
/**
|
|
573
|
+
* Event: timeline-stop
|
|
574
|
+
* @category Timeline
|
|
575
|
+
*/
|
|
576
|
+
interface StopEvent {
|
|
577
|
+
name: 'timeline-stop';
|
|
578
|
+
args: [];
|
|
579
|
+
}
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region src/eventbus/events/timeline-time.d.ts
|
|
582
|
+
/**
|
|
583
|
+
* Event: timeline-time
|
|
584
|
+
* @param position - The current timeline position
|
|
585
|
+
* @category Timeline
|
|
586
|
+
*/
|
|
587
|
+
interface TimeEvent {
|
|
588
|
+
name: 'timeline-time';
|
|
589
|
+
args: [position: number];
|
|
590
|
+
}
|
|
591
|
+
//#endregion
|
|
592
|
+
//#region src/eventbus/events/video-complete.d.ts
|
|
593
|
+
/**
|
|
594
|
+
* Event: video-complete
|
|
595
|
+
* @param index - The video URL index that completed
|
|
596
|
+
* @category Navigation
|
|
597
|
+
*/
|
|
598
|
+
interface VideoCompleteEvent {
|
|
599
|
+
name: 'video-complete';
|
|
600
|
+
args: [index: number];
|
|
601
|
+
}
|
|
602
|
+
//#endregion
|
|
603
|
+
//#region src/eventbus/events/types.d.ts
|
|
604
|
+
type AllEvents = BeforeRequestTimelineUriEvent | BeforeRequestVideoUrlEvent | DomMutationEvent | HighlightNavigationEvent | LanguageChangeEvent | NavigateToVideoUrlEvent | PushHistoryStateEvent | RequestActionEvent | RequestCurrentLanguageEvent | RequestCurrentNavigationEvent | RequestCurrentTimelinePositionEvent | RequestCurrentVideoPositionEvent | RequestEngineRootEvent | RequestFunctionEvent | RequestInstanceEvent | RequestLabelCollectionEvent | RequestLabelCollectionsEvent | RequestTimelineCleanupEvent | RequestTimelineUriEvent | RequestVideoCleanupEvent | RequestVideoUrlEvent | CompleteEvent | ContainerRequestEvent | CurrentTimelineChangeEvent | DurationRequestEvent | DurationEvent | FirstFrameEvent | PauseRequestEvent | PauseEvent | PlayRequestEvent | PlayToggleRequestEvent | PlayEvent | RequestCurrentTimelineEvent | ResizeRequestEvent | ResizeEvent | RestartEvent | SeekRequestEvent | SeekEvent | SeekedEvent | StopRequestEvent | StopEvent | TimeEvent | VideoCompleteEvent;
|
|
605
|
+
type EventMap = { [K in AllEvents as K['name']]: K['args'] };
|
|
606
|
+
type EventName = keyof EventMap;
|
|
607
|
+
//#endregion
|
|
608
|
+
//#region src/eventbus/types.d.ts
|
|
609
|
+
type TEventHandler = (...args: any[]) => void;
|
|
610
|
+
type TEventbusRemover = () => void;
|
|
611
|
+
interface IEventbus {
|
|
612
|
+
clear(): void;
|
|
613
|
+
on<E extends EventName>(eventName: E, eventHandler: (...args: EventMap[E]) => void, eventTopic?: string): TEventbusRemover;
|
|
614
|
+
off<E extends EventName>(eventName: E, eventHandler: (...args: EventMap[E]) => void, eventTopic?: string): void;
|
|
615
|
+
once<E extends EventName>(eventName: E, eventHandler: (...args: EventMap[E]) => void, eventTopic?: string): TEventbusRemover;
|
|
616
|
+
broadcast<E extends EventName>(eventName: E, args: EventMap[E]): void;
|
|
617
|
+
broadcastForTopic<E extends EventName>(eventName: E, eventTopic: string, args: EventMap[E]): void;
|
|
618
|
+
registerEventlistener(eventbusListener: IEventbusListener): TEventbusRemover;
|
|
619
|
+
registerInterceptor(eventName: string, interceptor: IEventbusInterceptor, eventTopic?: string): TEventbusRemover;
|
|
620
|
+
}
|
|
621
|
+
interface IEventbusListener {
|
|
622
|
+
handleEvent(eventName: string, eventTopic: string | undefined, args: any[]): void;
|
|
623
|
+
}
|
|
624
|
+
interface IEventbusInterceptor {
|
|
625
|
+
intercept(eventArgs: any[]): any[];
|
|
626
|
+
}
|
|
627
|
+
//#endregion
|
|
628
|
+
//#region src/eventbus/actionregistry-eventbus-listener.d.ts
|
|
629
|
+
/**
|
|
630
|
+
* The `IEventbusListener` first registers a number of actions that are then
|
|
631
|
+
* executed when the specified event is broadcast.
|
|
632
|
+
*/
|
|
633
|
+
declare class ActionRegistryEventbusListener implements IEventbusListener {
|
|
634
|
+
private _actionRegistry;
|
|
635
|
+
registerAction(action: IAction, eventName: string, eventTopic?: string): void;
|
|
636
|
+
handleEvent(eventName: string, eventTopic: string | undefined, args: any[]): void;
|
|
637
|
+
}
|
|
638
|
+
//#endregion
|
|
639
|
+
//#region src/eventbus/eventbus.d.ts
|
|
640
|
+
declare class Eventbus implements IEventbus {
|
|
641
|
+
private eventHandlers;
|
|
642
|
+
private eventInterceptors;
|
|
643
|
+
private eventListeners;
|
|
644
|
+
constructor();
|
|
645
|
+
clear(): void;
|
|
646
|
+
_getEventInterceptors(eventName: string, eventTopic?: string): IEventbusInterceptor[];
|
|
647
|
+
_getEventHandlers(eventName: string, eventTopic?: string): TEventHandler[];
|
|
648
|
+
on(eventName: string, eventHandler: TEventHandler, eventTopic?: string): TEventbusRemover;
|
|
649
|
+
once(eventName: string, eventHandler: TEventHandler, eventTopic?: string): TEventbusRemover;
|
|
650
|
+
off(eventName: string, eventHandler: TEventHandler, eventTopic?: string): void;
|
|
651
|
+
broadcast(eventName: string, args: any[]): void;
|
|
652
|
+
broadcastForTopic(eventName: string, eventTopic: string, args: any[]): void;
|
|
653
|
+
registerEventlistener(eventbusListener: IEventbusListener): TEventbusRemover;
|
|
654
|
+
registerInterceptor(eventName: string, interceptor: IEventbusInterceptor, eventTopic?: string): TEventbusRemover;
|
|
655
|
+
_callHandlers(eventName: string, eventTopic: string | undefined, args?: any): void;
|
|
656
|
+
}
|
|
657
|
+
//#endregion
|
|
658
|
+
//#region src/eventbus/events/metadata/types.d.ts
|
|
659
|
+
/**
|
|
660
|
+
* Metadata for an event in the EventBus system.
|
|
661
|
+
*
|
|
662
|
+
* This interface describes the structure of event metadata generated from
|
|
663
|
+
* event interface definitions. Metadata is used for documentation, tooling,
|
|
664
|
+
* and runtime validation.
|
|
665
|
+
*
|
|
666
|
+
* @template TArgs - The tuple type of event arguments
|
|
667
|
+
*
|
|
668
|
+
* @example
|
|
669
|
+
* ```typescript
|
|
670
|
+
* const seekMetadata: IEventMetadata<[position: number]> = {
|
|
671
|
+
* description: 'Event: timeline-seek-request',
|
|
672
|
+
* category: 'Timeline',
|
|
673
|
+
* args: [
|
|
674
|
+
* { name: 'position', type: 'number', description: 'Timeline position to seek to' }
|
|
675
|
+
* ]
|
|
676
|
+
* };
|
|
677
|
+
* ```
|
|
678
|
+
*/
|
|
679
|
+
interface IEventMetadata<_TArgs extends any[] = any[]> {
|
|
680
|
+
/** Human-readable description of the event, typically "Event: {event-name}" */
|
|
681
|
+
description: string;
|
|
682
|
+
/** Category grouping for the event (e.g., "Timeline", "Language", "Engine") */
|
|
683
|
+
category: string;
|
|
684
|
+
/** Metadata for each argument in the event's args tuple */
|
|
685
|
+
args: Array<{
|
|
686
|
+
/** Name of the argument (from labeled tuple element) */
|
|
687
|
+
name: string;
|
|
688
|
+
/** TypeScript type of the argument as a string (e.g., "number", "string") */
|
|
689
|
+
type: string;
|
|
690
|
+
/** Optional description of the argument from JSDoc @param tag */
|
|
691
|
+
description?: string;
|
|
692
|
+
}>;
|
|
693
|
+
}
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region src/eventbus/request-video-uri-interceptor.d.ts
|
|
696
|
+
declare class RequestVideoUriInterceptor implements IEventbusInterceptor {
|
|
697
|
+
private eventbus;
|
|
698
|
+
constructor(eventbus: IEventbus);
|
|
699
|
+
intercept(args: any[]): any[];
|
|
700
|
+
}
|
|
701
|
+
//#endregion
|
|
702
|
+
//#region src/operation/types.d.ts
|
|
703
|
+
type TOperationData = Record<string, any>;
|
|
704
|
+
type TOperationResult<T$1 = TOperationData> = Promise<T$1> | T$1;
|
|
705
|
+
interface IOperationScope {
|
|
706
|
+
/**
|
|
707
|
+
* When inside a loop, this is the current iteration of said loop
|
|
708
|
+
*/
|
|
709
|
+
loopIndex?: number;
|
|
710
|
+
/**
|
|
711
|
+
* The number of iterations for the current loop
|
|
712
|
+
*/
|
|
713
|
+
loopLength?: number;
|
|
714
|
+
/**
|
|
715
|
+
* The start index of the loop within the total number of operations
|
|
716
|
+
*/
|
|
717
|
+
loopStartIndex?: number;
|
|
718
|
+
/**
|
|
719
|
+
* The end index of the loop within the total number of operations
|
|
720
|
+
*/
|
|
721
|
+
loopEndIndex?: number;
|
|
722
|
+
/**
|
|
723
|
+
* Set this index to change the current item in the main operations loop
|
|
724
|
+
*/
|
|
725
|
+
newIndex?: number;
|
|
726
|
+
/**
|
|
727
|
+
* The current index with in the main operations loop
|
|
728
|
+
*/
|
|
729
|
+
currentIndex: number;
|
|
730
|
+
/**
|
|
731
|
+
* The eventbus instance shared amongst actions and operations
|
|
732
|
+
*/
|
|
733
|
+
eventbus: IEventbus;
|
|
734
|
+
/**
|
|
735
|
+
* The list of operations that is currently being executed
|
|
736
|
+
*/
|
|
737
|
+
operations: IResolvedOperation[];
|
|
738
|
+
/**
|
|
739
|
+
* The result of the last when evaluation, if any
|
|
740
|
+
*/
|
|
741
|
+
whenEvaluation?: boolean;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
*/
|
|
745
|
+
owner?: any;
|
|
746
|
+
/**
|
|
747
|
+
*
|
|
748
|
+
*/
|
|
749
|
+
currentItem?: any;
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
*/
|
|
753
|
+
parent?: IOperationScope;
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
*/
|
|
757
|
+
variables?: Record<string, unknown>;
|
|
758
|
+
}
|
|
759
|
+
type TOperation<T$1 extends TOperationData = TOperationData, RT = T$1> = (this: IOperationScope, operationData: T$1) => TOperationResult<RT>;
|
|
760
|
+
type ExtractOperationData<T$1 extends TOperation<TOperationData>> = T$1 extends TOperation<infer K> ? K : never;
|
|
761
|
+
type ExtractReturnedOperationData<T$1 extends TOperation<TOperationData, TOperationData>> = T$1 extends TOperation<any, infer K> ? unknown extends K ? ExtractOperationData<T$1> : K : never;
|
|
762
|
+
//#endregion
|
|
253
763
|
//#region src/action/types.d.ts
|
|
254
764
|
interface IAction {
|
|
255
765
|
id: string;
|
|
@@ -306,7 +816,6 @@ declare class DOMEventListenerController implements IController<IDOMEventListene
|
|
|
306
816
|
operationData?: IDOMEventListenerControllerOperationData;
|
|
307
817
|
actionInstanceInfos?: IActionInstanceInfo[];
|
|
308
818
|
name: string;
|
|
309
|
-
constructor();
|
|
310
819
|
init(operationData: IDOMEventListenerControllerOperationData): void;
|
|
311
820
|
attach(eventbus: IEventbus): void;
|
|
312
821
|
private _isStartAction;
|
|
@@ -356,7 +865,7 @@ declare abstract class BaseController<T$1 extends TOperationData> implements ICo
|
|
|
356
865
|
* @param eventName - Name of the event to listen for
|
|
357
866
|
* @param handler - Event handler function (will be bound to this controller)
|
|
358
867
|
*/
|
|
359
|
-
protected addListener(eventbus: IEventbus, eventName:
|
|
868
|
+
protected addListener(eventbus: IEventbus, eventName: EventName, handler: (...args: any[]) => void): void;
|
|
360
869
|
/**
|
|
361
870
|
* Register multiple event listeners at once
|
|
362
871
|
*
|
|
@@ -365,7 +874,7 @@ declare abstract class BaseController<T$1 extends TOperationData> implements ICo
|
|
|
365
874
|
*/
|
|
366
875
|
protected attachMultiple(eventbus: IEventbus, listeners: Array<{
|
|
367
876
|
eventName: string;
|
|
368
|
-
handler:
|
|
877
|
+
handler: (...args: any[]) => void;
|
|
369
878
|
}>): void;
|
|
370
879
|
/**
|
|
371
880
|
* Clean up all tracked event listeners
|
|
@@ -430,52 +939,201 @@ interface IInnerMetadata {
|
|
|
430
939
|
loop: boolean;
|
|
431
940
|
autoplay: boolean;
|
|
432
941
|
/**
|
|
433
|
-
* ParameterType:object
|
|
942
|
+
* ParameterType:object
|
|
943
|
+
*/
|
|
944
|
+
animationData: any;
|
|
945
|
+
/**
|
|
946
|
+
* @required
|
|
947
|
+
*/
|
|
948
|
+
json: any;
|
|
949
|
+
/**
|
|
950
|
+
* @type=ParameterType:array
|
|
951
|
+
* @itemType=ParameterType:labelId
|
|
952
|
+
*/
|
|
953
|
+
labelIds: string[];
|
|
954
|
+
viewBox: string;
|
|
955
|
+
iefallback: any;
|
|
956
|
+
}
|
|
957
|
+
interface ILottieControllerMetadata extends IInnerMetadata {
|
|
958
|
+
/**
|
|
959
|
+
* @type=ParameterType:url
|
|
960
|
+
* @required
|
|
961
|
+
*/
|
|
962
|
+
url: string;
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* This controller renders a [lottie-web](https://github.com/airbnb/lottie-web) animation inside the given selected element.
|
|
966
|
+
*
|
|
967
|
+
* The url may encode freeze and end positions like this: my-url/filename[freeze=10,end=21].json
|
|
968
|
+
*
|
|
969
|
+
*/
|
|
970
|
+
declare class LottieController extends BaseController<ILottieControllerMetadata> {
|
|
971
|
+
name: string;
|
|
972
|
+
currentLanguage: TLanguageCode;
|
|
973
|
+
labelData: Record<string, Record<string, string>>;
|
|
974
|
+
animationItem: AnimationItem | null;
|
|
975
|
+
serializedData: string | null;
|
|
976
|
+
serializedIEData: string | null;
|
|
977
|
+
freezePosition: number;
|
|
978
|
+
endPosition: number;
|
|
979
|
+
init(operationData: ILottieControllerMetadata): void;
|
|
980
|
+
private _parseFilename;
|
|
981
|
+
attach(eventbus: IEventbus): void;
|
|
982
|
+
detach(eventbus: IEventbus): void;
|
|
983
|
+
private _destroy;
|
|
984
|
+
private _createAnimation;
|
|
985
|
+
private _createTextDataLookup;
|
|
986
|
+
private _handleLanguageChange;
|
|
987
|
+
private _isIE;
|
|
988
|
+
}
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region src/controllers/mutation-observer-controller.d.ts
|
|
991
|
+
/**
|
|
992
|
+
* Metadata configuration for MutationObserverController
|
|
993
|
+
*
|
|
994
|
+
* Configures what types of DOM mutations to observe and how to observe them.
|
|
995
|
+
*/
|
|
996
|
+
interface IMutationObserverControllerMetadata {
|
|
997
|
+
/**
|
|
998
|
+
* jQuery-wrapped DOM element to observe for mutations
|
|
999
|
+
* @dependency
|
|
1000
|
+
* @required
|
|
1001
|
+
*/
|
|
1002
|
+
selectedElement: JQuery;
|
|
1003
|
+
/**
|
|
1004
|
+
* Observe changes to element attributes
|
|
1005
|
+
* @optional
|
|
1006
|
+
* @default true
|
|
1007
|
+
*/
|
|
1008
|
+
observeAttributes?: boolean;
|
|
1009
|
+
/**
|
|
1010
|
+
* Observe additions and removals of child nodes
|
|
1011
|
+
* @optional
|
|
1012
|
+
* @default true
|
|
1013
|
+
*/
|
|
1014
|
+
observeChildList?: boolean;
|
|
1015
|
+
/**
|
|
1016
|
+
* Observe changes to text content (character data)
|
|
1017
|
+
* @optional
|
|
1018
|
+
* @default true
|
|
1019
|
+
*/
|
|
1020
|
+
observeCharacterData?: boolean;
|
|
1021
|
+
/**
|
|
1022
|
+
* Observe mutations in the entire subtree (all descendants)
|
|
1023
|
+
* @optional
|
|
1024
|
+
* @default false
|
|
1025
|
+
*/
|
|
1026
|
+
observeSubtree?: boolean;
|
|
1027
|
+
/**
|
|
1028
|
+
* Record the previous value of attributes that change
|
|
1029
|
+
* Requires observeAttributes to be true
|
|
1030
|
+
* @optional
|
|
1031
|
+
* @default false
|
|
434
1032
|
*/
|
|
435
|
-
|
|
1033
|
+
attributeOldValue?: boolean;
|
|
436
1034
|
/**
|
|
437
|
-
*
|
|
1035
|
+
* Record the previous value of text content that changes
|
|
1036
|
+
* Requires observeCharacterData to be true
|
|
1037
|
+
* @optional
|
|
1038
|
+
* @default false
|
|
438
1039
|
*/
|
|
439
|
-
|
|
1040
|
+
characterDataOldValue?: boolean;
|
|
440
1041
|
/**
|
|
441
|
-
*
|
|
442
|
-
*
|
|
1042
|
+
* Array of specific attribute local names to observe
|
|
1043
|
+
* If omitted, all attribute changes are observed when observeAttributes is true
|
|
1044
|
+
* @optional
|
|
443
1045
|
*/
|
|
444
|
-
|
|
445
|
-
viewBox: string;
|
|
446
|
-
iefallback: any;
|
|
1046
|
+
attributeFilter?: string[];
|
|
447
1047
|
}
|
|
448
|
-
|
|
1048
|
+
/**
|
|
1049
|
+
* Mutation event payload broadcasted through Eligius eventbus
|
|
1050
|
+
*/
|
|
1051
|
+
interface IMutationEventPayload {
|
|
449
1052
|
/**
|
|
450
|
-
*
|
|
451
|
-
* @required
|
|
1053
|
+
* Array of mutation records from the MutationObserver callback
|
|
452
1054
|
*/
|
|
453
|
-
|
|
1055
|
+
mutations: MutationRecord[];
|
|
1056
|
+
/**
|
|
1057
|
+
* Reference to the observed element (native DOM node)
|
|
1058
|
+
*/
|
|
1059
|
+
target: Element;
|
|
1060
|
+
/**
|
|
1061
|
+
* Timestamp when the mutations were detected
|
|
1062
|
+
*/
|
|
1063
|
+
timestamp: number;
|
|
454
1064
|
}
|
|
455
1065
|
/**
|
|
456
|
-
*
|
|
1066
|
+
* Controller that observes DOM mutations on a selected element and broadcasts events.
|
|
457
1067
|
*
|
|
458
|
-
*
|
|
1068
|
+
* This controller creates a MutationObserver to monitor DOM changes (attributes, child nodes,
|
|
1069
|
+
* text content) on a specified element. All detected mutations are broadcasted through the
|
|
1070
|
+
* Eligius eventbus, enabling reactive behavior in response to DOM changes.
|
|
1071
|
+
*
|
|
1072
|
+
* The controller follows the standard Eligius lifecycle:
|
|
1073
|
+
* - init(): Store configuration metadata
|
|
1074
|
+
* - attach(): Create and start the MutationObserver
|
|
1075
|
+
* - detach(): Disconnect the observer and clean up resources
|
|
1076
|
+
*
|
|
1077
|
+
* @example
|
|
1078
|
+
* ```typescript
|
|
1079
|
+
* // JSON configuration
|
|
1080
|
+
* {
|
|
1081
|
+
* "systemName": "addControllerToElement",
|
|
1082
|
+
* "operationData": {
|
|
1083
|
+
* "controllerName": "MutationObserverController",
|
|
1084
|
+
* "observeAttributes": true,
|
|
1085
|
+
* "observeChildList": true,
|
|
1086
|
+
* "observeCharacterData": false
|
|
1087
|
+
* }
|
|
1088
|
+
* }
|
|
459
1089
|
*
|
|
1090
|
+
* // Listen for mutations
|
|
1091
|
+
* eventbus.on('dom-mutation', (payload: IMutationEventPayload) => {
|
|
1092
|
+
* console.log('Mutations detected:', payload.mutations);
|
|
1093
|
+
* });
|
|
1094
|
+
* ```
|
|
460
1095
|
*/
|
|
461
|
-
declare class
|
|
1096
|
+
declare class MutationObserverController extends BaseController<IMutationObserverControllerMetadata> {
|
|
462
1097
|
name: string;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
1098
|
+
private observer;
|
|
1099
|
+
/**
|
|
1100
|
+
* Initialize the controller with configuration metadata.
|
|
1101
|
+
*
|
|
1102
|
+
* @param operationData - Configuration for observation behavior
|
|
1103
|
+
*/
|
|
1104
|
+
init(operationData: IMutationObserverControllerMetadata): void;
|
|
1105
|
+
/**
|
|
1106
|
+
* Attach the controller and start observing mutations.
|
|
1107
|
+
* Creates MutationObserver instance and begins monitoring the target element.
|
|
1108
|
+
*
|
|
1109
|
+
* @param eventbus - Eligius eventbus for broadcasting mutation events
|
|
1110
|
+
*/
|
|
472
1111
|
attach(eventbus: IEventbus): void;
|
|
1112
|
+
/**
|
|
1113
|
+
* Detach the controller and stop observing mutations.
|
|
1114
|
+
* Disconnects MutationObserver and cleans up resources.
|
|
1115
|
+
*
|
|
1116
|
+
* @param eventbus - Eligius eventbus (used by BaseController for cleanup)
|
|
1117
|
+
*/
|
|
473
1118
|
detach(eventbus: IEventbus): void;
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
1119
|
+
/**
|
|
1120
|
+
* Build MutationObserverInit options from controller metadata.
|
|
1121
|
+
* Applies default values for optional configuration properties.
|
|
1122
|
+
*
|
|
1123
|
+
* @returns MutationObserverInit options object
|
|
1124
|
+
* @private
|
|
1125
|
+
*/
|
|
1126
|
+
private _buildObserverOptions;
|
|
1127
|
+
/**
|
|
1128
|
+
* Handle mutations detected by the MutationObserver.
|
|
1129
|
+
* Broadcasts mutation events through the eventbus with mutation details.
|
|
1130
|
+
*
|
|
1131
|
+
* @param eventbus - Eligius eventbus for broadcasting
|
|
1132
|
+
* @param target - The observed element
|
|
1133
|
+
* @param mutations - Array of mutation records from observer callback
|
|
1134
|
+
* @private
|
|
1135
|
+
*/
|
|
1136
|
+
private _handleMutations;
|
|
479
1137
|
}
|
|
480
1138
|
//#endregion
|
|
481
1139
|
//#region src/controllers/navigation-controller.d.ts
|
|
@@ -578,7 +1236,7 @@ interface ISubtitlesControllerOperationData {
|
|
|
578
1236
|
* @dependency
|
|
579
1237
|
*/
|
|
580
1238
|
selectedElement: JQuery;
|
|
581
|
-
language:
|
|
1239
|
+
language: TLanguageCode;
|
|
582
1240
|
/**
|
|
583
1241
|
* @type=ParameterType:array
|
|
584
1242
|
* @itemType=ParameterType:object
|
|
@@ -587,22 +1245,22 @@ interface ISubtitlesControllerOperationData {
|
|
|
587
1245
|
}
|
|
588
1246
|
declare class SubtitlesController extends BaseController<ISubtitlesControllerOperationData> {
|
|
589
1247
|
actionLookup: Record<string, any>;
|
|
590
|
-
currentLanguage:
|
|
591
|
-
lastFunc:
|
|
1248
|
+
currentLanguage: TLanguageCode | null;
|
|
1249
|
+
lastFunc: (() => void) | null;
|
|
592
1250
|
name: string;
|
|
593
1251
|
subtitleDurations: IStrictDuration[] | null;
|
|
594
1252
|
attach(eventbus: IEventbus): void;
|
|
595
1253
|
detach(eventbus: IEventbus): void;
|
|
596
|
-
languageChangeHandler(newLanguage:
|
|
1254
|
+
languageChangeHandler(newLanguage: TLanguageCode): void;
|
|
597
1255
|
removeTitle(container?: JQuery): void;
|
|
598
1256
|
onTimeHandler(position: number): void;
|
|
599
|
-
onSeekedHandler(
|
|
1257
|
+
onSeekedHandler(position: number, _duration: number): void;
|
|
600
1258
|
setTitle(container: JQuery, titleLanguageLookup: Record<string, string>): void;
|
|
601
1259
|
createActionLookup(operationData: ISubtitlesControllerOperationData, container: JQuery): Record<number, () => void>;
|
|
602
1260
|
init(operationData: ISubtitlesControllerOperationData): void;
|
|
603
1261
|
}
|
|
604
|
-
declare namespace index_d_exports$
|
|
605
|
-
export { DOMEventListenerController, IDOMEventListenerControllerOperationData, ILabelControllerMetadata, ILottieControllerMetadata, INavigationControllerOperationData, IProgressbarControllerOperationData, IRoutingControllerOperationData, ISubtitlesControllerOperationData, LabelController, LottieController, NavigationController, ProgressbarController, RoutingController, SubtitlesController };
|
|
1262
|
+
declare namespace index_d_exports$4 {
|
|
1263
|
+
export { DOMEventListenerController, IDOMEventListenerControllerOperationData, ILabelControllerMetadata, ILottieControllerMetadata, IMutationEventPayload, IMutationObserverControllerMetadata, INavigationControllerOperationData, IProgressbarControllerOperationData, IRoutingControllerOperationData, ISubtitlesControllerOperationData, LabelController, LottieController, MutationObserverController, NavigationController, ProgressbarController, RoutingController, SubtitlesController };
|
|
606
1264
|
}
|
|
607
1265
|
//#endregion
|
|
608
1266
|
//#region src/operation/add-class.d.ts
|
|
@@ -621,6 +1279,7 @@ interface IAddClassOperationData {
|
|
|
621
1279
|
/**
|
|
622
1280
|
* This operation adds the specified class name to the specified selected element.
|
|
623
1281
|
*
|
|
1282
|
+
* @category DOM
|
|
624
1283
|
*/
|
|
625
1284
|
declare const addClass: TOperation<IAddClassOperationData, Omit<IAddClassOperationData, 'className'>>;
|
|
626
1285
|
//#endregion
|
|
@@ -638,6 +1297,7 @@ type IAddControllerToElementOperationData<T$1 extends TOperationData = TOperatio
|
|
|
638
1297
|
/**
|
|
639
1298
|
* This operation adds the specified controller instance to the given selected element.
|
|
640
1299
|
*
|
|
1300
|
+
* @category Controller
|
|
641
1301
|
*/
|
|
642
1302
|
declare const addControllerToElement: TOperation<IAddControllerToElementOperationData>;
|
|
643
1303
|
//#endregion
|
|
@@ -654,6 +1314,8 @@ interface IAddGlobalsToOperationData {
|
|
|
654
1314
|
/**
|
|
655
1315
|
* This operation adds the specified global property names to the current operation data.
|
|
656
1316
|
* It finally removes the `globalProperties` property from the current operation data.
|
|
1317
|
+
*
|
|
1318
|
+
* @category Data
|
|
657
1319
|
*/
|
|
658
1320
|
declare const addGlobalsToOperation: TOperation<IAddGlobalsToOperationData, Omit<IAddGlobalsToOperationData, 'globalProperties'>>;
|
|
659
1321
|
//#endregion
|
|
@@ -686,6 +1348,8 @@ interface IAnimateOperationData {
|
|
|
686
1348
|
*
|
|
687
1349
|
* @param operationData
|
|
688
1350
|
* @returns
|
|
1351
|
+
*
|
|
1352
|
+
* @category Animation
|
|
689
1353
|
*/
|
|
690
1354
|
declare const animate: TOperation<IAnimateOperationData, Omit<IAnimateOperationData, 'animationEasing' | 'animationProperties' | 'animationDuration'>>;
|
|
691
1355
|
//#endregion
|
|
@@ -706,15 +1370,38 @@ interface IAnimateWithClassOperationData {
|
|
|
706
1370
|
* This operation adds the specified class name to the specified selected element and assumes that this
|
|
707
1371
|
* class triggers and animation on the selected element. It then waits for this animation to complete
|
|
708
1372
|
* before it resolves.
|
|
1373
|
+
*
|
|
1374
|
+
* @category Animation
|
|
709
1375
|
*/
|
|
710
1376
|
declare const animateWithClass: TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>>;
|
|
711
1377
|
//#endregion
|
|
1378
|
+
//#region src/operation/announce-to-screen-reader.d.ts
|
|
1379
|
+
interface IAnnounceToScreenReaderOperationData {
|
|
1380
|
+
/**
|
|
1381
|
+
* @required
|
|
1382
|
+
* @erased
|
|
1383
|
+
*/
|
|
1384
|
+
message: string;
|
|
1385
|
+
/**
|
|
1386
|
+
* @optional
|
|
1387
|
+
* @erased
|
|
1388
|
+
*/
|
|
1389
|
+
priority?: 'polite' | 'assertive';
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Announces a message to screen readers using an ARIA live region.
|
|
1393
|
+
*
|
|
1394
|
+
* @category Accessibility
|
|
1395
|
+
*/
|
|
1396
|
+
declare const announceToScreenReader: TOperation<IAnnounceToScreenReaderOperationData, Omit<IAnnounceToScreenReaderOperationData, 'message' | 'priority'>>;
|
|
1397
|
+
//#endregion
|
|
712
1398
|
//#region src/operation/break-for-each.d.ts
|
|
713
1399
|
/**
|
|
714
1400
|
*
|
|
715
1401
|
* This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
716
1402
|
* operation. This operation immediately moves to the loop end index, effectively stopping the loop.
|
|
717
1403
|
*
|
|
1404
|
+
* @category Control Flow
|
|
718
1405
|
*/
|
|
719
1406
|
declare const breakForEach: TOperation<TOperationData>;
|
|
720
1407
|
//#endregion
|
|
@@ -740,6 +1427,8 @@ interface IBroadcastEventOperationData {
|
|
|
740
1427
|
/**
|
|
741
1428
|
* This operation broadcasts the given event through the eventbus, along with the
|
|
742
1429
|
* event arguments and optional event topic.
|
|
1430
|
+
*
|
|
1431
|
+
* @category Utility
|
|
743
1432
|
*/
|
|
744
1433
|
declare const broadcastEvent: TOperation<IBroadcastEventOperationData, Omit<IBroadcastEventOperationData, 'eventArgs' | 'eventTopic' | 'eventName'>>;
|
|
745
1434
|
//#endregion
|
|
@@ -774,6 +1463,8 @@ interface ICalcOperationData {
|
|
|
774
1463
|
* This operation calculates the given left and right hand operands using the specified operator.
|
|
775
1464
|
*
|
|
776
1465
|
* @param operationData
|
|
1466
|
+
*
|
|
1467
|
+
* @category Utility
|
|
777
1468
|
*/
|
|
778
1469
|
declare const calc: TOperation<ICalcOperationData, Omit<ICalcOperationData, 'left' | 'right' | 'operator'>>;
|
|
779
1470
|
//#endregion
|
|
@@ -787,6 +1478,7 @@ interface IClearElementOperationData {
|
|
|
787
1478
|
/**
|
|
788
1479
|
* This operation removes all of the children from the given selected element.
|
|
789
1480
|
*
|
|
1481
|
+
* @category DOM
|
|
790
1482
|
*/
|
|
791
1483
|
declare const clearElement: TOperation<IClearElementOperationData>;
|
|
792
1484
|
//#endregion
|
|
@@ -801,9 +1493,124 @@ interface IClearOperationDataOperationData {
|
|
|
801
1493
|
* This operation removes all of the properties on the current operation date.
|
|
802
1494
|
* Or, if the `properties` property is set only removes the properties defined by that list.
|
|
803
1495
|
*
|
|
1496
|
+
* @category Data
|
|
804
1497
|
*/
|
|
805
1498
|
declare const clearOperationData: TOperation<IClearOperationDataOperationData, Omit<IClearOperationDataOperationData, 'properties'>>;
|
|
806
1499
|
//#endregion
|
|
1500
|
+
//#region src/operation/clear-storage.d.ts
|
|
1501
|
+
type StorageType = 'local' | 'session';
|
|
1502
|
+
interface IClearStorageOperationData {
|
|
1503
|
+
/**
|
|
1504
|
+
* @optional
|
|
1505
|
+
* @erased
|
|
1506
|
+
*/
|
|
1507
|
+
key?: string;
|
|
1508
|
+
/**
|
|
1509
|
+
* @required
|
|
1510
|
+
* @erased
|
|
1511
|
+
*/
|
|
1512
|
+
storageType: StorageType;
|
|
1513
|
+
}
|
|
1514
|
+
/**
|
|
1515
|
+
* Clears data from browser storage (localStorage or sessionStorage).
|
|
1516
|
+
*
|
|
1517
|
+
* If `key` is provided, removes only that key. If `key` is omitted, clears all storage.
|
|
1518
|
+
*
|
|
1519
|
+
* @returns Operation data with storage properties erased
|
|
1520
|
+
*
|
|
1521
|
+
* @example
|
|
1522
|
+
* ```typescript
|
|
1523
|
+
* // Clear specific key
|
|
1524
|
+
* const result = clearStorage({
|
|
1525
|
+
* key: 'user-settings',
|
|
1526
|
+
* storageType: 'local'
|
|
1527
|
+
* });
|
|
1528
|
+
* ```
|
|
1529
|
+
*
|
|
1530
|
+
* @example
|
|
1531
|
+
* ```typescript
|
|
1532
|
+
* // Clear all localStorage
|
|
1533
|
+
* const result = clearStorage({
|
|
1534
|
+
* storageType: 'local'
|
|
1535
|
+
* });
|
|
1536
|
+
* ```
|
|
1537
|
+
*
|
|
1538
|
+
* @category Data
|
|
1539
|
+
*/
|
|
1540
|
+
declare const clearStorage: TOperation<IClearStorageOperationData, Omit<IClearStorageOperationData, 'key' | 'storageType'>>;
|
|
1541
|
+
//#endregion
|
|
1542
|
+
//#region src/operation/compare-date.d.ts
|
|
1543
|
+
interface ICompareDateOperationData {
|
|
1544
|
+
/**
|
|
1545
|
+
* @required
|
|
1546
|
+
* @erased
|
|
1547
|
+
*/
|
|
1548
|
+
date1: Date | string | number;
|
|
1549
|
+
/**
|
|
1550
|
+
* @required
|
|
1551
|
+
* @erased
|
|
1552
|
+
*/
|
|
1553
|
+
date2: Date | string | number;
|
|
1554
|
+
/**
|
|
1555
|
+
* @output
|
|
1556
|
+
*/
|
|
1557
|
+
comparison: number;
|
|
1558
|
+
/**
|
|
1559
|
+
* @output
|
|
1560
|
+
*/
|
|
1561
|
+
isEqual: boolean;
|
|
1562
|
+
/**
|
|
1563
|
+
* @output
|
|
1564
|
+
*/
|
|
1565
|
+
isBefore: boolean;
|
|
1566
|
+
/**
|
|
1567
|
+
* @output
|
|
1568
|
+
*/
|
|
1569
|
+
isAfter: boolean;
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Compares two dates.
|
|
1573
|
+
* comparison: -1 (before), 0 (equal), 1 (after)
|
|
1574
|
+
*
|
|
1575
|
+
* @category Date
|
|
1576
|
+
*/
|
|
1577
|
+
declare const compareDate: TOperation<ICompareDateOperationData, Omit<ICompareDateOperationData, 'date1' | 'date2'>>;
|
|
1578
|
+
//#endregion
|
|
1579
|
+
//#region src/operation/concatenate-strings.d.ts
|
|
1580
|
+
interface IConcatenateStringsOperationData {
|
|
1581
|
+
/**
|
|
1582
|
+
* @required
|
|
1583
|
+
* @erased
|
|
1584
|
+
*/
|
|
1585
|
+
strings: string[];
|
|
1586
|
+
/**
|
|
1587
|
+
* @optional
|
|
1588
|
+
* @erased
|
|
1589
|
+
*/
|
|
1590
|
+
separator?: string;
|
|
1591
|
+
/**
|
|
1592
|
+
* @output
|
|
1593
|
+
*/
|
|
1594
|
+
result: string;
|
|
1595
|
+
}
|
|
1596
|
+
/**
|
|
1597
|
+
* Concatenates multiple strings with an optional separator.
|
|
1598
|
+
*
|
|
1599
|
+
* @returns Operation data with `result` containing the concatenated string
|
|
1600
|
+
*
|
|
1601
|
+
* @example
|
|
1602
|
+
* ```typescript
|
|
1603
|
+
* const result = concatenateStrings({
|
|
1604
|
+
* strings: ['Hello', 'World'],
|
|
1605
|
+
* separator: ' '
|
|
1606
|
+
* });
|
|
1607
|
+
* // result.result = "Hello World"
|
|
1608
|
+
* ```
|
|
1609
|
+
*
|
|
1610
|
+
* @category String
|
|
1611
|
+
*/
|
|
1612
|
+
declare const concatenateStrings: TOperation<IConcatenateStringsOperationData, Omit<IConcatenateStringsOperationData, 'strings' | 'separator'>>;
|
|
1613
|
+
//#endregion
|
|
807
1614
|
//#region src/operation/continue-for-each.d.ts
|
|
808
1615
|
/**
|
|
809
1616
|
*
|
|
@@ -811,6 +1618,7 @@ declare const clearOperationData: TOperation<IClearOperationDataOperationData, O
|
|
|
811
1618
|
* operation. This operation immediately moves to the next loop index, effectively canceling the rest
|
|
812
1619
|
* of the operations in the current iteration.
|
|
813
1620
|
*
|
|
1621
|
+
* @category Control Flow
|
|
814
1622
|
*/
|
|
815
1623
|
declare const continueForEach: TOperation<TOperationData>;
|
|
816
1624
|
//#endregion
|
|
@@ -844,6 +1652,7 @@ interface ICreateElementOperationData<T$1 extends TTagNames> {
|
|
|
844
1652
|
*
|
|
845
1653
|
* @param operationData
|
|
846
1654
|
* @returns
|
|
1655
|
+
* @category DOM
|
|
847
1656
|
*/
|
|
848
1657
|
declare const createElement: TOperation<ICreateElementOperationData<TTagNames>, Omit<RequireKeys<ICreateElementOperationData<TTagNames>, 'template'>, 'elementName' | 'text' | 'attributes'>>;
|
|
849
1658
|
//#endregion
|
|
@@ -861,7 +1670,8 @@ interface ICustomFunctionOperationData {
|
|
|
861
1670
|
* and invokes it with the current operation data and eventbus.
|
|
862
1671
|
*
|
|
863
1672
|
* @param operationData
|
|
864
|
-
*
|
|
1673
|
+
*
|
|
1674
|
+
* @category Utility
|
|
865
1675
|
*/
|
|
866
1676
|
declare const customFunction: TOperation<ICustomFunctionOperationData, Omit<ICustomFunctionOperationData, 'systemName'>>;
|
|
867
1677
|
//#endregion
|
|
@@ -883,18 +1693,24 @@ interface IEndActionOperationData {
|
|
|
883
1693
|
* The action operation data is first merged with the current operation data before it is
|
|
884
1694
|
* passed on to the action. After the action has completed the action operation data properties
|
|
885
1695
|
* are removed from the current operation data.
|
|
1696
|
+
*
|
|
1697
|
+
* @category Action
|
|
886
1698
|
*/
|
|
887
1699
|
declare const endAction: TOperation<IEndActionOperationData, Omit<IEndActionOperationData, 'actionOperationData'>>;
|
|
888
1700
|
//#endregion
|
|
889
1701
|
//#region src/operation/end-for-each.d.ts
|
|
890
1702
|
/**
|
|
891
1703
|
* This operation checks if the current loop should end or start the next iteration.
|
|
1704
|
+
*
|
|
1705
|
+
* @category Control Flow
|
|
892
1706
|
*/
|
|
893
1707
|
declare const endForEach: TOperation<TOperationData>;
|
|
894
1708
|
//#endregion
|
|
895
1709
|
//#region src/operation/end-when.d.ts
|
|
896
1710
|
/**
|
|
897
1711
|
* This operation cleans up after the {@link when}/{@link otherwise}/{@link endWhen} control flow ends.
|
|
1712
|
+
*
|
|
1713
|
+
* @category Control Flow
|
|
898
1714
|
*/
|
|
899
1715
|
declare const endWhen: TOperation<Record<string, unknown>>;
|
|
900
1716
|
//#endregion
|
|
@@ -915,31 +1731,246 @@ interface IExtendControllerOperationData {
|
|
|
915
1731
|
}
|
|
916
1732
|
/**
|
|
917
1733
|
* Extends the current controller with given extension.
|
|
1734
|
+
*
|
|
1735
|
+
* @category Controller
|
|
1736
|
+
*/
|
|
1737
|
+
declare const extendController: TOperation<IExtendControllerOperationData, Omit<IExtendControllerOperationData, 'controllerExtension'>>;
|
|
1738
|
+
//#endregion
|
|
1739
|
+
//#region src/operation/filter-array.d.ts
|
|
1740
|
+
interface IFilterArrayOperationData {
|
|
1741
|
+
/**
|
|
1742
|
+
* @required
|
|
1743
|
+
* @dependency
|
|
1744
|
+
*/
|
|
1745
|
+
arrayData: any[];
|
|
1746
|
+
/**
|
|
1747
|
+
* @optional
|
|
1748
|
+
* @erased
|
|
1749
|
+
*/
|
|
1750
|
+
filterProperty?: string;
|
|
1751
|
+
/**
|
|
1752
|
+
* @optional
|
|
1753
|
+
* @erased
|
|
1754
|
+
*/
|
|
1755
|
+
filterValue?: any;
|
|
1756
|
+
/**
|
|
1757
|
+
* @optional
|
|
1758
|
+
* @erased
|
|
1759
|
+
*/
|
|
1760
|
+
filterPredicate?: (item: any, index?: number) => boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* @output
|
|
1763
|
+
*/
|
|
1764
|
+
filteredArray: any[];
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Filters an array based on property equality or custom predicate function.
|
|
1768
|
+
*
|
|
1769
|
+
* Operates on arrayData passed from previous operations.
|
|
1770
|
+
* Supports two filtering modes:
|
|
1771
|
+
* 1. Property equality: `filterProperty` and `filterValue` to filter by property match
|
|
1772
|
+
* 2. Custom predicate: `filterPredicate` function for complex filtering logic
|
|
1773
|
+
*
|
|
1774
|
+
* @returns Operation data with `filteredArray` containing filtered results
|
|
1775
|
+
*
|
|
1776
|
+
* @example
|
|
1777
|
+
* ```typescript
|
|
1778
|
+
* // Filter by property equality
|
|
1779
|
+
* const result = filterArray({
|
|
1780
|
+
* arrayData: [{name: 'Alice', age: 25}, {name: 'Bob', age: 30}],
|
|
1781
|
+
* filterProperty: 'age',
|
|
1782
|
+
* filterValue: 25
|
|
1783
|
+
* });
|
|
1784
|
+
* // result.filteredArray = [{name: 'Alice', age: 25}]
|
|
1785
|
+
* ```
|
|
1786
|
+
*
|
|
1787
|
+
* @example
|
|
1788
|
+
* ```typescript
|
|
1789
|
+
* // Filter with custom predicate
|
|
1790
|
+
* const result = filterArray({
|
|
1791
|
+
* arrayData: [1, 2, 3, 4, 5],
|
|
1792
|
+
* filterPredicate: (item) => item % 2 === 0
|
|
1793
|
+
* });
|
|
1794
|
+
* // result.filteredArray = [2, 4]
|
|
1795
|
+
* ```
|
|
1796
|
+
*
|
|
1797
|
+
* @category Array
|
|
1798
|
+
*/
|
|
1799
|
+
declare const filterArray: TOperation<IFilterArrayOperationData, Omit<IFilterArrayOperationData, 'filterProperty' | 'filterValue' | 'filterPredicate'>>;
|
|
1800
|
+
//#endregion
|
|
1801
|
+
//#region src/operation/find-in-array.d.ts
|
|
1802
|
+
interface IFindInArrayOperationData {
|
|
1803
|
+
/**
|
|
1804
|
+
* @required
|
|
1805
|
+
* @dependency
|
|
1806
|
+
*/
|
|
1807
|
+
arrayData: any[];
|
|
1808
|
+
/**
|
|
1809
|
+
* @optional
|
|
1810
|
+
* @erased
|
|
1811
|
+
*/
|
|
1812
|
+
findProperty?: string;
|
|
1813
|
+
/**
|
|
1814
|
+
* @optional
|
|
1815
|
+
* @erased
|
|
1816
|
+
*/
|
|
1817
|
+
findValue?: any;
|
|
1818
|
+
/**
|
|
1819
|
+
* @optional
|
|
1820
|
+
* @erased
|
|
1821
|
+
*/
|
|
1822
|
+
findPredicate?: (item: any, index?: number) => boolean;
|
|
1823
|
+
/**
|
|
1824
|
+
* @output
|
|
1825
|
+
*/
|
|
1826
|
+
foundItem: any | undefined;
|
|
1827
|
+
/**
|
|
1828
|
+
* @output
|
|
1829
|
+
*/
|
|
1830
|
+
foundIndex: number;
|
|
1831
|
+
}
|
|
1832
|
+
/**
|
|
1833
|
+
* Finds the first element in an array matching criteria.
|
|
1834
|
+
*
|
|
1835
|
+
* Operates on arrayData passed from previous operations.
|
|
1836
|
+
* Supports two search modes:
|
|
1837
|
+
* 1. Property equality: `findProperty` and `findValue` to find by property match
|
|
1838
|
+
* 2. Custom predicate: `findPredicate` function for complex search logic
|
|
1839
|
+
*
|
|
1840
|
+
* Returns `undefined` for `foundItem` and `-1` for `foundIndex` if no match found.
|
|
1841
|
+
*
|
|
1842
|
+
* @returns Operation data with `foundItem` (the matching element) and `foundIndex` (its position)
|
|
1843
|
+
*
|
|
1844
|
+
* @example
|
|
1845
|
+
* ```typescript
|
|
1846
|
+
* // Find by property equality
|
|
1847
|
+
* const result = findInArray({
|
|
1848
|
+
* arrayData: [{id: 1, name: 'Alice'}, {id: 2, name: 'Bob'}],
|
|
1849
|
+
* findProperty: 'id',
|
|
1850
|
+
* findValue: 2
|
|
1851
|
+
* });
|
|
1852
|
+
* // result.foundItem = {id: 2, name: 'Bob'}
|
|
1853
|
+
* // result.foundIndex = 1
|
|
1854
|
+
* ```
|
|
1855
|
+
*
|
|
1856
|
+
* @example
|
|
1857
|
+
* ```typescript
|
|
1858
|
+
* // Find with custom predicate
|
|
1859
|
+
* const result = findInArray({
|
|
1860
|
+
* arrayData: [10, 25, 30, 45],
|
|
1861
|
+
* findPredicate: (item) => item > 30
|
|
1862
|
+
* });
|
|
1863
|
+
* // result.foundItem = 45
|
|
1864
|
+
* // result.foundIndex = 3
|
|
1865
|
+
* ```
|
|
1866
|
+
*
|
|
1867
|
+
* @category Array
|
|
1868
|
+
*/
|
|
1869
|
+
declare const findInArray: TOperation<IFindInArrayOperationData, Omit<IFindInArrayOperationData, 'findProperty' | 'findValue' | 'findPredicate'>>;
|
|
1870
|
+
//#endregion
|
|
1871
|
+
//#region src/operation/for-each.d.ts
|
|
1872
|
+
interface IForEachOperationData {
|
|
1873
|
+
/**
|
|
1874
|
+
* @type=ParameterType:array|ParameterType:string
|
|
1875
|
+
* @required
|
|
1876
|
+
*/
|
|
1877
|
+
collection: unknown[] | string;
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* This operation iterates over the given collection.
|
|
1881
|
+
*
|
|
1882
|
+
* Each iteration the current item from the specified collection is
|
|
1883
|
+
* assigned to the {@link IOperationScope.currentItem|currentItem} property on the {@link IOperationScope|operation scope}.
|
|
1884
|
+
*
|
|
1885
|
+
* At the start of the loop, the associated {@link endForEach} operation is determined and when
|
|
1886
|
+
* the last iteration is completed the flow control is set to the index of that operation.
|
|
1887
|
+
*
|
|
1888
|
+
* The {@link continueForEach|continue} and {@link breakForEach|break} operations can be used to control the
|
|
1889
|
+
* loop iterations.
|
|
1890
|
+
*
|
|
1891
|
+
* @category Control Flow
|
|
1892
|
+
*/
|
|
1893
|
+
declare const forEach: TOperation<IForEachOperationData>;
|
|
1894
|
+
//#endregion
|
|
1895
|
+
//#region src/operation/format-date.d.ts
|
|
1896
|
+
interface IFormatDateOperationData {
|
|
1897
|
+
/**
|
|
1898
|
+
* @required
|
|
1899
|
+
* @dependency
|
|
1900
|
+
*/
|
|
1901
|
+
date: Date | string | number;
|
|
1902
|
+
/**
|
|
1903
|
+
* @required
|
|
1904
|
+
* @erased
|
|
1905
|
+
*/
|
|
1906
|
+
format: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* @output
|
|
1909
|
+
*/
|
|
1910
|
+
formattedDate: string;
|
|
1911
|
+
}
|
|
1912
|
+
/**
|
|
1913
|
+
* Formats a date using Intl.DateTimeFormat or simple patterns.
|
|
1914
|
+
*
|
|
1915
|
+
* @category Date
|
|
918
1916
|
*/
|
|
919
|
-
declare const
|
|
1917
|
+
declare const formatDate: TOperation<IFormatDateOperationData, Omit<IFormatDateOperationData, 'format'>>;
|
|
920
1918
|
//#endregion
|
|
921
|
-
//#region src/operation/
|
|
922
|
-
|
|
1919
|
+
//#region src/operation/format-text.d.ts
|
|
1920
|
+
type TextTransformation = 'uppercase' | 'lowercase' | 'capitalize' | 'titlecase' | 'trim';
|
|
1921
|
+
interface IFormatTextOperationData {
|
|
923
1922
|
/**
|
|
924
|
-
* @type=ParameterType:array|ParameterType:string
|
|
925
1923
|
* @required
|
|
1924
|
+
* @dependency
|
|
926
1925
|
*/
|
|
927
|
-
|
|
1926
|
+
textContent: string;
|
|
1927
|
+
/**
|
|
1928
|
+
* @required
|
|
1929
|
+
* @erased
|
|
1930
|
+
*/
|
|
1931
|
+
transformation: TextTransformation;
|
|
1932
|
+
/**
|
|
1933
|
+
* @output
|
|
1934
|
+
*/
|
|
1935
|
+
formattedText: string;
|
|
928
1936
|
}
|
|
929
1937
|
/**
|
|
930
|
-
*
|
|
1938
|
+
* Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.
|
|
931
1939
|
*
|
|
932
|
-
*
|
|
933
|
-
* assigned to the {@link IOperationScope.currentItem|currentItem} property on the {@link IOperationScope|operation scope}.
|
|
1940
|
+
* Operates on textContent passed from previous operations (e.g., getTextContent).
|
|
934
1941
|
*
|
|
935
|
-
*
|
|
936
|
-
*
|
|
1942
|
+
* Transformations:
|
|
1943
|
+
* - `uppercase`: Convert all characters to uppercase
|
|
1944
|
+
* - `lowercase`: Convert all characters to lowercase
|
|
1945
|
+
* - `capitalize`: Capitalize only the first letter
|
|
1946
|
+
* - `titlecase`: Capitalize first letter of each word
|
|
1947
|
+
* - `trim`: Remove leading and trailing whitespace
|
|
937
1948
|
*
|
|
938
|
-
*
|
|
939
|
-
*
|
|
1949
|
+
* @returns Operation data with `formattedText` containing the transformed text
|
|
1950
|
+
*
|
|
1951
|
+
* @example
|
|
1952
|
+
* ```typescript
|
|
1953
|
+
* // Convert to uppercase
|
|
1954
|
+
* const result = formatText({
|
|
1955
|
+
* textContent: 'hello',
|
|
1956
|
+
* transformation: 'uppercase'
|
|
1957
|
+
* });
|
|
1958
|
+
* // result.formattedText = "HELLO"
|
|
1959
|
+
* ```
|
|
940
1960
|
*
|
|
1961
|
+
* @example
|
|
1962
|
+
* ```typescript
|
|
1963
|
+
* // Title case
|
|
1964
|
+
* const result = formatText({
|
|
1965
|
+
* textContent: 'hello world',
|
|
1966
|
+
* transformation: 'titlecase'
|
|
1967
|
+
* });
|
|
1968
|
+
* // result.formattedText = "Hello World"
|
|
1969
|
+
* ```
|
|
1970
|
+
*
|
|
1971
|
+
* @category Text
|
|
941
1972
|
*/
|
|
942
|
-
declare const
|
|
1973
|
+
declare const formatText: TOperation<IFormatTextOperationData, Omit<IFormatTextOperationData, 'transformation'>>;
|
|
943
1974
|
//#endregion
|
|
944
1975
|
//#region src/operation/get-attributes-from-element.d.ts
|
|
945
1976
|
interface IGetAttributesFromElementOperationData {
|
|
@@ -962,6 +1993,8 @@ interface IGetAttributesFromElementOperationData {
|
|
|
962
1993
|
}
|
|
963
1994
|
/**
|
|
964
1995
|
* This operation retrieves the values for the specified attribute names from the given selected element.
|
|
1996
|
+
*
|
|
1997
|
+
* @category DOM
|
|
965
1998
|
*/
|
|
966
1999
|
declare const getAttributesFromElement: TOperation<IGetAttributesFromElementOperationData, Omit<IGetAttributesFromElementOperationData, 'attributeNames'>>;
|
|
967
2000
|
//#endregion
|
|
@@ -988,11 +2021,13 @@ interface IGetControllerFromElementOperationData {
|
|
|
988
2021
|
*
|
|
989
2022
|
* @param operationData
|
|
990
2023
|
* @returns
|
|
2024
|
+
*
|
|
2025
|
+
* @category Controller
|
|
991
2026
|
*/
|
|
992
2027
|
declare const getControllerFromElement: TOperation<IGetControllerFromElementOperationData, Omit<IGetControllerFromElementOperationData, 'controllerName'>>;
|
|
993
2028
|
//#endregion
|
|
994
2029
|
//#region src/operation/get-controller-instance.d.ts
|
|
995
|
-
type TSystemName = keyof typeof index_d_exports$
|
|
2030
|
+
type TSystemName = keyof typeof index_d_exports$4;
|
|
996
2031
|
interface IGetControllerInstanceOperationData {
|
|
997
2032
|
/**
|
|
998
2033
|
* @required
|
|
@@ -1008,9 +2043,29 @@ interface IGetControllerInstanceOperationData {
|
|
|
1008
2043
|
/**
|
|
1009
2044
|
* This operation retrieves an instance of the given controller name.
|
|
1010
2045
|
* It assigns this instance to the `controllerInstance` property on the current operation data
|
|
2046
|
+
*
|
|
2047
|
+
* @category Controller
|
|
1011
2048
|
*/
|
|
1012
2049
|
declare const getControllerInstance: TOperation<IGetControllerInstanceOperationData, Omit<IGetControllerInstanceOperationData, 'systemName'>>;
|
|
1013
2050
|
//#endregion
|
|
2051
|
+
//#region src/operation/get-current-time.d.ts
|
|
2052
|
+
interface IGetCurrentTimeOperationData {
|
|
2053
|
+
/**
|
|
2054
|
+
* @output
|
|
2055
|
+
*/
|
|
2056
|
+
timestamp: number;
|
|
2057
|
+
/**
|
|
2058
|
+
* @output
|
|
2059
|
+
*/
|
|
2060
|
+
date: Date;
|
|
2061
|
+
}
|
|
2062
|
+
/**
|
|
2063
|
+
* Gets the current time as timestamp and Date object.
|
|
2064
|
+
*
|
|
2065
|
+
* @category Date
|
|
2066
|
+
*/
|
|
2067
|
+
declare const getCurrentTime: TOperation<IGetCurrentTimeOperationData, IGetCurrentTimeOperationData>;
|
|
2068
|
+
//#endregion
|
|
1014
2069
|
//#region src/operation/get-element-dimensions.d.ts
|
|
1015
2070
|
interface IGetElementDimensionsOperationData {
|
|
1016
2071
|
/**
|
|
@@ -1045,9 +2100,59 @@ interface IGetElementDimensionsOperationData {
|
|
|
1045
2100
|
*
|
|
1046
2101
|
* For example, this modifier '+100h|w[ar=8-1]' will modifiy the dimensions like this:
|
|
1047
2102
|
* 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.
|
|
2103
|
+
*
|
|
2104
|
+
* @category DOM
|
|
1048
2105
|
*/
|
|
1049
2106
|
declare const getElementDimensions: TOperation<IGetElementDimensionsOperationData, Omit<IGetElementDimensionsOperationData, 'modifier'>>;
|
|
1050
2107
|
//#endregion
|
|
2108
|
+
//#region src/operation/get-focused-element.d.ts
|
|
2109
|
+
interface IGetFocusedElementOperationData {
|
|
2110
|
+
/**
|
|
2111
|
+
* @type=ParameterType:jQuery
|
|
2112
|
+
* @output
|
|
2113
|
+
*/
|
|
2114
|
+
focusedElement: JQuery;
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Gets the currently focused element.
|
|
2118
|
+
*
|
|
2119
|
+
* @category Focus
|
|
2120
|
+
*/
|
|
2121
|
+
declare const getFocusedElement: TOperation<IGetFocusedElementOperationData, IGetFocusedElementOperationData>;
|
|
2122
|
+
//#endregion
|
|
2123
|
+
//#region src/operation/get-form-data.d.ts
|
|
2124
|
+
interface IGetFormDataOperationData {
|
|
2125
|
+
/**
|
|
2126
|
+
* @required
|
|
2127
|
+
* @dependency
|
|
2128
|
+
*/
|
|
2129
|
+
selectedElement: JQuery;
|
|
2130
|
+
/**
|
|
2131
|
+
* @output
|
|
2132
|
+
* @type=ParameterType:object
|
|
2133
|
+
*/
|
|
2134
|
+
formData?: Record<string, any>;
|
|
2135
|
+
}
|
|
2136
|
+
/**
|
|
2137
|
+
* Extracts all input, select, and textarea values from form element into operation data.
|
|
2138
|
+
*
|
|
2139
|
+
* This operation reads form field values and returns them as an object with field names as keys.
|
|
2140
|
+
* Only processes form elements that are enabled and not hidden. Handles checkboxes, radio buttons,
|
|
2141
|
+
* select elements, textareas, and text inputs.
|
|
2142
|
+
*
|
|
2143
|
+
* @returns Operation data with `formData` object containing field values
|
|
2144
|
+
*
|
|
2145
|
+
* @example
|
|
2146
|
+
* ```typescript
|
|
2147
|
+
* // Given a form with fields: name="John", email="john@example.com"
|
|
2148
|
+
* const result = getFormData({selectedElement: $form});
|
|
2149
|
+
* // Returns: {selectedElement: $form, formData: {name: "John", email: "john@example.com"}}
|
|
2150
|
+
* ```
|
|
2151
|
+
*
|
|
2152
|
+
* @category Form
|
|
2153
|
+
*/
|
|
2154
|
+
declare const getFormData: TOperation<IGetFormDataOperationData, IGetFormDataOperationData>;
|
|
2155
|
+
//#endregion
|
|
1051
2156
|
//#region src/operation/get-import.d.ts
|
|
1052
2157
|
interface IGetImportOperationData {
|
|
1053
2158
|
/**
|
|
@@ -1066,7 +2171,8 @@ interface IGetImportOperationData {
|
|
|
1066
2171
|
* assigns it to the `importedInstance` property on the current operaton date.
|
|
1067
2172
|
*
|
|
1068
2173
|
* @param operationData
|
|
1069
|
-
*
|
|
2174
|
+
*
|
|
2175
|
+
* @category Utility
|
|
1070
2176
|
*/
|
|
1071
2177
|
declare const getImport: TOperation<IGetImportOperationData, Omit<RequireKeys<IGetImportOperationData, 'importedInstance'>, 'systemName'>>;
|
|
1072
2178
|
//#endregion
|
|
@@ -1097,9 +2203,206 @@ interface IGetQueryParamsOperationData {
|
|
|
1097
2203
|
/**
|
|
1098
2204
|
* This operation retrieves the current query parameters from the browser's address bar and places
|
|
1099
2205
|
* them on the returned operation data.
|
|
2206
|
+
*
|
|
2207
|
+
* @category Utility
|
|
1100
2208
|
*/
|
|
1101
2209
|
declare const getQueryParams: TOperation<IGetQueryParamsOperationData, Omit<IGetQueryParamsOperationData, 'defaultValues'>>;
|
|
1102
2210
|
//#endregion
|
|
2211
|
+
//#region src/operation/get-scroll-position.d.ts
|
|
2212
|
+
interface IGetScrollPositionOperationData {
|
|
2213
|
+
/**
|
|
2214
|
+
* @output
|
|
2215
|
+
*/
|
|
2216
|
+
scrollX: number;
|
|
2217
|
+
/**
|
|
2218
|
+
* @output
|
|
2219
|
+
*/
|
|
2220
|
+
scrollY: number;
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
* Gets the current scroll position of the viewport.
|
|
2224
|
+
*
|
|
2225
|
+
* Returns x (horizontal) and y (vertical) scroll positions in pixels.
|
|
2226
|
+
* Uses cross-browser compatible methods to retrieve scroll position.
|
|
2227
|
+
*
|
|
2228
|
+
* @returns Operation data with `scrollX` and `scrollY` values
|
|
2229
|
+
*
|
|
2230
|
+
* @example
|
|
2231
|
+
* ```typescript
|
|
2232
|
+
* // Get current scroll position
|
|
2233
|
+
* const result = getScrollPosition({});
|
|
2234
|
+
* // result.scrollX = 150
|
|
2235
|
+
* // result.scrollY = 400
|
|
2236
|
+
* ```
|
|
2237
|
+
*
|
|
2238
|
+
* @category Scroll
|
|
2239
|
+
*/
|
|
2240
|
+
declare const getScrollPosition: TOperation<IGetScrollPositionOperationData, IGetScrollPositionOperationData>;
|
|
2241
|
+
//#endregion
|
|
2242
|
+
//#region src/operation/get-text-content.d.ts
|
|
2243
|
+
interface IGetTextContentOperationData {
|
|
2244
|
+
/**
|
|
2245
|
+
* @required
|
|
2246
|
+
* @dependency
|
|
2247
|
+
*/
|
|
2248
|
+
selectedElement: JQuery;
|
|
2249
|
+
/**
|
|
2250
|
+
* @output
|
|
2251
|
+
*/
|
|
2252
|
+
textContent?: string;
|
|
2253
|
+
}
|
|
2254
|
+
/**
|
|
2255
|
+
* Extracts text content from element, stripping all HTML markup.
|
|
2256
|
+
*
|
|
2257
|
+
* Uses jQuery's `.text()` method which is XSS-safe and returns only the text content
|
|
2258
|
+
* without any HTML tags. Preserves whitespace and text from nested elements.
|
|
2259
|
+
*
|
|
2260
|
+
* @returns Operation data with `textContent` containing the extracted plain text
|
|
2261
|
+
*
|
|
2262
|
+
* @example
|
|
2263
|
+
* ```typescript
|
|
2264
|
+
* // Extract text from element with HTML
|
|
2265
|
+
* const result = getTextContent({selectedElement: $div});
|
|
2266
|
+
* // Given: <div>Hello <strong>World</strong>!</div>
|
|
2267
|
+
* // Returns: {textContent: "Hello World!"}
|
|
2268
|
+
* ```
|
|
2269
|
+
*
|
|
2270
|
+
* @category Text
|
|
2271
|
+
*/
|
|
2272
|
+
declare const getTextContent: TOperation<IGetTextContentOperationData, IGetTextContentOperationData>;
|
|
2273
|
+
//#endregion
|
|
2274
|
+
//#region src/operation/http-delete.d.ts
|
|
2275
|
+
interface IHttpDeleteOperationData {
|
|
2276
|
+
/**
|
|
2277
|
+
* @required
|
|
2278
|
+
* @erased
|
|
2279
|
+
*/
|
|
2280
|
+
url: string;
|
|
2281
|
+
/**
|
|
2282
|
+
* @optional
|
|
2283
|
+
* @erased
|
|
2284
|
+
*/
|
|
2285
|
+
headers?: Record<string, string>;
|
|
2286
|
+
/**
|
|
2287
|
+
* @output
|
|
2288
|
+
*/
|
|
2289
|
+
response: any;
|
|
2290
|
+
/**
|
|
2291
|
+
* @output
|
|
2292
|
+
*/
|
|
2293
|
+
status: number;
|
|
2294
|
+
}
|
|
2295
|
+
/**
|
|
2296
|
+
* Performs an HTTP DELETE request to the specified URL.
|
|
2297
|
+
*
|
|
2298
|
+
* @returns Operation data with `response` (parsed JSON or empty) and `status` (HTTP status code)
|
|
2299
|
+
*
|
|
2300
|
+
* @example
|
|
2301
|
+
* ```typescript
|
|
2302
|
+
* const result = await httpDelete({
|
|
2303
|
+
* url: 'https://api.example.com/users/123',
|
|
2304
|
+
* headers: { 'Authorization': 'Bearer token' }
|
|
2305
|
+
* });
|
|
2306
|
+
* // result.response = {} or null
|
|
2307
|
+
* // result.status = 204
|
|
2308
|
+
* ```
|
|
2309
|
+
*
|
|
2310
|
+
* @category HTTP
|
|
2311
|
+
*/
|
|
2312
|
+
declare const httpDelete: TOperation<IHttpDeleteOperationData, Omit<IHttpDeleteOperationData, 'url' | 'headers'>>;
|
|
2313
|
+
//#endregion
|
|
2314
|
+
//#region src/operation/http-post.d.ts
|
|
2315
|
+
interface IHttpPostOperationData {
|
|
2316
|
+
/**
|
|
2317
|
+
* @required
|
|
2318
|
+
* @erased
|
|
2319
|
+
*/
|
|
2320
|
+
url: string;
|
|
2321
|
+
/**
|
|
2322
|
+
* @optional
|
|
2323
|
+
* @erased
|
|
2324
|
+
*/
|
|
2325
|
+
body?: any;
|
|
2326
|
+
/**
|
|
2327
|
+
* @optional
|
|
2328
|
+
* @erased
|
|
2329
|
+
*/
|
|
2330
|
+
headers?: Record<string, string>;
|
|
2331
|
+
/**
|
|
2332
|
+
* @output
|
|
2333
|
+
*/
|
|
2334
|
+
response: any;
|
|
2335
|
+
/**
|
|
2336
|
+
* @output
|
|
2337
|
+
*/
|
|
2338
|
+
status: number;
|
|
2339
|
+
}
|
|
2340
|
+
/**
|
|
2341
|
+
* Performs an HTTP POST request to the specified URL.
|
|
2342
|
+
*
|
|
2343
|
+
* @returns Operation data with `response` (parsed JSON) and `status` (HTTP status code)
|
|
2344
|
+
*
|
|
2345
|
+
* @example
|
|
2346
|
+
* ```typescript
|
|
2347
|
+
* const result = await httpPost({
|
|
2348
|
+
* url: 'https://api.example.com/users',
|
|
2349
|
+
* body: { name: 'John', email: 'john@example.com' },
|
|
2350
|
+
* headers: { 'Content-Type': 'application/json' }
|
|
2351
|
+
* });
|
|
2352
|
+
* // result.response = { id: 123, name: 'John', ... }
|
|
2353
|
+
* // result.status = 201
|
|
2354
|
+
* ```
|
|
2355
|
+
*
|
|
2356
|
+
* @category HTTP
|
|
2357
|
+
*/
|
|
2358
|
+
declare const httpPost: TOperation<IHttpPostOperationData, Omit<IHttpPostOperationData, 'url' | 'body' | 'headers'>>;
|
|
2359
|
+
//#endregion
|
|
2360
|
+
//#region src/operation/http-put.d.ts
|
|
2361
|
+
interface IHttpPutOperationData {
|
|
2362
|
+
/**
|
|
2363
|
+
* @required
|
|
2364
|
+
* @erased
|
|
2365
|
+
*/
|
|
2366
|
+
url: string;
|
|
2367
|
+
/**
|
|
2368
|
+
* @optional
|
|
2369
|
+
* @erased
|
|
2370
|
+
*/
|
|
2371
|
+
body?: any;
|
|
2372
|
+
/**
|
|
2373
|
+
* @optional
|
|
2374
|
+
* @erased
|
|
2375
|
+
*/
|
|
2376
|
+
headers?: Record<string, string>;
|
|
2377
|
+
/**
|
|
2378
|
+
* @output
|
|
2379
|
+
*/
|
|
2380
|
+
response: any;
|
|
2381
|
+
/**
|
|
2382
|
+
* @output
|
|
2383
|
+
*/
|
|
2384
|
+
status: number;
|
|
2385
|
+
}
|
|
2386
|
+
/**
|
|
2387
|
+
* Performs an HTTP PUT request to the specified URL.
|
|
2388
|
+
*
|
|
2389
|
+
* @returns Operation data with `response` (parsed JSON) and `status` (HTTP status code)
|
|
2390
|
+
*
|
|
2391
|
+
* @example
|
|
2392
|
+
* ```typescript
|
|
2393
|
+
* const result = await httpPut({
|
|
2394
|
+
* url: 'https://api.example.com/users/123',
|
|
2395
|
+
* body: { name: 'John Updated', email: 'john.new@example.com' },
|
|
2396
|
+
* headers: { 'Content-Type': 'application/json' }
|
|
2397
|
+
* });
|
|
2398
|
+
* // result.response = { id: 123, name: 'John Updated', ... }
|
|
2399
|
+
* // result.status = 200
|
|
2400
|
+
* ```
|
|
2401
|
+
*
|
|
2402
|
+
* @category HTTP
|
|
2403
|
+
*/
|
|
2404
|
+
declare const httpPut: TOperation<IHttpPutOperationData, Omit<IHttpPutOperationData, 'url' | 'body' | 'headers'>>;
|
|
2405
|
+
//#endregion
|
|
1103
2406
|
//#region src/operation/invoke-object-method.d.ts
|
|
1104
2407
|
interface IInvokeObjectMethodOperationData {
|
|
1105
2408
|
/**
|
|
@@ -1131,10 +2434,92 @@ interface IInvokeObjectMethodOperationData {
|
|
|
1131
2434
|
* and assigns the result to the `methodResult` operationdata property.
|
|
1132
2435
|
*
|
|
1133
2436
|
* @param operationData
|
|
1134
|
-
*
|
|
2437
|
+
*
|
|
2438
|
+
* @category Utility
|
|
1135
2439
|
*/
|
|
1136
2440
|
declare const invokeObjectMethod: TOperation<IInvokeObjectMethodOperationData, Omit<IInvokeObjectMethodOperationData, 'methodName' | 'methodArguments'>>;
|
|
1137
2441
|
//#endregion
|
|
2442
|
+
//#region src/operation/is-element-in-viewport.d.ts
|
|
2443
|
+
interface IIsElementInViewportOperationData {
|
|
2444
|
+
/**
|
|
2445
|
+
* @required
|
|
2446
|
+
* @dependency
|
|
2447
|
+
*/
|
|
2448
|
+
selectedElement: JQuery;
|
|
2449
|
+
/**
|
|
2450
|
+
* @output
|
|
2451
|
+
*/
|
|
2452
|
+
isInViewport: boolean;
|
|
2453
|
+
}
|
|
2454
|
+
/**
|
|
2455
|
+
* Checks if an element is currently visible within the viewport.
|
|
2456
|
+
*
|
|
2457
|
+
* Uses `getBoundingClientRect()` to determine if the element is within the viewport boundaries.
|
|
2458
|
+
*
|
|
2459
|
+
* @returns Operation data with `isInViewport` boolean indicating visibility
|
|
2460
|
+
*
|
|
2461
|
+
* @example
|
|
2462
|
+
* ```typescript
|
|
2463
|
+
* // Check if element is in view
|
|
2464
|
+
* const result = isElementInViewport({
|
|
2465
|
+
* selectedElement: $targetElement
|
|
2466
|
+
* });
|
|
2467
|
+
* // result.isInViewport = true or false
|
|
2468
|
+
* ```
|
|
2469
|
+
*
|
|
2470
|
+
* @category DOM
|
|
2471
|
+
*/
|
|
2472
|
+
declare const isElementInViewport: TOperation<IIsElementInViewportOperationData, IIsElementInViewportOperationData>;
|
|
2473
|
+
//#endregion
|
|
2474
|
+
//#region src/operation/load-from-storage.d.ts
|
|
2475
|
+
type StorageType$2 = 'local' | 'session';
|
|
2476
|
+
interface ILoadFromStorageOperationData {
|
|
2477
|
+
/**
|
|
2478
|
+
* @required
|
|
2479
|
+
* @erased
|
|
2480
|
+
*/
|
|
2481
|
+
key: string;
|
|
2482
|
+
/**
|
|
2483
|
+
* @required
|
|
2484
|
+
* @erased
|
|
2485
|
+
*/
|
|
2486
|
+
storageType: StorageType$2;
|
|
2487
|
+
/**
|
|
2488
|
+
* @output
|
|
2489
|
+
*/
|
|
2490
|
+
loadedValue: any;
|
|
2491
|
+
}
|
|
2492
|
+
/**
|
|
2493
|
+
* Loads data from browser storage (localStorage or sessionStorage).
|
|
2494
|
+
*
|
|
2495
|
+
* Deserializes the stored JSON value. Returns `null` if key doesn't exist.
|
|
2496
|
+
*
|
|
2497
|
+
* @returns Operation data with `loadedValue` containing the deserialized data
|
|
2498
|
+
*
|
|
2499
|
+
* @example
|
|
2500
|
+
* ```typescript
|
|
2501
|
+
* // Load user settings from localStorage
|
|
2502
|
+
* const result = loadFromStorage({
|
|
2503
|
+
* key: 'user-settings',
|
|
2504
|
+
* storageType: 'local'
|
|
2505
|
+
* });
|
|
2506
|
+
* // result.loadedValue = { theme: 'dark', language: 'en' }
|
|
2507
|
+
* ```
|
|
2508
|
+
*
|
|
2509
|
+
* @example
|
|
2510
|
+
* ```typescript
|
|
2511
|
+
* // Load session data
|
|
2512
|
+
* const result = loadFromStorage({
|
|
2513
|
+
* key: 'session-id',
|
|
2514
|
+
* storageType: 'session'
|
|
2515
|
+
* });
|
|
2516
|
+
* // result.loadedValue = 'abc123' or null if not found
|
|
2517
|
+
* ```
|
|
2518
|
+
*
|
|
2519
|
+
* @category Data
|
|
2520
|
+
*/
|
|
2521
|
+
declare const loadFromStorage: TOperation<ILoadFromStorageOperationData, Omit<ILoadFromStorageOperationData, 'storageType'>>;
|
|
2522
|
+
//#endregion
|
|
1138
2523
|
//#region src/operation/load-json.d.ts
|
|
1139
2524
|
interface ILoadJSONOperationData {
|
|
1140
2525
|
/**
|
|
@@ -1160,26 +2545,89 @@ interface ILoadJSONOperationData {
|
|
|
1160
2545
|
*
|
|
1161
2546
|
* If the cache property is set to true and a cached value already exists, this is assigned
|
|
1162
2547
|
* instead of re-retrieving it from the url.
|
|
2548
|
+
*
|
|
2549
|
+
* @category Utility
|
|
1163
2550
|
*/
|
|
1164
2551
|
declare const loadJson: TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, 'url' | 'cache'>>;
|
|
1165
2552
|
//#endregion
|
|
1166
2553
|
//#region src/operation/log.d.ts
|
|
1167
2554
|
interface ILogOperationData {
|
|
1168
2555
|
/**
|
|
1169
|
-
* @type=ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array
|
|
2556
|
+
* @type=ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array
|
|
2557
|
+
* @erased
|
|
2558
|
+
*/
|
|
2559
|
+
logValue?: any;
|
|
2560
|
+
/**
|
|
2561
|
+
* @erased
|
|
2562
|
+
*/
|
|
2563
|
+
logName?: string;
|
|
2564
|
+
}
|
|
2565
|
+
/**
|
|
2566
|
+
* This operation logs the specified value, or, when no logValue property has been assigned
|
|
2567
|
+
* it will log the current operation data, global data and scope to the console
|
|
2568
|
+
*
|
|
2569
|
+
* @category Utility
|
|
2570
|
+
*/
|
|
2571
|
+
declare const log: TOperation<ILogOperationData, Omit<ILogOperationData, 'logValue' | 'logName'>>;
|
|
2572
|
+
//#endregion
|
|
2573
|
+
//#region src/operation/map-array.d.ts
|
|
2574
|
+
interface IMapArrayOperationData {
|
|
2575
|
+
/**
|
|
2576
|
+
* @required
|
|
2577
|
+
* @dependency
|
|
2578
|
+
*/
|
|
2579
|
+
arrayData: any[];
|
|
2580
|
+
/**
|
|
2581
|
+
* @required
|
|
1170
2582
|
* @erased
|
|
1171
2583
|
*/
|
|
1172
|
-
|
|
2584
|
+
mapFunction: (item: any, index?: number) => any;
|
|
1173
2585
|
/**
|
|
1174
|
-
* @
|
|
2586
|
+
* @output
|
|
1175
2587
|
*/
|
|
1176
|
-
|
|
2588
|
+
mappedArray?: any[];
|
|
1177
2589
|
}
|
|
1178
2590
|
/**
|
|
1179
|
-
*
|
|
1180
|
-
*
|
|
2591
|
+
* Transforms each element of an array using a mapping function.
|
|
2592
|
+
*
|
|
2593
|
+
* Operates on arrayData passed from previous operations.
|
|
2594
|
+
* The mapFunction receives each item and optionally its index.
|
|
2595
|
+
*
|
|
2596
|
+
* @returns Operation data with `mappedArray` containing transformed elements
|
|
2597
|
+
*
|
|
2598
|
+
* @example
|
|
2599
|
+
* ```typescript
|
|
2600
|
+
* // Double each number
|
|
2601
|
+
* const result = mapArray({
|
|
2602
|
+
* arrayData: [1, 2, 3, 4],
|
|
2603
|
+
* mapFunction: (item) => item * 2
|
|
2604
|
+
* });
|
|
2605
|
+
* // result.mappedArray = [2, 4, 6, 8]
|
|
2606
|
+
* ```
|
|
2607
|
+
*
|
|
2608
|
+
* @example
|
|
2609
|
+
* ```typescript
|
|
2610
|
+
* // Extract property from objects
|
|
2611
|
+
* const result = mapArray({
|
|
2612
|
+
* arrayData: [{name: 'Alice', age: 25}, {name: 'Bob', age: 30}],
|
|
2613
|
+
* mapFunction: (item) => item.name
|
|
2614
|
+
* });
|
|
2615
|
+
* // result.mappedArray = ['Alice', 'Bob']
|
|
2616
|
+
* ```
|
|
2617
|
+
*
|
|
2618
|
+
* @example
|
|
2619
|
+
* ```typescript
|
|
2620
|
+
* // Use index in transformation
|
|
2621
|
+
* const result = mapArray({
|
|
2622
|
+
* arrayData: ['a', 'b', 'c'],
|
|
2623
|
+
* mapFunction: (item, index) => `${index}-${item}`
|
|
2624
|
+
* });
|
|
2625
|
+
* // result.mappedArray = ['0-a', '1-b', '2-c']
|
|
2626
|
+
* ```
|
|
2627
|
+
*
|
|
2628
|
+
* @category Array
|
|
1181
2629
|
*/
|
|
1182
|
-
declare const
|
|
2630
|
+
declare const mapArray: TOperation<IMapArrayOperationData, Omit<IMapArrayOperationData, 'mapFunction'>>;
|
|
1183
2631
|
//#endregion
|
|
1184
2632
|
//#region src/operation/math.d.ts
|
|
1185
2633
|
type MathFunctionKeys = { [K in keyof Math]: Math[K] extends ((...args: any) => any) ? K : never }[keyof Math];
|
|
@@ -1204,6 +2652,8 @@ interface IMathOperationData {
|
|
|
1204
2652
|
}
|
|
1205
2653
|
/**
|
|
1206
2654
|
* This operation performs the given math function with the specified arguments.
|
|
2655
|
+
*
|
|
2656
|
+
* @category Utility
|
|
1207
2657
|
*/
|
|
1208
2658
|
declare const math: TOperation<IMathOperationData, Omit<IMathOperationData, 'args' | 'functionName'>>;
|
|
1209
2659
|
//#endregion
|
|
@@ -1211,6 +2661,8 @@ declare const math: TOperation<IMathOperationData, Omit<IMathOperationData, 'arg
|
|
|
1211
2661
|
/**
|
|
1212
2662
|
* If the preceeding {@link when} operation evaluates to `true` subsequent operations will
|
|
1213
2663
|
* be skipped until an {@link endWhen} operation is encountered.
|
|
2664
|
+
*
|
|
2665
|
+
* @category Control Flow
|
|
1214
2666
|
*/
|
|
1215
2667
|
declare const otherwise: TOperation<Record<string, unknown>>;
|
|
1216
2668
|
//#endregion
|
|
@@ -1232,6 +2684,7 @@ interface IRemoveClassOperationData {
|
|
|
1232
2684
|
*
|
|
1233
2685
|
* @param operationData
|
|
1234
2686
|
* @returns
|
|
2687
|
+
* @category DOM
|
|
1235
2688
|
*/
|
|
1236
2689
|
declare const removeClass: TOperation<IRemoveClassOperationData, Omit<IRemoveClassOperationData, 'className'>>;
|
|
1237
2690
|
//#endregion
|
|
@@ -1253,6 +2706,8 @@ interface IRemoveControllerFromElementOperationData {
|
|
|
1253
2706
|
*
|
|
1254
2707
|
* @param operationData
|
|
1255
2708
|
* @returns
|
|
2709
|
+
*
|
|
2710
|
+
* @category Controller
|
|
1256
2711
|
*/
|
|
1257
2712
|
declare const removeControllerFromElement: TOperation<IRemoveControllerFromElementOperationData, Omit<IRemoveControllerFromElementOperationData, 'controllerName'>>;
|
|
1258
2713
|
//#endregion
|
|
@@ -1265,6 +2720,8 @@ interface IRemoveElementOperationData {
|
|
|
1265
2720
|
}
|
|
1266
2721
|
/**
|
|
1267
2722
|
* This operation removes the given selected element from the DOM.
|
|
2723
|
+
*
|
|
2724
|
+
* @category DOM
|
|
1268
2725
|
*/
|
|
1269
2726
|
declare const removeElement: TOperation<IRemoveElementOperationData>;
|
|
1270
2727
|
//#endregion
|
|
@@ -1279,6 +2736,8 @@ interface IRemovePropertiesFromOperationDataOperationData {
|
|
|
1279
2736
|
/**
|
|
1280
2737
|
* This operation removes the given list of properties from the current operation data.
|
|
1281
2738
|
* It will also remove the property `propertyNames` from the result.
|
|
2739
|
+
*
|
|
2740
|
+
* @category Data
|
|
1282
2741
|
*/
|
|
1283
2742
|
declare const removePropertiesFromOperationData: TOperation<IRemovePropertiesFromOperationDataOperationData, Omit<IRemovePropertiesFromOperationDataOperationData, 'propertyNames'>>;
|
|
1284
2743
|
//#endregion
|
|
@@ -1301,9 +2760,111 @@ interface IReparentElementOperationData {
|
|
|
1301
2760
|
*
|
|
1302
2761
|
* @param operationData
|
|
1303
2762
|
* @returns
|
|
2763
|
+
*
|
|
2764
|
+
* @category DOM
|
|
1304
2765
|
*/
|
|
1305
2766
|
declare const reparentElement: TOperation<IReparentElementOperationData, Omit<IReparentElementOperationData, 'newParentSelector'>>;
|
|
1306
2767
|
//#endregion
|
|
2768
|
+
//#region src/operation/replace-string.d.ts
|
|
2769
|
+
interface IReplaceStringOperationData {
|
|
2770
|
+
/**
|
|
2771
|
+
* @required
|
|
2772
|
+
* @dependency
|
|
2773
|
+
*/
|
|
2774
|
+
textContent: string;
|
|
2775
|
+
/**
|
|
2776
|
+
* @required
|
|
2777
|
+
* @erased
|
|
2778
|
+
*/
|
|
2779
|
+
pattern: string | RegExp;
|
|
2780
|
+
/**
|
|
2781
|
+
* @required
|
|
2782
|
+
* @erased
|
|
2783
|
+
*/
|
|
2784
|
+
replacement: string;
|
|
2785
|
+
/**
|
|
2786
|
+
* @output
|
|
2787
|
+
*/
|
|
2788
|
+
result: string;
|
|
2789
|
+
}
|
|
2790
|
+
/**
|
|
2791
|
+
* Replaces occurrences of a pattern in a string (alias for replaceText for string context).
|
|
2792
|
+
*
|
|
2793
|
+
* @returns Operation data with `result` containing the replaced string
|
|
2794
|
+
*
|
|
2795
|
+
* @example
|
|
2796
|
+
* ```typescript
|
|
2797
|
+
* const result = replaceString({
|
|
2798
|
+
* textContent: 'Hello World',
|
|
2799
|
+
* pattern: 'World',
|
|
2800
|
+
* replacement: 'Universe'
|
|
2801
|
+
* });
|
|
2802
|
+
* // result.result = "Hello Universe"
|
|
2803
|
+
* ```
|
|
2804
|
+
*
|
|
2805
|
+
* @category String
|
|
2806
|
+
*/
|
|
2807
|
+
declare const replaceString: TOperation<IReplaceStringOperationData, Omit<IReplaceStringOperationData, 'pattern' | 'replacement'>>;
|
|
2808
|
+
//#endregion
|
|
2809
|
+
//#region src/operation/replace-text.d.ts
|
|
2810
|
+
interface IReplaceTextOperationData {
|
|
2811
|
+
/**
|
|
2812
|
+
* @required
|
|
2813
|
+
* @dependency
|
|
2814
|
+
*/
|
|
2815
|
+
textContent: string;
|
|
2816
|
+
/**
|
|
2817
|
+
* @required
|
|
2818
|
+
* @erased
|
|
2819
|
+
*/
|
|
2820
|
+
searchPattern: string | RegExp;
|
|
2821
|
+
/**
|
|
2822
|
+
* @required
|
|
2823
|
+
* @erased
|
|
2824
|
+
*/
|
|
2825
|
+
replacement: string;
|
|
2826
|
+
/**
|
|
2827
|
+
* @output
|
|
2828
|
+
*/
|
|
2829
|
+
replacementCount: number;
|
|
2830
|
+
}
|
|
2831
|
+
/**
|
|
2832
|
+
* Finds and replaces text using literal string or regex pattern.
|
|
2833
|
+
*
|
|
2834
|
+
* Operates on textContent passed from previous operations (e.g., getTextContent).
|
|
2835
|
+
* Supports regex patterns with global flag for multiple replacements.
|
|
2836
|
+
* Updates textContent with replaced text and sets replacementCount.
|
|
2837
|
+
*
|
|
2838
|
+
* @returns Operation data with updated `textContent` and `replacementCount` indicating number of replacements made
|
|
2839
|
+
*
|
|
2840
|
+
* @example
|
|
2841
|
+
* ```typescript
|
|
2842
|
+
* // Replace placeholder with value
|
|
2843
|
+
* const result = replaceText({
|
|
2844
|
+
* textContent: 'Hello {{name}}',
|
|
2845
|
+
* searchPattern: '{{name}}',
|
|
2846
|
+
* replacement: 'John'
|
|
2847
|
+
* });
|
|
2848
|
+
* // result.textContent = "Hello John"
|
|
2849
|
+
* // result.replacementCount = 1
|
|
2850
|
+
* ```
|
|
2851
|
+
*
|
|
2852
|
+
* @example
|
|
2853
|
+
* ```typescript
|
|
2854
|
+
* // Replace with regex pattern
|
|
2855
|
+
* const result = replaceText({
|
|
2856
|
+
* textContent: 'Test 123 and 456',
|
|
2857
|
+
* searchPattern: /\d+/g,
|
|
2858
|
+
* replacement: 'NUM'
|
|
2859
|
+
* });
|
|
2860
|
+
* // result.textContent = "Test NUM and NUM"
|
|
2861
|
+
* // result.replacementCount = 2
|
|
2862
|
+
* ```
|
|
2863
|
+
*
|
|
2864
|
+
* @category Text
|
|
2865
|
+
*/
|
|
2866
|
+
declare const replaceText: TOperation<IReplaceTextOperationData, Omit<IReplaceTextOperationData, 'searchPattern' | 'replacement'>>;
|
|
2867
|
+
//#endregion
|
|
1307
2868
|
//#region src/operation/request-action.d.ts
|
|
1308
2869
|
interface IRequestActionOperationData {
|
|
1309
2870
|
/**
|
|
@@ -1321,9 +2882,166 @@ interface IRequestActionOperationData {
|
|
|
1321
2882
|
/**
|
|
1322
2883
|
* This operation requests an action instance with the specified name and assigns it
|
|
1323
2884
|
* to the `actionInstance` property on the current operation data.
|
|
2885
|
+
*
|
|
2886
|
+
* @category Action
|
|
1324
2887
|
*/
|
|
1325
2888
|
declare const requestAction: TOperation<IRequestActionOperationData, Omit<Required<IRequestActionOperationData>, 'systemName'>>;
|
|
1326
2889
|
//#endregion
|
|
2890
|
+
//#region src/operation/save-to-storage.d.ts
|
|
2891
|
+
type StorageType$1 = 'local' | 'session';
|
|
2892
|
+
interface ISaveToStorageOperationData {
|
|
2893
|
+
/**
|
|
2894
|
+
* @required
|
|
2895
|
+
* @erased
|
|
2896
|
+
*/
|
|
2897
|
+
key: string;
|
|
2898
|
+
/**
|
|
2899
|
+
* @required
|
|
2900
|
+
* @erased
|
|
2901
|
+
*/
|
|
2902
|
+
value: any;
|
|
2903
|
+
/**
|
|
2904
|
+
* @required
|
|
2905
|
+
* @erased
|
|
2906
|
+
*/
|
|
2907
|
+
storageType: StorageType$1;
|
|
2908
|
+
}
|
|
2909
|
+
/**
|
|
2910
|
+
* Saves data to browser storage (localStorage or sessionStorage).
|
|
2911
|
+
*
|
|
2912
|
+
* Serializes the value as JSON before storing. Supports any JSON-serializable data type.
|
|
2913
|
+
*
|
|
2914
|
+
* @returns Operation data with storage properties erased
|
|
2915
|
+
*
|
|
2916
|
+
* @example
|
|
2917
|
+
* ```typescript
|
|
2918
|
+
* // Save user settings to localStorage
|
|
2919
|
+
* const result = saveToStorage({
|
|
2920
|
+
* key: 'user-settings',
|
|
2921
|
+
* value: { theme: 'dark', language: 'en' },
|
|
2922
|
+
* storageType: 'local'
|
|
2923
|
+
* });
|
|
2924
|
+
* ```
|
|
2925
|
+
*
|
|
2926
|
+
* @example
|
|
2927
|
+
* ```typescript
|
|
2928
|
+
* // Save session data
|
|
2929
|
+
* const result = saveToStorage({
|
|
2930
|
+
* key: 'session-id',
|
|
2931
|
+
* value: 'abc123',
|
|
2932
|
+
* storageType: 'session'
|
|
2933
|
+
* });
|
|
2934
|
+
* ```
|
|
2935
|
+
*
|
|
2936
|
+
* @category Data
|
|
2937
|
+
*/
|
|
2938
|
+
declare const saveToStorage: TOperation<ISaveToStorageOperationData, Omit<ISaveToStorageOperationData, 'value' | 'storageType'>>;
|
|
2939
|
+
//#endregion
|
|
2940
|
+
//#region src/operation/scroll-to-element.d.ts
|
|
2941
|
+
type ScrollBehavior$1 = 'auto' | 'smooth';
|
|
2942
|
+
type ScrollLogicalPosition = 'start' | 'center' | 'end' | 'nearest';
|
|
2943
|
+
interface IScrollToElementOperationData {
|
|
2944
|
+
/**
|
|
2945
|
+
* @required
|
|
2946
|
+
* @dependency
|
|
2947
|
+
*/
|
|
2948
|
+
selectedElement: JQuery;
|
|
2949
|
+
/**
|
|
2950
|
+
* @optional
|
|
2951
|
+
* @erased
|
|
2952
|
+
*/
|
|
2953
|
+
behavior?: ScrollBehavior$1;
|
|
2954
|
+
/**
|
|
2955
|
+
* @optional
|
|
2956
|
+
* @erased
|
|
2957
|
+
*/
|
|
2958
|
+
block?: ScrollLogicalPosition;
|
|
2959
|
+
/**
|
|
2960
|
+
* @optional
|
|
2961
|
+
* @erased
|
|
2962
|
+
*/
|
|
2963
|
+
inline?: ScrollLogicalPosition;
|
|
2964
|
+
}
|
|
2965
|
+
/**
|
|
2966
|
+
* Scrolls the viewport to bring the selected element into view.
|
|
2967
|
+
*
|
|
2968
|
+
* Uses the browser's `scrollIntoView` API with configurable behavior.
|
|
2969
|
+
*
|
|
2970
|
+
* @returns Operation data with scroll properties erased
|
|
2971
|
+
*
|
|
2972
|
+
* @example
|
|
2973
|
+
* ```typescript
|
|
2974
|
+
* // Smooth scroll to element at top of viewport
|
|
2975
|
+
* const result = scrollToElement({
|
|
2976
|
+
* selectedElement: $targetElement,
|
|
2977
|
+
* behavior: 'smooth',
|
|
2978
|
+
* block: 'start'
|
|
2979
|
+
* });
|
|
2980
|
+
* ```
|
|
2981
|
+
*
|
|
2982
|
+
* @example
|
|
2983
|
+
* ```typescript
|
|
2984
|
+
* // Center element in viewport
|
|
2985
|
+
* const result = scrollToElement({
|
|
2986
|
+
* selectedElement: $targetElement,
|
|
2987
|
+
* behavior: 'smooth',
|
|
2988
|
+
* block: 'center'
|
|
2989
|
+
* });
|
|
2990
|
+
* ```
|
|
2991
|
+
*
|
|
2992
|
+
* @category Scroll
|
|
2993
|
+
*/
|
|
2994
|
+
declare const scrollToElement: TOperation<IScrollToElementOperationData, Omit<IScrollToElementOperationData, 'behavior' | 'block' | 'inline'>>;
|
|
2995
|
+
//#endregion
|
|
2996
|
+
//#region src/operation/scroll-to-position.d.ts
|
|
2997
|
+
type ScrollBehavior = 'auto' | 'smooth';
|
|
2998
|
+
interface IScrollToPositionOperationData {
|
|
2999
|
+
/**
|
|
3000
|
+
* @required
|
|
3001
|
+
* @erased
|
|
3002
|
+
*/
|
|
3003
|
+
x: number;
|
|
3004
|
+
/**
|
|
3005
|
+
* @required
|
|
3006
|
+
* @erased
|
|
3007
|
+
*/
|
|
3008
|
+
y: number;
|
|
3009
|
+
/**
|
|
3010
|
+
* @optional
|
|
3011
|
+
* @erased
|
|
3012
|
+
*/
|
|
3013
|
+
behavior?: ScrollBehavior;
|
|
3014
|
+
}
|
|
3015
|
+
/**
|
|
3016
|
+
* Scrolls the viewport to a specific x,y coordinate position.
|
|
3017
|
+
*
|
|
3018
|
+
* Uses the browser's `window.scrollTo` API with configurable behavior.
|
|
3019
|
+
*
|
|
3020
|
+
* @returns Operation data with scroll properties erased
|
|
3021
|
+
*
|
|
3022
|
+
* @example
|
|
3023
|
+
* ```typescript
|
|
3024
|
+
* // Smooth scroll to position
|
|
3025
|
+
* const result = scrollToPosition({
|
|
3026
|
+
* x: 0,
|
|
3027
|
+
* y: 500,
|
|
3028
|
+
* behavior: 'smooth'
|
|
3029
|
+
* });
|
|
3030
|
+
* ```
|
|
3031
|
+
*
|
|
3032
|
+
* @example
|
|
3033
|
+
* ```typescript
|
|
3034
|
+
* // Instant scroll to top
|
|
3035
|
+
* const result = scrollToPosition({
|
|
3036
|
+
* x: 0,
|
|
3037
|
+
* y: 0
|
|
3038
|
+
* });
|
|
3039
|
+
* ```
|
|
3040
|
+
*
|
|
3041
|
+
* @category Scroll
|
|
3042
|
+
*/
|
|
3043
|
+
declare const scrollToPosition: TOperation<IScrollToPositionOperationData, Omit<IScrollToPositionOperationData, 'x' | 'y' | 'behavior'>>;
|
|
3044
|
+
//#endregion
|
|
1327
3045
|
//#region src/operation/select-element.d.ts
|
|
1328
3046
|
interface ISelectElementOperationData {
|
|
1329
3047
|
/**
|
|
@@ -1348,6 +3066,8 @@ interface ISelectElementOperationData {
|
|
|
1348
3066
|
* If `useSelectedElementAsRoot` is set to true and a valid DOM element is assigned
|
|
1349
3067
|
* to the current operation data's `selectedElement` property
|
|
1350
3068
|
* then the element will be looked for only in the descendant elements of this DOM element.
|
|
3069
|
+
*
|
|
3070
|
+
* @category DOM
|
|
1351
3071
|
*/
|
|
1352
3072
|
declare const selectElement: TOperation<ISelectElementOperationData, Omit<ISelectElementOperationData, 'selector' | 'useSelectedElementAsRoot'>>;
|
|
1353
3073
|
//#endregion
|
|
@@ -1371,6 +3091,8 @@ interface ISetDataOperationData {
|
|
|
1371
3091
|
* '$scope.newIndex': 100, // The constant 100 will be assigned to $scope.newIndex
|
|
1372
3092
|
* })
|
|
1373
3093
|
* ```
|
|
3094
|
+
*
|
|
3095
|
+
* @category Data
|
|
1374
3096
|
*/
|
|
1375
3097
|
declare const setData: TOperation<ISetDataOperationData, Omit<ISetDataOperationData, 'properties'>>;
|
|
1376
3098
|
//#endregion
|
|
@@ -1388,6 +3110,8 @@ interface ISetElementAttributesOperationData {
|
|
|
1388
3110
|
}
|
|
1389
3111
|
/**
|
|
1390
3112
|
* This operation sets the specified set of attributes on the given selected element.
|
|
3113
|
+
*
|
|
3114
|
+
* @category DOM
|
|
1391
3115
|
*/
|
|
1392
3116
|
declare const setElementAttributes: TOperation<ISetElementAttributesOperationData, Omit<ISetElementAttributesOperationData, 'attributes'>>;
|
|
1393
3117
|
//#endregion
|
|
@@ -1420,9 +3144,66 @@ interface ISetElementContentOperationData {
|
|
|
1420
3144
|
* by the given template.
|
|
1421
3145
|
* When set to `append` the new content will be inserted after the current content.
|
|
1422
3146
|
* When set to `prepend` the new content will be inserted before the current content.
|
|
3147
|
+
*
|
|
3148
|
+
* @category DOM
|
|
1423
3149
|
*/
|
|
1424
3150
|
declare const setElementContent: TOperation<ISetElementContentOperationData, Omit<ISetElementContentOperationData, 'template' | 'insertionType'>>;
|
|
1425
3151
|
//#endregion
|
|
3152
|
+
//#region src/operation/set-focus.d.ts
|
|
3153
|
+
interface ISetFocusOperationData {
|
|
3154
|
+
/**
|
|
3155
|
+
* @required
|
|
3156
|
+
* @dependency
|
|
3157
|
+
*/
|
|
3158
|
+
selectedElement: JQuery;
|
|
3159
|
+
}
|
|
3160
|
+
/**
|
|
3161
|
+
* Sets focus to the selected element.
|
|
3162
|
+
*
|
|
3163
|
+
* @category Focus
|
|
3164
|
+
*/
|
|
3165
|
+
declare const setFocus: TOperation<ISetFocusOperationData, ISetFocusOperationData>;
|
|
3166
|
+
//#endregion
|
|
3167
|
+
//#region src/operation/set-form-value.d.ts
|
|
3168
|
+
interface ISetFormValueOperationData {
|
|
3169
|
+
/**
|
|
3170
|
+
* @required
|
|
3171
|
+
* @dependency
|
|
3172
|
+
*/
|
|
3173
|
+
selectedElement: JQuery;
|
|
3174
|
+
/**
|
|
3175
|
+
* @required
|
|
3176
|
+
* @erased
|
|
3177
|
+
*/
|
|
3178
|
+
value: string | number | boolean;
|
|
3179
|
+
}
|
|
3180
|
+
/**
|
|
3181
|
+
* Sets the value of an input, select, or textarea element.
|
|
3182
|
+
*
|
|
3183
|
+
* Handles different input types appropriately:
|
|
3184
|
+
* - Text inputs, textareas, selects: sets value directly
|
|
3185
|
+
* - Checkboxes: sets checked property for boolean values
|
|
3186
|
+
* - Radio buttons: sets checked property for boolean values
|
|
3187
|
+
* - Number inputs: converts to string
|
|
3188
|
+
*
|
|
3189
|
+
* @example
|
|
3190
|
+
* ```typescript
|
|
3191
|
+
* // Set text input value
|
|
3192
|
+
* const result = setFormValue({selectedElement: $input, value: 'test@example.com'});
|
|
3193
|
+
* // Element value is now 'test@example.com'
|
|
3194
|
+
* ```
|
|
3195
|
+
*
|
|
3196
|
+
* @example
|
|
3197
|
+
* ```typescript
|
|
3198
|
+
* // Set checkbox checked state
|
|
3199
|
+
* const result = setFormValue({selectedElement: $checkbox, value: true});
|
|
3200
|
+
* // Checkbox is now checked
|
|
3201
|
+
* ```
|
|
3202
|
+
*
|
|
3203
|
+
* @category Form
|
|
3204
|
+
*/
|
|
3205
|
+
declare const setFormValue: TOperation<ISetFormValueOperationData, Omit<ISetFormValueOperationData, 'value'>>;
|
|
3206
|
+
//#endregion
|
|
1426
3207
|
//#region src/operation/set-global-data.d.ts
|
|
1427
3208
|
interface ISetGlobalDataOperationData {
|
|
1428
3209
|
/**
|
|
@@ -1433,6 +3214,8 @@ interface ISetGlobalDataOperationData {
|
|
|
1433
3214
|
}
|
|
1434
3215
|
/**
|
|
1435
3216
|
* This operation copies the specified properties from the operationData to the global data.
|
|
3217
|
+
*
|
|
3218
|
+
* @category Data
|
|
1436
3219
|
*/
|
|
1437
3220
|
declare const setGlobalData: TOperation<ISetGlobalDataOperationData, Omit<ISetGlobalDataOperationData, 'propertyNames'>>;
|
|
1438
3221
|
//#endregion
|
|
@@ -1452,6 +3235,8 @@ interface ISetOperationData {
|
|
|
1452
3235
|
/**
|
|
1453
3236
|
* This operation assigns the specified properties to the current operation data.
|
|
1454
3237
|
* When override is set to true the properties replace the current operation data entirely.
|
|
3238
|
+
*
|
|
3239
|
+
* @category Data
|
|
1455
3240
|
*/
|
|
1456
3241
|
declare const setOperationData: TOperation<ISetOperationData, Omit<ISetOperationData, 'override' | 'properties'>>;
|
|
1457
3242
|
//#endregion
|
|
@@ -1462,36 +3247,153 @@ interface ISetStyleOperationData {
|
|
|
1462
3247
|
* @required
|
|
1463
3248
|
* @erased
|
|
1464
3249
|
*/
|
|
1465
|
-
properties: Record<string, any>;
|
|
3250
|
+
properties: Record<string, any>;
|
|
3251
|
+
/**
|
|
3252
|
+
* @dependency
|
|
3253
|
+
*/
|
|
3254
|
+
selectedElement: JQuery;
|
|
3255
|
+
}
|
|
3256
|
+
/**
|
|
3257
|
+
* This operation assigns the specified CSS style properties to the
|
|
3258
|
+
* given selected element.
|
|
3259
|
+
*
|
|
3260
|
+
* @category DOM
|
|
3261
|
+
*/
|
|
3262
|
+
declare const setStyle: TOperation<ISetStyleOperationData, Omit<ISetStyleOperationData, 'properties'>>;
|
|
3263
|
+
//#endregion
|
|
3264
|
+
//#region src/operation/set-variable.d.ts
|
|
3265
|
+
interface ISetVariableOperationData {
|
|
3266
|
+
/**
|
|
3267
|
+
* @required
|
|
3268
|
+
* @erased
|
|
3269
|
+
*/
|
|
3270
|
+
name: string;
|
|
3271
|
+
/**
|
|
3272
|
+
* @type=ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array
|
|
3273
|
+
* @required
|
|
3274
|
+
* @erased
|
|
3275
|
+
*/
|
|
3276
|
+
value: any;
|
|
3277
|
+
}
|
|
3278
|
+
/**
|
|
3279
|
+
* This operation sets a variable with the specified name on the scope with the specified value.
|
|
3280
|
+
*
|
|
3281
|
+
* @category Data
|
|
3282
|
+
*/
|
|
3283
|
+
declare const setVariable: TOperation<ISetVariableOperationData, Omit<ISetVariableOperationData, 'name' | 'value'>>;
|
|
3284
|
+
//#endregion
|
|
3285
|
+
//#region src/operation/sort-array.d.ts
|
|
3286
|
+
type SortOrder = 'asc' | 'desc';
|
|
3287
|
+
interface ISortArrayOperationData {
|
|
3288
|
+
/**
|
|
3289
|
+
* @required
|
|
3290
|
+
* @dependency
|
|
3291
|
+
*/
|
|
3292
|
+
arrayData: any[];
|
|
3293
|
+
/**
|
|
3294
|
+
* @optional
|
|
3295
|
+
* @erased
|
|
3296
|
+
*/
|
|
3297
|
+
sortProperty?: string;
|
|
3298
|
+
/**
|
|
3299
|
+
* @optional
|
|
3300
|
+
* @erased
|
|
3301
|
+
*/
|
|
3302
|
+
sortOrder?: SortOrder;
|
|
3303
|
+
/**
|
|
3304
|
+
* @optional
|
|
3305
|
+
* @erased
|
|
3306
|
+
*/
|
|
3307
|
+
sortComparator?: (a: any, b: any) => number;
|
|
1466
3308
|
/**
|
|
1467
|
-
* @
|
|
3309
|
+
* @output
|
|
1468
3310
|
*/
|
|
1469
|
-
|
|
3311
|
+
sortedArray: any[];
|
|
1470
3312
|
}
|
|
1471
3313
|
/**
|
|
1472
|
-
*
|
|
1473
|
-
*
|
|
3314
|
+
* Sorts an array by property, natural order, or custom comparator function.
|
|
3315
|
+
*
|
|
3316
|
+
* Operates on arrayData passed from previous operations.
|
|
3317
|
+
* Supports three sorting modes:
|
|
3318
|
+
* 1. Property sort: `sortProperty` and `sortOrder` to sort objects by property
|
|
3319
|
+
* 2. Natural sort: `sortOrder` alone for primitive arrays
|
|
3320
|
+
* 3. Custom comparator: `sortComparator` function for complex sorting logic
|
|
3321
|
+
*
|
|
3322
|
+
* @returns Operation data with `sortedArray` containing sorted results
|
|
3323
|
+
*
|
|
3324
|
+
* @example
|
|
3325
|
+
* ```typescript
|
|
3326
|
+
* // Sort objects by property
|
|
3327
|
+
* const result = sortArray({
|
|
3328
|
+
* arrayData: [{name: 'Bob', age: 30}, {name: 'Alice', age: 25}],
|
|
3329
|
+
* sortProperty: 'age',
|
|
3330
|
+
* sortOrder: 'asc'
|
|
3331
|
+
* });
|
|
3332
|
+
* // result.sortedArray = [{name: 'Alice', age: 25}, {name: 'Bob', age: 30}]
|
|
3333
|
+
* ```
|
|
3334
|
+
*
|
|
3335
|
+
* @example
|
|
3336
|
+
* ```typescript
|
|
3337
|
+
* // Sort primitives
|
|
3338
|
+
* const result = sortArray({
|
|
3339
|
+
* arrayData: [5, 2, 8, 1],
|
|
3340
|
+
* sortOrder: 'desc'
|
|
3341
|
+
* });
|
|
3342
|
+
* // result.sortedArray = [8, 5, 2, 1]
|
|
3343
|
+
* ```
|
|
3344
|
+
*
|
|
3345
|
+
* @example
|
|
3346
|
+
* ```typescript
|
|
3347
|
+
* // Custom comparator
|
|
3348
|
+
* const result = sortArray({
|
|
3349
|
+
* arrayData: ['apple', 'Banana', 'cherry'],
|
|
3350
|
+
* sortComparator: (a, b) => a.toLowerCase().localeCompare(b.toLowerCase())
|
|
3351
|
+
* });
|
|
3352
|
+
* ```
|
|
3353
|
+
*
|
|
3354
|
+
* @category Array
|
|
1474
3355
|
*/
|
|
1475
|
-
declare const
|
|
3356
|
+
declare const sortArray: TOperation<ISortArrayOperationData, Omit<ISortArrayOperationData, 'sortProperty' | 'sortOrder' | 'sortComparator'>>;
|
|
1476
3357
|
//#endregion
|
|
1477
|
-
//#region src/operation/
|
|
1478
|
-
interface
|
|
3358
|
+
//#region src/operation/split-string.d.ts
|
|
3359
|
+
interface ISplitStringOperationData {
|
|
1479
3360
|
/**
|
|
1480
3361
|
* @required
|
|
1481
|
-
* @
|
|
3362
|
+
* @dependency
|
|
1482
3363
|
*/
|
|
1483
|
-
|
|
3364
|
+
textContent: string;
|
|
1484
3365
|
/**
|
|
1485
|
-
* @type=ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array
|
|
1486
3366
|
* @required
|
|
1487
3367
|
* @erased
|
|
1488
3368
|
*/
|
|
1489
|
-
|
|
3369
|
+
delimiter: string | RegExp;
|
|
3370
|
+
/**
|
|
3371
|
+
* @optional
|
|
3372
|
+
* @erased
|
|
3373
|
+
*/
|
|
3374
|
+
limit?: number;
|
|
3375
|
+
/**
|
|
3376
|
+
* @output
|
|
3377
|
+
*/
|
|
3378
|
+
resultArray: string[];
|
|
1490
3379
|
}
|
|
1491
3380
|
/**
|
|
1492
|
-
*
|
|
3381
|
+
* Splits a string into an array by delimiter (string or regex).
|
|
3382
|
+
*
|
|
3383
|
+
* @returns Operation data with `resultArray` containing the split strings
|
|
3384
|
+
*
|
|
3385
|
+
* @example
|
|
3386
|
+
* ```typescript
|
|
3387
|
+
* const result = splitString({
|
|
3388
|
+
* textContent: 'apple,banana,cherry',
|
|
3389
|
+
* delimiter: ','
|
|
3390
|
+
* });
|
|
3391
|
+
* // result.resultArray = ['apple', 'banana', 'cherry']
|
|
3392
|
+
* ```
|
|
3393
|
+
*
|
|
3394
|
+
* @category String
|
|
1493
3395
|
*/
|
|
1494
|
-
declare const
|
|
3396
|
+
declare const splitString: TOperation<ISplitStringOperationData, Omit<ISplitStringOperationData, 'delimiter' | 'limit'>>;
|
|
1495
3397
|
//#endregion
|
|
1496
3398
|
//#region src/operation/start-action.d.ts
|
|
1497
3399
|
interface IStartActionOperationData {
|
|
@@ -1511,9 +3413,52 @@ interface IStartActionOperationData {
|
|
|
1511
3413
|
* The action operation data is first merged with the current operation data before it is
|
|
1512
3414
|
* passed on to the action. After the action has completed the action operation data properties
|
|
1513
3415
|
* are removed from the current operation data.
|
|
3416
|
+
*
|
|
3417
|
+
* @category Action
|
|
1514
3418
|
*/
|
|
1515
3419
|
declare const startAction: TOperation<IStartActionOperationData, Omit<IStartActionOperationData, 'actionOperationData'>>;
|
|
1516
3420
|
//#endregion
|
|
3421
|
+
//#region src/operation/substring-text.d.ts
|
|
3422
|
+
interface ISubstringTextOperationData {
|
|
3423
|
+
/**
|
|
3424
|
+
* @required
|
|
3425
|
+
* @dependency
|
|
3426
|
+
*/
|
|
3427
|
+
textContent: string;
|
|
3428
|
+
/**
|
|
3429
|
+
* @required
|
|
3430
|
+
* @erased
|
|
3431
|
+
*/
|
|
3432
|
+
start: number;
|
|
3433
|
+
/**
|
|
3434
|
+
* @optional
|
|
3435
|
+
* @erased
|
|
3436
|
+
*/
|
|
3437
|
+
end?: number;
|
|
3438
|
+
/**
|
|
3439
|
+
* @output
|
|
3440
|
+
*/
|
|
3441
|
+
substring: string;
|
|
3442
|
+
}
|
|
3443
|
+
/**
|
|
3444
|
+
* Extracts a substring from text between start and end indices.
|
|
3445
|
+
*
|
|
3446
|
+
* @returns Operation data with `substring` containing the extracted text
|
|
3447
|
+
*
|
|
3448
|
+
* @example
|
|
3449
|
+
* ```typescript
|
|
3450
|
+
* const result = substringText({
|
|
3451
|
+
* textContent: 'Hello World',
|
|
3452
|
+
* start: 0,
|
|
3453
|
+
* end: 5
|
|
3454
|
+
* });
|
|
3455
|
+
* // result.substring = "Hello"
|
|
3456
|
+
* ```
|
|
3457
|
+
*
|
|
3458
|
+
* @category Text
|
|
3459
|
+
*/
|
|
3460
|
+
declare const substringText: TOperation<ISubstringTextOperationData, Omit<ISubstringTextOperationData, 'start' | 'end'>>;
|
|
3461
|
+
//#endregion
|
|
1517
3462
|
//#region src/operation/toggle-class.d.ts
|
|
1518
3463
|
interface IToggleClassOperationData {
|
|
1519
3464
|
/**
|
|
@@ -1534,6 +3479,8 @@ interface IToggleClassOperationData {
|
|
|
1534
3479
|
*
|
|
1535
3480
|
* Meaning, if the specified class name exists on the given element it will be removed,
|
|
1536
3481
|
* otherwise it will be added.
|
|
3482
|
+
*
|
|
3483
|
+
* @category DOM
|
|
1537
3484
|
*/
|
|
1538
3485
|
declare const toggleClass: TOperation<IToggleClassOperationData, Omit<IToggleClassOperationData, 'className'>>;
|
|
1539
3486
|
//#endregion
|
|
@@ -1550,9 +3497,108 @@ interface IToggleElementOperationData {
|
|
|
1550
3497
|
*
|
|
1551
3498
|
* Meaning, if the element is hidden, it will be made visible, otherwise
|
|
1552
3499
|
* it will be hidden.
|
|
3500
|
+
*
|
|
3501
|
+
* @category DOM
|
|
1553
3502
|
*/
|
|
1554
3503
|
declare const toggleElement: TOperation<IToggleElementOperationData>;
|
|
1555
3504
|
//#endregion
|
|
3505
|
+
//#region src/operation/toggle-form-element.d.ts
|
|
3506
|
+
interface IToggleFormElementOperationData {
|
|
3507
|
+
/**
|
|
3508
|
+
* @required
|
|
3509
|
+
* @dependency
|
|
3510
|
+
*/
|
|
3511
|
+
selectedElement: JQuery;
|
|
3512
|
+
/**
|
|
3513
|
+
* @required
|
|
3514
|
+
* @erased
|
|
3515
|
+
*/
|
|
3516
|
+
enabled: boolean;
|
|
3517
|
+
}
|
|
3518
|
+
/**
|
|
3519
|
+
* Enables or disables form input elements (inputs, selects, textareas, buttons).
|
|
3520
|
+
*
|
|
3521
|
+
* Sets the `disabled` property on the element. When `enabled` is true, removes the disabled
|
|
3522
|
+
* attribute; when false, adds the disabled attribute.
|
|
3523
|
+
*
|
|
3524
|
+
* @example
|
|
3525
|
+
* ```typescript
|
|
3526
|
+
* // Disable an input field
|
|
3527
|
+
* toggleFormElement({selectedElement: $input, enabled: false});
|
|
3528
|
+
* // Input is now disabled
|
|
3529
|
+
* ```
|
|
3530
|
+
*
|
|
3531
|
+
* @example
|
|
3532
|
+
* ```typescript
|
|
3533
|
+
* // Enable a previously disabled button
|
|
3534
|
+
* toggleFormElement({selectedElement: $button, enabled: true});
|
|
3535
|
+
* // Button is now enabled
|
|
3536
|
+
* ```
|
|
3537
|
+
*
|
|
3538
|
+
* @category Form
|
|
3539
|
+
*/
|
|
3540
|
+
declare const toggleFormElement: TOperation<IToggleFormElementOperationData, Omit<IToggleFormElementOperationData, 'enabled'>>;
|
|
3541
|
+
//#endregion
|
|
3542
|
+
//#region src/operation/validate-form.d.ts
|
|
3543
|
+
interface IValidationRules {
|
|
3544
|
+
required?: boolean;
|
|
3545
|
+
minLength?: number;
|
|
3546
|
+
maxLength?: number;
|
|
3547
|
+
pattern?: string | RegExp;
|
|
3548
|
+
email?: boolean;
|
|
3549
|
+
}
|
|
3550
|
+
interface IValidateFormOperationData {
|
|
3551
|
+
/**
|
|
3552
|
+
* @required
|
|
3553
|
+
* @dependency
|
|
3554
|
+
*/
|
|
3555
|
+
selectedElement: JQuery;
|
|
3556
|
+
/**
|
|
3557
|
+
* @erased
|
|
3558
|
+
*/
|
|
3559
|
+
validationRules?: Record<string, IValidationRules>;
|
|
3560
|
+
/**
|
|
3561
|
+
* @output
|
|
3562
|
+
* @type=ParameterType:object
|
|
3563
|
+
*/
|
|
3564
|
+
validationErrors?: Record<string, string>;
|
|
3565
|
+
/**
|
|
3566
|
+
* @output
|
|
3567
|
+
*/
|
|
3568
|
+
isValid?: boolean;
|
|
3569
|
+
}
|
|
3570
|
+
/**
|
|
3571
|
+
* Validates form fields against HTML5 validation and custom rules.
|
|
3572
|
+
*
|
|
3573
|
+
* Uses HTML5 validation API (checkValidity()) for native validation, and supports
|
|
3574
|
+
* custom validation rules for: required, minLength, maxLength, pattern (regex), and email format.
|
|
3575
|
+
*
|
|
3576
|
+
* @returns Operation data with `validationErrors` object (field names → error messages) and `isValid` boolean
|
|
3577
|
+
*
|
|
3578
|
+
* @example
|
|
3579
|
+
* ```typescript
|
|
3580
|
+
* // Validate with HTML5 validation
|
|
3581
|
+
* const result = validateForm({selectedElement: $form});
|
|
3582
|
+
* // Returns: {isValid: true, validationErrors: {}}
|
|
3583
|
+
* ```
|
|
3584
|
+
*
|
|
3585
|
+
* @example
|
|
3586
|
+
* ```typescript
|
|
3587
|
+
* // Validate with custom rules
|
|
3588
|
+
* const result = validateForm({
|
|
3589
|
+
* selectedElement: $form,
|
|
3590
|
+
* validationRules: {
|
|
3591
|
+
* password: { required: true, minLength: 8 },
|
|
3592
|
+
* email: { email: true }
|
|
3593
|
+
* }
|
|
3594
|
+
* });
|
|
3595
|
+
* // Returns: {isValid: false, validationErrors: {password: "Must be at least 8 characters"}}
|
|
3596
|
+
* ```
|
|
3597
|
+
*
|
|
3598
|
+
* @category Form
|
|
3599
|
+
*/
|
|
3600
|
+
declare const validateForm: TOperation<IValidateFormOperationData, Omit<IValidateFormOperationData, 'validationRules'>>;
|
|
3601
|
+
//#endregion
|
|
1556
3602
|
//#region src/operation/wait.d.ts
|
|
1557
3603
|
interface IWaitOperationData {
|
|
1558
3604
|
/**
|
|
@@ -1564,6 +3610,8 @@ interface IWaitOperationData {
|
|
|
1564
3610
|
}
|
|
1565
3611
|
/**
|
|
1566
3612
|
* This operation waits for the specified amount of milliseconds.
|
|
3613
|
+
*
|
|
3614
|
+
* @category Utility
|
|
1567
3615
|
*/
|
|
1568
3616
|
declare const wait: TOperation<IWaitOperationData, Omit<IWaitOperationData, 'milliseconds'>>;
|
|
1569
3617
|
//#endregion
|
|
@@ -1604,18 +3652,20 @@ interface IWhenOperationData {
|
|
|
1604
3652
|
*
|
|
1605
3653
|
* @param operationData
|
|
1606
3654
|
* @returns
|
|
3655
|
+
*
|
|
3656
|
+
* @category Control Flow
|
|
1607
3657
|
*/
|
|
1608
3658
|
declare const when: TOperation<IWhenOperationData, Omit<IWhenOperationData, 'expression'>>;
|
|
1609
|
-
declare namespace index_d_exports$
|
|
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 };
|
|
3659
|
+
declare namespace index_d_exports$3 {
|
|
3660
|
+
export { ExtractOperationData, ExtractReturnedOperationData, IAddClassOperationData, IAddControllerToElementOperationData, IAnimateOperationData, IAnimateWithClassOperationData, IAnnounceToScreenReaderOperationData, IBroadcastEventOperationData, ICalcOperationData, IClearElementOperationData, IClearOperationDataOperationData, IClearStorageOperationData, ICompareDateOperationData, IConcatenateStringsOperationData, ICreateElementOperationData, ICustomFunctionOperationData, IEndActionOperationData, IExtendControllerOperationData, IFilterArrayOperationData, IFindInArrayOperationData, IForEachOperationData, IFormatDateOperationData, IFormatTextOperationData, IGetAttributesFromElementOperationData, IGetControllerFromElementOperationData, IGetControllerInstanceOperationData, IGetCurrentTimeOperationData, IGetElementDimensionsOperationData, IGetFocusedElementOperationData, IGetFormDataOperationData, IGetImportOperationData, IGetQueryParamsOperationData, IGetScrollPositionOperationData, IGetTextContentOperationData, IHttpDeleteOperationData, IHttpPostOperationData, IHttpPutOperationData, IInvokeObjectMethodOperationData, IIsElementInViewportOperationData, ILoadFromStorageOperationData, ILoadJSONOperationData, ILogOperationData, IMapArrayOperationData, IMathOperationData, IOperationScope, IRemoveClassOperationData, IRemoveControllerFromElementOperationData, IRemoveElementOperationData, IRemovePropertiesFromOperationDataOperationData, IReparentElementOperationData, IReplaceStringOperationData, IReplaceTextOperationData, IRequestActionOperationData, ISaveToStorageOperationData, IScrollToElementOperationData, IScrollToPositionOperationData, ISelectElementOperationData, ISetDataOperationData, ISetElementAttributesOperationData, ISetElementContentOperationData, ISetFocusOperationData, ISetFormValueOperationData, ISetGlobalDataOperationData, ISetOperationData, ISetStyleOperationData, ISetVariableOperationData, ISortArrayOperationData, ISplitStringOperationData, IStartActionOperationData, ISubstringTextOperationData, IToggleClassOperationData, IToggleElementOperationData, IToggleFormElementOperationData, IValidateFormOperationData, IWaitOperationData, IWhenOperationData, StorageType, TOperation, TOperationData, TOperationResult, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, announceToScreenReader, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, clearStorage, compareDate, concatenateStrings, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, filterArray, findInArray, forEach, formatDate, formatText, getAttributesFromElement, getControllerFromElement, getControllerInstance, getCurrentTime, getElementDimensions, getFocusedElement, getFormData, getImport, getQueryParams, getScrollPosition, getTextContent, httpDelete, httpPost, httpPut, invokeObjectMethod, isElementInViewport, loadFromStorage, loadJson, log, mapArray, math, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, replaceString, replaceText, requestAction, saveToStorage, scrollToElement, scrollToPosition, selectElement, setData, setElementAttributes, setElementContent, setFocus, setFormValue, setGlobalData, setOperationData, setStyle, setVariable, sortArray, splitString, startAction, substringText, toggleClass, toggleElement, toggleFormElement, validateForm, wait, when };
|
|
1611
3661
|
}
|
|
1612
3662
|
//#endregion
|
|
1613
3663
|
//#region src/configuration/types.d.ts
|
|
1614
|
-
type Controllers = typeof index_d_exports$
|
|
3664
|
+
type Controllers = typeof index_d_exports$4;
|
|
1615
3665
|
type TControllerName = keyof Controllers;
|
|
1616
3666
|
type TControllerType = Controllers[TControllerName];
|
|
1617
3667
|
type GetControllerByName<T$1 extends TControllerName> = Controllers[T$1];
|
|
1618
|
-
type Operations = typeof index_d_exports$
|
|
3668
|
+
type Operations = typeof index_d_exports$3;
|
|
1619
3669
|
type TOperationName = keyof Operations;
|
|
1620
3670
|
type TOperationType = Operations[TOperationName];
|
|
1621
3671
|
type GetOperationByName<T$1 extends TOperationName> = Operations[T$1];
|
|
@@ -1663,7 +3713,7 @@ interface IResolvedActionConfiguration {
|
|
|
1663
3713
|
interface IResolvedEndableActionConfiguration extends IResolvedActionConfiguration {
|
|
1664
3714
|
endOperations: IResolvedOperation[];
|
|
1665
3715
|
}
|
|
1666
|
-
type ITimelineFlow =
|
|
3716
|
+
type ITimelineFlow = Record<string, never>;
|
|
1667
3717
|
interface ITimelineProviderSettings {
|
|
1668
3718
|
id: string;
|
|
1669
3719
|
vendor: string;
|
|
@@ -1877,7 +3927,7 @@ declare class EndableActionEditor<T$1 extends IEndableActionConfiguration = IEnd
|
|
|
1877
3927
|
* @param operationData
|
|
1878
3928
|
* @returns
|
|
1879
3929
|
*/
|
|
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<
|
|
3930
|
+
addEndOperation<T$1 extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T$1>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddControllerToElementOperationData<TOperationData>> | TOperation<IAddClassOperationData, Omit<IAddClassOperationData, "className">> | TOperation<IAddGlobalsToOperationData, Omit<IAddGlobalsToOperationData, "globalProperties">> | TOperation<IAnimateOperationData, Omit<IAnimateOperationData, "animationEasing" | "animationProperties" | "animationDuration">> | TOperation<TOperationData> | TOperation<IAnnounceToScreenReaderOperationData, Omit<IAnnounceToScreenReaderOperationData, "message" | "priority">> | TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>> | TOperation<IBroadcastEventOperationData, Omit<IBroadcastEventOperationData, "eventArgs" | "eventTopic" | "eventName">> | TOperation<IClearElementOperationData> | TOperation<IClearOperationDataOperationData, Omit<IClearOperationDataOperationData, "properties">> | TOperation<ICalcOperationData, Omit<ICalcOperationData, "left" | "right" | "operator">> | TOperation<IClearStorageOperationData, Omit<IClearStorageOperationData, "key" | "storageType">> | TOperation<ICompareDateOperationData, Omit<ICompareDateOperationData, "date1" | "date2">> | TOperation<IConcatenateStringsOperationData, Omit<IConcatenateStringsOperationData, "strings" | "separator">> | TOperation<IForEachOperationData> | 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<IGetCurrentTimeOperationData, IGetCurrentTimeOperationData> | TOperation<IFilterArrayOperationData, Omit<IFilterArrayOperationData, "filterProperty" | "filterValue" | "filterPredicate">> | TOperation<IFormatDateOperationData, Omit<IFormatDateOperationData, "format">> | TOperation<IFindInArrayOperationData, Omit<IFindInArrayOperationData, "findProperty" | "findValue" | "findPredicate">> | TOperation<IGetImportOperationData, Omit<RequireKeys<IGetImportOperationData, "importedInstance">, "systemName">> | TOperation<IGetControllerFromElementOperationData, Omit<IGetControllerFromElementOperationData, "controllerName">> | TOperation<IGetElementDimensionsOperationData, Omit<IGetElementDimensionsOperationData, "modifier">> | TOperation<IFormatTextOperationData, Omit<IFormatTextOperationData, "transformation">> | TOperation<IGetFocusedElementOperationData, IGetFocusedElementOperationData> | TOperation<IGetAttributesFromElementOperationData, Omit<IGetAttributesFromElementOperationData, "attributeNames">> | TOperation<IGetControllerInstanceOperationData, Omit<IGetControllerInstanceOperationData, "systemName">> | TOperation<IHttpDeleteOperationData, Omit<IHttpDeleteOperationData, "url" | "headers">> | TOperation<IGetFormDataOperationData, IGetFormDataOperationData> | TOperation<IGetScrollPositionOperationData, IGetScrollPositionOperationData> | TOperation<IGetQueryParamsOperationData, Omit<IGetQueryParamsOperationData, "defaultValues">> | TOperation<IHttpPutOperationData, Omit<IHttpPutOperationData, "body" | "url" | "headers">> | TOperation<IGetTextContentOperationData, IGetTextContentOperationData> | TOperation<IHttpPostOperationData, Omit<IHttpPostOperationData, "body" | "url" | "headers">> | TOperation<IIsElementInViewportOperationData, IIsElementInViewportOperationData> | TOperation<IInvokeObjectMethodOperationData, Omit<IInvokeObjectMethodOperationData, "methodName" | "methodArguments">> | TOperation<ILoadFromStorageOperationData, Omit<ILoadFromStorageOperationData, "storageType">> | TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, "url" | "cache">> | TOperation<ILogOperationData, Omit<ILogOperationData, "logValue" | "logName">> | TOperation<IMapArrayOperationData, Omit<IMapArrayOperationData, "mapFunction">> | 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<IReplaceStringOperationData, Omit<IReplaceStringOperationData, "pattern" | "replacement">> | TOperation<IReplaceTextOperationData, Omit<IReplaceTextOperationData, "replacement" | "searchPattern">> | TOperation<IRequestActionOperationData, Omit<Required<IRequestActionOperationData>, "systemName">> | TOperation<ISaveToStorageOperationData, Omit<ISaveToStorageOperationData, "storageType" | "value">> | TOperation<IScrollToPositionOperationData, Omit<IScrollToPositionOperationData, "x" | "y" | "behavior">> | TOperation<IScrollToElementOperationData, Omit<IScrollToElementOperationData, "behavior" | "block" | "inline">> | TOperation<ISetDataOperationData, Omit<ISetDataOperationData, "properties">> | TOperation<ISelectElementOperationData, Omit<ISelectElementOperationData, "selector" | "useSelectedElementAsRoot">> | TOperation<ISetElementContentOperationData, Omit<ISetElementContentOperationData, "template" | "insertionType">> | TOperation<ISetFocusOperationData, ISetFocusOperationData> | TOperation<ISetElementAttributesOperationData, Omit<ISetElementAttributesOperationData, "attributes">> | TOperation<ISetFormValueOperationData, Omit<ISetFormValueOperationData, "value">> | TOperation<ISetGlobalDataOperationData, Omit<ISetGlobalDataOperationData, "propertyNames">> | TOperation<ISetOperationData, Omit<ISetOperationData, "properties" | "override">> | TOperation<ISetVariableOperationData, Omit<ISetVariableOperationData, "name" | "value">> | TOperation<ISetStyleOperationData, Omit<ISetStyleOperationData, "properties">> | TOperation<ISplitStringOperationData, Omit<ISplitStringOperationData, "delimiter" | "limit">> | TOperation<ISortArrayOperationData, Omit<ISortArrayOperationData, "sortProperty" | "sortOrder" | "sortComparator">> | TOperation<IToggleClassOperationData, Omit<IToggleClassOperationData, "className">> | TOperation<ISubstringTextOperationData, Omit<ISubstringTextOperationData, "start" | "end">> | TOperation<IStartActionOperationData, Omit<IStartActionOperationData, "actionOperationData">> | TOperation<IToggleElementOperationData> | TOperation<IToggleFormElementOperationData, Omit<IToggleFormElementOperationData, "enabled">> | TOperation<IValidateFormOperationData, Omit<IValidateFormOperationData, "validationRules">> | TOperation<IWhenOperationData, Omit<IWhenOperationData, "expression">> | TOperation<IWaitOperationData, Omit<IWaitOperationData, "milliseconds">>>;
|
|
1881
3931
|
/**
|
|
1882
3932
|
*
|
|
1883
3933
|
* Starts an editor for the end operation associated with the given id
|
|
@@ -2580,13 +4630,15 @@ type TConstantParametersTypes = {
|
|
|
2580
4630
|
type TPropertyMetadata = TComplexPropertyMetadata | TArrayProperyMetadata | TParameterTypes;
|
|
2581
4631
|
type TPropertiesMetadata<T$1> = { [P in keyof T$1]?: TPropertyMetadata };
|
|
2582
4632
|
interface IOperationMetadata<T$1> {
|
|
4633
|
+
category: TOperationCategory;
|
|
2583
4634
|
description: string;
|
|
2584
4635
|
dependentProperties?: (keyof T$1)[];
|
|
2585
4636
|
properties?: TPropertiesMetadata<T$1>;
|
|
2586
4637
|
outputProperties?: TPropertiesMetadata<T$1>;
|
|
2587
4638
|
}
|
|
2588
4639
|
type TParameterTypesDelimited = `${TParameterTypes}` | `${TParameterTypes}|${string}`;
|
|
2589
|
-
type TParameterTypes = 'ParameterType:htmlElementName' | 'ParameterType:className' | 'ParameterType:selector' | 'ParameterType:string' | 'ParameterType:number' | 'ParameterType:object' | 'ParameterType:boolean' | 'ParameterType:array' | 'ParameterType:eventTopic' | 'ParameterType:eventName' | 'ParameterType:systemName' | 'ParameterType:actionName' | 'ParameterType:controllerName' | 'ParameterType:dimensions' | 'ParameterType:dimensionsModifier' | 'ParameterType:url' | 'ParameterType:htmlContent' | 'ParameterType:labelId' | 'ParameterType:ImagePath' | 'ParameterType:QuadrantPosition' | 'ParameterType:jQuery' | 'ParameterType:expression' | 'ParameterType:mathfunction' | 'ParameterType:cssProperties';
|
|
4640
|
+
type TParameterTypes = 'ParameterType:htmlElementName' | 'ParameterType:className' | 'ParameterType:selector' | 'ParameterType:string' | 'ParameterType:number' | 'ParameterType:object' | 'ParameterType:boolean' | 'ParameterType:array' | 'ParameterType:eventTopic' | 'ParameterType:eventName' | 'ParameterType:systemName' | 'ParameterType:actionName' | 'ParameterType:controllerName' | 'ParameterType:dimensions' | 'ParameterType:dimensionsModifier' | 'ParameterType:url' | 'ParameterType:htmlContent' | 'ParameterType:labelId' | 'ParameterType:ImagePath' | 'ParameterType:QuadrantPosition' | 'ParameterType:jQuery' | 'ParameterType:expression' | 'ParameterType:mathfunction' | 'ParameterType:cssProperties' | 'ParameterType:function' | 'ParameterType:Date';
|
|
4641
|
+
type TOperationCategory = 'DOM' | 'Controller' | 'Data' | 'Control Flow' | 'Animation' | 'Form' | 'Scroll' | 'Focus' | 'Array' | 'String' | 'Text' | 'Date' | 'HTTP' | 'Action' | 'Utility' | 'Accessibility';
|
|
2590
4642
|
//#endregion
|
|
2591
4643
|
//#region src/operation/metadata/add-class.d.ts
|
|
2592
4644
|
declare function addClass$1(): IOperationMetadata<IAddClassOperationData>;
|
|
@@ -2603,6 +4655,9 @@ declare function animateWithClass$1(): IOperationMetadata<IAnimateWithClassOpera
|
|
|
2603
4655
|
//#region src/operation/metadata/animate.d.ts
|
|
2604
4656
|
declare function animate$1(): IOperationMetadata<IAnimateOperationData>;
|
|
2605
4657
|
//#endregion
|
|
4658
|
+
//#region src/operation/metadata/announce-to-screen-reader.d.ts
|
|
4659
|
+
declare function announceToScreenReader$1(): IOperationMetadata<IAnnounceToScreenReaderOperationData>;
|
|
4660
|
+
//#endregion
|
|
2606
4661
|
//#region src/operation/metadata/break-for-each.d.ts
|
|
2607
4662
|
declare function breakForEach$1(): IOperationMetadata<undefined>;
|
|
2608
4663
|
//#endregion
|
|
@@ -2618,6 +4673,15 @@ declare function clearElement$1(): IOperationMetadata<IClearElementOperationData
|
|
|
2618
4673
|
//#region src/operation/metadata/clear-operation-data.d.ts
|
|
2619
4674
|
declare function clearOperationData$1(): IOperationMetadata<IClearOperationDataOperationData>;
|
|
2620
4675
|
//#endregion
|
|
4676
|
+
//#region src/operation/metadata/clear-storage.d.ts
|
|
4677
|
+
declare function clearStorage$1(): IOperationMetadata<IClearStorageOperationData>;
|
|
4678
|
+
//#endregion
|
|
4679
|
+
//#region src/operation/metadata/compare-date.d.ts
|
|
4680
|
+
declare function compareDate$1(): IOperationMetadata<ICompareDateOperationData>;
|
|
4681
|
+
//#endregion
|
|
4682
|
+
//#region src/operation/metadata/concatenate-strings.d.ts
|
|
4683
|
+
declare function concatenateStrings$1(): IOperationMetadata<IConcatenateStringsOperationData>;
|
|
4684
|
+
//#endregion
|
|
2621
4685
|
//#region src/operation/metadata/continue-for-each.d.ts
|
|
2622
4686
|
declare function continueForEach$1(): IOperationMetadata<undefined>;
|
|
2623
4687
|
//#endregion
|
|
@@ -2639,9 +4703,21 @@ declare function endWhen$1(): IOperationMetadata<undefined>;
|
|
|
2639
4703
|
//#region src/operation/metadata/extend-controller.d.ts
|
|
2640
4704
|
declare function extendController$1(): IOperationMetadata<IExtendControllerOperationData>;
|
|
2641
4705
|
//#endregion
|
|
4706
|
+
//#region src/operation/metadata/filter-array.d.ts
|
|
4707
|
+
declare function filterArray$1(): IOperationMetadata<IFilterArrayOperationData>;
|
|
4708
|
+
//#endregion
|
|
4709
|
+
//#region src/operation/metadata/find-in-array.d.ts
|
|
4710
|
+
declare function findInArray$1(): IOperationMetadata<IFindInArrayOperationData>;
|
|
4711
|
+
//#endregion
|
|
2642
4712
|
//#region src/operation/metadata/for-each.d.ts
|
|
2643
4713
|
declare function forEach$1(): IOperationMetadata<IForEachOperationData>;
|
|
2644
4714
|
//#endregion
|
|
4715
|
+
//#region src/operation/metadata/format-date.d.ts
|
|
4716
|
+
declare function formatDate$1(): IOperationMetadata<IFormatDateOperationData>;
|
|
4717
|
+
//#endregion
|
|
4718
|
+
//#region src/operation/metadata/format-text.d.ts
|
|
4719
|
+
declare function formatText$1(): IOperationMetadata<IFormatTextOperationData>;
|
|
4720
|
+
//#endregion
|
|
2645
4721
|
//#region src/operation/metadata/get-attributes-from-element.d.ts
|
|
2646
4722
|
declare function getAttributesFromElement$1(): IOperationMetadata<IGetAttributesFromElementOperationData>;
|
|
2647
4723
|
//#endregion
|
|
@@ -2651,24 +4727,57 @@ declare function getControllerFromElement$1(): IOperationMetadata<IGetController
|
|
|
2651
4727
|
//#region src/operation/metadata/get-controller-instance.d.ts
|
|
2652
4728
|
declare function getControllerInstance$1(): IOperationMetadata<IGetControllerInstanceOperationData>;
|
|
2653
4729
|
//#endregion
|
|
4730
|
+
//#region src/operation/metadata/get-current-time.d.ts
|
|
4731
|
+
declare function getCurrentTime$1(): IOperationMetadata<IGetCurrentTimeOperationData>;
|
|
4732
|
+
//#endregion
|
|
2654
4733
|
//#region src/operation/metadata/get-element-dimensions.d.ts
|
|
2655
4734
|
declare function getElementDimensions$1(): IOperationMetadata<IGetElementDimensionsOperationData>;
|
|
2656
4735
|
//#endregion
|
|
4736
|
+
//#region src/operation/metadata/get-focused-element.d.ts
|
|
4737
|
+
declare function getFocusedElement$1(): IOperationMetadata<IGetFocusedElementOperationData>;
|
|
4738
|
+
//#endregion
|
|
4739
|
+
//#region src/operation/metadata/get-form-data.d.ts
|
|
4740
|
+
declare function getFormData$1(): IOperationMetadata<IGetFormDataOperationData>;
|
|
4741
|
+
//#endregion
|
|
2657
4742
|
//#region src/operation/metadata/get-import.d.ts
|
|
2658
4743
|
declare function getImport$1(): IOperationMetadata<IGetImportOperationData>;
|
|
2659
4744
|
//#endregion
|
|
2660
4745
|
//#region src/operation/metadata/get-query-params.d.ts
|
|
2661
4746
|
declare function getQueryParams$1(): IOperationMetadata<IGetQueryParamsOperationData>;
|
|
2662
4747
|
//#endregion
|
|
4748
|
+
//#region src/operation/metadata/get-scroll-position.d.ts
|
|
4749
|
+
declare function getScrollPosition$1(): IOperationMetadata<IGetScrollPositionOperationData>;
|
|
4750
|
+
//#endregion
|
|
4751
|
+
//#region src/operation/metadata/get-text-content.d.ts
|
|
4752
|
+
declare function getTextContent$1(): IOperationMetadata<IGetTextContentOperationData>;
|
|
4753
|
+
//#endregion
|
|
4754
|
+
//#region src/operation/metadata/http-delete.d.ts
|
|
4755
|
+
declare function httpDelete$1(): IOperationMetadata<IHttpDeleteOperationData>;
|
|
4756
|
+
//#endregion
|
|
4757
|
+
//#region src/operation/metadata/http-post.d.ts
|
|
4758
|
+
declare function httpPost$1(): IOperationMetadata<IHttpPostOperationData>;
|
|
4759
|
+
//#endregion
|
|
4760
|
+
//#region src/operation/metadata/http-put.d.ts
|
|
4761
|
+
declare function httpPut$1(): IOperationMetadata<IHttpPutOperationData>;
|
|
4762
|
+
//#endregion
|
|
2663
4763
|
//#region src/operation/metadata/invoke-object-method.d.ts
|
|
2664
4764
|
declare function invokeObjectMethod$1(): IOperationMetadata<IInvokeObjectMethodOperationData>;
|
|
2665
4765
|
//#endregion
|
|
4766
|
+
//#region src/operation/metadata/is-element-in-viewport.d.ts
|
|
4767
|
+
declare function isElementInViewport$1(): IOperationMetadata<IIsElementInViewportOperationData>;
|
|
4768
|
+
//#endregion
|
|
4769
|
+
//#region src/operation/metadata/load-from-storage.d.ts
|
|
4770
|
+
declare function loadFromStorage$1(): IOperationMetadata<ILoadFromStorageOperationData>;
|
|
4771
|
+
//#endregion
|
|
2666
4772
|
//#region src/operation/metadata/load-json.d.ts
|
|
2667
4773
|
declare function loadJson$1(): IOperationMetadata<ILoadJSONOperationData>;
|
|
2668
4774
|
//#endregion
|
|
2669
4775
|
//#region src/operation/metadata/log.d.ts
|
|
2670
4776
|
declare function log$1(): IOperationMetadata<ILogOperationData>;
|
|
2671
4777
|
//#endregion
|
|
4778
|
+
//#region src/operation/metadata/map-array.d.ts
|
|
4779
|
+
declare function mapArray$1(): IOperationMetadata<IMapArrayOperationData>;
|
|
4780
|
+
//#endregion
|
|
2672
4781
|
//#region src/operation/metadata/math.d.ts
|
|
2673
4782
|
declare function math$1(): IOperationMetadata<IMathOperationData>;
|
|
2674
4783
|
//#endregion
|
|
@@ -2690,8 +4799,23 @@ declare function removePropertiesFromOperationData$1(): IOperationMetadata<IRemo
|
|
|
2690
4799
|
//#region src/operation/metadata/reparent-element.d.ts
|
|
2691
4800
|
declare function reparentElement$1(): IOperationMetadata<IReparentElementOperationData>;
|
|
2692
4801
|
//#endregion
|
|
4802
|
+
//#region src/operation/metadata/replace-string.d.ts
|
|
4803
|
+
declare function replaceString$1(): IOperationMetadata<IReplaceStringOperationData>;
|
|
4804
|
+
//#endregion
|
|
4805
|
+
//#region src/operation/metadata/replace-text.d.ts
|
|
4806
|
+
declare function replaceText$1(): IOperationMetadata<IReplaceTextOperationData>;
|
|
4807
|
+
//#endregion
|
|
2693
4808
|
//#region src/operation/metadata/request-action.d.ts
|
|
2694
|
-
declare function requestAction$
|
|
4809
|
+
declare function requestAction$2(): IOperationMetadata<IRequestActionOperationData>;
|
|
4810
|
+
//#endregion
|
|
4811
|
+
//#region src/operation/metadata/save-to-storage.d.ts
|
|
4812
|
+
declare function saveToStorage$1(): IOperationMetadata<ISaveToStorageOperationData>;
|
|
4813
|
+
//#endregion
|
|
4814
|
+
//#region src/operation/metadata/scroll-to-element.d.ts
|
|
4815
|
+
declare function scrollToElement$1(): IOperationMetadata<IScrollToElementOperationData>;
|
|
4816
|
+
//#endregion
|
|
4817
|
+
//#region src/operation/metadata/scroll-to-position.d.ts
|
|
4818
|
+
declare function scrollToPosition$1(): IOperationMetadata<IScrollToPositionOperationData>;
|
|
2695
4819
|
//#endregion
|
|
2696
4820
|
//#region src/operation/metadata/select-element.d.ts
|
|
2697
4821
|
declare function selectElement$1(): IOperationMetadata<ISelectElementOperationData>;
|
|
@@ -2705,6 +4829,12 @@ declare function setElementAttributes$1(): IOperationMetadata<ISetElementAttribu
|
|
|
2705
4829
|
//#region src/operation/metadata/set-element-content.d.ts
|
|
2706
4830
|
declare function setElementContent$1(): IOperationMetadata<ISetElementContentOperationData>;
|
|
2707
4831
|
//#endregion
|
|
4832
|
+
//#region src/operation/metadata/set-focus.d.ts
|
|
4833
|
+
declare function setFocus$1(): IOperationMetadata<ISetFocusOperationData>;
|
|
4834
|
+
//#endregion
|
|
4835
|
+
//#region src/operation/metadata/set-form-value.d.ts
|
|
4836
|
+
declare function setFormValue$1(): IOperationMetadata<ISetFormValueOperationData>;
|
|
4837
|
+
//#endregion
|
|
2708
4838
|
//#region src/operation/metadata/set-global-data.d.ts
|
|
2709
4839
|
declare function setGlobalData$1(): IOperationMetadata<ISetGlobalDataOperationData>;
|
|
2710
4840
|
//#endregion
|
|
@@ -2717,106 +4847,37 @@ declare function setStyle$1(): IOperationMetadata<ISetStyleOperationData>;
|
|
|
2717
4847
|
//#region src/operation/metadata/set-variable.d.ts
|
|
2718
4848
|
declare function setVariable$1(): IOperationMetadata<ISetVariableOperationData>;
|
|
2719
4849
|
//#endregion
|
|
4850
|
+
//#region src/operation/metadata/sort-array.d.ts
|
|
4851
|
+
declare function sortArray$1(): IOperationMetadata<ISortArrayOperationData>;
|
|
4852
|
+
//#endregion
|
|
4853
|
+
//#region src/operation/metadata/split-string.d.ts
|
|
4854
|
+
declare function splitString$1(): IOperationMetadata<ISplitStringOperationData>;
|
|
4855
|
+
//#endregion
|
|
2720
4856
|
//#region src/operation/metadata/start-action.d.ts
|
|
2721
4857
|
declare function startAction$1(): IOperationMetadata<IStartActionOperationData>;
|
|
2722
4858
|
//#endregion
|
|
4859
|
+
//#region src/operation/metadata/substring-text.d.ts
|
|
4860
|
+
declare function substringText$1(): IOperationMetadata<ISubstringTextOperationData>;
|
|
4861
|
+
//#endregion
|
|
2723
4862
|
//#region src/operation/metadata/toggle-class.d.ts
|
|
2724
4863
|
declare function toggleClass$1(): IOperationMetadata<IToggleClassOperationData>;
|
|
2725
4864
|
//#endregion
|
|
2726
4865
|
//#region src/operation/metadata/toggle-element.d.ts
|
|
2727
4866
|
declare function toggleElement$1(): IOperationMetadata<IToggleElementOperationData>;
|
|
2728
4867
|
//#endregion
|
|
4868
|
+
//#region src/operation/metadata/toggle-form-element.d.ts
|
|
4869
|
+
declare function toggleFormElement$1(): IOperationMetadata<IToggleFormElementOperationData>;
|
|
4870
|
+
//#endregion
|
|
4871
|
+
//#region src/operation/metadata/validate-form.d.ts
|
|
4872
|
+
declare function validateForm$1(): IOperationMetadata<IValidateFormOperationData>;
|
|
4873
|
+
//#endregion
|
|
2729
4874
|
//#region src/operation/metadata/wait.d.ts
|
|
2730
4875
|
declare function wait$1(): IOperationMetadata<IWaitOperationData>;
|
|
2731
4876
|
//#endregion
|
|
2732
4877
|
//#region src/operation/metadata/when.d.ts
|
|
2733
4878
|
declare function when$1(): IOperationMetadata<IWhenOperationData>;
|
|
2734
|
-
declare namespace index_d_exports {
|
|
2735
|
-
export { IOperationMetadata, TArrayProperyMetadata, TComplexPropertyMetadata, TConstantParametersTypes, THasDescription, THasErased, THasRequired, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, addClass$1 as addClass, addControllerToElement$1 as addControllerToElement, addGlobalsToOperation$1 as addGlobalsToOperation, animate$1 as animate, animateWithClass$1 as animateWithClass, breakForEach$1 as breakForEach, broadcastEvent$1 as broadcastEvent, calc$1 as calc, clearElement$1 as clearElement, clearOperationData$1 as clearOperationData, continueForEach$1 as continueForEach, createElement$1 as createElement, customFunction$1 as customFunction, endAction$1 as endAction, endForEach$1 as endForEach, endWhen$1 as endWhen, extendController$1 as extendController, forEach$1 as forEach, getAttributesFromElement$1 as getAttributesFromElement, getControllerFromElement$1 as getControllerFromElement, getControllerInstance$1 as getControllerInstance, getElementDimensions$1 as getElementDimensions, getImport$1 as getImport, getQueryParams$1 as getQueryParams, invokeObjectMethod$1 as invokeObjectMethod, loadJson$1 as loadJson, log$1 as log, math$1 as math, otherwise$1 as otherwise, removeClass$1 as removeClass, removeControllerFromElement$1 as removeControllerFromElement, removeElement$1 as removeElement, removePropertiesFromOperationData$1 as removePropertiesFromOperationData, reparentElement$1 as reparentElement,
|
|
2736
|
-
}
|
|
2737
|
-
//#endregion
|
|
2738
|
-
//#region src/timeline-event-names.d.ts
|
|
2739
|
-
type TimelineEventName = keyof typeof TimelineEventNames;
|
|
2740
|
-
/**
|
|
2741
|
-
* These are the event names that are being broadcast and/or handled by Eligius.
|
|
2742
|
-
*/
|
|
2743
|
-
declare class TimelineEventNames {
|
|
2744
|
-
/**
|
|
2745
|
-
* Broadcasting this event will start the current timeline when it is currently paused, or pauses when it is playing.
|
|
2746
|
-
*/
|
|
2747
|
-
static PLAY_TOGGLE_REQUEST: string;
|
|
2748
|
-
/**
|
|
2749
|
-
* Broadcasting this event will start the current timeline.
|
|
2750
|
-
*/
|
|
2751
|
-
static PLAY_REQUEST: string;
|
|
2752
|
-
/**
|
|
2753
|
-
* Broadcasting this event will stop the current timeline.
|
|
2754
|
-
*/
|
|
2755
|
-
static STOP_REQUEST: string;
|
|
2756
|
-
/**
|
|
2757
|
-
* Broadcasting this event will pause the current timeline.
|
|
2758
|
-
*/
|
|
2759
|
-
static PAUSE_REQUEST: string;
|
|
2760
|
-
/**
|
|
2761
|
-
* Broadcasting this event will seek the specified position in the current timeline.
|
|
2762
|
-
* This event takes one argument: A numeric value that represents the new position.
|
|
2763
|
-
*/
|
|
2764
|
-
static SEEK_REQUEST: string;
|
|
2765
|
-
/**
|
|
2766
|
-
* Broadcasting this event will tell the current {@link ITimelineProvider} to resize.
|
|
2767
|
-
*/
|
|
2768
|
-
static RESIZE_REQUEST: string;
|
|
2769
|
-
/**
|
|
2770
|
-
* Broadcasting this event will return the element in which the current timeline is being rendered.
|
|
2771
|
-
* This event takes one argument: The callback function that will return the specified element.
|
|
2772
|
-
*/
|
|
2773
|
-
static CONTAINER_REQUEST: string;
|
|
2774
|
-
/**
|
|
2775
|
-
* Broadcasting this event will return the duration of the current timeline.
|
|
2776
|
-
* This event takes one argument: The callback function that will return the duration.
|
|
2777
|
-
*/
|
|
2778
|
-
static DURATION_REQUEST: string;
|
|
2779
|
-
/**
|
|
2780
|
-
* Broadcasting this event will return the uri of the current timeline.
|
|
2781
|
-
* This event takes one argument: The callback function that will return the uri.
|
|
2782
|
-
*/
|
|
2783
|
-
static REQUEST_CURRENT_TIMELINE: string;
|
|
2784
|
-
/**
|
|
2785
|
-
* This event is broadcast by {@link ITimelineProvider} instances to announce their duration.
|
|
2786
|
-
*/
|
|
2787
|
-
static DURATION: string;
|
|
2788
|
-
/**
|
|
2789
|
-
* This event is broadcast by {@link ITimelineProvider} instances to announce the current play position whenever it changes.
|
|
2790
|
-
*/
|
|
2791
|
-
static TIME: string;
|
|
2792
|
-
/**
|
|
2793
|
-
* This event is broadcast by {@link ITimelineProvider} instances to announce the new play position and duration after a seek was executed.
|
|
2794
|
-
*/
|
|
2795
|
-
static SEEKED: string;
|
|
2796
|
-
/**
|
|
2797
|
-
*
|
|
2798
|
-
*/
|
|
2799
|
-
static COMPLETE: string;
|
|
2800
|
-
static RESTART: string;
|
|
2801
|
-
static PLAY: string;
|
|
2802
|
-
static STOP: string;
|
|
2803
|
-
static PAUSE: string;
|
|
2804
|
-
static SEEK: string;
|
|
2805
|
-
static RESIZE: string;
|
|
2806
|
-
static CURRENT_TIMELINE_CHANGE: string;
|
|
2807
|
-
static FIRST_FRAME: string;
|
|
2808
|
-
static REQUEST_INSTANCE: string;
|
|
2809
|
-
static REQUEST_ACTION: string;
|
|
2810
|
-
static REQUEST_FUNCTION: string;
|
|
2811
|
-
static REQUEST_TIMELINE_URI: string;
|
|
2812
|
-
static BEFORE_REQUEST_TIMELINE_URI: string;
|
|
2813
|
-
static REQUEST_ENGINE_ROOT: string;
|
|
2814
|
-
static REQUEST_CURRENT_TIMELINE_POSITION: string;
|
|
2815
|
-
static REQUEST_TIMELINE_CLEANUP: string;
|
|
2816
|
-
static REQUEST_LABEL_COLLECTION: string;
|
|
2817
|
-
static REQUEST_LABEL_COLLECTIONS: string;
|
|
2818
|
-
static REQUEST_CURRENT_LANGUAGE: string;
|
|
2819
|
-
static LANGUAGE_CHANGE: string;
|
|
4879
|
+
declare namespace index_d_exports$2 {
|
|
4880
|
+
export { IOperationMetadata, TArrayProperyMetadata, TComplexPropertyMetadata, TConstantParametersTypes, THasDescription, THasErased, THasRequired, TOperationCategory, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, addClass$1 as addClass, addControllerToElement$1 as addControllerToElement, addGlobalsToOperation$1 as addGlobalsToOperation, animate$1 as animate, animateWithClass$1 as animateWithClass, announceToScreenReader$1 as announceToScreenReader, breakForEach$1 as breakForEach, broadcastEvent$1 as broadcastEvent, calc$1 as calc, clearElement$1 as clearElement, clearOperationData$1 as clearOperationData, clearStorage$1 as clearStorage, compareDate$1 as compareDate, concatenateStrings$1 as concatenateStrings, continueForEach$1 as continueForEach, createElement$1 as createElement, customFunction$1 as customFunction, endAction$1 as endAction, endForEach$1 as endForEach, endWhen$1 as endWhen, extendController$1 as extendController, filterArray$1 as filterArray, findInArray$1 as findInArray, forEach$1 as forEach, formatDate$1 as formatDate, formatText$1 as formatText, getAttributesFromElement$1 as getAttributesFromElement, getControllerFromElement$1 as getControllerFromElement, getControllerInstance$1 as getControllerInstance, getCurrentTime$1 as getCurrentTime, getElementDimensions$1 as getElementDimensions, getFocusedElement$1 as getFocusedElement, getFormData$1 as getFormData, getImport$1 as getImport, getQueryParams$1 as getQueryParams, getScrollPosition$1 as getScrollPosition, getTextContent$1 as getTextContent, httpDelete$1 as httpDelete, httpPost$1 as httpPost, httpPut$1 as httpPut, invokeObjectMethod$1 as invokeObjectMethod, isElementInViewport$1 as isElementInViewport, loadFromStorage$1 as loadFromStorage, loadJson$1 as loadJson, log$1 as log, mapArray$1 as mapArray, math$1 as math, otherwise$1 as otherwise, removeClass$1 as removeClass, removeControllerFromElement$1 as removeControllerFromElement, removeElement$1 as removeElement, removePropertiesFromOperationData$1 as removePropertiesFromOperationData, reparentElement$1 as reparentElement, replaceString$1 as replaceString, replaceText$1 as replaceText, requestAction$2 as requestAction, saveToStorage$1 as saveToStorage, scrollToElement$1 as scrollToElement, scrollToPosition$1 as scrollToPosition, selectElement$1 as selectElement, setData$1 as setData, setElementAttributes$1 as setElementAttributes, setElementContent$1 as setElementContent, setFocus$1 as setFocus, setFormValue$1 as setFormValue, setGlobalData$1 as setGlobalData, setOperationData$1 as setOperationData, setStyle$1 as setStyle, setVariable$1 as setVariable, sortArray$1 as sortArray, splitString$1 as splitString, startAction$1 as startAction, substringText$1 as substringText, toggleClass$1 as toggleClass, toggleElement$1 as toggleElement, toggleFormElement$1 as toggleFormElement, validateForm$1 as validateForm, wait$1 as wait, when$1 as when };
|
|
2820
4881
|
}
|
|
2821
4882
|
//#endregion
|
|
2822
4883
|
//#region src/configuration/api/name-providers.d.ts
|
|
@@ -2850,7 +4911,7 @@ declare class OperationMetadataProvider {
|
|
|
2850
4911
|
*
|
|
2851
4912
|
*/
|
|
2852
4913
|
declare class TimeLineEventNamesProvider {
|
|
2853
|
-
getEventNames():
|
|
4914
|
+
getEventNames(): EventName[];
|
|
2854
4915
|
}
|
|
2855
4916
|
//#endregion
|
|
2856
4917
|
//#region src/configuration/api/subtitle-converter.d.ts
|
|
@@ -2913,6 +4974,40 @@ declare class ConfigurationResolver implements IConfigurationResolver {
|
|
|
2913
4974
|
process(configuration: IEngineConfiguration, actionRegistryListener?: ActionRegistryEventbusListener): [Record<string, IAction>, IResolvedEngineConfiguration];
|
|
2914
4975
|
}
|
|
2915
4976
|
//#endregion
|
|
4977
|
+
//#region src/controllers/metadata/types.d.ts
|
|
4978
|
+
type IControllerMetadata<T$1> = {
|
|
4979
|
+
description: string;
|
|
4980
|
+
dependentProperties?: (keyof T$1)[];
|
|
4981
|
+
properties?: Partial<Record<keyof T$1, TPropertyMetadata>>;
|
|
4982
|
+
};
|
|
4983
|
+
//#endregion
|
|
4984
|
+
//#region src/controllers/metadata/dom-event-listener-controller.d.ts
|
|
4985
|
+
declare function DOMEventListenerController$1(): IControllerMetadata<IDOMEventListenerControllerOperationData>;
|
|
4986
|
+
//#endregion
|
|
4987
|
+
//#region src/controllers/metadata/label-controller.d.ts
|
|
4988
|
+
declare function LabelController$1(): IControllerMetadata<ILabelControllerMetadata>;
|
|
4989
|
+
//#endregion
|
|
4990
|
+
//#region src/controllers/metadata/lottie-controller.d.ts
|
|
4991
|
+
declare function LottieController$1(): IControllerMetadata<ILottieControllerMetadata>;
|
|
4992
|
+
//#endregion
|
|
4993
|
+
//#region src/controllers/metadata/mutation-observer-controller.d.ts
|
|
4994
|
+
declare function MutationObserverController$1(): IControllerMetadata<IMutationObserverControllerMetadata>;
|
|
4995
|
+
//#endregion
|
|
4996
|
+
//#region src/controllers/metadata/navigation-controller.d.ts
|
|
4997
|
+
declare function NavigationController$1(): IControllerMetadata<INavigationControllerOperationData>;
|
|
4998
|
+
//#endregion
|
|
4999
|
+
//#region src/controllers/metadata/progressbar-controller.d.ts
|
|
5000
|
+
declare function ProgressbarController$1(): IControllerMetadata<IProgressbarControllerOperationData>;
|
|
5001
|
+
//#endregion
|
|
5002
|
+
//#region src/controllers/metadata/routing-controller.d.ts
|
|
5003
|
+
declare function RoutingController$1(): IControllerMetadata<IRoutingControllerOperationData>;
|
|
5004
|
+
//#endregion
|
|
5005
|
+
//#region src/controllers/metadata/subtitles-controller.d.ts
|
|
5006
|
+
declare function SubtitlesController$1(): IControllerMetadata<ISubtitlesControllerOperationData>;
|
|
5007
|
+
declare namespace index_d_exports {
|
|
5008
|
+
export { DOMEventListenerController$1 as DOMEventListenerController, IControllerMetadata, LabelController$1 as LabelController, LottieController$1 as LottieController, MutationObserverController$1 as MutationObserverController, NavigationController$1 as NavigationController, ProgressbarController$1 as ProgressbarController, RoutingController$1 as RoutingController, SubtitlesController$1 as SubtitlesController };
|
|
5009
|
+
}
|
|
5010
|
+
//#endregion
|
|
2916
5011
|
//#region src/diagnostics/types.d.ts
|
|
2917
5012
|
type TDevToolsEventSubscriber = (event: TEventData) => void;
|
|
2918
5013
|
type TPlayControlEventKind = 'play' | 'stop' | 'pause' | 'seek';
|
|
@@ -2951,16 +5046,19 @@ declare class DevToolEventListener implements IEventbusListener {
|
|
|
2951
5046
|
}
|
|
2952
5047
|
//#endregion
|
|
2953
5048
|
//#region src/diagnostics/diagnostics.d.ts
|
|
2954
|
-
declare
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
5049
|
+
declare function send(_name: TDiagnosticType, _data: any): void;
|
|
5050
|
+
declare function setActive(value: boolean): void;
|
|
5051
|
+
declare function isActive(): boolean;
|
|
5052
|
+
declare const Diagnostics: {
|
|
5053
|
+
send: typeof send;
|
|
5054
|
+
active: boolean;
|
|
5055
|
+
};
|
|
2958
5056
|
//#endregion
|
|
2959
5057
|
//#region src/language-manager.d.ts
|
|
2960
5058
|
/**
|
|
2961
5059
|
* This class manages the labels for an {@link IEligiusEngine} instance.
|
|
2962
5060
|
*
|
|
2963
|
-
* It handles the
|
|
5061
|
+
* It handles the request-label-collection, request-label-collections, request-current-language and language-change events.
|
|
2964
5062
|
*
|
|
2965
5063
|
*/
|
|
2966
5064
|
declare class LanguageManager {
|
|
@@ -3102,6 +5200,138 @@ declare class EngineFactory implements IEngineFactory {
|
|
|
3102
5200
|
private _createTimelineProviders;
|
|
3103
5201
|
}
|
|
3104
5202
|
//#endregion
|
|
5203
|
+
//#region src/eventbus/events/metadata/before-request-timeline-uri.d.ts
|
|
5204
|
+
declare function beforeRequestTimelineUri(): IEventMetadata<BeforeRequestTimelineUriEvent['args']>;
|
|
5205
|
+
//#endregion
|
|
5206
|
+
//#region src/eventbus/events/metadata/before-request-video-url.d.ts
|
|
5207
|
+
declare function beforeRequestVideoUrl(): IEventMetadata<BeforeRequestVideoUrlEvent['args']>;
|
|
5208
|
+
//#endregion
|
|
5209
|
+
//#region src/eventbus/events/metadata/dom-mutation.d.ts
|
|
5210
|
+
declare function domMutation(): IEventMetadata<DomMutationEvent['args']>;
|
|
5211
|
+
//#endregion
|
|
5212
|
+
//#region src/eventbus/events/metadata/highlight-navigation.d.ts
|
|
5213
|
+
declare function highlightNavigation(): IEventMetadata<HighlightNavigationEvent['args']>;
|
|
5214
|
+
//#endregion
|
|
5215
|
+
//#region src/eventbus/events/metadata/language-change.d.ts
|
|
5216
|
+
declare function languageChange(): IEventMetadata<LanguageChangeEvent['args']>;
|
|
5217
|
+
//#endregion
|
|
5218
|
+
//#region src/eventbus/events/metadata/navigate-to-video-url.d.ts
|
|
5219
|
+
declare function navigateToVideoUrl(): IEventMetadata<NavigateToVideoUrlEvent['args']>;
|
|
5220
|
+
//#endregion
|
|
5221
|
+
//#region src/eventbus/events/metadata/push-history-state.d.ts
|
|
5222
|
+
declare function pushHistoryState(): IEventMetadata<PushHistoryStateEvent['args']>;
|
|
5223
|
+
//#endregion
|
|
5224
|
+
//#region src/eventbus/events/metadata/request-action.d.ts
|
|
5225
|
+
declare function requestAction$1(): IEventMetadata<RequestActionEvent['args']>;
|
|
5226
|
+
//#endregion
|
|
5227
|
+
//#region src/eventbus/events/metadata/request-current-language.d.ts
|
|
5228
|
+
declare function requestCurrentLanguage(): IEventMetadata<RequestCurrentLanguageEvent['args']>;
|
|
5229
|
+
//#endregion
|
|
5230
|
+
//#region src/eventbus/events/metadata/request-current-navigation.d.ts
|
|
5231
|
+
declare function requestCurrentNavigation(): IEventMetadata<RequestCurrentNavigationEvent['args']>;
|
|
5232
|
+
//#endregion
|
|
5233
|
+
//#region src/eventbus/events/metadata/request-current-timeline-position.d.ts
|
|
5234
|
+
declare function requestCurrentTimelinePosition(): IEventMetadata<RequestCurrentTimelinePositionEvent['args']>;
|
|
5235
|
+
//#endregion
|
|
5236
|
+
//#region src/eventbus/events/metadata/request-current-video-position.d.ts
|
|
5237
|
+
declare function requestCurrentVideoPosition(): IEventMetadata<RequestCurrentVideoPositionEvent['args']>;
|
|
5238
|
+
//#endregion
|
|
5239
|
+
//#region src/eventbus/events/metadata/request-engine-root.d.ts
|
|
5240
|
+
declare function requestEngineRoot(): IEventMetadata<RequestEngineRootEvent['args']>;
|
|
5241
|
+
//#endregion
|
|
5242
|
+
//#region src/eventbus/events/metadata/request-function.d.ts
|
|
5243
|
+
declare function requestFunction(): IEventMetadata<RequestFunctionEvent['args']>;
|
|
5244
|
+
//#endregion
|
|
5245
|
+
//#region src/eventbus/events/metadata/request-instance.d.ts
|
|
5246
|
+
declare function requestInstance(): IEventMetadata<RequestInstanceEvent['args']>;
|
|
5247
|
+
//#endregion
|
|
5248
|
+
//#region src/eventbus/events/metadata/request-label-collection.d.ts
|
|
5249
|
+
declare function requestLabelCollection(): IEventMetadata<RequestLabelCollectionEvent['args']>;
|
|
5250
|
+
//#endregion
|
|
5251
|
+
//#region src/eventbus/events/metadata/request-label-collections.d.ts
|
|
5252
|
+
declare function requestLabelCollections(): IEventMetadata<RequestLabelCollectionsEvent['args']>;
|
|
5253
|
+
//#endregion
|
|
5254
|
+
//#region src/eventbus/events/metadata/request-timeline-cleanup.d.ts
|
|
5255
|
+
declare function requestTimelineCleanup(): IEventMetadata<RequestTimelineCleanupEvent['args']>;
|
|
5256
|
+
//#endregion
|
|
5257
|
+
//#region src/eventbus/events/metadata/request-timeline-uri.d.ts
|
|
5258
|
+
declare function requestTimelineUri(): IEventMetadata<RequestTimelineUriEvent['args']>;
|
|
5259
|
+
//#endregion
|
|
5260
|
+
//#region src/eventbus/events/metadata/request-video-cleanup.d.ts
|
|
5261
|
+
declare function requestVideoCleanup(): IEventMetadata<RequestVideoCleanupEvent['args']>;
|
|
5262
|
+
//#endregion
|
|
5263
|
+
//#region src/eventbus/events/metadata/request-video-url.d.ts
|
|
5264
|
+
declare function requestVideoUrl(): IEventMetadata<RequestVideoUrlEvent['args']>;
|
|
5265
|
+
//#endregion
|
|
5266
|
+
//#region src/eventbus/events/metadata/timeline-complete.d.ts
|
|
5267
|
+
declare function timelineComplete(): IEventMetadata<CompleteEvent['args']>;
|
|
5268
|
+
//#endregion
|
|
5269
|
+
//#region src/eventbus/events/metadata/timeline-container-request.d.ts
|
|
5270
|
+
declare function timelineContainerRequest(): IEventMetadata<ContainerRequestEvent['args']>;
|
|
5271
|
+
//#endregion
|
|
5272
|
+
//#region src/eventbus/events/metadata/timeline-current-timeline-change.d.ts
|
|
5273
|
+
declare function timelineCurrentTimelineChange(): IEventMetadata<CurrentTimelineChangeEvent['args']>;
|
|
5274
|
+
//#endregion
|
|
5275
|
+
//#region src/eventbus/events/metadata/timeline-duration-request.d.ts
|
|
5276
|
+
declare function timelineDurationRequest(): IEventMetadata<DurationRequestEvent['args']>;
|
|
5277
|
+
//#endregion
|
|
5278
|
+
//#region src/eventbus/events/metadata/timeline-duration.d.ts
|
|
5279
|
+
declare function timelineDuration(): IEventMetadata<DurationEvent['args']>;
|
|
5280
|
+
//#endregion
|
|
5281
|
+
//#region src/eventbus/events/metadata/timeline-firstframe.d.ts
|
|
5282
|
+
declare function timelineFirstframe(): IEventMetadata<FirstFrameEvent['args']>;
|
|
5283
|
+
//#endregion
|
|
5284
|
+
//#region src/eventbus/events/metadata/timeline-pause-request.d.ts
|
|
5285
|
+
declare function timelinePauseRequest(): IEventMetadata<PauseRequestEvent['args']>;
|
|
5286
|
+
//#endregion
|
|
5287
|
+
//#region src/eventbus/events/metadata/timeline-pause.d.ts
|
|
5288
|
+
declare function timelinePause(): IEventMetadata<PauseEvent['args']>;
|
|
5289
|
+
//#endregion
|
|
5290
|
+
//#region src/eventbus/events/metadata/timeline-play-request.d.ts
|
|
5291
|
+
declare function timelinePlayRequest(): IEventMetadata<PlayRequestEvent['args']>;
|
|
5292
|
+
//#endregion
|
|
5293
|
+
//#region src/eventbus/events/metadata/timeline-play-toggle-request.d.ts
|
|
5294
|
+
declare function timelinePlayToggleRequest(): IEventMetadata<PlayToggleRequestEvent['args']>;
|
|
5295
|
+
//#endregion
|
|
5296
|
+
//#region src/eventbus/events/metadata/timeline-play.d.ts
|
|
5297
|
+
declare function timelinePlay(): IEventMetadata<PlayEvent['args']>;
|
|
5298
|
+
//#endregion
|
|
5299
|
+
//#region src/eventbus/events/metadata/timeline-request-current-timeline.d.ts
|
|
5300
|
+
declare function timelineRequestCurrentTimeline(): IEventMetadata<RequestCurrentTimelineEvent['args']>;
|
|
5301
|
+
//#endregion
|
|
5302
|
+
//#region src/eventbus/events/metadata/timeline-resize-request.d.ts
|
|
5303
|
+
declare function timelineResizeRequest(): IEventMetadata<ResizeRequestEvent['args']>;
|
|
5304
|
+
//#endregion
|
|
5305
|
+
//#region src/eventbus/events/metadata/timeline-resize.d.ts
|
|
5306
|
+
declare function timelineResize(): IEventMetadata<ResizeEvent['args']>;
|
|
5307
|
+
//#endregion
|
|
5308
|
+
//#region src/eventbus/events/metadata/timeline-restart.d.ts
|
|
5309
|
+
declare function timelineRestart(): IEventMetadata<RestartEvent['args']>;
|
|
5310
|
+
//#endregion
|
|
5311
|
+
//#region src/eventbus/events/metadata/timeline-seek-request.d.ts
|
|
5312
|
+
declare function timelineSeekRequest(): IEventMetadata<SeekRequestEvent['args']>;
|
|
5313
|
+
//#endregion
|
|
5314
|
+
//#region src/eventbus/events/metadata/timeline-seek.d.ts
|
|
5315
|
+
declare function timelineSeek(): IEventMetadata<SeekEvent['args']>;
|
|
5316
|
+
//#endregion
|
|
5317
|
+
//#region src/eventbus/events/metadata/timeline-seeked.d.ts
|
|
5318
|
+
declare function timelineSeeked(): IEventMetadata<SeekedEvent['args']>;
|
|
5319
|
+
//#endregion
|
|
5320
|
+
//#region src/eventbus/events/metadata/timeline-stop-request.d.ts
|
|
5321
|
+
declare function timelineStopRequest(): IEventMetadata<StopRequestEvent['args']>;
|
|
5322
|
+
//#endregion
|
|
5323
|
+
//#region src/eventbus/events/metadata/timeline-stop.d.ts
|
|
5324
|
+
declare function timelineStop(): IEventMetadata<StopEvent['args']>;
|
|
5325
|
+
//#endregion
|
|
5326
|
+
//#region src/eventbus/events/metadata/timeline-time.d.ts
|
|
5327
|
+
declare function timelineTime(): IEventMetadata<TimeEvent['args']>;
|
|
5328
|
+
//#endregion
|
|
5329
|
+
//#region src/eventbus/events/metadata/video-complete.d.ts
|
|
5330
|
+
declare function videoComplete(): IEventMetadata<VideoCompleteEvent['args']>;
|
|
5331
|
+
declare namespace index_d_exports$1 {
|
|
5332
|
+
export { IEventMetadata, beforeRequestTimelineUri, beforeRequestVideoUrl, domMutation, highlightNavigation, languageChange, navigateToVideoUrl, pushHistoryState, requestAction$1 as requestAction, requestCurrentLanguage, requestCurrentNavigation, requestCurrentTimelinePosition, requestCurrentVideoPosition, requestEngineRoot, requestFunction, requestInstance, requestLabelCollection, requestLabelCollections, requestTimelineCleanup, requestTimelineUri, requestVideoCleanup, requestVideoUrl, timelineComplete, timelineContainerRequest, timelineCurrentTimelineChange, timelineDuration, timelineDurationRequest, timelineFirstframe, timelinePause, timelinePauseRequest, timelinePlay, timelinePlayRequest, timelinePlayToggleRequest, timelineRequestCurrentTimeline, timelineResize, timelineResizeRequest, timelineRestart, timelineSeek, timelineSeekRequest, timelineSeeked, timelineStop, timelineStopRequest, timelineTime, videoComplete };
|
|
5333
|
+
}
|
|
5334
|
+
//#endregion
|
|
3105
5335
|
//#region src/importer/eligius-resource-importer.d.ts
|
|
3106
5336
|
declare class EligiusResourceImporter implements IResourceImporter {
|
|
3107
5337
|
engines: Map<any, any>;
|
|
@@ -3188,5 +5418,5 @@ declare class VideoJsTimelineProvider implements ITimelineProvider {
|
|
|
3188
5418
|
_extractFileType(url: string): string;
|
|
3189
5419
|
}
|
|
3190
5420
|
//#endregion
|
|
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,
|
|
3192
|
-
//# sourceMappingURL=index.d.
|
|
5421
|
+
export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, AllEvents, BeforeRequestTimelineUriEvent, CompleteEvent, ConfigurationFactory, ConfigurationResolver, ContainerRequestEvent, ControllerNamesProvider, Controllers, CurrentTimelineChangeEvent, DEV_TOOLS_KEY, DOMEventListenerController, DevToolEventListener, Diagnostics, DomMutationEvent, DurationEvent, DurationRequestEvent, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, type EventMap, type EventName, Eventbus, ExtractOperationData, ExtractOperationDataType, ExtractReturnedOperationData, FirstFrameEvent, GetControllerByName, GetOperationByName, IAction, IActionConfiguration, type IAddClassOperationData, type IAddControllerToElementOperationData, type IAnimateOperationData, type IAnimateWithClassOperationData, type IAnnounceToScreenReaderOperationData, type IBroadcastEventOperationData, type ICalcOperationData, type IClearElementOperationData, type IClearOperationDataOperationData, type IClearStorageOperationData, type ICompareDateOperationData, type IConcatenateStringsOperationData, IConfigurationResolver, IController, type ICreateElementOperationData, type ICustomFunctionOperationData, type IDOMEventListenerControllerOperationData, IDiagnosticsAgent, IDiagnosticsInfo, IDimensions, IDuration, IEligiusEngine, type IEndActionOperationData, IEndableAction, IEndableActionConfiguration, IEngineConfiguration, IEngineFactory, IEngineFactoryOptions, IEngineInfo, IEventActionConfiguration, IEventMetadata, IEventbus, IEventbusInterceptor, IEventbusListener, type IExtendControllerOperationData, type IFilterArrayOperationData, type IFindInArrayOperationData, type IForEachOperationData, type IFormatDateOperationData, type IFormatTextOperationData, type IGetAttributesFromElementOperationData, type IGetControllerFromElementOperationData, type IGetControllerInstanceOperationData, type IGetCurrentTimeOperationData, type IGetElementDimensionsOperationData, type IGetFocusedElementOperationData, type IGetFormDataOperationData, type IGetImportOperationData, type IGetQueryParamsOperationData, type IGetScrollPositionOperationData, type IGetTextContentOperationData, type IHttpDeleteOperationData, type IHttpPostOperationData, type IHttpPutOperationData, type IInvokeObjectMethodOperationData, type IIsElementInViewportOperationData, ILabel, type ILabelControllerMetadata, ILanguageLabel, type ILoadFromStorageOperationData, type ILoadJSONOperationData, type ILogOperationData, type ILottieControllerMetadata, type IMapArrayOperationData, type IMathOperationData, type IMutationEventPayload, type IMutationObserverControllerMetadata, type INavigationControllerOperationData, IOperationConfiguration, IOperationScope, IPlayControlEvent, type IProgressbarControllerOperationData, type IRemoveClassOperationData, type IRemoveControllerFromElementOperationData, type IRemoveElementOperationData, type IRemovePropertiesFromOperationDataOperationData, type IReparentElementOperationData, type IReplaceStringOperationData, type IReplaceTextOperationData, type IRequestActionOperationData, IResolvedActionConfiguration, IResolvedEndableActionConfiguration, IResolvedEngineConfiguration, IResolvedOperation, IResolvedTimelineConfiguration, IResourceImporter, type IRoutingControllerOperationData, type ISaveToStorageOperationData, type IScrollToElementOperationData, type IScrollToPositionOperationData, type ISelectElementOperationData, type ISetDataOperationData, type ISetElementAttributesOperationData, type ISetElementContentOperationData, type ISetFocusOperationData, type ISetFormValueOperationData, type ISetGlobalDataOperationData, type ISetOperationData, type ISetStyleOperationData, type ISetVariableOperationData, ISimpleResourceImporter, type ISortArrayOperationData, type ISplitStringOperationData, type IStartActionOperationData, IStrictDuration, type ISubstringTextOperationData, ISubtitle, ISubtitleCollection, type ISubtitlesControllerOperationData, ITimelineAction, ITimelineActionConfiguration, ITimelineConfiguration, ITimelineFlow, ITimelineProvider, ITimelineProviderInfo, ITimelineProviderSettings, type IToggleClassOperationData, type IToggleElementOperationData, type IToggleFormElementOperationData, type IValidateFormOperationData, type IWaitOperationData, type IWhenOperationData, KeysOfType, LabelController, LanguageChangeEvent, LanguageManager, LottieController, MutationObserverController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, Operations, PauseEvent, PauseRequestEvent, PlayEvent, PlayRequestEvent, PlayToggleRequestEvent, ProgressbarController, RequestActionEvent, RequestAnimationFrameTimelineProvider, RequestCurrentLanguageEvent, RequestCurrentTimelineEvent, RequestCurrentTimelinePositionEvent, RequestEngineRootEvent, RequestFunctionEvent, RequestInstanceEvent, RequestLabelCollectionEvent, RequestLabelCollectionsEvent, RequestTimelineCleanupEvent, RequestTimelineUriEvent, RequestVideoUriInterceptor, RequireKeys, ResizeEvent, ResizeRequestEvent, RestartEvent, RoutingController, SeekEvent, SeekRequestEvent, SeekedEvent, StopEvent, StopRequestEvent, type StorageType, SubtitleEditor, SubtitleImporter, SubtitlesController, TControllerName, TControllerType, TDevToolsEventSubscriber, TDevToolsMessage, TDiagnosticType, TDiagnosticsMessageSource, TEngineConfigurationLists, TEventData, TEventHandler, TEventbusRemover, TLanguageCode, TOperation, TOperationData, TOperationName, TOperationResult, TOperationType, TPlayControlEventKind, TPlayState, TResultCallback, TTimelineProviderSettings, TWindowWithDevtools, TimeEvent, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, TimelineTypes, VideoJsTimelineProvider, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, announceToScreenReader, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, clearStorage, compareDate, concatenateStrings, continueForEach, createElement, index_d_exports as ctrlmetadata, customFunction, endAction, endForEach, endWhen, index_d_exports$1 as eventmetadata, extendController, filterArray, findInArray, forEach, formatDate, formatText, generateImporterSourceCode, getAttributesFromElement, getControllerFromElement, getControllerInstance, getCurrentTime, getElementDimensions, getFocusedElement, getFormData, getImport, getQueryParams, getScrollPosition, getTextContent, httpDelete, httpPost, httpPut, invokeObjectMethod, isActive, isElementInViewport, loadFromStorage, loadJson, log, mapArray, math, index_d_exports$2 as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, replaceString, replaceText, requestAction, saveToStorage, scrollToElement, scrollToPosition, selectElement, send, setActive, setData, setElementAttributes, setElementContent, setFocus, setFormValue, setGlobalData, setOperationData, setStyle, setVariable, sortArray, splitString, startAction, substringText, toggleClass, toggleElement, toggleFormElement, validateForm, wait, when };
|
|
5422
|
+
//# sourceMappingURL=index.d.mts.map
|