@jsonforms/examples 3.0.0-alpha.1 → 3.0.0-beta.1

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 (245) hide show
  1. package/docs/assets/js/search.json +1 -1
  2. package/docs/globals.html +2371 -2178
  3. package/docs/index.html +5 -26
  4. package/docs/interfaces/exampledescription.html +34 -6
  5. package/docs/interfaces/stateprops.html +229 -0
  6. package/lib/example.d.ts +23 -15
  7. package/lib/{1169.d.ts → examples/1169.d.ts} +24 -24
  8. package/lib/examples/1220.d.ts +4 -0
  9. package/lib/{1253.d.ts → examples/1253.d.ts} +16 -16
  10. package/lib/{1254.d.ts → examples/1254.d.ts} +21 -21
  11. package/lib/examples/1645.d.ts +68 -0
  12. package/lib/{1779.d.ts → examples/1779.d.ts} +1 -1
  13. package/lib/{allOf.d.ts → examples/allOf.d.ts} +56 -56
  14. package/lib/{anyOf-oneOf-allOf-resolve.d.ts → examples/anyOf-oneOf-allOf-resolve.d.ts} +44 -44
  15. package/lib/{anyOf.d.ts → examples/anyOf.d.ts} +64 -64
  16. package/lib/{arrays-with-custom-element-label.d.ts → examples/arrays-with-custom-element-label.d.ts} +43 -43
  17. package/lib/{arrays-with-detail-and-rule.d.ts → examples/arrays-with-detail-and-rule.d.ts} +91 -91
  18. package/lib/{arrays-with-detail.d.ts → examples/arrays-with-detail.d.ts} +65 -65
  19. package/lib/{arrays.d.ts → examples/arrays.d.ts} +51 -38
  20. package/lib/{booleanToggle.d.ts → examples/booleanToggle.d.ts} +62 -62
  21. package/lib/{categorization.d.ts → examples/categorization.d.ts} +135 -135
  22. package/lib/{config.d.ts → examples/config.d.ts} +29 -29
  23. package/lib/{control-options.d.ts → examples/control-options.d.ts} +190 -190
  24. package/lib/{dates.d.ts → examples/dates.d.ts} +1 -1
  25. package/lib/{day1.d.ts → examples/day1.d.ts} +23 -23
  26. package/lib/{day2.d.ts → examples/day2.d.ts} +42 -42
  27. package/lib/{day3.d.ts → examples/day3.d.ts} +51 -51
  28. package/lib/{day4.d.ts → examples/day4.d.ts} +72 -72
  29. package/lib/{day5.d.ts → examples/day5.d.ts} +133 -133
  30. package/lib/{day6.d.ts → examples/day6.d.ts} +85 -85
  31. package/lib/{default.d.ts → examples/default.d.ts} +64 -64
  32. package/lib/{dynamic.d.ts → examples/dynamic.d.ts} +1 -1
  33. package/lib/{enum.d.ts → examples/enum.d.ts} +49 -49
  34. package/lib/{enumInArray.d.ts → examples/enumInArray.d.ts} +27 -27
  35. package/lib/{generate.d.ts → examples/generate.d.ts} +12 -12
  36. package/lib/{generateUI.d.ts → examples/generateUI.d.ts} +33 -33
  37. package/lib/{huge.d.ts → examples/huge.d.ts} +1 -1
  38. package/lib/{i18n.d.ts → examples/i18n.d.ts} +25 -25
  39. package/lib/{if_then_else.d.ts → examples/if_then_else.d.ts} +25 -25
  40. package/lib/{layout.d.ts → examples/layout.d.ts} +97 -97
  41. package/lib/{list-with-detail-registered.d.ts → examples/list-with-detail-registered.d.ts} +1 -1
  42. package/lib/{list-with-detail.d.ts → examples/list-with-detail.d.ts} +1 -1
  43. package/lib/{multi-enum.d.ts → examples/multi-enum.d.ts} +34 -34
  44. package/lib/examples/nestedArrays.d.ts +11 -0
  45. package/lib/{numbers.d.ts → examples/numbers.d.ts} +46 -46
  46. package/lib/{object.d.ts → examples/object.d.ts} +56 -56
  47. package/lib/{onChange.d.ts → examples/onChange.d.ts} +18 -18
  48. package/lib/{oneOf-recursive.d.ts → examples/oneOf-recursive.d.ts} +48 -48
  49. package/lib/{oneOf.d.ts → examples/oneOf.d.ts} +53 -53
  50. package/lib/{oneOfArray.d.ts → examples/oneOfArray.d.ts} +53 -53
  51. package/lib/{person.d.ts → examples/person.d.ts} +99 -99
  52. package/lib/{radioGroup.d.ts → examples/radioGroup.d.ts} +1 -1
  53. package/lib/{readonly.d.ts → examples/readonly.d.ts} +36 -36
  54. package/lib/{resolve.d.ts → examples/resolve.d.ts} +45 -45
  55. package/lib/{rule.d.ts → examples/rule.d.ts} +59 -59
  56. package/lib/{ruleInheritance.d.ts → examples/ruleInheritance.d.ts} +26 -26
  57. package/lib/{scope.d.ts → examples/scope.d.ts} +50 -50
  58. package/lib/{stepper.d.ts → examples/stepper.d.ts} +138 -138
  59. package/lib/{steppershownav.d.ts → examples/steppershownav.d.ts} +139 -139
  60. package/lib/{stringArray.d.ts → examples/stringArray.d.ts} +22 -22
  61. package/lib/{text.d.ts → examples/text.d.ts} +37 -37
  62. package/lib/index.d.ts +58 -57
  63. package/lib/jsonforms-examples.cjs.js +6082 -0
  64. package/lib/jsonforms-examples.cjs.js.map +1 -0
  65. package/lib/jsonforms-examples.esm.js +6060 -0
  66. package/lib/jsonforms-examples.esm.js.map +1 -0
  67. package/lib/register.d.ts +3 -3
  68. package/package.json +16 -8
  69. package/rollup.config.js +48 -0
  70. package/src/example.ts +18 -12
  71. package/src/{1169.ts → examples/1169.ts} +1 -1
  72. package/src/{1220.ts → examples/1220.ts} +58 -36
  73. package/src/{1253.ts → examples/1253.ts} +1 -1
  74. package/src/{1254.ts → examples/1254.ts} +1 -1
  75. package/src/examples/1645.ts +66 -0
  76. package/src/{1779.ts → examples/1779.ts} +1 -1
  77. package/src/{allOf.ts → examples/allOf.ts} +1 -1
  78. package/src/{anyOf-oneOf-allOf-resolve.ts → examples/anyOf-oneOf-allOf-resolve.ts} +1 -1
  79. package/src/{anyOf.ts → examples/anyOf.ts} +1 -1
  80. package/src/{arrays-with-custom-element-label.ts → examples/arrays-with-custom-element-label.ts} +1 -1
  81. package/src/{arrays-with-detail-and-rule.ts → examples/arrays-with-detail-and-rule.ts} +1 -1
  82. package/src/{arrays-with-detail.ts → examples/arrays-with-detail.ts} +1 -1
  83. package/src/{arrays.ts → examples/arrays.ts} +36 -8
  84. package/src/{booleanToggle.ts → examples/booleanToggle.ts} +1 -1
  85. package/src/{categorization.ts → examples/categorization.ts} +1 -1
  86. package/src/{config.ts → examples/config.ts} +1 -1
  87. package/src/{control-options.ts → examples/control-options.ts} +2 -2
  88. package/src/{dates.ts → examples/dates.ts} +1 -1
  89. package/src/{day1.ts → examples/day1.ts} +1 -1
  90. package/src/{day2.ts → examples/day2.ts} +5 -5
  91. package/src/{day3.ts → examples/day3.ts} +1 -1
  92. package/src/{day4.ts → examples/day4.ts} +1 -1
  93. package/src/{day5.ts → examples/day5.ts} +1 -1
  94. package/src/{day6.ts → examples/day6.ts} +1 -1
  95. package/src/{default.ts → examples/default.ts} +1 -1
  96. package/src/{dynamic.ts → examples/dynamic.ts} +17 -2
  97. package/src/{enum.ts → examples/enum.ts} +1 -1
  98. package/src/{enumInArray.ts → examples/enumInArray.ts} +1 -1
  99. package/src/{generate.ts → examples/generate.ts} +1 -1
  100. package/src/{generateUI.ts → examples/generateUI.ts} +1 -1
  101. package/src/{huge.ts → examples/huge.ts} +1 -1
  102. package/src/{i18n.ts → examples/i18n.ts} +1 -1
  103. package/src/{if_then_else.ts → examples/if_then_else.ts} +1 -1
  104. package/src/{layout.ts → examples/layout.ts} +1 -1
  105. package/src/{list-with-detail-registered.ts → examples/list-with-detail-registered.ts} +1 -1
  106. package/src/{list-with-detail.ts → examples/list-with-detail.ts} +1 -1
  107. package/src/{multi-enum.ts → examples/multi-enum.ts} +1 -1
  108. package/src/{nestedArrays.ts → examples/nestedArrays.ts} +49 -36
  109. package/src/{numbers.ts → examples/numbers.ts} +1 -1
  110. package/src/{object.ts → examples/object.ts} +1 -1
  111. package/src/{onChange.ts → examples/onChange.ts} +2 -2
  112. package/src/{oneOf-recursive.ts → examples/oneOf-recursive.ts} +1 -1
  113. package/src/{oneOf.ts → examples/oneOf.ts} +1 -1
  114. package/src/{oneOfArray.ts → examples/oneOfArray.ts} +1 -1
  115. package/src/{person.ts → examples/person.ts} +1 -1
  116. package/src/{radioGroup.ts → examples/radioGroup.ts} +1 -1
  117. package/src/{readonly.ts → examples/readonly.ts} +1 -1
  118. package/src/{resolve.ts → examples/resolve.ts} +1 -1
  119. package/src/{rule.ts → examples/rule.ts} +1 -1
  120. package/src/{ruleInheritance.ts → examples/ruleInheritance.ts} +25 -2
  121. package/src/{scope.ts → examples/scope.ts} +1 -1
  122. package/src/{stepper.ts → examples/stepper.ts} +1 -1
  123. package/src/{steppershownav.ts → examples/steppershownav.ts} +1 -1
  124. package/src/{stringArray.ts → examples/stringArray.ts} +1 -1
  125. package/src/{text.ts → examples/text.ts} +1 -1
  126. package/src/index.ts +57 -55
  127. package/stats.html +3279 -0
  128. package/docs/interfaces/changeexampleaction.html +0 -159
  129. package/lib/1169.js +0 -60
  130. package/lib/1169.js.map +0 -1
  131. package/lib/1220.d.ts +0 -3
  132. package/lib/1220.js +0 -122
  133. package/lib/1220.js.map +0 -1
  134. package/lib/1253.js +0 -201
  135. package/lib/1253.js.map +0 -1
  136. package/lib/1254.js +0 -66
  137. package/lib/1254.js.map +0 -1
  138. package/lib/1779.js +0 -82
  139. package/lib/1779.js.map +0 -1
  140. package/lib/allOf.js +0 -91
  141. package/lib/allOf.js.map +0 -1
  142. package/lib/anyOf-oneOf-allOf-resolve.js +0 -94
  143. package/lib/anyOf-oneOf-allOf-resolve.js.map +0 -1
  144. package/lib/anyOf.js +0 -114
  145. package/lib/anyOf.js.map +0 -1
  146. package/lib/arrays-with-custom-element-label.js +0 -94
  147. package/lib/arrays-with-custom-element-label.js.map +0 -1
  148. package/lib/arrays-with-detail-and-rule.js +0 -121
  149. package/lib/arrays-with-detail-and-rule.js.map +0 -1
  150. package/lib/arrays-with-detail.js +0 -96
  151. package/lib/arrays-with-detail.js.map +0 -1
  152. package/lib/arrays.js +0 -98
  153. package/lib/arrays.js.map +0 -1
  154. package/lib/booleanToggle.js +0 -67
  155. package/lib/booleanToggle.js.map +0 -1
  156. package/lib/categorization.js +0 -300
  157. package/lib/categorization.js.map +0 -1
  158. package/lib/config.js +0 -89
  159. package/lib/config.js.map +0 -1
  160. package/lib/control-options.js +0 -239
  161. package/lib/control-options.js.map +0 -1
  162. package/lib/dates.js +0 -150
  163. package/lib/dates.js.map +0 -1
  164. package/lib/day1.js +0 -59
  165. package/lib/day1.js.map +0 -1
  166. package/lib/day2.js +0 -61
  167. package/lib/day2.js.map +0 -1
  168. package/lib/day3.js +0 -64
  169. package/lib/day3.js.map +0 -1
  170. package/lib/day4.js +0 -70
  171. package/lib/day4.js.map +0 -1
  172. package/lib/day5.js +0 -167
  173. package/lib/day5.js.map +0 -1
  174. package/lib/day6.js +0 -41
  175. package/lib/day6.js.map +0 -1
  176. package/lib/default.js +0 -117
  177. package/lib/default.js.map +0 -1
  178. package/lib/dynamic.js +0 -37
  179. package/lib/dynamic.js.map +0 -1
  180. package/lib/enum.js +0 -128
  181. package/lib/enum.js.map +0 -1
  182. package/lib/enumInArray.js +0 -43
  183. package/lib/enumInArray.js.map +0 -1
  184. package/lib/example.js +0 -8
  185. package/lib/example.js.map +0 -1
  186. package/lib/generate.js +0 -41
  187. package/lib/generate.js.map +0 -1
  188. package/lib/generateUI.js +0 -41
  189. package/lib/generateUI.js.map +0 -1
  190. package/lib/huge.js +0 -1360
  191. package/lib/huge.js.map +0 -1
  192. package/lib/i18n.js +0 -92
  193. package/lib/i18n.js.map +0 -1
  194. package/lib/if_then_else.js +0 -48
  195. package/lib/if_then_else.js.map +0 -1
  196. package/lib/index.js +0 -138
  197. package/lib/index.js.map +0 -1
  198. package/lib/layout.js +0 -148
  199. package/lib/layout.js.map +0 -1
  200. package/lib/list-with-detail-registered.js +0 -104
  201. package/lib/list-with-detail-registered.js.map +0 -1
  202. package/lib/list-with-detail.js +0 -302
  203. package/lib/list-with-detail.js.map +0 -1
  204. package/lib/multi-enum.js +0 -75
  205. package/lib/multi-enum.js.map +0 -1
  206. package/lib/nestedArrays.d.ts +0 -4
  207. package/lib/nestedArrays.js +0 -101
  208. package/lib/nestedArrays.js.map +0 -1
  209. package/lib/numbers.js +0 -88
  210. package/lib/numbers.js.map +0 -1
  211. package/lib/object.js +0 -99
  212. package/lib/object.js.map +0 -1
  213. package/lib/onChange.js +0 -68
  214. package/lib/onChange.js.map +0 -1
  215. package/lib/oneOf-recursive.js +0 -80
  216. package/lib/oneOf-recursive.js.map +0 -1
  217. package/lib/oneOf.js +0 -336
  218. package/lib/oneOf.js.map +0 -1
  219. package/lib/oneOfArray.js +0 -95
  220. package/lib/oneOfArray.js.map +0 -1
  221. package/lib/person.js +0 -155
  222. package/lib/person.js.map +0 -1
  223. package/lib/radioGroup.js +0 -86
  224. package/lib/radioGroup.js.map +0 -1
  225. package/lib/readonly.js +0 -80
  226. package/lib/readonly.js.map +0 -1
  227. package/lib/register.js +0 -10
  228. package/lib/register.js.map +0 -1
  229. package/lib/resolve.js +0 -86
  230. package/lib/resolve.js.map +0 -1
  231. package/lib/rule.js +0 -122
  232. package/lib/rule.js.map +0 -1
  233. package/lib/ruleInheritance.js +0 -104
  234. package/lib/ruleInheritance.js.map +0 -1
  235. package/lib/scope.js +0 -112
  236. package/lib/scope.js.map +0 -1
  237. package/lib/stepper.js +0 -44
  238. package/lib/stepper.js.map +0 -1
  239. package/lib/steppershownav.js +0 -45
  240. package/lib/steppershownav.js.map +0 -1
  241. package/lib/stringArray.js +0 -61
  242. package/lib/stringArray.js.map +0 -1
  243. package/lib/text.js +0 -96
  244. package/lib/text.js.map +0 -1
  245. package/webpack.build.js +0 -12
