eligius 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +281 -4
- package/dist/configuration/types.d.ts +1 -1
- package/dist/eligius-engine.d.ts +27 -31
- package/dist/eligius.cjs.development.js +1217 -1126
- package/dist/eligius.cjs.development.js.map +1 -1
- package/dist/eligius.cjs.production.min.js +1 -1
- package/dist/eligius.cjs.production.min.js.map +1 -1
- package/dist/eligius.esm.js +1182 -1092
- package/dist/eligius.esm.js.map +1 -1
- package/dist/eventbus/types.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/operation/get-controller-instance.d.ts +2 -0
- package/dist/operation/helper/get-element-data.d.ts +1 -0
- package/dist/operation/helper/modify-dimensions.d.ts +4 -1
- package/dist/operation/metadata/add-globals-to-operation.d.ts +2 -2
- package/dist/operation/metadata/types.d.ts +11 -3
- package/dist/operation/select-element.d.ts +2 -0
- package/dist/operation/wait.d.ts +3 -0
- package/dist/{test/unit/operation → util}/apply-operation.d.ts +1 -1
- package/package.json +89 -97
- package/CHANGELOG.md +0 -16
package/dist/eligius.esm.js
CHANGED
|
@@ -6,6 +6,10 @@ import { v4 } from 'uuid';
|
|
|
6
6
|
|
|
7
7
|
function deepCopy(original) {
|
|
8
8
|
if (isDefined(original)) {
|
|
9
|
+
if (typeof structuredClone !== 'undefined') {
|
|
10
|
+
return structuredClone(original);
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
return JSON.parse(JSON.stringify(original));
|
|
10
14
|
}
|
|
11
15
|
|
|
@@ -72,16 +76,16 @@ var Action = /*#__PURE__*/function () {
|
|
|
72
76
|
var operationInfo = operations[idx];
|
|
73
77
|
var copy = operationInfo.operationData ? deepCopy(operationInfo.operationData) : {};
|
|
74
78
|
var mergedOperationData = Object.assign(previousOperationData, copy);
|
|
75
|
-
var
|
|
79
|
+
var operationResult = operationInfo.instance.call(context, mergedOperationData);
|
|
76
80
|
|
|
77
|
-
if (isPromise(
|
|
78
|
-
|
|
81
|
+
if (isPromise(operationResult)) {
|
|
82
|
+
operationResult.then(function (resultOperationData) {
|
|
79
83
|
_this2.executeOperation(operations, ++idx, resolve, reject, resultOperationData, context);
|
|
80
84
|
})["catch"](function (error) {
|
|
81
85
|
reject(error);
|
|
82
86
|
});
|
|
83
87
|
} else {
|
|
84
|
-
this.executeOperation(operations, ++idx, resolve, reject,
|
|
88
|
+
this.executeOperation(operations, ++idx, resolve, reject, operationResult, context);
|
|
85
89
|
}
|
|
86
90
|
} else {
|
|
87
91
|
resolve(previousOperationData);
|
|
@@ -91,6 +95,351 @@ var Action = /*#__PURE__*/function () {
|
|
|
91
95
|
return Action;
|
|
92
96
|
}();
|
|
93
97
|
|
|
98
|
+
function _regeneratorRuntime() {
|
|
99
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
100
|
+
|
|
101
|
+
_regeneratorRuntime = function () {
|
|
102
|
+
return exports;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
var exports = {},
|
|
106
|
+
Op = Object.prototype,
|
|
107
|
+
hasOwn = Op.hasOwnProperty,
|
|
108
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
109
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
110
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
111
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
112
|
+
|
|
113
|
+
function define(obj, key, value) {
|
|
114
|
+
return Object.defineProperty(obj, key, {
|
|
115
|
+
value: value,
|
|
116
|
+
enumerable: !0,
|
|
117
|
+
configurable: !0,
|
|
118
|
+
writable: !0
|
|
119
|
+
}), obj[key];
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
try {
|
|
123
|
+
define({}, "");
|
|
124
|
+
} catch (err) {
|
|
125
|
+
define = function (obj, key, value) {
|
|
126
|
+
return obj[key] = value;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
131
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
132
|
+
generator = Object.create(protoGenerator.prototype),
|
|
133
|
+
context = new Context(tryLocsList || []);
|
|
134
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
135
|
+
var state = "suspendedStart";
|
|
136
|
+
return function (method, arg) {
|
|
137
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
138
|
+
|
|
139
|
+
if ("completed" === state) {
|
|
140
|
+
if ("throw" === method) throw arg;
|
|
141
|
+
return doneResult();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
for (context.method = method, context.arg = arg;;) {
|
|
145
|
+
var delegate = context.delegate;
|
|
146
|
+
|
|
147
|
+
if (delegate) {
|
|
148
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
149
|
+
|
|
150
|
+
if (delegateResult) {
|
|
151
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
152
|
+
return delegateResult;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
157
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
158
|
+
context.dispatchException(context.arg);
|
|
159
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
160
|
+
state = "executing";
|
|
161
|
+
var record = tryCatch(innerFn, self, context);
|
|
162
|
+
|
|
163
|
+
if ("normal" === record.type) {
|
|
164
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
165
|
+
return {
|
|
166
|
+
value: record.arg,
|
|
167
|
+
done: context.done
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
}(innerFn, self, context), generator;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function tryCatch(fn, obj, arg) {
|
|
178
|
+
try {
|
|
179
|
+
return {
|
|
180
|
+
type: "normal",
|
|
181
|
+
arg: fn.call(obj, arg)
|
|
182
|
+
};
|
|
183
|
+
} catch (err) {
|
|
184
|
+
return {
|
|
185
|
+
type: "throw",
|
|
186
|
+
arg: err
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
exports.wrap = wrap;
|
|
192
|
+
var ContinueSentinel = {};
|
|
193
|
+
|
|
194
|
+
function Generator() {}
|
|
195
|
+
|
|
196
|
+
function GeneratorFunction() {}
|
|
197
|
+
|
|
198
|
+
function GeneratorFunctionPrototype() {}
|
|
199
|
+
|
|
200
|
+
var IteratorPrototype = {};
|
|
201
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
202
|
+
return this;
|
|
203
|
+
});
|
|
204
|
+
var getProto = Object.getPrototypeOf,
|
|
205
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
206
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
207
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
208
|
+
|
|
209
|
+
function defineIteratorMethods(prototype) {
|
|
210
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
211
|
+
define(prototype, method, function (arg) {
|
|
212
|
+
return this._invoke(method, arg);
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
218
|
+
function invoke(method, arg, resolve, reject) {
|
|
219
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
220
|
+
|
|
221
|
+
if ("throw" !== record.type) {
|
|
222
|
+
var result = record.arg,
|
|
223
|
+
value = result.value;
|
|
224
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
225
|
+
invoke("next", value, resolve, reject);
|
|
226
|
+
}, function (err) {
|
|
227
|
+
invoke("throw", err, resolve, reject);
|
|
228
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
229
|
+
result.value = unwrapped, resolve(result);
|
|
230
|
+
}, function (error) {
|
|
231
|
+
return invoke("throw", error, resolve, reject);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
reject(record.arg);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
var previousPromise;
|
|
239
|
+
|
|
240
|
+
this._invoke = function (method, arg) {
|
|
241
|
+
function callInvokeWithMethodAndArg() {
|
|
242
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
243
|
+
invoke(method, arg, resolve, reject);
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
252
|
+
var method = delegate.iterator[context.method];
|
|
253
|
+
|
|
254
|
+
if (undefined === method) {
|
|
255
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
256
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
257
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return ContinueSentinel;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
264
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
265
|
+
var info = record.arg;
|
|
266
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
function pushTryEntry(locs) {
|
|
270
|
+
var entry = {
|
|
271
|
+
tryLoc: locs[0]
|
|
272
|
+
};
|
|
273
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function resetTryEntry(entry) {
|
|
277
|
+
var record = entry.completion || {};
|
|
278
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
function Context(tryLocsList) {
|
|
282
|
+
this.tryEntries = [{
|
|
283
|
+
tryLoc: "root"
|
|
284
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function values(iterable) {
|
|
288
|
+
if (iterable) {
|
|
289
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
290
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
291
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
292
|
+
|
|
293
|
+
if (!isNaN(iterable.length)) {
|
|
294
|
+
var i = -1,
|
|
295
|
+
next = function next() {
|
|
296
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
297
|
+
|
|
298
|
+
return next.value = undefined, next.done = !0, next;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
return next.next = next;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
return {
|
|
306
|
+
next: doneResult
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
function doneResult() {
|
|
311
|
+
return {
|
|
312
|
+
value: undefined,
|
|
313
|
+
done: !0
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
318
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
319
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
320
|
+
}, exports.mark = function (genFun) {
|
|
321
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
322
|
+
}, exports.awrap = function (arg) {
|
|
323
|
+
return {
|
|
324
|
+
__await: arg
|
|
325
|
+
};
|
|
326
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
327
|
+
return this;
|
|
328
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
329
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
330
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
331
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
332
|
+
return result.done ? result.value : iter.next();
|
|
333
|
+
});
|
|
334
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
335
|
+
return this;
|
|
336
|
+
}), define(Gp, "toString", function () {
|
|
337
|
+
return "[object Generator]";
|
|
338
|
+
}), exports.keys = function (object) {
|
|
339
|
+
var keys = [];
|
|
340
|
+
|
|
341
|
+
for (var key in object) keys.push(key);
|
|
342
|
+
|
|
343
|
+
return keys.reverse(), function next() {
|
|
344
|
+
for (; keys.length;) {
|
|
345
|
+
var key = keys.pop();
|
|
346
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
return next.done = !0, next;
|
|
350
|
+
};
|
|
351
|
+
}, exports.values = values, Context.prototype = {
|
|
352
|
+
constructor: Context,
|
|
353
|
+
reset: function (skipTempReset) {
|
|
354
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
355
|
+
},
|
|
356
|
+
stop: function () {
|
|
357
|
+
this.done = !0;
|
|
358
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
359
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
360
|
+
return this.rval;
|
|
361
|
+
},
|
|
362
|
+
dispatchException: function (exception) {
|
|
363
|
+
if (this.done) throw exception;
|
|
364
|
+
var context = this;
|
|
365
|
+
|
|
366
|
+
function handle(loc, caught) {
|
|
367
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
371
|
+
var entry = this.tryEntries[i],
|
|
372
|
+
record = entry.completion;
|
|
373
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
374
|
+
|
|
375
|
+
if (entry.tryLoc <= this.prev) {
|
|
376
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
377
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
378
|
+
|
|
379
|
+
if (hasCatch && hasFinally) {
|
|
380
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
381
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
382
|
+
} else if (hasCatch) {
|
|
383
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
384
|
+
} else {
|
|
385
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
386
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
abrupt: function (type, arg) {
|
|
392
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
393
|
+
var entry = this.tryEntries[i];
|
|
394
|
+
|
|
395
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
396
|
+
var finallyEntry = entry;
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
402
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
403
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
404
|
+
},
|
|
405
|
+
complete: function (record, afterLoc) {
|
|
406
|
+
if ("throw" === record.type) throw record.arg;
|
|
407
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
408
|
+
},
|
|
409
|
+
finish: function (finallyLoc) {
|
|
410
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
411
|
+
var entry = this.tryEntries[i];
|
|
412
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
catch: function (tryLoc) {
|
|
416
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
417
|
+
var entry = this.tryEntries[i];
|
|
418
|
+
|
|
419
|
+
if (entry.tryLoc === tryLoc) {
|
|
420
|
+
var record = entry.completion;
|
|
421
|
+
|
|
422
|
+
if ("throw" === record.type) {
|
|
423
|
+
var thrown = record.arg;
|
|
424
|
+
resetTryEntry(entry);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return thrown;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
throw new Error("illegal catch attempt");
|
|
432
|
+
},
|
|
433
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
434
|
+
return this.delegate = {
|
|
435
|
+
iterator: values(iterable),
|
|
436
|
+
resultName: resultName,
|
|
437
|
+
nextLoc: nextLoc
|
|
438
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
439
|
+
}
|
|
440
|
+
}, exports;
|
|
441
|
+
}
|
|
442
|
+
|
|
94
443
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
95
444
|
try {
|
|
96
445
|
var info = gen[key](arg);
|
|
@@ -128,7 +477,7 @@ function _asyncToGenerator(fn) {
|
|
|
128
477
|
}
|
|
129
478
|
|
|
130
479
|
function _extends() {
|
|
131
|
-
_extends = Object.assign
|
|
480
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
132
481
|
for (var i = 1; i < arguments.length; i++) {
|
|
133
482
|
var source = arguments[i];
|
|
134
483
|
|
|
@@ -141,7 +490,6 @@ function _extends() {
|
|
|
141
490
|
|
|
142
491
|
return target;
|
|
143
492
|
};
|
|
144
|
-
|
|
145
493
|
return _extends.apply(this, arguments);
|
|
146
494
|
}
|
|
147
495
|
|
|
@@ -153,11 +501,10 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
153
501
|
}
|
|
154
502
|
|
|
155
503
|
function _setPrototypeOf(o, p) {
|
|
156
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
504
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
157
505
|
o.__proto__ = p;
|
|
158
506
|
return o;
|
|
159
507
|
};
|
|
160
|
-
|
|
161
508
|
return _setPrototypeOf(o, p);
|
|
162
509
|
}
|
|
163
510
|
|
|
@@ -251,943 +598,184 @@ function getNestedValue(properties, sourceObject) {
|
|
|
251
598
|
|
|
252
599
|
if (parts.length > 1) {
|
|
253
600
|
prop = parts[0];
|
|
254
|
-
suffix = parts[1];
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
currentInstance = currentInstance[prop];
|
|
259
|
-
});
|
|
260
|
-
return suffix ? currentInstance + suffix : currentInstance;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
function getNestedPropertyValue(propertyChain, sourceObject) {
|
|
264
|
-
var properties = propertyChain.split('.');
|
|
265
|
-
return getNestedValue(properties, sourceObject);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
var ConfigurationResolver = /*#__PURE__*/function () {
|
|
269
|
-
function ConfigurationResolver(importer, eventbus) {
|
|
270
|
-
this.importer = void 0;
|
|
271
|
-
this.eventbus = void 0;
|
|
272
|
-
this.importer = importer;
|
|
273
|
-
this.eventbus = eventbus;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
var _proto = ConfigurationResolver.prototype;
|
|
277
|
-
|
|
278
|
-
_proto.process = function process(configuration, actionRegistryListener) {
|
|
279
|
-
resolvePlaceholders(configuration, configuration, this.importer);
|
|
280
|
-
|
|
281
|
-
if (!isDefined(configuration.timelineProviderSettings)) {
|
|
282
|
-
throw new Error('Configuration incomplete: it needs to have at least one timeline provider setting');
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
var resolvedConfig = {
|
|
286
|
-
id: configuration.id,
|
|
287
|
-
engine: _extends({}, configuration.engine),
|
|
288
|
-
timelineProviderSettings: deepCopy(configuration.timelineProviderSettings),
|
|
289
|
-
containerSelector: configuration.containerSelector,
|
|
290
|
-
language: configuration.language,
|
|
291
|
-
layoutTemplate: configuration.layoutTemplate,
|
|
292
|
-
availableLanguages: deepCopy(configuration.availableLanguages),
|
|
293
|
-
actions: resolveActions(configuration.actions, this.importer, this.eventbus),
|
|
294
|
-
initActions: resolveActions(configuration.initActions, this.importer, this.eventbus),
|
|
295
|
-
labels: deepCopy(configuration.labels),
|
|
296
|
-
timelineFlow: deepCopy(configuration.timelineFlow),
|
|
297
|
-
timelines: resolveTimelines(configuration.timelines, this.importer, this.eventbus)
|
|
298
|
-
};
|
|
299
|
-
var eventActions = [];
|
|
300
|
-
|
|
301
|
-
if (configuration.eventActions && actionRegistryListener) {
|
|
302
|
-
eventActions = resolveEventActions(configuration.eventActions, actionRegistryListener, this.importer, this.eventbus);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
var actionsLookup = resolvedConfig.actions.concat(eventActions).reduce(function (aggr, action) {
|
|
306
|
-
var _extends2;
|
|
307
|
-
|
|
308
|
-
return _extends({}, aggr, (_extends2 = {}, _extends2[action.name] = action, _extends2));
|
|
309
|
-
}, {});
|
|
310
|
-
return [actionsLookup, resolvedConfig];
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
return ConfigurationResolver;
|
|
314
|
-
}();
|
|
315
|
-
|
|
316
|
-
function resolveEventActions(eventActionConfigurations, actionRegistryListener, importer, eventbus) {
|
|
317
|
-
var resolvedConfigs = eventActionConfigurations.map(function (config) {
|
|
318
|
-
return resolveActionConfiguration(config, importer);
|
|
319
|
-
});
|
|
320
|
-
return resolvedConfigs.map(function (config, index) {
|
|
321
|
-
var _eventActionConfigura = eventActionConfigurations[index],
|
|
322
|
-
eventName = _eventActionConfigura.eventName,
|
|
323
|
-
eventTopic = _eventActionConfigura.eventTopic;
|
|
324
|
-
var eventAction = new Action(config.name, config.startOperations, eventbus);
|
|
325
|
-
actionRegistryListener.registerAction(eventAction, eventName, eventTopic);
|
|
326
|
-
return eventAction;
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
function resolveTimelines(timelines, importer, eventbus) {
|
|
331
|
-
var resolve = resolveTimelineAction.bind(null, importer, eventbus);
|
|
332
|
-
return timelines.map(function (config) {
|
|
333
|
-
return _extends({}, config, {
|
|
334
|
-
timelineActions: config.timelineActions.map(resolve)
|
|
335
|
-
});
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
function resolveOperation(importer, operationConfig) {
|
|
340
|
-
return {
|
|
341
|
-
id: operationConfig.id,
|
|
342
|
-
systemName: operationConfig.systemName,
|
|
343
|
-
operationData: deepCopy(operationConfig.operationData),
|
|
344
|
-
instance: importer["import"](operationConfig.systemName)[operationConfig.systemName]
|
|
345
|
-
};
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
function resolveActionConfiguration(config, importer) {
|
|
349
|
-
var resolve = resolveOperation.bind(null, importer);
|
|
350
|
-
return {
|
|
351
|
-
id: config.id,
|
|
352
|
-
name: config.name,
|
|
353
|
-
startOperations: config.startOperations.map(resolve)
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
function resolveEndableActionConfiguration(config, importer) {
|
|
358
|
-
var resolve = resolveOperation.bind(null, importer);
|
|
359
|
-
var action = resolveActionConfiguration(config, importer);
|
|
360
|
-
return _extends({}, action, {
|
|
361
|
-
endOperations: config.endOperations.map(resolve)
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
function resolveTimelineAction(importer, eventbus, actionConfiguration) {
|
|
366
|
-
var _actionConfiguration$;
|
|
367
|
-
|
|
368
|
-
var resolvedConfig = resolveEndableActionConfiguration(actionConfiguration, importer);
|
|
369
|
-
var duration = {
|
|
370
|
-
end: (_actionConfiguration$ = actionConfiguration.duration.end) != null ? _actionConfiguration$ : -1,
|
|
371
|
-
start: actionConfiguration.duration.start
|
|
372
|
-
};
|
|
373
|
-
var id = resolvedConfig.id,
|
|
374
|
-
name = resolvedConfig.name,
|
|
375
|
-
endOperations = resolvedConfig.endOperations,
|
|
376
|
-
startOperations = resolvedConfig.startOperations;
|
|
377
|
-
var action = new TimelineAction(name, startOperations, endOperations, duration, eventbus);
|
|
378
|
-
action.id = id;
|
|
379
|
-
return action;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
function resolveActions(actionConfigurations, importer, eventbus) {
|
|
383
|
-
var resolvedConfigs = actionConfigurations.map(function (config) {
|
|
384
|
-
return resolveEndableActionConfiguration(config, importer);
|
|
385
|
-
});
|
|
386
|
-
return resolvedConfigs.map(function (resolvedConfig) {
|
|
387
|
-
var name = resolvedConfig.name,
|
|
388
|
-
endOperations = resolvedConfig.endOperations,
|
|
389
|
-
startOperations = resolvedConfig.startOperations;
|
|
390
|
-
var action = new EndableAction(name, startOperations, endOperations, eventbus);
|
|
391
|
-
action.id = resolvedConfig.id;
|
|
392
|
-
return action;
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
function resolvePlaceholders(config, rootConfig, importer) {
|
|
397
|
-
if (!isDefined(config)) {
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
if (Array.isArray(config)) {
|
|
402
|
-
config.forEach(function (item) {
|
|
403
|
-
resolvePlaceholders(item, rootConfig, importer);
|
|
404
|
-
});
|
|
405
|
-
} else {
|
|
406
|
-
Object.keys(config).forEach(function (key) {
|
|
407
|
-
resolvePlaceholder(key, config, rootConfig, importer);
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
function resolvePlaceholder(key, config, rootConfig, importer) {
|
|
413
|
-
var value = config[key];
|
|
414
|
-
|
|
415
|
-
if (typeof value === 'string') {
|
|
416
|
-
if (value.startsWith('config:')) {
|
|
417
|
-
var configProperty = value.substr(7, value.length);
|
|
418
|
-
config[key] = getNestedPropertyValue(configProperty, rootConfig);
|
|
419
|
-
} else if (value.startsWith('template:')) {
|
|
420
|
-
var templateKey = value.substr(9, value.length);
|
|
421
|
-
config[key] = importer["import"](templateKey)[templateKey];
|
|
422
|
-
} else if (value.startsWith('json:')) {
|
|
423
|
-
var jsonKey = value.substr(5, value.length);
|
|
424
|
-
var json = importer["import"](jsonKey)[jsonKey];
|
|
425
|
-
config[key] = json;
|
|
426
|
-
}
|
|
427
|
-
} else if (typeof value === 'object') {
|
|
428
|
-
resolvePlaceholders(config[key], rootConfig, importer);
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
var runtime = {exports: {}};
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
436
|
-
*
|
|
437
|
-
* This source code is licensed under the MIT license found in the
|
|
438
|
-
* LICENSE file in the root directory of this source tree.
|
|
439
|
-
*/
|
|
440
|
-
|
|
441
|
-
(function (module) {
|
|
442
|
-
var runtime = (function (exports) {
|
|
443
|
-
|
|
444
|
-
var Op = Object.prototype;
|
|
445
|
-
var hasOwn = Op.hasOwnProperty;
|
|
446
|
-
var undefined$1; // More compressible than void 0.
|
|
447
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
448
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
449
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
450
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
451
|
-
|
|
452
|
-
function define(obj, key, value) {
|
|
453
|
-
Object.defineProperty(obj, key, {
|
|
454
|
-
value: value,
|
|
455
|
-
enumerable: true,
|
|
456
|
-
configurable: true,
|
|
457
|
-
writable: true
|
|
458
|
-
});
|
|
459
|
-
return obj[key];
|
|
460
|
-
}
|
|
461
|
-
try {
|
|
462
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
463
|
-
define({}, "");
|
|
464
|
-
} catch (err) {
|
|
465
|
-
define = function(obj, key, value) {
|
|
466
|
-
return obj[key] = value;
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
471
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
472
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
473
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
474
|
-
var context = new Context(tryLocsList || []);
|
|
475
|
-
|
|
476
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
477
|
-
// .throw, and .return methods.
|
|
478
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
479
|
-
|
|
480
|
-
return generator;
|
|
481
|
-
}
|
|
482
|
-
exports.wrap = wrap;
|
|
483
|
-
|
|
484
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
485
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
486
|
-
// have been (and was previously) designed to take a closure to be
|
|
487
|
-
// invoked without arguments, but in all the cases we care about we
|
|
488
|
-
// already have an existing method we want to call, so there's no need
|
|
489
|
-
// to create a new function object. We can even get away with assuming
|
|
490
|
-
// the method takes exactly one argument, since that happens to be true
|
|
491
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
492
|
-
// only additional allocation required is the completion record, which
|
|
493
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
494
|
-
function tryCatch(fn, obj, arg) {
|
|
495
|
-
try {
|
|
496
|
-
return { type: "normal", arg: fn.call(obj, arg) };
|
|
497
|
-
} catch (err) {
|
|
498
|
-
return { type: "throw", arg: err };
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
503
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
504
|
-
var GenStateExecuting = "executing";
|
|
505
|
-
var GenStateCompleted = "completed";
|
|
506
|
-
|
|
507
|
-
// Returning this object from the innerFn has the same effect as
|
|
508
|
-
// breaking out of the dispatch switch statement.
|
|
509
|
-
var ContinueSentinel = {};
|
|
510
|
-
|
|
511
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
512
|
-
// .constructor.prototype properties for functions that return Generator
|
|
513
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
514
|
-
// minifier not to mangle the names of these two functions.
|
|
515
|
-
function Generator() {}
|
|
516
|
-
function GeneratorFunction() {}
|
|
517
|
-
function GeneratorFunctionPrototype() {}
|
|
518
|
-
|
|
519
|
-
// This is a polyfill for %IteratorPrototype% for environments that
|
|
520
|
-
// don't natively support it.
|
|
521
|
-
var IteratorPrototype = {};
|
|
522
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
523
|
-
return this;
|
|
524
|
-
});
|
|
525
|
-
|
|
526
|
-
var getProto = Object.getPrototypeOf;
|
|
527
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
528
|
-
if (NativeIteratorPrototype &&
|
|
529
|
-
NativeIteratorPrototype !== Op &&
|
|
530
|
-
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
531
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
532
|
-
// of the polyfill.
|
|
533
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
537
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
538
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
539
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
540
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
541
|
-
GeneratorFunction.displayName = define(
|
|
542
|
-
GeneratorFunctionPrototype,
|
|
543
|
-
toStringTagSymbol,
|
|
544
|
-
"GeneratorFunction"
|
|
545
|
-
);
|
|
546
|
-
|
|
547
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
548
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
549
|
-
function defineIteratorMethods(prototype) {
|
|
550
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
551
|
-
define(prototype, method, function(arg) {
|
|
552
|
-
return this._invoke(method, arg);
|
|
553
|
-
});
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
exports.isGeneratorFunction = function(genFun) {
|
|
558
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
559
|
-
return ctor
|
|
560
|
-
? ctor === GeneratorFunction ||
|
|
561
|
-
// For the native GeneratorFunction constructor, the best we can
|
|
562
|
-
// do is to check its .name property.
|
|
563
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction"
|
|
564
|
-
: false;
|
|
565
|
-
};
|
|
566
|
-
|
|
567
|
-
exports.mark = function(genFun) {
|
|
568
|
-
if (Object.setPrototypeOf) {
|
|
569
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
570
|
-
} else {
|
|
571
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
572
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
573
|
-
}
|
|
574
|
-
genFun.prototype = Object.create(Gp);
|
|
575
|
-
return genFun;
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
// Within the body of any async function, `await x` is transformed to
|
|
579
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
580
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
581
|
-
// meant to be awaited.
|
|
582
|
-
exports.awrap = function(arg) {
|
|
583
|
-
return { __await: arg };
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
587
|
-
function invoke(method, arg, resolve, reject) {
|
|
588
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
589
|
-
if (record.type === "throw") {
|
|
590
|
-
reject(record.arg);
|
|
591
|
-
} else {
|
|
592
|
-
var result = record.arg;
|
|
593
|
-
var value = result.value;
|
|
594
|
-
if (value &&
|
|
595
|
-
typeof value === "object" &&
|
|
596
|
-
hasOwn.call(value, "__await")) {
|
|
597
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
598
|
-
invoke("next", value, resolve, reject);
|
|
599
|
-
}, function(err) {
|
|
600
|
-
invoke("throw", err, resolve, reject);
|
|
601
|
-
});
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
605
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
606
|
-
// the .value of the Promise<{value,done}> result for the
|
|
607
|
-
// current iteration.
|
|
608
|
-
result.value = unwrapped;
|
|
609
|
-
resolve(result);
|
|
610
|
-
}, function(error) {
|
|
611
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
612
|
-
// into the async generator function so it can be handled there.
|
|
613
|
-
return invoke("throw", error, resolve, reject);
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
var previousPromise;
|
|
619
|
-
|
|
620
|
-
function enqueue(method, arg) {
|
|
621
|
-
function callInvokeWithMethodAndArg() {
|
|
622
|
-
return new PromiseImpl(function(resolve, reject) {
|
|
623
|
-
invoke(method, arg, resolve, reject);
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
return previousPromise =
|
|
628
|
-
// If enqueue has been called before, then we want to wait until
|
|
629
|
-
// all previous Promises have been resolved before calling invoke,
|
|
630
|
-
// so that results are always delivered in the correct order. If
|
|
631
|
-
// enqueue has not been called before, then it is important to
|
|
632
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
633
|
-
// so that the async generator function has the opportunity to do
|
|
634
|
-
// any necessary setup in a predictable way. This predictability
|
|
635
|
-
// is why the Promise constructor synchronously invokes its
|
|
636
|
-
// executor callback, and why async functions synchronously
|
|
637
|
-
// execute code before the first await. Since we implement simple
|
|
638
|
-
// async functions in terms of async generators, it is especially
|
|
639
|
-
// important to get this right, even though it requires care.
|
|
640
|
-
previousPromise ? previousPromise.then(
|
|
641
|
-
callInvokeWithMethodAndArg,
|
|
642
|
-
// Avoid propagating failures to Promises returned by later
|
|
643
|
-
// invocations of the iterator.
|
|
644
|
-
callInvokeWithMethodAndArg
|
|
645
|
-
) : callInvokeWithMethodAndArg();
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
// Define the unified helper method that is used to implement .next,
|
|
649
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
650
|
-
this._invoke = enqueue;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
654
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
655
|
-
return this;
|
|
656
|
-
});
|
|
657
|
-
exports.AsyncIterator = AsyncIterator;
|
|
658
|
-
|
|
659
|
-
// Note that simple async functions are implemented on top of
|
|
660
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
661
|
-
// the final result produced by the iterator.
|
|
662
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
663
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
664
|
-
|
|
665
|
-
var iter = new AsyncIterator(
|
|
666
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
667
|
-
PromiseImpl
|
|
668
|
-
);
|
|
669
|
-
|
|
670
|
-
return exports.isGeneratorFunction(outerFn)
|
|
671
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
672
|
-
: iter.next().then(function(result) {
|
|
673
|
-
return result.done ? result.value : iter.next();
|
|
674
|
-
});
|
|
675
|
-
};
|
|
676
|
-
|
|
677
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
678
|
-
var state = GenStateSuspendedStart;
|
|
679
|
-
|
|
680
|
-
return function invoke(method, arg) {
|
|
681
|
-
if (state === GenStateExecuting) {
|
|
682
|
-
throw new Error("Generator is already running");
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
if (state === GenStateCompleted) {
|
|
686
|
-
if (method === "throw") {
|
|
687
|
-
throw arg;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
691
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
692
|
-
return doneResult();
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
context.method = method;
|
|
696
|
-
context.arg = arg;
|
|
697
|
-
|
|
698
|
-
while (true) {
|
|
699
|
-
var delegate = context.delegate;
|
|
700
|
-
if (delegate) {
|
|
701
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
702
|
-
if (delegateResult) {
|
|
703
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
704
|
-
return delegateResult;
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
if (context.method === "next") {
|
|
709
|
-
// Setting context._sent for legacy support of Babel's
|
|
710
|
-
// function.sent implementation.
|
|
711
|
-
context.sent = context._sent = context.arg;
|
|
712
|
-
|
|
713
|
-
} else if (context.method === "throw") {
|
|
714
|
-
if (state === GenStateSuspendedStart) {
|
|
715
|
-
state = GenStateCompleted;
|
|
716
|
-
throw context.arg;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
context.dispatchException(context.arg);
|
|
720
|
-
|
|
721
|
-
} else if (context.method === "return") {
|
|
722
|
-
context.abrupt("return", context.arg);
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
state = GenStateExecuting;
|
|
726
|
-
|
|
727
|
-
var record = tryCatch(innerFn, self, context);
|
|
728
|
-
if (record.type === "normal") {
|
|
729
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
730
|
-
// GenStateExecuting and loop back for another invocation.
|
|
731
|
-
state = context.done
|
|
732
|
-
? GenStateCompleted
|
|
733
|
-
: GenStateSuspendedYield;
|
|
734
|
-
|
|
735
|
-
if (record.arg === ContinueSentinel) {
|
|
736
|
-
continue;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
return {
|
|
740
|
-
value: record.arg,
|
|
741
|
-
done: context.done
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
} else if (record.type === "throw") {
|
|
745
|
-
state = GenStateCompleted;
|
|
746
|
-
// Dispatch the exception by looping back around to the
|
|
747
|
-
// context.dispatchException(context.arg) call above.
|
|
748
|
-
context.method = "throw";
|
|
749
|
-
context.arg = record.arg;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
// Call delegate.iterator[context.method](context.arg) and handle the
|
|
756
|
-
// result, either by returning a { value, done } result from the
|
|
757
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
758
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
759
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
760
|
-
var method = delegate.iterator[context.method];
|
|
761
|
-
if (method === undefined$1) {
|
|
762
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
763
|
-
// method always terminates the yield* loop.
|
|
764
|
-
context.delegate = null;
|
|
765
|
-
|
|
766
|
-
if (context.method === "throw") {
|
|
767
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
768
|
-
if (delegate.iterator["return"]) {
|
|
769
|
-
// If the delegate iterator has a return method, give it a
|
|
770
|
-
// chance to clean up.
|
|
771
|
-
context.method = "return";
|
|
772
|
-
context.arg = undefined$1;
|
|
773
|
-
maybeInvokeDelegate(delegate, context);
|
|
774
|
-
|
|
775
|
-
if (context.method === "throw") {
|
|
776
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
777
|
-
// "return" to "throw", let that override the TypeError below.
|
|
778
|
-
return ContinueSentinel;
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
context.method = "throw";
|
|
783
|
-
context.arg = new TypeError(
|
|
784
|
-
"The iterator does not provide a 'throw' method");
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
return ContinueSentinel;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
791
|
-
|
|
792
|
-
if (record.type === "throw") {
|
|
793
|
-
context.method = "throw";
|
|
794
|
-
context.arg = record.arg;
|
|
795
|
-
context.delegate = null;
|
|
796
|
-
return ContinueSentinel;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
var info = record.arg;
|
|
800
|
-
|
|
801
|
-
if (! info) {
|
|
802
|
-
context.method = "throw";
|
|
803
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
804
|
-
context.delegate = null;
|
|
805
|
-
return ContinueSentinel;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
if (info.done) {
|
|
809
|
-
// Assign the result of the finished delegate to the temporary
|
|
810
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
811
|
-
context[delegate.resultName] = info.value;
|
|
812
|
-
|
|
813
|
-
// Resume execution at the desired location (see delegateYield).
|
|
814
|
-
context.next = delegate.nextLoc;
|
|
815
|
-
|
|
816
|
-
// If context.method was "throw" but the delegate handled the
|
|
817
|
-
// exception, let the outer generator proceed normally. If
|
|
818
|
-
// context.method was "next", forget context.arg since it has been
|
|
819
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
820
|
-
// "return", allow the original .return call to continue in the
|
|
821
|
-
// outer generator.
|
|
822
|
-
if (context.method !== "return") {
|
|
823
|
-
context.method = "next";
|
|
824
|
-
context.arg = undefined$1;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
} else {
|
|
828
|
-
// Re-yield the result returned by the delegate method.
|
|
829
|
-
return info;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
833
|
-
// the outer generator.
|
|
834
|
-
context.delegate = null;
|
|
835
|
-
return ContinueSentinel;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
839
|
-
// unified ._invoke helper method.
|
|
840
|
-
defineIteratorMethods(Gp);
|
|
841
|
-
|
|
842
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
843
|
-
|
|
844
|
-
// A Generator should always return itself as the iterator object when the
|
|
845
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
846
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
847
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
848
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
849
|
-
define(Gp, iteratorSymbol, function() {
|
|
850
|
-
return this;
|
|
851
|
-
});
|
|
852
|
-
|
|
853
|
-
define(Gp, "toString", function() {
|
|
854
|
-
return "[object Generator]";
|
|
855
|
-
});
|
|
856
|
-
|
|
857
|
-
function pushTryEntry(locs) {
|
|
858
|
-
var entry = { tryLoc: locs[0] };
|
|
859
|
-
|
|
860
|
-
if (1 in locs) {
|
|
861
|
-
entry.catchLoc = locs[1];
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
if (2 in locs) {
|
|
865
|
-
entry.finallyLoc = locs[2];
|
|
866
|
-
entry.afterLoc = locs[3];
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
this.tryEntries.push(entry);
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
function resetTryEntry(entry) {
|
|
873
|
-
var record = entry.completion || {};
|
|
874
|
-
record.type = "normal";
|
|
875
|
-
delete record.arg;
|
|
876
|
-
entry.completion = record;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
function Context(tryLocsList) {
|
|
880
|
-
// The root entry object (effectively a try statement without a catch
|
|
881
|
-
// or a finally block) gives us a place to store values thrown from
|
|
882
|
-
// locations where there is no enclosing try statement.
|
|
883
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
884
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
885
|
-
this.reset(true);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
exports.keys = function(object) {
|
|
889
|
-
var keys = [];
|
|
890
|
-
for (var key in object) {
|
|
891
|
-
keys.push(key);
|
|
892
|
-
}
|
|
893
|
-
keys.reverse();
|
|
894
|
-
|
|
895
|
-
// Rather than returning an object with a next method, we keep
|
|
896
|
-
// things simple and return the next function itself.
|
|
897
|
-
return function next() {
|
|
898
|
-
while (keys.length) {
|
|
899
|
-
var key = keys.pop();
|
|
900
|
-
if (key in object) {
|
|
901
|
-
next.value = key;
|
|
902
|
-
next.done = false;
|
|
903
|
-
return next;
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
// To avoid creating an additional object, we just hang the .value
|
|
908
|
-
// and .done properties off the next function object itself. This
|
|
909
|
-
// also ensures that the minifier will not anonymize the function.
|
|
910
|
-
next.done = true;
|
|
911
|
-
return next;
|
|
912
|
-
};
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
function values(iterable) {
|
|
916
|
-
if (iterable) {
|
|
917
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
918
|
-
if (iteratorMethod) {
|
|
919
|
-
return iteratorMethod.call(iterable);
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
if (typeof iterable.next === "function") {
|
|
923
|
-
return iterable;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
if (!isNaN(iterable.length)) {
|
|
927
|
-
var i = -1, next = function next() {
|
|
928
|
-
while (++i < iterable.length) {
|
|
929
|
-
if (hasOwn.call(iterable, i)) {
|
|
930
|
-
next.value = iterable[i];
|
|
931
|
-
next.done = false;
|
|
932
|
-
return next;
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
next.value = undefined$1;
|
|
937
|
-
next.done = true;
|
|
938
|
-
|
|
939
|
-
return next;
|
|
940
|
-
};
|
|
941
|
-
|
|
942
|
-
return next.next = next;
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
// Return an iterator with no values.
|
|
947
|
-
return { next: doneResult };
|
|
948
|
-
}
|
|
949
|
-
exports.values = values;
|
|
950
|
-
|
|
951
|
-
function doneResult() {
|
|
952
|
-
return { value: undefined$1, done: true };
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
Context.prototype = {
|
|
956
|
-
constructor: Context,
|
|
957
|
-
|
|
958
|
-
reset: function(skipTempReset) {
|
|
959
|
-
this.prev = 0;
|
|
960
|
-
this.next = 0;
|
|
961
|
-
// Resetting context._sent for legacy support of Babel's
|
|
962
|
-
// function.sent implementation.
|
|
963
|
-
this.sent = this._sent = undefined$1;
|
|
964
|
-
this.done = false;
|
|
965
|
-
this.delegate = null;
|
|
966
|
-
|
|
967
|
-
this.method = "next";
|
|
968
|
-
this.arg = undefined$1;
|
|
969
|
-
|
|
970
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
971
|
-
|
|
972
|
-
if (!skipTempReset) {
|
|
973
|
-
for (var name in this) {
|
|
974
|
-
// Not sure about the optimal order of these conditions:
|
|
975
|
-
if (name.charAt(0) === "t" &&
|
|
976
|
-
hasOwn.call(this, name) &&
|
|
977
|
-
!isNaN(+name.slice(1))) {
|
|
978
|
-
this[name] = undefined$1;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
|
|
984
|
-
stop: function() {
|
|
985
|
-
this.done = true;
|
|
986
|
-
|
|
987
|
-
var rootEntry = this.tryEntries[0];
|
|
988
|
-
var rootRecord = rootEntry.completion;
|
|
989
|
-
if (rootRecord.type === "throw") {
|
|
990
|
-
throw rootRecord.arg;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
return this.rval;
|
|
994
|
-
},
|
|
995
|
-
|
|
996
|
-
dispatchException: function(exception) {
|
|
997
|
-
if (this.done) {
|
|
998
|
-
throw exception;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
var context = this;
|
|
1002
|
-
function handle(loc, caught) {
|
|
1003
|
-
record.type = "throw";
|
|
1004
|
-
record.arg = exception;
|
|
1005
|
-
context.next = loc;
|
|
1006
|
-
|
|
1007
|
-
if (caught) {
|
|
1008
|
-
// If the dispatched exception was caught by a catch block,
|
|
1009
|
-
// then let that catch block handle the exception normally.
|
|
1010
|
-
context.method = "next";
|
|
1011
|
-
context.arg = undefined$1;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
return !! caught;
|
|
601
|
+
suffix = parts[1];
|
|
1015
602
|
}
|
|
603
|
+
}
|
|
1016
604
|
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
if (entry.tryLoc === "root") {
|
|
1022
|
-
// Exception thrown outside of any try block that could handle
|
|
1023
|
-
// it, so set the completion value of the entire function to
|
|
1024
|
-
// throw the exception.
|
|
1025
|
-
return handle("end");
|
|
1026
|
-
}
|
|
605
|
+
currentInstance = currentInstance[prop];
|
|
606
|
+
});
|
|
607
|
+
return suffix ? currentInstance + suffix : currentInstance;
|
|
608
|
+
}
|
|
1027
609
|
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
610
|
+
function getNestedPropertyValue(propertyChain, sourceObject) {
|
|
611
|
+
var properties = propertyChain.split('.');
|
|
612
|
+
return getNestedValue(properties, sourceObject);
|
|
613
|
+
}
|
|
1031
614
|
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
615
|
+
var ConfigurationResolver = /*#__PURE__*/function () {
|
|
616
|
+
function ConfigurationResolver(importer, eventbus) {
|
|
617
|
+
this.importer = void 0;
|
|
618
|
+
this.eventbus = void 0;
|
|
619
|
+
this.importer = importer;
|
|
620
|
+
this.eventbus = eventbus;
|
|
621
|
+
}
|
|
1038
622
|
|
|
1039
|
-
|
|
1040
|
-
if (this.prev < entry.catchLoc) {
|
|
1041
|
-
return handle(entry.catchLoc, true);
|
|
1042
|
-
}
|
|
623
|
+
var _proto = ConfigurationResolver.prototype;
|
|
1043
624
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
return handle(entry.finallyLoc);
|
|
1047
|
-
}
|
|
625
|
+
_proto.process = function process(configuration, actionRegistryListener) {
|
|
626
|
+
resolvePlaceholders(configuration, configuration, this.importer);
|
|
1048
627
|
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
},
|
|
628
|
+
if (!isDefined(configuration.timelineProviderSettings)) {
|
|
629
|
+
throw new Error('Configuration incomplete: it needs to have at least one timeline provider setting');
|
|
630
|
+
}
|
|
1055
631
|
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
632
|
+
var resolvedConfig = {
|
|
633
|
+
id: configuration.id,
|
|
634
|
+
engine: _extends({}, configuration.engine),
|
|
635
|
+
timelineProviderSettings: deepCopy(configuration.timelineProviderSettings),
|
|
636
|
+
containerSelector: configuration.containerSelector,
|
|
637
|
+
language: configuration.language,
|
|
638
|
+
layoutTemplate: configuration.layoutTemplate,
|
|
639
|
+
availableLanguages: deepCopy(configuration.availableLanguages),
|
|
640
|
+
actions: resolveActions(configuration.actions, this.importer, this.eventbus),
|
|
641
|
+
initActions: resolveActions(configuration.initActions, this.importer, this.eventbus),
|
|
642
|
+
labels: deepCopy(configuration.labels),
|
|
643
|
+
timelineFlow: deepCopy(configuration.timelineFlow),
|
|
644
|
+
timelines: resolveTimelines(configuration.timelines, this.importer, this.eventbus)
|
|
645
|
+
};
|
|
646
|
+
var eventActions = [];
|
|
1066
647
|
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
finallyEntry.tryLoc <= arg &&
|
|
1071
|
-
arg <= finallyEntry.finallyLoc) {
|
|
1072
|
-
// Ignore the finally entry if control is not jumping to a
|
|
1073
|
-
// location outside the try/catch block.
|
|
1074
|
-
finallyEntry = null;
|
|
1075
|
-
}
|
|
648
|
+
if (configuration.eventActions && actionRegistryListener) {
|
|
649
|
+
eventActions = resolveEventActions(configuration.eventActions, actionRegistryListener, this.importer, this.eventbus);
|
|
650
|
+
}
|
|
1076
651
|
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
record.arg = arg;
|
|
652
|
+
var actionsLookup = resolvedConfig.actions.concat(eventActions).reduce(function (aggr, action) {
|
|
653
|
+
var _extends2;
|
|
1080
654
|
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
}
|
|
655
|
+
return _extends({}, aggr, (_extends2 = {}, _extends2[action.name] = action, _extends2));
|
|
656
|
+
}, {});
|
|
657
|
+
return [actionsLookup, resolvedConfig];
|
|
658
|
+
};
|
|
1086
659
|
|
|
1087
|
-
|
|
1088
|
-
|
|
660
|
+
return ConfigurationResolver;
|
|
661
|
+
}();
|
|
1089
662
|
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
663
|
+
function resolveEventActions(eventActionConfigurations, actionRegistryListener, importer, eventbus) {
|
|
664
|
+
var resolvedConfigs = eventActionConfigurations.map(function (config) {
|
|
665
|
+
return resolveActionConfiguration(config, importer);
|
|
666
|
+
});
|
|
667
|
+
return resolvedConfigs.map(function (config, index) {
|
|
668
|
+
var _eventActionConfigura = eventActionConfigurations[index],
|
|
669
|
+
eventName = _eventActionConfigura.eventName,
|
|
670
|
+
eventTopic = _eventActionConfigura.eventTopic;
|
|
671
|
+
var eventAction = new Action(config.name, config.startOperations, eventbus);
|
|
672
|
+
actionRegistryListener.registerAction(eventAction, eventName, eventTopic);
|
|
673
|
+
return eventAction;
|
|
674
|
+
});
|
|
675
|
+
}
|
|
1094
676
|
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
this.next = afterLoc;
|
|
1104
|
-
}
|
|
677
|
+
function resolveTimelines(timelines, importer, eventbus) {
|
|
678
|
+
var resolve = resolveTimelineAction.bind(null, importer, eventbus);
|
|
679
|
+
return timelines.map(function (config) {
|
|
680
|
+
return _extends({}, config, {
|
|
681
|
+
timelineActions: config.timelineActions.map(resolve)
|
|
682
|
+
});
|
|
683
|
+
});
|
|
684
|
+
}
|
|
1105
685
|
|
|
1106
|
-
|
|
1107
|
-
|
|
686
|
+
function resolveOperation(importer, operationConfig) {
|
|
687
|
+
return {
|
|
688
|
+
id: operationConfig.id,
|
|
689
|
+
systemName: operationConfig.systemName,
|
|
690
|
+
operationData: deepCopy(operationConfig.operationData),
|
|
691
|
+
instance: importer["import"](operationConfig.systemName)[operationConfig.systemName]
|
|
692
|
+
};
|
|
693
|
+
}
|
|
1108
694
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
}
|
|
1118
|
-
},
|
|
695
|
+
function resolveActionConfiguration(config, importer) {
|
|
696
|
+
var resolve = resolveOperation.bind(null, importer);
|
|
697
|
+
return {
|
|
698
|
+
id: config.id,
|
|
699
|
+
name: config.name,
|
|
700
|
+
startOperations: config.startOperations.map(resolve)
|
|
701
|
+
};
|
|
702
|
+
}
|
|
1119
703
|
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
resetTryEntry(entry);
|
|
1128
|
-
}
|
|
1129
|
-
return thrown;
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
704
|
+
function resolveEndableActionConfiguration(config, importer) {
|
|
705
|
+
var resolve = resolveOperation.bind(null, importer);
|
|
706
|
+
var action = resolveActionConfiguration(config, importer);
|
|
707
|
+
return _extends({}, action, {
|
|
708
|
+
endOperations: config.endOperations.map(resolve)
|
|
709
|
+
});
|
|
710
|
+
}
|
|
1132
711
|
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
throw new Error("illegal catch attempt");
|
|
1136
|
-
},
|
|
712
|
+
function resolveTimelineAction(importer, eventbus, actionConfiguration) {
|
|
713
|
+
var _actionConfiguration$;
|
|
1137
714
|
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
715
|
+
var resolvedConfig = resolveEndableActionConfiguration(actionConfiguration, importer);
|
|
716
|
+
var duration = {
|
|
717
|
+
end: (_actionConfiguration$ = actionConfiguration.duration.end) != null ? _actionConfiguration$ : -1,
|
|
718
|
+
start: actionConfiguration.duration.start
|
|
719
|
+
};
|
|
720
|
+
var id = resolvedConfig.id,
|
|
721
|
+
name = resolvedConfig.name,
|
|
722
|
+
endOperations = resolvedConfig.endOperations,
|
|
723
|
+
startOperations = resolvedConfig.startOperations;
|
|
724
|
+
var action = new TimelineAction(name, startOperations, endOperations, duration, eventbus);
|
|
725
|
+
action.id = id;
|
|
726
|
+
return action;
|
|
727
|
+
}
|
|
1144
728
|
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
729
|
+
function resolveActions(actionConfigurations, importer, eventbus) {
|
|
730
|
+
var resolvedConfigs = actionConfigurations.map(function (config) {
|
|
731
|
+
return resolveEndableActionConfiguration(config, importer);
|
|
732
|
+
});
|
|
733
|
+
return resolvedConfigs.map(function (resolvedConfig) {
|
|
734
|
+
var name = resolvedConfig.name,
|
|
735
|
+
endOperations = resolvedConfig.endOperations,
|
|
736
|
+
startOperations = resolvedConfig.startOperations;
|
|
737
|
+
var action = new EndableAction(name, startOperations, endOperations, eventbus);
|
|
738
|
+
action.id = resolvedConfig.id;
|
|
739
|
+
return action;
|
|
740
|
+
});
|
|
741
|
+
}
|
|
1150
742
|
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
743
|
+
function resolvePlaceholders(configFragment, rootConfig, importer) {
|
|
744
|
+
if (!isDefined(configFragment)) {
|
|
745
|
+
return;
|
|
746
|
+
}
|
|
1154
747
|
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
return exports;
|
|
1160
|
-
|
|
1161
|
-
}(
|
|
1162
|
-
// If this script is executing as a CommonJS module, use module.exports
|
|
1163
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
1164
|
-
// object. Either way, the resulting object will be used to initialize
|
|
1165
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
1166
|
-
module.exports
|
|
1167
|
-
));
|
|
1168
|
-
|
|
1169
|
-
try {
|
|
1170
|
-
regeneratorRuntime = runtime;
|
|
1171
|
-
} catch (accidentalStrictMode) {
|
|
1172
|
-
// This module should not be running in strict mode, so the above
|
|
1173
|
-
// assignment should always work unless something is misconfigured. Just
|
|
1174
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
1175
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
1176
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
1177
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
1178
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
1179
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
1180
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
1181
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
1182
|
-
if (typeof globalThis === "object") {
|
|
1183
|
-
globalThis.regeneratorRuntime = runtime;
|
|
748
|
+
if (Array.isArray(configFragment)) {
|
|
749
|
+
configFragment.forEach(function (item) {
|
|
750
|
+
resolvePlaceholders(item, rootConfig, importer);
|
|
751
|
+
});
|
|
1184
752
|
} else {
|
|
1185
|
-
|
|
753
|
+
Object.keys(configFragment).forEach(function (key) {
|
|
754
|
+
resolvePlaceholder(key, configFragment, rootConfig, importer);
|
|
755
|
+
});
|
|
1186
756
|
}
|
|
1187
757
|
}
|
|
1188
|
-
}(runtime));
|
|
1189
758
|
|
|
1190
|
-
|
|
759
|
+
function resolvePlaceholder(key, configFragment, rootConfig, importer) {
|
|
760
|
+
var configValue = configFragment[key];
|
|
761
|
+
|
|
762
|
+
if (typeof configValue === 'string') {
|
|
763
|
+
if (configValue.startsWith('config:')) {
|
|
764
|
+
var configProperty = configValue.substring(7, configValue.length);
|
|
765
|
+
configFragment[key] = getNestedPropertyValue(configProperty, rootConfig);
|
|
766
|
+
} else if (configValue.startsWith('template:')) {
|
|
767
|
+
var templateKey = configValue.substring(9, configValue.length);
|
|
768
|
+
var template = importer["import"](templateKey)[templateKey];
|
|
769
|
+
configFragment[key] = template;
|
|
770
|
+
} else if (configValue.startsWith('json:')) {
|
|
771
|
+
var jsonKey = configValue.substring(5, configValue.length);
|
|
772
|
+
var json = importer["import"](jsonKey)[jsonKey];
|
|
773
|
+
configFragment[key] = json;
|
|
774
|
+
}
|
|
775
|
+
} else if (typeof configValue === 'object') {
|
|
776
|
+
resolvePlaceholders(configValue, rootConfig, importer);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
1191
779
|
|
|
1192
780
|
var TimelineEventNames = function TimelineEventNames() {};
|
|
1193
781
|
TimelineEventNames.PLAY_TOGGLE_REQUEST = 'timeline-play-toggle-request';
|
|
@@ -1297,19 +885,19 @@ var EventListenerController = /*#__PURE__*/function () {
|
|
|
1297
885
|
return;
|
|
1298
886
|
}
|
|
1299
887
|
|
|
1300
|
-
var
|
|
888
|
+
var actionOperationData = this.operationData.actionOperationData ? deepCopy(this.operationData.actionOperationData) : {};
|
|
1301
889
|
|
|
1302
890
|
if (event.target) {
|
|
1303
|
-
|
|
891
|
+
actionOperationData.targetValue = event.target.value;
|
|
1304
892
|
}
|
|
1305
893
|
|
|
1306
|
-
this._executeAction(this.actionInstanceInfos,
|
|
894
|
+
this._executeAction(this.actionInstanceInfos, actionOperationData, 0);
|
|
1307
895
|
};
|
|
1308
896
|
|
|
1309
897
|
_proto._executeAction = /*#__PURE__*/function () {
|
|
1310
|
-
var _executeAction2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(actions, operationData, idx) {
|
|
898
|
+
var _executeAction2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(actions, operationData, idx) {
|
|
1311
899
|
var actionInfo, action, method, resultOperationData;
|
|
1312
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
900
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1313
901
|
while (1) {
|
|
1314
902
|
switch (_context.prev = _context.next) {
|
|
1315
903
|
case 0:
|
|
@@ -2241,8 +1829,8 @@ var EligiusEngine = /*#__PURE__*/function () {
|
|
|
2241
1829
|
|
|
2242
1830
|
this._activeTimelineProvider = providerSettings.provider;
|
|
2243
1831
|
return new Promise( /*#__PURE__*/function () {
|
|
2244
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve) {
|
|
2245
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
1832
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(resolve) {
|
|
1833
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2246
1834
|
while (1) {
|
|
2247
1835
|
switch (_context.prev = _context.next) {
|
|
2248
1836
|
case 0:
|
|
@@ -2281,8 +1869,8 @@ var EligiusEngine = /*#__PURE__*/function () {
|
|
|
2281
1869
|
};
|
|
2282
1870
|
|
|
2283
1871
|
_proto._cleanUp = /*#__PURE__*/function () {
|
|
2284
|
-
var _cleanUp2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
2285
|
-
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
1872
|
+
var _cleanUp2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
1873
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2286
1874
|
while (1) {
|
|
2287
1875
|
switch (_context2.prev = _context2.next) {
|
|
2288
1876
|
case 0:
|
|
@@ -2309,8 +1897,8 @@ var EligiusEngine = /*#__PURE__*/function () {
|
|
|
2309
1897
|
}();
|
|
2310
1898
|
|
|
2311
1899
|
_proto.destroy = /*#__PURE__*/function () {
|
|
2312
|
-
var _destroy = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
2313
|
-
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
1900
|
+
var _destroy = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
1901
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
2314
1902
|
while (1) {
|
|
2315
1903
|
switch (_context3.prev = _context3.next) {
|
|
2316
1904
|
case 0:
|
|
@@ -2426,9 +2014,9 @@ var EligiusEngine = /*#__PURE__*/function () {
|
|
|
2426
2014
|
};
|
|
2427
2015
|
|
|
2428
2016
|
_proto._executeActions = /*#__PURE__*/function () {
|
|
2429
|
-
var _executeActions2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(actions, methodName, idx) {
|
|
2017
|
+
var _executeActions2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(actions, methodName, idx) {
|
|
2430
2018
|
var action;
|
|
2431
|
-
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
2019
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
2432
2020
|
while (1) {
|
|
2433
2021
|
switch (_context4.prev = _context4.next) {
|
|
2434
2022
|
case 0:
|
|
@@ -2473,12 +2061,12 @@ var EligiusEngine = /*#__PURE__*/function () {
|
|
|
2473
2061
|
};
|
|
2474
2062
|
|
|
2475
2063
|
_proto._handleRequestTimelineUri = /*#__PURE__*/function () {
|
|
2476
|
-
var _handleRequestTimelineUri2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(uri, position, previousVideoPosition) {
|
|
2064
|
+
var _handleRequestTimelineUri2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(uri, position, previousVideoPosition) {
|
|
2477
2065
|
var _position,
|
|
2478
2066
|
_this3 = this;
|
|
2479
2067
|
|
|
2480
2068
|
var timelineConfig, newProviderSettings;
|
|
2481
|
-
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
2069
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
2482
2070
|
while (1) {
|
|
2483
2071
|
switch (_context5.prev = _context5.next) {
|
|
2484
2072
|
case 0:
|
|
@@ -2720,29 +2308,31 @@ var EligiusEngine = /*#__PURE__*/function () {
|
|
|
2720
2308
|
|
|
2721
2309
|
var ActionRegistryEventbusListener = /*#__PURE__*/function () {
|
|
2722
2310
|
function ActionRegistryEventbusListener() {
|
|
2723
|
-
this._actionRegistry =
|
|
2311
|
+
this._actionRegistry = new Map();
|
|
2724
2312
|
}
|
|
2725
2313
|
|
|
2726
2314
|
var _proto = ActionRegistryEventbusListener.prototype;
|
|
2727
2315
|
|
|
2728
2316
|
_proto.registerAction = function registerAction(action, eventName, eventTopic) {
|
|
2317
|
+
var _this$_actionRegistry;
|
|
2318
|
+
|
|
2729
2319
|
if (eventTopic && eventTopic.length) {
|
|
2730
2320
|
eventName = eventName + ":" + eventTopic;
|
|
2731
2321
|
}
|
|
2732
2322
|
|
|
2733
|
-
if (!this._actionRegistry
|
|
2734
|
-
this._actionRegistry
|
|
2323
|
+
if (!this._actionRegistry.has(eventName)) {
|
|
2324
|
+
this._actionRegistry.set(eventName, []);
|
|
2735
2325
|
}
|
|
2736
2326
|
|
|
2737
|
-
this._actionRegistry
|
|
2327
|
+
(_this$_actionRegistry = this._actionRegistry.get(eventName)) == null ? void 0 : _this$_actionRegistry.push(action);
|
|
2738
2328
|
};
|
|
2739
2329
|
|
|
2740
2330
|
_proto.handleEvent = function handleEvent(eventName, eventTopic, args) {
|
|
2741
|
-
if (eventTopic
|
|
2331
|
+
if (eventTopic) {
|
|
2742
2332
|
eventName = eventName + ":" + eventTopic;
|
|
2743
2333
|
}
|
|
2744
2334
|
|
|
2745
|
-
var actions = this._actionRegistry
|
|
2335
|
+
var actions = this._actionRegistry.get(eventName);
|
|
2746
2336
|
|
|
2747
2337
|
if (actions) {
|
|
2748
2338
|
var operationData = {
|
|
@@ -2759,8 +2349,8 @@ var ActionRegistryEventbusListener = /*#__PURE__*/function () {
|
|
|
2759
2349
|
|
|
2760
2350
|
var Eventbus = /*#__PURE__*/function () {
|
|
2761
2351
|
function Eventbus() {
|
|
2762
|
-
this.eventHandlers =
|
|
2763
|
-
this.eventInterceptors =
|
|
2352
|
+
this.eventHandlers = new Map();
|
|
2353
|
+
this.eventInterceptors = new Map();
|
|
2764
2354
|
this.eventListeners = [];
|
|
2765
2355
|
this.clear();
|
|
2766
2356
|
}
|
|
@@ -2768,33 +2358,33 @@ var Eventbus = /*#__PURE__*/function () {
|
|
|
2768
2358
|
var _proto = Eventbus.prototype;
|
|
2769
2359
|
|
|
2770
2360
|
_proto.clear = function clear() {
|
|
2771
|
-
this.eventHandlers =
|
|
2361
|
+
this.eventHandlers = new Map();
|
|
2772
2362
|
this.eventListeners = [];
|
|
2773
|
-
this.eventInterceptors =
|
|
2363
|
+
this.eventInterceptors = new Map();
|
|
2774
2364
|
};
|
|
2775
2365
|
|
|
2776
2366
|
_proto._getEventInterceptors = function _getEventInterceptors(eventName, eventTopic) {
|
|
2777
|
-
if (eventTopic
|
|
2367
|
+
if (eventTopic) {
|
|
2778
2368
|
eventName = eventName + ":" + eventTopic;
|
|
2779
2369
|
}
|
|
2780
2370
|
|
|
2781
|
-
if (!this.eventInterceptors
|
|
2782
|
-
this.eventInterceptors
|
|
2371
|
+
if (!this.eventInterceptors.has(eventName)) {
|
|
2372
|
+
this.eventInterceptors.set(eventName, []);
|
|
2783
2373
|
}
|
|
2784
2374
|
|
|
2785
|
-
return this.eventInterceptors
|
|
2375
|
+
return this.eventInterceptors.get(eventName);
|
|
2786
2376
|
};
|
|
2787
2377
|
|
|
2788
2378
|
_proto._getEventHandlers = function _getEventHandlers(eventName, eventTopic) {
|
|
2789
|
-
if (eventTopic
|
|
2379
|
+
if (eventTopic) {
|
|
2790
2380
|
eventName = eventName + ":" + eventTopic;
|
|
2791
2381
|
}
|
|
2792
2382
|
|
|
2793
|
-
if (!this.eventHandlers
|
|
2794
|
-
this.eventHandlers
|
|
2383
|
+
if (!this.eventHandlers.has(eventName)) {
|
|
2384
|
+
this.eventHandlers.set(eventName, []);
|
|
2795
2385
|
}
|
|
2796
2386
|
|
|
2797
|
-
return this.eventHandlers
|
|
2387
|
+
return this.eventHandlers.get(eventName);
|
|
2798
2388
|
};
|
|
2799
2389
|
|
|
2800
2390
|
_proto.on = function on(eventName, eventHandler, eventTopic) {
|
|
@@ -3138,33 +2728,35 @@ var EngineFactory = /*#__PURE__*/function () {
|
|
|
3138
2728
|
* @param operationData
|
|
3139
2729
|
* @returns
|
|
3140
2730
|
*/
|
|
3141
|
-
var addClass = function addClass(operationData) {
|
|
2731
|
+
var addClass$1 = function addClass(operationData) {
|
|
3142
2732
|
var selectedElement = operationData.selectedElement,
|
|
3143
2733
|
className = operationData.className;
|
|
3144
2734
|
selectedElement.addClass(className);
|
|
3145
2735
|
return operationData;
|
|
3146
2736
|
};
|
|
3147
2737
|
|
|
3148
|
-
var
|
|
2738
|
+
var controllersDataName = 'eligiusEngineControllers';
|
|
3149
2739
|
|
|
3150
2740
|
function getElementData(name, element) {
|
|
3151
2741
|
return element.data(name);
|
|
3152
2742
|
}
|
|
3153
2743
|
|
|
3154
|
-
var getElementControllers = /*#__PURE__*/getElementData.bind(null,
|
|
2744
|
+
var getElementControllers = /*#__PURE__*/getElementData.bind(null, controllersDataName);
|
|
3155
2745
|
|
|
3156
2746
|
function attachControllerToElement(element, controller) {
|
|
3157
|
-
if (!element.data(
|
|
3158
|
-
element.data(
|
|
2747
|
+
if (!element.data(controllersDataName)) {
|
|
2748
|
+
element.data(controllersDataName, []);
|
|
3159
2749
|
}
|
|
3160
2750
|
|
|
3161
2751
|
var controllers = getElementControllers(element);
|
|
3162
|
-
|
|
2752
|
+
|
|
2753
|
+
if (controllers) {
|
|
2754
|
+
controllers.push(controller);
|
|
2755
|
+
}
|
|
3163
2756
|
}
|
|
3164
2757
|
|
|
3165
2758
|
function mergeOperationData(operationData, newOperationData) {
|
|
3166
|
-
|
|
3167
|
-
return Object.assign(operationData, newOperationData);
|
|
2759
|
+
return _extends({}, operationData, newOperationData);
|
|
3168
2760
|
}
|
|
3169
2761
|
|
|
3170
2762
|
function internalResolve(resolve, operationData, newOperationData) {
|
|
@@ -3182,7 +2774,7 @@ function internalResolve(resolve, operationData, newOperationData) {
|
|
|
3182
2774
|
* @returns
|
|
3183
2775
|
*/
|
|
3184
2776
|
|
|
3185
|
-
var addControllerToElement = function addControllerToElement(operationData) {
|
|
2777
|
+
var addControllerToElement$1 = function addControllerToElement(operationData) {
|
|
3186
2778
|
var selectedElement = operationData.selectedElement,
|
|
3187
2779
|
controllerInstance = operationData.controllerInstance;
|
|
3188
2780
|
attachControllerToElement(selectedElement, controllerInstance);
|
|
@@ -3208,7 +2800,7 @@ var addControllerToElement = function addControllerToElement(operationData) {
|
|
|
3208
2800
|
* @returns
|
|
3209
2801
|
*/
|
|
3210
2802
|
|
|
3211
|
-
var animate = function animate(operationData) {
|
|
2803
|
+
var animate$1 = function animate(operationData) {
|
|
3212
2804
|
var animationEasing = operationData.animationEasing,
|
|
3213
2805
|
selectedElement = operationData.selectedElement,
|
|
3214
2806
|
animationProperties = operationData.animationProperties,
|
|
@@ -3240,7 +2832,7 @@ var animate = function animate(operationData) {
|
|
|
3240
2832
|
* @returns
|
|
3241
2833
|
*/
|
|
3242
2834
|
|
|
3243
|
-
var animateWithClass = function animateWithClass(operationData) {
|
|
2835
|
+
var animateWithClass$1 = function animateWithClass(operationData) {
|
|
3244
2836
|
var selectedElement = operationData.selectedElement,
|
|
3245
2837
|
className = operationData.className,
|
|
3246
2838
|
removeClass = operationData.removeClass;
|
|
@@ -3295,7 +2887,7 @@ function resolveEventArguments(operationData, eventArgs) {
|
|
|
3295
2887
|
* @returns
|
|
3296
2888
|
*/
|
|
3297
2889
|
|
|
3298
|
-
var broadcastEvent = function broadcastEvent(operationData) {
|
|
2890
|
+
var broadcastEvent$1 = function broadcastEvent(operationData) {
|
|
3299
2891
|
var eventArgs = operationData.eventArgs,
|
|
3300
2892
|
eventTopic = operationData.eventTopic,
|
|
3301
2893
|
eventName = operationData.eventName;
|
|
@@ -3314,7 +2906,7 @@ var broadcastEvent = function broadcastEvent(operationData) {
|
|
|
3314
2906
|
/**
|
|
3315
2907
|
* This operation removes all of the children from the specified selected element.
|
|
3316
2908
|
*/
|
|
3317
|
-
var clearElement = function clearElement(operationData) {
|
|
2909
|
+
var clearElement$1 = function clearElement(operationData) {
|
|
3318
2910
|
var selectedElement = operationData.selectedElement;
|
|
3319
2911
|
selectedElement.empty();
|
|
3320
2912
|
return operationData;
|
|
@@ -3324,7 +2916,7 @@ var clearElement = function clearElement(operationData) {
|
|
|
3324
2916
|
* This operation removes all of the properties on the current operation date.
|
|
3325
2917
|
* Or, if the properties property is set only removes the properties defined by that list.
|
|
3326
2918
|
*/
|
|
3327
|
-
var clearOperationData = function clearOperationData(operationData) {
|
|
2919
|
+
var clearOperationData$1 = function clearOperationData(operationData) {
|
|
3328
2920
|
var properties = operationData.properties;
|
|
3329
2921
|
|
|
3330
2922
|
if (properties) {
|
|
@@ -3391,7 +2983,7 @@ function resolveProperties(properties, copy, extract) {
|
|
|
3391
2983
|
* @returns
|
|
3392
2984
|
*/
|
|
3393
2985
|
|
|
3394
|
-
var createElement = function createElement(operationData) {
|
|
2986
|
+
var createElement$1 = function createElement(operationData) {
|
|
3395
2987
|
operationData = resolvePropertyValues(operationData, operationData);
|
|
3396
2988
|
var _operationData = operationData,
|
|
3397
2989
|
elementName = _operationData.elementName,
|
|
@@ -3418,7 +3010,7 @@ var createElement = function createElement(operationData) {
|
|
|
3418
3010
|
* @returns
|
|
3419
3011
|
*/
|
|
3420
3012
|
|
|
3421
|
-
var customFunction = function customFunction(operationData) {
|
|
3013
|
+
var customFunction$1 = function customFunction(operationData) {
|
|
3422
3014
|
var _this = this;
|
|
3423
3015
|
|
|
3424
3016
|
var systemName = operationData.systemName;
|
|
@@ -3446,7 +3038,7 @@ var customFunction = function customFunction(operationData) {
|
|
|
3446
3038
|
* @returns
|
|
3447
3039
|
*/
|
|
3448
3040
|
|
|
3449
|
-
var endAction = function endAction(operationData) {
|
|
3041
|
+
var endAction$1 = function endAction(operationData) {
|
|
3450
3042
|
var _operationData = operationData,
|
|
3451
3043
|
actionInstance = _operationData.actionInstance,
|
|
3452
3044
|
actionOperationData = _operationData.actionOperationData;
|
|
@@ -3468,7 +3060,7 @@ var endAction = function endAction(operationData) {
|
|
|
3468
3060
|
* @param operationData
|
|
3469
3061
|
* @returns
|
|
3470
3062
|
*/
|
|
3471
|
-
var endLoop = function endLoop(operationData) {
|
|
3063
|
+
var endLoop$1 = function endLoop(operationData) {
|
|
3472
3064
|
var context = this;
|
|
3473
3065
|
|
|
3474
3066
|
if (!context.skipNextOperation) {
|
|
@@ -3488,7 +3080,7 @@ var endLoop = function endLoop(operationData) {
|
|
|
3488
3080
|
return operationData;
|
|
3489
3081
|
};
|
|
3490
3082
|
|
|
3491
|
-
var extendController = function extendController(operationData) {
|
|
3083
|
+
var extendController$1 = function extendController(operationData) {
|
|
3492
3084
|
var controllerInstance = operationData.controllerInstance,
|
|
3493
3085
|
controllerExtension = operationData.controllerExtension;
|
|
3494
3086
|
operationData.controllerInstance = Object.assign(controllerInstance, controllerExtension);
|
|
@@ -3502,7 +3094,7 @@ var extendController = function extendController(operationData) {
|
|
|
3502
3094
|
* @returns
|
|
3503
3095
|
*/
|
|
3504
3096
|
|
|
3505
|
-
var getControllerFromElement = function getControllerFromElement(operationData) {
|
|
3097
|
+
var getControllerFromElement$1 = function getControllerFromElement(operationData) {
|
|
3506
3098
|
var selectedElement = operationData.selectedElement,
|
|
3507
3099
|
controllerName = operationData.controllerName;
|
|
3508
3100
|
var controllers = getElementControllers(selectedElement);
|
|
@@ -3527,7 +3119,7 @@ var getControllerFromElement = function getControllerFromElement(operationData)
|
|
|
3527
3119
|
* @returns
|
|
3528
3120
|
*/
|
|
3529
3121
|
|
|
3530
|
-
var getControllerInstance = function getControllerInstance(operationData) {
|
|
3122
|
+
var getControllerInstance$1 = function getControllerInstance(operationData) {
|
|
3531
3123
|
var systemName = operationData.systemName,
|
|
3532
3124
|
_operationData$proper = operationData.propertyName,
|
|
3533
3125
|
propertyName = _operationData$proper === void 0 ? 'controllerInstance' : _operationData$proper;
|
|
@@ -3542,22 +3134,31 @@ var getControllerInstance = function getControllerInstance(operationData) {
|
|
|
3542
3134
|
return operationData;
|
|
3543
3135
|
};
|
|
3544
3136
|
|
|
3545
|
-
function
|
|
3546
|
-
//h[ar=8-1]
|
|
3137
|
+
function _modifyDimensionsByRatio(ratioModifier, dimensions) {
|
|
3138
|
+
var modifiedDimensions = _extends({}, dimensions); //h[ar=8-1]
|
|
3139
|
+
|
|
3140
|
+
|
|
3547
3141
|
var prefix = ratioModifier.substring(0, 1);
|
|
3548
|
-
var ratio = ratioModifier.substring(ratioModifier.indexOf('[') + 1, ratioModifier.indexOf(']') - ratioModifier.indexOf('[') - 1);
|
|
3142
|
+
var ratio = ratioModifier.substring(ratioModifier.indexOf('[') + 1, ratioModifier.indexOf(']') - (ratioModifier.indexOf('[') - 1));
|
|
3549
3143
|
var ratios = ratio.split('=')[1].split('-');
|
|
3550
3144
|
|
|
3145
|
+
if (ratios.filter(Boolean).length !== 2) {
|
|
3146
|
+
throw new Error("Badly formatted modifier, expect two ratios: " + ratio);
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3551
3149
|
if (prefix === 'h') {
|
|
3552
|
-
|
|
3150
|
+
modifiedDimensions.height = modifiedDimensions.width / +ratios[0] * +ratios[1];
|
|
3553
3151
|
} else if (prefix === 'w') {
|
|
3554
|
-
|
|
3152
|
+
modifiedDimensions.width = modifiedDimensions.height / +ratios[1] * +ratios[0];
|
|
3555
3153
|
}
|
|
3154
|
+
|
|
3155
|
+
return modifiedDimensions;
|
|
3556
3156
|
}
|
|
3557
3157
|
|
|
3558
|
-
function
|
|
3158
|
+
function _getModifierSuffix(modifier //*100h%
|
|
3159
|
+
) {
|
|
3559
3160
|
var endIdx = 1;
|
|
3560
|
-
var suffix = modifier.substring(modifier.length -
|
|
3161
|
+
var suffix = modifier.substring(modifier.length - endIdx, modifier.length);
|
|
3561
3162
|
|
|
3562
3163
|
if (suffix !== 'h' && suffix !== 'w' && suffix !== '%') {
|
|
3563
3164
|
suffix = null;
|
|
@@ -3566,12 +3167,10 @@ function getModifierSuffix(modifier) {
|
|
|
3566
3167
|
var isPercent = suffix === '%';
|
|
3567
3168
|
|
|
3568
3169
|
if (isPercent) {
|
|
3569
|
-
|
|
3570
|
-
suffix = modifier.substring(modifier.length - endIdx, 1);
|
|
3170
|
+
suffix = modifier.substring(modifier.length - endIdx, modifier.length - (endIdx + 1));
|
|
3571
3171
|
|
|
3572
3172
|
if (suffix !== 'h' && suffix !== 'w') {
|
|
3573
3173
|
suffix = null;
|
|
3574
|
-
endIdx = 1;
|
|
3575
3174
|
}
|
|
3576
3175
|
}
|
|
3577
3176
|
|
|
@@ -3579,20 +3178,22 @@ function getModifierSuffix(modifier) {
|
|
|
3579
3178
|
}
|
|
3580
3179
|
|
|
3581
3180
|
function _modifyDimensions(dimensions, prefix, suffix, widthModifier, heightModifier) {
|
|
3181
|
+
var modifiedDimension = _extends({}, dimensions);
|
|
3182
|
+
|
|
3582
3183
|
switch (prefix) {
|
|
3583
3184
|
case '+':
|
|
3584
3185
|
switch (suffix) {
|
|
3585
3186
|
case 'h':
|
|
3586
|
-
|
|
3187
|
+
modifiedDimension.height += heightModifier;
|
|
3587
3188
|
break;
|
|
3588
3189
|
|
|
3589
3190
|
case 'w':
|
|
3590
|
-
|
|
3191
|
+
modifiedDimension.width += widthModifier;
|
|
3591
3192
|
break;
|
|
3592
3193
|
|
|
3593
3194
|
default:
|
|
3594
|
-
|
|
3595
|
-
|
|
3195
|
+
modifiedDimension.height += heightModifier;
|
|
3196
|
+
modifiedDimension.width += widthModifier;
|
|
3596
3197
|
}
|
|
3597
3198
|
|
|
3598
3199
|
break;
|
|
@@ -3600,16 +3201,16 @@ function _modifyDimensions(dimensions, prefix, suffix, widthModifier, heightModi
|
|
|
3600
3201
|
case '-':
|
|
3601
3202
|
switch (suffix) {
|
|
3602
3203
|
case 'h':
|
|
3603
|
-
|
|
3204
|
+
modifiedDimension.height -= heightModifier;
|
|
3604
3205
|
break;
|
|
3605
3206
|
|
|
3606
3207
|
case 'w':
|
|
3607
|
-
|
|
3208
|
+
modifiedDimension.width -= widthModifier;
|
|
3608
3209
|
break;
|
|
3609
3210
|
|
|
3610
3211
|
default:
|
|
3611
|
-
|
|
3612
|
-
|
|
3212
|
+
modifiedDimension.height -= heightModifier;
|
|
3213
|
+
modifiedDimension.width -= widthModifier;
|
|
3613
3214
|
}
|
|
3614
3215
|
|
|
3615
3216
|
break;
|
|
@@ -3617,16 +3218,16 @@ function _modifyDimensions(dimensions, prefix, suffix, widthModifier, heightModi
|
|
|
3617
3218
|
case '/':
|
|
3618
3219
|
switch (suffix) {
|
|
3619
3220
|
case 'h':
|
|
3620
|
-
|
|
3221
|
+
modifiedDimension.height /= heightModifier;
|
|
3621
3222
|
break;
|
|
3622
3223
|
|
|
3623
3224
|
case 'w':
|
|
3624
|
-
|
|
3225
|
+
modifiedDimension.width /= widthModifier;
|
|
3625
3226
|
break;
|
|
3626
3227
|
|
|
3627
3228
|
default:
|
|
3628
|
-
|
|
3629
|
-
|
|
3229
|
+
modifiedDimension.height /= heightModifier;
|
|
3230
|
+
modifiedDimension.width /= widthModifier;
|
|
3630
3231
|
}
|
|
3631
3232
|
|
|
3632
3233
|
break;
|
|
@@ -3634,16 +3235,16 @@ function _modifyDimensions(dimensions, prefix, suffix, widthModifier, heightModi
|
|
|
3634
3235
|
case '*':
|
|
3635
3236
|
switch (suffix) {
|
|
3636
3237
|
case 'h':
|
|
3637
|
-
|
|
3238
|
+
modifiedDimension.height *= heightModifier;
|
|
3638
3239
|
break;
|
|
3639
3240
|
|
|
3640
3241
|
case 'w':
|
|
3641
|
-
|
|
3242
|
+
modifiedDimension.width *= widthModifier;
|
|
3642
3243
|
break;
|
|
3643
3244
|
|
|
3644
3245
|
default:
|
|
3645
|
-
|
|
3646
|
-
|
|
3246
|
+
modifiedDimension.height *= heightModifier;
|
|
3247
|
+
modifiedDimension.width *= widthModifier;
|
|
3647
3248
|
}
|
|
3648
3249
|
|
|
3649
3250
|
break;
|
|
@@ -3652,7 +3253,7 @@ function _modifyDimensions(dimensions, prefix, suffix, widthModifier, heightModi
|
|
|
3652
3253
|
console.error("Unknown operator found: " + prefix);
|
|
3653
3254
|
}
|
|
3654
3255
|
|
|
3655
|
-
return
|
|
3256
|
+
return modifiedDimension;
|
|
3656
3257
|
}
|
|
3657
3258
|
/**
|
|
3658
3259
|
* Modifies the given dimensions using the given modifier string.
|
|
@@ -3672,6 +3273,8 @@ function _modifyDimensions(dimensions, prefix, suffix, widthModifier, heightModi
|
|
|
3672
3273
|
|
|
3673
3274
|
|
|
3674
3275
|
function modifyDimensions(dimensions, modifier) {
|
|
3276
|
+
var clonedDimensions = _extends({}, dimensions);
|
|
3277
|
+
|
|
3675
3278
|
var ratioModifier = null;
|
|
3676
3279
|
|
|
3677
3280
|
if (modifier.indexOf('|') > -1) {
|
|
@@ -3683,25 +3286,27 @@ function modifyDimensions(dimensions, modifier) {
|
|
|
3683
3286
|
|
|
3684
3287
|
var prefix = modifier.substring(0, 1);
|
|
3685
3288
|
|
|
3686
|
-
var
|
|
3687
|
-
suffix =
|
|
3688
|
-
endIdx =
|
|
3689
|
-
isPercent =
|
|
3289
|
+
var _getModifierSuffix2 = _getModifierSuffix(modifier),
|
|
3290
|
+
suffix = _getModifierSuffix2[0],
|
|
3291
|
+
endIdx = _getModifierSuffix2[1],
|
|
3292
|
+
isPercent = _getModifierSuffix2[2];
|
|
3690
3293
|
|
|
3691
|
-
var value = parseInt(suffix !== null ? modifier.substring(1, modifier.length - endIdx - 1) : modifier.substring(1
|
|
3294
|
+
var value = parseInt(suffix !== null ? modifier.substring(1, modifier.length - (endIdx - 1)) : modifier.substring(1), 10);
|
|
3692
3295
|
var widthModifier = value;
|
|
3693
3296
|
var heightModifier = value;
|
|
3694
3297
|
|
|
3695
3298
|
if (isPercent) {
|
|
3696
|
-
widthModifier =
|
|
3697
|
-
heightModifier =
|
|
3299
|
+
widthModifier = clonedDimensions.width / 100 * value;
|
|
3300
|
+
heightModifier = clonedDimensions.height / 100 * value;
|
|
3698
3301
|
}
|
|
3699
3302
|
|
|
3700
|
-
|
|
3303
|
+
var modifiedDimension = _modifyDimensions(clonedDimensions, prefix, suffix, widthModifier, heightModifier);
|
|
3701
3304
|
|
|
3702
3305
|
if (ratioModifier) {
|
|
3703
|
-
|
|
3306
|
+
return _modifyDimensionsByRatio(ratioModifier, modifiedDimension);
|
|
3704
3307
|
}
|
|
3308
|
+
|
|
3309
|
+
return modifiedDimension;
|
|
3705
3310
|
}
|
|
3706
3311
|
|
|
3707
3312
|
/**
|
|
@@ -3723,7 +3328,7 @@ function modifyDimensions(dimensions, modifier) {
|
|
|
3723
3328
|
* @returns
|
|
3724
3329
|
*/
|
|
3725
3330
|
|
|
3726
|
-
var getElementDimensions = function getElementDimensions(operationData) {
|
|
3331
|
+
var getElementDimensions$1 = function getElementDimensions(operationData) {
|
|
3727
3332
|
var _selectedElement$inne, _selectedElement$inne2;
|
|
3728
3333
|
|
|
3729
3334
|
var selectedElement = operationData.selectedElement,
|
|
@@ -3738,7 +3343,7 @@ var getElementDimensions = function getElementDimensions(operationData) {
|
|
|
3738
3343
|
}
|
|
3739
3344
|
|
|
3740
3345
|
if (modifier) {
|
|
3741
|
-
modifyDimensions(dimensions, modifier);
|
|
3346
|
+
dimensions = modifyDimensions(dimensions, modifier);
|
|
3742
3347
|
}
|
|
3743
3348
|
|
|
3744
3349
|
operationData.dimensions = dimensions;
|
|
@@ -3753,7 +3358,7 @@ var getElementDimensions = function getElementDimensions(operationData) {
|
|
|
3753
3358
|
* @returns
|
|
3754
3359
|
*/
|
|
3755
3360
|
|
|
3756
|
-
var getImport = function getImport(operationData) {
|
|
3361
|
+
var getImport$1 = function getImport(operationData) {
|
|
3757
3362
|
var systemName = operationData.systemName;
|
|
3758
3363
|
|
|
3759
3364
|
var callBack = function callBack(instance) {
|
|
@@ -3780,7 +3385,7 @@ var addToCache = function addToCache(key, value) {
|
|
|
3780
3385
|
* @returns
|
|
3781
3386
|
*/
|
|
3782
3387
|
|
|
3783
|
-
var loadJSON = function loadJSON(operationData) {
|
|
3388
|
+
var loadJSON$1 = function loadJSON(operationData) {
|
|
3784
3389
|
var url = operationData.url,
|
|
3785
3390
|
cache = operationData.cache,
|
|
3786
3391
|
_operationData$proper = operationData.propertyName,
|
|
@@ -3794,9 +3399,9 @@ var loadJSON = function loadJSON(operationData) {
|
|
|
3794
3399
|
|
|
3795
3400
|
return new Promise(function (resolve, reject) {
|
|
3796
3401
|
fetch(url).then( /*#__PURE__*/function () {
|
|
3797
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(response) {
|
|
3402
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
|
|
3798
3403
|
var json, cacheValue;
|
|
3799
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
3404
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3800
3405
|
while (1) {
|
|
3801
3406
|
switch (_context.prev = _context.next) {
|
|
3802
3407
|
case 0:
|
|
@@ -3831,7 +3436,7 @@ var loadJSON = function loadJSON(operationData) {
|
|
|
3831
3436
|
* @param operationData
|
|
3832
3437
|
* @returns
|
|
3833
3438
|
*/
|
|
3834
|
-
var log = function log(operationData) {
|
|
3439
|
+
var log$1 = function log(operationData) {
|
|
3835
3440
|
console.group('Operation info');
|
|
3836
3441
|
console.dir({
|
|
3837
3442
|
context: this
|
|
@@ -3849,7 +3454,7 @@ var log = function log(operationData) {
|
|
|
3849
3454
|
* @param operationData
|
|
3850
3455
|
* @returns
|
|
3851
3456
|
*/
|
|
3852
|
-
var removeClass = function removeClass(operationData) {
|
|
3457
|
+
var removeClass$1 = function removeClass(operationData) {
|
|
3853
3458
|
var selectedElement = operationData.selectedElement,
|
|
3854
3459
|
className = operationData.className;
|
|
3855
3460
|
selectedElement.removeClass(className);
|
|
@@ -3863,7 +3468,7 @@ var removeClass = function removeClass(operationData) {
|
|
|
3863
3468
|
* @returns
|
|
3864
3469
|
*/
|
|
3865
3470
|
|
|
3866
|
-
var removeControllerFromElement = function removeControllerFromElement(operationData) {
|
|
3471
|
+
var removeControllerFromElement$1 = function removeControllerFromElement(operationData) {
|
|
3867
3472
|
var selectedElement = operationData.selectedElement,
|
|
3868
3473
|
controllerName = operationData.controllerName;
|
|
3869
3474
|
var controllers = getElementControllers(selectedElement);
|
|
@@ -3886,7 +3491,7 @@ var removeControllerFromElement = function removeControllerFromElement(operation
|
|
|
3886
3491
|
* @param operationData
|
|
3887
3492
|
* @returns
|
|
3888
3493
|
*/
|
|
3889
|
-
var removeElement = function removeElement(operationData) {
|
|
3494
|
+
var removeElement$1 = function removeElement(operationData) {
|
|
3890
3495
|
var selectedElement = operationData.selectedElement;
|
|
3891
3496
|
selectedElement.remove();
|
|
3892
3497
|
return operationData;
|
|
@@ -3898,7 +3503,7 @@ var removeElement = function removeElement(operationData) {
|
|
|
3898
3503
|
* @param operationData
|
|
3899
3504
|
* @returns
|
|
3900
3505
|
*/
|
|
3901
|
-
var removePropertiesFromOperationData = function removePropertiesFromOperationData(operationData) {
|
|
3506
|
+
var removePropertiesFromOperationData$1 = function removePropertiesFromOperationData(operationData) {
|
|
3902
3507
|
var propertyNames = operationData.propertyNames;
|
|
3903
3508
|
propertyNames.forEach(function (name) {
|
|
3904
3509
|
delete operationData[name];
|
|
@@ -3914,7 +3519,7 @@ var removePropertiesFromOperationData = function removePropertiesFromOperationDa
|
|
|
3914
3519
|
* @param operationData
|
|
3915
3520
|
* @returns
|
|
3916
3521
|
*/
|
|
3917
|
-
var reparentElement = function reparentElement(operationData) {
|
|
3522
|
+
var reparentElement$1 = function reparentElement(operationData) {
|
|
3918
3523
|
var selectedElement = operationData.selectedElement,
|
|
3919
3524
|
newParentSelector = operationData.newParentSelector;
|
|
3920
3525
|
selectedElement.remove().appendTo(newParentSelector);
|
|
@@ -3929,7 +3534,7 @@ var reparentElement = function reparentElement(operationData) {
|
|
|
3929
3534
|
* @returns
|
|
3930
3535
|
*/
|
|
3931
3536
|
|
|
3932
|
-
var requestAction = function requestAction(operationData) {
|
|
3537
|
+
var requestAction$1 = function requestAction(operationData) {
|
|
3933
3538
|
var systemName = operationData.systemName;
|
|
3934
3539
|
|
|
3935
3540
|
var resultCallback = function resultCallback(action) {
|
|
@@ -3947,7 +3552,7 @@ var requestAction = function requestAction(operationData) {
|
|
|
3947
3552
|
* @returns
|
|
3948
3553
|
*/
|
|
3949
3554
|
|
|
3950
|
-
var resizeAction = function resizeAction(operationData) {
|
|
3555
|
+
var resizeAction$1 = function resizeAction(operationData) {
|
|
3951
3556
|
var _operationData = operationData,
|
|
3952
3557
|
actionInstance = _operationData.actionInstance,
|
|
3953
3558
|
actionOperationData = _operationData.actionOperationData;
|
|
@@ -3985,7 +3590,7 @@ function findElementBySelector(root, selector, operationData, propertyName) {
|
|
|
3985
3590
|
*/
|
|
3986
3591
|
|
|
3987
3592
|
|
|
3988
|
-
var selectElement = function selectElement(operationData) {
|
|
3593
|
+
var selectElement$1 = function selectElement(operationData) {
|
|
3989
3594
|
var selector = operationData.selector,
|
|
3990
3595
|
_operationData$proper = operationData.propertyName,
|
|
3991
3596
|
propertyName = _operationData$proper === void 0 ? 'selectedElement' : _operationData$proper,
|
|
@@ -4016,7 +3621,7 @@ var selectElement = function selectElement(operationData) {
|
|
|
4016
3621
|
* @param operationData
|
|
4017
3622
|
* @returns
|
|
4018
3623
|
*/
|
|
4019
|
-
var setElementAttributes = function setElementAttributes(operationData) {
|
|
3624
|
+
var setElementAttributes$1 = function setElementAttributes(operationData) {
|
|
4020
3625
|
var attributes = operationData.attributes,
|
|
4021
3626
|
selectedElement = operationData.selectedElement;
|
|
4022
3627
|
Object.entries(attributes).forEach(function (_ref) {
|
|
@@ -4039,7 +3644,7 @@ var setElementAttributes = function setElementAttributes(operationData) {
|
|
|
4039
3644
|
* @param operationData
|
|
4040
3645
|
* @returns
|
|
4041
3646
|
*/
|
|
4042
|
-
var setElementContent = function setElementContent(operationData) {
|
|
3647
|
+
var setElementContent$1 = function setElementContent(operationData) {
|
|
4043
3648
|
var _operationData$insert = operationData.insertionType,
|
|
4044
3649
|
insertionType = _operationData$insert === void 0 ? 'overwrite' : _operationData$insert,
|
|
4045
3650
|
selectedElement = operationData.selectedElement,
|
|
@@ -4071,7 +3676,7 @@ var setElementContent = function setElementContent(operationData) {
|
|
|
4071
3676
|
* @returns
|
|
4072
3677
|
*/
|
|
4073
3678
|
|
|
4074
|
-
var setOperationData = function setOperationData(operationData) {
|
|
3679
|
+
var setOperationData$1 = function setOperationData(operationData) {
|
|
4075
3680
|
var _operationData = operationData,
|
|
4076
3681
|
_operationData$overri = _operationData.override,
|
|
4077
3682
|
override = _operationData$overri === void 0 ? false : _operationData$overri,
|
|
@@ -4099,7 +3704,7 @@ var setOperationData = function setOperationData(operationData) {
|
|
|
4099
3704
|
* @returns
|
|
4100
3705
|
*/
|
|
4101
3706
|
|
|
4102
|
-
var setStyle = function setStyle(operationData) {
|
|
3707
|
+
var setStyle$1 = function setStyle(operationData) {
|
|
4103
3708
|
var _operationData$proper = operationData.propertyName,
|
|
4104
3709
|
propertyName = _operationData$proper === void 0 ? 'selectedElement' : _operationData$proper;
|
|
4105
3710
|
var properties = resolvePropertyValues(operationData, operationData.properties);
|
|
@@ -4119,7 +3724,7 @@ var setStyle = function setStyle(operationData) {
|
|
|
4119
3724
|
* @returns
|
|
4120
3725
|
*/
|
|
4121
3726
|
|
|
4122
|
-
var startAction = function startAction(operationData) {
|
|
3727
|
+
var startAction$1 = function startAction(operationData) {
|
|
4123
3728
|
var _operationData = operationData,
|
|
4124
3729
|
actionInstance = _operationData.actionInstance,
|
|
4125
3730
|
actionOperationData = _operationData.actionOperationData;
|
|
@@ -4145,7 +3750,7 @@ var startAction = function startAction(operationData) {
|
|
|
4145
3750
|
* @param operationData
|
|
4146
3751
|
* @returns
|
|
4147
3752
|
*/
|
|
4148
|
-
var startLoop = function startLoop(operationData) {
|
|
3753
|
+
var startLoop$1 = function startLoop(operationData) {
|
|
4149
3754
|
var context = this;
|
|
4150
3755
|
var collection = operationData.collection,
|
|
4151
3756
|
_operationData$proper = operationData.propertyName,
|
|
@@ -4179,7 +3784,7 @@ var startLoop = function startLoop(operationData) {
|
|
|
4179
3784
|
* @param operationData
|
|
4180
3785
|
* @returns
|
|
4181
3786
|
*/
|
|
4182
|
-
var toggleClass = function toggleClass(operationData) {
|
|
3787
|
+
var toggleClass$1 = function toggleClass(operationData) {
|
|
4183
3788
|
var selectedElement = operationData.selectedElement,
|
|
4184
3789
|
className = operationData.className;
|
|
4185
3790
|
selectedElement.toggleClass(className);
|
|
@@ -4190,66 +3795,66 @@ var toggleClass = function toggleClass(operationData) {
|
|
|
4190
3795
|
* This operation toggles the visibility of the specified selected element
|
|
4191
3796
|
*
|
|
4192
3797
|
* @param operationData
|
|
4193
|
-
* @returns
|
|
4194
|
-
*/
|
|
4195
|
-
var toggleElement = function toggleElement(operationData) {
|
|
4196
|
-
operationData.selectedElement.toggle();
|
|
4197
|
-
return operationData;
|
|
4198
|
-
};
|
|
4199
|
-
|
|
4200
|
-
/**
|
|
4201
|
-
* This operation waits for the specified amount of milliseconds.
|
|
4202
|
-
*
|
|
4203
|
-
* @param operationData
|
|
4204
|
-
* @returns
|
|
4205
|
-
*/
|
|
4206
|
-
|
|
4207
|
-
var wait = function wait(operationData) {
|
|
4208
|
-
var milliseconds = operationData.milliseconds;
|
|
4209
|
-
return new Promise(function (resolve) {
|
|
4210
|
-
setTimeout(function () {
|
|
4211
|
-
internalResolve(resolve, operationData);
|
|
4212
|
-
}, milliseconds);
|
|
4213
|
-
});
|
|
4214
|
-
};
|
|
4215
|
-
|
|
4216
|
-
var ops = {
|
|
4217
|
-
__proto__: null,
|
|
4218
|
-
addClass: addClass,
|
|
4219
|
-
addControllerToElement: addControllerToElement,
|
|
4220
|
-
animate: animate,
|
|
4221
|
-
animateWithClass: animateWithClass,
|
|
4222
|
-
broadcastEvent: broadcastEvent,
|
|
4223
|
-
clearElement: clearElement,
|
|
4224
|
-
clearOperationData: clearOperationData,
|
|
4225
|
-
createElement: createElement,
|
|
4226
|
-
customFunction: customFunction,
|
|
4227
|
-
endAction: endAction,
|
|
4228
|
-
endLoop: endLoop,
|
|
4229
|
-
extendController: extendController,
|
|
4230
|
-
getControllerFromElement: getControllerFromElement,
|
|
4231
|
-
getControllerInstance: getControllerInstance,
|
|
4232
|
-
getElementDimensions: getElementDimensions,
|
|
4233
|
-
getImport: getImport,
|
|
4234
|
-
loadJSON: loadJSON,
|
|
4235
|
-
log: log,
|
|
4236
|
-
removeClass: removeClass,
|
|
4237
|
-
removeControllerFromElement: removeControllerFromElement,
|
|
4238
|
-
removeElement: removeElement,
|
|
4239
|
-
removePropertiesFromOperationData: removePropertiesFromOperationData,
|
|
4240
|
-
reparentElement: reparentElement,
|
|
4241
|
-
requestAction: requestAction,
|
|
4242
|
-
resizeAction: resizeAction,
|
|
4243
|
-
selectElement: selectElement,
|
|
4244
|
-
setElementAttributes: setElementAttributes,
|
|
4245
|
-
setElementContent: setElementContent,
|
|
4246
|
-
setOperationData: setOperationData,
|
|
4247
|
-
setStyle: setStyle,
|
|
4248
|
-
startAction: startAction,
|
|
4249
|
-
startLoop: startLoop,
|
|
4250
|
-
toggleClass: toggleClass,
|
|
4251
|
-
toggleElement: toggleElement,
|
|
4252
|
-
wait: wait
|
|
3798
|
+
* @returns
|
|
3799
|
+
*/
|
|
3800
|
+
var toggleElement$1 = function toggleElement(operationData) {
|
|
3801
|
+
operationData.selectedElement.toggle();
|
|
3802
|
+
return operationData;
|
|
3803
|
+
};
|
|
3804
|
+
|
|
3805
|
+
/**
|
|
3806
|
+
* This operation waits for the specified amount of milliseconds.
|
|
3807
|
+
*
|
|
3808
|
+
* @param operationData
|
|
3809
|
+
* @returns
|
|
3810
|
+
*/
|
|
3811
|
+
|
|
3812
|
+
var wait$1 = function wait(operationData) {
|
|
3813
|
+
var milliseconds = operationData.milliseconds;
|
|
3814
|
+
return new Promise(function (resolve) {
|
|
3815
|
+
setTimeout(function () {
|
|
3816
|
+
internalResolve(resolve, operationData);
|
|
3817
|
+
}, milliseconds);
|
|
3818
|
+
});
|
|
3819
|
+
};
|
|
3820
|
+
|
|
3821
|
+
var ops = {
|
|
3822
|
+
__proto__: null,
|
|
3823
|
+
addClass: addClass$1,
|
|
3824
|
+
addControllerToElement: addControllerToElement$1,
|
|
3825
|
+
animate: animate$1,
|
|
3826
|
+
animateWithClass: animateWithClass$1,
|
|
3827
|
+
broadcastEvent: broadcastEvent$1,
|
|
3828
|
+
clearElement: clearElement$1,
|
|
3829
|
+
clearOperationData: clearOperationData$1,
|
|
3830
|
+
createElement: createElement$1,
|
|
3831
|
+
customFunction: customFunction$1,
|
|
3832
|
+
endAction: endAction$1,
|
|
3833
|
+
endLoop: endLoop$1,
|
|
3834
|
+
extendController: extendController$1,
|
|
3835
|
+
getControllerFromElement: getControllerFromElement$1,
|
|
3836
|
+
getControllerInstance: getControllerInstance$1,
|
|
3837
|
+
getElementDimensions: getElementDimensions$1,
|
|
3838
|
+
getImport: getImport$1,
|
|
3839
|
+
loadJSON: loadJSON$1,
|
|
3840
|
+
log: log$1,
|
|
3841
|
+
removeClass: removeClass$1,
|
|
3842
|
+
removeControllerFromElement: removeControllerFromElement$1,
|
|
3843
|
+
removeElement: removeElement$1,
|
|
3844
|
+
removePropertiesFromOperationData: removePropertiesFromOperationData$1,
|
|
3845
|
+
reparentElement: reparentElement$1,
|
|
3846
|
+
requestAction: requestAction$1,
|
|
3847
|
+
resizeAction: resizeAction$1,
|
|
3848
|
+
selectElement: selectElement$1,
|
|
3849
|
+
setElementAttributes: setElementAttributes$1,
|
|
3850
|
+
setElementContent: setElementContent$1,
|
|
3851
|
+
setOperationData: setOperationData$1,
|
|
3852
|
+
setStyle: setStyle$1,
|
|
3853
|
+
startAction: startAction$1,
|
|
3854
|
+
startLoop: startLoop$1,
|
|
3855
|
+
toggleClass: toggleClass$1,
|
|
3856
|
+
toggleElement: toggleElement$1,
|
|
3857
|
+
wait: wait$1
|
|
4253
3858
|
};
|
|
4254
3859
|
|
|
4255
3860
|
var JwPlayerTimelineProvider = /*#__PURE__*/function () {
|
|
@@ -4789,5 +4394,490 @@ var WebpackResourceImporter = /*#__PURE__*/function () {
|
|
|
4789
4394
|
return WebpackResourceImporter;
|
|
4790
4395
|
}();
|
|
4791
4396
|
|
|
4792
|
-
|
|
4397
|
+
function addClass() {
|
|
4398
|
+
return {
|
|
4399
|
+
description: 'Add a class to the selected element.',
|
|
4400
|
+
dependentProperties: ['selectedElement'],
|
|
4401
|
+
properties: {
|
|
4402
|
+
className: {
|
|
4403
|
+
type: 'ParameterType:className',
|
|
4404
|
+
required: true
|
|
4405
|
+
}
|
|
4406
|
+
}
|
|
4407
|
+
};
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
function addControllerToElement() {
|
|
4411
|
+
return {
|
|
4412
|
+
description: 'Adds the current controller to the selected element(s)',
|
|
4413
|
+
dependentProperties: ['selectedElement', 'controllerInstance']
|
|
4414
|
+
};
|
|
4415
|
+
}
|
|
4416
|
+
|
|
4417
|
+
function animate() {
|
|
4418
|
+
return {
|
|
4419
|
+
description: 'Animates the selected element with the given animation settings.',
|
|
4420
|
+
dependentProperties: ['selectedElement'],
|
|
4421
|
+
properties: {
|
|
4422
|
+
animationEasing: 'ParameterType:boolean',
|
|
4423
|
+
animationProperties: {
|
|
4424
|
+
type: 'ParameterType:object',
|
|
4425
|
+
required: true
|
|
4426
|
+
},
|
|
4427
|
+
animationDuration: {
|
|
4428
|
+
type: 'ParameterType:integer',
|
|
4429
|
+
required: true
|
|
4430
|
+
}
|
|
4431
|
+
}
|
|
4432
|
+
};
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4435
|
+
function animateWithClass() {
|
|
4436
|
+
return {
|
|
4437
|
+
description: 'Animates the selected element by adding the given animation class.',
|
|
4438
|
+
dependentProperties: ['selectedElement'],
|
|
4439
|
+
properties: {
|
|
4440
|
+
className: {
|
|
4441
|
+
type: 'ParameterType:className',
|
|
4442
|
+
required: true
|
|
4443
|
+
},
|
|
4444
|
+
removeClass: 'ParameterType:boolean'
|
|
4445
|
+
}
|
|
4446
|
+
};
|
|
4447
|
+
}
|
|
4448
|
+
|
|
4449
|
+
function broadcastEvent() {
|
|
4450
|
+
return {
|
|
4451
|
+
description: 'Broadcasts an eventbus event with the given type, topic and optional arguments',
|
|
4452
|
+
properties: {
|
|
4453
|
+
eventArgs: 'ParameterType:array',
|
|
4454
|
+
eventTopic: 'ParameterType:eventTopic',
|
|
4455
|
+
eventName: {
|
|
4456
|
+
type: 'ParameterType:eventName',
|
|
4457
|
+
required: true
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
};
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4463
|
+
function clearElement() {
|
|
4464
|
+
return {
|
|
4465
|
+
description: 'clears the given element',
|
|
4466
|
+
dependentProperties: ['selectedElement']
|
|
4467
|
+
};
|
|
4468
|
+
}
|
|
4469
|
+
|
|
4470
|
+
function clearOperationData() {
|
|
4471
|
+
return {
|
|
4472
|
+
description: 'clears the current operation data',
|
|
4473
|
+
properties: {
|
|
4474
|
+
properties: 'ParameterType:array'
|
|
4475
|
+
}
|
|
4476
|
+
};
|
|
4477
|
+
}
|
|
4478
|
+
|
|
4479
|
+
function createElement() {
|
|
4480
|
+
return {
|
|
4481
|
+
description: 'Creates an HTML element with the given name and optionally adds the given attributes',
|
|
4482
|
+
properties: {
|
|
4483
|
+
elementName: {
|
|
4484
|
+
type: 'ParameterType:htmlElementName',
|
|
4485
|
+
required: true
|
|
4486
|
+
},
|
|
4487
|
+
attributes: 'ParameterType:object',
|
|
4488
|
+
text: 'ParameterType:string'
|
|
4489
|
+
},
|
|
4490
|
+
outputProperties: {
|
|
4491
|
+
template: 'ParameterType:object'
|
|
4492
|
+
}
|
|
4493
|
+
};
|
|
4494
|
+
}
|
|
4495
|
+
|
|
4496
|
+
function customFunction() {
|
|
4497
|
+
return {
|
|
4498
|
+
description: 'Executes the specified custom function',
|
|
4499
|
+
properties: {
|
|
4500
|
+
systemName: {
|
|
4501
|
+
type: 'ParameterType:systemName',
|
|
4502
|
+
required: true
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4505
|
+
};
|
|
4506
|
+
}
|
|
4507
|
+
|
|
4508
|
+
function endAction() {
|
|
4509
|
+
return {
|
|
4510
|
+
description: 'Ends the current action',
|
|
4511
|
+
dependentProperties: ['actionInstance'],
|
|
4512
|
+
properties: {
|
|
4513
|
+
actionOperationData: 'ParameterType:object'
|
|
4514
|
+
}
|
|
4515
|
+
};
|
|
4516
|
+
}
|
|
4517
|
+
|
|
4518
|
+
function endLoop() {
|
|
4519
|
+
return {
|
|
4520
|
+
description: 'Ends the current loop'
|
|
4521
|
+
};
|
|
4522
|
+
}
|
|
4523
|
+
|
|
4524
|
+
function extendController() {
|
|
4525
|
+
return {
|
|
4526
|
+
description: 'Extends the current controller',
|
|
4527
|
+
dependentProperties: ['controllerInstance'],
|
|
4528
|
+
properties: {
|
|
4529
|
+
controllerExtension: 'ParameterType:object'
|
|
4530
|
+
}
|
|
4531
|
+
};
|
|
4532
|
+
}
|
|
4533
|
+
|
|
4534
|
+
function getControllerFromElement() {
|
|
4535
|
+
return {
|
|
4536
|
+
description: 'Retrieves the specified controller from the current element',
|
|
4537
|
+
dependentProperties: ['selectedElement'],
|
|
4538
|
+
properties: {
|
|
4539
|
+
controllerName: {
|
|
4540
|
+
type: 'ParameterType:controllerName',
|
|
4541
|
+
required: true
|
|
4542
|
+
}
|
|
4543
|
+
},
|
|
4544
|
+
outputProperties: {
|
|
4545
|
+
controllerInstance: 'ParameterType:object'
|
|
4546
|
+
}
|
|
4547
|
+
};
|
|
4548
|
+
}
|
|
4549
|
+
|
|
4550
|
+
function getControllerInstance() {
|
|
4551
|
+
return {
|
|
4552
|
+
description: 'Retrieves an instance of the specified controller',
|
|
4553
|
+
properties: {
|
|
4554
|
+
systemName: {
|
|
4555
|
+
type: 'ParameterType:controllerName',
|
|
4556
|
+
required: true
|
|
4557
|
+
},
|
|
4558
|
+
propertyName: {
|
|
4559
|
+
type: 'ParameterType:string',
|
|
4560
|
+
defaultValue: 'controllerInstance'
|
|
4561
|
+
}
|
|
4562
|
+
},
|
|
4563
|
+
outputProperties: {
|
|
4564
|
+
controllerInstance: 'ParameterType:object'
|
|
4565
|
+
}
|
|
4566
|
+
};
|
|
4567
|
+
}
|
|
4568
|
+
|
|
4569
|
+
function getElementDimensions() {
|
|
4570
|
+
return {
|
|
4571
|
+
description: 'Calculates the dimensions for the current element',
|
|
4572
|
+
dependentProperties: ['selectedElement'],
|
|
4573
|
+
properties: {
|
|
4574
|
+
modifier: 'ParameterType:dimensionsModifier'
|
|
4575
|
+
},
|
|
4576
|
+
outputProperties: {
|
|
4577
|
+
dimensions: 'ParameterType:dimensions'
|
|
4578
|
+
}
|
|
4579
|
+
};
|
|
4580
|
+
}
|
|
4581
|
+
|
|
4582
|
+
function getImport() {
|
|
4583
|
+
return {
|
|
4584
|
+
description: 'Retrieves a javascript import specified by the given system name',
|
|
4585
|
+
properties: {
|
|
4586
|
+
systemName: {
|
|
4587
|
+
type: 'ParameterType:systemName',
|
|
4588
|
+
required: true
|
|
4589
|
+
}
|
|
4590
|
+
},
|
|
4591
|
+
outputProperties: {
|
|
4592
|
+
importedInstance: 'ParameterType:object'
|
|
4593
|
+
}
|
|
4594
|
+
};
|
|
4595
|
+
}
|
|
4596
|
+
|
|
4597
|
+
function loadJSON() {
|
|
4598
|
+
return {
|
|
4599
|
+
description: 'Load JSON from the given url',
|
|
4600
|
+
properties: {
|
|
4601
|
+
url: {
|
|
4602
|
+
type: 'ParameterType:url',
|
|
4603
|
+
required: true
|
|
4604
|
+
},
|
|
4605
|
+
cache: 'ParameterType:boolean',
|
|
4606
|
+
propertyName: {
|
|
4607
|
+
type: 'ParameterType:string',
|
|
4608
|
+
defaultValue: 'json'
|
|
4609
|
+
}
|
|
4610
|
+
},
|
|
4611
|
+
outputProperties: {
|
|
4612
|
+
json: 'ParameterType:object'
|
|
4613
|
+
}
|
|
4614
|
+
};
|
|
4615
|
+
}
|
|
4616
|
+
|
|
4617
|
+
function log() {
|
|
4618
|
+
return {
|
|
4619
|
+
description: 'Logs the current context and operation data to the console'
|
|
4620
|
+
};
|
|
4621
|
+
}
|
|
4622
|
+
|
|
4623
|
+
function removeClass() {
|
|
4624
|
+
return {
|
|
4625
|
+
description: 'Removes the specified class from the selected element',
|
|
4626
|
+
dependentProperties: ['selectedElement'],
|
|
4627
|
+
properties: {
|
|
4628
|
+
className: {
|
|
4629
|
+
type: 'ParameterType:className',
|
|
4630
|
+
required: true
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
};
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4636
|
+
function removeControllerFromElement() {
|
|
4637
|
+
return {
|
|
4638
|
+
description: 'Removes the specified controller from the selected element',
|
|
4639
|
+
dependentProperties: ['selectedElement'],
|
|
4640
|
+
properties: {
|
|
4641
|
+
controllerName: {
|
|
4642
|
+
type: 'ParameterType:controllerName',
|
|
4643
|
+
required: true
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
};
|
|
4647
|
+
}
|
|
4648
|
+
|
|
4649
|
+
function removeElement() {
|
|
4650
|
+
return {
|
|
4651
|
+
description: 'Removes the selected element from the DOM',
|
|
4652
|
+
dependentProperties: ['selectedElement']
|
|
4653
|
+
};
|
|
4654
|
+
}
|
|
4655
|
+
|
|
4656
|
+
function removePropertiesFromOperationData() {
|
|
4657
|
+
return {
|
|
4658
|
+
description: 'Removes the specified properties from the current operation data',
|
|
4659
|
+
properties: {
|
|
4660
|
+
propertyNames: 'ParameterType:array'
|
|
4661
|
+
}
|
|
4662
|
+
};
|
|
4663
|
+
}
|
|
4664
|
+
|
|
4665
|
+
function reparentElement() {
|
|
4666
|
+
return {
|
|
4667
|
+
description: 'Moves the selected element to the new location described by the given selector',
|
|
4668
|
+
dependentProperties: ['selectedElement'],
|
|
4669
|
+
properties: {
|
|
4670
|
+
newParentSelector: {
|
|
4671
|
+
type: 'ParameterType:selector',
|
|
4672
|
+
required: true
|
|
4673
|
+
}
|
|
4674
|
+
}
|
|
4675
|
+
};
|
|
4676
|
+
}
|
|
4677
|
+
|
|
4678
|
+
function requestAction() {
|
|
4679
|
+
return {
|
|
4680
|
+
description: 'Retrieves an instance of the specified action',
|
|
4681
|
+
properties: {
|
|
4682
|
+
systemName: {
|
|
4683
|
+
type: 'ParameterType:actionName'
|
|
4684
|
+
}
|
|
4685
|
+
},
|
|
4686
|
+
outputProperties: {
|
|
4687
|
+
actionInstance: 'ParameterType:object'
|
|
4688
|
+
}
|
|
4689
|
+
};
|
|
4690
|
+
}
|
|
4691
|
+
|
|
4692
|
+
function resizeAction() {
|
|
4693
|
+
return {
|
|
4694
|
+
description: 'Triggers a resize on the current action',
|
|
4695
|
+
dependentProperties: ['actionInstance'],
|
|
4696
|
+
properties: {
|
|
4697
|
+
actionOperationData: 'ParameterType:object'
|
|
4698
|
+
}
|
|
4699
|
+
};
|
|
4700
|
+
}
|
|
4701
|
+
|
|
4702
|
+
function selectElement() {
|
|
4703
|
+
return {
|
|
4704
|
+
description: 'Selects an element using the given selector',
|
|
4705
|
+
properties: {
|
|
4706
|
+
selector: {
|
|
4707
|
+
type: 'ParameterType:selector',
|
|
4708
|
+
required: true
|
|
4709
|
+
},
|
|
4710
|
+
propertyName: 'ParameterType:string',
|
|
4711
|
+
useSelectedElementAsRoot: 'ParameterType:boolean'
|
|
4712
|
+
},
|
|
4713
|
+
outputProperties: {
|
|
4714
|
+
selectedElement: 'ParameterType:object'
|
|
4715
|
+
}
|
|
4716
|
+
};
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
function setElementAttributes() {
|
|
4720
|
+
return {
|
|
4721
|
+
description: 'Sets the given attributes on the selected element',
|
|
4722
|
+
dependentProperties: ['selectedElement'],
|
|
4723
|
+
properties: {
|
|
4724
|
+
attributes: {
|
|
4725
|
+
type: 'ParameterType:object',
|
|
4726
|
+
required: true
|
|
4727
|
+
}
|
|
4728
|
+
}
|
|
4729
|
+
};
|
|
4730
|
+
}
|
|
4731
|
+
|
|
4732
|
+
function setElementContent() {
|
|
4733
|
+
return {
|
|
4734
|
+
description: 'Sets the given HTML content in the selected element',
|
|
4735
|
+
dependentProperties: ['selectedElement'],
|
|
4736
|
+
properties: {
|
|
4737
|
+
insertionType: [{
|
|
4738
|
+
value: 'overwrite',
|
|
4739
|
+
description: 'the contents of the selected element are replaced by the given template',
|
|
4740
|
+
"default": true
|
|
4741
|
+
}, {
|
|
4742
|
+
value: 'append',
|
|
4743
|
+
description: 'the new content will be inserted after the current content'
|
|
4744
|
+
}, {
|
|
4745
|
+
value: 'prepend',
|
|
4746
|
+
description: 'the new content will be inserted before the current content'
|
|
4747
|
+
}],
|
|
4748
|
+
template: {
|
|
4749
|
+
type: 'ParameterType:htmlContent',
|
|
4750
|
+
required: true
|
|
4751
|
+
}
|
|
4752
|
+
}
|
|
4753
|
+
};
|
|
4754
|
+
}
|
|
4755
|
+
|
|
4756
|
+
function setOperationData() {
|
|
4757
|
+
return {
|
|
4758
|
+
description: 'Sets the given properties on the current operation data',
|
|
4759
|
+
properties: {
|
|
4760
|
+
properties: {
|
|
4761
|
+
type: 'ParameterType:object',
|
|
4762
|
+
required: true
|
|
4763
|
+
},
|
|
4764
|
+
override: 'ParameterType:boolean'
|
|
4765
|
+
}
|
|
4766
|
+
};
|
|
4767
|
+
}
|
|
4768
|
+
|
|
4769
|
+
function setStyle() {
|
|
4770
|
+
return {
|
|
4771
|
+
description: 'Sets the given style properties on the selected element',
|
|
4772
|
+
properties: {
|
|
4773
|
+
properties: {
|
|
4774
|
+
type: 'ParameterType:object',
|
|
4775
|
+
required: true
|
|
4776
|
+
},
|
|
4777
|
+
propertyName: {
|
|
4778
|
+
type: 'ParameterType:string',
|
|
4779
|
+
required: false
|
|
4780
|
+
}
|
|
4781
|
+
}
|
|
4782
|
+
};
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
function startAction() {
|
|
4786
|
+
return {
|
|
4787
|
+
description: 'Starts the selected action',
|
|
4788
|
+
dependentProperties: ['actionInstance'],
|
|
4789
|
+
properties: {
|
|
4790
|
+
actionOperationData: 'ParameterType:object'
|
|
4791
|
+
}
|
|
4792
|
+
};
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
function startLoop() {
|
|
4796
|
+
return {
|
|
4797
|
+
description: 'Starts a loop over the given collection',
|
|
4798
|
+
properties: {
|
|
4799
|
+
collection: {
|
|
4800
|
+
type: 'ParameterType:array',
|
|
4801
|
+
required: true
|
|
4802
|
+
},
|
|
4803
|
+
propertyName: {
|
|
4804
|
+
type: 'ParameterType:string',
|
|
4805
|
+
defaultValue: 'currentItem'
|
|
4806
|
+
}
|
|
4807
|
+
}
|
|
4808
|
+
};
|
|
4809
|
+
}
|
|
4810
|
+
|
|
4811
|
+
function toggleClass() {
|
|
4812
|
+
return {
|
|
4813
|
+
description: 'Toggles the given class on the selected element',
|
|
4814
|
+
dependentProperties: ['selectedElement'],
|
|
4815
|
+
properties: {
|
|
4816
|
+
className: {
|
|
4817
|
+
type: 'ParameterType:className',
|
|
4818
|
+
required: true
|
|
4819
|
+
}
|
|
4820
|
+
}
|
|
4821
|
+
};
|
|
4822
|
+
}
|
|
4823
|
+
|
|
4824
|
+
function toggleElement() {
|
|
4825
|
+
return {
|
|
4826
|
+
description: 'Toggles the selected element',
|
|
4827
|
+
dependentProperties: ['selectedElement']
|
|
4828
|
+
};
|
|
4829
|
+
}
|
|
4830
|
+
|
|
4831
|
+
function wait() {
|
|
4832
|
+
return {
|
|
4833
|
+
description: 'Waits the given amount of milliseconds before the action continues',
|
|
4834
|
+
properties: {
|
|
4835
|
+
milliseconds: {
|
|
4836
|
+
type: 'ParameterType:integer',
|
|
4837
|
+
required: true
|
|
4838
|
+
}
|
|
4839
|
+
}
|
|
4840
|
+
};
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4843
|
+
var index = {
|
|
4844
|
+
__proto__: null,
|
|
4845
|
+
addClass: addClass,
|
|
4846
|
+
addControllerToElement: addControllerToElement,
|
|
4847
|
+
animate: animate,
|
|
4848
|
+
animateWithClass: animateWithClass,
|
|
4849
|
+
broadcastEvent: broadcastEvent,
|
|
4850
|
+
clearElement: clearElement,
|
|
4851
|
+
clearOperationData: clearOperationData,
|
|
4852
|
+
createElement: createElement,
|
|
4853
|
+
customFunction: customFunction,
|
|
4854
|
+
endAction: endAction,
|
|
4855
|
+
endLoop: endLoop,
|
|
4856
|
+
extendController: extendController,
|
|
4857
|
+
getControllerFromElement: getControllerFromElement,
|
|
4858
|
+
getControllerInstance: getControllerInstance,
|
|
4859
|
+
getElementDimensions: getElementDimensions,
|
|
4860
|
+
getImport: getImport,
|
|
4861
|
+
loadJSON: loadJSON,
|
|
4862
|
+
log: log,
|
|
4863
|
+
removeClass: removeClass,
|
|
4864
|
+
removeControllerFromElement: removeControllerFromElement,
|
|
4865
|
+
removeElement: removeElement,
|
|
4866
|
+
removePropertiesFromOperationData: removePropertiesFromOperationData,
|
|
4867
|
+
reparentElement: reparentElement,
|
|
4868
|
+
requestAction: requestAction,
|
|
4869
|
+
resizeAction: resizeAction,
|
|
4870
|
+
selectElement: selectElement,
|
|
4871
|
+
setElementAttributes: setElementAttributes,
|
|
4872
|
+
setElementContent: setElementContent,
|
|
4873
|
+
setOperationData: setOperationData,
|
|
4874
|
+
setStyle: setStyle,
|
|
4875
|
+
startAction: startAction,
|
|
4876
|
+
startLoop: startLoop,
|
|
4877
|
+
toggleClass: toggleClass,
|
|
4878
|
+
toggleElement: toggleElement,
|
|
4879
|
+
wait: wait
|
|
4880
|
+
};
|
|
4881
|
+
|
|
4882
|
+
export { Action, ActionRegistryEventbusListener, ConfigurationResolver, EligiusEngine, EndableAction, EngineFactory, EventListenerController, Eventbus, JwPlayerTimelineProvider, LabelController, LanguageManager, LottieController, NavigationController, ProgressbarController, RequestAnimationFrameTimelineProvider, RequestVideoUriInterceptor, RoutingController, SubtitlesController, TimelineAction, TimelineEventNames, WebpackResourceImporter, addClass$1 as addClass, addControllerToElement$1 as addControllerToElement, animate$1 as animate, animateWithClass$1 as animateWithClass, broadcastEvent$1 as broadcastEvent, clearElement$1 as clearElement, clearOperationData$1 as clearOperationData, createElement$1 as createElement, customFunction$1 as customFunction, endAction$1 as endAction, endLoop$1 as endLoop, extendController$1 as extendController, getControllerFromElement$1 as getControllerFromElement, getControllerInstance$1 as getControllerInstance, getElementDimensions$1 as getElementDimensions, getImport$1 as getImport, loadJSON$1 as loadJSON, log$1 as log, index as metadata, removeClass$1 as removeClass, removeControllerFromElement$1 as removeControllerFromElement, removeElement$1 as removeElement, removePropertiesFromOperationData$1 as removePropertiesFromOperationData, reparentElement$1 as reparentElement, requestAction$1 as requestAction, resizeAction$1 as resizeAction, selectElement$1 as selectElement, setElementAttributes$1 as setElementAttributes, setElementContent$1 as setElementContent, setOperationData$1 as setOperationData, setStyle$1 as setStyle, startAction$1 as startAction, startLoop$1 as startLoop, toggleClass$1 as toggleClass, toggleElement$1 as toggleElement, wait$1 as wait };
|
|
4793
4883
|
//# sourceMappingURL=eligius.esm.js.map
|