@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.
Files changed (191) hide show
  1. package/docs/assets/js/search.json +1 -1
  2. package/docs/globals.html +860 -879
  3. package/lib/example.d.ts +23 -23
  4. package/lib/examples/1169.d.ts +24 -24
  5. package/lib/examples/1220.d.ts +4 -4
  6. package/lib/examples/1253.d.ts +16 -16
  7. package/lib/examples/1254.d.ts +21 -21
  8. package/lib/examples/1645.d.ts +68 -68
  9. package/lib/examples/1779.d.ts +1 -1
  10. package/lib/examples/allOf.d.ts +56 -56
  11. package/lib/examples/anyOf-oneOf-allOf-resolve.d.ts +44 -44
  12. package/lib/examples/anyOf.d.ts +64 -64
  13. package/lib/examples/arrays-with-custom-element-label.d.ts +43 -43
  14. package/lib/examples/arrays-with-detail-and-rule.d.ts +91 -91
  15. package/lib/examples/arrays-with-detail.d.ts +65 -65
  16. package/lib/examples/arrays.d.ts +55 -51
  17. package/lib/examples/booleanToggle.d.ts +62 -62
  18. package/lib/examples/categorization.d.ts +135 -135
  19. package/lib/examples/conditional-schema-compositions.d.ts +56 -0
  20. package/lib/examples/config.d.ts +29 -29
  21. package/lib/examples/control-options.d.ts +190 -190
  22. package/lib/examples/dates.d.ts +1 -1
  23. package/lib/examples/day1.d.ts +23 -23
  24. package/lib/examples/day2.d.ts +42 -42
  25. package/lib/examples/day3.d.ts +51 -51
  26. package/lib/examples/day4.d.ts +72 -72
  27. package/lib/examples/day5.d.ts +133 -133
  28. package/lib/examples/day6.d.ts +85 -85
  29. package/lib/examples/default.d.ts +64 -64
  30. package/lib/examples/dynamic.d.ts +1 -1
  31. package/lib/examples/enum.d.ts +49 -49
  32. package/lib/examples/enumInArray.d.ts +27 -27
  33. package/lib/examples/generate.d.ts +12 -12
  34. package/lib/examples/generateUI.d.ts +33 -33
  35. package/lib/examples/huge.d.ts +1 -1
  36. package/lib/examples/i18n.d.ts +25 -25
  37. package/lib/examples/if_then_else.d.ts +25 -25
  38. package/lib/examples/layout.d.ts +97 -97
  39. package/lib/examples/list-with-detail-registered.d.ts +1 -1
  40. package/lib/examples/list-with-detail.d.ts +1 -1
  41. package/lib/examples/multi-enum.d.ts +34 -34
  42. package/lib/examples/nestedArrays.d.ts +11 -11
  43. package/lib/examples/numbers.d.ts +46 -46
  44. package/lib/examples/object.d.ts +67 -56
  45. package/lib/examples/onChange.d.ts +18 -18
  46. package/lib/examples/oneOf-recursive.d.ts +48 -48
  47. package/lib/examples/oneOf.d.ts +53 -53
  48. package/lib/examples/oneOfArray.d.ts +53 -53
  49. package/lib/examples/person.d.ts +99 -99
  50. package/lib/examples/radioGroup.d.ts +1 -1
  51. package/lib/examples/readonly.d.ts +36 -36
  52. package/lib/examples/rule.d.ts +59 -59
  53. package/lib/examples/ruleInheritance.d.ts +26 -26
  54. package/lib/examples/scope.d.ts +50 -50
  55. package/lib/examples/stepper.d.ts +138 -138
  56. package/lib/examples/steppershownav.d.ts +139 -139
  57. package/lib/examples/stringArray.d.ts +22 -22
  58. package/lib/examples/text.d.ts +37 -37
  59. package/lib/index.d.ts +58 -58
  60. package/lib/jsonforms-examples.cjs.js +6134 -0
  61. package/lib/jsonforms-examples.cjs.js.map +1 -0
  62. package/lib/jsonforms-examples.esm.js +6112 -0
  63. package/lib/jsonforms-examples.esm.js.map +1 -0
  64. package/lib/register.d.ts +3 -3
  65. package/package.json +14 -7
  66. package/rollup.config.js +48 -0
  67. package/src/examples/arrays.ts +4 -0
  68. package/src/examples/conditional-schema-compositions.ts +118 -0
  69. package/src/examples/nestedArrays.ts +15 -10
  70. package/src/examples/object.ts +13 -0
  71. package/src/index.ts +3 -3
  72. package/stats.html +3279 -0
  73. package/lib/example.js +0 -3
  74. package/lib/example.js.map +0 -1
  75. package/lib/examples/1169.js +0 -61
  76. package/lib/examples/1169.js.map +0 -1
  77. package/lib/examples/1220.js +0 -138
  78. package/lib/examples/1220.js.map +0 -1
  79. package/lib/examples/1253.js +0 -202
  80. package/lib/examples/1253.js.map +0 -1
  81. package/lib/examples/1254.js +0 -67
  82. package/lib/examples/1254.js.map +0 -1
  83. package/lib/examples/1645.js +0 -65
  84. package/lib/examples/1645.js.map +0 -1
  85. package/lib/examples/1779.js +0 -82
  86. package/lib/examples/1779.js.map +0 -1
  87. package/lib/examples/allOf.js +0 -92
  88. package/lib/examples/allOf.js.map +0 -1
  89. package/lib/examples/anyOf-oneOf-allOf-resolve.js +0 -95
  90. package/lib/examples/anyOf-oneOf-allOf-resolve.js.map +0 -1
  91. package/lib/examples/anyOf.js +0 -115
  92. package/lib/examples/anyOf.js.map +0 -1
  93. package/lib/examples/arrays-with-custom-element-label.js +0 -95
  94. package/lib/examples/arrays-with-custom-element-label.js.map +0 -1
  95. package/lib/examples/arrays-with-detail-and-rule.js +0 -122
  96. package/lib/examples/arrays-with-detail-and-rule.js.map +0 -1
  97. package/lib/examples/arrays-with-detail.js +0 -97
  98. package/lib/examples/arrays-with-detail.js.map +0 -1
  99. package/lib/examples/arrays.js +0 -120
  100. package/lib/examples/arrays.js.map +0 -1
  101. package/lib/examples/booleanToggle.js +0 -68
  102. package/lib/examples/booleanToggle.js.map +0 -1
  103. package/lib/examples/categorization.js +0 -301
  104. package/lib/examples/categorization.js.map +0 -1
  105. package/lib/examples/config.js +0 -90
  106. package/lib/examples/config.js.map +0 -1
  107. package/lib/examples/control-options.js +0 -240
  108. package/lib/examples/control-options.js.map +0 -1
  109. package/lib/examples/dates.js +0 -150
  110. package/lib/examples/dates.js.map +0 -1
  111. package/lib/examples/day1.js +0 -60
  112. package/lib/examples/day1.js.map +0 -1
  113. package/lib/examples/day2.js +0 -62
  114. package/lib/examples/day2.js.map +0 -1
  115. package/lib/examples/day3.js +0 -65
  116. package/lib/examples/day3.js.map +0 -1
  117. package/lib/examples/day4.js +0 -71
  118. package/lib/examples/day4.js.map +0 -1
  119. package/lib/examples/day5.js +0 -168
  120. package/lib/examples/day5.js.map +0 -1
  121. package/lib/examples/day6.js +0 -42
  122. package/lib/examples/day6.js.map +0 -1
  123. package/lib/examples/default.js +0 -118
  124. package/lib/examples/default.js.map +0 -1
  125. package/lib/examples/dynamic.js +0 -23
  126. package/lib/examples/dynamic.js.map +0 -1
  127. package/lib/examples/enum.js +0 -129
  128. package/lib/examples/enum.js.map +0 -1
  129. package/lib/examples/enumInArray.js +0 -44
  130. package/lib/examples/enumInArray.js.map +0 -1
  131. package/lib/examples/generate.js +0 -42
  132. package/lib/examples/generate.js.map +0 -1
  133. package/lib/examples/generateUI.js +0 -42
  134. package/lib/examples/generateUI.js.map +0 -1
  135. package/lib/examples/huge.js +0 -1361
  136. package/lib/examples/huge.js.map +0 -1
  137. package/lib/examples/i18n.js +0 -94
  138. package/lib/examples/i18n.js.map +0 -1
  139. package/lib/examples/if_then_else.js +0 -49
  140. package/lib/examples/if_then_else.js.map +0 -1
  141. package/lib/examples/layout.js +0 -149
  142. package/lib/examples/layout.js.map +0 -1
  143. package/lib/examples/list-with-detail-registered.js +0 -104
  144. package/lib/examples/list-with-detail-registered.js.map +0 -1
  145. package/lib/examples/list-with-detail.js +0 -302
  146. package/lib/examples/list-with-detail.js.map +0 -1
  147. package/lib/examples/multi-enum.js +0 -76
  148. package/lib/examples/multi-enum.js.map +0 -1
  149. package/lib/examples/nestedArrays.js +0 -117
  150. package/lib/examples/nestedArrays.js.map +0 -1
  151. package/lib/examples/numbers.js +0 -89
  152. package/lib/examples/numbers.js.map +0 -1
  153. package/lib/examples/object.js +0 -100
  154. package/lib/examples/object.js.map +0 -1
  155. package/lib/examples/onChange.js +0 -71
  156. package/lib/examples/onChange.js.map +0 -1
  157. package/lib/examples/oneOf-recursive.js +0 -81
  158. package/lib/examples/oneOf-recursive.js.map +0 -1
  159. package/lib/examples/oneOf.js +0 -337
  160. package/lib/examples/oneOf.js.map +0 -1
  161. package/lib/examples/oneOfArray.js +0 -96
  162. package/lib/examples/oneOfArray.js.map +0 -1
  163. package/lib/examples/person.js +0 -156
  164. package/lib/examples/person.js.map +0 -1
  165. package/lib/examples/radioGroup.js +0 -86
  166. package/lib/examples/radioGroup.js.map +0 -1
  167. package/lib/examples/readonly.js +0 -81
  168. package/lib/examples/readonly.js.map +0 -1
  169. package/lib/examples/resolve.d.ts +0 -45
  170. package/lib/examples/resolve.js +0 -87
  171. package/lib/examples/resolve.js.map +0 -1
  172. package/lib/examples/rule.js +0 -123
  173. package/lib/examples/rule.js.map +0 -1
  174. package/lib/examples/ruleInheritance.js +0 -97
  175. package/lib/examples/ruleInheritance.js.map +0 -1
  176. package/lib/examples/scope.js +0 -113
  177. package/lib/examples/scope.js.map +0 -1
  178. package/lib/examples/stepper.js +0 -45
  179. package/lib/examples/stepper.js.map +0 -1
  180. package/lib/examples/steppershownav.js +0 -46
  181. package/lib/examples/steppershownav.js.map +0 -1
  182. package/lib/examples/stringArray.js +0 -62
  183. package/lib/examples/stringArray.js.map +0 -1
  184. package/lib/examples/text.js +0 -97
  185. package/lib/examples/text.js.map +0 -1
  186. package/lib/index.js +0 -142
  187. package/lib/index.js.map +0 -1
  188. package/lib/register.js +0 -13
  189. package/lib/register.js.map +0 -1
  190. package/src/examples/resolve.ts +0 -87
  191. package/webpack.build.js +0 -12
