@jsonforms/examples 3.6.0-alpha.0 → 3.6.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ export declare const schema: {
2
+ type: string[];
3
+ additionalProperties: boolean;
4
+ items: {
5
+ type: string[];
6
+ };
7
+ };
8
+ export declare const uischema: {
9
+ type: string;
10
+ scope: string;
11
+ };
@@ -0,0 +1,474 @@
1
+ import { type JsonSchema, type UISchemaElement } from '@jsonforms/core';
2
+ export declare const schema: {
3
+ $schema: string;
4
+ $id: string;
5
+ title: string;
6
+ definitions: {
7
+ schemaArray: {
8
+ type: string;
9
+ minItems: number;
10
+ items: {
11
+ $ref: string;
12
+ };
13
+ };
14
+ nonNegativeInteger: {
15
+ type: string;
16
+ minimum: number;
17
+ };
18
+ nonNegativeIntegerDefault0: {
19
+ allOf: ({
20
+ $ref: string;
21
+ default?: undefined;
22
+ } | {
23
+ default: number;
24
+ $ref?: undefined;
25
+ })[];
26
+ };
27
+ simpleTypes: {
28
+ type: string;
29
+ enum: string[];
30
+ };
31
+ stringArray: {
32
+ type: string;
33
+ items: {
34
+ type: string;
35
+ };
36
+ uniqueItems: boolean;
37
+ default: any;
38
+ };
39
+ };
40
+ type: string[];
41
+ properties: {
42
+ $id: {
43
+ type: string;
44
+ format: string;
45
+ };
46
+ $schema: {
47
+ type: string;
48
+ format: string;
49
+ };
50
+ $ref: {
51
+ type: string;
52
+ format: string;
53
+ };
54
+ $comment: {
55
+ type: string;
56
+ };
57
+ title: {
58
+ type: string;
59
+ };
60
+ description: {
61
+ type: string;
62
+ };
63
+ default: boolean;
64
+ readOnly: {
65
+ type: string;
66
+ default: boolean;
67
+ };
68
+ writeOnly: {
69
+ type: string;
70
+ default: boolean;
71
+ };
72
+ examples: {
73
+ type: string;
74
+ items: boolean;
75
+ };
76
+ multipleOf: {
77
+ type: string;
78
+ exclusiveMinimum: number;
79
+ };
80
+ maximum: {
81
+ type: string;
82
+ };
83
+ exclusiveMaximum: {
84
+ type: string;
85
+ };
86
+ minimum: {
87
+ type: string;
88
+ };
89
+ exclusiveMinimum: {
90
+ type: string;
91
+ };
92
+ maxLength: {
93
+ $ref: string;
94
+ };
95
+ minLength: {
96
+ $ref: string;
97
+ };
98
+ pattern: {
99
+ type: string;
100
+ format: string;
101
+ };
102
+ additionalItems: {
103
+ $ref: string;
104
+ };
105
+ items: {
106
+ anyOf: {
107
+ $ref: string;
108
+ }[];
109
+ default: boolean;
110
+ };
111
+ maxItems: {
112
+ $ref: string;
113
+ };
114
+ minItems: {
115
+ $ref: string;
116
+ };
117
+ uniqueItems: {
118
+ type: string;
119
+ default: boolean;
120
+ };
121
+ contains: {
122
+ $ref: string;
123
+ };
124
+ maxProperties: {
125
+ $ref: string;
126
+ };
127
+ minProperties: {
128
+ $ref: string;
129
+ };
130
+ required: {
131
+ $ref: string;
132
+ };
133
+ additionalProperties: {
134
+ $ref: string;
135
+ };
136
+ definitions: {
137
+ type: string;
138
+ additionalProperties: {
139
+ $ref: string;
140
+ };
141
+ default: {};
142
+ };
143
+ properties: {
144
+ type: string;
145
+ additionalProperties: {
146
+ $ref: string;
147
+ };
148
+ default: {};
149
+ };
150
+ patternProperties: {
151
+ type: string;
152
+ additionalProperties: {
153
+ $ref: string;
154
+ };
155
+ propertyNames: {
156
+ format: string;
157
+ };
158
+ default: {};
159
+ };
160
+ dependencies: {
161
+ type: string;
162
+ additionalProperties: {
163
+ anyOf: {
164
+ $ref: string;
165
+ }[];
166
+ };
167
+ };
168
+ propertyNames: {
169
+ $ref: string;
170
+ };
171
+ const: boolean;
172
+ enum: {
173
+ type: string;
174
+ items: boolean;
175
+ minItems: number;
176
+ uniqueItems: boolean;
177
+ };
178
+ type: {
179
+ anyOf: ({
180
+ $ref: string;
181
+ type?: undefined;
182
+ items?: undefined;
183
+ minItems?: undefined;
184
+ uniqueItems?: undefined;
185
+ } | {
186
+ type: string;
187
+ items: {
188
+ $ref: string;
189
+ };
190
+ minItems: number;
191
+ uniqueItems: boolean;
192
+ $ref?: undefined;
193
+ })[];
194
+ };
195
+ format: {
196
+ type: string;
197
+ };
198
+ contentMediaType: {
199
+ type: string;
200
+ };
201
+ contentEncoding: {
202
+ type: string;
203
+ };
204
+ if: {
205
+ $ref: string;
206
+ };
207
+ then: {
208
+ $ref: string;
209
+ };
210
+ else: {
211
+ $ref: string;
212
+ };
213
+ allOf: {
214
+ $ref: string;
215
+ };
216
+ anyOf: {
217
+ $ref: string;
218
+ };
219
+ oneOf: {
220
+ $ref: string;
221
+ };
222
+ not: {
223
+ $ref: string;
224
+ };
225
+ };
226
+ default: boolean;
227
+ };
228
+ export declare const uischema: UISchemaElement;
229
+ export declare const data: {
230
+ type: string;
231
+ properties: {
232
+ name: {
233
+ type: string;
234
+ minLength: number;
235
+ description: string;
236
+ };
237
+ vegetarian: {
238
+ type: string;
239
+ };
240
+ birthDate: {
241
+ type: string;
242
+ format: string;
243
+ };
244
+ nationality: {
245
+ type: string;
246
+ enum: string[];
247
+ };
248
+ personalData: {
249
+ type: string;
250
+ properties: {
251
+ age: {
252
+ type: string;
253
+ description: string;
254
+ };
255
+ height: {
256
+ type: string;
257
+ };
258
+ drivingSkill: {
259
+ type: string;
260
+ maximum: number;
261
+ minimum: number;
262
+ default: number;
263
+ };
264
+ };
265
+ required: string[];
266
+ };
267
+ occupation: {
268
+ type: string;
269
+ };
270
+ postalCode: {
271
+ type: string;
272
+ maxLength: number;
273
+ };
274
+ };
275
+ required: string[];
276
+ };
277
+ export declare const uischemas: ({
278
+ tester: (jsonSchema: JsonSchema, schemaPath: string, _path: string) => 2 | -1;
279
+ uischema: {
280
+ type: string;
281
+ scope: string;
282
+ label: string;
283
+ };
284
+ } | {
285
+ tester: (jsonSchema: JsonSchema, schemaPath: string, path: string) => 2 | -1;
286
+ uischema: {
287
+ type: string;
288
+ scope: string;
289
+ elements?: undefined;
290
+ options?: undefined;
291
+ };
292
+ } | {
293
+ tester: (jsonSchema: JsonSchema, _schemaPath: string, _path: string) => 2 | -1;
294
+ uischema: {
295
+ type: string;
296
+ elements: ({
297
+ type: string;
298
+ label: string;
299
+ elements: {
300
+ type: string;
301
+ elements: {
302
+ type: string;
303
+ scope: string;
304
+ }[];
305
+ }[];
306
+ rule?: undefined;
307
+ } | {
308
+ type: string;
309
+ label: string;
310
+ elements: {
311
+ type: string;
312
+ elements: ({
313
+ type: string;
314
+ scope: string;
315
+ options: {
316
+ 'label-0': string;
317
+ 'label-1': string;
318
+ };
319
+ rule?: undefined;
320
+ elements?: undefined;
321
+ } | {
322
+ type: string;
323
+ rule: {
324
+ effect: string;
325
+ condition: {
326
+ scope: string;
327
+ schema: {
328
+ anyOf: ({
329
+ type: string;
330
+ enum: string[];
331
+ items?: undefined;
332
+ contains?: undefined;
333
+ } | {
334
+ type: string;
335
+ items: {
336
+ type: string;
337
+ };
338
+ contains: {
339
+ type: string;
340
+ enum: string[];
341
+ };
342
+ enum?: undefined;
343
+ })[];
344
+ };
345
+ };
346
+ };
347
+ elements: {
348
+ type: string;
349
+ label: string;
350
+ elements: {
351
+ type: string;
352
+ scope: string;
353
+ }[];
354
+ }[];
355
+ scope?: undefined;
356
+ options?: undefined;
357
+ })[];
358
+ }[];
359
+ rule?: undefined;
360
+ } | {
361
+ type: string;
362
+ label: string;
363
+ rule: {
364
+ effect: string;
365
+ condition: {
366
+ scope: string;
367
+ schema: {
368
+ oneOf: ({
369
+ type: string;
370
+ enum: string[];
371
+ items?: undefined;
372
+ minItems?: undefined;
373
+ uniqueItems?: undefined;
374
+ } | {
375
+ type: string;
376
+ items: {
377
+ type: string;
378
+ enum: string[];
379
+ };
380
+ minItems: number;
381
+ uniqueItems: boolean;
382
+ enum?: undefined;
383
+ })[];
384
+ };
385
+ };
386
+ };
387
+ elements: {
388
+ type: string;
389
+ elements: ({
390
+ type: string;
391
+ label: string;
392
+ rule: {
393
+ effect: string;
394
+ condition: {
395
+ scope: string;
396
+ schema: {
397
+ anyOf: ({
398
+ type: string;
399
+ enum: string[];
400
+ items?: undefined;
401
+ contains?: undefined;
402
+ } | {
403
+ type: string;
404
+ items: {
405
+ type: string;
406
+ };
407
+ contains: {
408
+ type: string;
409
+ enum: string[];
410
+ };
411
+ enum?: undefined;
412
+ })[];
413
+ };
414
+ };
415
+ };
416
+ elements: {
417
+ type: string;
418
+ elements: {
419
+ type: string;
420
+ scope: string;
421
+ }[];
422
+ }[];
423
+ } | {
424
+ type: string;
425
+ label: string;
426
+ rule: {
427
+ effect: string;
428
+ condition: {
429
+ scope: string;
430
+ schema: {
431
+ anyOf: ({
432
+ type: string;
433
+ enum: string[];
434
+ items?: undefined;
435
+ contains?: undefined;
436
+ } | {
437
+ type: string;
438
+ items: {
439
+ type: string;
440
+ };
441
+ contains: {
442
+ type: string;
443
+ enum: string[];
444
+ };
445
+ enum?: undefined;
446
+ })[];
447
+ };
448
+ };
449
+ };
450
+ elements: {
451
+ type: string;
452
+ scope: string;
453
+ }[];
454
+ })[];
455
+ }[];
456
+ })[];
457
+ options: {
458
+ variant: string;
459
+ showNavButtons: boolean;
460
+ };
461
+ scope?: undefined;
462
+ };
463
+ } | {
464
+ tester: (jsonSchema: JsonSchema, _schemaPath: string, _path: string) => 2 | -1;
465
+ uischema: {
466
+ type: string;
467
+ elements: {
468
+ type: string;
469
+ scope: string;
470
+ }[];
471
+ scope?: undefined;
472
+ options?: undefined;
473
+ };
474
+ })[];
@@ -0,0 +1,25 @@
1
+ export declare const schema: {
2
+ $schema: string;
3
+ title: string;
4
+ type: string;
5
+ properties: {
6
+ mixedSimple: {
7
+ type: string[];
8
+ description: string;
9
+ };
10
+ nullableString: {
11
+ type: string[];
12
+ };
13
+ mixed: {
14
+ type: string[];
15
+ };
16
+ };
17
+ required: string[];
18
+ };
19
+ export declare const uischema: {
20
+ type: string;
21
+ elements: {
22
+ type: string;
23
+ scope: string;
24
+ }[];
25
+ };
@@ -0,0 +1,8 @@
1
+ export declare const schema: {
2
+ $schema: string;
3
+ type: string[];
4
+ };
5
+ export declare const uischema: {
6
+ type: string;
7
+ scope: string;
8
+ };
@@ -1,3 +1,4 @@
1
+ import { ValidateFunctionContext } from '@jsonforms/core';
1
2
  export declare const schema: {
2
3
  type: string;
3
4
  properties: {
@@ -18,6 +19,10 @@ export declare const schema: {
18
19
  type: string;
19
20
  enum: string[];
20
21
  };
22
+ vitaminDeficiency: {
23
+ type: string;
24
+ enum: string[];
25
+ };
21
26
  };
22
27
  };
