@jsonforms/examples 3.6.0-alpha.1 → 3.6.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.
@@ -12,7 +12,7 @@ const getExamples = () => {
12
12
  return examples;
13
13
  };
14
14
 
15
- const schema$O = {
15
+ const schema$S = {
16
16
  $schema: 'http://json-schema.org/draft-07/schema#',
17
17
  definitions: {
18
18
  address: {
@@ -45,7 +45,7 @@ const schema$O = {
45
45
  },
46
46
  },
47
47
  };
48
- const uischema$O = {
48
+ const uischema$S = {
49
49
  type: 'VerticalLayout',
50
50
  elements: [
51
51
  {
@@ -59,7 +59,7 @@ const uischema$O = {
59
59
  },
60
60
  ],
61
61
  };
62
- const data$Q = {
62
+ const data$U = {
63
63
  billing_address: {
64
64
  street_address: '1600 Pennsylvania Avenue NW',
65
65
  city: 'Washington',
@@ -70,19 +70,19 @@ registerExamples([
70
70
  {
71
71
  name: 'allOf',
72
72
  label: 'allOf',
73
- data: data$Q,
74
- schema: schema$O,
75
- uischema: uischema$O,
73
+ data: data$U,
74
+ schema: schema$S,
75
+ uischema: uischema$S,
76
76
  },
77
77
  ]);
78
78
 
79
79
  var allOf = /*#__PURE__*/Object.freeze({
80
80
  __proto__: null,
81
- schema: schema$O,
82
- uischema: uischema$O
81
+ schema: schema$S,
82
+ uischema: uischema$S
83
83
  });
84
84
 
85
- const schema$N = {
85
+ const schema$R = {
86
86
  $schema: 'http://json-schema.org/draft-07/schema#',
87
87
  definitions: {
88
88
  address: {
@@ -136,7 +136,7 @@ const schema$N = {
136
136
  },
137
137
  },
138
138
  };
139
- const uischema$N = {
139
+ const uischema$R = {
140
140
  type: 'VerticalLayout',
141
141
  elements: [
142
142
  {
@@ -155,7 +155,7 @@ const uischema$N = {
155
155
  },
156
156
  ],
157
157
  };
158
- const data$P = {
158
+ const data$T = {
159
159
  addressOrUser: {
160
160
  street_address: '1600 Pennsylvania Avenue NW',
161
161
  city: 'Washington',
@@ -174,9 +174,9 @@ registerExamples([
174
174
  {
175
175
  name: 'anyOf',
176
176
  label: 'anyOf',
177
- data: data$P,
178
- schema: schema$N,
179
- uischema: uischema$N,
177
+ data: data$T,
178
+ schema: schema$R,
179
+ uischema: uischema$R,
180
180
  },
181
181
  {
182
182
  name: 'anyOf_simple',
@@ -189,11 +189,11 @@ registerExamples([
189
189
 
190
190
  var anyOf = /*#__PURE__*/Object.freeze({
191
191
  __proto__: null,
192
- schema: schema$N,
193
- uischema: uischema$N
192
+ schema: schema$R,
193
+ uischema: uischema$R
194
194
  });
195
195
 
196
- const schema$M = {
196
+ const schema$Q = {
197
197
  $schema: 'http://json-schema.org/draft-07/schema#',
198
198
  definitions: {
199
199
  address: {
@@ -228,7 +228,7 @@ const schema$M = {
228
228
  },
229
229
  required: ['name'],
230
230
  };
231
- const uischema$M = {
231
+ const uischema$Q = {
232
232
  type: 'VerticalLayout',
233
233
  elements: [
234
234
  {
@@ -241,7 +241,7 @@ const uischema$M = {
241
241
  },
242
242
  ],
243
243
  };
244
- const data$O = {
244
+ const data$S = {
245
245
  name: 'test',
246
246
  addressOrUser: {
247
247
  name: 'User',
@@ -463,9 +463,9 @@ registerExamples([
463
463
  {
464
464
  name: 'oneOf',
465
465
  label: 'oneOf',
466
- data: data$O,
467
- schema: schema$M,
468
- uischema: uischema$M,
466
+ data: data$S,
467
+ schema: schema$Q,
468
+ uischema: uischema$Q,
469
469
  },
470
470
  {
471
471
  name: 'oneOf_1265_array',
@@ -506,11 +506,11 @@ registerExamples([
506
506
 
507
507
  var oneOf = /*#__PURE__*/Object.freeze({
508
508
  __proto__: null,
509
- schema: schema$M,
510
- uischema: uischema$M
509
+ schema: schema$Q,
510
+ uischema: uischema$Q
511
511
  });
512
512
 
513
- const schema$L = {
513
+ const schema$P = {
514
514
  $schema: 'http://json-schema.org/draft-07/schema#',
515
515
  definitions: {
516
516
  address: {
@@ -545,7 +545,7 @@ const schema$L = {
545
545
  },
546
546
  },
547
547
  };
548
- const uischema$L = {
548
+ const uischema$P = {
549
549
  type: 'VerticalLayout',
550
550
  elements: [
551
551
  {
@@ -554,7 +554,7 @@ const uischema$L = {
554
554
  },
555
555
  ],
556
556
  };
557
- const data$N = {
557
+ const data$R = {
558
558
  name: 'test',
559
559
  addressOrUsers: [
560
560
  {
@@ -572,19 +572,19 @@ registerExamples([
572
572
  {
573
573
  name: 'oneOfArray',
574
574
  label: 'oneOf - Inside array items',
575
- data: data$N,
576
- schema: schema$L,
577
- uischema: uischema$L,
575
+ data: data$R,
576
+ schema: schema$P,
577
+ uischema: uischema$P,
578
578
  },
579
579
  ]);
580
580
 
581
581
  var oneOfArray = /*#__PURE__*/Object.freeze({
582
582
  __proto__: null,
583
- schema: schema$L,
584
- uischema: uischema$L
583
+ schema: schema$P,
584
+ uischema: uischema$P
585
585
  });
586
586
 
587
- const schema$K = {
587
+ const schema$O = {
588
588
  $defs: {
589
589
  Base: {
590
590
  type: 'object',
@@ -615,7 +615,7 @@ const schema$K = {
615
615
  },
616
616
  },
617
617
  };
618
- const uischema$K = {
618
+ const uischema$O = {
619
619
  type: 'VerticalLayout',
620
620
  elements: [
621
621
  {
@@ -640,24 +640,24 @@ const uischema$K = {
640
640
  },
641
641
  ],
642
642
  };
643
- const data$M = {};
643
+ const data$Q = {};
644
644
  registerExamples([
645
645
  {
646
646
  name: 'anyOf-oneOf-allOf-resolve',
647
647
  label: 'AnyOf OneOf AllOf Resolve',
648
- data: data$M,
649
- schema: schema$K,
650
- uischema: uischema$K,
648
+ data: data$Q,
649
+ schema: schema$O,
650
+ uischema: uischema$O,
651
651
  },
652
652
  ]);
653
653
 
654
654
  var anyOfOneOfAllOfResolve = /*#__PURE__*/Object.freeze({
655
655
  __proto__: null,
656
- schema: schema$K,
657
- uischema: uischema$K
656
+ schema: schema$O,
657
+ uischema: uischema$O
658
658
  });
659
659
 
660
- const schema$J = {
660
+ const schema$N = {
661
661
  type: 'object',
662
662
  properties: {
663
663
  comments: {
@@ -687,7 +687,7 @@ const schema$J = {
687
687
  foo: { type: 'string' },
688
688
  },
689
689
  };
690
- const uischema$J = {
690
+ const uischema$N = {
691
691
  type: 'VerticalLayout',
692
692
  elements: [
693
693
  {
@@ -719,7 +719,7 @@ const uischemaWithSorting$1 = {
719
719
  },
720
720
  ],
721
721
  };
722
- const data$L = {
722
+ const data$P = {
723
723
  comments: [
724
724
  {
725
725
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -732,7 +732,7 @@ const data$L = {
732
732
  },
733
733
  ],
734
734
  };
735
- const actions$6 = [
735
+ const actions$7 = [
736
736
  {
737
737
  label: 'Enable Sorting',
738
738
  apply: (props) => {
@@ -747,7 +747,7 @@ const actions$6 = [
747
747
  apply: (props) => {
748
748
  return {
749
749
  ...props,
750
- uischema: uischema$J,
750
+ uischema: uischema$N,
751
751
  };
752
752
  },
753
753
  },
@@ -762,25 +762,25 @@ registerExamples([
762
762
  {
763
763
  name: 'array',
764
764
  label: 'Array',
765
- data: data$L,
766
- schema: schema$J,
767
- uischema: uischema$J,
765
+ data: data$P,
766
+ schema: schema$N,
767
+ uischema: uischema$N,
768
768
  config: {
769
769
  withSort: uischemaWithSorting$1,
770
770
  },
771
- actions: actions$6,
771
+ actions: actions$7,
772
772
  },
773
773
  ]);
774
774
 
775
775
  var arrays = /*#__PURE__*/Object.freeze({
776
776
  __proto__: null,
777
- schema: schema$J,
778
- uischema: uischema$J,
777
+ schema: schema$N,
778
+ uischema: uischema$N,
779
779
  uischemaWithSorting: uischemaWithSorting$1,
780
- data: data$L
780
+ data: data$P
781
781
  });
782
782
 
783
- const schema$I = {
783
+ const schema$M = {
784
784
  type: 'object',
785
785
  properties: {
786
786
  comments: {
@@ -805,7 +805,7 @@ const schema$I = {
805
805
  },
806
806
  },
807
807
  };
808
- const uischema$I = {
808
+ const uischema$M = {
809
809
  type: 'VerticalLayout',
810
810
  elements: [
811
811
  {
@@ -817,7 +817,7 @@ const uischema$I = {
817
817
  },
818
818
  ],
819
819
  };
820
- const data$K = {
820
+ const data$O = {
821
821
  comments: [
822
822
  {
823
823
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -845,9 +845,9 @@ registerExamples([
845
845
  {
846
846
  name: 'array-i18n',
847
847
  label: 'Array (i18n)',
848
- data: data$K,
849
- schema: schema$I,
850
- uischema: uischema$I,
848
+ data: data$O,
849
+ schema: schema$M,
850
+ uischema: uischema$M,
851
851
  i18n: {
852
852
  translate: translate$3,
853
853
  locale: 'en',
@@ -857,14 +857,14 @@ registerExamples([
857
857
 
858
858
  var arraysI18n = /*#__PURE__*/Object.freeze({
859
859
  __proto__: null,
860
- schema: schema$I,
861
- uischema: uischema$I,
862
- data: data$K,
860
+ schema: schema$M,
861
+ uischema: uischema$M,
862
+ data: data$O,
863
863
  translations: translations$2,
864
864
  translate: translate$3
865
865
  });
866
866
 
867
- const schema$H = {
867
+ const schema$L = {
868
868
  definitions: {
869
869
  choicesContainer: {
870
870
  type: 'object',
@@ -889,7 +889,7 @@ const schema$H = {
889
889
  },
890
890
  },
891
891
  };
892
- const uischema$H = {
892
+ const uischema$L = {
893
893
  type: 'HorizontalLayout',
894
894
  elements: [
895
895
  {
@@ -902,7 +902,7 @@ const uischema$H = {
902
902
  },
903
903
  ],
904
904
  };
905
- const data$J = {
905
+ const data$N = {
906
906
  exampleArray: [
907
907
  {
908
908
  choices: ['This', 'is', 'an', 'example'],
@@ -918,7 +918,7 @@ const control2 = {
918
918
  type: 'Control',
919
919
  scope: '#/properties/choices',
920
920
  };
921
- const uischemas = [
921
+ const uischemas$1 = [
922
922
  {
923
923
  tester: (_jsonSchema, schemaPath) => {
924
924
  return schemaPath === '#/properties/exampleArray' ? 2 : NOT_APPLICABLE;
@@ -929,13 +929,13 @@ const uischemas = [
929
929
  },
930
930
  },
931
931
  ];
932
- const actions$5 = [
932
+ const actions$6 = [
933
933
  {
934
934
  label: 'Register NestedArray UISchema',
935
935
  apply: (props) => {
936
936
  return {
937
937
  ...props,
938
- uischemas: uischemas,
938
+ uischemas: uischemas$1,
939
939
  };
940
940
  },
941
941
  },
@@ -954,19 +954,19 @@ registerExamples([
954
954
  {
955
955
  name: 'nestedArray',
956
956
  label: 'Nested Array',
957
- data: data$J,
958
- schema: schema$H,
959
- uischema: uischema$H,
960
- actions: actions$5,
957
+ data: data$N,
958
+ schema: schema$L,
959
+ uischema: uischema$L,
960
+ actions: actions$6,
961
961
  },
962
962
  ]);
963
963
 
964
964
  var nestedArrays = /*#__PURE__*/Object.freeze({
965
965
  __proto__: null,
966
- uischema: uischema$H
966
+ uischema: uischema$L
967
967
  });
968
968
 
969
- const schema$G = {
969
+ const schema$K = {
970
970
  type: 'object',
971
971
  properties: {
972
972
  cat1: {
@@ -1004,7 +1004,7 @@ const schema$G = {
1004
1004
  },
1005
1005
  },
1006
1006
  };
1007
- const uischema$G = {
1007
+ const uischema$K = {
1008
1008
  type: 'Categorization',
1009
1009
  elements: [
1010
1010
  {
@@ -1102,22 +1102,22 @@ const uischema$G = {
1102
1102
  },
1103
1103
  ],
1104
1104
  };
1105
- const data$I = {};
1105
+ const data$M = {};
1106
1106
  registerExamples([
1107
1107
  {
1108
1108
  name: 'nestedCategorization',
1109
1109
  label: 'Nested Categorization',
1110
- data: data$I,
1111
- schema: schema$G,
1112
- uischema: uischema$G,
1110
+ data: data$M,
1111
+ schema: schema$K,
1112
+ uischema: uischema$K,
1113
1113
  },
1114
1114
  ]);
1115
1115
 
1116
1116
  var nestedCategorization = /*#__PURE__*/Object.freeze({
1117
1117
  __proto__: null,
1118
- schema: schema$G,
1119
- uischema: uischema$G,
1120
- data: data$I
1118
+ schema: schema$K,
1119
+ uischema: uischema$K,
1120
+ data: data$M
1121
1121
  });
1122
1122
 
1123
1123
  const personCoreSchema = {
@@ -1142,7 +1142,7 @@ const personCoreSchema = {
1142
1142
  },
1143
1143
  },
1144
1144
  };
1145
- const schema$F = {
1145
+ const schema$J = {
1146
1146
  type: 'object',
1147
1147
  properties: {
1148
1148
  ...personCoreSchema.properties,
@@ -1182,7 +1182,7 @@ const schema$F = {
1182
1182
  },
1183
1183
  required: ['occupation', 'nationality'],
1184
1184
  };
1185
- const uischema$F = {
1185
+ const uischema$J = {
1186
1186
  type: 'VerticalLayout',
1187
1187
  elements: [
1188
1188
  {
@@ -1237,7 +1237,7 @@ const uischema$F = {
1237
1237
  },
1238
1238
  ],
1239
1239
  };
1240
- const data$H = {
1240
+ const data$L = {
1241
1241
  name: 'John Doe',
1242
1242
  vegetarian: false,
1243
1243
  birthDate: '1985-06-02',
@@ -1250,21 +1250,21 @@ registerExamples([
1250
1250
  {
1251
1251
  name: 'person',
1252
1252
  label: 'Person',
1253
- data: data$H,
1254
- schema: schema$F,
1255
- uischema: uischema$F,
1253
+ data: data$L,
1254
+ schema: schema$J,
1255
+ uischema: uischema$J,
1256
1256
  },
1257
1257
  ]);
1258
1258
 
1259
1259
  var person = /*#__PURE__*/Object.freeze({
1260
1260
  __proto__: null,
1261
1261
  personCoreSchema: personCoreSchema,
1262
- schema: schema$F,
1263
- uischema: uischema$F,
1264
- data: data$H
1262
+ schema: schema$J,
1263
+ uischema: uischema$J,
1264
+ data: data$L
1265
1265
  });
1266
1266
 
1267
- const schema$E = {
1267
+ const schema$I = {
1268
1268
  type: 'object',
1269
1269
  properties: {
1270
1270
  ...personCoreSchema.properties,
@@ -1291,7 +1291,7 @@ const schema$E = {
1291
1291
  },
1292
1292
  required: ['occupation', 'nationality'],
1293
1293
  };
1294
- const uischema$E = {
1294
+ const uischema$I = {
1295
1295
  type: 'VerticalLayout',
1296
1296
  elements: [
1297
1297
  {
@@ -1317,7 +1317,7 @@ const uischema$E = {
1317
1317
  },
1318
1318
  ],
1319
1319
  };
1320
- const data$G = {
1320
+ const data$K = {
1321
1321
  comments: [
1322
1322
  {
1323
1323
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -1329,7 +1329,7 @@ const data$G = {
1329
1329
  },
1330
1330
  ],
1331
1331
  };
1332
- const actions$4 = [
1332
+ const actions$5 = [
1333
1333
  {
1334
1334
  label: 'Toggle readonly',
1335
1335
  apply: (props) => {
@@ -1341,21 +1341,21 @@ registerExamples([
1341
1341
  {
1342
1342
  name: 'array-with-detail',
1343
1343
  label: 'Array with detail',
1344
- data: data$G,
1345
- schema: schema$E,
1346
- uischema: uischema$E,
1347
- actions: actions$4,
1344
+ data: data$K,
1345
+ schema: schema$I,
1346
+ uischema: uischema$I,
1347
+ actions: actions$5,
1348
1348
  },
1349
1349
  ]);
1350
1350
 
1351
1351
  var arraysWithDetail = /*#__PURE__*/Object.freeze({
1352
1352
  __proto__: null,
1353
- schema: schema$E,
1354
- uischema: uischema$E,
1355
- data: data$G
1353
+ schema: schema$I,
1354
+ uischema: uischema$I,
1355
+ data: data$K
1356
1356
  });
1357
1357
 
1358
- const schema$D = {
1358
+ const schema$H = {
1359
1359
  type: 'object',
1360
1360
  properties: {
1361
1361
  ...personCoreSchema.properties,
@@ -1381,7 +1381,7 @@ const schema$D = {
1381
1381
  },
1382
1382
  required: ['occupation', 'nationality'],
1383
1383
  };
1384
- const uischema$D = {
1384
+ const uischema$H = {
1385
1385
  type: 'VerticalLayout',
1386
1386
  elements: [
1387
1387
  {
@@ -1429,7 +1429,7 @@ const uischema$D = {
1429
1429
  },
1430
1430
  ],
1431
1431
  };
1432
- const data$F = {
1432
+ const data$J = {
1433
1433
  occupation: 'developer',
1434
1434
  comments: [
1435
1435
  {
@@ -1446,20 +1446,20 @@ registerExamples([
1446
1446
  {
1447
1447
  name: 'array-with-detail-and-rule',
1448
1448
  label: 'Array with detail and rule',
1449
- data: data$F,
1450
- schema: schema$D,
1451
- uischema: uischema$D,
1449
+ data: data$J,
1450
+ schema: schema$H,
1451
+ uischema: uischema$H,
1452
1452
  },
1453
1453
  ]);
1454
1454
 
1455
1455
  var arraysWithDetailAndRule = /*#__PURE__*/Object.freeze({
1456
1456
  __proto__: null,
1457
- schema: schema$D,
1458
- uischema: uischema$D,
1459
- data: data$F
1457
+ schema: schema$H,
1458
+ uischema: uischema$H,
1459
+ data: data$J
1460
1460
  });
1461
1461
 
1462
- const schema$C = {
1462
+ const schema$G = {
1463
1463
  type: 'object',
1464
1464
  properties: {
1465
1465
  comments: {
@@ -1479,7 +1479,7 @@ const schema$C = {
1479
1479
  },
1480
1480
  },
1481
1481
  };
1482
- const uischema$C = {
1482
+ const uischema$G = {
1483
1483
  type: 'VerticalLayout',
1484
1484
  elements: [
1485
1485
  {
@@ -1504,7 +1504,7 @@ const uischema$C = {
1504
1504
  },
1505
1505
  ],
1506
1506
  };
1507
- const data$E = {
1507
+ const data$I = {
1508
1508
  comments: [
1509
1509
  {
1510
1510
  message1: 'This is an example message',
@@ -1520,20 +1520,20 @@ registerExamples([
1520
1520
  {
1521
1521
  name: 'array-with-custom-element-label',
1522
1522
  label: 'Array with custom element label',
1523
- data: data$E,
1524
- schema: schema$C,
1525
- uischema: uischema$C,
1523
+ data: data$I,
1524
+ schema: schema$G,
1525
+ uischema: uischema$G,
1526
1526
  },
1527
1527
  ]);
1528
1528
 
1529
1529
  var arraysWithCustomElementLabel = /*#__PURE__*/Object.freeze({
1530
1530
  __proto__: null,
1531
- schema: schema$C,
1532
- uischema: uischema$C,
1533
- data: data$E
1531
+ schema: schema$G,
1532
+ uischema: uischema$G,
1533
+ data: data$I
1534
1534
  });
1535
1535
 
1536
- const schema$B = {
1536
+ const schema$F = {
1537
1537
  type: 'object',
1538
1538
  properties: {
1539
1539
  comments: {
@@ -1561,7 +1561,7 @@ const schema$B = {
1561
1561
  foo: { type: 'string' },
1562
1562
  },
1563
1563
  };
1564
- const uischema$B = {
1564
+ const uischema$F = {
1565
1565
  type: 'VerticalLayout',
1566
1566
  elements: [
1567
1567
  {
@@ -1595,7 +1595,7 @@ const uischemaWithSorting = {
1595
1595
  },
1596
1596
  ],
1597
1597
  };
1598
- const data$D = {
1598
+ const data$H = {
1599
1599
  comments: [
1600
1600
  {
1601
1601
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -1607,7 +1607,7 @@ const data$D = {
1607
1607
  },
1608
1608
  ],
1609
1609
  };
1610
- const actions$3 = [
1610
+ const actions$4 = [
1611
1611
  {
1612
1612
  label: 'Enable Sorting',
1613
1613
  apply: (props) => {
@@ -1622,7 +1622,7 @@ const actions$3 = [
1622
1622
  apply: (props) => {
1623
1623
  return {
1624
1624
  ...props,
1625
- uischema: uischema$B,
1625
+ uischema: uischema$F,
1626
1626
  };
1627
1627
  },
1628
1628
  },
@@ -1631,25 +1631,25 @@ registerExamples([
1631
1631
  {
1632
1632
  name: 'array-with-sorting',
1633
1633
  label: 'Array with sorting',
1634
- data: data$D,
1635
- schema: schema$B,
1636
- uischema: uischema$B,
1634
+ data: data$H,
1635
+ schema: schema$F,
1636
+ uischema: uischema$F,
1637
1637
  config: {
1638
1638
  withSort: uischemaWithSorting,
1639
1639
  },
1640
- actions: actions$3,
1640
+ actions: actions$4,
1641
1641
  },
1642
1642
  ]);
1643
1643
 
1644
1644
  var arraysWithSorting = /*#__PURE__*/Object.freeze({
1645
1645
  __proto__: null,
1646
- schema: schema$B,
1647
- uischema: uischema$B,
1646
+ schema: schema$F,
1647
+ uischema: uischema$F,
1648
1648
  uischemaWithSorting: uischemaWithSorting,
1649
- data: data$D
1649
+ data: data$H
1650
1650
  });
1651
1651
 
1652
- const data$C = {
1652
+ const data$G = {
1653
1653
  article: {
1654
1654
  title: 'title',
1655
1655
  comments: [
@@ -1674,7 +1674,7 @@ const data$C = {
1674
1674
  ],
1675
1675
  },
1676
1676
  };
1677
- const schema$A = {
1677
+ const schema$E = {
1678
1678
  type: 'object',
1679
1679
  properties: {
1680
1680
  article: {
@@ -1760,7 +1760,7 @@ const detail = {
1760
1760
  },
1761
1761
  ],
1762
1762
  };
1763
- const uischema$A = {
1763
+ const uischema$E = {
1764
1764
  type: 'VerticalLayout',
1765
1765
  elements: [
1766
1766
  {
@@ -1884,9 +1884,9 @@ registerExamples([
1884
1884
  {
1885
1885
  name: 'array-with-translated-custom-element-label',
1886
1886
  label: 'Array with translated custom element label',
1887
- data: data$C,
1888
- schema: schema$A,
1889
- uischema: uischema$A,
1887
+ data: data$G,
1888
+ schema: schema$E,
1889
+ uischema: uischema$E,
1890
1890
  i18n: {
1891
1891
  translate: translate$2,
1892
1892
  locale: 'en',
@@ -1896,12 +1896,12 @@ registerExamples([
1896
1896
 
1897
1897
  var arraysWithTranslatedCustomElementLabel = /*#__PURE__*/Object.freeze({
1898
1898
  __proto__: null,
1899
- data: data$C,
1900
- uischema: uischema$A,
1899
+ data: data$G,
1900
+ uischema: uischema$E,
1901
1901
  translate: translate$2
1902
1902
  });
1903
1903
 
1904
- const schema$z = {
1904
+ const schema$D = {
1905
1905
  definitions: {
1906
1906
  itemsType: {
1907
1907
  type: 'object',
@@ -1973,7 +1973,7 @@ const schema$z = {
1973
1973
  },
1974
1974
  },
1975
1975
  };
1976
- const uischema$z = {
1976
+ const uischema$D = {
1977
1977
  type: 'VerticalLayout',
1978
1978
  elements: [
1979
1979
  {
@@ -1990,25 +1990,25 @@ const uischema$z = {
1990
1990
  },
1991
1991
  ],
1992
1992
  };
1993
- const data$B = {};
1993
+ const data$F = {};
1994
1994
  registerExamples([
1995
1995
  {
1996
1996
  name: 'array-with-defaults',
1997
1997
  label: 'Array with defaults',
1998
- data: data$B,
1999
- schema: schema$z,
2000
- uischema: uischema$z,
1998
+ data: data$F,
1999
+ schema: schema$D,
2000
+ uischema: uischema$D,
2001
2001
  },
2002
2002
  ]);
2003
2003
 
2004
2004
  var arraysWithDefaults = /*#__PURE__*/Object.freeze({
2005
2005
  __proto__: null,
2006
- schema: schema$z,
2007
- uischema: uischema$z,
2008
- data: data$B
2006
+ schema: schema$D,
2007
+ uischema: uischema$D,
2008
+ data: data$F
2009
2009
  });
2010
2010
 
2011
- const schema$y = {
2011
+ const schema$C = {
2012
2012
  type: 'object',
2013
2013
  properties: {
2014
2014
  comments: {
@@ -2021,7 +2021,7 @@ const schema$y = {
2021
2021
  },
2022
2022
  },
2023
2023
  };
2024
- const uischema$y = {
2024
+ const uischema$C = {
2025
2025
  type: 'VerticalLayout',
2026
2026
  elements: [
2027
2027
  {
@@ -2030,27 +2030,27 @@ const uischema$y = {
2030
2030
  },
2031
2031
  ],
2032
2032
  };
2033
- const data$A = {
2033
+ const data$E = {
2034
2034
  comments: ['one string', 'two strings'],
2035
2035
  };
2036
2036
  registerExamples([
2037
2037
  {
2038
2038
  name: 'stringArray',
2039
2039
  label: 'Array of Strings',
2040
- data: data$A,
2041
- schema: schema$y,
2042
- uischema: uischema$y,
2040
+ data: data$E,
2041
+ schema: schema$C,
2042
+ uischema: uischema$C,
2043
2043
  },
2044
2044
  ]);
2045
2045
 
2046
2046
  var stringArray = /*#__PURE__*/Object.freeze({
2047
2047
  __proto__: null,
2048
- schema: schema$y,
2049
- uischema: uischema$y,
2050
- data: data$A
2048
+ schema: schema$C,
2049
+ uischema: uischema$C,
2050
+ data: data$E
2051
2051
  });
2052
2052
 
2053
- const schema$x = {
2053
+ const schema$B = {
2054
2054
  type: 'object',
2055
2055
  properties: {
2056
2056
  firstName: {
@@ -2113,7 +2113,7 @@ const schema$x = {
2113
2113
  },
2114
2114
  },
2115
2115
  };
2116
- const uischema$x = {
2116
+ const uischema$B = {
2117
2117
  type: 'Categorization',
2118
2118
  elements: [
2119
2119
  {
@@ -2229,7 +2229,7 @@ const uischema$x = {
2229
2229
  },
2230
2230
  ],
2231
2231
  };
2232
- const data$z = {
2232
+ const data$D = {
2233
2233
  provideAddress: true,
2234
2234
  vegetarian: false,
2235
2235
  };
@@ -2317,15 +2317,15 @@ registerExamples([
2317
2317
  {
2318
2318
  name: 'categorization',
2319
2319
  label: 'Categorization',
2320
- data: data$z,
2321
- schema: schema$x,
2322
- uischema: uischema$x,
2320
+ data: data$D,
2321
+ schema: schema$B,
2322
+ uischema: uischema$B,
2323
2323
  i18n: { locale: 'en', translate: translate$1 },
2324
2324
  },
2325
2325
  {
2326
2326
  name: 'categorization_1713',
2327
2327
  label: 'Categorization - Issue 1713',
2328
- data: data$z,
2328
+ data: data$D,
2329
2329
  schema: schema_1713,
2330
2330
  uischema: uischema_1713,
2331
2331
  },
@@ -2333,65 +2333,65 @@ registerExamples([
2333
2333
 
2334
2334
  var categorization = /*#__PURE__*/Object.freeze({
2335
2335
  __proto__: null,
2336
- schema: schema$x,
2337
- uischema: uischema$x,
2338
- data: data$z,
2339
- translations: translations$1,
2336
+ schema: schema$B,
2337
+ uischema: uischema$B,
2338
+ data: data$D,
2339
+ translations: translations$1,
2340
2340
  translate: translate$1
2341
2341
  });
2342
2342
 
2343
- const schema$w = schema$x;
2344
- const uischema$w = {
2345
- ...uischema$x,
2343
+ const schema$A = schema$B;
2344
+ const uischema$A = {
2345
+ ...uischema$B,
2346
2346
  options: {
2347
2347
  variant: 'stepper',
2348
2348
  },
2349
2349
  };
2350
- const data$y = data$z;
2350
+ const data$C = data$D;
2351
2351
  registerExamples([
2352
2352
  {
2353
2353
  name: 'categorizationstepper',
2354
2354
  label: 'Categorization (Stepper)',
2355
- data: data$y,
2356
- schema: schema$w,
2357
- uischema: uischema$w,
2355
+ data: data$C,
2356
+ schema: schema$A,
2357
+ uischema: uischema$A,
2358
2358
  },
2359
2359
  ]);
2360
2360
 
2361
2361
  var categorizationStepper = /*#__PURE__*/Object.freeze({
2362
2362
  __proto__: null,
2363
- schema: schema$w,
2364
- uischema: uischema$w,
2365
- data: data$y
2363
+ schema: schema$A,
2364
+ uischema: uischema$A,
2365
+ data: data$C
2366
2366
  });
2367
2367
 
2368
- const schema$v = schema$x;
2369
- const uischema$v = {
2370
- ...uischema$x,
2368
+ const schema$z = schema$B;
2369
+ const uischema$z = {
2370
+ ...uischema$B,
2371
2371
  options: {
2372
2372
  variant: 'stepper',
2373
2373
  showNavButtons: true,
2374
2374
  },
2375
2375
  };
2376
- const data$x = data$z;
2376
+ const data$B = data$D;
2377
2377
  registerExamples([
2378
2378
  {
2379
2379
  name: 'categorization-stepper-nav-buttons',
2380
2380
  label: 'Categorization (Stepper - Nav Buttons)',
2381
- data: data$x,
2382
- schema: schema$v,
2383
- uischema: uischema$v,
2381
+ data: data$B,
2382
+ schema: schema$z,
2383
+ uischema: uischema$z,
2384
2384
  },
2385
2385
  ]);
2386
2386
 
2387
2387
  var categorizationStepperNavButtons = /*#__PURE__*/Object.freeze({
2388
2388
  __proto__: null,
2389
- schema: schema$v,
2390
- uischema: uischema$v,
2391
- data: data$x
2389
+ schema: schema$z,
2390
+ uischema: uischema$z,
2391
+ data: data$B
2392
2392
  });
2393
2393
 
2394
- const schema$u = {
2394
+ const schema$y = {
2395
2395
  type: 'object',
2396
2396
  properties: {
2397
2397
  string: {
@@ -2425,7 +2425,7 @@ const schema$u = {
2425
2425
  },
2426
2426
  },
2427
2427
  };
2428
- const uischema$u = {
2428
+ const uischema$y = {
2429
2429
  type: 'VerticalLayout',
2430
2430
  elements: [
2431
2431
  {
@@ -2462,7 +2462,7 @@ const uischema$u = {
2462
2462
  },
2463
2463
  ],
2464
2464
  };
2465
- const data$w = {
2465
+ const data$A = {
2466
2466
  string: 'This is a string',
2467
2467
  boolean: true,
2468
2468
  number: 50.5,
@@ -2575,7 +2575,7 @@ const extendedData = {
2575
2575
  const combinedSchema = {
2576
2576
  ...extendedSchema,
2577
2577
  properties: {
2578
- ...schema$u.properties,
2578
+ ...schema$y.properties,
2579
2579
  ...extendedSchema.properties,
2580
2580
  },
2581
2581
  };
@@ -2585,7 +2585,7 @@ const combinedUiSchema = {
2585
2585
  {
2586
2586
  type: 'Category',
2587
2587
  label: 'Normal controls',
2588
- elements: [uischema$u],
2588
+ elements: [uischema$y],
2589
2589
  },
2590
2590
  {
2591
2591
  type: 'Category',
@@ -2595,7 +2595,7 @@ const combinedUiSchema = {
2595
2595
  ],
2596
2596
  };
2597
2597
  const combinedData = {
2598
- ...data$w,
2598
+ ...data$A,
2599
2599
  ...extendedData,
2600
2600
  };
2601
2601
  registerExamples([
@@ -2610,15 +2610,15 @@ registerExamples([
2610
2610
 
2611
2611
  var controlOptions = /*#__PURE__*/Object.freeze({
2612
2612
  __proto__: null,
2613
- schema: schema$u,
2614
- uischema: uischema$u,
2615
- data: data$w,
2613
+ schema: schema$y,
2614
+ uischema: uischema$y,
2615
+ data: data$A,
2616
2616
  extendedSchema: extendedSchema,
2617
2617
  extendedUischema: extendedUischema,
2618
2618
  extendedData: extendedData
2619
2619
  });
2620
2620
 
2621
- const schema$t = {
2621
+ const schema$x = {
2622
2622
  type: 'object',
2623
2623
  properties: {
2624
2624
  schemaBased: {
@@ -2660,7 +2660,7 @@ const schema$t = {
2660
2660
  },
2661
2661
  },
2662
2662
  };
2663
- const uischema$t = {
2663
+ const uischema$x = {
2664
2664
  type: 'VerticalLayout',
2665
2665
  elements: [
2666
2666
  {
@@ -2719,7 +2719,7 @@ const uischema$t = {
2719
2719
  },
2720
2720
  ],
2721
2721
  };
2722
- const data$v = {
2722
+ const data$z = {
2723
2723
  schemaBased: {
2724
2724
  date: new Date().toISOString().substr(0, 10),
2725
2725
  time: '13:37:00',
@@ -2735,20 +2735,20 @@ registerExamples([
2735
2735
  {
2736
2736
  name: 'dates',
2737
2737
  label: 'Dates',
2738
- data: data$v,
2739
- schema: schema$t,
2740
- uischema: uischema$t,
2738
+ data: data$z,
2739
+ schema: schema$x,
2740
+ uischema: uischema$x,
2741
2741
  },
2742
2742
  ]);
2743
2743
 
2744
2744
  var dates = /*#__PURE__*/Object.freeze({
2745
2745
  __proto__: null,
2746
- schema: schema$t,
2747
- uischema: uischema$t,
2748
- data: data$v
2746
+ schema: schema$x,
2747
+ uischema: uischema$x,
2748
+ data: data$z
2749
2749
  });
2750
2750
 
2751
- const actions$2 = [
2751
+ const actions$3 = [
2752
2752
  {
2753
2753
  label: 'Change data',
2754
2754
  apply: (props) => {
@@ -2766,56 +2766,56 @@ registerExamples([
2766
2766
  schema: undefined,
2767
2767
  uischema: undefined,
2768
2768
  data: { name: 'bla' },
2769
- actions: actions$2,
2769
+ actions: actions$3,
2770
2770
  },
2771
2771
  ]);
2772
2772
 
2773
2773
  var generateDynamic = /*#__PURE__*/Object.freeze({
2774
2774
  __proto__: null,
2775
- actions: actions$2
2775
+ actions: actions$3
2776
2776
  });
2777
2777
 
2778
- const schema$s = undefined;
2779
- const uischema$s = undefined;
2780
- const data$u = data$H;
2778
+ const schema$w = undefined;
2779
+ const uischema$w = undefined;
2780
+ const data$y = data$L;
2781
2781
  registerExamples([
2782
2782
  {
2783
2783
  name: 'generate',
2784
2784
  label: 'Generate both Schemas',
2785
- data: data$u,
2786
- schema: schema$s,
2787
- uischema: uischema$s,
2785
+ data: data$y,
2786
+ schema: schema$w,
2787
+ uischema: uischema$w,
2788
2788
  },
2789
2789
  ]);
2790
2790
 
2791
2791
  var generate = /*#__PURE__*/Object.freeze({
2792
2792
  __proto__: null,
2793
- schema: schema$s,
2794
- uischema: uischema$s,
2795
- data: data$u
2793
+ schema: schema$w,
2794
+ uischema: uischema$w,
2795
+ data: data$y
2796
2796
  });
2797
2797
 
2798
- const schema$r = personCoreSchema;
2799
- const uischema$r = undefined;
2800
- const data$t = data$H;
2798
+ const schema$v = personCoreSchema;
2799
+ const uischema$v = undefined;
2800
+ const data$x = data$L;
2801
2801
  registerExamples([
2802
2802
  {
2803
2803
  name: 'generate-ui',
2804
2804
  label: 'Generate UI Schema',
2805
- data: data$t,
2806
- schema: schema$r,
2807
- uischema: uischema$r,
2805
+ data: data$x,
2806
+ schema: schema$v,
2807
+ uischema: uischema$v,
2808
2808
  },
2809
2809
  ]);
2810
2810
 
2811
2811
  var generateUI = /*#__PURE__*/Object.freeze({
2812
2812
  __proto__: null,
2813
- schema: schema$r,
2814
- uischema: uischema$r,
2815
- data: data$t
2813
+ schema: schema$v,
2814
+ uischema: uischema$v,
2815
+ data: data$x
2816
2816
  });
2817
2817
 
2818
- const schema$q = schema$F;
2818
+ const schema$u = schema$J;
2819
2819
  const uischemaVertical = {
2820
2820
  type: 'VerticalLayout',
2821
2821
  elements: [
@@ -2903,49 +2903,49 @@ const uischemaComplex = {
2903
2903
  },
2904
2904
  ],
2905
2905
  };
2906
- const data$s = data$H;
2906
+ const data$w = data$L;
2907
2907
  registerExamples([
2908
2908
  {
2909
2909
  name: 'layout-vertical',
2910
2910
  label: 'Layout Vertical',
2911
- data: data$s,
2912
- schema: schema$q,
2911
+ data: data$w,
2912
+ schema: schema$u,
2913
2913
  uischema: uischemaVertical,
2914
2914
  },
2915
2915
  {
2916
2916
  name: 'layout-horizontal',
2917
2917
  label: 'Layout Horizontal',
2918
- data: data$s,
2919
- schema: schema$q,
2918
+ data: data$w,
2919
+ schema: schema$u,
2920
2920
  uischema: uischemaHorizontal,
2921
2921
  },
2922
2922
  {
2923
2923
  name: 'layout-group',
2924
2924
  label: 'Layout Group',
2925
- data: data$s,
2926
- schema: schema$q,
2925
+ data: data$w,
2926
+ schema: schema$u,
2927
2927
  uischema: uischemaGroup,
2928
2928
  },
2929
2929
  {
2930
2930
  name: 'layout-complex',
2931
2931
  label: 'Layout Complex',
2932
- data: data$s,
2933
- schema: schema$q,
2932
+ data: data$w,
2933
+ schema: schema$u,
2934
2934
  uischema: uischemaComplex,
2935
2935
  },
2936
2936
  ]);
2937
2937
 
2938
2938
  var layout = /*#__PURE__*/Object.freeze({
2939
2939
  __proto__: null,
2940
- schema: schema$q,
2940
+ schema: schema$u,
2941
2941
  uischemaVertical: uischemaVertical,
2942
2942
  uischemaHorizontal: uischemaHorizontal,
2943
2943
  uischemaGroup: uischemaGroup,
2944
2944
  uischemaComplex: uischemaComplex,
2945
- data: data$s
2945
+ data: data$w
2946
2946
  });
2947
2947
 
2948
- const schema$p = {
2948
+ const schema$t = {
2949
2949
  type: 'object',
2950
2950
  required: ['age'],
2951
2951
  properties: {
@@ -3000,7 +3000,7 @@ const schema$p = {
3000
3000
  },
3001
3001
  },
3002
3002
  };
3003
- const uischema$q = {
3003
+ const uischema$u = {
3004
3004
  type: 'VerticalLayout',
3005
3005
  elements: [
3006
3006
  {
@@ -3093,7 +3093,7 @@ const uischema$q = {
3093
3093
  },
3094
3094
  ],
3095
3095
  };
3096
- const data$r = {
3096
+ const data$v = {
3097
3097
  firstName: 'Max',
3098
3098
  lastName: 'Power',
3099
3099
  committer: false,
@@ -3102,20 +3102,20 @@ registerExamples([
3102
3102
  {
3103
3103
  name: '1884',
3104
3104
  label: 'Issue 1884 - Nested enable/disable',
3105
- data: data$r,
3106
- schema: schema$p,
3107
- uischema: uischema$q,
3105
+ data: data$v,
3106
+ schema: schema$t,
3107
+ uischema: uischema$u,
3108
3108
  },
3109
3109
  ]);
3110
3110
 
3111
3111
  var _1884 = /*#__PURE__*/Object.freeze({
3112
3112
  __proto__: null,
3113
- schema: schema$p,
3114
- uischema: uischema$q,
3115
- data: data$r
3113
+ schema: schema$t,
3114
+ uischema: uischema$u,
3115
+ data: data$v
3116
3116
  });
3117
3117
 
3118
- const schema$o = {
3118
+ const schema$s = {
3119
3119
  type: 'object',
3120
3120
  properties: {
3121
3121
  name: {
@@ -3135,9 +3135,13 @@ const schema$o = {
3135
3135
  type: 'string',
3136
3136
  enum: ['All', 'Some', 'Only potatoes'],
3137
3137
  },
3138
+ vitaminDeficiency: {
3139
+ type: 'string',
3140
+ enum: ['None', 'Vitamin A', 'Vitamin B', 'Vitamin C'],
3141
+ },
3138
3142
  },
3139
3143
  };
3140
- const uischema$p = {
3144
+ const uischema$t = {
3141
3145
  type: 'VerticalLayout',
3142
3146
  elements: [
3143
3147
  {
@@ -3191,11 +3195,26 @@ const uischema$p = {
3191
3195
  },
3192
3196
  },
3193
3197
  },
3198
+ {
3199
+ type: 'Control',
3200
+ label: 'Vitamin deficiency?',
3201
+ scope: '#/properties/vitaminDeficiency',
3202
+ rule: {
3203
+ effect: 'SHOW',
3204
+ condition: {
3205
+ scope: '#',
3206
+ validate: (context) => {
3207
+ return (!context.data.dead &&
3208
+ context.data.kindOfVegetables !== 'All');
3209
+ },
3210
+ },
3211
+ },
3212
+ },
3194
3213
  ],
3195
3214
  },
3196
3215
  ],
3197
3216
  };
3198
- const data$q = {
3217
+ const data$u = {
3199
3218
  name: 'John Doe',
3200
3219
  dead: false,
3201
3220
  vegetables: false,
@@ -3204,20 +3223,20 @@ registerExamples([
3204
3223
  {
3205
3224
  name: 'rule',
3206
3225
  label: 'Rule',
3207
- data: data$q,
3208
- schema: schema$o,
3209
- uischema: uischema$p,
3226
+ data: data$u,
3227
+ schema: schema$s,
3228
+ uischema: uischema$t,
3210
3229
  },
3211
3230
  ]);
3212
3231
 
3213
3232
  var rule = /*#__PURE__*/Object.freeze({
3214
3233
  __proto__: null,
3215
- schema: schema$o,
3216
- uischema: uischema$p,
3217
- data: data$q
3234
+ schema: schema$s,
3235
+ uischema: uischema$t,
3236
+ data: data$u
3218
3237
  });
3219
3238
 
3220
- const schema$n = {
3239
+ const schema$r = {
3221
3240
  type: 'object',
3222
3241
  properties: {
3223
3242
  toggleTopLayout: {
@@ -3237,7 +3256,7 @@ const schema$n = {
3237
3256
  },
3238
3257
  },
3239
3258
  };
3240
- const uischema$o = {
3259
+ const uischema$s = {
3241
3260
  type: 'VerticalLayout',
3242
3261
  rule: {
3243
3262
  effect: 'ENABLE',
@@ -3279,12 +3298,12 @@ const uischema$o = {
3279
3298
  },
3280
3299
  ],
3281
3300
  };
3282
- const data$p = {
3301
+ const data$t = {
3283
3302
  toggleTopLayout: true,
3284
3303
  toggleBottomLayout: true,
3285
3304
  toggleControl: true,
3286
3305
  };
3287
- const actions$1 = [
3306
+ const actions$2 = [
3288
3307
  {
3289
3308
  label: 'Enable/Disable top layout',
3290
3309
  apply: (props) => {
@@ -3311,21 +3330,21 @@ registerExamples([
3311
3330
  {
3312
3331
  name: 'rule-enable',
3313
3332
  label: 'Rule Inheritance',
3314
- data: data$p,
3315
- schema: schema$n,
3316
- uischema: uischema$o,
3317
- actions: actions$1,
3333
+ data: data$t,
3334
+ schema: schema$r,
3335
+ uischema: uischema$s,
3336
+ actions: actions$2,
3318
3337
  },
3319
3338
  ]);
3320
3339
 
3321
3340
  var ruleInheritance = /*#__PURE__*/Object.freeze({
3322
3341
  __proto__: null,
3323
- schema: schema$n,
3324
- uischema: uischema$o,
3325
- data: data$p
3342
+ schema: schema$r,
3343
+ uischema: uischema$s,
3344
+ data: data$t
3326
3345
  });
3327
3346
 
3328
- const schema$m = {
3347
+ const schema$q = {
3329
3348
  type: 'object',
3330
3349
  properties: {
3331
3350
  postalCode: {
@@ -3340,7 +3359,7 @@ const schema$m = {
3340
3359
  },
3341
3360
  required: ['postalCode'],
3342
3361
  };
3343
- const uischema$n = {
3362
+ const uischema$r = {
3344
3363
  type: 'VerticalLayout',
3345
3364
  elements: [
3346
3365
  {
@@ -3360,7 +3379,7 @@ const uischema$n = {
3360
3379
  },
3361
3380
  ],
3362
3381
  };
3363
- const data$o = {
3382
+ const data$s = {
3364
3383
  postalCode: '12345',
3365
3384
  };
3366
3385
  const config = {
@@ -3373,28 +3392,28 @@ registerExamples([
3373
3392
  {
3374
3393
  name: 'configDefault',
3375
3394
  label: 'Configuration (Default)',
3376
- data: data$o,
3377
- schema: schema$m,
3378
- uischema: uischema$n,
3395
+ data: data$s,
3396
+ schema: schema$q,
3397
+ uischema: uischema$r,
3379
3398
  },
3380
3399
  {
3381
3400
  name: 'configCustom',
3382
3401
  label: 'Configuration (Custom)',
3383
- data: data$o,
3384
- schema: schema$m,
3385
- uischema: uischema$n,
3402
+ data: data$s,
3403
+ schema: schema$q,
3404
+ uischema: uischema$r,
3386
3405
  config,
3387
3406
  },
3388
3407
  ]);
3389
3408
 
3390
3409
  var config$1 = /*#__PURE__*/Object.freeze({
3391
3410
  __proto__: null,
3392
- schema: schema$m,
3393
- uischema: uischema$n,
3394
- data: data$o
3411
+ schema: schema$q,
3412
+ uischema: uischema$r,
3413
+ data: data$s
3395
3414
  });
3396
3415
 
3397
- const schema$l = {
3416
+ const schema$p = {
3398
3417
  type: 'object',
3399
3418
  properties: {
3400
3419
  zipCode: {
@@ -3411,7 +3430,7 @@ const schema$l = {
3411
3430
  },
3412
3431
  },
3413
3432
  };
3414
- const uischema$m = {
3433
+ const uischema$q = {
3415
3434
  type: 'VerticalLayout',
3416
3435
  elements: [
3417
3436
  {
@@ -3448,7 +3467,7 @@ const uischema$m = {
3448
3467
  },
3449
3468
  ],
3450
3469
  };
3451
- const data$n = {
3470
+ const data$r = {
3452
3471
  zipCode: '12345',
3453
3472
  zipCodeWithoutTrim: '12345678',
3454
3473
  zipCodeWithoutRestrict: '12345678',
@@ -3457,20 +3476,20 @@ registerExamples([
3457
3476
  {
3458
3477
  name: 'text',
3459
3478
  label: 'Text Control Options',
3460
- data: data$n,
3461
- schema: schema$l,
3462
- uischema: uischema$m,
3479
+ data: data$r,
3480
+ schema: schema$p,
3481
+ uischema: uischema$q,
3463
3482
  },
3464
3483
  ]);
3465
3484
 
3466
3485
  var text = /*#__PURE__*/Object.freeze({
3467
3486
  __proto__: null,
3468
- schema: schema$l,
3469
- uischema: uischema$m,
3470
- data: data$n
3487
+ schema: schema$p,
3488
+ uischema: uischema$q,
3489
+ data: data$r
3471
3490
  });
3472
3491
 
3473
- const schema$k = {
3492
+ const schema$o = {
3474
3493
  type: 'object',
3475
3494
  properties: {
3476
3495
  price: {
@@ -3487,7 +3506,7 @@ const schema$k = {
3487
3506
  },
3488
3507
  },
3489
3508
  };
3490
- const uischema$l = {
3509
+ const uischema$p = {
3491
3510
  type: 'VerticalLayout',
3492
3511
  elements: [
3493
3512
  {
@@ -3520,22 +3539,22 @@ const uischema$l = {
3520
3539
  },
3521
3540
  ],
3522
3541
  };
3523
- const data$m = {};
3542
+ const data$q = {};
3524
3543
  registerExamples([
3525
3544
  {
3526
3545
  name: 'numbers',
3527
3546
  label: 'Numbers',
3528
- data: data$m,
3529
- schema: schema$k,
3530
- uischema: uischema$l,
3547
+ data: data$q,
3548
+ schema: schema$o,
3549
+ uischema: uischema$p,
3531
3550
  },
3532
3551
  ]);
3533
3552
 
3534
3553
  var numbers = /*#__PURE__*/Object.freeze({
3535
3554
  __proto__: null,
3536
- schema: schema$k,
3537
- uischema: uischema$l,
3538
- data: data$m
3555
+ schema: schema$o,
3556
+ uischema: uischema$p,
3557
+ data: data$q
3539
3558
  });
3540
3559
 
3541
3560
  const orderSchema = {
@@ -3569,7 +3588,7 @@ const orderSchema = {
3569
3588
  },
3570
3589
  },
3571
3590
  };
3572
- const uischema$k = {
3591
+ const uischema$o = {
3573
3592
  type: 'VerticalLayout',
3574
3593
  elements: [
3575
3594
  {
@@ -3604,7 +3623,7 @@ const uischema$k = {
3604
3623
  },
3605
3624
  ],
3606
3625
  };
3607
- const data$l = {
3626
+ const data$p = {
3608
3627
  orderId: '123456',
3609
3628
  purchaseDate: '1985-06-02',
3610
3629
  price: 16,
@@ -3617,20 +3636,20 @@ registerExamples([
3617
3636
  {
3618
3637
  name: 'scope',
3619
3638
  label: 'Scope',
3620
- data: data$l,
3639
+ data: data$p,
3621
3640
  schema: orderSchema,
3622
- uischema: uischema$k,
3641
+ uischema: uischema$o,
3623
3642
  },
3624
3643
  ]);
3625
3644
 
3626
3645
  var scope = /*#__PURE__*/Object.freeze({
3627
3646
  __proto__: null,
3628
3647
  orderSchema: orderSchema,
3629
- uischema: uischema$k,
3630
- data: data$l
3648
+ uischema: uischema$o,
3649
+ data: data$p
3631
3650
  });
3632
3651
 
3633
- const data$k = {
3652
+ const data$o = {
3634
3653
  orders: [
3635
3654
  {
3636
3655
  customer: {
@@ -3659,7 +3678,7 @@ const data$k = {
3659
3678
  },
3660
3679
  ],
3661
3680
  };
3662
- const schema$j = {
3681
+ const schema$n = {
3663
3682
  definitions: {
3664
3683
  order: {
3665
3684
  type: 'object',
@@ -3709,7 +3728,7 @@ const schema$j = {
3709
3728
  },
3710
3729
  },
3711
3730
  };
3712
- const uischema$j = {
3731
+ const uischema$n = {
3713
3732
  type: 'ListWithDetail',
3714
3733
  scope: '#/properties/orders',
3715
3734
  options: {
@@ -3890,30 +3909,30 @@ registerExamples([
3890
3909
  {
3891
3910
  name: 'list-with-detail',
3892
3911
  label: 'List With Detail',
3893
- data: data$k,
3894
- schema: schema$j,
3895
- uischema: uischema$j,
3912
+ data: data$o,
3913
+ schema: schema$n,
3914
+ uischema: uischema$n,
3896
3915
  },
3897
3916
  ]);
3898
3917
  registerExamples([
3899
3918
  {
3900
3919
  name: 'list-with-detail-no-labelref',
3901
3920
  label: 'List With Detail (No Label Ref)',
3902
- data: data$k,
3903
- schema: schema$j,
3921
+ data: data$o,
3922
+ schema: schema$n,
3904
3923
  uischema: uischemaNoLabelRef,
3905
3924
  },
3906
3925
  ]);
3907
3926
 
3908
3927
  var listWithDetail = /*#__PURE__*/Object.freeze({
3909
3928
  __proto__: null,
3910
- data: data$k,
3911
- schema: schema$j,
3912
- uischema: uischema$j,
3929
+ data: data$o,
3930
+ schema: schema$n,
3931
+ uischema: uischema$n,
3913
3932
  uischemaNoLabelRef: uischemaNoLabelRef
3914
3933
  });
3915
3934
 
3916
- const data$j = {
3935
+ const data$n = {
3917
3936
  warehouseitems: [
3918
3937
  {
3919
3938
  name: 'Fantasy Book',
@@ -3941,7 +3960,7 @@ const data$j = {
3941
3960
  },
3942
3961
  ],
3943
3962
  };
3944
- const schema$i = {
3963
+ const schema$m = {
3945
3964
  definitions: {
3946
3965
  warehouseitem: {
3947
3966
  type: 'object',
@@ -3972,7 +3991,7 @@ const schema$i = {
3972
3991
  },
3973
3992
  },
3974
3993
  };
3975
- const uischema$i = {
3994
+ const uischema$m = {
3976
3995
  type: 'ListWithDetail',
3977
3996
  scope: '#/properties/warehouseitems',
3978
3997
  options: {
@@ -3983,20 +4002,20 @@ registerExamples([
3983
4002
  {
3984
4003
  name: 'list-with-detail-registered',
3985
4004
  label: 'List With Detail (Registered Detail UISchema)',
3986
- data: data$j,
3987
- schema: schema$i,
3988
- uischema: uischema$i,
4005
+ data: data$n,
4006
+ schema: schema$m,
4007
+ uischema: uischema$m,
3989
4008
  },
3990
4009
  ]);
3991
4010
 
3992
4011
  var listWithDetailRegistered = /*#__PURE__*/Object.freeze({
3993
4012
  __proto__: null,
3994
- data: data$j,
3995
- schema: schema$i,
3996
- uischema: uischema$i
4013
+ data: data$n,
4014
+ schema: schema$m,
4015
+ uischema: uischema$m
3997
4016
  });
3998
4017
 
3999
- const schema$h = {
4018
+ const schema$l = {
4000
4019
  $schema: 'http://json-schema.org/draft-07/schema#',
4001
4020
  type: 'object',
4002
4021
  properties: {
@@ -4057,7 +4076,7 @@ const uischemaNonRoot = {
4057
4076
  },
4058
4077
  ],
4059
4078
  };
4060
- const data$i = {
4079
+ const data$m = {
4061
4080
  address: {
4062
4081
  street_address: '1600 Pennsylvania Avenue NW',
4063
4082
  city: 'Washington',
@@ -4068,22 +4087,22 @@ registerExamples([
4068
4087
  {
4069
4088
  name: 'rootObject',
4070
4089
  label: 'Object - Root Scope',
4071
- data: data$i,
4072
- schema: schema$h,
4090
+ data: data$m,
4091
+ schema: schema$l,
4073
4092
  uischema: uischemaRoot,
4074
4093
  },
4075
4094
  {
4076
4095
  name: 'object',
4077
4096
  label: 'Object',
4078
- data: data$i,
4079
- schema: schema$h,
4080
- uischema: uischemaNonRoot,
4097
+ data: data$m,
4098
+ schema: schema$l,
4099
+ uischema: uischemaNonRoot,
4081
4100
  },
4082
4101
  ]);
4083
4102
 
4084
4103
  var object = /*#__PURE__*/Object.freeze({
4085
4104
  __proto__: null,
4086
- schema: schema$h,
4105
+ schema: schema$l,
4087
4106
  uischemaRoot: uischemaRoot,
4088
4107
  uischemaNonRoot: uischemaNonRoot
4089
4108
  });
@@ -4096,7 +4115,7 @@ const onChange$2 = (dispatch) => (extensionState) => ({ errors }) => {
4096
4115
  localiseFunc(errors);
4097
4116
  dispatch(updateErrors(errors));
4098
4117
  };
4099
- const uischema$h = {
4118
+ const uischema$l = {
4100
4119
  type: 'VerticalLayout',
4101
4120
  elements: [
4102
4121
  {
@@ -4132,7 +4151,7 @@ const uischema$h = {
4132
4151
  },
4133
4152
  ],
4134
4153
  };
4135
- const data$h = {
4154
+ const data$l = {
4136
4155
  vegetarian: false,
4137
4156
  birthDate: '1985-06-02',
4138
4157
  personalData: {
@@ -4153,9 +4172,9 @@ registerExamples([
4153
4172
  {
4154
4173
  name: 'i18n',
4155
4174
  label: 'Person (i18n)',
4156
- data: data$h,
4175
+ data: data$l,
4157
4176
  schema: personCoreSchema,
4158
- uischema: uischema$h,
4177
+ uischema: uischema$l,
4159
4178
  i18n: {
4160
4179
  translate: translate,
4161
4180
  locale: 'en',
@@ -4166,13 +4185,13 @@ registerExamples([
4166
4185
  var i18n = /*#__PURE__*/Object.freeze({
4167
4186
  __proto__: null,
4168
4187
  onChange: onChange$2,
4169
- uischema: uischema$h,
4170
- data: data$h,
4188
+ uischema: uischema$l,
4189
+ data: data$l,
4171
4190
  translations: translations,
4172
4191
  translate: translate
4173
4192
  });
4174
4193
 
4175
- const schema$g = {
4194
+ const schema$k = {
4176
4195
  type: 'object',
4177
4196
  definitions: {
4178
4197
  import: {
@@ -4203,8 +4222,8 @@ const schema$g = {
4203
4222
  },
4204
4223
  },
4205
4224
  };
4206
- const uischema$g = undefined;
4207
- const data$g = {
4225
+ const uischema$k = undefined;
4226
+ const data$k = {
4208
4227
  import: [
4209
4228
  {
4210
4229
  document: 'Document1',
@@ -4217,27 +4236,27 @@ registerExamples([
4217
4236
  {
4218
4237
  name: '1948_with',
4219
4238
  label: 'Issue 1948 - Array renderer selection (with schema)',
4220
- data: data$g,
4221
- schema: schema$g,
4222
- uischema: uischema$g,
4239
+ data: data$k,
4240
+ schema: schema$k,
4241
+ uischema: uischema$k,
4223
4242
  },
4224
4243
  {
4225
4244
  name: '1948_without',
4226
4245
  label: 'Issue 1948 - Array renderer selection (w/o schema)',
4227
- data: data$g,
4246
+ data: data$k,
4228
4247
  schema: undefined,
4229
- uischema: uischema$g,
4248
+ uischema: uischema$k,
4230
4249
  },
4231
4250
  ]);
4232
4251
 
4233
4252
  var _1948 = /*#__PURE__*/Object.freeze({
4234
4253
  __proto__: null,
4235
- schema: schema$g,
4236
- uischema: uischema$g,
4237
- data: data$g
4254
+ schema: schema$k,
4255
+ uischema: uischema$k,
4256
+ data: data$k
4238
4257
  });
4239
4258
 
4240
- const schema$f = {
4259
+ const schema$j = {
4241
4260
  $schema: 'http://json-schema.org/draft-07/schema#',
4242
4261
  definitions: {
4243
4262
  fileOrFolder: {
@@ -4275,28 +4294,28 @@ const schema$f = {
4275
4294
  },
4276
4295
  },
4277
4296
  };
4278
- const uischema$f = {
4297
+ const uischema$j = {
4279
4298
  type: 'Control',
4280
4299
  scope: '#',
4281
4300
  };
4282
- const data$f = {};
4301
+ const data$j = {};
4283
4302
  registerExamples([
4284
4303
  {
4285
4304
  name: 'oneOf-recursive',
4286
4305
  label: 'oneOf recursive',
4287
- data: data$f,
4288
- schema: schema$f,
4289
- uischema: uischema$f,
4306
+ data: data$j,
4307
+ schema: schema$j,
4308
+ uischema: uischema$j,
4290
4309
  },
4291
4310
  ]);
4292
4311
 
4293
4312
  var oneOfRecursive = /*#__PURE__*/Object.freeze({
4294
4313
  __proto__: null,
4295
- schema: schema$f,
4296
- uischema: uischema$f
4314
+ schema: schema$j,
4315
+ uischema: uischema$j
4297
4316
  });
4298
4317
 
4299
- const schema$e = {
4318
+ const schema$i = {
4300
4319
  $schema: 'http://json-schema.org/schema#',
4301
4320
  definitions: {
4302
4321
  confidenceTypes: {
@@ -5261,7 +5280,7 @@ const schema$e = {
5261
5280
  attribution: { $ref: '#/definitions/attribution' },
5262
5281
  },
5263
5282
  };
5264
- const data$e = {
5283
+ const data$i = {
5265
5284
  attribution: {
5266
5285
  contributor: {
5267
5286
  resource: '#A-1',
@@ -5591,7 +5610,7 @@ const data$e = {
5591
5610
  },
5592
5611
  ],
5593
5612
  };
5594
- const uischema$e = {
5613
+ const uischema$i = {
5595
5614
  type: 'Categorization',
5596
5615
  elements: [
5597
5616
  {
@@ -5649,18 +5668,18 @@ registerExamples([
5649
5668
  {
5650
5669
  name: 'huge',
5651
5670
  label: 'Huge Test',
5652
- data: data$e,
5653
- schema: schema$e,
5654
- uischema: uischema$e,
5671
+ data: data$i,
5672
+ schema: schema$i,
5673
+ uischema: uischema$i,
5655
5674
  },
5656
5675
  ]);
5657
5676
 
5658
5677
  var huge = /*#__PURE__*/Object.freeze({
5659
5678
  __proto__: null,
5660
- uischema: uischema$e
5679
+ uischema: uischema$i
5661
5680
  });
5662
5681
 
5663
- const schema$d = {
5682
+ const schema$h = {
5664
5683
  type: 'object',
5665
5684
  properties: {
5666
5685
  name: {
@@ -5694,7 +5713,7 @@ const schema$d = {
5694
5713
  },
5695
5714
  required: ['name', 'name_noDefault'],
5696
5715
  };
5697
- const uischema$d = {
5716
+ const uischema$h = {
5698
5717
  type: 'VerticalLayout',
5699
5718
  elements: [
5700
5719
  {
@@ -5731,7 +5750,7 @@ const uischema$d = {
5731
5750
  },
5732
5751
  ],
5733
5752
  };
5734
- const data$d = {
5753
+ const data$h = {
5735
5754
  name: 'Send email to Adrian',
5736
5755
  name_noDefault: 'Send email to Adrian',
5737
5756
  description: 'Confirm if you have passed the subject\nHereby ...',
@@ -5744,17 +5763,17 @@ registerExamples([
5744
5763
  {
5745
5764
  name: 'default',
5746
5765
  label: 'Default',
5747
- data: data$d,
5748
- schema: schema$d,
5749
- uischema: uischema$d,
5766
+ data: data$h,
5767
+ schema: schema$h,
5768
+ uischema: uischema$h,
5750
5769
  },
5751
5770
  ]);
5752
5771
 
5753
5772
  var _default = /*#__PURE__*/Object.freeze({
5754
5773
  __proto__: null,
5755
- schema: schema$d,
5756
- uischema: uischema$d,
5757
- data: data$d
5774
+ schema: schema$h,
5775
+ uischema: uischema$h,
5776
+ data: data$h
5758
5777
  });
5759
5778
 
5760
5779
  const touchedProperties = {
@@ -5770,7 +5789,7 @@ const onChange = (dispatch) => (_) => ({ data, errors }) => {
5770
5789
  return dispatch(updateErrors(newErrors));
5771
5790
  }
5772
5791
  };
5773
- const schema$c = {
5792
+ const schema$g = {
5774
5793
  type: 'object',
5775
5794
  properties: {
5776
5795
  name: {
@@ -5784,27 +5803,27 @@ const schema$c = {
5784
5803
  },
5785
5804
  required: ['name', 'description'],
5786
5805
  };
5787
- const uischema$c = undefined;
5788
- const data$c = {};
5806
+ const uischema$g = undefined;
5807
+ const data$g = {};
5789
5808
  registerExamples([
5790
5809
  {
5791
5810
  name: 'onChange',
5792
5811
  label: 'On Change Listener',
5793
- data: data$c,
5794
- schema: schema$c,
5795
- uischema: uischema$c,
5812
+ data: data$g,
5813
+ schema: schema$g,
5814
+ uischema: uischema$g,
5796
5815
  },
5797
5816
  ]);
5798
5817
 
5799
5818
  var onChange$1 = /*#__PURE__*/Object.freeze({
5800
5819
  __proto__: null,
5801
5820
  onChange: onChange,
5802
- schema: schema$c,
5803
- uischema: uischema$c,
5804
- data: data$c
5821
+ schema: schema$g,
5822
+ uischema: uischema$g,
5823
+ data: data$g
5805
5824
  });
5806
5825
 
5807
- const schema$b = {
5826
+ const schema$f = {
5808
5827
  type: 'object',
5809
5828
  properties: {
5810
5829
  plainEnum: {
@@ -5848,7 +5867,7 @@ const schema$b = {
5848
5867
  },
5849
5868
  },
5850
5869
  };
5851
- const uischema$b = {
5870
+ const uischema$f = {
5852
5871
  type: 'VerticalLayout',
5853
5872
  elements: [
5854
5873
  {
@@ -5921,7 +5940,7 @@ const uischema$b = {
5921
5940
  },
5922
5941
  ],
5923
5942
  };
5924
- const data$b = {
5943
+ const data$f = {
5925
5944
  plainEnumSet: 'foo',
5926
5945
  enumWithError: 'bogus',
5927
5946
  oneOfEnumSet: 'bar',
@@ -5931,21 +5950,21 @@ registerExamples([
5931
5950
  {
5932
5951
  name: 'enum',
5933
5952
  label: 'Enums',
5934
- data: data$b,
5935
- schema: schema$b,
5936
- uischema: uischema$b,
5953
+ data: data$f,
5954
+ schema: schema$f,
5955
+ uischema: uischema$f,
5937
5956
  },
5938
5957
  ]);
5939
5958
 
5940
5959
  var _enum = /*#__PURE__*/Object.freeze({
5941
5960
  __proto__: null,
5942
- schema: schema$b,
5943
- uischema: uischema$b,
5944
- data: data$b
5961
+ schema: schema$f,
5962
+ uischema: uischema$f,
5963
+ data: data$f
5945
5964
  });
5946
5965
 
5947
- const data$a = {};
5948
- const schema$a = {
5966
+ const data$e = {};
5967
+ const schema$e = {
5949
5968
  type: 'object',
5950
5969
  properties: {
5951
5970
  exampleRadioEnum: {
@@ -5962,7 +5981,7 @@ const schema$a = {
5962
5981
  },
5963
5982
  },
5964
5983
  };
5965
- const uischema$a = {
5984
+ const uischema$e = {
5966
5985
  type: 'VerticalLayout',
5967
5986
  elements: [
5968
5987
  {
@@ -5998,20 +6017,20 @@ registerExamples([
5998
6017
  {
5999
6018
  name: 'radio-group',
6000
6019
  label: 'Radio Group',
6001
- data: data$a,
6002
- schema: schema$a,
6003
- uischema: uischema$a,
6020
+ data: data$e,
6021
+ schema: schema$e,
6022
+ uischema: uischema$e,
6004
6023
  },
6005
6024
  ]);
6006
6025
 
6007
6026
  var radioGroup = /*#__PURE__*/Object.freeze({
6008
6027
  __proto__: null,
6009
- data: data$a,
6010
- schema: schema$a,
6011
- uischema: uischema$a
6028
+ data: data$e,
6029
+ schema: schema$e,
6030
+ uischema: uischema$e
6012
6031
  });
6013
6032
 
6014
- const schema$9 = {
6033
+ const schema$d = {
6015
6034
  type: 'object',
6016
6035
  properties: {
6017
6036
  oneOfMultiEnum: {
@@ -6035,7 +6054,7 @@ const schema$9 = {
6035
6054
  },
6036
6055
  },
6037
6056
  };
6038
- const uischema$9 = {
6057
+ const uischema$d = {
6039
6058
  type: 'VerticalLayout',
6040
6059
  elements: [
6041
6060
  {
@@ -6048,25 +6067,25 @@ const uischema$9 = {
6048
6067
  },
6049
6068
  ],
6050
6069
  };
6051
- const data$9 = { oneOfMultiEnum: ['foo'], multiEnum: ['bar'] };
6070
+ const data$d = { oneOfMultiEnum: ['foo'], multiEnum: ['bar'] };
6052
6071
  registerExamples([
6053
6072
  {
6054
6073
  name: 'multi-enum',
6055
6074
  label: 'Enum - Multi selection',
6056
- data: data$9,
6057
- schema: schema$9,
6058
- uischema: uischema$9,
6075
+ data: data$d,
6076
+ schema: schema$d,
6077
+ uischema: uischema$d,
6059
6078
  },
6060
6079
  ]);
6061
6080
 
6062
6081
  var enumMulti = /*#__PURE__*/Object.freeze({
6063
6082
  __proto__: null,
6064
- schema: schema$9,
6065
- uischema: uischema$9,
6066
- data: data$9
6083
+ schema: schema$d,
6084
+ uischema: uischema$d,
6085
+ data: data$d
6067
6086
  });
6068
6087
 
6069
- const schema$8 = {
6088
+ const schema$c = {
6070
6089
  type: 'array',
6071
6090
  items: {
6072
6091
  type: 'object',
@@ -6086,7 +6105,7 @@ const schema$8 = {
6086
6105
  },
6087
6106
  },
6088
6107
  };
6089
- const uischema$8 = {
6108
+ const uischema$c = {
6090
6109
  type: 'VerticalLayout',
6091
6110
  elements: [
6092
6111
  {
@@ -6095,25 +6114,25 @@ const uischema$8 = {
6095
6114
  },
6096
6115
  ],
6097
6116
  };
6098
- const data$8 = [];
6117
+ const data$c = [];
6099
6118
  registerExamples([
6100
6119
  {
6101
6120
  name: 'enumInArray',
6102
6121
  label: 'Array containing enums',
6103
- data: data$8,
6104
- schema: schema$8,
6105
- uischema: uischema$8,
6122
+ data: data$c,
6123
+ schema: schema$c,
6124
+ uischema: uischema$c,
6106
6125
  },
6107
6126
  ]);
6108
6127
 
6109
6128
  var enumInArray = /*#__PURE__*/Object.freeze({
6110
6129
  __proto__: null,
6111
- schema: schema$8,
6112
- uischema: uischema$8,
6113
- data: data$8
6130
+ schema: schema$c,
6131
+ uischema: uischema$c,
6132
+ data: data$c
6114
6133
  });
6115
6134
 
6116
- const schema$7 = {
6135
+ const schema$b = {
6117
6136
  type: 'object',
6118
6137
  properties: {
6119
6138
  readonly: {
@@ -6128,7 +6147,7 @@ const schema$7 = {
6128
6147
  },
6129
6148
  },
6130
6149
  };
6131
- const uischema$7 = {
6150
+ const uischema$b = {
6132
6151
  type: 'VerticalLayout',
6133
6152
  elements: [
6134
6153
  {
@@ -6151,7 +6170,7 @@ const uischema$7 = {
6151
6170
  },
6152
6171
  ],
6153
6172
  };
6154
- const data$7 = {
6173
+ const data$b = {
6155
6174
  readonly: 'readonly by schema',
6156
6175
  readonlyByUISchema: 'readonly by ui schema',
6157
6176
  notReadonly: 'normal field',
@@ -6160,23 +6179,23 @@ registerExamples([
6160
6179
  {
6161
6180
  name: 'Readonly Fields',
6162
6181
  label: 'Readonly examples',
6163
- data: data$7,
6164
- schema: schema$7,
6165
- uischema: uischema$7,
6182
+ data: data$b,
6183
+ schema: schema$b,
6184
+ uischema: uischema$b,
6166
6185
  },
6167
6186
  ]);
6168
6187
 
6169
6188
  var readonly = /*#__PURE__*/Object.freeze({
6170
6189
  __proto__: null,
6171
- schema: schema$7,
6172
- uischema: uischema$7,
6173
- data: data$7
6190
+ schema: schema$b,
6191
+ uischema: uischema$b,
6192
+ data: data$b
6174
6193
  });
6175
6194
 
6176
- const data$6 = {
6195
+ const data$a = {
6177
6196
  'an-array-of-strings': ['foo', 'bar', 'foobar'],
6178
6197
  };
6179
- const schema$6 = {
6198
+ const schema$a = {
6180
6199
  type: 'object',
6181
6200
  properties: {
6182
6201
  'an-array-of-strings': {
@@ -6187,7 +6206,7 @@ const schema$6 = {
6187
6206
  },
6188
6207
  },
6189
6208
  };
6190
- const uischema$6 = {
6209
+ const uischema$a = {
6191
6210
  type: 'ListWithDetail',
6192
6211
  scope: '#/properties/an-array-of-strings',
6193
6212
  };
@@ -6195,9 +6214,9 @@ registerExamples([
6195
6214
  {
6196
6215
  name: 'list-with-detail-primitive-string',
6197
6216
  label: 'List With Detail primitive (string)',
6198
- data: data$6,
6199
- schema: schema$6,
6200
- uischema: uischema$6,
6217
+ data: data$a,
6218
+ schema: schema$a,
6219
+ uischema: uischema$a,
6201
6220
  },
6202
6221
  ]);
6203
6222
  const data_number = {
@@ -6230,15 +6249,15 @@ registerExamples([
6230
6249
 
6231
6250
  var listWithDetailPrimitives = /*#__PURE__*/Object.freeze({
6232
6251
  __proto__: null,
6233
- data: data$6,
6234
- schema: schema$6,
6235
- uischema: uischema$6,
6252
+ data: data$a,
6253
+ schema: schema$a,
6254
+ uischema: uischema$a,
6236
6255
  data_number: data_number,
6237
6256
  schema_number: schema_number,
6238
6257
  uischema_number: uischema_number
6239
6258
  });
6240
6259
 
6241
- const schema$5 = {
6260
+ const schema$9 = {
6242
6261
  type: 'object',
6243
6262
  properties: {
6244
6263
  name: {
@@ -6273,7 +6292,7 @@ const schema$5 = {
6273
6292
  },
6274
6293
  ],
6275
6294
  };
6276
- const uischema$5 = {
6295
+ const uischema$9 = {
6277
6296
  type: 'HorizontalLayout',
6278
6297
  elements: [
6279
6298
  {
@@ -6317,25 +6336,25 @@ const uischema$5 = {
6317
6336
  },
6318
6337
  ],
6319
6338
  };
6320
- const data$5 = {};
6339
+ const data$9 = {};
6321
6340
  registerExamples([
6322
6341
  {
6323
6342
  name: 'conditional-schema-compositions',
6324
6343
  label: 'Conditional Schema Compositions',
6325
- data: data$5,
6326
- schema: schema$5,
6327
- uischema: uischema$5,
6344
+ data: data$9,
6345
+ schema: schema$9,
6346
+ uischema: uischema$9,
6328
6347
  },
6329
6348
  ]);
6330
6349
 
6331
6350
  var conditionalSchemaCompositions = /*#__PURE__*/Object.freeze({
6332
6351
  __proto__: null,
6333
- schema: schema$5,
6334
- uischema: uischema$5
6352
+ schema: schema$9,
6353
+ uischema: uischema$9
6335
6354
  });
6336
6355
 
6337
6356
  const additionalErrors = [];
6338
- const actions = [
6357
+ const actions$1 = [
6339
6358
  {
6340
6359
  label: 'Add additional error',
6341
6360
  apply: (props) => {
@@ -6357,20 +6376,20 @@ registerExamples([
6357
6376
  {
6358
6377
  name: 'additional-errors',
6359
6378
  label: 'Additional errors',
6360
- data: data$H,
6361
- schema: schema$F,
6362
- uischema: uischema$F,
6363
- actions,
6379
+ data: data$L,
6380
+ schema: schema$J,
6381
+ uischema: uischema$J,
6382
+ actions: actions$1,
6364
6383
  },
6365
6384
  ]);
6366
6385
 
6367
6386
  var additionalErrors$1 = /*#__PURE__*/Object.freeze({
6368
6387
  __proto__: null,
6369
6388
  additionalErrors: additionalErrors,
6370
- actions: actions
6389
+ actions: actions$1
6371
6390
  });
6372
6391
 
6373
- const schema$4 = {
6392
+ const schema$8 = {
6374
6393
  type: 'object',
6375
6394
  properties: {
6376
6395
  oneOfMultiEnum: {
@@ -6396,7 +6415,7 @@ const schema$4 = {
6396
6415
  },
6397
6416
  },
6398
6417
  };
6399
- const uischema$4 = {
6418
+ const uischema$8 = {
6400
6419
  type: 'VerticalLayout',
6401
6420
  elements: [
6402
6421
  {
@@ -6417,25 +6436,25 @@ const uischema$4 = {
6417
6436
  },
6418
6437
  ],
6419
6438
  };
6420
- const data$4 = { oneOfMultiEnum: ['foo'], multiEnum: ['bar'] };
6439
+ const data$8 = { oneOfMultiEnum: ['foo'], multiEnum: ['bar'] };
6421
6440
  registerExamples([
6422
6441
  {
6423
6442
  name: 'multi-enum-with-label-and-desc',
6424
6443
  label: 'Enum - Multi selection with label and desc',
6425
- data: data$4,
6426
- schema: schema$4,
6427
- uischema: uischema$4,
6444
+ data: data$8,
6445
+ schema: schema$8,
6446
+ uischema: uischema$8,
6428
6447
  },
6429
6448
  ]);
6430
6449
 
6431
6450
  var enumMultiWithLabelAndDesc = /*#__PURE__*/Object.freeze({
6432
6451
  __proto__: null,
6433
- schema: schema$4,
6434
- uischema: uischema$4,
6435
- data: data$4
6452
+ schema: schema$8,
6453
+ uischema: uischema$8,
6454
+ data: data$8
6436
6455
  });
6437
6456
 
6438
- const schema$3 = {
6457
+ const schema$7 = {
6439
6458
  $schema: 'http://json-schema.org/draft-07/schema#',
6440
6459
  type: 'object',
6441
6460
  properties: {
@@ -6509,11 +6528,11 @@ const schema$3 = {
6509
6528
  },
6510
6529
  maxProperties: 15,
6511
6530
  };
6512
- const uischema$3 = {
6531
+ const uischema$7 = {
6513
6532
  type: 'Control',
6514
6533
  scope: '#/',
6515
6534
  };
6516
- const data$3 = {
6535
+ const data$7 = {
6517
6536
  propertiesString: 'data',
6518
6537
  string: 'string value',
6519
6538
  number: 10.2,
@@ -6532,19 +6551,19 @@ registerExamples([
6532
6551
  {
6533
6552
  name: 'additional-properties',
6534
6553
  label: 'Additional Properties',
6535
- data: data$3,
6536
- schema: schema$3,
6537
- uischema: uischema$3,
6554
+ data: data$7,
6555
+ schema: schema$7,
6556
+ uischema: uischema$7,
6538
6557
  },
6539
6558
  ]);
6540
6559
 
6541
6560
  var additionalProperties = /*#__PURE__*/Object.freeze({
6542
6561
  __proto__: null,
6543
- schema: schema$3,
6544
- uischema: uischema$3
6562
+ schema: schema$7,
6563
+ uischema: uischema$7
6545
6564
  });
6546
6565
 
6547
- const schema$2 = {
6566
+ const schema$6 = {
6548
6567
  type: 'object',
6549
6568
  properties: {
6550
6569
  username: {
@@ -6559,7 +6578,7 @@ const schema$2 = {
6559
6578
  },
6560
6579
  required: ['username', 'password'],
6561
6580
  };
6562
- const uischema$2 = {
6581
+ const uischema$6 = {
6563
6582
  type: 'VerticalLayout',
6564
6583
  elements: [
6565
6584
  {
@@ -6581,53 +6600,141 @@ const uischema$2 = {
6581
6600
  },
6582
6601
  ],
6583
6602
  };
6584
- const data$2 = {
6603
+ const data$6 = {
6585
6604
  username: 'john.doe@email.com',
6586
6605
  };
6587
6606
  registerExamples([
6588
6607
  {
6589
6608
  name: 'login',
6590
6609
  label: 'Login Form',
6591
- data: data$2,
6592
- schema: schema$2,
6593
- uischema: uischema$2,
6610
+ data: data$6,
6611
+ schema: schema$6,
6612
+ uischema: uischema$6,
6594
6613
  },
6595
6614
  ]);
6596
6615
 
6597
6616
  var login = /*#__PURE__*/Object.freeze({
6598
6617
  __proto__: null,
6599
- schema: schema$2,
6600
- uischema: uischema$2
6618
+ schema: schema$6,
6619
+ uischema: uischema$6
6601
6620
  });
6602
6621
 
6603
- const schema$1 = {
6604
- type: 'string',
6605
- title: 'String',
6606
- description: 'The form output will be a string',
6622
+ const schema$5 = {
6623
+ $schema: 'http://json-schema.org/draft-07/schema#',
6624
+ type: ['string', 'boolean', 'integer', 'null'],
6607
6625
  };
6608
- const uischema$1 = {
6626
+ const uischema$5 = {
6609
6627
  type: 'Control',
6610
6628
  scope: '#/',
6611
6629
  };
6612
- const data$1 = 'This is a test string';
6630
+ const data$5 = undefined;
6613
6631
  registerExamples([
6614
6632
  {
6615
- name: 'string',
6616
- label: 'String',
6617
- data: data$1,
6618
- schema: schema$1,
6619
- uischema: uischema$1,
6633
+ name: 'mixed',
6634
+ label: 'Mixed',
6635
+ data: data$5,
6636
+ schema: schema$5,
6637
+ uischema: uischema$5,
6620
6638
  },
6621
6639
  ]);
6622
6640
 
6623
- var string = /*#__PURE__*/Object.freeze({
6641
+ var mixed = /*#__PURE__*/Object.freeze({
6624
6642
  __proto__: null,
6625
- schema: schema$1,
6626
- uischema: uischema$1,
6627
- data: data$1
6643
+ schema: schema$5,
6644
+ uischema: uischema$5
6628
6645
  });
6629
6646
 
6630
- const schema = {
6647
+ const schema$4 = {
6648
+ $schema: 'http://json-schema.org/draft-07/schema#',
6649
+ title: 'Mixed Types Example',
6650
+ type: 'object',
6651
+ properties: {
6652
+ mixedSimple: {
6653
+ type: ['string', 'boolean', 'integer'],
6654
+ description: 'This property can be a string, boolean, or integer.',
6655
+ },
6656
+ nullableString: {
6657
+ type: ['string', 'null'],
6658
+ },
6659
+ mixed: {
6660
+ type: [
6661
+ 'array',
6662
+ 'boolean',
6663
+ 'integer',
6664
+ 'null',
6665
+ 'number',
6666
+ 'object',
6667
+ 'string',
6668
+ ],
6669
+ },
6670
+ },
6671
+ required: ['mixedSimple'],
6672
+ };
6673
+ const uischema$4 = {
6674
+ type: 'VerticalLayout',
6675
+ elements: [
6676
+ {
6677
+ type: 'Control',
6678
+ scope: '#/properties/mixedSimple',
6679
+ },
6680
+ {
6681
+ type: 'Control',
6682
+ scope: '#/properties/nullableString',
6683
+ },
6684
+ {
6685
+ type: 'Control',
6686
+ scope: '#/properties/mixed',
6687
+ },
6688
+ ],
6689
+ };
6690
+ const data$4 = {
6691
+ mixedSimple: 'String',
6692
+ nullableString: null,
6693
+ };
6694
+ registerExamples([
6695
+ {
6696
+ name: 'mixed-object',
6697
+ label: 'Mixed Object',
6698
+ data: data$4,
6699
+ schema: schema$4,
6700
+ uischema: uischema$4,
6701
+ },
6702
+ ]);
6703
+
6704
+ var mixedObject = /*#__PURE__*/Object.freeze({
6705
+ __proto__: null,
6706
+ schema: schema$4,
6707
+ uischema: uischema$4
6708
+ });
6709
+
6710
+ const schema$3 = {
6711
+ type: 'string',
6712
+ title: 'String',
6713
+ description: 'The form output will be a string',
6714
+ };
6715
+ const uischema$3 = {
6716
+ type: 'Control',
6717
+ scope: '#/',
6718
+ };
6719
+ const data$3 = 'This is a test string';
6720
+ registerExamples([
6721
+ {
6722
+ name: 'string',
6723
+ label: 'String',
6724
+ data: data$3,
6725
+ schema: schema$3,
6726
+ uischema: uischema$3,
6727
+ },
6728
+ ]);
6729
+
6730
+ var string = /*#__PURE__*/Object.freeze({
6731
+ __proto__: null,
6732
+ schema: schema$3,
6733
+ uischema: uischema$3,
6734
+ data: data$3
6735
+ });
6736
+
6737
+ const schema$2 = {
6631
6738
  type: 'object',
6632
6739
  properties: {
6633
6740
  b: { type: 'boolean' },
@@ -6636,24 +6743,600 @@ const schema = {
6636
6743
  if: { properties: { b: { enum: [false] } } },
6637
6744
  then: { required: ['c'] },
6638
6745
  };
6639
- const uischema = undefined;
6640
- const data = {};
6746
+ const uischema$2 = undefined;
6747
+ const data$2 = {};
6641
6748
  registerExamples([
6642
6749
  {
6643
6750
  name: 'ifthenelse',
6644
6751
  label: 'If Then Else',
6752
+ data: data$2,
6753
+ schema: schema$2,
6754
+ uischema: uischema$2,
6755
+ },
6756
+ ]);
6757
+
6758
+ var if_then_else = /*#__PURE__*/Object.freeze({
6759
+ __proto__: null,
6760
+ schema: schema$2,
6761
+ uischema: uischema$2,
6762
+ data: data$2
6763
+ });
6764
+
6765
+ const schema$1 = {
6766
+ $schema: 'http://json-schema.org/draft-07/schema#',
6767
+ $id: 'http://json-schema.org/draft-07/schema#',
6768
+ title: 'Core schema meta-schema',
6769
+ definitions: {
6770
+ schemaArray: {
6771
+ type: 'array',
6772
+ minItems: 1,
6773
+ items: { $ref: '#' },
6774
+ },
6775
+ nonNegativeInteger: {
6776
+ type: 'integer',
6777
+ minimum: 0,
6778
+ },
6779
+ nonNegativeIntegerDefault0: {
6780
+ allOf: [{ $ref: '#/definitions/nonNegativeInteger' }, { default: 0 }],
6781
+ },
6782
+ simpleTypes: {
6783
+ type: 'string',
6784
+ enum: [
6785
+ 'array',
6786
+ 'boolean',
6787
+ 'integer',
6788
+ 'null',
6789
+ 'number',
6790
+ 'object',
6791
+ 'string',
6792
+ ],
6793
+ },
6794
+ stringArray: {
6795
+ type: 'array',
6796
+ items: { type: 'string' },
6797
+ uniqueItems: true,
6798
+ default: [],
6799
+ },
6800
+ },
6801
+ type: ['object', 'boolean'],
6802
+ properties: {
6803
+ $id: {
6804
+ type: 'string',
6805
+ format: 'uri-reference',
6806
+ },
6807
+ $schema: {
6808
+ type: 'string',
6809
+ format: 'uri',
6810
+ },
6811
+ $ref: {
6812
+ type: 'string',
6813
+ format: 'uri-reference',
6814
+ },
6815
+ $comment: {
6816
+ type: 'string',
6817
+ },
6818
+ title: {
6819
+ type: 'string',
6820
+ },
6821
+ description: {
6822
+ type: 'string',
6823
+ },
6824
+ default: true,
6825
+ readOnly: {
6826
+ type: 'boolean',
6827
+ default: false,
6828
+ },
6829
+ writeOnly: {
6830
+ type: 'boolean',
6831
+ default: false,
6832
+ },
6833
+ examples: {
6834
+ type: 'array',
6835
+ items: true,
6836
+ },
6837
+ multipleOf: {
6838
+ type: 'number',
6839
+ exclusiveMinimum: 0,
6840
+ },
6841
+ maximum: {
6842
+ type: 'number',
6843
+ },
6844
+ exclusiveMaximum: {
6845
+ type: 'number',
6846
+ },
6847
+ minimum: {
6848
+ type: 'number',
6849
+ },
6850
+ exclusiveMinimum: {
6851
+ type: 'number',
6852
+ },
6853
+ maxLength: { $ref: '#/definitions/nonNegativeInteger' },
6854
+ minLength: { $ref: '#/definitions/nonNegativeIntegerDefault0' },
6855
+ pattern: {
6856
+ type: 'string',
6857
+ format: 'regex',
6858
+ },
6859
+ additionalItems: { $ref: '#' },
6860
+ items: {
6861
+ anyOf: [{ $ref: '#' }, { $ref: '#/definitions/schemaArray' }],
6862
+ default: true,
6863
+ },
6864
+ maxItems: { $ref: '#/definitions/nonNegativeInteger' },
6865
+ minItems: { $ref: '#/definitions/nonNegativeIntegerDefault0' },
6866
+ uniqueItems: {
6867
+ type: 'boolean',
6868
+ default: false,
6869
+ },
6870
+ contains: { $ref: '#' },
6871
+ maxProperties: { $ref: '#/definitions/nonNegativeInteger' },
6872
+ minProperties: { $ref: '#/definitions/nonNegativeIntegerDefault0' },
6873
+ required: { $ref: '#/definitions/stringArray' },
6874
+ additionalProperties: { $ref: '#' },
6875
+ definitions: {
6876
+ type: 'object',
6877
+ additionalProperties: { $ref: '#' },
6878
+ default: {},
6879
+ },
6880
+ properties: {
6881
+ type: 'object',
6882
+ additionalProperties: { $ref: '#' },
6883
+ default: {},
6884
+ },
6885
+ patternProperties: {
6886
+ type: 'object',
6887
+ additionalProperties: { $ref: '#' },
6888
+ propertyNames: { format: 'regex' },
6889
+ default: {},
6890
+ },
6891
+ dependencies: {
6892
+ type: 'object',
6893
+ additionalProperties: {
6894
+ anyOf: [{ $ref: '#' }, { $ref: '#/definitions/stringArray' }],
6895
+ },
6896
+ },
6897
+ propertyNames: { $ref: '#' },
6898
+ const: true,
6899
+ enum: {
6900
+ type: 'array',
6901
+ items: true,
6902
+ minItems: 1,
6903
+ uniqueItems: true,
6904
+ },
6905
+ type: {
6906
+ anyOf: [
6907
+ { $ref: '#/definitions/simpleTypes' },
6908
+ {
6909
+ type: 'array',
6910
+ items: { $ref: '#/definitions/simpleTypes' },
6911
+ minItems: 1,
6912
+ uniqueItems: true,
6913
+ },
6914
+ ],
6915
+ },
6916
+ format: { type: 'string' },
6917
+ contentMediaType: { type: 'string' },
6918
+ contentEncoding: { type: 'string' },
6919
+ if: { $ref: '#' },
6920
+ then: { $ref: '#' },
6921
+ else: { $ref: '#' },
6922
+ allOf: { $ref: '#/definitions/schemaArray' },
6923
+ anyOf: { $ref: '#/definitions/schemaArray' },
6924
+ oneOf: { $ref: '#/definitions/schemaArray' },
6925
+ not: { $ref: '#' },
6926
+ },
6927
+ default: true,
6928
+ };
6929
+ const uischema$1 = undefined;
6930
+ const data$1 = {
6931
+ type: 'object',
6932
+ properties: {
6933
+ name: {
6934
+ type: 'string',
6935
+ minLength: 3,
6936
+ description: 'Please enter your name',
6937
+ },
6938
+ vegetarian: {
6939
+ type: 'boolean',
6940
+ },
6941
+ birthDate: {
6942
+ type: 'string',
6943
+ format: 'date',
6944
+ },
6945
+ nationality: {
6946
+ type: 'string',
6947
+ enum: ['DE', 'IT', 'JP', 'US', 'RU', 'Other'],
6948
+ },
6949
+ personalData: {
6950
+ type: 'object',
6951
+ properties: {
6952
+ age: {
6953
+ type: 'integer',
6954
+ description: 'Please enter your age.',
6955
+ },
6956
+ height: {
6957
+ type: 'number',
6958
+ },
6959
+ drivingSkill: {
6960
+ type: 'number',
6961
+ maximum: 10,
6962
+ minimum: 1,
6963
+ default: 7,
6964
+ },
6965
+ },
6966
+ required: ['age', 'height'],
6967
+ },
6968
+ occupation: {
6969
+ type: 'string',
6970
+ },
6971
+ postalCode: {
6972
+ type: 'string',
6973
+ maxLength: 5,
6974
+ },
6975
+ },
6976
+ required: ['occupation', 'nationality'],
6977
+ };
6978
+ const shouldContainTypeCondition = (type) => {
6979
+ return {
6980
+ scope: '#/properties/type',
6981
+ schema: {
6982
+ anyOf: [
6983
+ {
6984
+ type: 'string',
6985
+ enum: type,
6986
+ },
6987
+ {
6988
+ type: 'array',
6989
+ items: {
6990
+ type: 'string',
6991
+ },
6992
+ contains: {
6993
+ type: 'string',
6994
+ enum: type,
6995
+ },
6996
+ },
6997
+ ],
6998
+ },
6999
+ };
7000
+ };
7001
+ const typeIsSpecifiedCondition = {
7002
+ scope: '#/properties/type',
7003
+ schema: {
7004
+ oneOf: [
7005
+ {
7006
+ type: 'string',
7007
+ enum: [
7008
+ 'string',
7009
+ 'number',
7010
+ 'integer',
7011
+ 'array',
7012
+ 'object',
7013
+ 'boolean',
7014
+ 'null',
7015
+ ],
7016
+ },
7017
+ {
7018
+ type: 'array',
7019
+ items: {
7020
+ type: 'string',
7021
+ enum: [
7022
+ 'string',
7023
+ 'number',
7024
+ 'integer',
7025
+ 'array',
7026
+ 'object',
7027
+ 'boolean',
7028
+ 'null',
7029
+ ],
7030
+ },
7031
+ minItems: 1,
7032
+ uniqueItems: true,
7033
+ },
7034
+ ],
7035
+ },
7036
+ };
7037
+ const properties = {
7038
+ type: 'Control',
7039
+ scope: '#/properties/properties',
7040
+ };
7041
+ const required = {
7042
+ type: 'Control',
7043
+ scope: '#/properties/required',
7044
+ };
7045
+ const constraintsLayout = {
7046
+ type: 'Categorization',
7047
+ elements: [
7048
+ {
7049
+ type: 'Category',
7050
+ label: 'Number',
7051
+ rule: {
7052
+ effect: 'SHOW',
7053
+ condition: shouldContainTypeCondition(['number', 'integer']),
7054
+ },
7055
+ elements: [
7056
+ {
7057
+ type: 'VerticalLayout',
7058
+ elements: [
7059
+ {
7060
+ type: 'Control',
7061
+ scope: '#/properties/multipleOf',
7062
+ },
7063
+ {
7064
+ type: 'Control',
7065
+ scope: '#/properties/maximum',
7066
+ },
7067
+ {
7068
+ type: 'Control',
7069
+ scope: '#/properties/exclusiveMaximum',
7070
+ },
7071
+ {
7072
+ type: 'Control',
7073
+ scope: '#/properties/minimum',
7074
+ },
7075
+ {
7076
+ type: 'Control',
7077
+ scope: '#/properties/exclusiveMinimum',
7078
+ },
7079
+ ],
7080
+ },
7081
+ ],
7082
+ },
7083
+ {
7084
+ type: 'Category',
7085
+ label: 'String',
7086
+ rule: {
7087
+ effect: 'SHOW',
7088
+ condition: shouldContainTypeCondition(['string']),
7089
+ },
7090
+ elements: [
7091
+ {
7092
+ type: 'Control',
7093
+ scope: '#/properties/maxLength',
7094
+ },
7095
+ {
7096
+ type: 'Control',
7097
+ scope: '#/properties/minLength',
7098
+ },
7099
+ {
7100
+ type: 'Control',
7101
+ scope: '#/properties/pattern',
7102
+ },
7103
+ ],
7104
+ },
7105
+ {
7106
+ type: 'Category',
7107
+ label: 'Array',
7108
+ rule: {
7109
+ effect: 'SHOW',
7110
+ condition: shouldContainTypeCondition(['array']),
7111
+ },
7112
+ elements: [
7113
+ {
7114
+ type: 'Control',
7115
+ scope: '#/properties/minItems',
7116
+ },
7117
+ {
7118
+ type: 'Control',
7119
+ scope: '#/properties/maxItems',
7120
+ },
7121
+ {
7122
+ type: 'Control',
7123
+ scope: '#/properties/uniqueItems',
7124
+ },
7125
+ ],
7126
+ },
7127
+ {
7128
+ type: 'Category',
7129
+ label: 'Object',
7130
+ rule: {
7131
+ effect: 'SHOW',
7132
+ condition: shouldContainTypeCondition(['object']),
7133
+ },
7134
+ elements: [
7135
+ {
7136
+ type: 'Control',
7137
+ scope: '#/properties/minProperties',
7138
+ },
7139
+ {
7140
+ type: 'Control',
7141
+ scope: '#/properties/maxProperties',
7142
+ },
7143
+ ],
7144
+ },
7145
+ ],
7146
+ };
7147
+ const controlLabel = (controlSchemaPath, controlLabel, controlSchemaType = undefined) => {
7148
+ return {
7149
+ tester: (jsonSchema, schemaPath, _path) => {
7150
+ if (controlSchemaPath === schemaPath &&
7151
+ (controlSchemaType === undefined ||
7152
+ controlSchemaType === jsonSchema.type)) {
7153
+ return 2;
7154
+ }
7155
+ return NOT_APPLICABLE;
7156
+ },
7157
+ uischema: {
7158
+ type: 'Control',
7159
+ scope: '#',
7160
+ label: controlLabel,
7161
+ },
7162
+ };
7163
+ };
7164
+ const uischemas = [
7165
+ controlLabel('#/properties/minItems', 'Min Items', 'number'),
7166
+ controlLabel('#/properties/maxItems', 'Max Items'),
7167
+ {
7168
+ tester: (jsonSchema, schemaPath, path) => {
7169
+ if (path === 'type' &&
7170
+ schemaPath === '#/properties/type' &&
7171
+ jsonSchema.type === 'array') {
7172
+ return 2;
7173
+ }
7174
+ return NOT_APPLICABLE;
7175
+ },
7176
+ uischema: {
7177
+ type: 'Control',
7178
+ scope: '#',
7179
+ },
7180
+ },
7181
+ {
7182
+ tester: (jsonSchema, _schemaPath, _path) => {
7183
+ return 'http://json-schema.org/draft-07/schema#' ===
7184
+ jsonSchema.$id && jsonSchema.type === 'object'
7185
+ ? 2
7186
+ : NOT_APPLICABLE;
7187
+ },
7188
+ uischema: {
7189
+ type: 'Categorization',
7190
+ elements: [
7191
+ {
7192
+ type: 'Category',
7193
+ label: 'Basic',
7194
+ elements: [
7195
+ {
7196
+ type: 'VerticalLayout',
7197
+ elements: [
7198
+ { type: 'Control', scope: '#/properties/$id' },
7199
+ { type: 'Control', scope: '#/properties/$schema' },
7200
+ { type: 'Control', scope: '#/properties/title' },
7201
+ { type: 'Control', scope: '#/properties/description' },
7202
+ ],
7203
+ },
7204
+ ],
7205
+ },
7206
+ {
7207
+ type: 'Category',
7208
+ label: 'Structure',
7209
+ elements: [
7210
+ {
7211
+ type: 'VerticalLayout',
7212
+ elements: [
7213
+ {
7214
+ type: 'Control',
7215
+ scope: '#/properties/type',
7216
+ options: {
7217
+ 'label-0': 'Single Type',
7218
+ 'label-1': 'Multiple Types',
7219
+ },
7220
+ },
7221
+ {
7222
+ type: 'Categorization',
7223
+ rule: {
7224
+ effect: 'SHOW',
7225
+ condition: shouldContainTypeCondition(['object']),
7226
+ },
7227
+ elements: [
7228
+ {
7229
+ type: 'Category',
7230
+ label: 'Properties',
7231
+ elements: [properties],
7232
+ },
7233
+ {
7234
+ type: 'Category',
7235
+ label: 'Required',
7236
+ elements: [required],
7237
+ },
7238
+ ],
7239
+ },
7240
+ ],
7241
+ },
7242
+ ],
7243
+ },
7244
+ {
7245
+ type: 'Category',
7246
+ label: 'Constraints',
7247
+ rule: {
7248
+ effect: 'SHOW',
7249
+ condition: typeIsSpecifiedCondition,
7250
+ },
7251
+ elements: [constraintsLayout],
7252
+ },
7253
+ ],
7254
+ options: {
7255
+ variant: 'stepper',
7256
+ showNavButtons: true,
7257
+ },
7258
+ },
7259
+ },
7260
+ {
7261
+ tester: (jsonSchema, _schemaPath, _path) => {
7262
+ return 'http://json-schema.org/draft-07/schema#' ===
7263
+ jsonSchema.$id && jsonSchema.type === 'boolean'
7264
+ ? 2
7265
+ : NOT_APPLICABLE;
7266
+ },
7267
+ uischema: {
7268
+ type: 'VerticalLayout',
7269
+ elements: [{ type: 'Control', scope: '#/' }],
7270
+ },
7271
+ },
7272
+ ];
7273
+ const actions = [
7274
+ {
7275
+ label: 'Register UISchema',
7276
+ apply: (props) => {
7277
+ return {
7278
+ ...props,
7279
+ uischemas: uischemas,
7280
+ };
7281
+ },
7282
+ },
7283
+ {
7284
+ label: 'Unregister UISchema',
7285
+ apply: (props) => {
7286
+ const uischemas = undefined;
7287
+ return {
7288
+ ...props,
7289
+ uischemas: uischemas,
7290
+ };
7291
+ },
7292
+ },
7293
+ ];
7294
+ registerExamples([
7295
+ {
7296
+ name: 'jsonschema',
7297
+ label: 'JsonSchema',
7298
+ data: data$1,
7299
+ schema: schema$1,
7300
+ uischema: uischema$1,
7301
+ actions,
7302
+ },
7303
+ ]);
7304
+
7305
+ var jsonschema = /*#__PURE__*/Object.freeze({
7306
+ __proto__: null,
7307
+ schema: schema$1,
7308
+ uischema: uischema$1,
7309
+ data: data$1,
7310
+ uischemas: uischemas
7311
+ });
7312
+
7313
+ const schema = {
7314
+ type: ['array', 'boolean', 'integer', 'null', 'number', 'object', 'string'],
7315
+ additionalProperties: true,
7316
+ items: {
7317
+ type: ['array', 'boolean', 'integer', 'null', 'number', 'object', 'string'],
7318
+ },
7319
+ };
7320
+ const uischema = {
7321
+ type: 'Control',
7322
+ scope: '#/',
7323
+ };
7324
+ const data = undefined;
7325
+ registerExamples([
7326
+ {
7327
+ name: 'json-editor',
7328
+ label: 'JSON Editor',
6645
7329
  data,
6646
7330
  schema,
6647
7331
  uischema,
6648
7332
  },
6649
7333
  ]);
6650
7334
 
6651
- var if_then_else = /*#__PURE__*/Object.freeze({
7335
+ var jsonEditor = /*#__PURE__*/Object.freeze({
6652
7336
  __proto__: null,
6653
7337
  schema: schema,
6654
- uischema: uischema,
6655
- data: data
7338
+ uischema: uischema
6656
7339
  });
6657
7340
 
6658
- export { additionalErrors$1 as additionalErrors, additionalProperties, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysI18n as arrayI18n, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDefaults as arrayWithDefaults, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, arraysWithSorting as arrayWithSorting, arraysWithTranslatedCustomElementLabel as arrayWithTranslatedCustomChildLabel, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, _default as defaultExample, _enum as enumExample, enumInArray, generateDynamic, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1884 as issue_1884, _1948 as issue_1948, layout, listWithDetail, listWithDetailPrimitives, listWithDetailRegistered, login, enumMulti as multiEnum, enumMultiWithLabelAndDesc as multiEnumWithLabelAndDesc, nestedArrays as nestedArray, nestedCategorization, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, categorizationStepper as stepper, categorizationStepperNavButtons as steppershownav, string, stringArray, text };
7341
+ export { additionalErrors$1 as additionalErrors, additionalProperties, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysI18n as arrayI18n, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDefaults as arrayWithDefaults, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, arraysWithSorting as arrayWithSorting, arraysWithTranslatedCustomElementLabel as arrayWithTranslatedCustomChildLabel, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, _default as defaultExample, _enum as enumExample, enumInArray, generateDynamic, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1884 as issue_1884, _1948 as issue_1948, jsonEditor as jsoneditor, jsonschema, layout, listWithDetail, listWithDetailPrimitives, listWithDetailRegistered, login, mixed, mixedObject, enumMulti as multiEnum, enumMultiWithLabelAndDesc as multiEnumWithLabelAndDesc, nestedArrays as nestedArray, nestedCategorization, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, categorizationStepper as stepper, categorizationStepperNavButtons as steppershownav, string, stringArray, text };
6659
7342
  //# sourceMappingURL=jsonforms-examples.esm.js.map