@jsonforms/examples 3.1.0-alpha.1 → 3.1.0-alpha.3
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/.eslintrc.js +29 -0
- package/.prettierrc.js +6 -0
- package/README.md +1 -1
- package/docs/assets/js/search.json +1 -1
- package/docs/globals.html +2074 -3228
- package/docs/index.html +0 -30
- package/lib/examples/1884.d.ts +8 -0
- package/lib/examples/additional-errors.d.ts +16 -1
- package/lib/examples/anyOf.d.ts +15 -2
- package/lib/examples/arrays.d.ts +13 -2
- package/lib/examples/arraysI18n.d.ts +52 -0
- package/lib/examples/dates.d.ts +115 -1
- package/lib/examples/enum.d.ts +16 -0
- package/lib/examples/generate-dynamic.d.ts +15 -0
- package/lib/examples/list-with-detail-primitives.d.ts +36 -0
- package/lib/examples/list-with-detail-registered.d.ts +55 -1
- package/lib/examples/list-with-detail.d.ts +191 -1
- package/lib/examples/nestedCategorization.d.ts +57 -0
- package/lib/examples/radioGroup.d.ts +42 -1
- package/lib/index.d.ts +8 -19
- package/lib/jsonforms-examples.cjs.js +2299 -2863
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +2288 -2869
- package/lib/jsonforms-examples.esm.js.map +1 -1
- package/package.json +13 -6
- package/rollup.config.js +12 -12
- package/src/example.ts +3 -3
- package/src/examples/1884.ts +52 -48
- package/src/examples/1948.ts +19 -19
- package/src/examples/additional-errors.ts +28 -25
- package/src/examples/allOf.ts +18 -18
- package/src/examples/anyOf-oneOf-allOf-resolve.ts +21 -21
- package/src/examples/anyOf.ts +42 -24
- package/src/examples/arrays-with-custom-element-label.ts +21 -21
- package/src/examples/arrays-with-detail-and-rule.ts +28 -28
- package/src/examples/arrays-with-detail.ts +21 -21
- package/src/examples/arrays-with-sorting.ts +35 -35
- package/src/examples/arrays.ts +40 -35
- package/src/examples/arraysI18n.ts +107 -0
- package/src/examples/{steppershownav.ts → categorization-stepper-nav-buttons.ts} +6 -6
- package/src/examples/{stepper.ts → categorization-stepper.ts} +5 -5
- package/src/examples/categorization.ts +119 -119
- package/src/examples/conditional-schema-compositions.ts +20 -20
- package/src/examples/config.ts +15 -15
- package/src/examples/control-options.ts +81 -82
- package/src/examples/dates.ts +34 -34
- package/src/examples/default.ts +22 -22
- package/src/examples/{multi-enum.ts → enum-multi.ts} +14 -14
- package/src/examples/enum.ts +65 -33
- package/src/examples/enumInArray.ts +10 -10
- package/src/examples/{dynamic.ts → generate-dynamic.ts} +10 -10
- package/src/examples/generate.ts +2 -2
- package/src/examples/generateUI.ts +2 -2
- package/src/examples/huge.ts +381 -377
- package/src/examples/i18n.ts +37 -28
- package/src/examples/if_then_else.ts +4 -4
- package/src/examples/layout.ts +29 -29
- package/src/examples/{booleanToggle.ts → list-with-detail-primitives.ts} +46 -33
- package/src/examples/list-with-detail-registered.ts +26 -26
- package/src/examples/list-with-detail.ts +82 -82
- package/src/examples/nestedArrays.ts +40 -35
- package/src/examples/nestedCategorization.ts +175 -0
- package/src/examples/numbers.ts +17 -17
- package/src/examples/object.ts +24 -24
- package/src/examples/onChange.ts +28 -22
- package/src/examples/oneOf-recursive.ts +15 -15
- package/src/examples/oneOf.ts +99 -96
- package/src/examples/oneOfArray.ts +20 -20
- package/src/examples/person.ts +35 -35
- package/src/examples/radioGroup.ts +52 -53
- package/src/examples/readonly.ts +14 -14
- package/src/examples/rule.ts +26 -26
- package/src/examples/ruleInheritance.ts +37 -34
- package/src/examples/scope.ts +26 -26
- package/src/examples/stringArray.ts +10 -10
- package/src/examples/text.ts +19 -19
- package/src/index.ts +11 -33
- package/src/register.ts +6 -3
- package/stats.html +2462 -329
- package/tsconfig.json +2 -6
- package/lib/examples/1169.d.ts +0 -24
- package/lib/examples/1220.d.ts +0 -4
- package/lib/examples/1253.d.ts +0 -16
- package/lib/examples/1254.d.ts +0 -21
- package/lib/examples/1645.d.ts +0 -68
- package/lib/examples/1779.d.ts +0 -1
- package/lib/examples/1996.d.ts +0 -31
- package/lib/examples/booleanToggle.d.ts +0 -62
- package/lib/examples/day1.d.ts +0 -23
- package/lib/examples/day2.d.ts +0 -42
- package/lib/examples/day3.d.ts +0 -51
- package/lib/examples/day4.d.ts +0 -72
- package/lib/examples/day5.d.ts +0 -133
- package/lib/examples/day6.d.ts +0 -85
- package/lib/examples/dynamic.d.ts +0 -1
- package/src/examples/1169.ts +0 -62
- package/src/examples/1220.ts +0 -146
- package/src/examples/1253.ts +0 -212
- package/src/examples/1254.ts +0 -67
- package/src/examples/1645.ts +0 -66
- package/src/examples/1779.ts +0 -83
- package/src/examples/1996.ts +0 -102
- package/src/examples/day1.ts +0 -61
- package/src/examples/day2.ts +0 -62
- package/src/examples/day3.ts +0 -76
- package/src/examples/day4.ts +0 -83
- package/src/examples/day5.ts +0 -169
- package/src/examples/day6.ts +0 -44
- /package/lib/examples/{steppershownav.d.ts → categorization-stepper-nav-buttons.d.ts} +0 -0
- /package/lib/examples/{stepper.d.ts → categorization-stepper.d.ts} +0 -0
- /package/lib/examples/{multi-enum.d.ts → enum-multi.d.ts} +0 -0
package/src/index.ts
CHANGED
|
@@ -28,24 +28,20 @@ import * as oneOf from './examples/oneOf';
|
|
|
28
28
|
import * as oneOfArray from './examples/oneOfArray';
|
|
29
29
|
import * as anyOfOneOfAllOfResolve from './examples/anyOf-oneOf-allOf-resolve';
|
|
30
30
|
import * as array from './examples/arrays';
|
|
31
|
+
import * as arrayI18n from './examples/arraysI18n';
|
|
31
32
|
import * as nestedArray from './examples/nestedArrays';
|
|
33
|
+
import * as nestedCategorization from './examples/nestedCategorization';
|
|
32
34
|
import * as arrayWithDetail from './examples/arrays-with-detail';
|
|
33
35
|
import * as arrayWithDetailAndRule from './examples/arrays-with-detail-and-rule';
|
|
34
36
|
import * as arrayWithCustomChildLabel from './examples/arrays-with-custom-element-label';
|
|
35
37
|
import * as arrayWithSorting from './examples/arrays-with-sorting';
|
|
36
38
|
import * as stringArray from './examples/stringArray';
|
|
37
39
|
import * as categorization from './examples/categorization';
|
|
38
|
-
import * as stepper from './examples/stepper';
|
|
39
|
-
import * as steppershownav from './examples/
|
|
40
|
+
import * as stepper from './examples/categorization-stepper';
|
|
41
|
+
import * as steppershownav from './examples/categorization-stepper-nav-buttons';
|
|
40
42
|
import * as controlOptions from './examples/control-options';
|
|
41
|
-
import * as day1 from './examples/day1';
|
|
42
|
-
import * as day2 from './examples/day2';
|
|
43
|
-
import * as day3 from './examples/day3';
|
|
44
|
-
import * as day4 from './examples/day4';
|
|
45
|
-
import * as day5 from './examples/day5';
|
|
46
|
-
import * as day6 from './examples/day6';
|
|
47
43
|
import * as dates from './examples/dates';
|
|
48
|
-
import * as
|
|
44
|
+
import * as generateDynamic from './examples/generate-dynamic';
|
|
49
45
|
import * as generateSchema from './examples/generate';
|
|
50
46
|
import * as generateUISchema from './examples/generateUI';
|
|
51
47
|
import * as layout from './examples/layout';
|
|
@@ -62,23 +58,16 @@ import * as listWithDetailRegistered from './examples/list-with-detail-registere
|
|
|
62
58
|
import * as object from './examples/object';
|
|
63
59
|
import * as i18n from './examples/i18n';
|
|
64
60
|
import * as issue_1948 from './examples/1948';
|
|
65
|
-
import * as issue_1996 from './examples/1996';
|
|
66
|
-
import * as issue_1169 from './examples/1169';
|
|
67
|
-
import * as issue_1220 from './examples/1220';
|
|
68
|
-
import * as issue_1253 from './examples/1253';
|
|
69
|
-
import * as issue_1254 from './examples/1254';
|
|
70
61
|
import * as oneOfRecursive from './examples/oneOf-recursive';
|
|
71
62
|
import * as huge from './examples/huge';
|
|
72
63
|
import * as defaultExample from './examples/default';
|
|
73
64
|
import * as onChange from './examples/onChange';
|
|
74
65
|
import * as enumExample from './examples/enum';
|
|
75
66
|
import * as radioGroupExample from './examples/radioGroup';
|
|
76
|
-
import * as
|
|
77
|
-
import * as multiEnum from './examples/multi-enum';
|
|
67
|
+
import * as multiEnum from './examples/enum-multi';
|
|
78
68
|
import * as enumInArray from './examples/enumInArray';
|
|
79
69
|
import * as readonly from './examples/readonly';
|
|
80
|
-
import * as
|
|
81
|
-
import * as bug_1645 from './examples/1645';
|
|
70
|
+
import * as listWithDetailPrimitives from './examples/list-with-detail-primitives';
|
|
82
71
|
import * as conditionalSchemaComposition from './examples/conditional-schema-compositions';
|
|
83
72
|
import * as additionalErrors from './examples/additional-errors';
|
|
84
73
|
export * from './register';
|
|
@@ -88,7 +77,6 @@ import * as ifThenElse from './examples/if_then_else';
|
|
|
88
77
|
|
|
89
78
|
export {
|
|
90
79
|
issue_1948,
|
|
91
|
-
issue_1996,
|
|
92
80
|
defaultExample,
|
|
93
81
|
allOf,
|
|
94
82
|
anyOf,
|
|
@@ -97,7 +85,9 @@ export {
|
|
|
97
85
|
anyOfOneOfAllOfResolve,
|
|
98
86
|
stringArray,
|
|
99
87
|
array,
|
|
88
|
+
arrayI18n,
|
|
100
89
|
nestedArray,
|
|
90
|
+
nestedCategorization,
|
|
101
91
|
arrayWithDetail,
|
|
102
92
|
arrayWithDetailAndRule,
|
|
103
93
|
arrayWithCustomChildLabel,
|
|
@@ -106,12 +96,6 @@ export {
|
|
|
106
96
|
stepper,
|
|
107
97
|
steppershownav,
|
|
108
98
|
controlOptions,
|
|
109
|
-
day1,
|
|
110
|
-
day2,
|
|
111
|
-
day3,
|
|
112
|
-
day4,
|
|
113
|
-
day5,
|
|
114
|
-
day6,
|
|
115
99
|
generateSchema,
|
|
116
100
|
generateUISchema,
|
|
117
101
|
layout,
|
|
@@ -119,7 +103,7 @@ export {
|
|
|
119
103
|
rule,
|
|
120
104
|
ruleInheritance,
|
|
121
105
|
dates,
|
|
122
|
-
|
|
106
|
+
generateDynamic,
|
|
123
107
|
config,
|
|
124
108
|
text,
|
|
125
109
|
numbers,
|
|
@@ -128,22 +112,16 @@ export {
|
|
|
128
112
|
listWithDetailRegistered,
|
|
129
113
|
object,
|
|
130
114
|
i18n,
|
|
131
|
-
issue_1169,
|
|
132
|
-
issue_1220,
|
|
133
|
-
issue_1253,
|
|
134
|
-
issue_1254,
|
|
135
115
|
oneOfRecursive,
|
|
136
116
|
huge,
|
|
137
117
|
ifThenElse,
|
|
138
118
|
onChange,
|
|
139
119
|
enumExample,
|
|
140
120
|
radioGroupExample,
|
|
141
|
-
booleanToggle,
|
|
142
121
|
multiEnum,
|
|
143
122
|
enumInArray,
|
|
144
123
|
readonly,
|
|
145
|
-
|
|
146
|
-
bug_1645,
|
|
124
|
+
listWithDetailPrimitives,
|
|
147
125
|
conditionalSchemaComposition,
|
|
148
126
|
additionalErrors,
|
|
149
127
|
issue_1884,
|
package/src/register.ts
CHANGED
|
@@ -27,8 +27,11 @@ import { ExampleDescription } from './example';
|
|
|
27
27
|
const knownExamples: { [key: string]: ExampleDescription } = {};
|
|
28
28
|
|
|
29
29
|
export const registerExamples = (examples: ExampleDescription[]): void => {
|
|
30
|
-
examples.forEach(example => (knownExamples[example.name] = example));
|
|
30
|
+
examples.forEach((example) => (knownExamples[example.name] = example));
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export const getExamples: () => ExampleDescription[] = () =>
|
|
34
|
-
Object.keys(knownExamples).map(key => knownExamples[key]);
|
|
33
|
+
export const getExamples: () => ExampleDescription[] = () => {
|
|
34
|
+
const examples = Object.keys(knownExamples).map((key) => knownExamples[key]);
|
|
35
|
+
examples.sort((a, b) => a.label.localeCompare(b.label));
|
|
36
|
+
return examples;
|
|
37
|
+
};
|