@jsonforms/examples 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 +860 -879
- package/lib/example.d.ts +23 -23
- package/lib/examples/1169.d.ts +24 -24
- package/lib/examples/1220.d.ts +4 -4
- package/lib/examples/1253.d.ts +16 -16
- package/lib/examples/1254.d.ts +21 -21
- package/lib/examples/1645.d.ts +68 -68
- package/lib/examples/1779.d.ts +1 -1
- package/lib/examples/allOf.d.ts +56 -56
- package/lib/examples/anyOf-oneOf-allOf-resolve.d.ts +44 -44
- package/lib/examples/anyOf.d.ts +64 -64
- package/lib/examples/arrays-with-custom-element-label.d.ts +43 -43
- package/lib/examples/arrays-with-detail-and-rule.d.ts +91 -91
- package/lib/examples/arrays-with-detail.d.ts +65 -65
- package/lib/examples/arrays.d.ts +55 -51
- package/lib/examples/booleanToggle.d.ts +62 -62
- package/lib/examples/categorization.d.ts +135 -135
- package/lib/examples/conditional-schema-compositions.d.ts +56 -0
- package/lib/examples/config.d.ts +29 -29
- package/lib/examples/control-options.d.ts +190 -190
- package/lib/examples/dates.d.ts +1 -1
- package/lib/examples/day1.d.ts +23 -23
- package/lib/examples/day2.d.ts +42 -42
- package/lib/examples/day3.d.ts +51 -51
- package/lib/examples/day4.d.ts +72 -72
- package/lib/examples/day5.d.ts +133 -133
- package/lib/examples/day6.d.ts +85 -85
- package/lib/examples/default.d.ts +64 -64
- package/lib/examples/dynamic.d.ts +1 -1
- package/lib/examples/enum.d.ts +49 -49
- package/lib/examples/enumInArray.d.ts +27 -27
- package/lib/examples/generate.d.ts +12 -12
- package/lib/examples/generateUI.d.ts +33 -33
- package/lib/examples/huge.d.ts +1 -1
- package/lib/examples/i18n.d.ts +25 -25
- package/lib/examples/if_then_else.d.ts +25 -25
- package/lib/examples/layout.d.ts +97 -97
- package/lib/examples/list-with-detail-registered.d.ts +1 -1
- package/lib/examples/list-with-detail.d.ts +1 -1
- package/lib/examples/multi-enum.d.ts +34 -34
- package/lib/examples/nestedArrays.d.ts +11 -11
- package/lib/examples/numbers.d.ts +46 -46
- package/lib/examples/object.d.ts +67 -56
- package/lib/examples/onChange.d.ts +18 -18
- package/lib/examples/oneOf-recursive.d.ts +48 -48
- package/lib/examples/oneOf.d.ts +53 -53
- package/lib/examples/oneOfArray.d.ts +53 -53
- package/lib/examples/person.d.ts +99 -99
- package/lib/examples/radioGroup.d.ts +1 -1
- package/lib/examples/readonly.d.ts +36 -36
- package/lib/examples/rule.d.ts +59 -59
- package/lib/examples/ruleInheritance.d.ts +26 -26
- package/lib/examples/scope.d.ts +50 -50
- package/lib/examples/stepper.d.ts +138 -138
- package/lib/examples/steppershownav.d.ts +139 -139
- package/lib/examples/stringArray.d.ts +22 -22
- package/lib/examples/text.d.ts +37 -37
- package/lib/index.d.ts +58 -58
- package/lib/jsonforms-examples.cjs.js +6134 -0
- package/lib/jsonforms-examples.cjs.js.map +1 -0
- package/lib/jsonforms-examples.esm.js +6112 -0
- package/lib/jsonforms-examples.esm.js.map +1 -0
- package/lib/register.d.ts +3 -3
- package/package.json +14 -7
- package/rollup.config.js +48 -0
- 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 +3 -3
- package/stats.html +3279 -0
- package/lib/example.js +0 -3
- package/lib/example.js.map +0 -1
- package/lib/examples/1169.js +0 -61
- package/lib/examples/1169.js.map +0 -1
- package/lib/examples/1220.js +0 -138
- package/lib/examples/1220.js.map +0 -1
- package/lib/examples/1253.js +0 -202
- package/lib/examples/1253.js.map +0 -1
- package/lib/examples/1254.js +0 -67
- package/lib/examples/1254.js.map +0 -1
- package/lib/examples/1645.js +0 -65
- package/lib/examples/1645.js.map +0 -1
- package/lib/examples/1779.js +0 -82
- package/lib/examples/1779.js.map +0 -1
- package/lib/examples/allOf.js +0 -92
- package/lib/examples/allOf.js.map +0 -1
- package/lib/examples/anyOf-oneOf-allOf-resolve.js +0 -95
- package/lib/examples/anyOf-oneOf-allOf-resolve.js.map +0 -1
- package/lib/examples/anyOf.js +0 -115
- package/lib/examples/anyOf.js.map +0 -1
- package/lib/examples/arrays-with-custom-element-label.js +0 -95
- package/lib/examples/arrays-with-custom-element-label.js.map +0 -1
- package/lib/examples/arrays-with-detail-and-rule.js +0 -122
- package/lib/examples/arrays-with-detail-and-rule.js.map +0 -1
- package/lib/examples/arrays-with-detail.js +0 -97
- package/lib/examples/arrays-with-detail.js.map +0 -1
- package/lib/examples/arrays.js +0 -120
- package/lib/examples/arrays.js.map +0 -1
- package/lib/examples/booleanToggle.js +0 -68
- package/lib/examples/booleanToggle.js.map +0 -1
- package/lib/examples/categorization.js +0 -301
- package/lib/examples/categorization.js.map +0 -1
- package/lib/examples/config.js +0 -90
- package/lib/examples/config.js.map +0 -1
- package/lib/examples/control-options.js +0 -240
- package/lib/examples/control-options.js.map +0 -1
- package/lib/examples/dates.js +0 -150
- package/lib/examples/dates.js.map +0 -1
- package/lib/examples/day1.js +0 -60
- package/lib/examples/day1.js.map +0 -1
- package/lib/examples/day2.js +0 -62
- package/lib/examples/day2.js.map +0 -1
- package/lib/examples/day3.js +0 -65
- package/lib/examples/day3.js.map +0 -1
- package/lib/examples/day4.js +0 -71
- package/lib/examples/day4.js.map +0 -1
- package/lib/examples/day5.js +0 -168
- package/lib/examples/day5.js.map +0 -1
- package/lib/examples/day6.js +0 -42
- package/lib/examples/day6.js.map +0 -1
- package/lib/examples/default.js +0 -118
- package/lib/examples/default.js.map +0 -1
- package/lib/examples/dynamic.js +0 -23
- package/lib/examples/dynamic.js.map +0 -1
- package/lib/examples/enum.js +0 -129
- package/lib/examples/enum.js.map +0 -1
- package/lib/examples/enumInArray.js +0 -44
- package/lib/examples/enumInArray.js.map +0 -1
- package/lib/examples/generate.js +0 -42
- package/lib/examples/generate.js.map +0 -1
- package/lib/examples/generateUI.js +0 -42
- package/lib/examples/generateUI.js.map +0 -1
- package/lib/examples/huge.js +0 -1361
- package/lib/examples/huge.js.map +0 -1
- package/lib/examples/i18n.js +0 -94
- package/lib/examples/i18n.js.map +0 -1
- package/lib/examples/if_then_else.js +0 -49
- package/lib/examples/if_then_else.js.map +0 -1
- package/lib/examples/layout.js +0 -149
- package/lib/examples/layout.js.map +0 -1
- package/lib/examples/list-with-detail-registered.js +0 -104
- package/lib/examples/list-with-detail-registered.js.map +0 -1
- package/lib/examples/list-with-detail.js +0 -302
- package/lib/examples/list-with-detail.js.map +0 -1
- package/lib/examples/multi-enum.js +0 -76
- package/lib/examples/multi-enum.js.map +0 -1
- package/lib/examples/nestedArrays.js +0 -117
- package/lib/examples/nestedArrays.js.map +0 -1
- package/lib/examples/numbers.js +0 -89
- package/lib/examples/numbers.js.map +0 -1
- package/lib/examples/object.js +0 -100
- package/lib/examples/object.js.map +0 -1
- package/lib/examples/onChange.js +0 -71
- package/lib/examples/onChange.js.map +0 -1
- package/lib/examples/oneOf-recursive.js +0 -81
- package/lib/examples/oneOf-recursive.js.map +0 -1
- package/lib/examples/oneOf.js +0 -337
- package/lib/examples/oneOf.js.map +0 -1
- package/lib/examples/oneOfArray.js +0 -96
- package/lib/examples/oneOfArray.js.map +0 -1
- package/lib/examples/person.js +0 -156
- package/lib/examples/person.js.map +0 -1
- package/lib/examples/radioGroup.js +0 -86
- package/lib/examples/radioGroup.js.map +0 -1
- package/lib/examples/readonly.js +0 -81
- package/lib/examples/readonly.js.map +0 -1
- package/lib/examples/resolve.d.ts +0 -45
- package/lib/examples/resolve.js +0 -87
- package/lib/examples/resolve.js.map +0 -1
- package/lib/examples/rule.js +0 -123
- package/lib/examples/rule.js.map +0 -1
- package/lib/examples/ruleInheritance.js +0 -97
- package/lib/examples/ruleInheritance.js.map +0 -1
- package/lib/examples/scope.js +0 -113
- package/lib/examples/scope.js.map +0 -1
- package/lib/examples/stepper.js +0 -45
- package/lib/examples/stepper.js.map +0 -1
- package/lib/examples/steppershownav.js +0 -46
- package/lib/examples/steppershownav.js.map +0 -1
- package/lib/examples/stringArray.js +0 -62
- package/lib/examples/stringArray.js.map +0 -1
- package/lib/examples/text.js +0 -97
- package/lib/examples/text.js.map +0 -1
- package/lib/index.js +0 -142
- package/lib/index.js.map +0 -1
- package/lib/register.js +0 -13
- package/lib/register.js.map +0 -1
- package/src/examples/resolve.ts +0 -87
- package/webpack.build.js +0 -12
package/lib/example.js
DELETED
package/lib/example.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example.js","sourceRoot":"","sources":["../src/example.ts"],"names":[],"mappings":""}
|
package/lib/examples/1169.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.data = exports.uischema = exports.schema = void 0;
|
|
4
|
-
/*
|
|
5
|
-
The MIT License
|
|
6
|
-
|
|
7
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
8
|
-
https://github.com/eclipsesource/jsonforms
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in
|
|
18
|
-
all copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
-
THE SOFTWARE.
|
|
27
|
-
*/
|
|
28
|
-
var register_1 = require("../register");
|
|
29
|
-
exports.schema = {
|
|
30
|
-
type: 'object',
|
|
31
|
-
properties: {
|
|
32
|
-
Level1: {
|
|
33
|
-
type: 'array',
|
|
34
|
-
items: {
|
|
35
|
-
type: 'object',
|
|
36
|
-
properties: {
|
|
37
|
-
Level2: {
|
|
38
|
-
type: 'object',
|
|
39
|
-
properties: {
|
|
40
|
-
Level3: {
|
|
41
|
-
type: 'string'
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
exports.uischema = undefined;
|
|
51
|
-
exports.data = {};
|
|
52
|
-
register_1.registerExamples([
|
|
53
|
-
{
|
|
54
|
-
name: '1169',
|
|
55
|
-
label: 'Issue 1169',
|
|
56
|
-
data: exports.data,
|
|
57
|
-
schema: exports.schema,
|
|
58
|
-
uischema: exports.uischema
|
|
59
|
-
}
|
|
60
|
-
]);
|
|
61
|
-
//# sourceMappingURL=1169.js.map
|
package/lib/examples/1169.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1169.js","sourceRoot":"","sources":["../../src/examples/1169.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAGlC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE;4BACV,MAAM,EAAE;gCACN,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAoB,SAAS,CAAC;AAEtC,QAAA,IAAI,GAAG,EAAE,CAAC;AAEvB,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,YAAY;QACnB,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
|
package/lib/examples/1220.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uischema = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
/*
|
|
6
|
-
The MIT License
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
9
|
-
https://github.com/eclipsesource/jsonforms
|
|
10
|
-
|
|
11
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions:
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in
|
|
19
|
-
all copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
27
|
-
THE SOFTWARE.
|
|
28
|
-
*/
|
|
29
|
-
var register_1 = require("../register");
|
|
30
|
-
var core_1 = require("@jsonforms/core");
|
|
31
|
-
var data = {
|
|
32
|
-
orders: [
|
|
33
|
-
{
|
|
34
|
-
title: '42 killer robots',
|
|
35
|
-
ordered: true,
|
|
36
|
-
assignee: 'Philip J. Fry'
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
};
|
|
40
|
-
var schema = {
|
|
41
|
-
definitions: {
|
|
42
|
-
order: {
|
|
43
|
-
type: 'object',
|
|
44
|
-
properties: {
|
|
45
|
-
title: {
|
|
46
|
-
type: 'string',
|
|
47
|
-
minLength: 5
|
|
48
|
-
},
|
|
49
|
-
ordered: { type: 'boolean' },
|
|
50
|
-
assignee: { type: 'string' },
|
|
51
|
-
// needed to enforce nested layout instead of table
|
|
52
|
-
choices: {
|
|
53
|
-
type: 'array',
|
|
54
|
-
items: {
|
|
55
|
-
type: 'string'
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
required: ['title']
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
type: 'object',
|
|
63
|
-
properties: {
|
|
64
|
-
orders: {
|
|
65
|
-
type: 'array',
|
|
66
|
-
items: {
|
|
67
|
-
$ref: '#/definitions/order'
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
exports.uischema = {
|
|
73
|
-
type: 'Control',
|
|
74
|
-
scope: '#/properties/orders'
|
|
75
|
-
};
|
|
76
|
-
var uischemas = [
|
|
77
|
-
{
|
|
78
|
-
tester: function (_jsonSchema, schemaPath) {
|
|
79
|
-
return schemaPath === '#/properties/orders' ? 2 : core_1.NOT_APPLICABLE;
|
|
80
|
-
},
|
|
81
|
-
uischema: {
|
|
82
|
-
type: 'VerticalLayout',
|
|
83
|
-
elements: [
|
|
84
|
-
{
|
|
85
|
-
type: 'Control',
|
|
86
|
-
scope: '#/properties/title'
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
type: 'Control',
|
|
90
|
-
scope: '#/properties/ordered'
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: 'VerticalLayout',
|
|
94
|
-
elements: [
|
|
95
|
-
{
|
|
96
|
-
type: 'Control',
|
|
97
|
-
scope: '#/properties/assignee'
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
rule: {
|
|
101
|
-
effect: 'SHOW',
|
|
102
|
-
condition: {
|
|
103
|
-
type: 'LEAF',
|
|
104
|
-
scope: '#/properties/ordered',
|
|
105
|
-
expectedValue: true
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
];
|
|
113
|
-
var actions = [
|
|
114
|
-
{
|
|
115
|
-
'label': 'Register Issue 1220 UISchema',
|
|
116
|
-
'apply': function (props) {
|
|
117
|
-
return tslib_1.__assign(tslib_1.__assign({}, props), { uischemas: uischemas });
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
'label': 'Unregister Issue 1220 UISchema',
|
|
122
|
-
'apply': function (props) {
|
|
123
|
-
var uischemas = undefined;
|
|
124
|
-
return tslib_1.__assign(tslib_1.__assign({}, props), { uischemas: uischemas });
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
];
|
|
128
|
-
register_1.registerExamples([
|
|
129
|
-
{
|
|
130
|
-
name: '1220',
|
|
131
|
-
label: 'Issue 1220',
|
|
132
|
-
data: data,
|
|
133
|
-
schema: schema,
|
|
134
|
-
uischema: exports.uischema,
|
|
135
|
-
actions: actions
|
|
136
|
-
}
|
|
137
|
-
]);
|
|
138
|
-
//# sourceMappingURL=1220.js.map
|
package/lib/examples/1220.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1220.js","sourceRoot":"","sources":["../../src/examples/1220.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAC/C,wCAA6F;AAG7F,IAAM,IAAI,GAAG;IACX,MAAM,EAAE;QACN;YACE,KAAK,EAAE,kBAAkB;YACzB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,eAAe;SAC1B;KACF;CACF,CAAC;AAEF,IAAM,MAAM,GAAG;IACb,WAAW,EAAE;QACX,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,SAAS,EAAE,CAAC;iBACb;gBACD,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC5B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC5B,mDAAmD;gBACnD,OAAO,EAAE;oBACP,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;qBACf;iBACF;aACF;YACD,QAAQ,EAAE,CAAC,OAAO,CAAC;SACpB;KACF;IACD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,qBAAqB;aAC5B;SACF;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,qBAAqB;CAC7B,CAAC;AAEF,IAAM,SAAS,GAAG;IAChB;QACE,MAAM,EAAE,UAAC,WAAuB,EAAE,UAAkB;YAClD,OAAO,UAAU,KAAK,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,qBAAc,CAAC;QACnE,CAAC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,gBAAgB;YACtB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,oBAAoB;iBAC5B;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,sBAAsB;iBAC9B;gBACD;oBACE,IAAI,EAAE,gBAAgB;oBACtB,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,uBAAuB;yBAC/B;qBACF;oBACD,IAAI,EAAE;wBACJ,MAAM,EAAE,MAAM;wBACd,SAAS,EAAE;4BACT,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,sBAAsB;4BAC7B,aAAa,EAAE,IAAI;yBACpB;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,IAAM,OAAO,GAAG;IACd;QACE,OAAO,EAAE,8BAA8B;QACvC,OAAO,EAAE,UAAC,KAAiB;YACzB,6CACK,KAAK,KACR,SAAS,EAAE,SAAS,IACrB;QACH,CAAC;KACF;IACD;QACE,OAAO,EAAE,gCAAgC;QACzC,OAAO,EAAE,UAAC,KAAiB;YACzB,IAAM,SAAS,GAAqC,SAAS,CAAC;YAC9D,6CACK,KAAK,KACR,SAAS,EAAE,SAAS,IACrB;QACH,CAAC;KACF;CACF,CAAC;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,YAAY;QACnB,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,QAAQ,kBAAA;QACR,OAAO,SAAA;KACR;CACF,CAAC,CAAC"}
|
package/lib/examples/1253.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uischema = exports.schema = void 0;
|
|
4
|
-
/*
|
|
5
|
-
The MIT License
|
|
6
|
-
|
|
7
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
8
|
-
https://github.com/eclipsesource/jsonforms
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in
|
|
18
|
-
all copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
-
THE SOFTWARE.
|
|
27
|
-
*/
|
|
28
|
-
var register_1 = require("../register");
|
|
29
|
-
exports.schema = {
|
|
30
|
-
type: 'object',
|
|
31
|
-
properties: {
|
|
32
|
-
value: {
|
|
33
|
-
oneOf: [
|
|
34
|
-
{
|
|
35
|
-
title: 'String',
|
|
36
|
-
type: 'string'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
title: 'Number',
|
|
40
|
-
type: 'number'
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
exports.uischema = {
|
|
47
|
-
type: 'Control',
|
|
48
|
-
label: 'Value',
|
|
49
|
-
scope: '#/properties/value'
|
|
50
|
-
};
|
|
51
|
-
var data = {};
|
|
52
|
-
var schema2 = {
|
|
53
|
-
type: 'object',
|
|
54
|
-
properties: {
|
|
55
|
-
oneOrMoreThings: {
|
|
56
|
-
oneOf: [
|
|
57
|
-
{
|
|
58
|
-
$ref: '#/definitions/thing'
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
$ref: '#/definitions/thingArray'
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
definitions: {
|
|
67
|
-
thing: {
|
|
68
|
-
title: 'Thing',
|
|
69
|
-
type: 'string'
|
|
70
|
-
},
|
|
71
|
-
thingArray: {
|
|
72
|
-
title: 'Things',
|
|
73
|
-
type: 'array',
|
|
74
|
-
items: {
|
|
75
|
-
$ref: '#/definitions/thing'
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
var schema3 = {
|
|
81
|
-
type: 'object',
|
|
82
|
-
properties: {
|
|
83
|
-
thingOrThings: {
|
|
84
|
-
oneOf: [
|
|
85
|
-
{
|
|
86
|
-
title: 'Thing',
|
|
87
|
-
type: 'object',
|
|
88
|
-
properties: {
|
|
89
|
-
thing: {
|
|
90
|
-
$ref: '#/definitions/thing'
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
$ref: '#/definitions/thingArray'
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
definitions: {
|
|
101
|
-
thing: {
|
|
102
|
-
title: 'Thing',
|
|
103
|
-
type: 'string'
|
|
104
|
-
},
|
|
105
|
-
thingArray: {
|
|
106
|
-
title: 'Things',
|
|
107
|
-
type: 'array',
|
|
108
|
-
items: {
|
|
109
|
-
$ref: '#/definitions/thing'
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
var uischema2 = {
|
|
115
|
-
type: 'Control',
|
|
116
|
-
label: 'Value',
|
|
117
|
-
scope: '#/properties/oneOrMoreThings'
|
|
118
|
-
};
|
|
119
|
-
var uischema3 = {
|
|
120
|
-
type: 'Control',
|
|
121
|
-
label: 'Value',
|
|
122
|
-
scope: '#/properties/thingOrThings'
|
|
123
|
-
};
|
|
124
|
-
var schema4 = {
|
|
125
|
-
definitions: {
|
|
126
|
-
color: {
|
|
127
|
-
type: 'string',
|
|
128
|
-
enum: ['red', 'green', 'blue']
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
type: 'object',
|
|
132
|
-
properties: {
|
|
133
|
-
things: {
|
|
134
|
-
type: 'array',
|
|
135
|
-
items: {
|
|
136
|
-
type: 'object',
|
|
137
|
-
properties: {
|
|
138
|
-
somethingElse: {
|
|
139
|
-
type: 'string'
|
|
140
|
-
},
|
|
141
|
-
thing: {
|
|
142
|
-
type: 'string',
|
|
143
|
-
enum: ['thing']
|
|
144
|
-
},
|
|
145
|
-
anotherThing: {
|
|
146
|
-
$ref: '#/definitions/color'
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
var uischema4 = {
|
|
154
|
-
type: 'Control',
|
|
155
|
-
scope: '#/properties/things'
|
|
156
|
-
};
|
|
157
|
-
register_1.registerExamples([
|
|
158
|
-
{
|
|
159
|
-
name: 'issue-1253',
|
|
160
|
-
label: 'issue 1253 (oneOf)',
|
|
161
|
-
data: data,
|
|
162
|
-
schema: exports.schema,
|
|
163
|
-
uischema: exports.uischema
|
|
164
|
-
}
|
|
165
|
-
]);
|
|
166
|
-
register_1.registerExamples([
|
|
167
|
-
{
|
|
168
|
-
name: 'issue-1253-wrong-path-binding',
|
|
169
|
-
label: 'issue 1253 (oneOf) - wrong path binding',
|
|
170
|
-
data: data,
|
|
171
|
-
schema: exports.schema,
|
|
172
|
-
uischema: exports.uischema
|
|
173
|
-
}
|
|
174
|
-
]);
|
|
175
|
-
register_1.registerExamples([
|
|
176
|
-
{
|
|
177
|
-
name: 'issue-1253-cell-missing-cell',
|
|
178
|
-
label: 'issue 1253 (oneOf) - missing cell renderer',
|
|
179
|
-
data: data,
|
|
180
|
-
schema: schema2,
|
|
181
|
-
uischema: uischema2
|
|
182
|
-
}
|
|
183
|
-
]);
|
|
184
|
-
register_1.registerExamples([
|
|
185
|
-
{
|
|
186
|
-
name: 'issue-1253-add-button-empty-row',
|
|
187
|
-
label: 'issue 1253 (oneOf) - add button does nothing',
|
|
188
|
-
data: data,
|
|
189
|
-
schema: schema3,
|
|
190
|
-
uischema: uischema3
|
|
191
|
-
}
|
|
192
|
-
]);
|
|
193
|
-
register_1.registerExamples([
|
|
194
|
-
{
|
|
195
|
-
name: 'issue-1253-enum-error',
|
|
196
|
-
label: 'issue 1253 (enum)',
|
|
197
|
-
data: data,
|
|
198
|
-
schema: schema4,
|
|
199
|
-
uischema: uischema4
|
|
200
|
-
}
|
|
201
|
-
]);
|
|
202
|
-
//# sourceMappingURL=1253.js.map
|
package/lib/examples/1253.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1253.js","sourceRoot":"","sources":["../../src/examples/1253.ts"],"names":[],"mappings":"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"}
|
package/lib/examples/1254.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uischema = exports.schema = void 0;
|
|
4
|
-
/*
|
|
5
|
-
The MIT License
|
|
6
|
-
|
|
7
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
8
|
-
https://github.com/eclipsesource/jsonforms
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in
|
|
18
|
-
all copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
-
THE SOFTWARE.
|
|
27
|
-
*/
|
|
28
|
-
var register_1 = require("../register");
|
|
29
|
-
exports.schema = {
|
|
30
|
-
type: 'object',
|
|
31
|
-
properties: {
|
|
32
|
-
name: {
|
|
33
|
-
type: 'string',
|
|
34
|
-
minLength: 1
|
|
35
|
-
},
|
|
36
|
-
version: {
|
|
37
|
-
const: '1.0'
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
required: ['version']
|
|
41
|
-
};
|
|
42
|
-
exports.uischema = {
|
|
43
|
-
type: 'HorizontalLayout',
|
|
44
|
-
elements: [
|
|
45
|
-
{
|
|
46
|
-
type: 'Control',
|
|
47
|
-
label: 'Name',
|
|
48
|
-
scope: '#/properties/name'
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
type: 'Control',
|
|
52
|
-
label: 'Version',
|
|
53
|
-
scope: '#/properties/version'
|
|
54
|
-
}
|
|
55
|
-
]
|
|
56
|
-
};
|
|
57
|
-
var data = {};
|
|
58
|
-
register_1.registerExamples([
|
|
59
|
-
{
|
|
60
|
-
name: 'issue-1254',
|
|
61
|
-
label: 'issue 1254 (JSONSchema constants)',
|
|
62
|
-
data: data,
|
|
63
|
-
schema: exports.schema,
|
|
64
|
-
uischema: exports.uischema
|
|
65
|
-
}
|
|
66
|
-
]);
|
|
67
|
-
//# sourceMappingURL=1254.js.map
|
package/lib/examples/1254.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1254.js","sourceRoot":"","sources":["../../src/examples/1254.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAElC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;QACD,OAAO,EAAE;YACP,KAAK,EAAE,KAAK;SACb;KACF;IACD,QAAQ,EAAE,CAAC,SAAS,CAAC;CACtB,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,kBAAkB;IACxB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,mBAAmB;SAC3B;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,sBAAsB;SAC9B;KACF;CACF,CAAC;AAEF,IAAM,IAAI,GAAG,EAAE,CAAC;AAEhB,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,mCAAmC;QAC1C,IAAI,MAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
|
package/lib/examples/1645.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.data = exports.uischema = exports.schema = void 0;
|
|
4
|
-
/*
|
|
5
|
-
The MIT License
|
|
6
|
-
|
|
7
|
-
Copyright (c) 2021 EclipseSource Munich
|
|
8
|
-
https://github.com/eclipsesource/jsonforms
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
-
in the Software without restriction, including without limitation the rights
|
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
-
furnished to do so, subject to the following conditions:
|
|
16
|
-
|
|
17
|
-
The above copyright notice and this permission notice shall be included in
|
|
18
|
-
all copies or substantial portions of the Software.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
|
-
THE SOFTWARE.
|
|
27
|
-
*/
|
|
28
|
-
var register_1 = require("../register");
|
|
29
|
-
exports.schema = {
|
|
30
|
-
type: 'object',
|
|
31
|
-
properties: {
|
|
32
|
-
propText0: { type: 'string' },
|
|
33
|
-
propText1: { type: 'string' },
|
|
34
|
-
propText2: { type: 'string' },
|
|
35
|
-
propText3: { type: 'string' },
|
|
36
|
-
propText4: { type: 'string' },
|
|
37
|
-
propText5: { type: 'string' },
|
|
38
|
-
propText6: { type: 'string' },
|
|
39
|
-
propText7: { type: 'string' },
|
|
40
|
-
propText8: { type: 'string' },
|
|
41
|
-
propText9: { type: 'string' },
|
|
42
|
-
propNumber0: { type: 'number' },
|
|
43
|
-
propNumber1: { type: 'number' },
|
|
44
|
-
propNumber2: { type: 'number' },
|
|
45
|
-
propNumber3: { type: 'number' },
|
|
46
|
-
propNumber4: { type: 'number' },
|
|
47
|
-
propNumber5: { type: 'number' },
|
|
48
|
-
propNumber6: { type: 'number' },
|
|
49
|
-
propNumber7: { type: 'number' },
|
|
50
|
-
propNumber8: { type: 'number' },
|
|
51
|
-
propNumber9: { type: 'number' },
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
exports.uischema = undefined;
|
|
55
|
-
exports.data = {};
|
|
56
|
-
register_1.registerExamples([
|
|
57
|
-
{
|
|
58
|
-
name: '1645',
|
|
59
|
-
label: 'Issue 1645',
|
|
60
|
-
data: exports.data,
|
|
61
|
-
schema: exports.schema,
|
|
62
|
-
uischema: exports.uischema
|
|
63
|
-
}
|
|
64
|
-
]);
|
|
65
|
-
//# sourceMappingURL=1645.js.map
|
package/lib/examples/1645.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1645.js","sourceRoot":"","sources":["../../src/examples/1645.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAGlC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,SAAS,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC3B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;QAC7B,WAAW,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;KAC9B;CACF,CAAC;AAEW,QAAA,QAAQ,GAAoB,SAAS,CAAC;AAEtC,QAAA,IAAI,GAAG,EAAE,CAAC;AAEvB,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,YAAY;QACnB,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
|
package/lib/examples/1779.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*
|
|
4
|
-
The MIT License
|
|
5
|
-
|
|
6
|
-
Copyright (c) 2017-2021 EclipseSource Munich
|
|
7
|
-
https://github.com/eclipsesource/jsonforms
|
|
8
|
-
|
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
-
in the Software without restriction, including without limitation the rights
|
|
12
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
furnished to do so, subject to the following conditions:
|
|
15
|
-
|
|
16
|
-
The above copyright notice and this permission notice shall be included in
|
|
17
|
-
all copies or substantial portions of the Software.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
|
-
THE SOFTWARE.
|
|
26
|
-
*/
|
|
27
|
-
var register_1 = require("../register");
|
|
28
|
-
var data = {
|
|
29
|
-
'an-array-of-strings': ['foo', 'bar', 'foobar']
|
|
30
|
-
};
|
|
31
|
-
var schema = {
|
|
32
|
-
type: 'object',
|
|
33
|
-
properties: {
|
|
34
|
-
'an-array-of-strings': {
|
|
35
|
-
type: 'array',
|
|
36
|
-
items: {
|
|
37
|
-
type: 'string'
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
var uischema = {
|
|
43
|
-
"type": "ListWithDetail",
|
|
44
|
-
"scope": "#/properties/an-array-of-strings"
|
|
45
|
-
};
|
|
46
|
-
register_1.registerExamples([
|
|
47
|
-
{
|
|
48
|
-
name: '1779-string',
|
|
49
|
-
label: 'List With Detail primitive (string)',
|
|
50
|
-
data: data,
|
|
51
|
-
schema: schema,
|
|
52
|
-
uischema: uischema
|
|
53
|
-
}
|
|
54
|
-
]);
|
|
55
|
-
var data_number = {
|
|
56
|
-
'an-array-of-numbers': [1, 2, 3]
|
|
57
|
-
};
|
|
58
|
-
var schema_number = {
|
|
59
|
-
type: 'object',
|
|
60
|
-
properties: {
|
|
61
|
-
'an-array-of-numbers': {
|
|
62
|
-
type: 'array',
|
|
63
|
-
items: {
|
|
64
|
-
type: 'number'
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
var uischema_number = {
|
|
70
|
-
"type": "ListWithDetail",
|
|
71
|
-
"scope": "#/properties/an-array-of-numbers"
|
|
72
|
-
};
|
|
73
|
-
register_1.registerExamples([
|
|
74
|
-
{
|
|
75
|
-
name: '1779-number',
|
|
76
|
-
label: 'List With Detail primitive (number)',
|
|
77
|
-
data: data_number,
|
|
78
|
-
schema: schema_number,
|
|
79
|
-
uischema: uischema_number
|
|
80
|
-
}
|
|
81
|
-
]);
|
|
82
|
-
//# sourceMappingURL=1779.js.map
|
package/lib/examples/1779.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1779.js","sourceRoot":"","sources":["../../src/examples/1779.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAE/C,IAAM,IAAI,GAAG;IACT,qBAAqB,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC;CAClD,CAAC;AACF,IAAM,MAAM,GAAG;IACX,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,qBAAqB,EAAE;YACnB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAC;AACF,IAAM,QAAQ,GAAG;IACb,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,kCAAkC;CAC9C,CAAC;AAEF,2BAAgB,CAAC;IACb;QACI,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,qCAAqC;QAC5C,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,QAAQ,UAAA;KACX;CACJ,CAAC,CAAC;AAEH,IAAM,WAAW,GAAG;IAChB,qBAAqB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;CACnC,CAAC;AACF,IAAM,aAAa,GAAG;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,qBAAqB,EAAE;YACnB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;KACJ;CACJ,CAAC;AACF,IAAM,eAAe,GAAG;IACpB,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,kCAAkC;CAC9C,CAAC;AAEF,2BAAgB,CAAC;IACb;QACI,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,qCAAqC;QAC5C,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,aAAa;QACrB,QAAQ,EAAE,eAAe;KAC5B;CACJ,CAAC,CAAC"}
|