@jsonforms/examples 3.0.0-beta.1 → 3.0.0-beta.4
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 +882 -886
- package/docs/index.html +8 -1
- package/lib/examples/additional-errors.d.ts +1 -0
- package/lib/examples/arrays.d.ts +6 -2
- package/lib/examples/conditional-schema-compositions.d.ts +56 -0
- package/lib/examples/object.d.ts +11 -0
- package/lib/index.d.ts +3 -2
- package/lib/jsonforms-examples.cjs.js +365 -283
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +367 -283
- package/lib/jsonforms-examples.esm.js.map +1 -1
- package/package.json +4 -4
- package/src/examples/{resolve.ts → additional-errors.ts} +27 -57
- package/src/examples/arrays.ts +4 -0
- package/src/examples/conditional-schema-compositions.ts +118 -0
- package/src/examples/nestedArrays.ts +15 -10
- package/src/examples/object.ts +13 -0
- package/src/index.ts +5 -3
- package/stats.html +1 -1
- package/lib/examples/resolve.d.ts +0 -45
package/docs/index.html
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
<h2>Examples Package</h2>
|
|
72
72
|
</a>
|
|
73
73
|
<p>This is the examples package which demonstrates how to integrate JSON Forms with your application.</p>
|
|
74
|
-
<p>You can use the examples with any renderer set you want, for example the <a href="https://github.com/eclipsesource/jsonforms/
|
|
74
|
+
<p>You can use the examples with any renderer set you want, for example the <a href="https://github.com/eclipsesource/jsonforms/tree/master/packages/material">Material Renderers</a> or the <a href="https://github.com/eclipsesource/jsonforms/tree/master/packages/angular-material">Angular Renderers</a>.</p>
|
|
75
75
|
<p>Check <a href="https://www.npmjs.com/search?q=%40jsonforms">https://www.npmjs.com/search?q=%40jsonforms</a> for all published JSON Forms packages.</p>
|
|
76
76
|
<a href="#license" id="license" style="color: inherit; text-decoration: none;">
|
|
77
77
|
<h2>License</h2>
|
|
@@ -89,6 +89,10 @@
|
|
|
89
89
|
For questions and discussions please use the <a href="https://jsonforms.discourse.group">JSON Forms board</a>.
|
|
90
90
|
You can also reach us via <a href="mailto:jsonforms@eclipsesource.com?subject=JSON%20Forms">email</a>.
|
|
91
91
|
In addition, EclipseSource also offers <a href="https://jsonforms.io/support">professional support</a> for JSON Forms.</p>
|
|
92
|
+
<a href="#migration" id="migration" style="color: inherit; text-decoration: none;">
|
|
93
|
+
<h2>Migration</h2>
|
|
94
|
+
</a>
|
|
95
|
+
<p>See our <a href="https://github.com/eclipsesource/jsonforms/blob/master/MIGRATION.md">migration guide</a> when updating JSON Forms.</p>
|
|
92
96
|
</div>
|
|
93
97
|
</div>
|
|
94
98
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
@@ -110,6 +114,9 @@
|
|
|
110
114
|
<li class=" tsd-kind-variable">
|
|
111
115
|
<a href="globals.html#actions" class="tsd-kind-icon">actions</a>
|
|
112
116
|
</li>
|
|
117
|
+
<li class=" tsd-kind-variable">
|
|
118
|
+
<a href="globals.html#additionalerrors" class="tsd-kind-icon">additional<wbr>Errors</a>
|
|
119
|
+
</li>
|
|
113
120
|
<li class=" tsd-kind-variable">
|
|
114
121
|
<a href="globals.html#knownexamples" class="tsd-kind-icon">known<wbr>Examples</a>
|
|
115
122
|
</li>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/examples/arrays.d.ts
CHANGED
|
@@ -35,13 +35,17 @@ export declare const uischema: {
|
|
|
35
35
|
};
|
|
36
36
|
export declare const uischemaWithSorting: {
|
|
37
37
|
type: string;
|
|
38
|
-
elements: {
|
|
38
|
+
elements: ({
|
|
39
|
+
type: string;
|
|
40
|
+
scope: string;
|
|
41
|
+
options?: undefined;
|
|
42
|
+
} | {
|
|
39
43
|
type: string;
|
|
40
44
|
scope: string;
|
|
41
45
|
options: {
|
|
42
46
|
showSortButtons: boolean;
|
|
43
47
|
};
|
|
44
|
-
}[];
|
|
48
|
+
})[];
|
|
45
49
|
};
|
|
46
50
|
export declare const data: {
|
|
47
51
|
comments: {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
type: string;
|
|
3
|
+
properties: {
|
|
4
|
+
name: {
|
|
5
|
+
type: string;
|
|
6
|
+
minLength: number;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
recurrence: {
|
|
10
|
+
type: string;
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
anyOf: {
|
|
15
|
+
if: {
|
|
16
|
+
properties: {
|
|
17
|
+
recurrence: {
|
|
18
|
+
const: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
then: {
|
|
23
|
+
properties: {
|
|
24
|
+
lastname: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
age: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
export declare const uischema: {
|
|
35
|
+
type: string;
|
|
36
|
+
elements: {
|
|
37
|
+
type: string;
|
|
38
|
+
elements: ({
|
|
39
|
+
type: string;
|
|
40
|
+
scope: string;
|
|
41
|
+
rule?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
type: string;
|
|
44
|
+
scope: string;
|
|
45
|
+
rule: {
|
|
46
|
+
effect: string;
|
|
47
|
+
condition: {
|
|
48
|
+
scope: string;
|
|
49
|
+
schema: {
|
|
50
|
+
const: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
})[];
|
|
55
|
+
}[];
|
|
56
|
+
};
|
package/lib/examples/object.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare const uischemaNonRoot: {
|
|
|
41
41
|
type: string;
|
|
42
42
|
scope: string;
|
|
43
43
|
rule?: undefined;
|
|
44
|
+
options?: undefined;
|
|
44
45
|
} | {
|
|
45
46
|
type: string;
|
|
46
47
|
scope: string;
|
|
@@ -52,5 +53,15 @@ export declare const uischemaNonRoot: {
|
|
|
52
53
|
expectedValue: string;
|
|
53
54
|
};
|
|
54
55
|
};
|
|
56
|
+
options: {
|
|
57
|
+
detail: {
|
|
58
|
+
type: string;
|
|
59
|
+
label: string;
|
|
60
|
+
elements: {
|
|
61
|
+
type: string;
|
|
62
|
+
scope: string;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
55
66
|
})[];
|
|
56
67
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ import * as layout from './examples/layout';
|
|
|
27
27
|
import * as person from './examples/person';
|
|
28
28
|
import * as rule from './examples/rule';
|
|
29
29
|
import * as ruleInheritance from './examples/ruleInheritance';
|
|
30
|
-
import * as resolve from './examples/resolve';
|
|
31
30
|
import * as config from './examples/config';
|
|
32
31
|
import * as text from './examples/text';
|
|
33
32
|
import * as numbers from './examples/numbers';
|
|
@@ -52,7 +51,9 @@ import * as enumInArray from './examples/enumInArray';
|
|
|
52
51
|
import * as readonly from './examples/readonly';
|
|
53
52
|
import * as bug_1779 from './examples/1779';
|
|
54
53
|
import * as bug_1645 from './examples/1645';
|
|
54
|
+
import * as conditionalSchemaComposition from './examples/conditional-schema-compositions';
|
|
55
|
+
import * as additionalErrors from './examples/additional-errors';
|
|
55
56
|
export * from './register';
|
|
56
57
|
export * from './example';
|
|
57
58
|
import * as ifThenElse from './examples/if_then_else';
|
|
58
|
-
export { defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, nestedArray, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, categorization, stepper, steppershownav, controlOptions, day1, day2, day3, day4, day5, day6, generateSchema, generateUISchema, layout, person, rule, ruleInheritance, dates, dynamic,
|
|
59
|
+
export { defaultExample, allOf, anyOf, oneOf, oneOfArray, anyOfOneOfAllOfResolve, stringArray, array, nestedArray, arrayWithDetail, arrayWithDetailAndRule, arrayWithCustomChildLabel, categorization, stepper, steppershownav, controlOptions, day1, day2, day3, day4, day5, day6, generateSchema, generateUISchema, layout, person, rule, ruleInheritance, dates, dynamic, config, text, numbers, scope, listWithDetail, listWithDetailRegistered, object, i18n, issue_1169, issue_1220, issue_1253, issue_1254, oneOfRecursive, huge, ifThenElse, onChange, enumExample, radioGroupExample, booleanToggle, multiEnum, enumInArray, readonly, bug_1779, bug_1645, conditionalSchemaComposition, additionalErrors };
|