@appsemble/cli 0.20.28 → 0.20.30
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 +4 -4
- package/index.js +0 -0
- package/package.json +5 -5
- package/__fixtures__/getBlockConfigFromTypeScript/comments/index.ts +0 -40
- package/__fixtures__/getBlockConfigFromTypeScript/comments/tsconfig.json +0 -7
- package/__fixtures__/getBlockConfigFromTypeScript/duplicateActions/index.ts +0 -34
- package/__fixtures__/getBlockConfigFromTypeScript/duplicateActions/tsconfig.json +0 -7
- package/__fixtures__/getBlockConfigFromTypeScript/duplicateEventEmitters/index.ts +0 -34
- package/__fixtures__/getBlockConfigFromTypeScript/duplicateEventEmitters/tsconfig.json +0 -7
- package/__fixtures__/getBlockConfigFromTypeScript/duplicateEventListeners/index.ts +0 -34
- package/__fixtures__/getBlockConfigFromTypeScript/duplicateEventListeners/tsconfig.json +0 -7
- package/__fixtures__/getBlockConfigFromTypeScript/duplicateParameters/index.ts +0 -34
- package/__fixtures__/getBlockConfigFromTypeScript/duplicateParameters/tsconfig.json +0 -7
- package/__fixtures__/getBlockConfigFromTypeScript/fontawesomeParameters/index.ts +0 -11
- package/__fixtures__/getBlockConfigFromTypeScript/fontawesomeParameters/tsconfig.json +0 -7
- package/__fixtures__/getBlockConfigFromTypeScript/tsError/index.ts +0 -4
- package/__fixtures__/getBlockConfigFromTypeScript/tsError/tsconfig.json +0 -8
- package/__fixtures__/getBlockConfigFromTypeScript/valid/index.ts +0 -28
- package/__fixtures__/getBlockConfigFromTypeScript/valid/tsconfig.json +0 -7
- package/__fixtures__/makePayload/with-icon/icon.svg +0 -2
- package/assets/appsemblerc.schema.json +0 -150
- package/changed/added/.gitkeep +0 -0
- package/changed/changed/.gitkeep +0 -0
- package/changed/deprecated/.gitkeep +0 -0
- package/changed/fixed/.gitkeep +0 -0
- package/changed/removed/.gitkeep +0 -0
- package/changed/security/.gitkeep +0 -0
- package/commands/app/create.js.map +0 -1
- package/commands/app/create.ts +0 -104
- package/commands/app/extract-messages.js.map +0 -1
- package/commands/app/extract-messages.ts +0 -56
- package/commands/app/index.js.map +0 -1
- package/commands/app/index.ts +0 -18
- package/commands/app/update.js.map +0 -1
- package/commands/app/update.ts +0 -111
- package/commands/asset/create.js.map +0 -1
- package/commands/asset/create.ts +0 -84
- package/commands/asset/index.js.map +0 -1
- package/commands/asset/index.ts +0 -12
- package/commands/block/build.js.map +0 -1
- package/commands/block/build.ts +0 -32
- package/commands/block/extract-messages.js.map +0 -1
- package/commands/block/extract-messages.ts +0 -41
- package/commands/block/index.js.map +0 -1
- package/commands/block/index.ts +0 -18
- package/commands/block/publish.js.map +0 -1
- package/commands/block/publish.ts +0 -58
- package/commands/cleanupResources.js.map +0 -1
- package/commands/cleanupResources.ts +0 -45
- package/commands/config/get.js.map +0 -1
- package/commands/config/get.ts +0 -27
- package/commands/config/index.js.map +0 -1
- package/commands/config/index.ts +0 -16
- package/commands/config/set.js.map +0 -1
- package/commands/config/set.ts +0 -45
- package/commands/login.js.map +0 -1
- package/commands/login.ts +0 -5
- package/commands/logout.js.map +0 -1
- package/commands/logout.ts +0 -5
- package/commands/migrate.js.map +0 -1
- package/commands/migrate.ts +0 -50
- package/commands/organization/create.js.map +0 -1
- package/commands/organization/create.ts +0 -65
- package/commands/organization/index.js.map +0 -1
- package/commands/organization/index.ts +0 -16
- package/commands/organization/update.js.map +0 -1
- package/commands/organization/update.ts +0 -65
- package/commands/resource/create.js.map +0 -1
- package/commands/resource/create.ts +0 -78
- package/commands/resource/index.js.map +0 -1
- package/commands/resource/index.ts +0 -16
- package/commands/resource/update.js.map +0 -1
- package/commands/resource/update.ts +0 -77
- package/commands/runCronJobs.js.map +0 -1
- package/commands/runCronJobs.ts +0 -45
- package/commands/start.js.map +0 -1
- package/commands/start.ts +0 -140
- package/commands/team/create.js.map +0 -1
- package/commands/team/create.ts +0 -60
- package/commands/team/delete.js.map +0 -1
- package/commands/team/delete.ts +0 -54
- package/commands/team/index.js.map +0 -1
- package/commands/team/index.ts +0 -20
- package/commands/team/member/delete.js.map +0 -1
- package/commands/team/member/delete.ts +0 -61
- package/commands/team/member/index.js.map +0 -1
- package/commands/team/member/index.ts +0 -18
- package/commands/team/member/invite.js.map +0 -1
- package/commands/team/member/invite.ts +0 -61
- package/commands/team/member/update.js.map +0 -1
- package/commands/team/member/update.ts +0 -70
- package/commands/team/update.js.map +0 -1
- package/commands/team/update.ts +0 -60
- package/index.js.map +0 -1
- package/index.ts +0 -74
- package/jest.config.js +0 -3
- package/jest.setup.js.map +0 -1
- package/jest.setup.ts +0 -4
- package/lib/__snapshots__/getBlockConfigFromTypeScript.test.ts.snap +0 -4241
- package/lib/app.js.map +0 -1
- package/lib/app.ts +0 -795
- package/lib/asset.js.map +0 -1
- package/lib/asset.ts +0 -43
- package/lib/authentication.js.map +0 -1
- package/lib/authentication.ts +0 -194
- package/lib/block.js.map +0 -1
- package/lib/block.test.js.map +0 -1
- package/lib/block.test.ts +0 -103
- package/lib/block.ts +0 -384
- package/lib/coercers.js.map +0 -1
- package/lib/coercers.test.js.map +0 -1
- package/lib/coercers.test.ts +0 -27
- package/lib/coercers.ts +0 -58
- package/lib/getBlockConfigFromTypeScript.js.map +0 -1
- package/lib/getBlockConfigFromTypeScript.test.js.map +0 -1
- package/lib/getBlockConfigFromTypeScript.test.ts +0 -282
- package/lib/getBlockConfigFromTypeScript.ts +0 -356
- package/lib/initAxios.js.map +0 -1
- package/lib/initAxios.ts +0 -16
- package/lib/loadWebpackConfig.js.map +0 -1
- package/lib/loadWebpackConfig.ts +0 -52
- package/lib/organization.js.map +0 -1
- package/lib/organization.ts +0 -105
- package/lib/output.js.map +0 -1
- package/lib/output.ts +0 -19
- package/lib/processCss.js.map +0 -1
- package/lib/processCss.ts +0 -24
- package/lib/resource.js.map +0 -1
- package/lib/resource.ts +0 -128
- package/lib/serverImport.js.map +0 -1
- package/lib/serverImport.ts +0 -42
- package/lib/team.js.map +0 -1
- package/lib/team.ts +0 -152
- package/tsconfig.json +0 -9
- package/types.js.map +0 -1
- package/types.ts +0 -110
|
@@ -1,4241 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`getBlockConfigFromTypeScript official blocks action-button 1`] = `
|
|
4
|
-
{
|
|
5
|
-
"actions": {
|
|
6
|
-
"onClick": {
|
|
7
|
-
"description": "Action that gets dispatched when the button is clicked.",
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
"events": undefined,
|
|
11
|
-
"messages": undefined,
|
|
12
|
-
"parameters": {
|
|
13
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
|
-
"additionalProperties": false,
|
|
15
|
-
"properties": {
|
|
16
|
-
"icon": {
|
|
17
|
-
"description": "A [Font Awesome icon](https://fontawesome.com/icons?m=free) name to render on the button.",
|
|
18
|
-
"format": "fontawesome",
|
|
19
|
-
"type": "string",
|
|
20
|
-
},
|
|
21
|
-
"title": {
|
|
22
|
-
"description": "The title for the button.
|
|
23
|
-
|
|
24
|
-
Describe what the button does. This helps with accessibility for people using screen readers.",
|
|
25
|
-
"format": "remapper",
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
"required": [
|
|
29
|
-
"icon",
|
|
30
|
-
],
|
|
31
|
-
"type": "object",
|
|
32
|
-
},
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
exports[`getBlockConfigFromTypeScript official blocks audio 1`] = `
|
|
37
|
-
{
|
|
38
|
-
"actions": undefined,
|
|
39
|
-
"events": {
|
|
40
|
-
"emit": undefined,
|
|
41
|
-
"listen": {
|
|
42
|
-
"onAudio": {
|
|
43
|
-
"description": "The event to listen on for new data.
|
|
44
|
-
|
|
45
|
-
The result must be either a audio URL or an object containing a property \`url\`.",
|
|
46
|
-
},
|
|
47
|
-
"stop": {
|
|
48
|
-
"description": "The event to stop listening to audio.",
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
"messages": undefined,
|
|
53
|
-
"parameters": {
|
|
54
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
55
|
-
"additionalProperties": false,
|
|
56
|
-
"properties": {
|
|
57
|
-
"src": {
|
|
58
|
-
"description": "The source of the player. This can either be a URL pointing to a website, or it can point to an asset. The asset can either be the object, or the ID of the asset",
|
|
59
|
-
"format": "remapper",
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
"type": "object",
|
|
63
|
-
},
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
66
|
-
|
|
67
|
-
exports[`getBlockConfigFromTypeScript official blocks button-list 1`] = `
|
|
68
|
-
{
|
|
69
|
-
"actions": {
|
|
70
|
-
"$any": {
|
|
71
|
-
"description": "A custom action that gets dispatched when a button is clicked that has the same click action
|
|
72
|
-
specified as the name of this action.",
|
|
73
|
-
},
|
|
74
|
-
"onClick": {
|
|
75
|
-
"description": "Action that gets dispatched when a button is clicked that doesn’t specify its own click
|
|
76
|
-
action.",
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
"events": {
|
|
80
|
-
"emit": undefined,
|
|
81
|
-
"listen": {
|
|
82
|
-
"data": {
|
|
83
|
-
"description": "The event that is triggered when data is received.
|
|
84
|
-
|
|
85
|
-
This data can be used with remap to display labels dynamically based on the received data.",
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
"messages": undefined,
|
|
90
|
-
"parameters": {
|
|
91
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
92
|
-
"additionalProperties": false,
|
|
93
|
-
"definitions": {
|
|
94
|
-
"BulmaColor": {
|
|
95
|
-
"description": "A color known to Bulma.",
|
|
96
|
-
"enum": [
|
|
97
|
-
"danger",
|
|
98
|
-
"dark",
|
|
99
|
-
"info",
|
|
100
|
-
"link",
|
|
101
|
-
"primary",
|
|
102
|
-
"success",
|
|
103
|
-
"warning",
|
|
104
|
-
"white",
|
|
105
|
-
],
|
|
106
|
-
"type": "string",
|
|
107
|
-
},
|
|
108
|
-
"BulmaSize": {
|
|
109
|
-
"enum": [
|
|
110
|
-
"large",
|
|
111
|
-
"medium",
|
|
112
|
-
"normal",
|
|
113
|
-
"small",
|
|
114
|
-
],
|
|
115
|
-
"type": "string",
|
|
116
|
-
},
|
|
117
|
-
"Button": {
|
|
118
|
-
"additionalProperties": false,
|
|
119
|
-
"properties": {
|
|
120
|
-
"color": {
|
|
121
|
-
"$ref": "#/definitions/BulmaColor",
|
|
122
|
-
"description": "The Bulma color to use.",
|
|
123
|
-
},
|
|
124
|
-
"fullwidth": {
|
|
125
|
-
"description": "Whether the button should be full width or not.
|
|
126
|
-
|
|
127
|
-
By default buttons only take up as much space as needed.",
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
},
|
|
130
|
-
"icon": {
|
|
131
|
-
"description": "A [Font Awesome icon](https://fontawesome.com/icons?m=free) name to render on the button.
|
|
132
|
-
|
|
133
|
-
Will not render if undefined.",
|
|
134
|
-
"format": "fontawesome",
|
|
135
|
-
"type": "string",
|
|
136
|
-
},
|
|
137
|
-
"inverted": {
|
|
138
|
-
"description": "Whether the text and background colors should be inverted.",
|
|
139
|
-
"type": "boolean",
|
|
140
|
-
},
|
|
141
|
-
"label": {
|
|
142
|
-
"description": "The label to display.
|
|
143
|
-
|
|
144
|
-
Will not render if undefined.",
|
|
145
|
-
"format": "remapper",
|
|
146
|
-
},
|
|
147
|
-
"light": {
|
|
148
|
-
"description": "When set to true, the ‘light’ set of Bulma colors are used.",
|
|
149
|
-
"type": "boolean",
|
|
150
|
-
},
|
|
151
|
-
"onClick": {
|
|
152
|
-
"description": "The name of the action to trigger when the button is clicked.",
|
|
153
|
-
"format": "action",
|
|
154
|
-
"type": "string",
|
|
155
|
-
},
|
|
156
|
-
"outlined": {
|
|
157
|
-
"description": "Whether the button should display its colors in the outlines.",
|
|
158
|
-
"type": "boolean",
|
|
159
|
-
},
|
|
160
|
-
"rounded": {
|
|
161
|
-
"description": "Whether the button should be rounded.",
|
|
162
|
-
"type": "boolean",
|
|
163
|
-
},
|
|
164
|
-
"size": {
|
|
165
|
-
"$ref": "#/definitions/BulmaSize",
|
|
166
|
-
"description": "The size of the button. By default the size is ‘normal’.",
|
|
167
|
-
},
|
|
168
|
-
"title": {
|
|
169
|
-
"description": "The title for the button.
|
|
170
|
-
|
|
171
|
-
Describe what the button does. This helps with accessibility for people using screen readers.",
|
|
172
|
-
"format": "remapper",
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
"type": "object",
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
"properties": {
|
|
179
|
-
"buttons": {
|
|
180
|
-
"description": "The list of buttons.",
|
|
181
|
-
"items": {
|
|
182
|
-
"$ref": "#/definitions/Button",
|
|
183
|
-
},
|
|
184
|
-
"type": "array",
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
"required": [
|
|
188
|
-
"buttons",
|
|
189
|
-
],
|
|
190
|
-
"type": "object",
|
|
191
|
-
},
|
|
192
|
-
}
|
|
193
|
-
`;
|
|
194
|
-
|
|
195
|
-
exports[`getBlockConfigFromTypeScript official blocks chart 1`] = `
|
|
196
|
-
{
|
|
197
|
-
"actions": undefined,
|
|
198
|
-
"events": {
|
|
199
|
-
"emit": undefined,
|
|
200
|
-
"listen": {
|
|
201
|
-
"add": {
|
|
202
|
-
"description": "Add new data to the chart.
|
|
203
|
-
|
|
204
|
-
Refer to the block description for more information on the supported data format.",
|
|
205
|
-
},
|
|
206
|
-
"replace": {
|
|
207
|
-
"description": "Replace all current data with the new data.
|
|
208
|
-
|
|
209
|
-
Refer to the block description for more information on the supported data format.",
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
},
|
|
213
|
-
"messages": undefined,
|
|
214
|
-
"parameters": {
|
|
215
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
216
|
-
"additionalProperties": false,
|
|
217
|
-
"definitions": {
|
|
218
|
-
"Color": {
|
|
219
|
-
"description": "A hexadecimal color.",
|
|
220
|
-
"pattern": "^#[a-fA-F\\d]{6}$",
|
|
221
|
-
"type": "string",
|
|
222
|
-
},
|
|
223
|
-
"YAxis": {
|
|
224
|
-
"additionalProperties": false,
|
|
225
|
-
"properties": {
|
|
226
|
-
"colors": {
|
|
227
|
-
"default": [
|
|
228
|
-
"#ededed",
|
|
229
|
-
],
|
|
230
|
-
"description": "By default a grey tone is used.",
|
|
231
|
-
"items": {
|
|
232
|
-
"$ref": "#/definitions/Color",
|
|
233
|
-
},
|
|
234
|
-
"minItems": 1,
|
|
235
|
-
"type": "array",
|
|
236
|
-
},
|
|
237
|
-
"max": {
|
|
238
|
-
"description": "The maximum value to render on the vertical axis.
|
|
239
|
-
|
|
240
|
-
If not specified, the maximum value is determined automatically based on the values given.",
|
|
241
|
-
"type": "number",
|
|
242
|
-
},
|
|
243
|
-
"min": {
|
|
244
|
-
"default": 0,
|
|
245
|
-
"description": "The minimal value to render on the vertical axis.",
|
|
246
|
-
"type": "number",
|
|
247
|
-
},
|
|
248
|
-
"step": {
|
|
249
|
-
"description": "If specified, the Y-axis of the chart will be incremented by this fixed amount.
|
|
250
|
-
|
|
251
|
-
By default it’s detected automatically.",
|
|
252
|
-
"type": "number",
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
"type": "object",
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
|
-
"properties": {
|
|
259
|
-
"backgroundColors": {
|
|
260
|
-
"description": "The background colors to use for each dataset by default.
|
|
261
|
-
|
|
262
|
-
If the length of this array exceeds the number of labels, the pattern will be repeated.
|
|
263
|
-
|
|
264
|
-
By default the primary color of the theme will be used.",
|
|
265
|
-
"items": {
|
|
266
|
-
"format": "remapper",
|
|
267
|
-
},
|
|
268
|
-
"minItems": 1,
|
|
269
|
-
"type": "array",
|
|
270
|
-
},
|
|
271
|
-
"labels": {
|
|
272
|
-
"description": "The labels to display at the bottom of the chart.",
|
|
273
|
-
"items": {
|
|
274
|
-
"format": "remapper",
|
|
275
|
-
},
|
|
276
|
-
"minItems": 1,
|
|
277
|
-
"type": "array",
|
|
278
|
-
},
|
|
279
|
-
"type": {
|
|
280
|
-
"default": "line",
|
|
281
|
-
"description": "The chart type to render by default.",
|
|
282
|
-
"enum": [
|
|
283
|
-
"bar",
|
|
284
|
-
"line",
|
|
285
|
-
],
|
|
286
|
-
"type": "string",
|
|
287
|
-
},
|
|
288
|
-
"yAxis": {
|
|
289
|
-
"$ref": "#/definitions/YAxis",
|
|
290
|
-
"description": "Configuration options for the vertical axis.",
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
"required": [
|
|
294
|
-
"type",
|
|
295
|
-
"yAxis",
|
|
296
|
-
],
|
|
297
|
-
"type": "object",
|
|
298
|
-
},
|
|
299
|
-
}
|
|
300
|
-
`;
|
|
301
|
-
|
|
302
|
-
exports[`getBlockConfigFromTypeScript official blocks control-buttons 1`] = `
|
|
303
|
-
{
|
|
304
|
-
"actions": {
|
|
305
|
-
"onBack": {
|
|
306
|
-
"description": "This action gets triggered then the back button is clicked.
|
|
307
|
-
|
|
308
|
-
It will be called with the page data.",
|
|
309
|
-
},
|
|
310
|
-
"onForward": {
|
|
311
|
-
"description": "This action gets triggered then the back button is clicked.
|
|
312
|
-
|
|
313
|
-
It will be called with the page data.",
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
"events": undefined,
|
|
317
|
-
"messages": {
|
|
318
|
-
"back": {
|
|
319
|
-
"description": "The label that’s used on the back button.",
|
|
320
|
-
},
|
|
321
|
-
"forward": {
|
|
322
|
-
"description": "The label that’s used on the forward button.",
|
|
323
|
-
},
|
|
324
|
-
},
|
|
325
|
-
"parameters": {
|
|
326
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
327
|
-
"additionalProperties": false,
|
|
328
|
-
"definitions": {
|
|
329
|
-
"Button": {
|
|
330
|
-
"additionalProperties": false,
|
|
331
|
-
"properties": {
|
|
332
|
-
"icon": {
|
|
333
|
-
"description": "A [Font Awesome icon](https://fontawesome.com/icons?m=free) name to render on the button.
|
|
334
|
-
|
|
335
|
-
By default a cared pointing left or right respectively will be rendered.",
|
|
336
|
-
"format": "fontawesome",
|
|
337
|
-
"type": "string",
|
|
338
|
-
},
|
|
339
|
-
},
|
|
340
|
-
"type": "object",
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
"properties": {
|
|
344
|
-
"back": {
|
|
345
|
-
"anyOf": [
|
|
346
|
-
{
|
|
347
|
-
"$ref": "#/definitions/Button",
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"const": false,
|
|
351
|
-
"type": "boolean",
|
|
352
|
-
},
|
|
353
|
-
],
|
|
354
|
-
"description": "The configuration for the back button.
|
|
355
|
-
|
|
356
|
-
Set to \`false\` to hide back button.",
|
|
357
|
-
},
|
|
358
|
-
"forward": {
|
|
359
|
-
"anyOf": [
|
|
360
|
-
{
|
|
361
|
-
"$ref": "#/definitions/Button",
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"const": false,
|
|
365
|
-
"type": "boolean",
|
|
366
|
-
},
|
|
367
|
-
],
|
|
368
|
-
"description": "The configuration for the forward button.
|
|
369
|
-
|
|
370
|
-
Set to \`false\` to hide forward button.",
|
|
371
|
-
},
|
|
372
|
-
},
|
|
373
|
-
"type": "object",
|
|
374
|
-
},
|
|
375
|
-
}
|
|
376
|
-
`;
|
|
377
|
-
|
|
378
|
-
exports[`getBlockConfigFromTypeScript official blocks data-loader 1`] = `
|
|
379
|
-
{
|
|
380
|
-
"actions": {
|
|
381
|
-
"onLoad": {
|
|
382
|
-
"description": "Action that gets dispatched when a new filter gets applied.
|
|
383
|
-
|
|
384
|
-
This also gets called during the initial load.",
|
|
385
|
-
},
|
|
386
|
-
},
|
|
387
|
-
"events": {
|
|
388
|
-
"emit": {
|
|
389
|
-
"data": {
|
|
390
|
-
"description": "Event that gets emitted once the \`onLoad\` action has finished.
|
|
391
|
-
|
|
392
|
-
It can be triggered again by sending a \`refresh\` event.",
|
|
393
|
-
},
|
|
394
|
-
},
|
|
395
|
-
"listen": {
|
|
396
|
-
"refresh": {
|
|
397
|
-
"description": "When received, the \`onLoad\` action will be triggered using the parameters passed through this
|
|
398
|
-
event, which in turn triggers the \`data\` emit event.",
|
|
399
|
-
},
|
|
400
|
-
},
|
|
401
|
-
},
|
|
402
|
-
"messages": {
|
|
403
|
-
"loadErrorMessage": {
|
|
404
|
-
"description": "The error message that should be shown when data failed to load.",
|
|
405
|
-
},
|
|
406
|
-
},
|
|
407
|
-
"parameters": {
|
|
408
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
409
|
-
"additionalProperties": false,
|
|
410
|
-
"properties": {
|
|
411
|
-
"skipInitialLoad": {
|
|
412
|
-
"description": "By default the \`onLoad\` action is triggered immediately.
|
|
413
|
-
|
|
414
|
-
By setting this to \`true\`, this won’t happen.",
|
|
415
|
-
"type": "boolean",
|
|
416
|
-
},
|
|
417
|
-
},
|
|
418
|
-
"type": "object",
|
|
419
|
-
},
|
|
420
|
-
}
|
|
421
|
-
`;
|
|
422
|
-
|
|
423
|
-
exports[`getBlockConfigFromTypeScript official blocks data-notifier 1`] = `
|
|
424
|
-
{
|
|
425
|
-
"actions": undefined,
|
|
426
|
-
"events": {
|
|
427
|
-
"emit": {
|
|
428
|
-
"data": {
|
|
429
|
-
"description": "Event that gets emitted when new data is available.",
|
|
430
|
-
},
|
|
431
|
-
},
|
|
432
|
-
"listen": {
|
|
433
|
-
"data": {
|
|
434
|
-
"description": "The event to listen on for new data.",
|
|
435
|
-
},
|
|
436
|
-
"seed": {
|
|
437
|
-
"description": "Set and emit the initial data.
|
|
438
|
-
|
|
439
|
-
This is useful for example in combination with the \`filter\` block.",
|
|
440
|
-
},
|
|
441
|
-
},
|
|
442
|
-
},
|
|
443
|
-
"messages": {
|
|
444
|
-
"buttonLabel": {
|
|
445
|
-
"description": "The label to display on the refresh button of the notification.",
|
|
446
|
-
},
|
|
447
|
-
"newMessage": {
|
|
448
|
-
"description": "The message to display when new data is available.
|
|
449
|
-
|
|
450
|
-
This will be called with the \`count\` parameter, which refers to the amount of new items.",
|
|
451
|
-
},
|
|
452
|
-
"updatedMessage": {
|
|
453
|
-
"description": "The message to display when existing data has been changed.
|
|
454
|
-
|
|
455
|
-
This will be called with the \`count\` parameter, which refers to the amount of changed items.",
|
|
456
|
-
},
|
|
457
|
-
},
|
|
458
|
-
"parameters": {
|
|
459
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
460
|
-
"additionalProperties": false,
|
|
461
|
-
"definitions": {
|
|
462
|
-
"BulmaColor": {
|
|
463
|
-
"description": "A color known to Bulma.",
|
|
464
|
-
"enum": [
|
|
465
|
-
"danger",
|
|
466
|
-
"dark",
|
|
467
|
-
"info",
|
|
468
|
-
"link",
|
|
469
|
-
"primary",
|
|
470
|
-
"success",
|
|
471
|
-
"warning",
|
|
472
|
-
"white",
|
|
473
|
-
],
|
|
474
|
-
"type": "string",
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
"properties": {
|
|
478
|
-
"color": {
|
|
479
|
-
"$ref": "#/definitions/BulmaColor",
|
|
480
|
-
"default": "dark",
|
|
481
|
-
"description": "The Bulma color to use for the message and the refresh button.",
|
|
482
|
-
},
|
|
483
|
-
"id": {
|
|
484
|
-
"default": "id",
|
|
485
|
-
"description": "The property used to identify resources when comparing them in case of array data.",
|
|
486
|
-
"type": "string",
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
"type": "object",
|
|
490
|
-
},
|
|
491
|
-
}
|
|
492
|
-
`;
|
|
493
|
-
|
|
494
|
-
exports[`getBlockConfigFromTypeScript official blocks detail-viewer 1`] = `
|
|
495
|
-
{
|
|
496
|
-
"actions": undefined,
|
|
497
|
-
"events": {
|
|
498
|
-
"emit": undefined,
|
|
499
|
-
"listen": {
|
|
500
|
-
"data": {
|
|
501
|
-
"description": "The event that is triggered when data is received.
|
|
502
|
-
|
|
503
|
-
Compatible data that is received will be displayed.",
|
|
504
|
-
},
|
|
505
|
-
},
|
|
506
|
-
},
|
|
507
|
-
"messages": undefined,
|
|
508
|
-
"parameters": {
|
|
509
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
510
|
-
"additionalProperties": false,
|
|
511
|
-
"definitions": {
|
|
512
|
-
"AssetMarkerIcon": {
|
|
513
|
-
"additionalProperties": false,
|
|
514
|
-
"description": "A marker based on an existing asset.",
|
|
515
|
-
"properties": {
|
|
516
|
-
"anchor": {
|
|
517
|
-
"description": "The anchor X and Y offset used for positioning the image.
|
|
518
|
-
|
|
519
|
-
By default, the center of the icon will be used to mark the location. For many icons, it may be desirable to customize this. For example, for a symmetric pin which has a width of 10, and a height of 16, you’ll probably want to set this to \`[5, 16]\`
|
|
520
|
-
|
|
521
|
-
The following special cases for [Font Awesome icon](https://fontawesome.com/icons?m=free) are treated in a special way, since they are often used to represent a location:
|
|
522
|
-
|
|
523
|
-
- \`map-marker\`
|
|
524
|
-
- \`map-marker-alt\`
|
|
525
|
-
- \`map-pin\`
|
|
526
|
-
- \`thumbtrack\`",
|
|
527
|
-
"items": {
|
|
528
|
-
"type": "number",
|
|
529
|
-
},
|
|
530
|
-
"maxItems": 2,
|
|
531
|
-
"minItems": 2,
|
|
532
|
-
"type": "array",
|
|
533
|
-
},
|
|
534
|
-
"asset": {
|
|
535
|
-
"description": "The id of an asset to use.",
|
|
536
|
-
"type": "string",
|
|
537
|
-
},
|
|
538
|
-
"size": {
|
|
539
|
-
"default": 28,
|
|
540
|
-
"description": "The height of marker icons in pixels.",
|
|
541
|
-
"type": "number",
|
|
542
|
-
},
|
|
543
|
-
},
|
|
544
|
-
"required": [
|
|
545
|
-
"asset",
|
|
546
|
-
],
|
|
547
|
-
"type": "object",
|
|
548
|
-
},
|
|
549
|
-
"BulmaColor": {
|
|
550
|
-
"description": "A color known to Bulma.",
|
|
551
|
-
"enum": [
|
|
552
|
-
"danger",
|
|
553
|
-
"dark",
|
|
554
|
-
"info",
|
|
555
|
-
"link",
|
|
556
|
-
"primary",
|
|
557
|
-
"success",
|
|
558
|
-
"warning",
|
|
559
|
-
"white",
|
|
560
|
-
],
|
|
561
|
-
"type": "string",
|
|
562
|
-
},
|
|
563
|
-
"Field": {
|
|
564
|
-
"anyOf": [
|
|
565
|
-
{
|
|
566
|
-
"$ref": "#/definitions/FileField",
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
"$ref": "#/definitions/GeoCoordinatesField",
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"$ref": "#/definitions/StringField",
|
|
573
|
-
},
|
|
574
|
-
],
|
|
575
|
-
"description": "All supported types of fields.",
|
|
576
|
-
},
|
|
577
|
-
"FieldGroup": {
|
|
578
|
-
"additionalProperties": false,
|
|
579
|
-
"description": "A group of fields that is repeated for each item in it value.",
|
|
580
|
-
"properties": {
|
|
581
|
-
"fields": {
|
|
582
|
-
"description": "The list of fields to repeat.",
|
|
583
|
-
"items": {
|
|
584
|
-
"$ref": "#/definitions/Field",
|
|
585
|
-
},
|
|
586
|
-
"type": "array",
|
|
587
|
-
},
|
|
588
|
-
"label": {
|
|
589
|
-
"description": "The label that is presented to the user. No label will be displayed if this is not defined.",
|
|
590
|
-
"format": "remapper",
|
|
591
|
-
},
|
|
592
|
-
"value": {
|
|
593
|
-
"description": "The Remapper used to retrieve the data.",
|
|
594
|
-
"format": "remapper",
|
|
595
|
-
},
|
|
596
|
-
},
|
|
597
|
-
"required": [
|
|
598
|
-
"fields",
|
|
599
|
-
],
|
|
600
|
-
"type": "object",
|
|
601
|
-
},
|
|
602
|
-
"FileField": {
|
|
603
|
-
"additionalProperties": false,
|
|
604
|
-
"description": "Displays files as images.",
|
|
605
|
-
"properties": {
|
|
606
|
-
"label": {
|
|
607
|
-
"description": "The label that is presented to the user. No label will be displayed if this is not defined.",
|
|
608
|
-
"format": "remapper",
|
|
609
|
-
},
|
|
610
|
-
"repeated": {
|
|
611
|
-
"description": "Display one or multiple files.",
|
|
612
|
-
"type": "boolean",
|
|
613
|
-
},
|
|
614
|
-
"repeatedName": {
|
|
615
|
-
"description": "The name of the property of the data to fetch from within each item.
|
|
616
|
-
|
|
617
|
-
If not set, the item itself is used as the url.",
|
|
618
|
-
"format": "remapper",
|
|
619
|
-
},
|
|
620
|
-
"type": {
|
|
621
|
-
"const": "file",
|
|
622
|
-
"description": "The name of the type of the field.",
|
|
623
|
-
"type": "string",
|
|
624
|
-
},
|
|
625
|
-
"value": {
|
|
626
|
-
"description": "The Remapper used to retrieve the data.",
|
|
627
|
-
"format": "remapper",
|
|
628
|
-
},
|
|
629
|
-
},
|
|
630
|
-
"required": [
|
|
631
|
-
"type",
|
|
632
|
-
],
|
|
633
|
-
"type": "object",
|
|
634
|
-
},
|
|
635
|
-
"FontAwesomeMarkerIcon": {
|
|
636
|
-
"additionalProperties": false,
|
|
637
|
-
"description": "A marker based on a [Font Awesome icon](https://fontawesome.com/icons?m=free).",
|
|
638
|
-
"properties": {
|
|
639
|
-
"anchor": {
|
|
640
|
-
"description": "The anchor X and Y offset used for positioning the image.
|
|
641
|
-
|
|
642
|
-
By default, the center of the icon will be used to mark the location. For many icons, it may be desirable to customize this. For example, for a symmetric pin which has a width of 10, and a height of 16, you’ll probably want to set this to \`[5, 16]\`
|
|
643
|
-
|
|
644
|
-
The following special cases for [Font Awesome icon](https://fontawesome.com/icons?m=free) are treated in a special way, since they are often used to represent a location:
|
|
645
|
-
|
|
646
|
-
- \`map-marker\`
|
|
647
|
-
- \`map-marker-alt\`
|
|
648
|
-
- \`map-pin\`
|
|
649
|
-
- \`thumbtrack\`",
|
|
650
|
-
"items": {
|
|
651
|
-
"type": "number",
|
|
652
|
-
},
|
|
653
|
-
"maxItems": 2,
|
|
654
|
-
"minItems": 2,
|
|
655
|
-
"type": "array",
|
|
656
|
-
},
|
|
657
|
-
"color": {
|
|
658
|
-
"$ref": "#/definitions/BulmaColor",
|
|
659
|
-
"default": "primary",
|
|
660
|
-
"description": "The color to apply to the icon.",
|
|
661
|
-
},
|
|
662
|
-
"icon": {
|
|
663
|
-
"description": "A [Font Awesome icon](https://fontawesome.com/icons?m=free) name to use.",
|
|
664
|
-
"format": "fontawesome",
|
|
665
|
-
"type": "string",
|
|
666
|
-
},
|
|
667
|
-
"size": {
|
|
668
|
-
"default": 28,
|
|
669
|
-
"description": "The height of marker icons in pixels.",
|
|
670
|
-
"type": "number",
|
|
671
|
-
},
|
|
672
|
-
},
|
|
673
|
-
"type": "object",
|
|
674
|
-
},
|
|
675
|
-
"GeoCoordinatesField": {
|
|
676
|
-
"additionalProperties": false,
|
|
677
|
-
"description": "Displays a map with a marker.",
|
|
678
|
-
"properties": {
|
|
679
|
-
"label": {
|
|
680
|
-
"description": "The label that is presented to the user. No label will be displayed if this is not defined.",
|
|
681
|
-
"format": "remapper",
|
|
682
|
-
},
|
|
683
|
-
"latitude": {
|
|
684
|
-
"description": "The name of the field used to access the longitude value.
|
|
685
|
-
|
|
686
|
-
If \`fields[].name\` is set it is retrieved relatively, otherwise it is fetched from the root of the data.",
|
|
687
|
-
"format": "remapper",
|
|
688
|
-
},
|
|
689
|
-
"longitude": {
|
|
690
|
-
"description": "The name of the field used to access the latitude value.
|
|
691
|
-
|
|
692
|
-
If \`fields[].name\` is set it is retrieved relatively, otherwise it is fetched from the root of the data.",
|
|
693
|
-
"format": "remapper",
|
|
694
|
-
},
|
|
695
|
-
"type": {
|
|
696
|
-
"const": "geocoordinates",
|
|
697
|
-
"description": "The name of the type of the field.",
|
|
698
|
-
"type": "string",
|
|
699
|
-
},
|
|
700
|
-
"value": {
|
|
701
|
-
"description": "The path to base the longitude and latitude fields from.
|
|
702
|
-
|
|
703
|
-
If \`fields[].latitude\` and \`fields[].longitude\` are not set it defaults to \`fields[].name.lat\` and \`fields[].name.lng\`.",
|
|
704
|
-
"format": "remapper",
|
|
705
|
-
},
|
|
706
|
-
},
|
|
707
|
-
"required": [
|
|
708
|
-
"type",
|
|
709
|
-
],
|
|
710
|
-
"type": "object",
|
|
711
|
-
},
|
|
712
|
-
"StringField": {
|
|
713
|
-
"additionalProperties": false,
|
|
714
|
-
"description": "Displays the content as regular text.
|
|
715
|
-
|
|
716
|
-
If the content is an object it will be converted using \`JSON.stringify()\`.",
|
|
717
|
-
"properties": {
|
|
718
|
-
"label": {
|
|
719
|
-
"description": "The label that is presented to the user. No label will be displayed if this is not defined.",
|
|
720
|
-
"format": "remapper",
|
|
721
|
-
},
|
|
722
|
-
"type": {
|
|
723
|
-
"const": "string",
|
|
724
|
-
"description": "The name of the type of the field.",
|
|
725
|
-
"type": "string",
|
|
726
|
-
},
|
|
727
|
-
"value": {
|
|
728
|
-
"description": "The Remapper used to retrieve the data.",
|
|
729
|
-
"format": "remapper",
|
|
730
|
-
},
|
|
731
|
-
},
|
|
732
|
-
"type": "object",
|
|
733
|
-
},
|
|
734
|
-
},
|
|
735
|
-
"properties": {
|
|
736
|
-
"fields": {
|
|
737
|
-
"description": "A list of fields to display based on the name from the schema.",
|
|
738
|
-
"items": {
|
|
739
|
-
"anyOf": [
|
|
740
|
-
{
|
|
741
|
-
"$ref": "#/definitions/Field",
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
"$ref": "#/definitions/FieldGroup",
|
|
745
|
-
},
|
|
746
|
-
],
|
|
747
|
-
},
|
|
748
|
-
"type": "array",
|
|
749
|
-
},
|
|
750
|
-
"fileBase": {
|
|
751
|
-
"description": "The base URL of the associated files.
|
|
752
|
-
|
|
753
|
-
If not defined, Appsemble’s Asset API will be used instead.",
|
|
754
|
-
"type": "string",
|
|
755
|
-
},
|
|
756
|
-
"icons": {
|
|
757
|
-
"anyOf": [
|
|
758
|
-
{
|
|
759
|
-
"$ref": "#/definitions/AssetMarkerIcon",
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"$ref": "#/definitions/FontAwesomeMarkerIcon",
|
|
763
|
-
},
|
|
764
|
-
],
|
|
765
|
-
"description": "Custom icon configuration for geocoordinate fields.",
|
|
766
|
-
},
|
|
767
|
-
},
|
|
768
|
-
"required": [
|
|
769
|
-
"fields",
|
|
770
|
-
],
|
|
771
|
-
"type": "object",
|
|
772
|
-
},
|
|
773
|
-
}
|
|
774
|
-
`;
|
|
775
|
-
|
|
776
|
-
exports[`getBlockConfigFromTypeScript official blocks feed 1`] = `
|
|
777
|
-
{
|
|
778
|
-
"actions": {
|
|
779
|
-
"onAvatarClick": {
|
|
780
|
-
"description": "Action that gets dispatched when a user clicks on an avatar.",
|
|
781
|
-
},
|
|
782
|
-
"onButtonClick": {
|
|
783
|
-
"description": "Action that gets dispatched when the button is clicked.
|
|
784
|
-
|
|
785
|
-
The button won't display if this is not defined.",
|
|
786
|
-
},
|
|
787
|
-
"onLoadReply": {
|
|
788
|
-
"description": "Action to retrieve replies, dispatched on every feed item.",
|
|
789
|
-
},
|
|
790
|
-
"onSubmitReply": {
|
|
791
|
-
"description": "Action that gets dispatched when submitting a reply.
|
|
792
|
-
|
|
793
|
-
When submitting replies, the data will be structured
|
|
794
|
-
as an object containing \`parentId\` and \`content\`.",
|
|
795
|
-
},
|
|
796
|
-
},
|
|
797
|
-
"events": {
|
|
798
|
-
"emit": undefined,
|
|
799
|
-
"listen": {
|
|
800
|
-
"data": {
|
|
801
|
-
"description": "The event that is triggered when data is received.
|
|
802
|
-
|
|
803
|
-
Compatible data that is received will be displayed.",
|
|
804
|
-
},
|
|
805
|
-
},
|
|
806
|
-
},
|
|
807
|
-
"messages": {
|
|
808
|
-
"anonymousLabel": {
|
|
809
|
-
"description": "The name to display for replies without known user names.",
|
|
810
|
-
},
|
|
811
|
-
"emptyLabel": {
|
|
812
|
-
"description": "The label that’s displayed when there are no feed items available.",
|
|
813
|
-
},
|
|
814
|
-
"replyErrorMessage": {
|
|
815
|
-
"description": "The error message shown when an error occurs while submitting a reply.",
|
|
816
|
-
},
|
|
817
|
-
"replyLabel": {
|
|
818
|
-
"description": "The placeholder text used for the reply input.",
|
|
819
|
-
},
|
|
820
|
-
},
|
|
821
|
-
"parameters": {
|
|
822
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
823
|
-
"additionalProperties": false,
|
|
824
|
-
"definitions": {
|
|
825
|
-
"AssetMarkerIcon": {
|
|
826
|
-
"additionalProperties": false,
|
|
827
|
-
"description": "A marker based on an existing asset.",
|
|
828
|
-
"properties": {
|
|
829
|
-
"anchor": {
|
|
830
|
-
"description": "The anchor X and Y offset used for positioning the image.
|
|
831
|
-
|
|
832
|
-
By default, the center of the icon will be used to mark the location. For many icons, it may be desirable to customize this. For example, for a symmetric pin which has a width of 10, and a height of 16, you’ll probably want to set this to \`[5, 16]\`
|
|
833
|
-
|
|
834
|
-
The following special cases for [Font Awesome icon](https://fontawesome.com/icons?m=free) are treated in a special way, since they are often used to represent a location:
|
|
835
|
-
|
|
836
|
-
- \`map-marker\`
|
|
837
|
-
- \`map-marker-alt\`
|
|
838
|
-
- \`map-pin\`
|
|
839
|
-
- \`thumbtrack\`",
|
|
840
|
-
"items": {
|
|
841
|
-
"type": "number",
|
|
842
|
-
},
|
|
843
|
-
"maxItems": 2,
|
|
844
|
-
"minItems": 2,
|
|
845
|
-
"type": "array",
|
|
846
|
-
},
|
|
847
|
-
"asset": {
|
|
848
|
-
"description": "The id of an asset to use.",
|
|
849
|
-
"type": "string",
|
|
850
|
-
},
|
|
851
|
-
"latitude": {
|
|
852
|
-
"description": "The latitude of the marker.",
|
|
853
|
-
"format": "remapper",
|
|
854
|
-
},
|
|
855
|
-
"longitude": {
|
|
856
|
-
"description": "The longitude of the marker.",
|
|
857
|
-
"format": "remapper",
|
|
858
|
-
},
|
|
859
|
-
"size": {
|
|
860
|
-
"default": 28,
|
|
861
|
-
"description": "The height of marker icons in pixels.",
|
|
862
|
-
"type": "number",
|
|
863
|
-
},
|
|
864
|
-
},
|
|
865
|
-
"required": [
|
|
866
|
-
"asset",
|
|
867
|
-
"latitude",
|
|
868
|
-
"longitude",
|
|
869
|
-
],
|
|
870
|
-
"type": "object",
|
|
871
|
-
},
|
|
872
|
-
"BulmaColor": {
|
|
873
|
-
"description": "A color known to Bulma.",
|
|
874
|
-
"enum": [
|
|
875
|
-
"danger",
|
|
876
|
-
"dark",
|
|
877
|
-
"info",
|
|
878
|
-
"link",
|
|
879
|
-
"primary",
|
|
880
|
-
"success",
|
|
881
|
-
"warning",
|
|
882
|
-
"white",
|
|
883
|
-
],
|
|
884
|
-
"type": "string",
|
|
885
|
-
},
|
|
886
|
-
"FontAwesomeMarkerIcon": {
|
|
887
|
-
"additionalProperties": false,
|
|
888
|
-
"description": "A marker based on a [Font Awesome icon](https://fontawesome.com/icons?m=free).",
|
|
889
|
-
"properties": {
|
|
890
|
-
"anchor": {
|
|
891
|
-
"description": "The anchor X and Y offset used for positioning the image.
|
|
892
|
-
|
|
893
|
-
By default, the center of the icon will be used to mark the location. For many icons, it may be desirable to customize this. For example, for a symmetric pin which has a width of 10, and a height of 16, you’ll probably want to set this to \`[5, 16]\`
|
|
894
|
-
|
|
895
|
-
The following special cases for [Font Awesome icon](https://fontawesome.com/icons?m=free) are treated in a special way, since they are often used to represent a location:
|
|
896
|
-
|
|
897
|
-
- \`map-marker\`
|
|
898
|
-
- \`map-marker-alt\`
|
|
899
|
-
- \`map-pin\`
|
|
900
|
-
- \`thumbtrack\`",
|
|
901
|
-
"items": {
|
|
902
|
-
"type": "number",
|
|
903
|
-
},
|
|
904
|
-
"maxItems": 2,
|
|
905
|
-
"minItems": 2,
|
|
906
|
-
"type": "array",
|
|
907
|
-
},
|
|
908
|
-
"color": {
|
|
909
|
-
"$ref": "#/definitions/BulmaColor",
|
|
910
|
-
"default": "primary",
|
|
911
|
-
"description": "The color to apply to the icon.",
|
|
912
|
-
},
|
|
913
|
-
"icon": {
|
|
914
|
-
"description": "A [Font Awesome icon](https://fontawesome.com/icons?m=free) name to use.",
|
|
915
|
-
"format": "fontawesome",
|
|
916
|
-
"type": "string",
|
|
917
|
-
},
|
|
918
|
-
"latitude": {
|
|
919
|
-
"description": "The latitude of the marker.",
|
|
920
|
-
"format": "remapper",
|
|
921
|
-
},
|
|
922
|
-
"longitude": {
|
|
923
|
-
"description": "The longitude of the marker.",
|
|
924
|
-
"format": "remapper",
|
|
925
|
-
},
|
|
926
|
-
"size": {
|
|
927
|
-
"default": 28,
|
|
928
|
-
"description": "The height of marker icons in pixels.",
|
|
929
|
-
"type": "number",
|
|
930
|
-
},
|
|
931
|
-
},
|
|
932
|
-
"required": [
|
|
933
|
-
"latitude",
|
|
934
|
-
"longitude",
|
|
935
|
-
],
|
|
936
|
-
"type": "object",
|
|
937
|
-
},
|
|
938
|
-
"Reply": {
|
|
939
|
-
"additionalProperties": false,
|
|
940
|
-
"properties": {
|
|
941
|
-
"author": {
|
|
942
|
-
"default": [
|
|
943
|
-
{
|
|
944
|
-
"prop": "$author",
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
"prop": "name",
|
|
948
|
-
},
|
|
949
|
-
],
|
|
950
|
-
"description": "The author of the reply.",
|
|
951
|
-
"format": "remapper",
|
|
952
|
-
},
|
|
953
|
-
"content": {
|
|
954
|
-
"default": {
|
|
955
|
-
"prop": "content",
|
|
956
|
-
},
|
|
957
|
-
"description": "The content of the reply.",
|
|
958
|
-
"format": "remapper",
|
|
959
|
-
},
|
|
960
|
-
"parentId": {
|
|
961
|
-
"description": "The field that is used to associate the ID of the resource this reply belongs to.",
|
|
962
|
-
"type": "string",
|
|
963
|
-
},
|
|
964
|
-
},
|
|
965
|
-
"type": "object",
|
|
966
|
-
},
|
|
967
|
-
},
|
|
968
|
-
"properties": {
|
|
969
|
-
"buttonLabel": {
|
|
970
|
-
"description": "The text that displays inside the button.",
|
|
971
|
-
"type": "string",
|
|
972
|
-
},
|
|
973
|
-
"description": {
|
|
974
|
-
"description": "The description or content of the card.",
|
|
975
|
-
"format": "remapper",
|
|
976
|
-
},
|
|
977
|
-
"heading": {
|
|
978
|
-
"description": "The heading displayed on the card.",
|
|
979
|
-
"format": "remapper",
|
|
980
|
-
},
|
|
981
|
-
"marker": {
|
|
982
|
-
"anyOf": [
|
|
983
|
-
{
|
|
984
|
-
"$ref": "#/definitions/AssetMarkerIcon",
|
|
985
|
-
},
|
|
986
|
-
{
|
|
987
|
-
"$ref": "#/definitions/FontAwesomeMarkerIcon",
|
|
988
|
-
},
|
|
989
|
-
],
|
|
990
|
-
"description": "The location marker that is displayed on the card.",
|
|
991
|
-
},
|
|
992
|
-
"picture": {
|
|
993
|
-
"description": "The highlighted picture.",
|
|
994
|
-
"format": "remapper",
|
|
995
|
-
},
|
|
996
|
-
"pictureBase": {
|
|
997
|
-
"description": "The base URL used to display pictures.
|
|
998
|
-
|
|
999
|
-
If not defined, the Asset API will be used instead.",
|
|
1000
|
-
"type": "string",
|
|
1001
|
-
},
|
|
1002
|
-
"pictures": {
|
|
1003
|
-
"description": "A list of pictures that are displayed below the highlighted picture.",
|
|
1004
|
-
"format": "remapper",
|
|
1005
|
-
},
|
|
1006
|
-
"reply": {
|
|
1007
|
-
"$ref": "#/definitions/Reply",
|
|
1008
|
-
"description": "The definition used to display replies.",
|
|
1009
|
-
},
|
|
1010
|
-
"subtitle": {
|
|
1011
|
-
"description": "The subtitle displayed on the card.",
|
|
1012
|
-
"format": "remapper",
|
|
1013
|
-
},
|
|
1014
|
-
"title": {
|
|
1015
|
-
"description": "The title displayed on the card.",
|
|
1016
|
-
"format": "remapper",
|
|
1017
|
-
},
|
|
1018
|
-
},
|
|
1019
|
-
"type": "object",
|
|
1020
|
-
},
|
|
1021
|
-
}
|
|
1022
|
-
`;
|
|
1023
|
-
|
|
1024
|
-
exports[`getBlockConfigFromTypeScript official blocks filter 1`] = `
|
|
1025
|
-
{
|
|
1026
|
-
"actions": {
|
|
1027
|
-
"onLoad": {
|
|
1028
|
-
"description": "The action to dispatch to load data. Typically this is a \`resource.query\` action.",
|
|
1029
|
-
},
|
|
1030
|
-
},
|
|
1031
|
-
"events": {
|
|
1032
|
-
"emit": {
|
|
1033
|
-
"filtered": {
|
|
1034
|
-
"description": "This event is emitted when new data is available because of a user interaction with filters.",
|
|
1035
|
-
},
|
|
1036
|
-
"refreshed": {
|
|
1037
|
-
"description": "This event is emitted when new data is available because of a refresh event.",
|
|
1038
|
-
},
|
|
1039
|
-
},
|
|
1040
|
-
"listen": {
|
|
1041
|
-
"refresh": {
|
|
1042
|
-
"description": "Force reload data using the current filters.",
|
|
1043
|
-
},
|
|
1044
|
-
},
|
|
1045
|
-
},
|
|
1046
|
-
"messages": {
|
|
1047
|
-
"clearLabel": {
|
|
1048
|
-
"description": "The label of the clear button.",
|
|
1049
|
-
},
|
|
1050
|
-
"modalTitle": {
|
|
1051
|
-
"description": "The title of the modal.",
|
|
1052
|
-
},
|
|
1053
|
-
"submitLabel": {
|
|
1054
|
-
"description": "The label of the filter button.",
|
|
1055
|
-
},
|
|
1056
|
-
},
|
|
1057
|
-
"parameters": {
|
|
1058
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1059
|
-
"additionalProperties": false,
|
|
1060
|
-
"definitions": {
|
|
1061
|
-
"AbstractField<"date",string>": {
|
|
1062
|
-
"additionalProperties": false,
|
|
1063
|
-
"properties": {
|
|
1064
|
-
"defaultValue": {
|
|
1065
|
-
"description": "The filter to apply by default.",
|
|
1066
|
-
"type": "string",
|
|
1067
|
-
},
|
|
1068
|
-
"icon": {
|
|
1069
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1070
|
-
"format": "fontawesome",
|
|
1071
|
-
"type": "string",
|
|
1072
|
-
},
|
|
1073
|
-
"label": {
|
|
1074
|
-
"description": "The label displayed next to the field.",
|
|
1075
|
-
"format": "remapper",
|
|
1076
|
-
},
|
|
1077
|
-
"name": {
|
|
1078
|
-
"description": "The name of the field to filter on.",
|
|
1079
|
-
"type": "string",
|
|
1080
|
-
},
|
|
1081
|
-
"type": {
|
|
1082
|
-
"const": "date",
|
|
1083
|
-
"description": "The type of the filter field.",
|
|
1084
|
-
"type": "string",
|
|
1085
|
-
},
|
|
1086
|
-
},
|
|
1087
|
-
"required": [
|
|
1088
|
-
"name",
|
|
1089
|
-
"type",
|
|
1090
|
-
],
|
|
1091
|
-
"type": "object",
|
|
1092
|
-
},
|
|
1093
|
-
"ButtonOption": {
|
|
1094
|
-
"additionalProperties": false,
|
|
1095
|
-
"properties": {
|
|
1096
|
-
"icon": {
|
|
1097
|
-
"description": "An icon to render on the button.",
|
|
1098
|
-
"format": "fontawesome",
|
|
1099
|
-
"type": "string",
|
|
1100
|
-
},
|
|
1101
|
-
"label": {
|
|
1102
|
-
"description": "User-facing label describing the option.",
|
|
1103
|
-
"format": "remapper",
|
|
1104
|
-
},
|
|
1105
|
-
"value": {
|
|
1106
|
-
"description": "The value that gets submitted when filtering.",
|
|
1107
|
-
"type": "string",
|
|
1108
|
-
},
|
|
1109
|
-
},
|
|
1110
|
-
"required": [
|
|
1111
|
-
"value",
|
|
1112
|
-
"icon",
|
|
1113
|
-
],
|
|
1114
|
-
"type": "object",
|
|
1115
|
-
},
|
|
1116
|
-
"ButtonsField": {
|
|
1117
|
-
"additionalProperties": false,
|
|
1118
|
-
"properties": {
|
|
1119
|
-
"defaultValue": {
|
|
1120
|
-
"description": "The filter to apply by default.",
|
|
1121
|
-
"items": {
|
|
1122
|
-
"type": "string",
|
|
1123
|
-
},
|
|
1124
|
-
"type": "array",
|
|
1125
|
-
},
|
|
1126
|
-
"icon": {
|
|
1127
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1128
|
-
"format": "fontawesome",
|
|
1129
|
-
"type": "string",
|
|
1130
|
-
},
|
|
1131
|
-
"label": {
|
|
1132
|
-
"description": "The label displayed next to the field.",
|
|
1133
|
-
"format": "remapper",
|
|
1134
|
-
},
|
|
1135
|
-
"name": {
|
|
1136
|
-
"description": "The name of the field to filter on.",
|
|
1137
|
-
"type": "string",
|
|
1138
|
-
},
|
|
1139
|
-
"options": {
|
|
1140
|
-
"description": "A list of button options.",
|
|
1141
|
-
"items": {
|
|
1142
|
-
"$ref": "#/definitions/ButtonOption",
|
|
1143
|
-
},
|
|
1144
|
-
"type": "array",
|
|
1145
|
-
},
|
|
1146
|
-
"type": {
|
|
1147
|
-
"const": "buttons",
|
|
1148
|
-
"description": "The type of the filter field.",
|
|
1149
|
-
"type": "string",
|
|
1150
|
-
},
|
|
1151
|
-
},
|
|
1152
|
-
"required": [
|
|
1153
|
-
"name",
|
|
1154
|
-
"options",
|
|
1155
|
-
"type",
|
|
1156
|
-
],
|
|
1157
|
-
"type": "object",
|
|
1158
|
-
},
|
|
1159
|
-
"DateField": {
|
|
1160
|
-
"$ref": "#/definitions/AbstractField%3C%22date%22%2Cstring%3E",
|
|
1161
|
-
},
|
|
1162
|
-
"DateRangeField": {
|
|
1163
|
-
"additionalProperties": false,
|
|
1164
|
-
"properties": {
|
|
1165
|
-
"defaultValue": {
|
|
1166
|
-
"description": "The filter to apply by default.",
|
|
1167
|
-
"items": {
|
|
1168
|
-
"type": "string",
|
|
1169
|
-
},
|
|
1170
|
-
"maxItems": 2,
|
|
1171
|
-
"minItems": 2,
|
|
1172
|
-
"type": "array",
|
|
1173
|
-
},
|
|
1174
|
-
"fromLabel": {
|
|
1175
|
-
"description": "The label to render on the \`from\` field.",
|
|
1176
|
-
"format": "remapper",
|
|
1177
|
-
},
|
|
1178
|
-
"icon": {
|
|
1179
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1180
|
-
"format": "fontawesome",
|
|
1181
|
-
"type": "string",
|
|
1182
|
-
},
|
|
1183
|
-
"label": {
|
|
1184
|
-
"description": "The label displayed next to the field.",
|
|
1185
|
-
"format": "remapper",
|
|
1186
|
-
},
|
|
1187
|
-
"name": {
|
|
1188
|
-
"description": "The name of the field to filter on.",
|
|
1189
|
-
"type": "string",
|
|
1190
|
-
},
|
|
1191
|
-
"toLabel": {
|
|
1192
|
-
"description": "The label to render on the \`to\` field.",
|
|
1193
|
-
"format": "remapper",
|
|
1194
|
-
},
|
|
1195
|
-
"type": {
|
|
1196
|
-
"const": "date-range",
|
|
1197
|
-
"description": "The type of the filter field.",
|
|
1198
|
-
"type": "string",
|
|
1199
|
-
},
|
|
1200
|
-
},
|
|
1201
|
-
"required": [
|
|
1202
|
-
"name",
|
|
1203
|
-
"type",
|
|
1204
|
-
],
|
|
1205
|
-
"type": "object",
|
|
1206
|
-
},
|
|
1207
|
-
"EnumField": {
|
|
1208
|
-
"additionalProperties": false,
|
|
1209
|
-
"properties": {
|
|
1210
|
-
"defaultValue": {
|
|
1211
|
-
"description": "The filter to apply by default.",
|
|
1212
|
-
"type": "string",
|
|
1213
|
-
},
|
|
1214
|
-
"enum": {
|
|
1215
|
-
"description": "A list of enum options.",
|
|
1216
|
-
"items": {
|
|
1217
|
-
"$ref": "#/definitions/EnumOption",
|
|
1218
|
-
},
|
|
1219
|
-
"type": "array",
|
|
1220
|
-
},
|
|
1221
|
-
"icon": {
|
|
1222
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1223
|
-
"format": "fontawesome",
|
|
1224
|
-
"type": "string",
|
|
1225
|
-
},
|
|
1226
|
-
"label": {
|
|
1227
|
-
"description": "The label displayed next to the field.",
|
|
1228
|
-
"format": "remapper",
|
|
1229
|
-
},
|
|
1230
|
-
"name": {
|
|
1231
|
-
"description": "The name of the field to filter on.",
|
|
1232
|
-
"type": "string",
|
|
1233
|
-
},
|
|
1234
|
-
"type": {
|
|
1235
|
-
"const": "enum",
|
|
1236
|
-
"description": "The type of the filter field.",
|
|
1237
|
-
"type": "string",
|
|
1238
|
-
},
|
|
1239
|
-
},
|
|
1240
|
-
"required": [
|
|
1241
|
-
"enum",
|
|
1242
|
-
"name",
|
|
1243
|
-
"type",
|
|
1244
|
-
],
|
|
1245
|
-
"type": "object",
|
|
1246
|
-
},
|
|
1247
|
-
"EnumOption": {
|
|
1248
|
-
"additionalProperties": false,
|
|
1249
|
-
"properties": {
|
|
1250
|
-
"label": {
|
|
1251
|
-
"description": "User facing label describing the option.",
|
|
1252
|
-
"format": "remapper",
|
|
1253
|
-
},
|
|
1254
|
-
"value": {
|
|
1255
|
-
"description": "The value that gets submitted when filtering.",
|
|
1256
|
-
"type": "string",
|
|
1257
|
-
},
|
|
1258
|
-
},
|
|
1259
|
-
"type": "object",
|
|
1260
|
-
},
|
|
1261
|
-
"Field": {
|
|
1262
|
-
"anyOf": [
|
|
1263
|
-
{
|
|
1264
|
-
"$ref": "#/definitions/ButtonsField",
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"$ref": "#/definitions/DateField",
|
|
1268
|
-
},
|
|
1269
|
-
{
|
|
1270
|
-
"$ref": "#/definitions/DateRangeField",
|
|
1271
|
-
},
|
|
1272
|
-
{
|
|
1273
|
-
"$ref": "#/definitions/EnumField",
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
"$ref": "#/definitions/StringField",
|
|
1277
|
-
},
|
|
1278
|
-
],
|
|
1279
|
-
},
|
|
1280
|
-
"StringField": {
|
|
1281
|
-
"additionalProperties": false,
|
|
1282
|
-
"properties": {
|
|
1283
|
-
"defaultValue": {
|
|
1284
|
-
"description": "The filter to apply by default.",
|
|
1285
|
-
"type": "string",
|
|
1286
|
-
},
|
|
1287
|
-
"exact": {
|
|
1288
|
-
"description": "By default string fields search for fields containing the user input.
|
|
1289
|
-
|
|
1290
|
-
By setting this to true, an exact match is used.",
|
|
1291
|
-
"type": "boolean",
|
|
1292
|
-
},
|
|
1293
|
-
"icon": {
|
|
1294
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1295
|
-
"format": "fontawesome",
|
|
1296
|
-
"type": "string",
|
|
1297
|
-
},
|
|
1298
|
-
"label": {
|
|
1299
|
-
"description": "The label displayed next to the field.",
|
|
1300
|
-
"format": "remapper",
|
|
1301
|
-
},
|
|
1302
|
-
"name": {
|
|
1303
|
-
"description": "The name of the field to filter on.",
|
|
1304
|
-
"type": "string",
|
|
1305
|
-
},
|
|
1306
|
-
"type": {
|
|
1307
|
-
"const": "string",
|
|
1308
|
-
"description": "The type of the filter field.",
|
|
1309
|
-
"type": "string",
|
|
1310
|
-
},
|
|
1311
|
-
},
|
|
1312
|
-
"required": [
|
|
1313
|
-
"name",
|
|
1314
|
-
"type",
|
|
1315
|
-
],
|
|
1316
|
-
"type": "object",
|
|
1317
|
-
},
|
|
1318
|
-
},
|
|
1319
|
-
"properties": {
|
|
1320
|
-
"fields": {
|
|
1321
|
-
"description": "A list of fields the user is allowed to search on.",
|
|
1322
|
-
"items": {
|
|
1323
|
-
"$ref": "#/definitions/Field",
|
|
1324
|
-
},
|
|
1325
|
-
"type": "array",
|
|
1326
|
-
},
|
|
1327
|
-
"highlight": {
|
|
1328
|
-
"description": "The name of a field to highlight.
|
|
1329
|
-
|
|
1330
|
-
This means this field will be displayed directly on the screen instead of in the modal.",
|
|
1331
|
-
"type": "string",
|
|
1332
|
-
},
|
|
1333
|
-
},
|
|
1334
|
-
"required": [
|
|
1335
|
-
"fields",
|
|
1336
|
-
],
|
|
1337
|
-
"type": "object",
|
|
1338
|
-
},
|
|
1339
|
-
}
|
|
1340
|
-
`;
|
|
1341
|
-
|
|
1342
|
-
exports[`getBlockConfigFromTypeScript official blocks form 1`] = `
|
|
1343
|
-
{
|
|
1344
|
-
"actions": {
|
|
1345
|
-
"$any": {
|
|
1346
|
-
"description": "A custom action that gets dispatched when checking form requirements.",
|
|
1347
|
-
},
|
|
1348
|
-
"onPrevious": {
|
|
1349
|
-
"description": "Action that gets dispatched when the previous button is clicked.",
|
|
1350
|
-
},
|
|
1351
|
-
"onSubmit": {
|
|
1352
|
-
"description": "Action that gets dispatched when the form is submitted.",
|
|
1353
|
-
},
|
|
1354
|
-
},
|
|
1355
|
-
"events": {
|
|
1356
|
-
"emit": {
|
|
1357
|
-
"change": {
|
|
1358
|
-
"description": "This event is emitted every time a change is made to the form.
|
|
1359
|
-
|
|
1360
|
-
The data received in the entire form data.",
|
|
1361
|
-
},
|
|
1362
|
-
},
|
|
1363
|
-
"listen": {
|
|
1364
|
-
"$any": {
|
|
1365
|
-
"description": "Custom event listeners that can be used to receive data for specific types of form fields.",
|
|
1366
|
-
},
|
|
1367
|
-
"data": {
|
|
1368
|
-
"description": "An event that can be used to receive data.
|
|
1369
|
-
|
|
1370
|
-
Compatible data that is received will be displayed and mapped to the fields as defined in the
|
|
1371
|
-
\`fields\` parameter.
|
|
1372
|
-
|
|
1373
|
-
\`keepData\` will retain the previous set of values if set to \`true\`
|
|
1374
|
-
|
|
1375
|
-
\`initialValues\` as a mapping of key-value pairs
|
|
1376
|
-
will be merged with the new fields’ default values.",
|
|
1377
|
-
},
|
|
1378
|
-
"fields": {
|
|
1379
|
-
"description": "An event that can be used to dynamically replace the form’s fields.
|
|
1380
|
-
|
|
1381
|
-
Include an array of fields in \`fields\` to replace the current list of fields in the block.",
|
|
1382
|
-
},
|
|
1383
|
-
},
|
|
1384
|
-
},
|
|
1385
|
-
"messages": {
|
|
1386
|
-
"confirmLabel": {
|
|
1387
|
-
"description": undefined,
|
|
1388
|
-
},
|
|
1389
|
-
"fieldErrorLabel": {
|
|
1390
|
-
"description": undefined,
|
|
1391
|
-
},
|
|
1392
|
-
"formRequirementError": {
|
|
1393
|
-
"description": undefined,
|
|
1394
|
-
},
|
|
1395
|
-
"invalidLabel": {
|
|
1396
|
-
"description": undefined,
|
|
1397
|
-
},
|
|
1398
|
-
"optionalLabel": {
|
|
1399
|
-
"description": undefined,
|
|
1400
|
-
},
|
|
1401
|
-
"previousLabel": {
|
|
1402
|
-
"description": undefined,
|
|
1403
|
-
},
|
|
1404
|
-
"submitError": {
|
|
1405
|
-
"description": undefined,
|
|
1406
|
-
},
|
|
1407
|
-
"submitLabel": {
|
|
1408
|
-
"description": undefined,
|
|
1409
|
-
},
|
|
1410
|
-
},
|
|
1411
|
-
"parameters": {
|
|
1412
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1413
|
-
"additionalProperties": false,
|
|
1414
|
-
"definitions": {
|
|
1415
|
-
"AcceptRequirement": {
|
|
1416
|
-
"additionalProperties": false,
|
|
1417
|
-
"properties": {
|
|
1418
|
-
"accept": {
|
|
1419
|
-
"description": "The list of accepted [MIME-types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types).",
|
|
1420
|
-
"items": {
|
|
1421
|
-
"type": "string",
|
|
1422
|
-
},
|
|
1423
|
-
"type": "array",
|
|
1424
|
-
},
|
|
1425
|
-
"errorMessage": {
|
|
1426
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
1427
|
-
"format": "remapper",
|
|
1428
|
-
},
|
|
1429
|
-
},
|
|
1430
|
-
"required": [
|
|
1431
|
-
"accept",
|
|
1432
|
-
],
|
|
1433
|
-
"type": "object",
|
|
1434
|
-
},
|
|
1435
|
-
"ActionEnumField": {
|
|
1436
|
-
"additionalProperties": false,
|
|
1437
|
-
"description": "A dropdown list containing a list of values based on the output of an action.",
|
|
1438
|
-
"properties": {
|
|
1439
|
-
"action": {
|
|
1440
|
-
"description": "This action will be fired to fetch dynamic enum options.
|
|
1441
|
-
|
|
1442
|
-
The action should return an array of objects that contain the \`label\` and \`value\` property.",
|
|
1443
|
-
"format": "action",
|
|
1444
|
-
"type": "string",
|
|
1445
|
-
},
|
|
1446
|
-
"defaultValue": {
|
|
1447
|
-
"$ref": "#/definitions/JsonValue",
|
|
1448
|
-
"description": "The default value of the field.",
|
|
1449
|
-
},
|
|
1450
|
-
"icon": {
|
|
1451
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1452
|
-
"format": "fontawesome",
|
|
1453
|
-
"type": "string",
|
|
1454
|
-
},
|
|
1455
|
-
"inline": {
|
|
1456
|
-
"const": true,
|
|
1457
|
-
"description": "Combines fields on the same row.
|
|
1458
|
-
|
|
1459
|
-
Fields are combined in order if set to true.",
|
|
1460
|
-
"type": "boolean",
|
|
1461
|
-
},
|
|
1462
|
-
"label": {
|
|
1463
|
-
"description": "The label displayed next to the field.",
|
|
1464
|
-
"format": "remapper",
|
|
1465
|
-
},
|
|
1466
|
-
"loadError": {
|
|
1467
|
-
"default": "Error loading options",
|
|
1468
|
-
"description": "This message is displayed if the options failed to load.",
|
|
1469
|
-
"format": "remapper",
|
|
1470
|
-
},
|
|
1471
|
-
"name": {
|
|
1472
|
-
"description": "The name used when storing this field.",
|
|
1473
|
-
"type": "string",
|
|
1474
|
-
},
|
|
1475
|
-
"placeholder": {
|
|
1476
|
-
"description": "The placeholder to display when the field is empty.",
|
|
1477
|
-
"format": "remapper",
|
|
1478
|
-
},
|
|
1479
|
-
"readOnly": {
|
|
1480
|
-
"description": "Whether the field should be read-only.",
|
|
1481
|
-
"type": "boolean",
|
|
1482
|
-
},
|
|
1483
|
-
"requirements": {
|
|
1484
|
-
"description": "The requirements that are used to validate the field with.
|
|
1485
|
-
|
|
1486
|
-
These are evaluated in the order they are defined in.",
|
|
1487
|
-
"items": {
|
|
1488
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
1489
|
-
},
|
|
1490
|
-
"type": "array",
|
|
1491
|
-
},
|
|
1492
|
-
"show": {
|
|
1493
|
-
"description": "Displays field only if condition is true.
|
|
1494
|
-
|
|
1495
|
-
If not specified, the field will display.",
|
|
1496
|
-
"format": "remapper",
|
|
1497
|
-
},
|
|
1498
|
-
"tag": {
|
|
1499
|
-
"description": "The label that is shown to the right of the label.
|
|
1500
|
-
|
|
1501
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
1502
|
-
"format": "remapper",
|
|
1503
|
-
},
|
|
1504
|
-
"type": {
|
|
1505
|
-
"const": "enum",
|
|
1506
|
-
"description": "The type of the field.",
|
|
1507
|
-
"type": "string",
|
|
1508
|
-
},
|
|
1509
|
-
},
|
|
1510
|
-
"required": [
|
|
1511
|
-
"action",
|
|
1512
|
-
"name",
|
|
1513
|
-
"type",
|
|
1514
|
-
],
|
|
1515
|
-
"type": "object",
|
|
1516
|
-
},
|
|
1517
|
-
"BooleanField": {
|
|
1518
|
-
"additionalProperties": false,
|
|
1519
|
-
"description": "A checkbox that returns \`true\` when checked and \`false\` when not.",
|
|
1520
|
-
"properties": {
|
|
1521
|
-
"color": {
|
|
1522
|
-
"$ref": "#/definitions/BulmaColor",
|
|
1523
|
-
"description": "The color of the checkbox.",
|
|
1524
|
-
},
|
|
1525
|
-
"defaultValue": {
|
|
1526
|
-
"description": "The default value of the field.",
|
|
1527
|
-
"type": "boolean",
|
|
1528
|
-
},
|
|
1529
|
-
"icon": {
|
|
1530
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1531
|
-
"format": "fontawesome",
|
|
1532
|
-
"type": "string",
|
|
1533
|
-
},
|
|
1534
|
-
"inline": {
|
|
1535
|
-
"const": true,
|
|
1536
|
-
"description": "Combines fields on the same row.
|
|
1537
|
-
|
|
1538
|
-
Fields are combined in order if set to true.",
|
|
1539
|
-
"type": "boolean",
|
|
1540
|
-
},
|
|
1541
|
-
"label": {
|
|
1542
|
-
"description": "The label displayed next to the field.",
|
|
1543
|
-
"format": "remapper",
|
|
1544
|
-
},
|
|
1545
|
-
"labelText": {
|
|
1546
|
-
"description": "The text to display next to the checkbox.",
|
|
1547
|
-
"format": "remapper",
|
|
1548
|
-
},
|
|
1549
|
-
"name": {
|
|
1550
|
-
"description": "The name used when storing this field.",
|
|
1551
|
-
"type": "string",
|
|
1552
|
-
},
|
|
1553
|
-
"placeholder": {
|
|
1554
|
-
"description": "The placeholder to display when the field is empty.",
|
|
1555
|
-
"format": "remapper",
|
|
1556
|
-
},
|
|
1557
|
-
"readOnly": {
|
|
1558
|
-
"description": "Whether the field should be read-only.",
|
|
1559
|
-
"type": "boolean",
|
|
1560
|
-
},
|
|
1561
|
-
"requirements": {
|
|
1562
|
-
"description": "The requirements that are used to validate the field with.
|
|
1563
|
-
|
|
1564
|
-
These are evaluated in the order they are defined in.
|
|
1565
|
-
|
|
1566
|
-
This typically means that the checkbox *must* be checked.",
|
|
1567
|
-
"items": {
|
|
1568
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
1569
|
-
},
|
|
1570
|
-
"type": "array",
|
|
1571
|
-
},
|
|
1572
|
-
"show": {
|
|
1573
|
-
"description": "Displays field only if condition is true.
|
|
1574
|
-
|
|
1575
|
-
If not specified, the field will display.",
|
|
1576
|
-
"format": "remapper",
|
|
1577
|
-
},
|
|
1578
|
-
"size": {
|
|
1579
|
-
"$ref": "#/definitions/BulmaSize",
|
|
1580
|
-
"default": "normal",
|
|
1581
|
-
"description": "The size of the checkbox.",
|
|
1582
|
-
},
|
|
1583
|
-
"switch": {
|
|
1584
|
-
"additionalProperties": false,
|
|
1585
|
-
"description": "Whether the checkbox should display as a switch instead.",
|
|
1586
|
-
"properties": {
|
|
1587
|
-
"outlined": {
|
|
1588
|
-
"description": "Whether the outlined style should be used.",
|
|
1589
|
-
"type": "boolean",
|
|
1590
|
-
},
|
|
1591
|
-
"rounded": {
|
|
1592
|
-
"description": "Whether the rounded style should be used.",
|
|
1593
|
-
"type": "boolean",
|
|
1594
|
-
},
|
|
1595
|
-
"thin": {
|
|
1596
|
-
"description": "Whether the thin style should be used.",
|
|
1597
|
-
"type": "boolean",
|
|
1598
|
-
},
|
|
1599
|
-
},
|
|
1600
|
-
"type": "object",
|
|
1601
|
-
},
|
|
1602
|
-
"tag": {
|
|
1603
|
-
"description": "The label that is shown to the right of the label.
|
|
1604
|
-
|
|
1605
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
1606
|
-
"format": "remapper",
|
|
1607
|
-
},
|
|
1608
|
-
"type": {
|
|
1609
|
-
"const": "boolean",
|
|
1610
|
-
"description": "The type of the field.",
|
|
1611
|
-
"type": "string",
|
|
1612
|
-
},
|
|
1613
|
-
},
|
|
1614
|
-
"required": [
|
|
1615
|
-
"name",
|
|
1616
|
-
"type",
|
|
1617
|
-
],
|
|
1618
|
-
"type": "object",
|
|
1619
|
-
},
|
|
1620
|
-
"BulmaColor": {
|
|
1621
|
-
"description": "A color known to Bulma.",
|
|
1622
|
-
"enum": [
|
|
1623
|
-
"danger",
|
|
1624
|
-
"dark",
|
|
1625
|
-
"info",
|
|
1626
|
-
"link",
|
|
1627
|
-
"primary",
|
|
1628
|
-
"success",
|
|
1629
|
-
"warning",
|
|
1630
|
-
"white",
|
|
1631
|
-
],
|
|
1632
|
-
"type": "string",
|
|
1633
|
-
},
|
|
1634
|
-
"BulmaSize": {
|
|
1635
|
-
"enum": [
|
|
1636
|
-
"large",
|
|
1637
|
-
"medium",
|
|
1638
|
-
"normal",
|
|
1639
|
-
"small",
|
|
1640
|
-
],
|
|
1641
|
-
"type": "string",
|
|
1642
|
-
},
|
|
1643
|
-
"Choice": {
|
|
1644
|
-
"additionalProperties": false,
|
|
1645
|
-
"description": "An option that is displayed in a dropdown menu or radio button field.",
|
|
1646
|
-
"properties": {
|
|
1647
|
-
"label": {
|
|
1648
|
-
"description": "The label used to display the option.",
|
|
1649
|
-
"format": "remapper",
|
|
1650
|
-
},
|
|
1651
|
-
"value": {
|
|
1652
|
-
"$ref": "#/definitions/JsonValue",
|
|
1653
|
-
"description": "The value to use when selecting the option.",
|
|
1654
|
-
},
|
|
1655
|
-
},
|
|
1656
|
-
"required": [
|
|
1657
|
-
"value",
|
|
1658
|
-
],
|
|
1659
|
-
"type": "object",
|
|
1660
|
-
},
|
|
1661
|
-
"DateField": {
|
|
1662
|
-
"additionalProperties": false,
|
|
1663
|
-
"description": "A date/time picker that results in an exact date and time.",
|
|
1664
|
-
"properties": {
|
|
1665
|
-
"confirm": {
|
|
1666
|
-
"default": false,
|
|
1667
|
-
"description": "Whether the confirm button should be shown",
|
|
1668
|
-
"type": "boolean",
|
|
1669
|
-
},
|
|
1670
|
-
"dateFormat": {
|
|
1671
|
-
"description": "The remapper used for formatting the date value’s label.
|
|
1672
|
-
|
|
1673
|
-
The date value can be accessed using the \`root\` remapper.",
|
|
1674
|
-
"format": "remapper",
|
|
1675
|
-
},
|
|
1676
|
-
"icon": {
|
|
1677
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1678
|
-
"format": "fontawesome",
|
|
1679
|
-
"type": "string",
|
|
1680
|
-
},
|
|
1681
|
-
"inline": {
|
|
1682
|
-
"const": true,
|
|
1683
|
-
"description": "Combines fields on the same row.
|
|
1684
|
-
|
|
1685
|
-
Fields are combined in order if set to true.",
|
|
1686
|
-
"type": "boolean",
|
|
1687
|
-
},
|
|
1688
|
-
"label": {
|
|
1689
|
-
"description": "The label displayed next to the field.",
|
|
1690
|
-
"format": "remapper",
|
|
1691
|
-
},
|
|
1692
|
-
"name": {
|
|
1693
|
-
"description": "The name used when storing this field.",
|
|
1694
|
-
"type": "string",
|
|
1695
|
-
},
|
|
1696
|
-
"placeholder": {
|
|
1697
|
-
"description": "The placeholder to display when the field is empty.",
|
|
1698
|
-
"format": "remapper",
|
|
1699
|
-
},
|
|
1700
|
-
"readOnly": {
|
|
1701
|
-
"description": "Whether the field should be read-only.",
|
|
1702
|
-
"type": "boolean",
|
|
1703
|
-
},
|
|
1704
|
-
"requirements": {
|
|
1705
|
-
"description": "All requirements that are applicable to this type of field.",
|
|
1706
|
-
"items": {
|
|
1707
|
-
"$ref": "#/definitions/DateTimeRequirement",
|
|
1708
|
-
},
|
|
1709
|
-
"type": "array",
|
|
1710
|
-
},
|
|
1711
|
-
"show": {
|
|
1712
|
-
"description": "Displays field only if condition is true.
|
|
1713
|
-
|
|
1714
|
-
If not specified, the field will display.",
|
|
1715
|
-
"format": "remapper",
|
|
1716
|
-
},
|
|
1717
|
-
"startOfWeek": {
|
|
1718
|
-
"default": 1,
|
|
1719
|
-
"description": "The day to display as the first day of the week.
|
|
1720
|
-
|
|
1721
|
-
0 means Sunday, 1 means Monday, etc.",
|
|
1722
|
-
"enum": [
|
|
1723
|
-
0,
|
|
1724
|
-
1,
|
|
1725
|
-
2,
|
|
1726
|
-
3,
|
|
1727
|
-
4,
|
|
1728
|
-
5,
|
|
1729
|
-
6,
|
|
1730
|
-
],
|
|
1731
|
-
"type": "number",
|
|
1732
|
-
},
|
|
1733
|
-
"tag": {
|
|
1734
|
-
"description": "The label that is shown to the right of the label.
|
|
1735
|
-
|
|
1736
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
1737
|
-
"format": "remapper",
|
|
1738
|
-
},
|
|
1739
|
-
"type": {
|
|
1740
|
-
"const": "date",
|
|
1741
|
-
"description": "The type of the field.",
|
|
1742
|
-
"type": "string",
|
|
1743
|
-
},
|
|
1744
|
-
},
|
|
1745
|
-
"required": [
|
|
1746
|
-
"name",
|
|
1747
|
-
"type",
|
|
1748
|
-
],
|
|
1749
|
-
"type": "object",
|
|
1750
|
-
},
|
|
1751
|
-
"DateTimeField": {
|
|
1752
|
-
"additionalProperties": false,
|
|
1753
|
-
"description": "A date/time picker that results in an exact date and time.",
|
|
1754
|
-
"properties": {
|
|
1755
|
-
"confirm": {
|
|
1756
|
-
"default": false,
|
|
1757
|
-
"description": "Whether the confirm button should be shown",
|
|
1758
|
-
"type": "boolean",
|
|
1759
|
-
},
|
|
1760
|
-
"dateFormat": {
|
|
1761
|
-
"description": "The remapper used for formatting the date value’s label.
|
|
1762
|
-
|
|
1763
|
-
The date value can be accessed using the \`root\` remapper.",
|
|
1764
|
-
"format": "remapper",
|
|
1765
|
-
},
|
|
1766
|
-
"icon": {
|
|
1767
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1768
|
-
"format": "fontawesome",
|
|
1769
|
-
"type": "string",
|
|
1770
|
-
},
|
|
1771
|
-
"label": {
|
|
1772
|
-
"description": "The label displayed next to the field.",
|
|
1773
|
-
"format": "remapper",
|
|
1774
|
-
},
|
|
1775
|
-
"minuteIncrement": {
|
|
1776
|
-
"default": 5,
|
|
1777
|
-
"description": "The minute increment when pressing the up or down arrows on the time picker.",
|
|
1778
|
-
"minimum": 1,
|
|
1779
|
-
"type": "number",
|
|
1780
|
-
},
|
|
1781
|
-
"name": {
|
|
1782
|
-
"description": "The name used when storing this field.",
|
|
1783
|
-
"type": "string",
|
|
1784
|
-
},
|
|
1785
|
-
"placeholder": {
|
|
1786
|
-
"description": "The placeholder to display when the field is empty.",
|
|
1787
|
-
"format": "remapper",
|
|
1788
|
-
},
|
|
1789
|
-
"readOnly": {
|
|
1790
|
-
"description": "Whether the field should be read-only.",
|
|
1791
|
-
"type": "boolean",
|
|
1792
|
-
},
|
|
1793
|
-
"requirements": {
|
|
1794
|
-
"description": "All requirements that are applicable to this type of field.",
|
|
1795
|
-
"items": {
|
|
1796
|
-
"$ref": "#/definitions/DateTimeRequirement",
|
|
1797
|
-
},
|
|
1798
|
-
"type": "array",
|
|
1799
|
-
},
|
|
1800
|
-
"show": {
|
|
1801
|
-
"description": "Displays field only if condition is true.
|
|
1802
|
-
|
|
1803
|
-
If not specified, the field will display.",
|
|
1804
|
-
"format": "remapper",
|
|
1805
|
-
},
|
|
1806
|
-
"startOfWeek": {
|
|
1807
|
-
"default": 1,
|
|
1808
|
-
"description": "The day to display as the first day of the week.
|
|
1809
|
-
|
|
1810
|
-
0 means sunday, 1 means monday, etc.",
|
|
1811
|
-
"enum": [
|
|
1812
|
-
0,
|
|
1813
|
-
1,
|
|
1814
|
-
2,
|
|
1815
|
-
3,
|
|
1816
|
-
4,
|
|
1817
|
-
5,
|
|
1818
|
-
6,
|
|
1819
|
-
],
|
|
1820
|
-
"type": "number",
|
|
1821
|
-
},
|
|
1822
|
-
"tag": {
|
|
1823
|
-
"description": "The label that is shown to the right of the label.
|
|
1824
|
-
|
|
1825
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
1826
|
-
"format": "remapper",
|
|
1827
|
-
},
|
|
1828
|
-
"type": {
|
|
1829
|
-
"const": "date-time",
|
|
1830
|
-
"description": "The type of the field.",
|
|
1831
|
-
"type": "string",
|
|
1832
|
-
},
|
|
1833
|
-
},
|
|
1834
|
-
"required": [
|
|
1835
|
-
"name",
|
|
1836
|
-
"type",
|
|
1837
|
-
],
|
|
1838
|
-
"type": "object",
|
|
1839
|
-
},
|
|
1840
|
-
"DateTimeRequirement": {
|
|
1841
|
-
"anyOf": [
|
|
1842
|
-
{
|
|
1843
|
-
"$ref": "#/definitions/EnabledDayRequirement",
|
|
1844
|
-
},
|
|
1845
|
-
{
|
|
1846
|
-
"$ref": "#/definitions/RangeRequirement",
|
|
1847
|
-
},
|
|
1848
|
-
{
|
|
1849
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
1850
|
-
},
|
|
1851
|
-
{
|
|
1852
|
-
"$ref": "#/definitions/TimeRangeRequirement",
|
|
1853
|
-
},
|
|
1854
|
-
],
|
|
1855
|
-
"description": "All requirements applicable to date-time fields.",
|
|
1856
|
-
},
|
|
1857
|
-
"EnabledDayRequirement": {
|
|
1858
|
-
"additionalProperties": false,
|
|
1859
|
-
"description": "A requirement that can be used to disable specific days.",
|
|
1860
|
-
"properties": {
|
|
1861
|
-
"errorMessage": {
|
|
1862
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
1863
|
-
"format": "remapper",
|
|
1864
|
-
},
|
|
1865
|
-
"friday": {
|
|
1866
|
-
"default": true,
|
|
1867
|
-
"description": "Whether Fridays should be selectable.",
|
|
1868
|
-
"type": "boolean",
|
|
1869
|
-
},
|
|
1870
|
-
"monday": {
|
|
1871
|
-
"default": true,
|
|
1872
|
-
"description": "Whether Mondays should be selectable.",
|
|
1873
|
-
"type": "boolean",
|
|
1874
|
-
},
|
|
1875
|
-
"saturday": {
|
|
1876
|
-
"default": true,
|
|
1877
|
-
"description": "Whether Saturdays should be selectable.",
|
|
1878
|
-
"type": "boolean",
|
|
1879
|
-
},
|
|
1880
|
-
"sunday": {
|
|
1881
|
-
"default": true,
|
|
1882
|
-
"description": "Whether Sundays should be selectable.",
|
|
1883
|
-
"type": "boolean",
|
|
1884
|
-
},
|
|
1885
|
-
"thursday": {
|
|
1886
|
-
"default": true,
|
|
1887
|
-
"description": "Whether Thursdays should be selectable.",
|
|
1888
|
-
"type": "boolean",
|
|
1889
|
-
},
|
|
1890
|
-
"tuesday": {
|
|
1891
|
-
"default": true,
|
|
1892
|
-
"description": "Whether Tuesdays should be selectable.",
|
|
1893
|
-
"type": "boolean",
|
|
1894
|
-
},
|
|
1895
|
-
"wednesday": {
|
|
1896
|
-
"default": true,
|
|
1897
|
-
"description": "Whether Wednesdays should be selectable.",
|
|
1898
|
-
"type": "boolean",
|
|
1899
|
-
},
|
|
1900
|
-
},
|
|
1901
|
-
"type": "object",
|
|
1902
|
-
},
|
|
1903
|
-
"EnumField": {
|
|
1904
|
-
"anyOf": [
|
|
1905
|
-
{
|
|
1906
|
-
"$ref": "#/definitions/ActionEnumField",
|
|
1907
|
-
},
|
|
1908
|
-
{
|
|
1909
|
-
"$ref": "#/definitions/EventEnumField",
|
|
1910
|
-
},
|
|
1911
|
-
{
|
|
1912
|
-
"$ref": "#/definitions/SyncEnumField",
|
|
1913
|
-
},
|
|
1914
|
-
],
|
|
1915
|
-
},
|
|
1916
|
-
"EventEnumField": {
|
|
1917
|
-
"additionalProperties": false,
|
|
1918
|
-
"description": "A dropdown list containing a list of values based on the output of an event.",
|
|
1919
|
-
"properties": {
|
|
1920
|
-
"defaultValue": {
|
|
1921
|
-
"$ref": "#/definitions/JsonValue",
|
|
1922
|
-
"description": "The default value of the field.",
|
|
1923
|
-
},
|
|
1924
|
-
"event": {
|
|
1925
|
-
"description": "Wait until an event has been fired containing the list of options.
|
|
1926
|
-
|
|
1927
|
-
The event should return an array of objects that contain the \`label\` and \`value\` property.",
|
|
1928
|
-
"format": "event-listener",
|
|
1929
|
-
"type": "string",
|
|
1930
|
-
},
|
|
1931
|
-
"icon": {
|
|
1932
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
1933
|
-
"format": "fontawesome",
|
|
1934
|
-
"type": "string",
|
|
1935
|
-
},
|
|
1936
|
-
"inline": {
|
|
1937
|
-
"const": true,
|
|
1938
|
-
"description": "Combines fields on the same row.
|
|
1939
|
-
|
|
1940
|
-
Fields are combined in order if set to true.",
|
|
1941
|
-
"type": "boolean",
|
|
1942
|
-
},
|
|
1943
|
-
"label": {
|
|
1944
|
-
"description": "The label displayed next to the field.",
|
|
1945
|
-
"format": "remapper",
|
|
1946
|
-
},
|
|
1947
|
-
"loadError": {
|
|
1948
|
-
"default": "Error loading options",
|
|
1949
|
-
"description": "This message is displayed if the options failed to load.",
|
|
1950
|
-
"format": "remapper",
|
|
1951
|
-
},
|
|
1952
|
-
"name": {
|
|
1953
|
-
"description": "The name used when storing this field.",
|
|
1954
|
-
"type": "string",
|
|
1955
|
-
},
|
|
1956
|
-
"placeholder": {
|
|
1957
|
-
"description": "The placeholder to display when the field is empty.",
|
|
1958
|
-
"format": "remapper",
|
|
1959
|
-
},
|
|
1960
|
-
"readOnly": {
|
|
1961
|
-
"description": "Whether the field should be read-only.",
|
|
1962
|
-
"type": "boolean",
|
|
1963
|
-
},
|
|
1964
|
-
"requirements": {
|
|
1965
|
-
"description": "The requirements that are used to validate the field with.
|
|
1966
|
-
|
|
1967
|
-
These are evaluated in the order they are defined in.",
|
|
1968
|
-
"items": {
|
|
1969
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
1970
|
-
},
|
|
1971
|
-
"type": "array",
|
|
1972
|
-
},
|
|
1973
|
-
"show": {
|
|
1974
|
-
"description": "Displays field only if condition is true.
|
|
1975
|
-
|
|
1976
|
-
If not specified, the field will display.",
|
|
1977
|
-
"format": "remapper",
|
|
1978
|
-
},
|
|
1979
|
-
"tag": {
|
|
1980
|
-
"description": "The label that is shown to the right of the label.
|
|
1981
|
-
|
|
1982
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
1983
|
-
"format": "remapper",
|
|
1984
|
-
},
|
|
1985
|
-
"type": {
|
|
1986
|
-
"const": "enum",
|
|
1987
|
-
"description": "The type of the field.",
|
|
1988
|
-
"type": "string",
|
|
1989
|
-
},
|
|
1990
|
-
},
|
|
1991
|
-
"required": [
|
|
1992
|
-
"event",
|
|
1993
|
-
"name",
|
|
1994
|
-
"type",
|
|
1995
|
-
],
|
|
1996
|
-
"type": "object",
|
|
1997
|
-
},
|
|
1998
|
-
"Field": {
|
|
1999
|
-
"anyOf": [
|
|
2000
|
-
{
|
|
2001
|
-
"$ref": "#/definitions/BooleanField",
|
|
2002
|
-
},
|
|
2003
|
-
{
|
|
2004
|
-
"$ref": "#/definitions/DateField",
|
|
2005
|
-
},
|
|
2006
|
-
{
|
|
2007
|
-
"$ref": "#/definitions/DateTimeField",
|
|
2008
|
-
},
|
|
2009
|
-
{
|
|
2010
|
-
"$ref": "#/definitions/EnumField",
|
|
2011
|
-
},
|
|
2012
|
-
{
|
|
2013
|
-
"$ref": "#/definitions/FileField",
|
|
2014
|
-
},
|
|
2015
|
-
{
|
|
2016
|
-
"$ref": "#/definitions/GeoCoordinatesField",
|
|
2017
|
-
},
|
|
2018
|
-
{
|
|
2019
|
-
"$ref": "#/definitions/HiddenField",
|
|
2020
|
-
},
|
|
2021
|
-
{
|
|
2022
|
-
"$ref": "#/definitions/NumberField",
|
|
2023
|
-
},
|
|
2024
|
-
{
|
|
2025
|
-
"$ref": "#/definitions/ObjectField",
|
|
2026
|
-
},
|
|
2027
|
-
{
|
|
2028
|
-
"$ref": "#/definitions/RadioField",
|
|
2029
|
-
},
|
|
2030
|
-
{
|
|
2031
|
-
"$ref": "#/definitions/StaticField",
|
|
2032
|
-
},
|
|
2033
|
-
{
|
|
2034
|
-
"$ref": "#/definitions/StringField",
|
|
2035
|
-
},
|
|
2036
|
-
],
|
|
2037
|
-
},
|
|
2038
|
-
"FileField": {
|
|
2039
|
-
"additionalProperties": false,
|
|
2040
|
-
"description": "An input field used to upload files.",
|
|
2041
|
-
"properties": {
|
|
2042
|
-
"defaultValue": {
|
|
2043
|
-
"description": "The default value for the field.",
|
|
2044
|
-
"type": "string",
|
|
2045
|
-
},
|
|
2046
|
-
"emptyFileLabel": {
|
|
2047
|
-
"default": " ",
|
|
2048
|
-
"description": "The label that is shown for empty files.",
|
|
2049
|
-
"format": "remapper",
|
|
2050
|
-
},
|
|
2051
|
-
"icon": {
|
|
2052
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2053
|
-
"format": "fontawesome",
|
|
2054
|
-
"type": "string",
|
|
2055
|
-
},
|
|
2056
|
-
"inline": {
|
|
2057
|
-
"const": true,
|
|
2058
|
-
"description": "Combines fields on the same row.
|
|
2059
|
-
|
|
2060
|
-
Fields are combined in order if set to true.",
|
|
2061
|
-
"type": "boolean",
|
|
2062
|
-
},
|
|
2063
|
-
"label": {
|
|
2064
|
-
"description": "The label displayed next to the field.",
|
|
2065
|
-
"format": "remapper",
|
|
2066
|
-
},
|
|
2067
|
-
"maxHeight": {
|
|
2068
|
-
"description": "The maximum height of uploaded images.",
|
|
2069
|
-
"type": "number",
|
|
2070
|
-
},
|
|
2071
|
-
"maxWidth": {
|
|
2072
|
-
"description": "The maximum width of uploaded images.",
|
|
2073
|
-
"type": "number",
|
|
2074
|
-
},
|
|
2075
|
-
"name": {
|
|
2076
|
-
"description": "The name used when storing this field.",
|
|
2077
|
-
"type": "string",
|
|
2078
|
-
},
|
|
2079
|
-
"placeholder": {
|
|
2080
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2081
|
-
"format": "remapper",
|
|
2082
|
-
},
|
|
2083
|
-
"quality": {
|
|
2084
|
-
"description": "The quality modifier to use when uploading images, in percentages.",
|
|
2085
|
-
"type": "number",
|
|
2086
|
-
},
|
|
2087
|
-
"readOnly": {
|
|
2088
|
-
"description": "Whether the field should be read-only.",
|
|
2089
|
-
"type": "boolean",
|
|
2090
|
-
},
|
|
2091
|
-
"repeated": {
|
|
2092
|
-
"default": false,
|
|
2093
|
-
"description": "Boolean value representing whether to accept one file or multiple files.",
|
|
2094
|
-
"type": "boolean",
|
|
2095
|
-
},
|
|
2096
|
-
"requirements": {
|
|
2097
|
-
"description": "The requirements that are used to validate the field with.
|
|
2098
|
-
|
|
2099
|
-
These are evaluated in the order they are defined in.",
|
|
2100
|
-
"items": {
|
|
2101
|
-
"$ref": "#/definitions/FileRequirement",
|
|
2102
|
-
},
|
|
2103
|
-
"type": "array",
|
|
2104
|
-
},
|
|
2105
|
-
"show": {
|
|
2106
|
-
"description": "Displays field only if condition is true.
|
|
2107
|
-
|
|
2108
|
-
If not specified, the field will display.",
|
|
2109
|
-
"format": "remapper",
|
|
2110
|
-
},
|
|
2111
|
-
"tag": {
|
|
2112
|
-
"description": "The label that is shown to the right of the label.
|
|
2113
|
-
|
|
2114
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2115
|
-
"format": "remapper",
|
|
2116
|
-
},
|
|
2117
|
-
"type": {
|
|
2118
|
-
"const": "file",
|
|
2119
|
-
"description": "The type of the field.",
|
|
2120
|
-
"type": "string",
|
|
2121
|
-
},
|
|
2122
|
-
},
|
|
2123
|
-
"required": [
|
|
2124
|
-
"name",
|
|
2125
|
-
"type",
|
|
2126
|
-
],
|
|
2127
|
-
"type": "object",
|
|
2128
|
-
},
|
|
2129
|
-
"FileRequirement": {
|
|
2130
|
-
"anyOf": [
|
|
2131
|
-
{
|
|
2132
|
-
"$ref": "#/definitions/AcceptRequirement",
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
"$ref": "#/definitions/LengthRequirement",
|
|
2136
|
-
},
|
|
2137
|
-
{
|
|
2138
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
2139
|
-
},
|
|
2140
|
-
],
|
|
2141
|
-
"description": "All requirements applicable to file fields.",
|
|
2142
|
-
},
|
|
2143
|
-
"FormRequirement": {
|
|
2144
|
-
"additionalProperties": false,
|
|
2145
|
-
"properties": {
|
|
2146
|
-
"action": {
|
|
2147
|
-
"description": "The name of the action to trigger when the requirement is checked.",
|
|
2148
|
-
"format": "action",
|
|
2149
|
-
"type": "string",
|
|
2150
|
-
},
|
|
2151
|
-
"alwaysValidate": {
|
|
2152
|
-
"description": "Whether the field should always be validated even if the previous value was valid and hasn’t changed.",
|
|
2153
|
-
"type": "boolean",
|
|
2154
|
-
},
|
|
2155
|
-
"errorMessage": {
|
|
2156
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
2157
|
-
"format": "remapper",
|
|
2158
|
-
},
|
|
2159
|
-
"isValid": {
|
|
2160
|
-
"description": "The list of fields that must be valid before running the requirement action.",
|
|
2161
|
-
"items": {
|
|
2162
|
-
"type": "string",
|
|
2163
|
-
},
|
|
2164
|
-
"type": "array",
|
|
2165
|
-
},
|
|
2166
|
-
},
|
|
2167
|
-
"required": [
|
|
2168
|
-
"isValid",
|
|
2169
|
-
"action",
|
|
2170
|
-
],
|
|
2171
|
-
"type": "object",
|
|
2172
|
-
},
|
|
2173
|
-
"GeoCoordinatesField": {
|
|
2174
|
-
"additionalProperties": false,
|
|
2175
|
-
"description": "A location picker used to select a location.",
|
|
2176
|
-
"properties": {
|
|
2177
|
-
"defaultLocation": {
|
|
2178
|
-
"default": [
|
|
2179
|
-
51.476852,
|
|
2180
|
-
0,
|
|
2181
|
-
],
|
|
2182
|
-
"description": "The location (latitude, longitude) to default to when the user’s location cannot be found.
|
|
2183
|
-
|
|
2184
|
-
This can be used to set the location to something that is more relevant to the user.",
|
|
2185
|
-
"items": {
|
|
2186
|
-
"type": "number",
|
|
2187
|
-
},
|
|
2188
|
-
"maxItems": 2,
|
|
2189
|
-
"minItems": 2,
|
|
2190
|
-
"type": "array",
|
|
2191
|
-
},
|
|
2192
|
-
"defaultValue": {
|
|
2193
|
-
"$ref": "#/definitions/Record%3Cstring%2Cnumber%3E",
|
|
2194
|
-
"description": "The default value of the field.",
|
|
2195
|
-
},
|
|
2196
|
-
"icon": {
|
|
2197
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2198
|
-
"format": "fontawesome",
|
|
2199
|
-
"type": "string",
|
|
2200
|
-
},
|
|
2201
|
-
"label": {
|
|
2202
|
-
"description": "The label displayed next to the field.",
|
|
2203
|
-
"format": "remapper",
|
|
2204
|
-
},
|
|
2205
|
-
"locationError": {
|
|
2206
|
-
"default": "Couldn’t find your location. Are location services enabled?",
|
|
2207
|
-
"description": "The error message to display when the location couldn’t be determined.",
|
|
2208
|
-
"format": "remapper",
|
|
2209
|
-
},
|
|
2210
|
-
"name": {
|
|
2211
|
-
"description": "The name used when storing this field.",
|
|
2212
|
-
"type": "string",
|
|
2213
|
-
},
|
|
2214
|
-
"placeholder": {
|
|
2215
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2216
|
-
"format": "remapper",
|
|
2217
|
-
},
|
|
2218
|
-
"readOnly": {
|
|
2219
|
-
"description": "Whether the field should be read-only.",
|
|
2220
|
-
"type": "boolean",
|
|
2221
|
-
},
|
|
2222
|
-
"show": {
|
|
2223
|
-
"description": "Displays field only if condition is true.
|
|
2224
|
-
|
|
2225
|
-
If not specified, the field will display.",
|
|
2226
|
-
"format": "remapper",
|
|
2227
|
-
},
|
|
2228
|
-
"tag": {
|
|
2229
|
-
"description": "The label that is shown to the right of the label.
|
|
2230
|
-
|
|
2231
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2232
|
-
"format": "remapper",
|
|
2233
|
-
},
|
|
2234
|
-
"type": {
|
|
2235
|
-
"const": "geocoordinates",
|
|
2236
|
-
"description": "The type of the field.",
|
|
2237
|
-
"type": "string",
|
|
2238
|
-
},
|
|
2239
|
-
},
|
|
2240
|
-
"required": [
|
|
2241
|
-
"name",
|
|
2242
|
-
"type",
|
|
2243
|
-
],
|
|
2244
|
-
"type": "object",
|
|
2245
|
-
},
|
|
2246
|
-
"HiddenField": {
|
|
2247
|
-
"additionalProperties": false,
|
|
2248
|
-
"description": "A hidden field. This is useful for submitting default values the user may not change.",
|
|
2249
|
-
"properties": {
|
|
2250
|
-
"defaultValue": {
|
|
2251
|
-
"$ref": "#/definitions/JsonValue",
|
|
2252
|
-
"description": "The default value of the field.",
|
|
2253
|
-
},
|
|
2254
|
-
"icon": {
|
|
2255
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2256
|
-
"format": "fontawesome",
|
|
2257
|
-
"type": "string",
|
|
2258
|
-
},
|
|
2259
|
-
"label": {
|
|
2260
|
-
"description": "The label displayed next to the field.",
|
|
2261
|
-
"format": "remapper",
|
|
2262
|
-
},
|
|
2263
|
-
"name": {
|
|
2264
|
-
"description": "The name used when storing this field.",
|
|
2265
|
-
"type": "string",
|
|
2266
|
-
},
|
|
2267
|
-
"placeholder": {
|
|
2268
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2269
|
-
"format": "remapper",
|
|
2270
|
-
},
|
|
2271
|
-
"readOnly": {
|
|
2272
|
-
"description": "Whether the field should be read-only.",
|
|
2273
|
-
"type": "boolean",
|
|
2274
|
-
},
|
|
2275
|
-
"show": {
|
|
2276
|
-
"description": "Displays field only if condition is true.
|
|
2277
|
-
|
|
2278
|
-
If not specified, the field will display.",
|
|
2279
|
-
"format": "remapper",
|
|
2280
|
-
},
|
|
2281
|
-
"tag": {
|
|
2282
|
-
"description": "The label that is shown to the right of the label.
|
|
2283
|
-
|
|
2284
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2285
|
-
"format": "remapper",
|
|
2286
|
-
},
|
|
2287
|
-
"type": {
|
|
2288
|
-
"const": "hidden",
|
|
2289
|
-
"description": "The type of the field.",
|
|
2290
|
-
"type": "string",
|
|
2291
|
-
},
|
|
2292
|
-
},
|
|
2293
|
-
"required": [
|
|
2294
|
-
"name",
|
|
2295
|
-
"type",
|
|
2296
|
-
],
|
|
2297
|
-
"type": "object",
|
|
2298
|
-
},
|
|
2299
|
-
"JsonArray": {
|
|
2300
|
-
"description": "Matches a JSON array.",
|
|
2301
|
-
"items": {
|
|
2302
|
-
"$ref": "#/definitions/JsonValue",
|
|
2303
|
-
},
|
|
2304
|
-
"type": "array",
|
|
2305
|
-
},
|
|
2306
|
-
"JsonObject": {
|
|
2307
|
-
"additionalProperties": {
|
|
2308
|
-
"$ref": "#/definitions/JsonValue",
|
|
2309
|
-
},
|
|
2310
|
-
"description": "Matches a JSON object.
|
|
2311
|
-
|
|
2312
|
-
This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. Don't use this as a direct return type as the user would have to double-cast it: \`jsonObject as unknown as CustomResponse\`. Instead, you could extend your CustomResponse type from it to ensure your type only uses JSON-compatible types: \`interface CustomResponse extends JsonObject { … }\`.",
|
|
2313
|
-
"type": "object",
|
|
2314
|
-
},
|
|
2315
|
-
"JsonPrimitive": {
|
|
2316
|
-
"description": "Matches any valid JSON primitive value.",
|
|
2317
|
-
"type": [
|
|
2318
|
-
"string",
|
|
2319
|
-
"number",
|
|
2320
|
-
"boolean",
|
|
2321
|
-
"null",
|
|
2322
|
-
],
|
|
2323
|
-
},
|
|
2324
|
-
"JsonValue": {
|
|
2325
|
-
"anyOf": [
|
|
2326
|
-
{
|
|
2327
|
-
"$ref": "#/definitions/JsonPrimitive",
|
|
2328
|
-
},
|
|
2329
|
-
{
|
|
2330
|
-
"$ref": "#/definitions/JsonObject",
|
|
2331
|
-
},
|
|
2332
|
-
{
|
|
2333
|
-
"$ref": "#/definitions/JsonArray",
|
|
2334
|
-
},
|
|
2335
|
-
],
|
|
2336
|
-
"description": "Matches any valid JSON value.",
|
|
2337
|
-
},
|
|
2338
|
-
"LengthRequirement": {
|
|
2339
|
-
"additionalProperties": false,
|
|
2340
|
-
"description": "A requirement used to enforce the length or amount of items in the input.",
|
|
2341
|
-
"properties": {
|
|
2342
|
-
"errorMessage": {
|
|
2343
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
2344
|
-
"format": "remapper",
|
|
2345
|
-
},
|
|
2346
|
-
"maxLength": {
|
|
2347
|
-
"description": "The maximum length.",
|
|
2348
|
-
"minimum": 1,
|
|
2349
|
-
"type": "number",
|
|
2350
|
-
},
|
|
2351
|
-
"minLength": {
|
|
2352
|
-
"description": "The minimum length.",
|
|
2353
|
-
"minimum": 1,
|
|
2354
|
-
"type": "number",
|
|
2355
|
-
},
|
|
2356
|
-
},
|
|
2357
|
-
"type": "object",
|
|
2358
|
-
},
|
|
2359
|
-
"MinMaxRequirement": {
|
|
2360
|
-
"additionalProperties": false,
|
|
2361
|
-
"description": "Minimum and maximum form requirements for number fields.",
|
|
2362
|
-
"properties": {
|
|
2363
|
-
"errorMessage": {
|
|
2364
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
2365
|
-
"format": "remapper",
|
|
2366
|
-
},
|
|
2367
|
-
"max": {
|
|
2368
|
-
"description": "The maximum value of the field.",
|
|
2369
|
-
"type": "number",
|
|
2370
|
-
},
|
|
2371
|
-
"min": {
|
|
2372
|
-
"description": "The minimum value of the field.",
|
|
2373
|
-
"type": "number",
|
|
2374
|
-
},
|
|
2375
|
-
},
|
|
2376
|
-
"type": "object",
|
|
2377
|
-
},
|
|
2378
|
-
"NumberField": {
|
|
2379
|
-
"additionalProperties": false,
|
|
2380
|
-
"description": "A number entry field.",
|
|
2381
|
-
"properties": {
|
|
2382
|
-
"bottomLabels": {
|
|
2383
|
-
"description": "If \`display\` is set to \`slider\`, these labels are displayed evenly spaced below the slider.",
|
|
2384
|
-
"items": {
|
|
2385
|
-
"format": "remapper",
|
|
2386
|
-
},
|
|
2387
|
-
"minItems": 2,
|
|
2388
|
-
"type": "array",
|
|
2389
|
-
},
|
|
2390
|
-
"defaultValue": {
|
|
2391
|
-
"description": "The default value of the field.",
|
|
2392
|
-
"type": "number",
|
|
2393
|
-
},
|
|
2394
|
-
"display": {
|
|
2395
|
-
"const": "slider",
|
|
2396
|
-
"description": "How to display the numeric field.
|
|
2397
|
-
|
|
2398
|
-
By default a \`number\` input field is displayed.",
|
|
2399
|
-
"type": "string",
|
|
2400
|
-
},
|
|
2401
|
-
"icon": {
|
|
2402
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2403
|
-
"format": "fontawesome",
|
|
2404
|
-
"type": "string",
|
|
2405
|
-
},
|
|
2406
|
-
"inline": {
|
|
2407
|
-
"const": true,
|
|
2408
|
-
"description": "Combines fields on the same row.
|
|
2409
|
-
|
|
2410
|
-
Fields are combined in order if set to true.",
|
|
2411
|
-
"type": "boolean",
|
|
2412
|
-
},
|
|
2413
|
-
"label": {
|
|
2414
|
-
"description": "The label displayed next to the field.",
|
|
2415
|
-
"format": "remapper",
|
|
2416
|
-
},
|
|
2417
|
-
"name": {
|
|
2418
|
-
"description": "The name used when storing this field.",
|
|
2419
|
-
"type": "string",
|
|
2420
|
-
},
|
|
2421
|
-
"placeholder": {
|
|
2422
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2423
|
-
"format": "remapper",
|
|
2424
|
-
},
|
|
2425
|
-
"readOnly": {
|
|
2426
|
-
"description": "Whether the field should be read-only.",
|
|
2427
|
-
"type": "boolean",
|
|
2428
|
-
},
|
|
2429
|
-
"requirements": {
|
|
2430
|
-
"description": "The requirements that are used to validate the field with.
|
|
2431
|
-
|
|
2432
|
-
These are evaluated in the order they are defined in.",
|
|
2433
|
-
"items": {
|
|
2434
|
-
"$ref": "#/definitions/NumberRequirement",
|
|
2435
|
-
},
|
|
2436
|
-
"type": "array",
|
|
2437
|
-
},
|
|
2438
|
-
"show": {
|
|
2439
|
-
"description": "Displays field only if condition is true.
|
|
2440
|
-
|
|
2441
|
-
If not specified, the field will display.",
|
|
2442
|
-
"format": "remapper",
|
|
2443
|
-
},
|
|
2444
|
-
"tag": {
|
|
2445
|
-
"description": "The label that is shown to the right of the label.
|
|
2446
|
-
|
|
2447
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2448
|
-
"format": "remapper",
|
|
2449
|
-
},
|
|
2450
|
-
"topLabels": {
|
|
2451
|
-
"description": "If \`display\` is set to \`slider\`, these labels are displayed evenly spaced on top of the slider.",
|
|
2452
|
-
"items": {
|
|
2453
|
-
"format": "remapper",
|
|
2454
|
-
},
|
|
2455
|
-
"minItems": 2,
|
|
2456
|
-
"type": "array",
|
|
2457
|
-
},
|
|
2458
|
-
"type": {
|
|
2459
|
-
"description": "The type of the field.",
|
|
2460
|
-
"enum": [
|
|
2461
|
-
"integer",
|
|
2462
|
-
"number",
|
|
2463
|
-
],
|
|
2464
|
-
"type": "string",
|
|
2465
|
-
},
|
|
2466
|
-
},
|
|
2467
|
-
"required": [
|
|
2468
|
-
"name",
|
|
2469
|
-
"type",
|
|
2470
|
-
],
|
|
2471
|
-
"type": "object",
|
|
2472
|
-
},
|
|
2473
|
-
"NumberRequirement": {
|
|
2474
|
-
"anyOf": [
|
|
2475
|
-
{
|
|
2476
|
-
"$ref": "#/definitions/MinMaxRequirement",
|
|
2477
|
-
},
|
|
2478
|
-
{
|
|
2479
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
2480
|
-
},
|
|
2481
|
-
{
|
|
2482
|
-
"$ref": "#/definitions/StepRequirement",
|
|
2483
|
-
},
|
|
2484
|
-
],
|
|
2485
|
-
"description": "All requirements applicable to number fields.",
|
|
2486
|
-
},
|
|
2487
|
-
"ObjectField": {
|
|
2488
|
-
"additionalProperties": false,
|
|
2489
|
-
"properties": {
|
|
2490
|
-
"addLabel": {
|
|
2491
|
-
"default": "Remove",
|
|
2492
|
-
"description": "The label to show on the button for adding a new entry for repeated fields.",
|
|
2493
|
-
"format": "remapper",
|
|
2494
|
-
},
|
|
2495
|
-
"fields": {
|
|
2496
|
-
"description": "The fields contained by this object.",
|
|
2497
|
-
"items": {
|
|
2498
|
-
"$ref": "#/definitions/Field",
|
|
2499
|
-
},
|
|
2500
|
-
"minItems": 1,
|
|
2501
|
-
"type": "array",
|
|
2502
|
-
},
|
|
2503
|
-
"icon": {
|
|
2504
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2505
|
-
"format": "fontawesome",
|
|
2506
|
-
"type": "string",
|
|
2507
|
-
},
|
|
2508
|
-
"label": {
|
|
2509
|
-
"description": "The label displayed next to the field.",
|
|
2510
|
-
"format": "remapper",
|
|
2511
|
-
},
|
|
2512
|
-
"name": {
|
|
2513
|
-
"description": "The name used when storing this field.",
|
|
2514
|
-
"type": "string",
|
|
2515
|
-
},
|
|
2516
|
-
"placeholder": {
|
|
2517
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2518
|
-
"format": "remapper",
|
|
2519
|
-
},
|
|
2520
|
-
"readOnly": {
|
|
2521
|
-
"description": "Whether the field should be read-only.",
|
|
2522
|
-
"type": "boolean",
|
|
2523
|
-
},
|
|
2524
|
-
"removeLabel": {
|
|
2525
|
-
"default": "Add",
|
|
2526
|
-
"description": "The label to show on the button for removing an entry for repeated fields.",
|
|
2527
|
-
"format": "remapper",
|
|
2528
|
-
},
|
|
2529
|
-
"repeated": {
|
|
2530
|
-
"description": "If true, this field represents an array of objects.",
|
|
2531
|
-
"type": "boolean",
|
|
2532
|
-
},
|
|
2533
|
-
"requirements": {
|
|
2534
|
-
"description": "Requirements that are applicable to an object field.",
|
|
2535
|
-
"items": {
|
|
2536
|
-
"$ref": "#/definitions/ObjectRequirement",
|
|
2537
|
-
},
|
|
2538
|
-
"type": "array",
|
|
2539
|
-
},
|
|
2540
|
-
"show": {
|
|
2541
|
-
"description": "Displays field only if condition is true.
|
|
2542
|
-
|
|
2543
|
-
If not specified, the field will display.",
|
|
2544
|
-
"format": "remapper",
|
|
2545
|
-
},
|
|
2546
|
-
"tag": {
|
|
2547
|
-
"description": "The label that is shown to the right of the label.
|
|
2548
|
-
|
|
2549
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2550
|
-
"format": "remapper",
|
|
2551
|
-
},
|
|
2552
|
-
"type": {
|
|
2553
|
-
"const": "object",
|
|
2554
|
-
"description": "The type of the field.",
|
|
2555
|
-
"type": "string",
|
|
2556
|
-
},
|
|
2557
|
-
},
|
|
2558
|
-
"required": [
|
|
2559
|
-
"fields",
|
|
2560
|
-
"name",
|
|
2561
|
-
"type",
|
|
2562
|
-
],
|
|
2563
|
-
"type": "object",
|
|
2564
|
-
},
|
|
2565
|
-
"ObjectRequirement": {
|
|
2566
|
-
"$ref": "#/definitions/LengthRequirement",
|
|
2567
|
-
"description": "All requirements applicable to object fields.",
|
|
2568
|
-
},
|
|
2569
|
-
"RadioField": {
|
|
2570
|
-
"additionalProperties": false,
|
|
2571
|
-
"description": "A radio button that returns the associated value when selected.",
|
|
2572
|
-
"properties": {
|
|
2573
|
-
"defaultValue": {
|
|
2574
|
-
"$ref": "#/definitions/JsonValue",
|
|
2575
|
-
"description": "The default value of the field.",
|
|
2576
|
-
},
|
|
2577
|
-
"icon": {
|
|
2578
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2579
|
-
"format": "fontawesome",
|
|
2580
|
-
"type": "string",
|
|
2581
|
-
},
|
|
2582
|
-
"label": {
|
|
2583
|
-
"description": "The label displayed next to the field.",
|
|
2584
|
-
"format": "remapper",
|
|
2585
|
-
},
|
|
2586
|
-
"name": {
|
|
2587
|
-
"description": "The name used when storing this field.",
|
|
2588
|
-
"type": "string",
|
|
2589
|
-
},
|
|
2590
|
-
"options": {
|
|
2591
|
-
"description": "The list of options the user can select from.",
|
|
2592
|
-
"items": {
|
|
2593
|
-
"$ref": "#/definitions/Choice",
|
|
2594
|
-
},
|
|
2595
|
-
"type": "array",
|
|
2596
|
-
},
|
|
2597
|
-
"placeholder": {
|
|
2598
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2599
|
-
"format": "remapper",
|
|
2600
|
-
},
|
|
2601
|
-
"readOnly": {
|
|
2602
|
-
"description": "Whether the field should be read-only.",
|
|
2603
|
-
"type": "boolean",
|
|
2604
|
-
},
|
|
2605
|
-
"requirements": {
|
|
2606
|
-
"description": "The requirements that are used to validate the field with.
|
|
2607
|
-
|
|
2608
|
-
These are evaluated in the order they are defined in.",
|
|
2609
|
-
"items": {
|
|
2610
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
2611
|
-
},
|
|
2612
|
-
"type": "array",
|
|
2613
|
-
},
|
|
2614
|
-
"show": {
|
|
2615
|
-
"description": "Displays field only if condition is true.
|
|
2616
|
-
|
|
2617
|
-
If not specified, the field will display.",
|
|
2618
|
-
"format": "remapper",
|
|
2619
|
-
},
|
|
2620
|
-
"tag": {
|
|
2621
|
-
"description": "The label that is shown to the right of the label.
|
|
2622
|
-
|
|
2623
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2624
|
-
"format": "remapper",
|
|
2625
|
-
},
|
|
2626
|
-
"type": {
|
|
2627
|
-
"const": "radio",
|
|
2628
|
-
"type": "string",
|
|
2629
|
-
},
|
|
2630
|
-
},
|
|
2631
|
-
"required": [
|
|
2632
|
-
"name",
|
|
2633
|
-
"type",
|
|
2634
|
-
],
|
|
2635
|
-
"type": "object",
|
|
2636
|
-
},
|
|
2637
|
-
"RangeRequirement": {
|
|
2638
|
-
"additionalProperties": false,
|
|
2639
|
-
"description": "A requirement used to enforce the range of available dates.",
|
|
2640
|
-
"properties": {
|
|
2641
|
-
"errorMessage": {
|
|
2642
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
2643
|
-
"format": "remapper",
|
|
2644
|
-
},
|
|
2645
|
-
"from": {
|
|
2646
|
-
"description": "The minimum date that can be picked.",
|
|
2647
|
-
"format": "remapper",
|
|
2648
|
-
},
|
|
2649
|
-
"to": {
|
|
2650
|
-
"description": "The maximum date that can be picked.",
|
|
2651
|
-
"format": "remapper",
|
|
2652
|
-
},
|
|
2653
|
-
},
|
|
2654
|
-
"type": "object",
|
|
2655
|
-
},
|
|
2656
|
-
"Record<string,Remapper>": {
|
|
2657
|
-
"additionalProperties": {
|
|
2658
|
-
"format": "remapper",
|
|
2659
|
-
},
|
|
2660
|
-
"type": "object",
|
|
2661
|
-
},
|
|
2662
|
-
"Record<string,number>": {
|
|
2663
|
-
"additionalProperties": {
|
|
2664
|
-
"type": "number",
|
|
2665
|
-
},
|
|
2666
|
-
"type": "object",
|
|
2667
|
-
},
|
|
2668
|
-
"RegexRequirement": {
|
|
2669
|
-
"additionalProperties": false,
|
|
2670
|
-
"description": "Requirement that matches using a given regex.",
|
|
2671
|
-
"properties": {
|
|
2672
|
-
"errorMessage": {
|
|
2673
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
2674
|
-
"format": "remapper",
|
|
2675
|
-
},
|
|
2676
|
-
"flags": {
|
|
2677
|
-
"default": "g",
|
|
2678
|
-
"description": "The flags to use for the regex.
|
|
2679
|
-
|
|
2680
|
-
Supported values: \`g\`, \`m\`, \`i\`, \`y\`, \`u\`, \`s\`",
|
|
2681
|
-
"pattern": "^[gimsuy]+$",
|
|
2682
|
-
"type": "string",
|
|
2683
|
-
},
|
|
2684
|
-
"regex": {
|
|
2685
|
-
"description": "The regex to match with. Must be a valid JavaScript regex.",
|
|
2686
|
-
"type": "string",
|
|
2687
|
-
},
|
|
2688
|
-
},
|
|
2689
|
-
"required": [
|
|
2690
|
-
"regex",
|
|
2691
|
-
],
|
|
2692
|
-
"type": "object",
|
|
2693
|
-
},
|
|
2694
|
-
"RequiredRequirement": {
|
|
2695
|
-
"additionalProperties": false,
|
|
2696
|
-
"description": "Requirement used to mark the field as required.",
|
|
2697
|
-
"properties": {
|
|
2698
|
-
"errorMessage": {
|
|
2699
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
2700
|
-
"format": "remapper",
|
|
2701
|
-
},
|
|
2702
|
-
"required": {
|
|
2703
|
-
"description": "Whether the field is required.
|
|
2704
|
-
|
|
2705
|
-
We recommend passing a boolean value e.g. \`true\`.
|
|
2706
|
-
|
|
2707
|
-
Another option is to pass a remapper returning a boolean value. This way you can conditionally control if the field is required.",
|
|
2708
|
-
"format": "remapper",
|
|
2709
|
-
},
|
|
2710
|
-
},
|
|
2711
|
-
"required": [
|
|
2712
|
-
"required",
|
|
2713
|
-
],
|
|
2714
|
-
"type": "object",
|
|
2715
|
-
},
|
|
2716
|
-
"StaticField": {
|
|
2717
|
-
"additionalProperties": false,
|
|
2718
|
-
"description": "A field that displays static content.
|
|
2719
|
-
|
|
2720
|
-
This field does not contain a name or a value.",
|
|
2721
|
-
"properties": {
|
|
2722
|
-
"content": {
|
|
2723
|
-
"description": "The content to display.",
|
|
2724
|
-
"format": "remapper",
|
|
2725
|
-
},
|
|
2726
|
-
"icon": {
|
|
2727
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2728
|
-
"format": "fontawesome",
|
|
2729
|
-
"type": "string",
|
|
2730
|
-
},
|
|
2731
|
-
"inline": {
|
|
2732
|
-
"const": true,
|
|
2733
|
-
"description": "Combines fields on the same row.
|
|
2734
|
-
|
|
2735
|
-
Fields are combined in order if set to true.",
|
|
2736
|
-
"type": "boolean",
|
|
2737
|
-
},
|
|
2738
|
-
"label": {
|
|
2739
|
-
"description": "The label displayed next to the field.",
|
|
2740
|
-
"format": "remapper",
|
|
2741
|
-
},
|
|
2742
|
-
"name": {
|
|
2743
|
-
"description": "The name used when storing this field.",
|
|
2744
|
-
"type": "string",
|
|
2745
|
-
},
|
|
2746
|
-
"placeholder": {
|
|
2747
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2748
|
-
"format": "remapper",
|
|
2749
|
-
},
|
|
2750
|
-
"readOnly": {
|
|
2751
|
-
"description": "Whether the field should be read-only.",
|
|
2752
|
-
"type": "boolean",
|
|
2753
|
-
},
|
|
2754
|
-
"show": {
|
|
2755
|
-
"description": "Displays field only if condition is true.
|
|
2756
|
-
|
|
2757
|
-
If not specified, the field will display.",
|
|
2758
|
-
"format": "remapper",
|
|
2759
|
-
},
|
|
2760
|
-
"tag": {
|
|
2761
|
-
"description": "The label that is shown to the right of the label.
|
|
2762
|
-
|
|
2763
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2764
|
-
"format": "remapper",
|
|
2765
|
-
},
|
|
2766
|
-
"type": {
|
|
2767
|
-
"const": "static",
|
|
2768
|
-
"description": "The type of the field.",
|
|
2769
|
-
"type": "string",
|
|
2770
|
-
},
|
|
2771
|
-
},
|
|
2772
|
-
"required": [
|
|
2773
|
-
"content",
|
|
2774
|
-
"name",
|
|
2775
|
-
"type",
|
|
2776
|
-
],
|
|
2777
|
-
"type": "object",
|
|
2778
|
-
},
|
|
2779
|
-
"StepRequirement": {
|
|
2780
|
-
"additionalProperties": false,
|
|
2781
|
-
"description": "Requirement used to indicate how big a step should be for the field.
|
|
2782
|
-
|
|
2783
|
-
Note that for \`integer\` type fields are rounded _down_.",
|
|
2784
|
-
"properties": {
|
|
2785
|
-
"errorMessage": {
|
|
2786
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
2787
|
-
"format": "remapper",
|
|
2788
|
-
},
|
|
2789
|
-
"step": {
|
|
2790
|
-
"description": "The amount to increment or decrement when using the stepper buttons of the field.",
|
|
2791
|
-
"type": "number",
|
|
2792
|
-
},
|
|
2793
|
-
},
|
|
2794
|
-
"required": [
|
|
2795
|
-
"step",
|
|
2796
|
-
],
|
|
2797
|
-
"type": "object",
|
|
2798
|
-
},
|
|
2799
|
-
"StringField": {
|
|
2800
|
-
"additionalProperties": false,
|
|
2801
|
-
"description": "Fields with the type of [\`string\`](#StringField) support requirements. This is an array of requirements that are used to validate the value the user inputs. Each requirement can be provided with its own custom error message, allowing for better feedback towards users.
|
|
2802
|
-
|
|
2803
|
-
For example, the [\`regex\`](#RegexRequirement) requirement type allows you to validate a field using [Regular Expressions](https://learnxinyminutes.com/docs/pcre/). So for example if you want a string field that requires a field to be an email address that ends with “@appsemble.com”, you could enforce this like so:
|
|
2804
|
-
|
|
2805
|
-
\`\`\`yaml type: string requirements: - regex: \\w+@appsemble\\.com errorMessage: Value does not end with “@appsemble.com” \`\`\`",
|
|
2806
|
-
"properties": {
|
|
2807
|
-
"defaultValue": {
|
|
2808
|
-
"description": "The default value of the field.",
|
|
2809
|
-
"type": "string",
|
|
2810
|
-
},
|
|
2811
|
-
"format": {
|
|
2812
|
-
"description": "The format to use for validation.",
|
|
2813
|
-
"enum": [
|
|
2814
|
-
"email",
|
|
2815
|
-
"password",
|
|
2816
|
-
"url",
|
|
2817
|
-
],
|
|
2818
|
-
"type": "string",
|
|
2819
|
-
},
|
|
2820
|
-
"icon": {
|
|
2821
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2822
|
-
"format": "fontawesome",
|
|
2823
|
-
"type": "string",
|
|
2824
|
-
},
|
|
2825
|
-
"inline": {
|
|
2826
|
-
"const": true,
|
|
2827
|
-
"description": "Combines fields on the same row.
|
|
2828
|
-
|
|
2829
|
-
Fields are combined in order if set to true.",
|
|
2830
|
-
"type": "boolean",
|
|
2831
|
-
},
|
|
2832
|
-
"label": {
|
|
2833
|
-
"description": "The label displayed next to the field.",
|
|
2834
|
-
"format": "remapper",
|
|
2835
|
-
},
|
|
2836
|
-
"multiline": {
|
|
2837
|
-
"default": false,
|
|
2838
|
-
"description": "Whether the string field should be multiline or not.",
|
|
2839
|
-
"type": "boolean",
|
|
2840
|
-
},
|
|
2841
|
-
"name": {
|
|
2842
|
-
"description": "The name used when storing this field.",
|
|
2843
|
-
"type": "string",
|
|
2844
|
-
},
|
|
2845
|
-
"placeholder": {
|
|
2846
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2847
|
-
"format": "remapper",
|
|
2848
|
-
},
|
|
2849
|
-
"readOnly": {
|
|
2850
|
-
"description": "Whether the field should be read-only.",
|
|
2851
|
-
"type": "boolean",
|
|
2852
|
-
},
|
|
2853
|
-
"requirements": {
|
|
2854
|
-
"description": "The requirements that are used to validate the field with.
|
|
2855
|
-
|
|
2856
|
-
These are evaluated in the order they are defined in.",
|
|
2857
|
-
"items": {
|
|
2858
|
-
"$ref": "#/definitions/StringRequirement",
|
|
2859
|
-
},
|
|
2860
|
-
"type": "array",
|
|
2861
|
-
},
|
|
2862
|
-
"show": {
|
|
2863
|
-
"description": "Displays field only if condition is true.
|
|
2864
|
-
|
|
2865
|
-
If not specified, the field will display.",
|
|
2866
|
-
"format": "remapper",
|
|
2867
|
-
},
|
|
2868
|
-
"tag": {
|
|
2869
|
-
"description": "The label that is shown to the right of the label.
|
|
2870
|
-
|
|
2871
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2872
|
-
"format": "remapper",
|
|
2873
|
-
},
|
|
2874
|
-
"type": {
|
|
2875
|
-
"const": "string",
|
|
2876
|
-
"description": "The type of the field.",
|
|
2877
|
-
"type": "string",
|
|
2878
|
-
},
|
|
2879
|
-
},
|
|
2880
|
-
"required": [
|
|
2881
|
-
"name",
|
|
2882
|
-
"type",
|
|
2883
|
-
],
|
|
2884
|
-
"type": "object",
|
|
2885
|
-
},
|
|
2886
|
-
"StringRequirement": {
|
|
2887
|
-
"anyOf": [
|
|
2888
|
-
{
|
|
2889
|
-
"$ref": "#/definitions/LengthRequirement",
|
|
2890
|
-
},
|
|
2891
|
-
{
|
|
2892
|
-
"$ref": "#/definitions/RegexRequirement",
|
|
2893
|
-
},
|
|
2894
|
-
{
|
|
2895
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
2896
|
-
},
|
|
2897
|
-
],
|
|
2898
|
-
"description": "All requirements applicable to string fields.",
|
|
2899
|
-
},
|
|
2900
|
-
"SyncEnumField": {
|
|
2901
|
-
"additionalProperties": false,
|
|
2902
|
-
"description": "A dropdown list containing a list of predetermined values.",
|
|
2903
|
-
"properties": {
|
|
2904
|
-
"defaultValue": {
|
|
2905
|
-
"$ref": "#/definitions/JsonValue",
|
|
2906
|
-
"description": "The default value of the field.",
|
|
2907
|
-
},
|
|
2908
|
-
"enum": {
|
|
2909
|
-
"description": "The list of available choices.",
|
|
2910
|
-
"items": {
|
|
2911
|
-
"$ref": "#/definitions/Choice",
|
|
2912
|
-
},
|
|
2913
|
-
"type": "array",
|
|
2914
|
-
},
|
|
2915
|
-
"icon": {
|
|
2916
|
-
"description": "Name of the [Font Awesome icon](https://fontawesome.com/icons?m=free) to be displayed next to the label.",
|
|
2917
|
-
"format": "fontawesome",
|
|
2918
|
-
"type": "string",
|
|
2919
|
-
},
|
|
2920
|
-
"inline": {
|
|
2921
|
-
"const": true,
|
|
2922
|
-
"description": "Combines fields on the same row.
|
|
2923
|
-
|
|
2924
|
-
Fields are combined in order if set to true.",
|
|
2925
|
-
"type": "boolean",
|
|
2926
|
-
},
|
|
2927
|
-
"label": {
|
|
2928
|
-
"description": "The label displayed next to the field.",
|
|
2929
|
-
"format": "remapper",
|
|
2930
|
-
},
|
|
2931
|
-
"name": {
|
|
2932
|
-
"description": "The name used when storing this field.",
|
|
2933
|
-
"type": "string",
|
|
2934
|
-
},
|
|
2935
|
-
"placeholder": {
|
|
2936
|
-
"description": "The placeholder to display when the field is empty.",
|
|
2937
|
-
"format": "remapper",
|
|
2938
|
-
},
|
|
2939
|
-
"readOnly": {
|
|
2940
|
-
"description": "Whether the field should be read-only.",
|
|
2941
|
-
"type": "boolean",
|
|
2942
|
-
},
|
|
2943
|
-
"requirements": {
|
|
2944
|
-
"description": "The requirements that are used to validate the field with.
|
|
2945
|
-
|
|
2946
|
-
These are evaluated in the order they are defined in.",
|
|
2947
|
-
"items": {
|
|
2948
|
-
"$ref": "#/definitions/RequiredRequirement",
|
|
2949
|
-
},
|
|
2950
|
-
"type": "array",
|
|
2951
|
-
},
|
|
2952
|
-
"show": {
|
|
2953
|
-
"description": "Displays field only if condition is true.
|
|
2954
|
-
|
|
2955
|
-
If not specified, the field will display.",
|
|
2956
|
-
"format": "remapper",
|
|
2957
|
-
},
|
|
2958
|
-
"tag": {
|
|
2959
|
-
"description": "The label that is shown to the right of the label.
|
|
2960
|
-
|
|
2961
|
-
Replaces the optional label if the field is optional. Won’t display if the field has no label of its own.",
|
|
2962
|
-
"format": "remapper",
|
|
2963
|
-
},
|
|
2964
|
-
"type": {
|
|
2965
|
-
"const": "enum",
|
|
2966
|
-
"description": "The type of the field.",
|
|
2967
|
-
"type": "string",
|
|
2968
|
-
},
|
|
2969
|
-
},
|
|
2970
|
-
"required": [
|
|
2971
|
-
"enum",
|
|
2972
|
-
"name",
|
|
2973
|
-
"type",
|
|
2974
|
-
],
|
|
2975
|
-
"type": "object",
|
|
2976
|
-
},
|
|
2977
|
-
"TimeRangeRequirement": {
|
|
2978
|
-
"additionalProperties": false,
|
|
2979
|
-
"description": "A requirement used to enforce the range of available times.",
|
|
2980
|
-
"properties": {
|
|
2981
|
-
"errorMessage": {
|
|
2982
|
-
"description": "The error message that is displayed when the requirement is not met.",
|
|
2983
|
-
"format": "remapper",
|
|
2984
|
-
},
|
|
2985
|
-
"maxTime": {
|
|
2986
|
-
"default": "23:59",
|
|
2987
|
-
"description": "The maximum time that can be selected.",
|
|
2988
|
-
"examples": [
|
|
2989
|
-
"15:20",
|
|
2990
|
-
],
|
|
2991
|
-
"pattern": "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
2992
|
-
"type": "string",
|
|
2993
|
-
},
|
|
2994
|
-
"minTime": {
|
|
2995
|
-
"default": "00:00",
|
|
2996
|
-
"description": "The minimum time that can be selected.",
|
|
2997
|
-
"examples": [
|
|
2998
|
-
"15:20",
|
|
2999
|
-
],
|
|
3000
|
-
"pattern": "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
3001
|
-
"type": "string",
|
|
3002
|
-
},
|
|
3003
|
-
},
|
|
3004
|
-
"required": [
|
|
3005
|
-
"minTime",
|
|
3006
|
-
"maxTime",
|
|
3007
|
-
],
|
|
3008
|
-
"type": "object",
|
|
3009
|
-
},
|
|
3010
|
-
},
|
|
3011
|
-
"properties": {
|
|
3012
|
-
"autofill": {
|
|
3013
|
-
"additionalProperties": false,
|
|
3014
|
-
"description": "This allows you to add automatic form completion through external API's.",
|
|
3015
|
-
"properties": {
|
|
3016
|
-
"delay": {
|
|
3017
|
-
"default": 1000,
|
|
3018
|
-
"description": "Set how many \`milliseconds\` it must take between keystrokes to be able to send a request.",
|
|
3019
|
-
"type": "number",
|
|
3020
|
-
},
|
|
3021
|
-
"params": {
|
|
3022
|
-
"$ref": "#/definitions/Record%3Cstring%2CRemapper%3E",
|
|
3023
|
-
"description": "Set the search parameters given some predefined mapper keys.",
|
|
3024
|
-
},
|
|
3025
|
-
"response": {
|
|
3026
|
-
"$ref": "#/definitions/Record%3Cstring%2CRemapper%3E",
|
|
3027
|
-
"description": "Set the field values given some predefined mapper keys.",
|
|
3028
|
-
},
|
|
3029
|
-
"route": {
|
|
3030
|
-
"description": "The api route (url) to request data from.",
|
|
3031
|
-
"type": "string",
|
|
3032
|
-
},
|
|
3033
|
-
},
|
|
3034
|
-
"required": [
|
|
3035
|
-
"route",
|
|
3036
|
-
"response",
|
|
3037
|
-
],
|
|
3038
|
-
"type": "object",
|
|
3039
|
-
},
|
|
3040
|
-
"dense": {
|
|
3041
|
-
"default": false,
|
|
3042
|
-
"description": "Whether or not space should be reserved for the help text.
|
|
3043
|
-
|
|
3044
|
-
If this is set to \`true\`, any help text appearing will cause the form input to jump around due to layout changes.",
|
|
3045
|
-
"type": "boolean",
|
|
3046
|
-
},
|
|
3047
|
-
"fields": {
|
|
3048
|
-
"description": "A list of objects describing each field that can be entered in the form.",
|
|
3049
|
-
"items": {
|
|
3050
|
-
"$ref": "#/definitions/Field",
|
|
3051
|
-
},
|
|
3052
|
-
"minItems": 1,
|
|
3053
|
-
"type": "array",
|
|
3054
|
-
},
|
|
3055
|
-
"previous": {
|
|
3056
|
-
"description": "Whether the previous button should be shown.",
|
|
3057
|
-
"type": "boolean",
|
|
3058
|
-
},
|
|
3059
|
-
"requirements": {
|
|
3060
|
-
"description": "A list of requirements that are checked across all of the form data.",
|
|
3061
|
-
"items": {
|
|
3062
|
-
"$ref": "#/definitions/FormRequirement",
|
|
3063
|
-
},
|
|
3064
|
-
"type": "array",
|
|
3065
|
-
},
|
|
3066
|
-
"skipInitialLoad": {
|
|
3067
|
-
"description": "By default the form block will wait until event data is received.
|
|
3068
|
-
|
|
3069
|
-
By setting this to \`true\`, this won’t happen.",
|
|
3070
|
-
"type": "boolean",
|
|
3071
|
-
},
|
|
3072
|
-
},
|
|
3073
|
-
"type": "object",
|
|
3074
|
-
},
|
|
3075
|
-
}
|
|
3076
|
-
`;
|
|
3077
|
-
|
|
3078
|
-
exports[`getBlockConfigFromTypeScript official blocks html 1`] = `
|
|
3079
|
-
{
|
|
3080
|
-
"actions": {
|
|
3081
|
-
"$any": {
|
|
3082
|
-
"description": "Any custom action.
|
|
3083
|
-
These can be used on \`<button>\`, \`<a>\`, and \`<input>\` elements using \`data-click\`.
|
|
3084
|
-
|
|
3085
|
-
If no corresponding \`data-click\` attribute can be found
|
|
3086
|
-
the action will be considered unused and invalid.",
|
|
3087
|
-
},
|
|
3088
|
-
},
|
|
3089
|
-
"events": {
|
|
3090
|
-
"emit": undefined,
|
|
3091
|
-
"listen": {
|
|
3092
|
-
"data": {
|
|
3093
|
-
"description": "Data that can be used in the placeholder remappers.
|
|
3094
|
-
|
|
3095
|
-
All elements specifying \`data-content\` will be updated each time this event is received.",
|
|
3096
|
-
},
|
|
3097
|
-
},
|
|
3098
|
-
},
|
|
3099
|
-
"messages": undefined,
|
|
3100
|
-
"parameters": {
|
|
3101
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3102
|
-
"additionalProperties": false,
|
|
3103
|
-
"definitions": {
|
|
3104
|
-
"Record<string,Remapper>": {
|
|
3105
|
-
"additionalProperties": {
|
|
3106
|
-
"format": "remapper",
|
|
3107
|
-
},
|
|
3108
|
-
"type": "object",
|
|
3109
|
-
},
|
|
3110
|
-
},
|
|
3111
|
-
"properties": {
|
|
3112
|
-
"content": {
|
|
3113
|
-
"description": "The HTML to render.",
|
|
3114
|
-
"type": "string",
|
|
3115
|
-
},
|
|
3116
|
-
"placeholders": {
|
|
3117
|
-
"$ref": "#/definitions/Record%3Cstring%2CRemapper%3E",
|
|
3118
|
-
"description": "The placeholders that are injected on elements with the \`data-content\` property.",
|
|
3119
|
-
},
|
|
3120
|
-
},
|
|
3121
|
-
"required": [
|
|
3122
|
-
"content",
|
|
3123
|
-
],
|
|
3124
|
-
"type": "object",
|
|
3125
|
-
},
|
|
3126
|
-
}
|
|
3127
|
-
`;
|
|
3128
|
-
|
|
3129
|
-
exports[`getBlockConfigFromTypeScript official blocks image 1`] = `
|
|
3130
|
-
{
|
|
3131
|
-
"actions": undefined,
|
|
3132
|
-
"events": undefined,
|
|
3133
|
-
"messages": undefined,
|
|
3134
|
-
"parameters": {
|
|
3135
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3136
|
-
"additionalProperties": false,
|
|
3137
|
-
"properties": {
|
|
3138
|
-
"alignment": {
|
|
3139
|
-
"default": "left",
|
|
3140
|
-
"description": "The alignment of the text content.",
|
|
3141
|
-
"enum": [
|
|
3142
|
-
"center",
|
|
3143
|
-
"left",
|
|
3144
|
-
"right",
|
|
3145
|
-
],
|
|
3146
|
-
"type": "string",
|
|
3147
|
-
},
|
|
3148
|
-
"alt": {
|
|
3149
|
-
"description": "The alt text of the image.",
|
|
3150
|
-
"format": "remapper",
|
|
3151
|
-
},
|
|
3152
|
-
"rounded": {
|
|
3153
|
-
"description": "Is image rounded.",
|
|
3154
|
-
"type": "boolean",
|
|
3155
|
-
},
|
|
3156
|
-
"url": {
|
|
3157
|
-
"description": "The Url of the image.
|
|
3158
|
-
|
|
3159
|
-
Note that this is ignored if the onImage event listener is set.",
|
|
3160
|
-
"format": "remapper",
|
|
3161
|
-
},
|
|
3162
|
-
},
|
|
3163
|
-
"required": [
|
|
3164
|
-
"url",
|
|
3165
|
-
],
|
|
3166
|
-
"type": "object",
|
|
3167
|
-
},
|
|
3168
|
-
}
|
|
3169
|
-
`;
|
|
3170
|
-
|
|
3171
|
-
exports[`getBlockConfigFromTypeScript official blocks list 1`] = `
|
|
3172
|
-
{
|
|
3173
|
-
"actions": {
|
|
3174
|
-
"onClick": {
|
|
3175
|
-
"description": "Action that gets triggered when clicking on a list item.
|
|
3176
|
-
|
|
3177
|
-
If defined, an indicator will show up to show that the list item has a click action.",
|
|
3178
|
-
},
|
|
3179
|
-
},
|
|
3180
|
-
"events": {
|
|
3181
|
-
"emit": undefined,
|
|
3182
|
-
"listen": {
|
|
3183
|
-
"data": {
|
|
3184
|
-
"description": "The event that is triggered when data is received.
|
|
3185
|
-
|
|
3186
|
-
Compatible data that is received will be displayed. Must be a set of data.",
|
|
3187
|
-
},
|
|
3188
|
-
},
|
|
3189
|
-
},
|
|
3190
|
-
"messages": {
|
|
3191
|
-
"error": {
|
|
3192
|
-
"description": "The text that is shown when something went wrong with fetching the data.",
|
|
3193
|
-
},
|
|
3194
|
-
"noData": {
|
|
3195
|
-
"description": "The text that is shown when no data was found.",
|
|
3196
|
-
},
|
|
3197
|
-
},
|
|
3198
|
-
"parameters": {
|
|
3199
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3200
|
-
"additionalProperties": false,
|
|
3201
|
-
"definitions": {
|
|
3202
|
-
"Field": {
|
|
3203
|
-
"additionalProperties": false,
|
|
3204
|
-
"description": "An object representing how a data field should be displayed.",
|
|
3205
|
-
"properties": {
|
|
3206
|
-
"icon": {
|
|
3207
|
-
"description": "The [Font Awesome icon](https://fontawesome.com/icons?m=free) to display in front of the label.
|
|
3208
|
-
|
|
3209
|
-
Will not render if undefined.",
|
|
3210
|
-
"format": "fontawesome",
|
|
3211
|
-
"type": "string",
|
|
3212
|
-
},
|
|
3213
|
-
"label": {
|
|
3214
|
-
"description": "The label to display.
|
|
3215
|
-
|
|
3216
|
-
Will not render if undefined.",
|
|
3217
|
-
"format": "remapper",
|
|
3218
|
-
},
|
|
3219
|
-
"value": {
|
|
3220
|
-
"description": "The name of the field to read from to determine the value to show.
|
|
3221
|
-
|
|
3222
|
-
No value will be rendered if undefined.",
|
|
3223
|
-
"format": "remapper",
|
|
3224
|
-
},
|
|
3225
|
-
},
|
|
3226
|
-
"type": "object",
|
|
3227
|
-
},
|
|
3228
|
-
},
|
|
3229
|
-
"properties": {
|
|
3230
|
-
"base": {
|
|
3231
|
-
"description": "An optional name of the field that contains the data.
|
|
3232
|
-
|
|
3233
|
-
If not defined, received data will be treated as an array.",
|
|
3234
|
-
"type": "string",
|
|
3235
|
-
},
|
|
3236
|
-
"fields": {
|
|
3237
|
-
"description": "A list of fields to display.",
|
|
3238
|
-
"items": {
|
|
3239
|
-
"$ref": "#/definitions/Field",
|
|
3240
|
-
},
|
|
3241
|
-
"type": "array",
|
|
3242
|
-
},
|
|
3243
|
-
"header": {
|
|
3244
|
-
"description": "The header text to display above the list of fields.
|
|
3245
|
-
|
|
3246
|
-
Will not render if undefined.",
|
|
3247
|
-
"format": "remapper",
|
|
3248
|
-
},
|
|
3249
|
-
"icon": {
|
|
3250
|
-
"description": "The icon that displays in front of the header.
|
|
3251
|
-
|
|
3252
|
-
Will not render if undefined.",
|
|
3253
|
-
"format": "fontawesome",
|
|
3254
|
-
"type": "string",
|
|
3255
|
-
},
|
|
3256
|
-
"image": {
|
|
3257
|
-
"description": "The image that is shown to the left of the list item.
|
|
3258
|
-
|
|
3259
|
-
This can be either a full image path or an asset id.",
|
|
3260
|
-
"format": "remapper",
|
|
3261
|
-
},
|
|
3262
|
-
},
|
|
3263
|
-
"type": "object",
|
|
3264
|
-
},
|
|
3265
|
-
}
|
|
3266
|
-
`;
|
|
3267
|
-
|
|
3268
|
-
exports[`getBlockConfigFromTypeScript official blocks map 1`] = `
|
|
3269
|
-
{
|
|
3270
|
-
"actions": {
|
|
3271
|
-
"onMarkerClick": {
|
|
3272
|
-
"description": "Action that gets dispatched when a marker is clicked.",
|
|
3273
|
-
},
|
|
3274
|
-
},
|
|
3275
|
-
"events": {
|
|
3276
|
-
"emit": {
|
|
3277
|
-
"move": {
|
|
3278
|
-
"description": "Event that gets emitted when moving the map around.
|
|
3279
|
-
|
|
3280
|
-
Will apply [OData filters](https://www.odata.org) to limit the range of items fetched. This
|
|
3281
|
-
will be skipped if the move emit event is not defined.",
|
|
3282
|
-
},
|
|
3283
|
-
},
|
|
3284
|
-
"listen": {
|
|
3285
|
-
"center": {
|
|
3286
|
-
"description": "An event that can be triggered to center the map’s position to the user’s current location.",
|
|
3287
|
-
},
|
|
3288
|
-
"data": {
|
|
3289
|
-
"description": "The event that is triggered when data is received.
|
|
3290
|
-
|
|
3291
|
-
Compatible data that is received will be displayed. Must be a set of data.",
|
|
3292
|
-
},
|
|
3293
|
-
"follow": {
|
|
3294
|
-
"description": "Toggles whether or not the map should follow the user’s location. Defaults to not following.
|
|
3295
|
-
|
|
3296
|
-
If the value is exactly \`true\` or \`false\`, the following state will be set to that value.
|
|
3297
|
-
Otherwise, it will toggle between following and not following.",
|
|
3298
|
-
},
|
|
3299
|
-
},
|
|
3300
|
-
},
|
|
3301
|
-
"messages": {
|
|
3302
|
-
"locationError": {
|
|
3303
|
-
"description": "The error message to display when the location couldn’t be determined.",
|
|
3304
|
-
},
|
|
3305
|
-
},
|
|
3306
|
-
"parameters": {
|
|
3307
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3308
|
-
"additionalProperties": false,
|
|
3309
|
-
"definitions": {
|
|
3310
|
-
"AssetMarkerIcon": {
|
|
3311
|
-
"additionalProperties": false,
|
|
3312
|
-
"description": "A marker based on an existing asset.",
|
|
3313
|
-
"properties": {
|
|
3314
|
-
"activeRatio": {
|
|
3315
|
-
"default": 1,
|
|
3316
|
-
"description": "Enlarge an active marker with this ratio.
|
|
3317
|
-
|
|
3318
|
-
This modifier is applied if a marker matches the block data which may be received by the block context. For example, this is applied if a marker matches the data that was passed in from a link action.",
|
|
3319
|
-
"type": "number",
|
|
3320
|
-
},
|
|
3321
|
-
"anchor": {
|
|
3322
|
-
"description": "The anchor X and Y offset used for positioning the image.
|
|
3323
|
-
|
|
3324
|
-
By default, the center of the icon will be used to mark the location. For many icons, it may be desirable to customize this. For example, for a symmetric pin which has a width of 10, and a height of 16, you’ll probably want to set this to \`[5, 16]\`
|
|
3325
|
-
|
|
3326
|
-
The following special cases for [Font Awesome icon](https://fontawesome.com/icons?m=free) are treated in a special way, since they are often used to represent a location:
|
|
3327
|
-
|
|
3328
|
-
- \`map-marker\`
|
|
3329
|
-
- \`map-marker-alt\`
|
|
3330
|
-
- \`map-pin\`
|
|
3331
|
-
- \`thumbtrack\`",
|
|
3332
|
-
"items": {
|
|
3333
|
-
"type": "number",
|
|
3334
|
-
},
|
|
3335
|
-
"maxItems": 2,
|
|
3336
|
-
"minItems": 2,
|
|
3337
|
-
"type": "array",
|
|
3338
|
-
},
|
|
3339
|
-
"asset": {
|
|
3340
|
-
"description": "The id of an asset to use.",
|
|
3341
|
-
"type": "string",
|
|
3342
|
-
},
|
|
3343
|
-
"size": {
|
|
3344
|
-
"default": 28,
|
|
3345
|
-
"description": "The height of marker icons in pixels.",
|
|
3346
|
-
"type": "number",
|
|
3347
|
-
},
|
|
3348
|
-
},
|
|
3349
|
-
"required": [
|
|
3350
|
-
"asset",
|
|
3351
|
-
],
|
|
3352
|
-
"type": "object",
|
|
3353
|
-
},
|
|
3354
|
-
"BulmaColor": {
|
|
3355
|
-
"description": "A color known to Bulma.",
|
|
3356
|
-
"enum": [
|
|
3357
|
-
"danger",
|
|
3358
|
-
"dark",
|
|
3359
|
-
"info",
|
|
3360
|
-
"link",
|
|
3361
|
-
"primary",
|
|
3362
|
-
"success",
|
|
3363
|
-
"warning",
|
|
3364
|
-
"white",
|
|
3365
|
-
],
|
|
3366
|
-
"type": "string",
|
|
3367
|
-
},
|
|
3368
|
-
"FontAwesomeMarkerIcon": {
|
|
3369
|
-
"additionalProperties": false,
|
|
3370
|
-
"description": "A marker based on a [Font Awesome icon](https://fontawesome.com/icons?m=free).",
|
|
3371
|
-
"properties": {
|
|
3372
|
-
"activeRatio": {
|
|
3373
|
-
"default": 1,
|
|
3374
|
-
"description": "Enlarge an active marker with this ratio.
|
|
3375
|
-
|
|
3376
|
-
This modifier is applied if a marker matches the block data which may be received by the block context. For example, this is applied if a marker matches the data that was passed in from a link action.",
|
|
3377
|
-
"type": "number",
|
|
3378
|
-
},
|
|
3379
|
-
"anchor": {
|
|
3380
|
-
"description": "The anchor X and Y offset used for positioning the image.
|
|
3381
|
-
|
|
3382
|
-
By default, the center of the icon will be used to mark the location. For many icons, it may be desirable to customize this. For example, for a symmetric pin which has a width of 10, and a height of 16, you’ll probably want to set this to \`[5, 16]\`
|
|
3383
|
-
|
|
3384
|
-
The following special cases for [Font Awesome icon](https://fontawesome.com/icons?m=free) are treated in a special way, since they are often used to represent a location:
|
|
3385
|
-
|
|
3386
|
-
- \`map-marker\`
|
|
3387
|
-
- \`map-marker-alt\`
|
|
3388
|
-
- \`map-pin\`
|
|
3389
|
-
- \`thumbtrack\`",
|
|
3390
|
-
"items": {
|
|
3391
|
-
"type": "number",
|
|
3392
|
-
},
|
|
3393
|
-
"maxItems": 2,
|
|
3394
|
-
"minItems": 2,
|
|
3395
|
-
"type": "array",
|
|
3396
|
-
},
|
|
3397
|
-
"color": {
|
|
3398
|
-
"$ref": "#/definitions/BulmaColor",
|
|
3399
|
-
"default": "primary",
|
|
3400
|
-
"description": "The color to apply to the icon.",
|
|
3401
|
-
},
|
|
3402
|
-
"icon": {
|
|
3403
|
-
"description": "A [Font Awesome icon](https://fontawesome.com/icons?m=free) name to use.",
|
|
3404
|
-
"format": "fontawesome",
|
|
3405
|
-
"type": "string",
|
|
3406
|
-
},
|
|
3407
|
-
"size": {
|
|
3408
|
-
"default": 28,
|
|
3409
|
-
"description": "The height of marker icons in pixels.",
|
|
3410
|
-
"type": "number",
|
|
3411
|
-
},
|
|
3412
|
-
},
|
|
3413
|
-
"type": "object",
|
|
3414
|
-
},
|
|
3415
|
-
},
|
|
3416
|
-
"properties": {
|
|
3417
|
-
"defaultLocation": {
|
|
3418
|
-
"default": [
|
|
3419
|
-
51.476852,
|
|
3420
|
-
0,
|
|
3421
|
-
],
|
|
3422
|
-
"description": "The location (latitude, longitude) to default to when the user’s location cannot be found.
|
|
3423
|
-
|
|
3424
|
-
This can be used to set the location to something that is more relevant to the user.",
|
|
3425
|
-
"items": {
|
|
3426
|
-
"type": "number",
|
|
3427
|
-
},
|
|
3428
|
-
"maxItems": 2,
|
|
3429
|
-
"minItems": 2,
|
|
3430
|
-
"type": "array",
|
|
3431
|
-
},
|
|
3432
|
-
"disableClustering": {
|
|
3433
|
-
"description": "Whether clustering should be disabled.
|
|
3434
|
-
|
|
3435
|
-
By default markers are clustered if they are too close to each other.",
|
|
3436
|
-
"type": "boolean",
|
|
3437
|
-
},
|
|
3438
|
-
"filterLatitudeName": {
|
|
3439
|
-
"default": "lat",
|
|
3440
|
-
"description": "The name of the latitude property in the resource.
|
|
3441
|
-
|
|
3442
|
-
These are used for filtering purposes.",
|
|
3443
|
-
"type": "string",
|
|
3444
|
-
},
|
|
3445
|
-
"filterLongitudeName": {
|
|
3446
|
-
"default": "lng",
|
|
3447
|
-
"description": "The name of the longitude property in the resource.
|
|
3448
|
-
|
|
3449
|
-
These are used for filtering purposes.",
|
|
3450
|
-
"type": "string",
|
|
3451
|
-
},
|
|
3452
|
-
"icons": {
|
|
3453
|
-
"anyOf": [
|
|
3454
|
-
{
|
|
3455
|
-
"$ref": "#/definitions/AssetMarkerIcon",
|
|
3456
|
-
},
|
|
3457
|
-
{
|
|
3458
|
-
"$ref": "#/definitions/FontAwesomeMarkerIcon",
|
|
3459
|
-
},
|
|
3460
|
-
],
|
|
3461
|
-
"description": "Custom icon configuration.",
|
|
3462
|
-
},
|
|
3463
|
-
"latitude": {
|
|
3464
|
-
"description": "The remapper used to retrieve the latitude.",
|
|
3465
|
-
"format": "remapper",
|
|
3466
|
-
},
|
|
3467
|
-
"longitude": {
|
|
3468
|
-
"description": "The remapper used to retrieve the longitude.",
|
|
3469
|
-
"format": "remapper",
|
|
3470
|
-
},
|
|
3471
|
-
"maxClusterRadius": {
|
|
3472
|
-
"default": 80,
|
|
3473
|
-
"description": "The maximum radius that a cluster will cover from the central marker (in pixels).
|
|
3474
|
-
|
|
3475
|
-
Decreasing will make more, smaller clusters. One can also use a function that accepts the current map zoom and returns the maximum cluster radius in pixels.",
|
|
3476
|
-
"minimum": 1,
|
|
3477
|
-
"type": "number",
|
|
3478
|
-
},
|
|
3479
|
-
},
|
|
3480
|
-
"required": [
|
|
3481
|
-
"latitude",
|
|
3482
|
-
"longitude",
|
|
3483
|
-
],
|
|
3484
|
-
"type": "object",
|
|
3485
|
-
},
|
|
3486
|
-
}
|
|
3487
|
-
`;
|
|
3488
|
-
|
|
3489
|
-
exports[`getBlockConfigFromTypeScript official blocks markdown 1`] = `
|
|
3490
|
-
{
|
|
3491
|
-
"actions": undefined,
|
|
3492
|
-
"events": {
|
|
3493
|
-
"emit": undefined,
|
|
3494
|
-
"listen": {
|
|
3495
|
-
"data": {
|
|
3496
|
-
"description": "Data that can be used to populate \`content\` with dynamic content.
|
|
3497
|
-
|
|
3498
|
-
If defined, a loader will be shown until this event is triggered.",
|
|
3499
|
-
},
|
|
3500
|
-
},
|
|
3501
|
-
},
|
|
3502
|
-
"messages": undefined,
|
|
3503
|
-
"parameters": {
|
|
3504
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3505
|
-
"additionalProperties": false,
|
|
3506
|
-
"properties": {
|
|
3507
|
-
"alignment": {
|
|
3508
|
-
"default": "left",
|
|
3509
|
-
"description": "The alignment of the text content.",
|
|
3510
|
-
"enum": [
|
|
3511
|
-
"center",
|
|
3512
|
-
"left",
|
|
3513
|
-
"right",
|
|
3514
|
-
],
|
|
3515
|
-
"type": "string",
|
|
3516
|
-
},
|
|
3517
|
-
"centered": {
|
|
3518
|
-
"description": "Whether or not the content should be centered.",
|
|
3519
|
-
"type": "boolean",
|
|
3520
|
-
},
|
|
3521
|
-
"content": {
|
|
3522
|
-
"description": "A string containing the [markdown content](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) to display.",
|
|
3523
|
-
"format": "remapper",
|
|
3524
|
-
},
|
|
3525
|
-
},
|
|
3526
|
-
"required": [
|
|
3527
|
-
"content",
|
|
3528
|
-
],
|
|
3529
|
-
"type": "object",
|
|
3530
|
-
},
|
|
3531
|
-
}
|
|
3532
|
-
`;
|
|
3533
|
-
|
|
3534
|
-
exports[`getBlockConfigFromTypeScript official blocks qr-scan 1`] = `
|
|
3535
|
-
{
|
|
3536
|
-
"actions": undefined,
|
|
3537
|
-
"events": {
|
|
3538
|
-
"emit": {
|
|
3539
|
-
"foundQr": {
|
|
3540
|
-
"description": "Event that gets emitted once the qr scanner has identified and resolved a QR code.
|
|
3541
|
-
|
|
3542
|
-
foundQr event only holds the string of the QR.",
|
|
3543
|
-
},
|
|
3544
|
-
},
|
|
3545
|
-
"listen": undefined,
|
|
3546
|
-
},
|
|
3547
|
-
"messages": undefined,
|
|
3548
|
-
"parameters": {
|
|
3549
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3550
|
-
"additionalProperties": false,
|
|
3551
|
-
"properties": {
|
|
3552
|
-
"drawQr": {
|
|
3553
|
-
"default": false,
|
|
3554
|
-
"description": "If true, the block will draw a rectangle around the QR code when it’s found.",
|
|
3555
|
-
"type": "boolean",
|
|
3556
|
-
},
|
|
3557
|
-
"height": {
|
|
3558
|
-
"description": "Video element height",
|
|
3559
|
-
"type": "number",
|
|
3560
|
-
},
|
|
3561
|
-
"width": {
|
|
3562
|
-
"description": "Video element width",
|
|
3563
|
-
"type": "number",
|
|
3564
|
-
},
|
|
3565
|
-
},
|
|
3566
|
-
"type": "object",
|
|
3567
|
-
},
|
|
3568
|
-
}
|
|
3569
|
-
`;
|
|
3570
|
-
|
|
3571
|
-
exports[`getBlockConfigFromTypeScript official blocks stats 1`] = `
|
|
3572
|
-
{
|
|
3573
|
-
"actions": undefined,
|
|
3574
|
-
"events": {
|
|
3575
|
-
"emit": undefined,
|
|
3576
|
-
"listen": {
|
|
3577
|
-
"data": {
|
|
3578
|
-
"description": "On what event to listen for incoming data to display.",
|
|
3579
|
-
},
|
|
3580
|
-
},
|
|
3581
|
-
},
|
|
3582
|
-
"messages": undefined,
|
|
3583
|
-
"parameters": {
|
|
3584
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3585
|
-
"additionalProperties": false,
|
|
3586
|
-
"definitions": {
|
|
3587
|
-
"Field": {
|
|
3588
|
-
"additionalProperties": false,
|
|
3589
|
-
"description": "An object describing what a stats field looks like.",
|
|
3590
|
-
"properties": {
|
|
3591
|
-
"icon": {
|
|
3592
|
-
"description": "The [Font Awesome icon](https://fontawesome.com/icons?m=free) to render.",
|
|
3593
|
-
"format": "fontawesome",
|
|
3594
|
-
"type": "string",
|
|
3595
|
-
},
|
|
3596
|
-
"label": {
|
|
3597
|
-
"description": "The label to render.",
|
|
3598
|
-
"format": "remapper",
|
|
3599
|
-
},
|
|
3600
|
-
"value": {
|
|
3601
|
-
"description": "The value of the property to render.",
|
|
3602
|
-
"format": "remapper",
|
|
3603
|
-
},
|
|
3604
|
-
},
|
|
3605
|
-
"required": [
|
|
3606
|
-
"value",
|
|
3607
|
-
"icon",
|
|
3608
|
-
],
|
|
3609
|
-
"type": "object",
|
|
3610
|
-
},
|
|
3611
|
-
},
|
|
3612
|
-
"properties": {
|
|
3613
|
-
"fields": {
|
|
3614
|
-
"description": "A list of objects describing what the stats should look like.",
|
|
3615
|
-
"items": {
|
|
3616
|
-
"$ref": "#/definitions/Field",
|
|
3617
|
-
},
|
|
3618
|
-
"type": "array",
|
|
3619
|
-
},
|
|
3620
|
-
},
|
|
3621
|
-
"required": [
|
|
3622
|
-
"fields",
|
|
3623
|
-
],
|
|
3624
|
-
"type": "object",
|
|
3625
|
-
},
|
|
3626
|
-
}
|
|
3627
|
-
`;
|
|
3628
|
-
|
|
3629
|
-
exports[`getBlockConfigFromTypeScript official blocks table 1`] = `
|
|
3630
|
-
{
|
|
3631
|
-
"actions": {
|
|
3632
|
-
"$any": {
|
|
3633
|
-
"description": "Custom action mapping.",
|
|
3634
|
-
},
|
|
3635
|
-
"onClick": {
|
|
3636
|
-
"description": "The default action that is triggered when clicking on a row.
|
|
3637
|
-
|
|
3638
|
-
This does not trigger if the field has a different action specified.",
|
|
3639
|
-
},
|
|
3640
|
-
},
|
|
3641
|
-
"events": {
|
|
3642
|
-
"emit": undefined,
|
|
3643
|
-
"listen": {
|
|
3644
|
-
"data": {
|
|
3645
|
-
"description": "Listener for data used to display data in the table.",
|
|
3646
|
-
},
|
|
3647
|
-
},
|
|
3648
|
-
},
|
|
3649
|
-
"messages": {
|
|
3650
|
-
"emptyMessage": {
|
|
3651
|
-
"description": "The message to display when the data to display is empty.",
|
|
3652
|
-
},
|
|
3653
|
-
"error": {
|
|
3654
|
-
"description": "The message to display when data could not be loaded.",
|
|
3655
|
-
},
|
|
3656
|
-
},
|
|
3657
|
-
"parameters": {
|
|
3658
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3659
|
-
"additionalProperties": false,
|
|
3660
|
-
"definitions": {
|
|
3661
|
-
"BulmaColor": {
|
|
3662
|
-
"description": "A color known to Bulma.",
|
|
3663
|
-
"enum": [
|
|
3664
|
-
"danger",
|
|
3665
|
-
"dark",
|
|
3666
|
-
"info",
|
|
3667
|
-
"link",
|
|
3668
|
-
"primary",
|
|
3669
|
-
"success",
|
|
3670
|
-
"warning",
|
|
3671
|
-
"white",
|
|
3672
|
-
],
|
|
3673
|
-
"type": "string",
|
|
3674
|
-
},
|
|
3675
|
-
"BulmaSize": {
|
|
3676
|
-
"enum": [
|
|
3677
|
-
"large",
|
|
3678
|
-
"medium",
|
|
3679
|
-
"normal",
|
|
3680
|
-
"small",
|
|
3681
|
-
],
|
|
3682
|
-
"type": "string",
|
|
3683
|
-
},
|
|
3684
|
-
"Button": {
|
|
3685
|
-
"additionalProperties": false,
|
|
3686
|
-
"properties": {
|
|
3687
|
-
"alignment": {
|
|
3688
|
-
"description": "Whether the content of the cell should be aligned left, right, or centered",
|
|
3689
|
-
"enum": [
|
|
3690
|
-
"center",
|
|
3691
|
-
"left",
|
|
3692
|
-
"right",
|
|
3693
|
-
],
|
|
3694
|
-
"type": "string",
|
|
3695
|
-
},
|
|
3696
|
-
"button": {
|
|
3697
|
-
"additionalProperties": false,
|
|
3698
|
-
"description": "The definition of the contents and styling of the button.",
|
|
3699
|
-
"properties": {
|
|
3700
|
-
"color": {
|
|
3701
|
-
"$ref": "#/definitions/BulmaColor",
|
|
3702
|
-
"default": "primary",
|
|
3703
|
-
"description": "The color of the button.",
|
|
3704
|
-
},
|
|
3705
|
-
"disabled": {
|
|
3706
|
-
"description": "Whether the button should be disabled.
|
|
3707
|
-
|
|
3708
|
-
If the resulting remapper value is truthy, the button will be disabled.",
|
|
3709
|
-
"format": "remapper",
|
|
3710
|
-
},
|
|
3711
|
-
"fullwidth": {
|
|
3712
|
-
"description": "Whether the button should be full width or not.
|
|
3713
|
-
|
|
3714
|
-
By default buttons only take up as much space as needed.",
|
|
3715
|
-
"type": "boolean",
|
|
3716
|
-
},
|
|
3717
|
-
"icon": {
|
|
3718
|
-
"description": "An optional FontAwesome icon to display inside of the button.",
|
|
3719
|
-
"format": "fontawesome",
|
|
3720
|
-
"type": "string",
|
|
3721
|
-
},
|
|
3722
|
-
"inverted": {
|
|
3723
|
-
"description": "Whether the text and background colors should be inverted.",
|
|
3724
|
-
"type": "boolean",
|
|
3725
|
-
},
|
|
3726
|
-
"label": {
|
|
3727
|
-
"description": "The label to display inside of the button.",
|
|
3728
|
-
"format": "remapper",
|
|
3729
|
-
},
|
|
3730
|
-
"light": {
|
|
3731
|
-
"description": "When set to true, the ‘light’ set of Bulma colors are used.",
|
|
3732
|
-
"type": "boolean",
|
|
3733
|
-
},
|
|
3734
|
-
"outlined": {
|
|
3735
|
-
"description": "Whether the button should display its colors in the outlines.",
|
|
3736
|
-
"type": "boolean",
|
|
3737
|
-
},
|
|
3738
|
-
"rounded": {
|
|
3739
|
-
"description": "Whether the button should be rounded.",
|
|
3740
|
-
"type": "boolean",
|
|
3741
|
-
},
|
|
3742
|
-
"size": {
|
|
3743
|
-
"$ref": "#/definitions/BulmaSize",
|
|
3744
|
-
"default": "normal",
|
|
3745
|
-
"description": "The size of the button.",
|
|
3746
|
-
},
|
|
3747
|
-
"title": {
|
|
3748
|
-
"description": "The title for the button.
|
|
3749
|
-
|
|
3750
|
-
Describe what the button does. This helps with accessibility for people using screen readers.",
|
|
3751
|
-
"format": "remapper",
|
|
3752
|
-
},
|
|
3753
|
-
},
|
|
3754
|
-
"type": "object",
|
|
3755
|
-
},
|
|
3756
|
-
"label": {
|
|
3757
|
-
"description": "An optional label used in the header of the table.
|
|
3758
|
-
|
|
3759
|
-
If this isn’t specified, no label will be shown. If no fields have a label, the table header row won’t be shown.",
|
|
3760
|
-
"format": "remapper",
|
|
3761
|
-
},
|
|
3762
|
-
"onClick": {
|
|
3763
|
-
"description": "The name of the action to trigger when clicking on this field.",
|
|
3764
|
-
"format": "action",
|
|
3765
|
-
"type": "string",
|
|
3766
|
-
},
|
|
3767
|
-
},
|
|
3768
|
-
"required": [
|
|
3769
|
-
"button",
|
|
3770
|
-
],
|
|
3771
|
-
"type": "object",
|
|
3772
|
-
},
|
|
3773
|
-
"Dropdown": {
|
|
3774
|
-
"additionalProperties": false,
|
|
3775
|
-
"properties": {
|
|
3776
|
-
"alignment": {
|
|
3777
|
-
"description": "Whether the content of the cell should be aligned left, right, or centered",
|
|
3778
|
-
"enum": [
|
|
3779
|
-
"center",
|
|
3780
|
-
"left",
|
|
3781
|
-
"right",
|
|
3782
|
-
],
|
|
3783
|
-
"type": "string",
|
|
3784
|
-
},
|
|
3785
|
-
"dropdown": {
|
|
3786
|
-
"additionalProperties": false,
|
|
3787
|
-
"properties": {
|
|
3788
|
-
"alignment": {
|
|
3789
|
-
"default": "right",
|
|
3790
|
-
"description": "How the dropdown should be aligned.",
|
|
3791
|
-
"enum": [
|
|
3792
|
-
"left",
|
|
3793
|
-
"right",
|
|
3794
|
-
],
|
|
3795
|
-
"type": "string",
|
|
3796
|
-
},
|
|
3797
|
-
"icon": {
|
|
3798
|
-
"description": "The icon to show in the dropdown button.",
|
|
3799
|
-
"format": "fontawesome",
|
|
3800
|
-
"type": "string",
|
|
3801
|
-
},
|
|
3802
|
-
"label": {
|
|
3803
|
-
"description": "The text to show in the dropdown button.",
|
|
3804
|
-
"format": "remapper",
|
|
3805
|
-
},
|
|
3806
|
-
"options": {
|
|
3807
|
-
"description": "The list of options to display. Must have at least 1 option.",
|
|
3808
|
-
"items": {
|
|
3809
|
-
"$ref": "#/definitions/DropdownOption",
|
|
3810
|
-
},
|
|
3811
|
-
"minItems": 1,
|
|
3812
|
-
"type": "array",
|
|
3813
|
-
},
|
|
3814
|
-
},
|
|
3815
|
-
"required": [
|
|
3816
|
-
"options",
|
|
3817
|
-
],
|
|
3818
|
-
"type": "object",
|
|
3819
|
-
},
|
|
3820
|
-
"label": {
|
|
3821
|
-
"description": "An optional label used in the header of the table.
|
|
3822
|
-
|
|
3823
|
-
If this isn’t specified, no label will be shown. If no fields have a label, the table header row won’t be shown.",
|
|
3824
|
-
"format": "remapper",
|
|
3825
|
-
},
|
|
3826
|
-
},
|
|
3827
|
-
"required": [
|
|
3828
|
-
"dropdown",
|
|
3829
|
-
],
|
|
3830
|
-
"type": "object",
|
|
3831
|
-
},
|
|
3832
|
-
"DropdownOption": {
|
|
3833
|
-
"additionalProperties": false,
|
|
3834
|
-
"properties": {
|
|
3835
|
-
"icon": {
|
|
3836
|
-
"description": "The icon to show in the option.",
|
|
3837
|
-
"format": "fontawesome",
|
|
3838
|
-
"type": "string",
|
|
3839
|
-
},
|
|
3840
|
-
"label": {
|
|
3841
|
-
"description": "The text to show in the option.",
|
|
3842
|
-
"format": "remapper",
|
|
3843
|
-
},
|
|
3844
|
-
"onClick": {
|
|
3845
|
-
"description": "The action that will be called when selecting this option.",
|
|
3846
|
-
"format": "action",
|
|
3847
|
-
"type": "string",
|
|
3848
|
-
},
|
|
3849
|
-
},
|
|
3850
|
-
"required": [
|
|
3851
|
-
"onClick",
|
|
3852
|
-
],
|
|
3853
|
-
"type": "object",
|
|
3854
|
-
},
|
|
3855
|
-
"Field": {
|
|
3856
|
-
"additionalProperties": false,
|
|
3857
|
-
"description": "Represents a column that should be displayed in the table.",
|
|
3858
|
-
"properties": {
|
|
3859
|
-
"alignment": {
|
|
3860
|
-
"description": "Whether the content of the cell should be aligned left, right, or centered",
|
|
3861
|
-
"enum": [
|
|
3862
|
-
"center",
|
|
3863
|
-
"left",
|
|
3864
|
-
"right",
|
|
3865
|
-
],
|
|
3866
|
-
"type": "string",
|
|
3867
|
-
},
|
|
3868
|
-
"label": {
|
|
3869
|
-
"description": "An optional label used in the header of the table.
|
|
3870
|
-
|
|
3871
|
-
If this isn’t specified, no label will be shown. If no fields have a label, the table header row won’t be shown.",
|
|
3872
|
-
"format": "remapper",
|
|
3873
|
-
},
|
|
3874
|
-
"onClick": {
|
|
3875
|
-
"description": "The name of the action to trigger when clicking on this field.",
|
|
3876
|
-
"format": "action",
|
|
3877
|
-
"type": "string",
|
|
3878
|
-
},
|
|
3879
|
-
"value": {
|
|
3880
|
-
"description": "The value of the field.",
|
|
3881
|
-
"format": "remapper",
|
|
3882
|
-
},
|
|
3883
|
-
},
|
|
3884
|
-
"required": [
|
|
3885
|
-
"value",
|
|
3886
|
-
],
|
|
3887
|
-
"type": "object",
|
|
3888
|
-
},
|
|
3889
|
-
"RepeatedField": {
|
|
3890
|
-
"additionalProperties": false,
|
|
3891
|
-
"description": "Repeated fields based on an input array.
|
|
3892
|
-
|
|
3893
|
-
Only one repeated field is allowed, only the first RepeatedField is considered.",
|
|
3894
|
-
"properties": {
|
|
3895
|
-
"repeat": {
|
|
3896
|
-
"description": "The list of fields that should be repeated for each array item.",
|
|
3897
|
-
"items": {
|
|
3898
|
-
"anyOf": [
|
|
3899
|
-
{
|
|
3900
|
-
"$ref": "#/definitions/Button",
|
|
3901
|
-
},
|
|
3902
|
-
{
|
|
3903
|
-
"$ref": "#/definitions/Dropdown",
|
|
3904
|
-
},
|
|
3905
|
-
{
|
|
3906
|
-
"$ref": "#/definitions/Field",
|
|
3907
|
-
},
|
|
3908
|
-
],
|
|
3909
|
-
},
|
|
3910
|
-
"type": "array",
|
|
3911
|
-
},
|
|
3912
|
-
"value": {
|
|
3913
|
-
"description": "The value to use as the base of the repeated field.
|
|
3914
|
-
|
|
3915
|
-
Should be an array of data.",
|
|
3916
|
-
"format": "remapper",
|
|
3917
|
-
},
|
|
3918
|
-
},
|
|
3919
|
-
"required": [
|
|
3920
|
-
"repeat",
|
|
3921
|
-
"value",
|
|
3922
|
-
],
|
|
3923
|
-
"type": "object",
|
|
3924
|
-
},
|
|
3925
|
-
},
|
|
3926
|
-
"properties": {
|
|
3927
|
-
"fields": {
|
|
3928
|
-
"description": "A list of fields to display.",
|
|
3929
|
-
"items": {
|
|
3930
|
-
"anyOf": [
|
|
3931
|
-
{
|
|
3932
|
-
"$ref": "#/definitions/Button",
|
|
3933
|
-
},
|
|
3934
|
-
{
|
|
3935
|
-
"$ref": "#/definitions/Dropdown",
|
|
3936
|
-
},
|
|
3937
|
-
{
|
|
3938
|
-
"$ref": "#/definitions/Field",
|
|
3939
|
-
},
|
|
3940
|
-
{
|
|
3941
|
-
"$ref": "#/definitions/RepeatedField",
|
|
3942
|
-
},
|
|
3943
|
-
],
|
|
3944
|
-
},
|
|
3945
|
-
"type": "array",
|
|
3946
|
-
},
|
|
3947
|
-
},
|
|
3948
|
-
"required": [
|
|
3949
|
-
"fields",
|
|
3950
|
-
],
|
|
3951
|
-
"type": "object",
|
|
3952
|
-
},
|
|
3953
|
-
}
|
|
3954
|
-
`;
|
|
3955
|
-
|
|
3956
|
-
exports[`getBlockConfigFromTypeScript official blocks tiles 1`] = `
|
|
3957
|
-
{
|
|
3958
|
-
"actions": {
|
|
3959
|
-
"onClick": {
|
|
3960
|
-
"description": "This action is triggered when a tile is clicked.",
|
|
3961
|
-
},
|
|
3962
|
-
},
|
|
3963
|
-
"events": {
|
|
3964
|
-
"emit": undefined,
|
|
3965
|
-
"listen": {
|
|
3966
|
-
"data": {
|
|
3967
|
-
"description": "On what event to listen for incoming data to display.",
|
|
3968
|
-
},
|
|
3969
|
-
},
|
|
3970
|
-
},
|
|
3971
|
-
"messages": {
|
|
3972
|
-
"loadError": {
|
|
3973
|
-
"description": "This message is displayed if there was a problem loading the message.",
|
|
3974
|
-
},
|
|
3975
|
-
},
|
|
3976
|
-
"parameters": {
|
|
3977
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3978
|
-
"additionalProperties": false,
|
|
3979
|
-
"properties": {
|
|
3980
|
-
"color": {
|
|
3981
|
-
"description": "This color is used to fill the background of the tile.
|
|
3982
|
-
|
|
3983
|
-
Takes either a hex color or a [Bulma color](https://bulma.io/documentation/helpers/color-helpers)",
|
|
3984
|
-
"format": "remapper",
|
|
3985
|
-
},
|
|
3986
|
-
"icon": {
|
|
3987
|
-
"description": "The [Font Awesome icon](https://fontawesome.com/icons?m=free) to render.
|
|
3988
|
-
|
|
3989
|
-
This is ignored if an asset can be resolved.",
|
|
3990
|
-
"format": "remapper",
|
|
3991
|
-
},
|
|
3992
|
-
"image": {
|
|
3993
|
-
"description": "This can be used to render an image. This can be either an asset ID or name, or a full URL.
|
|
3994
|
-
|
|
3995
|
-
This takes precedence over an icon.",
|
|
3996
|
-
"format": "remapper",
|
|
3997
|
-
},
|
|
3998
|
-
"text": {
|
|
3999
|
-
"description": "The label to render.",
|
|
4000
|
-
"format": "remapper",
|
|
4001
|
-
},
|
|
4002
|
-
},
|
|
4003
|
-
"type": "object",
|
|
4004
|
-
},
|
|
4005
|
-
}
|
|
4006
|
-
`;
|
|
4007
|
-
|
|
4008
|
-
exports[`getBlockConfigFromTypeScript official blocks timer 1`] = `
|
|
4009
|
-
{
|
|
4010
|
-
"actions": undefined,
|
|
4011
|
-
"events": {
|
|
4012
|
-
"emit": {
|
|
4013
|
-
"interval": {
|
|
4014
|
-
"description": "The event to emit on an interval",
|
|
4015
|
-
},
|
|
4016
|
-
},
|
|
4017
|
-
"listen": undefined,
|
|
4018
|
-
},
|
|
4019
|
-
"messages": undefined,
|
|
4020
|
-
"parameters": {
|
|
4021
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4022
|
-
"additionalProperties": false,
|
|
4023
|
-
"properties": {
|
|
4024
|
-
"interval": {
|
|
4025
|
-
"description": "The time between the emitted events in seconds.",
|
|
4026
|
-
"type": "number",
|
|
4027
|
-
},
|
|
4028
|
-
},
|
|
4029
|
-
"required": [
|
|
4030
|
-
"interval",
|
|
4031
|
-
],
|
|
4032
|
-
"type": "object",
|
|
4033
|
-
},
|
|
4034
|
-
}
|
|
4035
|
-
`;
|
|
4036
|
-
|
|
4037
|
-
exports[`getBlockConfigFromTypeScript official blocks video 1`] = `
|
|
4038
|
-
{
|
|
4039
|
-
"actions": {
|
|
4040
|
-
"onFinish": {
|
|
4041
|
-
"description": "The action that is dispatched when the video has finished playing.",
|
|
4042
|
-
},
|
|
4043
|
-
},
|
|
4044
|
-
"events": {
|
|
4045
|
-
"emit": undefined,
|
|
4046
|
-
"listen": {
|
|
4047
|
-
"onVideo": {
|
|
4048
|
-
"description": "The event to listen on for new data.
|
|
4049
|
-
|
|
4050
|
-
The result must be either a video URL or an object containing a property \`url\`.",
|
|
4051
|
-
},
|
|
4052
|
-
},
|
|
4053
|
-
},
|
|
4054
|
-
"messages": {
|
|
4055
|
-
"loadErrorMessage": {
|
|
4056
|
-
"description": "The error message that should be shown when video failed to load.",
|
|
4057
|
-
},
|
|
4058
|
-
},
|
|
4059
|
-
"parameters": {
|
|
4060
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4061
|
-
"additionalProperties": false,
|
|
4062
|
-
"properties": {
|
|
4063
|
-
"autoplay": {
|
|
4064
|
-
"description": "Whether the video should autoplay.
|
|
4065
|
-
|
|
4066
|
-
Note that this does not work on every platform due to platform restrictions.",
|
|
4067
|
-
"type": "boolean",
|
|
4068
|
-
},
|
|
4069
|
-
"height": {
|
|
4070
|
-
"description": "The height of the player.",
|
|
4071
|
-
"type": "string",
|
|
4072
|
-
},
|
|
4073
|
-
"maxHeight": {
|
|
4074
|
-
"description": "The max height of the player.",
|
|
4075
|
-
"type": "string",
|
|
4076
|
-
},
|
|
4077
|
-
"maxWidth": {
|
|
4078
|
-
"description": "The max width of the player.",
|
|
4079
|
-
"type": "string",
|
|
4080
|
-
},
|
|
4081
|
-
"muted": {
|
|
4082
|
-
"description": "Whether the player should default to being muted.",
|
|
4083
|
-
"type": "boolean",
|
|
4084
|
-
},
|
|
4085
|
-
"subtitles": {
|
|
4086
|
-
"description": "If defined, the subtitle track to enable by default.",
|
|
4087
|
-
"format": "remapper",
|
|
4088
|
-
},
|
|
4089
|
-
"url": {
|
|
4090
|
-
"description": "The URL of the video.
|
|
4091
|
-
|
|
4092
|
-
Note that this is ignored if the onVideo event listener is set.",
|
|
4093
|
-
"format": "remapper",
|
|
4094
|
-
},
|
|
4095
|
-
"volume": {
|
|
4096
|
-
"description": "The volume in percentages the video should default to.",
|
|
4097
|
-
"maximum": 100,
|
|
4098
|
-
"minimum": 0,
|
|
4099
|
-
"type": "number",
|
|
4100
|
-
},
|
|
4101
|
-
"width": {
|
|
4102
|
-
"description": "The width of the player.",
|
|
4103
|
-
"type": "string",
|
|
4104
|
-
},
|
|
4105
|
-
},
|
|
4106
|
-
"type": "object",
|
|
4107
|
-
},
|
|
4108
|
-
}
|
|
4109
|
-
`;
|
|
4110
|
-
|
|
4111
|
-
exports[`getBlockConfigFromTypeScript official blocks wordcloud 1`] = `
|
|
4112
|
-
{
|
|
4113
|
-
"actions": undefined,
|
|
4114
|
-
"events": {
|
|
4115
|
-
"emit": undefined,
|
|
4116
|
-
"listen": {
|
|
4117
|
-
"data": {
|
|
4118
|
-
"description": "This event can be used to receive incoming data to display.",
|
|
4119
|
-
},
|
|
4120
|
-
},
|
|
4121
|
-
},
|
|
4122
|
-
"messages": {
|
|
4123
|
-
"empty": {
|
|
4124
|
-
"description": "This message is displayed if the data is empty.",
|
|
4125
|
-
},
|
|
4126
|
-
"error": {
|
|
4127
|
-
"description": "This message is displayed if there was a problem loading the data.",
|
|
4128
|
-
},
|
|
4129
|
-
"loading": {
|
|
4130
|
-
"description": "This message is displayed if no data has been loaded yet.",
|
|
4131
|
-
},
|
|
4132
|
-
"unsupported": {
|
|
4133
|
-
"description": "This message is displayed if the browser does not support the block",
|
|
4134
|
-
},
|
|
4135
|
-
},
|
|
4136
|
-
"parameters": {
|
|
4137
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4138
|
-
"additionalProperties": false,
|
|
4139
|
-
"definitions": {
|
|
4140
|
-
"Options": {
|
|
4141
|
-
"additionalProperties": false,
|
|
4142
|
-
"properties": {
|
|
4143
|
-
"backgroundColor": {
|
|
4144
|
-
"description": "The background color for the wordcloud.",
|
|
4145
|
-
"type": "string",
|
|
4146
|
-
},
|
|
4147
|
-
"clearCanvas": {
|
|
4148
|
-
"description": "Paint the entire canvas with background color and consider it empty before start.",
|
|
4149
|
-
"type": "boolean",
|
|
4150
|
-
},
|
|
4151
|
-
"color": {
|
|
4152
|
-
"default": "#000000",
|
|
4153
|
-
"description": "Color of the text, can be any CSS color You may also specify colors with built-in * keywords: random-dark and random-light.",
|
|
4154
|
-
"type": "string",
|
|
4155
|
-
},
|
|
4156
|
-
"fontFamily": {
|
|
4157
|
-
"description": "The font the wordcloud words use.",
|
|
4158
|
-
"type": "string",
|
|
4159
|
-
},
|
|
4160
|
-
"fontWeight": {
|
|
4161
|
-
"description": "Font weight to use, e.g. normal, bold or 600",
|
|
4162
|
-
"type": [
|
|
4163
|
-
"number",
|
|
4164
|
-
"string",
|
|
4165
|
-
],
|
|
4166
|
-
},
|
|
4167
|
-
"maxRotation": {
|
|
4168
|
-
"description": "If the word should rotate, the maximum rotation (in rad) the text should rotate. Set the two value equal to keep all text in one angle.",
|
|
4169
|
-
"type": "number",
|
|
4170
|
-
},
|
|
4171
|
-
"minRotation": {
|
|
4172
|
-
"description": "If the word should rotate, the minimum rotation (in rad) the text should rotate.",
|
|
4173
|
-
"type": "number",
|
|
4174
|
-
},
|
|
4175
|
-
"minSize": {
|
|
4176
|
-
"description": "Minimum font size to draw on the canvas.",
|
|
4177
|
-
"type": "number",
|
|
4178
|
-
},
|
|
4179
|
-
"rotateRatio": {
|
|
4180
|
-
"default": 0,
|
|
4181
|
-
"description": "Probability for the word to rotate. Set the number to 1 to always rotate.",
|
|
4182
|
-
"type": "number",
|
|
4183
|
-
},
|
|
4184
|
-
"shuffle": {
|
|
4185
|
-
"description": "Shuffle the points to draw so the result will be different each time for the same list and settings.",
|
|
4186
|
-
"type": "boolean",
|
|
4187
|
-
},
|
|
4188
|
-
"weightFactor": {
|
|
4189
|
-
"description": "Number to multiply the word size by.",
|
|
4190
|
-
"type": "number",
|
|
4191
|
-
},
|
|
4192
|
-
},
|
|
4193
|
-
"type": "object",
|
|
4194
|
-
},
|
|
4195
|
-
},
|
|
4196
|
-
"properties": {
|
|
4197
|
-
"fields": {
|
|
4198
|
-
"anyOf": [
|
|
4199
|
-
{
|
|
4200
|
-
"items": {
|
|
4201
|
-
"format": "remapper",
|
|
4202
|
-
},
|
|
4203
|
-
"type": "array",
|
|
4204
|
-
},
|
|
4205
|
-
{
|
|
4206
|
-
"items": {
|
|
4207
|
-
"type": "string",
|
|
4208
|
-
},
|
|
4209
|
-
"type": "array",
|
|
4210
|
-
},
|
|
4211
|
-
],
|
|
4212
|
-
"description": "A list of fields to render out in a table.",
|
|
4213
|
-
},
|
|
4214
|
-
"options": {
|
|
4215
|
-
"$ref": "#/definitions/Options",
|
|
4216
|
-
"description": "List of options for rendering the wordcloud.",
|
|
4217
|
-
},
|
|
4218
|
-
"shape": {
|
|
4219
|
-
"default": "circle",
|
|
4220
|
-
"description": "Shape of the wordcloud.",
|
|
4221
|
-
"enum": [
|
|
4222
|
-
"cardioid",
|
|
4223
|
-
"circle",
|
|
4224
|
-
"diamond",
|
|
4225
|
-
"pentagon",
|
|
4226
|
-
"square",
|
|
4227
|
-
"star",
|
|
4228
|
-
"triangle-forward",
|
|
4229
|
-
"triangle",
|
|
4230
|
-
],
|
|
4231
|
-
"type": "string",
|
|
4232
|
-
},
|
|
4233
|
-
},
|
|
4234
|
-
"required": [
|
|
4235
|
-
"fields",
|
|
4236
|
-
"options",
|
|
4237
|
-
],
|
|
4238
|
-
"type": "object",
|
|
4239
|
-
},
|
|
4240
|
-
}
|
|
4241
|
-
`;
|