@jsonforms/examples 3.0.0-beta.4 → 3.0.0-rc.1
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 +1477 -843
- package/docs/index.html +12 -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/1948.d.ts +40 -0
- package/lib/examples/1996.d.ts +31 -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 +4 -1
- package/lib/jsonforms-examples.cjs.js +680 -332
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +676 -337
- 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/1996.ts +102 -0
- package/src/examples/categorization.ts +15 -3
- package/src/examples/i18n.ts +20 -4
- package/src/examples/oneOf.ts +2 -3
- package/src/index.ts +7 -1
- package/stats.html +1 -1
package/docs/index.html
CHANGED
|
@@ -135,6 +135,9 @@
|
|
|
135
135
|
<li class=" tsd-kind-function">
|
|
136
136
|
<a href="globals.html#registerexamples" class="tsd-kind-icon">register<wbr>Examples</a>
|
|
137
137
|
</li>
|
|
138
|
+
<li class=" tsd-kind-function">
|
|
139
|
+
<a href="globals.html#translate" class="tsd-kind-icon">translate</a>
|
|
140
|
+
</li>
|
|
138
141
|
<li class=" tsd-kind-object-literal">
|
|
139
142
|
<a href="globals.html#booleantoggleexample" class="tsd-kind-icon">boolean<wbr>Toggle<wbr>Example</a>
|
|
140
143
|
</li>
|
|
@@ -195,6 +198,12 @@
|
|
|
195
198
|
<li class=" tsd-kind-object-literal">
|
|
196
199
|
<a href="globals.html#schema4" class="tsd-kind-icon">schema4</a>
|
|
197
200
|
</li>
|
|
201
|
+
<li class=" tsd-kind-object-literal">
|
|
202
|
+
<a href="globals.html#schemaanyof" class="tsd-kind-icon">schema<wbr>Any<wbr>Of</a>
|
|
203
|
+
</li>
|
|
204
|
+
<li class=" tsd-kind-object-literal">
|
|
205
|
+
<a href="globals.html#schemaoneof" class="tsd-kind-icon">schema<wbr>One<wbr>Of</a>
|
|
206
|
+
</li>
|
|
198
207
|
<li class=" tsd-kind-object-literal">
|
|
199
208
|
<a href="globals.html#schema_1265_array" class="tsd-kind-icon">schema_<wbr>1265_<wbr>array</a>
|
|
200
209
|
</li>
|
|
@@ -222,6 +231,9 @@
|
|
|
222
231
|
<li class=" tsd-kind-object-literal">
|
|
223
232
|
<a href="globals.html#touchedproperties" class="tsd-kind-icon">touched<wbr>Properties</a>
|
|
224
233
|
</li>
|
|
234
|
+
<li class=" tsd-kind-object-literal">
|
|
235
|
+
<a href="globals.html#translations" class="tsd-kind-icon">translations</a>
|
|
236
|
+
</li>
|
|
225
237
|
<li class=" tsd-kind-object-literal">
|
|
226
238
|
<a href="globals.html#uischema" class="tsd-kind-icon">uischema</a>
|
|
227
239
|
</li>
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="exampledescription.html#actions" class="tsd-kind-icon">actions</a></li>
|
|
83
83
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="exampledescription.html#config" class="tsd-kind-icon">config</a></li>
|
|
84
84
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="exampledescription.html#data" class="tsd-kind-icon">data</a></li>
|
|
85
|
+
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="exampledescription.html#i18n" class="tsd-kind-icon">i18n</a></li>
|
|
85
86
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="exampledescription.html#label" class="tsd-kind-icon">label</a></li>
|
|
86
87
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="exampledescription.html#name" class="tsd-kind-icon">name</a></li>
|
|
87
88
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="exampledescription.html#schema" class="tsd-kind-icon">schema</a></li>
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
<div class="tsd-signature tsd-kind-icon">actions<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>apply<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>props<span class="tsd-signature-symbol">: </span><a href="stateprops.html" class="tsd-signature-type">StateProps</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>label<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></div>
|
|
101
102
|
<aside class="tsd-sources">
|
|
102
103
|
<ul>
|
|
103
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
104
|
+
<li>Defined in packages/examples/src/example.ts:42</li>
|
|
104
105
|
</ul>
|
|
105
106
|
</aside>
|
|
106
107
|
</section>
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
<div class="tsd-signature tsd-kind-icon">config<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
|
|
111
112
|
<aside class="tsd-sources">
|
|
112
113
|
<ul>
|
|
113
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
114
|
+
<li>Defined in packages/examples/src/example.ts:41</li>
|
|
114
115
|
</ul>
|
|
115
116
|
</aside>
|
|
116
117
|
</section>
|
|
@@ -120,7 +121,17 @@
|
|
|
120
121
|
<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
|
|
121
122
|
<aside class="tsd-sources">
|
|
122
123
|
<ul>
|
|
123
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
124
|
+
<li>Defined in packages/examples/src/example.ts:37</li>
|
|
125
|
+
</ul>
|
|
126
|
+
</aside>
|
|
127
|
+
</section>
|
|
128
|
+
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
129
|
+
<a name="i18n" class="tsd-anchor"></a>
|
|
130
|
+
<h3><span class="tsd-flag ts-flagOptional">Optional</span> i18n</h3>
|
|
131
|
+
<div class="tsd-signature tsd-kind-icon">i18n<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonFormsI18nState</span></div>
|
|
132
|
+
<aside class="tsd-sources">
|
|
133
|
+
<ul>
|
|
134
|
+
<li>Defined in packages/examples/src/example.ts:43</li>
|
|
124
135
|
</ul>
|
|
125
136
|
</aside>
|
|
126
137
|
</section>
|
|
@@ -130,7 +141,7 @@
|
|
|
130
141
|
<div class="tsd-signature tsd-kind-icon">label<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
131
142
|
<aside class="tsd-sources">
|
|
132
143
|
<ul>
|
|
133
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
144
|
+
<li>Defined in packages/examples/src/example.ts:36</li>
|
|
134
145
|
</ul>
|
|
135
146
|
</aside>
|
|
136
147
|
</section>
|
|
@@ -140,7 +151,7 @@
|
|
|
140
151
|
<div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
141
152
|
<aside class="tsd-sources">
|
|
142
153
|
<ul>
|
|
143
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
154
|
+
<li>Defined in packages/examples/src/example.ts:35</li>
|
|
144
155
|
</ul>
|
|
145
156
|
</aside>
|
|
146
157
|
</section>
|
|
@@ -150,7 +161,7 @@
|
|
|
150
161
|
<div class="tsd-signature tsd-kind-icon">schema<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonSchema</span></div>
|
|
151
162
|
<aside class="tsd-sources">
|
|
152
163
|
<ul>
|
|
153
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
164
|
+
<li>Defined in packages/examples/src/example.ts:38</li>
|
|
154
165
|
</ul>
|
|
155
166
|
</aside>
|
|
156
167
|
</section>
|
|
@@ -160,7 +171,7 @@
|
|
|
160
171
|
<div class="tsd-signature tsd-kind-icon">uischema<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">UISchemaElement</span></div>
|
|
161
172
|
<aside class="tsd-sources">
|
|
162
173
|
<ul>
|
|
163
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
174
|
+
<li>Defined in packages/examples/src/example.ts:39</li>
|
|
164
175
|
</ul>
|
|
165
176
|
</aside>
|
|
166
177
|
</section>
|
|
@@ -170,7 +181,7 @@
|
|
|
170
181
|
<div class="tsd-signature tsd-kind-icon">uischemas<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonFormsUISchemaRegistryEntry</span><span class="tsd-signature-symbol">[]</span></div>
|
|
171
182
|
<aside class="tsd-sources">
|
|
172
183
|
<ul>
|
|
173
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
184
|
+
<li>Defined in packages/examples/src/example.ts:40</li>
|
|
174
185
|
</ul>
|
|
175
186
|
</aside>
|
|
176
187
|
</section>
|
|
@@ -200,6 +211,9 @@
|
|
|
200
211
|
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
201
212
|
<a href="exampledescription.html#data" class="tsd-kind-icon">data</a>
|
|
202
213
|
</li>
|
|
214
|
+
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
215
|
+
<a href="exampledescription.html#i18n" class="tsd-kind-icon">i18n</a>
|
|
216
|
+
</li>
|
|
203
217
|
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
204
218
|
<a href="exampledescription.html#label" class="tsd-kind-icon">label</a>
|
|
205
219
|
</li>
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
<div class="tsd-signature tsd-kind-icon">cells<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonFormsCellRendererRegistryEntry</span><span class="tsd-signature-symbol">[]</span></div>
|
|
100
100
|
<aside class="tsd-sources">
|
|
101
101
|
<ul>
|
|
102
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
102
|
+
<li>Defined in packages/examples/src/example.ts:51</li>
|
|
103
103
|
</ul>
|
|
104
104
|
</aside>
|
|
105
105
|
</section>
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<div class="tsd-signature tsd-kind-icon">config<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
|
|
110
110
|
<aside class="tsd-sources">
|
|
111
111
|
<ul>
|
|
112
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
112
|
+
<li>Defined in packages/examples/src/example.ts:52</li>
|
|
113
113
|
</ul>
|
|
114
114
|
</aside>
|
|
115
115
|
</section>
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
|
|
120
120
|
<aside class="tsd-sources">
|
|
121
121
|
<ul>
|
|
122
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
122
|
+
<li>Defined in packages/examples/src/example.ts:47</li>
|
|
123
123
|
</ul>
|
|
124
124
|
</aside>
|
|
125
125
|
</section>
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
<div class="tsd-signature tsd-kind-icon">renderers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonFormsRendererRegistryEntry</span><span class="tsd-signature-symbol">[]</span></div>
|
|
130
130
|
<aside class="tsd-sources">
|
|
131
131
|
<ul>
|
|
132
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
132
|
+
<li>Defined in packages/examples/src/example.ts:50</li>
|
|
133
133
|
</ul>
|
|
134
134
|
</aside>
|
|
135
135
|
</section>
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<div class="tsd-signature tsd-kind-icon">schema<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonSchema</span></div>
|
|
140
140
|
<aside class="tsd-sources">
|
|
141
141
|
<ul>
|
|
142
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
142
|
+
<li>Defined in packages/examples/src/example.ts:48</li>
|
|
143
143
|
</ul>
|
|
144
144
|
</aside>
|
|
145
145
|
</section>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
<div class="tsd-signature tsd-kind-icon">uischema<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">UISchemaElement</span></div>
|
|
150
150
|
<aside class="tsd-sources">
|
|
151
151
|
<ul>
|
|
152
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
152
|
+
<li>Defined in packages/examples/src/example.ts:49</li>
|
|
153
153
|
</ul>
|
|
154
154
|
</aside>
|
|
155
155
|
</section>
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
<div class="tsd-signature tsd-kind-icon">uischemas<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">JsonFormsUISchemaRegistryEntry</span><span class="tsd-signature-symbol">[]</span></div>
|
|
160
160
|
<aside class="tsd-sources">
|
|
161
161
|
<ul>
|
|
162
|
-
<li>Defined in packages/examples/src/example.ts:
|
|
162
|
+
<li>Defined in packages/examples/src/example.ts:53</li>
|
|
163
163
|
</ul>
|
|
164
164
|
</aside>
|
|
165
165
|
</section>
|
package/lib/example.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JsonFormsCellRendererRegistryEntry, JsonFormsUISchemaRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
1
|
+
import { JsonFormsCellRendererRegistryEntry, JsonFormsUISchemaRegistryEntry, JsonFormsRendererRegistryEntry, JsonSchema, UISchemaElement, JsonFormsI18nState } from '@jsonforms/core';
|
|
2
2
|
export interface ExampleDescription {
|
|
3
3
|
name: string;
|
|
4
4
|
label: string;
|
|
@@ -11,6 +11,7 @@ export interface ExampleDescription {
|
|
|
11
11
|
label: string;
|
|
12
12
|
apply: (props: StateProps) => any;
|
|
13
13
|
}[];
|
|
14
|
+
i18n?: JsonFormsI18nState;
|
|
14
15
|
}
|
|
15
16
|
export interface StateProps {
|
|
16
17
|
data: any;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
type: string;
|
|
3
|
+
required: string[];
|
|
4
|
+
properties: {
|
|
5
|
+
firstName: {
|
|
6
|
+
type: string;
|
|
7
|
+
minLength: number;
|
|
8
|
+
maxLength: number;
|
|
9
|
+
};
|
|
10
|
+
lastName: {
|
|
11
|
+
type: string;
|
|
12
|
+
minLength: number;
|
|
13
|
+
maxLength: number;
|
|
14
|
+
};
|
|
15
|
+
age: {
|
|
16
|
+
type: string;
|
|
17
|
+
minimum: number;
|
|
18
|
+
maximum: number;
|
|
19
|
+
};
|
|
20
|
+
gender: {
|
|
21
|
+
type: string;
|
|
22
|
+
enum: string[];
|
|
23
|
+
};
|
|
24
|
+
height: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
dateOfBirth: {
|
|
28
|
+
type: string;
|
|
29
|
+
format: string;
|
|
30
|
+
};
|
|
31
|
+
rating: {
|
|
32
|
+
type: string;
|
|
33
|
+
};
|
|
34
|
+
committer: {
|
|
35
|
+
type: string;
|
|
36
|
+
};
|
|
37
|
+
address: {
|
|
38
|
+
type: string;
|
|
39
|
+
properties: {
|
|
40
|
+
street: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
streetnumber: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
postalCode: {
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
city: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const uischema: {
|
|
57
|
+
type: string;
|
|
58
|
+
elements: ({
|
|
59
|
+
type: string;
|
|
60
|
+
elements: {
|
|
61
|
+
type: string;
|
|
62
|
+
scope: string;
|
|
63
|
+
}[];
|
|
64
|
+
label?: undefined;
|
|
65
|
+
rule?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
type: string;
|
|
68
|
+
label: string;
|
|
69
|
+
elements: {
|
|
70
|
+
type: string;
|
|
71
|
+
elements: {
|
|
72
|
+
type: string;
|
|
73
|
+
scope: string;
|
|
74
|
+
}[];
|
|
75
|
+
}[];
|
|
76
|
+
rule: {
|
|
77
|
+
effect: string;
|
|
78
|
+
condition: {
|
|
79
|
+
scope: string;
|
|
80
|
+
schema: {
|
|
81
|
+
const: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
})[];
|
|
86
|
+
};
|
|
87
|
+
export declare const data: {
|
|
88
|
+
firstName: string;
|
|
89
|
+
lastName: string;
|
|
90
|
+
committer: boolean;
|
|
91
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UISchemaElement } from '@jsonforms/core';
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
type: string;
|
|
4
|
+
definitions: {
|
|
5
|
+
import: {
|
|
6
|
+
title: string;
|
|
7
|
+
type: string;
|
|
8
|
+
properties: {
|
|
9
|
+
eClass: {
|
|
10
|
+
const: string;
|
|
11
|
+
};
|
|
12
|
+
document: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
package: {
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
prefix: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
properties: {
|
|
25
|
+
import: {
|
|
26
|
+
type: string;
|
|
27
|
+
items: {
|
|
28
|
+
$ref: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const uischema: UISchemaElement;
|
|
34
|
+
export declare const data: {
|
|
35
|
+
import: {
|
|
36
|
+
document: string;
|
|
37
|
+
package: string;
|
|
38
|
+
prefix: string;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ControlElement } from '@jsonforms/core';
|
|
2
|
+
export declare const schemaAnyOf: {
|
|
3
|
+
type: string;
|
|
4
|
+
items: {
|
|
5
|
+
anyOf: {
|
|
6
|
+
type: string;
|
|
7
|
+
properties: {
|
|
8
|
+
value: {
|
|
9
|
+
type: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
required: string[];
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const schemaOneOf: {
|
|
17
|
+
type: string;
|
|
18
|
+
items: {
|
|
19
|
+
oneOf: {
|
|
20
|
+
type: string;
|
|
21
|
+
properties: {
|
|
22
|
+
value: {
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
required: string[];
|
|
27
|
+
}[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const uischema: ControlElement;
|
|
31
|
+
export declare const data: any[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Translator } from '@jsonforms/core';
|
|
1
2
|
export declare const schema: {
|
|
2
3
|
type: string;
|
|
3
4
|
properties: {
|
|
@@ -78,10 +79,11 @@ export declare const uischema: {
|
|
|
78
79
|
scope: string;
|
|
79
80
|
elements?: undefined;
|
|
80
81
|
})[];
|
|
82
|
+
i18n?: undefined;
|
|
81
83
|
rule?: undefined;
|
|
82
84
|
} | {
|
|
83
85
|
type: string;
|
|
84
|
-
|
|
86
|
+
i18n: string;
|
|
85
87
|
elements: {
|
|
86
88
|
type: string;
|
|
87
89
|
elements: {
|
|
@@ -98,6 +100,7 @@ export declare const uischema: {
|
|
|
98
100
|
};
|
|
99
101
|
};
|
|
100
102
|
};
|
|
103
|
+
label?: undefined;
|
|
101
104
|
} | {
|
|
102
105
|
type: string;
|
|
103
106
|
label: string;
|
|
@@ -127,9 +130,17 @@ export declare const uischema: {
|
|
|
127
130
|
};
|
|
128
131
|
};
|
|
129
132
|
};
|
|
133
|
+
i18n?: undefined;
|
|
130
134
|
})[];
|
|
131
135
|
};
|
|
132
136
|
export declare const data: {
|
|
133
137
|
provideAddress: boolean;
|
|
134
138
|
vegetarian: boolean;
|
|
135
139
|
};
|
|
140
|
+
export declare const translations: {
|
|
141
|
+
categoryLabelKey: string;
|
|
142
|
+
address: {
|
|
143
|
+
label: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
export declare const translate: Translator;
|
package/lib/examples/i18n.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { JsonFormsCore, AnyAction, Dispatch } from '@jsonforms/core';
|
|
1
|
+
import { JsonFormsCore, AnyAction, Dispatch, Translator } from '@jsonforms/core';
|
|
2
2
|
export declare const onChange: (dispatch: Dispatch<AnyAction>) => (extensionState: any) => ({ errors }: Pick<JsonFormsCore, 'data' | 'errors'>) => void;
|
|
3
3
|
export declare const uischema: {
|
|
4
4
|
type: string;
|
|
5
5
|
elements: ({
|
|
6
6
|
type: string;
|
|
7
|
+
i18n: string;
|
|
7
8
|
elements: {
|
|
8
9
|
type: string;
|
|
9
10
|
scope: string;
|
|
@@ -12,7 +13,16 @@ export declare const uischema: {
|
|
|
12
13
|
} | {
|
|
13
14
|
type: string;
|
|
14
15
|
text: string;
|
|
16
|
+
i18n?: undefined;
|
|
15
17
|
elements?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
type: string;
|
|
20
|
+
elements: {
|
|
21
|
+
type: string;
|
|
22
|
+
scope: string;
|
|
23
|
+
}[];
|
|
24
|
+
i18n?: undefined;
|
|
25
|
+
text?: undefined;
|
|
16
26
|
})[];
|
|
17
27
|
};
|
|
18
28
|
export declare const data: {
|
|
@@ -23,3 +33,10 @@ export declare const data: {
|
|
|
23
33
|
};
|
|
24
34
|
postalCode: string;
|
|
25
35
|
};
|
|
36
|
+
export declare const translations: {
|
|
37
|
+
basicInfoGroup: {
|
|
38
|
+
label: string;
|
|
39
|
+
};
|
|
40
|
+
additionalInformationLabel: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const translate: Translator;
|
|
@@ -81,10 +81,11 @@ export declare const uischema: {
|
|
|
81
81
|
scope: string;
|
|
82
82
|
elements?: undefined;
|
|
83
83
|
})[];
|
|
84
|
+
i18n?: undefined;
|
|
84
85
|
rule?: undefined;
|
|
85
86
|
} | {
|
|
86
87
|
type: string;
|
|
87
|
-
|
|
88
|
+
i18n: string;
|
|
88
89
|
elements: {
|
|
89
90
|
type: string;
|
|
90
91
|
elements: {
|
|
@@ -101,6 +102,7 @@ export declare const uischema: {
|
|
|
101
102
|
};
|
|
102
103
|
};
|
|
103
104
|
};
|
|
105
|
+
label?: undefined;
|
|
104
106
|
} | {
|
|
105
107
|
type: string;
|
|
106
108
|
label: string;
|
|
@@ -130,6 +132,7 @@ export declare const uischema: {
|
|
|
130
132
|
};
|
|
131
133
|
};
|
|
132
134
|
};
|
|
135
|
+
i18n?: undefined;
|
|
133
136
|
})[];
|
|
134
137
|
};
|
|
135
138
|
export declare const data: {
|
|
@@ -82,10 +82,11 @@ export declare const uischema: {
|
|
|
82
82
|
scope: string;
|
|
83
83
|
elements?: undefined;
|
|
84
84
|
})[];
|
|
85
|
+
i18n?: undefined;
|
|
85
86
|
rule?: undefined;
|
|
86
87
|
} | {
|
|
87
88
|
type: string;
|
|
88
|
-
|
|
89
|
+
i18n: string;
|
|
89
90
|
elements: {
|
|
90
91
|
type: string;
|
|
91
92
|
elements: {
|
|
@@ -102,6 +103,7 @@ export declare const uischema: {
|
|
|
102
103
|
};
|
|
103
104
|
};
|
|
104
105
|
};
|
|
106
|
+
label?: undefined;
|
|
105
107
|
} | {
|
|
106
108
|
type: string;
|
|
107
109
|
label: string;
|
|
@@ -131,6 +133,7 @@ export declare const uischema: {
|
|
|
131
133
|
};
|
|
132
134
|
};
|
|
133
135
|
};
|
|
136
|
+
i18n?: undefined;
|
|
134
137
|
})[];
|
|
135
138
|
};
|
|
136
139
|
export declare const data: {
|
package/lib/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import * as generateSchema from './examples/generate';
|
|
|
25
25
|
import * as generateUISchema from './examples/generateUI';
|
|
26
26
|
import * as layout from './examples/layout';
|
|
27
27
|
import * as person from './examples/person';
|
|
28
|
+
import * as issue_1884 from './examples/1884';
|
|
28
29
|
import * as rule from './examples/rule';
|
|
29
30
|
import * as ruleInheritance from './examples/ruleInheritance';
|
|
30
31
|
import * as config from './examples/config';
|
|
@@ -35,6 +36,8 @@ import * as listWithDetail from './examples/list-with-detail';
|
|
|
35
36
|
import * as listWithDetailRegistered from './examples/list-with-detail-registered';
|
|
36
37
|
import * as object from './examples/object';
|
|
37
38
|
import * as i18n from './examples/i18n';
|
|
39
|
+
import * as issue_1948 from './examples/1948';
|
|
40
|
+
import * as issue_1996 from './examples/1996';
|
|
38
41
|
import * as issue_1169 from './examples/1169';
|
|
39
42
|
import * as issue_1220 from './examples/1220';
|
|
40
43
|
import * as issue_1253 from './examples/1253';
|
|
@@ -56,4 +59,4 @@ import * as additionalErrors from './examples/additional-errors';
|
|
|
56
59
|
export * from './register';
|
|
57
60
|
export * from './example';
|
|
58
61
|
import * as ifThenElse from './examples/if_then_else';
|
|
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 };
|
|
62
|
+
export { issue_1948, issue_1996, 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, issue_1884, };
|