@abgov/jsonforms-components 2.6.9 → 2.6.10
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/index.esm.js +4 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -7492,7 +7492,7 @@ function isNumber(value) {
|
|
|
7492
7492
|
}
|
|
7493
7493
|
const getIncompletePaths = (ajv, scopes) => {
|
|
7494
7494
|
var _a;
|
|
7495
|
-
const requiredErrorPaths = (_a = ajv === null || ajv === void 0 ? void 0 : ajv.errors) === null || _a === void 0 ? void 0 : _a.filter(e => e.keyword === 'required' || e.keyword === 'minLength').map(e => {
|
|
7495
|
+
const requiredErrorPaths = (_a = ajv === null || ajv === void 0 ? void 0 : ajv.errors) === null || _a === void 0 ? void 0 : _a.filter(e => e.keyword === 'required' || e.keyword === 'minLength' || e.keyword === 'minItems' || e.keyword === 'errorMessage').map(e => {
|
|
7496
7496
|
return getControlPath(e);
|
|
7497
7497
|
});
|
|
7498
7498
|
const _scopes = scopes.map(scope => toDataPath(scope)).filter(path => requiredErrorPaths && isErrorPathIncluded(requiredErrorPaths, path));
|
|
@@ -11426,6 +11426,7 @@ formData,
|
|
|
11426
11426
|
updateFormData,
|
|
11427
11427
|
// eslint-disable-next-line
|
|
11428
11428
|
handleRequiredFieldBlur) {
|
|
11429
|
+
/* istanbul ignore next */
|
|
11429
11430
|
useEffect(() => {
|
|
11430
11431
|
const rAF = requestAnimationFrame(() => {
|
|
11431
11432
|
const timeout = setTimeout(() => {
|
|
@@ -11976,7 +11977,8 @@ const createDefaultAjv = (...schemas) => {
|
|
|
11976
11977
|
allErrors: true,
|
|
11977
11978
|
verbose: true,
|
|
11978
11979
|
strict: 'log',
|
|
11979
|
-
strictRequired: false
|
|
11980
|
+
strictRequired: false,
|
|
11981
|
+
useDefaults: true
|
|
11980
11982
|
});
|
|
11981
11983
|
ajv.addSchema(schemas);
|
|
11982
11984
|
addErrors(ajv);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|