eligius 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +452 -227
- package/dist/index.mjs +356 -283
- package/dist/index.mjs.map +1 -1
- package/jsonschema/eligius-configuration.json +698 -125
- package/jsonschema/operations/add-class.json +20 -23
- package/jsonschema/operations/add-controller-to-element.json +13 -12
- package/jsonschema/operations/animate-with-class.json +21 -25
- package/jsonschema/operations/animate.json +23 -31
- package/jsonschema/operations/announce-to-screen-reader.json +20 -24
- package/jsonschema/operations/broadcast-event.json +19 -31
- package/jsonschema/operations/calc.json +24 -30
- package/jsonschema/operations/clear-element.json +24 -13
- package/jsonschema/operations/clear-operation-data.json +15 -18
- package/jsonschema/operations/compare-date.json +51 -23
- package/jsonschema/operations/concatenate-strings.json +22 -24
- package/jsonschema/operations/create-element.json +11 -144
- package/jsonschema/operations/custom-function.json +15 -22
- package/jsonschema/operations/end-action.json +19 -22
- package/jsonschema/operations/extend-controller.json +19 -22
- package/jsonschema/operations/filter-array.json +40 -26
- package/jsonschema/operations/find-in-array.json +40 -26
- package/jsonschema/operations/for-each.json +23 -22
- package/jsonschema/operations/format-date.json +33 -22
- package/jsonschema/operations/format-text.json +22 -20
- package/jsonschema/operations/get-attributes-from-element.json +28 -22
- package/jsonschema/operations/get-controller-from-element.json +23 -34
- package/jsonschema/operations/get-controller-instance.json +11 -25
- package/jsonschema/operations/get-current-time.json +23 -13
- package/jsonschema/operations/get-element-dimensions.json +30 -20
- package/jsonschema/operations/get-focused-element.json +20 -13
- package/jsonschema/operations/get-form-data.json +27 -13
- package/jsonschema/operations/get-import.json +17 -23
- package/jsonschema/operations/get-query-params.json +17 -18
- package/jsonschema/operations/get-scroll-position.json +23 -13
- package/jsonschema/operations/get-text-content.json +27 -13
- package/jsonschema/operations/http-delete.json +20 -24
- package/jsonschema/operations/http-post.json +21 -30
- package/jsonschema/operations/http-put.json +21 -30
- package/jsonschema/operations/invoke-object-method.json +26 -24
- package/jsonschema/operations/is-element-in-viewport.json +27 -13
- package/jsonschema/operations/load-from-storage.json +19 -26
- package/jsonschema/operations/load-json.json +21 -24
- package/jsonschema/operations/log.json +13 -26
- package/jsonschema/operations/map-array.json +39 -22
- package/jsonschema/operations/math.json +33 -27
- package/jsonschema/operations/remove-class.json +20 -23
- package/jsonschema/operations/remove-controller-from-element.json +20 -34
- package/jsonschema/operations/remove-element.json +24 -13
- package/jsonschema/operations/remove-properties-from-operation-data.json +18 -22
- package/jsonschema/operations/reparent-element.json +20 -22
- package/jsonschema/operations/replace-string.json +32 -25
- package/jsonschema/operations/replace-text.json +32 -25
- package/jsonschema/operations/request-action.json +18 -22
- package/jsonschema/operations/save-to-storage.json +19 -32
- package/jsonschema/operations/scroll-to-element.json +21 -22
- package/jsonschema/operations/scroll-to-position.json +18 -29
- package/jsonschema/operations/select-element.json +19 -24
- package/jsonschema/operations/set-data.json +15 -22
- package/jsonschema/operations/set-element-attributes.json +20 -22
- package/jsonschema/operations/set-element-content.json +36 -20
- package/jsonschema/operations/set-focus.json +24 -13
- package/jsonschema/operations/set-form-value.json +24 -20
- package/jsonschema/operations/set-global-data.json +18 -22
- package/jsonschema/operations/set-style.json +20 -22
- package/jsonschema/operations/set-variable.json +17 -31
- package/jsonschema/operations/set.json +40 -0
- package/jsonschema/operations/sort-array.json +39 -22
- package/jsonschema/operations/split-string.json +34 -22
- package/jsonschema/operations/start-action.json +19 -20
- package/jsonschema/operations/substring-text.json +23 -24
- package/jsonschema/operations/toggle-class.json +21 -23
- package/jsonschema/operations/toggle-element.json +24 -13
- package/jsonschema/operations/toggle-form-element.json +20 -22
- package/jsonschema/operations/validate-form.json +25 -18
- package/jsonschema/operations/wait.json +16 -22
- package/jsonschema/operations/when.json +15 -22
- package/package.json +4 -2
- package/jsonschema/endable-action-template.json +0 -527
- package/jsonschema/endable-action.json +0 -527
- package/jsonschema/engine-config.json +0 -21
- package/jsonschema/event-action.json +0 -295
- package/jsonschema/mediaplayer-timeline-provider-settings.json +0 -95
- package/jsonschema/operation-templates/add-class.json +0 -40
- package/jsonschema/operation-templates/add-controller-to-element.json +0 -26
- package/jsonschema/operation-templates/add-globals-to-operation.json +0 -39
- package/jsonschema/operation-templates/animate-with-class.json +0 -44
- package/jsonschema/operation-templates/animate.json +0 -51
- package/jsonschema/operation-templates/announce-to-screen-reader.json +0 -43
- package/jsonschema/operation-templates/break-for-each.json +0 -26
- package/jsonschema/operation-templates/broadcast-event.json +0 -51
- package/jsonschema/operation-templates/calc.json +0 -49
- package/jsonschema/operation-templates/clear-element.json +0 -26
- package/jsonschema/operation-templates/clear-operation-data.json +0 -37
- package/jsonschema/operation-templates/clear-storage.json +0 -41
- package/jsonschema/operation-templates/compare-date.json +0 -41
- package/jsonschema/operation-templates/concatenate-strings.json +0 -43
- package/jsonschema/operation-templates/continue-for-each.json +0 -26
- package/jsonschema/operation-templates/create-element.json +0 -156
- package/jsonschema/operation-templates/custom-function.json +0 -39
- package/jsonschema/operation-templates/end-action.json +0 -39
- package/jsonschema/operation-templates/end-for-each.json +0 -26
- package/jsonschema/operation-templates/end-when.json +0 -26
- package/jsonschema/operation-templates/extend-controller.json +0 -39
- package/jsonschema/operation-templates/filter-array.json +0 -47
- package/jsonschema/operation-templates/find-in-array.json +0 -47
- package/jsonschema/operation-templates/for-each.json +0 -40
- package/jsonschema/operation-templates/format-date.json +0 -39
- package/jsonschema/operation-templates/format-text.json +0 -37
- package/jsonschema/operation-templates/get-attributes-from-element.json +0 -39
- package/jsonschema/operation-templates/get-controller-from-element.json +0 -51
- package/jsonschema/operation-templates/get-controller-instance.json +0 -37
- package/jsonschema/operation-templates/get-current-time.json +0 -26
- package/jsonschema/operation-templates/get-element-dimensions.json +0 -39
- package/jsonschema/operation-templates/get-focused-element.json +0 -26
- package/jsonschema/operation-templates/get-form-data.json +0 -26
- package/jsonschema/operation-templates/get-import.json +0 -39
- package/jsonschema/operation-templates/get-query-params.json +0 -37
- package/jsonschema/operation-templates/get-scroll-position.json +0 -26
- package/jsonschema/operation-templates/get-text-content.json +0 -26
- package/jsonschema/operation-templates/http-delete.json +0 -43
- package/jsonschema/operation-templates/http-post.json +0 -49
- package/jsonschema/operation-templates/http-put.json +0 -49
- package/jsonschema/operation-templates/invoke-object-method.json +0 -43
- package/jsonschema/operation-templates/is-element-in-viewport.json +0 -26
- package/jsonschema/operation-templates/load-from-storage.json +0 -43
- package/jsonschema/operation-templates/load-json.json +0 -43
- package/jsonschema/operation-templates/log.json +0 -47
- package/jsonschema/operation-templates/map-array.json +0 -39
- package/jsonschema/operation-templates/math.json +0 -45
- package/jsonschema/operation-templates/otherwise.json +0 -26
- package/jsonschema/operation-templates/remove-class.json +0 -40
- package/jsonschema/operation-templates/remove-controller-from-element.json +0 -51
- package/jsonschema/operation-templates/remove-element.json +0 -26
- package/jsonschema/operation-templates/remove-properties-from-operation-data.json +0 -39
- package/jsonschema/operation-templates/reparent-element.json +0 -39
- package/jsonschema/operation-templates/replace-string.json +0 -43
- package/jsonschema/operation-templates/replace-text.json +0 -43
- package/jsonschema/operation-templates/request-action.json +0 -39
- package/jsonschema/operation-templates/save-to-storage.json +0 -49
- package/jsonschema/operation-templates/scroll-to-element.json +0 -45
- package/jsonschema/operation-templates/scroll-to-position.json +0 -49
- package/jsonschema/operation-templates/select-element.json +0 -43
- package/jsonschema/operation-templates/set-data.json +0 -39
- package/jsonschema/operation-templates/set-element-attributes.json +0 -39
- package/jsonschema/operation-templates/set-element-content.json +0 -41
- package/jsonschema/operation-templates/set-focus.json +0 -26
- package/jsonschema/operation-templates/set-form-value.json +0 -37
- package/jsonschema/operation-templates/set-global-data.json +0 -39
- package/jsonschema/operation-templates/set-operation-data.json +0 -43
- package/jsonschema/operation-templates/set-style.json +0 -39
- package/jsonschema/operation-templates/set-variable.json +0 -49
- package/jsonschema/operation-templates/sort-array.json +0 -45
- package/jsonschema/operation-templates/split-string.json +0 -41
- package/jsonschema/operation-templates/start-action.json +0 -39
- package/jsonschema/operation-templates/substring-text.json +0 -43
- package/jsonschema/operation-templates/toggle-class.json +0 -40
- package/jsonschema/operation-templates/toggle-element.json +0 -26
- package/jsonschema/operation-templates/toggle-form-element.json +0 -39
- package/jsonschema/operation-templates/validate-form.json +0 -37
- package/jsonschema/operation-templates/wait.json +0 -39
- package/jsonschema/operation-templates/when.json +0 -39
- package/jsonschema/operations/add-globals-to-operation.json +0 -43
- package/jsonschema/operations/break-for-each.json +0 -26
- package/jsonschema/operations/clear-storage.json +0 -45
- package/jsonschema/operations/continue-for-each.json +0 -26
- package/jsonschema/operations/end-for-each.json +0 -26
- package/jsonschema/operations/end-when.json +0 -26
- package/jsonschema/operations/otherwise.json +0 -26
- package/jsonschema/operations/set-operation-data.json +0 -47
- package/jsonschema/raf-timeline-provider-settings.json +0 -141
- package/jsonschema/timeline-action.json +0 -542
- package/jsonschema/timeline-provider-settings.json +0 -19
- package/jsonschema/timeline.json +0 -73
package/dist/index.d.mts
CHANGED
|
@@ -278,6 +278,156 @@ interface IContainerProvider {
|
|
|
278
278
|
onContainerReady(callback: () => void): void;
|
|
279
279
|
}
|
|
280
280
|
//#endregion
|
|
281
|
+
//#region src/locale/types.d.ts
|
|
282
|
+
/**
|
|
283
|
+
* Locale Types
|
|
284
|
+
* Feature: 005-rosetta-locale-manager
|
|
285
|
+
*
|
|
286
|
+
* These types define the public API for the locale management system.
|
|
287
|
+
*/
|
|
288
|
+
/**
|
|
289
|
+
* IETF language tag format (e.g., 'en-US', 'nl-NL')
|
|
290
|
+
*/
|
|
291
|
+
type TLanguageCode = `${Lowercase<string>}-${Uppercase<string>}`;
|
|
292
|
+
/**
|
|
293
|
+
* Recursive interface for nested translation data.
|
|
294
|
+
* Compatible with rosetta's expected format.
|
|
295
|
+
* Uses interface to support recursive definition.
|
|
296
|
+
*/
|
|
297
|
+
interface TLocaleData {
|
|
298
|
+
[key: string]: string | ((params: Record<string, unknown>) => string) | TLocaleData;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Valid values in locale data:
|
|
302
|
+
* - string: Simple translation text (may contain {{interpolation}})
|
|
303
|
+
* - function: Dynamic translation that receives params
|
|
304
|
+
* - nested object: Nested translation keys
|
|
305
|
+
*/
|
|
306
|
+
type TLocaleValue = TLocaleData[keyof TLocaleData];
|
|
307
|
+
/**
|
|
308
|
+
* External locale file reference using JSON Reference syntax.
|
|
309
|
+
* The loader resolves these to TLocaleData at initialization.
|
|
310
|
+
*/
|
|
311
|
+
interface ILocaleReference {
|
|
312
|
+
/** URL or relative path to JSON locale file */
|
|
313
|
+
$ref: string;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Type guard for ILocaleReference
|
|
317
|
+
*/
|
|
318
|
+
declare function isLocaleReference(value: TLocaleData | ILocaleReference): value is ILocaleReference;
|
|
319
|
+
/**
|
|
320
|
+
* A single locale entry can be inline data or an external reference.
|
|
321
|
+
*/
|
|
322
|
+
type TLocaleEntry = TLocaleData | ILocaleReference;
|
|
323
|
+
/**
|
|
324
|
+
* Top-level configuration object for all locales.
|
|
325
|
+
* Keys are language codes, values are inline data or external references.
|
|
326
|
+
*/
|
|
327
|
+
interface ILocalesConfiguration {
|
|
328
|
+
[locale: TLanguageCode]: TLocaleEntry;
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Options for LocaleManager initialization.
|
|
332
|
+
*/
|
|
333
|
+
interface ILocaleManagerOptions {
|
|
334
|
+
/** Default locale to use at startup */
|
|
335
|
+
defaultLocale: TLanguageCode;
|
|
336
|
+
/** Enable debug mode (logs missing translation keys) */
|
|
337
|
+
debug?: boolean;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Events emitted by LocaleManager.
|
|
341
|
+
*/
|
|
342
|
+
type LocaleEvents = {
|
|
343
|
+
/** Emitted when locale changes: [newLocale, previousLocale] */
|
|
344
|
+
change: [locale: TLanguageCode, previousLocale: TLanguageCode];
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Main LocaleManager interface.
|
|
348
|
+
* Wraps rosetta with type safety and event emission.
|
|
349
|
+
*/
|
|
350
|
+
interface ILocaleManager {
|
|
351
|
+
/** Current active locale */
|
|
352
|
+
readonly locale: TLanguageCode;
|
|
353
|
+
/** List of all loaded locale codes */
|
|
354
|
+
readonly availableLocales: ReadonlyArray<TLanguageCode>;
|
|
355
|
+
/**
|
|
356
|
+
* Get translated string for key.
|
|
357
|
+
*
|
|
358
|
+
* @param key - Dot-notation key (e.g., 'nav.home') or array (['nav', 'home'])
|
|
359
|
+
* @param params - Optional interpolation parameters
|
|
360
|
+
* @param locale - Optional locale override (defaults to current locale)
|
|
361
|
+
* @returns Translated string, or empty string if key not found
|
|
362
|
+
*/
|
|
363
|
+
t(key: string | string[], params?: Record<string, unknown>, locale?: TLanguageCode): string;
|
|
364
|
+
/**
|
|
365
|
+
* Change the active locale.
|
|
366
|
+
* Emits 'change' event if locale differs from current.
|
|
367
|
+
* Falls back to default locale if requested locale is unavailable.
|
|
368
|
+
*
|
|
369
|
+
* @param locale - New locale to activate
|
|
370
|
+
*/
|
|
371
|
+
setLocale(locale: TLanguageCode): void;
|
|
372
|
+
/**
|
|
373
|
+
* Load or merge locale data.
|
|
374
|
+
* Can be called after initialization to add translations.
|
|
375
|
+
*
|
|
376
|
+
* @param locale - Locale code to load data for
|
|
377
|
+
* @param data - Translation data to merge
|
|
378
|
+
*/
|
|
379
|
+
loadLocale(locale: TLanguageCode, data: TLocaleData): void;
|
|
380
|
+
/**
|
|
381
|
+
* Subscribe to locale events.
|
|
382
|
+
*
|
|
383
|
+
* @param event - Event name ('change')
|
|
384
|
+
* @param handler - Event handler function
|
|
385
|
+
* @returns Unsubscribe function
|
|
386
|
+
*/
|
|
387
|
+
on<K$1 extends keyof LocaleEvents>(event: K$1, handler: (...args: LocaleEvents[K$1]) => void): () => void;
|
|
388
|
+
/**
|
|
389
|
+
* Clean up resources and remove all listeners.
|
|
390
|
+
*/
|
|
391
|
+
destroy(): void;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Options for LocaleLoader.
|
|
395
|
+
*/
|
|
396
|
+
interface ILocaleLoaderOptions {
|
|
397
|
+
/** Base URL for resolving relative paths */
|
|
398
|
+
baseUrl?: string;
|
|
399
|
+
/** Custom fetch function (for testing or SSR) */
|
|
400
|
+
fetch?: typeof globalThis.fetch;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Result of loading a locale file.
|
|
404
|
+
*/
|
|
405
|
+
interface ILocaleLoadResult {
|
|
406
|
+
locale: TLanguageCode;
|
|
407
|
+
data: TLocaleData;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* LocaleLoader interface for resolving external locale references.
|
|
411
|
+
*/
|
|
412
|
+
interface ILocaleLoader {
|
|
413
|
+
/**
|
|
414
|
+
* Load a single locale from external reference.
|
|
415
|
+
*
|
|
416
|
+
* @param locale - Locale code
|
|
417
|
+
* @param reference - External reference to resolve
|
|
418
|
+
* @returns Resolved locale data
|
|
419
|
+
* @throws If file cannot be loaded or parsed
|
|
420
|
+
*/
|
|
421
|
+
load(locale: TLanguageCode, reference: ILocaleReference): Promise<ILocaleLoadResult>;
|
|
422
|
+
/**
|
|
423
|
+
* Load multiple locales in parallel.
|
|
424
|
+
*
|
|
425
|
+
* @param entries - Map of locale codes to references
|
|
426
|
+
* @returns Array of resolved locale data
|
|
427
|
+
*/
|
|
428
|
+
loadAll(entries: Map<TLanguageCode, ILocaleReference>): Promise<ILocaleLoadResult[]>;
|
|
429
|
+
}
|
|
430
|
+
//#endregion
|
|
281
431
|
//#region src/types.d.ts
|
|
282
432
|
/**
|
|
283
433
|
* Event map for EligiusEngine
|
|
@@ -313,53 +463,6 @@ type EngineEvents = {
|
|
|
313
463
|
/** Engine destroyed */
|
|
314
464
|
destroyed: [];
|
|
315
465
|
};
|
|
316
|
-
/**
|
|
317
|
-
* Event map for LanguageManager
|
|
318
|
-
*
|
|
319
|
-
* Note: Must be a `type` alias (not `interface`) for TypedEventEmitter constraint
|
|
320
|
-
*/
|
|
321
|
-
type LanguageEvents = {
|
|
322
|
-
/** Language changed */
|
|
323
|
-
change: [language: TLanguageCode, previousLanguage: TLanguageCode];
|
|
324
|
-
};
|
|
325
|
-
/**
|
|
326
|
-
* Manages multi-language labels with explicit, testable API
|
|
327
|
-
*/
|
|
328
|
-
interface ILanguageManager {
|
|
329
|
-
/** Current language code (e.g., 'en-US', 'nl-NL') */
|
|
330
|
-
readonly language: string;
|
|
331
|
-
/** List of available language codes, derived from unique languages in label collections */
|
|
332
|
-
readonly availableLanguages: string[];
|
|
333
|
-
/**
|
|
334
|
-
* Subscribe to language manager events
|
|
335
|
-
* @param event - Event name
|
|
336
|
-
* @param handler - Event handler
|
|
337
|
-
* @returns Unsubscribe function
|
|
338
|
-
*/
|
|
339
|
-
on<K$1 extends keyof LanguageEvents>(event: K$1, handler: (...args: LanguageEvents[K$1]) => void): () => void;
|
|
340
|
-
/**
|
|
341
|
-
* Change the current language
|
|
342
|
-
* @param language - New language code
|
|
343
|
-
* @throws If language code is empty or null
|
|
344
|
-
*/
|
|
345
|
-
setLanguage(language: TLanguageCode): void;
|
|
346
|
-
/**
|
|
347
|
-
* Get a label collection by ID
|
|
348
|
-
* @param collectionId - Label collection ID
|
|
349
|
-
* @returns Label array or undefined if not found
|
|
350
|
-
*/
|
|
351
|
-
getLabelCollection(collectionId: string): ILabel[] | undefined;
|
|
352
|
-
/**
|
|
353
|
-
* Get multiple label collections by IDs
|
|
354
|
-
* @param collectionIds - Array of label collection IDs
|
|
355
|
-
* @returns Array of label arrays (undefined for not found collections)
|
|
356
|
-
*/
|
|
357
|
-
getLabelCollections(collectionIds: string[]): (ILabel[] | undefined)[];
|
|
358
|
-
/**
|
|
359
|
-
* Clean up resources
|
|
360
|
-
*/
|
|
361
|
-
destroy(): void;
|
|
362
|
-
}
|
|
363
466
|
type KeysOfType<T, U> = { [P in keyof T]-?: T[P] extends U | undefined ? P : never }[keyof T];
|
|
364
467
|
/**
|
|
365
468
|
* Result of creating an engine via the factory
|
|
@@ -367,8 +470,8 @@ type KeysOfType<T, U> = { [P in keyof T]-?: T[P] extends U | undefined ? P : nev
|
|
|
367
470
|
interface IEngineFactoryResult {
|
|
368
471
|
/** The engine instance */
|
|
369
472
|
engine: IEligiusEngine;
|
|
370
|
-
/** The
|
|
371
|
-
|
|
473
|
+
/** The locale manager instance for translations */
|
|
474
|
+
localeManager: ILocaleManager;
|
|
372
475
|
/** The eventbus for external consumers */
|
|
373
476
|
eventbus: IEventbus;
|
|
374
477
|
/**
|
|
@@ -506,15 +609,6 @@ interface ITimelineProviderInfo {
|
|
|
506
609
|
/** Optional playlist for multi-item timelines */
|
|
507
610
|
playlist?: IPlaylist;
|
|
508
611
|
}
|
|
509
|
-
interface ILanguageLabel {
|
|
510
|
-
id: string;
|
|
511
|
-
labels: ILabel[];
|
|
512
|
-
}
|
|
513
|
-
interface ILabel {
|
|
514
|
-
id: string;
|
|
515
|
-
languageCode: TLanguageCode;
|
|
516
|
-
label: string;
|
|
517
|
-
}
|
|
518
612
|
/**
|
|
519
613
|
*
|
|
520
614
|
* Container type for a width and height
|
|
@@ -524,14 +618,6 @@ interface IDimensions {
|
|
|
524
618
|
width: number;
|
|
525
619
|
height: number;
|
|
526
620
|
}
|
|
527
|
-
/**
|
|
528
|
-
*
|
|
529
|
-
* This represents an IETF language tag
|
|
530
|
-
*
|
|
531
|
-
* The format reads as follows: [Primary language subtag]-[Region subtag]
|
|
532
|
-
*
|
|
533
|
-
*/
|
|
534
|
-
type TLanguageCode = `${Lowercase<string>}-${Uppercase<string>}`;
|
|
535
621
|
interface ISubtitleCollection {
|
|
536
622
|
languageCode: TLanguageCode;
|
|
537
623
|
titles: ISubtitle[];
|
|
@@ -1309,10 +1395,11 @@ interface ILabelControllerMetadata {
|
|
|
1309
1395
|
*/
|
|
1310
1396
|
selectedElement: JQuery;
|
|
1311
1397
|
/**
|
|
1312
|
-
*
|
|
1398
|
+
* Translation key for rosetta-based locale system.
|
|
1399
|
+
* Example: 'nav.home', 'buttons.submit'
|
|
1313
1400
|
* @required
|
|
1314
1401
|
*/
|
|
1315
|
-
|
|
1402
|
+
translationKey: string;
|
|
1316
1403
|
/**
|
|
1317
1404
|
* By default the label is added to the inner HTML of the `selectedElement`,
|
|
1318
1405
|
* otherwise if this property is set, the label text is added to the specified attribute
|
|
@@ -1321,24 +1408,27 @@ interface ILabelControllerMetadata {
|
|
|
1321
1408
|
attributeName?: string;
|
|
1322
1409
|
}
|
|
1323
1410
|
/**
|
|
1324
|
-
* This controller attaches to the given selected element and renders the text
|
|
1411
|
+
* This controller attaches to the given selected element and renders the text
|
|
1412
|
+
* associated with the given translation key.
|
|
1325
1413
|
*
|
|
1326
|
-
* The controller
|
|
1414
|
+
* The controller listens for the `language-change` event and re-renders the text
|
|
1415
|
+
* with the new language after such an event.
|
|
1327
1416
|
*
|
|
1417
|
+
* Uses the rosetta-based locale system via `request-translation` event.
|
|
1328
1418
|
*/
|
|
1329
1419
|
declare class LabelController extends BaseController<ILabelControllerMetadata> {
|
|
1330
|
-
currentLanguage: string | null;
|
|
1331
|
-
labelData: Record<string, string>;
|
|
1332
1420
|
name: string;
|
|
1333
|
-
|
|
1421
|
+
private _eventbus;
|
|
1334
1422
|
init(operationData: ILabelControllerMetadata): void;
|
|
1335
|
-
|
|
1423
|
+
/**
|
|
1424
|
+
* Sets the translation key and re-renders the label.
|
|
1425
|
+
*/
|
|
1426
|
+
setTranslationKey(newKey: string): void;
|
|
1336
1427
|
attach(eventbus: IEventbus): void;
|
|
1337
|
-
private _requestLabelData;
|
|
1338
1428
|
private _setLabel;
|
|
1429
|
+
private _applyText;
|
|
1339
1430
|
detach(eventbus: IEventbus): void;
|
|
1340
1431
|
private _handleLanguageChange;
|
|
1341
|
-
private _createTextDataLookup;
|
|
1342
1432
|
}
|
|
1343
1433
|
//#endregion
|
|
1344
1434
|
//#region src/controllers/lottie-controller.d.ts
|
|
@@ -4079,6 +4169,15 @@ declare namespace index_d_exports$3 {
|
|
|
4079
4169
|
}
|
|
4080
4170
|
//#endregion
|
|
4081
4171
|
//#region src/configuration/types.d.ts
|
|
4172
|
+
/**
|
|
4173
|
+
* Represents a language option for the available languages list.
|
|
4174
|
+
* Used for UI elements like language selection dropdowns.
|
|
4175
|
+
*/
|
|
4176
|
+
interface ILabel {
|
|
4177
|
+
id: string;
|
|
4178
|
+
languageCode: TLanguageCode;
|
|
4179
|
+
label: string;
|
|
4180
|
+
}
|
|
4082
4181
|
type Controllers = typeof index_d_exports$4;
|
|
4083
4182
|
type TControllerName = keyof Controllers;
|
|
4084
4183
|
type TControllerType = Controllers[TControllerName];
|
|
@@ -4088,25 +4187,69 @@ type TOperationName = keyof Operations;
|
|
|
4088
4187
|
type TOperationType = Operations[TOperationName];
|
|
4089
4188
|
type GetOperationByName<T extends TOperationName> = Operations[T];
|
|
4090
4189
|
type ExtractOperationDataType<P$1> = P$1 extends TOperation<infer T, any> ? T : never;
|
|
4190
|
+
/**
|
|
4191
|
+
* Engine identification information.
|
|
4192
|
+
*/
|
|
4091
4193
|
interface IEngineInfo {
|
|
4194
|
+
/** Name of the engine system to use */
|
|
4092
4195
|
systemName: string;
|
|
4093
4196
|
}
|
|
4197
|
+
/**
|
|
4198
|
+
* Provider settings indexed by timeline type.
|
|
4199
|
+
* Allows different configurations for 'animation' vs 'mediaplayer' timelines.
|
|
4200
|
+
*/
|
|
4094
4201
|
type TTimelineProviderSettings = Partial<Record<TimelineTypes, ITimelineProviderSettings>>;
|
|
4202
|
+
/**
|
|
4203
|
+
* Root configuration for the Eligius timeline engine.
|
|
4204
|
+
*
|
|
4205
|
+
* This is the main configuration object passed to `EngineFactory.createEngine()`.
|
|
4206
|
+
* It defines all aspects of the engine: timelines, actions, language settings, and more.
|
|
4207
|
+
*
|
|
4208
|
+
* @example
|
|
4209
|
+
* ```typescript
|
|
4210
|
+
* const config: IEngineConfiguration = {
|
|
4211
|
+
* id: '123e4567-e89b-12d3-a456-426614174000',
|
|
4212
|
+
* engine: { systemName: 'EligiusEngine' },
|
|
4213
|
+
* containerSelector: '#eligius-container',
|
|
4214
|
+
* cssFiles: ['styles/main.css'],
|
|
4215
|
+
* language: 'en-US',
|
|
4216
|
+
* layoutTemplate: '<div class="container"></div>',
|
|
4217
|
+
* availableLanguages: [{ id: 'en', languageCode: 'en-US', label: 'English' }],
|
|
4218
|
+
* initActions: [],
|
|
4219
|
+
* actions: [],
|
|
4220
|
+
* timelines: []
|
|
4221
|
+
* };
|
|
4222
|
+
* ```
|
|
4223
|
+
*/
|
|
4095
4224
|
interface IEngineConfiguration {
|
|
4225
|
+
/** Unique identifier for the configuration (UUID format) */
|
|
4096
4226
|
id: string;
|
|
4227
|
+
/** Engine identification info */
|
|
4097
4228
|
engine: IEngineInfo;
|
|
4229
|
+
/** Optional settings for timeline providers by type */
|
|
4098
4230
|
timelineProviderSettings?: TTimelineProviderSettings;
|
|
4231
|
+
/** CSS selector for the main container element */
|
|
4099
4232
|
containerSelector: string;
|
|
4233
|
+
/** Array of CSS file paths to load */
|
|
4100
4234
|
cssFiles: string[];
|
|
4235
|
+
/** Default language code (IETF language tag) */
|
|
4101
4236
|
language: TLanguageCode;
|
|
4237
|
+
/** HTML template for the layout (inline HTML or template reference) */
|
|
4102
4238
|
layoutTemplate: string;
|
|
4239
|
+
/** List of available languages for the application */
|
|
4103
4240
|
availableLanguages: ILabel[];
|
|
4241
|
+
/** Actions to execute during engine initialization */
|
|
4104
4242
|
initActions: IEndableActionConfiguration[];
|
|
4243
|
+
/** Reusable action templates */
|
|
4105
4244
|
actions: IEndableActionConfiguration[];
|
|
4245
|
+
/** Optional actions triggered by events */
|
|
4106
4246
|
eventActions?: IEventActionConfiguration[];
|
|
4247
|
+
/** Timeline configurations */
|
|
4107
4248
|
timelines: ITimelineConfiguration[];
|
|
4249
|
+
/** Optional timeline flow configuration for navigation between timelines */
|
|
4108
4250
|
timelineFlow?: ITimelineFlow;
|
|
4109
|
-
|
|
4251
|
+
/** Locale configuration for rosetta-based translations */
|
|
4252
|
+
locales?: ILocalesConfiguration;
|
|
4110
4253
|
}
|
|
4111
4254
|
interface IResolvedEngineConfiguration {
|
|
4112
4255
|
id: string;
|
|
@@ -4121,7 +4264,6 @@ interface IResolvedEngineConfiguration {
|
|
|
4121
4264
|
actions: IEndableAction[];
|
|
4122
4265
|
timelines: IResolvedTimelineConfiguration[];
|
|
4123
4266
|
timelineFlow?: ITimelineFlow;
|
|
4124
|
-
labels: ILanguageLabel[];
|
|
4125
4267
|
}
|
|
4126
4268
|
interface IResolvedActionConfiguration {
|
|
4127
4269
|
id: string;
|
|
@@ -4131,6 +4273,12 @@ interface IResolvedActionConfiguration {
|
|
|
4131
4273
|
interface IResolvedEndableActionConfiguration extends IResolvedActionConfiguration {
|
|
4132
4274
|
endOperations: IResolvedOperation[];
|
|
4133
4275
|
}
|
|
4276
|
+
/**
|
|
4277
|
+
* Configuration for timeline flow navigation.
|
|
4278
|
+
*
|
|
4279
|
+
* Defines how timelines connect and transition between each other.
|
|
4280
|
+
* Currently a placeholder type for future implementation.
|
|
4281
|
+
*/
|
|
4134
4282
|
type ITimelineFlow = Record<string, never>;
|
|
4135
4283
|
/**
|
|
4136
4284
|
* Configuration for a position source.
|
|
@@ -4308,13 +4456,39 @@ interface IResolvedTimelineConfiguration {
|
|
|
4308
4456
|
*/
|
|
4309
4457
|
container?: string;
|
|
4310
4458
|
}
|
|
4459
|
+
/**
|
|
4460
|
+
* Configuration for a single timeline.
|
|
4461
|
+
*
|
|
4462
|
+
* A timeline represents a time-based sequence of actions that can be played,
|
|
4463
|
+
* paused, and seeked. Multiple timelines can exist in a configuration.
|
|
4464
|
+
*
|
|
4465
|
+
* @example
|
|
4466
|
+
* ```typescript
|
|
4467
|
+
* const timeline: ITimelineConfiguration = {
|
|
4468
|
+
* id: 'main-timeline',
|
|
4469
|
+
* uri: 'timeline://main',
|
|
4470
|
+
* type: 'animation',
|
|
4471
|
+
* duration: 60,
|
|
4472
|
+
* loop: false,
|
|
4473
|
+
* selector: '#timeline-container',
|
|
4474
|
+
* timelineActions: []
|
|
4475
|
+
* };
|
|
4476
|
+
* ```
|
|
4477
|
+
*/
|
|
4311
4478
|
interface ITimelineConfiguration {
|
|
4479
|
+
/** Unique identifier for the timeline */
|
|
4312
4480
|
id: string;
|
|
4481
|
+
/** URI for timeline identification and switching */
|
|
4313
4482
|
uri: string;
|
|
4483
|
+
/** Timeline type: 'animation' (RAF-based) or 'mediaplayer' (video-based) */
|
|
4314
4484
|
type: TimelineTypes;
|
|
4485
|
+
/** Duration in seconds */
|
|
4315
4486
|
duration: number;
|
|
4487
|
+
/** Whether the timeline should loop when complete */
|
|
4316
4488
|
loop: boolean;
|
|
4489
|
+
/** CSS selector for the timeline's target element */
|
|
4317
4490
|
selector: string;
|
|
4491
|
+
/** Actions to execute at specific timeline positions */
|
|
4318
4492
|
timelineActions: ITimelineActionConfiguration[];
|
|
4319
4493
|
/**
|
|
4320
4494
|
* Optional container selector for the timeline.
|
|
@@ -4323,28 +4497,63 @@ interface ITimelineConfiguration {
|
|
|
4323
4497
|
*/
|
|
4324
4498
|
container?: string;
|
|
4325
4499
|
}
|
|
4500
|
+
/**
|
|
4501
|
+
* Configuration for an operation within an action.
|
|
4502
|
+
*
|
|
4503
|
+
* Operations are atomic functions that perform specific tasks
|
|
4504
|
+
* (DOM manipulation, data operations, etc.).
|
|
4505
|
+
*
|
|
4506
|
+
* @typeParam T - The operation data type
|
|
4507
|
+
*/
|
|
4326
4508
|
interface IOperationConfiguration<T extends TOperationData> {
|
|
4509
|
+
/** Unique identifier for the operation */
|
|
4327
4510
|
id: string;
|
|
4511
|
+
/** Name of the operation to execute (e.g., 'selectElement', 'animateWithClass') */
|
|
4328
4512
|
systemName: string;
|
|
4513
|
+
/** Optional data passed to the operation */
|
|
4329
4514
|
operationData?: T;
|
|
4330
4515
|
}
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4516
|
+
/**
|
|
4517
|
+
* Base configuration for an action.
|
|
4518
|
+
*
|
|
4519
|
+
* Actions are named sequences of operations that execute together.
|
|
4520
|
+
*/
|
|
4335
4521
|
interface IActionConfiguration {
|
|
4522
|
+
/** Unique identifier for the action */
|
|
4336
4523
|
id: string;
|
|
4524
|
+
/** Human-readable name for the action */
|
|
4337
4525
|
name: string;
|
|
4526
|
+
/** Operations to execute when the action starts */
|
|
4338
4527
|
startOperations: IOperationConfiguration<TOperationData>[];
|
|
4339
4528
|
}
|
|
4529
|
+
/**
|
|
4530
|
+
* Configuration for an action that has both start and end operations.
|
|
4531
|
+
*
|
|
4532
|
+
* Endable actions execute startOperations when triggered and
|
|
4533
|
+
* endOperations when completed or reversed.
|
|
4534
|
+
*/
|
|
4340
4535
|
interface IEndableActionConfiguration extends IActionConfiguration {
|
|
4536
|
+
/** Operations to execute when the action ends */
|
|
4341
4537
|
endOperations: IOperationConfiguration<TOperationData>[];
|
|
4342
4538
|
}
|
|
4539
|
+
/**
|
|
4540
|
+
* Configuration for a timeline-bound action with duration.
|
|
4541
|
+
*
|
|
4542
|
+
* Timeline actions execute at specific time ranges within a timeline.
|
|
4543
|
+
*/
|
|
4343
4544
|
interface ITimelineActionConfiguration extends IEndableActionConfiguration {
|
|
4545
|
+
/** Time range when this action is active (start/end in seconds) */
|
|
4344
4546
|
duration: IDuration;
|
|
4345
4547
|
}
|
|
4548
|
+
/**
|
|
4549
|
+
* Configuration for an event-triggered action.
|
|
4550
|
+
*
|
|
4551
|
+
* Event actions execute in response to eventbus events.
|
|
4552
|
+
*/
|
|
4346
4553
|
interface IEventActionConfiguration extends IActionConfiguration {
|
|
4554
|
+
/** Name of the event that triggers this action */
|
|
4347
4555
|
eventName: string;
|
|
4556
|
+
/** Optional event topic for filtering (defaults to global topic) */
|
|
4348
4557
|
eventTopic?: string;
|
|
4349
4558
|
}
|
|
4350
4559
|
interface IResolvedOperation {
|
|
@@ -4473,25 +4682,19 @@ declare class EngineInputAdapter implements IAdapter {
|
|
|
4473
4682
|
private _handleResize;
|
|
4474
4683
|
}
|
|
4475
4684
|
//#endregion
|
|
4476
|
-
//#region src/adapters/
|
|
4685
|
+
//#region src/adapters/locale-eventbus-adapter.d.ts
|
|
4477
4686
|
/**
|
|
4478
|
-
* Bridges
|
|
4479
|
-
*
|
|
4480
|
-
* This adapter:
|
|
4481
|
-
* - Forwards language manager events to eventbus broadcasts
|
|
4482
|
-
* - Forwards eventbus language commands to language manager methods
|
|
4483
|
-
* - Handles eventbus state queries by reading language manager properties
|
|
4484
|
-
* - Updates DOM lang attribute when language changes
|
|
4687
|
+
* Bridges LocaleManager to/from the eventbus.
|
|
4485
4688
|
*
|
|
4486
|
-
* Note: Requires engine reference to update DOM lang attribute on
|
|
4689
|
+
* Note: Requires engine reference to update DOM lang attribute on locale change.
|
|
4487
4690
|
*/
|
|
4488
|
-
declare class
|
|
4489
|
-
private
|
|
4691
|
+
declare class LocaleEventbusAdapter implements IAdapter {
|
|
4692
|
+
private _localeManager;
|
|
4490
4693
|
private _eventbus;
|
|
4491
4694
|
private _engine;
|
|
4492
|
-
private
|
|
4695
|
+
private _localeEventRemovers;
|
|
4493
4696
|
private _eventbusRemovers;
|
|
4494
|
-
constructor(
|
|
4697
|
+
constructor(_localeManager: ILocaleManager, _eventbus: IEventbus, _engine: IEligiusEngine);
|
|
4495
4698
|
/**
|
|
4496
4699
|
* Connect adapter - start listening and forwarding
|
|
4497
4700
|
*/
|
|
@@ -4500,8 +4703,8 @@ declare class LanguageEventbusAdapter implements IAdapter {
|
|
|
4500
4703
|
* Disconnect adapter - stop all listeners
|
|
4501
4704
|
*/
|
|
4502
4705
|
disconnect(): void;
|
|
4503
|
-
private
|
|
4504
|
-
private
|
|
4706
|
+
private _subscribeToLocaleManagerEvents;
|
|
4707
|
+
private _onLocaleEvent;
|
|
4505
4708
|
private _subscribeToEventbusEvents;
|
|
4506
4709
|
private _onEventbusEvent;
|
|
4507
4710
|
private _registerRequest;
|
|
@@ -4618,7 +4821,7 @@ declare class EndableActionEditor<T extends IEndableActionConfiguration = IEndab
|
|
|
4618
4821
|
* @param operationData
|
|
4619
4822
|
* @returns
|
|
4620
4823
|
*/
|
|
4621
|
-
addEndOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddClassOperationData, Omit<IAddClassOperationData, "className">> | TOperation<
|
|
4824
|
+
addEndOperation<T extends TOperationName, O extends Partial<ExtractOperationDataType<GetOperationByName<T>>>>(systemName: TOperationName, operationData: O): OperationEditor<this, TOperation<IAddControllerToElementOperationData<TOperationData>> | TOperation<IAddClassOperationData, Omit<IAddClassOperationData, "className">> | TOperation<IAnnounceToScreenReaderOperationData, Omit<IAnnounceToScreenReaderOperationData, "message" | "priority">> | TOperation<IAddGlobalsToOperationData, Omit<IAddGlobalsToOperationData, "globalProperties">> | TOperation<IAnimateOperationData, Omit<IAnimateOperationData, "animationEasing" | "animationProperties" | "animationDuration">> | TOperation<IAnimateWithClassOperationData, Promise<IAnimateWithClassOperationData>> | TOperation<IBroadcastEventOperationData, Omit<IBroadcastEventOperationData, "eventArgs" | "eventTopic" | "eventName">> | TOperation<TOperationData> | TOperation<ICalcOperationData, Omit<ICalcOperationData, "left" | "right" | "operator">> | TOperation<IClearElementOperationData> | TOperation<IClearOperationDataOperationData, Omit<IClearOperationDataOperationData, "properties">> | TOperation<IClearStorageOperationData, Omit<IClearStorageOperationData, "key" | "storageType">> | TOperation<ICompareDateOperationData, Omit<ICompareDateOperationData, "date1" | "date2">> | TOperation<IConcatenateStringsOperationData, Omit<IConcatenateStringsOperationData, "strings" | "separator">> | TOperation<ICreateElementOperationData<keyof HTMLElementTagNameMap>, Omit<RequireKeys<ICreateElementOperationData<keyof HTMLElementTagNameMap>, "template">, "elementName" | "text" | "attributes">> | TOperation<ICustomFunctionOperationData, Omit<ICustomFunctionOperationData, "systemName">> | TOperation<IEndActionOperationData, Omit<IEndActionOperationData, "actionOperationData">> | TOperation<IExtendControllerOperationData, Omit<IExtendControllerOperationData, "controllerExtension">> | TOperation<Record<string, unknown>> | TOperation<IFilterArrayOperationData, Omit<IFilterArrayOperationData, "filterProperty" | "filterValue" | "filterPredicate">> | TOperation<IForEachOperationData> | TOperation<IFindInArrayOperationData, Omit<IFindInArrayOperationData, "findProperty" | "findValue" | "findPredicate">> | TOperation<IFormatDateOperationData, Omit<IFormatDateOperationData, "format">> | TOperation<IFormatTextOperationData, Omit<IFormatTextOperationData, "transformation">> | TOperation<IGetAttributesFromElementOperationData, Omit<IGetAttributesFromElementOperationData, "attributeNames">> | TOperation<IGetElementDimensionsOperationData, Omit<IGetElementDimensionsOperationData, "modifier">> | TOperation<IGetCurrentTimeOperationData, IGetCurrentTimeOperationData> | TOperation<IGetControllerInstanceOperationData, Omit<IGetControllerInstanceOperationData, "systemName">> | TOperation<IGetFormDataOperationData, IGetFormDataOperationData> | TOperation<IGetFocusedElementOperationData, IGetFocusedElementOperationData> | TOperation<IGetScrollPositionOperationData, IGetScrollPositionOperationData> | TOperation<IGetQueryParamsOperationData, Omit<IGetQueryParamsOperationData, "defaultValues">> | TOperation<IGetTextContentOperationData, IGetTextContentOperationData> | TOperation<IGetImportOperationData, Omit<RequireKeys<IGetImportOperationData, "importedInstance">, "systemName">> | TOperation<IHttpDeleteOperationData, Omit<IHttpDeleteOperationData, "url" | "headers">> | TOperation<IGetControllerFromElementOperationData, Omit<IGetControllerFromElementOperationData, "controllerName">> | TOperation<IHttpPostOperationData, Omit<IHttpPostOperationData, "body" | "url" | "headers">> | TOperation<IInvokeObjectMethodOperationData, Omit<IInvokeObjectMethodOperationData, "methodName" | "methodArguments">> | TOperation<IHttpPutOperationData, Omit<IHttpPutOperationData, "body" | "url" | "headers">> | TOperation<ILoadFromStorageOperationData, Omit<ILoadFromStorageOperationData, "storageType">> | TOperation<IIsElementInViewportOperationData, IIsElementInViewportOperationData> | TOperation<ILogOperationData, Omit<ILogOperationData, "logValue" | "logName">> | TOperation<ILoadJSONOperationData, Omit<ILoadJSONOperationData, "url" | "cache">> | TOperation<IMathOperationData, Omit<IMathOperationData, "args" | "functionName">> | TOperation<IMapArrayOperationData, Omit<IMapArrayOperationData, "mapFunction">> | TOperation<IRemoveClassOperationData, Omit<IRemoveClassOperationData, "className">> | TOperation<IRemoveElementOperationData> | TOperation<IRemoveControllerFromElementOperationData, Omit<IRemoveControllerFromElementOperationData, "controllerName">> | 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<IScrollToElementOperationData, Omit<IScrollToElementOperationData, "behavior" | "block" | "inline">> | TOperation<ISelectElementOperationData, Omit<ISelectElementOperationData, "selector" | "useSelectedElementAsRoot">> | TOperation<IScrollToPositionOperationData, Omit<IScrollToPositionOperationData, "behavior" | "x" | "y">> | TOperation<ISetElementAttributesOperationData, Omit<ISetElementAttributesOperationData, "attributes">> | TOperation<ISetElementContentOperationData, Omit<ISetElementContentOperationData, "template" | "insertionType">> | TOperation<ISetFocusOperationData, ISetFocusOperationData> | TOperation<ISetDataOperationData, Omit<ISetDataOperationData, "properties">> | TOperation<ISetFormValueOperationData, Omit<ISetFormValueOperationData, "value">> | TOperation<ISetOperationData, Omit<ISetOperationData, "properties" | "override">> | TOperation<ISetGlobalDataOperationData, Omit<ISetGlobalDataOperationData, "propertyNames">> | TOperation<ISetStyleOperationData, Omit<ISetStyleOperationData, "properties">> | TOperation<ISetVariableOperationData, Omit<ISetVariableOperationData, "name" | "value">> | TOperation<ISortArrayOperationData, Omit<ISortArrayOperationData, "sortProperty" | "sortOrder" | "sortComparator">> | TOperation<ISplitStringOperationData, Omit<ISplitStringOperationData, "delimiter" | "limit">> | TOperation<ISubstringTextOperationData, Omit<ISubstringTextOperationData, "start" | "end">> | TOperation<IStartActionOperationData, Omit<IStartActionOperationData, "actionOperationData">> | TOperation<IToggleClassOperationData, Omit<IToggleClassOperationData, "className">> | TOperation<IToggleElementOperationData> | TOperation<IToggleFormElementOperationData, Omit<IToggleFormElementOperationData, "enabled">> | TOperation<IValidateFormOperationData, Omit<IValidateFormOperationData, "validationRules">> | TOperation<IWaitOperationData, Omit<IWaitOperationData, "milliseconds">> | TOperation<IWhenOperationData, Omit<IWhenOperationData, "expression">>>;
|
|
4622
4825
|
/**
|
|
4623
4826
|
*
|
|
4624
4827
|
* Starts an editor for the end operation associated with the given id
|
|
@@ -4734,41 +4937,6 @@ declare class OperationEditor<T extends ActionEditor, O extends TOperationType =
|
|
|
4734
4937
|
next(): T;
|
|
4735
4938
|
}
|
|
4736
4939
|
//#endregion
|
|
4737
|
-
//#region src/configuration/api/label-editor.d.ts
|
|
4738
|
-
/**
|
|
4739
|
-
* Factory that assists with editing a label
|
|
4740
|
-
*/
|
|
4741
|
-
declare class LabelEditor {
|
|
4742
|
-
private configurationFactory;
|
|
4743
|
-
private languageLabel;
|
|
4744
|
-
constructor(configurationFactory: ConfigurationFactory, languageLabel: ILanguageLabel);
|
|
4745
|
-
private _internalGetLabel;
|
|
4746
|
-
/**
|
|
4747
|
-
*
|
|
4748
|
-
* Set the translation associated with the given language code
|
|
4749
|
-
*
|
|
4750
|
-
* @param languageCode
|
|
4751
|
-
* @param translation
|
|
4752
|
-
* @returns
|
|
4753
|
-
*/
|
|
4754
|
-
setLabel(languageCode: TLanguageCode, translation: string): this;
|
|
4755
|
-
/**
|
|
4756
|
-
*
|
|
4757
|
-
* Remove all of the translations for the given language code
|
|
4758
|
-
*
|
|
4759
|
-
* @param languageCode
|
|
4760
|
-
* @returns
|
|
4761
|
-
*/
|
|
4762
|
-
removeLabel(languageCode: TLanguageCode): this;
|
|
4763
|
-
/**
|
|
4764
|
-
*
|
|
4765
|
-
* Returns the fluent scope back to the `ConfigurationFactory`
|
|
4766
|
-
*
|
|
4767
|
-
* @returns
|
|
4768
|
-
*/
|
|
4769
|
-
end(): ConfigurationFactory;
|
|
4770
|
-
}
|
|
4771
|
-
//#endregion
|
|
4772
4940
|
//#region src/configuration/api/timeline-provider-settings-editor.d.ts
|
|
4773
4941
|
declare class TimelineProvidersSettingsEditor {
|
|
4774
4942
|
private providersSettings;
|
|
@@ -5130,43 +5298,6 @@ declare class ConfigurationFactory {
|
|
|
5130
5298
|
* @returns
|
|
5131
5299
|
*/
|
|
5132
5300
|
removeTimeline(uri: string): this;
|
|
5133
|
-
private _initializeLabel;
|
|
5134
|
-
private _getLabelTranslation;
|
|
5135
|
-
/**
|
|
5136
|
-
*
|
|
5137
|
-
* Starts an editor for the label that is associated with the specified id
|
|
5138
|
-
*
|
|
5139
|
-
* @param id
|
|
5140
|
-
* @returns
|
|
5141
|
-
*/
|
|
5142
|
-
editLabel(id: string): LabelEditor;
|
|
5143
|
-
/**
|
|
5144
|
-
*
|
|
5145
|
-
* Adds a label translation with the specified data
|
|
5146
|
-
*
|
|
5147
|
-
* @param id The id for the label
|
|
5148
|
-
* @param languageCode The language code associated with the label
|
|
5149
|
-
* @param translation The label text in the language specified by the language code
|
|
5150
|
-
* @returns
|
|
5151
|
-
*/
|
|
5152
|
-
addLabel(id: string, languageCode: TLanguageCode, translation: string): this;
|
|
5153
|
-
/**
|
|
5154
|
-
*
|
|
5155
|
-
* Adds multiple translations with the specified data
|
|
5156
|
-
*
|
|
5157
|
-
* @param id The id for the label
|
|
5158
|
-
* @param translations A record that holds language code to translations lookups
|
|
5159
|
-
* @returns
|
|
5160
|
-
*/
|
|
5161
|
-
addLabels(id: string, translations: Record<TLanguageCode, string>): this;
|
|
5162
|
-
/**
|
|
5163
|
-
*
|
|
5164
|
-
* Removes all translations with the given id
|
|
5165
|
-
*
|
|
5166
|
-
* @param id the id for the label
|
|
5167
|
-
* @returns
|
|
5168
|
-
*/
|
|
5169
|
-
removeLabel(id: string): this;
|
|
5170
5301
|
/**
|
|
5171
5302
|
*
|
|
5172
5303
|
* Starts an editor for the action from the `actions` list associated with the given id
|
|
@@ -6734,58 +6865,6 @@ declare class TypedEventEmitter<T extends Record<keyof T, unknown[]>> implements
|
|
|
6734
6865
|
removeAllListeners(event?: keyof T): void;
|
|
6735
6866
|
}
|
|
6736
6867
|
//#endregion
|
|
6737
|
-
//#region src/language-manager.d.ts
|
|
6738
|
-
/**
|
|
6739
|
-
* Manages multi-language labels with explicit, testable API.
|
|
6740
|
-
*
|
|
6741
|
-
* This class manages the labels for an {@link IEligiusEngine} instance.
|
|
6742
|
-
* It provides a pure API for language management and emits events for language changes.
|
|
6743
|
-
*
|
|
6744
|
-
* Eventbus integration is handled by LanguageEventbusAdapter.
|
|
6745
|
-
*/
|
|
6746
|
-
declare class LanguageManager implements ILanguageManager {
|
|
6747
|
-
private _currentLanguage;
|
|
6748
|
-
private _labelLookup;
|
|
6749
|
-
private _emitter;
|
|
6750
|
-
private _availableLanguages;
|
|
6751
|
-
/** Current language code (e.g., 'en-US', 'nl-NL') */
|
|
6752
|
-
get language(): string;
|
|
6753
|
-
/** List of available language codes, derived from unique languages in label collections */
|
|
6754
|
-
get availableLanguages(): string[];
|
|
6755
|
-
constructor(_currentLanguage: TLanguageCode, labels: ILanguageLabel[]);
|
|
6756
|
-
/**
|
|
6757
|
-
* Subscribe to language manager events
|
|
6758
|
-
* @param event - Event name
|
|
6759
|
-
* @param handler - Event handler
|
|
6760
|
-
* @returns Unsubscribe function
|
|
6761
|
-
*/
|
|
6762
|
-
on<K$1 extends keyof LanguageEvents>(event: K$1, handler: (...args: LanguageEvents[K$1]) => void): () => void;
|
|
6763
|
-
/**
|
|
6764
|
-
* Change the current language
|
|
6765
|
-
* @param language - New language code
|
|
6766
|
-
* @throws If language code is empty or null
|
|
6767
|
-
*/
|
|
6768
|
-
setLanguage(language: TLanguageCode): void;
|
|
6769
|
-
/**
|
|
6770
|
-
* Get a label collection by ID
|
|
6771
|
-
* @param collectionId - Label collection ID
|
|
6772
|
-
* @returns Label array or undefined if not found
|
|
6773
|
-
*/
|
|
6774
|
-
getLabelCollection(collectionId: string): ILabel[] | undefined;
|
|
6775
|
-
/**
|
|
6776
|
-
* Get multiple label collections by IDs
|
|
6777
|
-
* @param collectionIds - Array of label collection IDs
|
|
6778
|
-
* @returns Array of label arrays (undefined for not found collections)
|
|
6779
|
-
*/
|
|
6780
|
-
getLabelCollections(collectionIds: string[]): (ILabel[] | undefined)[];
|
|
6781
|
-
/**
|
|
6782
|
-
* Clean up resources
|
|
6783
|
-
*/
|
|
6784
|
-
destroy(): void;
|
|
6785
|
-
private _createLabelLookup;
|
|
6786
|
-
private _extractAvailableLanguages;
|
|
6787
|
-
}
|
|
6788
|
-
//#endregion
|
|
6789
6868
|
//#region src/eligius-engine.d.ts
|
|
6790
6869
|
type ActionMethod = (IEndableAction['start'] & ActionMethodMetadata) | (IEndableAction['end'] & ActionMethodMetadata);
|
|
6791
6870
|
interface ActionMethodMetadata {
|
|
@@ -6803,7 +6882,7 @@ declare class EligiusEngine implements IEligiusEngine {
|
|
|
6803
6882
|
private configuration;
|
|
6804
6883
|
private eventbus;
|
|
6805
6884
|
private timelineProviders;
|
|
6806
|
-
private
|
|
6885
|
+
private localeManager;
|
|
6807
6886
|
private _timeLineActionsLookup;
|
|
6808
6887
|
private _timelineLookupCache;
|
|
6809
6888
|
private _eventbusRemovers;
|
|
@@ -6825,7 +6904,7 @@ declare class EligiusEngine implements IEligiusEngine {
|
|
|
6825
6904
|
get container(): JQuery<HTMLElement> | undefined;
|
|
6826
6905
|
/** Root element of the engine (container selector) */
|
|
6827
6906
|
get engineRoot(): JQuery<HTMLElement>;
|
|
6828
|
-
constructor(configuration: IResolvedEngineConfiguration, eventbus: IEventbus, timelineProviders: Record<TimelineTypes, ITimelineProviderInfo>,
|
|
6907
|
+
constructor(configuration: IResolvedEngineConfiguration, eventbus: IEventbus, timelineProviders: Record<TimelineTypes, ITimelineProviderInfo>, localeManager: ILocaleManager);
|
|
6829
6908
|
/**
|
|
6830
6909
|
* Subscribe to engine events
|
|
6831
6910
|
* @param event - Event name
|
|
@@ -6959,12 +7038,12 @@ declare class EngineFactory implements IEngineFactory {
|
|
|
6959
7038
|
* This method:
|
|
6960
7039
|
* - Resolves the configuration
|
|
6961
7040
|
* - Creates timeline providers
|
|
6962
|
-
* - Instantiates the engine and
|
|
7041
|
+
* - Instantiates the engine and locale manager
|
|
6963
7042
|
* - Creates and connects adapters for eventbus integration
|
|
6964
7043
|
*
|
|
6965
7044
|
* @param configuration - The engine configuration
|
|
6966
7045
|
* @param resolver - Optional custom configuration resolver
|
|
6967
|
-
* @returns Engine result with engine,
|
|
7046
|
+
* @returns Engine result with engine, locale manager, eventbus, and destroy function
|
|
6968
7047
|
*/
|
|
6969
7048
|
createEngine(configuration: IEngineConfiguration, resolver?: IConfigurationResolver): IEngineFactoryResult;
|
|
6970
7049
|
private _createTimelineProviders;
|
|
@@ -7030,5 +7109,151 @@ declare class EngineFactory implements IEngineFactory {
|
|
|
7030
7109
|
createTimelineProvidersForConfig(configuration: IResolvedEngineConfiguration): Record<TimelineTypes, ITimelineProviderInfo>;
|
|
7031
7110
|
}
|
|
7032
7111
|
//#endregion
|
|
7033
|
-
|
|
7112
|
+
//#region src/locale/locale-loader.d.ts
|
|
7113
|
+
/**
|
|
7114
|
+
* LocaleLoader loads external locale files referenced via $ref syntax.
|
|
7115
|
+
*
|
|
7116
|
+
* Features:
|
|
7117
|
+
* - Fetches JSON locale files from URLs
|
|
7118
|
+
* - Caches results to avoid redundant fetches
|
|
7119
|
+
* - Detects circular references
|
|
7120
|
+
* - Supports baseUrl for relative path resolution
|
|
7121
|
+
*/
|
|
7122
|
+
declare class LocaleLoader implements ILocaleLoader {
|
|
7123
|
+
private readonly _fetch;
|
|
7124
|
+
private readonly _baseUrl;
|
|
7125
|
+
private readonly _cache;
|
|
7126
|
+
private readonly _loading;
|
|
7127
|
+
/**
|
|
7128
|
+
* Creates a new LocaleLoader instance.
|
|
7129
|
+
*
|
|
7130
|
+
* @param options - Configuration options
|
|
7131
|
+
*/
|
|
7132
|
+
constructor(options?: ILocaleLoaderOptions);
|
|
7133
|
+
/**
|
|
7134
|
+
* Loads a single locale from an external reference.
|
|
7135
|
+
*
|
|
7136
|
+
* @param locale - The locale code
|
|
7137
|
+
* @param reference - The external reference to load
|
|
7138
|
+
* @returns The loaded locale data
|
|
7139
|
+
* @throws If file cannot be loaded, parsed, or circular reference detected
|
|
7140
|
+
*/
|
|
7141
|
+
load(locale: TLanguageCode, reference: ILocaleReference): Promise<ILocaleLoadResult>;
|
|
7142
|
+
/**
|
|
7143
|
+
* Internal load method with visited path tracking.
|
|
7144
|
+
*/
|
|
7145
|
+
private _loadWithVisited;
|
|
7146
|
+
/**
|
|
7147
|
+
* Loads multiple locales in parallel.
|
|
7148
|
+
*
|
|
7149
|
+
* @param entries - Map of locale codes to references
|
|
7150
|
+
* @returns Array of loaded locale data
|
|
7151
|
+
*/
|
|
7152
|
+
loadAll(entries: Map<TLanguageCode, ILocaleReference>): Promise<ILocaleLoadResult[]>;
|
|
7153
|
+
/**
|
|
7154
|
+
* Fetches URL with caching to avoid redundant requests.
|
|
7155
|
+
*/
|
|
7156
|
+
private _fetchWithCache;
|
|
7157
|
+
/**
|
|
7158
|
+
* Performs the actual fetch request.
|
|
7159
|
+
*/
|
|
7160
|
+
private _doFetch;
|
|
7161
|
+
/**
|
|
7162
|
+
* Resolves a potentially relative URL using the baseUrl.
|
|
7163
|
+
*/
|
|
7164
|
+
private _resolveUrl;
|
|
7165
|
+
/**
|
|
7166
|
+
* Recursively resolves nested $ref references in loaded data.
|
|
7167
|
+
*/
|
|
7168
|
+
private _resolveNestedRefs;
|
|
7169
|
+
/**
|
|
7170
|
+
* Type guard for reference objects.
|
|
7171
|
+
*/
|
|
7172
|
+
private _isReference;
|
|
7173
|
+
/**
|
|
7174
|
+
* Resolves a relative path relative to a parent URL.
|
|
7175
|
+
*/
|
|
7176
|
+
private _resolveRelativeToParent;
|
|
7177
|
+
}
|
|
7178
|
+
//#endregion
|
|
7179
|
+
//#region src/locale/locale-manager.d.ts
|
|
7180
|
+
/**
|
|
7181
|
+
* LocaleManager wraps the rosetta library to provide translation management
|
|
7182
|
+
* with event-based locale switching support.
|
|
7183
|
+
*/
|
|
7184
|
+
declare class LocaleManager implements ILocaleManager {
|
|
7185
|
+
private readonly _rosetta;
|
|
7186
|
+
private readonly _listeners;
|
|
7187
|
+
private _locale;
|
|
7188
|
+
private _availableLocales;
|
|
7189
|
+
private readonly _debug;
|
|
7190
|
+
/** Raw locale data for debug mode variable checking (rosetta interpolates on access) */
|
|
7191
|
+
private readonly _rawLocaleData;
|
|
7192
|
+
/**
|
|
7193
|
+
* Creates a new LocaleManager instance.
|
|
7194
|
+
*
|
|
7195
|
+
* @param options - Configuration options for the locale manager
|
|
7196
|
+
*/
|
|
7197
|
+
constructor(options: ILocaleManagerOptions);
|
|
7198
|
+
/**
|
|
7199
|
+
* Gets the current locale.
|
|
7200
|
+
*/
|
|
7201
|
+
get locale(): TLanguageCode;
|
|
7202
|
+
/**
|
|
7203
|
+
* Gets the list of available locales.
|
|
7204
|
+
*/
|
|
7205
|
+
get availableLocales(): ReadonlyArray<TLanguageCode>;
|
|
7206
|
+
/**
|
|
7207
|
+
* Loads translation data for a specific locale.
|
|
7208
|
+
*
|
|
7209
|
+
* @param locale - The locale code (e.g., 'en-US', 'nl-NL')
|
|
7210
|
+
* @param data - The translation data object
|
|
7211
|
+
*/
|
|
7212
|
+
loadLocale(locale: TLanguageCode, data: TLocaleData): void;
|
|
7213
|
+
/**
|
|
7214
|
+
* Retrieves a translation for the given key.
|
|
7215
|
+
*
|
|
7216
|
+
* @param key - The translation key (string or array of strings for nested keys)
|
|
7217
|
+
* @param params - Optional parameters for interpolation
|
|
7218
|
+
* @param locale - Optional locale override (uses current locale if not specified)
|
|
7219
|
+
* @returns The translated string, or empty string if key not found
|
|
7220
|
+
*/
|
|
7221
|
+
t(key: string | string[], params?: Record<string, unknown>, locale?: TLanguageCode): string;
|
|
7222
|
+
/**
|
|
7223
|
+
* Checks for missing interpolation variables in debug mode.
|
|
7224
|
+
* Extracts {{variable}} patterns from raw translation and compares with provided params.
|
|
7225
|
+
*/
|
|
7226
|
+
private _checkMissingInterpolationVars;
|
|
7227
|
+
/**
|
|
7228
|
+
* Gets raw translation value from stored locale data (without interpolation).
|
|
7229
|
+
*/
|
|
7230
|
+
private _getRawTranslation;
|
|
7231
|
+
/**
|
|
7232
|
+
* Sets the current locale and emits a change event.
|
|
7233
|
+
*
|
|
7234
|
+
* @param locale - The new locale to set
|
|
7235
|
+
*/
|
|
7236
|
+
setLocale(locale: TLanguageCode): void;
|
|
7237
|
+
/**
|
|
7238
|
+
* Subscribes to a locale event.
|
|
7239
|
+
*
|
|
7240
|
+
* @param event - The event name to subscribe to
|
|
7241
|
+
* @param handler - The event handler function
|
|
7242
|
+
* @returns An unsubscribe function
|
|
7243
|
+
*/
|
|
7244
|
+
on<K$1 extends keyof LocaleEvents>(event: K$1, handler: (...args: LocaleEvents[K$1]) => void): () => void;
|
|
7245
|
+
/**
|
|
7246
|
+
* Destroys the LocaleManager, cleaning up all listeners and data.
|
|
7247
|
+
*/
|
|
7248
|
+
destroy(): void;
|
|
7249
|
+
/**
|
|
7250
|
+
* Emits an event to all registered listeners.
|
|
7251
|
+
*
|
|
7252
|
+
* @param event - The event name
|
|
7253
|
+
* @param args - The event arguments
|
|
7254
|
+
*/
|
|
7255
|
+
private _emit;
|
|
7256
|
+
}
|
|
7257
|
+
//#endregion
|
|
7258
|
+
export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, AllEvents, BasePositionSource, BeforeRequestTimelineUriEvent, CompleteEvent, ConfigurationFactory, ConfigurationResolver, ContainerRequestEvent, ControllerNamesProvider, Controllers, CurrentTimelineChangeEvent, DOMEventListenerController, DomContainerProvider, DomContainerProviderConfig, DomMutationEvent, DurationEvent, DurationRequestEvent, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineEventbusAdapter, EngineEvents, EngineFactory, EngineInputAdapter, EventHandler, type EventMap, type EventName, Eventbus, ExtractOperationData, ExtractOperationDataType, ExtractReturnedOperationData, FirstFrameEvent, GetControllerByName, GetOperationByName, IAction, IActionConfiguration, IAdapter, 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, IContainerProvider, IContainerProviderConfig, IController, IControllerMetadata, type ICreateElementOperationData, type ICustomFunctionOperationData, type IDOMEventListenerControllerOperationData, IDimensions, IDuration, IEligiusEngine, type IEndActionOperationData, IEndableAction, IEndableActionConfiguration, IEngineConfiguration, IEngineFactory, IEngineFactoryOptions, IEngineFactoryResult, 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, type ILoadFromStorageOperationData, type ILoadJSONOperationData, ILocaleLoadResult, ILocaleLoader, ILocaleLoaderOptions, ILocaleManager, ILocaleManagerOptions, ILocaleReference, ILocalesConfiguration, type ILogOperationData, type ILottieControllerMetadata, type IMapArrayOperationData, type IMathOperationData, type IMutationEventPayload, type IMutationObserverControllerMetadata, type INavigationControllerOperationData, IOperationConfiguration, IOperationMetadata, IOperationScope, IPlaylist, IPlaylistConfig, IPositionSource, IPositionSourceConfig, 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, ISeekable, 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, ITimelineProviderInfo, ITimelineProviderSettings, type IToggleClassOperationData, type IToggleElementOperationData, type IToggleFormElementOperationData, ITypedEventEmitter, type IValidateFormOperationData, type IWaitOperationData, type IWhenOperationData, KeyboardStepSource, KeyboardStepSourceConfig, KeysOfType, LabelController, LanguageChangeEvent, LocaleEventbusAdapter, LocaleEvents, LocaleLoader, LocaleManager, LottieController, MutationObserverController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, Operations, PauseEvent, PauseRequestEvent, PlayEvent, PlayRequestEvent, PlayToggleRequestEvent, ProgressbarController, RafPositionSource, RafPositionSourceConfig, RequestActionEvent, RequestCurrentLanguageEvent, RequestCurrentTimelineEvent, RequestCurrentTimelinePositionEvent, RequestEngineRootEvent, RequestFunctionEvent, RequestInstanceEvent, RequestLabelCollectionEvent, RequestLabelCollectionsEvent, RequestTimelineCleanupEvent, RequestTimelineUriEvent, RequestVideoUriInterceptor, RequireKeys, ResizeEvent, ResizeRequestEvent, RestartEvent, RoutingController, ScrollPositionSource, ScrollPositionSourceConfig, SeekEvent, SeekRequestEvent, SeekedEvent, SimplePlaylist, SimplePlaylistConfig, StopEvent, StopRequestEvent, type StorageType, SubtitleEditor, SubtitleImporter, SubtitlesController, TArrayProperyMetadata, TBoundary, TComplexPropertyMetadata, TConstantParametersTypes, TControllerName, TControllerType, TEngineConfigurationLists, TEventHandler, TEventbusRemover, THasDescription, THasErased, THasRequired, type TLanguageCode, TLocaleData, TLocaleEntry, TLocaleValue, TOperation, TOperationCategory, TOperationData, TOperationName, TOperationResult, TOperationType, TParameterTypes, TParameterTypesDelimited, TPropertiesMetadata, TPropertyMetadata, TRequestResponder, TResultCallback, TSourceState, TTimelineProviderSettings, TVerticalMode, TimeEvent, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, TimelineTypes, TypedEventEmitter, VideoPositionSource, VideoPositionSourceConfig, VideoSource, 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, getAttributesFromElement, getControllerFromElement, getControllerInstance, getCurrentTime, getElementDimensions, getFocusedElement, getFormData, getImport, getQueryParams, getScrollPosition, getTextContent, httpDelete, httpPost, httpPut, invokeObjectMethod, isElementInViewport, isLocaleReference, isSeekable, loadFromStorage, loadJson, log, mapArray, math, index_d_exports$2 as metadata, 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 };
|
|
7034
7259
|
//# sourceMappingURL=index.d.mts.map
|