@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,240 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.extendedData = exports.extendedUischema = exports.extendedSchema = exports.data = exports.uischema = exports.schema = void 0;
4
- var tslib_1 = require("tslib");
5
- /*
6
- The MIT License
7
-
8
- Copyright (c) 2017-2021 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.schema = {
31
- type: 'object',
32
- properties: {
33
- string: {
34
- type: 'string'
35
- },
36
- boolean: {
37
- type: 'boolean'
38
- },
39
- number: {
40
- type: 'number'
41
- },
42
- integer: {
43
- type: 'integer'
44
- },
45
- date: {
46
- type: 'string',
47
- format: 'date'
48
- },
49
- time: {
50
- type: 'string',
51
- format: 'time'
52
- },
53
- dateTime: {
54
- type: 'string',
55
- format: 'date-time'
56
- },
57
- enum: {
58
- type: 'string',
59
- enum: ['One', 'Two', 'Three']
60
- }
61
- }
62
- };
63
- exports.uischema = {
64
- type: 'VerticalLayout',
65
- elements: [
66
- {
67
- type: 'Control',
68
- scope: '#/properties/string'
69
- },
70
- {
71
- type: 'Control',
72
- scope: '#/properties/boolean'
73
- },
74
- {
75
- type: 'Control',
76
- scope: '#/properties/number'
77
- },
78
- {
79
- type: 'Control',
80
- scope: '#/properties/integer'
81
- },
82
- {
83
- type: 'Control',
84
- scope: '#/properties/date'
85
- },
86
- {
87
- type: 'Control',
88
- scope: '#/properties/time'
89
- },
90
- {
91
- type: 'Control',
92
- scope: '#/properties/dateTime'
93
- },
94
- {
95
- type: 'Control',
96
- scope: '#/properties/enum'
97
- }
98
- ]
99
- };
100
- exports.data = {
101
- string: 'This is a string',
102
- boolean: true,
103
- number: 50.5,
104
- integer: 50,
105
- date: '2020-06-25',
106
- time: '23:08:00',
107
- dateTime: '2020-06-25T23:08:42+02:00',
108
- enum: 'Two'
109
- };
110
- exports.extendedSchema = {
111
- type: 'object',
112
- properties: {
113
- multilineString: {
114
- type: 'string',
115
- description: 'Multiline Example',
116
- },
117
- slider: {
118
- type: 'number',
119
- minimum: 1,
120
- maximum: 5,
121
- default: 2,
122
- description: 'Slider Example',
123
- },
124
- trimText: {
125
- type: 'string',
126
- description: 'Trim indicates whether the control shall grab the full width available',
127
- },
128
- restrictText: {
129
- type: 'string',
130
- maxLength: 5,
131
- description: 'Restricts the input length to the set value (in this case: 5)',
132
- },
133
- unfocusedDescription: {
134
- type: 'string',
135
- description: 'This description is shown even when the control is not focused',
136
- },
137
- hideRequiredAsterisk: {
138
- type: 'string',
139
- description: 'Hides the "*" symbol, when the field is required',
140
- },
141
- toggle: {
142
- type: 'boolean',
143
- description: 'The "toggle" option renders boolean values as a toggle.'
144
- }
145
- },
146
- required: ['hideRequiredAsterisk', 'restrictText']
147
- };
148
- exports.extendedUischema = {
149
- type: 'VerticalLayout',
150
- elements: [
151
- {
152
- type: 'Control',
153
- scope: '#/properties/multilineString',
154
- options: {
155
- multi: true
156
- }
157
- },
158
- {
159
- type: 'Control',
160
- scope: '#/properties/slider',
161
- options: {
162
- slider: true
163
- }
164
- },
165
- {
166
- type: 'Control',
167
- scope: '#/properties/trimText',
168
- options: {
169
- trim: true
170
- }
171
- },
172
- {
173
- type: 'Control',
174
- scope: '#/properties/restrictText',
175
- options: {
176
- restrict: true
177
- }
178
- },
179
- {
180
- type: 'Control',
181
- scope: '#/properties/unfocusedDescription',
182
- options: {
183
- showUnfocusedDescription: true
184
- }
185
- },
186
- {
187
- type: 'Control',
188
- scope: '#/properties/hideRequiredAsterisk',
189
- options: {
190
- hideRequiredAsterisk: true
191
- }
192
- },
193
- {
194
- type: 'Control',
195
- scope: '#/properties/toggle',
196
- label: 'Boolean as Toggle',
197
- options: {
198
- toggle: true
199
- }
200
- }
201
- ]
202
- };
203
- exports.extendedData = {
204
- multilineString: 'Multi-\nline\nexample',
205
- slider: 4,
206
- trimText: 'abcdefg',
207
- restrictText: 'abcde',
208
- toggle: false
209
- };
210
- var combinedSchema = tslib_1.__assign(tslib_1.__assign({}, exports.extendedSchema), { properties: tslib_1.__assign(tslib_1.__assign({}, exports.schema.properties), exports.extendedSchema.properties) });
211
- var combinedUiSchema = {
212
- type: 'Categorization',
213
- elements: [
214
- {
215
- type: 'Category',
216
- label: 'Normal controls',
217
- elements: [
218
- exports.uischema
219
- ]
220
- },
221
- {
222
- type: 'Category',
223
- label: 'Configured controls',
224
- elements: [
225
- exports.extendedUischema
226
- ]
227
- }
228
- ]
229
- };
230
- var combinedData = tslib_1.__assign(tslib_1.__assign({}, exports.data), exports.extendedData);
231
- register_1.registerExamples([
232
- {
233
- name: 'control-options',
234
- label: 'Control Options',
235
- data: combinedData,
236
- schema: combinedSchema,
237
- uischema: combinedUiSchema
238
- }
239
- ]);
240
- //# sourceMappingURL=control-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"control-options.js","sourceRoot":"","sources":["../../src/examples/control-options.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAElC,QAAA,MAAM,GAAG;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;SAChB;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;SAChB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,QAAQ;YACd,MAA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AC5B,KAAK,EAAE,mBAAmB;YAC1B,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAC;AAEW,QAAA,YAAY,GAAG;IAC1B,eAAe,EAAE,uBAAuB;IACxC,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,SAAS;IACnB,YAAY,EAAE,OAAO;IACrB,MAAM,EAAE,KAAK;CACd,CAAC;AAEF,IAAM,cAAc,yCACf,sBAAc,KACjB,UAAU,wCACL,cAAM,CAAC,UAAU,GACjB,sBAAc,CAAC,UAAU,IAE/B,CAAA;AAED,IAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,iBAAiB;YACxB,QAAQ,EAAE;gBACR,gBAAQ;aACT;SACF;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,qBAAqB;YAC5B,QAAQ,EAAE;gBACR,wBAAgB;aACjB;SACF;KACF;CACF,CAAA;AAED,IAAM,YAAY,yCACb,YAAI,GACJ,oBAAY,CAChB,CAAA;AAED,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,YAAY;QAClB,MAAM,EAAE,cAAc;QACtB,QAAQ,EAAE,gBAAgB;KAC3B;CACF,CAAC,CAAC"}
@@ -1,150 +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 schema = {
29
- type: 'object',
30
- properties: {
31
- schemaBased: {
32
- type: 'object',
33
- properties: {
34
- date: {
35
- type: 'string',
36
- format: 'date',
37
- description: 'schema-based date picker'
38
- },
39
- time: {
40
- type: 'string',
41
- format: 'time',
42
- description: 'schema-based time picker'
43
- },
44
- datetime: {
45
- type: 'string',
46
- format: 'date-time',
47
- description: 'schema-based datetime picker'
48
- }
49
- }
50
- },
51
- uiSchemaBased: {
52
- type: 'object',
53
- properties: {
54
- date: {
55
- type: 'string',
56
- description: 'does not allow to select days'
57
- },
58
- time: {
59
- type: 'string',
60
- description: '24 hour format'
61
- },
62
- datetime: {
63
- type: 'string',
64
- description: 'uischema-based datetime picker'
65
- }
66
- }
67
- }
68
- }
69
- };
70
- var uischema = {
71
- type: 'VerticalLayout',
72
- elements: [
73
- {
74
- type: 'HorizontalLayout',
75
- elements: [
76
- {
77
- type: 'Control',
78
- scope: '#/properties/schemaBased/properties/date'
79
- },
80
- {
81
- type: 'Control',
82
- scope: '#/properties/schemaBased/properties/time'
83
- },
84
- {
85
- type: 'Control',
86
- scope: '#/properties/schemaBased/properties/datetime'
87
- }
88
- ]
89
- },
90
- {
91
- type: 'HorizontalLayout',
92
- elements: [
93
- {
94
- type: 'Control',
95
- scope: '#/properties/uiSchemaBased/properties/date',
96
- label: 'Year Month Picker',
97
- options: {
98
- format: 'date',
99
- clearLabel: 'Clear it!',
100
- cancelLabel: 'Abort',
101
- okLabel: 'Do it',
102
- views: ['year', 'month'],
103
- dateFormat: 'YYYY.MM',
104
- dateSaveFormat: 'YYYY-MM'
105
- },
106
- },
107
- {
108
- type: 'Control',
109
- scope: '#/properties/uiSchemaBased/properties/time',
110
- options: {
111
- format: 'time',
112
- ampm: true
113
- }
114
- },
115
- {
116
- type: 'Control',
117
- scope: '#/properties/uiSchemaBased/properties/datetime',
118
- options: {
119
- format: 'date-time',
120
- dateTimeFormat: 'DD-MM-YY hh:mm:a',
121
- dateTimeSaveFormat: 'YYYY/MM/DD h:mm a',
122
- ampm: true
123
- }
124
- }
125
- ]
126
- }
127
- ]
128
- };
129
- var data = {
130
- schemaBased: {
131
- date: new Date().toISOString().substr(0, 10),
132
- time: '13:37',
133
- datetime: new Date().toISOString()
134
- },
135
- uiSchemaBased: {
136
- date: new Date().toISOString().substr(0, 10),
137
- time: '13:37',
138
- datetime: '1999/12/11 10:05 am'
139
- }
140
- };
141
- register_1.registerExamples([
142
- {
143
- name: 'dates',
144
- label: 'Dates',
145
- data: data,
146
- schema: schema,
147
- uischema: uischema
148
- }
149
- ]);
150
- //# sourceMappingURL=dates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dates.js","sourceRoot":"","sources":["../../src/examples/dates.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAE/C,IAAM,MAAM,GAAG;IACb,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE,MAAM;oBACd,WAAW,EAAE,0BAA0B;iBACxC;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,Q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,4CAA4C;oBACnD,OAAO,EAAE;wBACP,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE,IAAI;qBACX;iBACF;gBACD;oBACE,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,gDAAgD;oBACvD,OAAO,EAAE;wBACP,MAAM,EAAE,WAAW;wBACnB,cAAc,EAAE,kBAAkB;wBAClC,kBAAkB,EAAE,mBAAmB;wBACvC,IAAI,EAAE,IAAI;qBACX;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEF,IAAM,IAAI,GAAG;IACX,WAAW,EAAE;QACX,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC;QAC5C,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACnC;IACD,aAAa,EAAE;QACb,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC;QAC5C,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,qBAAqB;KAChC;CACF,CAAC;AACF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,OAAO;QACd,IAAI,MAAA;QACJ,MAAM,QAAA;QACN,QAAQ,UAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,60 +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
- name: {
33
- type: 'string',
34
- minLength: 1
35
- },
36
- description: {
37
- type: 'string'
38
- },
39
- done: {
40
- type: 'boolean'
41
- }
42
- },
43
- required: ['name']
44
- };
45
- exports.uischema = undefined;
46
- exports.data = {
47
- name: 'Send email to Adrian',
48
- description: 'Confirm if you have passed the subject\nHereby ...',
49
- done: true
50
- };
51
- register_1.registerExamples([
52
- {
53
- name: 'day1',
54
- label: 'Day 1',
55
- data: exports.data,
56
- schema: exports.schema,
57
- uischema: exports.uischema
58
- }
59
- ]);
60
- //# sourceMappingURL=day1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"day1.js","sourceRoot":"","sources":["../../src/examples/day1.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAGlC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,CAAC;SACb;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,SAAS;SAChB;KACF;IACD,QAAQ,EAAE,CAAC,MAAM,CAAC;CACnB,CAAC;AAEW,QAAA,QAAQ,GAAoB,SAAS,CAAC;AAEtC,QAAA,IAAI,GAAG;IAClB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,oDAAoD;IACjE,IAAI,EAAE,IAAI;CACX,CAAC;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,62 +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
- var day1_1 = require("./day1");
30
- exports.schema = day1_1.schema;
31
- exports.uischema = {
32
- type: 'VerticalLayout',
33
- elements: [
34
- {
35
- type: 'Control',
36
- scope: '#/properties/name'
37
- },
38
- {
39
- type: 'Control',
40
- label: false,
41
- scope: '#/properties/done'
42
- },
43
- {
44
- type: 'Control',
45
- scope: '#/properties/description',
46
- options: {
47
- multi: true
48
- }
49
- }
50
- ]
51
- };
52
- exports.data = day1_1.data;
53
- register_1.registerExamples([
54
- {
55
- name: 'day2',
56
- label: 'Day 2',
57
- data: exports.data,
58
- schema: exports.schema,
59
- uischema: exports.uischema
60
- }
61
- ]);
62
- //# sourceMappingURL=day2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"day2.js","sourceRoot":"","sources":["../../src/examples/day2.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAC/C,+BAAgE;AAEnD,QAAA,MAAM,GAAG,aAAU,CAAC;AAEpB,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,mBAAmB;SAC3B;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,mBAAmB;SAC3B;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,0BAA0B;YACjC,OAAO,EAAE;gBACP,KAAK,EAAE,IAAI;aACZ;SACF;KACF;CACF,CAAC;AAEW,QAAA,IAAI,GAAG,WAAQ,CAAC;AAE7B,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.data = exports.uischema = exports.schema = 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 day2_1 = require("./day2");
31
- exports.schema = {
32
- type: 'object',
33
- properties: tslib_1.__assign(tslib_1.__assign({}, day2_1.schema.properties), { dueDate: {
34
- type: 'string',
35
- format: 'date'
36
- }, rating: {
37
- type: 'integer',
38
- maximum: 5
39
- } }),
40
- required: ['name']
41
- };
42
- exports.uischema = {
43
- type: 'VerticalLayout',
44
- elements: tslib_1.__spreadArray(tslib_1.__spreadArray([], day2_1.uischema.elements), [
45
- {
46
- type: 'Control',
47
- scope: '#/properties/dueDate'
48
- },
49
- {
50
- type: 'Control',
51
- scope: '#/properties/rating'
52
- }
53
- ])
54
- };
55
- exports.data = tslib_1.__assign(tslib_1.__assign({}, day2_1.data), { rating: 3 });
56
- register_1.registerExamples([
57
- {
58
- name: 'day3',
59
- label: 'Day 3',
60
- data: exports.data,
61
- schema: exports.schema,
62
- uischema: exports.uischema
63
- }
64
- ]);
65
- //# sourceMappingURL=day3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"day3.js","sourceRoot":"","sources":["../../src/examples/day3.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAC/C,+BAIgB;AAEH,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,wCACL,aAAU,CAAC,UAAU,KACxB,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,MAAM;SACf,EACD,MAAM,EAAE;YACN,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,CAAC;SACX,GACF;IACD,QAAQ,EAAE,CAAC,MAAM,CAAC;CACnB,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,kDACH,eAAY,CAAC,QAAQ;QACxB;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,sBAAsB;SAC9B;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,qBAAqB;SAC7B;MACF;CACF,CAAC;AAEW,QAAA,IAAI,yCACZ,WAAQ,KACX,MAAM,EAAE,CAAC,IACT;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.data = exports.uischema = exports.schema = 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 day3_1 = require("./day3");
31
- exports.schema = {
32
- type: 'object',
33
- properties: tslib_1.__assign(tslib_1.__assign({}, day3_1.schema.properties), { recurrence: {
34
- type: 'string',
35
- enum: ['Never', 'Daily', 'Weekly', 'Monthly']
36
- }, recurrenceInterval: {
37
- type: 'integer'
38
- } }),
39
- required: ['name']
40
- };
41
- exports.uischema = {
42
- type: 'VerticalLayout',
43
- elements: tslib_1.__spreadArray(tslib_1.__spreadArray([], day3_1.uischema.elements), [
44
- {
45
- type: 'Control',
46
- scope: '#/properties/recurrence'
47
- },
48
- {
49
- type: 'Control',
50
- scope: '#/properties/recurrenceInterval',
51
- rule: {
52
- effect: 'HIDE',
53
- condition: {
54
- scope: '#/properties/recurrence',
55
- schema: { enum: ['Never'] }
56
- }
57
- }
58
- }
59
- ])
60
- };
61
- exports.data = tslib_1.__assign(tslib_1.__assign({}, day3_1.data), { recurrence: 'Daily', recurrenceInterval: 5 });
62
- register_1.registerExamples([
63
- {
64
- name: 'day4',
65
- label: 'Day 4',
66
- data: exports.data,
67
- schema: exports.schema,
68
- uischema: exports.uischema
69
- }
70
- ]);
71
- //# sourceMappingURL=day4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"day4.js","sourceRoot":"","sources":["../../src/examples/day4.ts"],"names":[],"mappings":";;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,wCAA+C;AAC/C,+BAIgB;AAEH,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,wCACL,aAAU,CAAC,UAAU,KACxB,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC;SAC9C,EACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,SAAS;SAChB,GACF;IACD,QAAQ,EAAE,CAAC,MAAM,CAAC;CACnB,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,kDACH,eAAY,CAAC,QAAQ;QACxB;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,yBAAyB;SACjC;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,iCAAiC;YACxC,IAAI,EAAE;gBACJ,MAAM,EAAE,MAAM;gBACd,SAAS,EAAE;oBACT,KAAK,EAAE,yBAAyB;oBAChC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;iBAC5B;aACF;SACF;MACF;CACF,CAAC;AAEW,QAAA,IAAI,yCACZ,WAAQ,KACX,UAAU,EAAE,OAAO,EACnB,kBAAkB,EAAE,CAAC,IACrB;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,OAAO;QACd,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}