@@ -1,96 +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
- $schema: 'http://json-schema.org/draft-07/schema#',
31
- definitions: {
32
- address: {
33
- type: 'object',
34
- properties: {
35
- street_address: { type: 'string' },
36
- city: { type: 'string' },
37
- state: { type: 'string' }
38
- },
39
- required: ['street_address', 'city', 'state']
40
- },
41
- user: {
42
- type: 'object',
43
- properties: {
44
- name: { type: 'string' },
45
- mail: { type: 'string' }
46
- },
47
- required: ['name', 'mail']
48
- }
49
- },
50
- type: 'object',
51
- properties: {
52
- name: { type: 'string' },
53
- addressOrUsers: {
54
- type: 'array',
55
- items: {
56
- oneOf: [
57
- { $ref: '#/definitions/address' },
58
- { $ref: '#/definitions/user' }
59
- ]
60
- }
61
- }
62
- }
63
- };
64
- exports.uischema = {
65
- type: 'VerticalLayout',
66
- elements: [
67
- {
68
- type: 'Control',
69
- scope: '#/properties/addressOrUsers'
70
- }
71
- ]
72
- };
73
- var data = {
74
- name: 'test',
75
- addressOrUsers: [
76
- {
77
- street_address: '1600 Pennsylvania Avenue NW',
78
- city: 'Washington',
79
- state: 'DC'
80
- },
81
- {
82
- name: 'User',
83
- mail: 'user@user.user'
84
- }
85
- ]
86
- };
87
- register_1.registerExamples([
88
- {
89
- name: 'oneOfArray',
90
- label: 'oneOf (in array)',
91
- data: data,
92
- schema: exports.schema,
93
- uischema: exports.uischema
94
- }
95
- ]);
96
- //# sourceMappingURL=oneOfArray.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AAc,EAAE,6BAA6B;YAC7C,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,IAAI;SACZ;QACD;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,gBAAgB;SACvB;KACF;CACF,CAAC;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,kBAAkB;QACzB,IAAI,MAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,156 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.data = exports.uischema = exports.schema = exports.personCoreSchema = 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
- exports.personCoreSchema = {
31
- type: 'object',
32
- properties: {
33
- name: {
34
- type: 'string',
35
- minLength: 3,
36
- description: 'Please enter your name'
37
- },
38
- vegetarian: {
39
- type: 'boolean'
40
- },
41
- birthDate: {
42
- type: 'string',
43
- format: 'date',
44
- description: 'Please enter your birth date.'
45
- },
46
- nationality: {
47
- type: 'string',
48
- enum: ['DE', 'IT', 'JP', 'US', 'RU', 'Other']
49
- }
50
- }
51
- };
52
- exports.schema = {
53
- type: 'object',
54
- properties: tslib_1.__assign(tslib_1.__assign({}, exports.personCoreSchema.properties), { personalData: {
55
- type: 'object',
56
- properties: {
57
- age: {
58
- type: 'integer',
59
- description: 'Please enter your age.'
60
- },
61
- height: {
62
- type: 'number'
63
- },
64
- drivingSkill: {
65
- type: 'number',
66
- maximum: 10,
67
- minimum: 1,
68
- default: 7
69
- }
70
- },
71
- required: ['age', 'height']
72
- }, vegetarian: {
73
- type: 'boolean'
74
- }, birthDate: {
75
- type: 'string',
76
- format: 'date'
77
- }, occupation: {
78
- type: 'string'
79
- }, postalCode: {
80
- type: 'string',
81
- maxLength: 5
82
- } }),
83
- required: ['occupation', 'nationality']
84
- };
85
- exports.uischema = {
86
- type: 'VerticalLayout',
87
- elements: [
88
- {
89
- type: 'HorizontalLayout',
90
- elements: [
91
- {
92
- type: 'Control',
93
- scope: '#/properties/name'
94
- },
95
- {
96
- type: 'Control',
97
- scope: '#/properties/personalData/properties/age'
98
- },
99
- {
100
- type: 'Control',
101
- scope: '#/properties/birthDate'
102
- }
103
- ]
104
- },
105
- {
106
- type: 'Label',
107
- text: 'Additional Information'
108
- },
109
- {
110
- type: 'HorizontalLayout',
111
- elements: [
112
- {
113
- type: 'Control',
114
- scope: '#/properties/personalData/properties/height'
115
- },
116
- {
117
- type: 'Control',
118
- scope: '#/properties/nationality'
119
- },
120
- {
121
- type: 'Control',
122
- scope: '#/properties/occupation',
123
- suggestion: [
124
- 'Accountant',
125
- 'Engineer',
126
- 'Freelancer',
127
- 'Journalism',
128
- 'Physician',
129
- 'Student',
130
- 'Teacher',
131
- 'Other'
132
- ]
133
- }
134
- ]
135
- }
136
- ]
137
- };
138
- exports.data = {
139
- name: 'John Doe',
140
- vegetarian: false,
141
- birthDate: '1985-06-02',
142
- personalData: {
143
- age: 34
144
- },
145
- postalCode: '12345'
146
- };
147
- register_1.registerExamples([
148
- {
149
- name: 'person',
150
- label: 'Person',
151
- data: exports.data,
152
- schema: exports.schema,
153
- uischema: exports.uischema
154
- }
155
- ]);
156
- //# sourceMappingURL=person.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"person.js","sourceRoot":"","sources":["../../src/examples/person.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAElC,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,wBAAwB;SACtC;QACD,UAAU,EAAE;YACV,IAAI,EAAE,SAAS;SAChB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;YACd,WAAW,EAAE,+BAA+B;SAC7C;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC;SAC9C;KACF;CACF,CAAC;AAEW,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,wCACL,wBAAgB,CAAC,UAAU,KAC9B,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,GAAG,EAAE;oBACH,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,wBAAwB;iBACtC;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;iBACf;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,OAAO,EA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,UAAU;IAChB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE;QACZ,GAAG,EAAE,EAAE;KACR;IACD,UAAU,EAAE,OAAO;CACpB,CAAC;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,QAAQ;QACf,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /*
4
- The MIT License
5
-
6
- Copyright (c) 2017-2019 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
- var schema = {
30
- type: 'object',
31
- properties: {
32
- exampleRadioEnum: {
33
- type: 'string',
34
- enum: ['One', 'Two', 'Three']
35
- },
36
- exampleRadioOneOfEnum: {
37
- type: 'string',
38
- oneOf: [
39
- { const: 'foo', title: 'Foo' },
40
- { const: 'bar', title: 'Bar' },
41
- { const: 'foobar', title: 'FooBar' }
42
- ]
43
- }
44
- }
45
- };
46
- var uischema = {
47
- type: 'VerticalLayout',
48
- elements: [
49
- {
50
- type: 'Group',
51
- label: 'Simple enum',
52
- elements: [
53
- {
54
- type: 'Control',
55
- scope: '#/properties/exampleRadioEnum',
56
- options: {
57
- format: 'radio'
58
- }
59
- }
60
- ]
61
- },
62
- {
63
- type: 'Group',
64
- label: 'One of Enum',
65
- elements: [
66
- {
67
- type: 'Control',
68
- scope: '#/properties/exampleRadioOneOfEnum',
69
- options: {
70
- format: 'radio'
71
- }
72
- }
73
- ]
74
- }
75
- ]
76
- };
77
- register_1.registerExamples([
78
- {
79
- name: 'radio-group',
80
- label: 'Radio Group',
81
- data: data,
82
- schema: schema,
83
- uischema: uischema
84
- }
85
- ]);
86
- //# sourceMappingURL=radioGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"radioGroup.js","sourceRoot":"","sources":["../../src/examples/radioGroup.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAE/C,IAAM,IAAI,GAAG,EACZ,CAAC;AAEF,IAAM,MAAM,GAAG;IACX,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,gBAAgB,EAAE;YAChB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC;SAC9B;QACD,qBAAqB,EAAE;YACrB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE;gBACH,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;gBAC5B,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;gBAC5B,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAC;aACrC;SACJ;KACA;CACF,CAAC;AACH,IAAM,QAAQ,GAAG;IACf,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,aAAa;YACpB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,+BAA+B;oBACtC,OAAO,EAAE;wBACP,MAAM,EAAE,OAAO;qBAChB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,aAAa;YACpB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,oCAAoC;oBAC3C,OAAO,EAAE;wBACP,MAAM,EAAE,OAAO;qBAChB;iBACF;aACF;SACF;KACF;CACF,CAAC;AAGH,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,aAAa;QACpB,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,QAAQ,UAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,81 +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
- readonly: {
33
- type: 'string',
34
- readOnly: true
35
- },
36
- readonlyByUISchema: {
37
- type: 'string'
38
- },
39
- notReadonly: {
40
- type: 'string'
41
- }
42
- }
43
- };
44
- exports.uischema = {
45
- type: 'VerticalLayout',
46
- elements: [
47
- {
48
- type: 'Control',
49
- scope: '#/properties/readonly',
50
- label: 'A readonly field'
51
- },
52
- {
53
- type: 'Control',
54
- scope: '#/properties/readonlyByUISchema',
55
- label: 'A readonly field by ui schema',
56
- options: {
57
- readonly: true
58
- }
59
- },
60
- {
61
- type: 'Control',
62
- scope: '#/properties/notReadonly',
63
- label: 'A normal field'
64
- }
65
- ]
66
- };
67
- exports.data = {
68
- readonly: 'readonly by schema',
69
- readonlyByUISchema: 'readonly by ui schema',
70
- notReadonly: 'normal field'
71
- };
72
- register_1.registerExamples([
73
- {
74
- name: 'Readonly Fields',
75
- label: 'Readonly examples',
76
- data: exports.data,
77
- schema: exports.schema,
78
- uischema: exports.uischema
79
- }
80
- ]);
81
- //# sourceMappingURL=readonly.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"readonly.js","sourceRoot":"","sources":["../../src/examples/readonly.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAElC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,QAAQ;SACf;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,uBAAuB;YAC9B,KAAK,EAAE,kBAAkB;SAC1B;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,iCAAiC;YACxC,KAAK,EAAE,+BAA+B;YACtC,OAAO,EAAE;gBACP,QAAQ,EAAE,IAAI;aACf;SACF;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,0BAA0B;YACjC,KAAK,EAAE,gBAAgB;SACxB;KACF;CACF,CAAC;AAEW,QAAA,IAAI,GAAG;IAClB,QAAQ,EAAE,oBAAoB;IAC9B,kBAAkB,EAAE,uBAAuB;IAC3C,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,mBAAmB;QAC1B,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,45 +0,0 @@
1
- export declare const schema: {
2
- definitions: {
3
- address: {
4
- type: string;
5
- properties: {
6
- street_address: {
7
- type: string;
8
- };
9
- city: {
10
- type: string;
11
- };
12
- state: {
13
- type: string;
14
- };
15
- coord: {
16
- $ref: string;
17
- };
18
- };
19
- required: string[];
20
- };
21
- coord: {
22
- $ref: string;
23
- };
24
- };
25
- type: string;
26
- properties: {
27
- address: {
28
- $ref: string;
29
- };
30
- };
31
- };
32
- export declare const uischema: {
33
- type: string;
34
- elements: {
35
- type: string;
36
- scope: string;
37
- }[];
38
- };
39
- export declare const data: {
40
- address: {
41
- street_address: string;
42
- city: string;
43
- state: string;
44
- };
45
- };
@@ -1,87 +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
- definitions: {
31
- address: {
32
- type: 'object',
33
- properties: {
34
- street_address: { type: 'string' },
35
- city: { type: 'string' },
36
- state: { type: 'string' },
37
- coord: { $ref: '#/definitions/coord' }
38
- },
39
- required: ['street_address', 'city', 'state']
40
- },
41
- coord: {
42
- $ref: 'geographical-location.schema.json#'
43
- }
44
- },
45
- type: 'object',
46
- properties: {
47
- address: { $ref: '#/definitions/address' }
48
- }
49
- };
50
- exports.uischema = {
51
- type: 'VerticalLayout',
52
- elements: [
53
- {
54
- type: 'Control',
55
- scope: '#/properties/address/properties/street_address'
56
- },
57
- {
58
- type: 'Control',
59
- scope: '#/properties/address/properties/city'
60
- },
61
- {
62
- type: 'Control',
63
- scope: '#/properties/address/properties/state'
64
- },
65
- {
66
- type: 'Control',
67
- scope: '#/properties/address/properties/coord'
68
- }
69
- ]
70
- };
71
- exports.data = {
72
- address: {
73
- street_address: 'Agnes-Pockels Bogen 1',
74
- city: 'Munich',
75
- state: 'Bavaria'
76
- }
77
- };
78
- register_1.registerExamples([
79
- {
80
- name: 'resolve',
81
- label: 'Resolve Remote Schema',
82
- data: exports.data,
83
- schema: exports.schema,
84
- uischema: exports.uischema
85
- }
86
- ]);
87
- //# sourceMappingURL=resolve.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../src/examples/resolve.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAElC,QAAA,MAAM,GAAG;IACpB,WAAW,EAAE;QACX,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAClC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,KAAK,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE;aACvC;YACD,QAAQ,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC;SAC9C;QACD,KAAK,EAAE;YACL,IAAI,EAAE,oCAAoC;SAC3C;KACF;IACD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,OAAO,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;KAC3C;CACF,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,gDAAgD;SACxD;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,sCAAsC;SAC9C;QACD;YACE,IAAI,EAAE,S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