eligius 3.0.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -6
- package/dist/configuration-api.d.mts +144 -328
- package/dist/configuration-api.mjs +197 -241
- package/dist/configuration-api.mjs.map +1 -1
- package/dist/engine-factory-BHDMlt6g.mjs +14404 -0
- package/dist/engine-factory-BHDMlt6g.mjs.map +1 -0
- package/dist/index.d.mts +835 -9673
- package/dist/index.mjs +1555 -15430
- package/dist/index.mjs.map +1 -1
- package/dist/lint.d.mts +5005 -0
- package/dist/lint.mjs +4406 -0
- package/dist/lint.mjs.map +1 -0
- package/dist/locale-manager-CNZ2kj0g.d.mts +8537 -0
- package/dist/metadata.d.mts +128 -567
- package/dist/metadata.mjs +184 -276
- package/dist/metadata.mjs.map +1 -1
- package/dist/{rolldown-runtime-BOlb2svz.mjs → rolldown-runtime-CGzGPw9x.mjs} +1 -2
- package/dist/runtime.d.mts +3 -0
- package/dist/runtime.mjs +4 -0
- package/jsonschema/eligius-configuration.json +53 -7
- package/package.json +24 -11
package/dist/metadata.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-CGzGPw9x.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/controllers/metadata/dom-event-listener-controller.ts
|
|
5
5
|
function DOMEventListenerController() {
|
|
6
6
|
return {
|
|
7
7
|
description: `This controller attaches to the given selected element and adds a DOM event listener for the specified event name that
|
|
@@ -10,7 +10,9 @@ executes the given actions with the given operation data.
|
|
|
10
10
|
By default the \`start\` operations of the specified actions are executed. To execute the \`end\` operations instead,
|
|
11
11
|
prefix the action name with \`end:\`.
|
|
12
12
|
|
|
13
|
-
The actions
|
|
13
|
+
The actions receive a copy of \`actionOperationData\` plus \`eventTarget\` (the event's target) and, for key events,
|
|
14
|
+
\`eventKey\` (the \`KeyboardEvent.key\`). They run in order, each receiving the operation data the previous one
|
|
15
|
+
returned. When an action fails, the
|
|
14
16
|
remaining actions are skipped and the failure is reported through the eventbus's \`reportError\` (an error naming
|
|
15
17
|
this controller, the action and the DOM event, with the original error as \`cause\`), or logged with
|
|
16
18
|
\`console.error\` when the eventbus has no \`reportError\`.`,
|
|
@@ -29,8 +31,49 @@ this controller, the action and the DOM event, with the original error as \`caus
|
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
// src/controllers/metadata/keyboard-controller.ts
|
|
35
|
+
function KeyboardController() {
|
|
36
|
+
return {
|
|
37
|
+
description: `This controller runs the given actions when one of the given keys is pressed.
|
|
38
|
+
|
|
39
|
+
By default the \`start\` operations of the specified actions are executed. To execute the \`end\` operations instead,
|
|
40
|
+
prefix the action name with \`end:\`.
|
|
41
|
+
|
|
42
|
+
The actions receive a copy of \`actionOperationData\` plus \`eventTarget\` (the focused element, or the body when
|
|
43
|
+
nothing has focus) and \`eventKey\` (the \`KeyboardEvent.key\`). They run in order, each receiving the operation data
|
|
44
|
+
the previous one returned. When an action fails, the remaining actions are skipped and the failure is reported
|
|
45
|
+
through the eventbus's \`reportError\`, or logged with \`console.error\` when the eventbus has no \`reportError\`.
|
|
46
|
+
|
|
47
|
+
With \`scope: 'document'\` (the default) the keys work while the focus is inside the engine root, or while nothing
|
|
48
|
+
has focus. With \`scope: 'element'\` they only work while the focus is inside the selected element. Presses in
|
|
49
|
+
\`input\`, \`select\`, \`textarea\` and contenteditable elements are ignored, so typing keeps working. A handled press
|
|
50
|
+
has its default action prevented (no scrolling for arrow keys and space); a held key runs the actions once, not
|
|
51
|
+
again for every key repeat.
|
|
52
|
+
|
|
53
|
+
When the keys include the play toggle hotkey of the engine (space by default), or a key that the engine's
|
|
54
|
+
KeyboardStepSource binds (the arrow keys, \`shift+left\`/\`shift+right\`, \`home\` and \`end\`), the controller wins: a
|
|
55
|
+
press it handles runs its actions and does not toggle playback or step the timeline. A press it ignores (for
|
|
56
|
+
example outside the selected element with \`scope: 'element'\`) still does.
|
|
57
|
+
|
|
58
|
+
The keys are bound in the hotkeys-js \`'all'\` scope, so they work whatever scope a KeyboardStepSource sets. The
|
|
59
|
+
hotkeys-js global \`filter\` still applies. Detaching removes only this controller's handler.`,
|
|
60
|
+
dependentProperties: ["selectedElement"],
|
|
61
|
+
properties: {
|
|
62
|
+
keys: {
|
|
63
|
+
type: "ParameterType:string",
|
|
64
|
+
required: true
|
|
65
|
+
},
|
|
66
|
+
actions: {
|
|
67
|
+
type: "ParameterType:array",
|
|
68
|
+
itemType: "ParameterType:string"
|
|
69
|
+
},
|
|
70
|
+
actionOperationData: { type: "ParameterType:object" },
|
|
71
|
+
scope: { type: [{ value: "document" }, { value: "element" }] }
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// src/controllers/metadata/label-controller.ts
|
|
34
77
|
function LabelController() {
|
|
35
78
|
return {
|
|
36
79
|
description: `This controller attaches to the given selected element and renders the text
|
|
@@ -56,8 +99,7 @@ Uses the rosetta-based locale system via \`request-translation\` event.`,
|
|
|
56
99
|
};
|
|
57
100
|
}
|
|
58
101
|
|
|
59
|
-
|
|
60
|
-
//#region src/controllers/metadata/lottie-controller.ts
|
|
102
|
+
// src/controllers/metadata/lottie-controller.ts
|
|
61
103
|
function LottieController() {
|
|
62
104
|
return {
|
|
63
105
|
description: `This controller renders a [lottie-web](https://github.com/airbnb/lottie-web) animation inside the given selected element.
|
|
@@ -71,8 +113,7 @@ never use this controller do not need it installed.`,
|
|
|
71
113
|
};
|
|
72
114
|
}
|
|
73
115
|
|
|
74
|
-
|
|
75
|
-
//#region src/controllers/metadata/mutation-observer-controller.ts
|
|
116
|
+
// src/controllers/metadata/mutation-observer-controller.ts
|
|
76
117
|
function MutationObserverController() {
|
|
77
118
|
return {
|
|
78
119
|
description: `Controller that observes DOM mutations on a selected element and broadcasts events.
|
|
@@ -101,8 +142,7 @@ The controller follows the standard Eligius lifecycle:
|
|
|
101
142
|
};
|
|
102
143
|
}
|
|
103
144
|
|
|
104
|
-
|
|
105
|
-
//#region src/controllers/metadata/navigation-controller.ts
|
|
145
|
+
// src/controllers/metadata/navigation-controller.ts
|
|
106
146
|
function NavigationController() {
|
|
107
147
|
return {
|
|
108
148
|
description: `Renders a navigation menu in the selected element and keeps it in sync with
|
|
@@ -126,8 +166,7 @@ When the engine switches to a timeline that an entry names
|
|
|
126
166
|
};
|
|
127
167
|
}
|
|
128
168
|
|
|
129
|
-
|
|
130
|
-
//#region src/controllers/metadata/progressbar-controller.ts
|
|
169
|
+
// src/controllers/metadata/progressbar-controller.ts
|
|
131
170
|
function ProgressbarController() {
|
|
132
171
|
return {
|
|
133
172
|
description: `This controller renders a progressbar that displays the progress of the current timeline in the given selected element.
|
|
@@ -137,8 +176,7 @@ The current progress as a percentage is rendered in the given text element.`,
|
|
|
137
176
|
};
|
|
138
177
|
}
|
|
139
178
|
|
|
140
|
-
|
|
141
|
-
//#region src/controllers/metadata/routing-controller.ts
|
|
179
|
+
// src/controllers/metadata/routing-controller.ts
|
|
142
180
|
function RoutingController() {
|
|
143
181
|
return {
|
|
144
182
|
description: `Keeps the browser history in sync with the navigation entries: each entry
|
|
@@ -158,8 +196,7 @@ This is a work in progress, do not use this yet please....`,
|
|
|
158
196
|
};
|
|
159
197
|
}
|
|
160
198
|
|
|
161
|
-
|
|
162
|
-
//#region src/controllers/metadata/subtitles-controller.ts
|
|
199
|
+
// src/controllers/metadata/subtitles-controller.ts
|
|
163
200
|
function SubtitlesController() {
|
|
164
201
|
return {
|
|
165
202
|
description: `This controller shows the subtitle whose duration contains the current
|
|
@@ -182,10 +219,10 @@ Subtitle texts may contain simple inline markup. They are passed through
|
|
|
182
219
|
};
|
|
183
220
|
}
|
|
184
221
|
|
|
185
|
-
|
|
186
|
-
//#region src/controllers/metadata/index.ts
|
|
222
|
+
// src/controllers/metadata/index.ts
|
|
187
223
|
var metadata_exports = /* @__PURE__ */ __exportAll({
|
|
188
224
|
DOMEventListenerController: () => DOMEventListenerController,
|
|
225
|
+
KeyboardController: () => KeyboardController,
|
|
189
226
|
LabelController: () => LabelController,
|
|
190
227
|
LottieController: () => LottieController,
|
|
191
228
|
MutationObserverController: () => MutationObserverController,
|
|
@@ -195,8 +232,7 @@ var metadata_exports = /* @__PURE__ */ __exportAll({
|
|
|
195
232
|
SubtitlesController: () => SubtitlesController
|
|
196
233
|
});
|
|
197
234
|
|
|
198
|
-
|
|
199
|
-
//#region src/eventbus/events/metadata/before-request-timeline-uri.ts
|
|
235
|
+
// src/eventbus/events/metadata/before-request-timeline-uri.ts
|
|
200
236
|
function beforeRequestTimelineUri() {
|
|
201
237
|
return {
|
|
202
238
|
description: `Event: before-request-timeline-uri
|
|
@@ -217,8 +253,7 @@ Broadcast by \`RequestVideoUriInterceptor\` just before a
|
|
|
217
253
|
};
|
|
218
254
|
}
|
|
219
255
|
|
|
220
|
-
|
|
221
|
-
//#region src/eventbus/events/metadata/before-request-video-url.ts
|
|
256
|
+
// src/eventbus/events/metadata/before-request-video-url.ts
|
|
222
257
|
function beforeRequestVideoUrl() {
|
|
223
258
|
return {
|
|
224
259
|
description: `Event: before-request-video-url`,
|
|
@@ -245,8 +280,7 @@ function beforeRequestVideoUrl() {
|
|
|
245
280
|
};
|
|
246
281
|
}
|
|
247
282
|
|
|
248
|
-
|
|
249
|
-
//#region src/eventbus/events/metadata/dom-mutation.ts
|
|
283
|
+
// src/eventbus/events/metadata/dom-mutation.ts
|
|
250
284
|
function domMutation() {
|
|
251
285
|
return {
|
|
252
286
|
description: `Event: dom-mutation`,
|
|
@@ -259,8 +293,7 @@ function domMutation() {
|
|
|
259
293
|
};
|
|
260
294
|
}
|
|
261
295
|
|
|
262
|
-
|
|
263
|
-
//#region src/eventbus/events/metadata/engine-command-error.ts
|
|
296
|
+
// src/eventbus/events/metadata/engine-command-error.ts
|
|
264
297
|
function engineCommandError() {
|
|
265
298
|
return {
|
|
266
299
|
description: `Event: engine-command-error
|
|
@@ -281,8 +314,7 @@ also logged with \`console.error\`.`,
|
|
|
281
314
|
};
|
|
282
315
|
}
|
|
283
316
|
|
|
284
|
-
|
|
285
|
-
//#region src/eventbus/events/metadata/engine-error.ts
|
|
317
|
+
// src/eventbus/events/metadata/engine-error.ts
|
|
286
318
|
function engineError() {
|
|
287
319
|
return {
|
|
288
320
|
description: `Event: engine-error
|
|
@@ -298,8 +330,7 @@ known, the failing operation.`,
|
|
|
298
330
|
};
|
|
299
331
|
}
|
|
300
332
|
|
|
301
|
-
|
|
302
|
-
//#region src/eventbus/events/metadata/highlight-navigation.ts
|
|
333
|
+
// src/eventbus/events/metadata/highlight-navigation.ts
|
|
303
334
|
function highlightNavigation() {
|
|
304
335
|
return {
|
|
305
336
|
description: `Event: highlight-navigation`,
|
|
@@ -312,8 +343,7 @@ function highlightNavigation() {
|
|
|
312
343
|
};
|
|
313
344
|
}
|
|
314
345
|
|
|
315
|
-
|
|
316
|
-
//#region src/eventbus/events/metadata/language-change.ts
|
|
346
|
+
// src/eventbus/events/metadata/language-change.ts
|
|
317
347
|
function languageChange() {
|
|
318
348
|
return {
|
|
319
349
|
description: `Event: language-change`,
|
|
@@ -326,8 +356,7 @@ function languageChange() {
|
|
|
326
356
|
};
|
|
327
357
|
}
|
|
328
358
|
|
|
329
|
-
|
|
330
|
-
//#region src/eventbus/events/metadata/navigate-to-video-url.ts
|
|
359
|
+
// src/eventbus/events/metadata/navigate-to-video-url.ts
|
|
331
360
|
function navigateToVideoUrl() {
|
|
332
361
|
return {
|
|
333
362
|
description: `Event: navigate-to-video-url`,
|
|
@@ -345,8 +374,7 @@ function navigateToVideoUrl() {
|
|
|
345
374
|
};
|
|
346
375
|
}
|
|
347
376
|
|
|
348
|
-
|
|
349
|
-
//#region src/eventbus/events/metadata/push-history-state.ts
|
|
377
|
+
// src/eventbus/events/metadata/push-history-state.ts
|
|
350
378
|
function pushHistoryState() {
|
|
351
379
|
return {
|
|
352
380
|
description: `Event: push-history-state`,
|
|
@@ -359,8 +387,7 @@ function pushHistoryState() {
|
|
|
359
387
|
};
|
|
360
388
|
}
|
|
361
389
|
|
|
362
|
-
|
|
363
|
-
//#region src/eventbus/events/metadata/request-action.ts
|
|
390
|
+
// src/eventbus/events/metadata/request-action.ts
|
|
364
391
|
function requestAction$1() {
|
|
365
392
|
return {
|
|
366
393
|
description: `Request: request-action
|
|
@@ -376,8 +403,7 @@ unknown name, with a "did you mean" hint.`,
|
|
|
376
403
|
};
|
|
377
404
|
}
|
|
378
405
|
|
|
379
|
-
|
|
380
|
-
//#region src/eventbus/events/metadata/request-current-language.ts
|
|
406
|
+
// src/eventbus/events/metadata/request-current-language.ts
|
|
381
407
|
function requestCurrentLanguage() {
|
|
382
408
|
return {
|
|
383
409
|
description: `Request: request-current-language
|
|
@@ -388,8 +414,7 @@ LocaleEventbusAdapter with the active locale.`,
|
|
|
388
414
|
};
|
|
389
415
|
}
|
|
390
416
|
|
|
391
|
-
|
|
392
|
-
//#region src/eventbus/events/metadata/request-current-navigation.ts
|
|
417
|
+
// src/eventbus/events/metadata/request-current-navigation.ts
|
|
393
418
|
function requestCurrentNavigation() {
|
|
394
419
|
return {
|
|
395
420
|
description: `Event: request-current-navigation`,
|
|
@@ -402,8 +427,7 @@ function requestCurrentNavigation() {
|
|
|
402
427
|
};
|
|
403
428
|
}
|
|
404
429
|
|
|
405
|
-
|
|
406
|
-
//#region src/eventbus/events/metadata/request-current-timeline-position.ts
|
|
430
|
+
// src/eventbus/events/metadata/request-current-timeline-position.ts
|
|
407
431
|
function requestCurrentTimelinePosition() {
|
|
408
432
|
return {
|
|
409
433
|
description: `Request: request-current-timeline-position
|
|
@@ -416,8 +440,7 @@ callback that receives the value.`,
|
|
|
416
440
|
};
|
|
417
441
|
}
|
|
418
442
|
|
|
419
|
-
|
|
420
|
-
//#region src/eventbus/events/metadata/request-current-video-position.ts
|
|
443
|
+
// src/eventbus/events/metadata/request-current-video-position.ts
|
|
421
444
|
function requestCurrentVideoPosition() {
|
|
422
445
|
return {
|
|
423
446
|
description: `Event: request-current-video-position`,
|
|
@@ -430,8 +453,7 @@ function requestCurrentVideoPosition() {
|
|
|
430
453
|
};
|
|
431
454
|
}
|
|
432
455
|
|
|
433
|
-
|
|
434
|
-
//#region src/eventbus/events/metadata/request-engine-root.ts
|
|
456
|
+
// src/eventbus/events/metadata/request-engine-root.ts
|
|
435
457
|
function requestEngineRoot() {
|
|
436
458
|
return {
|
|
437
459
|
description: `Request: request-engine-root
|
|
@@ -445,8 +467,7 @@ receives the value.`,
|
|
|
445
467
|
};
|
|
446
468
|
}
|
|
447
469
|
|
|
448
|
-
|
|
449
|
-
//#region src/eventbus/events/metadata/request-function.ts
|
|
470
|
+
// src/eventbus/events/metadata/request-function.ts
|
|
450
471
|
function requestFunction() {
|
|
451
472
|
return {
|
|
452
473
|
description: `Request: request-function
|
|
@@ -462,8 +483,7 @@ importer provides under that name. Throws for an unknown name.`,
|
|
|
462
483
|
};
|
|
463
484
|
}
|
|
464
485
|
|
|
465
|
-
|
|
466
|
-
//#region src/eventbus/events/metadata/request-instance.ts
|
|
486
|
+
// src/eventbus/events/metadata/request-instance.ts
|
|
467
487
|
function requestInstance() {
|
|
468
488
|
return {
|
|
469
489
|
description: `Request: request-instance
|
|
@@ -480,8 +500,7 @@ eventbus. Throws for an unknown name.`,
|
|
|
480
500
|
};
|
|
481
501
|
}
|
|
482
502
|
|
|
483
|
-
|
|
484
|
-
//#region src/eventbus/events/metadata/request-label-collection.ts
|
|
503
|
+
// src/eventbus/events/metadata/request-label-collection.ts
|
|
485
504
|
function requestLabelCollection() {
|
|
486
505
|
return {
|
|
487
506
|
description: `Event: request-label-collection`,
|
|
@@ -498,8 +517,7 @@ function requestLabelCollection() {
|
|
|
498
517
|
};
|
|
499
518
|
}
|
|
500
519
|
|
|
501
|
-
|
|
502
|
-
//#region src/eventbus/events/metadata/request-label-collections.ts
|
|
520
|
+
// src/eventbus/events/metadata/request-label-collections.ts
|
|
503
521
|
function requestLabelCollections() {
|
|
504
522
|
return {
|
|
505
523
|
description: `Event: request-label-collections`,
|
|
@@ -516,8 +534,7 @@ function requestLabelCollections() {
|
|
|
516
534
|
};
|
|
517
535
|
}
|
|
518
536
|
|
|
519
|
-
|
|
520
|
-
//#region src/eventbus/events/metadata/request-timeline-cleanup.ts
|
|
537
|
+
// src/eventbus/events/metadata/request-timeline-cleanup.ts
|
|
521
538
|
function requestTimelineCleanup() {
|
|
522
539
|
return {
|
|
523
540
|
description: `Event: request-timeline-cleanup`,
|
|
@@ -526,8 +543,7 @@ function requestTimelineCleanup() {
|
|
|
526
543
|
};
|
|
527
544
|
}
|
|
528
545
|
|
|
529
|
-
|
|
530
|
-
//#region src/eventbus/events/metadata/request-timeline-uri.ts
|
|
546
|
+
// src/eventbus/events/metadata/request-timeline-uri.ts
|
|
531
547
|
function requestTimelineUri() {
|
|
532
548
|
return {
|
|
533
549
|
description: `Event: request-timeline-uri`,
|
|
@@ -545,8 +561,7 @@ function requestTimelineUri() {
|
|
|
545
561
|
};
|
|
546
562
|
}
|
|
547
563
|
|
|
548
|
-
|
|
549
|
-
//#region src/eventbus/events/metadata/request-translation.ts
|
|
564
|
+
// src/eventbus/events/metadata/request-translation.ts
|
|
550
565
|
function requestTranslation() {
|
|
551
566
|
return {
|
|
552
567
|
description: `Request: request-translation
|
|
@@ -567,8 +582,7 @@ locale, see \`ILocaleManager.t\`.`,
|
|
|
567
582
|
};
|
|
568
583
|
}
|
|
569
584
|
|
|
570
|
-
|
|
571
|
-
//#region src/eventbus/events/metadata/request-video-cleanup.ts
|
|
585
|
+
// src/eventbus/events/metadata/request-video-cleanup.ts
|
|
572
586
|
function requestVideoCleanup() {
|
|
573
587
|
return {
|
|
574
588
|
description: `Event: request-video-cleanup`,
|
|
@@ -577,8 +591,7 @@ function requestVideoCleanup() {
|
|
|
577
591
|
};
|
|
578
592
|
}
|
|
579
593
|
|
|
580
|
-
|
|
581
|
-
//#region src/eventbus/events/metadata/request-video-url.ts
|
|
594
|
+
// src/eventbus/events/metadata/request-video-url.ts
|
|
582
595
|
function requestVideoUrl() {
|
|
583
596
|
return {
|
|
584
597
|
description: `Event: request-video-url`,
|
|
@@ -605,8 +618,7 @@ function requestVideoUrl() {
|
|
|
605
618
|
};
|
|
606
619
|
}
|
|
607
620
|
|
|
608
|
-
|
|
609
|
-
//#region src/eventbus/events/metadata/timeline-complete.ts
|
|
621
|
+
// src/eventbus/events/metadata/timeline-complete.ts
|
|
610
622
|
function timelineComplete() {
|
|
611
623
|
return {
|
|
612
624
|
description: `Event: timeline-complete`,
|
|
@@ -615,8 +627,7 @@ function timelineComplete() {
|
|
|
615
627
|
};
|
|
616
628
|
}
|
|
617
629
|
|
|
618
|
-
|
|
619
|
-
//#region src/eventbus/events/metadata/timeline-container-request.ts
|
|
630
|
+
// src/eventbus/events/metadata/timeline-container-request.ts
|
|
620
631
|
function timelineContainerRequest() {
|
|
621
632
|
return {
|
|
622
633
|
description: `Request: timeline-container-request
|
|
@@ -629,8 +640,7 @@ callback that receives the value.`,
|
|
|
629
640
|
};
|
|
630
641
|
}
|
|
631
642
|
|
|
632
|
-
|
|
633
|
-
//#region src/eventbus/events/metadata/timeline-current-timeline-change.ts
|
|
643
|
+
// src/eventbus/events/metadata/timeline-current-timeline-change.ts
|
|
634
644
|
function timelineCurrentTimelineChange() {
|
|
635
645
|
return {
|
|
636
646
|
description: `Event: timeline-current-timeline-change`,
|
|
@@ -643,8 +653,7 @@ function timelineCurrentTimelineChange() {
|
|
|
643
653
|
};
|
|
644
654
|
}
|
|
645
655
|
|
|
646
|
-
|
|
647
|
-
//#region src/eventbus/events/metadata/timeline-duration-request.ts
|
|
656
|
+
// src/eventbus/events/metadata/timeline-duration-request.ts
|
|
648
657
|
function timelineDurationRequest() {
|
|
649
658
|
return {
|
|
650
659
|
description: `Request: timeline-duration-request
|
|
@@ -657,8 +666,7 @@ callback that receives the value.`,
|
|
|
657
666
|
};
|
|
658
667
|
}
|
|
659
668
|
|
|
660
|
-
|
|
661
|
-
//#region src/eventbus/events/metadata/timeline-duration.ts
|
|
669
|
+
// src/eventbus/events/metadata/timeline-duration.ts
|
|
662
670
|
function timelineDuration() {
|
|
663
671
|
return {
|
|
664
672
|
description: `Event: timeline-duration`,
|
|
@@ -671,8 +679,7 @@ function timelineDuration() {
|
|
|
671
679
|
};
|
|
672
680
|
}
|
|
673
681
|
|
|
674
|
-
|
|
675
|
-
//#region src/eventbus/events/metadata/timeline-firstframe.ts
|
|
682
|
+
// src/eventbus/events/metadata/timeline-firstframe.ts
|
|
676
683
|
function timelineFirstframe() {
|
|
677
684
|
return {
|
|
678
685
|
description: `Event: timeline-firstframe`,
|
|
@@ -681,8 +688,7 @@ function timelineFirstframe() {
|
|
|
681
688
|
};
|
|
682
689
|
}
|
|
683
690
|
|
|
684
|
-
|
|
685
|
-
//#region src/eventbus/events/metadata/timeline-pause-request.ts
|
|
691
|
+
// src/eventbus/events/metadata/timeline-pause-request.ts
|
|
686
692
|
function timelinePauseRequest() {
|
|
687
693
|
return {
|
|
688
694
|
description: `Event: timeline-pause-request`,
|
|
@@ -691,8 +697,7 @@ function timelinePauseRequest() {
|
|
|
691
697
|
};
|
|
692
698
|
}
|
|
693
699
|
|
|
694
|
-
|
|
695
|
-
//#region src/eventbus/events/metadata/timeline-pause.ts
|
|
700
|
+
// src/eventbus/events/metadata/timeline-pause.ts
|
|
696
701
|
function timelinePause() {
|
|
697
702
|
return {
|
|
698
703
|
description: `Event: timeline-pause`,
|
|
@@ -701,8 +706,7 @@ function timelinePause() {
|
|
|
701
706
|
};
|
|
702
707
|
}
|
|
703
708
|
|
|
704
|
-
|
|
705
|
-
//#region src/eventbus/events/metadata/timeline-play-request.ts
|
|
709
|
+
// src/eventbus/events/metadata/timeline-play-request.ts
|
|
706
710
|
function timelinePlayRequest() {
|
|
707
711
|
return {
|
|
708
712
|
description: `Event: timeline-play-request`,
|
|
@@ -711,8 +715,7 @@ function timelinePlayRequest() {
|
|
|
711
715
|
};
|
|
712
716
|
}
|
|
713
717
|
|
|
714
|
-
|
|
715
|
-
//#region src/eventbus/events/metadata/timeline-play-toggle-request.ts
|
|
718
|
+
// src/eventbus/events/metadata/timeline-play-toggle-request.ts
|
|
716
719
|
function timelinePlayToggleRequest() {
|
|
717
720
|
return {
|
|
718
721
|
description: `Event: timeline-play-toggle-request`,
|
|
@@ -721,8 +724,7 @@ function timelinePlayToggleRequest() {
|
|
|
721
724
|
};
|
|
722
725
|
}
|
|
723
726
|
|
|
724
|
-
|
|
725
|
-
//#region src/eventbus/events/metadata/timeline-play.ts
|
|
727
|
+
// src/eventbus/events/metadata/timeline-play.ts
|
|
726
728
|
function timelinePlay() {
|
|
727
729
|
return {
|
|
728
730
|
description: `Event: timeline-play`,
|
|
@@ -731,8 +733,7 @@ function timelinePlay() {
|
|
|
731
733
|
};
|
|
732
734
|
}
|
|
733
735
|
|
|
734
|
-
|
|
735
|
-
//#region src/eventbus/events/metadata/timeline-request-current-timeline.ts
|
|
736
|
+
// src/eventbus/events/metadata/timeline-request-current-timeline.ts
|
|
736
737
|
function timelineRequestCurrentTimeline() {
|
|
737
738
|
return {
|
|
738
739
|
description: `Request: timeline-request-current-timeline
|
|
@@ -745,8 +746,7 @@ receives the value.`,
|
|
|
745
746
|
};
|
|
746
747
|
}
|
|
747
748
|
|
|
748
|
-
|
|
749
|
-
//#region src/eventbus/events/metadata/timeline-resize-request.ts
|
|
749
|
+
// src/eventbus/events/metadata/timeline-resize-request.ts
|
|
750
750
|
function timelineResizeRequest() {
|
|
751
751
|
return {
|
|
752
752
|
description: `Event: timeline-resize-request`,
|
|
@@ -755,8 +755,7 @@ function timelineResizeRequest() {
|
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
757
|
|
|
758
|
-
|
|
759
|
-
//#region src/eventbus/events/metadata/timeline-resize.ts
|
|
758
|
+
// src/eventbus/events/metadata/timeline-resize.ts
|
|
760
759
|
function timelineResize() {
|
|
761
760
|
return {
|
|
762
761
|
description: `Event: timeline-resize`,
|
|
@@ -765,8 +764,7 @@ function timelineResize() {
|
|
|
765
764
|
};
|
|
766
765
|
}
|
|
767
766
|
|
|
768
|
-
|
|
769
|
-
//#region src/eventbus/events/metadata/timeline-restart.ts
|
|
767
|
+
// src/eventbus/events/metadata/timeline-restart.ts
|
|
770
768
|
function timelineRestart() {
|
|
771
769
|
return {
|
|
772
770
|
description: `Event: timeline-restart`,
|
|
@@ -775,8 +773,7 @@ function timelineRestart() {
|
|
|
775
773
|
};
|
|
776
774
|
}
|
|
777
775
|
|
|
778
|
-
|
|
779
|
-
//#region src/eventbus/events/metadata/timeline-seek-request.ts
|
|
776
|
+
// src/eventbus/events/metadata/timeline-seek-request.ts
|
|
780
777
|
function timelineSeekRequest() {
|
|
781
778
|
return {
|
|
782
779
|
description: `Event: timeline-seek-request`,
|
|
@@ -789,8 +786,7 @@ function timelineSeekRequest() {
|
|
|
789
786
|
};
|
|
790
787
|
}
|
|
791
788
|
|
|
792
|
-
|
|
793
|
-
//#region src/eventbus/events/metadata/timeline-seek.ts
|
|
789
|
+
// src/eventbus/events/metadata/timeline-seek.ts
|
|
794
790
|
function timelineSeek() {
|
|
795
791
|
return {
|
|
796
792
|
description: `Event: timeline-seek`,
|
|
@@ -815,8 +811,7 @@ function timelineSeek() {
|
|
|
815
811
|
};
|
|
816
812
|
}
|
|
817
813
|
|
|
818
|
-
|
|
819
|
-
//#region src/eventbus/events/metadata/timeline-seeked.ts
|
|
814
|
+
// src/eventbus/events/metadata/timeline-seeked.ts
|
|
820
815
|
function timelineSeeked() {
|
|
821
816
|
return {
|
|
822
817
|
description: `Event: timeline-seeked`,
|
|
@@ -833,8 +828,7 @@ function timelineSeeked() {
|
|
|
833
828
|
};
|
|
834
829
|
}
|
|
835
830
|
|
|
836
|
-
|
|
837
|
-
//#region src/eventbus/events/metadata/timeline-stop-request.ts
|
|
831
|
+
// src/eventbus/events/metadata/timeline-stop-request.ts
|
|
838
832
|
function timelineStopRequest() {
|
|
839
833
|
return {
|
|
840
834
|
description: `Event: timeline-stop-request`,
|
|
@@ -843,8 +837,7 @@ function timelineStopRequest() {
|
|
|
843
837
|
};
|
|
844
838
|
}
|
|
845
839
|
|
|
846
|
-
|
|
847
|
-
//#region src/eventbus/events/metadata/timeline-stop.ts
|
|
840
|
+
// src/eventbus/events/metadata/timeline-stop.ts
|
|
848
841
|
function timelineStop() {
|
|
849
842
|
return {
|
|
850
843
|
description: `Event: timeline-stop`,
|
|
@@ -853,8 +846,7 @@ function timelineStop() {
|
|
|
853
846
|
};
|
|
854
847
|
}
|
|
855
848
|
|
|
856
|
-
|
|
857
|
-
//#region src/eventbus/events/metadata/timeline-time.ts
|
|
849
|
+
// src/eventbus/events/metadata/timeline-time.ts
|
|
858
850
|
function timelineTime() {
|
|
859
851
|
return {
|
|
860
852
|
description: `Event: timeline-time`,
|
|
@@ -867,8 +859,7 @@ function timelineTime() {
|
|
|
867
859
|
};
|
|
868
860
|
}
|
|
869
861
|
|
|
870
|
-
|
|
871
|
-
//#region src/eventbus/events/metadata/video-complete.ts
|
|
862
|
+
// src/eventbus/events/metadata/video-complete.ts
|
|
872
863
|
function videoComplete() {
|
|
873
864
|
return {
|
|
874
865
|
description: `Event: video-complete`,
|
|
@@ -881,8 +872,7 @@ function videoComplete() {
|
|
|
881
872
|
};
|
|
882
873
|
}
|
|
883
874
|
|
|
884
|
-
|
|
885
|
-
//#region src/eventbus/events/metadata/index.ts
|
|
875
|
+
// src/eventbus/events/metadata/index.ts
|
|
886
876
|
var metadata_exports$1 = /* @__PURE__ */ __exportAll({
|
|
887
877
|
beforeRequestTimelineUri: () => beforeRequestTimelineUri,
|
|
888
878
|
beforeRequestVideoUrl: () => beforeRequestVideoUrl,
|
|
@@ -932,8 +922,7 @@ var metadata_exports$1 = /* @__PURE__ */ __exportAll({
|
|
|
932
922
|
videoComplete: () => videoComplete
|
|
933
923
|
});
|
|
934
924
|
|
|
935
|
-
|
|
936
|
-
//#region src/operation/metadata/add-class.ts
|
|
925
|
+
// src/operation/metadata/add-class.ts
|
|
937
926
|
function addClass() {
|
|
938
927
|
return {
|
|
939
928
|
description: `This operation adds the specified class name to the specified selected element.`,
|
|
@@ -947,8 +936,7 @@ function addClass() {
|
|
|
947
936
|
};
|
|
948
937
|
}
|
|
949
938
|
|
|
950
|
-
|
|
951
|
-
//#region src/operation/metadata/add-controller-to-element.ts
|
|
939
|
+
// src/operation/metadata/add-controller-to-element.ts
|
|
952
940
|
function addControllerToElement() {
|
|
953
941
|
return {
|
|
954
942
|
description: `This operation adds the specified controller instance to the given selected element.
|
|
@@ -962,8 +950,7 @@ the element again when the promise rejects.`,
|
|
|
962
950
|
};
|
|
963
951
|
}
|
|
964
952
|
|
|
965
|
-
|
|
966
|
-
//#region src/operation/metadata/add-globals-to-operation.ts
|
|
953
|
+
// src/operation/metadata/add-globals-to-operation.ts
|
|
967
954
|
function addGlobalsToOperation() {
|
|
968
955
|
return {
|
|
969
956
|
description: `This operation adds the specified global property names to the current operation data.
|
|
@@ -981,8 +968,7 @@ nodes, functions and class instances (such as controllers) are added by referenc
|
|
|
981
968
|
};
|
|
982
969
|
}
|
|
983
970
|
|
|
984
|
-
|
|
985
|
-
//#region src/operation/metadata/animate-with-class.ts
|
|
971
|
+
// src/operation/metadata/animate-with-class.ts
|
|
986
972
|
function animateWithClass() {
|
|
987
973
|
return {
|
|
988
974
|
description: `This operation adds the specified class name to the specified selected element and assumes that this
|
|
@@ -1019,8 +1005,7 @@ animation is waited for until it is ended by an \`animationend\` event.`,
|
|
|
1019
1005
|
};
|
|
1020
1006
|
}
|
|
1021
1007
|
|
|
1022
|
-
|
|
1023
|
-
//#region src/operation/metadata/animate.ts
|
|
1008
|
+
// src/operation/metadata/animate.ts
|
|
1024
1009
|
function animate() {
|
|
1025
1010
|
return {
|
|
1026
1011
|
description: `This operation animates the specified selected element with the given [jQuery animation](https://api.jquery.com/animate/) properties, duration and easing.
|
|
@@ -1046,8 +1031,7 @@ It resolves after the animation completes, or immediately when the selected elem
|
|
|
1046
1031
|
};
|
|
1047
1032
|
}
|
|
1048
1033
|
|
|
1049
|
-
|
|
1050
|
-
//#region src/operation/metadata/announce-to-screen-reader.ts
|
|
1034
|
+
// src/operation/metadata/announce-to-screen-reader.ts
|
|
1051
1035
|
function announceToScreenReader() {
|
|
1052
1036
|
return {
|
|
1053
1037
|
description: `Announces a message to screen readers using an ARIA live region.
|
|
@@ -1073,8 +1057,7 @@ The operation returns at once and does not wait for the message to be written.`,
|
|
|
1073
1057
|
};
|
|
1074
1058
|
}
|
|
1075
1059
|
|
|
1076
|
-
|
|
1077
|
-
//#region src/operation/metadata/break-for-each.ts
|
|
1060
|
+
// src/operation/metadata/break-for-each.ts
|
|
1078
1061
|
function breakForEach() {
|
|
1079
1062
|
return {
|
|
1080
1063
|
description: `This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
@@ -1085,8 +1068,7 @@ It can be placed inside a \`when\`/\`otherwise\`/\`endWhen\` block within the lo
|
|
|
1085
1068
|
};
|
|
1086
1069
|
}
|
|
1087
1070
|
|
|
1088
|
-
|
|
1089
|
-
//#region src/operation/metadata/broadcast-event.ts
|
|
1071
|
+
// src/operation/metadata/broadcast-event.ts
|
|
1090
1072
|
function broadcastEvent() {
|
|
1091
1073
|
return {
|
|
1092
1074
|
description: `This operation broadcasts the given event through the eventbus, along with the
|
|
@@ -1111,8 +1093,7 @@ event arguments and optional event topic.`,
|
|
|
1111
1093
|
};
|
|
1112
1094
|
}
|
|
1113
1095
|
|
|
1114
|
-
|
|
1115
|
-
//#region src/operation/metadata/calc.ts
|
|
1096
|
+
// src/operation/metadata/calc.ts
|
|
1116
1097
|
function calc() {
|
|
1117
1098
|
return {
|
|
1118
1099
|
description: `This operation calculates the given left and right hand operands using the specified operator.
|
|
@@ -1149,8 +1130,7 @@ it is.`,
|
|
|
1149
1130
|
};
|
|
1150
1131
|
}
|
|
1151
1132
|
|
|
1152
|
-
|
|
1153
|
-
//#region src/operation/metadata/clear-element.ts
|
|
1133
|
+
// src/operation/metadata/clear-element.ts
|
|
1154
1134
|
function clearElement() {
|
|
1155
1135
|
return {
|
|
1156
1136
|
description: `This operation removes all of the children from the given selected element.
|
|
@@ -1162,8 +1142,7 @@ are detached first. Controllers on the selected element itself stay attached.`,
|
|
|
1162
1142
|
};
|
|
1163
1143
|
}
|
|
1164
1144
|
|
|
1165
|
-
|
|
1166
|
-
//#region src/operation/metadata/clear-operation-data.ts
|
|
1145
|
+
// src/operation/metadata/clear-operation-data.ts
|
|
1167
1146
|
function clearOperationData() {
|
|
1168
1147
|
return {
|
|
1169
1148
|
description: `This operation removes all of the properties on the current operation date.
|
|
@@ -1177,8 +1156,7 @@ Or, if the \`properties\` property is set only removes the properties defined by
|
|
|
1177
1156
|
};
|
|
1178
1157
|
}
|
|
1179
1158
|
|
|
1180
|
-
|
|
1181
|
-
//#region src/operation/metadata/clear-storage.ts
|
|
1159
|
+
// src/operation/metadata/clear-storage.ts
|
|
1182
1160
|
function clearStorage() {
|
|
1183
1161
|
return {
|
|
1184
1162
|
description: `Clears data from browser storage (localStorage or sessionStorage).
|
|
@@ -1201,8 +1179,7 @@ from missing data never wipes the whole storage.`,
|
|
|
1201
1179
|
};
|
|
1202
1180
|
}
|
|
1203
1181
|
|
|
1204
|
-
|
|
1205
|
-
//#region src/operation/metadata/compare-date.ts
|
|
1182
|
+
// src/operation/metadata/compare-date.ts
|
|
1206
1183
|
function compareDate() {
|
|
1207
1184
|
return {
|
|
1208
1185
|
description: `Compares two dates.
|
|
@@ -1229,8 +1206,7 @@ comparison: -1 (before), 0 (equal), 1 (after)`,
|
|
|
1229
1206
|
};
|
|
1230
1207
|
}
|
|
1231
1208
|
|
|
1232
|
-
|
|
1233
|
-
//#region src/operation/metadata/concatenate-strings.ts
|
|
1209
|
+
// src/operation/metadata/concatenate-strings.ts
|
|
1234
1210
|
function concatenateStrings() {
|
|
1235
1211
|
return {
|
|
1236
1212
|
description: `Concatenates multiple strings with an optional separator.`,
|
|
@@ -1251,8 +1227,7 @@ function concatenateStrings() {
|
|
|
1251
1227
|
};
|
|
1252
1228
|
}
|
|
1253
1229
|
|
|
1254
|
-
|
|
1255
|
-
//#region src/operation/metadata/continue-for-each.ts
|
|
1230
|
+
// src/operation/metadata/continue-for-each.ts
|
|
1256
1231
|
function continueForEach() {
|
|
1257
1232
|
return {
|
|
1258
1233
|
description: `This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
@@ -1264,8 +1239,7 @@ It can be placed inside a \`when\`/\`otherwise\`/\`endWhen\` block within the lo
|
|
|
1264
1239
|
};
|
|
1265
1240
|
}
|
|
1266
1241
|
|
|
1267
|
-
|
|
1268
|
-
//#region src/operation/metadata/create-element.ts
|
|
1242
|
+
// src/operation/metadata/create-element.ts
|
|
1269
1243
|
function createElement() {
|
|
1270
1244
|
return {
|
|
1271
1245
|
description: `This operation creates the DOM element described by the given elementName and attributes and assigns
|
|
@@ -1297,8 +1271,7 @@ URLs in URL attributes such as \`href\`, \`src\` and \`formaction\` are refused.
|
|
|
1297
1271
|
};
|
|
1298
1272
|
}
|
|
1299
1273
|
|
|
1300
|
-
|
|
1301
|
-
//#region src/operation/metadata/custom-function.ts
|
|
1274
|
+
// src/operation/metadata/custom-function.ts
|
|
1302
1275
|
function customFunction() {
|
|
1303
1276
|
return {
|
|
1304
1277
|
description: `This operation retrieves a custom function defined by the given system name
|
|
@@ -1324,8 +1297,7 @@ operation runs in.`,
|
|
|
1324
1297
|
};
|
|
1325
1298
|
}
|
|
1326
1299
|
|
|
1327
|
-
|
|
1328
|
-
//#region src/operation/metadata/end-action.ts
|
|
1300
|
+
// src/operation/metadata/end-action.ts
|
|
1329
1301
|
function endAction() {
|
|
1330
1302
|
return {
|
|
1331
1303
|
description: `This operation invokes the {@link EndableAction}.end method on the specified action instance.
|
|
@@ -1343,8 +1315,7 @@ had before, without the \`actionOperationData\` property.`,
|
|
|
1343
1315
|
};
|
|
1344
1316
|
}
|
|
1345
1317
|
|
|
1346
|
-
|
|
1347
|
-
//#region src/operation/metadata/end-for-each.ts
|
|
1318
|
+
// src/operation/metadata/end-for-each.ts
|
|
1348
1319
|
function endForEach() {
|
|
1349
1320
|
return {
|
|
1350
1321
|
description: `This operation checks if the current loop should end or start the next iteration.`,
|
|
@@ -1352,8 +1323,7 @@ function endForEach() {
|
|
|
1352
1323
|
};
|
|
1353
1324
|
}
|
|
1354
1325
|
|
|
1355
|
-
|
|
1356
|
-
//#region src/operation/metadata/end-when.ts
|
|
1326
|
+
// src/operation/metadata/end-when.ts
|
|
1357
1327
|
function endWhen() {
|
|
1358
1328
|
return {
|
|
1359
1329
|
description: `This operation cleans up after the {@link when}/{@link otherwise}/{@link endWhen} control flow ends.`,
|
|
@@ -1361,8 +1331,7 @@ function endWhen() {
|
|
|
1361
1331
|
};
|
|
1362
1332
|
}
|
|
1363
1333
|
|
|
1364
|
-
|
|
1365
|
-
//#region src/operation/metadata/extend-controller.ts
|
|
1334
|
+
// src/operation/metadata/extend-controller.ts
|
|
1366
1335
|
function extendController() {
|
|
1367
1336
|
return {
|
|
1368
1337
|
description: `Extends the current controller with given extension.
|
|
@@ -1378,8 +1347,7 @@ The extension's own properties are copied onto the controller instance.`,
|
|
|
1378
1347
|
};
|
|
1379
1348
|
}
|
|
1380
1349
|
|
|
1381
|
-
|
|
1382
|
-
//#region src/operation/metadata/filter-array.ts
|
|
1350
|
+
// src/operation/metadata/filter-array.ts
|
|
1383
1351
|
function filterArray() {
|
|
1384
1352
|
return {
|
|
1385
1353
|
description: `Filters an array based on property equality or custom predicate function.
|
|
@@ -1408,8 +1376,7 @@ Supports two filtering modes:
|
|
|
1408
1376
|
};
|
|
1409
1377
|
}
|
|
1410
1378
|
|
|
1411
|
-
|
|
1412
|
-
//#region src/operation/metadata/find-in-array.ts
|
|
1379
|
+
// src/operation/metadata/find-in-array.ts
|
|
1413
1380
|
function findInArray() {
|
|
1414
1381
|
return {
|
|
1415
1382
|
description: `Finds the first element in an array matching criteria.
|
|
@@ -1443,8 +1410,7 @@ Returns \`undefined\` for \`foundItem\` and \`-1\` for \`foundIndex\` if no matc
|
|
|
1443
1410
|
};
|
|
1444
1411
|
}
|
|
1445
1412
|
|
|
1446
|
-
|
|
1447
|
-
//#region src/operation/metadata/for-each.ts
|
|
1413
|
+
// src/operation/metadata/for-each.ts
|
|
1448
1414
|
function forEach() {
|
|
1449
1415
|
return {
|
|
1450
1416
|
description: `This operation iterates over the given collection.
|
|
@@ -1469,8 +1435,7 @@ change the items or the number of iterations of the running loop.`,
|
|
|
1469
1435
|
};
|
|
1470
1436
|
}
|
|
1471
1437
|
|
|
1472
|
-
|
|
1473
|
-
//#region src/operation/metadata/format-date.ts
|
|
1438
|
+
// src/operation/metadata/format-date.ts
|
|
1474
1439
|
function formatDate() {
|
|
1475
1440
|
return {
|
|
1476
1441
|
description: `Formats a date with a simple token pattern, in the local time zone.
|
|
@@ -1493,8 +1458,7 @@ Supported tokens (every occurrence is replaced, other characters are kept as is)
|
|
|
1493
1458
|
};
|
|
1494
1459
|
}
|
|
1495
1460
|
|
|
1496
|
-
|
|
1497
|
-
//#region src/operation/metadata/format-text.ts
|
|
1461
|
+
// src/operation/metadata/format-text.ts
|
|
1498
1462
|
function formatText() {
|
|
1499
1463
|
return {
|
|
1500
1464
|
description: `Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.
|
|
@@ -1524,8 +1488,7 @@ Transformations:
|
|
|
1524
1488
|
};
|
|
1525
1489
|
}
|
|
1526
1490
|
|
|
1527
|
-
|
|
1528
|
-
//#region src/operation/metadata/get-attributes-from-element.ts
|
|
1491
|
+
// src/operation/metadata/get-attributes-from-element.ts
|
|
1529
1492
|
function getAttributesFromElement() {
|
|
1530
1493
|
return {
|
|
1531
1494
|
description: `This operation retrieves the values for the specified attribute names from the given selected element.`,
|
|
@@ -1541,8 +1504,7 @@ function getAttributesFromElement() {
|
|
|
1541
1504
|
};
|
|
1542
1505
|
}
|
|
1543
1506
|
|
|
1544
|
-
|
|
1545
|
-
//#region src/operation/metadata/get-controller-from-element.ts
|
|
1507
|
+
// src/operation/metadata/get-controller-from-element.ts
|
|
1546
1508
|
function getControllerFromElement() {
|
|
1547
1509
|
return {
|
|
1548
1510
|
description: `This operation retrieves the controller instance with the specified name that is assigned to the given selected element.`,
|
|
@@ -1557,8 +1519,7 @@ function getControllerFromElement() {
|
|
|
1557
1519
|
};
|
|
1558
1520
|
}
|
|
1559
1521
|
|
|
1560
|
-
|
|
1561
|
-
//#region src/operation/metadata/get-controller-instance.ts
|
|
1522
|
+
// src/operation/metadata/get-controller-instance.ts
|
|
1562
1523
|
function getControllerInstance() {
|
|
1563
1524
|
return {
|
|
1564
1525
|
description: `This operation retrieves an instance of the given controller name.
|
|
@@ -1573,8 +1534,7 @@ It assigns this instance to the \`controllerInstance\` property on the current o
|
|
|
1573
1534
|
};
|
|
1574
1535
|
}
|
|
1575
1536
|
|
|
1576
|
-
|
|
1577
|
-
//#region src/operation/metadata/get-current-time.ts
|
|
1537
|
+
// src/operation/metadata/get-current-time.ts
|
|
1578
1538
|
function getCurrentTime() {
|
|
1579
1539
|
return {
|
|
1580
1540
|
description: `Gets the current time as timestamp and Date object.`,
|
|
@@ -1586,8 +1546,7 @@ function getCurrentTime() {
|
|
|
1586
1546
|
};
|
|
1587
1547
|
}
|
|
1588
1548
|
|
|
1589
|
-
|
|
1590
|
-
//#region src/operation/metadata/get-element-dimensions.ts
|
|
1549
|
+
// src/operation/metadata/get-element-dimensions.ts
|
|
1591
1550
|
function getElementDimensions() {
|
|
1592
1551
|
return {
|
|
1593
1552
|
description: `This operation calculates the width and height of the given selected element.
|
|
@@ -1613,8 +1572,7 @@ it will add a value of 100 to the height and modify the width by a ratio of 8 to
|
|
|
1613
1572
|
};
|
|
1614
1573
|
}
|
|
1615
1574
|
|
|
1616
|
-
|
|
1617
|
-
//#region src/operation/metadata/get-focused-element.ts
|
|
1575
|
+
// src/operation/metadata/get-focused-element.ts
|
|
1618
1576
|
function getFocusedElement() {
|
|
1619
1577
|
return {
|
|
1620
1578
|
description: `Gets the currently focused element.`,
|
|
@@ -1623,8 +1581,7 @@ function getFocusedElement() {
|
|
|
1623
1581
|
};
|
|
1624
1582
|
}
|
|
1625
1583
|
|
|
1626
|
-
|
|
1627
|
-
//#region src/operation/metadata/get-form-data.ts
|
|
1584
|
+
// src/operation/metadata/get-form-data.ts
|
|
1628
1585
|
function getFormData() {
|
|
1629
1586
|
return {
|
|
1630
1587
|
description: `Extracts all input, select, and textarea values from form element into operation data.
|
|
@@ -1638,8 +1595,7 @@ select elements, textareas, and text inputs.`,
|
|
|
1638
1595
|
};
|
|
1639
1596
|
}
|
|
1640
1597
|
|
|
1641
|
-
|
|
1642
|
-
//#region src/operation/metadata/get-import.ts
|
|
1598
|
+
// src/operation/metadata/get-import.ts
|
|
1643
1599
|
function getImport() {
|
|
1644
1600
|
return {
|
|
1645
1601
|
description: `This operation retrieves the import specified by the given \`systemName\` and
|
|
@@ -1660,8 +1616,7 @@ way, as can every built-in operation, controller and provider export.`,
|
|
|
1660
1616
|
};
|
|
1661
1617
|
}
|
|
1662
1618
|
|
|
1663
|
-
|
|
1664
|
-
//#region src/operation/metadata/get-query-params.ts
|
|
1619
|
+
// src/operation/metadata/get-query-params.ts
|
|
1665
1620
|
function getQueryParams() {
|
|
1666
1621
|
return {
|
|
1667
1622
|
description: `This operation retrieves the current query parameters from the browser's address bar and places
|
|
@@ -1675,8 +1630,7 @@ them on the returned operation data.`,
|
|
|
1675
1630
|
};
|
|
1676
1631
|
}
|
|
1677
1632
|
|
|
1678
|
-
|
|
1679
|
-
//#region src/operation/metadata/get-scroll-position.ts
|
|
1633
|
+
// src/operation/metadata/get-scroll-position.ts
|
|
1680
1634
|
function getScrollPosition() {
|
|
1681
1635
|
return {
|
|
1682
1636
|
description: `Gets the current scroll position of the viewport.
|
|
@@ -1691,8 +1645,7 @@ Uses cross-browser compatible methods to retrieve scroll position.`,
|
|
|
1691
1645
|
};
|
|
1692
1646
|
}
|
|
1693
1647
|
|
|
1694
|
-
|
|
1695
|
-
//#region src/operation/metadata/get-text-content.ts
|
|
1648
|
+
// src/operation/metadata/get-text-content.ts
|
|
1696
1649
|
function getTextContent() {
|
|
1697
1650
|
return {
|
|
1698
1651
|
description: `Extracts text content from element, stripping all HTML markup.
|
|
@@ -1705,8 +1658,7 @@ without any HTML tags. Preserves whitespace and text from nested elements.`,
|
|
|
1705
1658
|
};
|
|
1706
1659
|
}
|
|
1707
1660
|
|
|
1708
|
-
|
|
1709
|
-
//#region src/operation/metadata/http-delete.ts
|
|
1661
|
+
// src/operation/metadata/http-delete.ts
|
|
1710
1662
|
function httpDelete() {
|
|
1711
1663
|
return {
|
|
1712
1664
|
description: `Performs an HTTP DELETE request to the specified URL.`,
|
|
@@ -1729,8 +1681,7 @@ function httpDelete() {
|
|
|
1729
1681
|
};
|
|
1730
1682
|
}
|
|
1731
1683
|
|
|
1732
|
-
|
|
1733
|
-
//#region src/operation/metadata/http-post.ts
|
|
1684
|
+
// src/operation/metadata/http-post.ts
|
|
1734
1685
|
function httpPost() {
|
|
1735
1686
|
return {
|
|
1736
1687
|
description: `Performs an HTTP POST request to the specified URL.
|
|
@@ -1761,8 +1712,7 @@ body is sent as is; other bodies are still JSON encoded.`,
|
|
|
1761
1712
|
};
|
|
1762
1713
|
}
|
|
1763
1714
|
|
|
1764
|
-
|
|
1765
|
-
//#region src/operation/metadata/http-put.ts
|
|
1715
|
+
// src/operation/metadata/http-put.ts
|
|
1766
1716
|
function httpPut() {
|
|
1767
1717
|
return {
|
|
1768
1718
|
description: `Performs an HTTP PUT request to the specified URL.
|
|
@@ -1793,8 +1743,7 @@ body is sent as is; other bodies are still JSON encoded.`,
|
|
|
1793
1743
|
};
|
|
1794
1744
|
}
|
|
1795
1745
|
|
|
1796
|
-
|
|
1797
|
-
//#region src/operation/metadata/invoke-object-method.ts
|
|
1746
|
+
// src/operation/metadata/invoke-object-method.ts
|
|
1798
1747
|
function invokeObjectMethod() {
|
|
1799
1748
|
return {
|
|
1800
1749
|
description: `This operation invokes the specified method on the given object with the given optional arguments
|
|
@@ -1831,8 +1780,7 @@ only expose methods that are safe to call with configured data.`,
|
|
|
1831
1780
|
};
|
|
1832
1781
|
}
|
|
1833
1782
|
|
|
1834
|
-
|
|
1835
|
-
//#region src/operation/metadata/is-element-in-viewport.ts
|
|
1783
|
+
// src/operation/metadata/is-element-in-viewport.ts
|
|
1836
1784
|
function isElementInViewport() {
|
|
1837
1785
|
return {
|
|
1838
1786
|
description: `Checks if an element is currently visible within the viewport.
|
|
@@ -1844,8 +1792,7 @@ Uses \`getBoundingClientRect()\` to determine if the element is within the viewp
|
|
|
1844
1792
|
};
|
|
1845
1793
|
}
|
|
1846
1794
|
|
|
1847
|
-
|
|
1848
|
-
//#region src/operation/metadata/load-from-storage.ts
|
|
1795
|
+
// src/operation/metadata/load-from-storage.ts
|
|
1849
1796
|
function loadFromStorage() {
|
|
1850
1797
|
return {
|
|
1851
1798
|
description: `Loads data from browser storage (localStorage or sessionStorage).
|
|
@@ -1869,8 +1816,7 @@ When \`storageType\` is omitted, localStorage is used.`,
|
|
|
1869
1816
|
};
|
|
1870
1817
|
}
|
|
1871
1818
|
|
|
1872
|
-
|
|
1873
|
-
//#region src/operation/metadata/load-json.ts
|
|
1819
|
+
// src/operation/metadata/load-json.ts
|
|
1874
1820
|
function loadJson() {
|
|
1875
1821
|
return {
|
|
1876
1822
|
description: `This operation loads a JSON file from the specified url and assigns it to the json
|
|
@@ -1897,8 +1843,7 @@ The cache is shared by every engine. It is emptied when the last live engine cre
|
|
|
1897
1843
|
};
|
|
1898
1844
|
}
|
|
1899
1845
|
|
|
1900
|
-
|
|
1901
|
-
//#region src/operation/metadata/log.ts
|
|
1846
|
+
// src/operation/metadata/log.ts
|
|
1902
1847
|
function log() {
|
|
1903
1848
|
return {
|
|
1904
1849
|
description: `This operation logs the specified value, or, when no logValue property has been assigned
|
|
@@ -1917,8 +1862,7 @@ it will log the current operation data, global data and scope to the console`,
|
|
|
1917
1862
|
};
|
|
1918
1863
|
}
|
|
1919
1864
|
|
|
1920
|
-
|
|
1921
|
-
//#region src/operation/metadata/map-array.ts
|
|
1865
|
+
// src/operation/metadata/map-array.ts
|
|
1922
1866
|
function mapArray() {
|
|
1923
1867
|
return {
|
|
1924
1868
|
description: `Transforms each element of an array using a mapping function.
|
|
@@ -1936,8 +1880,7 @@ The mapFunction receives each item and optionally its index.`,
|
|
|
1936
1880
|
};
|
|
1937
1881
|
}
|
|
1938
1882
|
|
|
1939
|
-
|
|
1940
|
-
//#region src/operation/metadata/math.ts
|
|
1883
|
+
// src/operation/metadata/math.ts
|
|
1941
1884
|
function math() {
|
|
1942
1885
|
return {
|
|
1943
1886
|
description: `This operation performs the given math function with the specified arguments.
|
|
@@ -1962,8 +1905,7 @@ is. Arguments that name a Math constant (such as \`'PI'\`) are replaced by its v
|
|
|
1962
1905
|
};
|
|
1963
1906
|
}
|
|
1964
1907
|
|
|
1965
|
-
|
|
1966
|
-
//#region src/operation/metadata/otherwise.ts
|
|
1908
|
+
// src/operation/metadata/otherwise.ts
|
|
1967
1909
|
function otherwise() {
|
|
1968
1910
|
return {
|
|
1969
1911
|
description: `If the preceeding {@link when} operation evaluates to \`true\` subsequent operations will
|
|
@@ -1972,8 +1914,7 @@ be skipped until an {@link endWhen} operation is encountered.`,
|
|
|
1972
1914
|
};
|
|
1973
1915
|
}
|
|
1974
1916
|
|
|
1975
|
-
|
|
1976
|
-
//#region src/operation/metadata/remove-class.ts
|
|
1917
|
+
// src/operation/metadata/remove-class.ts
|
|
1977
1918
|
function removeClass() {
|
|
1978
1919
|
return {
|
|
1979
1920
|
description: `This operation removes the spcified class name from the given selected element.`,
|
|
@@ -1987,8 +1928,7 @@ function removeClass() {
|
|
|
1987
1928
|
};
|
|
1988
1929
|
}
|
|
1989
1930
|
|
|
1990
|
-
|
|
1991
|
-
//#region src/operation/metadata/remove-controller-from-element.ts
|
|
1931
|
+
// src/operation/metadata/remove-controller-from-element.ts
|
|
1992
1932
|
function removeControllerFromElement() {
|
|
1993
1933
|
return {
|
|
1994
1934
|
description: `This operation removes the controller with the specified name from the given selected element.`,
|
|
@@ -2002,8 +1942,7 @@ function removeControllerFromElement() {
|
|
|
2002
1942
|
};
|
|
2003
1943
|
}
|
|
2004
1944
|
|
|
2005
|
-
|
|
2006
|
-
//#region src/operation/metadata/remove-element.ts
|
|
1945
|
+
// src/operation/metadata/remove-element.ts
|
|
2007
1946
|
function removeElement() {
|
|
2008
1947
|
return {
|
|
2009
1948
|
description: `This operation removes the given selected element from the DOM.
|
|
@@ -2015,8 +1954,7 @@ detached first, so their eventbus and window listeners do not outlive the elemen
|
|
|
2015
1954
|
};
|
|
2016
1955
|
}
|
|
2017
1956
|
|
|
2018
|
-
|
|
2019
|
-
//#region src/operation/metadata/remove-properties-from-operation-data.ts
|
|
1957
|
+
// src/operation/metadata/remove-properties-from-operation-data.ts
|
|
2020
1958
|
function removePropertiesFromOperationData() {
|
|
2021
1959
|
return {
|
|
2022
1960
|
description: `This operation removes the given list of properties from the current operation data.
|
|
@@ -2031,8 +1969,7 @@ It will also remove the property \`propertyNames\` from the result.`,
|
|
|
2031
1969
|
};
|
|
2032
1970
|
}
|
|
2033
1971
|
|
|
2034
|
-
|
|
2035
|
-
//#region src/operation/metadata/reparent-element.ts
|
|
1972
|
+
// src/operation/metadata/reparent-element.ts
|
|
2036
1973
|
function reparentElement() {
|
|
2037
1974
|
return {
|
|
2038
1975
|
description: `This operation moves the given selected element to the new parent that is defined
|
|
@@ -2052,8 +1989,7 @@ not accepted.`,
|
|
|
2052
1989
|
};
|
|
2053
1990
|
}
|
|
2054
1991
|
|
|
2055
|
-
|
|
2056
|
-
//#region src/operation/metadata/replace-string.ts
|
|
1992
|
+
// src/operation/metadata/replace-string.ts
|
|
2057
1993
|
function replaceString() {
|
|
2058
1994
|
return {
|
|
2059
1995
|
description: `Replaces occurrences of a pattern in a string (alias for replaceText for string context).
|
|
@@ -2081,8 +2017,7 @@ and \`textContent\` is left unchanged.`,
|
|
|
2081
2017
|
};
|
|
2082
2018
|
}
|
|
2083
2019
|
|
|
2084
|
-
|
|
2085
|
-
//#region src/operation/metadata/replace-text.ts
|
|
2020
|
+
// src/operation/metadata/replace-text.ts
|
|
2086
2021
|
function replaceText() {
|
|
2087
2022
|
return {
|
|
2088
2023
|
description: `Finds and replaces text using literal string or regex pattern.
|
|
@@ -2110,8 +2045,7 @@ A string pattern replaces every occurrence and inserts the replacement literally
|
|
|
2110
2045
|
};
|
|
2111
2046
|
}
|
|
2112
2047
|
|
|
2113
|
-
|
|
2114
|
-
//#region src/operation/metadata/request-action.ts
|
|
2048
|
+
// src/operation/metadata/request-action.ts
|
|
2115
2049
|
function requestAction() {
|
|
2116
2050
|
return {
|
|
2117
2051
|
description: `This operation requests an action instance with the specified name and assigns it
|
|
@@ -2126,8 +2060,7 @@ to the \`actionInstance\` property on the current operation data.`,
|
|
|
2126
2060
|
};
|
|
2127
2061
|
}
|
|
2128
2062
|
|
|
2129
|
-
|
|
2130
|
-
//#region src/operation/metadata/save-to-storage.ts
|
|
2063
|
+
// src/operation/metadata/save-to-storage.ts
|
|
2131
2064
|
function saveToStorage() {
|
|
2132
2065
|
return {
|
|
2133
2066
|
description: `Saves data to browser storage (localStorage or sessionStorage).
|
|
@@ -2156,8 +2089,7 @@ When \`storageType\` is omitted, localStorage is used.`,
|
|
|
2156
2089
|
};
|
|
2157
2090
|
}
|
|
2158
2091
|
|
|
2159
|
-
|
|
2160
|
-
//#region src/operation/metadata/scroll-to-element.ts
|
|
2092
|
+
// src/operation/metadata/scroll-to-element.ts
|
|
2161
2093
|
function scrollToElement() {
|
|
2162
2094
|
return {
|
|
2163
2095
|
description: `Scrolls the viewport to bring the selected element into view.
|
|
@@ -2192,8 +2124,7 @@ Uses the browser's \`scrollIntoView\` API with configurable behavior.`,
|
|
|
2192
2124
|
};
|
|
2193
2125
|
}
|
|
2194
2126
|
|
|
2195
|
-
|
|
2196
|
-
//#region src/operation/metadata/scroll-to-position.ts
|
|
2127
|
+
// src/operation/metadata/scroll-to-position.ts
|
|
2197
2128
|
function scrollToPosition() {
|
|
2198
2129
|
return {
|
|
2199
2130
|
description: `Scrolls the viewport to a specific x,y coordinate position.
|
|
@@ -2219,8 +2150,7 @@ Uses the browser's \`window.scrollTo\` API with configurable behavior.`,
|
|
|
2219
2150
|
};
|
|
2220
2151
|
}
|
|
2221
2152
|
|
|
2222
|
-
|
|
2223
|
-
//#region src/operation/metadata/select-element.ts
|
|
2153
|
+
// src/operation/metadata/select-element.ts
|
|
2224
2154
|
function selectElement() {
|
|
2225
2155
|
return {
|
|
2226
2156
|
description: `This operation selects one or more elements using the specified selector.
|
|
@@ -2244,8 +2174,7 @@ then the element will be looked for only in the descendant elements of this DOM
|
|
|
2244
2174
|
};
|
|
2245
2175
|
}
|
|
2246
2176
|
|
|
2247
|
-
|
|
2248
|
-
//#region src/operation/metadata/set-data.ts
|
|
2177
|
+
// src/operation/metadata/set-data.ts
|
|
2249
2178
|
function setData() {
|
|
2250
2179
|
return {
|
|
2251
2180
|
description: `This operation assigns the specified properties to the specified data targets.`,
|
|
@@ -2258,8 +2187,7 @@ function setData() {
|
|
|
2258
2187
|
};
|
|
2259
2188
|
}
|
|
2260
2189
|
|
|
2261
|
-
|
|
2262
|
-
//#region src/operation/metadata/set-element-attributes.ts
|
|
2190
|
+
// src/operation/metadata/set-element-attributes.ts
|
|
2263
2191
|
function setElementAttributes() {
|
|
2264
2192
|
return {
|
|
2265
2193
|
description: `This operation sets the specified set of attributes on the given selected element.
|
|
@@ -2276,8 +2204,7 @@ attributes such as \`href\`, \`src\` and \`formaction\`, are refused, the same a
|
|
|
2276
2204
|
};
|
|
2277
2205
|
}
|
|
2278
2206
|
|
|
2279
|
-
|
|
2280
|
-
//#region src/operation/metadata/set-element-content.ts
|
|
2207
|
+
// src/operation/metadata/set-element-content.ts
|
|
2281
2208
|
function setElementContent() {
|
|
2282
2209
|
return {
|
|
2283
2210
|
description: `This operation sets the specified content defined by the value assigned to the template property
|
|
@@ -2314,8 +2241,7 @@ never parsed as HTML.`,
|
|
|
2314
2241
|
};
|
|
2315
2242
|
}
|
|
2316
2243
|
|
|
2317
|
-
|
|
2318
|
-
//#region src/operation/metadata/set-focus.ts
|
|
2244
|
+
// src/operation/metadata/set-focus.ts
|
|
2319
2245
|
function setFocus() {
|
|
2320
2246
|
return {
|
|
2321
2247
|
description: `Sets focus to the selected element.`,
|
|
@@ -2324,8 +2250,7 @@ function setFocus() {
|
|
|
2324
2250
|
};
|
|
2325
2251
|
}
|
|
2326
2252
|
|
|
2327
|
-
|
|
2328
|
-
//#region src/operation/metadata/set-form-value.ts
|
|
2253
|
+
// src/operation/metadata/set-form-value.ts
|
|
2329
2254
|
function setFormValue() {
|
|
2330
2255
|
return {
|
|
2331
2256
|
description: `Sets the value of an input, select, or textarea element.
|
|
@@ -2345,8 +2270,7 @@ Handles different input types appropriately:
|
|
|
2345
2270
|
};
|
|
2346
2271
|
}
|
|
2347
2272
|
|
|
2348
|
-
|
|
2349
|
-
//#region src/operation/metadata/set-global-data.ts
|
|
2273
|
+
// src/operation/metadata/set-global-data.ts
|
|
2350
2274
|
function setGlobalData() {
|
|
2351
2275
|
return {
|
|
2352
2276
|
description: `This operation copies the specified properties from the operationData to the global data.
|
|
@@ -2364,8 +2288,7 @@ are stored by reference.`,
|
|
|
2364
2288
|
};
|
|
2365
2289
|
}
|
|
2366
2290
|
|
|
2367
|
-
|
|
2368
|
-
//#region src/operation/metadata/set-operation-data.ts
|
|
2291
|
+
// src/operation/metadata/set-operation-data.ts
|
|
2369
2292
|
function setOperationData() {
|
|
2370
2293
|
return {
|
|
2371
2294
|
description: `This operation assigns the specified properties to the current operation data.
|
|
@@ -2385,8 +2308,7 @@ When override is set to true the properties replace the current operation data e
|
|
|
2385
2308
|
};
|
|
2386
2309
|
}
|
|
2387
2310
|
|
|
2388
|
-
|
|
2389
|
-
//#region src/operation/metadata/set-style.ts
|
|
2311
|
+
// src/operation/metadata/set-style.ts
|
|
2390
2312
|
function setStyle() {
|
|
2391
2313
|
return {
|
|
2392
2314
|
description: `This operation assigns the specified CSS style properties to the
|
|
@@ -2401,8 +2323,7 @@ given selected element.`,
|
|
|
2401
2323
|
};
|
|
2402
2324
|
}
|
|
2403
2325
|
|
|
2404
|
-
|
|
2405
|
-
//#region src/operation/metadata/set-variable.ts
|
|
2326
|
+
// src/operation/metadata/set-variable.ts
|
|
2406
2327
|
function setVariable() {
|
|
2407
2328
|
return {
|
|
2408
2329
|
description: `This operation sets a variable with the specified name on the scope with the specified value.
|
|
@@ -2427,8 +2348,7 @@ variables set before the block can be read and changed inside it. Read variables
|
|
|
2427
2348
|
};
|
|
2428
2349
|
}
|
|
2429
2350
|
|
|
2430
|
-
|
|
2431
|
-
//#region src/operation/metadata/sort-array.ts
|
|
2351
|
+
// src/operation/metadata/sort-array.ts
|
|
2432
2352
|
function sortArray() {
|
|
2433
2353
|
return {
|
|
2434
2354
|
description: `Sorts an array by property, natural order, or custom comparator function.
|
|
@@ -2458,8 +2378,7 @@ Supports three sorting modes:
|
|
|
2458
2378
|
};
|
|
2459
2379
|
}
|
|
2460
2380
|
|
|
2461
|
-
|
|
2462
|
-
//#region src/operation/metadata/split-string.ts
|
|
2381
|
+
// src/operation/metadata/split-string.ts
|
|
2463
2382
|
function splitString() {
|
|
2464
2383
|
return {
|
|
2465
2384
|
description: `Splits a string into an array by delimiter (string or regex).`,
|
|
@@ -2483,8 +2402,7 @@ function splitString() {
|
|
|
2483
2402
|
};
|
|
2484
2403
|
}
|
|
2485
2404
|
|
|
2486
|
-
|
|
2487
|
-
//#region src/operation/metadata/start-action.ts
|
|
2405
|
+
// src/operation/metadata/start-action.ts
|
|
2488
2406
|
function startAction() {
|
|
2489
2407
|
return {
|
|
2490
2408
|
description: `This operation starts the specified action instance using the given action operation data.
|
|
@@ -2502,8 +2420,7 @@ had before, plus \`actionInstance\`, without the \`actionOperationData\` propert
|
|
|
2502
2420
|
};
|
|
2503
2421
|
}
|
|
2504
2422
|
|
|
2505
|
-
|
|
2506
|
-
//#region src/operation/metadata/substring-text.ts
|
|
2423
|
+
// src/operation/metadata/substring-text.ts
|
|
2507
2424
|
function substringText() {
|
|
2508
2425
|
return {
|
|
2509
2426
|
description: `Extracts a substring from text between start and end indices.`,
|
|
@@ -2524,8 +2441,7 @@ function substringText() {
|
|
|
2524
2441
|
};
|
|
2525
2442
|
}
|
|
2526
2443
|
|
|
2527
|
-
|
|
2528
|
-
//#region src/operation/metadata/toggle-class.ts
|
|
2444
|
+
// src/operation/metadata/toggle-class.ts
|
|
2529
2445
|
function toggleClass() {
|
|
2530
2446
|
return {
|
|
2531
2447
|
description: `This operation toggles the specfied class name on the given selected element.
|
|
@@ -2542,8 +2458,7 @@ otherwise it will be added.`,
|
|
|
2542
2458
|
};
|
|
2543
2459
|
}
|
|
2544
2460
|
|
|
2545
|
-
|
|
2546
|
-
//#region src/operation/metadata/toggle-element.ts
|
|
2461
|
+
// src/operation/metadata/toggle-element.ts
|
|
2547
2462
|
function toggleElement() {
|
|
2548
2463
|
return {
|
|
2549
2464
|
description: `This operation toggles the visibility of the given selected element.
|
|
@@ -2555,8 +2470,7 @@ it will be hidden.`,
|
|
|
2555
2470
|
};
|
|
2556
2471
|
}
|
|
2557
2472
|
|
|
2558
|
-
|
|
2559
|
-
//#region src/operation/metadata/toggle-form-element.ts
|
|
2473
|
+
// src/operation/metadata/toggle-form-element.ts
|
|
2560
2474
|
function toggleFormElement() {
|
|
2561
2475
|
return {
|
|
2562
2476
|
description: `Enables or disables form input elements (inputs, selects, textareas, buttons).
|
|
@@ -2573,8 +2487,7 @@ attribute; when false, adds the disabled attribute.`,
|
|
|
2573
2487
|
};
|
|
2574
2488
|
}
|
|
2575
2489
|
|
|
2576
|
-
|
|
2577
|
-
//#region src/operation/metadata/validate-form.ts
|
|
2490
|
+
// src/operation/metadata/validate-form.ts
|
|
2578
2491
|
function validateForm() {
|
|
2579
2492
|
return {
|
|
2580
2493
|
description: `Validates form fields against HTML5 validation and custom rules.
|
|
@@ -2599,8 +2512,7 @@ apply to each selected value.`,
|
|
|
2599
2512
|
};
|
|
2600
2513
|
}
|
|
2601
2514
|
|
|
2602
|
-
|
|
2603
|
-
//#region src/operation/metadata/wait.ts
|
|
2515
|
+
// src/operation/metadata/wait.ts
|
|
2604
2516
|
function wait() {
|
|
2605
2517
|
return {
|
|
2606
2518
|
description: `This operation waits for the specified amount of milliseconds.`,
|
|
@@ -2613,8 +2525,7 @@ function wait() {
|
|
|
2613
2525
|
};
|
|
2614
2526
|
}
|
|
2615
2527
|
|
|
2616
|
-
|
|
2617
|
-
//#region src/operation/metadata/when.ts
|
|
2528
|
+
// src/operation/metadata/when.ts
|
|
2618
2529
|
function when() {
|
|
2619
2530
|
return {
|
|
2620
2531
|
description: `When the given expression evaluates to false, subsequent operations will be skipped
|
|
@@ -2664,8 +2575,7 @@ guards.`,
|
|
|
2664
2575
|
};
|
|
2665
2576
|
}
|
|
2666
2577
|
|
|
2667
|
-
|
|
2668
|
-
//#region src/operation/metadata/index.ts
|
|
2578
|
+
// src/operation/metadata/index.ts
|
|
2669
2579
|
var metadata_exports$2 = /* @__PURE__ */ __exportAll({
|
|
2670
2580
|
addClass: () => addClass,
|
|
2671
2581
|
addControllerToElement: () => addControllerToElement,
|
|
@@ -2748,8 +2658,7 @@ var metadata_exports$2 = /* @__PURE__ */ __exportAll({
|
|
|
2748
2658
|
when: () => when
|
|
2749
2659
|
});
|
|
2750
2660
|
|
|
2751
|
-
|
|
2752
|
-
//#region src/operation/metadata/parameter-types.ts
|
|
2661
|
+
// src/operation/metadata/parameter-types.ts
|
|
2753
2662
|
/**
|
|
2754
2663
|
* Every parameter type the operation and controller metadata may use. The
|
|
2755
2664
|
* metadata generator fails on a type name that is not in this list.
|
|
@@ -2798,6 +2707,5 @@ const PARAMETER_TYPES = [
|
|
|
2798
2707
|
"ParameterType:DocumentFragment"
|
|
2799
2708
|
];
|
|
2800
2709
|
|
|
2801
|
-
//#endregion
|
|
2802
2710
|
export { PARAMETER_TYPES, metadata_exports as ctrlmetadata, metadata_exports$1 as eventmetadata, metadata_exports$2 as metadata };
|
|
2803
2711
|
//# sourceMappingURL=metadata.mjs.map
|