eligius 1.2.1 → 1.3.1

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __export } from "./chunk-CTAAG5j7.js";
1
+ import { t as __export } from "./chunk-Bp6m_JJh.js";
2
2
  import $ from "jquery";
3
3
  import { isDefined } from "ts-is-present";
4
4
  import fs from "node:fs";
@@ -114,14 +114,6 @@ function findMatchingOperationIndex(operation) {
114
114
  return false;
115
115
  }
116
116
 
117
- //#endregion
118
- //#region src/operation/helper/get-scope-var.ts
119
- const getScopeVar = (variables, identifier) => {
120
- const name = identifier.substring(1);
121
- return variables ? variables[name] : void 0;
122
- };
123
- const isVariableName = (value) => value.startsWith("@");
124
-
125
117
  //#endregion
126
118
  //#region src/operation/helper/get-property-chain-value.ts
127
119
  /**
@@ -199,15 +191,15 @@ function resolveExternalPropertyChain(sourceObject, operationScope, propertyChai
199
191
  if (isExternalProperty(propertyChainOrRegularObject)) {
200
192
  const propNames = propertyChainOrRegularObject.split(".");
201
193
  switch (propNames.shift().toLowerCase()) {
202
- case "operationdata": return getPropertyChainValue(propNames, sourceObject);
203
- case "globaldata": return getPropertyChainValue(propNames, getGlobals());
204
- case "scope": return getPropertyChainValue(propNames, operationScope);
194
+ case "$operationdata": return getPropertyChainValue(propNames, sourceObject);
195
+ case "$globaldata": return getPropertyChainValue(propNames, getGlobals());
196
+ case "$scope": return getPropertyChainValue(propNames, operationScope);
205
197
  }
206
198
  }
207
199
  return propertyChainOrRegularObject;
208
200
  }
209
201
  function isExternalProperty(value) {
210
- return typeof value === "string" && (value.toLocaleLowerCase().startsWith("operationdata.") || value.toLocaleLowerCase().startsWith("globaldata.") || value.toLocaleLowerCase().startsWith("scope.") || value.toLocaleLowerCase().startsWith("@"));
202
+ return typeof value === "string" && (value.toLocaleLowerCase().startsWith("$operationdata.") || value.toLocaleLowerCase().startsWith("$globaldata.") || value.toLocaleLowerCase().startsWith("$scope."));
211
203
  }
212
204
 
213
205
  //#endregion
@@ -216,15 +208,19 @@ function isExternalProperty(value) {
216
208
  * This operation iterates over the given collection.
217
209
  *
218
210
  * Each iteration the current item from the specified collection is
219
- * assigned to the {@link IOperationScope.currentItem} property on the operation scope.
211
+ * assigned to the {@link IOperationScope.currentItem|currentItem} property on the {@link IOperationScope|operation scope}.
220
212
  *
221
213
  * At the start of the loop, the associated {@link endForEach} operation is determined and when
222
214
  * the last iteration is completed the flow control is set to the index of that operation.
215
+ *
216
+ * The {@link continueForEach|continue} and {@link breakForEach|break} operations can be used to control the
217
+ * loop iterations.
218
+ *
223
219
  */
