@jsonforms/core 2.5.2-alpha.0 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/assets/js/search.json +1 -1
- package/docs/enums/ruleeffect.html +4 -4
- package/docs/globals.html +1061 -1120
- package/docs/index.html +64 -91
- package/docs/interfaces/addcellrendereraction.html +3 -3
- package/docs/interfaces/addrendereraction.html +3 -3
- package/docs/interfaces/adduischemaaction.html +3 -3
- package/docs/interfaces/andcondition.html +2 -2
- package/docs/interfaces/arraycontrolprops.html +22 -22
- package/docs/interfaces/arraylayoutprops.html +22 -22
- package/docs/interfaces/categorization.html +5 -5
- package/docs/interfaces/category.html +5 -5
- package/docs/interfaces/cellprops.html +14 -14
- package/docs/interfaces/combinatorrendererprops.html +13 -13
- package/docs/interfaces/combinatorsubschemarenderinfo.html +3 -3
- package/docs/interfaces/composablecondition.html +2 -2
- package/docs/interfaces/condition.html +1 -1
- package/docs/interfaces/controlelement.html +5 -5
- package/docs/interfaces/controlprops.html +17 -17
- package/docs/interfaces/controlstate.html +2 -2
- package/docs/interfaces/controlwithdetailprops.html +18 -18
- package/docs/interfaces/dispatchcellprops.html +13 -13
- package/docs/interfaces/dispatchcellstateprops.html +13 -13
- package/docs/interfaces/dispatchpropsofarraycontrol.html +4 -4
- package/docs/interfaces/dispatchpropsofcontrol.html +1 -1
- package/docs/interfaces/dispatchpropsofmultienumcontrol.html +2 -2
- package/docs/interfaces/enumcellprops.html +15 -15
- package/docs/interfaces/enumoption.html +2 -2
- package/docs/interfaces/formatted.html +2 -2
- package/docs/interfaces/grouplayout.html +5 -5
- package/docs/interfaces/horizontallayout.html +4 -4
- package/docs/interfaces/initaction.html +6 -6
- package/docs/interfaces/initactionoptions.html +3 -17
- package/docs/interfaces/jsonformscellrendererregistryentry.html +2 -2
- package/docs/interfaces/jsonformscore.html +7 -21
- package/docs/interfaces/jsonformsdefaultdataregistryentry.html +2 -2
- package/docs/interfaces/jsonformsextendedstate.html +1 -1
- package/docs/interfaces/{jsonformslocalestate.html → jsonformsi18nstate.html} +20 -20
- package/docs/interfaces/jsonformsprops.html +9 -24
- package/docs/interfaces/jsonformsrendererregistryentry.html +2 -2
- package/docs/interfaces/jsonformsstate.html +1 -1
- package/docs/interfaces/jsonformsstore.html +5 -5
- package/docs/interfaces/jsonformssubstates.html +18 -8
- package/docs/interfaces/jsonformsuischemaregistryentry.html +2 -2
- package/docs/interfaces/labeldescription.html +2 -2
- package/docs/interfaces/labelelement.html +4 -4
- package/docs/interfaces/layout.html +4 -4
- package/docs/interfaces/layoutprops.html +10 -10
- package/docs/interfaces/leafcondition.html +3 -3
- package/docs/interfaces/orcondition.html +2 -2
- package/docs/interfaces/ownpropsofcell.html +10 -10
- package/docs/interfaces/ownpropsofcontrol.html +9 -9
- package/docs/interfaces/ownpropsofenum.html +1 -1
- package/docs/interfaces/ownpropsofenumcell.html +11 -11
- package/docs/interfaces/ownpropsofjsonformsrenderer.html +8 -8
- package/docs/interfaces/ownpropsoflayout.html +9 -9
- package/docs/interfaces/ownpropsofmasterlistitem.html +6 -6
- package/docs/interfaces/ownpropsofrenderer.html +8 -8
- package/docs/interfaces/registerdefaultdataaction.html +3 -3
- package/docs/interfaces/removecellrendereraction.html +3 -3
- package/docs/interfaces/removerendereraction.html +3 -3
- package/docs/interfaces/removeuischemaaction.html +2 -2
- package/docs/interfaces/rendererprops.html +9 -9
- package/docs/interfaces/rule.html +2 -2
- package/docs/interfaces/schemabasedcondition.html +3 -3
- package/docs/interfaces/scopable.html +1 -1
- package/docs/interfaces/setajvaction.html +3 -3
- package/docs/interfaces/setconfigaction.html +2 -2
- package/docs/interfaces/setlocaleaction.html +3 -3
- package/docs/interfaces/setschemaaction.html +2 -2
- package/docs/interfaces/{setlocalizeduischemasaction.html → settranslatoraction.html} +29 -15
- package/docs/interfaces/setuischemaaction.html +2 -2
- package/docs/interfaces/setvalidationmodeaction.html +2 -2
- package/docs/interfaces/statepropsofarraycontrol.html +18 -18
- package/docs/interfaces/statepropsofarraylayout.html +18 -18
- package/docs/interfaces/statepropsofcell.html +13 -13
- package/docs/interfaces/statepropsofcombinator.html +12 -12
- package/docs/interfaces/statepropsofcontrol.html +16 -16
- package/docs/interfaces/statepropsofcontrolwithdetail.html +17 -17
- package/docs/interfaces/statepropsofenumcell.html +14 -14
- package/docs/interfaces/statepropsofjsonformsrenderer.html +9 -23
- package/docs/interfaces/statepropsoflayout.html +10 -10
- package/docs/interfaces/statepropsofmasteritem.html +7 -7
- package/docs/interfaces/statepropsofrenderer.html +9 -9
- package/docs/interfaces/statepropsofscopedrenderer.html +12 -12
- package/docs/interfaces/uischemaelement.html +3 -3
- package/docs/interfaces/unregisterdefaultdataaction.html +2 -2
- package/docs/interfaces/updateaction.html +3 -3
- package/docs/interfaces/updatecoreaction.html +6 -6
- package/docs/interfaces/updateerrorsaction.html +2 -2
- package/docs/interfaces/{setlocalizedschemasaction.html → updatei18naction.html} +43 -15
- package/docs/interfaces/verticallayout.html +4 -4
- package/docs/interfaces/withclassname.html +1 -1
- package/lib/Helpers.d.ts +5 -0
- package/lib/Helpers.js +33 -0
- package/lib/Helpers.js.map +1 -0
- package/lib/actions/actions.d.ts +181 -0
- package/lib/actions/actions.js +173 -0
- package/lib/actions/actions.js.map +1 -0
- package/lib/actions/index.d.ts +1 -180
- package/lib/actions/index.js +26 -122
- package/lib/actions/index.js.map +1 -1
- package/lib/configDefault.js +2 -1
- package/lib/configDefault.js.map +1 -1
- package/lib/generators/Generate.d.ts +6 -0
- package/lib/generators/Generate.js +35 -0
- package/lib/generators/Generate.js.map +1 -0
- package/lib/generators/index.d.ts +3 -10
- package/lib/generators/index.js +28 -9
- package/lib/generators/index.js.map +1 -1
- package/lib/generators/schema.d.ts +1 -1
- package/lib/generators/schema.js +3 -1
- package/lib/generators/schema.js.map +1 -1
- package/lib/generators/uischema.d.ts +1 -2
- package/lib/generators/uischema.js +12 -10
- package/lib/generators/uischema.js.map +1 -1
- package/lib/i18n/i18nTypes.d.ts +15 -0
- package/lib/i18n/i18nTypes.js +3 -0
- package/lib/i18n/i18nTypes.js.map +1 -0
- package/lib/i18n/i18nUtil.d.ts +11 -0
- package/lib/i18n/i18nUtil.js +58 -0
- package/lib/i18n/i18nUtil.js.map +1 -0
- package/lib/i18n/index.d.ts +2 -0
- package/lib/i18n/index.js +6 -0
- package/lib/i18n/index.js.map +1 -0
- package/lib/index.d.ts +6 -18
- package/lib/index.js +10 -15
- package/lib/index.js.map +1 -1
- package/lib/jsonforms-core.js +9 -12
- package/lib/jsonforms-core.js.map +1 -1
- package/lib/models/draft4.js +2 -1
- package/lib/models/draft4.js.map +1 -1
- package/lib/models/index.d.ts +5 -0
- package/lib/models/index.js +33 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/jsonSchema.js +24 -0
- package/lib/models/jsonSchema.js.map +1 -1
- package/lib/models/uischema.js +29 -2
- package/lib/models/uischema.js.map +1 -1
- package/lib/reducers/cells.d.ts +1 -1
- package/lib/reducers/cells.js +27 -1
- package/lib/reducers/cells.js.map +1 -1
- package/lib/reducers/config.d.ts +1 -1
- package/lib/reducers/config.js +5 -3
- package/lib/reducers/config.js.map +1 -1
- package/lib/reducers/core.d.ts +5 -7
- package/lib/reducers/core.js +78 -63
- package/lib/reducers/core.js.map +1 -1
- package/lib/reducers/default-data.d.ts +1 -1
- package/lib/reducers/default-data.js +6 -3
- package/lib/reducers/default-data.js.map +1 -1
- package/lib/reducers/i18n.d.ts +8 -11
- package/lib/reducers/i18n.js +40 -23
- package/lib/reducers/i18n.js.map +1 -1
- package/lib/reducers/index.d.ts +9 -49
- package/lib/reducers/index.js +33 -91
- package/lib/reducers/index.js.map +1 -1
- package/lib/reducers/reducers.d.ts +37 -0
- package/lib/reducers/reducers.js +107 -0
- package/lib/reducers/reducers.js.map +1 -0
- package/lib/reducers/renderers.d.ts +1 -1
- package/lib/reducers/renderers.js +27 -1
- package/lib/reducers/renderers.js.map +1 -1
- package/lib/reducers/selectors.d.ts +15 -0
- package/lib/reducers/selectors.js +56 -0
- package/lib/reducers/selectors.js.map +1 -0
- package/lib/reducers/uischemas.d.ts +2 -2
- package/lib/reducers/uischemas.js +9 -6
- package/lib/reducers/uischemas.js.map +1 -1
- package/lib/store.d.ts +5 -8
- package/lib/store.js +24 -0
- package/lib/store.js.map +1 -1
- package/lib/testers/index.d.ts +1 -204
- package/lib/testers/index.js +3 -376
- package/lib/testers/index.js.map +1 -1
- package/lib/testers/testers.d.ts +203 -0
- package/lib/testers/testers.js +421 -0
- package/lib/testers/testers.js.map +1 -0
- package/lib/util/Formatted.js +24 -0
- package/lib/util/Formatted.js.map +1 -1
- package/lib/util/array.js +25 -0
- package/lib/util/array.js.map +1 -1
- package/lib/util/cell.d.ts +11 -4
- package/lib/util/cell.js +61 -17
- package/lib/util/cell.js.map +1 -1
- package/lib/util/combinators.d.ts +2 -3
- package/lib/util/combinators.js +5 -2
- package/lib/util/combinators.js.map +1 -1
- package/lib/util/ids.js +8 -4
- package/lib/util/ids.js.map +1 -1
- package/lib/util/index.d.ts +11 -45
- package/lib/util/index.js +14 -104
- package/lib/util/index.js.map +1 -1
- package/lib/util/label.d.ts +1 -2
- package/lib/util/label.js +7 -4
- package/lib/util/label.js.map +1 -1
- package/lib/util/path.d.ts +2 -1
- package/lib/util/path.js +12 -6
- package/lib/util/path.js.map +1 -1
- package/lib/util/renderer.d.ts +17 -17
- package/lib/util/renderer.js +163 -76
- package/lib/util/renderer.js.map +1 -1
- package/lib/util/resolvers.d.ts +1 -14
- package/lib/util/resolvers.js +9 -215
- package/lib/util/resolvers.js.map +1 -1
- package/lib/util/runtime.d.ts +12 -2
- package/lib/util/runtime.js +59 -17
- package/lib/util/runtime.js.map +1 -1
- package/lib/util/schema.js +27 -1
- package/lib/util/schema.js.map +1 -1
- package/lib/util/uischema.d.ts +1 -1
- package/lib/util/uischema.js +11 -7
- package/lib/util/uischema.js.map +1 -1
- package/lib/util/util.d.ts +31 -0
- package/lib/util/util.js +112 -0
- package/lib/util/util.js.map +1 -0
- package/lib/util/validator.d.ts +3 -2
- package/lib/util/validator.js +6 -5
- package/lib/util/validator.js.map +1 -1
- package/package.json +7 -9
- package/src/Helpers.ts +38 -0
- package/src/actions/actions.ts +345 -0
- package/src/actions/index.ts +1 -312
- package/src/configDefault.ts +1 -0
- package/src/generators/Generate.ts +43 -0
- package/src/generators/index.ts +3 -21
- package/src/generators/schema.ts +1 -1
- package/src/generators/uischema.ts +4 -4
- package/src/i18n/i18nTypes.ts +17 -0
- package/src/i18n/i18nUtil.ts +76 -0
- package/src/i18n/index.ts +2 -0
- package/src/index.ts +7 -31
- package/src/models/draft4.ts +1 -0
- package/src/models/index.ts +30 -0
- package/src/models/jsonSchema.ts +1 -0
- package/src/models/uischema.ts +1 -0
- package/src/reducers/cells.ts +2 -1
- package/src/reducers/config.ts +2 -1
- package/src/reducers/core.ts +74 -81
- package/src/reducers/default-data.ts +2 -1
- package/src/reducers/i18n.ts +42 -35
- package/src/reducers/index.ts +9 -158
- package/src/reducers/reducers.ts +148 -0
- package/src/reducers/renderers.ts +2 -1
- package/src/reducers/selectors.ts +65 -0
- package/src/reducers/uischemas.ts +4 -2
- package/src/store.ts +11 -8
- package/src/testers/index.ts +1 -516
- package/src/testers/testers.ts +547 -0
- package/src/util/Formatted.ts +1 -0
- package/src/util/array.ts +25 -0
- package/src/util/cell.ts +91 -19
- package/src/util/combinators.ts +2 -4
- package/src/util/ids.ts +1 -0
- package/src/util/index.ts +11 -126
- package/src/util/label.ts +2 -2
- package/src/util/path.ts +4 -1
- package/src/util/renderer.ts +168 -85
- package/src/util/resolvers.ts +2 -261
- package/src/util/runtime.ts +46 -2
- package/src/util/schema.ts +26 -1
- package/src/util/uischema.ts +2 -1
- package/src/util/util.ts +127 -0
- package/src/util/validator.ts +5 -8
- package/test/reducers/core.test.ts +31 -223
- package/test/util/cell.test.ts +33 -2
- package/test/util/renderer.test.ts +483 -3
- package/test/util/resolvers.test.ts +1 -59
- package/test/util/runtime.test.ts +264 -4
- package/docs/interfaces/labels.html +0 -157
- package/docs/interfaces/schemaref.html +0 -160
- package/docs/interfaces/schemarefs.html +0 -138
package/lib/actions/index.js
CHANGED
|
@@ -1,125 +1,29 @@
|
|
|
1
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
|
+
*/
|
|
2
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
exports.UPDATE_CORE = "jsonforms/UPDATE_CORE";
|
|
6
|
-
exports.SET_AJV = 'jsonforms/SET_AJV';
|
|
7
|
-
exports.UPDATE_DATA = 'jsonforms/UPDATE';
|
|
8
|
-
exports.UPDATE_ERRORS = 'jsonforms/UPDATE_ERRORS';
|
|
9
|
-
exports.VALIDATE = 'jsonforms/VALIDATE';
|
|
10
|
-
exports.ADD_RENDERER = 'jsonforms/ADD_RENDERER';
|
|
11
|
-
exports.REMOVE_RENDERER = 'jsonforms/REMOVE_RENDERER';
|
|
12
|
-
exports.ADD_CELL = 'jsonforms/ADD_CELL';
|
|
13
|
-
exports.REMOVE_CELL = 'jsonforms/REMOVE_CELL';
|
|
14
|
-
exports.SET_CONFIG = 'jsonforms/SET_CONFIG';
|
|
15
|
-
exports.ADD_UI_SCHEMA = "jsonforms/ADD_UI_SCHEMA";
|
|
16
|
-
exports.REMOVE_UI_SCHEMA = "jsonforms/REMOVE_UI_SCHEMA";
|
|
17
|
-
exports.SET_SCHEMA = "jsonforms/SET_SCHEMA";
|
|
18
|
-
exports.SET_UISCHEMA = "jsonforms/SET_UISCHEMA";
|
|
19
|
-
exports.SET_VALIDATION_MODE = 'jsonforms/SET_VALIDATION_MODE';
|
|
20
|
-
exports.SET_LOCALE = "jsonforms/SET_LOCALE";
|
|
21
|
-
exports.SET_LOCALIZED_SCHEMAS = 'jsonforms/SET_LOCALIZED_SCHEMAS';
|
|
22
|
-
exports.SET_LOCALIZED_UISCHEMAS = 'jsonforms/SET_LOCALIZED_UISCHEMAS';
|
|
23
|
-
exports.ADD_DEFAULT_DATA = "jsonforms/ADD_DEFAULT_DATA";
|
|
24
|
-
exports.REMOVE_DEFAULT_DATA = "jsonforms/REMOVE_DEFAULT_DATA";
|
|
25
|
-
exports.init = function (data, schema, uischema, options) {
|
|
26
|
-
if (schema === void 0) { schema = generators_1.generateJsonSchema(data); }
|
|
27
|
-
return ({
|
|
28
|
-
type: exports.INIT,
|
|
29
|
-
data: data,
|
|
30
|
-
schema: schema,
|
|
31
|
-
uischema: typeof uischema === 'object' ? uischema : generators_1.generateDefaultUISchema(schema),
|
|
32
|
-
options: options
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
exports.updateCore = function (data, schema, uischema, options) { return ({
|
|
36
|
-
type: exports.UPDATE_CORE,
|
|
37
|
-
data: data,
|
|
38
|
-
schema: schema,
|
|
39
|
-
uischema: uischema,
|
|
40
|
-
options: options
|
|
41
|
-
}); };
|
|
42
|
-
exports.registerDefaultData = function (schemaPath, data) { return ({
|
|
43
|
-
type: exports.ADD_DEFAULT_DATA,
|
|
44
|
-
schemaPath: schemaPath,
|
|
45
|
-
data: data
|
|
46
|
-
}); };
|
|
47
|
-
exports.unregisterDefaultData = function (schemaPath) { return ({
|
|
48
|
-
type: exports.REMOVE_DEFAULT_DATA,
|
|
49
|
-
schemaPath: schemaPath
|
|
50
|
-
}); };
|
|
51
|
-
exports.setAjv = function (ajv) { return ({
|
|
52
|
-
type: exports.SET_AJV,
|
|
53
|
-
ajv: ajv
|
|
54
|
-
}); };
|
|
55
|
-
exports.update = function (path, updater) { return ({
|
|
56
|
-
type: exports.UPDATE_DATA,
|
|
57
|
-
path: path,
|
|
58
|
-
updater: updater
|
|
59
|
-
}); };
|
|
60
|
-
exports.updateErrors = function (errors) { return ({
|
|
61
|
-
type: exports.UPDATE_ERRORS,
|
|
62
|
-
errors: errors
|
|
63
|
-
}); };
|
|
64
|
-
exports.registerRenderer = function (tester, renderer) { return ({
|
|
65
|
-
type: exports.ADD_RENDERER,
|
|
66
|
-
tester: tester,
|
|
67
|
-
renderer: renderer
|
|
68
|
-
}); };
|
|
69
|
-
exports.registerCell = function (tester, cell) { return ({
|
|
70
|
-
type: exports.ADD_CELL,
|
|
71
|
-
tester: tester,
|
|
72
|
-
cell: cell
|
|
73
|
-
}); };
|
|
74
|
-
exports.unregisterCell = function (tester, cell) { return ({
|
|
75
|
-
type: exports.REMOVE_CELL,
|
|
76
|
-
tester: tester,
|
|
77
|
-
cell: cell
|
|
78
|
-
}); };
|
|
79
|
-
exports.unregisterRenderer = function (tester, renderer) { return ({
|
|
80
|
-
type: exports.REMOVE_RENDERER,
|
|
81
|
-
tester: tester,
|
|
82
|
-
renderer: renderer
|
|
83
|
-
}); };
|
|
84
|
-
exports.setConfig = function (config) { return ({
|
|
85
|
-
type: exports.SET_CONFIG,
|
|
86
|
-
config: config
|
|
87
|
-
}); };
|
|
88
|
-
exports.setValidationMode = function (validationMode) { return ({
|
|
89
|
-
type: exports.SET_VALIDATION_MODE,
|
|
90
|
-
validationMode: validationMode
|
|
91
|
-
}); };
|
|
92
|
-
exports.registerUISchema = function (tester, uischema) {
|
|
93
|
-
return {
|
|
94
|
-
type: exports.ADD_UI_SCHEMA,
|
|
95
|
-
tester: tester,
|
|
96
|
-
uischema: uischema
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
exports.unregisterUISchema = function (tester) {
|
|
100
|
-
return {
|
|
101
|
-
type: exports.REMOVE_UI_SCHEMA,
|
|
102
|
-
tester: tester
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
exports.setLocale = function (locale) { return ({
|
|
106
|
-
type: exports.SET_LOCALE,
|
|
107
|
-
locale: locale
|
|
108
|
-
}); };
|
|
109
|
-
exports.setLocalizedSchemas = function (localizedSchemas) { return ({
|
|
110
|
-
type: exports.SET_LOCALIZED_SCHEMAS,
|
|
111
|
-
localizedSchemas: localizedSchemas
|
|
112
|
-
}); };
|
|
113
|
-
exports.setSchema = function (schema) { return ({
|
|
114
|
-
type: exports.SET_SCHEMA,
|
|
115
|
-
schema: schema
|
|
116
|
-
}); };
|
|
117
|
-
exports.setLocalizedUISchemas = function (localizedUISchemas) { return ({
|
|
118
|
-
type: exports.SET_LOCALIZED_UISCHEMAS,
|
|
119
|
-
localizedUISchemas: localizedUISchemas
|
|
120
|
-
}); };
|
|
121
|
-
exports.setUISchema = function (uischema) { return ({
|
|
122
|
-
type: exports.SET_UISCHEMA,
|
|
123
|
-
uischema: uischema
|
|
124
|
-
}); };
|
|
27
|
+
var tslib_1 = require("tslib");
|
|
28
|
+
tslib_1.__exportStar(require("./actions"), exports);
|
|
125
29
|
//# sourceMappingURL=index.js.map
|
package/lib/actions/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEF,oDAA0B"}
|
package/lib/configDefault.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
2
|
/*
|
|
4
3
|
The MIT License
|
|
5
4
|
|
|
@@ -24,6 +23,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
23
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
24
|
THE SOFTWARE.
|
|
26
25
|
*/
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.configDefault = void 0;
|
|
27
28
|
exports.configDefault = {
|
|
28
29
|
/*
|
|
29
30
|
* [text] whether to restrict the number of characters to maxLength,
|
package/lib/configDefault.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configDefault.js","sourceRoot":"","sources":["../src/configDefault.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configDefault.js","sourceRoot":"","sources":["../src/configDefault.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEW,QAAA,aAAa,GAAG;IAC3B;;;OAGG;IACH,QAAQ,EAAE,KAAK;IAEf;;;OAGG;IACH,IAAI,EAAE,KAAK;IAEX;;OAEG;IACH,wBAAwB,EAAE,KAAK;IAE/B;;OAEG;IACH,oBAAoB,EAAE,KAAK;CAC5B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ControlElement, JsonSchema, UISchemaElement } from '../';
|
|
2
|
+
export declare const Generate: {
|
|
3
|
+
jsonSchema(instance: Object, options?: any): JsonSchema;
|
|
4
|
+
uiSchema(jsonSchema: JsonSchema, layoutType?: string, prefix?: string, rootSchema?: JsonSchema): UISchemaElement;
|
|
5
|
+
controlElement(ref: string): ControlElement;
|
|
6
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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.Generate = void 0;
|
|
28
|
+
var schema_1 = require("./schema");
|
|
29
|
+
var uischema_1 = require("./uischema");
|
|
30
|
+
exports.Generate = {
|
|
31
|
+
jsonSchema: schema_1.generateJsonSchema,
|
|
32
|
+
uiSchema: uischema_1.generateDefaultUISchema,
|
|
33
|
+
controlElement: uischema_1.createControlElement
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=Generate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Generate.js","sourceRoot":"","sources":["../../src/generators/Generate.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEF,mCAA8C;AAC9C,uCAA2E;AAG9D,QAAA,QAAQ,GASjB;IACF,UAAU,EAAE,2BAAkB;IAC9B,QAAQ,EAAE,kCAAuB;IACjC,cAAc,EAAE,+BAAoB;CACrC,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const Generate: {
|
|
5
|
-
jsonSchema(instance: Object, options?: any): JsonSchema;
|
|
6
|
-
uiSchema(jsonSchema: JsonSchema, layoutType?: string, prefix?: string, rootSchema?: JsonSchema): UISchemaElement;
|
|
7
|
-
controlElement(ref: string): ControlElement;
|
|
8
|
-
};
|
|
9
|
-
export { generateJsonSchema };
|
|
10
|
-
export { generateDefaultUISchema };
|
|
1
|
+
export * from './Generate';
|
|
2
|
+
export * from './schema';
|
|
3
|
+
export * from './uischema';
|
package/lib/generators/index.js
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
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
|
+
*/
|
|
2
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.Generate = {
|
|
8
|
-
jsonSchema: schema_1.generateJsonSchema,
|
|
9
|
-
uiSchema: uischema_1.generateDefaultUISchema,
|
|
10
|
-
controlElement: uischema_1.createControlElement
|
|
11
|
-
};
|
|
27
|
+
var tslib_1 = require("tslib");
|
|
28
|
+
tslib_1.__exportStar(require("./Generate"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./schema"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./uischema"), exports);
|
|
12
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;AAEF,qDAA2B;AAC3B,mDAAyB;AACzB,qDAA2B"}
|
package/lib/generators/schema.js
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
THE SOFTWARE.
|
|
25
25
|
*/
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.generateJsonSchema = void 0;
|
|
27
28
|
var ADDITIONAL_PROPERTIES = 'additionalProperties';
|
|
28
29
|
var REQUIRED_PROPERTIES = 'required';
|
|
29
30
|
var distinct = function (properties, discriminator) {
|
|
@@ -128,7 +129,7 @@ var Gen = /** @class */ (function () {
|
|
|
128
129
|
* @param {any} options any additional options that may alter the generated JSON schema
|
|
129
130
|
* @returns {JsonSchema} the generated schema
|
|
130
131
|
*/
|
|
131
|
-
|
|
132
|
+
var generateJsonSchema = function (instance, options) {
|
|
132
133
|
if (options === void 0) { options = {}; }
|
|
133
134
|
var findOption = function (props) { return function (optionName) {
|
|
134
135
|
switch (optionName) {
|
|
@@ -149,4 +150,5 @@ exports.generateJsonSchema = function (instance, options) {
|
|
|
149
150
|
var gen = new Gen(findOption);
|
|
150
151
|
return gen.schemaObject(instance);
|
|
151
152
|
};
|
|
153
|
+
exports.generateJsonSchema = generateJsonSchema;
|
|
152
154
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/generators/schema.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/generators/schema.ts"],"names":[],"mappings":";AAAA;;;;;;;;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AC,CAAC;AA5BW,QAAA,kBAAkB,sBA4B7B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { JsonSchema } from '../models
|
|
2
|
-
import { ControlElement, UISchemaElement } from '../models/uischema';
|
|
1
|
+
import { ControlElement, JsonSchema, UISchemaElement } from '../models';
|
|
3
2
|
/**
|
|
4
3
|
* Creates a IControlObject with the given label referencing the given ref
|
|
5
4
|
*/
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
2
|
/*
|
|
5
3
|
The MIT License
|
|
6
4
|
|
|
@@ -25,11 +23,13 @@ var tslib_1 = require("tslib");
|
|
|
25
23
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
24
|
THE SOFTWARE.
|
|
27
25
|
*/
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.generateDefaultUISchema = exports.createControlElement = void 0;
|
|
28
|
+
var tslib_1 = require("tslib");
|
|
28
29
|
var isEmpty_1 = tslib_1.__importDefault(require("lodash/isEmpty"));
|
|
29
30
|
var startCase_1 = tslib_1.__importDefault(require("lodash/startCase"));
|
|
30
31
|
var keys_1 = tslib_1.__importDefault(require("lodash/keys"));
|
|
31
|
-
var
|
|
32
|
-
var resolvers_1 = require("../util/resolvers");
|
|
32
|
+
var models_1 = require("../models");
|
|
33
33
|
var util_1 = require("../util");
|
|
34
34
|
/**
|
|
35
35
|
* Creates a new ILayout.
|
|
@@ -43,10 +43,11 @@ var createLayout = function (layoutType) { return ({
|
|
|
43
43
|
/**
|
|
44
44
|
* Creates a IControlObject with the given label referencing the given ref
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
var createControlElement = function (ref) { return ({
|
|
47
47
|
type: 'Control',
|
|
48
48
|
scope: ref
|
|
49
49
|
}); };
|
|
50
|
+
exports.createControlElement = createControlElement;
|
|
50
51
|
/**
|
|
51
52
|
* Wraps the given {@code uiSchema} in a Layout if there is none already.
|
|
52
53
|
* @param uischema The ui schema to wrap in a layout.
|
|
@@ -54,7 +55,7 @@ exports.createControlElement = function (ref) { return ({
|
|
|
54
55
|
* @returns the wrapped uiSchema.
|
|
55
56
|
*/
|
|
56
57
|
var wrapInLayoutIfNecessary = function (uischema, layoutType) {
|
|
57
|
-
if (!isEmpty_1.default(uischema) && !
|
|
58
|
+
if (!isEmpty_1.default(uischema) && !models_1.isLayout(uischema)) {
|
|
58
59
|
var verticalLayout = createLayout(layoutType);
|
|
59
60
|
verticalLayout.elements.push(uischema);
|
|
60
61
|
return verticalLayout;
|
|
@@ -71,7 +72,7 @@ var wrapInLayoutIfNecessary = function (uischema, layoutType) {
|
|
|
71
72
|
var addLabel = function (layout, labelName) {
|
|
72
73
|
if (!isEmpty_1.default(labelName)) {
|
|
73
74
|
var fixedLabel = startCase_1.default(labelName);
|
|
74
|
-
if (
|
|
75
|
+
if (models_1.isGroup(layout)) {
|
|
75
76
|
layout.label = fixedLabel;
|
|
76
77
|
}
|
|
77
78
|
else {
|
|
@@ -97,7 +98,7 @@ var isCombinator = function (jsonSchema) {
|
|
|
97
98
|
};
|
|
98
99
|
var generateUISchema = function (jsonSchema, schemaElements, currentRef, schemaName, layoutType, rootSchema) {
|
|
99
100
|
if (!isEmpty_1.default(jsonSchema) && jsonSchema.$ref !== undefined) {
|
|
100
|
-
return generateUISchema(
|
|
101
|
+
return generateUISchema(util_1.resolveSchema(rootSchema, jsonSchema.$ref), schemaElements, currentRef, schemaName, layoutType, rootSchema);
|
|
101
102
|
}
|
|
102
103
|
if (isCombinator(jsonSchema)) {
|
|
103
104
|
var controlObject = exports.createControlElement(currentRef);
|
|
@@ -126,7 +127,7 @@ var generateUISchema = function (jsonSchema, schemaElements, currentRef, schemaN
|
|
|
126
127
|
var value = jsonSchema.properties[propName];
|
|
127
128
|
var ref = nextRef_1 + "/" + propName;
|
|
128
129
|
if (value.$ref !== undefined) {
|
|
129
|
-
value =
|
|
130
|
+
value = util_1.resolveSchema(rootSchema, value.$ref);
|
|
130
131
|
}
|
|
131
132
|
generateUISchema(value, layout_1.elements, ref, propName, layoutType, rootSchema);
|
|
132
133
|
});
|
|
@@ -158,10 +159,11 @@ var generateUISchema = function (jsonSchema, schemaElements, currentRef, schemaN
|
|
|
158
159
|
* @param {string} layoutType the desired layout type for the root layout
|
|
159
160
|
* of the generated UI schema
|
|
160
161
|
*/
|
|
161
|
-
|
|
162
|
+
var generateDefaultUISchema = function (jsonSchema, layoutType, prefix, rootSchema) {
|
|
162
163
|
if (layoutType === void 0) { layoutType = 'VerticalLayout'; }
|
|
163
164
|
if (prefix === void 0) { prefix = '#'; }
|
|
164
165
|
if (rootSchema === void 0) { rootSchema = jsonSchema; }
|
|
165
166
|
return wrapInLayoutIfNecessary(generateUISchema(jsonSchema, [], prefix, '', layoutType, rootSchema), layoutType);
|
|
166
167
|
};
|
|
168
|
+
exports.generateDefaultUISchema = generateDefaultUISchema;
|
|
167
169
|
//# sourceMappingURL=uischema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uischema.js","sourceRoot":"","sources":["../../src/generators/uischema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"uischema.js","sourceRoot":"","sources":["../../src/generators/uischema.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;EAuBE;;;;AAEF,mEAAqC;AACrC,uEAAyC;AACzC,6DAA+B;AAC/B,oCAQmB;AACnB,gCAAqD;AAErD;;;;GAIG;AACH,IAAM,YAAY,GAAG,UAAC,UAAkB,IAAa,OAAA,CAAC;IACpD,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,EAAE;CACb,CAAC,EAHmD,CAGnD,CAAC;AAEH;;GAEG;AACI,IAAM,oBAAoB,GAAG,UAAC,GAAW,IAAqB,OAAA,CAAC;IACpE,IAAI,EAAE,SAAS;IACf,K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IAEvB,OAAA,uBAAuB,CACrB,gBAAgB,CAAC,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,UAAU,CAAC,EACpE,UAAU,CACX;AAHD,CAGC,CAAC;AATS,QAAA,uBAAuB,2BAShC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ErrorObject } from 'ajv';
|
|
2
|
+
import { JsonSchema, UISchemaElement } from '../models';
|
|
3
|
+
export declare type Translator = {
|
|
4
|
+
(id: string, defaultMessage: string, values?: any): string;
|
|
5
|
+
(id: string, defaultMessage: undefined, values?: any): string | undefined;
|
|
6
|
+
};
|
|
7
|
+
export declare type ErrorTranslator = (error: ErrorObject, translate: Translator, uischema?: UISchemaElement) => string;
|
|
8
|
+
export interface JsonFormsI18nState {
|
|
9
|
+
locale?: string;
|
|
10
|
+
translate?: Translator;
|
|
11
|
+
translateError?: ErrorTranslator;
|
|
12
|
+
}
|
|
13
|
+
export declare type i18nJsonSchema = JsonSchema & {
|
|
14
|
+
i18n?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18nTypes.js","sourceRoot":"","sources":["../../src/i18n/i18nTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ErrorObject } from 'ajv';
|
|
2
|
+
import { UISchemaElement } from '../models';
|
|
3
|
+
import { i18nJsonSchema, ErrorTranslator, Translator } from './i18nTypes';
|
|
4
|
+
export declare const getI18nKey: (schema: i18nJsonSchema | undefined, uischema: UISchemaElement | undefined, key: string) => string | undefined;
|
|
5
|
+
export declare const defaultTranslator: Translator;
|
|
6
|
+
export declare const defaultErrorTranslator: ErrorTranslator;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the determined error message for the given errors.
|
|
9
|
+
* All errors must correspond to the given schema and uischema.
|
|
10
|
+
*/
|
|
11
|
+
export declare const getCombinedErrorMessage: (errors: ErrorObject[], et: ErrorTranslator, t: Translator, schema?: i18nJsonSchema, uischema?: UISchemaElement) => string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCombinedErrorMessage = exports.defaultErrorTranslator = exports.defaultTranslator = exports.getI18nKey = void 0;
|
|
4
|
+
var util_1 = require("../util");
|
|
5
|
+
var getI18nKey = function (schema, uischema, key) {
|
|
6
|
+
var _a;
|
|
7
|
+
if ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.i18n) {
|
|
8
|
+
return uischema.options.i18n + "." + key;
|
|
9
|
+
}
|
|
10
|
+
if (schema === null || schema === void 0 ? void 0 : schema.i18n) {
|
|
11
|
+
return schema.i18n + "." + key;
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
};
|
|
15
|
+
exports.getI18nKey = getI18nKey;
|
|
16
|
+
var defaultTranslator = function (_id, defaultMessage) { return defaultMessage; };
|
|
17
|
+
exports.defaultTranslator = defaultTranslator;
|
|
18
|
+
var defaultErrorTranslator = function (error, t, uischema) {
|
|
19
|
+
// check whether there is a special keyword message
|
|
20
|
+
var keyInSchemas = exports.getI18nKey(error.parentSchema, uischema, "error." + error.keyword);
|
|
21
|
+
var specializedKeywordMessage = keyInSchemas && t(keyInSchemas, undefined);
|
|
22
|
+
if (specializedKeywordMessage !== undefined) {
|
|
23
|
+
return specializedKeywordMessage;
|
|
24
|
+
}
|
|
25
|
+
// check whether there is a generic keyword message
|
|
26
|
+
var genericKeywordMessage = t("error." + error.keyword, undefined);
|
|
27
|
+
if (genericKeywordMessage !== undefined) {
|
|
28
|
+
return genericKeywordMessage;
|
|
29
|
+
}
|
|
30
|
+
// check whether there is a customization for the default message
|
|
31
|
+
var messageCustomization = t(error.message, undefined);
|
|
32
|
+
if (messageCustomization !== undefined) {
|
|
33
|
+
return messageCustomization;
|
|
34
|
+
}
|
|
35
|
+
// rewrite required property messages (if they were not customized) as we place them next to the respective input
|
|
36
|
+
if (error.keyword === 'required') {
|
|
37
|
+
return t('is a required property', 'is a required property');
|
|
38
|
+
}
|
|
39
|
+
return error.message;
|
|
40
|
+
};
|
|
41
|
+
exports.defaultErrorTranslator = defaultErrorTranslator;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the determined error message for the given errors.
|
|
44
|
+
* All errors must correspond to the given schema and uischema.
|
|
45
|
+
*/
|
|
46
|
+
var getCombinedErrorMessage = function (errors, et, t, schema, uischema) {
|
|
47
|
+
if (errors.length > 0 && t) {
|
|
48
|
+
// check whether there is a special message which overwrites all others
|
|
49
|
+
var keyInSchemas = exports.getI18nKey(schema, uischema, 'error.custom');
|
|
50
|
+
var specializedErrorMessage = keyInSchemas && t(keyInSchemas, undefined);
|
|
51
|
+
if (specializedErrorMessage !== undefined) {
|
|
52
|
+
return specializedErrorMessage;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return util_1.formatErrorMessage(errors.map(function (error) { return et(error, t, uischema); }));
|
|
56
|
+
};
|
|
57
|
+
exports.getCombinedErrorMessage = getCombinedErrorMessage;
|
|
58
|
+
//# sourceMappingURL=i18nUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18nUtil.js","sourceRoot":"","sources":["../../src/i18n/i18nUtil.ts"],"names":[],"mappings":";;;AAEA,gCAA6C;AAGtC,IAAM,UAAU,GAAG,UACxB,MAAkC,EAClC,QAAqC,EACrC,GAAW;;IAEX,IAAI,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,0CAAE,IAAI,EAAE;QAC3B,OAAU,QAAQ,CAAC,OAAO,CAAC,IAAI,SAAI,GAAK,CAAC;KAC1C;IACD,IAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,EAAE;QAChB,OAAU,MAAM,CAAC,IAAI,SAAI,GAAK,CAAC;KAChC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC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AM,YAAY,GAAG,kBAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;QAClE,IAAM,uBAAuB,GAAG,YAAY,IAAI,CAAC,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QAC3E,IAAI,uBAAuB,KAAK,SAAS,EAAE;YACzC,OAAO,uBAAuB,CAAC;SAChC;KACF;IACD,OAAO,yBAAkB,CACvB,MAAM,CAAC,GAAG,CAAC,UAAA,KAAK,IAAI,OAAA,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAtB,CAAsB,CAAC,CAC5C,CAAC;AACJ,CAAC,CAAC;AAlBW,QAAA,uBAAuB,2BAkBlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,qDAA2B"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
export * from './util';
|
|
2
|
-
export { JsonSchema } from './models/jsonSchema';
|
|
3
|
-
export { JsonSchema4 } from './models/jsonSchema4';
|
|
4
|
-
export { JsonSchema7 } from './models/jsonSchema7';
|
|
5
|
-
export * from './store';
|
|
6
1
|
export * from './actions';
|
|
7
|
-
|
|
8
|
-
export { Actions };
|
|
9
|
-
export * from './reducers';
|
|
2
|
+
export * as Actions from './actions';
|
|
10
3
|
export * from './generators';
|
|
11
|
-
export * from './models
|
|
12
|
-
|
|
4
|
+
export * from './models';
|
|
5
|
+
export * from './reducers';
|
|
13
6
|
export * from './testers';
|
|
14
|
-
export
|
|
15
|
-
import { ControlElement, LabelDescription } from './models/uischema';
|
|
16
|
-
import { JsonSchema } from './models/jsonSchema';
|
|
17
|
-
declare const Helpers: {
|
|
18
|
-
createLabelDescriptionFrom(withLabel: ControlElement, schema: JsonSchema): LabelDescription;
|
|
19
|
-
convertToValidClassName(s: string): string;
|
|
20
|
-
};
|
|
21
|
-
export { Helpers };
|
|
7
|
+
export * as Test from './testers';
|
|
22
8
|
export * from './util';
|
|
9
|
+
export * from './Helpers';
|
|
23
10
|
export * from './store';
|
|
11
|
+
export * from './i18n';
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
2
|
/*
|
|
5
3
|
The MIT License
|
|
6
4
|
|
|
@@ -25,21 +23,18 @@ var tslib_1 = require("tslib");
|
|
|
25
23
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
26
24
|
THE SOFTWARE.
|
|
27
25
|
*/
|
|
28
|
-
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.Test = exports.Actions = void 0;
|
|
28
|
+
var tslib_1 = require("tslib");
|
|
29
29
|
tslib_1.__exportStar(require("./actions"), exports);
|
|
30
|
-
|
|
31
|
-
exports.Actions = Actions;
|
|
32
|
-
tslib_1.__exportStar(require("./reducers"), exports);
|
|
30
|
+
exports.Actions = tslib_1.__importStar(require("./actions"));
|
|
33
31
|
tslib_1.__exportStar(require("./generators"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./models
|
|
35
|
-
|
|
36
|
-
exports.Test = Test;
|
|
32
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./reducers"), exports);
|
|
37
34
|
tslib_1.__exportStar(require("./testers"), exports);
|
|
38
|
-
|
|
39
|
-
var Helpers = {
|
|
40
|
-
createLabelDescriptionFrom: util_1.createLabelDescriptionFrom,
|
|
41
|
-
convertToValidClassName: util_1.convertToValidClassName
|
|
42
|
-
};
|
|
43
|
-
exports.Helpers = Helpers;
|
|
35
|
+
exports.Test = tslib_1.__importStar(require("./testers"));
|
|
44
36
|
tslib_1.__exportStar(require("./util"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./Helpers"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./store"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./i18n"), exports);
|
|
45
40
|
//# sourceMappingURL=index.js.map
|