@jsonforms/examples 3.2.0-alpha.2 → 3.2.0-alpha.4

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.
Files changed (73) hide show
  1. package/lib/examples/arrays-with-defaults.d.ts +107 -0
  2. package/lib/index.d.ts +2 -1
  3. package/lib/jsonforms-examples.cjs.js +234 -126
  4. package/lib/jsonforms-examples.cjs.js.map +1 -1
  5. package/lib/jsonforms-examples.esm.js +235 -128
  6. package/lib/jsonforms-examples.esm.js.map +1 -1
  7. package/package.json +4 -4
  8. package/src/examples/arrays-with-defaults.ts +129 -0
  9. package/src/index.ts +2 -0
  10. package/stats.html +28 -28
  11. package/docs/assets/css/main.css +0 -2660
  12. package/docs/assets/images/icons.png +0 -0
  13. package/docs/assets/images/icons@2x.png +0 -0
  14. package/docs/assets/images/widgets.png +0 -0
  15. package/docs/assets/images/widgets@2x.png +0 -0
  16. package/docs/assets/js/main.js +0 -248
  17. package/docs/assets/js/search.js +0 -1
  18. package/docs/index.html +0 -283
  19. package/docs/interfaces/example.ExampleDescription.html +0 -270
  20. package/docs/interfaces/example.StateProps.html +0 -242
  21. package/docs/modules/example.html +0 -125
  22. package/docs/modules/examples_1884.html +0 -336
  23. package/docs/modules/examples_1948.html +0 -252
  24. package/docs/modules/examples_additional_errors.html +0 -148
  25. package/docs/modules/examples_allOf.html +0 -236
  26. package/docs/modules/examples_anyOf.html +0 -316
  27. package/docs/modules/examples_anyOf_oneOf_allOf_resolve.html +0 -217
  28. package/docs/modules/examples_arrays.html +0 -292
  29. package/docs/modules/examples_arraysI18n.html +0 -370
  30. package/docs/modules/examples_arrays_with_custom_element_label.html +0 -234
  31. package/docs/modules/examples_arrays_with_detail.html +0 -301
  32. package/docs/modules/examples_arrays_with_detail_and_rule.html +0 -309
  33. package/docs/modules/examples_arrays_with_sorting.html +0 -287
  34. package/docs/modules/examples_categorization.html +0 -467
  35. package/docs/modules/examples_categorization_stepper.html +0 -362
  36. package/docs/modules/examples_categorization_stepper_nav_buttons.html +0 -365
  37. package/docs/modules/examples_conditional_schema_compositions.html +0 -200
  38. package/docs/modules/examples_config.html +0 -222
  39. package/docs/modules/examples_control_options.html +0 -472
  40. package/docs/modules/examples_dates.html +0 -320
  41. package/docs/modules/examples_default.html +0 -292
  42. package/docs/modules/examples_enum.html +0 -277
  43. package/docs/modules/examples_enumInArray.html +0 -216
  44. package/docs/modules/examples_enum_multi.html +0 -238
  45. package/docs/modules/examples_generate.html +0 -187
  46. package/docs/modules/examples_generateUI.html +0 -247
  47. package/docs/modules/examples_generate_dynamic.html +0 -134
  48. package/docs/modules/examples_huge.html +0 -134
  49. package/docs/modules/examples_i18n.html +0 -357
  50. package/docs/modules/examples_if_then_else.html +0 -225
  51. package/docs/modules/examples_layout.html +0 -410
  52. package/docs/modules/examples_list_with_detail.html +0 -405
  53. package/docs/modules/examples_list_with_detail_primitives.html +0 -300
  54. package/docs/modules/examples_list_with_detail_registered.html +0 -290
  55. package/docs/modules/examples_nestedArrays.html +0 -145
  56. package/docs/modules/examples_nestedCategorization.html +0 -278
  57. package/docs/modules/examples_numbers.html +0 -224
  58. package/docs/modules/examples_object.html +0 -272
  59. package/docs/modules/examples_onChange.html +0 -276
  60. package/docs/modules/examples_oneOf.html +0 -277
  61. package/docs/modules/examples_oneOfArray.html +0 -276
  62. package/docs/modules/examples_oneOf_recursive.html +0 -271
  63. package/docs/modules/examples_person.html +0 -403
  64. package/docs/modules/examples_radioGroup.html +0 -213
  65. package/docs/modules/examples_readonly.html +0 -227
  66. package/docs/modules/examples_rule.html +0 -246
  67. package/docs/modules/examples_ruleInheritance.html +0 -229
  68. package/docs/modules/examples_scope.html +0 -280
  69. package/docs/modules/examples_stringArray.html +0 -213
  70. package/docs/modules/examples_text.html +0 -233
  71. package/docs/modules/index.html +0 -597
  72. package/docs/modules/register.html +0 -168
  73. package/docs/modules.html +0 -314
