@jsonforms/examples 3.0.0 → 3.1.0-alpha.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.
- package/README.md +1 -1
- package/docs/assets/js/search.json +1 -1
- package/docs/globals.html +134 -96
- package/docs/index.html +1 -1
- package/lib/examples/arrays-with-sorting.d.ts +62 -0
- package/lib/examples/arrays.d.ts +9 -2
- package/lib/examples/control-options.d.ts +1 -0
- package/lib/index.d.ts +2 -1
- package/lib/jsonforms-examples.cjs.js +219 -108
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +224 -108
- package/lib/jsonforms-examples.esm.js.map +1 -1
- package/package.json +5 -5
- package/src/examples/arrays-with-sorting.ts +135 -0
- package/src/examples/arrays.ts +5 -2
- package/src/examples/control-options.ts +2 -1
- package/src/index.ts +2 -0
- package/stats.html +1381 -616
|
@@ -7,7 +7,7 @@ const registerExamples = (examples) => {
|
|
|
7
7
|
};
|
|
8
8
|
const getExamples = () => Object.keys(knownExamples).map(key => knownExamples[key]);
|
|
9
9
|
|
|
10
|
-
const schema$
|
|
10
|
+
const schema$S = {
|
|
11
11
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
12
12
|
definitions: {
|
|
13
13
|
address: {
|
|
@@ -40,7 +40,7 @@ const schema$R = {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const uischema$
|
|
43
|
+
const uischema$T = {
|
|
44
44
|
type: 'VerticalLayout',
|
|
45
45
|
elements: [
|
|
46
46
|
{
|
|
@@ -54,7 +54,7 @@ const uischema$S = {
|
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
};
|
|
57
|
-
const data$
|
|
57
|
+
const data$V = {
|
|
58
58
|
billing_address: {
|
|
59
59
|
street_address: '1600 Pennsylvania Avenue NW',
|
|
60
60
|
city: 'Washington',
|
|
@@ -65,19 +65,19 @@ registerExamples([
|
|
|
65
65
|
{
|
|
66
66
|
name: 'allOf',
|
|
67
67
|
label: 'allOf',
|
|
68
|
-
data: data$
|
|
69
|
-
schema: schema$
|
|
70
|
-
uischema: uischema$
|
|
68
|
+
data: data$V,
|
|
69
|
+
schema: schema$S,
|
|
70
|
+
uischema: uischema$T
|
|
71
71
|
}
|
|
72
72
|
]);
|
|
73
73
|
|
|
74
74
|
var allOf = /*#__PURE__*/Object.freeze({
|
|
75
75
|
__proto__: null,
|
|
76
|
-
schema: schema$
|
|
77
|
-
uischema: uischema$
|
|
76
|
+
schema: schema$S,
|
|
77
|
+
uischema: uischema$T
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
const schema$
|
|
80
|
+
const schema$R = {
|
|
81
81
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
82
82
|
definitions: {
|
|
83
83
|
address: {
|
|
@@ -119,7 +119,7 @@ const schema$Q = {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
-
const uischema$
|
|
122
|
+
const uischema$S = {
|
|
123
123
|
type: 'VerticalLayout',
|
|
124
124
|
elements: [
|
|
125
125
|
{
|
|
@@ -132,7 +132,7 @@ const uischema$R = {
|
|
|
132
132
|
}
|
|
133
133
|
]
|
|
134
134
|
};
|
|
135
|
-
const data$
|
|
135
|
+
const data$U = {
|
|
136
136
|
addressOrUser: {
|
|
137
137
|
street_address: '1600 Pennsylvania Avenue NW',
|
|
138
138
|
city: 'Washington',
|
|
@@ -151,9 +151,9 @@ registerExamples([
|
|
|
151
151
|
{
|
|
152
152
|
name: 'anyOf',
|
|
153
153
|
label: 'anyOf',
|
|
154
|
-
data: data$
|
|
155
|
-
schema: schema$
|
|
156
|
-
uischema: uischema$
|
|
154
|
+
data: data$U,
|
|
155
|
+
schema: schema$R,
|
|
156
|
+
uischema: uischema$S
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
name: 'anyOf_simple',
|
|
@@ -166,11 +166,11 @@ registerExamples([
|
|
|
166
166
|
|
|
167
167
|
var anyOf = /*#__PURE__*/Object.freeze({
|
|
168
168
|
__proto__: null,
|
|
169
|
-
schema: schema$
|
|
170
|
-
uischema: uischema$
|
|
169
|
+
schema: schema$R,
|
|
170
|
+
uischema: uischema$S
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
const schema$
|
|
173
|
+
const schema$Q = {
|
|
174
174
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
175
175
|
definitions: {
|
|
176
176
|
address: {
|
|
@@ -202,7 +202,7 @@ const schema$P = {
|
|
|
202
202
|
},
|
|
203
203
|
required: ['name']
|
|
204
204
|
};
|
|
205
|
-
const uischema$
|
|
205
|
+
const uischema$R = {
|
|
206
206
|
type: 'VerticalLayout',
|
|
207
207
|
elements: [
|
|
208
208
|
{
|
|
@@ -215,7 +215,7 @@ const uischema$Q = {
|
|
|
215
215
|
}
|
|
216
216
|
]
|
|
217
217
|
};
|
|
218
|
-
const data$
|
|
218
|
+
const data$T = {
|
|
219
219
|
name: 'test',
|
|
220
220
|
addressOrUser: {
|
|
221
221
|
name: 'User',
|
|
@@ -437,9 +437,9 @@ registerExamples([
|
|
|
437
437
|
{
|
|
438
438
|
name: 'oneOf',
|
|
439
439
|
label: 'oneOf',
|
|
440
|
-
data: data$
|
|
441
|
-
schema: schema$
|
|
442
|
-
uischema: uischema$
|
|
440
|
+
data: data$T,
|
|
441
|
+
schema: schema$Q,
|
|
442
|
+
uischema: uischema$R
|
|
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$
|
|
484
|
-
uischema: uischema$
|
|
483
|
+
schema: schema$Q,
|
|
484
|
+
uischema: uischema$R
|
|
485
485
|
});
|
|
486
486
|
|
|
487
|
-
const schema$
|
|
487
|
+
const schema$P = {
|
|
488
488
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
489
489
|
definitions: {
|
|
490
490
|
address: {
|
|
@@ -519,7 +519,7 @@ const schema$O = {
|
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
-
const uischema$
|
|
522
|
+
const uischema$Q = {
|
|
523
523
|
type: 'VerticalLayout',
|
|
524
524
|
elements: [
|
|
525
525
|
{
|
|
@@ -528,7 +528,7 @@ const uischema$P = {
|
|
|
528
528
|
}
|
|
529
529
|
]
|
|
530
530
|
};
|
|
531
|
-
const data$
|
|
531
|
+
const data$S = {
|
|
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$
|
|
550
|
-
schema: schema$
|
|
551
|
-
uischema: uischema$
|
|
549
|
+
data: data$S,
|
|
550
|
+
schema: schema$P,
|
|
551
|
+
uischema: uischema$Q
|
|
552
552
|
}
|
|
553
553
|
]);
|
|
554
554
|
|
|
555
555
|
var oneOfArray = /*#__PURE__*/Object.freeze({
|
|
556
556
|
__proto__: null,
|
|
557
|
-
schema: schema$
|
|
558
|
-
uischema: uischema$
|
|
557
|
+
schema: schema$P,
|
|
558
|
+
uischema: uischema$Q
|
|
559
559
|
});
|
|
560
560
|
|
|
561
|
-
const schema$
|
|
561
|
+
const schema$O = {
|
|
562
562
|
$defs: {
|
|
563
563
|
Base: {
|
|
564
564
|
type: 'object',
|
|
@@ -589,7 +589,7 @@ const schema$N = {
|
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
};
|
|
592
|
-
const uischema$
|
|
592
|
+
const uischema$P = {
|
|
593
593
|
type: 'VerticalLayout',
|
|
594
594
|
elements: [
|
|
595
595
|
{
|
|
@@ -614,24 +614,24 @@ const uischema$O = {
|
|
|
614
614
|
}
|
|
615
615
|
]
|
|
616
616
|
};
|
|
617
|
-
const data$
|
|
617
|
+
const data$R = {};
|
|
618
618
|
registerExamples([
|
|
619
619
|
{
|
|
620
620
|
name: 'anyOf-oneOf-allOf-resolve',
|
|
621
621
|
label: 'AnyOf OneOf AllOf Resolve',
|
|
622
|
-
data: data$
|
|
623
|
-
schema: schema$
|
|
624
|
-
uischema: uischema$
|
|
622
|
+
data: data$R,
|
|
623
|
+
schema: schema$O,
|
|
624
|
+
uischema: uischema$P
|
|
625
625
|
}
|
|
626
626
|
]);
|
|
627
627
|
|
|
628
628
|
var anyOfOneOfAllOfResolve = /*#__PURE__*/Object.freeze({
|
|
629
629
|
__proto__: null,
|
|
630
|
-
schema: schema$
|
|
631
|
-
uischema: uischema$
|
|
630
|
+
schema: schema$O,
|
|
631
|
+
uischema: uischema$P
|
|
632
632
|
});
|
|
633
633
|
|
|
634
|
-
const schema$
|
|
634
|
+
const schema$N = {
|
|
635
635
|
type: 'object',
|
|
636
636
|
properties: {
|
|
637
637
|
comments: {
|
|
@@ -657,7 +657,7 @@ const schema$M = {
|
|
|
657
657
|
foo: { type: 'string' }
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
|
-
const uischema$
|
|
660
|
+
const uischema$O = {
|
|
661
661
|
type: 'VerticalLayout',
|
|
662
662
|
elements: [
|
|
663
663
|
{
|
|
@@ -666,11 +666,14 @@ const uischema$N = {
|
|
|
666
666
|
},
|
|
667
667
|
{
|
|
668
668
|
type: 'Control',
|
|
669
|
-
scope: '#/properties/comments'
|
|
669
|
+
scope: '#/properties/comments',
|
|
670
|
+
options: {
|
|
671
|
+
showSortButtons: false
|
|
672
|
+
}
|
|
670
673
|
}
|
|
671
674
|
]
|
|
672
675
|
};
|
|
673
|
-
const uischemaWithSorting = {
|
|
676
|
+
const uischemaWithSorting$1 = {
|
|
674
677
|
type: 'VerticalLayout',
|
|
675
678
|
elements: [
|
|
676
679
|
{
|
|
@@ -681,12 +684,12 @@ const uischemaWithSorting = {
|
|
|
681
684
|
type: 'Control',
|
|
682
685
|
scope: '#/properties/comments',
|
|
683
686
|
options: {
|
|
684
|
-
showSortButtons:
|
|
687
|
+
showSortButtons: false
|
|
685
688
|
}
|
|
686
689
|
}
|
|
687
690
|
]
|
|
688
691
|
};
|
|
689
|
-
const data$
|
|
692
|
+
const data$Q = {
|
|
690
693
|
comments: [
|
|
691
694
|
{
|
|
692
695
|
date: new Date(2001, 8, 11).toISOString().substr(0, 10),
|
|
@@ -698,13 +701,13 @@ const data$P = {
|
|
|
698
701
|
}
|
|
699
702
|
]
|
|
700
703
|
};
|
|
701
|
-
const actions$
|
|
704
|
+
const actions$6 = [
|
|
702
705
|
{
|
|
703
706
|
'label': 'Enable Sorting',
|
|
704
707
|
'apply': (props) => {
|
|
705
708
|
return {
|
|
706
709
|
...props,
|
|
707
|
-
uischema: uischemaWithSorting
|
|
710
|
+
uischema: uischemaWithSorting$1
|
|
708
711
|
};
|
|
709
712
|
}
|
|
710
713
|
},
|
|
@@ -713,7 +716,7 @@ const actions$5 = [
|
|
|
713
716
|
'apply': (props) => {
|
|
714
717
|
return {
|
|
715
718
|
...props,
|
|
716
|
-
uischema: uischema$
|
|
719
|
+
uischema: uischema$O
|
|
717
720
|
};
|
|
718
721
|
}
|
|
719
722
|
},
|
|
@@ -722,25 +725,25 @@ registerExamples([
|
|
|
722
725
|
{
|
|
723
726
|
name: 'array',
|
|
724
727
|
label: 'Array',
|
|
725
|
-
data: data$
|
|
726
|
-
schema: schema$
|
|
727
|
-
uischema: uischema$
|
|
728
|
+
data: data$Q,
|
|
729
|
+
schema: schema$N,
|
|
730
|
+
uischema: uischema$O,
|
|
728
731
|
config: {
|
|
729
|
-
withSort: uischemaWithSorting
|
|
732
|
+
withSort: uischemaWithSorting$1
|
|
730
733
|
},
|
|
731
|
-
actions: actions$
|
|
734
|
+
actions: actions$6
|
|
732
735
|
}
|
|
733
736
|
]);
|
|
734
737
|
|
|
735
738
|
var arrays = /*#__PURE__*/Object.freeze({
|
|
736
739
|
__proto__: null,
|
|
737
|
-
schema: schema$
|
|
738
|
-
uischema: uischema$
|
|
739
|
-
uischemaWithSorting: uischemaWithSorting,
|
|
740
|
-
data: data$
|
|
740
|
+
schema: schema$N,
|
|
741
|
+
uischema: uischema$O,
|
|
742
|
+
uischemaWithSorting: uischemaWithSorting$1,
|
|
743
|
+
data: data$Q
|
|
741
744
|
});
|
|
742
745
|
|
|
743
|
-
const schema$
|
|
746
|
+
const schema$M = {
|
|
744
747
|
definitions: {
|
|
745
748
|
choicesContainer: {
|
|
746
749
|
type: 'object',
|
|
@@ -765,7 +768,7 @@ const schema$L = {
|
|
|
765
768
|
}
|
|
766
769
|
}
|
|
767
770
|
};
|
|
768
|
-
const uischema$
|
|
771
|
+
const uischema$N = {
|
|
769
772
|
type: 'HorizontalLayout',
|
|
770
773
|
elements: [
|
|
771
774
|
{
|
|
@@ -778,7 +781,7 @@ const uischema$M = {
|
|
|
778
781
|
}
|
|
779
782
|
]
|
|
780
783
|
};
|
|
781
|
-
const data$
|
|
784
|
+
const data$P = {
|
|
782
785
|
exampleArray: [
|
|
783
786
|
{
|
|
784
787
|
choices: ['This', 'is', 'an', 'example'],
|
|
@@ -805,7 +808,7 @@ const uischemas$1 = [
|
|
|
805
808
|
}
|
|
806
809
|
}
|
|
807
810
|
];
|
|
808
|
-
const actions$
|
|
811
|
+
const actions$5 = [
|
|
809
812
|
{
|
|
810
813
|
'label': 'Register NestedArray UISchema',
|
|
811
814
|
'apply': (props) => {
|
|
@@ -830,16 +833,16 @@ registerExamples([
|
|
|
830
833
|
{
|
|
831
834
|
name: 'nestedArray',
|
|
832
835
|
label: 'Nested Array',
|
|
833
|
-
data: data$
|
|
834
|
-
schema: schema$
|
|
835
|
-
uischema: uischema$
|
|
836
|
-
actions: actions$
|
|
836
|
+
data: data$P,
|
|
837
|
+
schema: schema$M,
|
|
838
|
+
uischema: uischema$N,
|
|
839
|
+
actions: actions$5
|
|
837
840
|
}
|
|
838
841
|
]);
|
|
839
842
|
|
|
840
843
|
var nestedArrays = /*#__PURE__*/Object.freeze({
|
|
841
844
|
__proto__: null,
|
|
842
|
-
uischema: uischema$
|
|
845
|
+
uischema: uischema$N
|
|
843
846
|
});
|
|
844
847
|
|
|
845
848
|
const personCoreSchema = {
|
|
@@ -864,7 +867,7 @@ const personCoreSchema = {
|
|
|
864
867
|
}
|
|
865
868
|
}
|
|
866
869
|
};
|
|
867
|
-
const schema$
|
|
870
|
+
const schema$L = {
|
|
868
871
|
type: 'object',
|
|
869
872
|
properties: {
|
|
870
873
|
...personCoreSchema.properties,
|
|
@@ -904,7 +907,7 @@ const schema$K = {
|
|
|
904
907
|
},
|
|
905
908
|
required: ['occupation', 'nationality']
|
|
906
909
|
};
|
|
907
|
-
const uischema$
|
|
910
|
+
const uischema$M = {
|
|
908
911
|
type: 'VerticalLayout',
|
|
909
912
|
elements: [
|
|
910
913
|
{
|
|
@@ -957,7 +960,7 @@ const uischema$L = {
|
|
|
957
960
|
}
|
|
958
961
|
]
|
|
959
962
|
};
|
|
960
|
-
const data$
|
|
963
|
+
const data$O = {
|
|
961
964
|
name: 'John Doe',
|
|
962
965
|
vegetarian: false,
|
|
963
966
|
birthDate: '1985-06-02',
|
|
@@ -970,21 +973,21 @@ registerExamples([
|
|
|
970
973
|
{
|
|
971
974
|
name: 'person',
|
|
972
975
|
label: 'Person',
|
|
973
|
-
data: data$
|
|
974
|
-
schema: schema$
|
|
975
|
-
uischema: uischema$
|
|
976
|
+
data: data$O,
|
|
977
|
+
schema: schema$L,
|
|
978
|
+
uischema: uischema$M
|
|
976
979
|
}
|
|
977
980
|
]);
|
|
978
981
|
|
|
979
982
|
var person = /*#__PURE__*/Object.freeze({
|
|
980
983
|
__proto__: null,
|
|
981
984
|
personCoreSchema: personCoreSchema,
|
|
982
|
-
schema: schema$
|
|
983
|
-
uischema: uischema$
|
|
984
|
-
data: data$
|
|
985
|
+
schema: schema$L,
|
|
986
|
+
uischema: uischema$M,
|
|
987
|
+
data: data$O
|
|
985
988
|
});
|
|
986
989
|
|
|
987
|
-
const schema$
|
|
990
|
+
const schema$K = {
|
|
988
991
|
type: 'object',
|
|
989
992
|
properties: {
|
|
990
993
|
...personCoreSchema.properties,
|
|
@@ -1008,7 +1011,7 @@ const schema$J = {
|
|
|
1008
1011
|
},
|
|
1009
1012
|
required: ['occupation', 'nationality']
|
|
1010
1013
|
};
|
|
1011
|
-
const uischema$
|
|
1014
|
+
const uischema$L = {
|
|
1012
1015
|
type: 'VerticalLayout',
|
|
1013
1016
|
elements: [
|
|
1014
1017
|
{
|
|
@@ -1033,7 +1036,7 @@ const uischema$K = {
|
|
|
1033
1036
|
}
|
|
1034
1037
|
]
|
|
1035
1038
|
};
|
|
1036
|
-
const data$
|
|
1039
|
+
const data$N = {
|
|
1037
1040
|
comments: [
|
|
1038
1041
|
{
|
|
1039
1042
|
date: new Date(2001, 8, 11).toISOString().substr(0, 10),
|
|
@@ -1049,20 +1052,20 @@ registerExamples([
|
|
|
1049
1052
|
{
|
|
1050
1053
|
name: 'array-with-detail',
|
|
1051
1054
|
label: 'Array with detail',
|
|
1052
|
-
data: data$
|
|
1053
|
-
schema: schema$
|
|
1054
|
-
uischema: uischema$
|
|
1055
|
+
data: data$N,
|
|
1056
|
+
schema: schema$K,
|
|
1057
|
+
uischema: uischema$L
|
|
1055
1058
|
}
|
|
1056
1059
|
]);
|
|
1057
1060
|
|
|
1058
1061
|
var arraysWithDetail = /*#__PURE__*/Object.freeze({
|
|
1059
1062
|
__proto__: null,
|
|
1060
|
-
schema: schema$
|
|
1061
|
-
uischema: uischema$
|
|
1062
|
-
data: data$
|
|
1063
|
+
schema: schema$K,
|
|
1064
|
+
uischema: uischema$L,
|
|
1065
|
+
data: data$N
|
|
1063
1066
|
});
|
|
1064
1067
|
|
|
1065
|
-
const schema$
|
|
1068
|
+
const schema$J = {
|
|
1066
1069
|
type: 'object',
|
|
1067
1070
|
properties: {
|
|
1068
1071
|
...personCoreSchema.properties,
|
|
@@ -1088,7 +1091,7 @@ const schema$I = {
|
|
|
1088
1091
|
},
|
|
1089
1092
|
required: ['occupation', 'nationality']
|
|
1090
1093
|
};
|
|
1091
|
-
const uischema$
|
|
1094
|
+
const uischema$K = {
|
|
1092
1095
|
type: 'VerticalLayout',
|
|
1093
1096
|
elements: [
|
|
1094
1097
|
{
|
|
@@ -1136,7 +1139,7 @@ const uischema$J = {
|
|
|
1136
1139
|
}
|
|
1137
1140
|
]
|
|
1138
1141
|
};
|
|
1139
|
-
const data$
|
|
1142
|
+
const data$M = {
|
|
1140
1143
|
occupation: 'developer',
|
|
1141
1144
|
comments: [
|
|
1142
1145
|
{
|
|
@@ -1153,20 +1156,20 @@ registerExamples([
|
|
|
1153
1156
|
{
|
|
1154
1157
|
name: 'array-with-detail-and-rule',
|
|
1155
1158
|
label: 'Array with detail and rule',
|
|
1156
|
-
data: data$
|
|
1157
|
-
schema: schema$
|
|
1158
|
-
uischema: uischema$
|
|
1159
|
+
data: data$M,
|
|
1160
|
+
schema: schema$J,
|
|
1161
|
+
uischema: uischema$K
|
|
1159
1162
|
}
|
|
1160
1163
|
]);
|
|
1161
1164
|
|
|
1162
1165
|
var arraysWithDetailAndRule = /*#__PURE__*/Object.freeze({
|
|
1163
1166
|
__proto__: null,
|
|
1164
|
-
schema: schema$
|
|
1165
|
-
uischema: uischema$
|
|
1166
|
-
data: data$
|
|
1167
|
+
schema: schema$J,
|
|
1168
|
+
uischema: uischema$K,
|
|
1169
|
+
data: data$M
|
|
1167
1170
|
});
|
|
1168
1171
|
|
|
1169
|
-
const schema$
|
|
1172
|
+
const schema$I = {
|
|
1170
1173
|
type: 'object',
|
|
1171
1174
|
properties: {
|
|
1172
1175
|
comments: {
|
|
@@ -1186,7 +1189,7 @@ const schema$H = {
|
|
|
1186
1189
|
}
|
|
1187
1190
|
}
|
|
1188
1191
|
};
|
|
1189
|
-
const uischema$
|
|
1192
|
+
const uischema$J = {
|
|
1190
1193
|
type: 'VerticalLayout',
|
|
1191
1194
|
elements: [
|
|
1192
1195
|
{
|
|
@@ -1211,7 +1214,7 @@ const uischema$I = {
|
|
|
1211
1214
|
}
|
|
1212
1215
|
]
|
|
1213
1216
|
};
|
|
1214
|
-
const data$
|
|
1217
|
+
const data$L = {
|
|
1215
1218
|
comments: [
|
|
1216
1219
|
{
|
|
1217
1220
|
message1: 'This is an example message',
|
|
@@ -1227,16 +1230,128 @@ registerExamples([
|
|
|
1227
1230
|
{
|
|
1228
1231
|
name: 'array-with-custom-element-label',
|
|
1229
1232
|
label: 'Array with custom element label',
|
|
1233
|
+
data: data$L,
|
|
1234
|
+
schema: schema$I,
|
|
1235
|
+
uischema: uischema$J
|
|
1236
|
+
}
|
|
1237
|
+
]);
|
|
1238
|
+
|
|
1239
|
+
var arraysWithCustomElementLabel = /*#__PURE__*/Object.freeze({
|
|
1240
|
+
__proto__: null,
|
|
1241
|
+
schema: schema$I,
|
|
1242
|
+
uischema: uischema$J,
|
|
1243
|
+
data: data$L
|
|
1244
|
+
});
|
|
1245
|
+
|
|
1246
|
+
const schema$H = {
|
|
1247
|
+
type: 'object',
|
|
1248
|
+
properties: {
|
|
1249
|
+
comments: {
|
|
1250
|
+
type: 'array',
|
|
1251
|
+
items: {
|
|
1252
|
+
type: 'object',
|
|
1253
|
+
properties: {
|
|
1254
|
+
date: {
|
|
1255
|
+
type: 'string',
|
|
1256
|
+
format: 'date'
|
|
1257
|
+
},
|
|
1258
|
+
message: {
|
|
1259
|
+
type: 'string',
|
|
1260
|
+
maxLength: 5
|
|
1261
|
+
},
|
|
1262
|
+
enum: {
|
|
1263
|
+
type: 'string',
|
|
1264
|
+
const: 'foo'
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
foo: { type: 'string' }
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1272
|
+
const uischema$I = {
|
|
1273
|
+
type: 'VerticalLayout',
|
|
1274
|
+
elements: [
|
|
1275
|
+
{
|
|
1276
|
+
type: 'Control',
|
|
1277
|
+
scope: '#/properties/foo'
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
type: 'Control',
|
|
1281
|
+
scope: '#/properties/comments',
|
|
1282
|
+
options: {
|
|
1283
|
+
showSortButtons: true
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
]
|
|
1287
|
+
};
|
|
1288
|
+
const uischemaWithSorting = {
|
|
1289
|
+
type: 'VerticalLayout',
|
|
1290
|
+
elements: [
|
|
1291
|
+
{
|
|
1292
|
+
type: 'Control',
|
|
1293
|
+
scope: '#/properties/foo'
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
type: 'Control',
|
|
1297
|
+
scope: '#/properties/comments',
|
|
1298
|
+
options: {
|
|
1299
|
+
showSortButtons: true
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
]
|
|
1303
|
+
};
|
|
1304
|
+
const data$K = {
|
|
1305
|
+
comments: [
|
|
1306
|
+
{
|
|
1307
|
+
date: new Date(2001, 8, 11).toISOString().substr(0, 10),
|
|
1308
|
+
message: 'This is an example message With sorting'
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
date: new Date().toISOString().substr(0, 10),
|
|
1312
|
+
message: 'Get ready for booohay'
|
|
1313
|
+
}
|
|
1314
|
+
]
|
|
1315
|
+
};
|
|
1316
|
+
const actions$4 = [
|
|
1317
|
+
{
|
|
1318
|
+
'label': 'Enable Sorting',
|
|
1319
|
+
'apply': (props) => {
|
|
1320
|
+
return {
|
|
1321
|
+
...props,
|
|
1322
|
+
uischema: uischemaWithSorting
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
'label': 'Disable Sorting',
|
|
1328
|
+
'apply': (props) => {
|
|
1329
|
+
return {
|
|
1330
|
+
...props,
|
|
1331
|
+
uischema: uischema$I
|
|
1332
|
+
};
|
|
1333
|
+
}
|
|
1334
|
+
},
|
|
1335
|
+
];
|
|
1336
|
+
registerExamples([
|
|
1337
|
+
{
|
|
1338
|
+
name: 'array-with-sorting',
|
|
1339
|
+
label: 'Array with sorting',
|
|
1230
1340
|
data: data$K,
|
|
1231
1341
|
schema: schema$H,
|
|
1232
|
-
uischema: uischema$I
|
|
1342
|
+
uischema: uischema$I,
|
|
1343
|
+
config: {
|
|
1344
|
+
withSort: uischemaWithSorting
|
|
1345
|
+
},
|
|
1346
|
+
actions: actions$4
|
|
1233
1347
|
}
|
|
1234
1348
|
]);
|
|
1235
1349
|
|
|
1236
|
-
var
|
|
1350
|
+
var arraysWithSorting = /*#__PURE__*/Object.freeze({
|
|
1237
1351
|
__proto__: null,
|
|
1238
1352
|
schema: schema$H,
|
|
1239
1353
|
uischema: uischema$I,
|
|
1354
|
+
uischemaWithSorting: uischemaWithSorting,
|
|
1240
1355
|
data: data$K
|
|
1241
1356
|
});
|
|
1242
1357
|
|
|
@@ -1631,7 +1746,8 @@ const schema$C = {
|
|
|
1631
1746
|
type: 'string'
|
|
1632
1747
|
},
|
|
1633
1748
|
boolean: {
|
|
1634
|
-
type: 'boolean'
|
|
1749
|
+
type: 'boolean',
|
|
1750
|
+
description: 'Boolean description as a tooltip'
|
|
1635
1751
|
},
|
|
1636
1752
|
number: {
|
|
1637
1753
|
type: 'number'
|
|
@@ -2362,7 +2478,7 @@ var dynamic = /*#__PURE__*/Object.freeze({
|
|
|
2362
2478
|
|
|
2363
2479
|
const schema$u = undefined;
|
|
2364
2480
|
const uischema$v = undefined;
|
|
2365
|
-
const data$x = data$
|
|
2481
|
+
const data$x = data$O;
|
|
2366
2482
|
registerExamples([
|
|
2367
2483
|
{
|
|
2368
2484
|
name: 'generate',
|
|
@@ -2382,7 +2498,7 @@ var generate = /*#__PURE__*/Object.freeze({
|
|
|
2382
2498
|
|
|
2383
2499
|
const schema$t = personCoreSchema;
|
|
2384
2500
|
const uischema$u = undefined;
|
|
2385
|
-
const data$w = data$
|
|
2501
|
+
const data$w = data$O;
|
|
2386
2502
|
registerExamples([
|
|
2387
2503
|
{
|
|
2388
2504
|
name: 'generate-ui',
|
|
@@ -2400,7 +2516,7 @@ var generateUI = /*#__PURE__*/Object.freeze({
|
|
|
2400
2516
|
data: data$w
|
|
2401
2517
|
});
|
|
2402
2518
|
|
|
2403
|
-
const schema$s = schema$
|
|
2519
|
+
const schema$s = schema$L;
|
|
2404
2520
|
const uischemaVertical = {
|
|
2405
2521
|
type: 'VerticalLayout',
|
|
2406
2522
|
elements: [
|
|
@@ -2488,7 +2604,7 @@ const uischemaComplex = {
|
|
|
2488
2604
|
}
|
|
2489
2605
|
]
|
|
2490
2606
|
};
|
|
2491
|
-
const data$v = data$
|
|
2607
|
+
const data$v = data$O;
|
|
2492
2608
|
registerExamples([
|
|
2493
2609
|
{
|
|
2494
2610
|
name: 'layout-vertical',
|
|
@@ -6440,9 +6556,9 @@ registerExamples([
|
|
|
6440
6556
|
{
|
|
6441
6557
|
name: 'additional-errors',
|
|
6442
6558
|
label: 'Additional errors',
|
|
6443
|
-
data: data$
|
|
6444
|
-
schema: schema$
|
|
6445
|
-
uischema: uischema$
|
|
6559
|
+
data: data$O,
|
|
6560
|
+
schema: schema$L,
|
|
6561
|
+
uischema: uischema$M,
|
|
6446
6562
|
actions
|
|
6447
6563
|
}
|
|
6448
6564
|
]);
|
|
@@ -6479,5 +6595,5 @@ var if_then_else = /*#__PURE__*/Object.freeze({
|
|
|
6479
6595
|
data: data
|
|
6480
6596
|
});
|
|
6481
6597
|
|
|
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 };
|
|
6598
|
+
export { additionalErrors$1 as additionalErrors, allOf, anyOf, anyOfOneOfAllOfResolve, arrays as array, arraysWithCustomElementLabel as arrayWithCustomChildLabel, arraysWithDetail as arrayWithDetail, arraysWithDetailAndRule as arrayWithDetailAndRule, arraysWithSorting as arrayWithSorting, 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 };
|
|
6483
6599
|
//# sourceMappingURL=jsonforms-examples.esm.js.map
|