@jsonforms/core 3.0.0-alpha.3 → 3.0.0-beta.0

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 (193) hide show
  1. package/docs/globals.html +37 -37
  2. package/docs/interfaces/arraycontrolprops.html +21 -21
  3. package/docs/interfaces/arraylayoutprops.html +21 -21
  4. package/docs/interfaces/cellprops.html +12 -12
  5. package/docs/interfaces/combinatorrendererprops.html +13 -13
  6. package/docs/interfaces/controlprops.html +16 -16
  7. package/docs/interfaces/controlstate.html +2 -2
  8. package/docs/interfaces/controlwithdetailprops.html +17 -17
  9. package/docs/interfaces/dispatchcellprops.html +10 -10
  10. package/docs/interfaces/dispatchcellstateprops.html +10 -10
  11. package/docs/interfaces/dispatchpropsofarraycontrol.html +4 -4
  12. package/docs/interfaces/dispatchpropsofcontrol.html +1 -1
  13. package/docs/interfaces/dispatchpropsofmultienumcontrol.html +2 -2
  14. package/docs/interfaces/enumcellprops.html +13 -13
  15. package/docs/interfaces/enumoption.html +2 -2
  16. package/docs/interfaces/jsonformsprops.html +9 -9
  17. package/docs/interfaces/layoutprops.html +10 -10
  18. package/docs/interfaces/ownpropsofcell.html +9 -9
  19. package/docs/interfaces/ownpropsofcontrol.html +9 -9
  20. package/docs/interfaces/ownpropsofenum.html +1 -1
  21. package/docs/interfaces/ownpropsofenumcell.html +10 -10
  22. package/docs/interfaces/ownpropsofjsonformsrenderer.html +8 -8
  23. package/docs/interfaces/ownpropsoflayout.html +9 -9
  24. package/docs/interfaces/ownpropsofmasterlistitem.html +6 -6
  25. package/docs/interfaces/ownpropsofrenderer.html +8 -8
  26. package/docs/interfaces/rendererprops.html +9 -9
  27. package/docs/interfaces/statepropsofarraycontrol.html +17 -17
  28. package/docs/interfaces/statepropsofarraylayout.html +17 -17
  29. package/docs/interfaces/statepropsofcell.html +11 -11
  30. package/docs/interfaces/statepropsofcombinator.html +12 -12
  31. package/docs/interfaces/statepropsofcontrol.html +15 -15
  32. package/docs/interfaces/statepropsofcontrolwithdetail.html +16 -16
  33. package/docs/interfaces/statepropsofenumcell.html +12 -12
  34. package/docs/interfaces/statepropsofjsonformsrenderer.html +9 -9
  35. package/docs/interfaces/statepropsoflayout.html +10 -10
  36. package/docs/interfaces/statepropsofmasteritem.html +7 -7
  37. package/docs/interfaces/statepropsofrenderer.html +9 -9
  38. package/docs/interfaces/statepropsofscopedrenderer.html +12 -12
  39. package/docs/interfaces/withclassname.html +1 -1
  40. package/lib/Helpers.d.ts +5 -5
  41. package/lib/actions/actions.d.ts +181 -181
  42. package/lib/actions/index.d.ts +1 -1
  43. package/lib/configDefault.d.ts +6 -6
  44. package/lib/generators/Generate.d.ts +6 -6
  45. package/lib/generators/index.d.ts +3 -3
  46. package/lib/generators/schema.d.ts +8 -8
  47. package/lib/generators/uischema.d.ts +12 -12
  48. package/lib/i18n/i18nTypes.d.ts +15 -15
  49. package/lib/i18n/i18nUtil.d.ts +18 -18
  50. package/lib/i18n/index.d.ts +2 -2
  51. package/lib/index.d.ts +11 -11
  52. package/lib/jsonforms-core.cjs.js +2445 -0
  53. package/lib/jsonforms-core.cjs.js.map +1 -0
  54. package/lib/jsonforms-core.esm.js +2164 -0
  55. package/lib/jsonforms-core.esm.js.map +1 -0
  56. package/lib/models/draft4.d.ts +198 -198
  57. package/lib/models/index.d.ts +5 -5
  58. package/lib/models/jsonSchema.d.ts +3 -3
  59. package/lib/models/jsonSchema4.d.ts +110 -110
  60. package/lib/models/jsonSchema7.d.ts +119 -119
  61. package/lib/models/uischema.d.ts +201 -201
  62. package/lib/reducers/cells.d.ts +11 -11
  63. package/lib/reducers/config.d.ts +3 -3
  64. package/lib/reducers/core.d.ts +24 -24
  65. package/lib/reducers/default-data.d.ts +10 -10
  66. package/lib/reducers/i18n.d.ts +8 -8
  67. package/lib/reducers/index.d.ts +9 -9
  68. package/lib/reducers/reducers.d.ts +29 -29
  69. package/lib/reducers/renderers.d.ts +10 -10
  70. package/lib/reducers/selectors.d.ts +15 -15
  71. package/lib/reducers/uischemas.d.ts +10 -10
  72. package/lib/store.d.ts +53 -53
  73. package/lib/testers/index.d.ts +1 -1
  74. package/lib/testers/testers.d.ts +203 -203
  75. package/lib/util/Formatted.d.ts +19 -19
  76. package/lib/util/array.d.ts +3 -3
  77. package/lib/util/cell.d.ts +79 -79
  78. package/lib/util/combinators.d.ts +10 -10
  79. package/lib/util/ids.d.ts +3 -3
  80. package/lib/util/index.d.ts +15 -15
  81. package/lib/util/label.d.ts +9 -9
  82. package/lib/util/path.d.ts +25 -25
  83. package/lib/util/renderer.d.ts +398 -397
  84. package/lib/util/resolvers.d.ts +25 -25
  85. package/lib/util/runtime.d.ts +18 -18
  86. package/lib/util/schema.d.ts +1 -1
  87. package/lib/util/type.d.ts +174 -174
  88. package/lib/util/uischema.d.ts +5 -5
  89. package/lib/util/util.d.ts +31 -31
  90. package/lib/util/validator.d.ts +3 -3
  91. package/package.json +16 -13
  92. package/rollup.config.js +44 -0
  93. package/src/reducers/reducers.ts +2 -2
  94. package/src/util/cell.ts +4 -4
  95. package/src/util/renderer.ts +9 -8
  96. package/stats.html +3279 -0
  97. package/lib/Helpers.js +0 -33
  98. package/lib/Helpers.js.map +0 -1
  99. package/lib/actions/actions.js +0 -173
  100. package/lib/actions/actions.js.map +0 -1
  101. package/lib/actions/index.js +0 -29
  102. package/lib/actions/index.js.map +0 -1
  103. package/lib/configDefault.js +0 -48
  104. package/lib/configDefault.js.map +0 -1
  105. package/lib/generators/Generate.js +0 -35
  106. package/lib/generators/Generate.js.map +0 -1
  107. package/lib/generators/index.js +0 -31
  108. package/lib/generators/index.js.map +0 -1
  109. package/lib/generators/schema.js +0 -154
  110. package/lib/generators/schema.js.map +0 -1
  111. package/lib/generators/uischema.js +0 -169
  112. package/lib/generators/uischema.js.map +0 -1
  113. package/lib/i18n/i18nTypes.js +0 -3
  114. package/lib/i18n/i18nTypes.js.map +0 -1
  115. package/lib/i18n/i18nUtil.js +0 -71
  116. package/lib/i18n/i18nUtil.js.map +0 -1
  117. package/lib/i18n/index.js +0 -6
  118. package/lib/i18n/index.js.map +0 -1
  119. package/lib/index.js +0 -40
  120. package/lib/index.js.map +0 -1
  121. package/lib/jsonforms-core.js +0 -25
  122. package/lib/jsonforms-core.js.map +0 -1
  123. package/lib/models/draft4.js +0 -174
  124. package/lib/models/draft4.js.map +0 -1
  125. package/lib/models/index.js +0 -33
  126. package/lib/models/index.js.map +0 -1
  127. package/lib/models/jsonSchema.js +0 -27
  128. package/lib/models/jsonSchema.js.map +0 -1
  129. package/lib/models/jsonSchema4.js +0 -30
  130. package/lib/models/jsonSchema4.js.map +0 -1
  131. package/lib/models/jsonSchema7.js +0 -30
  132. package/lib/models/jsonSchema7.js.map +0 -1
  133. package/lib/models/uischema.js +0 -58
  134. package/lib/models/uischema.js.map +0 -1
  135. package/lib/reducers/cells.js +0 -42
  136. package/lib/reducers/cells.js.map +0 -1
  137. package/lib/reducers/config.js +0 -46
  138. package/lib/reducers/config.js.map +0 -1
  139. package/lib/reducers/core.js +0 -294
  140. package/lib/reducers/core.js.map +0 -1
  141. package/lib/reducers/default-data.js +0 -45
  142. package/lib/reducers/default-data.js.map +0 -1
  143. package/lib/reducers/i18n.js +0 -83
  144. package/lib/reducers/i18n.js.map +0 -1
  145. package/lib/reducers/index.js +0 -37
  146. package/lib/reducers/index.js.map +0 -1
  147. package/lib/reducers/reducers.js +0 -98
  148. package/lib/reducers/reducers.js.map +0 -1
  149. package/lib/reducers/renderers.js +0 -43
  150. package/lib/reducers/renderers.js.map +0 -1
  151. package/lib/reducers/selectors.js +0 -56
  152. package/lib/reducers/selectors.js.map +0 -1
  153. package/lib/reducers/uischemas.js +0 -60
  154. package/lib/reducers/uischemas.js.map +0 -1
  155. package/lib/store.js +0 -27
  156. package/lib/store.js.map +0 -1
  157. package/lib/testers/index.js +0 -29
  158. package/lib/testers/index.js.map +0 -1
  159. package/lib/testers/testers.js +0 -421
  160. package/lib/testers/testers.js.map +0 -1
  161. package/lib/util/Formatted.js +0 -27
  162. package/lib/util/Formatted.js.map +0 -1
  163. package/lib/util/array.js +0 -44
  164. package/lib/util/array.js.map +0 -1
  165. package/lib/util/cell.js +0 -148
  166. package/lib/util/cell.js.map +0 -1
  167. package/lib/util/combinators.js +0 -59
  168. package/lib/util/combinators.js.map +0 -1
  169. package/lib/util/ids.js +0 -54
  170. package/lib/util/ids.js.map +0 -1
  171. package/lib/util/index.js +0 -43
  172. package/lib/util/index.js.map +0 -1
  173. package/lib/util/label.js +0 -73
  174. package/lib/util/label.js.map +0 -1
  175. package/lib/util/path.js +0 -90
  176. package/lib/util/path.js.map +0 -1
  177. package/lib/util/renderer.js +0 -530
  178. package/lib/util/renderer.js.map +0 -1
  179. package/lib/util/resolvers.js +0 -169
  180. package/lib/util/resolvers.js.map +0 -1
  181. package/lib/util/runtime.js +0 -167
  182. package/lib/util/runtime.js.map +0 -1
  183. package/lib/util/schema.js +0 -42
  184. package/lib/util/schema.js.map +0 -1
  185. package/lib/util/type.js +0 -27
  186. package/lib/util/type.js.map +0 -1
  187. package/lib/util/uischema.js +0 -56
  188. package/lib/util/uischema.js.map +0 -1
  189. package/lib/util/util.js +0 -112
  190. package/lib/util/util.js.map +0 -1
  191. package/lib/util/validator.js +0 -37
  192. package/lib/util/validator.js.map +0 -1
  193. package/webpack.build.js +0 -13
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /*
3
- The MIT License
4
-
5
- Copyright (c) 2017-2019 EclipseSource Munich
6
- https://github.com/eclipsesource/jsonforms
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
- */
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.getUISchemas = exports.getCells = exports.getRenderers = exports.getDefaultData = exports.getAjv = exports.getUiSchema = exports.getSchema = exports.getData = void 0;
28
- var tslib_1 = require("tslib");
29
- var get_1 = tslib_1.__importDefault(require("lodash/get"));
30
- var core_1 = require("./core");
31
- var default_data_1 = require("./default-data");
32
- var getData = function (state) {
33
- return core_1.extractData(get_1.default(state, 'jsonforms.core'));
34
- };
35
- exports.getData = getData;
36
- var getSchema = function (state) {
37
- return core_1.extractSchema(get_1.default(state, 'jsonforms.core'));
38
- };
39
- exports.getSchema = getSchema;
40
- var getUiSchema = function (state) {
41
- return core_1.extractUiSchema(get_1.default(state, 'jsonforms.core'));
42
- };
43
- exports.getUiSchema = getUiSchema;
44
- var getAjv = function (state) { return core_1.extractAjv(get_1.default(state, 'jsonforms.core')); };
45
- exports.getAjv = getAjv;
46
- var getDefaultData = function (state) {
47
- return default_data_1.extractDefaultData(get_1.default(state, 'jsonforms.defaultData'));
48
- };
49
- exports.getDefaultData = getDefaultData;
50
- var getRenderers = function (state) { return get_1.default(state, 'jsonforms.renderers'); };
51
- exports.getRenderers = getRenderers;
52
- var getCells = function (state) { return get_1.default(state, 'jsonforms.cells'); };
53
- exports.getCells = getCells;
54
- var getUISchemas = function (state) { return get_1.default(state, 'jsonforms.uischemas'); };
55
- exports.getUISchemas = getUISchemas;
56
- //# s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,YAEoD;AAClE,IAAM,YAAY,GAAG,UAC1B,KAAqB,IACgB,OAAA,aAAG,CAAC,KAAK,EAAE,qBAAqB,CAAC,EAAjC,CAAiC,CAAA;AAF3D,QAAA,YAAY,gBAE+C"}
@@ -1,60 +0,0 @@
1
- "use strict";
2
- /*
3
- The MIT License
4
-
5
- Copyright (c) 2017-2019 EclipseSource Munich
6
- https://github.com/eclipsesource/jsonforms
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
- */
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.findMatchingUISchema = exports.uischemaRegistryReducer = void 0;
28
- var tslib_1 = require("tslib");
29
- var maxBy_1 = tslib_1.__importDefault(require("lodash/maxBy"));
30
- var remove_1 = tslib_1.__importDefault(require("lodash/remove"));
31
- var actions_1 = require("../actions");
32
- var testers_1 = require("../testers");
33
- var uischemaRegistryReducer = function (state, action) {
34
- if (state === void 0) { state = []; }
35
- switch (action.type) {
36
- case actions_1.ADD_UI_SCHEMA:
37
- return state
38
- .slice()
39
- .concat({ tester: action.tester, uischema: action.uischema });
40
- case actions_1.REMOVE_UI_SCHEMA:
41
- var copy = state.slice();
42
- remove_1.default(copy, function (entry) { return entry.tester === action.tester; });
43
- return copy;
44
- default:
45
- return state;
46
- }
47
- };
48
- exports.uischemaRegistryReducer = uischemaRegistryReducer;
49
- var findMatchingUISchema = function (state) { return function (jsonSchema, schemaPath, path) {
50
- var match = maxBy_1.default(state, function (entry) {
51
- return entry.tester(jsonSchema, schemaPath, path);
52
- });
53
- if (match !== undefined &&
54
- match.tester(jsonSchema, schemaPath, path) !== testers_1.NOT_APPLICABLE) {
55
- return match.uischema;
56
- }
57
- return undefined;
58
- }; };
59
- exports.findMatchingUISchema = findMatchingUISchema;
60
- //# sourceMappingURL=uischemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uischemas.js","sourceRoot":"","sources":["../../src/reducers/uischemas.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;;AAEF,+DAAiC;AACjC,iEAAmC;AACnC,sCAA8E;AAC9E,sCAA4C;AAerC,IAAM,uBAAuB,GAA+D,UACjG,KAAU,EACV,MAAM;IADN,sBAAA,EAAA,UAAU;IAGV,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,uBAAa;YAChB,OAAO,KAAK;iBACT,KAAK,EAAE;iBACP,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;QAClE,KAAK,0BAAgB;YACnB,IAAM,IAAI,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC;YAC3B,gBAAM,CAAC,IAAI,EAAE,UAAA,KAAK,IAAI,OAAA,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,EAA9B,CAA8B,CAAC,CAAC;YACtD,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC,CAAC;AAhBW,QAAA,uBAAuB,2BAgBlC;AAEK,IAAM,oBAAoB,GAAG,UAClC,KAAuC,IACpC,OAAA,UACH,UAAsB,EACtB,UAAkB,EAClB,IAAY;IAEZ,IAAM,KAAK,GAAG,eAAK,CAAC,KAAK,EAAE,UAAA,KAAK;QAC9B,OAAA,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC;IAA1C,CAA0C,CAC3C,CAAC;IACF,IACE,KAAK,KAAK,SAAS;QACnB,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,wBAAc,EAC7D;QACA,OAAO,KAAK,CAAC,QAAQ,CAAC;KACvB;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,EAfI,CAeJ,CAAC;AAjBW,QAAA,oBAAoB,wBAiB/B"}
package/lib/store.js DELETED
@@ -1,27 +0,0 @@
1
- "use strict";
2
- /*
3
- The MIT License
4
-
5
- Copyright (c) 2017-2019 EclipseSource Munich
6
- https://github.com/eclipsesource/jsonforms
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
- */
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- //# sourceMappingURL=store.js.map
package/lib/store.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- /*
3
- The MIT License
4
-
5
- Copyright (c) 2017-2019 EclipseSource Munich
6
- https://github.com/eclipsesource/jsonforms
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
- */
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- var tslib_1 = require("tslib");
28
- tslib_1.__exportStar(require("./testers"), exports);
29
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testers/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEF,oDAA0B"}
@@ -1,421 +0,0 @@
1
- "use strict";
2
- /*
3
- The MIT License
4
-
5
- Copyright (c) 2017-2019 EclipseSource Munich
6
- https://github.com/eclipsesource/jsonforms
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
- */
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.not = exports.categorizationHasCategory = exports.hasCategory = exports.isCategory = exports.isCategorization = exports.isNumberFormatControl = exports.isRangeControl = exports.isPrimitiveArrayControl = exports.isArrayObjectControl = exports.isObjectArrayWithNesting = exports.isObjectArrayControl = exports.isObjectArray = exports.isDateTimeControl = exports.isTimeControl = exports.isDateControl = exports.isMultiLineControl = exports.isStringControl = exports.isNumberControl = exports.isIntegerControl = exports.isOneOfEnumControl = exports.isEnumControl = exports.isOneOfControl = exports.isAnyOfControl = exports.isAllOfControl = exports.isObjectControl = exports.isBooleanControl = exports.withIncreasedRank = exports.rankWith = exports.or = exports.and = exports.scopeEndIs = exports.scopeEndsWith = exports.optionIs = exports.uiTypeIs = exports.formatIs = exports.schemaTypeIs = exports.schemaSubPathMatches = exports.schemaMatches = exports.isControl = exports.NOT_APPLICABLE = void 0;
28
- var tslib_1 = require("tslib");
29
- var isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
30
- var get_1 = tslib_1.__importDefault(require("lodash/get"));
31
- var endsWith_1 = tslib_1.__importDefault(require("lodash/endsWith"));
32
- var last_1 = tslib_1.__importDefault(require("lodash/last"));
33
- var isArray_1 = tslib_1.__importDefault(require("lodash/isArray"));
34
- var reduce_1 = tslib_1.__importDefault(require("lodash/reduce"));
35
- var toPairs_1 = tslib_1.__importDefault(require("lodash/toPairs"));
36
- var includes_1 = tslib_1.__importDefault(require("lodash/includes"));
37
- var util_1 = require("../util");
38
- /**
39
- * Constant that indicates that a tester is not capable of handling
40
- * a combination of schema/data.
41
- * @type {number}
42
- */
43
- exports.NOT_APPLICABLE = -1;
44
- var isControl = function (uischema) {
45
- return !isEmpty_1.default(uischema) && uischema.scope !== undefined;
46
- };
47
- exports.isControl = isControl;
48
- /**
49
- * Only applicable for Controls.
50
- *
51
- * This function checks whether the given UI schema is of type Control
52
- * and if so, resolves the sub-schema referenced by the control and applies
53
- * the given predicate
54
- *
55
- * @param {(JsonSchema) => boolean} predicate the predicate that should be
56
- * applied to the resolved sub-schema
57
- */
58
- var schemaMatches = function (predicate) { return function (uischema, schema) {
59
- if (isEmpty_1.default(uischema) || !exports.isControl(uischema)) {
60
- return false;
61
- }
62
- if (isEmpty_1.default(schema)) {
63
- return false;
64
- }
65
- var schemaPath = uischema.scope;
66
- if (isEmpty_1.default(schemaPath)) {
67
- return false;
68
- }
69
- var currentDataSchema = schema;
70
- if (util_1.hasType(schema, 'object')) {
71
- currentDataSchema = util_1.resolveSchema(schema, schemaPath);
72
- }
73
- if (currentDataSchema === undefined) {
74
- return false;
75
- }
76
- return predicate(currentDataSchema);
77
- }; };
78
- exports.schemaMatches = schemaMatches;
79
- var schemaSubPathMatches = function (subPath, predicate) { return function (uischema, schema) {
80
- if (isEmpty_1.default(uischema) || !exports.isControl(uischema)) {
81
- return false;
82
- }
83
- var schemaPath = uischema.scope;
84
- var currentDataSchema = schema;
85
- if (util_1.hasType(schema, 'object')) {
86
- currentDataSchema = util_1.resolveSchema(schema, schemaPath);
87
- }
88
- currentDataSchema = get_1.default(currentDataSchema, subPath);
89
- if (currentDataSchema === undefined) {
90
- return false;
91
- }
92
- return predicate(currentDataSchema);
93
- }; };
94
- exports.schemaSubPathMatches = schemaSubPathMatches;
95
- /**
96
- * Only applicable for Controls.
97
- *
98
- * This function checks whether the given UI schema is of type Control
99
- * and if so, resolves the sub-schema referenced by the control and checks
100
- * whether the type of the sub-schema matches the expected one.
101
- *
102
- * @param {string} expectedType the expected type of the resolved sub-schema
103
- */
104
- var schemaTypeIs = function (expectedType) {
105
- return exports.schemaMatches(function (schema) { return !isEmpty_1.default(schema) && util_1.hasType(schema, expectedType); });
106
- };
107
- exports.schemaTypeIs = schemaTypeIs;
108
- /**
109
- * Only applicable for Controls.
110
- *
111
- * This function checks whether the given UI schema is of type Control
112
- * and if so, resolves the sub-schema referenced by the control and checks
113
- * whether the format of the sub-schema matches the expected one.
114
- *
115
- * @param {string} expectedFormat the expected format of the resolved sub-schema
116
- */
117
- var formatIs = function (expectedFormat) {
118
- return exports.schemaMatches(function (schema) {
119
- return !isEmpty_1.default(schema) &&
120
- schema.format === expectedFormat &&
121
- schema.type === 'string';
122
- });
123
- };
124
- exports.formatIs = formatIs;
125
- /**
126
- * Checks whether the given UI schema has the expected type.
127
- *
128
- * @param {string} expected the expected UI schema type
129
- */
130
- var uiTypeIs = function (expected) { return function (uischema) { return !isEmpty_1.default(uischema) && uischema.type === expected; }; };
131
- exports.uiTypeIs = uiTypeIs;
132
- /**
133
- * Checks whether the given UI schema has an option with the given
134
- * name and whether it has the expected value. If no options property
135
- * is set, returns false.
136
- *
137
- * @param {string} optionName the name of the option to check
138
- * @param {any} optionValue the expected value of the option
139
- */
140
- var optionIs = function (optionName, optionValue) { return function (uischema) {
141
- if (isEmpty_1.default(uischema)) {
142
- return false;
143
- }
144
- var options = uischema.options;
145
- return !isEmpty_1.default(options) && options[optionName] === optionValue;
146
- }; };
147
- exports.optionIs = optionIs;
148
- /**
149
- * Only applicable for Controls.
150
- *
151
- * Checks whether the scope of a control ends with the expected string.
152
- *
153
- * @param {string} expected the expected ending of the reference
154
- */
155
- var scopeEndsWith = function (expected) { return function (uischema) {
156
- if (isEmpty_1.default(expected) || !exports.isControl(uischema)) {
157
- return false;
158
- }
159
- return endsWith_1.default(uischema.scope, expected);
160
- }; };
161
- exports.scopeEndsWith = scopeEndsWith;
162
- /**
163
- * Only applicable for Controls.
164
- *
165
- * Checks whether the last segment of the scope matches the expected string.
166
- *
167
- * @param {string} expected the expected ending of the reference
168
- */
169
- var scopeEndIs = function (expected) { return function (uischema) {
170
- if (isEmpty_1.default(expected) || !exports.isControl(uischema)) {
171
- return false;
172
- }
173
- var schemaPath = uischema.scope;
174
- return !isEmpty_1.default(schemaPath) && last_1.default(schemaPath.split('/')) === expected;
175
- }; };
176
- exports.scopeEndIs = scopeEndIs;
177
- /**
178
- * A tester that allow composing other testers by && them.
179
- *
180
- * @param {Array<Tester>} testers the testers to be composed
181
- */
182
- var and = function () {
183
- var testers = [];
184
- for (var _i = 0; _i < arguments.length; _i++) {
185
- testers[_i] = arguments[_i];
186
- }
187
- return function (uischema, schema) { return testers.reduce(function (acc, tester) { return acc && tester(uischema, schema); }, true); };
188
- };
189
- exports.and = and;
190
- /**
191
- * A tester that allow composing other testers by || them.
192
- *
193
- * @param {Array<Tester>} testers the testers to be composed
194
- */
195
- var or = function () {
196
- var testers = [];
197
- for (var _i = 0; _i < arguments.length; _i++) {
198
- testers[_i] = arguments[_i];
199
- }
200
- return function (uischema, schema) { return testers.reduce(function (acc, tester) { return acc || tester(uischema, schema); }, false); };
201
- };
202
- exports.or = or;
203
- /**
204
- * Create a ranked tester that will associate a number with a given tester, if the
205
- * latter returns true.
206
- *
207
- * @param {number} rank the rank to be returned in case the tester returns true
208
- * @param {Tester} tester a tester
209
- */
210
- var rankWith = function (rank, tester) { return function (uischema, schema) {
211
- if (tester(uischema, schema)) {
212
- return rank;
213
- }
214
- return exports.NOT_APPLICABLE;
215
- }; };
216
- exports.rankWith = rankWith;
217
- var withIncreasedRank = function (by, rankedTester) { return function (uischema, schema) {
218
- var rank = rankedTester(uischema, schema);
219
- if (rank === exports.NOT_APPLICABLE) {
220
- return exports.NOT_APPLICABLE;
221
- }
222
- return rank + by;
223
- }; };
224
- exports.withIncreasedRank = withIncreasedRank;
225
- /**
226
- * Default tester for boolean.
227
- * @type {RankedTester}
228
- */
229
- exports.isBooleanControl = exports.and(exports.uiTypeIs('Control'), exports.schemaTypeIs('boolean'));
230
- // TODO: rather check for properties property
231
- exports.isObjectControl = exports.and(exports.uiTypeIs('Control'), exports.schemaTypeIs('object'));
232
- exports.isAllOfControl = exports.and(exports.uiTypeIs('Control'), exports.schemaMatches(function (schema) { return schema.hasOwnProperty('allOf'); }));
233
- exports.isAnyOfControl = exports.and(exports.uiTypeIs('Control'), exports.schemaMatches(function (schema) { return schema.hasOwnProperty('anyOf'); }));
234
- exports.isOneOfControl = exports.and(exports.uiTypeIs('Control'), exports.schemaMatches(function (schema) { return schema.hasOwnProperty('oneOf'); }));
235
- /**
236
- * Tests whether the given UI schema is of type Control and if the schema
237
- * has an enum.
238
- * @type {Tester}
239
- */
240
- exports.isEnumControl = exports.and(exports.uiTypeIs('Control'), exports.or(exports.schemaMatches(function (schema) { return schema.hasOwnProperty('enum'); }), exports.schemaMatches(function (schema) { return schema.hasOwnProperty('const'); })));
241
- /**
242
- * Tests whether the given UI schema is of type Control and if the schema
243
- * has an enum based on oneOf.
244
- * @type {Tester}
245
- */
246
- exports.isOneOfEnumControl = exports.and(exports.uiTypeIs('Control'), exports.schemaMatches(function (schema) {
247
- return schema.hasOwnProperty('oneOf') &&
248
- schema.oneOf.every(function (s) { return s.const !== undefined; });
249
- }));
250
- /**
251
- * Tests whether the given UI schema is of type Control and if the schema
252
- * is of type integer
253
- * @type {Tester}
254
- */
255
- exports.isIntegerControl = exports.and(exports.uiTypeIs('Control'), exports.schemaTypeIs('integer'));
256
- /**
257
- * Tests whether the given UI schema is of type Control and if the schema
258
- * is of type number
259
- * @type {Tester}
260
- */
261
- exports.isNumberControl = exports.and(exports.uiTypeIs('Control'), exports.schemaTypeIs('number'));
262
- /**
263
- * Tests whether the given UI schema is of type Control and if the schema
264
- * is of type string
265
- * @type {Tester}
266
- */
267
- exports.isStringControl = exports.and(exports.uiTypeIs('Control'), exports.schemaTypeIs('string'));
268
- /**
269
- * Tests whether the given UI schema is of type Control and if is has
270
- * a 'multi' option.
271
- * @type {Tester}
272
- */
273
- exports.isMultiLineControl = exports.and(exports.uiTypeIs('Control'), exports.optionIs('multi', true));
274
- /**
275
- * Tests whether the given UI schema is of type Control and whether the schema
276
- * or uischema options has a 'date' format.
277
- * @type {Tester}
278
- */
279
- exports.isDateControl = exports.and(exports.uiTypeIs('Control'), exports.or(exports.formatIs('date'), exports.optionIs('format', 'date')));
280
- /**
281
- * Tests whether the given UI schema is of type Control and whether the schema
282
- * or the uischema options has a 'time' format.
283
- * @type {Tester}
284
- */
285
- exports.isTimeControl = exports.and(exports.uiTypeIs('Control'), exports.or(exports.formatIs('time'), exports.optionIs('format', 'time')));
286
- /**
287
- * Tests whether the given UI schema is of type Control and whether the schema
288
- * or the uischema options has a 'date-time' format.
289
- * @type {Tester}
290
- */
291
- exports.isDateTimeControl = exports.and(exports.uiTypeIs('Control'), exports.or(exports.formatIs('date-time'), exports.optionIs('format', 'date-time')));
292
- /**
293
- * Tests whether the given schema is an array of objects.
294
- * @type {Tester}
295
- */
296
- exports.isObjectArray = exports.and(exports.schemaMatches(function (schema) { return util_1.hasType(schema, 'array') && !Array.isArray(schema.items); } // we don't care about tuples
297
- ), exports.schemaSubPathMatches('items', function (schema) { return util_1.hasType(schema, 'object'); }));
298
- /**
299
- * Tests whether the given UI schema is of type Control and if the schema
300
- * is an array of objects.
301
- * @type {Tester}
302
- */
303
- exports.isObjectArrayControl = exports.and(exports.uiTypeIs('Control'), exports.isObjectArray);
304
- var traverse = function (any, pred) {
305
- if (isArray_1.default(any)) {
306
- return reduce_1.default(any, function (acc, el) { return acc || traverse(el, pred); }, false);
307
- }
308
- if (pred(any)) {
309
- return true;
310
- }
311
- if (any.items) {
312
- return traverse(any.items, pred);
313
- }
314
- if (any.properties) {
315
- return reduce_1.default(toPairs_1.default(any.properties), function (acc, _a) {
316
- var _key = _a[0], val = _a[1];
317
- return acc || traverse(val, pred);
318
- }, false);
319
- }
320
- return false;
321
- };
322
- var isObjectArrayWithNesting = function (uischema, schema) {
323
- if (!exports.uiTypeIs('Control')(uischema, schema)) {
324
- return false;
325
- }
326
- var schemaPath = uischema.scope;
327
- var resolvedSchema = util_1.resolveSchema(schema, schemaPath);
328
- var wantedNestingByType = {
329
- object: 2,
330
- array: 1
331
- };
332
- if (resolvedSchema !== undefined && resolvedSchema.items !== undefined) {
333
- // check if nested arrays
334
- if (traverse(resolvedSchema.items, function (val) {
335
- if (val === schema) {
336
- return false;
337
- }
338
- // we don't support multiple types
339
- if (typeof val.type !== 'string') {
340
- return true;
341
- }
342
- var typeCount = wantedNestingByType[val.type];
343
- if (typeCount === undefined) {
344
- return false;
345
- }
346
- wantedNestingByType[val.type] = typeCount - 1;
347
- return wantedNestingByType[val.type] === 0;
348
- })) {
349
- return true;
350
- }
351
- // check if uischema options detail is set
352
- if (uischema.options && uischema.options.detail) {
353
- if (typeof uischema.options.detail === 'string') {
354
- return uischema.options.detail.toUpperCase() !== 'DEFAULT';
355
- }
356
- else if (typeof uischema.options.detail === 'object' &&
357
- uischema.options.detail.type) {
358
- return true;
359
- }
360
- }
361
- }
362
- return false;
363
- };
364
- exports.isObjectArrayWithNesting = isObjectArrayWithNesting;
365
- /**
366
- * Synonym for isObjectArrayControl
367
- */
368
- exports.isArrayObjectControl = exports.isObjectArrayControl;
369
- /**
370
- * Tests whether the given UI schema is of type Control and if the schema
371
- * is an array of a primitive type.
372
- * @type {Tester}
373
- */
374
- exports.isPrimitiveArrayControl = exports.and(exports.uiTypeIs('Control'), exports.schemaMatches(function (schema) { return util_1.deriveTypes(schema).length !== 0 && !Array.isArray(schema.items); } // we don't care about tuples
375
- ), exports.schemaSubPathMatches('items', function (schema) {
376
- var types = util_1.deriveTypes(schema);
377
- return (types.length === 1 &&
378
- includes_1.default(['integer', 'number', 'boolean', 'string'], types[0]));
379
- }));
380
- /**
381
- * Tests whether a given UI schema is of type Control,
382
- * if the schema is of type number or integer and
383
- * whether the schema defines a numerical range with a default value.
384
- * @type {Tester}
385
- */
386
- exports.isRangeControl = exports.and(exports.uiTypeIs('Control'), exports.or(exports.schemaTypeIs('number'), exports.schemaTypeIs('integer')), exports.schemaMatches(function (schema) {
387
- return schema.hasOwnProperty('maximum') &&
388
- schema.hasOwnProperty('minimum') &&
389
- schema.hasOwnProperty('default');
390
- }), exports.optionIs('slider', true));
391
- /**
392
- * Tests whether the given UI schema is of type Control, if the schema
393
- * is of type string and has option format
394
- * @type {Tester}
395
- */
396
- exports.isNumberFormatControl = exports.and(exports.uiTypeIs('Control'), exports.schemaTypeIs('integer'), exports.optionIs('format', true));
397
- var isCategorization = function (category) { return category.type === 'Categorization'; };
398
- exports.isCategorization = isCategorization;
399
- var isCategory = function (uischema) {
400
- return uischema.type === 'Category';
401
- };
402
- exports.isCategory = isCategory;
403
- var hasCategory = function (categorization) {
404
- if (isEmpty_1.default(categorization.elements)) {
405
- return false;
406
- }
407
- // all children of the categorization have to be categories
408
- return categorization.elements
409
- .map(function (elem) {
410
- return exports.isCategorization(elem) ? exports.hasCategory(elem) : exports.isCategory(elem);
411
- })
412
- .reduce(function (prev, curr) { return prev && curr; }, true);
413
- };
414
- exports.hasCategory = hasCategory;
415
- var categorizationHasCategory = function (uischema) {
416
- return exports.hasCategory(uischema);
417
- };
418
- exports.categorizationHasCategory = categorizationHasCategory;
419
- var not = function (tester) { return function (uischema, schema) { return !tester(uischema, schema); }; };
420
- exports.not = not;
421
- //# sourceMappingURL=testers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testers.js","sourceRoot":"","sources":["../../src/testers/testers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;;AAEF,mEAAqC;AACrC,2DAA6B;AAC7B,qEAAuC;AACvC,6DAA+B;AAC/B,mEAAqC;AACrC,iEAAmC;AACnC,mEAAqC;AACrC,qEAAuC;AAOvC,gCAA8D;AAE9D;;;;GAIG;AACU,QAAA,cAAc,GAAG,CAAC,CAAC,CAAC;AAc1B,IAAM,SAAS,GAAG,UAAC,QAAa;IACrC,OAAA,CAAC,iBAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS;AAAlD,CAAkD,CAAC;AADxC,QAAA,SAAS,aAC+B;AAErD;;;;;;;;;GASG;AACI,IAAM,aAAa,GAAG,UAC3B,SAA0C,IAC/B,OAAA,UAAC,QAAyB,EAAE,MAAkB;IACzD,IAAI,iBAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAS,CAAC,QAAQ,CAAC,EAAE;QAC7C,OAAO,KAAK,CAAC;KACd;IACD,IAAI,iBAAO,CAAC,MAAM,CAAC,EAAE;QACnB,OAAO,KAAK,CAAC;KACd;IACD,IAAM,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC;IAClC,IAAI,iBAAO,CAAC,UAAU,CAAC,EAAE;QACvB,OAAO,KAAK,CAAC;KACd;IACD,IAAI,iBAAiB,GAAG,MAAM,CAAC;IAC/B,IAAI,cAAO,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE;QAC7B,iBAAiB,GAAG,oBAAa,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;KACvD;IACD,IAAI,iBAAiB,KAAK,SAAS,EAAE;QACnC,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BAAW,CAAC,QAA0B,CAAC;AAAvC,CAAuC,CAAC;AAD7B,QAAA,yBAAyB,6BACI;AAEnC,IAAM,GAAG,GAAG,UAAC,MAAc,IAAa,OAAA,UAC7C,QAAyB,EACzB,MAAkB,IACf,OAAA,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAzB,CAAyB,EAHiB,CAGjB,CAAC;AAHlB,QAAA,GAAG,OAGe"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- /*
3
- The MIT License
4
-
5
- Copyright (c) 2017-2019 EclipseSource Munich
6
- https://github.com/eclipsesource/jsonforms
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
- */
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- //# sourceMappingURL=Formatted.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Formatted.js","sourceRoot":"","sources":["../../src/util/Formatted.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE"}