@jsonforms/core 3.0.0-alpha.3 → 3.0.0-beta.2
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 +207 -165
- package/docs/index.html +7 -4
- package/docs/interfaces/arraycontrolprops.html +21 -21
- package/docs/interfaces/arraylayoutprops.html +21 -21
- package/docs/interfaces/cellprops.html +12 -12
- package/docs/interfaces/combinatorrendererprops.html +143 -36
- package/docs/interfaces/controlprops.html +16 -16
- package/docs/interfaces/controlstate.html +2 -2
- package/docs/interfaces/controlwithdetailprops.html +17 -17
- package/docs/interfaces/dispatchcellprops.html +10 -10
- package/docs/interfaces/dispatchcellstateprops.html +10 -10
- package/docs/interfaces/dispatchpropsofarraycontrol.html +4 -4
- package/docs/interfaces/dispatchpropsofcontrol.html +1 -1
- package/docs/interfaces/dispatchpropsofmultienumcontrol.html +2 -2
- package/docs/interfaces/enumcellprops.html +13 -13
- package/docs/interfaces/enumoption.html +2 -2
- package/docs/interfaces/jsonformsprops.html +9 -9
- package/docs/interfaces/layoutprops.html +10 -10
- package/docs/interfaces/ownpropsofcell.html +9 -9
- package/docs/interfaces/ownpropsofcontrol.html +9 -12
- package/docs/interfaces/ownpropsofenum.html +1 -1
- package/docs/interfaces/ownpropsofenumcell.html +10 -10
- package/docs/interfaces/ownpropsofjsonformsrenderer.html +8 -8
- package/docs/interfaces/ownpropsoflayout.html +9 -9
- package/docs/interfaces/ownpropsofmasterlistitem.html +6 -6
- package/docs/interfaces/ownpropsofrenderer.html +8 -8
- package/docs/interfaces/rendererprops.html +9 -9
- package/docs/interfaces/statepropsofarraycontrol.html +17 -17
- package/docs/interfaces/statepropsofarraylayout.html +17 -17
- package/docs/interfaces/statepropsofcell.html +11 -11
- package/docs/interfaces/statepropsofcombinator.html +147 -40
- package/docs/interfaces/statepropsofcontrol.html +18 -15
- package/docs/interfaces/statepropsofcontrolwithdetail.html +16 -16
- package/docs/interfaces/statepropsofenumcell.html +12 -12
- package/docs/interfaces/statepropsofjsonformsrenderer.html +9 -9
- package/docs/interfaces/statepropsoflayout.html +10 -10
- package/docs/interfaces/statepropsofmasteritem.html +7 -7
- package/docs/interfaces/statepropsofrenderer.html +9 -9
- package/docs/interfaces/statepropsofscopedrenderer.html +12 -12
- package/docs/interfaces/withclassname.html +1 -1
- package/lib/Helpers.d.ts +5 -5
- package/lib/actions/actions.d.ts +181 -181
- package/lib/actions/index.d.ts +1 -1
- package/lib/configDefault.d.ts +6 -6
- package/lib/generators/Generate.d.ts +6 -6
- package/lib/generators/index.d.ts +3 -3
- package/lib/generators/schema.d.ts +8 -8
- package/lib/generators/uischema.d.ts +12 -12
- package/lib/i18n/i18nTypes.d.ts +15 -15
- package/lib/i18n/i18nUtil.d.ts +18 -18
- package/lib/i18n/index.d.ts +2 -2
- package/lib/index.d.ts +11 -11
- package/lib/jsonforms-core.cjs.js +2441 -0
- package/lib/jsonforms-core.cjs.js.map +1 -0
- package/lib/jsonforms-core.esm.js +2152 -0
- package/lib/jsonforms-core.esm.js.map +1 -0
- package/lib/models/draft4.d.ts +198 -198
- package/lib/models/index.d.ts +5 -5
- package/lib/models/jsonSchema.d.ts +3 -3
- package/lib/models/jsonSchema4.d.ts +110 -110
- package/lib/models/jsonSchema7.d.ts +119 -119
- package/lib/models/uischema.d.ts +201 -201
- package/lib/reducers/cells.d.ts +11 -11
- package/lib/reducers/config.d.ts +3 -3
- package/lib/reducers/core.d.ts +24 -24
- package/lib/reducers/default-data.d.ts +10 -10
- package/lib/reducers/i18n.d.ts +8 -8
- package/lib/reducers/index.d.ts +9 -9
- package/lib/reducers/reducers.d.ts +29 -29
- package/lib/reducers/renderers.d.ts +10 -10
- package/lib/reducers/selectors.d.ts +15 -15
- package/lib/reducers/uischemas.d.ts +10 -10
- package/lib/store.d.ts +53 -53
- package/lib/testers/index.d.ts +1 -1
- package/lib/testers/testers.d.ts +204 -203
- package/lib/util/Formatted.d.ts +19 -19
- package/lib/util/array.d.ts +3 -3
- package/lib/util/cell.d.ts +79 -79
- package/lib/util/combinators.d.ts +9 -10
- package/lib/util/ids.d.ts +3 -3
- package/lib/util/index.d.ts +15 -15
- package/lib/util/label.d.ts +9 -9
- package/lib/util/path.d.ts +35 -25
- package/lib/util/renderer.d.ts +398 -397
- package/lib/util/resolvers.d.ts +25 -25
- package/lib/util/runtime.d.ts +18 -18
- package/lib/util/schema.d.ts +1 -1
- package/lib/util/type.d.ts +174 -174
- package/lib/util/uischema.d.ts +5 -5
- package/lib/util/util.d.ts +31 -31
- package/lib/util/validator.d.ts +3 -3
- package/package.json +16 -13
- package/rollup.config.js +44 -0
- package/src/generators/uischema.ts +4 -4
- package/src/reducers/reducers.ts +14 -6
- package/src/testers/testers.ts +60 -33
- package/src/util/cell.ts +4 -4
- package/src/util/combinators.ts +17 -32
- package/src/util/label.ts +2 -2
- package/src/util/path.ts +18 -6
- package/src/util/renderer.ts +22 -36
- package/src/util/resolvers.ts +57 -68
- package/src/util/util.ts +1 -1
- package/stats.html +3279 -0
- package/test/generators/uischema.test.ts +18 -0
- package/test/testers.test.ts +208 -120
- package/test/util/path.test.ts +37 -20
- package/test/util/resolvers.test.ts +99 -8
- package/lib/Helpers.js +0 -33
- package/lib/Helpers.js.map +0 -1
- package/lib/actions/actions.js +0 -173
- package/lib/actions/actions.js.map +0 -1
- package/lib/actions/index.js +0 -29
- package/lib/actions/index.js.map +0 -1
- package/lib/configDefault.js +0 -48
- package/lib/configDefault.js.map +0 -1
- package/lib/generators/Generate.js +0 -35
- package/lib/generators/Generate.js.map +0 -1
- package/lib/generators/index.js +0 -31
- package/lib/generators/index.js.map +0 -1
- package/lib/generators/schema.js +0 -154
- package/lib/generators/schema.js.map +0 -1
- package/lib/generators/uischema.js +0 -169
- package/lib/generators/uischema.js.map +0 -1
- package/lib/i18n/i18nTypes.js +0 -3
- package/lib/i18n/i18nTypes.js.map +0 -1
- package/lib/i18n/i18nUtil.js +0 -71
- package/lib/i18n/i18nUtil.js.map +0 -1
- package/lib/i18n/index.js +0 -6
- package/lib/i18n/index.js.map +0 -1
- package/lib/index.js +0 -40
- package/lib/index.js.map +0 -1
- package/lib/jsonforms-core.js +0 -25
- package/lib/jsonforms-core.js.map +0 -1
- package/lib/models/draft4.js +0 -174
- package/lib/models/draft4.js.map +0 -1
- package/lib/models/index.js +0 -33
- package/lib/models/index.js.map +0 -1
- package/lib/models/jsonSchema.js +0 -27
- package/lib/models/jsonSchema.js.map +0 -1
- package/lib/models/jsonSchema4.js +0 -30
- package/lib/models/jsonSchema4.js.map +0 -1
- package/lib/models/jsonSchema7.js +0 -30
- package/lib/models/jsonSchema7.js.map +0 -1
- package/lib/models/uischema.js +0 -58
- package/lib/models/uischema.js.map +0 -1
- package/lib/reducers/cells.js +0 -42
- package/lib/reducers/cells.js.map +0 -1
- package/lib/reducers/config.js +0 -46
- package/lib/reducers/config.js.map +0 -1
- package/lib/reducers/core.js +0 -294
- package/lib/reducers/core.js.map +0 -1
- package/lib/reducers/default-data.js +0 -45
- package/lib/reducers/default-data.js.map +0 -1
- package/lib/reducers/i18n.js +0 -83
- package/lib/reducers/i18n.js.map +0 -1
- package/lib/reducers/index.js +0 -37
- package/lib/reducers/index.js.map +0 -1
- package/lib/reducers/reducers.js +0 -98
- package/lib/reducers/reducers.js.map +0 -1
- package/lib/reducers/renderers.js +0 -43
- package/lib/reducers/renderers.js.map +0 -1
- package/lib/reducers/selectors.js +0 -56
- package/lib/reducers/selectors.js.map +0 -1
- package/lib/reducers/uischemas.js +0 -60
- package/lib/reducers/uischemas.js.map +0 -1
- package/lib/store.js +0 -27
- package/lib/store.js.map +0 -1
- package/lib/testers/index.js +0 -29
- package/lib/testers/index.js.map +0 -1
- package/lib/testers/testers.js +0 -421
- package/lib/testers/testers.js.map +0 -1
- package/lib/util/Formatted.js +0 -27
- package/lib/util/Formatted.js.map +0 -1
- package/lib/util/array.js +0 -44
- package/lib/util/array.js.map +0 -1
- package/lib/util/cell.js +0 -148
- package/lib/util/cell.js.map +0 -1
- package/lib/util/combinators.js +0 -59
- package/lib/util/combinators.js.map +0 -1
- package/lib/util/ids.js +0 -54
- package/lib/util/ids.js.map +0 -1
- package/lib/util/index.js +0 -43
- package/lib/util/index.js.map +0 -1
- package/lib/util/label.js +0 -73
- package/lib/util/label.js.map +0 -1
- package/lib/util/path.js +0 -90
- package/lib/util/path.js.map +0 -1
- package/lib/util/renderer.js +0 -530
- package/lib/util/renderer.js.map +0 -1
- package/lib/util/resolvers.js +0 -169
- package/lib/util/resolvers.js.map +0 -1
- package/lib/util/runtime.js +0 -167
- package/lib/util/runtime.js.map +0 -1
- package/lib/util/schema.js +0 -42
- package/lib/util/schema.js.map +0 -1
- package/lib/util/type.js +0 -27
- package/lib/util/type.js.map +0 -1
- package/lib/util/uischema.js +0 -56
- package/lib/util/uischema.js.map +0 -1
- package/lib/util/util.js +0 -112
- package/lib/util/util.js.map +0 -1
- package/lib/util/validator.js +0 -37
- package/lib/util/validator.js.map +0 -1
- package/webpack.build.js +0 -13
package/test/util/path.test.ts
CHANGED
|
@@ -35,7 +35,7 @@ test('resolve ', t => {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
t.deepEqual(Resolve.schema(schema, '#/properties/foo'), {
|
|
38
|
+
t.deepEqual(Resolve.schema(schema, '#/properties/foo', schema), {
|
|
39
39
|
type: 'integer'
|
|
40
40
|
});
|
|
41
41
|
});
|
|
@@ -46,12 +46,39 @@ test('toDataPath ', t => {
|
|
|
46
46
|
test('toDataPath replace anyOf', t => {
|
|
47
47
|
t.is(toDataPath('/anyOf/1/properties/foo/anyOf/1/properties/bar'), 'foo.bar');
|
|
48
48
|
});
|
|
49
|
+
test('toDataPath replace anyOf in combination with conditional schema compositions', t => {
|
|
50
|
+
t.is(toDataPath('/anyOf/1/then/properties/foo'), 'foo');
|
|
51
|
+
});
|
|
52
|
+
test('toDataPath replace multiple directly nested anyOf in combination with conditional schema compositions', t => {
|
|
53
|
+
t.is(toDataPath('/anyOf/1/then/anyOf/0/then/properties/foo'), 'foo');
|
|
54
|
+
});
|
|
55
|
+
test('toDataPath replace multiple nested properties with anyOf in combination with conditional schema compositions', t => {
|
|
56
|
+
t.is(toDataPath('/anyOf/1/properties/foo/anyOf/0/then/properties/bar'), 'foo.bar');
|
|
57
|
+
});
|
|
49
58
|
test('toDataPath replace allOf', t => {
|
|
50
59
|
t.is(toDataPath('/allOf/1/properties/foo/allOf/1/properties/bar'), 'foo.bar');
|
|
51
60
|
});
|
|
61
|
+
test('toDataPath replace allOf in combination with conditional schema compositions', t => {
|
|
62
|
+
t.is(toDataPath('/allOf/1/then/properties/foo'), 'foo');
|
|
63
|
+
});
|
|
64
|
+
test('toDataPath replace multiple directly nested allOf in combination with conditional schema compositions', t => {
|
|
65
|
+
t.is(toDataPath('/allOf/1/then/allOf/0/then/properties/foo'), 'foo');
|
|
66
|
+
});
|
|
67
|
+
test('toDataPath replace multiple nested properties with allOf in combination with conditional schema compositions', t => {
|
|
68
|
+
t.is(toDataPath('/allOf/1/properties/foo/allOf/0/then/properties/bar'), 'foo.bar');
|
|
69
|
+
});
|
|
52
70
|
test('toDataPath replace oneOf', t => {
|
|
53
71
|
t.is(toDataPath('/oneOf/1/properties/foo/oneOf/1/properties/bar'), 'foo.bar');
|
|
54
72
|
});
|
|
73
|
+
test('toDataPath replace oneOf in combination with conditional schema compositions', t => {
|
|
74
|
+
t.is(toDataPath('/oneOf/1/then/properties/foo'), 'foo');
|
|
75
|
+
});
|
|
76
|
+
test('toDataPath replace multiple directly nested oneOf in combination with conditional schema compositions', t => {
|
|
77
|
+
t.is(toDataPath('/oneOf/1/then/oneOf/0/then/properties/foo'), 'foo');
|
|
78
|
+
});
|
|
79
|
+
test('toDataPath replace multiple nested properties with oneOf in combination with conditional schema compositions', t => {
|
|
80
|
+
t.is(toDataPath('/oneOf/1/properties/foo/oneOf/0/then/properties/bar'), 'foo.bar');
|
|
81
|
+
});
|
|
55
82
|
test('toDataPath replace all combinators', t => {
|
|
56
83
|
t.is(
|
|
57
84
|
toDataPath(
|
|
@@ -87,6 +114,9 @@ test('toDataPath use of encoded paths relative without /', t => {
|
|
|
87
114
|
const fooBar = encodeURIComponent('foo/bar');
|
|
88
115
|
t.is(toDataPath(`properties/${fooBar}`), `${fooBar}`);
|
|
89
116
|
});
|
|
117
|
+
test('toDataPath use of encoded special character in pathname', t => {
|
|
118
|
+
t.is(toDataPath('properties/foo~0bar~1baz'), 'foo~bar/baz');
|
|
119
|
+
});
|
|
90
120
|
test('resolve instance', t => {
|
|
91
121
|
const instance = { foo: 123 };
|
|
92
122
|
const result = Resolve.data(instance, toDataPath('#/properties/foo'));
|
|
@@ -136,10 +166,10 @@ test('resolve $ref', t => {
|
|
|
136
166
|
}
|
|
137
167
|
}
|
|
138
168
|
};
|
|
139
|
-
const result = Resolve.schema(schema, '#/properties/foos/items');
|
|
169
|
+
const result = Resolve.schema(schema, '#/properties/foos/items', schema);
|
|
140
170
|
t.deepEqual(result, { type: 'string' });
|
|
141
171
|
});
|
|
142
|
-
test
|
|
172
|
+
test('resolve $ref simple', t => {
|
|
143
173
|
const schema: JsonSchema = {
|
|
144
174
|
definitions: {
|
|
145
175
|
foo: {
|
|
@@ -164,21 +194,21 @@ test.failing('resolve $ref simple', t => {
|
|
|
164
194
|
}
|
|
165
195
|
}
|
|
166
196
|
};
|
|
167
|
-
const result = Resolve.schema(schema, '#/properties/foos/items');
|
|
197
|
+
const result = Resolve.schema(schema, '#/properties/foos/items', schema);
|
|
168
198
|
t.deepEqual(result, {
|
|
169
199
|
type: 'object',
|
|
170
200
|
properties: {
|
|
171
201
|
bar: {
|
|
172
202
|
type: 'array',
|
|
173
203
|
items: {
|
|
174
|
-
$ref: '
|
|
204
|
+
$ref: '#/definitions/foo'
|
|
175
205
|
}
|
|
176
206
|
}
|
|
177
207
|
}
|
|
178
208
|
});
|
|
179
209
|
t.not((schema.definitions.foo.properties.bar.items as JsonSchema).$ref, '#');
|
|
180
210
|
});
|
|
181
|
-
test
|
|
211
|
+
test('resolve $ref complicated', t => {
|
|
182
212
|
const schema: JsonSchema = {
|
|
183
213
|
definitions: {
|
|
184
214
|
foo: {
|
|
@@ -214,21 +244,8 @@ test.failing('resolve $ref complicated', t => {
|
|
|
214
244
|
}
|
|
215
245
|
}
|
|
216
246
|
};
|
|
217
|
-
const result = Resolve.schema(schema, '#/properties/foos/items');
|
|
247
|
+
const result = Resolve.schema(schema, '#/properties/foos/items', schema);
|
|
218
248
|
t.deepEqual(result, {
|
|
219
|
-
definitions: {
|
|
220
|
-
foo2: {
|
|
221
|
-
type: 'object',
|
|
222
|
-
properties: {
|
|
223
|
-
bar: {
|
|
224
|
-
type: 'array',
|
|
225
|
-
items: {
|
|
226
|
-
$ref: '#'
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
249
|
type: 'object',
|
|
233
250
|
properties: {
|
|
234
251
|
bar: {
|
|
@@ -27,6 +27,29 @@ import test from 'ava';
|
|
|
27
27
|
|
|
28
28
|
test('resolveSchema - resolves schema with any ', t => {
|
|
29
29
|
const schema = {
|
|
30
|
+
$defs: {
|
|
31
|
+
Base: {
|
|
32
|
+
type: 'object',
|
|
33
|
+
properties: {
|
|
34
|
+
width: {
|
|
35
|
+
type: 'integer'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
Child: {
|
|
40
|
+
type: 'object',
|
|
41
|
+
allOf: [
|
|
42
|
+
{ $ref: '#/$defs/Base' },
|
|
43
|
+
{
|
|
44
|
+
properties: {
|
|
45
|
+
geometry: {
|
|
46
|
+
type: 'string'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
30
53
|
type: 'object',
|
|
31
54
|
properties: {
|
|
32
55
|
description: {
|
|
@@ -51,16 +74,84 @@ test('resolveSchema - resolves schema with any ', t => {
|
|
|
51
74
|
type: 'boolean'
|
|
52
75
|
}
|
|
53
76
|
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
type: 'object',
|
|
80
|
+
properties: {
|
|
81
|
+
element: {
|
|
82
|
+
$ref: '#/$defs/Child'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
54
85
|
}]
|
|
55
86
|
}
|
|
56
|
-
}
|
|
87
|
+
},
|
|
88
|
+
anyOf: [
|
|
89
|
+
{
|
|
90
|
+
if: {
|
|
91
|
+
properties: {
|
|
92
|
+
exist: {
|
|
93
|
+
const: true
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
then: {
|
|
98
|
+
properties: {
|
|
99
|
+
lastname: {
|
|
100
|
+
type: 'string'
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
else: {
|
|
105
|
+
properties: {
|
|
106
|
+
firstname: {
|
|
107
|
+
type: 'string'
|
|
108
|
+
},
|
|
109
|
+
address: {
|
|
110
|
+
type: 'object',
|
|
111
|
+
anyOf: [
|
|
112
|
+
{
|
|
113
|
+
properties: {
|
|
114
|
+
street: {
|
|
115
|
+
type: 'string'
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
57
125
|
};
|
|
58
126
|
// test backward compatibility
|
|
59
|
-
t.deepEqual(resolveSchema(schema, '#/properties/description/oneOf/0/properties/name'), {type: 'string'});
|
|
60
|
-
t.deepEqual(resolveSchema(schema, '#/properties/description/oneOf/1/properties/index'), {type: 'number'});
|
|
127
|
+
t.deepEqual(resolveSchema(schema, '#/properties/description/oneOf/0/properties/name', schema), {type: 'string'});
|
|
128
|
+
t.deepEqual(resolveSchema(schema, '#/properties/description/oneOf/1/properties/index', schema), {type: 'number'});
|
|
129
|
+
t.deepEqual(resolveSchema(schema, '#/anyOf/0/then/properties/lastname', schema), {type: 'string'});
|
|
130
|
+
t.deepEqual(resolveSchema(schema, '#/anyOf/0/else/properties/firstname', schema), {type: 'string'});
|
|
131
|
+
t.deepEqual(resolveSchema(schema, '#/anyOf/0/else/properties/address/anyOf/0/properties/street', schema), {type: 'string'});
|
|
61
132
|
// new simple approach
|
|
62
|
-
t.deepEqual(resolveSchema(schema, '#/properties/description/properties/name'), {type: 'string'});
|
|
63
|
-
t.deepEqual(resolveSchema(schema, '#/properties/description/properties/index'), {type: 'number'});
|
|
64
|
-
t.deepEqual(resolveSchema(schema, '#/properties/description/properties/exist'), {type: 'boolean'});
|
|
65
|
-
t.
|
|
66
|
-
});
|
|
133
|
+
t.deepEqual(resolveSchema(schema, '#/properties/description/properties/name', schema), {type: 'string'});
|
|
134
|
+
t.deepEqual(resolveSchema(schema, '#/properties/description/properties/index', schema), {type: 'number'});
|
|
135
|
+
t.deepEqual(resolveSchema(schema, '#/properties/description/properties/exist', schema), {type: 'boolean'});
|
|
136
|
+
t.deepEqual(resolveSchema(schema, '#/properties/lastname', schema), {type: 'string'});
|
|
137
|
+
t.deepEqual(resolveSchema(schema, '#/properties/firstname', schema), {type: 'string'});
|
|
138
|
+
t.deepEqual(resolveSchema(schema, '#/properties/address/properties/street', schema), {type: 'string'});
|
|
139
|
+
t.is(resolveSchema(schema, '#/properties/description/properties/notfound', schema), undefined);
|
|
140
|
+
// refs
|
|
141
|
+
t.deepEqual(resolveSchema(schema, '#/properties/description/properties/element/properties/geometry', schema), {type: 'string'});
|
|
142
|
+
t.deepEqual(resolveSchema(schema, '#/properties/description/properties/element/properties/width', schema), {type: 'integer'});
|
|
143
|
+
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
test('resolveSchema - resolves schema with encoded characters', t => {
|
|
147
|
+
const schema = {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
'foo / ~ bar': {
|
|
151
|
+
type: 'integer'
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
t.deepEqual(resolveSchema(schema, '#/properties/foo ~1 ~0 bar', schema), {type: 'integer'});
|
|
156
|
+
t.is(resolveSchema(schema, '#/properties/foo / bar', schema), undefined);
|
|
157
|
+
});
|
package/lib/Helpers.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.Helpers = void 0;
|
|
28
|
-
var util_1 = require("./util");
|
|
29
|
-
exports.Helpers = {
|
|
30
|
-
createLabelDescriptionFrom: util_1.createLabelDescriptionFrom,
|
|
31
|
-
convertToValidClassName: util_1.convertToValidClassName
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=Helpers.js.map
|
package/lib/Helpers.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Helpers.js","sourceRoot":"","sources":["../src/Helpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEF,+BAA6E;AAGhE,QAAA,OAAO,GAMhB;IACF,0BAA0B,mCAAA;IAC1B,uBAAuB,gCAAA;CACxB,CAAC"}
|
package/lib/actions/actions.js
DELETED
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.setUISchema = exports.updateI18n = exports.setTranslator = exports.setSchema = exports.setLocale = exports.unregisterUISchema = exports.registerUISchema = exports.setValidationMode = exports.setConfig = exports.unregisterRenderer = exports.unregisterCell = exports.registerCell = exports.registerRenderer = exports.updateErrors = exports.update = exports.setAjv = exports.unregisterDefaultData = exports.registerDefaultData = exports.updateCore = exports.init = exports.REMOVE_DEFAULT_DATA = exports.ADD_DEFAULT_DATA = exports.UPDATE_I18N = exports.SET_TRANSLATOR = exports.SET_LOCALE = exports.SET_VALIDATION_MODE = exports.SET_UISCHEMA = exports.SET_SCHEMA = exports.REMOVE_UI_SCHEMA = exports.ADD_UI_SCHEMA = exports.SET_CONFIG = exports.REMOVE_CELL = exports.ADD_CELL = exports.REMOVE_RENDERER = exports.ADD_RENDERER = exports.VALIDATE = exports.UPDATE_ERRORS = exports.UPDATE_DATA = exports.SET_AJV = exports.UPDATE_CORE = exports.INIT = void 0;
|
|
28
|
-
var generators_1 = require("../generators");
|
|
29
|
-
exports.INIT = 'jsonforms/INIT';
|
|
30
|
-
exports.UPDATE_CORE = "jsonforms/UPDATE_CORE";
|
|
31
|
-
exports.SET_AJV = 'jsonforms/SET_AJV';
|
|
32
|
-
exports.UPDATE_DATA = 'jsonforms/UPDATE';
|
|
33
|
-
exports.UPDATE_ERRORS = 'jsonforms/UPDATE_ERRORS';
|
|
34
|
-
exports.VALIDATE = 'jsonforms/VALIDATE';
|
|
35
|
-
exports.ADD_RENDERER = 'jsonforms/ADD_RENDERER';
|
|
36
|
-
exports.REMOVE_RENDERER = 'jsonforms/REMOVE_RENDERER';
|
|
37
|
-
exports.ADD_CELL = 'jsonforms/ADD_CELL';
|
|
38
|
-
exports.REMOVE_CELL = 'jsonforms/REMOVE_CELL';
|
|
39
|
-
exports.SET_CONFIG = 'jsonforms/SET_CONFIG';
|
|
40
|
-
exports.ADD_UI_SCHEMA = "jsonforms/ADD_UI_SCHEMA";
|
|
41
|
-
exports.REMOVE_UI_SCHEMA = "jsonforms/REMOVE_UI_SCHEMA";
|
|
42
|
-
exports.SET_SCHEMA = "jsonforms/SET_SCHEMA";
|
|
43
|
-
exports.SET_UISCHEMA = "jsonforms/SET_UISCHEMA";
|
|
44
|
-
exports.SET_VALIDATION_MODE = 'jsonforms/SET_VALIDATION_MODE';
|
|
45
|
-
exports.SET_LOCALE = "jsonforms/SET_LOCALE";
|
|
46
|
-
exports.SET_TRANSLATOR = 'jsonforms/SET_TRANSLATOR';
|
|
47
|
-
exports.UPDATE_I18N = 'jsonforms/UPDATE_I18N';
|
|
48
|
-
exports.ADD_DEFAULT_DATA = "jsonforms/ADD_DEFAULT_DATA";
|
|
49
|
-
exports.REMOVE_DEFAULT_DATA = "jsonforms/REMOVE_DEFAULT_DATA";
|
|
50
|
-
var init = function (data, schema, uischema, options) {
|
|
51
|
-
if (schema === void 0) { schema = generators_1.generateJsonSchema(data); }
|
|
52
|
-
return ({
|
|
53
|
-
type: exports.INIT,
|
|
54
|
-
data: data,
|
|
55
|
-
schema: schema,
|
|
56
|
-
uischema: typeof uischema === 'object' ? uischema : generators_1.generateDefaultUISchema(schema),
|
|
57
|
-
options: options
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
exports.init = init;
|
|
61
|
-
var updateCore = function (data, schema, uischema, options) { return ({
|
|
62
|
-
type: exports.UPDATE_CORE,
|
|
63
|
-
data: data,
|
|
64
|
-
schema: schema,
|
|
65
|
-
uischema: uischema,
|
|
66
|
-
options: options
|
|
67
|
-
}); };
|
|
68
|
-
exports.updateCore = updateCore;
|
|
69
|
-
var registerDefaultData = function (schemaPath, data) { return ({
|
|
70
|
-
type: exports.ADD_DEFAULT_DATA,
|
|
71
|
-
schemaPath: schemaPath,
|
|
72
|
-
data: data
|
|
73
|
-
}); };
|
|
74
|
-
exports.registerDefaultData = registerDefaultData;
|
|
75
|
-
var unregisterDefaultData = function (schemaPath) { return ({
|
|
76
|
-
type: exports.REMOVE_DEFAULT_DATA,
|
|
77
|
-
schemaPath: schemaPath
|
|
78
|
-
}); };
|
|
79
|
-
exports.unregisterDefaultData = unregisterDefaultData;
|
|
80
|
-
var setAjv = function (ajv) { return ({
|
|
81
|
-
type: exports.SET_AJV,
|
|
82
|
-
ajv: ajv
|
|
83
|
-
}); };
|
|
84
|
-
exports.setAjv = setAjv;
|
|
85
|
-
var update = function (path, updater) { return ({
|
|
86
|
-
type: exports.UPDATE_DATA,
|
|
87
|
-
path: path,
|
|
88
|
-
updater: updater
|
|
89
|
-
}); };
|
|
90
|
-
exports.update = update;
|
|
91
|
-
var updateErrors = function (errors) { return ({
|
|
92
|
-
type: exports.UPDATE_ERRORS,
|
|
93
|
-
errors: errors
|
|
94
|
-
}); };
|
|
95
|
-
exports.updateErrors = updateErrors;
|
|
96
|
-
var registerRenderer = function (tester, renderer) { return ({
|
|
97
|
-
type: exports.ADD_RENDERER,
|
|
98
|
-
tester: tester,
|
|
99
|
-
renderer: renderer
|
|
100
|
-
}); };
|
|
101
|
-
exports.registerRenderer = registerRenderer;
|
|
102
|
-
var registerCell = function (tester, cell) { return ({
|
|
103
|
-
type: exports.ADD_CELL,
|
|
104
|
-
tester: tester,
|
|
105
|
-
cell: cell
|
|
106
|
-
}); };
|
|
107
|
-
exports.registerCell = registerCell;
|
|
108
|
-
var unregisterCell = function (tester, cell) { return ({
|
|
109
|
-
type: exports.REMOVE_CELL,
|
|
110
|
-
tester: tester,
|
|
111
|
-
cell: cell
|
|
112
|
-
}); };
|
|
113
|
-
exports.unregisterCell = unregisterCell;
|
|
114
|
-
var unregisterRenderer = function (tester, renderer) { return ({
|
|
115
|
-
type: exports.REMOVE_RENDERER,
|
|
116
|
-
tester: tester,
|
|
117
|
-
renderer: renderer
|
|
118
|
-
}); };
|
|
119
|
-
exports.unregisterRenderer = unregisterRenderer;
|
|
120
|
-
var setConfig = function (config) { return ({
|
|
121
|
-
type: exports.SET_CONFIG,
|
|
122
|
-
config: config
|
|
123
|
-
}); };
|
|
124
|
-
exports.setConfig = setConfig;
|
|
125
|
-
var setValidationMode = function (validationMode) { return ({
|
|
126
|
-
type: exports.SET_VALIDATION_MODE,
|
|
127
|
-
validationMode: validationMode
|
|
128
|
-
}); };
|
|
129
|
-
exports.setValidationMode = setValidationMode;
|
|
130
|
-
var registerUISchema = function (tester, uischema) {
|
|
131
|
-
return {
|
|
132
|
-
type: exports.ADD_UI_SCHEMA,
|
|
133
|
-
tester: tester,
|
|
134
|
-
uischema: uischema
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
exports.registerUISchema = registerUISchema;
|
|
138
|
-
var unregisterUISchema = function (tester) {
|
|
139
|
-
return {
|
|
140
|
-
type: exports.REMOVE_UI_SCHEMA,
|
|
141
|
-
tester: tester
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
exports.unregisterUISchema = unregisterUISchema;
|
|
145
|
-
var setLocale = function (locale) { return ({
|
|
146
|
-
type: exports.SET_LOCALE,
|
|
147
|
-
locale: locale
|
|
148
|
-
}); };
|
|
149
|
-
exports.setLocale = setLocale;
|
|
150
|
-
var setSchema = function (schema) { return ({
|
|
151
|
-
type: exports.SET_SCHEMA,
|
|
152
|
-
schema: schema
|
|
153
|
-
}); };
|
|
154
|
-
exports.setSchema = setSchema;
|
|
155
|
-
var setTranslator = function (translator, errorTranslator) { return ({
|
|
156
|
-
type: exports.SET_TRANSLATOR,
|
|
157
|
-
translator: translator,
|
|
158
|
-
errorTranslator: errorTranslator
|
|
159
|
-
}); };
|
|
160
|
-
exports.setTranslator = setTranslator;
|
|
161
|
-
var updateI18n = function (locale, translator, errorTranslator) { return ({
|
|
162
|
-
type: exports.UPDATE_I18N,
|
|
163
|
-
locale: locale,
|
|
164
|
-
translator: translator,
|
|
165
|
-
errorTranslator: errorTranslator
|
|
166
|
-
}); };
|
|
167
|
-
exports.updateI18n = updateI18n;
|
|
168
|
-
var setUISchema = function (uischema) { return ({
|
|
169
|
-
type: exports.SET_UISCHEMA,
|
|
170
|
-
uischema: uischema
|
|
171
|
-
}); };
|
|
172
|
-
exports.setUISchema = setUISchema;
|
|
173
|
-
//# sourceMappingURL=actions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/actions/actions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAIF,4CAA4E;AAM/D,QAAA,IAAI,GAAqB,gBAAgB,CAAC;AAC1C,QAAA,WAAW,GAA4B,uBAAuB,CAAC;AAC/D,QAAA,OAAO,GAAwB,mBAAmB,CAAC;AACnD,QAAA,WAAW,GAAuB,kBAAkB,CAAC;AACrD,QAAA,aAAa,GACxB,yBAAyB,CAAC;AACf,QAAA,QAAQ,GAAyB,oBAAoB,CAAC;AACtD,QAAA,YAAY,GAA6B,wBAAwB,CAAC;AAClE,QAAA,eAAe,GAC1B,2BAA2B,CAAC;AACjB,QAAA,QAAQ,GAAyB,oBAAoB,CAAC;AACtD,QAAA,WAAW,GAA4B,uBAAuB,CAAC;AAC/D,QAAA,UAAU,GAA2B,sBAAsB,CAAC;AAC5D,QAAA,aAAa,GAA8B,yBAAyB,CAAC;AACrE,QAAA,gBAAgB,GAAiC,4BAA4B,CAAC;AAC9E,QAAA,UAAU,GAA2B,sBAAsB,CAAC;AAC5D,QAAA,YAAY,GAA6B,wBAAwB,CAAC;AAClE,QAAA,mBAAmB,GAC9B,+BAA+B,CAAC;AAErB,QAAA,UAAU,GAA2B,sBAAsB,CAAC;AAC5D,QAAA,cAAc,GACzB,0BAA0B,CAAC;AAChB,QAAA,WAAW,GAC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KrB,CAAC;AATU,QAAA,UAAU,cASpB;AAOI,IAAM,WAAW,GAAG,UAAC,QAAyB,IAAwB,OAAA,CAAC;IAC5E,IAAI,EAAE,oBAAY;IAClB,QAAQ,UAAA;CACT,CAAC,EAH2E,CAG3E,CAAC;AAHU,QAAA,WAAW,eAGrB"}
|
package/lib/actions/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
var tslib_1 = require("tslib");
|
|
28
|
-
tslib_1.__exportStar(require("./actions"), exports);
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
package/lib/actions/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEF,oDAA0B"}
|
package/lib/configDefault.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.configDefault = void 0;
|
|
28
|
-
exports.configDefault = {
|
|
29
|
-
/*
|
|
30
|
-
* [text] whether to restrict the number of characters to maxLength,
|
|
31
|
-
* if specified in the JSON schema
|
|
32
|
-
*/
|
|
33
|
-
restrict: false,
|
|
34
|
-
/*
|
|
35
|
-
* [text] whether to resize the input's width to maxLength,
|
|
36
|
-
* if specified in the JSON schema
|
|
37
|
-
*/
|
|
38
|
-
trim: false,
|
|
39
|
-
/*
|
|
40
|
-
* [text] if input descriptions should hide when not focused
|
|
41
|
-
*/
|
|
42
|
-
showUnfocusedDescription: false,
|
|
43
|
-
/*
|
|
44
|
-
* [text] if asterisks in labels for required fields should be hidden
|
|
45
|
-
*/
|
|
46
|
-
hideRequiredAsterisk: false
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=configDefault.js.map
|
package/lib/configDefault.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"configDefault.js","sourceRoot":"","sources":["../src/configDefault.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEW,QAAA,aAAa,GAAG;IAC3B;;;OAGG;IACH,QAAQ,EAAE,KAAK;IAEf;;;OAGG;IACH,IAAI,EAAE,KAAK;IAEX;;OAEG;IACH,wBAAwB,EAAE,KAAK;IAE/B;;OAEG;IACH,oBAAoB,EAAE,KAAK;CAC5B,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.Generate = void 0;
|
|
28
|
-
var schema_1 = require("./schema");
|
|
29
|
-
var uischema_1 = require("./uischema");
|
|
30
|
-
exports.Generate = {
|
|
31
|
-
jsonSchema: schema_1.generateJsonSchema,
|
|
32
|
-
uiSchema: uischema_1.generateDefaultUISchema,
|
|
33
|
-
controlElement: uischema_1.createControlElement
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=Generate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Generate.js","sourceRoot":"","sources":["../../src/generators/Generate.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEF,mCAA8C;AAC9C,uCAA2E;AAG9D,QAAA,QAAQ,GASjB;IACF,UAAU,EAAE,2BAAkB;IAC9B,QAAQ,EAAE,kCAAuB;IACjC,cAAc,EAAE,+BAAoB;CACrC,CAAC"}
|
package/lib/generators/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
The MIT License
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
6
|
-
https://github.com/eclipsesource/jsonforms
|
|
7
|
-
|
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
in the Software without restriction, including without limitation the rights
|
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
furnished to do so, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
|
16
|
-
all copies or substantial portions of the Software.
|
|
17
|
-
|
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
24
|
-
THE SOFTWARE.
|
|
25
|
-
*/
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
var tslib_1 = require("tslib");
|
|
28
|
-
tslib_1.__exportStar(require("./Generate"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./schema"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./uischema"), exports);
|
|
31
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEF,qDAA2B;AAC3B,mDAAyB;AACzB,qDAA2B"}
|