eligius 2.3.2 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +158 -33
- package/dist/configuration-api.d.mts +6110 -0
- package/dist/configuration-api.mjs +3876 -0
- package/dist/configuration-api.mjs.map +1 -0
- package/dist/index.d.mts +3980 -1278
- package/dist/index.mjs +10476 -4825
- package/dist/index.mjs.map +1 -1
- package/dist/metadata.d.mts +1060 -282
- package/dist/metadata.mjs +592 -278
- package/dist/metadata.mjs.map +1 -1
- package/dist/{chunk-w6R9maHv.mjs → rolldown-runtime-BOlb2svz.mjs} +1 -0
- package/jsonschema/eligius-configuration.json +120 -9
- package/jsonschema/operations/add-class.json +2 -7
- package/jsonschema/operations/add-controller-to-element.json +4 -3
- package/jsonschema/operations/add-globals-to-operation.json +40 -0
- package/jsonschema/operations/animate-with-class.json +8 -8
- package/jsonschema/operations/animate.json +10 -9
- package/jsonschema/operations/announce-to-screen-reader.json +2 -2
- package/jsonschema/operations/break-for-each.json +27 -0
- package/jsonschema/operations/broadcast-event.json +2 -2
- package/jsonschema/operations/calc.json +16 -3
- package/jsonschema/operations/clear-element.json +5 -14
- package/jsonschema/operations/clear-operation-data.json +3 -4
- package/jsonschema/operations/clear-storage.json +48 -0
- package/jsonschema/operations/compare-date.json +2 -2
- package/jsonschema/operations/concatenate-strings.json +2 -2
- package/jsonschema/operations/continue-for-each.json +27 -0
- package/jsonschema/operations/create-element.json +21 -5
- package/jsonschema/operations/custom-function.json +2 -2
- package/jsonschema/operations/end-action.json +5 -13
- package/jsonschema/operations/end-for-each.json +27 -0
- package/jsonschema/operations/end-when.json +27 -0
- package/jsonschema/operations/extend-controller.json +9 -7
- package/jsonschema/operations/filter-array.json +4 -12
- package/jsonschema/operations/find-in-array.json +4 -12
- package/jsonschema/operations/for-each.json +2 -3
- package/jsonschema/operations/format-date.json +2 -17
- package/jsonschema/operations/format-text.json +15 -7
- package/jsonschema/operations/get-attributes-from-element.json +9 -8
- package/jsonschema/operations/get-controller-from-element.json +2 -7
- package/jsonschema/operations/get-controller-instance.json +18 -5
- package/jsonschema/operations/get-current-time.json +3 -4
- package/jsonschema/operations/get-element-dimensions.json +4 -12
- package/jsonschema/operations/get-focused-element.json +3 -4
- package/jsonschema/operations/get-form-data.json +4 -12
- package/jsonschema/operations/get-import.json +2 -2
- package/jsonschema/operations/get-query-params.json +12 -5
- package/jsonschema/operations/get-scroll-position.json +3 -4
- package/jsonschema/operations/get-text-content.json +4 -12
- package/jsonschema/operations/http-delete.json +11 -3
- package/jsonschema/operations/http-post.json +11 -3
- package/jsonschema/operations/http-put.json +11 -3
- package/jsonschema/operations/invoke-object-method.json +2 -6
- package/jsonschema/operations/is-element-in-viewport.json +4 -12
- package/jsonschema/operations/load-from-storage.json +12 -3
- package/jsonschema/operations/load-json.json +5 -5
- package/jsonschema/operations/log.json +4 -7
- package/jsonschema/operations/map-array.json +2 -7
- package/jsonschema/operations/math.json +18 -3
- package/jsonschema/operations/otherwise.json +27 -0
- package/jsonschema/operations/remove-class.json +2 -7
- package/jsonschema/operations/remove-controller-from-element.json +2 -7
- package/jsonschema/operations/remove-element.json +5 -14
- package/jsonschema/operations/remove-properties-from-operation-data.json +2 -2
- package/jsonschema/operations/reparent-element.json +2 -7
- package/jsonschema/operations/replace-string.json +2 -6
- package/jsonschema/operations/replace-text.json +2 -6
- package/jsonschema/operations/request-action.json +2 -2
- package/jsonschema/operations/save-to-storage.json +12 -3
- package/jsonschema/operations/scroll-to-element.json +23 -13
- package/jsonschema/operations/scroll-to-position.json +12 -3
- package/jsonschema/operations/select-element.json +2 -2
- package/jsonschema/operations/set-data.json +8 -3
- package/jsonschema/operations/set-element-attributes.json +10 -9
- package/jsonschema/operations/set-element-content.json +5 -15
- package/jsonschema/operations/set-focus.json +5 -14
- package/jsonschema/operations/set-form-value.json +2 -7
- package/jsonschema/operations/set-global-data.json +2 -2
- package/jsonschema/operations/{set.json → set-operation-data.json} +12 -7
- package/jsonschema/operations/set-style.json +3 -8
- package/jsonschema/operations/set-variable.json +3 -5
- package/jsonschema/operations/sort-array.json +14 -13
- package/jsonschema/operations/split-string.json +2 -6
- package/jsonschema/operations/start-action.json +4 -12
- package/jsonschema/operations/substring-text.json +2 -6
- package/jsonschema/operations/toggle-class.json +2 -7
- package/jsonschema/operations/toggle-element.json +5 -14
- package/jsonschema/operations/toggle-form-element.json +2 -7
- package/jsonschema/operations/validate-form.json +41 -13
- package/jsonschema/operations/wait.json +2 -2
- package/jsonschema/operations/when.json +2 -2
- package/package.json +49 -24
package/dist/metadata.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { t as __exportAll } from "./rolldown-runtime-BOlb2svz.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/controllers/metadata/dom-event-listener-controller.ts
|
|
4
5
|
function DOMEventListenerController() {
|
|
@@ -7,7 +8,12 @@ function DOMEventListenerController() {
|
|
|
7
8
|
executes the given actions with the given operation data.
|
|
8
9
|
|
|
9
10
|
By default the \`start\` operations of the specified actions are executed. To execute the \`end\` operations instead,
|
|
10
|
-
prefix the action name with \`end
|
|
11
|
+
prefix the action name with \`end:\`.
|
|
12
|
+
|
|
13
|
+
The actions run in order, each receiving the operation data the previous one returned. When an action fails, the
|
|
14
|
+
remaining actions are skipped and the failure is reported through the eventbus's \`reportError\` (an error naming
|
|
15
|
+
this controller, the action and the DOM event, with the original error as \`cause\`), or logged with
|
|
16
|
+
\`console.error\` when the eventbus has no \`reportError\`.`,
|
|
11
17
|
dependentProperties: ["selectedElement"],
|
|
12
18
|
properties: {
|
|
13
19
|
eventName: {
|
|
@@ -30,6 +36,11 @@ function LabelController() {
|
|
|
30
36
|
description: `This controller attaches to the given selected element and renders the text
|
|
31
37
|
associated with the given translation key.
|
|
32
38
|
|
|
39
|
+
Translations may contain simple inline markup. They are passed through
|
|
40
|
+
\`sanitizeHtml\` before insertion, so \`<br>\`, \`<strong>\`, \`<em>\`,
|
|
41
|
+
\`<span>\` and http(s)/mailto/relative links render, while scripts, event
|
|
42
|
+
handlers, \`javascript:\` URLs, images, iframes and SVG are removed.
|
|
43
|
+
|
|
33
44
|
The controller listens for the \`language-change\` event and re-renders the text
|
|
34
45
|
with the new language after such an event.
|
|
35
46
|
|
|
@@ -40,7 +51,7 @@ Uses the rosetta-based locale system via \`request-translation\` event.`,
|
|
|
40
51
|
type: "ParameterType:string",
|
|
41
52
|
required: true
|
|
42
53
|
},
|
|
43
|
-
attributeName: { type:
|
|
54
|
+
attributeName: { type: "ParameterType:string" }
|
|
44
55
|
}
|
|
45
56
|
};
|
|
46
57
|
}
|
|
@@ -51,11 +62,12 @@ function LottieController() {
|
|
|
51
62
|
return {
|
|
52
63
|
description: `This controller renders a [lottie-web](https://github.com/airbnb/lottie-web) animation inside the given selected element.
|
|
53
64
|
|
|
54
|
-
The url may encode freeze and end positions like this: my-url/filename[freeze=10,end=21].json
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
65
|
+
The url may encode freeze and end positions like this: my-url/filename[freeze=10,end=21].json
|
|
66
|
+
|
|
67
|
+
lottie-web is an optional peer dependency. It is loaded with a dynamic
|
|
68
|
+
\`import()\` the first time a LottieController attaches, so applications that
|
|
69
|
+
never use this controller do not need it installed.`,
|
|
70
|
+
properties: { url: { type: "ParameterType:url" } }
|
|
59
71
|
};
|
|
60
72
|
}
|
|
61
73
|
|
|
@@ -75,37 +87,16 @@ The controller follows the standard Eligius lifecycle:
|
|
|
75
87
|
- detach(): Disconnect the observer and clean up resources`,
|
|
76
88
|
dependentProperties: ["selectedElement"],
|
|
77
89
|
properties: {
|
|
78
|
-
observeAttributes: { type:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
observeCharacterData: { type: [
|
|
89
|
-
{ value: "undefined" },
|
|
90
|
-
{ value: "false" },
|
|
91
|
-
{ value: "true" }
|
|
92
|
-
] },
|
|
93
|
-
observeSubtree: { type: [
|
|
94
|
-
{ value: "undefined" },
|
|
95
|
-
{ value: "false" },
|
|
96
|
-
{ value: "true" }
|
|
97
|
-
] },
|
|
98
|
-
attributeOldValue: { type: [
|
|
99
|
-
{ value: "undefined" },
|
|
100
|
-
{ value: "false" },
|
|
101
|
-
{ value: "true" }
|
|
102
|
-
] },
|
|
103
|
-
characterDataOldValue: { type: [
|
|
104
|
-
{ value: "undefined" },
|
|
105
|
-
{ value: "false" },
|
|
106
|
-
{ value: "true" }
|
|
107
|
-
] },
|
|
108
|
-
attributeFilter: { type: [{ value: "undefined" }, { value: "string[]" }] }
|
|
90
|
+
observeAttributes: { type: "ParameterType:boolean" },
|
|
91
|
+
observeChildList: { type: "ParameterType:boolean" },
|
|
92
|
+
observeCharacterData: { type: "ParameterType:boolean" },
|
|
93
|
+
observeSubtree: { type: "ParameterType:boolean" },
|
|
94
|
+
attributeOldValue: { type: "ParameterType:boolean" },
|
|
95
|
+
characterDataOldValue: { type: "ParameterType:boolean" },
|
|
96
|
+
attributeFilter: {
|
|
97
|
+
type: "ParameterType:array",
|
|
98
|
+
itemType: "ParameterType:string"
|
|
99
|
+
}
|
|
109
100
|
}
|
|
110
101
|
};
|
|
111
102
|
}
|
|
@@ -114,7 +105,19 @@ The controller follows the standard Eligius lifecycle:
|
|
|
114
105
|
//#region src/controllers/metadata/navigation-controller.ts
|
|
115
106
|
function NavigationController() {
|
|
116
107
|
return {
|
|
117
|
-
description:
|
|
108
|
+
description: `Renders a navigation menu in the selected element and keeps it in sync with
|
|
109
|
+
the active navigation entry.
|
|
110
|
+
|
|
111
|
+
Activating a menu item (click, Enter or Space) navigates to its entry:
|
|
112
|
+
- an entry with a \`timelineUri\` broadcasts \`request-timeline-uri\`
|
|
113
|
+
[timelineUri, position], which the engine handles by switching timelines;
|
|
114
|
+
- an entry without one broadcasts the legacy \`request-video-url\`
|
|
115
|
+
[videoUrlIndex, position], which the engine does not handle.
|
|
116
|
+
|
|
117
|
+
With \`autoNext\`, the next entry is started when the active entry's timeline
|
|
118
|
+
completes (\`timeline-complete\`) or, for legacy entries, on \`video-complete\`.
|
|
119
|
+
When the engine switches to a timeline that an entry names
|
|
120
|
+
(\`timeline-current-timeline-change\`), that entry becomes the active one.`,
|
|
118
121
|
dependentProperties: ["selectedElement"],
|
|
119
122
|
properties: { json: {
|
|
120
123
|
type: "ParameterType:object",
|
|
@@ -138,7 +141,16 @@ The current progress as a percentage is rendered in the given text element.`,
|
|
|
138
141
|
//#region src/controllers/metadata/routing-controller.ts
|
|
139
142
|
function RoutingController() {
|
|
140
143
|
return {
|
|
141
|
-
description: `
|
|
144
|
+
description: `Keeps the browser history in sync with the navigation entries: each entry
|
|
145
|
+
gets a \`#/<id>/<position>\` URL, and back/forward navigation requests the
|
|
146
|
+
entry in the URL.
|
|
147
|
+
|
|
148
|
+
Requests go to the engine as \`request-timeline-uri\` for entries with a
|
|
149
|
+
\`timelineUri\`, and as the legacy \`request-video-url\` otherwise. Before the
|
|
150
|
+
engine switches timelines (\`before-request-timeline-uri\`, or the legacy
|
|
151
|
+
\`before-request-video-url\`), the current entry is saved with its position.
|
|
152
|
+
|
|
153
|
+
This is a work in progress, do not use this yet please....`,
|
|
142
154
|
properties: { json: {
|
|
143
155
|
type: "ParameterType:object",
|
|
144
156
|
required: true
|
|
@@ -150,7 +162,18 @@ function RoutingController() {
|
|
|
150
162
|
//#region src/controllers/metadata/subtitles-controller.ts
|
|
151
163
|
function SubtitlesController() {
|
|
152
164
|
return {
|
|
153
|
-
description:
|
|
165
|
+
description: `This controller shows the subtitle whose duration contains the current
|
|
166
|
+
timeline position in the selected element, in the current language, and
|
|
167
|
+
re-renders it after a \`language-change\` event.
|
|
168
|
+
|
|
169
|
+
The starting language is the locale's current language
|
|
170
|
+
(\`request-current-language\`); the configured \`language\` is only used when
|
|
171
|
+
nothing answers that request.
|
|
172
|
+
|
|
173
|
+
Subtitle texts may contain simple inline markup. They are passed through
|
|
174
|
+
\`sanitizeHtml\` before insertion, so \`<br>\`, \`<i>\`, \`<em>\`,
|
|
175
|
+
\`<strong>\` and \`<span>\` render, while scripts, event handlers,
|
|
176
|
+
\`javascript:\` URLs, images, iframes and SVG are removed.`,
|
|
154
177
|
dependentProperties: ["selectedElement"],
|
|
155
178
|
properties: {
|
|
156
179
|
language: { type: "ParameterType:languagecode" },
|
|
@@ -176,9 +199,21 @@ var metadata_exports = /* @__PURE__ */ __exportAll({
|
|
|
176
199
|
//#region src/eventbus/events/metadata/before-request-timeline-uri.ts
|
|
177
200
|
function beforeRequestTimelineUri() {
|
|
178
201
|
return {
|
|
179
|
-
description: `Event: before-request-timeline-uri
|
|
202
|
+
description: `Event: before-request-timeline-uri
|
|
203
|
+
|
|
204
|
+
Broadcast by \`RequestVideoUriInterceptor\` just before a
|
|
205
|
+
\`request-timeline-uri\` event is handled, with the same arguments.`,
|
|
180
206
|
category: `Timeline`,
|
|
181
|
-
args: [
|
|
207
|
+
args: [{
|
|
208
|
+
name: "uri",
|
|
209
|
+
type: "string",
|
|
210
|
+
description: "The timeline URI that is about to be loaded"
|
|
211
|
+
}, {
|
|
212
|
+
name: "position",
|
|
213
|
+
type: "number",
|
|
214
|
+
description: "Optional start position (defaults to 0)",
|
|
215
|
+
optional: true
|
|
216
|
+
}]
|
|
182
217
|
};
|
|
183
218
|
}
|
|
184
219
|
|
|
@@ -191,15 +226,20 @@ function beforeRequestVideoUrl() {
|
|
|
191
226
|
args: [
|
|
192
227
|
{
|
|
193
228
|
name: "index",
|
|
194
|
-
type: "number"
|
|
229
|
+
type: "number",
|
|
230
|
+
description: "The video URL index"
|
|
195
231
|
},
|
|
196
232
|
{
|
|
197
233
|
name: "requestedVideoPosition",
|
|
198
|
-
type: "number"
|
|
234
|
+
type: "number",
|
|
235
|
+
description: "Optional video position to seek to",
|
|
236
|
+
optional: true
|
|
199
237
|
},
|
|
200
238
|
{
|
|
201
239
|
name: "isHistoryRequest",
|
|
202
|
-
type: "boolean"
|
|
240
|
+
type: "boolean",
|
|
241
|
+
description: "Flag indicating if this is a history request",
|
|
242
|
+
optional: true
|
|
203
243
|
}
|
|
204
244
|
]
|
|
205
245
|
};
|
|
@@ -213,7 +253,47 @@ function domMutation() {
|
|
|
213
253
|
category: `Controller`,
|
|
214
254
|
args: [{
|
|
215
255
|
name: "payload",
|
|
216
|
-
type: "any"
|
|
256
|
+
type: "any",
|
|
257
|
+
description: "Mutation observer payload"
|
|
258
|
+
}]
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/eventbus/events/metadata/engine-command-error.ts
|
|
264
|
+
function engineCommandError() {
|
|
265
|
+
return {
|
|
266
|
+
description: `Event: engine-command-error
|
|
267
|
+
Broadcast by EngineEventbusAdapter when an engine command that an eventbus
|
|
268
|
+
event triggered fails, for example \`engine.start()\` after a
|
|
269
|
+
\`timeline-play-request\` when the browser blocks autoplay. The failure is
|
|
270
|
+
also logged with \`console.error\`.`,
|
|
271
|
+
category: `Engine`,
|
|
272
|
+
args: [{
|
|
273
|
+
name: "command",
|
|
274
|
+
type: "string",
|
|
275
|
+
description: "The engine method that failed: `'start'`, `'stop'`, `'seek'` or `'switchTimeline'`"
|
|
276
|
+
}, {
|
|
277
|
+
name: "error",
|
|
278
|
+
type: "unknown",
|
|
279
|
+
description: "The value the engine's promise rejected with"
|
|
280
|
+
}]
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
//#endregion
|
|
285
|
+
//#region src/eventbus/events/metadata/engine-error.ts
|
|
286
|
+
function engineError() {
|
|
287
|
+
return {
|
|
288
|
+
description: `Event: engine-error
|
|
289
|
+
Broadcast when a timeline action that the engine started or ended on its
|
|
290
|
+
own fails. The error names the action, the phase (start or end) and, when
|
|
291
|
+
known, the failing operation.`,
|
|
292
|
+
category: `Engine`,
|
|
293
|
+
args: [{
|
|
294
|
+
name: "error",
|
|
295
|
+
type: "IEngineActionError",
|
|
296
|
+
description: "The error, with the original error as its `cause`"
|
|
217
297
|
}]
|
|
218
298
|
};
|
|
219
299
|
}
|
|
@@ -226,7 +306,8 @@ function highlightNavigation() {
|
|
|
226
306
|
category: `Navigation`,
|
|
227
307
|
args: [{
|
|
228
308
|
name: "videoUrlIndex",
|
|
229
|
-
type: "number"
|
|
309
|
+
type: "number",
|
|
310
|
+
description: "The index of the video URL to highlight"
|
|
230
311
|
}]
|
|
231
312
|
};
|
|
232
313
|
}
|
|
@@ -239,7 +320,8 @@ function languageChange() {
|
|
|
239
320
|
category: `Language Manager`,
|
|
240
321
|
args: [{
|
|
241
322
|
name: "language",
|
|
242
|
-
type: "TLanguageCode"
|
|
323
|
+
type: "TLanguageCode",
|
|
324
|
+
description: "The new language code"
|
|
243
325
|
}]
|
|
244
326
|
};
|
|
245
327
|
}
|
|
@@ -252,10 +334,13 @@ function navigateToVideoUrl() {
|
|
|
252
334
|
category: `Navigation`,
|
|
253
335
|
args: [{
|
|
254
336
|
name: "index",
|
|
255
|
-
type: "number"
|
|
337
|
+
type: "number",
|
|
338
|
+
description: "The video URL index to navigate to"
|
|
256
339
|
}, {
|
|
257
340
|
name: "requestedVideoPosition",
|
|
258
|
-
type: "number"
|
|
341
|
+
type: "number",
|
|
342
|
+
description: "Optional video position to seek to",
|
|
343
|
+
optional: true
|
|
259
344
|
}]
|
|
260
345
|
};
|
|
261
346
|
}
|
|
@@ -268,7 +353,8 @@ function pushHistoryState() {
|
|
|
268
353
|
category: `Navigation`,
|
|
269
354
|
args: [{
|
|
270
355
|
name: "state",
|
|
271
|
-
type: "any"
|
|
356
|
+
type: "any",
|
|
357
|
+
description: "The history state to push"
|
|
272
358
|
}]
|
|
273
359
|
};
|
|
274
360
|
}
|
|
@@ -277,14 +363,15 @@ function pushHistoryState() {
|
|
|
277
363
|
//#region src/eventbus/events/metadata/request-action.ts
|
|
278
364
|
function requestAction$1() {
|
|
279
365
|
return {
|
|
280
|
-
description: `
|
|
366
|
+
description: `Request: request-action
|
|
367
|
+
Answered through \`eventbus.request('request-action', actionName)\` by
|
|
368
|
+
EngineFactory with the configured action of that name. Throws for an
|
|
369
|
+
unknown name, with a "did you mean" hint.`,
|
|
281
370
|
category: `Engine Request`,
|
|
282
371
|
args: [{
|
|
283
372
|
name: "actionName",
|
|
284
|
-
type: "string"
|
|
285
|
-
|
|
286
|
-
name: "callback",
|
|
287
|
-
type: "(actionInstance: any) => void"
|
|
373
|
+
type: "string",
|
|
374
|
+
description: "The name of the action to request"
|
|
288
375
|
}]
|
|
289
376
|
};
|
|
290
377
|
}
|
|
@@ -293,12 +380,11 @@ function requestAction$1() {
|
|
|
293
380
|
//#region src/eventbus/events/metadata/request-current-language.ts
|
|
294
381
|
function requestCurrentLanguage() {
|
|
295
382
|
return {
|
|
296
|
-
description: `
|
|
383
|
+
description: `Request: request-current-language
|
|
384
|
+
Answered through \`eventbus.request('request-current-language')\` by
|
|
385
|
+
LocaleEventbusAdapter with the active locale.`,
|
|
297
386
|
category: `Engine Request`,
|
|
298
|
-
args: [
|
|
299
|
-
name: "callback",
|
|
300
|
-
type: "(language: TLanguageCode) => void"
|
|
301
|
-
}]
|
|
387
|
+
args: []
|
|
302
388
|
};
|
|
303
389
|
}
|
|
304
390
|
|
|
@@ -310,7 +396,8 @@ function requestCurrentNavigation() {
|
|
|
310
396
|
category: `Navigation`,
|
|
311
397
|
args: [{
|
|
312
398
|
name: "callback",
|
|
313
|
-
type: "(navigation: any) => void"
|
|
399
|
+
type: "(navigation: any) => void",
|
|
400
|
+
description: "Callback that receives the current navigation data"
|
|
314
401
|
}]
|
|
315
402
|
};
|
|
316
403
|
}
|
|
@@ -319,12 +406,13 @@ function requestCurrentNavigation() {
|
|
|
319
406
|
//#region src/eventbus/events/metadata/request-current-timeline-position.ts
|
|
320
407
|
function requestCurrentTimelinePosition() {
|
|
321
408
|
return {
|
|
322
|
-
description: `
|
|
409
|
+
description: `Request: request-current-timeline-position
|
|
410
|
+
Answered through \`eventbus.request('request-current-timeline-position')\` by
|
|
411
|
+
EngineEventbusAdapter with the position of the current timeline. The engine
|
|
412
|
+
also answers the legacy form, a broadcast whose last argument is a
|
|
413
|
+
callback that receives the value.`,
|
|
323
414
|
category: `Engine Request`,
|
|
324
|
-
args: [
|
|
325
|
-
name: "callback",
|
|
326
|
-
type: "TResultCallback<number>"
|
|
327
|
-
}]
|
|
415
|
+
args: []
|
|
328
416
|
};
|
|
329
417
|
}
|
|
330
418
|
|
|
@@ -336,7 +424,8 @@ function requestCurrentVideoPosition() {
|
|
|
336
424
|
category: `Navigation`,
|
|
337
425
|
args: [{
|
|
338
426
|
name: "callback",
|
|
339
|
-
type: "(position: number) => void"
|
|
427
|
+
type: "(position: number) => void",
|
|
428
|
+
description: "Callback that receives the current video position"
|
|
340
429
|
}]
|
|
341
430
|
};
|
|
342
431
|
}
|
|
@@ -345,12 +434,14 @@ function requestCurrentVideoPosition() {
|
|
|
345
434
|
//#region src/eventbus/events/metadata/request-engine-root.ts
|
|
346
435
|
function requestEngineRoot() {
|
|
347
436
|
return {
|
|
348
|
-
description: `
|
|
437
|
+
description: `Request: request-engine-root
|
|
438
|
+
Answered through \`eventbus.request('request-engine-root')\` with the
|
|
439
|
+
engine's root element (the container selector). From \`engine.init()\` until
|
|
440
|
+
\`engine.destroy()\` every answer is the same jQuery instance. The engine also
|
|
441
|
+
answers the legacy form, a broadcast whose last argument is a callback that
|
|
442
|
+
receives the value.`,
|
|
349
443
|
category: `Engine Request`,
|
|
350
|
-
args: [
|
|
351
|
-
name: "callback",
|
|
352
|
-
type: "(root: any) => void"
|
|
353
|
-
}]
|
|
444
|
+
args: []
|
|
354
445
|
};
|
|
355
446
|
}
|
|
356
447
|
|
|
@@ -358,14 +449,15 @@ function requestEngineRoot() {
|
|
|
358
449
|
//#region src/eventbus/events/metadata/request-function.ts
|
|
359
450
|
function requestFunction() {
|
|
360
451
|
return {
|
|
361
|
-
description: `
|
|
452
|
+
description: `Request: request-function
|
|
453
|
+
Answered through \`eventbus.request('request-function', systemName)\` by
|
|
454
|
+
EngineFactory with the function (such as an operation) the resource
|
|
455
|
+
importer provides under that name. Throws for an unknown name.`,
|
|
362
456
|
category: `Engine Request`,
|
|
363
457
|
args: [{
|
|
364
458
|
name: "systemName",
|
|
365
|
-
type: "string"
|
|
366
|
-
|
|
367
|
-
name: "callback",
|
|
368
|
-
type: "(fn: any) => void"
|
|
459
|
+
type: "string",
|
|
460
|
+
description: "The name of the function to request"
|
|
369
461
|
}]
|
|
370
462
|
};
|
|
371
463
|
}
|
|
@@ -374,14 +466,16 @@ function requestFunction() {
|
|
|
374
466
|
//#region src/eventbus/events/metadata/request-instance.ts
|
|
375
467
|
function requestInstance() {
|
|
376
468
|
return {
|
|
377
|
-
description: `
|
|
469
|
+
description: `Request: request-instance
|
|
470
|
+
Answered through \`eventbus.request('request-instance', systemName)\` by
|
|
471
|
+
EngineFactory with a new instance of the class the resource importer
|
|
472
|
+
provides under that name (a controller, for example), constructed with the
|
|
473
|
+
eventbus. Throws for an unknown name.`,
|
|
378
474
|
category: `Engine Request`,
|
|
379
475
|
args: [{
|
|
380
|
-
name: "
|
|
381
|
-
type: "string"
|
|
382
|
-
|
|
383
|
-
name: "callback",
|
|
384
|
-
type: "(instance: any) => void"
|
|
476
|
+
name: "systemName",
|
|
477
|
+
type: "string",
|
|
478
|
+
description: "The name of the class to instantiate"
|
|
385
479
|
}]
|
|
386
480
|
};
|
|
387
481
|
}
|
|
@@ -394,10 +488,12 @@ function requestLabelCollection() {
|
|
|
394
488
|
category: `Engine Request`,
|
|
395
489
|
args: [{
|
|
396
490
|
name: "language",
|
|
397
|
-
type: "string"
|
|
491
|
+
type: "string",
|
|
492
|
+
description: "The language code"
|
|
398
493
|
}, {
|
|
399
494
|
name: "callback",
|
|
400
|
-
type: "(collection: any) => void"
|
|
495
|
+
type: "(collection: any) => void",
|
|
496
|
+
description: "Callback that receives the label collection"
|
|
401
497
|
}]
|
|
402
498
|
};
|
|
403
499
|
}
|
|
@@ -410,10 +506,12 @@ function requestLabelCollections() {
|
|
|
410
506
|
category: `Engine Request`,
|
|
411
507
|
args: [{
|
|
412
508
|
name: "labelIds",
|
|
413
|
-
type: "string[]"
|
|
509
|
+
type: "string[]",
|
|
510
|
+
description: "Array of label IDs to retrieve"
|
|
414
511
|
}, {
|
|
415
512
|
name: "callback",
|
|
416
|
-
type: "(collections: any) => void"
|
|
513
|
+
type: "(collections: any) => void",
|
|
514
|
+
description: "Callback that receives the label collections"
|
|
417
515
|
}]
|
|
418
516
|
};
|
|
419
517
|
}
|
|
@@ -436,10 +534,35 @@ function requestTimelineUri() {
|
|
|
436
534
|
category: `Engine Request`,
|
|
437
535
|
args: [{
|
|
438
536
|
name: "uri",
|
|
439
|
-
type: "string"
|
|
537
|
+
type: "string",
|
|
538
|
+
description: "The timeline URI to load"
|
|
440
539
|
}, {
|
|
441
540
|
name: "position",
|
|
442
|
-
type: "number"
|
|
541
|
+
type: "number",
|
|
542
|
+
description: "Optional start position (defaults to 0)",
|
|
543
|
+
optional: true
|
|
544
|
+
}]
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
//#endregion
|
|
549
|
+
//#region src/eventbus/events/metadata/request-translation.ts
|
|
550
|
+
function requestTranslation() {
|
|
551
|
+
return {
|
|
552
|
+
description: `Request: request-translation
|
|
553
|
+
Answered through \`eventbus.request('request-translation', key, params)\` by
|
|
554
|
+
LocaleEventbusAdapter with the translation for the key in the active
|
|
555
|
+
locale, see \`ILocaleManager.t\`.`,
|
|
556
|
+
category: `Engine Request`,
|
|
557
|
+
args: [{
|
|
558
|
+
name: "key",
|
|
559
|
+
type: "string | string[]",
|
|
560
|
+
description: "Dot-notation translation key, or its segments"
|
|
561
|
+
}, {
|
|
562
|
+
name: "params",
|
|
563
|
+
type: "Record<string, unknown>",
|
|
564
|
+
description: "Optional values for the placeholders in the translation",
|
|
565
|
+
optional: true
|
|
443
566
|
}]
|
|
444
567
|
};
|
|
445
568
|
}
|
|
@@ -463,15 +586,20 @@ function requestVideoUrl() {
|
|
|
463
586
|
args: [
|
|
464
587
|
{
|
|
465
588
|
name: "videoUrlIndex",
|
|
466
|
-
type: "number"
|
|
589
|
+
type: "number",
|
|
590
|
+
description: "The index of the video URL"
|
|
467
591
|
},
|
|
468
592
|
{
|
|
469
593
|
name: "requestedVideoPosition",
|
|
470
|
-
type: "number"
|
|
594
|
+
type: "number",
|
|
595
|
+
description: "Optional video position to seek to",
|
|
596
|
+
optional: true
|
|
471
597
|
},
|
|
472
598
|
{
|
|
473
599
|
name: "fromRouting",
|
|
474
|
-
type: "boolean"
|
|
600
|
+
type: "boolean",
|
|
601
|
+
description: "Optional flag indicating if request came from routing",
|
|
602
|
+
optional: true
|
|
475
603
|
}
|
|
476
604
|
]
|
|
477
605
|
};
|
|
@@ -491,12 +619,13 @@ function timelineComplete() {
|
|
|
491
619
|
//#region src/eventbus/events/metadata/timeline-container-request.ts
|
|
492
620
|
function timelineContainerRequest() {
|
|
493
621
|
return {
|
|
494
|
-
description: `
|
|
622
|
+
description: `Request: timeline-container-request
|
|
623
|
+
Answered through \`eventbus.request('timeline-container-request')\` by
|
|
624
|
+
EngineEventbusAdapter with the DOM container of the current timeline. The
|
|
625
|
+
engine also answers the legacy form, a broadcast whose last argument is a
|
|
626
|
+
callback that receives the value.`,
|
|
495
627
|
category: `Timeline`,
|
|
496
|
-
args: [
|
|
497
|
-
name: "callback",
|
|
498
|
-
type: "(element: HTMLElement) => void"
|
|
499
|
-
}]
|
|
628
|
+
args: []
|
|
500
629
|
};
|
|
501
630
|
}
|
|
502
631
|
|
|
@@ -508,7 +637,8 @@ function timelineCurrentTimelineChange() {
|
|
|
508
637
|
category: `Timeline`,
|
|
509
638
|
args: [{
|
|
510
639
|
name: "timelineUri",
|
|
511
|
-
type: "string"
|
|
640
|
+
type: "string",
|
|
641
|
+
description: "The URI of the new current timeline"
|
|
512
642
|
}]
|
|
513
643
|
};
|
|
514
644
|
}
|
|
@@ -517,12 +647,13 @@ function timelineCurrentTimelineChange() {
|
|
|
517
647
|
//#region src/eventbus/events/metadata/timeline-duration-request.ts
|
|
518
648
|
function timelineDurationRequest() {
|
|
519
649
|
return {
|
|
520
|
-
description: `
|
|
650
|
+
description: `Request: timeline-duration-request
|
|
651
|
+
Answered through \`eventbus.request('timeline-duration-request')\` by
|
|
652
|
+
EngineEventbusAdapter with the duration of the current timeline. The engine
|
|
653
|
+
also answers the legacy form, a broadcast whose last argument is a
|
|
654
|
+
callback that receives the value.`,
|
|
521
655
|
category: `Timeline`,
|
|
522
|
-
args: [
|
|
523
|
-
name: "callback",
|
|
524
|
-
type: "(duration: number) => void"
|
|
525
|
-
}]
|
|
656
|
+
args: []
|
|
526
657
|
};
|
|
527
658
|
}
|
|
528
659
|
|
|
@@ -534,7 +665,8 @@ function timelineDuration() {
|
|
|
534
665
|
category: `Timeline`,
|
|
535
666
|
args: [{
|
|
536
667
|
name: "getDuration",
|
|
537
|
-
type: "(() => number) | undefined"
|
|
668
|
+
type: "(() => number) | undefined",
|
|
669
|
+
description: "Function that returns the timeline duration"
|
|
538
670
|
}]
|
|
539
671
|
};
|
|
540
672
|
}
|
|
@@ -603,12 +735,13 @@ function timelinePlay() {
|
|
|
603
735
|
//#region src/eventbus/events/metadata/timeline-request-current-timeline.ts
|
|
604
736
|
function timelineRequestCurrentTimeline() {
|
|
605
737
|
return {
|
|
606
|
-
description: `
|
|
738
|
+
description: `Request: timeline-request-current-timeline
|
|
739
|
+
Answered through \`eventbus.request('timeline-request-current-timeline')\` by
|
|
740
|
+
EngineEventbusAdapter with the URI of the current timeline. The engine also
|
|
741
|
+
answers the legacy form, a broadcast whose last argument is a callback that
|
|
742
|
+
receives the value.`,
|
|
607
743
|
category: `Engine Request`,
|
|
608
|
-
args: [
|
|
609
|
-
name: "callback",
|
|
610
|
-
type: "TResultCallback<string>"
|
|
611
|
-
}]
|
|
744
|
+
args: []
|
|
612
745
|
};
|
|
613
746
|
}
|
|
614
747
|
|
|
@@ -650,7 +783,8 @@ function timelineSeekRequest() {
|
|
|
650
783
|
category: `Timeline`,
|
|
651
784
|
args: [{
|
|
652
785
|
name: "position",
|
|
653
|
-
type: "number"
|
|
786
|
+
type: "number",
|
|
787
|
+
description: "The timeline position to seek to"
|
|
654
788
|
}]
|
|
655
789
|
};
|
|
656
790
|
}
|
|
@@ -664,15 +798,18 @@ function timelineSeek() {
|
|
|
664
798
|
args: [
|
|
665
799
|
{
|
|
666
800
|
name: "seekPosition",
|
|
667
|
-
type: "number"
|
|
801
|
+
type: "number",
|
|
802
|
+
description: "The position to seek to"
|
|
668
803
|
},
|
|
669
804
|
{
|
|
670
805
|
name: "currentPosition",
|
|
671
|
-
type: "number"
|
|
806
|
+
type: "number",
|
|
807
|
+
description: "The current position"
|
|
672
808
|
},
|
|
673
809
|
{
|
|
674
810
|
name: "duration",
|
|
675
|
-
type: "number"
|
|
811
|
+
type: "number",
|
|
812
|
+
description: "The timeline duration"
|
|
676
813
|
}
|
|
677
814
|
]
|
|
678
815
|
};
|
|
@@ -686,10 +823,12 @@ function timelineSeeked() {
|
|
|
686
823
|
category: `Timeline`,
|
|
687
824
|
args: [{
|
|
688
825
|
name: "position",
|
|
689
|
-
type: "number"
|
|
826
|
+
type: "number",
|
|
827
|
+
description: "The new timeline position after seeking"
|
|
690
828
|
}, {
|
|
691
829
|
name: "duration",
|
|
692
|
-
type: "number"
|
|
830
|
+
type: "number",
|
|
831
|
+
description: "The timeline duration"
|
|
693
832
|
}]
|
|
694
833
|
};
|
|
695
834
|
}
|
|
@@ -722,7 +861,8 @@ function timelineTime() {
|
|
|
722
861
|
category: `Timeline`,
|
|
723
862
|
args: [{
|
|
724
863
|
name: "position",
|
|
725
|
-
type: "number"
|
|
864
|
+
type: "number",
|
|
865
|
+
description: "The current timeline position"
|
|
726
866
|
}]
|
|
727
867
|
};
|
|
728
868
|
}
|
|
@@ -735,7 +875,8 @@ function videoComplete() {
|
|
|
735
875
|
category: `Navigation`,
|
|
736
876
|
args: [{
|
|
737
877
|
name: "index",
|
|
738
|
-
type: "number"
|
|
878
|
+
type: "number",
|
|
879
|
+
description: "The video URL index that completed"
|
|
739
880
|
}]
|
|
740
881
|
};
|
|
741
882
|
}
|
|
@@ -746,6 +887,8 @@ var metadata_exports$1 = /* @__PURE__ */ __exportAll({
|
|
|
746
887
|
beforeRequestTimelineUri: () => beforeRequestTimelineUri,
|
|
747
888
|
beforeRequestVideoUrl: () => beforeRequestVideoUrl,
|
|
748
889
|
domMutation: () => domMutation,
|
|
890
|
+
engineCommandError: () => engineCommandError,
|
|
891
|
+
engineError: () => engineError,
|
|
749
892
|
highlightNavigation: () => highlightNavigation,
|
|
750
893
|
languageChange: () => languageChange,
|
|
751
894
|
navigateToVideoUrl: () => navigateToVideoUrl,
|
|
@@ -762,6 +905,7 @@ var metadata_exports$1 = /* @__PURE__ */ __exportAll({
|
|
|
762
905
|
requestLabelCollections: () => requestLabelCollections,
|
|
763
906
|
requestTimelineCleanup: () => requestTimelineCleanup,
|
|
764
907
|
requestTimelineUri: () => requestTimelineUri,
|
|
908
|
+
requestTranslation: () => requestTranslation,
|
|
765
909
|
requestVideoCleanup: () => requestVideoCleanup,
|
|
766
910
|
requestVideoUrl: () => requestVideoUrl,
|
|
767
911
|
timelineComplete: () => timelineComplete,
|
|
@@ -807,7 +951,12 @@ function addClass() {
|
|
|
807
951
|
//#region src/operation/metadata/add-controller-to-element.ts
|
|
808
952
|
function addControllerToElement() {
|
|
809
953
|
return {
|
|
810
|
-
description: `This operation adds the specified controller instance to the given selected element
|
|
954
|
+
description: `This operation adds the specified controller instance to the given selected element.
|
|
955
|
+
|
|
956
|
+
The controller is registered on the element only once \`init\` and a synchronous \`attach\`
|
|
957
|
+
have succeeded. When \`attach\` returns a promise, the controller is registered before
|
|
958
|
+
that promise settles (so detaching the element can still reach it) and is removed from
|
|
959
|
+
the element again when the promise rejects.`,
|
|
811
960
|
category: `Controller`,
|
|
812
961
|
dependentProperties: ["selectedElement", "controllerInstance"]
|
|
813
962
|
};
|
|
@@ -818,7 +967,10 @@ function addControllerToElement() {
|
|
|
818
967
|
function addGlobalsToOperation() {
|
|
819
968
|
return {
|
|
820
969
|
description: `This operation adds the specified global property names to the current operation data.
|
|
821
|
-
It finally removes the \`globalProperties\` property from the current operation data
|
|
970
|
+
It finally removes the \`globalProperties\` property from the current operation data.
|
|
971
|
+
|
|
972
|
+
Plain data is copied, so changing it does not change the global store. jQuery objects, DOM
|
|
973
|
+
nodes, functions and class instances (such as controllers) are added by reference.`,
|
|
822
974
|
category: `Data`,
|
|
823
975
|
properties: { globalProperties: {
|
|
824
976
|
type: "ParameterType:array",
|
|
@@ -834,20 +986,35 @@ It finally removes the \`globalProperties\` property from the current operation
|
|
|
834
986
|
function animateWithClass() {
|
|
835
987
|
return {
|
|
836
988
|
description: `This operation adds the specified class name to the specified selected element and assumes that this
|
|
837
|
-
class triggers
|
|
838
|
-
before it resolves
|
|
989
|
+
class triggers an animation on the selected element. It then waits for this animation to complete
|
|
990
|
+
before it resolves.
|
|
991
|
+
|
|
992
|
+
The class must put the animation on the selected element itself: \`animationend\` events that bubble up
|
|
993
|
+
from descendants are ignored, and with several selected elements the operation waits for all of them.
|
|
994
|
+
Set \`includeDescendants\` to true for a class that only animates descendants; the operation then resolves
|
|
995
|
+
on the first \`animationend\` from the element or its subtree.
|
|
996
|
+
|
|
997
|
+
The operation resolves immediately when the selection is empty, or when the class gives none of the
|
|
998
|
+
selected elements a CSS animation (for example under \`prefers-reduced-motion: reduce\`). When an
|
|
999
|
+
\`animationend\` event never arrives, for example because the element was hidden or removed while
|
|
1000
|
+
animating, it resolves shortly after the longest computed animation should have ended. An infinite
|
|
1001
|
+
animation is waited for until it is ended by an \`animationend\` event.`,
|
|
839
1002
|
category: `Animation`,
|
|
840
1003
|
dependentProperties: ["selectedElement"],
|
|
841
1004
|
properties: {
|
|
842
1005
|
className: {
|
|
843
1006
|
type: "ParameterType:className",
|
|
844
|
-
required: true
|
|
1007
|
+
required: true,
|
|
1008
|
+
erased: true
|
|
1009
|
+
},
|
|
1010
|
+
removeClass: {
|
|
1011
|
+
type: "ParameterType:boolean",
|
|
1012
|
+
erased: true
|
|
845
1013
|
},
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
] }
|
|
1014
|
+
includeDescendants: {
|
|
1015
|
+
type: "ParameterType:boolean",
|
|
1016
|
+
erased: true
|
|
1017
|
+
}
|
|
851
1018
|
}
|
|
852
1019
|
};
|
|
853
1020
|
}
|
|
@@ -857,12 +1024,12 @@ before it resolves.`,
|
|
|
857
1024
|
function animate() {
|
|
858
1025
|
return {
|
|
859
1026
|
description: `This operation animates the specified selected element with the given [jQuery animation](https://api.jquery.com/animate/) properties, duration and easing.
|
|
860
|
-
It resolves after the animation completes.`,
|
|
1027
|
+
It resolves after the animation completes, or immediately when the selected element set is empty.`,
|
|
861
1028
|
category: `Animation`,
|
|
862
1029
|
dependentProperties: ["selectedElement"],
|
|
863
1030
|
properties: {
|
|
864
1031
|
animationEasing: {
|
|
865
|
-
type: "ParameterType:
|
|
1032
|
+
type: "ParameterType:string",
|
|
866
1033
|
erased: true
|
|
867
1034
|
},
|
|
868
1035
|
animationProperties: {
|
|
@@ -883,7 +1050,14 @@ It resolves after the animation completes.`,
|
|
|
883
1050
|
//#region src/operation/metadata/announce-to-screen-reader.ts
|
|
884
1051
|
function announceToScreenReader() {
|
|
885
1052
|
return {
|
|
886
|
-
description: `Announces a message to screen readers using an ARIA live region
|
|
1053
|
+
description: `Announces a message to screen readers using an ARIA live region.
|
|
1054
|
+
|
|
1055
|
+
The live region (\`#aria-live-region\`) is created empty on first use. The region is emptied
|
|
1056
|
+
and the message is written 100 milliseconds later, so that a new region
|
|
1057
|
+
and a message repeated verbatim are both announced. The message is removed again after 5 seconds.
|
|
1058
|
+
A newer announcement replaces a pending one.
|
|
1059
|
+
|
|
1060
|
+
The operation returns at once and does not wait for the message to be written.`,
|
|
887
1061
|
category: `Accessibility`,
|
|
888
1062
|
properties: {
|
|
889
1063
|
message: {
|
|
@@ -892,11 +1066,7 @@ function announceToScreenReader() {
|
|
|
892
1066
|
erased: true
|
|
893
1067
|
},
|
|
894
1068
|
priority: {
|
|
895
|
-
type: [
|
|
896
|
-
{ value: "undefined" },
|
|
897
|
-
{ value: "polite" },
|
|
898
|
-
{ value: "assertive" }
|
|
899
|
-
],
|
|
1069
|
+
type: [{ value: "polite" }, { value: "assertive" }],
|
|
900
1070
|
erased: true
|
|
901
1071
|
}
|
|
902
1072
|
}
|
|
@@ -908,7 +1078,9 @@ function announceToScreenReader() {
|
|
|
908
1078
|
function breakForEach() {
|
|
909
1079
|
return {
|
|
910
1080
|
description: `This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
911
|
-
operation. This operation immediately moves to the loop end index, effectively stopping the loop
|
|
1081
|
+
operation. This operation immediately moves to the loop end index, effectively stopping the loop.
|
|
1082
|
+
|
|
1083
|
+
It can be placed inside a \`when\`/\`otherwise\`/\`endWhen\` block within the loop, to break conditionally.`,
|
|
912
1084
|
category: `Control Flow`
|
|
913
1085
|
};
|
|
914
1086
|
}
|
|
@@ -943,7 +1115,11 @@ event arguments and optional event topic.`,
|
|
|
943
1115
|
//#region src/operation/metadata/calc.ts
|
|
944
1116
|
function calc() {
|
|
945
1117
|
return {
|
|
946
|
-
description: `This operation calculates the given left and right hand operands using the specified operator
|
|
1118
|
+
description: `This operation calculates the given left and right hand operands using the specified operator.
|
|
1119
|
+
|
|
1120
|
+
\`left\`, \`right\` and \`operator\` may be property chains (\`$operationdata.\`, \`$globaldata.\`,
|
|
1121
|
+
\`$scope.\`). Only these three inputs are resolved; the rest of the operation data is left as
|
|
1122
|
+
it is.`,
|
|
947
1123
|
category: `Utility`,
|
|
948
1124
|
properties: {
|
|
949
1125
|
left: {
|
|
@@ -969,7 +1145,7 @@ function calc() {
|
|
|
969
1145
|
erased: true
|
|
970
1146
|
}
|
|
971
1147
|
},
|
|
972
|
-
outputProperties: { calculationResult: { type:
|
|
1148
|
+
outputProperties: { calculationResult: { type: "ParameterType:number" } }
|
|
973
1149
|
};
|
|
974
1150
|
}
|
|
975
1151
|
|
|
@@ -977,7 +1153,10 @@ function calc() {
|
|
|
977
1153
|
//#region src/operation/metadata/clear-element.ts
|
|
978
1154
|
function clearElement() {
|
|
979
1155
|
return {
|
|
980
|
-
description: `This operation removes all of the children from the given selected element
|
|
1156
|
+
description: `This operation removes all of the children from the given selected element.
|
|
1157
|
+
|
|
1158
|
+
Controllers attached to the removed children or their descendants (by \`addControllerToElement\`)
|
|
1159
|
+
are detached first. Controllers on the selected element itself stay attached.`,
|
|
981
1160
|
category: `DOM`,
|
|
982
1161
|
dependentProperties: ["selectedElement"]
|
|
983
1162
|
};
|
|
@@ -991,7 +1170,8 @@ function clearOperationData() {
|
|
|
991
1170
|
Or, if the \`properties\` property is set only removes the properties defined by that list.`,
|
|
992
1171
|
category: `Data`,
|
|
993
1172
|
properties: { properties: {
|
|
994
|
-
type:
|
|
1173
|
+
type: "ParameterType:array",
|
|
1174
|
+
itemType: "ParameterType:string",
|
|
995
1175
|
erased: true
|
|
996
1176
|
} }
|
|
997
1177
|
};
|
|
@@ -1003,11 +1183,13 @@ function clearStorage() {
|
|
|
1003
1183
|
return {
|
|
1004
1184
|
description: `Clears data from browser storage (localStorage or sessionStorage).
|
|
1005
1185
|
|
|
1006
|
-
If \`key\` is provided, removes only that key. If \`key\` is omitted, clears all storage
|
|
1186
|
+
If \`key\` is provided, removes only that key. If \`key\` is omitted, clears all storage.
|
|
1187
|
+
A \`key\` that is present but empty, blank or not a string is rejected, so a value resolved
|
|
1188
|
+
from missing data never wipes the whole storage.`,
|
|
1007
1189
|
category: `Data`,
|
|
1008
1190
|
properties: {
|
|
1009
1191
|
key: {
|
|
1010
|
-
type:
|
|
1192
|
+
type: "ParameterType:string",
|
|
1011
1193
|
erased: true
|
|
1012
1194
|
},
|
|
1013
1195
|
storageType: {
|
|
@@ -1028,20 +1210,12 @@ comparison: -1 (before), 0 (equal), 1 (after)`,
|
|
|
1028
1210
|
category: `Date`,
|
|
1029
1211
|
properties: {
|
|
1030
1212
|
date1: {
|
|
1031
|
-
type:
|
|
1032
|
-
{ value: "string" },
|
|
1033
|
-
{ value: "number" },
|
|
1034
|
-
{ value: "Date" }
|
|
1035
|
-
],
|
|
1213
|
+
type: "ParameterType:string|ParameterType:number|ParameterType:Date",
|
|
1036
1214
|
required: true,
|
|
1037
1215
|
erased: true
|
|
1038
1216
|
},
|
|
1039
1217
|
date2: {
|
|
1040
|
-
type:
|
|
1041
|
-
{ value: "string" },
|
|
1042
|
-
{ value: "number" },
|
|
1043
|
-
{ value: "Date" }
|
|
1044
|
-
],
|
|
1218
|
+
type: "ParameterType:string|ParameterType:number|ParameterType:Date",
|
|
1045
1219
|
required: true,
|
|
1046
1220
|
erased: true
|
|
1047
1221
|
}
|
|
@@ -1069,7 +1243,7 @@ function concatenateStrings() {
|
|
|
1069
1243
|
erased: true
|
|
1070
1244
|
},
|
|
1071
1245
|
separator: {
|
|
1072
|
-
type:
|
|
1246
|
+
type: "ParameterType:string",
|
|
1073
1247
|
erased: true
|
|
1074
1248
|
}
|
|
1075
1249
|
},
|
|
@@ -1083,7 +1257,9 @@ function continueForEach() {
|
|
|
1083
1257
|
return {
|
|
1084
1258
|
description: `This operation should only be used within a loop, so between a {@link forEach} and {@link endForEach}
|
|
1085
1259
|
operation. This operation immediately moves to the next loop index, effectively canceling the rest
|
|
1086
|
-
of the operations in the current iteration
|
|
1260
|
+
of the operations in the current iteration.
|
|
1261
|
+
|
|
1262
|
+
It can be placed inside a \`when\`/\`otherwise\`/\`endWhen\` block within the loop, to continue conditionally.`,
|
|
1087
1263
|
category: `Control Flow`
|
|
1088
1264
|
};
|
|
1089
1265
|
}
|
|
@@ -1093,7 +1269,14 @@ of the operations in the current iteration.`,
|
|
|
1093
1269
|
function createElement() {
|
|
1094
1270
|
return {
|
|
1095
1271
|
description: `This operation creates the DOM element described by the given elementName and attributes and assigns
|
|
1096
|
-
the instance to the \`template\` property on the current operation data
|
|
1272
|
+
the instance to the \`template\` property on the current operation data.
|
|
1273
|
+
|
|
1274
|
+
The element is built with DOM APIs: attribute values are set with \`.attr()\` and \`text\` is set as
|
|
1275
|
+
text content, so neither is parsed as HTML.
|
|
1276
|
+
|
|
1277
|
+
Values may be resolved from user data, so nothing that runs script is created: \`script\`
|
|
1278
|
+
elements, event handler (\`on*\`) and \`srcdoc\` attributes, and \`javascript:\` or \`vbscript:\`
|
|
1279
|
+
URLs in URL attributes such as \`href\`, \`src\` and \`formaction\` are refused.`,
|
|
1097
1280
|
category: `DOM`,
|
|
1098
1281
|
properties: {
|
|
1099
1282
|
elementName: {
|
|
@@ -1102,7 +1285,7 @@ the instance to the \`template\` property on the current operation data.`,
|
|
|
1102
1285
|
erased: true
|
|
1103
1286
|
},
|
|
1104
1287
|
text: {
|
|
1105
|
-
type:
|
|
1288
|
+
type: "ParameterType:string",
|
|
1106
1289
|
erased: true
|
|
1107
1290
|
},
|
|
1108
1291
|
attributes: {
|
|
@@ -1119,7 +1302,19 @@ the instance to the \`template\` property on the current operation data.`,
|
|
|
1119
1302
|
function customFunction() {
|
|
1120
1303
|
return {
|
|
1121
1304
|
description: `This operation retrieves a custom function defined by the given system name
|
|
1122
|
-
and invokes it with the current operation data and eventbus
|
|
1305
|
+
and invokes it with the current operation data and eventbus.
|
|
1306
|
+
|
|
1307
|
+
The function is looked up with the \`request-function\` event, which the
|
|
1308
|
+
\`EngineFactory\` answers from its resource importer. Register the function
|
|
1309
|
+
with the \`EligiusResourceImporter\` constructor:
|
|
1310
|
+
\`new EligiusResourceImporter({functions: {myFunction}})\`.
|
|
1311
|
+
|
|
1312
|
+
The function is called with the current operation data as its argument, and with \`this\`
|
|
1313
|
+
set to a view of the operation scope. Reading a property from \`this\` returns it from the
|
|
1314
|
+
innermost scope that has it, so inside a \`when\` block in a loop \`this.currentItem\`,
|
|
1315
|
+
\`this.loopIndex\` and \`this.variables\` return the loop's and the action's values, the same
|
|
1316
|
+
as \`$scope.\` chains. Assigning to \`this\` (for example \`this.newIndex\`) writes to the scope the
|
|
1317
|
+
operation runs in.`,
|
|
1123
1318
|
category: `Utility`,
|
|
1124
1319
|
properties: { systemName: {
|
|
1125
1320
|
type: "ParameterType:systemName",
|
|
@@ -1135,14 +1330,14 @@ function endAction() {
|
|
|
1135
1330
|
return {
|
|
1136
1331
|
description: `This operation invokes the {@link EndableAction}.end method on the specified action instance.
|
|
1137
1332
|
|
|
1138
|
-
The action
|
|
1139
|
-
|
|
1140
|
-
|
|
1333
|
+
The action receives its own copy of the current operation data merged with the action
|
|
1334
|
+
operation data. Whatever the action's end operations add, change or remove in that copy stays
|
|
1335
|
+
with the action: once it has completed, this operation continues with the operation data it
|
|
1336
|
+
had before, without the \`actionOperationData\` property.`,
|
|
1141
1337
|
category: `Action`,
|
|
1142
1338
|
dependentProperties: ["actionInstance"],
|
|
1143
1339
|
properties: { actionOperationData: {
|
|
1144
1340
|
type: "ParameterType:object",
|
|
1145
|
-
required: true,
|
|
1146
1341
|
erased: true
|
|
1147
1342
|
} }
|
|
1148
1343
|
};
|
|
@@ -1170,7 +1365,9 @@ function endWhen() {
|
|
|
1170
1365
|
//#region src/operation/metadata/extend-controller.ts
|
|
1171
1366
|
function extendController() {
|
|
1172
1367
|
return {
|
|
1173
|
-
description: `Extends the current controller with given extension
|
|
1368
|
+
description: `Extends the current controller with given extension.
|
|
1369
|
+
|
|
1370
|
+
The extension's own properties are copied onto the controller instance.`,
|
|
1174
1371
|
category: `Controller`,
|
|
1175
1372
|
dependentProperties: ["controllerInstance"],
|
|
1176
1373
|
properties: { controllerExtension: {
|
|
@@ -1195,7 +1392,7 @@ Supports two filtering modes:
|
|
|
1195
1392
|
dependentProperties: ["arrayData"],
|
|
1196
1393
|
properties: {
|
|
1197
1394
|
filterProperty: {
|
|
1198
|
-
type:
|
|
1395
|
+
type: "ParameterType:string",
|
|
1199
1396
|
erased: true
|
|
1200
1397
|
},
|
|
1201
1398
|
filterValue: {
|
|
@@ -1203,7 +1400,7 @@ Supports two filtering modes:
|
|
|
1203
1400
|
erased: true
|
|
1204
1401
|
},
|
|
1205
1402
|
filterPredicate: {
|
|
1206
|
-
type:
|
|
1403
|
+
type: "ParameterType:function",
|
|
1207
1404
|
erased: true
|
|
1208
1405
|
}
|
|
1209
1406
|
},
|
|
@@ -1227,7 +1424,7 @@ Returns \`undefined\` for \`foundItem\` and \`-1\` for \`foundIndex\` if no matc
|
|
|
1227
1424
|
dependentProperties: ["arrayData"],
|
|
1228
1425
|
properties: {
|
|
1229
1426
|
findProperty: {
|
|
1230
|
-
type:
|
|
1427
|
+
type: "ParameterType:string",
|
|
1231
1428
|
erased: true
|
|
1232
1429
|
},
|
|
1233
1430
|
findValue: {
|
|
@@ -1235,7 +1432,7 @@ Returns \`undefined\` for \`foundItem\` and \`-1\` for \`foundIndex\` if no matc
|
|
|
1235
1432
|
erased: true
|
|
1236
1433
|
},
|
|
1237
1434
|
findPredicate: {
|
|
1238
|
-
type:
|
|
1435
|
+
type: "ParameterType:function",
|
|
1239
1436
|
erased: true
|
|
1240
1437
|
}
|
|
1241
1438
|
},
|
|
@@ -1259,7 +1456,11 @@ At the start of the loop, the associated {@link endForEach} operation is determi
|
|
|
1259
1456
|
the last iteration is completed the flow control is set to the index of that operation.
|
|
1260
1457
|
|
|
1261
1458
|
The {@link continueForEach |continue} and {@link breakForEach |break} operations can be used to control the
|
|
1262
|
-
loop iterations
|
|
1459
|
+
loop iterations.
|
|
1460
|
+
|
|
1461
|
+
The collection is resolved once, when the loop starts, and the loop iterates over a snapshot
|
|
1462
|
+
of it. Changing, replacing or removing the source collection inside the loop body does not
|
|
1463
|
+
change the items or the number of iterations of the running loop.`,
|
|
1263
1464
|
category: `Control Flow`,
|
|
1264
1465
|
properties: { collection: {
|
|
1265
1466
|
type: "ParameterType:array|ParameterType:string",
|
|
@@ -1272,7 +1473,15 @@ loop iterations.`,
|
|
|
1272
1473
|
//#region src/operation/metadata/format-date.ts
|
|
1273
1474
|
function formatDate() {
|
|
1274
1475
|
return {
|
|
1275
|
-
description: `Formats a date
|
|
1476
|
+
description: `Formats a date with a simple token pattern, in the local time zone.
|
|
1477
|
+
|
|
1478
|
+
Supported tokens (every occurrence is replaced, other characters are kept as is):
|
|
1479
|
+
- \`YYYY\`: four digit year
|
|
1480
|
+
- \`MM\`: month, 01-12
|
|
1481
|
+
- \`DD\`: day of the month, 01-31
|
|
1482
|
+
- \`HH\`: hours, 00-23
|
|
1483
|
+
- \`mm\`: minutes, 00-59
|
|
1484
|
+
- \`ss\`: seconds, 00-59`,
|
|
1276
1485
|
category: `Date`,
|
|
1277
1486
|
dependentProperties: ["date"],
|
|
1278
1487
|
properties: { format: {
|
|
@@ -1328,7 +1537,7 @@ function getAttributesFromElement() {
|
|
|
1328
1537
|
required: true,
|
|
1329
1538
|
erased: true
|
|
1330
1539
|
} },
|
|
1331
|
-
outputProperties: { attributeValues: { type:
|
|
1540
|
+
outputProperties: { attributeValues: { type: "ParameterType:object" } }
|
|
1332
1541
|
};
|
|
1333
1542
|
}
|
|
1334
1543
|
|
|
@@ -1356,16 +1565,7 @@ function getControllerInstance() {
|
|
|
1356
1565
|
It assigns this instance to the \`controllerInstance\` property on the current operation data`,
|
|
1357
1566
|
category: `Controller`,
|
|
1358
1567
|
properties: { systemName: {
|
|
1359
|
-
type:
|
|
1360
|
-
{ value: "DOMEventListenerController" },
|
|
1361
|
-
{ value: "LabelController" },
|
|
1362
|
-
{ value: "LottieController" },
|
|
1363
|
-
{ value: "MutationObserverController" },
|
|
1364
|
-
{ value: "NavigationController" },
|
|
1365
|
-
{ value: "ProgressbarController" },
|
|
1366
|
-
{ value: "RoutingController" },
|
|
1367
|
-
{ value: "SubtitlesController" }
|
|
1368
|
-
],
|
|
1568
|
+
type: "ParameterType:controllerName",
|
|
1369
1569
|
required: true,
|
|
1370
1570
|
erased: true
|
|
1371
1571
|
} },
|
|
@@ -1443,7 +1643,13 @@ select elements, textareas, and text inputs.`,
|
|
|
1443
1643
|
function getImport() {
|
|
1444
1644
|
return {
|
|
1445
1645
|
description: `This operation retrieves the import specified by the given \`systemName\` and
|
|
1446
|
-
assigns it to the \`importedInstance\` property on the current operaton date
|
|
1646
|
+
assigns it to the \`importedInstance\` property on the current operaton date.
|
|
1647
|
+
|
|
1648
|
+
The import is looked up with the \`request-function\` event, which the
|
|
1649
|
+
\`EngineFactory\` answers from its resource importer. Functions, templates
|
|
1650
|
+
and JSON registered with the \`EligiusResourceImporter\` constructor
|
|
1651
|
+
(\`new EligiusResourceImporter({json: {settings}})\`) can be imported this
|
|
1652
|
+
way, as can every built-in operation, controller and provider export.`,
|
|
1447
1653
|
category: `Utility`,
|
|
1448
1654
|
properties: { systemName: {
|
|
1449
1655
|
type: "ParameterType:systemName",
|
|
@@ -1462,10 +1668,10 @@ function getQueryParams() {
|
|
|
1462
1668
|
them on the returned operation data.`,
|
|
1463
1669
|
category: `Utility`,
|
|
1464
1670
|
properties: { defaultValues: {
|
|
1465
|
-
type:
|
|
1671
|
+
type: "ParameterType:object",
|
|
1466
1672
|
erased: true
|
|
1467
1673
|
} },
|
|
1468
|
-
outputProperties: { queryParams: { type:
|
|
1674
|
+
outputProperties: { queryParams: { type: "ParameterType:object" } }
|
|
1469
1675
|
};
|
|
1470
1676
|
}
|
|
1471
1677
|
|
|
@@ -1495,7 +1701,7 @@ Uses jQuery's \`.text()\` method which is XSS-safe and returns only the text con
|
|
|
1495
1701
|
without any HTML tags. Preserves whitespace and text from nested elements.`,
|
|
1496
1702
|
category: `Text`,
|
|
1497
1703
|
dependentProperties: ["selectedElement"],
|
|
1498
|
-
outputProperties: { textContent: { type:
|
|
1704
|
+
outputProperties: { textContent: { type: "ParameterType:string" } }
|
|
1499
1705
|
};
|
|
1500
1706
|
}
|
|
1501
1707
|
|
|
@@ -1512,7 +1718,7 @@ function httpDelete() {
|
|
|
1512
1718
|
erased: true
|
|
1513
1719
|
},
|
|
1514
1720
|
headers: {
|
|
1515
|
-
type:
|
|
1721
|
+
type: "ParameterType:object",
|
|
1516
1722
|
erased: true
|
|
1517
1723
|
}
|
|
1518
1724
|
},
|
|
@@ -1527,7 +1733,11 @@ function httpDelete() {
|
|
|
1527
1733
|
//#region src/operation/metadata/http-post.ts
|
|
1528
1734
|
function httpPost() {
|
|
1529
1735
|
return {
|
|
1530
|
-
description: `Performs an HTTP POST request to the specified URL
|
|
1736
|
+
description: `Performs an HTTP POST request to the specified URL.
|
|
1737
|
+
|
|
1738
|
+
The body is sent as JSON with \`Content-Type: application/json\`, unless the caller's headers set
|
|
1739
|
+
another content type (header names are case-insensitive). With a non-JSON content type, a string
|
|
1740
|
+
body is sent as is; other bodies are still JSON encoded.`,
|
|
1531
1741
|
category: `HTTP`,
|
|
1532
1742
|
properties: {
|
|
1533
1743
|
url: {
|
|
@@ -1540,7 +1750,7 @@ function httpPost() {
|
|
|
1540
1750
|
erased: true
|
|
1541
1751
|
},
|
|
1542
1752
|
headers: {
|
|
1543
|
-
type:
|
|
1753
|
+
type: "ParameterType:object",
|
|
1544
1754
|
erased: true
|
|
1545
1755
|
}
|
|
1546
1756
|
},
|
|
@@ -1555,7 +1765,11 @@ function httpPost() {
|
|
|
1555
1765
|
//#region src/operation/metadata/http-put.ts
|
|
1556
1766
|
function httpPut() {
|
|
1557
1767
|
return {
|
|
1558
|
-
description: `Performs an HTTP PUT request to the specified URL
|
|
1768
|
+
description: `Performs an HTTP PUT request to the specified URL.
|
|
1769
|
+
|
|
1770
|
+
The body is sent as JSON with \`Content-Type: application/json\`, unless the caller's headers set
|
|
1771
|
+
another content type (header names are case-insensitive). With a non-JSON content type, a string
|
|
1772
|
+
body is sent as is; other bodies are still JSON encoded.`,
|
|
1559
1773
|
category: `HTTP`,
|
|
1560
1774
|
properties: {
|
|
1561
1775
|
url: {
|
|
@@ -1568,7 +1782,7 @@ function httpPut() {
|
|
|
1568
1782
|
erased: true
|
|
1569
1783
|
},
|
|
1570
1784
|
headers: {
|
|
1571
|
-
type:
|
|
1785
|
+
type: "ParameterType:object",
|
|
1572
1786
|
erased: true
|
|
1573
1787
|
}
|
|
1574
1788
|
},
|
|
@@ -1584,7 +1798,22 @@ function httpPut() {
|
|
|
1584
1798
|
function invokeObjectMethod() {
|
|
1585
1799
|
return {
|
|
1586
1800
|
description: `This operation invokes the specified method on the given object with the given optional arguments
|
|
1587
|
-
and assigns the result to the \`methodResult\` operationdata property
|
|
1801
|
+
and assigns the result to the \`methodResult\` operationdata property. When the method returns a
|
|
1802
|
+
promise, the operation waits for it and assigns the resolved value.
|
|
1803
|
+
|
|
1804
|
+
The operation only calls application code: methods of controllers, of other instances of
|
|
1805
|
+
application classes, and of plain objects. It refuses, and throws for:
|
|
1806
|
+
- an \`instance\` that is a function, the global object (\`window\`), a document, a DOM node,
|
|
1807
|
+
a jQuery object, or any other built-in or host object (arrays, maps, promises, \`location\`,
|
|
1808
|
+
storage, ...);
|
|
1809
|
+
- a method that is a built-in (native) function, such as \`eval\`, \`Function\`, \`setTimeout\`,
|
|
1810
|
+
\`setInterval\`, \`document.write\`, \`Reflect.apply\` or a bound function, or a jQuery function;
|
|
1811
|
+
- the method names \`constructor\`, \`__proto__\` and \`prototype\`;
|
|
1812
|
+
- arguments that are such functions.
|
|
1813
|
+
|
|
1814
|
+
These checks stop configuration from reaching the platform's code-executing functions through
|
|
1815
|
+
this operation. They cannot vouch for what an application method does with its arguments, so
|
|
1816
|
+
only expose methods that are safe to call with configured data.`,
|
|
1588
1817
|
category: `Utility`,
|
|
1589
1818
|
dependentProperties: ["instance"],
|
|
1590
1819
|
properties: {
|
|
@@ -1594,7 +1823,7 @@ and assigns the result to the \`methodResult\` operationdata property.`,
|
|
|
1594
1823
|
erased: true
|
|
1595
1824
|
},
|
|
1596
1825
|
methodArguments: {
|
|
1597
|
-
type:
|
|
1826
|
+
type: "ParameterType:array",
|
|
1598
1827
|
erased: true
|
|
1599
1828
|
}
|
|
1600
1829
|
},
|
|
@@ -1621,7 +1850,8 @@ function loadFromStorage() {
|
|
|
1621
1850
|
return {
|
|
1622
1851
|
description: `Loads data from browser storage (localStorage or sessionStorage).
|
|
1623
1852
|
|
|
1624
|
-
Deserializes the stored JSON value. Returns \`null\` if key doesn't exist
|
|
1853
|
+
Deserializes the stored JSON value. Returns \`null\` if key doesn't exist.
|
|
1854
|
+
When \`storageType\` is omitted, localStorage is used.`,
|
|
1625
1855
|
category: `Data`,
|
|
1626
1856
|
properties: {
|
|
1627
1857
|
key: {
|
|
@@ -1646,8 +1876,11 @@ function loadJson() {
|
|
|
1646
1876
|
description: `This operation loads a JSON file from the specified url and assigns it to the json
|
|
1647
1877
|
property on the current operation data.
|
|
1648
1878
|
|
|
1649
|
-
If the cache property is set to true and a cached value already exists,
|
|
1650
|
-
instead of re-retrieving it from the url
|
|
1879
|
+
If the cache property is set to true and a cached value already exists, a copy of it is assigned
|
|
1880
|
+
instead of re-retrieving it from the url. Mutating the returned json never changes the cache.
|
|
1881
|
+
|
|
1882
|
+
The cache is shared by every engine. It is emptied when the last live engine created by
|
|
1883
|
+
\`EngineFactory\` is destroyed; call {@link clearJsonCache} to empty it earlier.`,
|
|
1651
1884
|
category: `Utility`,
|
|
1652
1885
|
properties: {
|
|
1653
1886
|
url: {
|
|
@@ -1656,11 +1889,7 @@ instead of re-retrieving it from the url.`,
|
|
|
1656
1889
|
erased: true
|
|
1657
1890
|
},
|
|
1658
1891
|
cache: {
|
|
1659
|
-
type:
|
|
1660
|
-
{ value: "undefined" },
|
|
1661
|
-
{ value: "false" },
|
|
1662
|
-
{ value: "true" }
|
|
1663
|
-
],
|
|
1892
|
+
type: "ParameterType:boolean",
|
|
1664
1893
|
erased: true
|
|
1665
1894
|
}
|
|
1666
1895
|
},
|
|
@@ -1681,7 +1910,7 @@ it will log the current operation data, global data and scope to the console`,
|
|
|
1681
1910
|
erased: true
|
|
1682
1911
|
},
|
|
1683
1912
|
logName: {
|
|
1684
|
-
type:
|
|
1913
|
+
type: "ParameterType:string",
|
|
1685
1914
|
erased: true
|
|
1686
1915
|
}
|
|
1687
1916
|
}
|
|
@@ -1703,7 +1932,7 @@ The mapFunction receives each item and optionally its index.`,
|
|
|
1703
1932
|
required: true,
|
|
1704
1933
|
erased: true
|
|
1705
1934
|
} },
|
|
1706
|
-
outputProperties: { mappedArray: { type:
|
|
1935
|
+
outputProperties: { mappedArray: { type: "ParameterType:array" } }
|
|
1707
1936
|
};
|
|
1708
1937
|
}
|
|
1709
1938
|
|
|
@@ -1711,7 +1940,11 @@ The mapFunction receives each item and optionally its index.`,
|
|
|
1711
1940
|
//#region src/operation/metadata/math.ts
|
|
1712
1941
|
function math() {
|
|
1713
1942
|
return {
|
|
1714
|
-
description: `This operation performs the given math function with the specified arguments
|
|
1943
|
+
description: `This operation performs the given math function with the specified arguments.
|
|
1944
|
+
|
|
1945
|
+
\`args\` and \`functionName\` may contain property chains (\`$operationdata.\`, \`$globaldata.\`,
|
|
1946
|
+
\`$scope.\`). Only these two inputs are resolved; the rest of the operation data is left as it
|
|
1947
|
+
is. Arguments that name a Math constant (such as \`'PI'\`) are replaced by its value.`,
|
|
1715
1948
|
category: `Utility`,
|
|
1716
1949
|
properties: {
|
|
1717
1950
|
args: {
|
|
@@ -1725,7 +1958,7 @@ function math() {
|
|
|
1725
1958
|
erased: true
|
|
1726
1959
|
}
|
|
1727
1960
|
},
|
|
1728
|
-
outputProperties: { mathResult: { type:
|
|
1961
|
+
outputProperties: { mathResult: { type: "ParameterType:number" } }
|
|
1729
1962
|
};
|
|
1730
1963
|
}
|
|
1731
1964
|
|
|
@@ -1773,7 +2006,10 @@ function removeControllerFromElement() {
|
|
|
1773
2006
|
//#region src/operation/metadata/remove-element.ts
|
|
1774
2007
|
function removeElement() {
|
|
1775
2008
|
return {
|
|
1776
|
-
description: `This operation removes the given selected element from the DOM
|
|
2009
|
+
description: `This operation removes the given selected element from the DOM.
|
|
2010
|
+
|
|
2011
|
+
Controllers attached to the element or its descendants (by \`addControllerToElement\`) are
|
|
2012
|
+
detached first, so their eventbus and window listeners do not outlive the element.`,
|
|
1777
2013
|
category: `DOM`,
|
|
1778
2014
|
dependentProperties: ["selectedElement"]
|
|
1779
2015
|
};
|
|
@@ -1800,7 +2036,12 @@ It will also remove the property \`propertyNames\` from the result.`,
|
|
|
1800
2036
|
function reparentElement() {
|
|
1801
2037
|
return {
|
|
1802
2038
|
description: `This operation moves the given selected element to the new parent that is defined
|
|
1803
|
-
by the specified \`newParentSelector
|
|
2039
|
+
by the specified \`newParentSelector\`. jQuery data, event handlers and attached controllers
|
|
2040
|
+
are preserved.
|
|
2041
|
+
|
|
2042
|
+
The selector is resolved inside the engine root (the root itself included), the same way
|
|
2043
|
+
\`selectElement\` resolves its selector, and must match exactly one element. HTML strings are
|
|
2044
|
+
not accepted.`,
|
|
1804
2045
|
category: `DOM`,
|
|
1805
2046
|
dependentProperties: ["selectedElement"],
|
|
1806
2047
|
properties: { newParentSelector: {
|
|
@@ -1815,12 +2056,18 @@ by the specified \`newParentSelector\`.`,
|
|
|
1815
2056
|
//#region src/operation/metadata/replace-string.ts
|
|
1816
2057
|
function replaceString() {
|
|
1817
2058
|
return {
|
|
1818
|
-
description: `Replaces occurrences of a pattern in a string (alias for replaceText for string context)
|
|
2059
|
+
description: `Replaces occurrences of a pattern in a string (alias for replaceText for string context).
|
|
2060
|
+
|
|
2061
|
+
Like replaceText, a string pattern replaces every occurrence and inserts the replacement
|
|
2062
|
+
literally (\`$&\`, \`$1\` and similar are not expanded). A RegExp pattern follows
|
|
2063
|
+
\`String.prototype.replace\`: only a global RegExp replaces every match, and \`$\` patterns
|
|
2064
|
+
in the replacement are expanded. Unlike replaceText, the result is written to \`result\`
|
|
2065
|
+
and \`textContent\` is left unchanged.`,
|
|
1819
2066
|
category: `String`,
|
|
1820
2067
|
dependentProperties: ["textContent"],
|
|
1821
2068
|
properties: {
|
|
1822
2069
|
pattern: {
|
|
1823
|
-
type:
|
|
2070
|
+
type: "ParameterType:string|ParameterType:RegExp",
|
|
1824
2071
|
required: true,
|
|
1825
2072
|
erased: true
|
|
1826
2073
|
},
|
|
@@ -1842,12 +2089,14 @@ function replaceText() {
|
|
|
1842
2089
|
|
|
1843
2090
|
Operates on textContent passed from previous operations (e.g., getTextContent).
|
|
1844
2091
|
Supports regex patterns with global flag for multiple replacements.
|
|
1845
|
-
Updates textContent with replaced text and sets replacementCount
|
|
2092
|
+
Updates textContent with replaced text and sets replacementCount.
|
|
2093
|
+
|
|
2094
|
+
A string pattern replaces every occurrence and inserts the replacement literally.`,
|
|
1846
2095
|
category: `Text`,
|
|
1847
2096
|
dependentProperties: ["textContent"],
|
|
1848
2097
|
properties: {
|
|
1849
2098
|
searchPattern: {
|
|
1850
|
-
type:
|
|
2099
|
+
type: "ParameterType:string|ParameterType:RegExp",
|
|
1851
2100
|
required: true,
|
|
1852
2101
|
erased: true
|
|
1853
2102
|
},
|
|
@@ -1883,7 +2132,9 @@ function saveToStorage() {
|
|
|
1883
2132
|
return {
|
|
1884
2133
|
description: `Saves data to browser storage (localStorage or sessionStorage).
|
|
1885
2134
|
|
|
1886
|
-
Serializes the value as JSON before storing. Supports any JSON-serializable data type
|
|
2135
|
+
Serializes the value as JSON before storing. Supports any JSON-serializable data type.
|
|
2136
|
+
Use \`null\` to store an empty value; \`undefined\` cannot be stored as JSON and is rejected.
|
|
2137
|
+
When \`storageType\` is omitted, localStorage is used.`,
|
|
1887
2138
|
category: `Data`,
|
|
1888
2139
|
properties: {
|
|
1889
2140
|
key: {
|
|
@@ -1916,16 +2167,11 @@ Uses the browser's \`scrollIntoView\` API with configurable behavior.`,
|
|
|
1916
2167
|
dependentProperties: ["selectedElement"],
|
|
1917
2168
|
properties: {
|
|
1918
2169
|
behavior: {
|
|
1919
|
-
type: [
|
|
1920
|
-
{ value: "undefined" },
|
|
1921
|
-
{ value: "auto" },
|
|
1922
|
-
{ value: "smooth" }
|
|
1923
|
-
],
|
|
2170
|
+
type: [{ value: "auto" }, { value: "smooth" }],
|
|
1924
2171
|
erased: true
|
|
1925
2172
|
},
|
|
1926
2173
|
block: {
|
|
1927
2174
|
type: [
|
|
1928
|
-
{ value: "undefined" },
|
|
1929
2175
|
{ value: "start" },
|
|
1930
2176
|
{ value: "center" },
|
|
1931
2177
|
{ value: "end" },
|
|
@@ -1935,7 +2181,6 @@ Uses the browser's \`scrollIntoView\` API with configurable behavior.`,
|
|
|
1935
2181
|
},
|
|
1936
2182
|
inline: {
|
|
1937
2183
|
type: [
|
|
1938
|
-
{ value: "undefined" },
|
|
1939
2184
|
{ value: "start" },
|
|
1940
2185
|
{ value: "center" },
|
|
1941
2186
|
{ value: "end" },
|
|
@@ -1967,11 +2212,7 @@ Uses the browser's \`window.scrollTo\` API with configurable behavior.`,
|
|
|
1967
2212
|
erased: true
|
|
1968
2213
|
},
|
|
1969
2214
|
behavior: {
|
|
1970
|
-
type: [
|
|
1971
|
-
{ value: "undefined" },
|
|
1972
|
-
{ value: "auto" },
|
|
1973
|
-
{ value: "smooth" }
|
|
1974
|
-
],
|
|
2215
|
+
type: [{ value: "auto" }, { value: "smooth" }],
|
|
1975
2216
|
erased: true
|
|
1976
2217
|
}
|
|
1977
2218
|
}
|
|
@@ -1995,11 +2236,7 @@ then the element will be looked for only in the descendant elements of this DOM
|
|
|
1995
2236
|
erased: true
|
|
1996
2237
|
},
|
|
1997
2238
|
useSelectedElementAsRoot: {
|
|
1998
|
-
type:
|
|
1999
|
-
{ value: "undefined" },
|
|
2000
|
-
{ value: "false" },
|
|
2001
|
-
{ value: "true" }
|
|
2002
|
-
],
|
|
2239
|
+
type: "ParameterType:boolean",
|
|
2003
2240
|
erased: true
|
|
2004
2241
|
}
|
|
2005
2242
|
},
|
|
@@ -2025,7 +2262,10 @@ function setData() {
|
|
|
2025
2262
|
//#region src/operation/metadata/set-element-attributes.ts
|
|
2026
2263
|
function setElementAttributes() {
|
|
2027
2264
|
return {
|
|
2028
|
-
description: `This operation sets the specified set of attributes on the given selected element
|
|
2265
|
+
description: `This operation sets the specified set of attributes on the given selected element.
|
|
2266
|
+
|
|
2267
|
+
Event handler (\`on*\`) and \`srcdoc\` attributes, and \`javascript:\` or \`vbscript:\` URLs in URL
|
|
2268
|
+
attributes such as \`href\`, \`src\` and \`formaction\`, are refused, the same as in \`createElement\`.`,
|
|
2029
2269
|
category: `DOM`,
|
|
2030
2270
|
dependentProperties: ["selectedElement"],
|
|
2031
2271
|
properties: { attributes: {
|
|
@@ -2046,19 +2286,20 @@ to the given selected element.
|
|
|
2046
2286
|
When the \`insertionType\` is set to \`overwrite\` the contents of the selected element are replaced
|
|
2047
2287
|
by the given template.
|
|
2048
2288
|
When set to \`append\` the new content will be inserted after the current content.
|
|
2049
|
-
When set to \`prepend\` the new content will be inserted before the current content
|
|
2289
|
+
When set to \`prepend\` the new content will be inserted before the current content.
|
|
2290
|
+
|
|
2291
|
+
With \`overwrite\`, controllers attached to the replaced content (by \`addControllerToElement\`) are
|
|
2292
|
+
detached first. Controllers on the selected element itself stay attached.
|
|
2293
|
+
|
|
2294
|
+
The template is inserted as HTML: a string template is parsed by jQuery, which also runs the
|
|
2295
|
+
scripts and inline event handlers it contains. Only use string templates from the configuration
|
|
2296
|
+
or the resource importer; build content from user data with \`createElement\`, whose \`text\` is
|
|
2297
|
+
never parsed as HTML.`,
|
|
2050
2298
|
category: `DOM`,
|
|
2051
2299
|
dependentProperties: ["selectedElement"],
|
|
2052
2300
|
properties: {
|
|
2053
2301
|
template: {
|
|
2054
|
-
type:
|
|
2055
|
-
{ value: "string" },
|
|
2056
|
-
{ value: "Element" },
|
|
2057
|
-
{ value: "Text" },
|
|
2058
|
-
{ value: "Comment" },
|
|
2059
|
-
{ value: "Document" },
|
|
2060
|
-
{ value: "DocumentFragment" }
|
|
2061
|
-
],
|
|
2302
|
+
type: "ParameterType:string|ParameterType:Element|ParameterType:Text|ParameterType:Comment|ParameterType:Document|ParameterType:DocumentFragment",
|
|
2062
2303
|
erased: true
|
|
2063
2304
|
},
|
|
2064
2305
|
insertionType: {
|
|
@@ -2097,12 +2338,7 @@ Handles different input types appropriately:
|
|
|
2097
2338
|
category: `Form`,
|
|
2098
2339
|
dependentProperties: ["selectedElement"],
|
|
2099
2340
|
properties: { value: {
|
|
2100
|
-
type:
|
|
2101
|
-
{ value: "string" },
|
|
2102
|
-
{ value: "number" },
|
|
2103
|
-
{ value: "false" },
|
|
2104
|
-
{ value: "true" }
|
|
2105
|
-
],
|
|
2341
|
+
type: "ParameterType:string|ParameterType:number|ParameterType:boolean",
|
|
2106
2342
|
required: true,
|
|
2107
2343
|
erased: true
|
|
2108
2344
|
} }
|
|
@@ -2113,7 +2349,11 @@ Handles different input types appropriately:
|
|
|
2113
2349
|
//#region src/operation/metadata/set-global-data.ts
|
|
2114
2350
|
function setGlobalData() {
|
|
2115
2351
|
return {
|
|
2116
|
-
description: `This operation copies the specified properties from the operationData to the global data
|
|
2352
|
+
description: `This operation copies the specified properties from the operationData to the global data.
|
|
2353
|
+
|
|
2354
|
+
Plain data is stored as a deep copy, so changing the operation data afterwards does not change
|
|
2355
|
+
the global data. jQuery objects, DOM nodes, functions and class instances (such as controllers)
|
|
2356
|
+
are stored by reference.`,
|
|
2117
2357
|
category: `Data`,
|
|
2118
2358
|
properties: { propertyNames: {
|
|
2119
2359
|
type: "ParameterType:array",
|
|
@@ -2133,11 +2373,7 @@ When override is set to true the properties replace the current operation data e
|
|
|
2133
2373
|
category: `Data`,
|
|
2134
2374
|
properties: {
|
|
2135
2375
|
override: {
|
|
2136
|
-
type:
|
|
2137
|
-
{ value: "undefined" },
|
|
2138
|
-
{ value: "false" },
|
|
2139
|
-
{ value: "true" }
|
|
2140
|
-
],
|
|
2376
|
+
type: "ParameterType:boolean",
|
|
2141
2377
|
erased: true
|
|
2142
2378
|
},
|
|
2143
2379
|
properties: {
|
|
@@ -2169,7 +2405,12 @@ given selected element.`,
|
|
|
2169
2405
|
//#region src/operation/metadata/set-variable.ts
|
|
2170
2406
|
function setVariable() {
|
|
2171
2407
|
return {
|
|
2172
|
-
description: `This operation sets a variable with the specified name on the scope with the specified value
|
|
2408
|
+
description: `This operation sets a variable with the specified name on the scope with the specified value.
|
|
2409
|
+
|
|
2410
|
+
Variables belong to the action: a variable set inside a \`when\` or \`forEach\` block is the
|
|
2411
|
+
same variable outside it, so it keeps its value after \`endWhen\` or \`endForEach\`, and
|
|
2412
|
+
variables set before the block can be read and changed inside it. Read variables with
|
|
2413
|
+
\`$scope.variables.<name>\`.`,
|
|
2173
2414
|
category: `Data`,
|
|
2174
2415
|
properties: {
|
|
2175
2416
|
name: {
|
|
@@ -2201,19 +2442,15 @@ Supports three sorting modes:
|
|
|
2201
2442
|
dependentProperties: ["arrayData"],
|
|
2202
2443
|
properties: {
|
|
2203
2444
|
sortProperty: {
|
|
2204
|
-
type:
|
|
2445
|
+
type: "ParameterType:string",
|
|
2205
2446
|
erased: true
|
|
2206
2447
|
},
|
|
2207
2448
|
sortOrder: {
|
|
2208
|
-
type: [
|
|
2209
|
-
{ value: "undefined" },
|
|
2210
|
-
{ value: "asc" },
|
|
2211
|
-
{ value: "desc" }
|
|
2212
|
-
],
|
|
2449
|
+
type: [{ value: "asc" }, { value: "desc" }],
|
|
2213
2450
|
erased: true
|
|
2214
2451
|
},
|
|
2215
2452
|
sortComparator: {
|
|
2216
|
-
type:
|
|
2453
|
+
type: "ParameterType:function",
|
|
2217
2454
|
erased: true
|
|
2218
2455
|
}
|
|
2219
2456
|
},
|
|
@@ -2230,12 +2467,12 @@ function splitString() {
|
|
|
2230
2467
|
dependentProperties: ["textContent"],
|
|
2231
2468
|
properties: {
|
|
2232
2469
|
delimiter: {
|
|
2233
|
-
type:
|
|
2470
|
+
type: "ParameterType:string|ParameterType:RegExp",
|
|
2234
2471
|
required: true,
|
|
2235
2472
|
erased: true
|
|
2236
2473
|
},
|
|
2237
2474
|
limit: {
|
|
2238
|
-
type:
|
|
2475
|
+
type: "ParameterType:number",
|
|
2239
2476
|
erased: true
|
|
2240
2477
|
}
|
|
2241
2478
|
},
|
|
@@ -2252,9 +2489,10 @@ function startAction() {
|
|
|
2252
2489
|
return {
|
|
2253
2490
|
description: `This operation starts the specified action instance using the given action operation data.
|
|
2254
2491
|
|
|
2255
|
-
The action
|
|
2256
|
-
|
|
2257
|
-
|
|
2492
|
+
The action receives its own copy of the current operation data merged with the action
|
|
2493
|
+
operation data. Whatever the action's operations add, change or remove in that copy stays
|
|
2494
|
+
with the action: once it has completed, this operation continues with the operation data it
|
|
2495
|
+
had before, plus \`actionInstance\`, without the \`actionOperationData\` property.`,
|
|
2258
2496
|
category: `Action`,
|
|
2259
2497
|
dependentProperties: ["actionInstance"],
|
|
2260
2498
|
properties: { actionOperationData: {
|
|
@@ -2278,7 +2516,7 @@ function substringText() {
|
|
|
2278
2516
|
erased: true
|
|
2279
2517
|
},
|
|
2280
2518
|
end: {
|
|
2281
|
-
type:
|
|
2519
|
+
type: "ParameterType:number",
|
|
2282
2520
|
erased: true
|
|
2283
2521
|
}
|
|
2284
2522
|
},
|
|
@@ -2342,20 +2580,21 @@ function validateForm() {
|
|
|
2342
2580
|
description: `Validates form fields against HTML5 validation and custom rules.
|
|
2343
2581
|
|
|
2344
2582
|
Uses HTML5 validation API (checkValidity()) for native validation, and supports
|
|
2345
|
-
custom validation rules for: required, minLength, maxLength, pattern (regex), and email format
|
|
2583
|
+
custom validation rules for: required, minLength, maxLength, pattern (regex), and email format.
|
|
2584
|
+
|
|
2585
|
+
Checkboxes and radio buttons are validated once per name: \`required\` passes when at least one
|
|
2586
|
+
of them is checked, and the string rules do not apply to them. For a \`<select multiple>\`,
|
|
2587
|
+
\`required\`, \`minLength\` and \`maxLength\` count the selected options, and \`pattern\` and \`email\`
|
|
2588
|
+
apply to each selected value.`,
|
|
2346
2589
|
category: `Form`,
|
|
2347
2590
|
dependentProperties: ["selectedElement"],
|
|
2348
2591
|
properties: { validationRules: {
|
|
2349
|
-
type:
|
|
2592
|
+
type: "ParameterType:object",
|
|
2350
2593
|
erased: true
|
|
2351
2594
|
} },
|
|
2352
2595
|
outputProperties: {
|
|
2353
2596
|
validationErrors: { type: "ParameterType:object" },
|
|
2354
|
-
isValid: { type:
|
|
2355
|
-
{ value: "undefined" },
|
|
2356
|
-
{ value: "false" },
|
|
2357
|
-
{ value: "true" }
|
|
2358
|
-
] }
|
|
2597
|
+
isValid: { type: "ParameterType:boolean" }
|
|
2359
2598
|
}
|
|
2360
2599
|
};
|
|
2361
2600
|
}
|
|
@@ -2383,14 +2622,39 @@ until an {@link endWhen} or {@link otherwise} operation is encountered.
|
|
|
2383
2622
|
|
|
2384
2623
|
Practically, this means an \`if\` or \`if\`/\`else\` statement control flow implementation in a list of operations.
|
|
2385
2624
|
|
|
2386
|
-
The expression is passed in as a formatted string.
|
|
2387
|
-
The left and right values of the expression can be defined like this:
|
|
2625
|
+
The expression is passed in as a formatted string. An operand can be one of:
|
|
2388
2626
|
|
|
2389
|
-
'constant': for a constant string
|
|
2390
|
-
100: for a constant number
|
|
2627
|
+
'constant': for a constant string (operators and parentheses inside the quotes are text)
|
|
2628
|
+
100: for a constant number (the whole operand must be numeric, \`10px\` is invalid)
|
|
2629
|
+
true, false, null: for a boolean or null constant
|
|
2391
2630
|
$operationData.foo: for an operation data value
|
|
2392
2631
|
$globaldata.foo: for a global data value
|
|
2393
|
-
$scope.loopIndex: for a scope value
|
|
2632
|
+
$scope.loopIndex: for a scope value
|
|
2633
|
+
$scope.variables.foo: for a variable set with \`setVariable\`
|
|
2634
|
+
|
|
2635
|
+
Any other operand is an error, so a misspelled chain prefix fails instead of being compared
|
|
2636
|
+
as a string.
|
|
2637
|
+
|
|
2638
|
+
Operands are combined with these operators, from highest to lowest precedence:
|
|
2639
|
+
|
|
2640
|
+
\`!\`: negation
|
|
2641
|
+
\`==\`, \`!=\`, \`>\`, \`<\`, \`>=\`, \`<=\`: comparison (\`==\` and \`!=\` compare strictly, without type
|
|
2642
|
+
conversion; comparisons do not chain, so write \`0<$scope.loopIndex && $scope.loopIndex<5\`)
|
|
2643
|
+
\`&&\`: and
|
|
2644
|
+
\`||\`: or
|
|
2645
|
+
|
|
2646
|
+
Parentheses group. A bare operand is true when its value is truthy, so \`'false'\` and \`'0'\`
|
|
2647
|
+
are true and \`0\`, \`''\`, \`null\` and a missing value are false. \`!\`, \`&&\` and \`||\` always
|
|
2648
|
+
produce \`true\` or \`false\`. \`!\` binds tighter than a comparison: \`!$operationdata.a==1\`
|
|
2649
|
+
compares \`!$operationdata.a\` with 1, write \`!($operationdata.a==1)\` to negate the comparison.
|
|
2650
|
+
\`&&\` and \`||\` short-circuit: when the left side decides the result, the right side is not
|
|
2651
|
+
resolved, so \`$operationdata.user && $operationdata.user.name=='John'\` does not fail when
|
|
2652
|
+
\`user\` is missing.
|
|
2653
|
+
|
|
2654
|
+
Arithmetic (\`+\`, \`-\`, \`*\`, \`/\`) is not supported: \`-\` is a valid character in a property
|
|
2655
|
+
chain, so \`$operationdata.a-1\` would be ambiguous. Nothing in the expression is executed as
|
|
2656
|
+
code, and property chains are resolved with the usual prototype-pollution and global-object
|
|
2657
|
+
guards.`,
|
|
2394
2658
|
category: `Control Flow`,
|
|
2395
2659
|
properties: { expression: {
|
|
2396
2660
|
type: "ParameterType:expression",
|
|
@@ -2485,5 +2749,55 @@ var metadata_exports$2 = /* @__PURE__ */ __exportAll({
|
|
|
2485
2749
|
});
|
|
2486
2750
|
|
|
2487
2751
|
//#endregion
|
|
2488
|
-
|
|
2752
|
+
//#region src/operation/metadata/parameter-types.ts
|
|
2753
|
+
/**
|
|
2754
|
+
* Every parameter type the operation and controller metadata may use. The
|
|
2755
|
+
* metadata generator fails on a type name that is not in this list.
|
|
2756
|
+
*
|
|
2757
|
+
* `RegExp` and the DOM node types (`Element`, `Text`, `Comment`, `Document`,
|
|
2758
|
+
* `DocumentFragment`) are the names the generator emits for `string | RegExp`
|
|
2759
|
+
* and `string | JQuery.Node` properties.
|
|
2760
|
+
*
|
|
2761
|
+
* Kept out of `types.ts`: the generated metadata index re-exports `types.ts`
|
|
2762
|
+
* into the `metadata` namespace, whose consumers expect only metadata
|
|
2763
|
+
* functions there.
|
|
2764
|
+
*/
|
|
2765
|
+
const PARAMETER_TYPES = [
|
|
2766
|
+
"ParameterType:htmlElementName",
|
|
2767
|
+
"ParameterType:className",
|
|
2768
|
+
"ParameterType:selector",
|
|
2769
|
+
"ParameterType:string",
|
|
2770
|
+
"ParameterType:number",
|
|
2771
|
+
"ParameterType:object",
|
|
2772
|
+
"ParameterType:boolean",
|
|
2773
|
+
"ParameterType:array",
|
|
2774
|
+
"ParameterType:eventTopic",
|
|
2775
|
+
"ParameterType:eventName",
|
|
2776
|
+
"ParameterType:systemName",
|
|
2777
|
+
"ParameterType:actionName",
|
|
2778
|
+
"ParameterType:controllerName",
|
|
2779
|
+
"ParameterType:dimensions",
|
|
2780
|
+
"ParameterType:dimensionsModifier",
|
|
2781
|
+
"ParameterType:url",
|
|
2782
|
+
"ParameterType:htmlContent",
|
|
2783
|
+
"ParameterType:labelId",
|
|
2784
|
+
"ParameterType:ImagePath",
|
|
2785
|
+
"ParameterType:QuadrantPosition",
|
|
2786
|
+
"ParameterType:jQuery",
|
|
2787
|
+
"ParameterType:expression",
|
|
2788
|
+
"ParameterType:mathfunction",
|
|
2789
|
+
"ParameterType:cssProperties",
|
|
2790
|
+
"ParameterType:function",
|
|
2791
|
+
"ParameterType:Date",
|
|
2792
|
+
"ParameterType:languagecode",
|
|
2793
|
+
"ParameterType:RegExp",
|
|
2794
|
+
"ParameterType:Element",
|
|
2795
|
+
"ParameterType:Text",
|
|
2796
|
+
"ParameterType:Comment",
|
|
2797
|
+
"ParameterType:Document",
|
|
2798
|
+
"ParameterType:DocumentFragment"
|
|
2799
|
+
];
|
|
2800
|
+
|
|
2801
|
+
//#endregion
|
|
2802
|
+
export { PARAMETER_TYPES, metadata_exports as ctrlmetadata, metadata_exports$1 as eventmetadata, metadata_exports$2 as metadata };
|
|
2489
2803
|
//# sourceMappingURL=metadata.mjs.map
|