23
28
  export declare const uischema: {
@@ -45,6 +50,19 @@ export declare const uischema: {
45
50
  schema: {
46
51
  const: boolean;
47
52
  };
53
+ validate?: undefined;
54
+ };
55
+ };
56
+ } | {
57
+ type: string;
58
+ label: string;
59
+ scope: string;
60
+ rule: {
61
+ effect: string;
62
+ condition: {
63
+ scope: string;
64
+ validate: (context: ValidateFunctionContext) => boolean;
65
+ schema?: undefined;
48
66
  };
49
67
  };
50
68
  })[];
package/lib/index.d.ts CHANGED
@@ -51,8 +51,12 @@ import * as additionalErrors from './examples/additional-errors';
51
51
  import * as multiEnumWithLabelAndDesc from './examples/enum-multi-with-label-and-desc';
52
52
  import * as additionalProperties from './examples/additional-properties';
53
53
  import * as login from './examples/login';
54
+ import * as mixed from './examples/mixed';
55
+ import * as mixedObject from './examples/mixed-object';
54
56
  import * as string from './examples/string';
55
57
  export * from './register';
56
58
  export * from './example';
57
59
  import * as ifThenElse from './examples/if_then_else';
58
- export { issue_1948, defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, arrayI18n, nestedArray, nestedCategorization, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, arrayWithSorting, arrayWithTranslatedCustomChildLabel, categorization, stepper, steppershownav, controlOptions, generateSchema, generateUISchema, layout, person, rule, ruleInheritance, dates, generateDynamic, config, text, numbers, scope, listWithDetail, listWithDetailRegistered, object, i18n, oneOfRecursive, huge, ifThenElse, onChange, enumExample, radioGroupExample, multiEnum, multiEnumWithLabelAndDesc, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, additionalProperties, login, issue_1884, arrayWithDefaults, string, };
60
+ import * as jsonschema from './examples/jsonschema';
61
+ import * as jsoneditor from './examples/json-editor';
62
+ export { issue_1948, defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, arrayI18n, nestedArray, nestedCategorization, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, arrayWithSorting, arrayWithTranslatedCustomChildLabel, categorization, stepper, steppershownav, controlOptions, generateSchema, generateUISchema, layout, person, rule, ruleInheritance, dates, generateDynamic, config, text, numbers, scope, listWithDetail, listWithDetailRegistered, object, i18n, oneOfRecursive, huge, ifThenElse, jsoneditor, jsonschema, onChange, enumExample, radioGroupExample, multiEnum, multiEnumWithLabelAndDesc, enumInArray, readonly, listWithDetailPrimitives, conditionalSchemaComposition, additionalErrors, additionalProperties, login, mixed, mixedObject, issue_1884, arrayWithDefaults, string, };