@abgov/jsonforms-components 2.29.0 → 2.30.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.
package/index.esm.js
CHANGED
|
@@ -13102,7 +13102,9 @@ const errMalformedScope = scope => `Scope ${scope} must be prefixed with '#/'.`;
|
|
|
13102
13102
|
const errUnknownScope = scope => `Failed to render: unknown scope ${scope}`;
|
|
13103
13103
|
const errMissingType = 'UI schema element must have a type';
|
|
13104
13104
|
const errUnknownType = type => `Unknown schema type: ${type}. (Names are case sensitive)`;
|
|
13105
|
+
const errMissingRegister = 'Register configuration is missing in the UISchema options';
|
|
13105
13106
|
const getUISchemaErrors = (uiSchema, schema) => {
|
|
13107
|
+
var _a, _b;
|
|
13106
13108
|
// Sometimes the UISchema is null. Ignore those cases, as all checks are done on the UIschema.
|
|
13107
13109
|
if (isNullSchema(uiSchema)) {
|
|
13108
13110
|
return null;
|
|
@@ -13111,6 +13113,9 @@ const getUISchemaErrors = (uiSchema, schema) => {
|
|
|
13111
13113
|
if (isEmptyObject(uiSchema)) {
|
|
13112
13114
|
return '';
|
|
13113
13115
|
}
|
|
13116
|
+
if (isControl(uiSchema) && (schema === null || schema === void 0 ? void 0 : schema.type) === 'object' && ((_a = uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema.options) === null || _a === void 0 ? void 0 : _a.format) === 'enum' && ((_b = uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema.options) === null || _b === void 0 ? void 0 : _b.register) === undefined) {
|
|
13117
|
+
return errMissingRegister;
|
|
13118
|
+
}
|
|
13114
13119
|
// Check control elements
|
|
13115
13120
|
if (isControl(uiSchema) && hasType(uiSchema, 'Control')) {
|
|
13116
13121
|
if (!isScopedPrefixed(uiSchema.scope)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.30.0",
|
|
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",
|
|
@@ -7,4 +7,5 @@ export declare const errMalformedScope: (scope: string) => string;
|
|
|
7
7
|
export declare const errUnknownScope: (scope: string) => string;
|
|
8
8
|
export declare const errMissingType = "UI schema element must have a type";
|
|
9
9
|
export declare const errUnknownType: (type: string) => string;
|
|
10
|
+
export declare const errMissingRegister = "Register configuration is missing in the UISchema options";
|
|
10
11
|
export declare const getUISchemaErrors: (uiSchema: UISchemaElement, schema: JsonSchema) => string | null;
|