package/lib/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/1779.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"1779.js","sourceRoot":"","sources":["../src/1779.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAE9C,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"}
package/lib/allOf.js DELETED
@@ -1,91 +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
- exports.schema = {
29
- $schema: 'http://json-schema.org/draft-07/schema#',
30
- definitions: {
31
- address: {
32
- type: 'object',
33
- properties: {
34
- street_address: { type: 'string' },
35
- city: { type: 'string' },
36
- state: { type: 'string' }
37
- },
38
- required: ['street_address', 'city', 'state']
39
- }
40
- },
41
- type: 'object',
42
- properties: {
43
- billing_address: { $ref: '#/definitions/address' },
44
- shipping_address: {
45
- allOf: [
46
- { $ref: '#/definitions/address' },
47
- {
48
- type: 'object',
49
- properties: {
50
- type: {
51
- type: 'string',
52
- enum: ['residential', 'business']
53
- }
54
- },
55
- required: ['type']
56
- }
57
- ]
58
- }
59
- }
60
- };
61
- exports.uischema = {
62
- type: 'VerticalLayout',
63
- elements: [
64
- {
65
- label: 'Billing address',
66
- type: 'Control',
67
- scope: '#/properties/billing_address'
68
- },
69
- {
70
- type: 'Control',
71
- scope: '#/properties/shipping_address'
72
- }
73
- ]
74
- };
75
- var data = {
76
- billing_address: {
77
- street_address: '1600 Pennsylvania Avenue NW',
78
- city: 'Washington',
79
- state: 'DC'
80
- }
81
- };
82
- register_1.registerExamples([
83
- {
84
- name: 'allOf',
85
- label: 'allOf',
86
- data: data,
87
- schema: exports.schema,
88
- uischema: exports.uischema
89
- }
90
- ]);
91
- //# sourceMappingURL=allOf.js.map
package/lib/allOf.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"allOf.js","sourceRoot":"","sources":["../src/allOf.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAEjC,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,yCAAyC;IAElD,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;aAC1B;YACD,QAAQ,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC;SAC9C;KACF;IAED,IAAI,EAAE,QAAQ;IAEd,UAAU,EAAE;QACV,eAAe,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;QAClD,gBAAgB,EAAE;YAChB,KAAK,EAAE;gBACL,EAAE,IAAI,EAAE,uBAAuB,EAAE;gBACjC;oBACE,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;4BACd,IAAI,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC;yBAClC;qBACF;oBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;iBACnB;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,8BAA8B;SACtC;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,+BAA+B;SACvC;KACF;CACF,CAAC;AAEF,IAAM,IAAI,GAAG;IACX,eAAe,EAAE;QACf,cAAc,EAAE,6BAA6B;QAC7C,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,IAAI;KACZ;CACF,CAAC;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,OAAO;QACd,IAAI,MAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,94 +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
- exports.schema = {
29
- $defs: {
30
- Base: {
31
- type: 'object',
32
- properties: {
33
- width: {
34
- type: 'integer'
35
- }
36
- }
37
- },
38
- Child: {
39
- type: 'object',
40
- allOf: [
41
- { $ref: '#/$defs/Base' },
42
- {
43
- properties: {
44
- geometry: {
45
- type: 'string'
46
- }
47
- }
48
- }
49
- ]
50
- }
51
- },
52
- type: 'object',
53
- properties: {
54
- element: {
55
- $ref: '#/$defs/Child'
56
- }
57
- }
58
- };
59
- exports.uischema = {
60
- type: 'VerticalLayout',
61
- elements: [
62
- {
63
- type: 'Label',
64
- text: 'AllOfRenderer'
65
- },
66
- {
67
- type: 'Control',
68
- scope: '#/properties/element'
69
- },
70
- {
71
- type: 'Label',
72
- text: 'Manual controls'
73
- },
74
- {
75
- type: 'Control',
76
- scope: '#/properties/element/properties/width'
77
- },
78
- {
79
- type: 'Control',
80
- scope: '#/properties/element/properties/geometry'
81
- }
82
- ]
83
- };
84
- var data = {};
85
- register_1.registerExamples([
86
- {
87
- name: 'anyOf-oneOf-allOf-resolve',
88
- label: 'AnyOf OneOf AllOf Resolve',
89
- data: data,
90
- schema: exports.schema,
91
- uischema: exports.uischema
92
- }
93
- ]);
94
- //# sourceMappingURL=anyOf-oneOf-allOf-resolve.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"anyOf-oneOf-allOf-resolve.js","sourceRoot":"","sources":["../src/anyOf-oneOf-allOf-resolve.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAEjC,QAAA,MAAM,GAAG;IACpB,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,IAAI,EAAE,SAAS;iBAChB;aACF;SACF;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE;gBACL,EAAE,IAAI,EAAE,cAAc,EAAE;gBACxB;oBACE,UAAU,EAAE;wBACV,QAAQ,EAAE;4BACR,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF;SACF;KACF;IACD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,OAAO,EAAE;YACP,IAAI,EAAE,eAAe;SACtB;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,eAAe;SACtB;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,sBAAsB;SAC9B;QACD;YACE,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,iBAAiB;SACxB;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,uCAAuC;SAC/C;QACD;YACE,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,0CAA0C;SAClD;KACF;CACF,CAAC;AAEF,IAAM,IAAI,GAAG,EAAE,CAAC;AAEhB,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,2BAA2B;QACjC,KAAK,EAAE,2BAA2B;QAClC,IAAI,MAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
package/lib/anyOf.js DELETED
@@ -1,114 +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
- exports.schema = {
29
- $schema: 'http://json-schema.org/draft-07/schema#',
30
- definitions: {
31
- address: {
32
- type: 'object',
33
- properties: {
34
- street_address: { type: 'string' },
35
- city: { type: 'string' },
36
- state: { type: 'string' }
37
- },
38
- required: ['street_address', 'city', 'state']
39
- },
40
- user: {
41
- type: 'object',
42
- properties: {
43
- name: { type: 'string' },
44
- mail: { type: 'string' }
45
- },
46
- required: ['name', 'mail']
47
- },
48
- users: {
49
- type: 'array',
50
- items: { $ref: '#/definitions/user' }
51
- },
52
- addresses: {
53
- type: 'array',
54
- items: { $ref: '#/definitions/address' }
55
- }
56
- },
57
- type: 'object',
58
- properties: {
59
- addressOrUser: {
60
- anyOf: [{ $ref: '#/definitions/address' }, { $ref: '#/definitions/user' }]
61
- },
62
- addressesOrUsers: {
63
- anyOf: [
64
- { $ref: '#/definitions/addresses' },
65
- { $ref: '#/definitions/users' }
66
- ]
67
- }
68
- }
69
- };
70
- exports.uischema = {
71
- type: 'VerticalLayout',
72
- elements: [
73
- {
74
- type: 'Control',
75
- scope: '#/properties/addressOrUser'
76
- },
77
- {
78
- type: 'Control',
79
- scope: '#/properties/addressesOrUsers'
80
- }
81
- ]
82
- };
83
- var data = {
84
- addressOrUser: {
85
- street_address: '1600 Pennsylvania Avenue NW',
86
- city: 'Washington',
87
- state: 'DC'
88
- }
89
- };
90
- var schema_simple = {
91
- type: 'object',
92
- properties: {
93
- foo: {
94
- anyOf: [{ type: 'string' }, { enum: ['foo', 'bar'] }]
95
- }
96
- }
97
- };
98
- register_1.registerExamples([
99
- {
100
- name: 'anyOf',
101
- label: 'anyOf',
102
- data: data,
103
- schema: exports.schema,
104
- uischema: exports.uischema
105
- },
106
- {
107
- name: 'anyOf_simple',
108
- label: 'AnyOf Simple',
109
- data: { foo: 'foo' },
110
- schema: schema_simple,
111
- uischema: undefined
112
- }
113
- ]);
114
- //# sourceMappingURL=anyOf.js.map
package/lib/anyOf.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"anyOf.js","sourceRoot":"","sources":["../src/anyOf.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAEjC,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,yCAAyC;IAElD,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;aAC1B;YACD,QAAQ,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC;SAC9C;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACxB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aACzB;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;SAC3B;QACD,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE;SACtC;QACD,SAAS,EAAE;YACT,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,EA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@@
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
- exports.schema = {
29
- type: 'object',
30
- properties: {
31
- comments: {
32
- type: 'array',
33
- title: 'Messages',
34
- items: {
35
- type: 'object',
36
- properties: {
37
- message1: {
38
- type: 'string'
39
- },
40
- message2: {
41
- type: 'string'
42
- }
43
- }
44
- }
45
- }
46
- }
47
- };
48
- exports.uischema = {
49
- type: 'VerticalLayout',
50
- elements: [
51
- {
52
- type: 'Control',
53
- scope: '#/properties/comments',
54
- options: {
55
- elementLabelProp: 'message2',
56
- detail: {
57
- type: 'VerticalLayout',
58
- elements: [
59
- {
60
- type: 'Control',
61
- scope: '#/properties/message1'
62
- },
63
- {
64
- type: 'Control',
65
- scope: '#/properties/message2'
66
- }
67
- ]
68
- }
69
- }
70
- }
71
- ]
72
- };
73
- exports.data = {
74
- comments: [
75
- {
76
- message1: 'This is an example message',
77
- message2: 'This is an example message 2'
78
- },
79
- {
80
- message1: 'Get ready for booohay 1',
81
- message2: 'Get ready for booohay 2'
82
- }
83
- ]
84
- };
85
- register_1.registerExamples([
86
- {
87
- name: 'array-with-custom-element-label',
88
- label: 'Array with custom element label',
89
- data: exports.data,
90
- schema: exports.schema,
91
- uischema: exports.uischema
92
- }
93
- ]);
94
- //# sourceMappingURL=arrays-with-custom-element-label.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrays-with-custom-element-label.js","sourceRoot":"","sources":["../src/arrays-with-custom-element-label.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;AACF,uCAA8C;AAEjC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,UAAU;YACjB,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;qBACf;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;qBACf;iBACF;aACF;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,OAAO,EAAE;gBACP,gBAAgB,EAAE,UAAU;gBAC5B,MAAM,EAAE;oBACN,IAAI,EAAE,gBAAgB;oBACtB,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,uBAAuB;yBAC/B;wBACD;4BACE,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,uBAAuB;yBAC/B;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,IAAI,GAAG;IAClB,QAAQ,EAAE;QACR;YACE,QAAQ,EAAE,4BAA4B;YACtC,QAAQ,EAAE,8BAA8B;SACzC;QACD;YACE,QAAQ,EAAE,yBAAyB;YACnC,QAAQ,EAAE,yBAAyB;SACpC;KACF;CACF,CAAC;AAEF,2BAAgB,CAAC;IACf;QACE,IAAI,EAAE,iCAAiC;QACvC,KAAK,EAAE,iCAAiC;QACxC,IAAI,cAAA;QACJ,MAAM,gBAAA;QACN,QAAQ,kBAAA;KACT;CACF,CAAC,CAAC"}
@@ -1,121 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
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 person_1 = require("./person");
30
- exports.schema = {
31
- type: 'object',
32
- properties: tslib_1.__assign(tslib_1.__assign({}, person_1.personCoreSchema.properties), { occupation: { type: 'string' }, enableArray: { type: 'boolean' }, comments: {
33
- type: 'array',
34
- title: 'Messages',
35
- items: {
36
- type: 'object',
37
- properties: {
38
- date: {
39
- type: 'string',
40
- format: 'date'
41
- },
42
- message: {
43
- type: 'string',
44
- maxLength: 5
45
- }
46
- }
47
- }
48
- } }),
49
- required: ['occupation', 'nationality']
50
- };
51
- exports.uischema = {
52
- type: 'VerticalLayout',
53
- elements: [
54
- {
55
- type: 'Control',
56
- scope: '#/properties/occupation'
57
- },
58
- {
59
- type: 'Control',
60
- scope: '#/properties/enableArray'
61
- },
62
- {
63
- type: 'Control',
64
- scope: '#/properties/comments',
65
- rule: {
66
- effect: 'SHOW',
67
- condition: {
68
- type: 'OR',
69
- conditions: [
70
- {
71
- schema: { const: 'developer' },
72
- scope: '#/properties/occupation'
73
- },
74
- {
75
- schema: { const: true },
76
- scope: '/properties/enableArray'
77
- }
78
- ]
79
- }
80
- },
81
- options: {
82
- detail: {
83
- type: 'VerticalLayout',
84
- elements: [
85
- {
86
- type: 'Control',
87
- scope: '#/properties/message'
88
- },
89
- {
90
- type: 'Control',
91
- scope: '#/properties/date'
92
- }
93
- ]
94
- }
95
- }
96
- }
97
- ]
98
- };
99
- exports.data = {
100
- occupation: 'developer',
101
- comments: [
102
- {
103
- date: new Date(2001, 8, 11).toISOString().substr(0, 10),
104
- message: 'This is an example message'
105
- },
106
- {
107
- date: new Date().toISOString().substr(0, 10),
108
- message: 'Get ready for booohay'
109
- }
110
- ]
111
- };
112
- register_1.registerExamples([
113
- {
114
- name: 'array-with-detail-and-rule',
115
- label: 'Array with detail and rule',
116
- data: exports.data,
117
- schema: exports.schema,
118
- uischema: exports.uischema
119
- }
120
- ]);
121
- //# sourceMappingURL=arrays-with-detail-and-rule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"arrays-with-detail-and-rule.js","sourceRoot":"","sources":["../src/arrays-with-detail-and-rule.ts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