@jsonforms/examples 3.1.0-alpha.0 → 3.1.0-alpha.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/.eslintrc.js +29 -0
- package/.prettierrc.js +6 -0
- package/README.md +2 -2
- package/docs/assets/js/search.json +1 -1
- package/docs/globals.html +2011 -3265
- package/docs/index.html +1 -31
- package/lib/examples/1884.d.ts +8 -0
- package/lib/examples/additional-errors.d.ts +16 -1
- package/lib/examples/anyOf.d.ts +15 -2
- package/lib/examples/arraysI18n.d.ts +52 -0
- package/lib/examples/control-options.d.ts +1 -0
- package/lib/examples/dates.d.ts +115 -1
- package/lib/examples/enum.d.ts +3 -0
- package/lib/examples/generate-dynamic.d.ts +15 -0
- package/lib/examples/list-with-detail-primitives.d.ts +36 -0
- package/lib/examples/list-with-detail-registered.d.ts +55 -1
- package/lib/examples/list-with-detail.d.ts +191 -1
- package/lib/examples/nestedCategorization.d.ts +57 -0
- package/lib/examples/radioGroup.d.ts +42 -1
- package/lib/index.d.ts +8 -19
- package/lib/jsonforms-examples.cjs.js +2280 -2873
- package/lib/jsonforms-examples.cjs.js.map +1 -1
- package/lib/jsonforms-examples.esm.js +2272 -2882
- package/lib/jsonforms-examples.esm.js.map +1 -1
- package/package.json +14 -7
- package/rollup.config.js +12 -12
- package/src/example.ts +3 -3
- package/src/examples/1884.ts +52 -48
- package/src/examples/1948.ts +19 -19
- package/src/examples/additional-errors.ts +28 -25
- package/src/examples/allOf.ts +18 -18
- package/src/examples/anyOf-oneOf-allOf-resolve.ts +21 -21
- package/src/examples/anyOf.ts +42 -24
- package/src/examples/arrays-with-custom-element-label.ts +21 -21
- package/src/examples/arrays-with-detail-and-rule.ts +28 -28
- package/src/examples/arrays-with-detail.ts +21 -21
- package/src/examples/arrays-with-sorting.ts +35 -35
- package/src/examples/arrays.ts +35 -35
- package/src/examples/arraysI18n.ts +107 -0
- package/src/examples/{steppershownav.ts → categorization-stepper-nav-buttons.ts} +6 -6
- package/src/examples/{stepper.ts → categorization-stepper.ts} +5 -5
- package/src/examples/categorization.ts +119 -119
- package/src/examples/conditional-schema-compositions.ts +20 -20
- package/src/examples/config.ts +15 -15
- package/src/examples/control-options.ts +81 -81
- package/src/examples/dates.ts +34 -34
- package/src/examples/default.ts +22 -22
- package/src/examples/{multi-enum.ts → enum-multi.ts} +14 -14
- package/src/examples/enum.ts +40 -33
- package/src/examples/enumInArray.ts +10 -10
- package/src/examples/{dynamic.ts → generate-dynamic.ts} +10 -10
- package/src/examples/generate.ts +2 -2
- package/src/examples/generateUI.ts +2 -2
- package/src/examples/huge.ts +381 -377
- package/src/examples/i18n.ts +37 -28
- package/src/examples/if_then_else.ts +4 -4
- package/src/examples/layout.ts +29 -29
- package/src/examples/{booleanToggle.ts → list-with-detail-primitives.ts} +46 -33
- package/src/examples/list-with-detail-registered.ts +26 -26
- package/src/examples/list-with-detail.ts +82 -82
- package/src/examples/nestedArrays.ts +40 -35
- package/src/examples/nestedCategorization.ts +175 -0
- package/src/examples/numbers.ts +17 -17
- package/src/examples/object.ts +24 -24
- package/src/examples/onChange.ts +28 -22
- package/src/examples/oneOf-recursive.ts +15 -15
- package/src/examples/oneOf.ts +99 -96
- package/src/examples/oneOfArray.ts +20 -20
- package/src/examples/person.ts +35 -35
- package/src/examples/radioGroup.ts +52 -53
- package/src/examples/readonly.ts +14 -14
- package/src/examples/rule.ts +26 -26
- package/src/examples/ruleInheritance.ts +37 -34
- package/src/examples/scope.ts +26 -26
- package/src/examples/stringArray.ts +10 -10
- package/src/examples/text.ts +19 -19
- package/src/index.ts +11 -33
- package/src/register.ts +6 -3
- package/stats.html +4949 -2051
- package/tsconfig.json +2 -6
- package/lib/examples/1169.d.ts +0 -24
- package/lib/examples/1220.d.ts +0 -4
- package/lib/examples/1253.d.ts +0 -16
- package/lib/examples/1254.d.ts +0 -21
- package/lib/examples/1645.d.ts +0 -68
- package/lib/examples/1779.d.ts +0 -1
- package/lib/examples/1996.d.ts +0 -31
- package/lib/examples/booleanToggle.d.ts +0 -62
- package/lib/examples/day1.d.ts +0 -23
- package/lib/examples/day2.d.ts +0 -42
- package/lib/examples/day3.d.ts +0 -51
- package/lib/examples/day4.d.ts +0 -72
- package/lib/examples/day5.d.ts +0 -133
- package/lib/examples/day6.d.ts +0 -85
- package/lib/examples/dynamic.d.ts +0 -1
- package/src/examples/1169.ts +0 -62
- package/src/examples/1220.ts +0 -146
- package/src/examples/1253.ts +0 -212
- package/src/examples/1254.ts +0 -67
- package/src/examples/1645.ts +0 -66
- package/src/examples/1779.ts +0 -83
- package/src/examples/1996.ts +0 -102
- package/src/examples/day1.ts +0 -61
- package/src/examples/day2.ts +0 -62
- package/src/examples/day3.ts +0 -76
- package/src/examples/day4.ts +0 -83
- package/src/examples/day5.ts +0 -169
- package/src/examples/day6.ts +0 -44
- /package/lib/examples/{steppershownav.d.ts → categorization-stepper-nav-buttons.d.ts} +0 -0
- /package/lib/examples/{stepper.d.ts → categorization-stepper.d.ts} +0 -0
- /package/lib/examples/{multi-enum.d.ts → enum-multi.d.ts} +0 -0
package/src/examples/1996.ts
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2022 EclipseSource
|
|
5
|
-
https://github.com/eclipsesource/jsonforms
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the 'Software'), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
THE SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { registerExamples } from '../register';
|
|
26
|
-
import { ControlElement } from '@jsonforms/core';
|
|
27
|
-
|
|
28
|
-
export const schemaAnyOf = {
|
|
29
|
-
type: "array",
|
|
30
|
-
items: {
|
|
31
|
-
anyOf: [
|
|
32
|
-
{
|
|
33
|
-
type: "object",
|
|
34
|
-
properties: {
|
|
35
|
-
value: {
|
|
36
|
-
type: "string"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
required: ["value"]
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
type: "object",
|
|
43
|
-
properties: {
|
|
44
|
-
value: {
|
|
45
|
-
type: "number"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
required: ["value"]
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export const schemaOneOf = {
|
|
55
|
-
type: "array",
|
|
56
|
-
items: {
|
|
57
|
-
oneOf: [
|
|
58
|
-
{
|
|
59
|
-
type: "object",
|
|
60
|
-
properties: {
|
|
61
|
-
value: {
|
|
62
|
-
type: "string"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
required: ["value"]
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "object",
|
|
69
|
-
properties: {
|
|
70
|
-
value: {
|
|
71
|
-
type: "number"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
required: ["value"]
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export const uischema: ControlElement = {
|
|
81
|
-
type: 'Control',
|
|
82
|
-
scope: '#'
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export const data: any[] = [];
|
|
86
|
-
|
|
87
|
-
registerExamples([
|
|
88
|
-
{
|
|
89
|
-
name: '1996_anyOf',
|
|
90
|
-
label: 'Issue 1996 - array with anyOf items',
|
|
91
|
-
data,
|
|
92
|
-
schema: schemaAnyOf,
|
|
93
|
-
uischema
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
name: '1996_oneOf',
|
|
97
|
-
label: 'Issue 1996 - array with oneOf items',
|
|
98
|
-
data,
|
|
99
|
-
schema: schemaOneOf,
|
|
100
|
-
uischema
|
|
101
|
-
}
|
|
102
|
-
]);
|
package/src/examples/day1.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
5
|
-
https://github.com/eclipsesource/jsonforms
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
THE SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { registerExamples } from '../register';
|
|
26
|
-
import { UISchemaElement } from '@jsonforms/core';
|
|
27
|
-
|
|
28
|
-
export const schema = {
|
|
29
|
-
type: 'object',
|
|
30
|
-
properties: {
|
|
31
|
-
name: {
|
|
32
|
-
type: 'string',
|
|
33
|
-
minLength: 1
|
|
34
|
-
},
|
|
35
|
-
description: {
|
|
36
|
-
type: 'string'
|
|
37
|
-
},
|
|
38
|
-
done: {
|
|
39
|
-
type: 'boolean'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
required: ['name']
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const uischema: UISchemaElement = undefined;
|
|
46
|
-
|
|
47
|
-
export const data = {
|
|
48
|
-
name: 'Send email to Adrian',
|
|
49
|
-
description: 'Confirm if you have passed the subject\nHereby ...',
|
|
50
|
-
done: true
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
registerExamples([
|
|
54
|
-
{
|
|
55
|
-
name: 'day1',
|
|
56
|
-
label: 'Day 1',
|
|
57
|
-
data,
|
|
58
|
-
schema,
|
|
59
|
-
uischema
|
|
60
|
-
}
|
|
61
|
-
]);
|
package/src/examples/day2.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
5
|
-
https://github.com/eclipsesource/jsonforms
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
THE SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { registerExamples } from '../register';
|
|
26
|
-
import { data as day1Data, schema as day1Schema } from './day1';
|
|
27
|
-
|
|
28
|
-
export const schema = day1Schema;
|
|
29
|
-
|
|
30
|
-
export const uischema = {
|
|
31
|
-
type: 'VerticalLayout',
|
|
32
|
-
elements: [
|
|
33
|
-
{
|
|
34
|
-
type: 'Control',
|
|
35
|
-
scope: '#/properties/name'
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
type: 'Control',
|
|
39
|
-
label: false,
|
|
40
|
-
scope: '#/properties/done'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
type: 'Control',
|
|
44
|
-
scope: '#/properties/description',
|
|
45
|
-
options: {
|
|
46
|
-
multi: true
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export const data = day1Data;
|
|
53
|
-
|
|
54
|
-
registerExamples([
|
|
55
|
-
{
|
|
56
|
-
name: 'day2',
|
|
57
|
-
label: 'Day 2',
|
|
58
|
-
data,
|
|
59
|
-
schema,
|
|
60
|
-
uischema
|
|
61
|
-
}
|
|
62
|
-
]);
|
package/src/examples/day3.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
5
|
-
https://github.com/eclipsesource/jsonforms
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
THE SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { registerExamples } from '../register';
|
|
26
|
-
import {
|
|
27
|
-
data as day2Data,
|
|
28
|
-
schema as day2Schema,
|
|
29
|
-
uischema as day2UiSchema
|
|
30
|
-
} from './day2';
|
|
31
|
-
|
|
32
|
-
export const schema = {
|
|
33
|
-
type: 'object',
|
|
34
|
-
properties: {
|
|
35
|
-
...day2Schema.properties,
|
|
36
|
-
dueDate: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
format: 'date'
|
|
39
|
-
},
|
|
40
|
-
rating: {
|
|
41
|
-
type: 'integer',
|
|
42
|
-
maximum: 5
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
required: ['name']
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export const uischema = {
|
|
49
|
-
type: 'VerticalLayout',
|
|
50
|
-
elements: [
|
|
51
|
-
...day2UiSchema.elements,
|
|
52
|
-
{
|
|
53
|
-
type: 'Control',
|
|
54
|
-
scope: '#/properties/dueDate'
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
type: 'Control',
|
|
58
|
-
scope: '#/properties/rating'
|
|
59
|
-
}
|
|
60
|
-
]
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export const data = {
|
|
64
|
-
...day2Data,
|
|
65
|
-
rating: 3
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
registerExamples([
|
|
69
|
-
{
|
|
70
|
-
name: 'day3',
|
|
71
|
-
label: 'Day 3',
|
|
72
|
-
data,
|
|
73
|
-
schema,
|
|
74
|
-
uischema
|
|
75
|
-
}
|
|
76
|
-
]);
|
package/src/examples/day4.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
5
|
-
https://github.com/eclipsesource/jsonforms
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
THE SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { registerExamples } from '../register';
|
|
26
|
-
import {
|
|
27
|
-
data as day3Data,
|
|
28
|
-
schema as day3Schema,
|
|
29
|
-
uischema as day3UiSchema
|
|
30
|
-
} from './day3';
|
|
31
|
-
|
|
32
|
-
export const schema = {
|
|
33
|
-
type: 'object',
|
|
34
|
-
properties: {
|
|
35
|
-
...day3Schema.properties,
|
|
36
|
-
recurrence: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
enum: ['Never', 'Daily', 'Weekly', 'Monthly']
|
|
39
|
-
},
|
|
40
|
-
recurrenceInterval: {
|
|
41
|
-
type: 'integer'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
required: ['name']
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const uischema = {
|
|
48
|
-
type: 'VerticalLayout',
|
|
49
|
-
elements: [
|
|
50
|
-
...day3UiSchema.elements,
|
|
51
|
-
{
|
|
52
|
-
type: 'Control',
|
|
53
|
-
scope: '#/properties/recurrence'
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: 'Control',
|
|
57
|
-
scope: '#/properties/recurrenceInterval',
|
|
58
|
-
rule: {
|
|
59
|
-
effect: 'HIDE',
|
|
60
|
-
condition: {
|
|
61
|
-
scope: '#/properties/recurrence',
|
|
62
|
-
schema: { enum: ['Never'] }
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export const data = {
|
|
70
|
-
...day3Data,
|
|
71
|
-
recurrence: 'Daily',
|
|
72
|
-
recurrenceInterval: 5
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
registerExamples([
|
|
76
|
-
{
|
|
77
|
-
name: 'day4',
|
|
78
|
-
label: 'Day 4',
|
|
79
|
-
data,
|
|
80
|
-
schema,
|
|
81
|
-
uischema
|
|
82
|
-
}
|
|
83
|
-
]);
|
package/src/examples/day5.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
5
|
-
https://github.com/eclipsesource/jsonforms
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
THE SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { registerExamples } from '../register';
|
|
26
|
-
import { data as day4Data, schema as day4Schema } from './day4';
|
|
27
|
-
|
|
28
|
-
export const schema = day4Schema;
|
|
29
|
-
|
|
30
|
-
export const uischema = {
|
|
31
|
-
type: 'VerticalLayout',
|
|
32
|
-
elements: [
|
|
33
|
-
{
|
|
34
|
-
type: 'Control',
|
|
35
|
-
label: false,
|
|
36
|
-
scope: '#/properties/done'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
type: 'Control',
|
|
40
|
-
scope: '#/properties/name'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
type: 'HorizontalLayout',
|
|
44
|
-
elements: [
|
|
45
|
-
{
|
|
46
|
-
type: 'Control',
|
|
47
|
-
scope: '#/properties/dueDate'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: 'Control',
|
|
51
|
-
scope: '#/properties/rating'
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: 'Control',
|
|
57
|
-
scope: '#/properties/description',
|
|
58
|
-
options: {
|
|
59
|
-
multi: true
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
type: 'HorizontalLayout',
|
|
64
|
-
elements: [
|
|
65
|
-
{
|
|
66
|
-
type: 'Control',
|
|
67
|
-
scope: '#/properties/recurrence'
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
type: 'Control',
|
|
71
|
-
scope: '#/properties/recurrenceInterval',
|
|
72
|
-
rule: {
|
|
73
|
-
effect: 'HIDE',
|
|
74
|
-
condition: {
|
|
75
|
-
scope: '#/properties/recurrence',
|
|
76
|
-
schema: { enum: ['Never'] }
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export const categoryUiSchema = {
|
|
86
|
-
type: 'Categorization',
|
|
87
|
-
elements: [
|
|
88
|
-
{
|
|
89
|
-
type: 'Category',
|
|
90
|
-
label: 'Main',
|
|
91
|
-
elements: [
|
|
92
|
-
{
|
|
93
|
-
type: 'Control',
|
|
94
|
-
label: false,
|
|
95
|
-
scope: '#/properties/done'
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
type: 'Control',
|
|
99
|
-
scope: '#/properties/name'
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
type: 'Control',
|
|
103
|
-
scope: '#/properties/description',
|
|
104
|
-
options: {
|
|
105
|
-
multi: true
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
type: 'Category',
|
|
112
|
-
label: 'Additional',
|
|
113
|
-
elements: [
|
|
114
|
-
{
|
|
115
|
-
type: 'HorizontalLayout',
|
|
116
|
-
elements: [
|
|
117
|
-
{
|
|
118
|
-
type: 'Control',
|
|
119
|
-
scope: '#/properties/dueDate'
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
type: 'Control',
|
|
123
|
-
scope: '#/properties/rating'
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
type: 'HorizontalLayout',
|
|
129
|
-
elements: [
|
|
130
|
-
{
|
|
131
|
-
type: 'Control',
|
|
132
|
-
scope: '#/properties/recurrence'
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
type: 'Control',
|
|
136
|
-
scope: '#/properties/recurrenceInterval',
|
|
137
|
-
rule: {
|
|
138
|
-
effect: 'HIDE',
|
|
139
|
-
condition: {
|
|
140
|
-
scope: '#/properties/recurrence',
|
|
141
|
-
schema: { enum: ['Never'] }
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
]
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export const data = day4Data;
|
|
153
|
-
|
|
154
|
-
registerExamples([
|
|
155
|
-
{
|
|
156
|
-
name: 'day5',
|
|
157
|
-
label: 'Day 5',
|
|
158
|
-
data,
|
|
159
|
-
schema,
|
|
160
|
-
uischema
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: 'day5_category',
|
|
164
|
-
label: 'Day 5 With Category',
|
|
165
|
-
data,
|
|
166
|
-
schema,
|
|
167
|
-
uischema: categoryUiSchema
|
|
168
|
-
}
|
|
169
|
-
]);
|
package/src/examples/day6.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
The MIT License
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2017-2019 EclipseSource Munich
|
|
5
|
-
https://github.com/eclipsesource/jsonforms
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
|
15
|
-
all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
THE SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { registerExamples } from '../register';
|
|
26
|
-
import {
|
|
27
|
-
data as day5Data,
|
|
28
|
-
schema as day5Schema,
|
|
29
|
-
uischema as day5UiSchema
|
|
30
|
-
} from './day5';
|
|
31
|
-
|
|
32
|
-
export const schema = day5Schema;
|
|
33
|
-
export const uischema = day5UiSchema;
|
|
34
|
-
export const data = day5Data;
|
|
35
|
-
|
|
36
|
-
registerExamples([
|
|
37
|
-
{
|
|
38
|
-
name: 'day6',
|
|
39
|
-
label: 'Day 6',
|
|
40
|
-
data,
|
|
41
|
-
schema,
|
|
42
|
-
uischema
|
|
43
|
-
}
|
|
44
|
-
]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|