@jsonforms/examples 3.1.0-alpha.2 → 3.1.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.
@@ -677,6 +677,10 @@ const schema$D = {
677
677
  type: 'string',
678
678
  const: 'foo',
679
679
  },
680
+ oneOfEnum: {
681
+ type: 'string',
682
+ oneOf: [{ const: 'foo' }, { const: 'bar' }],
683
+ },
680
684
  },
681
685
  },
682
686
  },
@@ -724,6 +728,7 @@ const data$F = {
724
728
  {
725
729
  date: new Date().toISOString().substr(0, 10),
726
730
  message: 'Get ready for booohay',
731
+ oneOfEnum: 'test',
727
732
  },
728
733
  ],
729
734
  };
@@ -5426,6 +5431,10 @@ const schema$7 = {
5426
5431
  type: 'string',
5427
5432
  enum: ['foo', 'bar'],
5428
5433
  },
5434
+ enumWithError: {
5435
+ type: 'string',
5436
+ enum: ['foo', 'bar'],
5437
+ },
5429
5438
  oneOfEnum: {
5430
5439
  type: 'string',
5431
5440
  oneOf: [
@@ -5442,6 +5451,14 @@ const schema$7 = {
5442
5451
  { const: 'foobar', title: 'FooBar' },
5443
5452
  ],
5444
5453
  },
5454
+ oneOfEnumWithError: {
5455
+ type: 'string',
5456
+ oneOf: [
5457
+ { const: 'foo', title: 'Foo' },
5458
+ { const: 'bar', title: 'Bar' },
5459
+ { const: 'foobar', title: 'FooBar' },
5460
+ ],
5461
+ },
5445
5462
  constEnum: {
5446
5463
  const: 'Const Value',
5447
5464
  },
@@ -5480,6 +5497,10 @@ const uischema$7 = {
5480
5497
  autocomplete: false,
5481
5498
  },
5482
5499
  },
5500
+ {
5501
+ type: 'Control',
5502
+ scope: '#/properties/enumWithError',
5503
+ },
5483
5504
  ],
5484
5505
  },
5485
5506
  {
@@ -5508,11 +5529,20 @@ const uischema$7 = {
5508
5529
  autocomplete: false,
5509
5530
  },
5510
5531
  },
5532
+ {
5533
+ type: 'Control',
5534
+ scope: '#/properties/oneOfEnumWithError',
5535
+ },
5511
5536
  ],
5512
5537
  },
5513
5538
  ],
5514
5539
  };
5515
- const data$7 = { plainEnumSet: 'foo', oneOfEnumSet: 'bar' };
5540
+ const data$7 = {
5541
+ plainEnumSet: 'foo',
5542
+ enumWithError: 'bogus',
5543
+ oneOfEnumSet: 'bar',
5544
+ oneOfEnumWithError: 'bogus',
5545
+ };
5516
5546
  registerExamples([
5517
5547
  {
5518
5548
  name: 'enum',