224
220
  const forEach = function(operationData) {
225
221
  const { collection } = operationData;
226
- const resolvedCollection = typeof collection === "string" ? isVariableName(collection) ? getScopeVar(this.variables, collection) : resolveExternalPropertyChain(operationData, this, collection) : collection;
227
- if (resolvedCollection !== null && resolvedCollection !== void 0 && !Array.isArray(resolvedCollection)) throw new Error("Expected collection to be array type, string value was probably not resolved correctly");
222
+ const resolvedCollection = typeof collection === "string" ? resolveExternalPropertyChain(operationData, this, collection) : collection;
223
+ if (resolvedCollection !== null && resolvedCollection !== void 0 && !Array.isArray(resolvedCollection)) throw new Error("Expected resolved collection property to be array type, string value was probably not resolved correctly");
228
224
  if (this.loopIndex === void 0) {
229
225
  this.loopEndIndex = findEndForEachIndex(this);
230
226
  if (resolvedCollection?.length) {
@@ -267,17 +263,17 @@ const endForEachSystemName = "endForEach";
267
263
  *
268
264
  * 'constant': for a constant string
269
265
  * 100: for a constant number
270
- * operationData.foo: for an operation data value
271
- * globaldata.foo: for a global data value
272
- * scope.loopIndex: for a scope value
266
+ * $operationData.foo: for an operation data value
267
+ * $globaldata.foo: for a global data value
268
+ * $scope.loopIndex: for a scope value
273
269
  * @foo: for a variable value
274
270
  *
275
271
  * @example
276
- * @foo=='bar'
272
+ * $scope.variables.foo=='bar'
277
273
  * @example
278
- * globalData.foo>@bar
274
+ * $globalData.foo>$scope.variables.bar
279
275
  * @example
280
- * operationData.foo!=100
276
+ * $operationData.foo!=100
281
277
  *
282
278
  * @param operationData
283
279
  * @returns
@@ -296,9 +292,9 @@ function parseExpression(expression, operationData, operationScope) {
296
292
  const leftNr = parseFloat(left);
297
293
  const rightNr = parseFloat(right);
298
294
  return [
299
- Number.isNaN(leftNr) ? isVariableName(left) ? getScopeVar(operationScope.variables, left) : resolveExternalPropertyChain(operationData, operationScope, left) : leftNr,
295
+ Number.isNaN(leftNr) ? resolveExternalPropertyChain(operationData, operationScope, left) : leftNr,
300
296
  operator,
301
- Number.isNaN(rightNr) ? isVariableName(right) ? getScopeVar(operationScope.variables, right) : resolveExternalPropertyChain(operationData, operationScope, right) : rightNr
297
+ Number.isNaN(rightNr) ? resolveExternalPropertyChain(operationData, operationScope, right) : rightNr
302
298
  ];
303
299
  }
304
300
  const evaluations = {
@@ -499,8 +495,7 @@ function dashToCamelCase(input) {
499
495
  * @param assetInfo
500
496
  */
501
497
  function generateImporterSourceCode(config, configPath, assetInfo) {
502
- const importPaths = _gatherImportPaths(config, configPath, assetInfo);
503
- return _generateSourceCode(importPaths);
498
+ return _generateSourceCode(_gatherImportPaths(config, configPath, assetInfo));
504
499
  }
505
500
  function _generateSourceCode(importPaths) {
506
501
  const result = importPaths.filter((x) => x.defaultImport).map((imp) => `import ${imp.systemName} from '${imp.path}';`).concat(importPaths.filter((x) => !x.defaultImport).map((imp) => `import {${imp.systemName}} from '${imp.path ?? "eligius"}';`));
@@ -569,13 +564,11 @@ function _gatherOperations(config) {
569
564
  }
570
565
  function _gatherControllerImportPathsFromActions(actionsConfig) {
571
566
  if (!actionsConfig) return [];
572
- const operations$1 = actionsConfig.flatMap((x) => [...x.startOperations, ...x.endOperations ?? []]);
573
- return _gatherControllerImportPaths(operations$1);
567
+ return _gatherControllerImportPaths(actionsConfig.flatMap((x) => [...x.startOperations, ...x.endOperations ?? []]));
574
568
  }
575
569
  function _gatherOperationImportPathsFromActions(actionsConfig) {
576
570
  if (!actionsConfig) return [];
577
- const operations$1 = actionsConfig.flatMap((x) => [...x.startOperations, ...x.endOperations ?? []]);
578
- return _gatherOperationImportPaths(operations$1);
571
+ return _gatherOperationImportPaths(actionsConfig.flatMap((x) => [...x.startOperations, ...x.endOperations ?? []]));
579
572
  }
580
573
  function _gatherControllerImportPaths(operationConfigs) {
581
574
  if (!operationConfigs) return [];
@@ -734,6 +727,26 @@ const animateWithClass = (operationData) => {
734
727
  return promise;
735
728
  };
736
729
 
730
+ //#endregion
731
+ //#region src/operation/break-for-each.ts
732
+ /**
733
+ *
734
+ * This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
735
+ * operation. This operation immediately moves to the loop end index, effectively stopping the loop.
736
+ *
737
+ */
738
+ const breakForEach = function(operationData) {
739
+ if (this.loopIndex !== void 0 && this.loopLength !== void 0) {
740
+ this.newIndex = this.loopEndIndex;
741
+ delete this.loopIndex;
742
+ delete this.loopLength;
743
+ delete this.loopStartIndex;
744
+ delete this.loopEndIndex;
745
+ delete this.currentItem;
746
+ }
747
+ return operationData;
748
+ };
749
+
737
750
  //#endregion
738
751
  //#region src/operation/helper/resolve-event-arguments.ts
739
752
  function resolveEventArguments(operationData, operationScope, eventArgs) {
@@ -768,8 +781,7 @@ const cache = [];
768
781
  */
769
782
  function resolvePropertyValues(operationData, operationScope, newProperties) {
770
783
  const copy = newProperties !== operationData ? deepCopy(newProperties) : newProperties;
771
- const resolvePropertyChain$1 = resolveExternalPropertyChain.bind(null, operationData, operationScope);
772
- resolveNewProperties(newProperties, copy, resolvePropertyChain$1);
784
+ resolveNewProperties(newProperties, copy, resolveExternalPropertyChain.bind(null, operationData, operationScope));
773
785
  return copy;
774
786
  }
775
787
  function resolveNewProperties(properties, copy, resolvePropertyChain$1) {
@@ -848,6 +860,23 @@ const clearOperationData = (operationData) => {
848
860
  return {};
849
861
  };
850
862
 
863
+ //#endregion
864
+ //#region src/operation/continue-for-each.ts
865
+ /**
866
+ *
867
+ * This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
868
+ * operation. This operation immediately moves to the next loop index, effectively canceling the rest
869
+ * of the operations in the current iteration.
870
+ *
871
+ */
872
+ const continueForEach = function(operationData) {
873
+ if (this.loopIndex !== void 0 && this.loopLength !== void 0) {
874
+ this.newIndex = this.loopEndIndex;
875
+ delete this.currentItem;
876
+ }
877
+ return operationData;
878
+ };
879
+
851
880
  //#endregion
852
881
  //#region src/operation/create-element.ts
853
882
  /**
@@ -871,7 +900,7 @@ const createElement = function(operationData) {
871
900
  //#endregion
872
901
  //#region src/timeline-event-names.ts
873
902
  /**
874
- * These are the event names that are being braodcast and/or handled by Eligius.
903
+ * These are the event names that are being broadcast and/or handled by Eligius.
875
904
  */
876
905
  var TimelineEventNames = class {
877
906
  /**
@@ -990,11 +1019,10 @@ const endAction = (operationData) => {
990
1019
  return new Promise((resolve, reject) => {
991
1020
  newOperationData = mergeOperationData(newOperationData, actionOperationData);
992
1021
  newOperationData.actionInstance.end(newOperationData).then(() => {
993
- const sanitizedData = Object.keys(newOperationData).filter((key) => !(key in actionOperationData)).reduce((acc, key) => {
1022
+ internalResolve(resolve, Object.keys(newOperationData).filter((key) => !(key in actionOperationData)).reduce((acc, key) => {
994
1023
  acc[key] = newOperationData[key];
995
1024
  return acc;
996
- }, {});
997
- internalResolve(resolve, sanitizedData);
1025
+ }, {}));
998
1026
  }, reject);
999
1027
  });
1000
1028
  };
@@ -1326,8 +1354,9 @@ const loadJson = async (operationData) => {
1326
1354
  */
1327
1355
  const log = function(operationData) {
1328
1356
  if ("logValue" in operationData) {
1329
- console.log("logValue", operationData.logValue);
1357
+ console.log(operationData.logName ?? "logValue", operationData.logValue);
1330
1358
  delete operationData.logValue;
1359
+ delete operationData.logName;
1331
1360
  } else {
1332
1361
  const globalData = getGlobals();
1333
1362
  console.group("Operation info");
@@ -1518,9 +1547,9 @@ const selectElement = function(operationData) {
1518
1547
  * @example The various ways of assigning data
1519
1548
  * ```ts
1520
1549
  * setData({
1521
- * 'operationdata.foo': 'scope.currentItem', // scope.currentItem will be assigned to operationdata.foo
1522
- * 'globaldata.foo': 'scope.currentItem', // scope.currentItem will be assigned to globaldata.foo
1523
- * 'scope.newIndex': 100, // The constant 100 will be assigned to scope.newIndex
1550
+ * '$operationdata.foo': '$scope.currentItem', // $scope.currentItem will be assigned to $operationdata.foo
1551
+ * '$globaldata.foo': '$scope.currentItem', // $scope.currentItem will be assigned to $globaldata.foo
1552
+ * '$scope.newIndex': 100, // The constant 100 will be assigned to $scope.newIndex
1524
1553
  * })
1525
1554
  * ```
1526
1555
  */
@@ -1533,16 +1562,15 @@ const setData = function(operationData) {
1533
1562
  function resolveTargets(data, operationData, scope) {
1534
1563
  return Object.keys(data).forEach((item) => {
1535
1564
  const path$1 = item.split(".");
1536
- const rootTarget = path$1.shift()?.toLowerCase() ?? "";
1565
+ const rootTarget = path$1.shift()?.toLowerCase().substring(1) ?? "";
1537
1566
  if (!isDataTarget(rootTarget)) throw new Error(`Unrecognized target: ${rootTarget}, known targets are: ${knownTargets.join(", ")}`);
1538
1567
  const property = path$1.pop() ?? "";
1539
1568
  const propertyValue = resolveExternalPropertyChain(operationData, scope, data[item]);
1540
- const targets = {
1569
+ const propertyTarget = getPropertyChainValue(path$1, {
1541
1570
  scope,
1542
1571
  operationdata: operationData,
1543
1572
  globaldata: getGlobals()
1544
- };
1545
- const propertyTarget = getPropertyChainValue(path$1, targets[rootTarget]);
1573
+ }[rootTarget]);
1546
1574
  propertyTarget[property] = propertyValue;
1547
1575
  });
1548
1576
  }
@@ -1603,8 +1631,7 @@ const setElementContent = (operationData) => {
1603
1631
  */
1604
1632
  const setGlobalData = (operationData) => {
1605
1633
  const { propertyNames,...newOperationData } = operationData;
1606
- const newGlobals = Object.fromEntries(Object.entries(operationData).filter(([name, _value]) => propertyNames.includes(name)));
1607
- setGlobals(newGlobals);
1634
+ setGlobals(Object.fromEntries(Object.entries(operationData).filter(([name, _value]) => propertyNames.includes(name))));
1608
1635
  return newOperationData;
1609
1636
  };
1610
1637
 
@@ -1726,10 +1753,12 @@ var operation_exports = /* @__PURE__ */ __export({
1726
1753
  addGlobalsToOperation: () => addGlobalsToOperation,
1727
1754
  animate: () => animate,
1728
1755
  animateWithClass: () => animateWithClass,
1756
+ breakForEach: () => breakForEach,
1729
1757
  broadcastEvent: () => broadcastEvent,
1730
1758
  calc: () => calc,
1731
1759
  clearElement: () => clearElement,
1732
1760
  clearOperationData: () => clearOperationData,
1761
+ continueForEach: () => continueForEach,
1733
1762
  createElement: () => createElement,
1734
1763
  customFunction: () => customFunction,
1735
1764
  endAction: () => endAction,
@@ -2141,8 +2170,7 @@ var ActionEditor = class {
2141
2170
  if (!operation) throw new Error(`start operation not found for id ${id}`);
2142
2171
  const idx = startOperations.indexOf(operation);
2143
2172
  if (idx > -1) {
2144
- const newIdx = direction === "up" ? idx + 1 : idx - 1;
2145
- array_move(startOperations, idx, newIdx);
2173
+ array_move(startOperations, idx, direction === "up" ? idx + 1 : idx - 1);
2146
2174
  this.actionConfig = {
2147
2175
  ...this.actionConfig,
2148
2176
  startOperations
@@ -2248,8 +2276,7 @@ var EndableActionEditor = class extends ActionEditor {
2248
2276
  if (!isDefined(operation)) throw new Error(`operation not found for id ${id}`);
2249
2277
  const idx = endOperations.indexOf(operation);
2250
2278
  if (idx > -1) {
2251
- const newIdx = direction === "up" ? idx + 1 : idx - 1;
2252
- array_move(endOperations, idx, newIdx);
2279
+ array_move(endOperations, idx, direction === "up" ? idx + 1 : idx - 1);
2253
2280
  this.actionConfig = {
2254
2281
  ...this.actionConfig,
2255
2282
  endOperations
@@ -2468,9 +2495,7 @@ function animationInterval(ms, signal, callback) {
2468
2495
  };
2469
2496
  const { round } = Math;
2470
2497
  const scheduleFrame = (time) => {
2471
- const elapsed = time - start;
2472
- const roundedElapsed = round(elapsed / ms) * ms;
2473
- const delay = start + roundedElapsed + ms - performance.now();
2498
+ const delay = start + round((time - start) / ms) * ms + ms - performance.now();
2474
2499
  setTimeout(() => requestAnimationFrame(frame), delay);
2475
2500
  };
2476
2501
  scheduleFrame(start);
@@ -2685,8 +2710,7 @@ var VideoJsTimelineProvider = class {
2685
2710
  return this._player?.duration() ?? 0;
2686
2711
  }
2687
2712
  getContainer() {
2688
- const selector = this.config.timelineProviderSettings.mediaplayer?.selector ?? "";
2689
- return $(selector);
2713
+ return $(this.config.timelineProviderSettings.mediaplayer?.selector ?? "");
2690
2714
  }
2691
2715
  destroy() {
2692
2716
  this._eventHandlers.forEach((remover) => remover());
@@ -2919,6 +2943,7 @@ var ConfigurationFactory = class ConfigurationFactory {
2919
2943
  id: v4(),
2920
2944
  engine: { systemName: "EligiusEngine" },
2921
2945
  containerSelector: "[data-ct-container=true]",
2946
+ cssFiles: [],
2922
2947
  timelineProviderSettings: {},
2923
2948
  language: defaultLanguage,
2924
2949
  availableLanguages: [],
@@ -2990,10 +3015,7 @@ var ConfigurationFactory = class ConfigurationFactory {
2990
3015
  */
2991
3016
  getConfiguration(callBack) {
2992
3017
  const copy = deepCopy(this.configuration);
2993
- if (callBack) {
2994
- const newConfig = callBack.call(this, copy);
2995
- this.configuration = deepCopy(newConfig);
2996
- }
3018
+ if (callBack) this.configuration = deepCopy(callBack.call(this, copy));
2997
3019
  return copy;
2998
3020
  }
2999
3021
  /**
@@ -4009,6 +4031,14 @@ It resolves after the animation completes.`,
4009
4031
  };
4010
4032
  }
4011
4033
 
4034
+ //#endregion
4035
+ //#region src/operation/metadata/break-for-each.ts
4036
+ function breakForEach$1() {
4037
+ return { description: `
4038
+ This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
4039
+ operation. This operation immediately moves to the loop end index, effectively stopping the loop.` };
4040
+ }
4041
+
4012
4042
  //#endregion
4013
4043
  //#region src/operation/metadata/broadcast-event.ts
4014
4044
  function broadcastEvent$1() {
@@ -4090,6 +4120,15 @@ Or, if the \`properties\` property is set only removes the properties defined by
4090
4120
  };
4091
4121
  }
4092
4122
 
4123
+ //#endregion
4124
+ //#region src/operation/metadata/continue-for-each.ts
4125
+ function continueForEach$1() {
4126
+ return { description: `
4127
+ This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
4128
+ operation. This operation immediately moves to the next loop index, effectively canceling the rest
4129
+ of the operations in the current iteration.` };
4130
+ }
4131
+
4093
4132
  //#endregion
4094
4133
  //#region src/operation/metadata/create-element.ts
4095
4134
  function createElement$1() {
@@ -4180,10 +4219,13 @@ function forEach$1() {
4180
4219
  description: `This operation iterates over the given collection.
4181
4220
 
4182
4221
  Each iteration the current item from the specified collection is
4183
- assigned to the {@link IOperationScope.currentItem} property on the operation scope.
4222
+ assigned to the {@link IOperationScope.currentItem |currentItem} property on the {@link IOperationScope |operation scope}.
4184
4223
 
4185
4224
  At the start of the loop, the associated {@link endForEach} operation is determined and when
4186
- the last iteration is completed the flow control is set to the index of that operation.`,
4225
+ the last iteration is completed the flow control is set to the index of that operation.
4226
+
4227
+ The {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the
4228
+ loop iterations.`,
4187
4229
  properties: { collection: {
4188
4230
  type: "ParameterType:array|ParameterType:string",
4189
4231
  required: true
@@ -4352,10 +4394,16 @@ function log$1() {
4352
4394
  return {
4353
4395
  description: `This operation logs the specified value, or, when no logValue property has been assigned
4354
4396
  it will log the current operation data, global data and scope to the console`,
4355
- properties: { logValue: {
4356
- type: "ParameterType:object",
4357
- erased: true
4358
- } }
4397
+ properties: {
4398
+ logValue: {
4399
+ type: "ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array",
4400
+ erased: true
4401
+ },
4402
+ logName: {
4403
+ type: "ParameterType:string",
4404
+ erased: true
4405
+ }
4406
+ }
4359
4407
  };
4360
4408
  }
4361
4409
 
@@ -4598,7 +4646,7 @@ function setStyle$1() {
4598
4646
  given selected element.`,
4599
4647
  dependentProperties: ["selectedElement"],
4600
4648
  properties: { properties: {
4601
- type: "ParameterType:object",
4649
+ type: "ParameterType:cssProperties",
4602
4650
  required: true,
4603
4651
  erased: true
4604
4652
  } }
@@ -4617,7 +4665,7 @@ function setVariable$1() {
4617
4665
  erased: true
4618
4666
  },
4619
4667
  value: {
4620
- type: "ParameterType:object",
4668
+ type: "ParameterType:object|ParameterType:string|ParameterType:number|ParameterType:boolean|ParameterType:array",
4621
4669
  required: true,
4622
4670
  erased: true
4623
4671
  }
@@ -4698,9 +4746,9 @@ The left and right values of the expression can be defined like this:
4698
4746
 
4699
4747
  'constant': for a constant string
4700
4748
  100: for a constant number
4701
- operationData.foo: for an operation data value
4702
- globaldata.foo: for a global data value
4703
- scope.loopIndex: for a scope value`,
4749
+ $operationData.foo: for an operation data value
4750
+ $globaldata.foo: for a global data value
4751
+ $scope.loopIndex: for a scope value`,
4704
4752
  properties: { expression: {
4705
4753
  type: "ParameterType:expression",
4706
4754
  required: true,
@@ -4717,10 +4765,12 @@ var metadata_exports = /* @__PURE__ */ __export({
4717
4765
  addGlobalsToOperation: () => addGlobalsToOperation$1,
4718
4766
  animate: () => animate$1,
4719
4767
  animateWithClass: () => animateWithClass$1,
4768
+ breakForEach: () => breakForEach$1,
4720
4769
  broadcastEvent: () => broadcastEvent$1,
4721
4770
  calc: () => calc$1,
4722
4771
  clearElement: () => clearElement$1,
4723
4772
  clearOperationData: () => clearOperationData$1,
4773
+ continueForEach: () => continueForEach$1,
4724
4774
  createElement: () => createElement$1,
4725
4775
  customFunction: () => customFunction$1,
4726
4776
  endAction: () => endAction$1,
@@ -4950,8 +5000,7 @@ var SubtitleEditor = class {
4950
5000
  * The result of the invocation `resolvePropertyChain('mySource.subSource.element.value', foo)` would then yield the value `bar`.
4951
5001
  */
4952
5002
  function resolvePropertyChain(propertyChain, sourceObject) {
4953
- const properties = propertyChain.split(".");
4954
- return getPropertyChainValue(properties, sourceObject);
5003
+ return getPropertyChainValue(propertyChain.split("."), sourceObject);
4955
5004
  }
4956
5005
 
4957
5006
  //#endregion
@@ -4976,6 +5025,7 @@ var ConfigurationResolver = class {
4976
5025
  engine: { ...configuration.engine },
4977
5026
  timelineProviderSettings: deepCopy(configuration.timelineProviderSettings),
4978
5027
  containerSelector: configuration.containerSelector,
5028
+ cssFiles: configuration.cssFiles,
4979
5029
  language: configuration.language,
4980
5030
  layoutTemplate: configuration.layoutTemplate,
4981
5031
  availableLanguages: deepCopy(configuration.availableLanguages),
@@ -5064,10 +5114,8 @@ function resolvePlaceholders(configFragment, rootConfig, importer) {
5064
5114
  function resolvePlaceholder(key, configFragment, rootConfig, importer) {
5065
5115
  const configValue = configFragment[key];
5066
5116
  if (isString(configValue)) {
5067
- if (configValue.startsWith("config:")) {
5068
- const configProperty = configValue.substring(7, configValue.length);
5069
- configFragment[key] = resolvePropertyChain(configProperty, rootConfig);
5070
- } else if (configValue.startsWith("template:")) {
5117
+ if (configValue.startsWith("config:")) configFragment[key] = resolvePropertyChain(configValue.substring(7, configValue.length), rootConfig);
5118
+ else if (configValue.startsWith("template:")) {
5071
5119
  const templateKey = configValue.substring(9, configValue.length);
5072
5120
  configFragment[key] = importer.import(templateKey)[templateKey];
5073
5121
  } else if (configValue.startsWith("json:")) {
@@ -5556,10 +5604,9 @@ var LanguageManager = class {
5556
5604
  resultCallback(this._labelLookup[labelId]);
5557
5605
  }
5558
5606
  _handleRequestLabelCollections(labelIds, resultCallback) {
5559
- const labelCollections = labelIds.map((labelId) => {
5607
+ resultCallback(labelIds.map((labelId) => {
5560
5608
  return this._labelLookup[labelId];
5561
- });
5562
- resultCallback(labelCollections);
5609
+ }));
5563
5610
  }
5564
5611
  _handleLanguageChange(language) {
5565
5612
  this._currentLanguage = language;
@@ -5755,5 +5802,5 @@ var EligiusResourceImporter = class {
5755
5802
  };
5756
5803
 
5757
5804
  //#endregion
5758
- export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, DEV_TOOLS_KEY, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, EventListenerController, Eventbus, LabelController, LanguageManager, LottieController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, ProgressbarController, RequestAnimationFrameTimelineProvider, RequestVideoUriInterceptor, RoutingController, SubtitleEditor, SubtitleImporter, SubtitlesController, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineEventNames, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, VideoJsTimelineProvider, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, broadcastEvent, calc, clearElement, clearOperationData, createElement, customFunction, endAction, endForEach, endWhen, extendController, forEach, generateImporterSourceCode, getAttributesFromElement, getControllerFromElement, getControllerInstance, getElementDimensions, getImport, getQueryParams, invokeObjectMethod, loadJson, log, math, metadata_exports as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
5805
+ export { Action, ActionCreator, ActionCreatorFactory, ActionEditor, ActionRegistryEventbusListener, ConfigurationFactory, ConfigurationResolver, ControllerNamesProvider, DEV_TOOLS_KEY, DevToolEventListener, Diagnostics, EligiusEngine, EligiusResourceImporter, EndableAction, EndableActionCreator, EndableActionEditor, EngineFactory, EventListenerController, Eventbus, LabelController, LanguageManager, LottieController, NavigationController, OperationEditor, OperationMetadataProvider, OperationNamesProvider, ProgressbarController, RequestAnimationFrameTimelineProvider, RequestVideoUriInterceptor, RoutingController, SubtitleEditor, SubtitleImporter, SubtitlesController, TimeLineEventNamesProvider, TimelineAction, TimelineActionCreator, TimelineActionEditor, TimelineEventNames, TimelineProviderSettingsEditor, TimelineProvidersSettingsEditor, VideoJsTimelineProvider, addClass, addControllerToElement, addGlobalsToOperation, animate, animateWithClass, breakForEach, broadcastEvent, calc, clearElement, clearOperationData, continueForEach, createElement, customFunction, endAction, endForEach, endWhen, extendController, forEach, generateImporterSourceCode, getAttributesFromElement, getControllerFromElement, getControllerInstance, getElementDimensions, getImport, getQueryParams, invokeObjectMethod, loadJson, log, math, metadata_exports as metadata, otherwise, removeClass, removeControllerFromElement, removeElement, removePropertiesFromOperationData, reparentElement, requestAction, selectElement, setData, setElementAttributes, setElementContent, setGlobalData, setOperationData, setStyle, setVariable, startAction, toggleClass, toggleElement, wait, when };
5759
5806
  //# sourceMappingURL=index.js.map