@jsonforms/examples 3.0.0-beta.5 → 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/docs/assets/js/search.json +1 -1
- package/docs/globals.html +572 -223
- package/docs/index.html +6 -0
- 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/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 +2 -1
- package/lib/jsonforms-examples.cjs.js +445 -243
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +443 -248
- 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/categorization.ts +15 -3
- package/src/examples/i18n.ts +20 -4
- package/src/index.ts +3 -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$Q = {
|
|
|
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$Q = {
|
|
|
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$P = {
|
|
|
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$P = {
|
|
|
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$O = {
|
|
|
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$O = {
|
|
|
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$N = {
|
|
|
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$N = {
|
|
|
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$M = {
|
|
|
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$M = {
|
|
|
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$L = {
|
|
|
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$K = {
|
|
|
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$K = {
|
|
|
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$J = {
|
|
|
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$J = {
|
|
|
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$I = {
|
|
|
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$I = {
|
|
|
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$H = {
|
|
|
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$H = {
|
|
|
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$G = {
|
|
|
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$G = {
|
|
|
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$F = {
|
|
|
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$F = {
|
|
|
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$E = {
|
|
|
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$E = {
|
|
|
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$E = {
|
|
|
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$B = {
|
|
|
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$B = {
|
|
|
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$A = {
|
|
|
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$z = {
|
|
|
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$y = {
|
|
|
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$y = {
|
|
|
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$x = {
|
|
|
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$x = {
|
|
|
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$u = {
|
|
|
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$u = {
|
|
|
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: [
|
|
@@ -2476,45 +2489,211 @@ const uischemaComplex = {
|
|
|
2476
2489
|
}
|
|
2477
2490
|
]
|
|
2478
2491
|
};
|
|
2479
|
-
const data$
|
|
2492
|
+
const data$u = data$M;
|
|
2480
2493
|
registerExamples([
|
|
2481
2494
|
{
|
|
2482
2495
|
name: 'layout-vertical',
|
|
2483
2496
|
label: 'Layout Vertical',
|
|
2484
|
-
data: data$
|
|
2485
|
-
schema: schema$
|
|
2497
|
+
data: data$u,
|
|
2498
|
+
schema: schema$s,
|
|
2486
2499
|
uischema: uischemaVertical
|
|
2487
2500
|
},
|
|
2488
2501
|
{
|
|
2489
2502
|
name: 'layout-horizontal',
|
|
2490
2503
|
label: 'Layout Horizontal',
|
|
2491
|
-
data: data$
|
|
2492
|
-
schema: schema$
|
|
2504
|
+
data: data$u,
|
|
2505
|
+
schema: schema$s,
|
|
2493
2506
|
uischema: uischemaHorizontal
|
|
2494
2507
|
},
|
|
2495
2508
|
{
|
|
2496
2509
|
name: 'layout-group',
|
|
2497
2510
|
label: 'Layout Group',
|
|
2498
|
-
data: data$
|
|
2499
|
-
schema: schema$
|
|
2511
|
+
data: data$u,
|
|
2512
|
+
schema: schema$s,
|
|
2500
2513
|
uischema: uischemaGroup
|
|
2501
2514
|
},
|
|
2502
2515
|
{
|
|
2503
2516
|
name: 'layout-complex',
|
|
2504
2517
|
label: 'Layout Complex',
|
|
2505
|
-
data: data$
|
|
2506
|
-
schema: schema$
|
|
2518
|
+
data: data$u,
|
|
2519
|
+
schema: schema$s,
|
|
2507
2520
|
uischema: uischemaComplex
|
|
2508
2521
|
}
|
|
2509
2522
|
]);
|
|
2510
2523
|
|
|
2511
2524
|
var layout = /*#__PURE__*/Object.freeze({
|
|
2512
2525
|
__proto__: null,
|
|
2513
|
-
schema: schema$
|
|
2526
|
+
schema: schema$s,
|
|
2514
2527
|
uischemaVertical: uischemaVertical,
|
|
2515
2528
|
uischemaHorizontal: uischemaHorizontal,
|
|
2516
2529
|
uischemaGroup: uischemaGroup,
|
|
2517
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'
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
type: 'Control',
|
|
2648
|
+
scope: '#/properties/address/properties/streetnumber'
|
|
2649
|
+
}
|
|
2650
|
+
]
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
type: 'HorizontalLayout',
|
|
2654
|
+
elements: [
|
|
2655
|
+
{
|
|
2656
|
+
type: 'Control',
|
|
2657
|
+
scope: '#/properties/address/properties/postalCode'
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
type: 'Control',
|
|
2661
|
+
scope: '#/properties/address/properties/city'
|
|
2662
|
+
}
|
|
2663
|
+
]
|
|
2664
|
+
}
|
|
2665
|
+
],
|
|
2666
|
+
rule: {
|
|
2667
|
+
effect: 'ENABLE',
|
|
2668
|
+
condition: {
|
|
2669
|
+
scope: '#/properties/committer',
|
|
2670
|
+
schema: {
|
|
2671
|
+
const: true
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
]
|
|
2677
|
+
};
|
|
2678
|
+
const data$t = {
|
|
2679
|
+
firstName: 'Max',
|
|
2680
|
+
lastName: 'Power',
|
|
2681
|
+
committer: false
|
|
2682
|
+
};
|
|
2683
|
+
registerExamples([
|
|
2684
|
+
{
|
|
2685
|
+
name: '1884',
|
|
2686
|
+
label: 'Issue 1884 - Committer enable/disable Address',
|
|
2687
|
+
data: data$t,
|
|
2688
|
+
schema: schema$r,
|
|
2689
|
+
uischema: uischema$s
|
|
2690
|
+
}
|
|
2691
|
+
]);
|
|
2692
|
+
|
|
2693
|
+
var _1884 = /*#__PURE__*/Object.freeze({
|
|
2694
|
+
__proto__: null,
|
|
2695
|
+
schema: schema$r,
|
|
2696
|
+
uischema: uischema$s,
|
|
2518
2697
|
data: data$t
|
|
2519
2698
|
});
|
|
2520
2699
|
|
|
@@ -3494,7 +3673,8 @@ 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$j = {
|
|
|
3508
3688
|
},
|
|
3509
3689
|
{
|
|
3510
3690
|
type: 'Label',
|
|
3511
|
-
text: '
|
|
3691
|
+
text: 'additionalInformationLabel',
|
|
3512
3692
|
},
|
|
3513
3693
|
{
|
|
3514
3694
|
type: 'HorizontalLayout',
|
|
@@ -3533,13 +3713,26 @@ const data$j = {
|
|
|
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
3729
|
data: data$j,
|
|
3541
3730
|
schema: personCoreSchema,
|
|
3542
|
-
uischema: uischema$j
|
|
3731
|
+
uischema: uischema$j,
|
|
3732
|
+
i18n: {
|
|
3733
|
+
translate: translate,
|
|
3734
|
+
locale: 'en'
|
|
3735
|
+
}
|
|
3543
3736
|
}
|
|
3544
3737
|
]);
|
|
3545
3738
|
|
|
@@ -3547,7 +3740,9 @@ var i18n = /*#__PURE__*/Object.freeze({
|
|
|
3547
3740
|
__proto__: null,
|
|
3548
3741
|
onChange: onChange$2,
|
|
3549
3742
|
uischema: uischema$j,
|
|
3550
|
-
data: data$j
|
|
3743
|
+
data: data$j,
|
|
3744
|
+
translations: translations,
|
|
3745
|
+
translate: translate
|
|
3551
3746
|
});
|
|
3552
3747
|
|
|
3553
3748
|
const schema$i = {
|
|
@@ -6166,9 +6361,9 @@ registerExamples([
|
|
|
6166
6361
|
{
|
|
6167
6362
|
name: 'additional-errors',
|
|
6168
6363
|
label: 'Additional errors',
|
|
6169
|
-
data: data$
|
|
6170
|
-
schema: schema$
|
|
6171
|
-
uischema: uischema$
|
|
6364
|
+
data: data$M,
|
|
6365
|
+
schema: schema$K,
|
|
6366
|
+
uischema: uischema$K,
|
|
6172
6367
|
actions
|
|
6173
6368
|
}
|
|
6174
6369
|
]);
|
|
@@ -6205,5 +6400,5 @@ var if_then_else = /*#__PURE__*/Object.freeze({
|
|
|
6205
6400
|
data: data
|
|
6206
6401
|
});
|
|
6207
6402
|
|
|
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 };
|
|
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 };
|
|
6209
6404
|
//# sourceMappingURL=jsonforms-examples.esm.js.map
|