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