@jsonforms/examples 3.1.0-alpha.2 → 3.1.0-alpha.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.
@@ -18,6 +18,12 @@ export declare const schema: {
18
18
  type: string;
19
19
  const: string;
20
20
  };
21
+ oneOfEnum: {
22
+ type: string;
23
+ oneOf: {
24
+ const: string;
25
+ }[];
26
+ };
21
27
  };
22
28
  };
23
29
  };
@@ -55,8 +61,13 @@ export declare const uischemaWithSorting: {
55
61
  })[];
56
62
  };
57
63
  export declare const data: {
58
- comments: {
64
+ comments: ({
65
+ date: string;
66
+ message: string;
67
+ oneOfEnum?: undefined;
68
+ } | {
59
69
  date: string;
60
70
  message: string;
61
- }[];
71
+ oneOfEnum: string;
72
+ })[];
62
73
  };
@@ -9,6 +9,10 @@ export declare const schema: {
9
9
  type: string;
10
10
  enum: string[];
11
11
  };
12
+ enumWithError: {
13
+ type: string;
14
+ enum: string[];
15
+ };
12
16
  oneOfEnum: {
13
17
  type: string;
14
18
  oneOf: {
@@ -23,6 +27,13 @@ export declare const schema: {
23
27
  title: string;
24
28
  }[];
25
29
  };
30
+ oneOfEnumWithError: {
31
+ type: string;
32
+ oneOf: {
33
+ const: string;
34
+ title: string;
35
+ }[];
36
+ };
26
37
  constEnum: {
27
38
  const: string;
28
39
  };
@@ -48,5 +59,7 @@ export declare const uischema: {
48
59
  };
49
60
  export declare const data: {
50
61
  plainEnumSet: string;
62
+ enumWithError: string;
51
63
  oneOfEnumSet: string;
64
+ oneOfEnumWithError: string;
52
65
  };
@@ -721,6 +721,10 @@ var schema$D = {
721
721
  type: 'string',
722
722
  const: 'foo',
723
723
  },
724
+ oneOfEnum: {
725
+ type: 'string',
726
+ oneOf: [{ const: 'foo' }, { const: 'bar' }],
727
+ },
724
728
  },
725
729
  },
726
730
  },
@@ -768,6 +772,7 @@ var data$F = {
768
772
  {
769
773
  date: new Date().toISOString().substr(0, 10),
770
774
  message: 'Get ready for booohay',
775
+ oneOfEnum: 'test',
771
776
  },
772
777
  ],
773
778
  };
@@ -5420,6 +5425,10 @@ var schema$7 = {
5420
5425
  type: 'string',
5421
5426
  enum: ['foo', 'bar'],
5422
5427
  },
5428
+ enumWithError: {
5429
+ type: 'string',
5430
+ enum: ['foo', 'bar'],
5431
+ },
5423
5432
  oneOfEnum: {
5424
5433
  type: 'string',
5425
5434
  oneOf: [
@@ -5436,6 +5445,14 @@ var schema$7 = {
5436
5445
  { const: 'foobar', title: 'FooBar' },
5437
5446
  ],
5438
5447
  },
5448
+ oneOfEnumWithError: {
5449
+ type: 'string',
5450
+ oneOf: [
5451
+ { const: 'foo', title: 'Foo' },
5452
+ { const: 'bar', title: 'Bar' },
5453
+ { const: 'foobar', title: 'FooBar' },
5454
+ ],
5455
+ },
5439
5456
  constEnum: {
5440
5457
  const: 'Const Value',
5441
5458
  },
@@ -5474,6 +5491,10 @@ var uischema$7 = {
5474
5491
  autocomplete: false,
5475
5492
  },
5476
5493
  },
5494
+ {
5495
+ type: 'Control',
5496
+ scope: '#/properties/enumWithError',
5497
+ },
5477
5498
  ],
5478
5499
  },
5479
5500
  {
@@ -5502,11 +5523,20 @@ var uischema$7 = {
5502
5523
  autocomplete: false,
5503
5524
  },
5504
5525
  },
5526
+ {
5527
+ type: 'Control',
5528
+ scope: '#/properties/oneOfEnumWithError',
5529
+ },
5505
5530
  ],
5506
5531
  },
5507
5532
  ],
5508
5533
  };
5509
- var data$7 = { plainEnumSet: 'foo', oneOfEnumSet: 'bar' };
5534
+ var data$7 = {
5535
+ plainEnumSet: 'foo',
5536
+ enumWithError: 'bogus',
5537
+ oneOfEnumSet: 'bar',
5538
+ oneOfEnumWithError: 'bogus',
5539
+ };
5510
5540
  registerExamples([
5511
5541
  {
5512
5542
  name: 'enum',