@jsonforms/examples 3.0.0-beta.2 → 3.0.0-beta.5
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 +5 -1
- package/docs/assets/js/search.json +1 -1
- package/docs/globals.html +829 -638
- package/docs/index.html +8 -1
- package/lib/examples/1948.d.ts +40 -0
- package/lib/examples/additional-errors.d.ts +1 -0
- package/lib/index.d.ts +3 -1
- package/lib/jsonforms-examples.cjs.js +421 -325
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +426 -329
- package/lib/jsonforms-examples.esm.js.map +1 -1
- package/package.json +4 -4
- package/src/examples/1948.ts +87 -0
- package/src/examples/additional-errors.ts +57 -0
- package/src/index.ts +5 -1
- package/stats.html +1 -1
|
@@ -6,7 +6,7 @@ const registerExamples = (examples) => {
|
|
|
6
6
|
};
|
|
7
7
|
const getExamples = () => Object.keys(knownExamples).map(key => knownExamples[key]);
|
|
8
8
|
|
|
9
|
-
const schema$
|
|
9
|
+
const schema$Q = {
|
|
10
10
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
11
11
|
definitions: {
|
|
12
12
|
address: {
|
|
@@ -39,7 +39,7 @@ const schema$P = {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
const uischema$
|
|
42
|
+
const uischema$Q = {
|
|
43
43
|
type: 'VerticalLayout',
|
|
44
44
|
elements: [
|
|
45
45
|
{
|
|
@@ -53,7 +53,7 @@ const uischema$P = {
|
|
|
53
53
|
}
|
|
54
54
|
]
|
|
55
55
|
};
|
|
56
|
-
const data$
|
|
56
|
+
const data$S = {
|
|
57
57
|
billing_address: {
|
|
58
58
|
street_address: '1600 Pennsylvania Avenue NW',
|
|
59
59
|
city: 'Washington',
|
|
@@ -64,19 +64,19 @@ registerExamples([
|
|
|
64
64
|
{
|
|
65
65
|
name: 'allOf',
|
|
66
66
|
label: 'allOf',
|
|
67
|
-
data: data$
|
|
68
|
-
schema: schema$
|
|
69
|
-
uischema: uischema$
|
|
67
|
+
data: data$S,
|
|
68
|
+
schema: schema$Q,
|
|
69
|
+
uischema: uischema$Q
|
|
70
70
|
}
|
|
71
71
|
]);
|
|
72
72
|
|
|
73
73
|
var allOf = /*#__PURE__*/Object.freeze({
|
|
74
74
|
__proto__: null,
|
|
75
|
-
schema: schema$
|
|
76
|
-
uischema: uischema$
|
|
75
|
+
schema: schema$Q,
|
|
76
|
+
uischema: uischema$Q
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
const schema$
|
|
79
|
+
const schema$P = {
|
|
80
80
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
81
81
|
definitions: {
|
|
82
82
|
address: {
|
|
@@ -118,7 +118,7 @@ const schema$O = {
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
const uischema$
|
|
121
|
+
const uischema$P = {
|
|
122
122
|
type: 'VerticalLayout',
|
|
123
123
|
elements: [
|
|
124
124
|
{
|
|
@@ -131,7 +131,7 @@ const uischema$O = {
|
|
|
131
131
|
}
|
|
132
132
|
]
|
|
133
133
|
};
|
|
134
|
-
const data$
|
|
134
|
+
const data$R = {
|
|
135
135
|
addressOrUser: {
|
|
136
136
|
street_address: '1600 Pennsylvania Avenue NW',
|
|
137
137
|
city: 'Washington',
|
|
@@ -150,9 +150,9 @@ registerExamples([
|
|
|
150
150
|
{
|
|
151
151
|
name: 'anyOf',
|
|
152
152
|
label: 'anyOf',
|
|
153
|
-
data: data$
|
|
154
|
-
schema: schema$
|
|
155
|
-
uischema: uischema$
|
|
153
|
+
data: data$R,
|
|
154
|
+
schema: schema$P,
|
|
155
|
+
uischema: uischema$P
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
name: 'anyOf_simple',
|
|
@@ -165,11 +165,11 @@ registerExamples([
|
|
|
165
165
|
|
|
166
166
|
var anyOf = /*#__PURE__*/Object.freeze({
|
|
167
167
|
__proto__: null,
|
|
168
|
-
schema: schema$
|
|
169
|
-
uischema: uischema$
|
|
168
|
+
schema: schema$P,
|
|
169
|
+
uischema: uischema$P
|
|
170
170
|
});
|
|
171
171
|
|
|
172
|
-
const schema$
|
|
172
|
+
const schema$O = {
|
|
173
173
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
174
174
|
definitions: {
|
|
175
175
|
address: {
|
|
@@ -201,7 +201,7 @@ const schema$N = {
|
|
|
201
201
|
},
|
|
202
202
|
required: ['name']
|
|
203
203
|
};
|
|
204
|
-
const uischema$
|
|
204
|
+
const uischema$O = {
|
|
205
205
|
type: 'VerticalLayout',
|
|
206
206
|
elements: [
|
|
207
207
|
{
|
|
@@ -214,7 +214,7 @@ const uischema$N = {
|
|
|
214
214
|
}
|
|
215
215
|
]
|
|
216
216
|
};
|
|
217
|
-
const data$
|
|
217
|
+
const data$Q = {
|
|
218
218
|
name: 'test',
|
|
219
219
|
addressOrUser: {
|
|
220
220
|
street_address: '1600 Pennsylvania Avenue NW',
|
|
@@ -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$Q,
|
|
441
|
+
schema: schema$O,
|
|
442
|
+
uischema: uischema$O
|
|
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$O,
|
|
484
|
+
uischema: uischema$O
|
|
485
485
|
});
|
|
486
486
|
|
|
487
|
-
const schema$
|
|
487
|
+
const schema$N = {
|
|
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$
|
|
522
|
+
const uischema$N = {
|
|
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$
|
|
531
|
+
const data$P = {
|
|
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$P,
|
|
550
|
+
schema: schema$N,
|
|
551
|
+
uischema: uischema$N
|
|
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$N,
|
|
558
|
+
uischema: uischema$N
|
|
559
559
|
});
|
|
560
560
|
|
|
561
|
-
const schema$
|
|
561
|
+
const schema$M = {
|
|
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$
|
|
592
|
+
const uischema$M = {
|
|
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$
|
|
617
|
+
const data$O = {};
|
|
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$O,
|
|
623
|
+
schema: schema$M,
|
|
624
|
+
uischema: uischema$M
|
|
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$M,
|
|
631
|
+
uischema: uischema$M
|
|
632
632
|
});
|
|
633
633
|
|
|
634
|
-
const schema$
|
|
634
|
+
const schema$L = {
|
|
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$
|
|
660
|
+
const uischema$L = {
|
|
661
661
|
type: 'VerticalLayout',
|
|
662
662
|
elements: [
|
|
663
663
|
{
|
|
@@ -686,7 +686,7 @@ const uischemaWithSorting = {
|
|
|
686
686
|
}
|
|
687
687
|
]
|
|
688
688
|
};
|
|
689
|
-
const data$
|
|
689
|
+
const data$N = {
|
|
690
690
|
comments: [
|
|
691
691
|
{
|
|
692
692
|
date: new Date(2001, 8, 11).toISOString().substr(0, 10),
|
|
@@ -698,7 +698,7 @@ const data$M = {
|
|
|
698
698
|
}
|
|
699
699
|
]
|
|
700
700
|
};
|
|
701
|
-
const actions$
|
|
701
|
+
const actions$5 = [
|
|
702
702
|
{
|
|
703
703
|
'label': 'Enable Sorting',
|
|
704
704
|
'apply': (props) => {
|
|
@@ -713,7 +713,7 @@ const actions$4 = [
|
|
|
713
713
|
'apply': (props) => {
|
|
714
714
|
return {
|
|
715
715
|
...props,
|
|
716
|
-
uischema: uischema$
|
|
716
|
+
uischema: uischema$L
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
719
|
},
|
|
@@ -722,25 +722,25 @@ registerExamples([
|
|
|
722
722
|
{
|
|
723
723
|
name: 'array',
|
|
724
724
|
label: 'Array',
|
|
725
|
-
data: data$
|
|
726
|
-
schema: schema$
|
|
727
|
-
uischema: uischema$
|
|
725
|
+
data: data$N,
|
|
726
|
+
schema: schema$L,
|
|
727
|
+
uischema: uischema$L,
|
|
728
728
|
config: {
|
|
729
729
|
withSort: uischemaWithSorting
|
|
730
730
|
},
|
|
731
|
-
actions: actions$
|
|
731
|
+
actions: actions$5
|
|
732
732
|
}
|
|
733
733
|
]);
|
|
734
734
|
|
|
735
735
|
var arrays = /*#__PURE__*/Object.freeze({
|
|
736
736
|
__proto__: null,
|
|
737
|
-
schema: schema$
|
|
738
|
-
uischema: uischema$
|
|
737
|
+
schema: schema$L,
|
|
738
|
+
uischema: uischema$L,
|
|
739
739
|
uischemaWithSorting: uischemaWithSorting,
|
|
740
|
-
data: data$
|
|
740
|
+
data: data$N
|
|
741
741
|
});
|
|
742
742
|
|
|
743
|
-
const schema$
|
|
743
|
+
const schema$K = {
|
|
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$
|
|
768
|
+
const uischema$K = {
|
|
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$
|
|
781
|
+
const data$M = {
|
|
782
782
|
exampleArray: [
|
|
783
783
|
{
|
|
784
784
|
choices: ['This', 'is', 'an', 'example'],
|
|
@@ -805,7 +805,7 @@ const uischemas$1 = [
|
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
807
|
];
|
|
808
|
-
const actions$
|
|
808
|
+
const actions$4 = [
|
|
809
809
|
{
|
|
810
810
|
'label': 'Register NestedArray UISchema',
|
|
811
811
|
'apply': (props) => {
|
|
@@ -830,16 +830,16 @@ registerExamples([
|
|
|
830
830
|
{
|
|
831
831
|
name: 'nestedArray',
|
|
832
832
|
label: 'Nested Array',
|
|
833
|
-
data: data$
|
|
834
|
-
schema: schema$
|
|
835
|
-
uischema: uischema$
|
|
836
|
-
actions: actions$
|
|
833
|
+
data: data$M,
|
|
834
|
+
schema: schema$K,
|
|
835
|
+
uischema: uischema$K,
|
|
836
|
+
actions: actions$4
|
|
837
837
|
}
|
|
838
838
|
]);
|
|
839
839
|
|
|
840
840
|
var nestedArrays = /*#__PURE__*/Object.freeze({
|
|
841
841
|
__proto__: null,
|
|
842
|
-
uischema: uischema$
|
|
842
|
+
uischema: uischema$K
|
|
843
843
|
});
|
|
844
844
|
|
|
845
845
|
const personCoreSchema = {
|
|
@@ -864,7 +864,7 @@ const personCoreSchema = {
|
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
|
-
const schema$
|
|
867
|
+
const schema$J = {
|
|
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$
|
|
907
|
+
const uischema$J = {
|
|
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$
|
|
960
|
+
const data$L = {
|
|
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$
|
|
974
|
-
schema: schema$
|
|
975
|
-
uischema: uischema$
|
|
973
|
+
data: data$L,
|
|
974
|
+
schema: schema$J,
|
|
975
|
+
uischema: uischema$J
|
|
976
976
|
}
|
|
977
977
|
]);
|
|
978
978
|
|
|
979
979
|
var person = /*#__PURE__*/Object.freeze({
|
|
980
980
|
__proto__: null,
|
|
981
981
|
personCoreSchema: personCoreSchema,
|
|
982
|
-
schema: schema$
|
|
983
|
-
uischema: uischema$
|
|
984
|
-
data: data$
|
|
982
|
+
schema: schema$J,
|
|
983
|
+
uischema: uischema$J,
|
|
984
|
+
data: data$L
|
|
985
985
|
});
|
|
986
986
|
|
|
987
|
-
const schema$
|
|
987
|
+
const schema$I = {
|
|
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$
|
|
1011
|
+
const uischema$I = {
|
|
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$
|
|
1036
|
+
const data$K = {
|
|
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$
|
|
1053
|
-
schema: schema$
|
|
1054
|
-
uischema: uischema$
|
|
1052
|
+
data: data$K,
|
|
1053
|
+
schema: schema$I,
|
|
1054
|
+
uischema: uischema$I
|
|
1055
1055
|
}
|
|
1056
1056
|
]);
|
|
1057
1057
|
|
|
1058
1058
|
var arraysWithDetail = /*#__PURE__*/Object.freeze({
|
|
1059
1059
|
__proto__: null,
|
|
1060
|
-
schema: schema$
|
|
1061
|
-
uischema: uischema$
|
|
1062
|
-
data: data$
|
|
1060
|
+
schema: schema$I,
|
|
1061
|
+
uischema: uischema$I,
|
|
1062
|
+
data: data$K
|
|
1063
1063
|
});
|
|
1064
1064
|
|
|
1065
|
-
const schema$
|
|
1065
|
+
const schema$H = {
|
|
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$
|
|
1091
|
+
const uischema$H = {
|
|
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$
|
|
1139
|
+
const data$J = {
|
|
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$
|
|
1157
|
-
schema: schema$
|
|
1158
|
-
uischema: uischema$
|
|
1156
|
+
data: data$J,
|
|
1157
|
+
schema: schema$H,
|
|
1158
|
+
uischema: uischema$H
|
|
1159
1159
|
}
|
|
1160
1160
|
]);
|
|
1161
1161
|
|
|
1162
1162
|
var arraysWithDetailAndRule = /*#__PURE__*/Object.freeze({
|
|
1163
1163
|
__proto__: null,
|
|
1164
|
-
schema: schema$
|
|
1165
|
-
uischema: uischema$
|
|
1166
|
-
data: data$
|
|
1164
|
+
schema: schema$H,
|
|
1165
|
+
uischema: uischema$H,
|
|
1166
|
+
data: data$J
|
|
1167
1167
|
});
|
|
1168
1168
|
|
|
1169
|
-
const schema$
|
|
1169
|
+
const schema$G = {
|
|
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$
|
|
1189
|
+
const uischema$G = {
|
|
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$
|
|
1214
|
+
const data$I = {
|
|
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$
|
|
1231
|
-
schema: schema$
|
|
1232
|
-
uischema: uischema$
|
|
1230
|
+
data: data$I,
|
|
1231
|
+
schema: schema$G,
|
|
1232
|
+
uischema: uischema$G
|
|
1233
1233
|
}
|
|
1234
1234
|
]);
|
|
1235
1235
|
|
|
1236
1236
|
var arraysWithCustomElementLabel = /*#__PURE__*/Object.freeze({
|
|
1237
1237
|
__proto__: null,
|
|
1238
|
-
schema: schema$
|
|
1239
|
-
uischema: uischema$
|
|
1240
|
-
data: data$
|
|
1238
|
+
schema: schema$G,
|
|
1239
|
+
uischema: uischema$G,
|
|
1240
|
+
data: data$I
|
|
1241
1241
|
});
|
|
1242
1242
|
|
|
1243
|
-
const schema$
|
|
1243
|
+
const schema$F = {
|
|
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$
|
|
1255
|
+
const uischema$F = {
|
|
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$
|
|
1264
|
+
const data$H = {
|
|
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$
|
|
1272
|
-
schema: schema$
|
|
1273
|
-
uischema: uischema$
|
|
1271
|
+
data: data$H,
|
|
1272
|
+
schema: schema$F,
|
|
1273
|
+
uischema: uischema$F
|
|
1274
1274
|
}
|
|
1275
1275
|
]);
|
|
1276
1276
|
|
|
1277
1277
|
var stringArray = /*#__PURE__*/Object.freeze({
|
|
1278
1278
|
__proto__: null,
|
|
1279
|
-
schema: schema$
|
|
1280
|
-
uischema: uischema$
|
|
1281
|
-
data: data$
|
|
1279
|
+
schema: schema$F,
|
|
1280
|
+
uischema: uischema$F,
|
|
1281
|
+
data: data$H
|
|
1282
1282
|
});
|
|
1283
1283
|
|
|
1284
|
-
const schema$
|
|
1284
|
+
const schema$E = {
|
|
1285
1285
|
type: 'object',
|
|
1286
1286
|
properties: {
|
|
1287
1287
|
firstName: {
|
|
@@ -1344,7 +1344,7 @@ const schema$D = {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
},
|
|
1346
1346
|
};
|
|
1347
|
-
const uischema$
|
|
1347
|
+
const uischema$E = {
|
|
1348
1348
|
type: 'Categorization',
|
|
1349
1349
|
elements: [
|
|
1350
1350
|
{
|
|
@@ -1460,7 +1460,7 @@ const uischema$D = {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
]
|
|
1462
1462
|
};
|
|
1463
|
-
const data$
|
|
1463
|
+
const data$G = {
|
|
1464
1464
|
provideAddress: true,
|
|
1465
1465
|
vegetarian: false
|
|
1466
1466
|
};
|
|
@@ -1541,14 +1541,14 @@ registerExamples([
|
|
|
1541
1541
|
{
|
|
1542
1542
|
name: 'categorization',
|
|
1543
1543
|
label: 'Categorization',
|
|
1544
|
-
data: data$
|
|
1545
|
-
schema: schema$
|
|
1546
|
-
uischema: uischema$
|
|
1544
|
+
data: data$G,
|
|
1545
|
+
schema: schema$E,
|
|
1546
|
+
uischema: uischema$E
|
|
1547
1547
|
},
|
|
1548
1548
|
{
|
|
1549
1549
|
name: '1713',
|
|
1550
1550
|
label: 'Bug 1713',
|
|
1551
|
-
data: data$
|
|
1551
|
+
data: data$G,
|
|
1552
1552
|
schema: schema_1713,
|
|
1553
1553
|
uischema: uischema_1713
|
|
1554
1554
|
}
|
|
@@ -1556,63 +1556,63 @@ registerExamples([
|
|
|
1556
1556
|
|
|
1557
1557
|
var categorization = /*#__PURE__*/Object.freeze({
|
|
1558
1558
|
__proto__: null,
|
|
1559
|
-
schema: schema$
|
|
1560
|
-
uischema: uischema$
|
|
1561
|
-
data: data$
|
|
1559
|
+
schema: schema$E,
|
|
1560
|
+
uischema: uischema$E,
|
|
1561
|
+
data: data$G
|
|
1562
1562
|
});
|
|
1563
1563
|
|
|
1564
|
-
const schema$
|
|
1565
|
-
const uischema$
|
|
1566
|
-
...uischema$
|
|
1564
|
+
const schema$D = schema$E;
|
|
1565
|
+
const uischema$D = {
|
|
1566
|
+
...uischema$E,
|
|
1567
1567
|
options: {
|
|
1568
1568
|
variant: 'stepper'
|
|
1569
1569
|
}
|
|
1570
1570
|
};
|
|
1571
|
-
const data$
|
|
1571
|
+
const data$F = data$G;
|
|
1572
1572
|
registerExamples([
|
|
1573
1573
|
{
|
|
1574
1574
|
name: 'categorizationstepper',
|
|
1575
1575
|
label: 'Categorization (Stepper)',
|
|
1576
|
-
data: data$
|
|
1577
|
-
schema: schema$
|
|
1578
|
-
uischema: uischema$
|
|
1576
|
+
data: data$F,
|
|
1577
|
+
schema: schema$D,
|
|
1578
|
+
uischema: uischema$D
|
|
1579
1579
|
}
|
|
1580
1580
|
]);
|
|
1581
1581
|
|
|
1582
1582
|
var stepper = /*#__PURE__*/Object.freeze({
|
|
1583
1583
|
__proto__: null,
|
|
1584
|
-
schema: schema$
|
|
1585
|
-
uischema: uischema$
|
|
1586
|
-
data: data$
|
|
1584
|
+
schema: schema$D,
|
|
1585
|
+
uischema: uischema$D,
|
|
1586
|
+
data: data$F
|
|
1587
1587
|
});
|
|
1588
1588
|
|
|
1589
|
-
const schema$
|
|
1590
|
-
const uischema$
|
|
1591
|
-
...uischema$
|
|
1589
|
+
const schema$C = schema$E;
|
|
1590
|
+
const uischema$C = {
|
|
1591
|
+
...uischema$E,
|
|
1592
1592
|
options: {
|
|
1593
1593
|
variant: 'stepper',
|
|
1594
1594
|
showNavButtons: true
|
|
1595
1595
|
}
|
|
1596
1596
|
};
|
|
1597
|
-
const data$
|
|
1597
|
+
const data$E = data$G;
|
|
1598
1598
|
registerExamples([
|
|
1599
1599
|
{
|
|
1600
1600
|
name: 'categorizationsteppernavbuttons',
|
|
1601
1601
|
label: 'Categorization (Stepper - Nav Buttons)',
|
|
1602
|
-
data: data$
|
|
1603
|
-
schema: schema$
|
|
1604
|
-
uischema: uischema$
|
|
1602
|
+
data: data$E,
|
|
1603
|
+
schema: schema$C,
|
|
1604
|
+
uischema: uischema$C
|
|
1605
1605
|
}
|
|
1606
1606
|
]);
|
|
1607
1607
|
|
|
1608
1608
|
var steppershownav = /*#__PURE__*/Object.freeze({
|
|
1609
1609
|
__proto__: null,
|
|
1610
|
-
schema: schema$
|
|
1611
|
-
uischema: uischema$
|
|
1612
|
-
data: data$
|
|
1610
|
+
schema: schema$C,
|
|
1611
|
+
uischema: uischema$C,
|
|
1612
|
+
data: data$E
|
|
1613
1613
|
});
|
|
1614
1614
|
|
|
1615
|
-
const schema$
|
|
1615
|
+
const schema$B = {
|
|
1616
1616
|
type: 'object',
|
|
1617
1617
|
properties: {
|
|
1618
1618
|
string: {
|
|
@@ -1645,7 +1645,7 @@ const schema$A = {
|
|
|
1645
1645
|
}
|
|
1646
1646
|
}
|
|
1647
1647
|
};
|
|
1648
|
-
const uischema$
|
|
1648
|
+
const uischema$B = {
|
|
1649
1649
|
type: 'VerticalLayout',
|
|
1650
1650
|
elements: [
|
|
1651
1651
|
{
|
|
@@ -1682,7 +1682,7 @@ const uischema$A = {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
]
|
|
1684
1684
|
};
|
|
1685
|
-
const data$
|
|
1685
|
+
const data$D = {
|
|
1686
1686
|
string: 'This is a string',
|
|
1687
1687
|
boolean: true,
|
|
1688
1688
|
number: 50.5,
|
|
@@ -1795,7 +1795,7 @@ const extendedData = {
|
|
|
1795
1795
|
const combinedSchema = {
|
|
1796
1796
|
...extendedSchema,
|
|
1797
1797
|
properties: {
|
|
1798
|
-
...schema$
|
|
1798
|
+
...schema$B.properties,
|
|
1799
1799
|
...extendedSchema.properties
|
|
1800
1800
|
}
|
|
1801
1801
|
};
|
|
@@ -1806,7 +1806,7 @@ const combinedUiSchema = {
|
|
|
1806
1806
|
type: 'Category',
|
|
1807
1807
|
label: 'Normal controls',
|
|
1808
1808
|
elements: [
|
|
1809
|
-
uischema$
|
|
1809
|
+
uischema$B
|
|
1810
1810
|
]
|
|
1811
1811
|
},
|
|
1812
1812
|
{
|
|
@@ -1819,7 +1819,7 @@ const combinedUiSchema = {
|
|
|
1819
1819
|
]
|
|
1820
1820
|
};
|
|
1821
1821
|
const combinedData = {
|
|
1822
|
-
...data$
|
|
1822
|
+
...data$D,
|
|
1823
1823
|
...extendedData
|
|
1824
1824
|
};
|
|
1825
1825
|
registerExamples([
|
|
@@ -1834,15 +1834,15 @@ registerExamples([
|
|
|
1834
1834
|
|
|
1835
1835
|
var controlOptions = /*#__PURE__*/Object.freeze({
|
|
1836
1836
|
__proto__: null,
|
|
1837
|
-
schema: schema$
|
|
1838
|
-
uischema: uischema$
|
|
1839
|
-
data: data$
|
|
1837
|
+
schema: schema$B,
|
|
1838
|
+
uischema: uischema$B,
|
|
1839
|
+
data: data$D,
|
|
1840
1840
|
extendedSchema: extendedSchema,
|
|
1841
1841
|
extendedUischema: extendedUischema,
|
|
1842
1842
|
extendedData: extendedData
|
|
1843
1843
|
});
|
|
1844
1844
|
|
|
1845
|
-
const schema$
|
|
1845
|
+
const schema$A = {
|
|
1846
1846
|
type: 'object',
|
|
1847
1847
|
properties: {
|
|
1848
1848
|
name: {
|
|
@@ -1858,8 +1858,8 @@ const schema$z = {
|
|
|
1858
1858
|
},
|
|
1859
1859
|
required: ['name']
|
|
1860
1860
|
};
|
|
1861
|
-
const uischema$
|
|
1862
|
-
const data$
|
|
1861
|
+
const uischema$A = undefined;
|
|
1862
|
+
const data$C = {
|
|
1863
1863
|
name: 'Send email to Adrian',
|
|
1864
1864
|
description: 'Confirm if you have passed the subject\nHereby ...',
|
|
1865
1865
|
done: true
|
|
@@ -1868,21 +1868,21 @@ registerExamples([
|
|
|
1868
1868
|
{
|
|
1869
1869
|
name: 'day1',
|
|
1870
1870
|
label: 'Day 1',
|
|
1871
|
-
data: data$
|
|
1872
|
-
schema: schema$
|
|
1873
|
-
uischema: uischema$
|
|
1871
|
+
data: data$C,
|
|
1872
|
+
schema: schema$A,
|
|
1873
|
+
uischema: uischema$A
|
|
1874
1874
|
}
|
|
1875
1875
|
]);
|
|
1876
1876
|
|
|
1877
1877
|
var day1 = /*#__PURE__*/Object.freeze({
|
|
1878
1878
|
__proto__: null,
|
|
1879
|
-
schema: schema$
|
|
1880
|
-
uischema: uischema$
|
|
1881
|
-
data: data$
|
|
1879
|
+
schema: schema$A,
|
|
1880
|
+
uischema: uischema$A,
|
|
1881
|
+
data: data$C
|
|
1882
1882
|
});
|
|
1883
1883
|
|
|
1884
|
-
const schema$
|
|
1885
|
-
const uischema$
|
|
1884
|
+
const schema$z = schema$A;
|
|
1885
|
+
const uischema$z = {
|
|
1886
1886
|
type: 'VerticalLayout',
|
|
1887
1887
|
elements: [
|
|
1888
1888
|
{
|
|
@@ -1903,28 +1903,28 @@ const uischema$y = {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
]
|
|
1905
1905
|
};
|
|
1906
|
-
const data$
|
|
1906
|
+
const data$B = data$C;
|
|
1907
1907
|
registerExamples([
|
|
1908
1908
|
{
|
|
1909
1909
|
name: 'day2',
|
|
1910
1910
|
label: 'Day 2',
|
|
1911
|
-
data: data$
|
|
1912
|
-
schema: schema$
|
|
1913
|
-
uischema: uischema$
|
|
1911
|
+
data: data$B,
|
|
1912
|
+
schema: schema$z,
|
|
1913
|
+
uischema: uischema$z
|
|
1914
1914
|
}
|
|
1915
1915
|
]);
|
|
1916
1916
|
|
|
1917
1917
|
var day2 = /*#__PURE__*/Object.freeze({
|
|
1918
1918
|
__proto__: null,
|
|
1919
|
-
schema: schema$
|
|
1920
|
-
uischema: uischema$
|
|
1921
|
-
data: data$
|
|
1919
|
+
schema: schema$z,
|
|
1920
|
+
uischema: uischema$z,
|
|
1921
|
+
data: data$B
|
|
1922
1922
|
});
|
|
1923
1923
|
|
|
1924
|
-
const schema$
|
|
1924
|
+
const schema$y = {
|
|
1925
1925
|
type: 'object',
|
|
1926
1926
|
properties: {
|
|
1927
|
-
...schema$
|
|
1927
|
+
...schema$z.properties,
|
|
1928
1928
|
dueDate: {
|
|
1929
1929
|
type: 'string',
|
|
1930
1930
|
format: 'date'
|
|
@@ -1936,10 +1936,10 @@ const schema$x = {
|
|
|
1936
1936
|
},
|
|
1937
1937
|
required: ['name']
|
|
1938
1938
|
};
|
|
1939
|
-
const uischema$
|
|
1939
|
+
const uischema$y = {
|
|
1940
1940
|
type: 'VerticalLayout',
|
|
1941
1941
|
elements: [
|
|
1942
|
-
...uischema$
|
|
1942
|
+
...uischema$z.elements,
|
|
1943
1943
|
{
|
|
1944
1944
|
type: 'Control',
|
|
1945
1945
|
scope: '#/properties/dueDate'
|
|
@@ -1950,31 +1950,31 @@ const uischema$x = {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
]
|
|
1952
1952
|
};
|
|
1953
|
-
const data$
|
|
1954
|
-
...data$
|
|
1953
|
+
const data$A = {
|
|
1954
|
+
...data$B,
|
|
1955
1955
|
rating: 3
|
|
1956
1956
|
};
|
|
1957
1957
|
registerExamples([
|
|
1958
1958
|
{
|
|
1959
1959
|
name: 'day3',
|
|
1960
1960
|
label: 'Day 3',
|
|
1961
|
-
data: data$
|
|
1962
|
-
schema: schema$
|
|
1963
|
-
uischema: uischema$
|
|
1961
|
+
data: data$A,
|
|
1962
|
+
schema: schema$y,
|
|
1963
|
+
uischema: uischema$y
|
|
1964
1964
|
}
|
|
1965
1965
|
]);
|
|
1966
1966
|
|
|
1967
1967
|
var day3 = /*#__PURE__*/Object.freeze({
|
|
1968
1968
|
__proto__: null,
|
|
1969
|
-
schema: schema$
|
|
1970
|
-
uischema: uischema$
|
|
1971
|
-
data: data$
|
|
1969
|
+
schema: schema$y,
|
|
1970
|
+
uischema: uischema$y,
|
|
1971
|
+
data: data$A
|
|
1972
1972
|
});
|
|
1973
1973
|
|
|
1974
|
-
const schema$
|
|
1974
|
+
const schema$x = {
|
|
1975
1975
|
type: 'object',
|
|
1976
1976
|
properties: {
|
|
1977
|
-
...schema$
|
|
1977
|
+
...schema$y.properties,
|
|
1978
1978
|
recurrence: {
|
|
1979
1979
|
type: 'string',
|
|
1980
1980
|
enum: ['Never', 'Daily', 'Weekly', 'Monthly']
|
|
@@ -1985,10 +1985,10 @@ const schema$w = {
|
|
|
1985
1985
|
},
|
|
1986
1986
|
required: ['name']
|
|
1987
1987
|
};
|
|
1988
|
-
const uischema$
|
|
1988
|
+
const uischema$x = {
|
|
1989
1989
|
type: 'VerticalLayout',
|
|
1990
1990
|
elements: [
|
|
1991
|
-
...uischema$
|
|
1991
|
+
...uischema$y.elements,
|
|
1992
1992
|
{
|
|
1993
1993
|
type: 'Control',
|
|
1994
1994
|
scope: '#/properties/recurrence'
|
|
@@ -2006,8 +2006,8 @@ const uischema$w = {
|
|
|
2006
2006
|
}
|
|
2007
2007
|
]
|
|
2008
2008
|
};
|
|
2009
|
-
const data$
|
|
2010
|
-
...data$
|
|
2009
|
+
const data$z = {
|
|
2010
|
+
...data$A,
|
|
2011
2011
|
recurrence: 'Daily',
|
|
2012
2012
|
recurrenceInterval: 5
|
|
2013
2013
|
};
|
|
@@ -2015,21 +2015,21 @@ registerExamples([
|
|
|
2015
2015
|
{
|
|
2016
2016
|
name: 'day4',
|
|
2017
2017
|
label: 'Day 4',
|
|
2018
|
-
data: data$
|
|
2019
|
-
schema: schema$
|
|
2020
|
-
uischema: uischema$
|
|
2018
|
+
data: data$z,
|
|
2019
|
+
schema: schema$x,
|
|
2020
|
+
uischema: uischema$x
|
|
2021
2021
|
}
|
|
2022
2022
|
]);
|
|
2023
2023
|
|
|
2024
2024
|
var day4 = /*#__PURE__*/Object.freeze({
|
|
2025
2025
|
__proto__: null,
|
|
2026
|
-
schema: schema$
|
|
2027
|
-
uischema: uischema$
|
|
2028
|
-
data: data$
|
|
2026
|
+
schema: schema$x,
|
|
2027
|
+
uischema: uischema$x,
|
|
2028
|
+
data: data$z
|
|
2029
2029
|
});
|
|
2030
2030
|
|
|
2031
|
-
const schema$
|
|
2032
|
-
const uischema$
|
|
2031
|
+
const schema$w = schema$x;
|
|
2032
|
+
const uischema$w = {
|
|
2033
2033
|
type: 'VerticalLayout',
|
|
2034
2034
|
elements: [
|
|
2035
2035
|
{
|
|
@@ -2149,53 +2149,53 @@ const categoryUiSchema = {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
]
|
|
2151
2151
|
};
|
|
2152
|
-
const data$
|
|
2152
|
+
const data$y = data$z;
|
|
2153
2153
|
registerExamples([
|
|
2154
2154
|
{
|
|
2155
2155
|
name: 'day5',
|
|
2156
2156
|
label: 'Day 5',
|
|
2157
|
-
data: data$
|
|
2158
|
-
schema: schema$
|
|
2159
|
-
uischema: uischema$
|
|
2157
|
+
data: data$y,
|
|
2158
|
+
schema: schema$w,
|
|
2159
|
+
uischema: uischema$w
|
|
2160
2160
|
},
|
|
2161
2161
|
{
|
|
2162
2162
|
name: 'day5_category',
|
|
2163
2163
|
label: 'Day 5 With Category',
|
|
2164
|
-
data: data$
|
|
2165
|
-
schema: schema$
|
|
2164
|
+
data: data$y,
|
|
2165
|
+
schema: schema$w,
|
|
2166
2166
|
uischema: categoryUiSchema
|
|
2167
2167
|
}
|
|
2168
2168
|
]);
|
|
2169
2169
|
|
|
2170
2170
|
var day5 = /*#__PURE__*/Object.freeze({
|
|
2171
2171
|
__proto__: null,
|
|
2172
|
-
schema: schema$
|
|
2173
|
-
uischema: uischema$
|
|
2172
|
+
schema: schema$w,
|
|
2173
|
+
uischema: uischema$w,
|
|
2174
2174
|
categoryUiSchema: categoryUiSchema,
|
|
2175
|
-
data: data$
|
|
2175
|
+
data: data$y
|
|
2176
2176
|
});
|
|
2177
2177
|
|
|
2178
|
-
const schema$
|
|
2179
|
-
const uischema$
|
|
2180
|
-
const data$
|
|
2178
|
+
const schema$v = schema$w;
|
|
2179
|
+
const uischema$v = uischema$w;
|
|
2180
|
+
const data$x = data$y;
|
|
2181
2181
|
registerExamples([
|
|
2182
2182
|
{
|
|
2183
2183
|
name: 'day6',
|
|
2184
2184
|
label: 'Day 6',
|
|
2185
|
-
data: data$
|
|
2186
|
-
schema: schema$
|
|
2187
|
-
uischema: uischema$
|
|
2185
|
+
data: data$x,
|
|
2186
|
+
schema: schema$v,
|
|
2187
|
+
uischema: uischema$v
|
|
2188
2188
|
}
|
|
2189
2189
|
]);
|
|
2190
2190
|
|
|
2191
2191
|
var day6 = /*#__PURE__*/Object.freeze({
|
|
2192
2192
|
__proto__: null,
|
|
2193
|
-
schema: schema$
|
|
2194
|
-
uischema: uischema$
|
|
2195
|
-
data: data$
|
|
2193
|
+
schema: schema$v,
|
|
2194
|
+
uischema: uischema$v,
|
|
2195
|
+
data: data$x
|
|
2196
2196
|
});
|
|
2197
2197
|
|
|
2198
|
-
const schema$
|
|
2198
|
+
const schema$u = {
|
|
2199
2199
|
type: 'object',
|
|
2200
2200
|
properties: {
|
|
2201
2201
|
schemaBased: {
|
|
@@ -2237,7 +2237,7 @@ const schema$t = {
|
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
};
|
|
2240
|
-
const uischema$
|
|
2240
|
+
const uischema$u = {
|
|
2241
2241
|
type: 'VerticalLayout',
|
|
2242
2242
|
elements: [
|
|
2243
2243
|
{
|
|
@@ -2296,7 +2296,7 @@ const uischema$t = {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
]
|
|
2298
2298
|
};
|
|
2299
|
-
const data$
|
|
2299
|
+
const data$w = {
|
|
2300
2300
|
schemaBased: {
|
|
2301
2301
|
date: new Date().toISOString().substr(0, 10),
|
|
2302
2302
|
time: '13:37',
|
|
@@ -2312,9 +2312,9 @@ registerExamples([
|
|
|
2312
2312
|
{
|
|
2313
2313
|
name: 'dates',
|
|
2314
2314
|
label: 'Dates',
|
|
2315
|
-
data: data$
|
|
2316
|
-
schema: schema$
|
|
2317
|
-
uischema: uischema$
|
|
2315
|
+
data: data$w,
|
|
2316
|
+
schema: schema$u,
|
|
2317
|
+
uischema: uischema$u
|
|
2318
2318
|
}
|
|
2319
2319
|
]);
|
|
2320
2320
|
|
|
@@ -2322,7 +2322,7 @@ var dates = /*#__PURE__*/Object.freeze({
|
|
|
2322
2322
|
__proto__: null
|
|
2323
2323
|
});
|
|
2324
2324
|
|
|
2325
|
-
const actions$
|
|
2325
|
+
const actions$3 = [
|
|
2326
2326
|
{
|
|
2327
2327
|
'label': 'Change data',
|
|
2328
2328
|
'apply': (props) => {
|
|
@@ -2340,7 +2340,7 @@ registerExamples([
|
|
|
2340
2340
|
schema: undefined,
|
|
2341
2341
|
uischema: undefined,
|
|
2342
2342
|
data: { name: 'bla' },
|
|
2343
|
-
actions: actions$
|
|
2343
|
+
actions: actions$3
|
|
2344
2344
|
}
|
|
2345
2345
|
]);
|
|
2346
2346
|
|
|
@@ -2348,47 +2348,47 @@ var dynamic = /*#__PURE__*/Object.freeze({
|
|
|
2348
2348
|
__proto__: null
|
|
2349
2349
|
});
|
|
2350
2350
|
|
|
2351
|
-
const schema$
|
|
2352
|
-
const uischema$
|
|
2353
|
-
const data$
|
|
2351
|
+
const schema$t = undefined;
|
|
2352
|
+
const uischema$t = undefined;
|
|
2353
|
+
const data$v = data$L;
|
|
2354
2354
|
registerExamples([
|
|
2355
2355
|
{
|
|
2356
2356
|
name: 'generate',
|
|
2357
2357
|
label: 'Generate both Schemas',
|
|
2358
|
-
data: data$
|
|
2359
|
-
schema: schema$
|
|
2360
|
-
uischema: uischema$
|
|
2358
|
+
data: data$v,
|
|
2359
|
+
schema: schema$t,
|
|
2360
|
+
uischema: uischema$t
|
|
2361
2361
|
}
|
|
2362
2362
|
]);
|
|
2363
2363
|
|
|
2364
2364
|
var generate = /*#__PURE__*/Object.freeze({
|
|
2365
2365
|
__proto__: null,
|
|
2366
|
-
schema: schema$
|
|
2367
|
-
uischema: uischema$
|
|
2368
|
-
data: data$
|
|
2366
|
+
schema: schema$t,
|
|
2367
|
+
uischema: uischema$t,
|
|
2368
|
+
data: data$v
|
|
2369
2369
|
});
|
|
2370
2370
|
|
|
2371
|
-
const schema$
|
|
2372
|
-
const uischema$
|
|
2373
|
-
const data$
|
|
2371
|
+
const schema$s = personCoreSchema;
|
|
2372
|
+
const uischema$s = undefined;
|
|
2373
|
+
const data$u = data$L;
|
|
2374
2374
|
registerExamples([
|
|
2375
2375
|
{
|
|
2376
2376
|
name: 'generate-ui',
|
|
2377
2377
|
label: 'Generate UI Schema',
|
|
2378
|
-
data: data$
|
|
2379
|
-
schema: schema$
|
|
2380
|
-
uischema: uischema$
|
|
2378
|
+
data: data$u,
|
|
2379
|
+
schema: schema$s,
|
|
2380
|
+
uischema: uischema$s
|
|
2381
2381
|
}
|
|
2382
2382
|
]);
|
|
2383
2383
|
|
|
2384
2384
|
var generateUI = /*#__PURE__*/Object.freeze({
|
|
2385
2385
|
__proto__: null,
|
|
2386
|
-
schema: schema$
|
|
2387
|
-
uischema: uischema$
|
|
2388
|
-
data: data$
|
|
2386
|
+
schema: schema$s,
|
|
2387
|
+
uischema: uischema$s,
|
|
2388
|
+
data: data$u
|
|
2389
2389
|
});
|
|
2390
2390
|
|
|
2391
|
-
const schema$
|
|
2391
|
+
const schema$r = schema$J;
|
|
2392
2392
|
const uischemaVertical = {
|
|
2393
2393
|
type: 'VerticalLayout',
|
|
2394
2394
|
elements: [
|
|
@@ -2476,49 +2476,49 @@ const uischemaComplex = {
|
|
|
2476
2476
|
}
|
|
2477
2477
|
]
|
|
2478
2478
|
};
|
|
2479
|
-
const data$
|
|
2479
|
+
const data$t = data$L;
|
|
2480
2480
|
registerExamples([
|
|
2481
2481
|
{
|
|
2482
2482
|
name: 'layout-vertical',
|
|
2483
2483
|
label: 'Layout Vertical',
|
|
2484
|
-
data: data$
|
|
2485
|
-
schema: schema$
|
|
2484
|
+
data: data$t,
|
|
2485
|
+
schema: schema$r,
|
|
2486
2486
|
uischema: uischemaVertical
|
|
2487
2487
|
},
|
|
2488
2488
|
{
|
|
2489
2489
|
name: 'layout-horizontal',
|
|
2490
2490
|
label: 'Layout Horizontal',
|
|
2491
|
-
data: data$
|
|
2492
|
-
schema: schema$
|
|
2491
|
+
data: data$t,
|
|
2492
|
+
schema: schema$r,
|
|
2493
2493
|
uischema: uischemaHorizontal
|
|
2494
2494
|
},
|
|
2495
2495
|
{
|
|
2496
2496
|
name: 'layout-group',
|
|
2497
2497
|
label: 'Layout Group',
|
|
2498
|
-
data: data$
|
|
2499
|
-
schema: schema$
|
|
2498
|
+
data: data$t,
|
|
2499
|
+
schema: schema$r,
|
|
2500
2500
|
uischema: uischemaGroup
|
|
2501
2501
|
},
|
|
2502
2502
|
{
|
|
2503
2503
|
name: 'layout-complex',
|
|
2504
2504
|
label: 'Layout Complex',
|
|
2505
|
-
data: data$
|
|
2506
|
-
schema: schema$
|
|
2505
|
+
data: data$t,
|
|
2506
|
+
schema: schema$r,
|
|
2507
2507
|
uischema: uischemaComplex
|
|
2508
2508
|
}
|
|
2509
2509
|
]);
|
|
2510
2510
|
|
|
2511
2511
|
var layout = /*#__PURE__*/Object.freeze({
|
|
2512
2512
|
__proto__: null,
|
|
2513
|
-
schema: schema$
|
|
2513
|
+
schema: schema$r,
|
|
2514
2514
|
uischemaVertical: uischemaVertical,
|
|
2515
2515
|
uischemaHorizontal: uischemaHorizontal,
|
|
2516
2516
|
uischemaGroup: uischemaGroup,
|
|
2517
2517
|
uischemaComplex: uischemaComplex,
|
|
2518
|
-
data: data$
|
|
2518
|
+
data: data$t
|
|
2519
2519
|
});
|
|
2520
2520
|
|
|
2521
|
-
const schema$
|
|
2521
|
+
const schema$q = {
|
|
2522
2522
|
type: 'object',
|
|
2523
2523
|
properties: {
|
|
2524
2524
|
name: {
|
|
@@ -2540,7 +2540,7 @@ const schema$p = {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
}
|
|
2542
2542
|
};
|
|
2543
|
-
const uischema$
|
|
2543
|
+
const uischema$r = {
|
|
2544
2544
|
type: 'VerticalLayout',
|
|
2545
2545
|
elements: [
|
|
2546
2546
|
{
|
|
@@ -2598,7 +2598,7 @@ const uischema$q = {
|
|
|
2598
2598
|
}
|
|
2599
2599
|
]
|
|
2600
2600
|
};
|
|
2601
|
-
const data$
|
|
2601
|
+
const data$s = {
|
|
2602
2602
|
name: 'John Doe',
|
|
2603
2603
|
dead: false,
|
|
2604
2604
|
vegetables: false,
|
|
@@ -2607,20 +2607,20 @@ registerExamples([
|
|
|
2607
2607
|
{
|
|
2608
2608
|
name: 'rule',
|
|
2609
2609
|
label: 'Rule',
|
|
2610
|
-
data: data$
|
|
2611
|
-
schema: schema$
|
|
2612
|
-
uischema: uischema$
|
|
2610
|
+
data: data$s,
|
|
2611
|
+
schema: schema$q,
|
|
2612
|
+
uischema: uischema$r
|
|
2613
2613
|
}
|
|
2614
2614
|
]);
|
|
2615
2615
|
|
|
2616
2616
|
var rule = /*#__PURE__*/Object.freeze({
|
|
2617
2617
|
__proto__: null,
|
|
2618
|
-
schema: schema$
|
|
2619
|
-
uischema: uischema$
|
|
2620
|
-
data: data$
|
|
2618
|
+
schema: schema$q,
|
|
2619
|
+
uischema: uischema$r,
|
|
2620
|
+
data: data$s
|
|
2621
2621
|
});
|
|
2622
2622
|
|
|
2623
|
-
const schema$
|
|
2623
|
+
const schema$p = {
|
|
2624
2624
|
type: 'object',
|
|
2625
2625
|
properties: {
|
|
2626
2626
|
toggleTopLayout: {
|
|
@@ -2640,7 +2640,7 @@ const schema$o = {
|
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
2642
|
};
|
|
2643
|
-
const uischema$
|
|
2643
|
+
const uischema$q = {
|
|
2644
2644
|
type: 'VerticalLayout',
|
|
2645
2645
|
rule: {
|
|
2646
2646
|
effect: 'ENABLE',
|
|
@@ -2682,12 +2682,12 @@ const uischema$p = {
|
|
|
2682
2682
|
}
|
|
2683
2683
|
]
|
|
2684
2684
|
};
|
|
2685
|
-
const data$
|
|
2685
|
+
const data$r = {
|
|
2686
2686
|
toggleTopLayout: true,
|
|
2687
2687
|
toggleBottomLayout: true,
|
|
2688
2688
|
toggleControl: true
|
|
2689
2689
|
};
|
|
2690
|
-
const actions$
|
|
2690
|
+
const actions$2 = [
|
|
2691
2691
|
{
|
|
2692
2692
|
'label': 'Enable/Disable top layout',
|
|
2693
2693
|
'apply': (props) => {
|
|
@@ -2711,21 +2711,21 @@ registerExamples([
|
|
|
2711
2711
|
{
|
|
2712
2712
|
name: 'rule-enable',
|
|
2713
2713
|
label: 'Rule Inheritance',
|
|
2714
|
-
data: data$
|
|
2715
|
-
schema: schema$
|
|
2716
|
-
uischema: uischema$
|
|
2717
|
-
actions: actions$
|
|
2714
|
+
data: data$r,
|
|
2715
|
+
schema: schema$p,
|
|
2716
|
+
uischema: uischema$q,
|
|
2717
|
+
actions: actions$2
|
|
2718
2718
|
}
|
|
2719
2719
|
]);
|
|
2720
2720
|
|
|
2721
2721
|
var ruleInheritance = /*#__PURE__*/Object.freeze({
|
|
2722
2722
|
__proto__: null,
|
|
2723
|
-
schema: schema$
|
|
2724
|
-
uischema: uischema$
|
|
2725
|
-
data: data$
|
|
2723
|
+
schema: schema$p,
|
|
2724
|
+
uischema: uischema$q,
|
|
2725
|
+
data: data$r
|
|
2726
2726
|
});
|
|
2727
2727
|
|
|
2728
|
-
const schema$
|
|
2728
|
+
const schema$o = {
|
|
2729
2729
|
type: 'object',
|
|
2730
2730
|
properties: {
|
|
2731
2731
|
postalCode: {
|
|
@@ -2740,7 +2740,7 @@ const schema$n = {
|
|
|
2740
2740
|
},
|
|
2741
2741
|
required: ['postalCode']
|
|
2742
2742
|
};
|
|
2743
|
-
const uischema$
|
|
2743
|
+
const uischema$p = {
|
|
2744
2744
|
type: 'VerticalLayout',
|
|
2745
2745
|
elements: [
|
|
2746
2746
|
{
|
|
@@ -2760,7 +2760,7 @@ const uischema$o = {
|
|
|
2760
2760
|
}
|
|
2761
2761
|
]
|
|
2762
2762
|
};
|
|
2763
|
-
const data$
|
|
2763
|
+
const data$q = {
|
|
2764
2764
|
postalCode: '12345'
|
|
2765
2765
|
};
|
|
2766
2766
|
const config = {
|
|
@@ -2773,28 +2773,28 @@ registerExamples([
|
|
|
2773
2773
|
{
|
|
2774
2774
|
name: 'configDefault',
|
|
2775
2775
|
label: 'Configuration (Default)',
|
|
2776
|
-
data: data$
|
|
2777
|
-
schema: schema$
|
|
2778
|
-
uischema: uischema$
|
|
2776
|
+
data: data$q,
|
|
2777
|
+
schema: schema$o,
|
|
2778
|
+
uischema: uischema$p
|
|
2779
2779
|
},
|
|
2780
2780
|
{
|
|
2781
2781
|
name: 'configCustom',
|
|
2782
2782
|
label: 'Configuration (Custom)',
|
|
2783
|
-
data: data$
|
|
2784
|
-
schema: schema$
|
|
2785
|
-
uischema: uischema$
|
|
2783
|
+
data: data$q,
|
|
2784
|
+
schema: schema$o,
|
|
2785
|
+
uischema: uischema$p,
|
|
2786
2786
|
config
|
|
2787
2787
|
}
|
|
2788
2788
|
]);
|
|
2789
2789
|
|
|
2790
2790
|
var config$1 = /*#__PURE__*/Object.freeze({
|
|
2791
2791
|
__proto__: null,
|
|
2792
|
-
schema: schema$
|
|
2793
|
-
uischema: uischema$
|
|
2794
|
-
data: data$
|
|
2792
|
+
schema: schema$o,
|
|
2793
|
+
uischema: uischema$p,
|
|
2794
|
+
data: data$q
|
|
2795
2795
|
});
|
|
2796
2796
|
|
|
2797
|
-
const schema$
|
|
2797
|
+
const schema$n = {
|
|
2798
2798
|
type: 'object',
|
|
2799
2799
|
properties: {
|
|
2800
2800
|
zipCode: {
|
|
@@ -2811,7 +2811,7 @@ const schema$m = {
|
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
2813
|
};
|
|
2814
|
-
const uischema$
|
|
2814
|
+
const uischema$o = {
|
|
2815
2815
|
type: 'VerticalLayout',
|
|
2816
2816
|
elements: [
|
|
2817
2817
|
{
|
|
@@ -2848,7 +2848,7 @@ const uischema$n = {
|
|
|
2848
2848
|
}
|
|
2849
2849
|
]
|
|
2850
2850
|
};
|
|
2851
|
-
const data$
|
|
2851
|
+
const data$p = {
|
|
2852
2852
|
zipCode: '12345',
|
|
2853
2853
|
zipCodeWithoutTrim: '12345678',
|
|
2854
2854
|
zipCodeWithoutRestrict: '12345678'
|
|
@@ -2857,20 +2857,20 @@ registerExamples([
|
|
|
2857
2857
|
{
|
|
2858
2858
|
name: 'text',
|
|
2859
2859
|
label: 'Text',
|
|
2860
|
-
data: data$
|
|
2861
|
-
schema: schema$
|
|
2862
|
-
uischema: uischema$
|
|
2860
|
+
data: data$p,
|
|
2861
|
+
schema: schema$n,
|
|
2862
|
+
uischema: uischema$o
|
|
2863
2863
|
}
|
|
2864
2864
|
]);
|
|
2865
2865
|
|
|
2866
2866
|
var text = /*#__PURE__*/Object.freeze({
|
|
2867
2867
|
__proto__: null,
|
|
2868
|
-
schema: schema$
|
|
2869
|
-
uischema: uischema$
|
|
2870
|
-
data: data$
|
|
2868
|
+
schema: schema$n,
|
|
2869
|
+
uischema: uischema$o,
|
|
2870
|
+
data: data$p
|
|
2871
2871
|
});
|
|
2872
2872
|
|
|
2873
|
-
const schema$
|
|
2873
|
+
const schema$m = {
|
|
2874
2874
|
type: 'object',
|
|
2875
2875
|
properties: {
|
|
2876
2876
|
price: {
|
|
@@ -2887,7 +2887,7 @@ const schema$l = {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
}
|
|
2889
2889
|
};
|
|
2890
|
-
const uischema$
|
|
2890
|
+
const uischema$n = {
|
|
2891
2891
|
type: 'VerticalLayout',
|
|
2892
2892
|
elements: [
|
|
2893
2893
|
{
|
|
@@ -2920,22 +2920,22 @@ const uischema$m = {
|
|
|
2920
2920
|
}
|
|
2921
2921
|
]
|
|
2922
2922
|
};
|
|
2923
|
-
const data$
|
|
2923
|
+
const data$o = {};
|
|
2924
2924
|
registerExamples([
|
|
2925
2925
|
{
|
|
2926
2926
|
name: 'numbers',
|
|
2927
2927
|
label: 'Numbers',
|
|
2928
|
-
data: data$
|
|
2929
|
-
schema: schema$
|
|
2930
|
-
uischema: uischema$
|
|
2928
|
+
data: data$o,
|
|
2929
|
+
schema: schema$m,
|
|
2930
|
+
uischema: uischema$n
|
|
2931
2931
|
}
|
|
2932
2932
|
]);
|
|
2933
2933
|
|
|
2934
2934
|
var numbers = /*#__PURE__*/Object.freeze({
|
|
2935
2935
|
__proto__: null,
|
|
2936
|
-
schema: schema$
|
|
2937
|
-
uischema: uischema$
|
|
2938
|
-
data: data$
|
|
2936
|
+
schema: schema$m,
|
|
2937
|
+
uischema: uischema$n,
|
|
2938
|
+
data: data$o
|
|
2939
2939
|
});
|
|
2940
2940
|
|
|
2941
2941
|
const orderSchema = {
|
|
@@ -2969,7 +2969,7 @@ const orderSchema = {
|
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
2971
|
};
|
|
2972
|
-
const uischema$
|
|
2972
|
+
const uischema$m = {
|
|
2973
2973
|
type: 'VerticalLayout',
|
|
2974
2974
|
elements: [
|
|
2975
2975
|
{
|
|
@@ -3004,7 +3004,7 @@ const uischema$l = {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
]
|
|
3006
3006
|
};
|
|
3007
|
-
const data$
|
|
3007
|
+
const data$n = {
|
|
3008
3008
|
orderId: '123456',
|
|
3009
3009
|
purchaseDate: '1985-06-02',
|
|
3010
3010
|
price: 16,
|
|
@@ -3017,20 +3017,20 @@ registerExamples([
|
|
|
3017
3017
|
{
|
|
3018
3018
|
name: 'scope',
|
|
3019
3019
|
label: 'Scope',
|
|
3020
|
-
data: data$
|
|
3020
|
+
data: data$n,
|
|
3021
3021
|
schema: orderSchema,
|
|
3022
|
-
uischema: uischema$
|
|
3022
|
+
uischema: uischema$m
|
|
3023
3023
|
}
|
|
3024
3024
|
]);
|
|
3025
3025
|
|
|
3026
3026
|
var scope = /*#__PURE__*/Object.freeze({
|
|
3027
3027
|
__proto__: null,
|
|
3028
3028
|
orderSchema: orderSchema,
|
|
3029
|
-
uischema: uischema$
|
|
3030
|
-
data: data$
|
|
3029
|
+
uischema: uischema$m,
|
|
3030
|
+
data: data$n
|
|
3031
3031
|
});
|
|
3032
3032
|
|
|
3033
|
-
const data$
|
|
3033
|
+
const data$m = {
|
|
3034
3034
|
orders: [
|
|
3035
3035
|
{
|
|
3036
3036
|
customer: {
|
|
@@ -3059,7 +3059,7 @@ const data$l = {
|
|
|
3059
3059
|
}
|
|
3060
3060
|
]
|
|
3061
3061
|
};
|
|
3062
|
-
const schema$
|
|
3062
|
+
const schema$l = {
|
|
3063
3063
|
definitions: {
|
|
3064
3064
|
order: {
|
|
3065
3065
|
type: 'object',
|
|
@@ -3109,7 +3109,7 @@ const schema$k = {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
}
|
|
3111
3111
|
};
|
|
3112
|
-
const uischema$
|
|
3112
|
+
const uischema$l = {
|
|
3113
3113
|
type: 'ListWithDetail',
|
|
3114
3114
|
scope: '#/properties/orders',
|
|
3115
3115
|
options: {
|
|
@@ -3290,17 +3290,17 @@ registerExamples([
|
|
|
3290
3290
|
{
|
|
3291
3291
|
name: 'list-with-detail',
|
|
3292
3292
|
label: 'List With Detail',
|
|
3293
|
-
data: data$
|
|
3294
|
-
schema: schema$
|
|
3295
|
-
uischema: uischema$
|
|
3293
|
+
data: data$m,
|
|
3294
|
+
schema: schema$l,
|
|
3295
|
+
uischema: uischema$l
|
|
3296
3296
|
}
|
|
3297
3297
|
]);
|
|
3298
3298
|
registerExamples([
|
|
3299
3299
|
{
|
|
3300
3300
|
name: 'list-with-detail-no-labelref',
|
|
3301
3301
|
label: 'List With Detail (No Label Ref)',
|
|
3302
|
-
data: data$
|
|
3303
|
-
schema: schema$
|
|
3302
|
+
data: data$m,
|
|
3303
|
+
schema: schema$l,
|
|
3304
3304
|
uischema: uischemaNoLabelRef
|
|
3305
3305
|
}
|
|
3306
3306
|
]);
|
|
@@ -3309,7 +3309,7 @@ var listWithDetail = /*#__PURE__*/Object.freeze({
|
|
|
3309
3309
|
__proto__: null
|
|
3310
3310
|
});
|
|
3311
3311
|
|
|
3312
|
-
const data$
|
|
3312
|
+
const data$l = {
|
|
3313
3313
|
warehouseitems: [
|
|
3314
3314
|
{
|
|
3315
3315
|
name: 'Fantasy Book',
|
|
@@ -3337,7 +3337,7 @@ const data$k = {
|
|
|
3337
3337
|
}
|
|
3338
3338
|
]
|
|
3339
3339
|
};
|
|
3340
|
-
const schema$
|
|
3340
|
+
const schema$k = {
|
|
3341
3341
|
definitions: {
|
|
3342
3342
|
warehouseitem: {
|
|
3343
3343
|
type: 'object',
|
|
@@ -3368,7 +3368,7 @@ const schema$j = {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
}
|
|
3370
3370
|
};
|
|
3371
|
-
const uischema$
|
|
3371
|
+
const uischema$k = {
|
|
3372
3372
|
type: 'ListWithDetail',
|
|
3373
3373
|
scope: '#/properties/warehouseitems',
|
|
3374
3374
|
options: {
|
|
@@ -3379,9 +3379,9 @@ registerExamples([
|
|
|
3379
3379
|
{
|
|
3380
3380
|
name: 'list-with-detail-registered',
|
|
3381
3381
|
label: 'List With Detail (Registered)',
|
|
3382
|
-
data: data$
|
|
3383
|
-
schema: schema$
|
|
3384
|
-
uischema: uischema$
|
|
3382
|
+
data: data$l,
|
|
3383
|
+
schema: schema$k,
|
|
3384
|
+
uischema: uischema$k
|
|
3385
3385
|
}
|
|
3386
3386
|
]);
|
|
3387
3387
|
|
|
@@ -3389,7 +3389,7 @@ var listWithDetailRegistered = /*#__PURE__*/Object.freeze({
|
|
|
3389
3389
|
__proto__: null
|
|
3390
3390
|
});
|
|
3391
3391
|
|
|
3392
|
-
const schema$
|
|
3392
|
+
const schema$j = {
|
|
3393
3393
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
3394
3394
|
type: 'object',
|
|
3395
3395
|
properties: {
|
|
@@ -3450,7 +3450,7 @@ const uischemaNonRoot = {
|
|
|
3450
3450
|
}
|
|
3451
3451
|
]
|
|
3452
3452
|
};
|
|
3453
|
-
const data$
|
|
3453
|
+
const data$k = {
|
|
3454
3454
|
address: {
|
|
3455
3455
|
street_address: '1600 Pennsylvania Avenue NW',
|
|
3456
3456
|
city: 'Washington',
|
|
@@ -3461,22 +3461,22 @@ registerExamples([
|
|
|
3461
3461
|
{
|
|
3462
3462
|
name: 'rootObject',
|
|
3463
3463
|
label: 'Root Object',
|
|
3464
|
-
data: data$
|
|
3465
|
-
schema: schema$
|
|
3464
|
+
data: data$k,
|
|
3465
|
+
schema: schema$j,
|
|
3466
3466
|
uischema: uischemaRoot
|
|
3467
3467
|
},
|
|
3468
3468
|
{
|
|
3469
3469
|
name: 'object',
|
|
3470
3470
|
label: 'Object',
|
|
3471
|
-
data: data$
|
|
3472
|
-
schema: schema$
|
|
3471
|
+
data: data$k,
|
|
3472
|
+
schema: schema$j,
|
|
3473
3473
|
uischema: uischemaNonRoot
|
|
3474
3474
|
}
|
|
3475
3475
|
]);
|
|
3476
3476
|
|
|
3477
3477
|
var object = /*#__PURE__*/Object.freeze({
|
|
3478
3478
|
__proto__: null,
|
|
3479
|
-
schema: schema$
|
|
3479
|
+
schema: schema$j,
|
|
3480
3480
|
uischemaRoot: uischemaRoot,
|
|
3481
3481
|
uischemaNonRoot: uischemaNonRoot
|
|
3482
3482
|
});
|
|
@@ -3490,7 +3490,7 @@ const onChange$2 = (dispatch) => (extensionState) => ({ errors }) => {
|
|
|
3490
3490
|
localiseFunc(errors);
|
|
3491
3491
|
dispatch(updateErrors(errors));
|
|
3492
3492
|
};
|
|
3493
|
-
const uischema$
|
|
3493
|
+
const uischema$j = {
|
|
3494
3494
|
type: 'VerticalLayout',
|
|
3495
3495
|
elements: [
|
|
3496
3496
|
{
|
|
@@ -3525,7 +3525,7 @@ const uischema$i = {
|
|
|
3525
3525
|
}
|
|
3526
3526
|
]
|
|
3527
3527
|
};
|
|
3528
|
-
const data$
|
|
3528
|
+
const data$j = {
|
|
3529
3529
|
vegetarian: false,
|
|
3530
3530
|
birthDate: '1985-06-02',
|
|
3531
3531
|
personalData: {
|
|
@@ -3537,15 +3537,80 @@ registerExamples([
|
|
|
3537
3537
|
{
|
|
3538
3538
|
name: 'i18n',
|
|
3539
3539
|
label: 'Person (i18n)',
|
|
3540
|
-
data: data$
|
|
3540
|
+
data: data$j,
|
|
3541
3541
|
schema: personCoreSchema,
|
|
3542
|
-
uischema: uischema$
|
|
3542
|
+
uischema: uischema$j
|
|
3543
3543
|
}
|
|
3544
3544
|
]);
|
|
3545
3545
|
|
|
3546
3546
|
var i18n = /*#__PURE__*/Object.freeze({
|
|
3547
3547
|
__proto__: null,
|
|
3548
3548
|
onChange: onChange$2,
|
|
3549
|
+
uischema: uischema$j,
|
|
3550
|
+
data: data$j
|
|
3551
|
+
});
|
|
3552
|
+
|
|
3553
|
+
const schema$i = {
|
|
3554
|
+
type: 'object',
|
|
3555
|
+
definitions: {
|
|
3556
|
+
import: {
|
|
3557
|
+
title: 'Import',
|
|
3558
|
+
type: 'object',
|
|
3559
|
+
properties: {
|
|
3560
|
+
eClass: {
|
|
3561
|
+
const: 'http://my_schema/1.0.0#//Import'
|
|
3562
|
+
},
|
|
3563
|
+
document: {
|
|
3564
|
+
type: 'string'
|
|
3565
|
+
},
|
|
3566
|
+
package: {
|
|
3567
|
+
type: 'string'
|
|
3568
|
+
},
|
|
3569
|
+
prefix: {
|
|
3570
|
+
type: 'string'
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
}
|
|
3574
|
+
},
|
|
3575
|
+
properties: {
|
|
3576
|
+
import: {
|
|
3577
|
+
type: 'array',
|
|
3578
|
+
items: {
|
|
3579
|
+
$ref: '#/definitions/import'
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
};
|
|
3584
|
+
const uischema$i = undefined;
|
|
3585
|
+
const data$i = {
|
|
3586
|
+
import: [
|
|
3587
|
+
{
|
|
3588
|
+
document: 'Document1',
|
|
3589
|
+
package: 'Package1',
|
|
3590
|
+
prefix: 'Prefix'
|
|
3591
|
+
}
|
|
3592
|
+
]
|
|
3593
|
+
};
|
|
3594
|
+
registerExamples([
|
|
3595
|
+
{
|
|
3596
|
+
name: '1948_with',
|
|
3597
|
+
label: 'Issue 1948 with schema',
|
|
3598
|
+
data: data$i,
|
|
3599
|
+
schema: schema$i,
|
|
3600
|
+
uischema: uischema$i
|
|
3601
|
+
},
|
|
3602
|
+
{
|
|
3603
|
+
name: '1948_without',
|
|
3604
|
+
label: 'Issue 1948 w/o schema',
|
|
3605
|
+
data: data$i,
|
|
3606
|
+
schema: undefined,
|
|
3607
|
+
uischema: uischema$i
|
|
3608
|
+
}
|
|
3609
|
+
]);
|
|
3610
|
+
|
|
3611
|
+
var _1948 = /*#__PURE__*/Object.freeze({
|
|
3612
|
+
__proto__: null,
|
|
3613
|
+
schema: schema$i,
|
|
3549
3614
|
uischema: uischema$i,
|
|
3550
3615
|
data: data$i
|
|
3551
3616
|
});
|
|
@@ -3671,7 +3736,7 @@ const uischemas = [
|
|
|
3671
3736
|
},
|
|
3672
3737
|
},
|
|
3673
3738
|
];
|
|
3674
|
-
const actions = [
|
|
3739
|
+
const actions$1 = [
|
|
3675
3740
|
{
|
|
3676
3741
|
'label': 'Register Issue 1220 UISchema',
|
|
3677
3742
|
'apply': (props) => {
|
|
@@ -3699,7 +3764,7 @@ registerExamples([
|
|
|
3699
3764
|
data: data$g,
|
|
3700
3765
|
schema: schema$g,
|
|
3701
3766
|
uischema: uischema$g,
|
|
3702
|
-
actions
|
|
3767
|
+
actions: actions$1
|
|
3703
3768
|
}
|
|
3704
3769
|
]);
|
|
3705
3770
|
|
|
@@ -6080,6 +6145,38 @@ var conditionalSchemaCompositions = /*#__PURE__*/Object.freeze({
|
|
|
6080
6145
|
uischema: uischema$1
|
|
6081
6146
|
});
|
|
6082
6147
|
|
|
6148
|
+
const additionalErrors = [];
|
|
6149
|
+
const actions = [{
|
|
6150
|
+
label: 'Add additional error',
|
|
6151
|
+
apply: (props) => {
|
|
6152
|
+
additionalErrors.push({
|
|
6153
|
+
instancePath: '/personalData/age',
|
|
6154
|
+
message: `New error #${additionalErrors.length + 1}`,
|
|
6155
|
+
schemaPath: '',
|
|
6156
|
+
keyword: '',
|
|
6157
|
+
params: {}
|
|
6158
|
+
});
|
|
6159
|
+
return {
|
|
6160
|
+
...props,
|
|
6161
|
+
additionalErrors: [...additionalErrors]
|
|
6162
|
+
};
|
|
6163
|
+
}
|
|
6164
|
+
}];
|
|
6165
|
+
registerExamples([
|
|
6166
|
+
{
|
|
6167
|
+
name: 'additional-errors',
|
|
6168
|
+
label: 'Additional errors',
|
|
6169
|
+
data: data$L,
|
|
6170
|
+
schema: schema$J,
|
|
6171
|
+
uischema: uischema$J,
|
|
6172
|
+
actions
|
|
6173
|
+
}
|
|
6174
|
+
]);
|
|
6175
|
+
|
|
6176
|
+
var additionalErrors$1 = /*#__PURE__*/Object.freeze({
|
|
6177
|
+
__proto__: null
|
|
6178
|
+
});
|
|
6179
|
+
|
|
6083
6180
|
const schema = {
|
|
6084
6181
|
type: 'object',
|
|
6085
6182
|
properties: {
|
|
@@ -6108,5 +6205,5 @@ var if_then_else = /*#__PURE__*/Object.freeze({
|
|
|
6108
6205
|
data: data
|
|
6109
6206
|
});
|
|
6110
6207
|
|
|
6111
|
-
export { 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 };
|
|
6208
|
+
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, _1948 as issue_1948, 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 };
|
|
6112
6209
|
//# sourceMappingURL=jsonforms-examples.esm.js.map
|