@jsonforms/examples 3.3.0-alpha.1 → 3.3.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ const getExamples = () => {
12
12
  return examples;
13
13
  };
14
14
 
15
- const schema$K = {
15
+ const schema$L = {
16
16
  $schema: 'http://json-schema.org/draft-07/schema#',
17
17
  definitions: {
18
18
  address: {
@@ -45,7 +45,7 @@ const schema$K = {
45
45
  },
46
46
  },
47
47
  };
48
- const uischema$K = {
48
+ const uischema$L = {
49
49
  type: 'VerticalLayout',
50
50
  elements: [
51
51
  {
@@ -59,7 +59,7 @@ const uischema$K = {
59
59
  },
60
60
  ],
61
61
  };
62
- const data$M = {
62
+ const data$N = {
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$M,
74
- schema: schema$K,
75
- uischema: uischema$K,
73
+ data: data$N,
74
+ schema: schema$L,
75
+ uischema: uischema$L,
76
76
  },
77
77
  ]);
78
78
 
79
79
  var allOf = /*#__PURE__*/Object.freeze({
80
80
  __proto__: null,
81
- schema: schema$K,
82
- uischema: uischema$K
81
+ schema: schema$L,
82
+ uischema: uischema$L
83
83
  });
84
84
 
85
- const schema$J = {
85
+ const schema$K = {
86
86
  $schema: 'http://json-schema.org/draft-07/schema#',
87
87
  definitions: {
88
88
  address: {
@@ -136,7 +136,7 @@ const schema$J = {
136
136
  },
137
137
  },
138
138
  };
139
- const uischema$J = {
139
+ const uischema$K = {
140
140
  type: 'VerticalLayout',
141
141
  elements: [
142
142
  {
@@ -155,7 +155,7 @@ const uischema$J = {
155
155
  },
156
156
  ],
157
157
  };
158
- const data$L = {
158
+ const data$M = {
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$L,
178
- schema: schema$J,
179
- uischema: uischema$J,
177
+ data: data$M,
178
+ schema: schema$K,
179
+ uischema: uischema$K,
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$J,
193
- uischema: uischema$J
192
+ schema: schema$K,
193
+ uischema: uischema$K
194
194
  });
195
195
 
196
- const schema$I = {
196
+ const schema$J = {
197
197
  $schema: 'http://json-schema.org/draft-07/schema#',
198
198
  definitions: {
199
199
  address: {
@@ -228,7 +228,7 @@ const schema$I = {
228
228
  },
229
229
  required: ['name'],
230
230
  };
231
- const uischema$I = {
231
+ const uischema$J = {
232
232
  type: 'VerticalLayout',
233
233
  elements: [
234
234
  {
@@ -241,7 +241,7 @@ const uischema$I = {
241
241
  },
242
242
  ],
243
243
  };
244
- const data$K = {
244
+ const data$L = {
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$K,
467
- schema: schema$I,
468
- uischema: uischema$I,
466
+ data: data$L,
467
+ schema: schema$J,
468
+ uischema: uischema$J,
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$I,
510
- uischema: uischema$I
509
+ schema: schema$J,
510
+ uischema: uischema$J
511
511
  });
512
512
 
513
- const schema$H = {
513
+ const schema$I = {
514
514
  $schema: 'http://json-schema.org/draft-07/schema#',
515
515
  definitions: {
516
516
  address: {
@@ -545,7 +545,7 @@ const schema$H = {
545
545
  },
546
546
  },
547
547
  };
548
- const uischema$H = {
548
+ const uischema$I = {
549
549
  type: 'VerticalLayout',
550
550
  elements: [
551
551
  {
@@ -554,7 +554,7 @@ const uischema$H = {
554
554
  },
555
555
  ],
556
556
  };
557
- const data$J = {
557
+ const data$K = {
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$J,
576
- schema: schema$H,
577
- uischema: uischema$H,
575
+ data: data$K,
576
+ schema: schema$I,
577
+ uischema: uischema$I,
578
578
  },
579
579
  ]);
580
580
 
581
581
  var oneOfArray = /*#__PURE__*/Object.freeze({
582
582
  __proto__: null,
583
- schema: schema$H,
584
- uischema: uischema$H
583
+ schema: schema$I,
584
+ uischema: uischema$I
585
585
  });
586
586
 
587
- const schema$G = {
587
+ const schema$H = {
588
588
  $defs: {
589
589
  Base: {
590
590
  type: 'object',
@@ -615,7 +615,7 @@ const schema$G = {
615
615
  },
616
616
  },
617
617
  };
618
- const uischema$G = {
618
+ const uischema$H = {
619
619
  type: 'VerticalLayout',
620
620
  elements: [
621
621
  {
@@ -640,24 +640,24 @@ const uischema$G = {
640
640
  },
641
641
  ],
642
642
  };
643
- const data$I = {};
643
+ const data$J = {};
644
644
  registerExamples([
645
645
  {
646
646
  name: 'anyOf-oneOf-allOf-resolve',
647
647
  label: 'AnyOf OneOf AllOf Resolve',
648
- data: data$I,
649
- schema: schema$G,
650
- uischema: uischema$G,
648
+ data: data$J,
649
+ schema: schema$H,
650
+ uischema: uischema$H,
651
651
  },
652
652
  ]);
653
653
 
654
654
  var anyOfOneOfAllOfResolve = /*#__PURE__*/Object.freeze({
655
655
  __proto__: null,
656
- schema: schema$G,
657
- uischema: uischema$G
656
+ schema: schema$H,
657
+ uischema: uischema$H
658
658
  });
659
659
 
660
- const schema$F = {
660
+ const schema$G = {
661
661
  type: 'object',
662
662
  properties: {
663
663
  comments: {
@@ -687,7 +687,7 @@ const schema$F = {
687
687
  foo: { type: 'string' },
688
688
  },
689
689
  };
690
- const uischema$F = {
690
+ const uischema$G = {
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$H = {
722
+ const data$I = {
723
723
  comments: [
724
724
  {
725
725
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -747,7 +747,7 @@ const actions$5 = [
747
747
  apply: (props) => {
748
748
  return {
749
749
  ...props,
750
- uischema: uischema$F,
750
+ uischema: uischema$G,
751
751
  };
752
752
  },
753
753
  },
@@ -756,9 +756,9 @@ registerExamples([
756
756
  {
757
757
  name: 'array',
758
758
  label: 'Array',
759
- data: data$H,
760
- schema: schema$F,
761
- uischema: uischema$F,
759
+ data: data$I,
760
+ schema: schema$G,
761
+ uischema: uischema$G,
762
762
  config: {
763
763
  withSort: uischemaWithSorting$1,
764
764
  },
@@ -768,13 +768,13 @@ registerExamples([
768
768
 
769
769
  var arrays = /*#__PURE__*/Object.freeze({
770
770
  __proto__: null,
771
- schema: schema$F,
772
- uischema: uischema$F,
771
+ schema: schema$G,
772
+ uischema: uischema$G,
773
773
  uischemaWithSorting: uischemaWithSorting$1,
774
- data: data$H
774
+ data: data$I
775
775
  });
776
776
 
777
- const schema$E = {
777
+ const schema$F = {
778
778
  type: 'object',
779
779
  properties: {
780
780
  comments: {
@@ -799,7 +799,7 @@ const schema$E = {
799
799
  },
800
800
  },
801
801
  };
802
- const uischema$E = {
802
+ const uischema$F = {
803
803
  type: 'VerticalLayout',
804
804
  elements: [
805
805
  {
@@ -811,7 +811,7 @@ const uischema$E = {
811
811
  },
812
812
  ],
813
813
  };
814
- const data$G = {
814
+ const data$H = {
815
815
  comments: [
816
816
  {
817
817
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -832,18 +832,18 @@ const translations$2 = {
832
832
  [ArrayTranslationEnum.deleteDialogMessage]: 'Are you sure you want to delete this comment?',
833
833
  },
834
834
  };
835
- const translate$2 = (key, defaultMessage) => {
835
+ const translate$3 = (key, defaultMessage) => {
836
836
  return get(translations$2, key) ?? defaultMessage;
837
837
  };
838
838
  registerExamples([
839
839
  {
840
840
  name: 'array-i18n',
841
841
  label: 'Array (i18n)',
842
- data: data$G,
843
- schema: schema$E,
844
- uischema: uischema$E,
842
+ data: data$H,
843
+ schema: schema$F,
844
+ uischema: uischema$F,
845
845
  i18n: {
846
- translate: translate$2,
846
+ translate: translate$3,
847
847
  locale: 'en',
848
848
  },
849
849
  },
@@ -851,14 +851,14 @@ registerExamples([
851
851
 
852
852
  var arraysI18n = /*#__PURE__*/Object.freeze({
853
853
  __proto__: null,
854
- schema: schema$E,
855
- uischema: uischema$E,
856
- data: data$G,
854
+ schema: schema$F,
855
+ uischema: uischema$F,
856
+ data: data$H,
857
857
  translations: translations$2,
858
- translate: translate$2
858
+ translate: translate$3
859
859
  });
860
860
 
861
- const schema$D = {
861
+ const schema$E = {
862
862
  definitions: {
863
863
  choicesContainer: {
864
864
  type: 'object',
@@ -883,7 +883,7 @@ const schema$D = {
883
883
  },
884
884
  },
885
885
  };
886
- const uischema$D = {
886
+ const uischema$E = {
887
887
  type: 'HorizontalLayout',
888
888
  elements: [
889
889
  {
@@ -896,7 +896,7 @@ const uischema$D = {
896
896
  },
897
897
  ],
898
898
  };
899
- const data$F = {
899
+ const data$G = {
900
900
  exampleArray: [
901
901
  {
902
902
  choices: ['This', 'is', 'an', 'example'],
@@ -948,19 +948,19 @@ registerExamples([
948
948
  {
949
949
  name: 'nestedArray',
950
950
  label: 'Nested Array',
951
- data: data$F,
952
- schema: schema$D,
953
- uischema: uischema$D,
951
+ data: data$G,
952
+ schema: schema$E,
953
+ uischema: uischema$E,
954
954
  actions: actions$4,
955
955
  },
956
956
  ]);
957
957
 
958
958
  var nestedArrays = /*#__PURE__*/Object.freeze({
959
959
  __proto__: null,
960
- uischema: uischema$D
960
+ uischema: uischema$E
961
961
  });
962
962
 
963
- const schema$C = {
963
+ const schema$D = {
964
964
  type: 'object',
965
965
  properties: {
966
966
  cat1: {
@@ -998,7 +998,7 @@ const schema$C = {
998
998
  },
999
999
  },
1000
1000
  };
1001
- const uischema$C = {
1001
+ const uischema$D = {
1002
1002
  type: 'Categorization',
1003
1003
  elements: [
1004
1004
  {
@@ -1096,22 +1096,22 @@ const uischema$C = {
1096
1096
  },
1097
1097
  ],
1098
1098
  };
1099
- const data$E = {};
1099
+ const data$F = {};
1100
1100
  registerExamples([
1101
1101
  {
1102
1102
  name: 'nestedCategorization',
1103
1103
  label: 'Nested Categorization',
1104
- data: data$E,
1105
- schema: schema$C,
1106
- uischema: uischema$C,
1104
+ data: data$F,
1105
+ schema: schema$D,
1106
+ uischema: uischema$D,
1107
1107
  },
1108
1108
  ]);
1109
1109
 
1110
1110
  var nestedCategorization = /*#__PURE__*/Object.freeze({
1111
1111
  __proto__: null,
1112
- schema: schema$C,
1113
- uischema: uischema$C,
1114
- data: data$E
1112
+ schema: schema$D,
1113
+ uischema: uischema$D,
1114
+ data: data$F
1115
1115
  });
1116
1116
 
1117
1117
  const personCoreSchema = {
@@ -1136,7 +1136,7 @@ const personCoreSchema = {
1136
1136
  },
1137
1137
  },
1138
1138
  };
1139
- const schema$B = {
1139
+ const schema$C = {
1140
1140
  type: 'object',
1141
1141
  properties: {
1142
1142
  ...personCoreSchema.properties,
@@ -1176,7 +1176,7 @@ const schema$B = {
1176
1176
  },
1177
1177
  required: ['occupation', 'nationality'],
1178
1178
  };
1179
- const uischema$B = {
1179
+ const uischema$C = {
1180
1180
  type: 'VerticalLayout',
1181
1181
  elements: [
1182
1182
  {
@@ -1229,7 +1229,7 @@ const uischema$B = {
1229
1229
  },
1230
1230
  ],
1231
1231
  };
1232
- const data$D = {
1232
+ const data$E = {
1233
1233
  name: 'John Doe',
1234
1234
  vegetarian: false,
1235
1235
  birthDate: '1985-06-02',
@@ -1242,21 +1242,21 @@ registerExamples([
1242
1242
  {
1243
1243
  name: 'person',
1244
1244
  label: 'Person',
1245
- data: data$D,
1246
- schema: schema$B,
1247
- uischema: uischema$B,
1245
+ data: data$E,
1246
+ schema: schema$C,
1247
+ uischema: uischema$C,
1248
1248
  },
1249
1249
  ]);
1250
1250
 
1251
1251
  var person = /*#__PURE__*/Object.freeze({
1252
1252
  __proto__: null,
1253
1253
  personCoreSchema: personCoreSchema,
1254
- schema: schema$B,
1255
- uischema: uischema$B,
1256
- data: data$D
1254
+ schema: schema$C,
1255
+ uischema: uischema$C,
1256
+ data: data$E
1257
1257
  });
1258
1258
 
1259
- const schema$A = {
1259
+ const schema$B = {
1260
1260
  type: 'object',
1261
1261
  properties: {
1262
1262
  ...personCoreSchema.properties,
@@ -1283,7 +1283,7 @@ const schema$A = {
1283
1283
  },
1284
1284
  required: ['occupation', 'nationality'],
1285
1285
  };
1286
- const uischema$A = {
1286
+ const uischema$B = {
1287
1287
  type: 'VerticalLayout',
1288
1288
  elements: [
1289
1289
  {
@@ -1309,7 +1309,7 @@ const uischema$A = {
1309
1309
  },
1310
1310
  ],
1311
1311
  };
1312
- const data$C = {
1312
+ const data$D = {
1313
1313
  comments: [
1314
1314
  {
1315
1315
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -1325,20 +1325,20 @@ registerExamples([
1325
1325
  {
1326
1326
  name: 'array-with-detail',
1327
1327
  label: 'Array with detail',
1328
- data: data$C,
1329
- schema: schema$A,
1330
- uischema: uischema$A,
1328
+ data: data$D,
1329
+ schema: schema$B,
1330
+ uischema: uischema$B,
1331
1331
  },
1332
1332
  ]);
1333
1333
 
1334
1334
  var arraysWithDetail = /*#__PURE__*/Object.freeze({
1335
1335
  __proto__: null,
1336
- schema: schema$A,
1337
- uischema: uischema$A,
1338
- data: data$C
1336
+ schema: schema$B,
1337
+ uischema: uischema$B,
1338
+ data: data$D
1339
1339
  });
1340
1340
 
1341
- const schema$z = {
1341
+ const schema$A = {
1342
1342
  type: 'object',
1343
1343
  properties: {
1344
1344
  ...personCoreSchema.properties,
@@ -1364,7 +1364,7 @@ const schema$z = {
1364
1364
  },
1365
1365
  required: ['occupation', 'nationality'],
1366
1366
  };
1367
- const uischema$z = {
1367
+ const uischema$A = {
1368
1368
  type: 'VerticalLayout',
1369
1369
  elements: [
1370
1370
  {
@@ -1412,7 +1412,7 @@ const uischema$z = {
1412
1412
  },
1413
1413
  ],
1414
1414
  };
1415
- const data$B = {
1415
+ const data$C = {
1416
1416
  occupation: 'developer',
1417
1417
  comments: [
1418
1418
  {
@@ -1429,20 +1429,20 @@ registerExamples([
1429
1429
  {
1430
1430
  name: 'array-with-detail-and-rule',
1431
1431
  label: 'Array with detail and rule',
1432
- data: data$B,
1433
- schema: schema$z,
1434
- uischema: uischema$z,
1432
+ data: data$C,
1433
+ schema: schema$A,
1434
+ uischema: uischema$A,
1435
1435
  },
1436
1436
  ]);
1437
1437
 
1438
1438
  var arraysWithDetailAndRule = /*#__PURE__*/Object.freeze({
1439
1439
  __proto__: null,
1440
- schema: schema$z,
1441
- uischema: uischema$z,
1442
- data: data$B
1440
+ schema: schema$A,
1441
+ uischema: uischema$A,
1442
+ data: data$C
1443
1443
  });
1444
1444
 
1445
- const schema$y = {
1445
+ const schema$z = {
1446
1446
  type: 'object',
1447
1447
  properties: {
1448
1448
  comments: {
@@ -1462,7 +1462,7 @@ const schema$y = {
1462
1462
  },
1463
1463
  },
1464
1464
  };
1465
- const uischema$y = {
1465
+ const uischema$z = {
1466
1466
  type: 'VerticalLayout',
1467
1467
  elements: [
1468
1468
  {
@@ -1487,7 +1487,7 @@ const uischema$y = {
1487
1487
  },
1488
1488
  ],
1489
1489
  };
1490
- const data$A = {
1490
+ const data$B = {
1491
1491
  comments: [
1492
1492
  {
1493
1493
  message1: 'This is an example message',
@@ -1503,20 +1503,20 @@ registerExamples([
1503
1503
  {
1504
1504
  name: 'array-with-custom-element-label',
1505
1505
  label: 'Array with custom element label',
1506
- data: data$A,
1507
- schema: schema$y,
1508
- uischema: uischema$y,
1506
+ data: data$B,
1507
+ schema: schema$z,
1508
+ uischema: uischema$z,
1509
1509
  },
1510
1510
  ]);
1511
1511
 
1512
1512
  var arraysWithCustomElementLabel = /*#__PURE__*/Object.freeze({
1513
1513
  __proto__: null,
1514
- schema: schema$y,
1515
- uischema: uischema$y,
1516
- data: data$A
1514
+ schema: schema$z,
1515
+ uischema: uischema$z,
1516
+ data: data$B
1517
1517
  });
1518
1518
 
1519
- const schema$x = {
1519
+ const schema$y = {
1520
1520
  type: 'object',
1521
1521
  properties: {
1522
1522
  comments: {
@@ -1544,7 +1544,7 @@ const schema$x = {
1544
1544
  foo: { type: 'string' },
1545
1545
  },
1546
1546
  };
1547
- const uischema$x = {
1547
+ const uischema$y = {
1548
1548
  type: 'VerticalLayout',
1549
1549
  elements: [
1550
1550
  {
@@ -1578,7 +1578,7 @@ const uischemaWithSorting = {
1578
1578
  },
1579
1579
  ],
1580
1580
  };
1581
- const data$z = {
1581
+ const data$A = {
1582
1582
  comments: [
1583
1583
  {
1584
1584
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -1605,7 +1605,7 @@ const actions$3 = [
1605
1605
  apply: (props) => {
1606
1606
  return {
1607
1607
  ...props,
1608
- uischema: uischema$x,
1608
+ uischema: uischema$y,
1609
1609
  };
1610
1610
  },
1611
1611
  },
@@ -1614,9 +1614,9 @@ registerExamples([
1614
1614
  {
1615
1615
  name: 'array-with-sorting',
1616
1616
  label: 'Array with sorting',
1617
- data: data$z,
1618
- schema: schema$x,
1619
- uischema: uischema$x,
1617
+ data: data$A,
1618
+ schema: schema$y,
1619
+ uischema: uischema$y,
1620
1620
  config: {
1621
1621
  withSort: uischemaWithSorting,
1622
1622
  },
@@ -1626,10 +1626,262 @@ registerExamples([
1626
1626
 
1627
1627
  var arraysWithSorting = /*#__PURE__*/Object.freeze({
1628
1628
  __proto__: null,
1629
- schema: schema$x,
1630
- uischema: uischema$x,
1629
+ schema: schema$y,
1630
+ uischema: uischema$y,
1631
1631
  uischemaWithSorting: uischemaWithSorting,
1632
- data: data$z
1632
+ data: data$A
1633
+ });
1634
+
1635
+ const data$z = {
1636
+ article: {
1637
+ title: 'title',
1638
+ comments: [
1639
+ {
1640
+ visibility: 'PUBLIC',
1641
+ status: 'NEW',
1642
+ author: {
1643
+ name: 'John',
1644
+ type: 'WRITER',
1645
+ role: 'ROLE_1',
1646
+ },
1647
+ },
1648
+ {
1649
+ visibility: 'PRIVATE',
1650
+ status: 'REVIEWED',
1651
+ author: {
1652
+ name: 'John',
1653
+ type: 'AUTHOR',
1654
+ role: 'ROLE_2',
1655
+ },
1656
+ },
1657
+ ],
1658
+ },
1659
+ };
1660
+ const schema$x = {
1661
+ type: 'object',
1662
+ properties: {
1663
+ article: {
1664
+ type: 'object',
1665
+ properties: {
1666
+ title: {
1667
+ type: 'string',
1668
+ },
1669
+ comments: {
1670
+ type: 'array',
1671
+ items: {
1672
+ type: 'object',
1673
+ properties: {
1674
+ visibility: {
1675
+ type: 'string',
1676
+ enum: ['PUBLIC', 'PRIVATE'],
1677
+ },
1678
+ status: {
1679
+ type: 'string',
1680
+ oneOf: [
1681
+ {
1682
+ const: 'NEW',
1683
+ },
1684
+ {
1685
+ const: 'REVIEWED',
1686
+ title: 'Reviewed comment',
1687
+ },
1688
+ ],
1689
+ },
1690
+ author: {
1691
+ type: 'object',
1692
+ properties: {
1693
+ name: {
1694
+ type: 'string',
1695
+ },
1696
+ type: {
1697
+ type: 'string',
1698
+ enum: ['AUTHOR', 'WRITER'],
1699
+ },
1700
+ role: {
1701
+ type: 'string',
1702
+ oneOf: [
1703
+ {
1704
+ const: 'ROLE_1',
1705
+ },
1706
+ {
1707
+ const: 'ROLE_2',
1708
+ title: 'Second role',
1709
+ },
1710
+ ],
1711
+ },
1712
+ },
1713
+ },
1714
+ },
1715
+ },
1716
+ },
1717
+ },
1718
+ },
1719
+ },
1720
+ };
1721
+ const detail = {
1722
+ type: 'VerticalLayout',
1723
+ elements: [
1724
+ {
1725
+ type: 'Control',
1726
+ scope: '#/properties/visibility',
1727
+ },
1728
+ {
1729
+ type: 'Control',
1730
+ scope: '#/properties/status',
1731
+ },
1732
+ {
1733
+ type: 'Control',
1734
+ scope: '#/properties/author/properties/name',
1735
+ },
1736
+ {
1737
+ type: 'Control',
1738
+ scope: '#/properties/author/properties/type',
1739
+ },
1740
+ {
1741
+ type: 'Control',
1742
+ scope: '#/properties/author/properties/role',
1743
+ },
1744
+ ],
1745
+ };
1746
+ const uischema$x = {
1747
+ type: 'VerticalLayout',
1748
+ elements: [
1749
+ {
1750
+ type: 'Group',
1751
+ label: 'Standard array control with elementLabelProp pointing on an direct enum (expected translated PUBLIC/PRIVATE)',
1752
+ elements: [
1753
+ {
1754
+ type: 'Control',
1755
+ scope: '#/properties/article/properties/comments',
1756
+ options: {
1757
+ elementLabelProp: 'visibility',
1758
+ detail: detail,
1759
+ },
1760
+ },
1761
+ ],
1762
+ },
1763
+ {
1764
+ type: 'Group',
1765
+ label: 'Standard array control with elementLabelProp pointing on an direct oneOf (expected translated NEW/Reviewed comment)',
1766
+ elements: [
1767
+ {
1768
+ type: 'Control',
1769
+ scope: '#/properties/article/properties/comments',
1770
+ options: {
1771
+ elementLabelProp: 'status',
1772
+ detail: detail,
1773
+ },
1774
+ },
1775
+ ],
1776
+ },
1777
+ {
1778
+ type: 'Group',
1779
+ label: 'ListWithDetail with elementLabelProp pointing on an direct enum (expected translated PUBLIC/PRIVATE)',
1780
+ elements: [
1781
+ {
1782
+ type: 'ListWithDetail',
1783
+ scope: '#/properties/article/properties/comments',
1784
+ options: {
1785
+ elementLabelProp: 'visibility',
1786
+ detail: detail,
1787
+ },
1788
+ },
1789
+ ],
1790
+ },
1791
+ {
1792
+ type: 'Group',
1793
+ label: 'ListWithDetail with elementLabelProp pointing on an direct oneOf (expected translated NEW/Reviewed comment)',
1794
+ elements: [
1795
+ {
1796
+ type: 'ListWithDetail',
1797
+ scope: '#/properties/article/properties/comments',
1798
+ options: {
1799
+ elementLabelProp: 'status',
1800
+ detail: detail,
1801
+ },
1802
+ },
1803
+ ],
1804
+ },
1805
+ {
1806
+ type: 'Group',
1807
+ label: 'Standard array control with elementLabelProp pointing on an deep enum (expected translated WRITER/AUTHOR)',
1808
+ elements: [
1809
+ {
1810
+ type: 'Control',
1811
+ scope: '#/properties/article/properties/comments',
1812
+ options: {
1813
+ elementLabelProp: 'author.type',
1814
+ detail: detail,
1815
+ },
1816
+ },
1817
+ ],
1818
+ },
1819
+ {
1820
+ type: 'Group',
1821
+ label: 'Standard array control with elementLabelProp pointing on an deep oneOf (expected translated ROLE_1/Second role)',
1822
+ elements: [
1823
+ {
1824
+ type: 'Control',
1825
+ scope: '#/properties/article/properties/comments',
1826
+ options: {
1827
+ elementLabelProp: 'author.role',
1828
+ detail: detail,
1829
+ },
1830
+ },
1831
+ ],
1832
+ },
1833
+ {
1834
+ type: 'Group',
1835
+ label: 'ListWithDetail with elementLabelProp pointing on an deep enum (expected translated WRITER/AUTHOR)',
1836
+ elements: [
1837
+ {
1838
+ type: 'ListWithDetail',
1839
+ scope: '#/properties/article/properties/comments',
1840
+ options: {
1841
+ elementLabelProp: 'author.type',
1842
+ detail: detail,
1843
+ },
1844
+ },
1845
+ ],
1846
+ },
1847
+ {
1848
+ type: 'Group',
1849
+ label: 'ListWithDetail with elementLabelProp pointing on an deep oneOf (expected translated ROLE_1/Second role)',
1850
+ elements: [
1851
+ {
1852
+ type: 'ListWithDetail',
1853
+ scope: '#/properties/article/properties/comments',
1854
+ options: {
1855
+ elementLabelProp: 'author.role',
1856
+ detail: detail,
1857
+ },
1858
+ },
1859
+ ],
1860
+ },
1861
+ ],
1862
+ };
1863
+ const translate$2 = (key) => {
1864
+ return 'translator.' + key;
1865
+ };
1866
+ registerExamples([
1867
+ {
1868
+ name: 'array-with-translated-custom-element-label',
1869
+ label: 'Array with translated custom element label',
1870
+ data: data$z,
1871
+ schema: schema$x,
1872
+ uischema: uischema$x,
1873
+ i18n: {
1874
+ translate: translate$2,
1875
+ locale: 'en',
1876
+ },
1877
+ },
1878
+ ]);
1879
+
1880
+ var arraysWithTranslatedCustomElementLabel = /*#__PURE__*/Object.freeze({
1881
+ __proto__: null,
1882
+ data: data$z,
1883
+ uischema: uischema$x,
1884
+ translate: translate$2
1633
1885
  });
1634
1886
 
1635
1887
  const schema$w = {
@@ -2508,7 +2760,7 @@ var generateDynamic = /*#__PURE__*/Object.freeze({
2508
2760
 
2509
2761
  const schema$p = undefined;
2510
2762
  const uischema$p = undefined;
2511
- const data$r = data$D;
2763
+ const data$r = data$E;
2512
2764
  registerExamples([
2513
2765
  {
2514
2766
  name: 'generate',
@@ -2528,7 +2780,7 @@ var generate = /*#__PURE__*/Object.freeze({
2528
2780
 
2529
2781
  const schema$o = personCoreSchema;
2530
2782
  const uischema$o = undefined;
2531
- const data$q = data$D;
2783
+ const data$q = data$E;
2532
2784
  registerExamples([
2533
2785
  {
2534
2786
  name: 'generate-ui',
@@ -2546,7 +2798,7 @@ var generateUI = /*#__PURE__*/Object.freeze({
2546
2798
  data: data$q
2547
2799
  });
2548
2800
 
2549
- const schema$n = schema$B;
2801
+ const schema$n = schema$C;
2550
2802
  const uischemaVertical = {
2551
2803
  type: 'VerticalLayout',
2552
2804
  elements: [
@@ -2634,7 +2886,7 @@ const uischemaComplex = {
2634
2886
  },
2635
2887
  ],
2636
2888
  };
2637
- const data$p = data$D;
2889
+ const data$p = data$E;
2638
2890
  registerExamples([
2639
2891
  {
2640
2892
  name: 'layout-vertical',
@@ -6089,9 +6341,9 @@ registerExamples([
6089
6341
  {
6090
6342
  name: 'additional-errors',
6091
6343
  label: 'Additional errors',
6092
- data: data$D,
6093
- schema: schema$B,
6094
- uischema: uischema$B,
6344
+ data: data$E,
6345
+ schema: schema$C,
6346
+ uischema: uischema$C,
6095
6347
  actions,
6096
6348
  },
6097
6349
  ]);
@@ -6195,5 +6447,5 @@ var if_then_else = /*#__PURE__*/Object.freeze({
6195
6447
  data: data
6196
6448
  });
6197
6449
 
6198
- export { additionalErrors$1 as additionalErrors, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysI18n as arrayI18n, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDefaults as arrayWithDefaults, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, arraysWithSorting as arrayWithSorting, 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, 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, stringArray, text };
6450
+ export { additionalErrors$1 as additionalErrors, 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, 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, stringArray, text };
6199
6451
  //# sourceMappingURL=jsonforms-examples.esm.js.map