@jsonforms/examples 3.0.0-beta.4 → 3.0.0-rc.1

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.
@@ -1,4 +1,5 @@
1
1
  import { NOT_APPLICABLE, updateErrors } from '@jsonforms/core';
2
+ import get from 'lodash/get';
2
3
 
3
4
  const knownExamples = {};
4
5
  const registerExamples = (examples) => {
@@ -6,7 +7,7 @@ const registerExamples = (examples) => {
6
7
  };
7
8
  const getExamples = () => Object.keys(knownExamples).map(key => knownExamples[key]);
8
9
 
9
- const schema$P = {
10
+ const schema$R = {
10
11
  $schema: 'http://json-schema.org/draft-07/schema#',
11
12
  definitions: {
12
13
  address: {
@@ -39,7 +40,7 @@ const schema$P = {
39
40
  }
40
41
  }
41
42
  };
42
- const uischema$P = {
43
+ const uischema$S = {
43
44
  type: 'VerticalLayout',
44
45
  elements: [
45
46
  {
@@ -53,7 +54,7 @@ const uischema$P = {
53
54
  }
54
55
  ]
55
56
  };
56
- const data$R = {
57
+ const data$U = {
57
58
  billing_address: {
58
59
  street_address: '1600 Pennsylvania Avenue NW',
59
60
  city: 'Washington',
@@ -64,19 +65,19 @@ registerExamples([
64
65
  {
65
66
  name: 'allOf',
66
67
  label: 'allOf',
67
- data: data$R,
68
- schema: schema$P,
69
- uischema: uischema$P
68
+ data: data$U,
69
+ schema: schema$R,
70
+ uischema: uischema$S
70
71
  }
71
72
  ]);
72
73
 
73
74
  var allOf = /*#__PURE__*/Object.freeze({
74
75
  __proto__: null,
75
- schema: schema$P,
76
- uischema: uischema$P
76
+ schema: schema$R,
77
+ uischema: uischema$S
77
78
  });
78
79
 
79
- const schema$O = {
80
+ const schema$Q = {
80
81
  $schema: 'http://json-schema.org/draft-07/schema#',
81
82
  definitions: {
82
83
  address: {
@@ -118,7 +119,7 @@ const schema$O = {
118
119
  }
119
120
  }
120
121
  };
121
- const uischema$O = {
122
+ const uischema$R = {
122
123
  type: 'VerticalLayout',
123
124
  elements: [
124
125
  {
@@ -131,7 +132,7 @@ const uischema$O = {
131
132
  }
132
133
  ]
133
134
  };
134
- const data$Q = {
135
+ const data$T = {
135
136
  addressOrUser: {
136
137
  street_address: '1600 Pennsylvania Avenue NW',
137
138
  city: 'Washington',
@@ -150,9 +151,9 @@ registerExamples([
150
151
  {
151
152
  name: 'anyOf',
152
153
  label: 'anyOf',
153
- data: data$Q,
154
- schema: schema$O,
155
- uischema: uischema$O
154
+ data: data$T,
155
+ schema: schema$Q,
156
+ uischema: uischema$R
156
157
  },
157
158
  {
158
159
  name: 'anyOf_simple',
@@ -165,11 +166,11 @@ registerExamples([
165
166
 
166
167
  var anyOf = /*#__PURE__*/Object.freeze({
167
168
  __proto__: null,
168
- schema: schema$O,
169
- uischema: uischema$O
169
+ schema: schema$Q,
170
+ uischema: uischema$R
170
171
  });
171
172
 
172
- const schema$N = {
173
+ const schema$P = {
173
174
  $schema: 'http://json-schema.org/draft-07/schema#',
174
175
  definitions: {
175
176
  address: {
@@ -201,7 +202,7 @@ const schema$N = {
201
202
  },
202
203
  required: ['name']
203
204
  };
204
- const uischema$N = {
205
+ const uischema$Q = {
205
206
  type: 'VerticalLayout',
206
207
  elements: [
207
208
  {
@@ -214,12 +215,11 @@ const uischema$N = {
214
215
  }
215
216
  ]
216
217
  };
217
- const data$P = {
218
+ const data$S = {
218
219
  name: 'test',
219
220
  addressOrUser: {
220
- street_address: '1600 Pennsylvania Avenue NW',
221
- city: 'Washington',
222
- state: 'DC'
221
+ name: 'User',
222
+ mail: 'mail@example.com',
223
223
  }
224
224
  };
225
225
  const schema_1265_array = {
@@ -437,9 +437,9 @@ registerExamples([
437
437
  {
438
438
  name: 'oneOf',
439
439
  label: 'oneOf',
440
- data: data$P,
441
- schema: schema$N,
442
- uischema: uischema$N
440
+ data: data$S,
441
+ schema: schema$P,
442
+ uischema: uischema$Q
443
443
  },
444
444
  {
445
445
  name: '1265_array',
@@ -480,11 +480,11 @@ registerExamples([
480
480
 
481
481
  var oneOf = /*#__PURE__*/Object.freeze({
482
482
  __proto__: null,
483
- schema: schema$N,
484
- uischema: uischema$N
483
+ schema: schema$P,
484
+ uischema: uischema$Q
485
485
  });
486
486
 
487
- const schema$M = {
487
+ const schema$O = {
488
488
  $schema: 'http://json-schema.org/draft-07/schema#',
489
489
  definitions: {
490
490
  address: {
@@ -519,7 +519,7 @@ const schema$M = {
519
519
  }
520
520
  }
521
521
  };
522
- const uischema$M = {
522
+ const uischema$P = {
523
523
  type: 'VerticalLayout',
524
524
  elements: [
525
525
  {
@@ -528,7 +528,7 @@ const uischema$M = {
528
528
  }
529
529
  ]
530
530
  };
531
- const data$O = {
531
+ const data$R = {
532
532
  name: 'test',
533
533
  addressOrUsers: [
534
534
  {
@@ -546,19 +546,19 @@ registerExamples([
546
546
  {
547
547
  name: 'oneOfArray',
548
548
  label: 'oneOf (in array)',
549
- data: data$O,
550
- schema: schema$M,
551
- uischema: uischema$M
549
+ data: data$R,
550
+ schema: schema$O,
551
+ uischema: uischema$P
552
552
  }
553
553
  ]);
554
554
 
555
555
  var oneOfArray = /*#__PURE__*/Object.freeze({
556
556
  __proto__: null,
557
- schema: schema$M,
558
- uischema: uischema$M
557
+ schema: schema$O,
558
+ uischema: uischema$P
559
559
  });
560
560
 
561
- const schema$L = {
561
+ const schema$N = {
562
562
  $defs: {
563
563
  Base: {
564
564
  type: 'object',
@@ -589,7 +589,7 @@ const schema$L = {
589
589
  }
590
590
  }
591
591
  };
592
- const uischema$L = {
592
+ const uischema$O = {
593
593
  type: 'VerticalLayout',
594
594
  elements: [
595
595
  {
@@ -614,24 +614,24 @@ const uischema$L = {
614
614
  }
615
615
  ]
616
616
  };
617
- const data$N = {};
617
+ const data$Q = {};
618
618
  registerExamples([
619
619
  {
620
620
  name: 'anyOf-oneOf-allOf-resolve',
621
621
  label: 'AnyOf OneOf AllOf Resolve',
622
- data: data$N,
623
- schema: schema$L,
624
- uischema: uischema$L
622
+ data: data$Q,
623
+ schema: schema$N,
624
+ uischema: uischema$O
625
625
  }
626
626
  ]);
627
627
 
628
628
  var anyOfOneOfAllOfResolve = /*#__PURE__*/Object.freeze({
629
629
  __proto__: null,
630
- schema: schema$L,
631
- uischema: uischema$L
630
+ schema: schema$N,
631
+ uischema: uischema$O
632
632
  });
633
633
 
634
- const schema$K = {
634
+ const schema$M = {
635
635
  type: 'object',
636
636
  properties: {
637
637
  comments: {
@@ -657,7 +657,7 @@ const schema$K = {
657
657
  foo: { type: 'string' }
658
658
  }
659
659
  };
660
- const uischema$K = {
660
+ const uischema$N = {
661
661
  type: 'VerticalLayout',
662
662
  elements: [
663
663
  {
@@ -686,7 +686,7 @@ const uischemaWithSorting = {
686
686
  }
687
687
  ]
688
688
  };
689
- const data$M = {
689
+ const data$P = {
690
690
  comments: [
691
691
  {
692
692
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -713,7 +713,7 @@ const actions$5 = [
713
713
  'apply': (props) => {
714
714
  return {
715
715
  ...props,
716
- uischema: uischema$K
716
+ uischema: uischema$N
717
717
  };
718
718
  }
719
719
  },
@@ -722,9 +722,9 @@ registerExamples([
722
722
  {
723
723
  name: 'array',
724
724
  label: 'Array',
725
- data: data$M,
726
- schema: schema$K,
727
- uischema: uischema$K,
725
+ data: data$P,
726
+ schema: schema$M,
727
+ uischema: uischema$N,
728
728
  config: {
729
729
  withSort: uischemaWithSorting
730
730
  },
@@ -734,13 +734,13 @@ registerExamples([
734
734
 
735
735
  var arrays = /*#__PURE__*/Object.freeze({
736
736
  __proto__: null,
737
- schema: schema$K,
738
- uischema: uischema$K,
737
+ schema: schema$M,
738
+ uischema: uischema$N,
739
739
  uischemaWithSorting: uischemaWithSorting,
740
- data: data$M
740
+ data: data$P
741
741
  });
742
742
 
743
- const schema$J = {
743
+ const schema$L = {
744
744
  definitions: {
745
745
  choicesContainer: {
746
746
  type: 'object',
@@ -765,7 +765,7 @@ const schema$J = {
765
765
  }
766
766
  }
767
767
  };
768
- const uischema$J = {
768
+ const uischema$M = {
769
769
  type: 'HorizontalLayout',
770
770
  elements: [
771
771
  {
@@ -778,7 +778,7 @@ const uischema$J = {
778
778
  }
779
779
  ]
780
780
  };
781
- const data$L = {
781
+ const data$O = {
782
782
  exampleArray: [
783
783
  {
784
784
  choices: ['This', 'is', 'an', 'example'],
@@ -830,16 +830,16 @@ registerExamples([
830
830
  {
831
831
  name: 'nestedArray',
832
832
  label: 'Nested Array',
833
- data: data$L,
834
- schema: schema$J,
835
- uischema: uischema$J,
833
+ data: data$O,
834
+ schema: schema$L,
835
+ uischema: uischema$M,
836
836
  actions: actions$4
837
837
  }
838
838
  ]);
839
839
 
840
840
  var nestedArrays = /*#__PURE__*/Object.freeze({
841
841
  __proto__: null,
842
- uischema: uischema$J
842
+ uischema: uischema$M
843
843
  });
844
844
 
845
845
  const personCoreSchema = {
@@ -864,7 +864,7 @@ const personCoreSchema = {
864
864
  }
865
865
  }
866
866
  };
867
- const schema$I = {
867
+ const schema$K = {
868
868
  type: 'object',
869
869
  properties: {
870
870
  ...personCoreSchema.properties,
@@ -904,7 +904,7 @@ const schema$I = {
904
904
  },
905
905
  required: ['occupation', 'nationality']
906
906
  };
907
- const uischema$I = {
907
+ const uischema$L = {
908
908
  type: 'VerticalLayout',
909
909
  elements: [
910
910
  {
@@ -957,7 +957,7 @@ const uischema$I = {
957
957
  }
958
958
  ]
959
959
  };
960
- const data$K = {
960
+ const data$N = {
961
961
  name: 'John Doe',
962
962
  vegetarian: false,
963
963
  birthDate: '1985-06-02',
@@ -970,21 +970,21 @@ registerExamples([
970
970
  {
971
971
  name: 'person',
972
972
  label: 'Person',
973
- data: data$K,
974
- schema: schema$I,
975
- uischema: uischema$I
973
+ data: data$N,
974
+ schema: schema$K,
975
+ uischema: uischema$L
976
976
  }
977
977
  ]);
978
978
 
979
979
  var person = /*#__PURE__*/Object.freeze({
980
980
  __proto__: null,
981
981
  personCoreSchema: personCoreSchema,
982
- schema: schema$I,
983
- uischema: uischema$I,
984
- data: data$K
982
+ schema: schema$K,
983
+ uischema: uischema$L,
984
+ data: data$N
985
985
  });
986
986
 
987
- const schema$H = {
987
+ const schema$J = {
988
988
  type: 'object',
989
989
  properties: {
990
990
  ...personCoreSchema.properties,
@@ -1008,7 +1008,7 @@ const schema$H = {
1008
1008
  },
1009
1009
  required: ['occupation', 'nationality']
1010
1010
  };
1011
- const uischema$H = {
1011
+ const uischema$K = {
1012
1012
  type: 'VerticalLayout',
1013
1013
  elements: [
1014
1014
  {
@@ -1033,7 +1033,7 @@ const uischema$H = {
1033
1033
  }
1034
1034
  ]
1035
1035
  };
1036
- const data$J = {
1036
+ const data$M = {
1037
1037
  comments: [
1038
1038
  {
1039
1039
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -1049,20 +1049,20 @@ registerExamples([
1049
1049
  {
1050
1050
  name: 'array-with-detail',
1051
1051
  label: 'Array with detail',
1052
- data: data$J,
1053
- schema: schema$H,
1054
- uischema: uischema$H
1052
+ data: data$M,
1053
+ schema: schema$J,
1054
+ uischema: uischema$K
1055
1055
  }
1056
1056
  ]);
1057
1057
 
1058
1058
  var arraysWithDetail = /*#__PURE__*/Object.freeze({
1059
1059
  __proto__: null,
1060
- schema: schema$H,
1061
- uischema: uischema$H,
1062
- data: data$J
1060
+ schema: schema$J,
1061
+ uischema: uischema$K,
1062
+ data: data$M
1063
1063
  });
1064
1064
 
1065
- const schema$G = {
1065
+ const schema$I = {
1066
1066
  type: 'object',
1067
1067
  properties: {
1068
1068
  ...personCoreSchema.properties,
@@ -1088,7 +1088,7 @@ const schema$G = {
1088
1088
  },
1089
1089
  required: ['occupation', 'nationality']
1090
1090
  };
1091
- const uischema$G = {
1091
+ const uischema$J = {
1092
1092
  type: 'VerticalLayout',
1093
1093
  elements: [
1094
1094
  {
@@ -1136,7 +1136,7 @@ const uischema$G = {
1136
1136
  }
1137
1137
  ]
1138
1138
  };
1139
- const data$I = {
1139
+ const data$L = {
1140
1140
  occupation: 'developer',
1141
1141
  comments: [
1142
1142
  {
@@ -1153,20 +1153,20 @@ registerExamples([
1153
1153
  {
1154
1154
  name: 'array-with-detail-and-rule',
1155
1155
  label: 'Array with detail and rule',
1156
- data: data$I,
1157
- schema: schema$G,
1158
- uischema: uischema$G
1156
+ data: data$L,
1157
+ schema: schema$I,
1158
+ uischema: uischema$J
1159
1159
  }
1160
1160
  ]);
1161
1161
 
1162
1162
  var arraysWithDetailAndRule = /*#__PURE__*/Object.freeze({
1163
1163
  __proto__: null,
1164
- schema: schema$G,
1165
- uischema: uischema$G,
1166
- data: data$I
1164
+ schema: schema$I,
1165
+ uischema: uischema$J,
1166
+ data: data$L
1167
1167
  });
1168
1168
 
1169
- const schema$F = {
1169
+ const schema$H = {
1170
1170
  type: 'object',
1171
1171
  properties: {
1172
1172
  comments: {
@@ -1186,7 +1186,7 @@ const schema$F = {
1186
1186
  }
1187
1187
  }
1188
1188
  };
1189
- const uischema$F = {
1189
+ const uischema$I = {
1190
1190
  type: 'VerticalLayout',
1191
1191
  elements: [
1192
1192
  {
@@ -1211,7 +1211,7 @@ const uischema$F = {
1211
1211
  }
1212
1212
  ]
1213
1213
  };
1214
- const data$H = {
1214
+ const data$K = {
1215
1215
  comments: [
1216
1216
  {
1217
1217
  message1: 'This is an example message',
@@ -1227,20 +1227,20 @@ registerExamples([
1227
1227
  {
1228
1228
  name: 'array-with-custom-element-label',
1229
1229
  label: 'Array with custom element label',
1230
- data: data$H,
1231
- schema: schema$F,
1232
- uischema: uischema$F
1230
+ data: data$K,
1231
+ schema: schema$H,
1232
+ uischema: uischema$I
1233
1233
  }
1234
1234
  ]);
1235
1235
 
1236
1236
  var arraysWithCustomElementLabel = /*#__PURE__*/Object.freeze({
1237
1237
  __proto__: null,
1238
- schema: schema$F,
1239
- uischema: uischema$F,
1240
- data: data$H
1238
+ schema: schema$H,
1239
+ uischema: uischema$I,
1240
+ data: data$K
1241
1241
  });
1242
1242
 
1243
- const schema$E = {
1243
+ const schema$G = {
1244
1244
  type: 'object',
1245
1245
  properties: {
1246
1246
  comments: {
@@ -1252,7 +1252,7 @@ const schema$E = {
1252
1252
  }
1253
1253
  }
1254
1254
  };
1255
- const uischema$E = {
1255
+ const uischema$H = {
1256
1256
  type: 'VerticalLayout',
1257
1257
  elements: [
1258
1258
  {
@@ -1261,27 +1261,27 @@ const uischema$E = {
1261
1261
  }
1262
1262
  ]
1263
1263
  };
1264
- const data$G = {
1264
+ const data$J = {
1265
1265
  comments: ['one string', 'two strings']
1266
1266
  };
1267
1267
  registerExamples([
1268
1268
  {
1269
1269
  name: 'stringArray',
1270
1270
  label: 'Array of Strings',
1271
- data: data$G,
1272
- schema: schema$E,
1273
- uischema: uischema$E
1271
+ data: data$J,
1272
+ schema: schema$G,
1273
+ uischema: uischema$H
1274
1274
  }
1275
1275
  ]);
1276
1276
 
1277
1277
  var stringArray = /*#__PURE__*/Object.freeze({
1278
1278
  __proto__: null,
1279
- schema: schema$E,
1280
- uischema: uischema$E,
1281
- data: data$G
1279
+ schema: schema$G,
1280
+ uischema: uischema$H,
1281
+ data: data$J
1282
1282
  });
1283
1283
 
1284
- const schema$D = {
1284
+ const schema$F = {
1285
1285
  type: 'object',
1286
1286
  properties: {
1287
1287
  firstName: {
@@ -1344,12 +1344,12 @@ const schema$D = {
1344
1344
  }
1345
1345
  },
1346
1346
  };
1347
- const uischema$D = {
1347
+ const uischema$G = {
1348
1348
  type: 'Categorization',
1349
1349
  elements: [
1350
1350
  {
1351
1351
  type: 'Category',
1352
- label: 'Basic Information',
1352
+ label: 'categoryLabelKey',
1353
1353
  elements: [
1354
1354
  {
1355
1355
  type: 'HorizontalLayout',
@@ -1389,7 +1389,7 @@ const uischema$D = {
1389
1389
  },
1390
1390
  {
1391
1391
  type: 'Category',
1392
- label: 'Address',
1392
+ i18n: 'address',
1393
1393
  elements: [
1394
1394
  {
1395
1395
  type: 'HorizontalLayout',
@@ -1460,7 +1460,7 @@ const uischema$D = {
1460
1460
  }
1461
1461
  ]
1462
1462
  };
1463
- const data$F = {
1463
+ const data$I = {
1464
1464
  provideAddress: true,
1465
1465
  vegetarian: false
1466
1466
  };
@@ -1537,18 +1537,28 @@ const uischema_1713 = {
1537
1537
  }
1538
1538
  ]
1539
1539
  };
1540
+ const translations$1 = {
1541
+ categoryLabelKey: 'Basic',
1542
+ address: {
1543
+ label: "Address",
1544
+ },
1545
+ };
1546
+ const translate$1 = (key, defaultMessage) => {
1547
+ return get(translations$1, key) ?? defaultMessage;
1548
+ };
1540
1549
  registerExamples([
1541
1550
  {
1542
1551
  name: 'categorization',
1543
1552
  label: 'Categorization',
1544
- data: data$F,
1545
- schema: schema$D,
1546
- uischema: uischema$D
1553
+ data: data$I,
1554
+ schema: schema$F,
1555
+ uischema: uischema$G,
1556
+ i18n: { locale: 'en', translate: translate$1 }
1547
1557
  },
1548
1558
  {
1549
1559
  name: '1713',
1550
1560
  label: 'Bug 1713',
1551
- data: data$F,
1561
+ data: data$I,
1552
1562
  schema: schema_1713,
1553
1563
  uischema: uischema_1713
1554
1564
  }
@@ -1556,63 +1566,65 @@ registerExamples([
1556
1566
 
1557
1567
  var categorization = /*#__PURE__*/Object.freeze({
1558
1568
  __proto__: null,
1559
- schema: schema$D,
1560
- uischema: uischema$D,
1561
- data: data$F
1569
+ schema: schema$F,
1570
+ uischema: uischema$G,
1571
+ data: data$I,
1572
+ translations: translations$1,
1573
+ translate: translate$1
1562
1574
  });
1563
1575
 
1564
- const schema$C = schema$D;
1565
- const uischema$C = {
1566
- ...uischema$D,
1576
+ const schema$E = schema$F;
1577
+ const uischema$F = {
1578
+ ...uischema$G,
1567
1579
  options: {
1568
1580
  variant: 'stepper'
1569
1581
  }
1570
1582
  };
1571
- const data$E = data$F;
1583
+ const data$H = data$I;
1572
1584
  registerExamples([
1573
1585
  {
1574
1586
  name: 'categorizationstepper',
1575
1587
  label: 'Categorization (Stepper)',
1576
- data: data$E,
1577
- schema: schema$C,
1578
- uischema: uischema$C
1588
+ data: data$H,
1589
+ schema: schema$E,
1590
+ uischema: uischema$F
1579
1591
  }
1580
1592
  ]);
1581
1593
 
1582
1594
  var stepper = /*#__PURE__*/Object.freeze({
1583
1595
  __proto__: null,
1584
- schema: schema$C,
1585
- uischema: uischema$C,
1586
- data: data$E
1596
+ schema: schema$E,
1597
+ uischema: uischema$F,
1598
+ data: data$H
1587
1599
  });
1588
1600
 
1589
- const schema$B = schema$D;
1590
- const uischema$B = {
1591
- ...uischema$D,
1601
+ const schema$D = schema$F;
1602
+ const uischema$E = {
1603
+ ...uischema$G,
1592
1604
  options: {
1593
1605
  variant: 'stepper',
1594
1606
  showNavButtons: true
1595
1607
  }
1596
1608
  };
1597
- const data$D = data$F;
1609
+ const data$G = data$I;
1598
1610
  registerExamples([
1599
1611
  {
1600
1612
  name: 'categorizationsteppernavbuttons',
1601
1613
  label: 'Categorization (Stepper - Nav Buttons)',
1602
- data: data$D,
1603
- schema: schema$B,
1604
- uischema: uischema$B
1614
+ data: data$G,
1615
+ schema: schema$D,
1616
+ uischema: uischema$E
1605
1617
  }
1606
1618
  ]);
1607
1619
 
1608
1620
  var steppershownav = /*#__PURE__*/Object.freeze({
1609
1621
  __proto__: null,
1610
- schema: schema$B,
1611
- uischema: uischema$B,
1612
- data: data$D
1622
+ schema: schema$D,
1623
+ uischema: uischema$E,
1624
+ data: data$G
1613
1625
  });
1614
1626
 
1615
- const schema$A = {
1627
+ const schema$C = {
1616
1628
  type: 'object',
1617
1629
  properties: {
1618
1630
  string: {
@@ -1645,7 +1657,7 @@ const schema$A = {
1645
1657
  }
1646
1658
  }
1647
1659
  };
1648
- const uischema$A = {
1660
+ const uischema$D = {
1649
1661
  type: 'VerticalLayout',
1650
1662
  elements: [
1651
1663
  {
@@ -1682,7 +1694,7 @@ const uischema$A = {
1682
1694
  }
1683
1695
  ]
1684
1696
  };
1685
- const data$C = {
1697
+ const data$F = {
1686
1698
  string: 'This is a string',
1687
1699
  boolean: true,
1688
1700
  number: 50.5,
@@ -1795,7 +1807,7 @@ const extendedData = {
1795
1807
  const combinedSchema = {
1796
1808
  ...extendedSchema,
1797
1809
  properties: {
1798
- ...schema$A.properties,
1810
+ ...schema$C.properties,
1799
1811
  ...extendedSchema.properties
1800
1812
  }
1801
1813
  };
@@ -1806,7 +1818,7 @@ const combinedUiSchema = {
1806
1818
  type: 'Category',
1807
1819
  label: 'Normal controls',
1808
1820
  elements: [
1809
- uischema$A
1821
+ uischema$D
1810
1822
  ]
1811
1823
  },
1812
1824
  {
@@ -1819,7 +1831,7 @@ const combinedUiSchema = {
1819
1831
  ]
1820
1832
  };
1821
1833
  const combinedData = {
1822
- ...data$C,
1834
+ ...data$F,
1823
1835
  ...extendedData
1824
1836
  };
1825
1837
  registerExamples([
@@ -1834,15 +1846,15 @@ registerExamples([
1834
1846
 
1835
1847
  var controlOptions = /*#__PURE__*/Object.freeze({
1836
1848
  __proto__: null,
1837
- schema: schema$A,
1838
- uischema: uischema$A,
1839
- data: data$C,
1849
+ schema: schema$C,
1850
+ uischema: uischema$D,
1851
+ data: data$F,
1840
1852
  extendedSchema: extendedSchema,
1841
1853
  extendedUischema: extendedUischema,
1842
1854
  extendedData: extendedData
1843
1855
  });
1844
1856
 
1845
- const schema$z = {
1857
+ const schema$B = {
1846
1858
  type: 'object',
1847
1859
  properties: {
1848
1860
  name: {
@@ -1858,8 +1870,8 @@ const schema$z = {
1858
1870
  },
1859
1871
  required: ['name']
1860
1872
  };
1861
- const uischema$z = undefined;
1862
- const data$B = {
1873
+ const uischema$C = undefined;
1874
+ const data$E = {
1863
1875
  name: 'Send email to Adrian',
1864
1876
  description: 'Confirm if you have passed the subject\nHereby ...',
1865
1877
  done: true
@@ -1868,21 +1880,21 @@ registerExamples([
1868
1880
  {
1869
1881
  name: 'day1',
1870
1882
  label: 'Day 1',
1871
- data: data$B,
1872
- schema: schema$z,
1873
- uischema: uischema$z
1883
+ data: data$E,
1884
+ schema: schema$B,
1885
+ uischema: uischema$C
1874
1886
  }
1875
1887
  ]);
1876
1888
 
1877
1889
  var day1 = /*#__PURE__*/Object.freeze({
1878
1890
  __proto__: null,
1879
- schema: schema$z,
1880
- uischema: uischema$z,
1881
- data: data$B
1891
+ schema: schema$B,
1892
+ uischema: uischema$C,
1893
+ data: data$E
1882
1894
  });
1883
1895
 
1884
- const schema$y = schema$z;
1885
- const uischema$y = {
1896
+ const schema$A = schema$B;
1897
+ const uischema$B = {
1886
1898
  type: 'VerticalLayout',
1887
1899
  elements: [
1888
1900
  {
@@ -1903,28 +1915,28 @@ const uischema$y = {
1903
1915
  }
1904
1916
  ]
1905
1917
  };
1906
- const data$A = data$B;
1918
+ const data$D = data$E;
1907
1919
  registerExamples([
1908
1920
  {
1909
1921
  name: 'day2',
1910
1922
  label: 'Day 2',
1911
- data: data$A,
1912
- schema: schema$y,
1913
- uischema: uischema$y
1923
+ data: data$D,
1924
+ schema: schema$A,
1925
+ uischema: uischema$B
1914
1926
  }
1915
1927
  ]);
1916
1928
 
1917
1929
  var day2 = /*#__PURE__*/Object.freeze({
1918
1930
  __proto__: null,
1919
- schema: schema$y,
1920
- uischema: uischema$y,
1921
- data: data$A
1931
+ schema: schema$A,
1932
+ uischema: uischema$B,
1933
+ data: data$D
1922
1934
  });
1923
1935
 
1924
- const schema$x = {
1936
+ const schema$z = {
1925
1937
  type: 'object',
1926
1938
  properties: {
1927
- ...schema$y.properties,
1939
+ ...schema$A.properties,
1928
1940
  dueDate: {
1929
1941
  type: 'string',
1930
1942
  format: 'date'
@@ -1936,10 +1948,10 @@ const schema$x = {
1936
1948
  },
1937
1949
  required: ['name']
1938
1950
  };
1939
- const uischema$x = {
1951
+ const uischema$A = {
1940
1952
  type: 'VerticalLayout',
1941
1953
  elements: [
1942
- ...uischema$y.elements,
1954
+ ...uischema$B.elements,
1943
1955
  {
1944
1956
  type: 'Control',
1945
1957
  scope: '#/properties/dueDate'
@@ -1950,31 +1962,31 @@ const uischema$x = {
1950
1962
  }
1951
1963
  ]
1952
1964
  };
1953
- const data$z = {
1954
- ...data$A,
1965
+ const data$C = {
1966
+ ...data$D,
1955
1967
  rating: 3
1956
1968
  };
1957
1969
  registerExamples([
1958
1970
  {
1959
1971
  name: 'day3',
1960
1972
  label: 'Day 3',
1961
- data: data$z,
1962
- schema: schema$x,
1963
- uischema: uischema$x
1973
+ data: data$C,
1974
+ schema: schema$z,
1975
+ uischema: uischema$A
1964
1976
  }
1965
1977
  ]);
1966
1978
 
1967
1979
  var day3 = /*#__PURE__*/Object.freeze({
1968
1980
  __proto__: null,
1969
- schema: schema$x,
1970
- uischema: uischema$x,
1971
- data: data$z
1981
+ schema: schema$z,
1982
+ uischema: uischema$A,
1983
+ data: data$C
1972
1984
  });
1973
1985
 
1974
- const schema$w = {
1986
+ const schema$y = {
1975
1987
  type: 'object',
1976
1988
  properties: {
1977
- ...schema$x.properties,
1989
+ ...schema$z.properties,
1978
1990
  recurrence: {
1979
1991
  type: 'string',
1980
1992
  enum: ['Never', 'Daily', 'Weekly', 'Monthly']
@@ -1985,10 +1997,10 @@ const schema$w = {
1985
1997
  },
1986
1998
  required: ['name']
1987
1999
  };
1988
- const uischema$w = {
2000
+ const uischema$z = {
1989
2001
  type: 'VerticalLayout',
1990
2002
  elements: [
1991
- ...uischema$x.elements,
2003
+ ...uischema$A.elements,
1992
2004
  {
1993
2005
  type: 'Control',
1994
2006
  scope: '#/properties/recurrence'
@@ -2006,8 +2018,8 @@ const uischema$w = {
2006
2018
  }
2007
2019
  ]
2008
2020
  };
2009
- const data$y = {
2010
- ...data$z,
2021
+ const data$B = {
2022
+ ...data$C,
2011
2023
  recurrence: 'Daily',
2012
2024
  recurrenceInterval: 5
2013
2025
  };
@@ -2015,21 +2027,21 @@ registerExamples([
2015
2027
  {
2016
2028
  name: 'day4',
2017
2029
  label: 'Day 4',
2018
- data: data$y,
2019
- schema: schema$w,
2020
- uischema: uischema$w
2030
+ data: data$B,
2031
+ schema: schema$y,
2032
+ uischema: uischema$z
2021
2033
  }
2022
2034
  ]);
2023
2035
 
2024
2036
  var day4 = /*#__PURE__*/Object.freeze({
2025
2037
  __proto__: null,
2026
- schema: schema$w,
2027
- uischema: uischema$w,
2028
- data: data$y
2038
+ schema: schema$y,
2039
+ uischema: uischema$z,
2040
+ data: data$B
2029
2041
  });
2030
2042
 
2031
- const schema$v = schema$w;
2032
- const uischema$v = {
2043
+ const schema$x = schema$y;
2044
+ const uischema$y = {
2033
2045
  type: 'VerticalLayout',
2034
2046
  elements: [
2035
2047
  {
@@ -2149,53 +2161,53 @@ const categoryUiSchema = {
2149
2161
  }
2150
2162
  ]
2151
2163
  };
2152
- const data$x = data$y;
2164
+ const data$A = data$B;
2153
2165
  registerExamples([
2154
2166
  {
2155
2167
  name: 'day5',
2156
2168
  label: 'Day 5',
2157
- data: data$x,
2158
- schema: schema$v,
2159
- uischema: uischema$v
2169
+ data: data$A,
2170
+ schema: schema$x,
2171
+ uischema: uischema$y
2160
2172
  },
2161
2173
  {
2162
2174
  name: 'day5_category',
2163
2175
  label: 'Day 5 With Category',
2164
- data: data$x,
2165
- schema: schema$v,
2176
+ data: data$A,
2177
+ schema: schema$x,
2166
2178
  uischema: categoryUiSchema
2167
2179
  }
2168
2180
  ]);
2169
2181
 
2170
2182
  var day5 = /*#__PURE__*/Object.freeze({
2171
2183
  __proto__: null,
2172
- schema: schema$v,
2173
- uischema: uischema$v,
2184
+ schema: schema$x,
2185
+ uischema: uischema$y,
2174
2186
  categoryUiSchema: categoryUiSchema,
2175
- data: data$x
2187
+ data: data$A
2176
2188
  });
2177
2189
 
2178
- const schema$u = schema$v;
2179
- const uischema$u = uischema$v;
2180
- const data$w = data$x;
2190
+ const schema$w = schema$x;
2191
+ const uischema$x = uischema$y;
2192
+ const data$z = data$A;
2181
2193
  registerExamples([
2182
2194
  {
2183
2195
  name: 'day6',
2184
2196
  label: 'Day 6',
2185
- data: data$w,
2186
- schema: schema$u,
2187
- uischema: uischema$u
2197
+ data: data$z,
2198
+ schema: schema$w,
2199
+ uischema: uischema$x
2188
2200
  }
2189
2201
  ]);
2190
2202
 
2191
2203
  var day6 = /*#__PURE__*/Object.freeze({
2192
2204
  __proto__: null,
2193
- schema: schema$u,
2194
- uischema: uischema$u,
2195
- data: data$w
2205
+ schema: schema$w,
2206
+ uischema: uischema$x,
2207
+ data: data$z
2196
2208
  });
2197
2209
 
2198
- const schema$t = {
2210
+ const schema$v = {
2199
2211
  type: 'object',
2200
2212
  properties: {
2201
2213
  schemaBased: {
@@ -2237,7 +2249,7 @@ const schema$t = {
2237
2249
  }
2238
2250
  }
2239
2251
  };
2240
- const uischema$t = {
2252
+ const uischema$w = {
2241
2253
  type: 'VerticalLayout',
2242
2254
  elements: [
2243
2255
  {
@@ -2296,7 +2308,7 @@ const uischema$t = {
2296
2308
  }
2297
2309
  ]
2298
2310
  };
2299
- const data$v = {
2311
+ const data$y = {
2300
2312
  schemaBased: {
2301
2313
  date: new Date().toISOString().substr(0, 10),
2302
2314
  time: '13:37',
@@ -2312,9 +2324,9 @@ registerExamples([
2312
2324
  {
2313
2325
  name: 'dates',
2314
2326
  label: 'Dates',
2315
- data: data$v,
2316
- schema: schema$t,
2317
- uischema: uischema$t
2327
+ data: data$y,
2328
+ schema: schema$v,
2329
+ uischema: uischema$w
2318
2330
  }
2319
2331
  ]);
2320
2332
 
@@ -2348,47 +2360,47 @@ var dynamic = /*#__PURE__*/Object.freeze({
2348
2360
  __proto__: null
2349
2361
  });
2350
2362
 
2351
- const schema$s = undefined;
2352
- const uischema$s = undefined;
2353
- const data$u = data$K;
2363
+ const schema$u = undefined;
2364
+ const uischema$v = undefined;
2365
+ const data$x = data$N;
2354
2366
  registerExamples([
2355
2367
  {
2356
2368
  name: 'generate',
2357
2369
  label: 'Generate both Schemas',
2358
- data: data$u,
2359
- schema: schema$s,
2360
- uischema: uischema$s
2370
+ data: data$x,
2371
+ schema: schema$u,
2372
+ uischema: uischema$v
2361
2373
  }
2362
2374
  ]);
2363
2375
 
2364
2376
  var generate = /*#__PURE__*/Object.freeze({
2365
2377
  __proto__: null,
2366
- schema: schema$s,
2367
- uischema: uischema$s,
2368
- data: data$u
2378
+ schema: schema$u,
2379
+ uischema: uischema$v,
2380
+ data: data$x
2369
2381
  });
2370
2382
 
2371
- const schema$r = personCoreSchema;
2372
- const uischema$r = undefined;
2373
- const data$t = data$K;
2383
+ const schema$t = personCoreSchema;
2384
+ const uischema$u = undefined;
2385
+ const data$w = data$N;
2374
2386
  registerExamples([
2375
2387
  {
2376
2388
  name: 'generate-ui',
2377
2389
  label: 'Generate UI Schema',
2378
- data: data$t,
2379
- schema: schema$r,
2380
- uischema: uischema$r
2390
+ data: data$w,
2391
+ schema: schema$t,
2392
+ uischema: uischema$u
2381
2393
  }
2382
2394
  ]);
2383
2395
 
2384
2396
  var generateUI = /*#__PURE__*/Object.freeze({
2385
2397
  __proto__: null,
2386
- schema: schema$r,
2387
- uischema: uischema$r,
2388
- data: data$t
2398
+ schema: schema$t,
2399
+ uischema: uischema$u,
2400
+ data: data$w
2389
2401
  });
2390
2402
 
2391
- const schema$q = schema$I;
2403
+ const schema$s = schema$K;
2392
2404
  const uischemaVertical = {
2393
2405
  type: 'VerticalLayout',
2394
2406
  elements: [
@@ -2476,49 +2488,215 @@ const uischemaComplex = {
2476
2488
  }
2477
2489
  ]
2478
2490
  };
2479
- const data$s = data$K;
2491
+ const data$v = data$N;
2480
2492
  registerExamples([
2481
2493
  {
2482
2494
  name: 'layout-vertical',
2483
2495
  label: 'Layout Vertical',
2484
- data: data$s,
2485
- schema: schema$q,
2496
+ data: data$v,
2497
+ schema: schema$s,
2486
2498
  uischema: uischemaVertical
2487
2499
  },
2488
2500
  {
2489
2501
  name: 'layout-horizontal',
2490
2502
  label: 'Layout Horizontal',
2491
- data: data$s,
2492
- schema: schema$q,
2503
+ data: data$v,
2504
+ schema: schema$s,
2493
2505
  uischema: uischemaHorizontal
2494
2506
  },
2495
2507
  {
2496
2508
  name: 'layout-group',
2497
2509
  label: 'Layout Group',
2498
- data: data$s,
2499
- schema: schema$q,
2510
+ data: data$v,
2511
+ schema: schema$s,
2500
2512
  uischema: uischemaGroup
2501
2513
  },
2502
2514
  {
2503
- name: 'layout-complex',
2504
- label: 'Layout Complex',
2505
- data: data$s,
2506
- schema: schema$q,
2507
- uischema: uischemaComplex
2515
+ name: 'layout-complex',
2516
+ label: 'Layout Complex',
2517
+ data: data$v,
2518
+ schema: schema$s,
2519
+ uischema: uischemaComplex
2520
+ }
2521
+ ]);
2522
+
2523
+ var layout = /*#__PURE__*/Object.freeze({
2524
+ __proto__: null,
2525
+ schema: schema$s,
2526
+ uischemaVertical: uischemaVertical,
2527
+ uischemaHorizontal: uischemaHorizontal,
2528
+ uischemaGroup: uischemaGroup,
2529
+ uischemaComplex: uischemaComplex,
2530
+ data: data$v
2531
+ });
2532
+
2533
+ const schema$r = {
2534
+ type: 'object',
2535
+ required: ['age'],
2536
+ properties: {
2537
+ firstName: {
2538
+ type: 'string',
2539
+ minLength: 2,
2540
+ maxLength: 20
2541
+ },
2542
+ lastName: {
2543
+ type: 'string',
2544
+ minLength: 5,
2545
+ maxLength: 15
2546
+ },
2547
+ age: {
2548
+ type: 'integer',
2549
+ minimum: 18,
2550
+ maximum: 100
2551
+ },
2552
+ gender: {
2553
+ type: 'string',
2554
+ enum: ['Male', 'Female', 'Undisclosed']
2555
+ },
2556
+ height: {
2557
+ type: 'number'
2558
+ },
2559
+ dateOfBirth: {
2560
+ type: 'string',
2561
+ format: 'date'
2562
+ },
2563
+ rating: {
2564
+ type: 'integer'
2565
+ },
2566
+ committer: {
2567
+ type: 'boolean'
2568
+ },
2569
+ address: {
2570
+ type: 'object',
2571
+ properties: {
2572
+ street: {
2573
+ type: 'string'
2574
+ },
2575
+ streetnumber: {
2576
+ type: 'string'
2577
+ },
2578
+ postalCode: {
2579
+ type: 'string'
2580
+ },
2581
+ city: {
2582
+ type: 'string'
2583
+ }
2584
+ }
2585
+ }
2586
+ }
2587
+ };
2588
+ const uischema$t = {
2589
+ type: 'VerticalLayout',
2590
+ elements: [
2591
+ {
2592
+ type: 'HorizontalLayout',
2593
+ elements: [
2594
+ {
2595
+ type: 'Control',
2596
+ scope: '#/properties/firstName'
2597
+ },
2598
+ {
2599
+ type: 'Control',
2600
+ scope: '#/properties/lastName'
2601
+ }
2602
+ ]
2603
+ },
2604
+ {
2605
+ type: 'HorizontalLayout',
2606
+ elements: [
2607
+ {
2608
+ type: 'Control',
2609
+ scope: '#/properties/age'
2610
+ },
2611
+ {
2612
+ type: 'Control',
2613
+ scope: '#/properties/dateOfBirth'
2614
+ }
2615
+ ]
2616
+ },
2617
+ {
2618
+ type: 'HorizontalLayout',
2619
+ elements: [
2620
+ {
2621
+ type: 'Control',
2622
+ scope: '#/properties/height'
2623
+ },
2624
+ {
2625
+ type: 'Control',
2626
+ scope: '#/properties/gender'
2627
+ },
2628
+ {
2629
+ type: 'Control',
2630
+ scope: '#/properties/committer'
2631
+ }
2632
+ ]
2633
+ },
2634
+ {
2635
+ type: 'Group',
2636
+ label: 'Address for Shipping T-Shirt',
2637
+ elements: [
2638
+ {
2639
+ type: 'HorizontalLayout',
2640
+ elements: [
2641
+ {
2642
+ type: 'Control',
2643
+ scope: '#/properties/address/properties/street'
2644
+ },
2645
+ {
2646
+ type: 'Control',
2647
+ scope: '#/properties/address/properties/streetnumber'
2648
+ }
2649
+ ]
2650
+ },
2651
+ {
2652
+ type: 'HorizontalLayout',
2653
+ elements: [
2654
+ {
2655
+ type: 'Control',
2656
+ scope: '#/properties/address/properties/postalCode'
2657
+ },
2658
+ {
2659
+ type: 'Control',
2660
+ scope: '#/properties/address/properties/city'
2661
+ }
2662
+ ]
2663
+ }
2664
+ ],
2665
+ rule: {
2666
+ effect: 'ENABLE',
2667
+ condition: {
2668
+ scope: '#/properties/committer',
2669
+ schema: {
2670
+ const: true
2671
+ }
2672
+ }
2673
+ }
2674
+ }
2675
+ ]
2676
+ };
2677
+ const data$u = {
2678
+ firstName: 'Max',
2679
+ lastName: 'Power',
2680
+ committer: false
2681
+ };
2682
+ registerExamples([
2683
+ {
2684
+ name: '1884',
2685
+ label: 'Issue 1884 - Committer enable/disable Address',
2686
+ data: data$u,
2687
+ schema: schema$r,
2688
+ uischema: uischema$t
2508
2689
  }
2509
2690
  ]);
2510
2691
 
2511
- var layout = /*#__PURE__*/Object.freeze({
2692
+ var _1884 = /*#__PURE__*/Object.freeze({
2512
2693
  __proto__: null,
2513
- schema: schema$q,
2514
- uischemaVertical: uischemaVertical,
2515
- uischemaHorizontal: uischemaHorizontal,
2516
- uischemaGroup: uischemaGroup,
2517
- uischemaComplex: uischemaComplex,
2518
- data: data$s
2694
+ schema: schema$r,
2695
+ uischema: uischema$t,
2696
+ data: data$u
2519
2697
  });
2520
2698
 
2521
- const schema$p = {
2699
+ const schema$q = {
2522
2700
  type: 'object',
2523
2701
  properties: {
2524
2702
  name: {
@@ -2540,7 +2718,7 @@ const schema$p = {
2540
2718
  }
2541
2719
  }
2542
2720
  };
2543
- const uischema$q = {
2721
+ const uischema$s = {
2544
2722
  type: 'VerticalLayout',
2545
2723
  elements: [
2546
2724
  {
@@ -2598,7 +2776,7 @@ const uischema$q = {
2598
2776
  }
2599
2777
  ]
2600
2778
  };
2601
- const data$r = {
2779
+ const data$t = {
2602
2780
  name: 'John Doe',
2603
2781
  dead: false,
2604
2782
  vegetables: false,
@@ -2607,20 +2785,20 @@ registerExamples([
2607
2785
  {
2608
2786
  name: 'rule',
2609
2787
  label: 'Rule',
2610
- data: data$r,
2611
- schema: schema$p,
2612
- uischema: uischema$q
2788
+ data: data$t,
2789
+ schema: schema$q,
2790
+ uischema: uischema$s
2613
2791
  }
2614
2792
  ]);
2615
2793
 
2616
2794
  var rule = /*#__PURE__*/Object.freeze({
2617
2795
  __proto__: null,
2618
- schema: schema$p,
2619
- uischema: uischema$q,
2620
- data: data$r
2796
+ schema: schema$q,
2797
+ uischema: uischema$s,
2798
+ data: data$t
2621
2799
  });
2622
2800
 
2623
- const schema$o = {
2801
+ const schema$p = {
2624
2802
  type: 'object',
2625
2803
  properties: {
2626
2804
  toggleTopLayout: {
@@ -2640,7 +2818,7 @@ const schema$o = {
2640
2818
  }
2641
2819
  }
2642
2820
  };
2643
- const uischema$p = {
2821
+ const uischema$r = {
2644
2822
  type: 'VerticalLayout',
2645
2823
  rule: {
2646
2824
  effect: 'ENABLE',
@@ -2682,7 +2860,7 @@ const uischema$p = {
2682
2860
  }
2683
2861
  ]
2684
2862
  };
2685
- const data$q = {
2863
+ const data$s = {
2686
2864
  toggleTopLayout: true,
2687
2865
  toggleBottomLayout: true,
2688
2866
  toggleControl: true
@@ -2711,21 +2889,21 @@ registerExamples([
2711
2889
  {
2712
2890
  name: 'rule-enable',
2713
2891
  label: 'Rule Inheritance',
2714
- data: data$q,
2715
- schema: schema$o,
2716
- uischema: uischema$p,
2892
+ data: data$s,
2893
+ schema: schema$p,
2894
+ uischema: uischema$r,
2717
2895
  actions: actions$2
2718
2896
  }
2719
2897
  ]);
2720
2898
 
2721
2899
  var ruleInheritance = /*#__PURE__*/Object.freeze({
2722
2900
  __proto__: null,
2723
- schema: schema$o,
2724
- uischema: uischema$p,
2725
- data: data$q
2901
+ schema: schema$p,
2902
+ uischema: uischema$r,
2903
+ data: data$s
2726
2904
  });
2727
2905
 
2728
- const schema$n = {
2906
+ const schema$o = {
2729
2907
  type: 'object',
2730
2908
  properties: {
2731
2909
  postalCode: {
@@ -2740,7 +2918,7 @@ const schema$n = {
2740
2918
  },
2741
2919
  required: ['postalCode']
2742
2920
  };
2743
- const uischema$o = {
2921
+ const uischema$q = {
2744
2922
  type: 'VerticalLayout',
2745
2923
  elements: [
2746
2924
  {
@@ -2760,7 +2938,7 @@ const uischema$o = {
2760
2938
  }
2761
2939
  ]
2762
2940
  };
2763
- const data$p = {
2941
+ const data$r = {
2764
2942
  postalCode: '12345'
2765
2943
  };
2766
2944
  const config = {
@@ -2773,28 +2951,28 @@ registerExamples([
2773
2951
  {
2774
2952
  name: 'configDefault',
2775
2953
  label: 'Configuration (Default)',
2776
- data: data$p,
2777
- schema: schema$n,
2778
- uischema: uischema$o
2954
+ data: data$r,
2955
+ schema: schema$o,
2956
+ uischema: uischema$q
2779
2957
  },
2780
2958
  {
2781
2959
  name: 'configCustom',
2782
2960
  label: 'Configuration (Custom)',
2783
- data: data$p,
2784
- schema: schema$n,
2785
- uischema: uischema$o,
2961
+ data: data$r,
2962
+ schema: schema$o,
2963
+ uischema: uischema$q,
2786
2964
  config
2787
2965
  }
2788
2966
  ]);
2789
2967
 
2790
2968
  var config$1 = /*#__PURE__*/Object.freeze({
2791
2969
  __proto__: null,
2792
- schema: schema$n,
2793
- uischema: uischema$o,
2794
- data: data$p
2970
+ schema: schema$o,
2971
+ uischema: uischema$q,
2972
+ data: data$r
2795
2973
  });
2796
2974
 
2797
- const schema$m = {
2975
+ const schema$n = {
2798
2976
  type: 'object',
2799
2977
  properties: {
2800
2978
  zipCode: {
@@ -2811,7 +2989,7 @@ const schema$m = {
2811
2989
  }
2812
2990
  }
2813
2991
  };
2814
- const uischema$n = {
2992
+ const uischema$p = {
2815
2993
  type: 'VerticalLayout',
2816
2994
  elements: [
2817
2995
  {
@@ -2848,7 +3026,7 @@ const uischema$n = {
2848
3026
  }
2849
3027
  ]
2850
3028
  };
2851
- const data$o = {
3029
+ const data$q = {
2852
3030
  zipCode: '12345',
2853
3031
  zipCodeWithoutTrim: '12345678',
2854
3032
  zipCodeWithoutRestrict: '12345678'
@@ -2857,20 +3035,20 @@ registerExamples([
2857
3035
  {
2858
3036
  name: 'text',
2859
3037
  label: 'Text',
2860
- data: data$o,
2861
- schema: schema$m,
2862
- uischema: uischema$n
3038
+ data: data$q,
3039
+ schema: schema$n,
3040
+ uischema: uischema$p
2863
3041
  }
2864
3042
  ]);
2865
3043
 
2866
3044
  var text = /*#__PURE__*/Object.freeze({
2867
3045
  __proto__: null,
2868
- schema: schema$m,
2869
- uischema: uischema$n,
2870
- data: data$o
3046
+ schema: schema$n,
3047
+ uischema: uischema$p,
3048
+ data: data$q
2871
3049
  });
2872
3050
 
2873
- const schema$l = {
3051
+ const schema$m = {
2874
3052
  type: 'object',
2875
3053
  properties: {
2876
3054
  price: {
@@ -2887,7 +3065,7 @@ const schema$l = {
2887
3065
  }
2888
3066
  }
2889
3067
  };
2890
- const uischema$m = {
3068
+ const uischema$o = {
2891
3069
  type: 'VerticalLayout',
2892
3070
  elements: [
2893
3071
  {
@@ -2920,22 +3098,22 @@ const uischema$m = {
2920
3098
  }
2921
3099
  ]
2922
3100
  };
2923
- const data$n = {};
3101
+ const data$p = {};
2924
3102
  registerExamples([
2925
3103
  {
2926
3104
  name: 'numbers',
2927
3105
  label: 'Numbers',
2928
- data: data$n,
2929
- schema: schema$l,
2930
- uischema: uischema$m
3106
+ data: data$p,
3107
+ schema: schema$m,
3108
+ uischema: uischema$o
2931
3109
  }
2932
3110
  ]);
2933
3111
 
2934
3112
  var numbers = /*#__PURE__*/Object.freeze({
2935
3113
  __proto__: null,
2936
- schema: schema$l,
2937
- uischema: uischema$m,
2938
- data: data$n
3114
+ schema: schema$m,
3115
+ uischema: uischema$o,
3116
+ data: data$p
2939
3117
  });
2940
3118
 
2941
3119
  const orderSchema = {
@@ -2969,7 +3147,7 @@ const orderSchema = {
2969
3147
  }
2970
3148
  }
2971
3149
  };
2972
- const uischema$l = {
3150
+ const uischema$n = {
2973
3151
  type: 'VerticalLayout',
2974
3152
  elements: [
2975
3153
  {
@@ -3004,7 +3182,7 @@ const uischema$l = {
3004
3182
  }
3005
3183
  ]
3006
3184
  };
3007
- const data$m = {
3185
+ const data$o = {
3008
3186
  orderId: '123456',
3009
3187
  purchaseDate: '1985-06-02',
3010
3188
  price: 16,
@@ -3017,20 +3195,20 @@ registerExamples([
3017
3195
  {
3018
3196
  name: 'scope',
3019
3197
  label: 'Scope',
3020
- data: data$m,
3198
+ data: data$o,
3021
3199
  schema: orderSchema,
3022
- uischema: uischema$l
3200
+ uischema: uischema$n
3023
3201
  }
3024
3202
  ]);
3025
3203
 
3026
3204
  var scope = /*#__PURE__*/Object.freeze({
3027
3205
  __proto__: null,
3028
3206
  orderSchema: orderSchema,
3029
- uischema: uischema$l,
3030
- data: data$m
3207
+ uischema: uischema$n,
3208
+ data: data$o
3031
3209
  });
3032
3210
 
3033
- const data$l = {
3211
+ const data$n = {
3034
3212
  orders: [
3035
3213
  {
3036
3214
  customer: {
@@ -3059,7 +3237,7 @@ const data$l = {
3059
3237
  }
3060
3238
  ]
3061
3239
  };
3062
- const schema$k = {
3240
+ const schema$l = {
3063
3241
  definitions: {
3064
3242
  order: {
3065
3243
  type: 'object',
@@ -3109,7 +3287,7 @@ const schema$k = {
3109
3287
  }
3110
3288
  }
3111
3289
  };
3112
- const uischema$k = {
3290
+ const uischema$m = {
3113
3291
  type: 'ListWithDetail',
3114
3292
  scope: '#/properties/orders',
3115
3293
  options: {
@@ -3290,17 +3468,17 @@ registerExamples([
3290
3468
  {
3291
3469
  name: 'list-with-detail',
3292
3470
  label: 'List With Detail',
3293
- data: data$l,
3294
- schema: schema$k,
3295
- uischema: uischema$k
3471
+ data: data$n,
3472
+ schema: schema$l,
3473
+ uischema: uischema$m
3296
3474
  }
3297
3475
  ]);
3298
3476
  registerExamples([
3299
3477
  {
3300
3478
  name: 'list-with-detail-no-labelref',
3301
3479
  label: 'List With Detail (No Label Ref)',
3302
- data: data$l,
3303
- schema: schema$k,
3480
+ data: data$n,
3481
+ schema: schema$l,
3304
3482
  uischema: uischemaNoLabelRef
3305
3483
  }
3306
3484
  ]);
@@ -3309,7 +3487,7 @@ var listWithDetail = /*#__PURE__*/Object.freeze({
3309
3487
  __proto__: null
3310
3488
  });
3311
3489
 
3312
- const data$k = {
3490
+ const data$m = {
3313
3491
  warehouseitems: [
3314
3492
  {
3315
3493
  name: 'Fantasy Book',
@@ -3337,7 +3515,7 @@ const data$k = {
3337
3515
  }
3338
3516
  ]
3339
3517
  };
3340
- const schema$j = {
3518
+ const schema$k = {
3341
3519
  definitions: {
3342
3520
  warehouseitem: {
3343
3521
  type: 'object',
@@ -3368,7 +3546,7 @@ const schema$j = {
3368
3546
  }
3369
3547
  }
3370
3548
  };
3371
- const uischema$j = {
3549
+ const uischema$l = {
3372
3550
  type: 'ListWithDetail',
3373
3551
  scope: '#/properties/warehouseitems',
3374
3552
  options: {
@@ -3379,9 +3557,9 @@ registerExamples([
3379
3557
  {
3380
3558
  name: 'list-with-detail-registered',
3381
3559
  label: 'List With Detail (Registered)',
3382
- data: data$k,
3383
- schema: schema$j,
3384
- uischema: uischema$j
3560
+ data: data$m,
3561
+ schema: schema$k,
3562
+ uischema: uischema$l
3385
3563
  }
3386
3564
  ]);
3387
3565
 
@@ -3389,7 +3567,7 @@ var listWithDetailRegistered = /*#__PURE__*/Object.freeze({
3389
3567
  __proto__: null
3390
3568
  });
3391
3569
 
3392
- const schema$i = {
3570
+ const schema$j = {
3393
3571
  $schema: 'http://json-schema.org/draft-07/schema#',
3394
3572
  type: 'object',
3395
3573
  properties: {
@@ -3450,7 +3628,7 @@ const uischemaNonRoot = {
3450
3628
  }
3451
3629
  ]
3452
3630
  };
3453
- const data$j = {
3631
+ const data$l = {
3454
3632
  address: {
3455
3633
  street_address: '1600 Pennsylvania Avenue NW',
3456
3634
  city: 'Washington',
@@ -3461,22 +3639,22 @@ registerExamples([
3461
3639
  {
3462
3640
  name: 'rootObject',
3463
3641
  label: 'Root Object',
3464
- data: data$j,
3465
- schema: schema$i,
3642
+ data: data$l,
3643
+ schema: schema$j,
3466
3644
  uischema: uischemaRoot
3467
3645
  },
3468
3646
  {
3469
3647
  name: 'object',
3470
3648
  label: 'Object',
3471
- data: data$j,
3472
- schema: schema$i,
3649
+ data: data$l,
3650
+ schema: schema$j,
3473
3651
  uischema: uischemaNonRoot
3474
3652
  }
3475
3653
  ]);
3476
3654
 
3477
3655
  var object = /*#__PURE__*/Object.freeze({
3478
3656
  __proto__: null,
3479
- schema: schema$i,
3657
+ schema: schema$j,
3480
3658
  uischemaRoot: uischemaRoot,
3481
3659
  uischemaNonRoot: uischemaNonRoot
3482
3660
  });
@@ -3490,11 +3668,12 @@ const onChange$2 = (dispatch) => (extensionState) => ({ errors }) => {
3490
3668
  localiseFunc(errors);
3491
3669
  dispatch(updateErrors(errors));
3492
3670
  };
3493
- const uischema$i = {
3671
+ const uischema$k = {
3494
3672
  type: 'VerticalLayout',
3495
3673
  elements: [
3496
3674
  {
3497
- type: 'HorizontalLayout',
3675
+ type: 'Group',
3676
+ i18n: 'basicInfoGroup',
3498
3677
  elements: [
3499
3678
  {
3500
3679
  type: 'Control',
@@ -3508,7 +3687,7 @@ const uischema$i = {
3508
3687
  },
3509
3688
  {
3510
3689
  type: 'Label',
3511
- text: 'Additional Information'
3690
+ text: 'additionalInformationLabel',
3512
3691
  },
3513
3692
  {
3514
3693
  type: 'HorizontalLayout',
@@ -3525,7 +3704,7 @@ const uischema$i = {
3525
3704
  }
3526
3705
  ]
3527
3706
  };
3528
- const data$i = {
3707
+ const data$k = {
3529
3708
  vegetarian: false,
3530
3709
  birthDate: '1985-06-02',
3531
3710
  personalData: {
@@ -3533,19 +3712,179 @@ const data$i = {
3533
3712
  },
3534
3713
  postalCode: '12345'
3535
3714
  };
3715
+ const translations = {
3716
+ basicInfoGroup: {
3717
+ label: 'Basic Information'
3718
+ },
3719
+ additionalInformationLabel: 'Additional Information'
3720
+ };
3721
+ const translate = (key, defaultMessage) => {
3722
+ return get(translations, key) ?? defaultMessage;
3723
+ };
3536
3724
  registerExamples([
3537
3725
  {
3538
3726
  name: 'i18n',
3539
3727
  label: 'Person (i18n)',
3540
- data: data$i,
3728
+ data: data$k,
3541
3729
  schema: personCoreSchema,
3542
- uischema: uischema$i
3730
+ uischema: uischema$k,
3731
+ i18n: {
3732
+ translate: translate,
3733
+ locale: 'en'
3734
+ }
3543
3735
  }
3544
3736
  ]);
3545
3737
 
3546
3738
  var i18n = /*#__PURE__*/Object.freeze({
3547
3739
  __proto__: null,
3548
3740
  onChange: onChange$2,
3741
+ uischema: uischema$k,
3742
+ data: data$k,
3743
+ translations: translations,
3744
+ translate: translate
3745
+ });
3746
+
3747
+ const schema$i = {
3748
+ type: 'object',
3749
+ definitions: {
3750
+ import: {
3751
+ title: 'Import',
3752
+ type: 'object',
3753
+ properties: {
3754
+ eClass: {
3755
+ const: 'http://my_schema/1.0.0#//Import'
3756
+ },
3757
+ document: {
3758
+ type: 'string'
3759
+ },
3760
+ package: {
3761
+ type: 'string'
3762
+ },
3763
+ prefix: {
3764
+ type: 'string'
3765
+ }
3766
+ }
3767
+ }
3768
+ },
3769
+ properties: {
3770
+ import: {
3771
+ type: 'array',
3772
+ items: {
3773
+ $ref: '#/definitions/import'
3774
+ }
3775
+ }
3776
+ }
3777
+ };
3778
+ const uischema$j = undefined;
3779
+ const data$j = {
3780
+ import: [
3781
+ {
3782
+ document: 'Document1',
3783
+ package: 'Package1',
3784
+ prefix: 'Prefix'
3785
+ }
3786
+ ]
3787
+ };
3788
+ registerExamples([
3789
+ {
3790
+ name: '1948_with',
3791
+ label: 'Issue 1948 with schema',
3792
+ data: data$j,
3793
+ schema: schema$i,
3794
+ uischema: uischema$j
3795
+ },
3796
+ {
3797
+ name: '1948_without',
3798
+ label: 'Issue 1948 w/o schema',
3799
+ data: data$j,
3800
+ schema: undefined,
3801
+ uischema: uischema$j
3802
+ }
3803
+ ]);
3804
+
3805
+ var _1948 = /*#__PURE__*/Object.freeze({
3806
+ __proto__: null,
3807
+ schema: schema$i,
3808
+ uischema: uischema$j,
3809
+ data: data$j
3810
+ });
3811
+
3812
+ const schemaAnyOf = {
3813
+ type: "array",
3814
+ items: {
3815
+ anyOf: [
3816
+ {
3817
+ type: "object",
3818
+ properties: {
3819
+ value: {
3820
+ type: "string"
3821
+ }
3822
+ },
3823
+ required: ["value"]
3824
+ },
3825
+ {
3826
+ type: "object",
3827
+ properties: {
3828
+ value: {
3829
+ type: "number"
3830
+ }
3831
+ },
3832
+ required: ["value"]
3833
+ }
3834
+ ]
3835
+ }
3836
+ };
3837
+ const schemaOneOf = {
3838
+ type: "array",
3839
+ items: {
3840
+ oneOf: [
3841
+ {
3842
+ type: "object",
3843
+ properties: {
3844
+ value: {
3845
+ type: "string"
3846
+ }
3847
+ },
3848
+ required: ["value"]
3849
+ },
3850
+ {
3851
+ type: "object",
3852
+ properties: {
3853
+ value: {
3854
+ type: "number"
3855
+ }
3856
+ },
3857
+ required: ["value"]
3858
+ }
3859
+ ]
3860
+ }
3861
+ };
3862
+ const uischema$i = {
3863
+ type: 'Control',
3864
+ scope: '#'
3865
+ };
3866
+ const data$i = [];
3867
+ registerExamples([
3868
+ {
3869
+ name: '1996_anyOf',
3870
+ label: 'Issue 1996 - array with anyOf items',
3871
+ data: data$i,
3872
+ schema: schemaAnyOf,
3873
+ uischema: uischema$i
3874
+ },
3875
+ {
3876
+ name: '1996_oneOf',
3877
+ label: 'Issue 1996 - array with oneOf items',
3878
+ data: data$i,
3879
+ schema: schemaOneOf,
3880
+ uischema: uischema$i
3881
+ }
3882
+ ]);
3883
+
3884
+ var _1996 = /*#__PURE__*/Object.freeze({
3885
+ __proto__: null,
3886
+ schemaAnyOf: schemaAnyOf,
3887
+ schemaOneOf: schemaOneOf,
3549
3888
  uischema: uischema$i,
3550
3889
  data: data$i
3551
3890
  });
@@ -6101,9 +6440,9 @@ registerExamples([
6101
6440
  {
6102
6441
  name: 'additional-errors',
6103
6442
  label: 'Additional errors',
6104
- data: data$K,
6105
- schema: schema$I,
6106
- uischema: uischema$I,
6443
+ data: data$N,
6444
+ schema: schema$K,
6445
+ uischema: uischema$L,
6107
6446
  actions
6108
6447
  }
6109
6448
  ]);
@@ -6140,5 +6479,5 @@ var if_then_else = /*#__PURE__*/Object.freeze({
6140
6479
  data: data
6141
6480
  });
6142
6481
 
6143
- export { additionalErrors$1 as additionalErrors, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, booleanToggle, _1645 as bug_1645, _1779 as bug_1779, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, day1, day2, day3, day4, day5, day6, _default as defaultExample, dynamic, _enum as enumExample, enumInArray, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1169 as issue_1169, _1220 as issue_1220, _1253 as issue_1253, _1254 as issue_1254, layout, listWithDetail, listWithDetailRegistered, multiEnum, nestedArrays as nestedArray, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, stepper, steppershownav, stringArray, text };
6482
+ export { additionalErrors$1 as additionalErrors, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, booleanToggle, _1645 as bug_1645, _1779 as bug_1779, categorization, conditionalSchemaCompositions as conditionalSchemaComposition, config$1 as config, controlOptions, dates, day1, day2, day3, day4, day5, day6, _default as defaultExample, dynamic, _enum as enumExample, enumInArray, generate as generateSchema, generateUI as generateUISchema, getExamples, huge, i18n, if_then_else as ifThenElse, _1169 as issue_1169, _1220 as issue_1220, _1253 as issue_1253, _1254 as issue_1254, _1884 as issue_1884, _1948 as issue_1948, _1996 as issue_1996, layout, listWithDetail, listWithDetailRegistered, multiEnum, nestedArrays as nestedArray, numbers, object, onChange$1 as onChange, oneOf, oneOfArray, oneOfRecursive, person, radioGroup as radioGroupExample, readonly, registerExamples, rule, ruleInheritance, scope, stepper, steppershownav, stringArray, text };
6144
6483
  //# sourceMappingURL=jsonforms-examples.esm.js.map