@@ -1,4 +1,4 @@
1
- import { ArrayTranslationEnum, NOT_APPLICABLE, updateErrors } from '@jsonforms/core';
1
+ import { ArrayTranslationEnum, NOT_APPLICABLE, convertDateToString, updateErrors } from '@jsonforms/core';
2
2
  import { get } from 'lodash';
3
3
  import get$1 from 'lodash/get';
4
4
 
@@ -12,7 +12,7 @@ const getExamples = () => {
12
12
  return examples;
13
13
  };
14
14
 
15
- const schema$I = {
15
+ const schema$J = {
16
16
  $schema: 'http://json-schema.org/draft-07/schema#',
17
17
  definitions: {
18
18
  address: {
@@ -45,7 +45,7 @@ const schema$I = {
45
45
  },
46
46
  },
47
47
  };
48
- const uischema$I = {
48
+ const uischema$J = {
49
49
  type: 'VerticalLayout',
50
50
  elements: [
51
51
  {
@@ -59,7 +59,7 @@ const uischema$I = {
59
59
  },
60
60
  ],
61
61
  };
62
- const data$K = {
62
+ const data$L = {
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$K,
74
- schema: schema$I,
75
- uischema: uischema$I,
73
+ data: data$L,
74
+ schema: schema$J,
75
+ uischema: uischema$J,
76
76
  },
77
77
  ]);
78
78
 
79
79
  var allOf = /*#__PURE__*/Object.freeze({
80
80
  __proto__: null,
81
- schema: schema$I,
82
- uischema: uischema$I
81
+ schema: schema$J,
82
+ uischema: uischema$J
83
83
  });
84
84
 
85
- const schema$H = {
85
+ const schema$I = {
86
86
  $schema: 'http://json-schema.org/draft-07/schema#',
87
87
  definitions: {
88
88
  address: {
@@ -136,7 +136,7 @@ const schema$H = {
136
136
  },
137
137
  },
138
138
  };
139
- const uischema$H = {
139
+ const uischema$I = {
140
140
  type: 'VerticalLayout',
141
141
  elements: [
142
142
  {
@@ -155,7 +155,7 @@ const uischema$H = {
155
155
  },
156
156
  ],
157
157
  };
158
- const data$J = {
158
+ const data$K = {
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$J,
178
- schema: schema$H,
179
- uischema: uischema$H,
177
+ data: data$K,
178
+ schema: schema$I,
179
+ uischema: uischema$I,
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$H,
193
- uischema: uischema$H
192
+ schema: schema$I,
193
+ uischema: uischema$I
194
194
  });
195
195
 
196
- const schema$G = {
196
+ const schema$H = {
197
197
  $schema: 'http://json-schema.org/draft-07/schema#',
198
198
  definitions: {
199
199
  address: {
@@ -228,7 +228,7 @@ const schema$G = {
228
228
  },
229
229
  required: ['name'],
230
230
  };
231
- const uischema$G = {
231
+ const uischema$H = {
232
232
  type: 'VerticalLayout',
233
233
  elements: [
234
234
  {
@@ -241,7 +241,7 @@ const uischema$G = {
241
241
  },
242
242
  ],
243
243
  };
244
- const data$I = {
244
+ const data$J = {
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$I,
467
- schema: schema$G,
468
- uischema: uischema$G,
466
+ data: data$J,
467
+ schema: schema$H,
468
+ uischema: uischema$H,
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$G,
510
- uischema: uischema$G
509
+ schema: schema$H,
510
+ uischema: uischema$H
511
511
  });
512
512
 
513
- const schema$F = {
513
+ const schema$G = {
514
514
  $schema: 'http://json-schema.org/draft-07/schema#',
515
515
  definitions: {
516
516
  address: {
@@ -545,7 +545,7 @@ const schema$F = {
545
545
  },
546
546
  },
547
547
  };
548
- const uischema$F = {
548
+ const uischema$G = {
549
549
  type: 'VerticalLayout',
550
550
  elements: [
551
551
  {
@@ -554,7 +554,7 @@ const uischema$F = {
554
554
  },
555
555
  ],
556
556
  };
557
- const data$H = {
557
+ const data$I = {
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$H,
576
- schema: schema$F,
577
- uischema: uischema$F,
575
+ data: data$I,
576
+ schema: schema$G,
577
+ uischema: uischema$G,
578
578
  },
579
579
  ]);
580
580
 
581
581
  var oneOfArray = /*#__PURE__*/Object.freeze({
582
582
  __proto__: null,
583
- schema: schema$F,
584
- uischema: uischema$F
583
+ schema: schema$G,
584
+ uischema: uischema$G
585
585
  });
586
586
 
587
- const schema$E = {
587
+ const schema$F = {
588
588
  $defs: {
589
589
  Base: {
590
590
  type: 'object',
@@ -615,7 +615,7 @@ const schema$E = {
615
615
  },
616
616
  },
617
617
  };
618
- const uischema$E = {
618
+ const uischema$F = {
619
619
  type: 'VerticalLayout',
620
620
  elements: [
621
621
  {
@@ -640,24 +640,24 @@ const uischema$E = {
640
640
  },
641
641
  ],
642
642
  };
643
- const data$G = {};
643
+ const data$H = {};
644
644
  registerExamples([
645
645
  {
646
646
  name: 'anyOf-oneOf-allOf-resolve',
647
647
  label: 'AnyOf OneOf AllOf Resolve',
648
- data: data$G,
649
- schema: schema$E,
650
- uischema: uischema$E,
648
+ data: data$H,
649
+ schema: schema$F,
650
+ uischema: uischema$F,
651
651
  },
652
652
  ]);
653
653
 
654
654
  var anyOfOneOfAllOfResolve = /*#__PURE__*/Object.freeze({
655
655
  __proto__: null,
656
- schema: schema$E,
657
- uischema: uischema$E
656
+ schema: schema$F,
657
+ uischema: uischema$F
658
658
  });
659
659
 
660
- const schema$D = {
660
+ const schema$E = {
661
661
  type: 'object',
662
662
  properties: {
663
663
  comments: {
@@ -687,7 +687,7 @@ const schema$D = {
687
687
  foo: { type: 'string' },
688
688
  },
689
689
  };
690
- const uischema$D = {
690
+ const uischema$E = {
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$F = {
722
+ const data$G = {
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$D,
750
+ uischema: uischema$E,
751
751
  };
752
752
  },
753
753
  },
@@ -756,9 +756,9 @@ registerExamples([
756
756
  {
757
757
  name: 'array',
758
758
  label: 'Array',
759
- data: data$F,
760
- schema: schema$D,
761
- uischema: uischema$D,
759
+ data: data$G,
760
+ schema: schema$E,
761
+ uischema: uischema$E,
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$D,
772
- uischema: uischema$D,
771
+ schema: schema$E,
772
+ uischema: uischema$E,
773
773
  uischemaWithSorting: uischemaWithSorting$1,
774
- data: data$F
774
+ data: data$G
775
775
  });
776
776
 
777
- const schema$C = {
777
+ const schema$D = {
778
778
  type: 'object',
779
779
  properties: {
780
780
  comments: {
@@ -799,7 +799,7 @@ const schema$C = {
799
799
  },
800
800
  },
801
801
  };
802
- const uischema$C = {
802
+ const uischema$D = {
803
803
  type: 'VerticalLayout',
804
804
  elements: [
805
805
  {
@@ -811,7 +811,7 @@ const uischema$C = {
811
811
  },
812
812
  ],
813
813
  };
814
- const data$E = {
814
+ const data$F = {
815
815
  comments: [
816
816
  {
817
817
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -839,9 +839,9 @@ registerExamples([
839
839
  {
840
840
  name: 'array-i18n',
841
841
  label: 'Array (i18n)',
842
- data: data$E,
843
- schema: schema$C,
844
- uischema: uischema$C,
842
+ data: data$F,
843
+ schema: schema$D,
844
+ uischema: uischema$D,
845
845
  i18n: {
846
846
  translate: translate$2,
847
847
  locale: 'en',
@@ -851,14 +851,14 @@ registerExamples([
851
851
 
852
852
  var arraysI18n = /*#__PURE__*/Object.freeze({
853
853
  __proto__: null,
854
- schema: schema$C,
855
- uischema: uischema$C,
856
- data: data$E,
854
+ schema: schema$D,
855
+ uischema: uischema$D,
856
+ data: data$F,
857
857
  translations: translations$2,
858
858
  translate: translate$2
859
859
  });
860
860
 
861
- const schema$B = {
861
+ const schema$C = {
862
862
  definitions: {
863
863
  choicesContainer: {
864
864
  type: 'object',
@@ -883,7 +883,7 @@ const schema$B = {
883
883
  },
884
884
  },
885
885
  };
886
- const uischema$B = {
886
+ const uischema$C = {
887
887
  type: 'HorizontalLayout',
888
888
  elements: [
889
889
  {
@@ -896,7 +896,7 @@ const uischema$B = {
896
896
  },
897
897
  ],
898
898
  };
899
- const data$D = {
899
+ const data$E = {
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$D,
952
- schema: schema$B,
953
- uischema: uischema$B,
951
+ data: data$E,
952
+ schema: schema$C,
953
+ uischema: uischema$C,
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$B
960
+ uischema: uischema$C
961
961
  });
962
962
 
963
- const schema$A = {
963
+ const schema$B = {
964
964
  type: 'object',
965
965
  properties: {
966
966
  cat1: {
@@ -998,7 +998,7 @@ const schema$A = {
998
998
  },
999
999
  },
1000
1000
  };
1001
- const uischema$A = {
1001
+ const uischema$B = {
1002
1002
  type: 'Categorization',
1003
1003
  elements: [
1004
1004
  {
@@ -1096,22 +1096,22 @@ const uischema$A = {
1096
1096
  },
1097
1097
  ],
1098
1098
  };
1099
- const data$C = {};
1099
+ const data$D = {};
1100
1100
  registerExamples([
1101
1101
  {
1102
1102
  name: 'nestedCategorization',
1103
1103
  label: 'Nested Categorization',
1104
- data: data$C,
1105
- schema: schema$A,
1106
- uischema: uischema$A,
1104
+ data: data$D,
1105
+ schema: schema$B,
1106
+ uischema: uischema$B,
1107
1107
  },
1108
1108
  ]);
1109
1109
 
1110
1110
  var nestedCategorization = /*#__PURE__*/Object.freeze({
1111
1111
  __proto__: null,
1112
- schema: schema$A,
1113
- uischema: uischema$A,
1114
- data: data$C
1112
+ schema: schema$B,
1113
+ uischema: uischema$B,
1114
+ data: data$D
1115
1115
  });
1116
1116
 
1117
1117
  const personCoreSchema = {
@@ -1136,7 +1136,7 @@ const personCoreSchema = {
1136
1136
  },
1137
1137
  },
1138
1138
  };
1139
- const schema$z = {
1139
+ const schema$A = {
1140
1140
  type: 'object',
1141
1141
  properties: {
1142
1142
  ...personCoreSchema.properties,
@@ -1176,7 +1176,7 @@ const schema$z = {
1176
1176
  },
1177
1177
  required: ['occupation', 'nationality'],
1178
1178
  };
1179
- const uischema$z = {
1179
+ const uischema$A = {
1180
1180
  type: 'VerticalLayout',
1181
1181
  elements: [
1182
1182
  {
@@ -1229,7 +1229,7 @@ const uischema$z = {
1229
1229
  },
1230
1230
  ],
1231
1231
  };
1232
- const data$B = {
1232
+ const data$C = {
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$B,
1246
- schema: schema$z,
1247
- uischema: uischema$z,
1245
+ data: data$C,
1246
+ schema: schema$A,
1247
+ uischema: uischema$A,
1248
1248
  },
1249
1249
  ]);
1250
1250
 
1251
1251
  var person = /*#__PURE__*/Object.freeze({
1252
1252
  __proto__: null,
1253
1253
  personCoreSchema: personCoreSchema,
1254
- schema: schema$z,
1255
- uischema: uischema$z,
1256
- data: data$B
1254
+ schema: schema$A,
1255
+ uischema: uischema$A,
1256
+ data: data$C
1257
1257
  });
1258
1258
 
1259
- const schema$y = {
1259
+ const schema$z = {
1260
1260
  type: 'object',
1261
1261
  properties: {
1262
1262
  ...personCoreSchema.properties,
@@ -1282,7 +1282,7 @@ const schema$y = {
1282
1282
  },
1283
1283
  required: ['occupation', 'nationality'],
1284
1284
  };
1285
- const uischema$y = {
1285
+ const uischema$z = {
1286
1286
  type: 'VerticalLayout',
1287
1287
  elements: [
1288
1288
  {
@@ -1308,7 +1308,7 @@ const uischema$y = {
1308
1308
  },
1309
1309
  ],
1310
1310
  };
1311
- const data$A = {
1311
+ const data$B = {
1312
1312
  comments: [
1313
1313
  {
1314
1314
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -1324,20 +1324,20 @@ registerExamples([
1324
1324
  {
1325
1325
  name: 'array-with-detail',
1326
1326
  label: 'Array with detail',
1327
- data: data$A,
1328
- schema: schema$y,
1329
- uischema: uischema$y,
1327
+ data: data$B,
1328
+ schema: schema$z,
1329
+ uischema: uischema$z,
1330
1330
  },
1331
1331
  ]);
1332
1332
 
1333
1333
  var arraysWithDetail = /*#__PURE__*/Object.freeze({
1334
1334
  __proto__: null,
1335
- schema: schema$y,
1336
- uischema: uischema$y,
1337
- data: data$A
1335
+ schema: schema$z,
1336
+ uischema: uischema$z,
1337
+ data: data$B
1338
1338
  });
1339
1339
 
1340
- const schema$x = {
1340
+ const schema$y = {
1341
1341
  type: 'object',
1342
1342
  properties: {
1343
1343
  ...personCoreSchema.properties,
@@ -1363,7 +1363,7 @@ const schema$x = {
1363
1363
  },
1364
1364
  required: ['occupation', 'nationality'],
1365
1365
  };
1366
- const uischema$x = {
1366
+ const uischema$y = {
1367
1367
  type: 'VerticalLayout',
1368
1368
  elements: [
1369
1369
  {
@@ -1411,7 +1411,7 @@ const uischema$x = {
1411
1411
  },
1412
1412
  ],
1413
1413
  };
1414
- const data$z = {
1414
+ const data$A = {
1415
1415
  occupation: 'developer',
1416
1416
  comments: [
1417
1417
  {
@@ -1428,20 +1428,20 @@ registerExamples([
1428
1428
  {
1429
1429
  name: 'array-with-detail-and-rule',
1430
1430
  label: 'Array with detail and rule',
1431
- data: data$z,
1432
- schema: schema$x,
1433
- uischema: uischema$x,
1431
+ data: data$A,
1432
+ schema: schema$y,
1433
+ uischema: uischema$y,
1434
1434
  },
1435
1435
  ]);
1436
1436
 
1437
1437
  var arraysWithDetailAndRule = /*#__PURE__*/Object.freeze({
1438
1438
  __proto__: null,
1439
- schema: schema$x,
1440
- uischema: uischema$x,
1441
- data: data$z
1439
+ schema: schema$y,
1440
+ uischema: uischema$y,
1441
+ data: data$A
1442
1442
  });
1443
1443
 
1444
- const schema$w = {
1444
+ const schema$x = {
1445
1445
  type: 'object',
1446
1446
  properties: {
1447
1447
  comments: {
@@ -1461,7 +1461,7 @@ const schema$w = {
1461
1461
  },
1462
1462
  },
1463
1463
  };
1464
- const uischema$w = {
1464
+ const uischema$x = {
1465
1465
  type: 'VerticalLayout',
1466
1466
  elements: [
1467
1467
  {
@@ -1486,7 +1486,7 @@ const uischema$w = {
1486
1486
  },
1487
1487
  ],
1488
1488
  };
1489
- const data$y = {
1489
+ const data$z = {
1490
1490
  comments: [
1491
1491
  {
1492
1492
  message1: 'This is an example message',
@@ -1502,20 +1502,20 @@ registerExamples([
1502
1502
  {
1503
1503
  name: 'array-with-custom-element-label',
1504
1504
  label: 'Array with custom element label',
1505
- data: data$y,
1506
- schema: schema$w,
1507
- uischema: uischema$w,
1505
+ data: data$z,
1506
+ schema: schema$x,
1507
+ uischema: uischema$x,
1508
1508
  },
1509
1509
  ]);
1510
1510
 
1511
1511
  var arraysWithCustomElementLabel = /*#__PURE__*/Object.freeze({
1512
1512
  __proto__: null,
1513
- schema: schema$w,
1514
- uischema: uischema$w,
1515
- data: data$y
1513
+ schema: schema$x,
1514
+ uischema: uischema$x,
1515
+ data: data$z
1516
1516
  });
1517
1517
 
1518
- const schema$v = {
1518
+ const schema$w = {
1519
1519
  type: 'object',
1520
1520
  properties: {
1521
1521
  comments: {
@@ -1543,7 +1543,7 @@ const schema$v = {
1543
1543
  foo: { type: 'string' },
1544
1544
  },
1545
1545
  };
1546
- const uischema$v = {
1546
+ const uischema$w = {
1547
1547
  type: 'VerticalLayout',
1548
1548
  elements: [
1549
1549
  {
@@ -1577,7 +1577,7 @@ const uischemaWithSorting = {
1577
1577
  },
1578
1578
  ],
1579
1579
  };
1580
- const data$x = {
1580
+ const data$y = {
1581
1581
  comments: [
1582
1582
  {
1583
1583
  date: new Date(2001, 8, 11).toISOString().substr(0, 10),
@@ -1604,7 +1604,7 @@ const actions$3 = [
1604
1604
  apply: (props) => {
1605
1605
  return {
1606
1606
  ...props,
1607
- uischema: uischema$v,
1607
+ uischema: uischema$w,
1608
1608
  };
1609
1609
  },
1610
1610
  },
@@ -1613,9 +1613,9 @@ registerExamples([
1613
1613
  {
1614
1614
  name: 'array-with-sorting',
1615
1615
  label: 'Array with sorting',
1616
- data: data$x,
1617
- schema: schema$v,
1618
- uischema: uischema$v,
1616
+ data: data$y,
1617
+ schema: schema$w,
1618
+ uischema: uischema$w,
1619
1619
  config: {
1620
1620
  withSort: uischemaWithSorting,
1621
1621
  },
@@ -1624,10 +1624,117 @@ registerExamples([
1624
1624
  ]);
1625
1625
 
1626
1626
  var arraysWithSorting = /*#__PURE__*/Object.freeze({
1627
+ __proto__: null,
1628
+ schema: schema$w,
1629
+ uischema: uischema$w,
1630
+ uischemaWithSorting: uischemaWithSorting,
1631
+ data: data$y
1632
+ });
1633
+
1634
+ const schema$v = {
1635
+ definitions: {
1636
+ itemsType: {
1637
+ type: 'object',
1638
+ properties: {
1639
+ name: {
1640
+ type: 'string',
1641
+ default: 'foo1',
1642
+ },
1643
+ name_noDefault: {
1644
+ type: 'string',
1645
+ },
1646
+ description: {
1647
+ type: 'string',
1648
+ default: 'bar',
1649
+ },
1650
+ done: {
1651
+ type: 'boolean',
1652
+ default: false,
1653
+ },
1654
+ rating: {
1655
+ type: 'integer',
1656
+ default: 5,
1657
+ },
1658
+ cost: {
1659
+ type: 'number',
1660
+ default: 5.5,
1661
+ },
1662
+ date: {
1663
+ type: 'string',
1664
+ format: 'date',
1665
+ default: convertDateToString(new Date(), 'date'),
1666
+ },
1667
+ },
1668
+ },
1669
+ stringDef: { type: 'string', default: 'excellent' },
1670
+ numberDef: { type: 'number', default: 10 },
1671
+ intDef: { type: 'integer', default: 11 },
1672
+ boolDef: { type: 'boolean', default: true },
1673
+ arrayDef: { type: 'array', default: ['a', 'b', 'c'] },
1674
+ },
1675
+ type: 'object',
1676
+ properties: {
1677
+ objectArray: {
1678
+ type: 'array',
1679
+ items: {
1680
+ $ref: '#/definitions/itemsType',
1681
+ },
1682
+ },
1683
+ stringArray: {
1684
+ type: 'array',
1685
+ items: {
1686
+ type: 'string',
1687
+ default: '123',
1688
+ },
1689
+ },
1690
+ objectArrayWithPropertyRefs: {
1691
+ type: 'array',
1692
+ items: {
1693
+ type: 'object',
1694
+ properties: {
1695
+ string1: { $ref: '#/definitions/stringDef' },
1696
+ string2: { type: 'string' },
1697
+ number: { $ref: '#/definitions/numberDef' },
1698
+ int: { $ref: '#/definitions/intDef' },
1699
+ bool: { $ref: '#/definitions/boolDef' },
1700
+ array: { $ref: '#/definitions/arrayDef' },
1701
+ },
1702
+ },
1703
+ },
1704
+ },
1705
+ };
1706
+ const uischema$v = {
1707
+ type: 'VerticalLayout',
1708
+ elements: [
1709
+ {
1710
+ type: 'Control',
1711
+ scope: '#/properties/objectArray',
1712
+ },
1713
+ {
1714
+ type: 'Control',
1715
+ scope: '#/properties/stringArray',
1716
+ },
1717
+ {
1718
+ type: 'Control',
1719
+ scope: '#/properties/objectArrayWithPropertyRefs',
1720
+ },
1721
+ ],
1722
+ };
1723
+ const data$x = {};
1724
+ registerExamples([
1725
+ {
1726
+ name: 'array-with-defaults',
1727
+ label: 'Array with defaults',
1728
+ data: data$x,
1729
+ schema: schema$v,
1730
+ uischema: uischema$v,
1731
+ },
1732
+ ]);
1733
+
1734
+ var arraysWithDefaults = /*#__PURE__*/Object.freeze({
1627
1735
  __proto__: null,
1628
1736
  schema: schema$v,
1629
1737
  uischema: uischema$v,
1630
- uischemaWithSorting: uischemaWithSorting,
1631
1738
  data: data$x
1632
1739
  });
1633
1740
 
@@ -2399,7 +2506,7 @@ var generateDynamic = /*#__PURE__*/Object.freeze({
2399
2506
 
2400
2507
  const schema$o = undefined;
2401
2508
  const uischema$o = undefined;
2402
- const data$q = data$B;
2509
+ const data$q = data$C;
2403
2510
  registerExamples([
2404
2511
  {
2405
2512
  name: 'generate',
@@ -2419,7 +2526,7 @@ var generate = /*#__PURE__*/Object.freeze({
2419
2526
 
2420
2527
  const schema$n = personCoreSchema;
2421
2528
  const uischema$n = undefined;
2422
- const data$p = data$B;
2529
+ const data$p = data$C;
2423
2530
  registerExamples([
2424
2531
  {
2425
2532
  name: 'generate-ui',
@@ -2437,7 +2544,7 @@ var generateUI = /*#__PURE__*/Object.freeze({
2437
2544
  data: data$p
2438
2545
  });
2439
2546
 
2440
- const schema$m = schema$z;
2547
+ const schema$m = schema$A;
2441
2548
  const uischemaVertical = {
2442
2549
  type: 'VerticalLayout',
2443
2550
  elements: [
@@ -2525,7 +2632,7 @@ const uischemaComplex = {
2525
2632
  },
2526
2633
  ],
2527
2634
  };
2528
- const data$o = data$B;
2635
+ const data$o = data$C;
2529
2636
  registerExamples([
2530
2637
  {
2531
2638
  name: 'layout-vertical',
@@ -5980,9 +6087,9 @@ registerExamples([
5980
6087
  {
5981
6088
  name: 'additional-errors',
5982
6089
  label: 'Additional errors',
5983
- data: data$B,
5984
- schema: schema$z,
5985
- uischema: uischema$z,
6090
+ data: data$C,
6091
+ schema: schema$A,
6092
+ uischema: uischema$A,
5986
6093
  actions,
5987
6094
  },
5988
6095
  ]);
@@ -6021,5 +6128,5 @@ var if_then_else = /*#__PURE__*/Object.freeze({
6021
6128
  data: data
6022
6129
  });
6023
6130
 
6024
- export { additionalErrors$1 as additionalErrors, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysI18n as arrayI18n, arraysWithCustomElementLabel as arrayWithCustomChildLabel, 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, 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 };
6131
+ 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, 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 };
6025
6132
  //# sourceMappingURL=jsonforms-examples.esm.js.map