ain-ui 0.2.3 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +37 -0
- package/README.md +179 -77
- package/dist/agent.d.ts +131 -0
- package/dist/agent.js +802 -0
- package/dist/ainui.d.ts +15 -1
- package/dist/ainui.js +48 -10
- package/dist/basic.d.ts +5 -47
- package/dist/basic.js +11 -25
- package/dist/catalog/standard.gen.d.ts +5 -0
- package/dist/catalog/standard.gen.js +6 -0
- package/dist/catalog-v1.json +2560 -0
- package/dist/catalog.json +19917 -2061
- package/dist/chat.js +6 -7
- package/dist/expression.d.ts +23 -0
- package/dist/expression.js +222 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/macros.d.ts +12 -0
- package/dist/macros.js +57 -0
- package/dist/payment.js +6 -7
- package/dist/pickers.d.ts +158 -0
- package/dist/pickers.js +110 -0
- package/dist/protocol.d.ts +100 -0
- package/dist/protocol.js +232 -0
- package/dist/react/ain.d.ts +1 -0
- package/dist/react/ain.js +225 -0
- package/dist/react/catalog.d.ts +9 -0
- package/dist/react/catalog.js +23 -0
- package/dist/react/core.d.ts +84 -0
- package/dist/react/core.js +158 -0
- package/dist/react/functions.d.ts +2 -0
- package/dist/react/functions.js +29 -0
- package/dist/react/standard/composites.d.ts +1 -0
- package/dist/react/standard/composites.js +110 -0
- package/dist/react/standard/data.d.ts +1 -0
- package/dist/react/standard/data.js +481 -0
- package/dist/react/standard/feedback.d.ts +11 -0
- package/dist/react/standard/feedback.js +111 -0
- package/dist/react/standard/inputs.d.ts +5 -0
- package/dist/react/standard/inputs.js +467 -0
- package/dist/react/standard/layout.d.ts +5 -0
- package/dist/react/standard/layout.js +104 -0
- package/dist/react/standard/media.d.ts +33 -0
- package/dist/react/standard/media.js +208 -0
- package/dist/react/standard/rich.d.ts +1 -0
- package/dist/react/standard/rich.js +146 -0
- package/dist/react/standard/text.d.ts +9 -0
- package/dist/react/standard/text.js +209 -0
- package/dist/react/surface.d.ts +44 -0
- package/dist/react/surface.js +134 -0
- package/dist/react.d.ts +3 -35
- package/dist/react.js +3 -272
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +299 -4
- package/dist/styles.css +805 -20
- package/package.json +28 -11
|
@@ -0,0 +1,2560 @@
|
|
|
1
|
+
{
|
|
2
|
+
"catalogId": "https://aindrive.ainetwork.ai/ainui/v1/catalog.json",
|
|
3
|
+
"components": {
|
|
4
|
+
"Text": {
|
|
5
|
+
"allOf": [
|
|
6
|
+
{
|
|
7
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"properties": {
|
|
11
|
+
"component": {
|
|
12
|
+
"const": "Text"
|
|
13
|
+
},
|
|
14
|
+
"accessibility": {
|
|
15
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
16
|
+
"description": "Attributes to enhance accessibility."
|
|
17
|
+
},
|
|
18
|
+
"weight": {
|
|
19
|
+
"type": "number",
|
|
20
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
21
|
+
},
|
|
22
|
+
"text": {
|
|
23
|
+
"anyOf": [
|
|
24
|
+
{
|
|
25
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"description": "The text content to display. While simple Markdown formatting is supported (i.e. without HTML, images, or links), utilizing dedicated UI components is generally preferred for a richer and more structured presentation."
|
|
35
|
+
},
|
|
36
|
+
"variant": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"h1",
|
|
40
|
+
"h2",
|
|
41
|
+
"h3",
|
|
42
|
+
"h4",
|
|
43
|
+
"h5",
|
|
44
|
+
"caption",
|
|
45
|
+
"body"
|
|
46
|
+
],
|
|
47
|
+
"default": "body",
|
|
48
|
+
"description": "A hint for the base text style."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"component",
|
|
53
|
+
"text"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"Image": {
|
|
59
|
+
"allOf": [
|
|
60
|
+
{
|
|
61
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"properties": {
|
|
65
|
+
"component": {
|
|
66
|
+
"const": "Image"
|
|
67
|
+
},
|
|
68
|
+
"accessibility": {
|
|
69
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
70
|
+
"description": "Attributes to enhance accessibility."
|
|
71
|
+
},
|
|
72
|
+
"weight": {
|
|
73
|
+
"type": "number",
|
|
74
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
75
|
+
},
|
|
76
|
+
"url": {
|
|
77
|
+
"anyOf": [
|
|
78
|
+
{
|
|
79
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"description": "The URL of the image to display."
|
|
89
|
+
},
|
|
90
|
+
"description": {
|
|
91
|
+
"anyOf": [
|
|
92
|
+
{
|
|
93
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"description": "The accessibility description of the image."
|
|
103
|
+
},
|
|
104
|
+
"fit": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"enum": [
|
|
107
|
+
"contain",
|
|
108
|
+
"cover",
|
|
109
|
+
"fill",
|
|
110
|
+
"none",
|
|
111
|
+
"scaleDown"
|
|
112
|
+
],
|
|
113
|
+
"default": "fill",
|
|
114
|
+
"description": "Specifies how the image should be resized to fit its container. This corresponds to the CSS 'object-fit' property."
|
|
115
|
+
},
|
|
116
|
+
"variant": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"enum": [
|
|
119
|
+
"icon",
|
|
120
|
+
"avatar",
|
|
121
|
+
"smallFeature",
|
|
122
|
+
"mediumFeature",
|
|
123
|
+
"largeFeature",
|
|
124
|
+
"header"
|
|
125
|
+
],
|
|
126
|
+
"default": "mediumFeature",
|
|
127
|
+
"description": "A hint for the image size and style."
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": [
|
|
131
|
+
"component",
|
|
132
|
+
"url"
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"Icon": {
|
|
138
|
+
"allOf": [
|
|
139
|
+
{
|
|
140
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"properties": {
|
|
144
|
+
"component": {
|
|
145
|
+
"const": "Icon"
|
|
146
|
+
},
|
|
147
|
+
"accessibility": {
|
|
148
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
149
|
+
"description": "Attributes to enhance accessibility."
|
|
150
|
+
},
|
|
151
|
+
"weight": {
|
|
152
|
+
"type": "number",
|
|
153
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
154
|
+
},
|
|
155
|
+
"name": {
|
|
156
|
+
"anyOf": [
|
|
157
|
+
{
|
|
158
|
+
"type": "string",
|
|
159
|
+
"enum": [
|
|
160
|
+
"accountCircle",
|
|
161
|
+
"add",
|
|
162
|
+
"arrowBack",
|
|
163
|
+
"arrowForward",
|
|
164
|
+
"attachFile",
|
|
165
|
+
"calendarToday",
|
|
166
|
+
"call",
|
|
167
|
+
"camera",
|
|
168
|
+
"check",
|
|
169
|
+
"close",
|
|
170
|
+
"delete",
|
|
171
|
+
"download",
|
|
172
|
+
"edit",
|
|
173
|
+
"event",
|
|
174
|
+
"error",
|
|
175
|
+
"fastForward",
|
|
176
|
+
"favorite",
|
|
177
|
+
"favoriteOff",
|
|
178
|
+
"folder",
|
|
179
|
+
"help",
|
|
180
|
+
"home",
|
|
181
|
+
"info",
|
|
182
|
+
"locationOn",
|
|
183
|
+
"lock",
|
|
184
|
+
"lockOpen",
|
|
185
|
+
"mail",
|
|
186
|
+
"menu",
|
|
187
|
+
"moreVert",
|
|
188
|
+
"moreHoriz",
|
|
189
|
+
"notificationsOff",
|
|
190
|
+
"notifications",
|
|
191
|
+
"pause",
|
|
192
|
+
"payment",
|
|
193
|
+
"person",
|
|
194
|
+
"phone",
|
|
195
|
+
"photo",
|
|
196
|
+
"play",
|
|
197
|
+
"print",
|
|
198
|
+
"refresh",
|
|
199
|
+
"rewind",
|
|
200
|
+
"search",
|
|
201
|
+
"send",
|
|
202
|
+
"settings",
|
|
203
|
+
"share",
|
|
204
|
+
"shoppingCart",
|
|
205
|
+
"skipNext",
|
|
206
|
+
"skipPrevious",
|
|
207
|
+
"star",
|
|
208
|
+
"starHalf",
|
|
209
|
+
"starOff",
|
|
210
|
+
"stop",
|
|
211
|
+
"upload",
|
|
212
|
+
"visibility",
|
|
213
|
+
"visibilityOff",
|
|
214
|
+
"volumeDown",
|
|
215
|
+
"volumeMute",
|
|
216
|
+
"volumeOff",
|
|
217
|
+
"volumeUp",
|
|
218
|
+
"warning"
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"type": "object",
|
|
223
|
+
"properties": {
|
|
224
|
+
"svgPath": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"description": "Custom SVG path data"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"required": [
|
|
230
|
+
"svgPath"
|
|
231
|
+
],
|
|
232
|
+
"additionalProperties": false
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "object",
|
|
236
|
+
"properties": {
|
|
237
|
+
"path": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"required": [
|
|
242
|
+
"path"
|
|
243
|
+
],
|
|
244
|
+
"additionalProperties": false
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"description": "The name of the icon to display."
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"component",
|
|
252
|
+
"name"
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"Video": {
|
|
258
|
+
"allOf": [
|
|
259
|
+
{
|
|
260
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"properties": {
|
|
264
|
+
"component": {
|
|
265
|
+
"const": "Video"
|
|
266
|
+
},
|
|
267
|
+
"accessibility": {
|
|
268
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
269
|
+
"description": "Attributes to enhance accessibility."
|
|
270
|
+
},
|
|
271
|
+
"weight": {
|
|
272
|
+
"type": "number",
|
|
273
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
274
|
+
},
|
|
275
|
+
"url": {
|
|
276
|
+
"anyOf": [
|
|
277
|
+
{
|
|
278
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"description": "The URL of the video to display."
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"required": [
|
|
291
|
+
"component",
|
|
292
|
+
"url"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
"AudioPlayer": {
|
|
298
|
+
"allOf": [
|
|
299
|
+
{
|
|
300
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"properties": {
|
|
304
|
+
"component": {
|
|
305
|
+
"const": "AudioPlayer"
|
|
306
|
+
},
|
|
307
|
+
"accessibility": {
|
|
308
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
309
|
+
"description": "Attributes to enhance accessibility."
|
|
310
|
+
},
|
|
311
|
+
"weight": {
|
|
312
|
+
"type": "number",
|
|
313
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
314
|
+
},
|
|
315
|
+
"url": {
|
|
316
|
+
"anyOf": [
|
|
317
|
+
{
|
|
318
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
325
|
+
}
|
|
326
|
+
],
|
|
327
|
+
"description": "The URL of the audio to be played."
|
|
328
|
+
},
|
|
329
|
+
"description": {
|
|
330
|
+
"anyOf": [
|
|
331
|
+
{
|
|
332
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"description": "A description of the audio, such as a title or summary."
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"required": [
|
|
345
|
+
"component",
|
|
346
|
+
"url"
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
},
|
|
351
|
+
"Row": {
|
|
352
|
+
"allOf": [
|
|
353
|
+
{
|
|
354
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"properties": {
|
|
358
|
+
"component": {
|
|
359
|
+
"const": "Row"
|
|
360
|
+
},
|
|
361
|
+
"accessibility": {
|
|
362
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
363
|
+
"description": "Attributes to enhance accessibility."
|
|
364
|
+
},
|
|
365
|
+
"weight": {
|
|
366
|
+
"type": "number",
|
|
367
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
368
|
+
},
|
|
369
|
+
"children": {
|
|
370
|
+
"$ref": "common_types.json#/$defs/ChildList",
|
|
371
|
+
"description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list. Children cannot be defined inline, they must be referred to by ID."
|
|
372
|
+
},
|
|
373
|
+
"justify": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"enum": [
|
|
376
|
+
"center",
|
|
377
|
+
"end",
|
|
378
|
+
"spaceAround",
|
|
379
|
+
"spaceBetween",
|
|
380
|
+
"spaceEvenly",
|
|
381
|
+
"start",
|
|
382
|
+
"stretch"
|
|
383
|
+
],
|
|
384
|
+
"default": "start",
|
|
385
|
+
"description": "Defines the arrangement of children along the main axis (horizontally). Use 'spaceBetween' to push items to the edges, or 'start'/'end'/'center' to pack them together."
|
|
386
|
+
},
|
|
387
|
+
"align": {
|
|
388
|
+
"type": "string",
|
|
389
|
+
"enum": [
|
|
390
|
+
"start",
|
|
391
|
+
"center",
|
|
392
|
+
"end",
|
|
393
|
+
"stretch"
|
|
394
|
+
],
|
|
395
|
+
"default": "stretch",
|
|
396
|
+
"description": "Defines the alignment of children along the cross axis (vertically). This is similar to the CSS 'align-items' property, but uses camelCase values (e.g., 'start')."
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
"required": [
|
|
400
|
+
"component",
|
|
401
|
+
"children"
|
|
402
|
+
]
|
|
403
|
+
}
|
|
404
|
+
]
|
|
405
|
+
},
|
|
406
|
+
"Column": {
|
|
407
|
+
"allOf": [
|
|
408
|
+
{
|
|
409
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"properties": {
|
|
413
|
+
"component": {
|
|
414
|
+
"const": "Column"
|
|
415
|
+
},
|
|
416
|
+
"accessibility": {
|
|
417
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
418
|
+
"description": "Attributes to enhance accessibility."
|
|
419
|
+
},
|
|
420
|
+
"weight": {
|
|
421
|
+
"type": "number",
|
|
422
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
423
|
+
},
|
|
424
|
+
"children": {
|
|
425
|
+
"$ref": "common_types.json#/$defs/ChildList",
|
|
426
|
+
"description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list. Children cannot be defined inline, they must be referred to by ID."
|
|
427
|
+
},
|
|
428
|
+
"justify": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"enum": [
|
|
431
|
+
"start",
|
|
432
|
+
"center",
|
|
433
|
+
"end",
|
|
434
|
+
"spaceBetween",
|
|
435
|
+
"spaceAround",
|
|
436
|
+
"spaceEvenly",
|
|
437
|
+
"stretch"
|
|
438
|
+
],
|
|
439
|
+
"default": "start",
|
|
440
|
+
"description": "Defines the arrangement of children along the main axis (vertically). Use 'spaceBetween' to push items to the edges (e.g. header at top, footer at bottom), or 'start'/'end'/'center' to pack them together."
|
|
441
|
+
},
|
|
442
|
+
"align": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"enum": [
|
|
445
|
+
"center",
|
|
446
|
+
"end",
|
|
447
|
+
"start",
|
|
448
|
+
"stretch"
|
|
449
|
+
],
|
|
450
|
+
"default": "stretch",
|
|
451
|
+
"description": "Defines the alignment of children along the cross axis (horizontally). This is similar to the CSS 'align-items' property."
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"required": [
|
|
455
|
+
"component",
|
|
456
|
+
"children"
|
|
457
|
+
]
|
|
458
|
+
}
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
"List": {
|
|
462
|
+
"allOf": [
|
|
463
|
+
{
|
|
464
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"properties": {
|
|
468
|
+
"component": {
|
|
469
|
+
"const": "List"
|
|
470
|
+
},
|
|
471
|
+
"accessibility": {
|
|
472
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
473
|
+
"description": "Attributes to enhance accessibility."
|
|
474
|
+
},
|
|
475
|
+
"weight": {
|
|
476
|
+
"type": "number",
|
|
477
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
478
|
+
},
|
|
479
|
+
"children": {
|
|
480
|
+
"$ref": "common_types.json#/$defs/ChildList",
|
|
481
|
+
"description": "Defines the children. Use an array of strings for a fixed set of children, or a template object to generate children from a data list."
|
|
482
|
+
},
|
|
483
|
+
"direction": {
|
|
484
|
+
"type": "string",
|
|
485
|
+
"enum": [
|
|
486
|
+
"vertical",
|
|
487
|
+
"horizontal"
|
|
488
|
+
],
|
|
489
|
+
"default": "vertical",
|
|
490
|
+
"description": "The direction in which the list items are laid out."
|
|
491
|
+
},
|
|
492
|
+
"align": {
|
|
493
|
+
"type": "string",
|
|
494
|
+
"enum": [
|
|
495
|
+
"start",
|
|
496
|
+
"center",
|
|
497
|
+
"end",
|
|
498
|
+
"stretch"
|
|
499
|
+
],
|
|
500
|
+
"default": "stretch",
|
|
501
|
+
"description": "Defines the alignment of children along the cross axis."
|
|
502
|
+
},
|
|
503
|
+
"listStyle": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"enum": [
|
|
506
|
+
"ordered",
|
|
507
|
+
"unordered",
|
|
508
|
+
"none"
|
|
509
|
+
],
|
|
510
|
+
"description": "The style of the list (ordered, unordered, or none)."
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
"required": [
|
|
514
|
+
"component",
|
|
515
|
+
"children"
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
"Card": {
|
|
521
|
+
"allOf": [
|
|
522
|
+
{
|
|
523
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"properties": {
|
|
527
|
+
"component": {
|
|
528
|
+
"const": "Card"
|
|
529
|
+
},
|
|
530
|
+
"accessibility": {
|
|
531
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
532
|
+
"description": "Attributes to enhance accessibility."
|
|
533
|
+
},
|
|
534
|
+
"weight": {
|
|
535
|
+
"type": "number",
|
|
536
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
537
|
+
},
|
|
538
|
+
"child": {
|
|
539
|
+
"$ref": "common_types.json#/$defs/ComponentId",
|
|
540
|
+
"description": "The ID of the single child component to be rendered inside the card. To display multiple elements, you MUST wrap them in a layout component (like Column or Row) and pass that container's ID here. Do NOT pass multiple IDs or a non-existent ID. Do NOT define the child component inline."
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"required": [
|
|
544
|
+
"component",
|
|
545
|
+
"child"
|
|
546
|
+
]
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
"Tabs": {
|
|
551
|
+
"allOf": [
|
|
552
|
+
{
|
|
553
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"properties": {
|
|
557
|
+
"component": {
|
|
558
|
+
"const": "Tabs"
|
|
559
|
+
},
|
|
560
|
+
"accessibility": {
|
|
561
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
562
|
+
"description": "Attributes to enhance accessibility."
|
|
563
|
+
},
|
|
564
|
+
"weight": {
|
|
565
|
+
"type": "number",
|
|
566
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
567
|
+
},
|
|
568
|
+
"tabs": {
|
|
569
|
+
"type": "array",
|
|
570
|
+
"items": {
|
|
571
|
+
"type": "object",
|
|
572
|
+
"properties": {
|
|
573
|
+
"title": {
|
|
574
|
+
"anyOf": [
|
|
575
|
+
{
|
|
576
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
583
|
+
}
|
|
584
|
+
],
|
|
585
|
+
"description": "The tab title."
|
|
586
|
+
},
|
|
587
|
+
"child": {
|
|
588
|
+
"$ref": "common_types.json#/$defs/ComponentId",
|
|
589
|
+
"description": "The ID of the child component. Do NOT define the component inline."
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
"required": [
|
|
593
|
+
"title",
|
|
594
|
+
"child"
|
|
595
|
+
],
|
|
596
|
+
"additionalProperties": false
|
|
597
|
+
},
|
|
598
|
+
"minItems": 1,
|
|
599
|
+
"description": "An array of objects, where each object defines a tab with a title and a child component."
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"required": [
|
|
603
|
+
"component",
|
|
604
|
+
"tabs"
|
|
605
|
+
]
|
|
606
|
+
}
|
|
607
|
+
]
|
|
608
|
+
},
|
|
609
|
+
"Divider": {
|
|
610
|
+
"allOf": [
|
|
611
|
+
{
|
|
612
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"properties": {
|
|
616
|
+
"component": {
|
|
617
|
+
"const": "Divider"
|
|
618
|
+
},
|
|
619
|
+
"accessibility": {
|
|
620
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
621
|
+
"description": "Attributes to enhance accessibility."
|
|
622
|
+
},
|
|
623
|
+
"weight": {
|
|
624
|
+
"type": "number",
|
|
625
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
626
|
+
},
|
|
627
|
+
"axis": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"enum": [
|
|
630
|
+
"horizontal",
|
|
631
|
+
"vertical"
|
|
632
|
+
],
|
|
633
|
+
"default": "horizontal",
|
|
634
|
+
"description": "The orientation of the divider."
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"required": [
|
|
638
|
+
"component"
|
|
639
|
+
]
|
|
640
|
+
}
|
|
641
|
+
]
|
|
642
|
+
},
|
|
643
|
+
"Modal": {
|
|
644
|
+
"allOf": [
|
|
645
|
+
{
|
|
646
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"properties": {
|
|
650
|
+
"component": {
|
|
651
|
+
"const": "Modal"
|
|
652
|
+
},
|
|
653
|
+
"accessibility": {
|
|
654
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
655
|
+
"description": "Attributes to enhance accessibility."
|
|
656
|
+
},
|
|
657
|
+
"weight": {
|
|
658
|
+
"type": "number",
|
|
659
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
660
|
+
},
|
|
661
|
+
"trigger": {
|
|
662
|
+
"$ref": "common_types.json#/$defs/ComponentId",
|
|
663
|
+
"description": "The ID of the component that opens the modal when interacted with (e.g., a button). Do NOT define the component inline."
|
|
664
|
+
},
|
|
665
|
+
"content": {
|
|
666
|
+
"$ref": "common_types.json#/$defs/ComponentId",
|
|
667
|
+
"description": "The ID of the component to be displayed inside the modal. Do NOT define the component inline."
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"required": [
|
|
671
|
+
"component",
|
|
672
|
+
"trigger",
|
|
673
|
+
"content"
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
"TextField": {
|
|
679
|
+
"allOf": [
|
|
680
|
+
{
|
|
681
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"properties": {
|
|
685
|
+
"component": {
|
|
686
|
+
"const": "TextField"
|
|
687
|
+
},
|
|
688
|
+
"accessibility": {
|
|
689
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
690
|
+
"description": "Attributes to enhance accessibility."
|
|
691
|
+
},
|
|
692
|
+
"weight": {
|
|
693
|
+
"type": "number",
|
|
694
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
695
|
+
},
|
|
696
|
+
"label": {
|
|
697
|
+
"anyOf": [
|
|
698
|
+
{
|
|
699
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
"description": "The text label for the input field."
|
|
709
|
+
},
|
|
710
|
+
"value": {
|
|
711
|
+
"anyOf": [
|
|
712
|
+
{
|
|
713
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
720
|
+
}
|
|
721
|
+
],
|
|
722
|
+
"description": "The value of the text field."
|
|
723
|
+
},
|
|
724
|
+
"variant": {
|
|
725
|
+
"type": "string",
|
|
726
|
+
"enum": [
|
|
727
|
+
"longText",
|
|
728
|
+
"number",
|
|
729
|
+
"shortText",
|
|
730
|
+
"obscured"
|
|
731
|
+
],
|
|
732
|
+
"default": "shortText",
|
|
733
|
+
"description": "The type of input field to display."
|
|
734
|
+
},
|
|
735
|
+
"validationRegexp": {
|
|
736
|
+
"type": "string",
|
|
737
|
+
"description": "A regular expression used for client-side validation of the input."
|
|
738
|
+
},
|
|
739
|
+
"checks": {
|
|
740
|
+
"type": "array",
|
|
741
|
+
"items": {
|
|
742
|
+
"$ref": "common_types.json#/$defs/CheckRule",
|
|
743
|
+
"description": "A check rule consisting of a condition and an error message."
|
|
744
|
+
},
|
|
745
|
+
"description": "A list of checks to perform."
|
|
746
|
+
},
|
|
747
|
+
"isValid": {
|
|
748
|
+
"type": "boolean",
|
|
749
|
+
"description": "Whether the checks currently pass."
|
|
750
|
+
},
|
|
751
|
+
"validationErrors": {
|
|
752
|
+
"type": "array",
|
|
753
|
+
"items": {
|
|
754
|
+
"type": "string"
|
|
755
|
+
},
|
|
756
|
+
"description": "Current validation error messages."
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"required": [
|
|
760
|
+
"component",
|
|
761
|
+
"label"
|
|
762
|
+
]
|
|
763
|
+
}
|
|
764
|
+
]
|
|
765
|
+
},
|
|
766
|
+
"CheckBox": {
|
|
767
|
+
"allOf": [
|
|
768
|
+
{
|
|
769
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"properties": {
|
|
773
|
+
"component": {
|
|
774
|
+
"const": "CheckBox"
|
|
775
|
+
},
|
|
776
|
+
"accessibility": {
|
|
777
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
778
|
+
"description": "Attributes to enhance accessibility."
|
|
779
|
+
},
|
|
780
|
+
"weight": {
|
|
781
|
+
"type": "number",
|
|
782
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
783
|
+
},
|
|
784
|
+
"label": {
|
|
785
|
+
"anyOf": [
|
|
786
|
+
{
|
|
787
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
794
|
+
}
|
|
795
|
+
],
|
|
796
|
+
"description": "The text to display next to the checkbox."
|
|
797
|
+
},
|
|
798
|
+
"value": {
|
|
799
|
+
"anyOf": [
|
|
800
|
+
{
|
|
801
|
+
"type": "boolean"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
808
|
+
}
|
|
809
|
+
],
|
|
810
|
+
"description": "The current state of the checkbox (true for checked, false for unchecked)."
|
|
811
|
+
},
|
|
812
|
+
"checks": {
|
|
813
|
+
"type": "array",
|
|
814
|
+
"items": {
|
|
815
|
+
"$ref": "common_types.json#/$defs/CheckRule",
|
|
816
|
+
"description": "A check rule consisting of a condition and an error message."
|
|
817
|
+
},
|
|
818
|
+
"description": "A list of checks to perform."
|
|
819
|
+
},
|
|
820
|
+
"isValid": {
|
|
821
|
+
"type": "boolean",
|
|
822
|
+
"description": "Whether the checks currently pass."
|
|
823
|
+
},
|
|
824
|
+
"validationErrors": {
|
|
825
|
+
"type": "array",
|
|
826
|
+
"items": {
|
|
827
|
+
"type": "string"
|
|
828
|
+
},
|
|
829
|
+
"description": "Current validation error messages."
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"required": [
|
|
833
|
+
"component",
|
|
834
|
+
"label",
|
|
835
|
+
"value"
|
|
836
|
+
]
|
|
837
|
+
}
|
|
838
|
+
]
|
|
839
|
+
},
|
|
840
|
+
"ChoicePicker": {
|
|
841
|
+
"allOf": [
|
|
842
|
+
{
|
|
843
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"properties": {
|
|
847
|
+
"component": {
|
|
848
|
+
"const": "ChoicePicker"
|
|
849
|
+
},
|
|
850
|
+
"accessibility": {
|
|
851
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
852
|
+
"description": "Attributes to enhance accessibility."
|
|
853
|
+
},
|
|
854
|
+
"weight": {
|
|
855
|
+
"type": "number",
|
|
856
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
857
|
+
},
|
|
858
|
+
"label": {
|
|
859
|
+
"anyOf": [
|
|
860
|
+
{
|
|
861
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
868
|
+
}
|
|
869
|
+
],
|
|
870
|
+
"description": "The label for the group of options."
|
|
871
|
+
},
|
|
872
|
+
"variant": {
|
|
873
|
+
"type": "string",
|
|
874
|
+
"enum": [
|
|
875
|
+
"multipleSelection",
|
|
876
|
+
"mutuallyExclusive"
|
|
877
|
+
],
|
|
878
|
+
"default": "mutuallyExclusive",
|
|
879
|
+
"description": "A hint for how the choice picker should be displayed and behave."
|
|
880
|
+
},
|
|
881
|
+
"options": {
|
|
882
|
+
"type": "array",
|
|
883
|
+
"items": {
|
|
884
|
+
"type": "object",
|
|
885
|
+
"properties": {
|
|
886
|
+
"label": {
|
|
887
|
+
"anyOf": [
|
|
888
|
+
{
|
|
889
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
896
|
+
}
|
|
897
|
+
],
|
|
898
|
+
"description": "The text to display for this option."
|
|
899
|
+
},
|
|
900
|
+
"value": {
|
|
901
|
+
"type": "string",
|
|
902
|
+
"description": "The stable value associated with this option."
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"required": [
|
|
906
|
+
"label",
|
|
907
|
+
"value"
|
|
908
|
+
],
|
|
909
|
+
"additionalProperties": false
|
|
910
|
+
},
|
|
911
|
+
"description": "The list of available options to choose from."
|
|
912
|
+
},
|
|
913
|
+
"value": {
|
|
914
|
+
"anyOf": [
|
|
915
|
+
{
|
|
916
|
+
"type": "array",
|
|
917
|
+
"items": {
|
|
918
|
+
"type": "string"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
{
|
|
922
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
926
|
+
}
|
|
927
|
+
],
|
|
928
|
+
"description": "The list of currently selected values. This should be bound to a string array in the data model."
|
|
929
|
+
},
|
|
930
|
+
"displayStyle": {
|
|
931
|
+
"type": "string",
|
|
932
|
+
"enum": [
|
|
933
|
+
"checkbox",
|
|
934
|
+
"chips"
|
|
935
|
+
],
|
|
936
|
+
"default": "checkbox",
|
|
937
|
+
"description": "The display style of the component."
|
|
938
|
+
},
|
|
939
|
+
"filterable": {
|
|
940
|
+
"type": "boolean",
|
|
941
|
+
"default": false,
|
|
942
|
+
"description": "If true, displays a search input to filter the options."
|
|
943
|
+
},
|
|
944
|
+
"checks": {
|
|
945
|
+
"type": "array",
|
|
946
|
+
"items": {
|
|
947
|
+
"$ref": "common_types.json#/$defs/CheckRule",
|
|
948
|
+
"description": "A check rule consisting of a condition and an error message."
|
|
949
|
+
},
|
|
950
|
+
"description": "A list of checks to perform."
|
|
951
|
+
},
|
|
952
|
+
"isValid": {
|
|
953
|
+
"type": "boolean",
|
|
954
|
+
"description": "Whether the checks currently pass."
|
|
955
|
+
},
|
|
956
|
+
"validationErrors": {
|
|
957
|
+
"type": "array",
|
|
958
|
+
"items": {
|
|
959
|
+
"type": "string"
|
|
960
|
+
},
|
|
961
|
+
"description": "Current validation error messages."
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
"required": [
|
|
965
|
+
"component",
|
|
966
|
+
"options",
|
|
967
|
+
"value"
|
|
968
|
+
]
|
|
969
|
+
}
|
|
970
|
+
]
|
|
971
|
+
},
|
|
972
|
+
"Slider": {
|
|
973
|
+
"allOf": [
|
|
974
|
+
{
|
|
975
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
"properties": {
|
|
979
|
+
"component": {
|
|
980
|
+
"const": "Slider"
|
|
981
|
+
},
|
|
982
|
+
"accessibility": {
|
|
983
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
984
|
+
"description": "Attributes to enhance accessibility."
|
|
985
|
+
},
|
|
986
|
+
"weight": {
|
|
987
|
+
"type": "number",
|
|
988
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
989
|
+
},
|
|
990
|
+
"label": {
|
|
991
|
+
"anyOf": [
|
|
992
|
+
{
|
|
993
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
1000
|
+
}
|
|
1001
|
+
],
|
|
1002
|
+
"description": "The label for the slider."
|
|
1003
|
+
},
|
|
1004
|
+
"min": {
|
|
1005
|
+
"type": "number",
|
|
1006
|
+
"default": 0,
|
|
1007
|
+
"description": "The minimum value of the slider."
|
|
1008
|
+
},
|
|
1009
|
+
"max": {
|
|
1010
|
+
"type": "number",
|
|
1011
|
+
"description": "The maximum value of the slider."
|
|
1012
|
+
},
|
|
1013
|
+
"value": {
|
|
1014
|
+
"anyOf": [
|
|
1015
|
+
{
|
|
1016
|
+
"type": "number"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
1023
|
+
}
|
|
1024
|
+
],
|
|
1025
|
+
"description": "The current value of the slider."
|
|
1026
|
+
},
|
|
1027
|
+
"checks": {
|
|
1028
|
+
"type": "array",
|
|
1029
|
+
"items": {
|
|
1030
|
+
"$ref": "common_types.json#/$defs/CheckRule",
|
|
1031
|
+
"description": "A check rule consisting of a condition and an error message."
|
|
1032
|
+
},
|
|
1033
|
+
"description": "A list of checks to perform."
|
|
1034
|
+
},
|
|
1035
|
+
"isValid": {
|
|
1036
|
+
"type": "boolean",
|
|
1037
|
+
"description": "Whether the checks currently pass."
|
|
1038
|
+
},
|
|
1039
|
+
"validationErrors": {
|
|
1040
|
+
"type": "array",
|
|
1041
|
+
"items": {
|
|
1042
|
+
"type": "string"
|
|
1043
|
+
},
|
|
1044
|
+
"description": "Current validation error messages."
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
"required": [
|
|
1048
|
+
"component",
|
|
1049
|
+
"max",
|
|
1050
|
+
"value"
|
|
1051
|
+
]
|
|
1052
|
+
}
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
"DateTimeInput": {
|
|
1056
|
+
"allOf": [
|
|
1057
|
+
{
|
|
1058
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"properties": {
|
|
1062
|
+
"component": {
|
|
1063
|
+
"const": "DateTimeInput"
|
|
1064
|
+
},
|
|
1065
|
+
"accessibility": {
|
|
1066
|
+
"$ref": "common_types.json#/$defs/AccessibilityAttributes",
|
|
1067
|
+
"description": "Attributes to enhance accessibility."
|
|
1068
|
+
},
|
|
1069
|
+
"weight": {
|
|
1070
|
+
"type": "number",
|
|
1071
|
+
"description": "The relative weight of this component within a Row or Column. This is similar to the CSS 'flex-grow' property. Note: this may ONLY be set when the component is a direct descendant of a Row or Column."
|
|
1072
|
+
},
|
|
1073
|
+
"value": {
|
|
1074
|
+
"anyOf": [
|
|
1075
|
+
{
|
|
1076
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"description": "The selected date and/or time value in ISO 8601 format. If not yet set, initialize with an empty string."
|
|
1086
|
+
},
|
|
1087
|
+
"enableDate": {
|
|
1088
|
+
"type": "boolean",
|
|
1089
|
+
"default": false,
|
|
1090
|
+
"description": "If true, allows the user to select a date."
|
|
1091
|
+
},
|
|
1092
|
+
"enableTime": {
|
|
1093
|
+
"type": "boolean",
|
|
1094
|
+
"default": false,
|
|
1095
|
+
"description": "If true, allows the user to select a time."
|
|
1096
|
+
},
|
|
1097
|
+
"min": {
|
|
1098
|
+
"anyOf": [
|
|
1099
|
+
{
|
|
1100
|
+
"$ref": "#/properties/accessibility/properties/label"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"type": "string",
|
|
1104
|
+
"format": "date"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"format": "time"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"format": "date-time"
|
|
1113
|
+
}
|
|
1114
|
+
],
|
|
1115
|
+
"description": "The minimum allowed date/time in ISO 8601 format."
|
|
1116
|
+
},
|
|
1117
|
+
"max": {
|
|
1118
|
+
"anyOf": [
|
|
1119
|
+
{
|
|
1120
|
+
"$ref": "#/properties/accessibility/properties/label"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"type": "string",
|
|
1124
|
+
"format": "date"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"type": "string",
|
|
1128
|
+
"format": "time"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"type": "string",
|
|
1132
|
+
"format": "date-time"
|
|
1133
|
+
}
|
|
1134
|
+
],
|
|
1135
|
+
"description": "The maximum allowed date/time in ISO 8601 format."
|
|
1136
|
+
},
|
|
1137
|
+
"label": {
|
|
1138
|
+
"anyOf": [
|
|
1139
|
+
{
|
|
1140
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/0"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/1"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"$ref": "#/properties/accessibility/properties/label/anyOf/2"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"description": "The text label for the input field."
|
|
1150
|
+
},
|
|
1151
|
+
"checks": {
|
|
1152
|
+
"type": "array",
|
|
1153
|
+
"items": {
|
|
1154
|
+
"$ref": "common_types.json#/$defs/CheckRule",
|
|
1155
|
+
"description": "A check rule consisting of a condition and an error message."
|
|
1156
|
+
},
|
|
1157
|
+
"description": "A list of checks to perform."
|
|
1158
|
+
},
|
|
1159
|
+
"isValid": {
|
|
1160
|
+
"type": "boolean",
|
|
1161
|
+
"description": "Whether the checks currently pass."
|
|
1162
|
+
},
|
|
1163
|
+
"validationErrors": {
|
|
1164
|
+
"type": "array",
|
|
1165
|
+
"items": {
|
|
1166
|
+
"type": "string"
|
|
1167
|
+
},
|
|
1168
|
+
"description": "Current validation error messages."
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
"required": [
|
|
1172
|
+
"component",
|
|
1173
|
+
"value"
|
|
1174
|
+
]
|
|
1175
|
+
}
|
|
1176
|
+
]
|
|
1177
|
+
},
|
|
1178
|
+
"Button": {
|
|
1179
|
+
"allOf": [
|
|
1180
|
+
{
|
|
1181
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"properties": {
|
|
1185
|
+
"component": {
|
|
1186
|
+
"const": "Button"
|
|
1187
|
+
},
|
|
1188
|
+
"child": {
|
|
1189
|
+
"$ref": "common_types.json#/$defs/ComponentId",
|
|
1190
|
+
"description": "The unique identifier for a component."
|
|
1191
|
+
},
|
|
1192
|
+
"action": {
|
|
1193
|
+
"$ref": "common_types.json#/$defs/Action"
|
|
1194
|
+
},
|
|
1195
|
+
"confirm": {
|
|
1196
|
+
"anyOf": [
|
|
1197
|
+
{
|
|
1198
|
+
"$ref": "#/properties/action/anyOf/0/properties/event/properties/context/additionalProperties"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"type": "object",
|
|
1202
|
+
"properties": {
|
|
1203
|
+
"$asset": {
|
|
1204
|
+
"type": "object",
|
|
1205
|
+
"properties": {
|
|
1206
|
+
"drive_id": {
|
|
1207
|
+
"type": "string"
|
|
1208
|
+
},
|
|
1209
|
+
"path": {
|
|
1210
|
+
"type": "string"
|
|
1211
|
+
},
|
|
1212
|
+
"variant": {
|
|
1213
|
+
"type": "string",
|
|
1214
|
+
"enum": [
|
|
1215
|
+
"thumb",
|
|
1216
|
+
"original"
|
|
1217
|
+
]
|
|
1218
|
+
},
|
|
1219
|
+
"mime": {
|
|
1220
|
+
"type": "string"
|
|
1221
|
+
},
|
|
1222
|
+
"v": {
|
|
1223
|
+
"type": "number"
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
"required": [
|
|
1227
|
+
"drive_id",
|
|
1228
|
+
"path",
|
|
1229
|
+
"variant",
|
|
1230
|
+
"mime"
|
|
1231
|
+
],
|
|
1232
|
+
"additionalProperties": false
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
"required": [
|
|
1236
|
+
"$asset"
|
|
1237
|
+
],
|
|
1238
|
+
"additionalProperties": false
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"type": "null"
|
|
1242
|
+
}
|
|
1243
|
+
]
|
|
1244
|
+
},
|
|
1245
|
+
"variant": {
|
|
1246
|
+
"$ref": "#/properties/confirm"
|
|
1247
|
+
},
|
|
1248
|
+
"tone": {
|
|
1249
|
+
"$ref": "#/properties/confirm"
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
"required": [
|
|
1253
|
+
"component",
|
|
1254
|
+
"child"
|
|
1255
|
+
]
|
|
1256
|
+
}
|
|
1257
|
+
]
|
|
1258
|
+
},
|
|
1259
|
+
"Toolbar": {
|
|
1260
|
+
"allOf": [
|
|
1261
|
+
{
|
|
1262
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"properties": {
|
|
1266
|
+
"component": {
|
|
1267
|
+
"const": "Toolbar"
|
|
1268
|
+
},
|
|
1269
|
+
"children": {
|
|
1270
|
+
"$ref": "common_types.json#/$defs/ChildList"
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1273
|
+
"required": [
|
|
1274
|
+
"component",
|
|
1275
|
+
"children"
|
|
1276
|
+
]
|
|
1277
|
+
}
|
|
1278
|
+
]
|
|
1279
|
+
},
|
|
1280
|
+
"Grid": {
|
|
1281
|
+
"allOf": [
|
|
1282
|
+
{
|
|
1283
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"properties": {
|
|
1287
|
+
"component": {
|
|
1288
|
+
"const": "Grid"
|
|
1289
|
+
},
|
|
1290
|
+
"children": {
|
|
1291
|
+
"$ref": "common_types.json#/$defs/ChildList"
|
|
1292
|
+
},
|
|
1293
|
+
"minItemWidth": {
|
|
1294
|
+
"type": "number"
|
|
1295
|
+
},
|
|
1296
|
+
"gap": {
|
|
1297
|
+
"type": "number"
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
"required": [
|
|
1301
|
+
"component",
|
|
1302
|
+
"children"
|
|
1303
|
+
]
|
|
1304
|
+
}
|
|
1305
|
+
]
|
|
1306
|
+
},
|
|
1307
|
+
"Tile": {
|
|
1308
|
+
"allOf": [
|
|
1309
|
+
{
|
|
1310
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"properties": {
|
|
1314
|
+
"component": {
|
|
1315
|
+
"const": "Tile"
|
|
1316
|
+
},
|
|
1317
|
+
"media": {
|
|
1318
|
+
"anyOf": [
|
|
1319
|
+
{
|
|
1320
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1321
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"type": "object",
|
|
1325
|
+
"properties": {
|
|
1326
|
+
"$asset": {
|
|
1327
|
+
"type": "object",
|
|
1328
|
+
"properties": {
|
|
1329
|
+
"drive_id": {
|
|
1330
|
+
"type": "string"
|
|
1331
|
+
},
|
|
1332
|
+
"path": {
|
|
1333
|
+
"type": "string"
|
|
1334
|
+
},
|
|
1335
|
+
"variant": {
|
|
1336
|
+
"type": "string",
|
|
1337
|
+
"enum": [
|
|
1338
|
+
"thumb",
|
|
1339
|
+
"original"
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
"mime": {
|
|
1343
|
+
"type": "string"
|
|
1344
|
+
},
|
|
1345
|
+
"v": {
|
|
1346
|
+
"type": "number"
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
"required": [
|
|
1350
|
+
"drive_id",
|
|
1351
|
+
"path",
|
|
1352
|
+
"variant",
|
|
1353
|
+
"mime"
|
|
1354
|
+
],
|
|
1355
|
+
"additionalProperties": false
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
"required": [
|
|
1359
|
+
"$asset"
|
|
1360
|
+
],
|
|
1361
|
+
"additionalProperties": false
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"type": "null"
|
|
1365
|
+
}
|
|
1366
|
+
]
|
|
1367
|
+
},
|
|
1368
|
+
"label": {
|
|
1369
|
+
"$ref": "#/properties/media"
|
|
1370
|
+
},
|
|
1371
|
+
"caption": {
|
|
1372
|
+
"$ref": "#/properties/media"
|
|
1373
|
+
},
|
|
1374
|
+
"kind": {
|
|
1375
|
+
"$ref": "#/properties/media"
|
|
1376
|
+
},
|
|
1377
|
+
"action": {
|
|
1378
|
+
"$ref": "common_types.json#/$defs/Action"
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"required": [
|
|
1382
|
+
"component"
|
|
1383
|
+
]
|
|
1384
|
+
}
|
|
1385
|
+
]
|
|
1386
|
+
},
|
|
1387
|
+
"FileView": {
|
|
1388
|
+
"allOf": [
|
|
1389
|
+
{
|
|
1390
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"properties": {
|
|
1394
|
+
"component": {
|
|
1395
|
+
"const": "FileView"
|
|
1396
|
+
},
|
|
1397
|
+
"src": {
|
|
1398
|
+
"anyOf": [
|
|
1399
|
+
{
|
|
1400
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1401
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"type": "object",
|
|
1405
|
+
"properties": {
|
|
1406
|
+
"$asset": {
|
|
1407
|
+
"type": "object",
|
|
1408
|
+
"properties": {
|
|
1409
|
+
"drive_id": {
|
|
1410
|
+
"type": "string"
|
|
1411
|
+
},
|
|
1412
|
+
"path": {
|
|
1413
|
+
"type": "string"
|
|
1414
|
+
},
|
|
1415
|
+
"variant": {
|
|
1416
|
+
"type": "string",
|
|
1417
|
+
"enum": [
|
|
1418
|
+
"thumb",
|
|
1419
|
+
"original"
|
|
1420
|
+
]
|
|
1421
|
+
},
|
|
1422
|
+
"mime": {
|
|
1423
|
+
"type": "string"
|
|
1424
|
+
},
|
|
1425
|
+
"v": {
|
|
1426
|
+
"type": "number"
|
|
1427
|
+
}
|
|
1428
|
+
},
|
|
1429
|
+
"required": [
|
|
1430
|
+
"drive_id",
|
|
1431
|
+
"path",
|
|
1432
|
+
"variant",
|
|
1433
|
+
"mime"
|
|
1434
|
+
],
|
|
1435
|
+
"additionalProperties": false
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
"required": [
|
|
1439
|
+
"$asset"
|
|
1440
|
+
],
|
|
1441
|
+
"additionalProperties": false
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"type": "null"
|
|
1445
|
+
}
|
|
1446
|
+
]
|
|
1447
|
+
},
|
|
1448
|
+
"name": {
|
|
1449
|
+
"$ref": "#/properties/src"
|
|
1450
|
+
},
|
|
1451
|
+
"mime": {
|
|
1452
|
+
"$ref": "#/properties/src"
|
|
1453
|
+
},
|
|
1454
|
+
"size": {
|
|
1455
|
+
"$ref": "#/properties/src"
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
"required": [
|
|
1459
|
+
"component"
|
|
1460
|
+
]
|
|
1461
|
+
}
|
|
1462
|
+
]
|
|
1463
|
+
},
|
|
1464
|
+
"Breadcrumbs": {
|
|
1465
|
+
"allOf": [
|
|
1466
|
+
{
|
|
1467
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"properties": {
|
|
1471
|
+
"component": {
|
|
1472
|
+
"const": "Breadcrumbs"
|
|
1473
|
+
},
|
|
1474
|
+
"items": {
|
|
1475
|
+
"anyOf": [
|
|
1476
|
+
{
|
|
1477
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1478
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
"type": "object",
|
|
1482
|
+
"properties": {
|
|
1483
|
+
"$asset": {
|
|
1484
|
+
"type": "object",
|
|
1485
|
+
"properties": {
|
|
1486
|
+
"drive_id": {
|
|
1487
|
+
"type": "string"
|
|
1488
|
+
},
|
|
1489
|
+
"path": {
|
|
1490
|
+
"type": "string"
|
|
1491
|
+
},
|
|
1492
|
+
"variant": {
|
|
1493
|
+
"type": "string",
|
|
1494
|
+
"enum": [
|
|
1495
|
+
"thumb",
|
|
1496
|
+
"original"
|
|
1497
|
+
]
|
|
1498
|
+
},
|
|
1499
|
+
"mime": {
|
|
1500
|
+
"type": "string"
|
|
1501
|
+
},
|
|
1502
|
+
"v": {
|
|
1503
|
+
"type": "number"
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
"required": [
|
|
1507
|
+
"drive_id",
|
|
1508
|
+
"path",
|
|
1509
|
+
"variant",
|
|
1510
|
+
"mime"
|
|
1511
|
+
],
|
|
1512
|
+
"additionalProperties": false
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
"required": [
|
|
1516
|
+
"$asset"
|
|
1517
|
+
],
|
|
1518
|
+
"additionalProperties": false
|
|
1519
|
+
},
|
|
1520
|
+
{
|
|
1521
|
+
"type": "null"
|
|
1522
|
+
}
|
|
1523
|
+
]
|
|
1524
|
+
},
|
|
1525
|
+
"action": {
|
|
1526
|
+
"$ref": "common_types.json#/$defs/Action"
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
"required": [
|
|
1530
|
+
"component"
|
|
1531
|
+
]
|
|
1532
|
+
}
|
|
1533
|
+
]
|
|
1534
|
+
},
|
|
1535
|
+
"Segmented": {
|
|
1536
|
+
"allOf": [
|
|
1537
|
+
{
|
|
1538
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
"properties": {
|
|
1542
|
+
"component": {
|
|
1543
|
+
"const": "Segmented"
|
|
1544
|
+
},
|
|
1545
|
+
"options": {
|
|
1546
|
+
"type": "array",
|
|
1547
|
+
"items": {
|
|
1548
|
+
"type": "object",
|
|
1549
|
+
"properties": {
|
|
1550
|
+
"value": {
|
|
1551
|
+
"type": "string"
|
|
1552
|
+
},
|
|
1553
|
+
"label": {
|
|
1554
|
+
"type": "string"
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1557
|
+
"required": [
|
|
1558
|
+
"value",
|
|
1559
|
+
"label"
|
|
1560
|
+
],
|
|
1561
|
+
"additionalProperties": false
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
"value": {
|
|
1565
|
+
"anyOf": [
|
|
1566
|
+
{
|
|
1567
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1568
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"type": "object",
|
|
1572
|
+
"properties": {
|
|
1573
|
+
"$asset": {
|
|
1574
|
+
"type": "object",
|
|
1575
|
+
"properties": {
|
|
1576
|
+
"drive_id": {
|
|
1577
|
+
"type": "string"
|
|
1578
|
+
},
|
|
1579
|
+
"path": {
|
|
1580
|
+
"type": "string"
|
|
1581
|
+
},
|
|
1582
|
+
"variant": {
|
|
1583
|
+
"type": "string",
|
|
1584
|
+
"enum": [
|
|
1585
|
+
"thumb",
|
|
1586
|
+
"original"
|
|
1587
|
+
]
|
|
1588
|
+
},
|
|
1589
|
+
"mime": {
|
|
1590
|
+
"type": "string"
|
|
1591
|
+
},
|
|
1592
|
+
"v": {
|
|
1593
|
+
"type": "number"
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
"required": [
|
|
1597
|
+
"drive_id",
|
|
1598
|
+
"path",
|
|
1599
|
+
"variant",
|
|
1600
|
+
"mime"
|
|
1601
|
+
],
|
|
1602
|
+
"additionalProperties": false
|
|
1603
|
+
}
|
|
1604
|
+
},
|
|
1605
|
+
"required": [
|
|
1606
|
+
"$asset"
|
|
1607
|
+
],
|
|
1608
|
+
"additionalProperties": false
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"type": "null"
|
|
1612
|
+
}
|
|
1613
|
+
]
|
|
1614
|
+
},
|
|
1615
|
+
"action": {
|
|
1616
|
+
"$ref": "common_types.json#/$defs/Action"
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
"required": [
|
|
1620
|
+
"component",
|
|
1621
|
+
"options"
|
|
1622
|
+
]
|
|
1623
|
+
}
|
|
1624
|
+
]
|
|
1625
|
+
},
|
|
1626
|
+
"FileUpload": {
|
|
1627
|
+
"allOf": [
|
|
1628
|
+
{
|
|
1629
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"properties": {
|
|
1633
|
+
"component": {
|
|
1634
|
+
"const": "FileUpload"
|
|
1635
|
+
},
|
|
1636
|
+
"label": {
|
|
1637
|
+
"anyOf": [
|
|
1638
|
+
{
|
|
1639
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1640
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"type": "object",
|
|
1644
|
+
"properties": {
|
|
1645
|
+
"$asset": {
|
|
1646
|
+
"type": "object",
|
|
1647
|
+
"properties": {
|
|
1648
|
+
"drive_id": {
|
|
1649
|
+
"type": "string"
|
|
1650
|
+
},
|
|
1651
|
+
"path": {
|
|
1652
|
+
"type": "string"
|
|
1653
|
+
},
|
|
1654
|
+
"variant": {
|
|
1655
|
+
"type": "string",
|
|
1656
|
+
"enum": [
|
|
1657
|
+
"thumb",
|
|
1658
|
+
"original"
|
|
1659
|
+
]
|
|
1660
|
+
},
|
|
1661
|
+
"mime": {
|
|
1662
|
+
"type": "string"
|
|
1663
|
+
},
|
|
1664
|
+
"v": {
|
|
1665
|
+
"type": "number"
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
"required": [
|
|
1669
|
+
"drive_id",
|
|
1670
|
+
"path",
|
|
1671
|
+
"variant",
|
|
1672
|
+
"mime"
|
|
1673
|
+
],
|
|
1674
|
+
"additionalProperties": false
|
|
1675
|
+
}
|
|
1676
|
+
},
|
|
1677
|
+
"required": [
|
|
1678
|
+
"$asset"
|
|
1679
|
+
],
|
|
1680
|
+
"additionalProperties": false
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"type": "null"
|
|
1684
|
+
}
|
|
1685
|
+
]
|
|
1686
|
+
},
|
|
1687
|
+
"maxBytes": {
|
|
1688
|
+
"type": "number"
|
|
1689
|
+
},
|
|
1690
|
+
"action": {
|
|
1691
|
+
"$ref": "common_types.json#/$defs/Action"
|
|
1692
|
+
}
|
|
1693
|
+
},
|
|
1694
|
+
"required": [
|
|
1695
|
+
"component"
|
|
1696
|
+
]
|
|
1697
|
+
}
|
|
1698
|
+
]
|
|
1699
|
+
},
|
|
1700
|
+
"X402Payment": {
|
|
1701
|
+
"allOf": [
|
|
1702
|
+
{
|
|
1703
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
"properties": {
|
|
1707
|
+
"component": {
|
|
1708
|
+
"const": "X402Payment"
|
|
1709
|
+
},
|
|
1710
|
+
"amount": {
|
|
1711
|
+
"anyOf": [
|
|
1712
|
+
{
|
|
1713
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1714
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"type": "object",
|
|
1718
|
+
"properties": {
|
|
1719
|
+
"$asset": {
|
|
1720
|
+
"type": "object",
|
|
1721
|
+
"properties": {
|
|
1722
|
+
"drive_id": {
|
|
1723
|
+
"type": "string"
|
|
1724
|
+
},
|
|
1725
|
+
"path": {
|
|
1726
|
+
"type": "string"
|
|
1727
|
+
},
|
|
1728
|
+
"variant": {
|
|
1729
|
+
"type": "string",
|
|
1730
|
+
"enum": [
|
|
1731
|
+
"thumb",
|
|
1732
|
+
"original"
|
|
1733
|
+
]
|
|
1734
|
+
},
|
|
1735
|
+
"mime": {
|
|
1736
|
+
"type": "string"
|
|
1737
|
+
},
|
|
1738
|
+
"v": {
|
|
1739
|
+
"type": "number"
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
"required": [
|
|
1743
|
+
"drive_id",
|
|
1744
|
+
"path",
|
|
1745
|
+
"variant",
|
|
1746
|
+
"mime"
|
|
1747
|
+
],
|
|
1748
|
+
"additionalProperties": false
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"required": [
|
|
1752
|
+
"$asset"
|
|
1753
|
+
],
|
|
1754
|
+
"additionalProperties": false
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"type": "null"
|
|
1758
|
+
}
|
|
1759
|
+
]
|
|
1760
|
+
},
|
|
1761
|
+
"currency": {
|
|
1762
|
+
"$ref": "#/properties/amount"
|
|
1763
|
+
},
|
|
1764
|
+
"network": {
|
|
1765
|
+
"$ref": "#/properties/amount"
|
|
1766
|
+
},
|
|
1767
|
+
"payTo": {
|
|
1768
|
+
"$ref": "#/properties/amount"
|
|
1769
|
+
},
|
|
1770
|
+
"action": {
|
|
1771
|
+
"$ref": "common_types.json#/$defs/Action"
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
"required": [
|
|
1775
|
+
"component"
|
|
1776
|
+
]
|
|
1777
|
+
}
|
|
1778
|
+
]
|
|
1779
|
+
},
|
|
1780
|
+
"FolderChat": {
|
|
1781
|
+
"allOf": [
|
|
1782
|
+
{
|
|
1783
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
"properties": {
|
|
1787
|
+
"component": {
|
|
1788
|
+
"const": "FolderChat"
|
|
1789
|
+
},
|
|
1790
|
+
"value": {
|
|
1791
|
+
"anyOf": [
|
|
1792
|
+
{
|
|
1793
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1794
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"type": "object",
|
|
1798
|
+
"properties": {
|
|
1799
|
+
"$asset": {
|
|
1800
|
+
"type": "object",
|
|
1801
|
+
"properties": {
|
|
1802
|
+
"drive_id": {
|
|
1803
|
+
"type": "string"
|
|
1804
|
+
},
|
|
1805
|
+
"path": {
|
|
1806
|
+
"type": "string"
|
|
1807
|
+
},
|
|
1808
|
+
"variant": {
|
|
1809
|
+
"type": "string",
|
|
1810
|
+
"enum": [
|
|
1811
|
+
"thumb",
|
|
1812
|
+
"original"
|
|
1813
|
+
]
|
|
1814
|
+
},
|
|
1815
|
+
"mime": {
|
|
1816
|
+
"type": "string"
|
|
1817
|
+
},
|
|
1818
|
+
"v": {
|
|
1819
|
+
"type": "number"
|
|
1820
|
+
}
|
|
1821
|
+
},
|
|
1822
|
+
"required": [
|
|
1823
|
+
"drive_id",
|
|
1824
|
+
"path",
|
|
1825
|
+
"variant",
|
|
1826
|
+
"mime"
|
|
1827
|
+
],
|
|
1828
|
+
"additionalProperties": false
|
|
1829
|
+
}
|
|
1830
|
+
},
|
|
1831
|
+
"required": [
|
|
1832
|
+
"$asset"
|
|
1833
|
+
],
|
|
1834
|
+
"additionalProperties": false
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
"type": "null"
|
|
1838
|
+
}
|
|
1839
|
+
]
|
|
1840
|
+
},
|
|
1841
|
+
"action": {
|
|
1842
|
+
"$ref": "common_types.json#/$defs/Action"
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
"required": [
|
|
1846
|
+
"component"
|
|
1847
|
+
]
|
|
1848
|
+
}
|
|
1849
|
+
]
|
|
1850
|
+
},
|
|
1851
|
+
"FilePicker": {
|
|
1852
|
+
"allOf": [
|
|
1853
|
+
{
|
|
1854
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
"properties": {
|
|
1858
|
+
"component": {
|
|
1859
|
+
"const": "FilePicker"
|
|
1860
|
+
},
|
|
1861
|
+
"items": {
|
|
1862
|
+
"anyOf": [
|
|
1863
|
+
{
|
|
1864
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1865
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"type": "object",
|
|
1869
|
+
"properties": {
|
|
1870
|
+
"$asset": {
|
|
1871
|
+
"type": "object",
|
|
1872
|
+
"properties": {
|
|
1873
|
+
"drive_id": {
|
|
1874
|
+
"type": "string"
|
|
1875
|
+
},
|
|
1876
|
+
"path": {
|
|
1877
|
+
"type": "string"
|
|
1878
|
+
},
|
|
1879
|
+
"variant": {
|
|
1880
|
+
"type": "string",
|
|
1881
|
+
"enum": [
|
|
1882
|
+
"thumb",
|
|
1883
|
+
"original"
|
|
1884
|
+
]
|
|
1885
|
+
},
|
|
1886
|
+
"mime": {
|
|
1887
|
+
"type": "string"
|
|
1888
|
+
},
|
|
1889
|
+
"v": {
|
|
1890
|
+
"type": "number"
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1893
|
+
"required": [
|
|
1894
|
+
"drive_id",
|
|
1895
|
+
"path",
|
|
1896
|
+
"variant",
|
|
1897
|
+
"mime"
|
|
1898
|
+
],
|
|
1899
|
+
"additionalProperties": false
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
"required": [
|
|
1903
|
+
"$asset"
|
|
1904
|
+
],
|
|
1905
|
+
"additionalProperties": false
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"type": "null"
|
|
1909
|
+
}
|
|
1910
|
+
]
|
|
1911
|
+
},
|
|
1912
|
+
"scope": {
|
|
1913
|
+
"$ref": "#/properties/items"
|
|
1914
|
+
},
|
|
1915
|
+
"query": {
|
|
1916
|
+
"$ref": "#/properties/items"
|
|
1917
|
+
},
|
|
1918
|
+
"cursor": {
|
|
1919
|
+
"$ref": "#/properties/items"
|
|
1920
|
+
},
|
|
1921
|
+
"asOf": {
|
|
1922
|
+
"$ref": "#/properties/items"
|
|
1923
|
+
},
|
|
1924
|
+
"cursorExpired": {
|
|
1925
|
+
"$ref": "#/properties/items"
|
|
1926
|
+
},
|
|
1927
|
+
"selection": {
|
|
1928
|
+
"$ref": "#/properties/items"
|
|
1929
|
+
},
|
|
1930
|
+
"selected": {
|
|
1931
|
+
"$ref": "#/properties/items"
|
|
1932
|
+
},
|
|
1933
|
+
"context": {
|
|
1934
|
+
"anyOf": [
|
|
1935
|
+
{
|
|
1936
|
+
"type": "object",
|
|
1937
|
+
"additionalProperties": {}
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"$ref": "#/properties/items/anyOf/0"
|
|
1941
|
+
}
|
|
1942
|
+
]
|
|
1943
|
+
}
|
|
1944
|
+
},
|
|
1945
|
+
"required": [
|
|
1946
|
+
"component"
|
|
1947
|
+
]
|
|
1948
|
+
}
|
|
1949
|
+
]
|
|
1950
|
+
},
|
|
1951
|
+
"AgentPicker": {
|
|
1952
|
+
"allOf": [
|
|
1953
|
+
{
|
|
1954
|
+
"$ref": "common_types.json#/$defs/ComponentCommon"
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
"properties": {
|
|
1958
|
+
"component": {
|
|
1959
|
+
"const": "AgentPicker"
|
|
1960
|
+
},
|
|
1961
|
+
"items": {
|
|
1962
|
+
"anyOf": [
|
|
1963
|
+
{
|
|
1964
|
+
"$ref": "common_types.json#/$defs/DynamicValue",
|
|
1965
|
+
"description": "A value that can be a literal, a path, or a function call returning any type."
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
"type": "object",
|
|
1969
|
+
"properties": {
|
|
1970
|
+
"$asset": {
|
|
1971
|
+
"type": "object",
|
|
1972
|
+
"properties": {
|
|
1973
|
+
"drive_id": {
|
|
1974
|
+
"type": "string"
|
|
1975
|
+
},
|
|
1976
|
+
"path": {
|
|
1977
|
+
"type": "string"
|
|
1978
|
+
},
|
|
1979
|
+
"variant": {
|
|
1980
|
+
"type": "string",
|
|
1981
|
+
"enum": [
|
|
1982
|
+
"thumb",
|
|
1983
|
+
"original"
|
|
1984
|
+
]
|
|
1985
|
+
},
|
|
1986
|
+
"mime": {
|
|
1987
|
+
"type": "string"
|
|
1988
|
+
},
|
|
1989
|
+
"v": {
|
|
1990
|
+
"type": "number"
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
"required": [
|
|
1994
|
+
"drive_id",
|
|
1995
|
+
"path",
|
|
1996
|
+
"variant",
|
|
1997
|
+
"mime"
|
|
1998
|
+
],
|
|
1999
|
+
"additionalProperties": false
|
|
2000
|
+
}
|
|
2001
|
+
},
|
|
2002
|
+
"required": [
|
|
2003
|
+
"$asset"
|
|
2004
|
+
],
|
|
2005
|
+
"additionalProperties": false
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
"type": "null"
|
|
2009
|
+
}
|
|
2010
|
+
]
|
|
2011
|
+
},
|
|
2012
|
+
"scope": {
|
|
2013
|
+
"$ref": "#/properties/items"
|
|
2014
|
+
},
|
|
2015
|
+
"query": {
|
|
2016
|
+
"$ref": "#/properties/items"
|
|
2017
|
+
},
|
|
2018
|
+
"cursor": {
|
|
2019
|
+
"$ref": "#/properties/items"
|
|
2020
|
+
},
|
|
2021
|
+
"asOf": {
|
|
2022
|
+
"$ref": "#/properties/items"
|
|
2023
|
+
},
|
|
2024
|
+
"cursorExpired": {
|
|
2025
|
+
"$ref": "#/properties/items"
|
|
2026
|
+
},
|
|
2027
|
+
"selected": {
|
|
2028
|
+
"$ref": "#/properties/items"
|
|
2029
|
+
},
|
|
2030
|
+
"renders": {
|
|
2031
|
+
"$ref": "#/properties/items"
|
|
2032
|
+
},
|
|
2033
|
+
"context": {
|
|
2034
|
+
"anyOf": [
|
|
2035
|
+
{
|
|
2036
|
+
"type": "object",
|
|
2037
|
+
"additionalProperties": {}
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
"$ref": "#/properties/items/anyOf/0"
|
|
2041
|
+
}
|
|
2042
|
+
]
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
"required": [
|
|
2046
|
+
"component"
|
|
2047
|
+
]
|
|
2048
|
+
}
|
|
2049
|
+
]
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
"functions": [
|
|
2053
|
+
{
|
|
2054
|
+
"name": "add",
|
|
2055
|
+
"returnType": "number",
|
|
2056
|
+
"parameters": {
|
|
2057
|
+
"type": "object",
|
|
2058
|
+
"properties": {
|
|
2059
|
+
"a": {
|
|
2060
|
+
"type": "number"
|
|
2061
|
+
},
|
|
2062
|
+
"b": {
|
|
2063
|
+
"type": "number"
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
"required": [
|
|
2067
|
+
"a",
|
|
2068
|
+
"b"
|
|
2069
|
+
],
|
|
2070
|
+
"additionalProperties": false,
|
|
2071
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2072
|
+
}
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"name": "subtract",
|
|
2076
|
+
"returnType": "number",
|
|
2077
|
+
"parameters": {
|
|
2078
|
+
"type": "object",
|
|
2079
|
+
"properties": {
|
|
2080
|
+
"a": {
|
|
2081
|
+
"type": "number"
|
|
2082
|
+
},
|
|
2083
|
+
"b": {
|
|
2084
|
+
"type": "number"
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
2087
|
+
"required": [
|
|
2088
|
+
"a",
|
|
2089
|
+
"b"
|
|
2090
|
+
],
|
|
2091
|
+
"additionalProperties": false,
|
|
2092
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"name": "multiply",
|
|
2097
|
+
"returnType": "number",
|
|
2098
|
+
"parameters": {
|
|
2099
|
+
"type": "object",
|
|
2100
|
+
"properties": {
|
|
2101
|
+
"a": {
|
|
2102
|
+
"type": "number"
|
|
2103
|
+
},
|
|
2104
|
+
"b": {
|
|
2105
|
+
"type": "number"
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
"required": [
|
|
2109
|
+
"a",
|
|
2110
|
+
"b"
|
|
2111
|
+
],
|
|
2112
|
+
"additionalProperties": false,
|
|
2113
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2114
|
+
}
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
"name": "divide",
|
|
2118
|
+
"returnType": "number",
|
|
2119
|
+
"parameters": {
|
|
2120
|
+
"type": "object",
|
|
2121
|
+
"properties": {
|
|
2122
|
+
"a": {
|
|
2123
|
+
"type": "number"
|
|
2124
|
+
},
|
|
2125
|
+
"b": {
|
|
2126
|
+
"type": "number"
|
|
2127
|
+
}
|
|
2128
|
+
},
|
|
2129
|
+
"required": [
|
|
2130
|
+
"a",
|
|
2131
|
+
"b"
|
|
2132
|
+
],
|
|
2133
|
+
"additionalProperties": false,
|
|
2134
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2135
|
+
}
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
"name": "equals",
|
|
2139
|
+
"returnType": "boolean",
|
|
2140
|
+
"parameters": {
|
|
2141
|
+
"type": "object",
|
|
2142
|
+
"properties": {
|
|
2143
|
+
"a": {},
|
|
2144
|
+
"b": {}
|
|
2145
|
+
},
|
|
2146
|
+
"required": [
|
|
2147
|
+
"a",
|
|
2148
|
+
"b"
|
|
2149
|
+
],
|
|
2150
|
+
"additionalProperties": false,
|
|
2151
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2152
|
+
}
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
"name": "not_equals",
|
|
2156
|
+
"returnType": "boolean",
|
|
2157
|
+
"parameters": {
|
|
2158
|
+
"type": "object",
|
|
2159
|
+
"properties": {
|
|
2160
|
+
"a": {},
|
|
2161
|
+
"b": {}
|
|
2162
|
+
},
|
|
2163
|
+
"required": [
|
|
2164
|
+
"a",
|
|
2165
|
+
"b"
|
|
2166
|
+
],
|
|
2167
|
+
"additionalProperties": false,
|
|
2168
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2169
|
+
}
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"name": "greater_than",
|
|
2173
|
+
"returnType": "boolean",
|
|
2174
|
+
"parameters": {
|
|
2175
|
+
"type": "object",
|
|
2176
|
+
"properties": {
|
|
2177
|
+
"a": {
|
|
2178
|
+
"type": "number"
|
|
2179
|
+
},
|
|
2180
|
+
"b": {
|
|
2181
|
+
"type": "number"
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
"required": [
|
|
2185
|
+
"a",
|
|
2186
|
+
"b"
|
|
2187
|
+
],
|
|
2188
|
+
"additionalProperties": false,
|
|
2189
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2190
|
+
}
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
"name": "less_than",
|
|
2194
|
+
"returnType": "boolean",
|
|
2195
|
+
"parameters": {
|
|
2196
|
+
"type": "object",
|
|
2197
|
+
"properties": {
|
|
2198
|
+
"a": {
|
|
2199
|
+
"type": "number"
|
|
2200
|
+
},
|
|
2201
|
+
"b": {
|
|
2202
|
+
"type": "number"
|
|
2203
|
+
}
|
|
2204
|
+
},
|
|
2205
|
+
"required": [
|
|
2206
|
+
"a",
|
|
2207
|
+
"b"
|
|
2208
|
+
],
|
|
2209
|
+
"additionalProperties": false,
|
|
2210
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2211
|
+
}
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
"name": "and",
|
|
2215
|
+
"returnType": "boolean",
|
|
2216
|
+
"parameters": {
|
|
2217
|
+
"type": "object",
|
|
2218
|
+
"properties": {
|
|
2219
|
+
"values": {
|
|
2220
|
+
"type": "array",
|
|
2221
|
+
"minItems": 2
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
"required": [
|
|
2225
|
+
"values"
|
|
2226
|
+
],
|
|
2227
|
+
"additionalProperties": false,
|
|
2228
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"name": "or",
|
|
2233
|
+
"returnType": "boolean",
|
|
2234
|
+
"parameters": {
|
|
2235
|
+
"type": "object",
|
|
2236
|
+
"properties": {
|
|
2237
|
+
"values": {
|
|
2238
|
+
"type": "array",
|
|
2239
|
+
"minItems": 2
|
|
2240
|
+
}
|
|
2241
|
+
},
|
|
2242
|
+
"required": [
|
|
2243
|
+
"values"
|
|
2244
|
+
],
|
|
2245
|
+
"additionalProperties": false,
|
|
2246
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2247
|
+
}
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"name": "not",
|
|
2251
|
+
"returnType": "boolean",
|
|
2252
|
+
"parameters": {
|
|
2253
|
+
"type": "object",
|
|
2254
|
+
"properties": {
|
|
2255
|
+
"value": {}
|
|
2256
|
+
},
|
|
2257
|
+
"required": [
|
|
2258
|
+
"value"
|
|
2259
|
+
],
|
|
2260
|
+
"additionalProperties": false,
|
|
2261
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2262
|
+
}
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
"name": "contains",
|
|
2266
|
+
"returnType": "boolean",
|
|
2267
|
+
"parameters": {
|
|
2268
|
+
"type": "object",
|
|
2269
|
+
"properties": {
|
|
2270
|
+
"string": {
|
|
2271
|
+
"type": "string"
|
|
2272
|
+
},
|
|
2273
|
+
"substring": {
|
|
2274
|
+
"type": "string"
|
|
2275
|
+
}
|
|
2276
|
+
},
|
|
2277
|
+
"required": [
|
|
2278
|
+
"string",
|
|
2279
|
+
"substring"
|
|
2280
|
+
],
|
|
2281
|
+
"additionalProperties": false,
|
|
2282
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
{
|
|
2286
|
+
"name": "starts_with",
|
|
2287
|
+
"returnType": "boolean",
|
|
2288
|
+
"parameters": {
|
|
2289
|
+
"type": "object",
|
|
2290
|
+
"properties": {
|
|
2291
|
+
"string": {
|
|
2292
|
+
"type": "string"
|
|
2293
|
+
},
|
|
2294
|
+
"prefix": {
|
|
2295
|
+
"type": "string"
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
"required": [
|
|
2299
|
+
"string",
|
|
2300
|
+
"prefix"
|
|
2301
|
+
],
|
|
2302
|
+
"additionalProperties": false,
|
|
2303
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2304
|
+
}
|
|
2305
|
+
},
|
|
2306
|
+
{
|
|
2307
|
+
"name": "ends_with",
|
|
2308
|
+
"returnType": "boolean",
|
|
2309
|
+
"parameters": {
|
|
2310
|
+
"type": "object",
|
|
2311
|
+
"properties": {
|
|
2312
|
+
"string": {
|
|
2313
|
+
"type": "string"
|
|
2314
|
+
},
|
|
2315
|
+
"suffix": {
|
|
2316
|
+
"type": "string"
|
|
2317
|
+
}
|
|
2318
|
+
},
|
|
2319
|
+
"required": [
|
|
2320
|
+
"string",
|
|
2321
|
+
"suffix"
|
|
2322
|
+
],
|
|
2323
|
+
"additionalProperties": false,
|
|
2324
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2325
|
+
}
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"name": "required",
|
|
2329
|
+
"returnType": "boolean",
|
|
2330
|
+
"parameters": {
|
|
2331
|
+
"type": "object",
|
|
2332
|
+
"properties": {
|
|
2333
|
+
"value": {}
|
|
2334
|
+
},
|
|
2335
|
+
"required": [
|
|
2336
|
+
"value"
|
|
2337
|
+
],
|
|
2338
|
+
"additionalProperties": false,
|
|
2339
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
"name": "regex",
|
|
2344
|
+
"returnType": "boolean",
|
|
2345
|
+
"parameters": {
|
|
2346
|
+
"type": "object",
|
|
2347
|
+
"properties": {
|
|
2348
|
+
"value": {
|
|
2349
|
+
"type": "string"
|
|
2350
|
+
},
|
|
2351
|
+
"pattern": {
|
|
2352
|
+
"type": "string"
|
|
2353
|
+
}
|
|
2354
|
+
},
|
|
2355
|
+
"required": [
|
|
2356
|
+
"value",
|
|
2357
|
+
"pattern"
|
|
2358
|
+
],
|
|
2359
|
+
"additionalProperties": false,
|
|
2360
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2361
|
+
}
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
"name": "length",
|
|
2365
|
+
"returnType": "boolean",
|
|
2366
|
+
"parameters": {
|
|
2367
|
+
"type": "object",
|
|
2368
|
+
"properties": {
|
|
2369
|
+
"value": {},
|
|
2370
|
+
"min": {
|
|
2371
|
+
"type": "number"
|
|
2372
|
+
},
|
|
2373
|
+
"max": {
|
|
2374
|
+
"type": "number"
|
|
2375
|
+
}
|
|
2376
|
+
},
|
|
2377
|
+
"required": [
|
|
2378
|
+
"value"
|
|
2379
|
+
],
|
|
2380
|
+
"additionalProperties": false,
|
|
2381
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"name": "numeric",
|
|
2386
|
+
"returnType": "boolean",
|
|
2387
|
+
"parameters": {
|
|
2388
|
+
"type": "object",
|
|
2389
|
+
"properties": {
|
|
2390
|
+
"value": {
|
|
2391
|
+
"type": "number"
|
|
2392
|
+
},
|
|
2393
|
+
"min": {
|
|
2394
|
+
"type": "number"
|
|
2395
|
+
},
|
|
2396
|
+
"max": {
|
|
2397
|
+
"type": "number"
|
|
2398
|
+
}
|
|
2399
|
+
},
|
|
2400
|
+
"required": [
|
|
2401
|
+
"value"
|
|
2402
|
+
],
|
|
2403
|
+
"additionalProperties": false,
|
|
2404
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2405
|
+
}
|
|
2406
|
+
},
|
|
2407
|
+
{
|
|
2408
|
+
"name": "email",
|
|
2409
|
+
"returnType": "boolean",
|
|
2410
|
+
"parameters": {
|
|
2411
|
+
"type": "object",
|
|
2412
|
+
"properties": {
|
|
2413
|
+
"value": {
|
|
2414
|
+
"type": "string"
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
"required": [
|
|
2418
|
+
"value"
|
|
2419
|
+
],
|
|
2420
|
+
"additionalProperties": false,
|
|
2421
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2422
|
+
}
|
|
2423
|
+
},
|
|
2424
|
+
{
|
|
2425
|
+
"name": "formatString",
|
|
2426
|
+
"returnType": "any",
|
|
2427
|
+
"parameters": {
|
|
2428
|
+
"type": "object",
|
|
2429
|
+
"properties": {
|
|
2430
|
+
"value": {
|
|
2431
|
+
"type": "string"
|
|
2432
|
+
}
|
|
2433
|
+
},
|
|
2434
|
+
"additionalProperties": false,
|
|
2435
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
"name": "formatNumber",
|
|
2440
|
+
"returnType": "string",
|
|
2441
|
+
"parameters": {
|
|
2442
|
+
"type": "object",
|
|
2443
|
+
"properties": {
|
|
2444
|
+
"value": {
|
|
2445
|
+
"type": "number"
|
|
2446
|
+
},
|
|
2447
|
+
"decimals": {
|
|
2448
|
+
"type": "number"
|
|
2449
|
+
},
|
|
2450
|
+
"grouping": {
|
|
2451
|
+
"type": "boolean",
|
|
2452
|
+
"default": true
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
"required": [
|
|
2456
|
+
"value"
|
|
2457
|
+
],
|
|
2458
|
+
"additionalProperties": false,
|
|
2459
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2460
|
+
}
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
"name": "formatCurrency",
|
|
2464
|
+
"returnType": "string",
|
|
2465
|
+
"parameters": {
|
|
2466
|
+
"type": "object",
|
|
2467
|
+
"properties": {
|
|
2468
|
+
"value": {
|
|
2469
|
+
"type": "number"
|
|
2470
|
+
},
|
|
2471
|
+
"currency": {
|
|
2472
|
+
"type": "string"
|
|
2473
|
+
},
|
|
2474
|
+
"decimals": {
|
|
2475
|
+
"type": "number"
|
|
2476
|
+
},
|
|
2477
|
+
"grouping": {
|
|
2478
|
+
"type": "boolean",
|
|
2479
|
+
"default": true
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
"required": [
|
|
2483
|
+
"value"
|
|
2484
|
+
],
|
|
2485
|
+
"additionalProperties": false,
|
|
2486
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
{
|
|
2490
|
+
"name": "formatDate",
|
|
2491
|
+
"returnType": "string",
|
|
2492
|
+
"parameters": {
|
|
2493
|
+
"type": "object",
|
|
2494
|
+
"properties": {
|
|
2495
|
+
"value": {},
|
|
2496
|
+
"format": {
|
|
2497
|
+
"type": "string"
|
|
2498
|
+
}
|
|
2499
|
+
},
|
|
2500
|
+
"required": [
|
|
2501
|
+
"value"
|
|
2502
|
+
],
|
|
2503
|
+
"additionalProperties": false,
|
|
2504
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2505
|
+
}
|
|
2506
|
+
},
|
|
2507
|
+
{
|
|
2508
|
+
"name": "pluralize",
|
|
2509
|
+
"returnType": "string",
|
|
2510
|
+
"parameters": {
|
|
2511
|
+
"type": "object",
|
|
2512
|
+
"properties": {
|
|
2513
|
+
"value": {
|
|
2514
|
+
"type": "number"
|
|
2515
|
+
},
|
|
2516
|
+
"zero": {
|
|
2517
|
+
"type": "string"
|
|
2518
|
+
},
|
|
2519
|
+
"one": {
|
|
2520
|
+
"type": "string"
|
|
2521
|
+
},
|
|
2522
|
+
"two": {
|
|
2523
|
+
"type": "string"
|
|
2524
|
+
},
|
|
2525
|
+
"few": {
|
|
2526
|
+
"type": "string"
|
|
2527
|
+
},
|
|
2528
|
+
"many": {
|
|
2529
|
+
"type": "string"
|
|
2530
|
+
},
|
|
2531
|
+
"other": {
|
|
2532
|
+
"type": "string"
|
|
2533
|
+
}
|
|
2534
|
+
},
|
|
2535
|
+
"required": [
|
|
2536
|
+
"value"
|
|
2537
|
+
],
|
|
2538
|
+
"additionalProperties": false,
|
|
2539
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2540
|
+
}
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
"name": "openUrl",
|
|
2544
|
+
"returnType": "void",
|
|
2545
|
+
"parameters": {
|
|
2546
|
+
"type": "object",
|
|
2547
|
+
"properties": {
|
|
2548
|
+
"url": {
|
|
2549
|
+
"type": "string"
|
|
2550
|
+
}
|
|
2551
|
+
},
|
|
2552
|
+
"required": [
|
|
2553
|
+
"url"
|
|
2554
|
+
],
|
|
2555
|
+
"additionalProperties": false,
|
|
2556
|
+
"$schema": "https://json-schema.org/draft/2019-09/schema#"
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
]
|
|
2560
|
+
}
|